re PR ipa/92528 (ICE in ipa_get_parm_lattices since r278219)
[gcc.git] / gcc / ChangeLog
1 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
2
3 PR ipa/92528
4 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
5 aggregate jump function when inlined-to caller has no edge summary.
6
7 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
8
9 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
10
11 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
12
13 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
14 prologue use of v0.
15 (print_operand_address): Use v1 for zero vector offset.
16
17 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
18
19 PR tree-optimization/92515
20 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
21 types when converting a vector/scalar shift into a vector/vector one,
22 using tree_nop_conversion_p instead of useless_type_conversion_p.
23 Move the conversion code to the transform block.
24
25 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
26
27 * read-rtl-function.c
28 (function_reader::add_fixup_source_location): Take additional
29 parameter of a column.
30 (function_reader::maybe_read_location): Optionally parse column
31 information and pass to add_fixup_source_location.
32
33 2019-11-15 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/92512
36 * tree-vect-loop.c (check_reduction_path): Fix operand index
37 computability check. Add check for second use in COND_EXPRs.
38
39 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
40
41 PR target/92515
42 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
43 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
44
45 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
46
47 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
48 register class for VCC_LO and VCC_HI.
49 (gcn_spill_class): Use SGPR_REGS to spill registers in
50 VCC_CONDITIONAL_REG.
51
52 2019-11-15 Richard Biener <rguenther@suse.de>
53
54 PR tree-optimization/92324
55 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
56 singedness of SLP reduction epilouge operations. Also reduce
57 the vector width for SLP reductions before doing elementwise
58 operations if possible.
59
60 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
61
62 * passes.c (skip_pass): Set epilogue_completed if skipping the
63 pro_and_epilogue pass.
64
65 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
66
67 * passes.c (should_skip_pass_p): Always run "dfinish".
68
69 2019-11-15 Richard Biener <rguenther@suse.de>
70
71 * ipa-inline.c (inline_small_functions): Move assignment
72 to next before call destroying edge.
73
74 2019-11-15 Richard Biener <rguenther@suse.de>
75
76 PR tree-optimization/92039
77 PR tree-optimization/91975
78 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
79 previous change, treat invariants consistently as non-constant.
80 (tree_estimate_loop_size): Ternary ops with just the first op
81 constant are not optimized away.
82
83 2019-11-15 Jakub Jelinek <jakub@redhat.com>
84
85 * gimplify.c (gimplify_call_expr): Don't call
86 omp_resolve_declare_variant after gimplification.
87 * omp-general.c (omp_context_selector_matches): For isa that might
88 match in some other function, defer if in declare simd function.
89 (omp_context_compute_score): Don't look for " score" in construct
90 trait set. Set *score to -1 if it can't ever match.
91 (omp_resolve_declare_variant): If any variants need to be deferred,
92 don't punt immediately, but compute scores of all variants and if
93 ther eis a score winner that doesn't need to be deferred, return that.
94
95 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
96
97 * ipa-comdats.c: Fix comments typo.
98 * ipa-profile.c: Fix comments typo.
99 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
100 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
101 (gimple_gen_ic_func_profiler): Likewise.
102 (pass_ipa_tree_profile::gate): Fix comments typo.
103
104 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
105
106 * ipa-inline.c (inline_small_functions): Update iterator of next.
107
108 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
109
110 * lra-spills.c (assign_spill_hard_regs): Check that the spill
111 register is suitable for the mode.
112
113 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
114
115 * range-op.h (range_operator::fold_range): Return a bool.
116 * range-op.cc (range_operator::wi_fold): Assert supported type.
117 (range_operator::fold_range): Assert supported type and return true.
118 (operator_equal::fold_range): Return true.
119 (operator_not_equal::fold_range): Same.
120 (operator_lt::fold_range): Same.
121 (operator_le::fold_range): Same.
122 (operator_gt::fold_range): Same.
123 (operator_ge::fold_range): Same.
124 (operator_plus::op1_range): Adjust call to fold_range.
125 (operator_plus::op2_range): Same.
126 (operator_minus::op1_range): Same.
127 (operator_minus::op2_range): Same.
128 (operator_exact_divide::op1_range): Same.
129 (operator_lshift::fold_range): Return true and adjust fold_range call.
130 (operator_rshift::fold_range): Same.
131 (operator_cast::fold_range): Return true.
132 (operator_logical_and::fold_range): Same.
133 (operator_logical_or::fold_range): Same.
134 (operator_logical_not::fold_range): Same.
135 (operator_bitwise_not::fold_range): Adjust call to fold_range.
136 (operator_bitwise_not::op1_range): Same.
137 (operator_cst::fold_range): Return true.
138 (operator_identity::fold_range): Return true.
139 (operator_negate::fold_range): Return true and adjust fold_range call.
140 (operator_addr_expr::fold_range): Return true.
141 (operator_addr_expr::op1_range): Adjust call to fold_range.
142 (range_cast): Same.
143 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
144 (range_fold_unary_symbolics_p): Same.
145
146 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
147
148 PR tree-optimization/92506
149 * range-op.cc (range_operator::fold_range): Start with range undefined.
150 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
151 overflow is varying.
152
153 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
154
155 * range-op.cc (*operator*::*range): Remove calls to
156 range_intersect, range_invert, and range_union in favor of calling
157 the in-place API methods.
158 (range_tests): Same.
159 * range.cc (range_intersect): Remove.
160 (range_union): Remove.
161 (range_invert): Remove.
162 * range.h (range_intersect): Remove.
163 (range_union): Remove.
164 (range_intersect): Remove.
165
166 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
167
168 PR rtl-optimization/92430
169 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
170 (pass_jump_after_combine::execute): Perform jump threading
171 unconditionally.
172
173 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
174 Doug Rupp <rupp@adacore.com>
175 Olivier Hainque <hainque@adacore.com>
176
177 * config.gcc: Collapse the arm-vxworks entries into
178 a single arm-wrs-vxworks7* one, bpabi based. Update
179 the default cpu from arm8 to armv7-a
180 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
181 we always use ARM_UNWIND_INFO.
182 (DWARF2_UNWIND_INFO): Remove redefinition.
183 (ARM_TARGET2_DWARF_FORMAT): Likewise.
184 (VXWORKS_PERSONALITY): Define, to "llvm".
185 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
186
187 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
188
189 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
190 _VX_CPU instead of CPU and handle arm_arch8.
191
192 2019-11-14 Doug Rupp <rupp@adacore.com>
193 Olivier Hainque <hainque@adacore.com>
194 Jerome Lambourg <lambourg@adacore.com>
195
196 * config.gcc: Handle aarch64*-wrs-vxworks7*.
197 * config/aarch64/aarch64-vxworks.h: New file.
198 * config/aarch64/t-aarch64-vxworks: New file.
199
200 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
201 Olivier Hainque <hainque@adacore.com>
202
203 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
204 definition, pointless with a VxWorks specific version
205 of crtstuff.
206 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
207 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
208 New local macros, controlling the addition of vxworks specific
209 crtstuff objects depending on the EH mechanism and kind of
210 module being linked.
211 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
212
213 2019-11-06 Pat Bernardi <bernardi@adacore.com>
214 Jerome Lambourg <lambourg@adacore.com>
215 Olivier Hainque <hainque@adacore.com>
216
217 * config.gcc: Add comment to introduce the TARGET_VXWORKS
218 common macro definitions, conveying VXWORKS7 or 64bit general
219 variations. Add a block to set gcc_cv_initfini_array
220 unconditionally to "yes" for VxWorks7.
221 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
222 by default. Update some comments.
223 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
224 default, to be added the end of VXWORKS_LIBS_RTP.
225 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
226 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
227 redefine.
228 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
229 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
230 to account for the now available TLS abilities.
231 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
232 (VXWORKS_HAVE_TLS): Likewise.
233
234 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
235
236 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
237 (vect_slp_convert_to_external): Likewise.
238 (vect_slp_analyze_node_operations): If analysis fails, try building
239 the node from scalars instead.
240
241 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
242
243 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
244 between vector types.
245 * tree-vect-stmts.c (vectorizable_conversion): Extend the
246 non-widening and non-narrowing path to handle standard
247 conversion codes, if the target supports them.
248 * expr.c (convert_move): Try using the extend and truncate optabs
249 for vectors.
250 * optabs-tree.c (supportable_convert_operation): Likewise.
251 * config/aarch64/iterators.md (Vnarroqw): New iterator.
252 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
253 (trunc<mode><Vnarrowq>2): New patterns.
254
255 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
256
257 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
258 require vectype and nunits_vectype to have the same size;
259 instead assert that nunits_vectype has at least as many
260 elements as vectype. Don't compute a separate nunits_vectype
261 if the scalar type is obviously the same as vectype's.
262 Tweak dump messages.
263
264 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
265
266 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
267 function.
268 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
269 (TARGET_VECTORIZE_RELATED_MODE): Define.
270
271 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
272
273 * tree-vectorizer.h (vec_info::mode_set): New typedef.
274 (vec_info::used_vector_mode): New member variable.
275 (vect_chooses_same_modes_p): Declare.
276 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
277 chosen vector mode in vec_info::used_vector_mode.
278 (vect_chooses_same_modes_p): New function.
279 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
280 the same vector statements multiple times.
281 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
282
283 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
284
285 * machmode.h (opt_machine_mode::operator==): New function.
286 (opt_machine_mode::operator!=): Likewise.
287 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
288 (get_related_vectype_for_scalar_type): Delete.
289 (get_vectype_for_scalar_type_and_size): Declare.
290 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
291 whether analysis passed or failed, and with what vector modes.
292 Use related_vector_mode to check whether trying a particular
293 vector mode would be redundant with the autodetected mode,
294 and print a dump message if we decide to skip it.
295 * tree-vect-loop.c (vect_analyze_loop): Likewise.
296 (vect_create_epilog_for_reduction): Use
297 get_related_vectype_for_scalar_type instead of
298 get_vectype_for_scalar_type_and_size.
299 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
300 with...
301 (get_related_vectype_for_scalar_type): ...this new function.
302 Take a starting/"prevailing" vector mode rather than a vector size.
303 Take an optional nunits argument, with the same meaning as for
304 related_vector_mode. Use related_vector_mode when not
305 auto-detecting a mode, falling back to mode_for_vector if no
306 target mode exists.
307 (get_vectype_for_scalar_type): Update accordingly.
308 (get_same_sized_vectype): Likewise.
309 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
310
311 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
312
313 * tree-vect-stmts.c (vectorizable_call): Require the types
314 to have the same size.
315
316 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
317
318 * tree-vect-stmts.c (vectorizable_call): If an operand is
319 constant or external, use get_vectype_for_scalar_type
320 rather than get_same_sized_vectype to get its vector type.
321 (vectorizable_conversion, vectorizable_shift): Likewise.
322 (vectorizable_operation): Likewise.
323
324 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
325
326 * tree-vectorizer.h (vec_info::vector_size): Replace with...
327 (vec_info::vector_mode): ...this new field.
328 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
329 (vect_analyze_loop, vect_transform_loop): Likewise.
330 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
331 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
332 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
333 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
334 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
335
336 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
337
338 * target.h (vector_sizes, auto_vector_sizes): Delete.
339 (vector_modes, auto_vector_modes): New typedefs.
340 * target.def (autovectorize_vector_sizes): Replace with...
341 (autovectorize_vector_modes): ...this new hook.
342 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
343 Replace with...
344 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
345 * doc/tm.texi: Regenerate.
346 * targhooks.h (default_autovectorize_vector_sizes): Delete.
347 (default_autovectorize_vector_modes): New function.
348 * targhooks.c (default_autovectorize_vector_sizes): Delete.
349 (default_autovectorize_vector_modes): New function.
350 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
351 of autovectorize_vector_sizes. Use the number of units in the mode
352 to calculate the maximum VF.
353 * omp-low.c (omp_clause_aligned_alignment): Use
354 autovectorize_vector_modes instead of autovectorize_vector_sizes.
355 Use a loop based on related_mode to iterate through all supported
356 vector modes for a given scalar mode.
357 * optabs-query.c (can_vec_mask_load_store_p): Use
358 autovectorize_vector_modes instead of autovectorize_vector_sizes.
359 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
360 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
361 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
362 Replace with...
363 (aarch64_autovectorize_vector_modes): ...this new function.
364 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
365 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
366 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
367 (arc_autovectorize_vector_modes): ...this new function.
368 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
369 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
370 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
371 (arm_autovectorize_vector_modes): ...this new function.
372 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
373 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
374 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
375 (ix86_autovectorize_vector_modes): ...this new function.
376 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
377 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
378 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
379 (mips_autovectorize_vector_modes): ...this new function.
380 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
381 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
382
383 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
384
385 * tree-vect-stmts.c (vectorizable_shift): Check the number
386 of vector elements as well as the type mode when deciding
387 whether an op1_vectype is compatible. Reuse the result of
388 this check when generating vector statements.
389
390 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
391
392 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
393 targetm.vectorize.preferred_simd_mode returns an integer mode,
394 use mode_for_vector to decide what the vector type's mode
395 should actually be. Use build_vector_type_for_mode instead
396 of build_vector_type.
397
398 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
399
400 * target.def (get_mask_mode): Take a vector mode itself as argument,
401 instead of properties about the vector mode.
402 * doc/tm.texi: Regenerate.
403 * targhooks.h (default_get_mask_mode): Update to reflect new
404 get_mode_mask interface.
405 * targhooks.c (default_get_mask_mode): Likewise. Use
406 related_int_vector_mode.
407 * optabs-query.c (can_vec_mask_load_store_p): Update call
408 to get_mask_mode.
409 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
410 first that the original mode really is a vector.
411 * tree.c (build_truth_vector_type_for): Likewise.
412 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
413 get_mode_mask interface.
414 (aarch64_expand_sve_vcond): Update call accordingly.
415 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
416 get_mode_mask interface.
417 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
418
419 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
420
421 * tree.h (build_truth_vector_type): Delete.
422 (build_same_sized_truth_vector_type): Likewise.
423 * tree.c (build_truth_vector_type): Rename to...
424 (build_truth_vector_type_for): ...this. Make static and take
425 a vector type as argument.
426 (truth_type_for): Update accordingly.
427 (build_same_sized_truth_vector_type): Delete.
428 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
429 instead of build_same_sized_truth_vector_type.
430 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
431 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
432 * tree-vect-patterns.c (build_mask_conversion): Likeise.
433 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
434 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
435 (vect_build_gather_load_calls, vectorizable_call): Likewise.
436 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
437 (vectorizable_store, vectorizable_condition): Likewise.
438 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
439 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
440 build_truth_vector_type.
441 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
442 Use truth_type_for instead of build_same_sized_truth_vector_type.
443 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
444
445 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
446
447 * tree.h (build_truth_vector_type_for_mode): Declare.
448 * tree.c (build_truth_vector_type_for_mode): New function,
449 split out from...
450 (build_truth_vector_type): ...here.
451 (build_opaque_vector_type): Fix head comment.
452 * tree-vectorizer.h (supportable_narrowing_operation): Remove
453 vec_info parameter.
454 (vect_halve_mask_nunits): Replace vec_info parameter with the
455 mode of the new vector.
456 (vect_double_mask_nunits): Likewise.
457 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
458 (vect_double_mask_nunits): Likewise.
459 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
460 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
461 to vect_halve_mask_nunits, getting the required mode from the unpack
462 patterns.
463 (vect_set_loop_condition_masked): Update call accordingly.
464 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
465 parameter and update call to vect_double_mask_nunits.
466 (vectorizable_conversion): Update call accordingly.
467 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
468 (vectorizable_call): Update call accordingly.
469 (supportable_widening_operation): Update call to
470 vect_halve_mask_nunits.
471 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
472 Use build_truth_vector_type_mode instead of build_truth_vector_type.
473
474 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
475
476 * machmode.h (mode_for_int_vector): Delete.
477 (related_int_vector_mode): Declare.
478 * stor-layout.c (mode_for_int_vector): Delete.
479 (related_int_vector_mode): New function.
480 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
481 instead of mode_for_int_vector.
482 (expand_vec_perm_const): Likewise.
483 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
484 (aarch64_evpc_sve_tbl): Likewise.
485 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
486 (s390_expand_vcond): Likewise.
487
488 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
489
490 * target.def (related_mode): New hook.
491 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
492 * doc/tm.texi: Regenerate.
493 * targhooks.h (default_vectorize_related_mode): Declare.
494 * targhooks.c (default_vectorize_related_mode): New function.
495 * machmode.h (related_vector_mode): Declare.
496 * stor-layout.c (related_vector_mode): New function.
497 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
498 * optabs-query.c (qimode_for_vec_perm): Likewise.
499 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
500 (vectorizable_store, vectorizable_load): Likewise
501
502 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
503
504 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
505 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
506 * config/arm/arm-c.c (arm_cpu_builtins): Define
507 __GCC_ASM_FLAG_OUTPUTS__.
508 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
509 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
510 Define __GCC_ASM_FLAG_OUTPUTS__.
511 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
512 * doc/extend.texi (FlagOutputOperands): Add documentation
513 for ARM and AArch64.
514
515 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
516 * config/arm/predicates.md (nz_comparison_operator): Rename
517 from noov_comparison_operator.
518 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
519 (arm_gen_dicompare_reg): Likewise.
520 (maybe_get_arm_condition_code): Likewise.
521 (thumb1_final_prescan_insn): Likewise.
522 (arm_emit_coreregs_64bit_shift): Likewise.
523 * config/arm/arm.md (addsi3_compare0): Likewise.
524 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
525 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
526 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
527 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
528 (*mulsi3addsi_compare0_scratch): Likewise.
529 (*mulsi3addsi_compare0_scratch_v6): Likewise.
530 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
531 (*zeroextractsi_compare0_scratch): Likewise.
532 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
533 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
534 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
535 (andsi_not_shiftsi_si_scc): Likewise.
536 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
537 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
538 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
539 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
540 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
541 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
542 (return_addr_mask, *check_arch2): Likewise.
543 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
544 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
545 (compare_scc splitters): Likewise.
546 (movcond_addsi): Likewise.
547 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
548 (*thumb2_addsi3_compare0_scratch): Likewise.
549 (*thumb2_mulsi_short_compare0): Likewise.
550 (*thumb2_mulsi_short_compare0_scratch): Likewise.
551 (compare peephole2s): Likewise.
552 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
553 nz_comparison_operator names.
554 (cbranchsi4_insn): Likewise.
555
556 * config/arm/constraints.md (c): Use cc_register predicate.
557
558 * config/aarch64/constraints.md (c): New constraint.
559
560 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
561
562 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
563 ipa_merge_fn_summary_after_inlining): Micro optimize.
564
565 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
566
567 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
568
569 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
570
571 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
572 (ipa_value_range_from_jfunc): New function.
573 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
574 known_value_ranges parameter; use it to evalulate conditions.
575 (evaluate_properties_for_edge): Compute known value ranges.
576 (ipa_fn_summary_t::duplicate): Update use of
577 evaluate_conditions_for_known_args.
578 (estimate_ipcp_clone_size_and_time): Likewise.
579 (ipa_merge_fn_summary_after_inlining): Likewise.
580 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
581
582 2019-11-14 Martin Liska <mliska@suse.cz>
583
584 * ipa-inline.c (want_inline_small_function_p): Use
585 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
586 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
587
588 2019-11-14 Martin Liska <mliska@suse.cz>
589
590 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
591 of a callee to get value of the param.
592 * ipa-inline.c (inline_insns_auto): Use proper
593 opt_for_fn.
594 * opts.c (maybe_default_option): Do not overwrite param
595 value if optimization level does not match. Note that
596 params usually have default value set via Init() keyword.
597 * params.opt: Remove -param=max-inline-insns-auto-O2.
598 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
599 * doc/invoke.texi: Remove documentation of
600 max-inline-insns-auto-O2.
601
602 2019-11-14 Martin Liska <mliska@suse.cz>
603
604 * tree-switch-conversion.c (switch_conversion::switch_conversion):
605 Do not initialize m_other_count.
606 (switch_conversion::collect): Do not count m_default_count and
607 m_other_count as we use frequencies for edges.
608 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
609
610 2019-11-14 Martin Liska <mliska@suse.cz>
611
612 PR other/92329
613 * doc/invoke.texi: Document -fallocation-dce.
614
615 2019-11-14 Martin Liska <mliska@suse.cz>
616
617 PR target/92389
618 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
619 PTA_ICELAKE_CLIENT which is later interited by
620 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
621
622 2019-11-14 Martin Liska <mliska@suse.cz>
623
624 * ipa-icf.c (sem_item_optimizer::execute): Save
625 loaded_symbols.
626 (sem_item_optimizer::parse_nonsingleton_classes):
627 Return number of loaded symbols.
628 (sem_item_optimizer::merge_classes): Print
629 statistics about totally needed symbols.
630 * ipa-icf.h (parse_nonsingleton_classes): Change return
631 type.
632 (merge_classes): Add one argument.
633
634 2019-11-14 Martin Liska <mliska@suse.cz>
635
636 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
637 func_checker::hash_operand by handling of FIELD_DECLs.
638
639 2019-11-14 Martin Liska <mliska@suse.cz>
640
641 * ipa-icf-gimple.h (func_checker::func_checker): Add
642 default constructor.
643 * ipa-icf.c (sem_function::init): Make operand_equal_p
644 and hash_operand public.
645 (sem_item::add_expr): Remove.
646 (sem_item::add_type): Remove.
647 (sem_function::hash_stmt): Use m_checker for hashing
648 of GIMPLE statements.
649 (sem_function::parse): Init with checker.
650 (sem_variable::parse): Pass NULL as checker.
651 (sem_item_optimizer::parse_funcs_and_vars):
652 Pass checker to ::parse function.
653 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
654 (sem_variable::parse): New function.
655 (sem_variable::get_hash): Only return computed hash value.
656 (sem_variable::init): Initialize hash of a variable.
657 * ipa-icf.h: Remove add_expr, add_type and add func_checker
658 to couple of functions as a new argument.
659
660 2019-11-14 Martin Liska <mliska@suse.cz>
661
662 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
663 bail out reason.
664 (func_checker::compare_gimple_assign): Likewise.
665
666 2019-11-14 Jakub Jelinek <jakub@redhat.com>
667
668 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
669 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
670 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
671
672 * omp-general.c (omp_context_name_list_prop): New function.
673 (omp_context_selector_matches): Use it. Return 0 if it returns
674 NULL.
675 (omp_context_selector_props_compare): Allow equivalency of an
676 identifier and a string literal containing no embedded zeros.
677
678 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
679
680 * range-op.cc (RANGE3): Remove.
681 (range_tests): Remove all selftest that check for multi-ranges.
682 Put tests in namespace selftest.
683 * selftest.h: Move range_tests into namespace selftest.
684 * value-range.h (class value_range): Unfriend range_tests.
685
686 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
687
688 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
689 normalize_symbolics and normalize_addresses working in place.
690 (range_fold_unary_symbolics_p): Same.
691 (range_fold_unary_symbolics_p): Same.
692 * value-range.cc (num_pairs): Same.
693 (lower_bound): Same.
694 (upper_bound): Same.
695 (contains_p): Same.
696 (normalize_addresses): Same.
697 (normalize_symbolics): Same.
698 * value-range.h (normalize_symbolics): Same.
699 (normalize_addresses): Same.
700
701 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
702
703 PR ipa/91682
704 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
705 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
706 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
707 (ipa_agg_jump_function): Remove member function equal_to.
708 (ipa_agg_jump_function_p): Remove typedef.
709 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
710 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
711 information for aggregate jump function.
712 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
713 record last definition statement.
714 (load_from_unmodified_param_or_agg): New function.
715 (ipa_known_agg_contents_list): Add new field type and value, remove
716 field constant.
717 (build_agg_jump_func_from_list): Rename parameter const_count to
718 value_count, build aggregate jump function from ipa_load_agg_data.
719 (analyze_agg_content_value): New function.
720 (extract_mem_content): Analyze memory store assignment to prepare
721 information for aggregate jump function generation.
722 (determine_known_aggregate_parts): Add new parameter fbi, remove
723 parameter aa_walk_budeget_p.
724 (update_jump_functions_after_inlining): Update aggregate jump function.
725 (ipa_find_agg_cst_for_param): Change type of parameter agg.
726 (try_make_edge_direct_simple_call): Add new parameter new_root.
727 (try_make_edge_direct_virtual_call): Add new parameter new_root and
728 new_root_info.
729 (update_indirect_edges_after_inlining): Pass new argument to
730 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
731 (ipa_write_jump_function): Write aggregate jump function to file.
732 (ipa_read_jump_function): Read aggregate jump function from file.
733 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
734 * ipa-cp.c (ipa_get_jf_arith_result): New function.
735 (ipa_agg_value_from_node): Likewise.
736 (ipa_agg_value_set_from_jfunc): Likewise.
737 (propagate_vals_across_arith_jfunc): Likewise.
738 (propagate_aggregate_lattice): Likewise.
739 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
740 (propagate_vals_across_pass_through): Call
741 propagate_vals_across_arith_jfunc.
742 (get_clone_agg_value): Move forward.
743 (propagate_aggs_across_jump_function): Handle value propagation for
744 aggregate jump function.
745 (agg_jmp_p_vec_for_t_vec): Remove.
746 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
747 with vec<ipa_agg_value>.
748 (copy_plats_to_inter, intersect_with_plats): Likewise.
749 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
750 (intersect_aggregate_with_edge): Likewise.
751 (find_aggregate_values_for_callers_subset): Likewise.
752 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
753 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
754 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
755 (gather_context_independent_values): Likewise.
756 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
757 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
758 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
759 (evaluate_properties_for_edge): Likewise.
760 (estimate_edge_devirt_benefit): Likewise.
761 (estimate_edge_size_and_time): Likewise.
762 (estimate_calls_size_and_time): Likewise.
763 (ipa_call_context::ipa_call_context): Likewise.
764 (estimate_ipcp_clone_size_and_time): Likewise.
765 * ipa-fnsummary.h (ipa_call_context): Replace
766 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
767 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
768 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
769 (do_estimate_edge_size): Likewise.
770 (do_estimate_edge_hints): Likewise.
771
772 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
773
774 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
775 binary operations.
776
777 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
778
779 * ipa-profile.c (check_argument_count): Check properly that e_info
780 is non-NULL; do not check descriptors.
781
782 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
783
784 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
785 check for ipa profiles.
786
787 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
788
789 PR c++/92421
790 * ipa-prop.c (update_indirect_edges_after_inlining):
791 Mark parameter as used.
792 * ipa-inline.c (recursive_inlining): Reset node cache
793 after inlining.
794 (inline_small_functions): Remove checking ifdef.
795 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
796 cache consistency.
797
798 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
799
800 PR ipa/92498
801 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
802 is NULL.
803 (ipa_profile): Fix reversed test.
804
805 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
806
807 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
808 (propagate_constants_topo): Fix typo.
809
810 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
811
812 * Makefile.in (OBJS): Add value-range.o.
813 (GTFILES): Add value-range.h.
814 * gengtype.c (open_base_files): Add value-range.h to list of
815 header files.
816 * tree-vrp.c: Move the following value_range related functions:
817 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
818 constant_p, set_undefined, set_varying, may_contain_p,
819 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
820 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
821 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
822 value_inside_range, ranges_from_anti_range, union_ranges,
823 intersect_ranges, intersect_helper, union_helper, union_,
824 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
825 upper_bound, contains_p, invert, intersect...
826 * value-range.cc: ...to here.
827 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
828 associated inline methods from here...
829 * value-range.h: ...to here.
830
831 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
832
833 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
834 instead of asserting its value.
835
836 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
837
838 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
839 constructors and set methods so value_range_kind is the last
840 argument and defaults to VR_RANGE.
841 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
842 * ipa-cp.c (propagate_vr_across_jump_function): Same.
843 * ipa-prop.c (ipa_get_value_range): Same.
844 (ipa_compute_jump_functions_for_edge): Same.
845 * range-op.cc (value_range_from_overflowed_bounds): Same.
846 (operator_cast::op1_range): Same.
847 (range_tests): Same.
848 * range.cc (range_nonzero): Same.
849 * tree-ssanames.c (get_range_info): Same.
850 * tree-vrp.c (value_range_equiv::set): Same.
851 (value_range::value_range): Same.
852 (value_range_equiv::value_range_equiv): Same.
853 (value_range_equiv::update): Same.
854 (value_range_equiv::deep_copy): Same.
855 (value_range_equiv::move): Same.
856 (value_range_equiv::set_undefined): Same.
857 (value_range::set): Same.
858 (value_range::set_nonzero): Same.
859 (ranges_from_anti_range): Same.
860 (extract_range_from_plus_minus_expr): Same.
861 (value_range::intersect_helper): Same.
862 (value_range_equiv::intersect): Same.
863 (value_range::union_helper): Same.
864 (value_range_equiv::union_): Same.
865 (value_range::normalize_symbolics): Same.
866 (value_range::invert): Same.
867 (determine_value_range_1): Same.
868 * tree-vrp.h (class value_range): Same.
869 (class value_range_equiv): Same.
870 * vr-values.c (set_value_range_to_nonnegative): Same.
871 (set_value_range_to_truthvalue): Same.
872 (vr_values::update_value_range): Same.
873 (vr_values::extract_range_for_var_from_comparison_expr): Same.
874 (vr_values::extract_range_from_binary_expr): Same.
875 (vr_values::extract_range_from_comparison): Same.
876 (vr_values::extract_range_basic): Same.
877 (vr_values::adjust_range_with_scev): Same.
878 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
879 (vr_values::extract_range_from_phi_node): Same.
880
881 2019-11-13 Ulrich Drepper <drepper@redhat.com>
882
883 * tree-dump.c (dequeue_and_dump): Print first tree operand
884 for VIEW_CONVERT_EXPR.
885
886 2019-11-13 Joseph Myers <joseph@codesourcery.com>
887
888 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
889 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
890 * real.c (get_max_float): Add norm_max argument.
891 * real.h (get_max_float): Update prototype.
892 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
893 get_max_float.
894
895 2019-11-13 Martin Liska <mliska@suse.cz>
896
897 * dbgcnt.c (test_sorted_dbg_counters): New.
898 (dbgcnt_c_tests): Likewise.
899 * selftest-run-tests.c (selftest::run_tests): Likewise.
900 * selftest.h (dbgcnt_c_tests): Likewise.
901
902 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
903 Martin Jambor <mjambor@suse.cz>
904
905 PR ipa/92454
906 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
907 (identify_dead_nodes): Likewise.
908
909 2019-11-13 Martin Liska <mliska@suse.cz>
910
911 * ipa-icf.c (sem_function::equals_private): Do not overuse
912 push/pop_cfun functions.
913
914 2019-11-13 Martin Liska <mliska@suse.cz>
915
916 * common.opt: Document change of -fdbg-cnt option.
917 * dbgcnt.c (DEBUG_COUNTER): Remove.
918 (dbg_cnt_is_enabled): Remove.
919 (dbg_cnt): Work with new intervals.
920 (dbg_cnt_set_limit_by_index): Set to new
921 list of intervals.
922 (dbg_cnt_set_limit_by_name): Likewise.
923 (dbg_cnt_process_single_pair): Process new format.
924 (dbg_cnt_process_opt): Likewise.
925 (dbg_cnt_list_all_counters): Likewise.
926 * doc/invoke.texi: Document change of -fdbg-cnt option.
927 (cmp_tuples): New.
928
929 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
930
931 * ipa-inline.c (ipa_inline): Check that function is defined before
932 flattening.
933
934 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
935 Julian Brown <julian@codesourcery.com>
936
937 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
938 flag_worker_partitioning is not set.
939 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
940 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
941
942 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
943
944 * config/gcn/gcn-run.c (heap_region): New global variable.
945 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
946 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
947 (get_kernarg_region): Move contents to ....
948 (get_memory_region): .... here.
949 (get_heap_region): New function.
950 (init_device): Initialize the heap_region.
951 (device_malloc): Add region parameter.
952 (struct kernargs): Move heap ....
953 (heap): ... to global scope.
954 (main): Allocate heap separate to kernargs.
955
956 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
957
958 * ipa-prop.c (ipa_print_node_jump_functions,
959 ipa_print_node_params): Print info about missing summaries.
960
961 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
962
963 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
964 the cost of generating loop masks.
965
966 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
967
968 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
969 New function.
970 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
971 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
972 (vect_transform_loop): Likewise.
973 (vect_analyze_loop_costing): Don't take the cost of versioning
974 into account for the static profitability threshold if it turns
975 out that no versioning is needed.
976
977 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
978
979 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
980 and target_option_default_node to get -fprofile-generate ctors working
981 right with LTO.
982
983 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
984
985 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
986 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
987 (vectorizable_assignment): Don't add a cost for nop conversions.
988 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
989 Likewise.
990 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
991
992 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
993
994 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
995 number of ncopies as an additional argument.
996 (vectorizable_conversion): Update call accordingly. Use "modifier"
997 to check whether a conversion is between vectors with the same
998 numbers of units.
999
1000 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1001
1002 * config/aarch64/aarch64-sve-builtins-functions.h
1003 (unary_count::expand): Use aarch64_sve_int_mode instead of
1004 mode_for_int_vector.
1005
1006 2019-11-13 Martin Liska <mliska@suse.cz>
1007
1008 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
1009
1010 2019-11-13 Martin Liska <mliska@suse.cz>
1011
1012 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1013 Remove call to finalize_options_struct.
1014
1015 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1016
1017 PR target/92055
1018 * config/avr/t-avr (avr-mcus): Do not depend on
1019 $(srcdir)/config/avr/t-multilib.
1020
1021 2019-11-13 Richard Biener <rguenther@suse.de>
1022
1023 PR tree-optimization/92473
1024 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1025 direct optab reduction in the correct type.
1026
1027 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1028
1029 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1030 hexadecimal literal.
1031
1032 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1033
1034 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1035 UNORDERED if !HONOR_NANS (DFmode).
1036 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1037 if !HONOR_NANS (<MODE>mode).
1038
1039 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1040
1041 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1042 (ipcp_verify_propagated_values): Likewise.
1043 (propagate_constants_across_call): Likewise.
1044 (propagate_constants_topo): Likewise.
1045 (ipcp_propagate_stage): Likewise.
1046
1047 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1048
1049 PR ipa/92471
1050 * ipa-profile.c (check_argument_count): Break out from ...;
1051 watch for missing summaries.
1052 (ipa_profile): Here.
1053
1054 2019-11-12 Martin Sebor <msebor@redhat.com>
1055
1056 PR tree-optimization/92412
1057 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1058 extern variables.
1059
1060 2019-11-12 Martin Sebor <msebor@redhat.com>
1061
1062 PR middle-end/83688
1063 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1064 (directive::argno): New member.
1065 (format_result::aliases, format_result::alias_count): New data members.
1066 (format_result::append_alias): New member function.
1067 (fmtresult::dst_offset): New data member.
1068 (pass_sprintf_length::call_info::dst_origin): New data member.
1069 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1070 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1071 (get_origin_and_offset): Same.
1072 (format_string): Call it.
1073 (format_directive): Call append_alias and set directive argument
1074 number.
1075 (maybe_warn_overlap): New function.
1076 (pass_sprintf_length::compute_format_length): Call it.
1077 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1078 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1079
1080 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1081
1082 PR rtl-optimization/92430
1083 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1084 dominance info at the beginning.
1085
1086 2019-11-12 Richard Biener <rguenther@suse.de>
1087
1088 PR tree-optimization/92460
1089 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1090 expression before gimplifying.
1091
1092 2019-11-12 Richard Biener <rguenther@suse.de>
1093
1094 PR tree-optimization/92461
1095 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1096 stmt after propagation.
1097
1098 2019-11-12 Martin Liska <mliska@suse.cz>
1099
1100 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1101 Use SET_OPTION_IF_UNSET.
1102 (ix86_option_override_internal): Likewise.
1103 * opts.c (default_options_optimization): Likewise.
1104 (finish_options): Likewise.
1105 (enable_fdo_optimizations): Likewise.
1106 (common_handle_option): Likewise.
1107
1108 2019-11-12 Martin Liska <mliska@suse.cz>
1109
1110 * common/common-target.def: Remove option_validate_param and
1111 option_default_params.
1112 * common/common-targhooks.c (default_option_validate_param):
1113 Remove.
1114 * common/common-targhooks.h (default_option_validate_param):
1115 Remove.
1116 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1117 Remove usage of this.
1118 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1119 (aarch64_option_validate_param): Likewise.
1120 (aarch64_option_default_params): Likewise
1121 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1122 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1123 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1124 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1125 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1126 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1127 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1128 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1129 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1130 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1131 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1132 guard_size here.
1133 * doc/tm.texi: Remove option_default_params and option_validate_param.
1134 * doc/tm.texi.in: Likewise.
1135
1136 2019-11-12 Martin Liska <mliska@suse.cz>
1137
1138 * common/common-target.def:
1139 Do not mention set_default_param_value
1140 and set_param_value.
1141 * doc/tm.texi: Likewise.
1142
1143 2019-11-12 Martin Liska <mliska@suse.cz>
1144
1145 * common.opt: Remove param_values.
1146 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1147 Remove finalize_options_struct.
1148 * gcc.c (driver::decode_argv): Do not call global_init_params
1149 and finish_params.
1150 (driver::finalize): Do not call params_c_finalize
1151 and finalize_options_struct.
1152 * opt-suggestions.c (option_proposer::get_completions): Remove
1153 special casing of params.
1154 (option_proposer::find_param_completions): Remove.
1155 (test_completion_partial_match): Update expected output.
1156 * opt-suggestions.h: Remove find_param_completions.
1157 * opts-common.c (add_misspelling_candidates): Add
1158 --param with a space.
1159 * opts.c (handle_param): Remove.
1160 (init_options_struct):. Remove init_options_struct and
1161 similar calls.
1162 (finalize_options_struct): Remove.
1163 (common_handle_option): Use SET_OPTION_IF_UNSET.
1164 * opts.h (finalize_options_struct): Remove.
1165 * toplev.c (general_init): Do not call global_init_params.
1166 (toplev::finalize): Do not call params_c_finalize and
1167 finalize_options_struct.
1168
1169 2019-11-12 Martin Liska <mliska@suse.cz>
1170
1171 * Makefile.in: Remove PARAMS_H and params.list
1172 and params.options.
1173 * params-enum.h: Remove.
1174 * params-list.h: Remove.
1175 * params-options.h: Remove.
1176 * params.c: Remove.
1177 * params.def: Remove.
1178 * params.h: Remove.
1179 * asan.c: Do not include params.h.
1180 * auto-profile.c: Likewise.
1181 * bb-reorder.c: Likewise.
1182 * builtins.c: Likewise.
1183 * cfgcleanup.c: Likewise.
1184 * cfgexpand.c: Likewise.
1185 * cfgloopanal.c: Likewise.
1186 * cgraph.c: Likewise.
1187 * combine.c: Likewise.
1188 * common/config/aarch64/aarch64-common.c: Likewise.
1189 * common/config/gcn/gcn-common.c: Likewise.
1190 * common/config/ia64/ia64-common.c: Likewise.
1191 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1192 * common/config/rs6000/rs6000-common.c: Likewise.
1193 * common/config/sh/sh-common.c: Likewise.
1194 * config/aarch64/aarch64.c: Likewise.
1195 * config/alpha/alpha.c: Likewise.
1196 * config/arm/arm.c: Likewise.
1197 * config/avr/avr.c: Likewise.
1198 * config/csky/csky.c: Likewise.
1199 * config/i386/i386-builtins.c: Likewise.
1200 * config/i386/i386-expand.c: Likewise.
1201 * config/i386/i386-features.c: Likewise.
1202 * config/i386/i386-options.c: Likewise.
1203 * config/i386/i386.c: Likewise.
1204 * config/ia64/ia64.c: Likewise.
1205 * config/rs6000/rs6000-logue.c: Likewise.
1206 * config/rs6000/rs6000.c: Likewise.
1207 * config/s390/s390.c: Likewise.
1208 * config/sparc/sparc.c: Likewise.
1209 * config/visium/visium.c: Likewise.
1210 * coverage.c: Likewise.
1211 * cprop.c: Likewise.
1212 * cse.c: Likewise.
1213 * cselib.c: Likewise.
1214 * dse.c: Likewise.
1215 * emit-rtl.c: Likewise.
1216 * explow.c: Likewise.
1217 * final.c: Likewise.
1218 * fold-const.c: Likewise.
1219 * gcc.c: Likewise.
1220 * gcse.c: Likewise.
1221 * ggc-common.c: Likewise.
1222 * ggc-page.c: Likewise.
1223 * gimple-loop-interchange.cc: Likewise.
1224 * gimple-loop-jam.c: Likewise.
1225 * gimple-loop-versioning.cc: Likewise.
1226 * gimple-ssa-split-paths.c: Likewise.
1227 * gimple-ssa-sprintf.c: Likewise.
1228 * gimple-ssa-store-merging.c: Likewise.
1229 * gimple-ssa-strength-reduction.c: Likewise.
1230 * gimple-ssa-warn-alloca.c: Likewise.
1231 * gimple-ssa-warn-restrict.c: Likewise.
1232 * graphite-isl-ast-to-gimple.c: Likewise.
1233 * graphite-optimize-isl.c: Likewise.
1234 * graphite-scop-detection.c: Likewise.
1235 * graphite-sese-to-poly.c: Likewise.
1236 * graphite.c: Likewise.
1237 * haifa-sched.c: Likewise.
1238 * hsa-gen.c: Likewise.
1239 * ifcvt.c: Likewise.
1240 * ipa-cp.c: Likewise.
1241 * ipa-fnsummary.c: Likewise.
1242 * ipa-inline-analysis.c: Likewise.
1243 * ipa-inline.c: Likewise.
1244 * ipa-polymorphic-call.c: Likewise.
1245 * ipa-profile.c: Likewise.
1246 * ipa-prop.c: Likewise.
1247 * ipa-split.c: Likewise.
1248 * ipa-sra.c: Likewise.
1249 * ira-build.c: Likewise.
1250 * ira-conflicts.c: Likewise.
1251 * loop-doloop.c: Likewise.
1252 * loop-invariant.c: Likewise.
1253 * loop-unroll.c: Likewise.
1254 * lra-assigns.c: Likewise.
1255 * lra-constraints.c: Likewise.
1256 * modulo-sched.c: Likewise.
1257 * opt-suggestions.c: Likewise.
1258 * opts.c: Likewise.
1259 * postreload-gcse.c: Likewise.
1260 * predict.c: Likewise.
1261 * reload.c: Likewise.
1262 * reorg.c: Likewise.
1263 * resource.c: Likewise.
1264 * sanopt.c: Likewise.
1265 * sched-deps.c: Likewise.
1266 * sched-ebb.c: Likewise.
1267 * sched-rgn.c: Likewise.
1268 * sel-sched-ir.c: Likewise.
1269 * sel-sched.c: Likewise.
1270 * shrink-wrap.c: Likewise.
1271 * stmt.c: Likewise.
1272 * targhooks.c: Likewise.
1273 * toplev.c: Likewise.
1274 * tracer.c: Likewise.
1275 * trans-mem.c: Likewise.
1276 * tree-chrec.c: Likewise.
1277 * tree-data-ref.c: Likewise.
1278 * tree-if-conv.c: Likewise.
1279 * tree-inline.c: Likewise.
1280 * tree-loop-distribution.c: Likewise.
1281 * tree-parloops.c: Likewise.
1282 * tree-predcom.c: Likewise.
1283 * tree-profile.c: Likewise.
1284 * tree-scalar-evolution.c: Likewise.
1285 * tree-sra.c: Likewise.
1286 * tree-ssa-ccp.c: Likewise.
1287 * tree-ssa-dom.c: Likewise.
1288 * tree-ssa-dse.c: Likewise.
1289 * tree-ssa-ifcombine.c: Likewise.
1290 * tree-ssa-loop-ch.c: Likewise.
1291 * tree-ssa-loop-im.c: Likewise.
1292 * tree-ssa-loop-ivcanon.c: Likewise.
1293 * tree-ssa-loop-ivopts.c: Likewise.
1294 * tree-ssa-loop-manip.c: Likewise.
1295 * tree-ssa-loop-niter.c: Likewise.
1296 * tree-ssa-loop-prefetch.c: Likewise.
1297 * tree-ssa-loop-unswitch.c: Likewise.
1298 * tree-ssa-math-opts.c: Likewise.
1299 * tree-ssa-phiopt.c: Likewise.
1300 * tree-ssa-pre.c: Likewise.
1301 * tree-ssa-reassoc.c: Likewise.
1302 * tree-ssa-sccvn.c: Likewise.
1303 * tree-ssa-scopedtables.c: Likewise.
1304 * tree-ssa-sink.c: Likewise.
1305 * tree-ssa-strlen.c: Likewise.
1306 * tree-ssa-structalias.c: Likewise.
1307 * tree-ssa-tail-merge.c: Likewise.
1308 * tree-ssa-threadbackward.c: Likewise.
1309 * tree-ssa-threadedge.c: Likewise.
1310 * tree-ssa-uninit.c: Likewise.
1311 * tree-switch-conversion.c: Likewise.
1312 * tree-vect-data-refs.c: Likewise.
1313 * tree-vect-loop.c: Likewise.
1314 * tree-vect-slp.c: Likewise.
1315 * tree-vrp.c: Likewise.
1316 * tree.c: Likewise.
1317 * value-prof.c: Likewise.
1318 * var-tracking.c: Likewise.
1319
1320 2019-11-12 Martin Liska <mliska@suse.cz>
1321
1322 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
1323 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
1324 macro.
1325 (asan_sanitize_allocas_p): Likewise.
1326 (asan_emit_stack_protection): Likewise.
1327 (asan_protect_global): Likewise.
1328 (instrument_derefs): Likewise.
1329 (instrument_builtin_call): Likewise.
1330 (asan_expand_mark_ifn): Likewise.
1331 * auto-profile.c (auto_profile): Likewise.
1332 * bb-reorder.c (copy_bb_p): Likewise.
1333 (duplicate_computed_gotos): Likewise.
1334 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
1335 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
1336 (try_crossjump_bb): Likewise.
1337 * cfgexpand.c (defer_stack_allocation): Likewise.
1338 (stack_protect_classify_type): Likewise.
1339 (pass_expand::execute): Likewise.
1340 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1341 (estimate_reg_pressure_cost): Likewise.
1342 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
1343 * combine.c (combine_instructions): Likewise.
1344 (record_value_for_reg): Likewise.
1345 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
1346 (aarch64_option_default_params): Likewise.
1347 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1348 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1349 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1350 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1351 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
1352 (aarch64_allocate_and_probe_stack_space): Likewise.
1353 (aarch64_expand_epilogue): Likewise.
1354 (aarch64_override_options_internal): Likewise.
1355 * config/alpha/alpha.c (alpha_option_override): Likewise.
1356 * config/arm/arm.c (arm_option_override): Likewise.
1357 (arm_valid_target_attribute_p): Likewise.
1358 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1359 * config/i386/i386.c (get_probe_interval): Likewise.
1360 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
1361 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1362 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
1363 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
1364 (get_stack_clash_protection_guard_size): Likewise.
1365 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1366 * config/s390/s390.c (allocate_stack_space): Likewise.
1367 (s390_emit_prologue): Likewise.
1368 (s390_option_override_internal): Likewise.
1369 * config/sparc/sparc.c (sparc_option_override): Likewise.
1370 * config/visium/visium.c (visium_option_override): Likewise.
1371 * coverage.c (get_coverage_counts): Likewise.
1372 (coverage_compute_profile_id): Likewise.
1373 (coverage_begin_function): Likewise.
1374 (coverage_end_function): Likewise.
1375 * cse.c (cse_find_path): Likewise.
1376 (cse_extended_basic_block): Likewise.
1377 (cse_main): Likewise.
1378 * cselib.c (cselib_invalidate_mem): Likewise.
1379 * dse.c (dse_step1): Likewise.
1380 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
1381 (get_max_insn_count): Likewise.
1382 (make_debug_insn_raw): Likewise.
1383 (init_emit): Likewise.
1384 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1385 * final.c (compute_alignments): Likewise.
1386 * fold-const.c (fold_range_test): Likewise.
1387 (fold_truth_andor): Likewise.
1388 (tree_single_nonnegative_warnv_p): Likewise.
1389 (integer_valued_real_single_p): Likewise.
1390 * gcse.c (want_to_gcse_p): Likewise.
1391 (prune_insertions_deletions): Likewise.
1392 (hoist_code): Likewise.
1393 (gcse_or_cprop_is_too_expensive): Likewise.
1394 * ggc-common.c: Likewise.
1395 * ggc-page.c (ggc_collect): Likewise.
1396 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1397 (MAX_DATAREFS): Likewise.
1398 (OUTER_STRIDE_RATIO): Likewise.
1399 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1400 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1401 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1402 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1403 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1404 (imm_store_chain_info::output_merged_store): Likewise.
1405 (pass_store_merging::process_store): Likewise.
1406 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1407 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1408 (scop_to_isl_ast): Likewise.
1409 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1410 (optimize_isl): Likewise.
1411 * graphite-scop-detection.c (build_scops): Likewise.
1412 * haifa-sched.c (set_modulo_params): Likewise.
1413 (rank_for_schedule): Likewise.
1414 (model_add_to_worklist): Likewise.
1415 (model_promote_insn): Likewise.
1416 (model_choose_insn): Likewise.
1417 (queue_to_ready): Likewise.
1418 (autopref_multipass_dfa_lookahead_guard): Likewise.
1419 (schedule_block): Likewise.
1420 (sched_init): Likewise.
1421 * hsa-gen.c (init_prologue): Likewise.
1422 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1423 (cond_move_process_if_block): Likewise.
1424 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1425 (merge_agg_lats_step): Likewise.
1426 (devirtualization_time_bonus): Likewise.
1427 (hint_time_bonus): Likewise.
1428 (incorporate_penalties): Likewise.
1429 (good_cloning_opportunity_p): Likewise.
1430 (ipcp_propagate_stage): Likewise.
1431 * ipa-fnsummary.c (decompose_param_expr): Likewise.
1432 (set_switch_stmt_execution_predicate): Likewise.
1433 (analyze_function_body): Likewise.
1434 (compute_fn_summary): Likewise.
1435 * ipa-inline-analysis.c (estimate_growth): Likewise.
1436 * ipa-inline.c (caller_growth_limits): Likewise.
1437 (inline_insns_single): Likewise.
1438 (inline_insns_auto): Likewise.
1439 (can_inline_edge_by_limits_p): Likewise.
1440 (want_early_inline_function_p): Likewise.
1441 (big_speedup_p): Likewise.
1442 (want_inline_small_function_p): Likewise.
1443 (want_inline_self_recursive_call_p): Likewise.
1444 (edge_badness): Likewise.
1445 (recursive_inlining): Likewise.
1446 (compute_max_insns): Likewise.
1447 (early_inliner): Likewise.
1448 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
1449 * ipa-profile.c (ipa_profile): Likewise.
1450 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1451 (ipa_analyze_node): Likewise.
1452 (ipcp_transform_function): Likewise.
1453 * ipa-split.c (consider_split): Likewise.
1454 * ipa-sra.c (allocate_access): Likewise.
1455 (process_scan_results): Likewise.
1456 (ipa_sra_summarize_function): Likewise.
1457 (pull_accesses_from_callee): Likewise.
1458 * ira-build.c (loop_compare_func): Likewise.
1459 (mark_loops_for_removal): Likewise.
1460 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1461 * loop-doloop.c (doloop_optimize): Likewise.
1462 * loop-invariant.c (gain_for_invariant): Likewise.
1463 (move_loop_invariants): Likewise.
1464 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
1465 (decide_unroll_runtime_iterations): Likewise.
1466 (decide_unroll_stupid): Likewise.
1467 (expand_var_during_unrolling): Likewise.
1468 * lra-assigns.c (spill_for): Likewise.
1469 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
1470 * modulo-sched.c (sms_schedule): Likewise.
1471 (DFA_HISTORY): Likewise.
1472 * opts.c (default_options_optimization): Likewise.
1473 (finish_options): Likewise.
1474 (common_handle_option): Likewise.
1475 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1476 (if): Likewise.
1477 * predict.c (get_hot_bb_threshold): Likewise.
1478 (maybe_hot_count_p): Likewise.
1479 (probably_never_executed): Likewise.
1480 (predictable_edge_p): Likewise.
1481 (predict_loops): Likewise.
1482 (expr_expected_value_1): Likewise.
1483 (tree_predict_by_opcode): Likewise.
1484 (handle_missing_profiles): Likewise.
1485 * reload.c (find_equiv_reg): Likewise.
1486 * reorg.c (redundant_insn): Likewise.
1487 * resource.c (mark_target_live_regs): Likewise.
1488 (incr_ticks_for_insn): Likewise.
1489 * sanopt.c (pass_sanopt::execute): Likewise.
1490 * sched-deps.c (sched_analyze_1): Likewise.
1491 (sched_analyze_2): Likewise.
1492 (sched_analyze_insn): Likewise.
1493 (deps_analyze_insn): Likewise.
1494 * sched-ebb.c (schedule_ebbs): Likewise.
1495 * sched-rgn.c (find_single_block_region): Likewise.
1496 (too_large): Likewise.
1497 (haifa_find_rgns): Likewise.
1498 (extend_rgns): Likewise.
1499 (new_ready): Likewise.
1500 (schedule_region): Likewise.
1501 (sched_rgn_init): Likewise.
1502 * sel-sched-ir.c (make_region_from_loop): Likewise.
1503 * sel-sched-ir.h (MAX_WS): Likewise.
1504 * sel-sched.c (process_pipelined_exprs): Likewise.
1505 (sel_setup_region_sched_flags): Likewise.
1506 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1507 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1508 * toplev.c (print_version): Likewise.
1509 (process_options): Likewise.
1510 * tracer.c (tail_duplicate): Likewise.
1511 * trans-mem.c (tm_log_add): Likewise.
1512 * tree-chrec.c (chrec_fold_plus_1): Likewise.
1513 * tree-data-ref.c (split_constant_offset): Likewise.
1514 (compute_all_dependences): Likewise.
1515 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
1516 * tree-inline.c (remap_gimple_stmt): Likewise.
1517 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
1518 * tree-parloops.c (MIN_PER_THREAD): Likewise.
1519 (create_parallel_loop): Likewise.
1520 * tree-predcom.c (determine_unroll_factor): Likewise.
1521 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
1522 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1523 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1524 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
1525 (dse_optimize_redundant_stores): Likewise.
1526 (dse_classify_store): Likewise.
1527 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1528 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1529 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
1530 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1531 (try_peel_loop): Likewise.
1532 (tree_unroll_loops_completely): Likewise.
1533 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1534 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
1535 (MAX_CONSIDERED_GROUPS): Likewise.
1536 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
1537 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
1538 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
1539 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
1540 (L1_CACHE_SIZE_BYTES): Likewise.
1541 (L2_CACHE_SIZE_BYTES): Likewise.
1542 (should_issue_prefetch_p): Likewise.
1543 (schedule_prefetches): Likewise.
1544 (determine_unroll_factor): Likewise.
1545 (volume_of_references): Likewise.
1546 (add_subscript_strides): Likewise.
1547 (self_reuse_distance): Likewise.
1548 (mem_ref_count_reasonable_p): Likewise.
1549 (insn_to_prefetch_ratio_too_small_p): Likewise.
1550 (loop_prefetch_arrays): Likewise.
1551 (tree_ssa_prefetch_arrays): Likewise.
1552 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1553 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1554 (convert_mult_to_fma): Likewise.
1555 (math_opts_dom_walker::after_dom_children): Likewise.
1556 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1557 (hoist_adjacent_loads): Likewise.
1558 (gate_hoist_loads): Likewise.
1559 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1560 (compute_partial_antic_aux): Likewise.
1561 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
1562 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
1563 (vn_reference_lookup): Likewise.
1564 (do_rpo_vn): Likewise.
1565 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
1566 * tree-ssa-sink.c (select_best_block): Likewise.
1567 * tree-ssa-strlen.c (new_stridx): Likewise.
1568 (new_addr_stridx): Likewise.
1569 (get_range_strlen_dynamic): Likewise.
1570 (class ssa_name_limit_t): Likewise.
1571 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1572 (create_variable_info_for_1): Likewise.
1573 (init_alias_vars): Likewise.
1574 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1575 (tail_merge_optimize): Likewise.
1576 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1577 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1578 (thread_jumps::find_jump_threads_backwards): Likewise.
1579 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1580 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1581 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1582 (jump_table_cluster::can_be_handled): Likewise.
1583 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1584 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1585 (param_switch_conversion_branch_ratio): Likewise.
1586 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1587 (vect_enhance_data_refs_alignment): Likewise.
1588 (vect_prune_runtime_alias_test_list): Likewise.
1589 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1590 (vect_get_datarefs_in_loop): Likewise.
1591 (vect_analyze_loop): Likewise.
1592 * tree-vect-slp.c (vect_slp_bb): Likewise.
1593 * tree-vectorizer.h: Likewise.
1594 * tree-vrp.c (find_switch_asserts): Likewise.
1595 (vrp_prop::check_mem_ref): Likewise.
1596 * tree.c (wide_int_to_tree_1): Likewise.
1597 (cache_integer_cst): Likewise.
1598 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1599 (reverse_op): Likewise.
1600 (vt_find_locations): Likewise.
1601
1602 2019-11-12 Martin Liska <mliska@suse.cz>
1603
1604 * Makefile.in: Include params.opt.
1605 * flag-types.h (enum parloops_schedule_type): Add
1606 parloops_schedule_type used in params.opt.
1607 * params.opt: New file.
1608
1609 2019-11-12 Martin Liska <mliska@suse.cz>
1610
1611 * common.opt: Remove --param and --param= options.
1612 * opt-functions.awk: Mark CL_PARAMS for options
1613 that have Param keyword.
1614 * opts-common.c (decode_cmdline_options_to_array):
1615 Replace --param key=value with --param=key=value.
1616 * opts.c (print_filtered_help): Remove special
1617 printing of params.
1618 (print_specific_help): Update title for params.
1619 (common_handle_option): Do not handle OPT__param.
1620 opts.h (SET_OPTION_IF_UNSET): New macro.
1621 * doc/options.texi: Document Param keyword.
1622
1623 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1624 Frederik Harwath <frederik@codesourcery.com>
1625 Thomas Schwinge <thomas@codesourcery.com>
1626
1627 gcc/
1628 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1629 enumeration constant.
1630 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1631 (is_gimple_omp_offloaded): Likewise.
1632 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1633 constant. Adjust the value of ORT_NONE accordingly.
1634 (is_gimple_stmt): Handle OACC_SERIAL.
1635 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1636 (gomp_needs_data_present): Likewise.
1637 (gimplify_adjust_omp_clauses): Likewise.
1638 (gimplify_omp_workshare): Handle OACC_SERIAL.
1639 (gimplify_expr): Likewise.
1640 * omp-expand.c (expand_omp_target):
1641 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1642 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1643 * omp-low.c (is_oacc_parallel): Rename function to...
1644 (is_oacc_parallel_or_serial): ... this.
1645 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1646 (scan_sharing_clauses): Adjust accordingly.
1647 (scan_omp_for): Likewise.
1648 (lower_oacc_head_mark): Likewise.
1649 (convert_from_firstprivate_int): Likewise.
1650 (lower_omp_target): Likewise.
1651 (check_omp_nesting_restrictions): Handle
1652 GF_OMP_TARGET_KIND_OACC_SERIAL.
1653 (lower_oacc_reductions): Likewise.
1654 (lower_omp_target): Likewise.
1655 * tree.def (OACC_SERIAL): New tree code.
1656 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1657
1658 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1659
1660 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1661
1662 PR target/92449
1663 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1664 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1665
1666 PR tree-optimization/92452
1667 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1668 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1669 MINUS_EXPR on it.
1670
1671 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1672
1673 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1674 safelen with 0.
1675
1676 2019-11-12 Alan Modra <amodra@gmail.com>
1677
1678 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1679 element of unspec vec.
1680 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1681 PC-relative TLS.
1682 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1683 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1684 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1685 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1686
1687 2019-11-12 Alan Modra <amodra@gmail.com>
1688
1689 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1690 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1691 (IS_NOMARK_TLSGETADDR): Likewise.
1692 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1693 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1694 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1695 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1696 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1697 (rs6000_indirect_call_template_1): Likewise.
1698 (rs6000_pltseq_template): Likewise.
1699 (rs6000_opt_vars): Remove "tls-markers" entry.
1700 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1701 with TARGET_ELF.
1702 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1703 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1704 (pltseq_plt_pcrel<mode>): Likewise.
1705 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1706 (call_value_local64): Likewise.
1707 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1708 output and length attribute sub-expression.
1709 (call_value_nonlocal_sysv<mode>),
1710 (call_value_nonlocal_sysv_secure<mode>),
1711 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1712 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1713 (call_value_indirect_pcrel<mode>): Likewise.
1714 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1715 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1716 * configure: Regenerate.
1717 * config.in: Regenerate.
1718
1719 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1720
1721 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1722 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1723 address being a prefixed load/store.
1724 (stack_protect_testdi): Deal with either address being a prefixed
1725 load.
1726
1727 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1728
1729 PR bootstrap/92433
1730 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1731 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1732 std::swap.
1733
1734 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1735
1736 PR tree-optimization/92420
1737 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1738 up file.
1739 (get_group_load_store_type): Use it for reversed SLP accesses.
1740
1741 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1742
1743 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1744 summary.
1745 (ipcp_transformation_t::duplicate): Break out from ...
1746 (ipa_node_params_t::duplicate): ... here; add copying of agg
1747 replacements.
1748 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1749 (ipcp_transformation_t): Add duplicate.
1750
1751 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1752
1753 PR fortran/91828
1754 * doc/install.texi: Document that the minimum MPFR version is
1755 3.1.0.
1756
1757 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1758
1759 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1760 use new register constraint letters.
1761
1762 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1763
1764 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1765 as well, if interesting recover the symbol and re-legitimize the
1766 pic address.
1767
1768 2019-11-11 Martin Liska <mliska@suse.cz>
1769
1770 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1771 alphabetically.
1772
1773 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1774
1775 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1776 account when checking if there are enough iterations to vectorize
1777 epilogue.
1778
1779 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1780 Kwok Cheung Yeung <kcy@codesourcery.com>
1781
1782 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1783 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1784 (LANG_HOOKS_DECLS): Rename also here.
1785 * langhooks.h (lang_hooks_for_decls): Rename
1786 omp_is_optional_argument to omp_check_optional_argument; take
1787 additional bool argument.
1788 * omp-general.h (omp_check_optional_argument): Likewise.
1789 * omp-general.h (omp_check_optional_argument): Likewise.
1790 * omp-low.c (lower_omp_target): Update calls; handle absent
1791 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1792
1793 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1794
1795 PR target/87833
1796 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1797 -fPIC and -shared the last to create offload image.
1798
1799 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1800
1801 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1802 of 'offset'.
1803
1804 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1805 (config.status): Use/depend on it.
1806 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1807 * configure: Regenerate.
1808
1809 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1810
1811 PR tree-optimization/88760
1812 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1813 * gcc/common/config/rs6000/rs6000-common.c
1814 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1815 Turn on -funroll-loops and -munroll-only-small-loops.
1816 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1817 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1818 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1819 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1820 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1821 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1822
1823 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1824
1825 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1826 Make scalar_load, vector_load, unaligned_load and
1827 vector_gather_load cost more to conform hardware latency and
1828 insn cost settings.
1829
1830 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1831
1832 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1833 (MACHO_SYMBOL_LINKER_VIS_P): New.
1834
1835 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1836
1837 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1838 registers in eliminable_regset.
1839
1840 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1841
1842 * ipa-inline.c (compute_uninlined_call_time,
1843 compute_inlined_call_time): Take edge frequency as
1844 parameter rather than computing it by itself.
1845 (big_speedup_p, edge_badness): Manually CSE sreal
1846 frequency calculations.
1847
1848 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1849
1850 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1851 case where profiles are same.
1852
1853 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1854
1855 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1856
1857 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1858
1859 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1860 args summaries of inlined edge unless it holds info about
1861 described reference.
1862
1863 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1864
1865 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1866 (*movcc_internal1): Rename to...
1867 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1868
1869 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1870
1871 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1872 (cgraph_node::create_virtual_clone): Copy it.
1873 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1874 summaries.
1875 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1876 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1877 is disabled.
1878 (propagate_constants_across_call): If callee is not analyzed, give up.
1879 (propagate_constants_topo): Lower to bottom latties of all callees of
1880 functions with ipa-cp disabled.
1881 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1882 (cgraph_edge_brings_value_p): Check for availability first.
1883 (create_specialized_node): Set ipcp_clone.
1884 (ipcp_store_bits_results): Check that info is present.
1885 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1886 thunks.
1887 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1888 conservative when callee summary is missing.
1889 (remap_edge_summaries): Lookup call summary only when needed.
1890 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1891 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1892 Use get_create.
1893 (ipa_analyze_node): Use get_create.
1894 (propagate_controlled_uses): Do not propagate when function is not
1895 analyzed.
1896 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1897 (ipa_read_node_info): Use get_create.
1898 * ipa-prop.h (IPA_NODE_REF): Use get.
1899 (IPA_NODE_REF_GET_CREATE): New.
1900
1901 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1902
1903 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1904 on function symbol.
1905
1906 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1907
1908 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1909 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1910 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1911 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1912
1913 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1914
1915 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1916 capping the growth cumulated.
1917 (offline_size): Break out from ...
1918 (estimate_growth): ... here.
1919 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1920 parameters.
1921 (growth_likely_positive): Turn to ...
1922 (growth_positive_p): Re-implement.
1923 * ipa-inline.h (growth_likely_positive): Remove.
1924 (growth_positive_p): Declare.
1925 * ipa-inline.c (want_inline_small_function_p): Use
1926 growth_positive_p.
1927 (want_inline_function_to_all_callers_p): Likewise.
1928
1929 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1930
1931 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1932 calculation of min_size.
1933 (ipa_update_overall_fn_summary): Likewise.
1934
1935 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1936
1937 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1938 estimate_edge_devirt_benefit when not computing hints;
1939 do not compute time when not asked for.
1940 (estimate_calls_size_and_time): Pass NULL hints and time when
1941 these are not computed; do not evaluate hint predicates when these are
1942 not computed.
1943 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1944 frequency.
1945
1946 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1947
1948 PR tree-optimization/92401
1949 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1950 if res_op->code is an expression with code length 1.
1951 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1952 if res_op->code is an expression with code length 2.
1953 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1954 if res_op->code is an expression with code length 3.
1955
1956 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1957
1958 * config/darwin.c (machopic_mcount_stub_name): Validate the
1959 symbol stub name when it is created.
1960 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1961 stub validation.
1962
1963 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1964
1965 * symtab.c: Fix comment typos.
1966 * cgraphunit.c: Likewise.
1967 * cgraph.h: Likewise.
1968 * cgraphclones.c: Likewise.
1969 * cgraph.c: Likewise.
1970 * varpool.c: Likewise.
1971 * tree-ssa-strlen.c: Likewise.
1972 * ipa-sra.c: Likewise.
1973 (scan_expr_access, check_all_callers_for_issues): Fix typo
1974 in a dump message.
1975
1976 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1977
1978 * config/darwin-protos.h: Add include quard.
1979
1980 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1981
1982 * range-op.h (range_operator::fold_range): Return result in a
1983 reference parameter instead of by value.
1984 (range_operator::wi_fold): Same.
1985 * range-op.cc (range_operator::wi_fold): Return result in a reference
1986 parameter instead of by value.
1987 (range_operator::fold_range): Same.
1988 (value_range_from_overflowed_bounds): Same.
1989 (value_range_with_overflow): Same
1990 (create_possibly_reversed_range): Same.
1991 (operator_equal::fold_range): Same.
1992 (operator_not_equal::fold_range): Same.
1993 (operator_lt::fold_range): Same.
1994 (operator_le::fold_range): Same.
1995 (operator_gt::fold_range): Same.
1996 (operator_ge::fold_range): Same.
1997 (operator_plus::wi_fold): Same.
1998 (operator_plus::op1_range): Change call to fold_range.
1999 (operator_plus::op2_range): Change call to fold_range.
2000 (operator_minus::wi_fold): Return result via reference parameter.
2001 (operator_minus::op1_range): Change call to fold_range.
2002 (operator_minus::op2_range): Change call to fold_range.
2003 (operator_min::wi_fold): Return result via reference parameter.
2004 (operator_max::wi_fold): Same.
2005 (cross_product_operator::wi_cross_product): Same.
2006 (operator_mult::wi_fold): Same.
2007 (operator_div::wi_fold): Same.
2008 (operator_div op_floor_div): Fix whitespace.
2009 (operator_exact_divide::op1_range): Change call to fold_range.
2010 (operator_lshift::fold_range): Return result via reference parameter.
2011 (operator_lshift::wi_fold): Same.
2012 (operator_rshift::fold_range): Same.
2013 (operator_rshift::wi_fold): Same.
2014 (operator_cast::fold_range): Same.
2015 (operator_cast::op1_range): Change calls to fold_range.
2016 (operator_logical_and::fold_range): Return result via reference.
2017 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2018 (operator_bitwise_and::wi_fold): Return result via reference.
2019 (operator_logical_or::fold_range): Same.
2020 (operator_bitwise_or::wi_fold): Same.
2021 (operator_bitwise_xor::wi_fold): Same.
2022 (operator_trunc_mod::wi_fold): Same.
2023 (operator_logical_not::fold_range): Same.
2024 (operator_bitwise_not::fold_range): Same.
2025 (operator_bitwise_not::op1_range): Change call to fold_range.
2026 (operator_cst::fold_range): Return result via reference.
2027 (operator_identity::fold_range): Same.
2028 (operator_abs::wi_fold): Same.
2029 (operator_absu::wi_fold): Same.
2030 (operator_negate::fold_range): Same.
2031 (operator_negate::op1_range): Change call to fold_range.
2032 (operator_addr_expr::fold_range): Return result via reference.
2033 (operator_addr_expr::op1_range): Change call to fold_range.
2034 (operator_pointer_plus::wi_fold): Return result via reference.
2035 (operator_pointer_min_max::wi_fold): Same.
2036 (operator_pointer_and::wi_fold): Same.
2037 (operator_pointer_or::wi_fold): Same.
2038 (range_op_handler): Change call to fold_range.
2039 (range_cast): Same.
2040 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2041 fold_range.
2042 (range_fold_unary_symbolics_p): Same.
2043 (range_fold_binary_expr): Same.
2044 (range_fold_unary_expr): Same.
2045
2046 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2047
2048 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2049 vector type as an argument rather than reading it from the
2050 stmt_vec_info.
2051 (vect_create_epilog_for_reduction): Update accordingly.
2052 (vectorizable_reduction): Likewise.
2053 (vect_transform_cycle_phi): Likewise.
2054
2055 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2056
2057 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2058 the comparison codes that make sense for the mode used, and only the
2059 codes that can be done with a single branch instruction.
2060
2061 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2062
2063 PR tree-optimization/92351
2064 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2065 peeling the main loop for alignment, make sure to set the misalignment
2066 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2067
2068 2019-11-08 Richard Biener <rguenther@suse.de>
2069
2070 * dbgcnt.def (ivopts_loop): Add.
2071 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2072 ivopts_loop before optimizing a loop.
2073
2074 2019-11-08 Richard Biener <rguenther@suse.de>
2075
2076 PR ipa/92409
2077 * tree-inline.c (declare_return_variable): Properly handle
2078 type mismatches for the return slot.
2079
2080 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2081
2082 PR target/92095
2083 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2084 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2085 change.
2086 (got_helper_needed): New static variable.
2087 (output_load_pcrel_sym): New function.
2088 (get_pc_thunk_name): Remove after inlining...
2089 (load_got_register): ...here. Rework the initialization of the GOT
2090 register and of the GOT helper.
2091 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2092 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2093 helper must be emitted. Use output_asm_insn instead of fprintf.
2094 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2095 if optimization is enabled.
2096 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2097 by calling output_load_pcrel_sym.
2098
2099 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2100
2101 * tree-sra.c (create_access): Delay disqualifying the base
2102 for poly_int values until we know we have a base.
2103
2104 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2105
2106 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2107 for loops with SIMDUID set. Enable epilogue vectorization for loops
2108 with SIMDLEN set after finding a main loop with a VF that matches it.
2109
2110 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2111
2112 PR target/92038
2113 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2114 value only, return non-NULL if there is a single non-clobber
2115 constituent store even if there are constituent clobbers and return
2116 one of clobber constituent stores if all constituent stores are
2117 clobbers.
2118 (split_group): Handle clobbers.
2119 (imm_store_chain_info::output_merged_store): When computing
2120 bzero_first, look after all clobbers at the start. Don't count
2121 clobber stmts in orig_num_stmts, except if the first orig store is
2122 a clobber covering the whole area and split_stores cover the whole
2123 area, consider equal number of stmts ok. Punt if split_stores
2124 contains only ->orig stores and their number plus number of original
2125 clobbers is equal to original number of stmts. For ->orig, look past
2126 clobbers in the constituent stores.
2127 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2128 stmts.
2129 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2130 rhs.
2131 (store_valid_for_store_merging_p): Allow clobber stmts.
2132 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2133
2134 PR c++/92384
2135 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2136 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2137 slot.
2138 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2139 force creation of a unique data.stack_parm slot.
2140
2141 2019-11-08 Richard Biener <rguenther@suse.de>
2142
2143 * genmatch.c (expr::gen_transform): Use the resimplify
2144 member function instead of hard-coding the gimple_resimplifyN variant.
2145 (dt_simplify::gen_1): Likewise.
2146
2147 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2148
2149 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2150 POLY_INT_CST.
2151
2152 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2153
2154 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2155 instead of INTEGER_CST.
2156
2157 2019-11-08 Richard Biener <rguenther@suse.de>
2158
2159 PR tree-optimization/92324
2160 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2161 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2162 sign-conversions as necessary.
2163 (vectorizable_reduction): Reject conversions in the chain
2164 that are not sign-conversions, base analysis on a non-converting
2165 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2166 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2167 for debug stmts.
2168 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2169 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2170
2171 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2172
2173 PR target/92055
2174 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2175 Fix a missing '-' when displaying these options in the
2176 help screen.
2177
2178 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2179
2180 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2181
2182 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2183
2184 * config/aarch64/aarch64-builtins.c
2185 (aarch64_builtin_vectorized_function): Remove bswap handling.
2186
2187 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2188
2189 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2190 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2191 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2192 Treat the vector types as indivisible.
2193
2194 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2195
2196 * optabs.def (gather_load_optab, mask_gather_load_optab)
2197 (scatter_store_optab, mask_scatter_store_optab): Turn into
2198 conversion optabs, with the offset mode given explicitly.
2199 * doc/md.texi: Update accordingly.
2200 * config/aarch64/aarch64-sve-builtins-base.cc
2201 (svld1_gather_impl::expand): Likewise.
2202 (svst1_scatter_impl::expand): Likewise.
2203 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2204 (expand_scatter_store_optab_fn): Likewise.
2205 (direct_gather_load_optab_supported_p): Likewise.
2206 (direct_scatter_store_optab_supported_p): Likewise.
2207 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2208 to be argument 4.
2209 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2210 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2211 argument with the offset vector type. Require the two vector
2212 types to have the same number of elements but allow their element
2213 sizes to be different. Treat the optabs as conversion optabs.
2214 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
2215 prototype accordingly.
2216 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
2217 (supports_vec_convert_optab_p): ...this new function.
2218 (supports_vec_gather_load_p): Update accordingly.
2219 (supports_vec_scatter_store_p): Likewise.
2220 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
2221 Replace the offset sign and bits parameters with a scalar type tree.
2222 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
2223 Pass back the offset vector type instead of the scalar element type.
2224 Allow the offset to be wider than the memory elements. Search for
2225 an offset type that the target supports, stopping once we've
2226 reached the maximum of the element size and pointer size.
2227 Update call to internal_gather_scatter_fn_supported_p.
2228 (vect_check_gather_scatter): Update calls accordingly.
2229 When testing a new scale before knowing the final offset type,
2230 check whether the scale is supported for any signed or unsigned
2231 offset type. Check whether the target supports the source and
2232 target types of a conversion before deciding whether to look
2233 through the conversion. Record the chosen offset_vectype.
2234 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
2235 (vect_recog_gather_scatter_pattern): Get the scalar offset type
2236 directly from the gs_info's offset_vectype instead. Pass a zero
2237 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
2238 * tree-vect-stmts.c (check_load_store_masking): Update call to
2239 internal_gather_scatter_fn_supported_p, passing the offset vector
2240 type recorded in the gs_info.
2241 (vect_truncate_gather_scatter_offset): Update call to
2242 vect_check_gather_scatter, leaving it to search for a valid
2243 offset vector type.
2244 (vect_use_strided_gather_scatters_p): Convert the offset to the
2245 element type of the gs_info's offset_vectype.
2246 (vect_get_gather_scatter_ops): Get the offset vector type directly
2247 from the gs_info.
2248 (vect_get_strided_load_store_ops): Likewise.
2249 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
2250 and IFN_MASK_GATHER_LOAD.
2251 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
2252 (gather_load<mode><v_int_equiv>): ...this.
2253 (mask_gather_load<mode>): Rename to...
2254 (mask_gather_load<mode><v_int_equiv>): ...this.
2255 (scatter_store<mode>): Rename to...
2256 (scatter_store<mode><v_int_equiv>): ...this.
2257 (mask_scatter_store<mode>): Rename to...
2258 (mask_scatter_store<mode><v_int_equiv>): ...this.
2259
2260 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
2261
2262 PR target/92132
2263 * config/rs6000/predicates.md
2264 (signed_or_equality_comparison_operator): New predicate.
2265 (unsigned_or_equality_comparison_operator): Likewise.
2266 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
2267 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
2268 * config/rs6000/vector.md
2269 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
2270 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
2271 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
2272 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
2273 vector modes and same-size integer vector modes.
2274 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
2275 (vector_lt<mode> for VEC_F): New expand.
2276 (vector_le<mode> for VEC_F): Likewise.
2277 (vector_ne<mode> for VEC_F): Likewise.
2278 (vector_unge<mode> for VEC_F): Likewise.
2279 (vector_ungt<mode> for VEC_F): Likewise.
2280 (vector_unle<mode> for VEC_F): Likewise.
2281 (vector_unlt<mode> for VEC_F): Likewise.
2282 (vector_uneq<mode>): Expose name.
2283 (vector_ltgt<mode>): Likewise.
2284 (vector_unordered<mode>): Likewise.
2285 (vector_ordered<mode>): Likewise.
2286
2287 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
2288
2289 PR target/92295
2290 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
2291 Enhance ix86_expand_vector_init_concat.
2292
2293 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2294
2295 * doc/invoke.texi (-Wold-style-definition): Document () not being
2296 considered an old-style definition for C2x.
2297
2298 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
2299
2300 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
2301 Enhance comment.
2302 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
2303 insn patterns using ldcw instruction.
2304 (memory_barrier): Remove insn pattern using sync instruction.
2305 * config/pa/pa.opt (coherent-ldcw): New option.
2306 (ordered): New option.
2307
2308 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2309
2310 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
2311 valid conditions.
2312
2313 2019-11-07 Jakub Jelinek <jakub@redhat.com>
2314
2315 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
2316 typo - mistmatch -> mismatch.
2317 * ipa-profile.c (ipa_profile): Likewise.
2318 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
2319 - mistmatch -> mismatch.
2320
2321 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2322
2323 * simplify-rtx.c (comparison_to_mask): New function.
2324 (mask_to_comparison): New function.
2325 (simplify_logical_relational_operation): New function.
2326 (simplify_binary_operation_1): Call
2327 simplify_logical_relational_operation.
2328
2329 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
2330
2331 PR other/92090
2332 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
2333 modes for integer constants.
2334
2335 2019-11-07 Jan Hubicka <jh@suse.cz>
2336
2337 PR ipa/92406
2338 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
2339 summary.
2340
2341 2019-11-07 Jan Hubicka <jh@suse.cz>
2342
2343 * optc-save-gen.awk: Generate cl_target_option_free
2344 and cl_optimization_option_free.
2345 * opth-en.awk: Declare cl_target_option_free
2346 and cl_optimization_option_free.
2347 * tree.c (free_node): Use it.
2348
2349 2019-11-06 Jan Hubicka <jh@suse.cz>
2350
2351 * lto-streamer-in.c: Include alloc-pool.h.
2352 (freeing_string_slot_hasher): Remove.
2353 (string_slot_allocator): New object allocator.
2354 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
2355 (file_name_obstack): New obstack.
2356 (canon_file_name): Allocate in obstack and allocator.
2357 (lto_reader_init): Initialize obstack and allocator.
2358 (lto_free_file_name_hash): New function.
2359 * lto-streamer.h (lto_free_file_name_hash): New.
2360
2361 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
2362
2363 PR tree-optimization/89134
2364 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
2365 * params.def: Add min-loop-cond-split-prob.
2366 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
2367 outside checks on loop into the function.
2368 (split_info): New class.
2369 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
2370 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
2371 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
2372 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
2373 (stmt_semi_invariant_p, branch_removable_p): Likewise.
2374 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
2375 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
2376 (split_loop_on_cond): Likewise.
2377 (tree_ssa_split_loops): Add loop split on conditional statement.
2378
2379 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
2380
2381 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2382 pattern.
2383
2384 2019-11-07 Richard Biener <rguenther@suse.de>
2385
2386 PR tree-optimization/92405
2387 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2388 restrict lane-reducing ops to single stmt chains.
2389
2390 2019-11-07 Martin Jambor <mjambor@suse.cz>
2391
2392 PR lto/70929
2393 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2394 * cgraph.h (gimple_check_call_matching_types): Remove
2395 * cgraph.c (gimple_check_call_args): Likewise.
2396 (gimple_check_call_matching_types): Likewise.
2397 (symbol_table::create_edge): Do not call
2398 gimple_check_call_matching_types.
2399 (cgraph_edge::make_direct): Likewise.
2400 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2401 * value-prof.h (check_ic_target): Remove.
2402 * value-prof.c (check_ic_target): Remove.
2403 (gimple_ic_transform): Do nat call check_ic_target.
2404 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2405 (afdo_indirect_call): Likewise.
2406 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2407 gimple_check_call_matching_types.
2408 * ipa-inline.c (early_inliner): Likewise.
2409
2410 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2411
2412 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2413 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2414 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2415 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2416 * config/arm/iterators.md (USSAT16): New int_iterator.
2417 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2418 (sup): Likewise.
2419 * config/arm/predicates.md (ssat16_imm): New predicate.
2420 (usat16_imm): Likewise.
2421 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2422
2423 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2424
2425 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2426 New define_insns.
2427 (arm_<simd32_op>): New define_expands.
2428 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
2429 __smuad, __smuadx): Define.
2430 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2431 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
2432 (SIMD32_BINOP_Q): Likewise.
2433 (simd32_op): Handle the above.
2434 * config/arm/unspecs.md: Define unspecs for the above.
2435
2436 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2437
2438 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
2439 * config/arm/arm.md (APSRGE_REGNUM): Define.
2440 (arm_<simd32_op>): New define_insn.
2441 (arm_sel): Likewise.
2442 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
2443 (CALL_USED_REGISTERS): Likewise.
2444 (REG_ALLOC_ORDER): Likewise.
2445 (FIRST_PSEUDO_REGISTER): Update value.
2446 (ARM_GE_BITS_READ): Define.
2447 * config/arm/arm.c (arm_conditional_register_usage): Clear
2448 APSRGE_REGNUM from operand_reg_set.
2449 (arm_ge_bits_access): Define.
2450 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
2451 ARM_BUIILTIN_sel.
2452 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
2453 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
2454 FAIL if ARM_GE_BITS_READ.
2455 (*arm_add<mode>3): New define_insn.
2456 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
2457 (*arm_sub<mode>3): New define_insn.
2458 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
2459 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
2460 __usub16): Define.
2461 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2462 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
2463 (simd32_op): Handle the above.
2464 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
2465 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
2466 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
2467 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
2468
2469 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2470
2471 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
2472 (arm_smlabb): New define_expand.
2473 (*maddhisi4tb): Rename to...
2474 (maddhisi4tb): ... This.
2475 (*maddhisi4tt): Rename to...
2476 (maddhisi4tt): ... This.
2477 (arm_smlatb_setq): New define_insn.
2478 (arm_smlatb): New define_expand.
2479 (arm_smlatt_setq): New define_insn.
2480 (arm_smlatt): New define_expand.
2481 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
2482 (arm_<smlaw_op>): New define_expand.
2483 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
2484 __smlawb, __smlawt): Define.
2485 * config/arm_acle_builtins.def: Define builtins for the above.
2486 * config/arm/iterators.md (SMLAWBT): New int_iterator.
2487 (slaw_op): New int_attribute.
2488 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
2489
2490 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2491
2492 * config/arm/arm.md (arm_<ss_op>): New define_expand.
2493 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
2494 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
2495 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
2496 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
2497 (ss_op): New code_attr.
2498
2499 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2500
2501 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
2502 * config/arm/arm.md (APSRQ_REGNUM): Define.
2503 (add_setq): New define_subst.
2504 (add_clobber_q_name): New define_subst_attr.
2505 (add_clobber_q_pred): Likewise.
2506 (maddhisi4): Change to define_expand. Split into mult and add if
2507 ARM_Q_BIT_READ.
2508 (arm_maddhisi4): New define_insn.
2509 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
2510 (*maddhisi4tt): Likewise.
2511 (arm_ssat): New define_expand.
2512 (arm_usat): Likewise.
2513 (arm_get_apsr): New define_insn.
2514 (arm_set_apsr): Likewise.
2515 (arm_saturation_occurred): New define_expand.
2516 (arm_set_saturation): Likewise.
2517 (*satsi_<SAT:code>): Rename to...
2518 (satsi_<SAT:code><add_clobber_q_name>): ... This.
2519 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
2520 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
2521 (CALL_USED_REGISTERS): Mark apsrq.
2522 (FIRST_PSEUDO_REGISTER): Update value.
2523 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
2524 (machine_function): Add q_bit_access.
2525 (ARM_Q_BIT_READ): Define.
2526 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
2527 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
2528 operand_reg_set.
2529 (arm_q_bit_access): Define.
2530 * config/arm/arm-builtins.c: Include stringpool.h.
2531 (arm_sat_binop_imm_qualifiers,
2532 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
2533 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
2534 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
2535 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
2536 SET_SAT_QUALIFIERS): Likewise.
2537 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
2538 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
2539 Handle 0 argument expander.
2540 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
2541 (arm_check_builtin_call): Define.
2542 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
2543 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
2544 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
2545 (arm_q_bit_access): Likewise.
2546 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
2547 __saturation_occurred, __set_saturation_occurred): Define.
2548 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
2549 saturation_occurred, set_saturation_occurred.
2550 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
2551 (UNSPEC_APSR_READ): Likewise.
2552 (VUNSPEC_APSR_WRITE): Likewise.
2553 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
2554 (*arm_ssadd<mode>3): New define_insn.
2555 (sssub<mode>3): Convert to define_expand.
2556 (*arm_sssub<mode>3): New define_insn.
2557 (ssmulsa3): Convert to define_expand.
2558 (*arm_ssmulsa3): New define_insn.
2559 (usmulusa3): Convert to define_expand.
2560 (*arm_usmulusa3): New define_insn.
2561 (ssmulha3): FAIL if ARM_Q_BIT_READ.
2562 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
2563 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
2564
2565 2019-11-07 Martin Liska <mliska@suse.cz>
2566
2567 PR c++/92354
2568 * cgraph.c (delete_function_version): Clear global
2569 variable version_info_node if equal to deleted
2570 function.
2571
2572 2019-11-07 Martin Liska <mliska@suse.cz>
2573
2574 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2575 of CONSTRUCTOR_NO_CLEARING.
2576 (operand_compare::hash_operand): Likewise.
2577
2578 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2579
2580 Support 64-bit double and 64-bit long double configurations.
2581
2582 PR target/92055
2583 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2584 --with-long-double=.
2585 * config/avr/t-multilib: Remove.
2586 * config/avr/t-avr: Output of genmultilib.awk is now fully
2587 dynamically generated and no more part of the repo.
2588 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2589 Pass them down to...
2590 * config/avr/genmultilib.awk: ...here and handle them.
2591 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2592 (-mlong-double=, avr_long_double). New option and var.
2593 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2594 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2595 Set default as requested by --with-double=
2596 (TARGET_HANDLE_OPTION): Define to this...
2597 (avr_handle_option): ...new hook worker.
2598 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2599 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2600 (avr_double_lib): New proto for spec function.
2601 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2602 (DRIVER_SELF_SPECS): Call %:double-lib.
2603 * config/avr/avr.c (avr_option_override): Assert
2604 sizeof(long double) >= sizeof(double) for the target.
2605 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2606 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2607 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2608 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2609 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2610 New built-in define depending on --with-double=, --with-long-double=.
2611 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2612 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2613 * doc/install.texi (Cross-Compiler-Specific Options)
2614 <--with-double=, --with-long-double=>: Doc.
2615
2616 2019-11-07 Richard Biener <rguenther@suse.de>
2617
2618 * dbgcnt.def (gimple_unroll): New.
2619 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2620 gimple_unroll debug counter before applying transform.
2621 (try_peel_loop): Likewise.
2622
2623 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2624
2625 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2626 frame pointer in multiple registers.
2627 (ira_setup_eliminable_regset): Setup eliminable_regset,
2628 ira_no_alloc_regs and regs_ever_live for frame pointer in
2629 multiple registers.
2630
2631 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2632
2633 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2634 V2DI modes.
2635
2636 2019-11-06 Jan Hubicka <jh@suse.cz>
2637
2638 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2639 allocations.
2640 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2641 Do not silently ignore summary corruptions.
2642
2643 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2644
2645 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2646 the epilogue if there are peeled iterations for it to handle.
2647
2648 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2649
2650 * config/arc/arc.c (arc_split_ior): Add asserts.
2651 (arc_split_mov_const): Likewise.
2652 (arc_check_ior_const): Do not match known short immediate values.
2653 * config/arc/arc.md (movsi): Don't split predicated instructions
2654 (iorsi): Likewise.
2655
2656 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2657
2658 * config/arc/arc.opt (mea): Update help string.
2659 * doc/invoke.texi(ARC): Update mea option info.
2660
2661 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2662
2663 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2664 (zero_extendqisi2_ac): Likewise.
2665 (zero_extendhisi2_i): Likewise.
2666 (extendqihi2_i): Likewise.
2667 (extendqisi2_ac): Likewise.
2668 (extendhisi2_i): Likewise.
2669
2670 2019-11-06 Richard Biener <rguenther@suse.de>
2671
2672 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2673 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2674 Simplify single_defuse_cycle condition.
2675
2676 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2677
2678 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2679 epilogue loop, make sure that the VF is small enough or that
2680 the epilogue loop can be fully-masked.
2681
2682 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2683
2684 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2685 loop when we've finished, rather than returning directly from
2686 the loop. Use a local variable to track whether we're still
2687 searching for the preferred simdlen. Make vect_epilogues
2688 record whether the next iteration should try to treat the
2689 loop as an epilogue.
2690
2691 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2692
2693 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2694 __arc_hard_float__, __ARC_HARD_FLOAT__,
2695 __arc_soft_float__, __ARC_SOFT_FLOAT__
2696
2697 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2698
2699 PR tree-optimization/92317
2700 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2701 update phi's with constant phi arguments.
2702
2703 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2704 Alexandre Oliva <oliva@adacore.com>
2705
2706 * common.opt (-fcallgraph-info[=]): New option.
2707 * doc/invoke.texi (Developer options): Document it.
2708 * opts.c (common_handle_option): Handle it.
2709 * builtins.c (expand_builtin_alloca): Record allocation if
2710 -fcallgraph-info=da.
2711 * calls.c (expand_call): If -fcallgraph-info, record the call.
2712 (emit_library_call_value_1): Likewise.
2713 * flag-types.h (enum callgraph_info_type): New type.
2714 * explow.c: Include stringpool.h.
2715 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2716 * function.c (allocate_stack_usage_info): New.
2717 (allocate_struct_function): Call it for -fcallgraph-info.
2718 (prepare_function_start): Call it otherwise.
2719 (record_final_call, record_dynamic_alloc): New.
2720 * function.h (struct callinfo_callee): New.
2721 (CALLEE_FROM_CGRAPH_P): New.
2722 (struct callinfo_dalloc): New.
2723 (struct stack_usage): Add callees and dallocs.
2724 (record_final_call, record_dynamic_alloc): Declare.
2725 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2726 object if -fcallgraph-info=da.
2727 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2728 * print-tree.h (print_decl_identifier): Declare.
2729 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2730 * print-tree.c: Include print-tree.h.
2731 (print_decl_identifier): New function.
2732 * toplev.c: Include print-tree.h.
2733 (callgraph_info_file): New global variable.
2734 (callgraph_info_external_printed): Likewise.
2735 (output_stack_usage): Rename to...
2736 (output_stack_usage_1): ... this. Make it static, add cf
2737 parameter. If -fcallgraph-info=su, print stack usage to cf.
2738 If -fstack-usage, use print_decl_identifier for
2739 pretty-printing.
2740 (INDIRECT_CALL_NAME): New.
2741 (dump_final_node_vcg_start): New.
2742 (dump_final_callee_vcg, dump_final_node_vcg): New.
2743 (output_stack_usage): New.
2744 (lang_dependent_init): Open and start file if
2745 -fcallgraph-info. Allocated callgraph_info_external_printed.
2746 (finalize): If callgraph_info_file is not null, finish it,
2747 close it, and release callgraph_info_external_printed.
2748
2749 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2750 Frederik Harwath <frederik@codesourcery.com>
2751 Thomas Schwinge <thomas@codesourcery.com>
2752
2753 * omp-low.c (struct omp_context): New fields
2754 local_reduction_clauses, outer_reduction_clauses.
2755 (new_omp_context): Initialize these.
2756 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2757 (scan_omp_for): Check reduction clauses for incorrect nesting.
2758
2759 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2760
2761 PR inline-asm/92352
2762 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2763 operands with non-memory constraints.
2764
2765 2019-11-05 Martin Sebor <msebor@redhat.com>
2766
2767 PR tree-optimization/92373
2768 * tree.c (component_ref_size): Only consider initializers of objects
2769 of matching struct types.
2770 Return null for instances of interior zero-length arrays.
2771
2772 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2773
2774 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2775
2776 2019-11-05 Jason Merrill <jason@redhat.com>
2777
2778 PR tree-optimization/91825
2779 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2780
2781 2019-11-05 Jim Wilson <jimw@sifive.com>
2782
2783 PR middle-end/92263
2784 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2785 optimize_insn_for_speed_p is true.
2786
2787 2019-11-05 Martin Sebor <msebor@redhat.com>
2788
2789 PR middle-end/92333
2790 PR middle-end/82608
2791 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2792 size.
2793 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2794 name and location for a temporary variable.
2795
2796 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2797
2798 * tree-vrp.c (value_range::value_range): Fix whitespace.
2799 (defined_ranges_p): Same.
2800 (range_fold_binary_symbolics_p): Same.
2801 (value_range::intersect_helper): Same.
2802 (value_range::union_helper): Same.
2803 * tree-vrp.h (range_fold_binary_expr): Same.
2804
2805 2019-11-04 Martin Sebor <msebor@redhat.com>
2806
2807 PR middle-end/92341
2808 PR middle-end/82612
2809 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2810 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2811 of message printed in a warning for empty arrays.
2812 (vrp_prop::check_mem_ref): Also handle function parameters and
2813 empty arrays.
2814
2815 2019-11-05 Richard Biener <rguenther@suse.de>
2816
2817 PR tree-optimization/92371
2818 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2819 on the original stmt of live stmts in the chain.
2820 (vectorizable_live_operation): Look at the original stmt when
2821 checking STMT_VINFO_REDUC_DEF.
2822
2823 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2824
2825 * gimple-fold.c, gimple-loop-versioning.cc,
2826 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2827 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2828 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2829 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2830 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2831 value_range_equiv, and value_range_base to value_range.
2832
2833 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2834
2835 * expr.c (build_personality_function): Fix generated type to
2836 match actual personality functions.
2837
2838 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2839
2840 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2841 enough bytes for the NULL character.
2842
2843 2019-11-05 Richard Biener <rguenther@suse.de>
2844
2845 PR tree-optimization/92280
2846 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2847 had a single use do not create a new CTOR.
2848 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2849 BIT_FIELD_REF of a CTOR via GENERIC.
2850
2851 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2852
2853 * config/s390/s390.c (s390_vector_alignment): Check if the value
2854 fits into uhwi before using it.
2855
2856 2019-11-05 Martin Liska <mliska@suse.cz>
2857
2858 * symbol-summary.h: Use ggc_delete.
2859
2860 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2861
2862 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2863 Change vec_perm field to 10.
2864
2865 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2866
2867 * doc/install.texi: Further fix syntax for html generation.
2868
2869 2019-11-05 Martin Liska <mliska@suse.cz>
2870
2871 * symbol-summary.h: Rename allocator to m_allocator and
2872 add comment.
2873
2874 2019-11-05 Richard Biener <rguenther@suse.de>
2875
2876 PR tree-optimization/92324
2877 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2878 all signed or unsigned operations.
2879
2880 2019-11-05 Jan Hubicka <jh@suse.cz>
2881
2882 * hsa-brig.c: Include alloc-pool.h
2883 * hsa-dump.c: Likewise.
2884 * hsa-gen.c: Likewise.
2885 * hse-regalloc.c: Likewise.
2886 * ipa-hsa.c: Likewise.
2887 * ipa-predicate.c: Likewise.
2888 * ipa-reference.c: Likewise.
2889 * ipa-sra.c: Likewise.
2890 * omp-expand.c: Likewise.
2891 * omp-general.c: Likewise.
2892 * omp-low.c: Likewise.
2893 * sumbol-summary.h (function_summary_base): Add allocator.
2894 (function_summary<T *>::function_summary): Update construction.
2895 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2896 (call_summary_base): Add allcator.
2897 (call_summary<T *>::call_summary): Update construction.
2898 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2899
2900 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2901
2902 PR tree-optimization/91945
2903 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2904 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2905 Formatting fix.
2906
2907 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2908
2909 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2910 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2911 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2912 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2913 (vrp_set_zero_nonzero_bits): Move to...
2914 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2915 (vr_values::simplify_bit_ops_using_ranges): Rename
2916 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2917
2918 2019-11-05 Martin Liska <mliska@suse.cz>
2919
2920 PR c++/92339
2921 * fold-const.c (operand_compare::hash_operand): Remove
2922 FIELD_DECL handling.
2923
2924 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2925
2926 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2927 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2928 static.
2929
2930 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2931
2932 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2933 properly handle symbolics.
2934 (range_compatible_p): Remove.
2935
2936 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2937
2938 * common.opt (-fabi-version): Document =14.
2939 * doc/invoke.texi (C++ Dialect Options): Likewise.
2940
2941 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2942
2943 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2944
2945 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2946
2947 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2948 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2949 gcn_omp_device_kind_arch_isa.
2950 * config/gcn/t-omp-device: New file.
2951 * configure.ac: Support gcn for omp_device_property.
2952 * configure: Regenerate.
2953
2954 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2955
2956 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2957 (vrp_val_max): Same.
2958 (vrp_val_is_min): Same.
2959 (vrp_val_is_max): Same.
2960 (value_range_base::nonzero_p): Remove last argument to
2961 vrp_val_is_max.
2962 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2963 (vrp_val_max): Same.
2964 (vrp_val_is_min): Same.
2965 (vrp_val_is_max): Same.
2966 (value_range_base::set_varying): Remove last argument to vrp_val*.
2967 (value_range_base::dump): Same.
2968 (value_range_base::set): Same.
2969 (value_range_base::normalize_symbolics): Same.
2970 (value_range_base::num_pairs): Same.
2971 (value_range_base::lower_bound): Same.
2972 (value_range_base::upper_bound): Same.
2973 (ranges_from_anti_range): Remove handle_pointers argument.
2974 (value_range_base::singleton_p): Remove last argument to
2975 ranges_from_anti_range.
2976
2977 2019-11-04 Jan Hubicka <jh@suse.cz>
2978
2979 * ipa-reference.c (init_function_info): Initialize
2980 info->global.statics_read.
2981
2982 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2983
2984 * tree-vrp.c (value_range_base::invert): Use constructors to build
2985 range.
2986
2987 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2988
2989 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2990 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2991
2992 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2993
2994 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2995 VR_UNDEFINED.
2996
2997 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2998
2999 * tree-vrp.c (dump_assert_info): New.
3000 (dump_asserts_info): New.
3001
3002 2019-11-04 Jan Hubicka <jh@suse.cz>
3003
3004 * ipa-inline-transform.c: Include ipa-utils.h
3005 (inline_call): Set thunk_expansion flag.
3006 * ipa-utils.h (thunk_expansion): Declare.
3007 * ipa-devirt.c (thunk_expansion): New global var.
3008 (devirt_node_removal_hook): Do not invalidate cache while
3009 doing thunk expansion.
3010
3011 2019-11-04 Tamar Christina <tamar.christina@arm.com>
3012
3013 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
3014
3015 2019-11-04 Martin Sebor <msebor@redhat.com>
3016
3017 PR tree-optimization/92349
3018 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3019 memebers have constant sizes.
3020
3021 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3022
3023 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3024 parameter.
3025 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3026 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3027 vect_analyze_loop.
3028
3029 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3030
3031 * expr.c (store_constructor): Modify to handle single element vectors.
3032 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3033 constructors.
3034 (vect_slp_check_for_constructors): New function.
3035 (vect_slp_analyze_bb_1): Call new function to check for vector
3036 constructors.
3037 (vectorize_slp_instance_root_stmt): New function.
3038 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3039 constructors.
3040 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3041
3042 2019-11-04 Richard Biener <rguenther@suse.de>
3043
3044 PR tree-optimization/92345
3045 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3046 we produced a reduction chain.
3047 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3048 LOOP_VINFO_REDUCTIONS.
3049
3050 2019-11-04 Jan Hubicka <jh@suse.cz>
3051
3052 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3053 duplicate summaries.
3054 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3055 first.
3056 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3057 access call summaries.
3058 (dump_ipa_call_summary): Be ready for missing edge summaries.
3059 (analyze_function_body): Use get instead of get_create to access
3060 edge summary.
3061 (estimate_calls_size_and_time): Do not access summaries of
3062 inlined edges; sanity check they are missing.
3063 (ipa_call_context::estimate_size_and_time): Use get instead
3064 of get_create to access node summary.
3065 (inline_update_callee_summaries): Do not update depth of
3066 inlined edge.
3067 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3068 growth caches.
3069 (ipa_merge_fn_summary_after_inlining): Use get instead
3070 of get_create.
3071 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3072 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3073 fast summary.
3074 (initialize_growth_caches): Update.
3075 (do_estimate_edge_time): Remove redundant copy of context.
3076 (ipa_remove_from_growth_caches): New function.
3077 * ipa-inline.c (flatten_function): Update overall summary
3078 only when optimizing.
3079 (inline_to_all_callers): Update overall summary of function
3080 inlined to.
3081 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3082 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3083 to false.
3084
3085 2019-11-04 Richard Biener <rguenther@suse.de>
3086
3087 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3088 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3089
3090 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3091
3092 * ggc-common.c: Include system.h before malloc.h.
3093
3094 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3095
3096 * configure.ac: Pass --enable-obsolete=* and
3097 --enable-option-checking=* down to build configure, and fail
3098 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3099 * configure: Rebuild.
3100 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3101 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3102
3103 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3104
3105 * config.in: Regenerate.
3106 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3107 -mtiny-printf is used without GCC being configured with
3108 --enable-newlib-nano-formatted-io.
3109 * config/msp430/msp430.h (LINK_SPEC): Pass
3110 "--wrap puts --wrap printf" when -mtiny-printf is used.
3111 * config/msp430/msp430.opt: Document -mtiny-printf.
3112 * configure: Regenerate.
3113 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3114 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3115 --enable-newlib-nano-formatted-io is passed.
3116 * doc/invoke.texi: Document -mtiny-printf.
3117
3118 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3119
3120 * configure: Regenerate.
3121
3122 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3123
3124 * config/msp430/driver-msp430.c
3125 (msp430_get_linker_devices_include_path): New spec function.
3126 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3127 (extract_devices_dir_from_exec_prefix): New function.
3128 (extract_devices_dir_from_collect_gcc): New function.
3129 (msp430_check_env_var_for_devices): New function.
3130 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3131 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3132 devices.csv was not found using other methods.
3133 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3134 New prototype.
3135 (msp430_dirname): Likewise.
3136 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3137 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3138 msp430_get_linker_devices_include_path.
3139 (TARGET_EXTRA_PRE_INCLUDES): Define.
3140 * doc/invoke.texi: Document new ways of searching for support files.
3141
3142 2019-11-04 Richard Biener <rguenther@suse.de>
3143
3144 PR tree-optimization/92301
3145 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3146 as required by epilogue generation
3147
3148 2019-11-04 Martin Liska <mliska@suse.cz>
3149
3150 PR ipa/92304
3151 * fold-const.c (operand_compare::hash_operand): Fix field
3152 hashing of CONSTRUCTOR.
3153
3154 2019-11-04 Martin Liska <mliska@suse.cz>
3155
3156 * ggc.h (ggc_delete): New function.
3157 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3158 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3159 (ipa_free_all_node_params): Likewise.
3160 * ipa-sra.c (ipa_sra_analysis): Likewise.
3161
3162 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3163
3164 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3165 set_switch_stmt_execution_predicate, compute_bb_predicates,
3166 will_be_nonconstant_expr_predicate,
3167 phi_result_unknown_predicate,
3168 analyze_function_body): Pass arround params summary.
3169 (ipa_call_context::duplicate_from): New comment;
3170 only duplicate useful values.
3171 (ipa_call_context::equal_to): Only compare useful values.
3172 (remap_edge_summaries): Pass params_summary.
3173 (remap_hint_predicate): Likewise.
3174 (ipa_merge_fn_summary_after_inlining): Likewise.
3175 (inline_read_section): Initialize params summary used flags.
3176 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3177 around param_summary.
3178 (add_condition): Initialized used params summary flags.
3179 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3180 (inline_param_summary::useless_p): New predicate.
3181 (remap_after_inlining, add_condition): Update prototype
3182 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3183 move_cost.
3184 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3185 summaries.
3186 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3187 (ipa_analyze_virtual_call_uses): Likewise.
3188 (update_indirect_edges_after_inlining): Update param summaries.
3189 (ipa_print_node_params): Print used flags.
3190 (ipa_read_indirect_edge_info): Update param summareis.
3191 * ipa-prop.h (ipa_param_descriptor): Add
3192 used_by_ipa_predicates, used_by_indirect_call
3193 and used_by_polymorphic_call.
3194 (ipa_set_param_used_by_ipa_predicates,
3195 ipa_set_param_used_by_indirect_call,
3196 ipa_set_param_used_by_polymorphic_call,
3197 ipa_is_param_used_by_ipa_predicates,
3198 ipa_is_param_used_by_indirect_call,
3199 ipa_is_param_used_by_polymorphic_call): New inline functions.
3200
3201 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3202
3203 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3204 member function.
3205 (ipa_call_context::release): Add ALL parameter.
3206 (ipa_call_context::equal_to): New member function.
3207 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3208 duplicate_form, release, equal_to and exists_p member functoins.
3209 * ipa-inline-analysis.c (node_context_cache_entry): New
3210 class.
3211 (node_context_summary): Likewise.
3212 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
3213 node_context_clear): New static vars.
3214 (initialize_growth_caches): New function.
3215 (free_growth_caches): Also delete node_context_cache; output stats.
3216 (do_estimate_edge_time): Cache contexts.
3217 (reset_node_cache): New function.
3218 * ipa-inline.c (reset_edge_caches): Reset also node cache.
3219 (inline_small_functions): Initialize growth caches.
3220 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
3221 Declare.
3222 * ipa-predicate.h (inline_param_summary::equal_to): New.
3223 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
3224 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
3225 (ipa_agg_jump_function): Implement equal_to member function.
3226
3227 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3228
3229 * ipa-fnsummary.c (inline_read_section): Set vector size
3230 ahead of time.
3231
3232 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3233
3234 * ipa-fnsummary.c (ipa_call_context): New constructor.
3235 (estimate_node_size_and_time): Turn to ...
3236 (ipa_call_context::estimate_size_and_time): ... this one.
3237 (ipa_call_context::release): New.
3238 * ipa-fnsummary.h (ipa_call_context): New class.
3239 (estimate_node_size_and_time): Remove.
3240 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
3241 do_estimate_edge_hints): Update.
3242
3243 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3244
3245 * config.in: Regenerate.
3246 * configure: Regenerate.
3247 * configure.ac: Check for mallinfo.
3248 * ggc-common.c: Include malloc.h if available;
3249 include options.h
3250 (report_heap_memory_use): New functoin.
3251 * ggc-page.c (ggc_grow): Do not print "start".
3252 * ggc.h (report_heap_memory_use): Declare.
3253 * pases.c (execute_one_pass): Report memory after IPA passes.
3254 (ipa_read_summaries_1): Likewise.
3255 (ipa_read_optimization_summaries_1): Likewise.
3256
3257 2019-11-02 Jakub Jelinek <jakub@redhat.com>
3258
3259 * gimplify.h (omp_construct_selector_matches): Change return
3260 type to int, add a new SCORES argument.
3261 * gimplify.c (omp_construct_selector_matches): Likewise. If
3262 SCORES is non-NULL, compute scores of each construct.
3263 * omp-general.h (omp_get_context_selector): Declare.
3264 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
3265 Adjust omp_construct_selector_matches callers.
3266 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
3267 (omp_context_compute_score): New function.
3268 (omp_resolve_declare_variant): Compute scores and decide based on
3269 that.
3270
3271 PR bootstrap/92314
3272 * configure.ac: Don't look for omp-device-properties files from
3273 installed offloading compilers. Instead add tmake_file snippets
3274 for configured offloading targets and use files they generate.
3275 * Makefile.in (install): Don't depend on
3276 install-omp-device-properties.
3277 (install-omp-device-properties): Remove goal.
3278 * config/i386/t-omp-device: New file.
3279 * config/i386/t-intelmic (omp-device-properties): Remove goal.
3280 * config/nvptx/t-omp-device: New file.
3281 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
3282 * configure: Regenerated.
3283
3284 * omp-general.h (omp_context_selector_set_compare): Declare.
3285 * omp-general.c (omp_construct_simd_compare,
3286 omp_context_selector_props_compare, omp_context_selector_set_compare,
3287 omp_context_selector_compare): New functions.
3288 (omp_resolve_declare_variant): Prune variants that are strict subset
3289 of another variant.
3290
3291 2019-11-01 Martin Sebor <msebor@redhat.com>
3292
3293 PR middle-end/91679
3294 PR middle-end/91647
3295 PR middle-end/91463
3296 PR middle-end/92312
3297 * doc/invoke.texi (-Wzero-length-bounds): Document.
3298 * gimple-match-head.c (try_conditional_simplification): Use memcpy
3299 instead of a hand-rolled loop to avoid PR 92323.
3300 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
3301 with initializers.
3302 (vrp_prop::check_mem_ref): Handle declared struct objects.
3303 * tree.c (last_field): New function.
3304 (array_at_struct_end_p): Handle MEM_REF.
3305 (get_initializer_for): New helper.
3306 (component_ref_size): Add argument. Rename locals. Call
3307 get_initializer_for instead of fold_ctor_reference. Correct handling
3308 of flexible array members.
3309 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
3310
3311 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3312
3313 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
3314 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
3315 UNSPEC_VSX_CVSPUXDS): Remove.
3316 (vsx_xvcvspdp): New define_expand, old define_insn split to...
3317 (vsx_xvcvspdp_be): ... this. New. And...
3318 (vsx_xvcvspdp_le): ... this. New.
3319 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
3320 (vsx_xvcv<su>xwdp_be): ... this. New. And...
3321 (vsx_xvcv<su>xwdp_le): ... this. New.
3322 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
3323 (vsx_xvcvsp<su>xds_be): ... this. New. And...
3324 (vsx_xvcvsp<su>xds_le): ... this. New.
3325
3326 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3327
3328 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
3329 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
3330 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
3331 UNSPEC_VSX_XVCVSPSXWS): Remove.
3332 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
3333 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
3334
3335 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3336
3337 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
3338 (UNSPEC_VSX_XVCDPSP): Remove.
3339 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
3340 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
3341
3342 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
3343
3344 * hooks.c (hook_tree_tree_bool_null): New.
3345 * hooks.h (hook_tree_tree_bool_null): Declare.
3346 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
3347 (LANG_HOOKS_DECLS): Add it.
3348 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
3349 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
3350 (lower_omp_target): Handle Fortran array with descriptor in
3351 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
3352
3353 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
3354
3355 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3356 Assert that the type we store in abi_vector_types is its own
3357 main variant.
3358 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
3359
3360 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3361
3362 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
3363 from a CONST_INT address when TARGET_THUMB2.
3364
3365 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3366
3367 * config/arm/arm.md (add_not_cin): New insn.
3368 (add_not_shift_cin): Likewise.
3369
3370 2019-10-31 Martin Liska <mliska@suse.cz>
3371
3372 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
3373 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
3374 and compare_memory_operand.
3375
3376 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3377
3378 * configure.ac: Compute and substitute omp_device_properties and
3379 omp_device_property_deps.
3380 * Makefile.in (generated_files): Add omp-device-properties.h.
3381 (omp-general.o): Depend on omp-device-properties.h.
3382 (omp_device_properties): New make variable.
3383 (omp-device-properties.h, s-omp-device-properties-h,
3384 install-omp-device-properties): New goals.
3385 (install): Depend on install-omp-device-properties for accelerators.
3386 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3387 * target.h (enum omp_device_kind_arch_isa): New enum.
3388 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3389 documentation.
3390 * omp-general.c: Include omp-device-properties.h.
3391 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3392 colon instead of comma.
3393 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3394 functions.
3395 (omp_context_selector_matches): Implement device set arch/isa
3396 selectors, improve device set kind selector handling.
3397 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3398 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3399 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3400 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3401 ix86_omp_device_kind_arch_isa.
3402 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3403 definition from ix86_target_string to file scope.
3404 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3405 to file scope.
3406 (ix86_omp_device_kind_arch_isa): New function.
3407 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3408 isa_opts definitions to file scope.
3409 * config/i386/t-intelmic (omp-device-properties): New goal.
3410 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3411 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3412 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3413 nvptx_omp_device_kind_arch_isa.
3414 * configure: Regenerate.
3415 * doc/tm.texi: Regenerate.
3416
3417 PR middle-end/92231
3418 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3419 DECL_BUILT_IN in comment. Remove redundant ()s around return
3420 argument.
3421 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3422 before calling fndecl_built_in_p.
3423 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3424 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3425 fndecl_built_in_p on it.
3426
3427 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3428
3429 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
3430
3431 2019-10-31 Martin Liska <mliska@suse.cz>
3432
3433 * config/arm/arm.c (arm_get_pcs_model): Remove usage
3434 of cgraph_local_info and use local_info_node instead.
3435 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
3436 (bfin_function_ok_for_sibcall): Likewise.
3437 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
3438 (must_reload_pic_reg_p): Likewise.
3439
3440 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3441
3442 PR c++/90947
3443 * tree.h (type_initializer_zero_p): Remove.
3444 * tree.c (type_initializer_zero_p): Remove.
3445
3446 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3447
3448 * doc/invoke.texi (-Wshadow, -Wshadow=global
3449 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
3450
3451 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3452
3453 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
3454 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
3455 and 'target exit data'.
3456
3457 2019-10-30 Martin Jambor <mjambor@suse.cz>
3458
3459 ipa/92278
3460 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
3461 availability comparison.
3462
3463 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3464
3465 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
3466 calls to __mspabi_mpy* functions.
3467 * config/msp430/msp430.md (mulhisi3): New define_expand.
3468 (umulhisi3): New define_expand.
3469 (*mulhisi3_inline): Use old mulhisi3 define_insn.
3470 (*umulhisi3_inline): Use old umulhisi3 define_insn.
3471
3472 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3473
3474 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
3475 (msp430_check_plus_not_high_mem): New.
3476 (msp430_op_not_in_high_mem): Use new functions to check if the operand
3477 might be in low memory.
3478 Indicate that a 16-bit absolute address is in lower memory.
3479
3480 2019-10-30 Martin Jambor <mjambor@suse.cz>
3481
3482 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
3483 ultimate_alias_target.
3484
3485 2019-10-30 Richard Biener <rguenther@suse.de>
3486
3487 PR tree-optimization/92275
3488 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
3489 Copy all loop-closed PHIs.
3490
3491 2019-10-30 Martin Liska <mliska@suse.cz>
3492
3493 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
3494 const_tree as function argument.
3495 (func_checker::compare_decl): Likewise.
3496 (func_checker::operand_equal_p): Likewise.
3497 (func_checker::compare_variable_decl): Likewise.
3498 (func_checker::parse_labels): Likewise.
3499 * ipa-icf-gimple.h: Likewise.
3500
3501 2019-10-30 Martin Liska <mliska@suse.cz>
3502
3503 * ipa-icf-gimple.c (func_checker::compatible_types_p):
3504 Do not compare alias sets. It's handled by operand_equal_p.
3505
3506 2019-10-30 Martin Liska <mliska@suse.cz>
3507
3508 * ipa-icf-gimple.c (func_checker::func_checker): Do not
3509 initialize m_compare_polymorphic.
3510 (func_checker::compare_decl): Do not compare polymorphic types.
3511 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
3512 * ipa-icf.c (sem_function::equals_private): Do not call
3513 compare_polymorphic_p.
3514
3515 2019-10-30 Martin Liska <mliska@suse.cz>
3516
3517 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
3518 compare_operand.
3519 (func_checker::compare_memory_operand): Remove.
3520 (func_checker::compare_cst_or_decl): Remove.
3521 (func_checker::operand_equal_valueize): Do not handle
3522 FIELD_DECL.
3523 (func_checker::compare_gimple_call): Call compare_operand.
3524 (func_checker::compare_gimple_assign): Likewise.
3525 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
3526 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
3527 * ipa-icf.h (icf_handled_component_p): Remove.
3528
3529 2019-10-30 Martin Liska <mliska@suse.cz>
3530
3531 * ipa-icf-gimple.c (func_checker::hash_operand): New.
3532 (func_checker::compare_cst_or_decl): Remove handling
3533 of FIELD_DECL.
3534 (func_checker::compare_operand): Transform to ...
3535 (func_checker::operand_equal_p): ... this.
3536 * ipa-icf-gimple.h (class func_checker): Add
3537 operand_equal_p and hash_operand.
3538 * ipa-icf.c (sem_function::equals_private): Fix
3539 pushing and popping of cfun.
3540
3541 2019-10-30 Martin Liska <mliska@suse.cz>
3542
3543 * fold-const.c (operand_equal_p): Move to ...
3544 (operand_compare::operand_equal_p): ... here.
3545 (operand_compare::verify_hash_value): New.
3546 (add_expr): Move to ...
3547 (operand_compare::hash_operand): ... here.
3548 * fold-const.h (operand_equal_p): Move to the class.
3549 (class operand_compare): New.
3550 * tree.c (add_expr): Remove.
3551
3552 2019-10-30 Martin Liska <mliska@suse.cz>
3553
3554 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
3555 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
3556
3557 2019-10-30 Martin Liska <mliska@suse.cz>
3558
3559 PR lto/91393
3560 PR lto/88220
3561 * cgraph.c (cgraph_node::get_create): Overwrite node->order
3562 from a first_clone in order to get proper LTO section
3563 in LTO stream.
3564 (cgraph_node::get_untransformed_body):
3565 Use lto_get_section_data where symtab_node::order
3566 must be provided.
3567 * cgraphclones.c (cgraph_node::find_replacement):
3568 Update also symbol order.
3569 * ipa-fnsummary.c (ipa_fn_summary_read):
3570 Use new function lto_get_summary_section_data.
3571 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3572 * ipa-icf.c (sem_item_optimizer::read_summary):
3573 Likewise.
3574 * ipa-prop.c (ipa_prop_read_jump_functions):
3575 Likewise.
3576 (ipcp_read_transformation_summaries): Likewise.
3577 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3578 * lto-cgraph.c (input_node): Add also order_base.
3579 (input_varpool_node): Likewise.
3580 (input_cgraph_1): Assign the order_base.
3581 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3582 * lto-opts.c (lto_write_options): Pass new argument.
3583 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3584 (lto_get_summary_section_data): New.
3585 (lto_get_raw_section_data): Add order argument.
3586 (lto_create_simple_input_block): Likewise.
3587 * lto-section-out.c (lto_destroy_simple_output_block):
3588 Likewise.
3589 * lto-streamer-in.c (lto_input_toplevel_asms):
3590 Use lto_get_summary_section_data.
3591 (lto_input_mode_table): Likewise.
3592 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3593 (lto_output_toplevel_asms): Pass new argument.
3594 (copy_function_or_variable): Likewise.
3595 (produce_lto_section):Likewise.
3596 (produce_symtab): Likewise.
3597 (lto_write_mode_table): Likewise.
3598 (produce_asm_for_decls): Likewise.
3599 * lto-streamer.c (lto_get_section_name): Concat symbol name
3600 and symbol order.
3601 * lto-streamer.h (lto_get_section_data): Add order argument.
3602 (lto_get_summary_section_data): New.
3603 (lto_get_raw_section_data): Add order argument.
3604 (lto_get_section_name): Likewise.
3605 * varpool.c (varpool_node::get_constructor): Pass order argument.
3606
3607 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3608
3609 PR tree-optimization/92262
3610 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3611 ubase or cbase here.
3612 (remove_unused_ivs): Unshare comp before using it.
3613
3614 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3615
3616 * ipa-prop.c (update_jump_functions_after_inlining):
3617 Watch for missing summaries.
3618
3619 2019-10-30 Richard Biener <rguenther@suse.de>
3620
3621 PR tree-optimization/65930
3622 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3623 chains also allow a leading and trailing conversion.
3624 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3625 intermediate reduction chains.
3626 (vect_analyze_slp_instance): Likewise. Build a SLP
3627 node for a trailing conversion manually.
3628
3629 2019-10-30 Martin Liska <mliska@suse.cz>
3630
3631 * cgraph.c (cgraph_node::local_info): Transform to ...
3632 (cgraph_node::local_info_node): ... this.
3633 (cgraph_node::dump): Remove cgraph_local_info and
3634 put its fields directly into cgraph_node.
3635 (cgraph_node::get_availability): Likewise.
3636 (cgraph_node::make_local): Likewise.
3637 (cgraph_node::verify_node): Likewise.
3638 * cgraph.h (struct GTY): Likewise.
3639 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3640 (duplicate_thunk_for_node): Likewise.
3641 (cgraph_node::create_clone): Likewise.
3642 (cgraph_node::create_virtual_clone): Likewise.
3643 (cgraph_node::create_version_clone): Likewise.
3644 * cgraphunit.c (cgraph_node::reset): Likewise.
3645 (cgraph_node::finalize_function): Likewise.
3646 (cgraph_node::add_new_function): Likewise.
3647 (analyze_functions): Likewise.
3648 * combine.c (setup_incoming_promotions): Likewise.
3649 * config/i386/i386.c (ix86_function_regparm): Likewise.
3650 (ix86_function_sseregparm): Likewise.
3651 (init_cumulative_args): Likewise.
3652 * ipa-cp.c (determine_versionability): Likewise.
3653 (count_callers): Likewise.
3654 (set_single_call_flag): Likewise.
3655 (initialize_node_lattices): Likewise.
3656 (estimate_local_effects): Likewise.
3657 (create_specialized_node): Likewise.
3658 (identify_dead_nodes): Likewise.
3659 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3660 (ipa_fn_summary_generate): Likewise.
3661 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3662 (process_hsa_functions): Likewise.
3663 * ipa-icf.c (set_local): Likewise.
3664 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3665 * ipa-inline.c (speculation_useful_p): Likewise.
3666 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3667 (ipa_profile): Likewise.
3668 * ipa-split.c (split_function): Likewise.
3669 (execute_split_functions): Likewise.
3670 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3671 (ipa_sra_ipa_function_checks): Likewise.
3672 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3673 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3674 * lto-cgraph.c (lto_output_node): Likewise.
3675 (input_overwrite_node): Likewise.
3676 * multiple_target.c (expand_target_clones): Likewise.
3677 * omp-simd-clone.c (simd_clone_create): Likewise.
3678 * trans-mem.c (expand_call_tm): Likewise.
3679 (ipa_tm_mayenterirr_function): Likewise.
3680 (ipa_tm_diagnose_tm_safe): Likewise.
3681 (ipa_tm_diagnose_transaction): Likewise.
3682 (ipa_tm_create_version): Likewise.
3683 (ipa_tm_transform_calls_redirect): Likewise.
3684 (ipa_tm_execute): Likewise.
3685 * tree-inline.c (expand_call_inline): Likewise.
3686
3687 2019-10-29 Martin Liska <mliska@suse.cz>
3688
3689 * symbol-summary.h (function_summary): Pass memory location
3690 to underlaying hash_map (or vec).
3691 (V>::fast_function_summary): Likewise.
3692
3693 2019-10-29 Martin Liska <mliska@suse.cz>
3694
3695 * ggc.h (ggc_alloc_no_dtor): New function.
3696 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3697 destructor and ggc_free.
3698 (ipa_free_size_summary): Call delete instead
3699 of release.
3700 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3701 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3702 (ipa_free_all_edge_args): Call destructor and ggc_free.
3703 (ipa_free_all_node_params): Likewise.
3704 (ipcp_free_transformation_sum): Likewise.
3705 * ipa-prop.h (ipa_check_create_node_params):
3706 Call new ggc_alloc_no_dtor.
3707 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3708 (ipa_sra_analysis): Call destructor and ggc_free.
3709 Replace release with delete operator.
3710 * symbol-summary.h (release): Remove ..
3711 (V>::~fast_function_summary): and move logic here.
3712 Likewise for other classes.
3713
3714 2019-10-29 Richard Biener <rguenther@suse.de>
3715
3716 PR tree-optimization/92260
3717 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3718 lane-reducing ops.
3719
3720 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3721
3722 PR tree-optimization/88915
3723 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3724 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3725 and make the valueize function pointer also take a void pointer.
3726 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3727 around vn_valueize, to call it without a context.
3728 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3729 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3730 (~_loop_vec_info): Release epilogue_vinfos.
3731 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3732 number of iterations of epilogue.
3733 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3734 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3735 versioning threshold needed for main loop.
3736 (vect_analyze_loop): Likewise.
3737 (find_in_mapping): New helper function.
3738 (update_epilogue_loop_vinfo): New function.
3739 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3740 on main loop and call update_epilogue_loop_vinfo to update it.
3741 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3742 stmts on loop preheader edge.
3743 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3744 we decided to vectorize epilogues. Update epilogues NITERS and
3745 construct ADVANCE to update epilogues data references where needed.
3746 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3747 (vect_do_peeling, vect_update_inits_of_drs,
3748 determine_peel_for_niter, vect_analyze_loop): Add or update
3749 declarations.
3750 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3751 created loop_vec_info's for epilogues when available. Otherwise analyse
3752 epilogue separately.
3753
3754 2019-10-29 Richard Biener <rguenther@suse.de>
3755
3756 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3757 example.
3758
3759 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3760
3761 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3762 index for the COND_EXPR from stmt_info rather than reduc_info.
3763
3764 2019-10-29 Richard Biener <rguenther@suse.de>
3765
3766 PR tree-optimization/65930
3767 * tree-vect-loop.c (check_reduction_path): Relax single-use
3768 check allowing out-of-loop uses.
3769 (vect_is_simple_reduction): SLP reduction chains cannot have
3770 intermediate stmts used outside of the loop.
3771 (vect_create_epilog_for_reduction): The adjustment might need
3772 to be converted.
3773 (vectorizable_reduction): Annotate live stmts of the reduction
3774 chain with STMT_VINFO_REDUC_DEF.
3775 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3776
3777 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3778
3779 * calls.c (pass_by_reference): Leave the target to decide whether
3780 POLY_INT_CST-sized arguments should be passed by value or reference,
3781 rather than forcing them to be passed by reference.
3782 (must_pass_in_stack_var_size): Likewise.
3783 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3784 V31_REGNUM to P15_REGNUM.
3785 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3786 Take an extra "silent_p" parameter, defaulting to false.
3787 (aarch64_sve::svbool_type_p): Declare.
3788 (aarch64_sve::nvectors_if_data_type): Likewise.
3789 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3790 (aarch64_frame::reg_offset): Turn into poly_int64s.
3791 (aarch64_frame::save_regs_size): Likewise.
3792 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3793 (aarch64_frame::sve_callee_adjust): Likewise.
3794 (aarch64_frame::spare_reg_reg): Likewise.
3795 (ARM_PCS_SVE): New arm_pcs value.
3796 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3797 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3798 (CUMULATIVE_ARGS::silent_p): Likewise.
3799 (BITS_PER_SVE_PRED): New macro.
3800 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3801 function. Reject aarch64_vector_pcs attributes on SVE functions.
3802 (aarch64_attribute_table): Use the above handler.
3803 (aarch64_sve_abi): New function.
3804 (aarch64_sve_argument_p): Likewise.
3805 (aarch64_returns_value_in_sve_regs_p): Likewise.
3806 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3807 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3808 descriptor for them.
3809 (aarch64_simd_decl_p): Delete.
3810 (aarch64_emit_cfi_for_reg_p): New function.
3811 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3812 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3813 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3814 as partly clobbered for the SVE PCS.
3815 (aarch64_function_ok_for_sibcall): Check whether the two functions
3816 use the same ABI, rather than checking specifically for whether
3817 they're aarch64_vector_pcs functions.
3818 (aarch64_pass_by_reference): Raise an error for attempts to pass
3819 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3820 if there are not enough free registers left, or if the argument is
3821 variadic.
3822 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3823 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3824 tuples in memory.
3825 (aarch64_layout_arg): Take a function_arg_info rather than
3826 individual properties. Handle SVE predicates, vectors and tuples.
3827 Raise an error if they are passed to unprototyped functions.
3828 (aarch64_function_arg): If the silent_p flag is set, suppress the
3829 usual error about using float registers without TARGET_FLOAT.
3830 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3831 it in the cumulative_args structure. Initialize aapcs_nprn and
3832 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3833 error about using float registers without TARGET_FLOAT.
3834 If the silent_p flag is not set, also raise an error about
3835 using SVE functions when SVE is disabled.
3836 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3837 and call it for SVE functions too. Update aapcs_nprn similarly
3838 to the other register counts.
3839 (aarch64_layout_frame): If a big-endian function needs to save
3840 and restore Z8-Z15, search for a spare predicate that it can use.
3841 Store SVE predicates at the bottom of the register save area,
3842 followed by SVE vectors, then followed by the normal slots.
3843 Keep pointing the hard frame pointer at the base of the normal slots,
3844 above the SVE vectors. Update the various frame creation and
3845 tear-down strategies for the new layout, initializing the new
3846 sve_callee_adjust field. Add an additional layout for frames
3847 whose saved registers are all SVE registers.
3848 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3849 (aarch64_return_address_signing_enabled): Likewise.
3850 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3851 aarch64_reg_save_mode.
3852 (aarch64_adjust_sve_callee_save_base): New function.
3853 (aarch64_add_cfa_expression): Move earlier in file. Take the
3854 saved register as an rtx rather than a register number and use
3855 its mode for the MEM slot.
3856 (aarch64_save_callee_saves): Remove the mode argument and instead
3857 use aarch64_reg_save_mode to get the mode of each save slot.
3858 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3859 offsets. Allow GP offsets to be saved at a VL-based offset from
3860 the stack, handling this case using the frame pointer if available
3861 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3862 big-endian SVE functions; use normal moves for other SVE saves.
3863 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3864 returns true. Add explicit CFA notes when not storing via the
3865 stack pointer. Do not try to pair SVE saves.
3866 (aarch64_restore_callee_saves): Cope with poly_int64 register
3867 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3868 use normal moves for other SVE restores. Only add CFA restore notes
3869 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3870 SVE restores.
3871 (aarch64_get_separate_components): Always keep the first SVE save
3872 in the prologue if we need to use it as a stack probe. Don't allow
3873 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3874 Likewise the spare predicate register that they need. Update the
3875 offset calculation to account for the SVE save area. Use the
3876 appropriate range check for SVE LDR and STR instructions.
3877 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3878 (aarch64_process_components): Likewise. Update the offset
3879 calculation to account for the SVE save area. Only mark the
3880 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3881 Do not try to pair SVE saves.
3882 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3883 reg_offsets. When handling the final allocation, expect the
3884 first SVE register save to be part of the initial allocation
3885 and for it to act as a probe at SP. Account for the SVE callee
3886 save area in the dump information.
3887 (aarch64_expand_prologue): Update the frame diagram. Fold the
3888 SVE callee allocation into the initial allocation if stack clash
3889 protection is enabled. Use new variables to track the offset
3890 of the frame chain (and hard frame pointer) from the current
3891 stack pointer, and likewise the offset of the bottom of the
3892 register save area. Update calls to aarch64_save_callee_saves
3893 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3894 saving the FP&SIMD registers. Save the predicate registers.
3895 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3896 into account when setting the stack pointer from the frame pointer,
3897 and when deciding whether we can inherit the initial adjustment
3898 amount from the prologue. Restore the predicate registers after
3899 the vector registers, then apply sve_callee_adjust, then restore
3900 the general registers.
3901 (aarch64_secondary_reload): Don't use secondary SVE reloads
3902 for VNx16BImode.
3903 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3904 (aarch64_short_vector_p): Return false for SVE types.
3905 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3906 at the start of the function. Return false for SVE types.
3907 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3908 functions too.
3909 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3910 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3911 to big-endian targets for bytewise moves.
3912 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3913
3914 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3915 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3916 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3917
3918 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3919 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3920 aarch64-sve-builtins-base.o to extra_objs. Add
3921 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3922 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3923 (aarch64-sve-builtins-shapes.o): Likewise.
3924 (aarch64-sve-builtins-base.o): New rules.
3925 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3926 (aarch64_resolve_overloaded_builtin): Likewise.
3927 (aarch64_check_builtin_call): Likewise.
3928 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3929 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3930 pragma.
3931 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3932 (aarch64_svprfop): New enum.
3933 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3934 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3935 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3936 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3937 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3938 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3939 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3940 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3941 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3942 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3943 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3944 (aarch64_sve::mangle_builtin_type): Likewise.
3945 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3946 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3947 (aarch64_sve::expand_builtin): Likewise.
3948 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3949 (aarch64_sve_int_mode): Likewise.
3950 (aarch64_ptrue_all_mode): New function.
3951 (aarch64_convert_sve_data_to_pred): Make public.
3952 (svprfop_token): New function.
3953 (aarch64_output_sve_prefetch): Likewise.
3954 (aarch64_fold_sve_cnt_pat): Likewise.
3955 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3956 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3957 instead of gen_while_ult.
3958 (aarch64_replace_reg_mode): Make public.
3959 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3960 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3961 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3962 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3963 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3964 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3965 (aarch64_sve_ptrue_svpattern_p): Likewise.
3966 (aarch64_sve_pred_valid_immediate): Check
3967 aarch64_sve_ptrue_svpattern_p.
3968 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3969 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3970 functions.
3971 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3972 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3973 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3974 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3975 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3976 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3977 New unspecs.
3978 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3979 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3980 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3981 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3982 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3983 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3984 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3985 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3986 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3987 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3988 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3989 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3990 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3991 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3992 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3993 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3994 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3995 (Vesize): Handle partial vector modes.
3996 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3997 mode attributes.
3998 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3999 iterators.
4000 (s, paired_extend, inc_dec): New code attributes.
4001 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
4002 (SVE_INT_UNARY): Add UNSPEC_RBIT.
4003 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
4004 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
4005 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
4006 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4007 UNSPEC_COND_FMULX.
4008 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
4009 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
4010 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4011 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
4012 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
4013 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
4014 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
4015 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4016 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4017 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4018 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4019 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4020 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4021 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4022 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4023 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4024 UNSPEC_COND_FSCALE.
4025 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4026 (binqops_op, binqops_op_rev, last_op): New int attributes.
4027 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4028 (fn, ab): New int attributes.
4029 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4030 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4031 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4032 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4033 UNSPEC_RBIT.
4034 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4035 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4036 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4037 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4038 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4039 UNSPEC_COND_FMULX.
4040 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4041 (brk_reg_con, brk_reg_opno): New int attributes.
4042 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4043 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4044 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4045 UNSPEC_COND_FMIN.
4046 (max_elem_bits): New int attribute.
4047 (min_elem_bits): Handle UNSPEC_RBIT.
4048 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4049 TRUNCATE as well as SUBREG.
4050 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4051 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4052 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4053 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4054 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4055 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4056 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4057 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4058 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4059 (aarch64_gather_scale_operand_h): New predicates.
4060 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4061 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4062 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4063 (*aarch64_sve_reinterpret<mode>): Allow any source register
4064 instead of requiring an exact match.
4065 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4066 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4067 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4068 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4069 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4070 (aarch64_update_ffrt): New patterns.
4071 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4072 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4073 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4074 (@aarch64_ld<fn>f1<mode>): New patterns.
4075 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4076 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4077 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4078 (@aarch64_ldnt1<mode>): New patterns.
4079 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4080 the scalar part of the address.
4081 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4082 scalar part of the addresse and add an alternative for handling
4083 nonzero offsets.
4084 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4085 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4086 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4087 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4088 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4089 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4090 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4091 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4092 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4093 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4094 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4095 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4096 (@aarch64_sve_prefetch<mode>): New patterns.
4097 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4098 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4099 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4100 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4101 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4102 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4103 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4104 (@aarch64_stnt1<mode>): New patterns.
4105 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4106 the scalar part of the address.
4107 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4108 the scalar part of the addresse and add an alternative for handling
4109 nonzero offsets.
4110 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4111 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4112 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4113 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4114 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4115 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4116 New patterns.
4117 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4118 (extract_last_<mode>): Generalize to...
4119 (@extract_<LAST:last_op>_<mode>): ...this.
4120 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4121 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4122 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4123 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4124 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4125 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4126 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4127 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4128 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4129 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4130 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4131 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4132 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4133 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4134 (*aarch64_adr_uxtw_unspec): Likewise.
4135 (*aarch64_adr_uxtw): Rename to...
4136 (*aarch64_adr_uxtw_and): ...this.
4137 (@aarch64_adr<mode>_shift): New expander.
4138 (*aarch64_adr_shift_sxtw): New pattern.
4139 (aarch64_<su>abd<mode>_3): Rename to...
4140 (@aarch64_pred_<su>abd<mode>): ...this.
4141 (<su>abd<mode>_3): Update accordingly.
4142 (@aarch64_cond_<su>abd<mode>): New expander.
4143 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4144 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4145 (*<su>mul<mode>3_highpart): Rename to...
4146 (@aarch64_pred_<optab><mode>): ...this.
4147 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4148 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4149 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4150 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4151 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4152 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4153 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4154 (*v<ASHIFT:optab><mode>3): Rename to...
4155 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4156 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4157 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4158 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4159 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4160 (@cond_asrd<mode>): New expander.
4161 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4162 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4163 (*sdiv_pow2<mode>3): Delete.
4164 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4165 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4166 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4167 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4168 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4169 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4170 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4171 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4172 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4173 (*add<SVE_F:mode>3): Rename to...
4174 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4175 for SVE_STRICT_GP.
4176 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4177 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4178 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4179 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4180 (*sub<SVE_F:mode>3): Rename to...
4181 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4182 for SVE_STRICT_GP.
4183 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4184 (*fabd<SVE_F:mode>3): Rename to...
4185 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4186 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4187 (*mul<SVE_F:mode>3): Rename to...
4188 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4189 for SVE_STRICT_GP.
4190 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4191 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4192 to...
4193 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4194 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4195 (*<nlogical><PRED_ALL:mode>3): Rename to...
4196 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4197 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4198 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4199 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4200 (aarch64_pred_<logical_nn><mode>_z): ...this.
4201 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4202 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4203 (*fma<SVE_I:mode>4): Rename to...
4204 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4205 (*fnma<SVE_I:mode>4): Rename to...
4206 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4207 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4208 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4209 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4210 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4211 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4212 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
4213 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
4214 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
4215 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
4216 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
4217 (@aarch64_sve_tmad<mode>): Likewise.
4218 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
4219 (*aarch64_sel_dup<mode>): Rename to...
4220 (@aarch64_sel_dup<mode>): ...this.
4221 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
4222 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
4223 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
4224 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
4225 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
4226 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
4227 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
4228 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
4229 (*fcm<cmp_op><mode>): Rename to...
4230 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
4231 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4232 (*fcmuo<mode>): Rename to...
4233 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
4234 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4235 (@aarch64_pred_fac<cmp_op><mode>): New expander.
4236 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
4237 (fold_extract_last_<mode>): Generalize to...
4238 (@fold_extract_<last_op>_<mode>): ...this.
4239 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
4240 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
4241 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
4242 DImode result explicit.
4243 (reduc_plus_scal_<mode>): Update accordingly.
4244 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
4245 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
4246 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
4247 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
4248 (*aarch64_sve_tbl<mode>): Rename to...
4249 (@aarch64_sve_tbl<mode>): ...this.
4250 (@aarch64_sve_compact<mode>): New pattern.
4251 (*aarch64_sve_dup_lane<mode>): Rename to...
4252 (@aarch64_sve_dup_lane<mode>): ...this.
4253 (@aarch64_sve_dupq_lane<mode>): New pattern.
4254 (@aarch64_sve_splice<mode>): Likewise.
4255 (aarch64_sve_<perm_insn><mode>): Rename to...
4256 (@aarch64_sve_<perm_insn><mode>): ...this.
4257 (*aarch64_sve_ext<mode>): Rename to...
4258 (@aarch64_sve_ext<mode>): ...this.
4259 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
4260 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
4261 to...
4262 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
4263 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4264 Rename to...
4265 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4266 ...this.
4267 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
4268 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
4269 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
4270 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
4271 to...
4272 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
4273 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
4274 a "@" marker.
4275 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
4276 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
4277 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
4278 pattern.
4279 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
4280 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
4281 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
4282 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
4283 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
4284 "@" marker.
4285 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
4286 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
4287 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
4288 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
4289 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
4290 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
4291 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
4292 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
4293 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
4294 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
4295 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
4296 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
4297 (aarch64_sve_cnt_pat): Likewise.
4298 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4299 (*aarch64_sve_incsi_pat): Likewise.
4300 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4301 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4302 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4303 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4304 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4305 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4306 (*aarch64_sve_decsi_pat): Likewise.
4307 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4308 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4309 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4310 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4311 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4312 (@aarch64_pred_cntp<mode>): Likewise.
4313 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4314 New expander.
4315 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4316 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4317 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4318 New expander.
4319 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4320 New pattern.
4321 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
4322 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4323 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
4324 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4325 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
4326 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4327 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4328 New expander.
4329 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4330 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4331 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4332 New expander.
4333 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4334 New pattern.
4335 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
4336 expander.
4337 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4338 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
4339 expander.
4340 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4341 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
4342 expander.
4343 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4344 * config/aarch64/arm_sve.h: New file.
4345 * config/aarch64/aarch64-sve-builtins.h: Likewise.
4346 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
4347 * config/aarch64/aarch64-sve-builtins.def: Likewise.
4348 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
4349 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
4350 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
4351 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
4352 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
4353 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
4354
4355 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4356
4357 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
4358 New pattern.
4359 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
4360 SVE modes.
4361
4362 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4363
4364 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
4365 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
4366 FFRT_REGNUM + 1.
4367 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
4368 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
4369 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
4370 (aarch64_hard_regno_nregs): Handle the new register classes.
4371 (aarch64_hard_regno_mode_ok): Likewise.
4372 (aarch64_regno_regclass): Likewise.
4373 (aarch64_class_max_nregs): Likewise.
4374 (aarch64_register_move_cost): Likewise.
4375 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
4376 as general register_operands.
4377
4378 2019-10-29 Martin Liska <mliska@suse.cz>
4379
4380 * ggc-common.c: One can't subtract unsigned types
4381 in compare function.
4382
4383 2019-10-29 Martin Liska <mliska@suse.cz>
4384
4385 * cgraphunit.c (symbol_table::compile): Pass
4386 title as dump_memory_report argument.
4387 * toplev.c (dump_memory_report): New argument.
4388 (finalize): Pass new argument.
4389 * toplev.h (dump_memory_report): Add argument.
4390
4391 2019-10-29 Martin Liska <mliska@suse.cz>
4392
4393 * ggc-common.c: Move Leak to the first column.
4394
4395 2019-10-29 Martin Liska <mliska@suse.cz>
4396
4397 * cgraphunit.c (symbol_table::compile): Remove argument
4398 for dump_memory_report.
4399 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4400 (compare_final): Remove in order to make report
4401 better readable.
4402 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4403 * mem-stats.h (mem_alloc_description::get_list):
4404 Do not pass cmp.
4405 (mem_alloc_description::dump): Likewise here.
4406 * toplev.c (dump_memory_report): Remove final
4407 argument.
4408 (finalize): Likewise.
4409 * toplev.h (dump_memory_report): Remove argument.
4410
4411 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4412
4413 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4414 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4415 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4416 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4417 accept "const".
4418
4419 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4420
4421 * coretypes.h (string_int_pair): New typedef.
4422 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4423 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4424 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4425
4426 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4427
4428 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
4429 (simulate_builtin_function_decl): Declare.
4430 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
4431 (LANG_HOOKS_INITIALIZER): Include it.
4432 * langhooks.c (add_builtin_function_common): Rename to...
4433 (build_builtin_function): ...this. Add a location parameter and use
4434 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
4435 the decl instead.
4436 (add_builtin_function): Update accordingly, passing the returned
4437 decl to the lang hook.
4438 (add_builtin_function_ext_scope): Likewise
4439 (simulate_builtin_function_decl): New function.
4440
4441 2019-10-29 Jakub Jelinek <jakub@redhat.com>
4442
4443 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
4444 example, use actual names of supported offload targets.
4445
4446 PR target/92258
4447 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
4448
4449 2019-10-28 Martin Sebor <msebor@redhat.com>
4450
4451 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
4452 (handle_store): Pass argument to get_addr_stridx.
4453
4454 2019-10-28 Martin Sebor <msebor@redhat.com>
4455
4456 PR tree-optimization/92226
4457 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
4458 the offset is in the open range outlined by SI's length.
4459
4460 2019-10-28 Martin Sebor <msebor@redhat.com>
4461
4462 PR c/66970
4463 * doc/cpp.texi (__has_builtin): Document.
4464 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
4465
4466 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4467
4468 PR target/82981
4469 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
4470 doubleword and low doubleword result of multiplication on
4471 MIPS64R6.
4472
4473 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
4474 pure qualifier to the built-in.
4475 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
4476 built-ins.
4477 (struct mips_builtin_description): Add is_pure flag.
4478 (mips_init_builtins): Mark built-in as pure if the flag in the
4479 corresponding mips_builtin_description struct is set.
4480
4481 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
4482 alternative which covers the floating-point input value. Also
4483 forbid the split of insert.d pattern for floating-point values.
4484
4485 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
4486
4487 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
4488 * config/riscv/riscv-sr.c: New file.
4489 * config/riscv/riscv.c (riscv_reorg): New function.
4490 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4491 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
4492 (riscv_remove_unneeded_save_restore_calls): Declare.
4493 * config/riscv/t-riscv (riscv-sr.o): New build rule.
4494
4495 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4496
4497 PR tree-optimization/92163
4498 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
4499 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
4500 before calling bitmap_set_bit.
4501 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
4502 delete_dead_or_redundant_assignment.
4503 (dse_dom_walker::dse_optimize_stmt): Likewise.
4504 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
4505
4506 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4507
4508 PR middle-end/91272
4509 * tree-vect-stmts.c (vectorizable_condition): Support
4510 EXTRACT_LAST_REDUCTION with fully-masked loops.
4511
4512 2019-10-28 Richard Biener <rguenther@suse.de>
4513
4514 PR tree-optimization/92252
4515 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
4516 STMT_VINFO_REDUC_IDX when swapping operands.
4517
4518 2019-10-28 Richard Biener <rguenther@suse.de>
4519
4520 PR tree-optimization/92241
4521 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
4522 we failed to update the reduction index do not use the pattern
4523 stmts for the reduction chain.
4524 (vectorizable_reduction): When the reduction chain is corrupt,
4525 fail.
4526 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
4527 fail to update the reduction chain.
4528
4529 2019-10-28 Richard Biener <rguenther@suse.de>
4530
4531 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4532 STMT_VINFO_REDUC_IDX from the actual stmt.
4533 (vect_transform_reduction): Likewise.
4534 (vectorizable_reduction): Compute the reduction chain length,
4535 do not recompute the reduction operand index. Remove no longer
4536 necessary restriction for condition reduction chains.
4537
4538 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4539
4540 PR target/92225
4541 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
4542 condition for V2DImode.
4543
4544 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4545
4546 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
4547 Remove %k operand modifier.
4548 (*vec_extractv2df_1_sse): Remove %q operand modifier.
4549
4550 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
4551
4552 PR rtl-optimization/92007
4553 * cfgcleanup.c (thread_jump): Add an assertion that we don't
4554 call it after reload if hot/cold partitioning has been done.
4555 (class pass_postreload_jump): Rename to
4556 pass_jump_after_combine.
4557 (make_pass_postreload_jump): Rename to
4558 make_pass_jump_after_combine.
4559 * passes.def(pass_postreload_jump): Move before reload, rename
4560 to pass_jump_after_combine.
4561 * tree-pass.h (make_pass_postreload_jump): Rename to
4562 make_pass_jump_after_combine.
4563
4564 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
4565
4566 PR ipa/92242
4567 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4568 for missing EDGE_REF
4569 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4570
4571 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4572
4573 PR tree-optimization/88760
4574 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4575 Enable -funroll-loops for -O2 and above.
4576 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4577 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4578 do not turn on web and rngreg implicitly, if the unroller is not
4579 explicitly enabled.
4580
4581 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4582
4583 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4584 jump functions.
4585
4586 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4587
4588 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4589 * cgraph.h (cgraph_node::rtl_info): Likewise.
4590
4591 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4592
4593 * ipa-cp.c (propagate_constants_across_call): If args are not available
4594 just drop everything to varying.
4595 (find_aggregate_values_for_callers_subset): Watch for missing
4596 edge summary.
4597 (find_more_scalar_values_for_callers_subs): Likewise.
4598 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4599 update_jump_functions_after_inlining, propagate_controlled_uses):
4600 Watch for missing summaries.
4601 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4602 is finished.
4603 (ipa_write_node_info): Watch for missing summaries.
4604 (ipa_read_edge_info): Create new ref.
4605 (ipa_edge_args_sum_t): Add remove.
4606 (IPA_EDGE_REF_GET_CREATE): New macro.
4607 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4608 edge summary.
4609 (remap_edge_change_prob): Likewise.
4610
4611 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4612
4613 * ipa-inline-transform.c (inline_call): update function summaries
4614 after expanidng thunk.
4615
4616 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4617
4618 * ipa-icf.c (sem_function::merge): Update function summaries.
4619 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4620
4621 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4622
4623 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4624 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4625 operand already has scalar mode.
4626 (iptr): Remove SF/DF.
4627
4628 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4629
4630 PR target/91289
4631 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4632 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4633 this.
4634
4635 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4636
4637 * config/i386/sse.md
4638 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4639 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4640 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4641 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4642 <sse>_vmmaskcmp<mode>3):
4643 Change predicates from vector_operand to nonimmediate_operand,
4644 constraints xBm to xm, since scalar operations don't need
4645 memory address alignment.
4646 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4647 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4648 round_saeonly_nimm_predicate with
4649 round_saeonly_nimm_scalar_predicate.
4650 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4651 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4652 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4653 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4654 avx512f_vmfmadd_<mode>_mask3<round_name>,
4655 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4656 *avx512f_vmfmsub_<mode>_mask<round_name>,
4657 avx512f_vmfmsub_<mode>_mask3<round_name>,
4658 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4659 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4660 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4661 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4662 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4663 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4664 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4665 cvtusi2<ssescalarmodesuffix>32<round_name>,
4666 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4667 round_nimm_predicate with round_nimm_scalr_predicate.
4668 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4669 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4670 avx512er_vmrcp28<mode><round_saeonly_name>,
4671 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4672 ): Replace round_saeonly_nimm_predicate with
4673 round_saeonly_nimm_scalar_predicate.
4674 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4675 vector_operand with nonimmediate_operand.
4676 * config/i386/subst.md (round_scalar_nimm_predicate,
4677 round_saeonly_scalar_nimm_predicate): Replace
4678 vector_operand with nonimmediate_operand.
4679
4680 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4681
4682 PR target/89071
4683 * config/i386/i386.md (*rcpsf2_sse): Add
4684 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4685 (*rsqrtsf2_sse): Ditto.
4686 (*sqrt<mode>2_sse): Ditto.
4687 (sse4_1_round<mode>2): separate constraint vm, add
4688 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4689 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4690 by pass rpad.
4691 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4692 Ditto.
4693 (*sse_vmrsqrtv4sf2): Ditto.
4694 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4695 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4696 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4697 <iptr> pointer size modifier since vround support memory operand.
4698
4699 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4700
4701 PR target/85969
4702 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4703 static function.
4704
4705 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4706 Tobias Burnus <tobias@codesourcery.com>
4707
4708 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4709 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4710 common block decls.
4711
4712 2019-10-25 Richard Biener <rguenther@suse.de>
4713
4714 PR tree-optimization/92222
4715 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4716 (_slp_oprnd_info::second_pattern): Likewise.
4717 (_slp_oprnd_info::any_pattern): New.
4718 (vect_create_oprnd_info): Adjust.
4719 (vect_get_and_check_slp_defs): Compute whether any stmt is
4720 in a pattern.
4721 (vect_build_slp_tree_2): Avoid building up a node from scalars
4722 if any of the operand defs, not just the first, is in a pattern.
4723
4724 2019-10-25 Richard Biener <rguenther@suse.de>
4725
4726 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4727 swapping if we actually have to modify the IL on a shared stmt.
4728 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4729 because we no longer modify the IL.
4730
4731 2019-10-25 Martin Liska <mliska@suse.cz>
4732
4733 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4734
4735 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4736
4737 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4738 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4739 handled by vect_transform_reduction. Allow fully-masked loops
4740 to be used with reduction chains.
4741 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4742 operations in fully-masked loops.
4743 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4744 operations in fully-masked loops.
4745
4746 2019-10-25 Richard Biener <rguenther@suse.de>
4747
4748 * tree-vect-loop.c (vectorizable_reduction): Verify
4749 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4750 correctly.
4751 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4752 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4753 stmts.
4754
4755 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4756
4757 * gimplify.h (omp_construct_selector_matches): Declare.
4758 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4759 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4760 called function if needed for flag_openmp.
4761 (gimplify_scan_omp_clauses): Set ctx->code.
4762 (omp_construct_selector_matches): New function.
4763 * omp-general.h (omp_constructor_traits_to_codes,
4764 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4765 * omp-general.c (omp_constructor_traits_to_codes,
4766 omp_context_selector_matches, omp_resolve_declare_variant): New
4767 functions.
4768
4769 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4770 literal.
4771 * config/rx/rx.c (rx_print_operand): Likewise.
4772 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4773 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4774 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4775 Likewise.
4776 * genemit.c (emit_c_code): Likewise.
4777 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4778
4779 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4780
4781 * symbols-summary.h (fast_function_summary<T *, V>::release,
4782 fast_call_summary<T *, V>::release): Free m_vector.
4783
4784 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4785
4786 * cgraphunit.c (symbol_table::process_new_functions): Call
4787 ipa_free_size_summary.
4788 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4789 (devirtualization_time_bonus): Update.
4790 (ipcp_propagate_stage): Update.
4791 * ipa-fnsummary.c (ipa_size_summaries): New.
4792 (ipa_fn_summary_alloc): Alloc size summary.
4793 (dump_ipa_call_summary): Update.
4794 (ipa_dump_fn_summary): Update.
4795 (analyze_function_body): Update.
4796 (compute_fn_summary): Likewise.
4797 (ipa_get_stack_frame_offset): New function.
4798 (inline_update_callee_summaries): Do not update frame offsets.
4799 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4800 remove call and function summary.
4801 (ipa_update_overall_fn_summary): Update.
4802 (inline_read_section): Update.
4803 (ipa_fn_summary_write): Update.
4804 (ipa_free_fn_summary): Do not remove summaries.
4805 (ipa_free_size_summary): New.
4806 (release summary pass): Also run at WPA.
4807 * ipa-fnsummary.h (ipa_size_summary): Declare.
4808 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4809 estimated_self_stack_size.
4810 (ipa_size_summary_t): New type.
4811 (ipa_size_summaries): Declare.
4812 (ipa_free_size_summary): Declare.
4813 (ipa_get_stack_frame_offset): Declare.
4814 * ipa-icf.c (sem_function::merge): Update.
4815 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4816 (estimate_growth): Update.
4817 (growth_likely_positive): Update.
4818 (clone_inlined_nodes): Update.
4819 (inline_call): Update.
4820 * ipa-inline.c (caller_growth_limits): Update.
4821 (edge_badness): Update.
4822 (recursive_inlining): Update.
4823 (inline_small_functions): Update.
4824 (inline_to_all_callers_1): Update.
4825 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4826
4827 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4828
4829 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4830 (uavg<mode>3_ceil): ... This.
4831 (altivec_vavgs<VI_char>): Rename to...
4832 (avg<mode>3_ceil): ... This.
4833 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4834 VAVGUW, VAVGSW): Adjust.
4835
4836 2019-10-24 Nathan Sidwell <nathan@acm.org>
4837
4838 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4839
4840 2019-10-24 Martin Liska <mliska@suse.cz>
4841
4842 * symbol-summary.h (gt_pch_nx): Mark all functions
4843 with gcc_unreachable as we do not expect to be called.
4844
4845 2019-10-24 Richard Biener <rguenther@suse.de>
4846
4847 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4848 chains try harder with operand swapping and instead of
4849 putting a shifted chain into the reduction operands put
4850 a repetition of the final reduction op there as if we'd
4851 reassociate the expression.
4852
4853 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4854
4855 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4856 statics_not_read and statics_not_written to statics_read and
4857 statics_written respectively.
4858 (no_module_statics): New static var.
4859 (ipa_reference_get_not_read_global): Rename to ...
4860 (ipa_reference_get_read_global): ... this.
4861 (ipa_reference_get_not_written_global): Rename to ...
4862 (ipa_reference_get_written_global): ... this.
4863 (dump_static_vars_set_to_file): Dump no_module_statics.
4864 (copy_static_var_set): Add for propagation parameter.
4865 (ipa_init): Initialize no_module_statics.
4866 (ipa_ref_opt_summary_t::duplicate): Update.
4867 (ipa_ref_opt_summary_t::remove): Update.
4868 (propagate): Update.
4869 (write_node_summary_p): Look correctly for bitmap differences.
4870 (ipa_reference_write_optimization_summary): Update.
4871 (ipa_reference_read_optimization_summary): Update.
4872 * ipa-reference.h
4873 (ipa_reference_get_not_read_global): Rename to ...
4874 (ipa_reference_get_read_global): ... this.
4875 (ipa_reference_get_not_written_global): Rename to ...
4876 (ipa_reference_get_written_global): ... this.
4877 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4878 (call_may_clobber_ref_p_1): Update.
4879
4880 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4881
4882 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4883 and add comment.
4884 (msp430_hard_regno_nregs_with_padding): Remove.
4885
4886 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4887
4888 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4889 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4890 shift amount is between 1 and 4.
4891 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4892 is between 1 and 4.
4893
4894 2019-10-24 Richard Biener <rguenther@suse.de>
4895
4896 PR tree-optimization/92205
4897 * tree-vect-loop.c (vectorizable_reduction): Restrict
4898 search for alternate vectype_in to lane-reducing patterns
4899 we support.
4900
4901 2019-10-24 Richard Biener <rguenther@suse.de>
4902
4903 PR tree-optimization/92203
4904 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4905 Skip eliminating conversion stmts inserted by insertion.
4906
4907 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4908
4909 * config/s390/s390.c (s390_get_thread_pointer): Use
4910 gen_get_thread_pointer.
4911 (s390_expand_split_stack_prologue): Likewise.
4912 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4913 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4914 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4915 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4916 parameterized name.
4917
4918 2019-10-24 Richard Biener <rguenther@suse.de>
4919
4920 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4921 SLP discovery fails try to handle the reduction as part
4922 of SLP reduction discovery.
4923
4924 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4925
4926 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4927 declaration.
4928 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4929 attribute if it exists, rather than the insn size. If we use the
4930 insn size, adjust the size to remove the extra size that prefixed
4931 instructions take.
4932 (rs6000_adjust_insn_length): New function.
4933 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4934 update the instruction sized if prefixed instructions are used.
4935 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4936 (non_prefixed_length attribute): Delete.
4937 (num_insns attribute): New insn attribute to return the number of
4938 instructions.
4939 (max_prefixed_insns attribute): New insn attribute to return the
4940 maximum number of prefixed instructions in an insn.
4941 (length attribute): Do not adjust for prefix instructions here,
4942 punt to ADJUST_INSN_LENGTH.
4943 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4944 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4945 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4946 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4947 max_prefixed_insns and num_insns.
4948
4949 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4950 (movtd_64bit_nodm): Reformat.
4951 (mov<mode>_32bit): Reformat.
4952 (mov<mode>_softfloat): Reformat.
4953 (FMOVE128_GPR splitter): Reformat.
4954 (DIFD splitter): Reformat.
4955 (TI2 splitter): Reformat.
4956 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4957 bits of the offset for the memory address are non-zero, use PLWA
4958 if prefixed instructions are available.
4959
4960 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4961
4962 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4963
4964 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4965
4966 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4967 previous patch.
4968
4969 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4970
4971 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4972 (cmp_symbol_files): New.
4973 (lto_output): Copy sections in file order.
4974 * lto-streamer.h (lto_file_decl_data): Add field order.
4975
4976 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4977
4978 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4979 * ipa-reference.c (reference_vars_map_t): new type.
4980 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4981 (ipa_reference_var_uid): Implement.
4982 (varpool_node_hooks): New static var.
4983 (varpool_removal_hook): New function.
4984 (is_improper): Do not check bitmap for id==-1
4985 (get_static_name): Update.
4986 (ipa_init): Initialize new datastructures.
4987 (analyze_function): Do not recompute ids.
4988 (propagate): Free reference_vars_to_consider.
4989 (stream_out_bitmap): Update.
4990 (ipa_reference_read_optimization_summary): Update.
4991
4992 2019-10-23 qing zhao <qing.zhao@oracle.com>
4993
4994 PR gcov-profile/91971
4995 * coverage.c (coverage_init): Mangle the full path of filename when
4996 filename is a absolute path.
4997
4998 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4999
5000 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
5001 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
5002 (msp430_has_hwmult): New.
5003 (msp430_output_labelref):
5004 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
5005 * config/msp430/msp430.md (mulhisi3): Likewise.
5006 (umulhisi3): Likewise.
5007 (mulsidi3): Likewise.
5008 (umulsidi3): Likewise.
5009
5010 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5011
5012 PR ipa/92074
5013 * params.def (inline-heuristics-hint-percent): Set to 600.
5014
5015 2019-10-23 Richard Biener <rguenther@suse.de>
5016
5017 PR tree-optimization/65930
5018 * tree-vect-loop.c (check_reduction_path): Allow conversions
5019 that only change the sign.
5020 (vectorizable_reduction): Relax latch def stmts we handle further.
5021
5022 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5023
5024 PR debug/90231
5025 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5026 (remove_unused_ivs): Use it instead of get_computation_at. When
5027 choosing best candidate, only consider candidates where
5028 get_debug_computation_at actually returns non-NULL.
5029
5030 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5031
5032 PR tree-optimization/92131
5033 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5034 range would be symbolic, drop to varying for any explicit overflow
5035 in the constant part or if neither range is a singleton.
5036
5037 2019-10-23 Martin Liska <mliska@suse.cz>
5038
5039 PR middle-end/81669
5040 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5041 Initialize m_data.
5042
5043 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5044
5045 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5046 int_mode_for_mode rather than mode_for_int_vector for scalars.
5047
5048 2019-10-23 Richard Biener <rguenther@suse.de>
5049
5050 PR tree-optimization/92179
5051 * tree-vect-stmts.c (vectorizable_shift): For shift args
5052 that are all the same remove type restriction in the SLP case.
5053 Adjust SLP code to handle converting of the shift arg to
5054 only apply in case the modes are different.
5055
5056 2019-10-23 Martin Liska <mliska@suse.cz>
5057
5058 PR ipa/91969
5059 * ipa-inline.c (recursive_inlining): Do not print
5060 when curr->count is not initialized.
5061
5062 2019-10-23 Richard Biener <rguenther@suse.de>
5063
5064 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5065 op from scalars in case there's a constant operand in its
5066 definition.
5067
5068 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5069
5070 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5071 against out of range max skip or log values.
5072
5073 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5074
5075 * cgraph.c (dump_graphviz): Change name to dump_name
5076
5077 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5078
5079 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5080 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5081 subtraction from a carry operation.
5082
5083 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5084
5085 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5086
5087 2019-10-22 Richard Biener <rguenther@suse.de>
5088
5089 PR tree-optimization/92173
5090 * tree-vect-loop.c (vectorizable_reduction): If
5091 vect_transform_reduction cannot handle code-generation try without
5092 the single-def-use-cycle optimization. Pass optab_vector to
5093 optab_for_tree_code to get vector shifts as that's what we'd
5094 generate.
5095
5096 2019-10-22 Michael Matz <matz@suse.de>
5097
5098 PR middle-end/90796
5099 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5100 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5101 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5102
5103 2019-10-22 Richard Biener <rguenther@suse.de>
5104
5105 PR tree-optimization/92173
5106 * tree-vect-loop.c (vectorizable_reduction): If
5107 vect_transform_reduction cannot handle code-generation try without
5108 the single-def-use-cycle optimization. Pass optab_vector to
5109 optab_for_tree_code to get vector shifts as that's what we'd
5110 generate.
5111
5112 2019-10-22 Martin Liska <mliska@suse.cz>
5113
5114 * diagnostic-format-json.cc (json_from_expanded_location):
5115 Use json::integer_number.
5116 * gcov.c (output_intermediate_json_line): Use new
5117 json::integer_number.
5118 (output_json_intermediate_file): Likewise.
5119 * json.cc (number::print): Move to ...
5120 (float_number::print): ... this.
5121 (integer_number::print): New.
5122 (test_writing_numbers): Move to ...
5123 (test_writing_float_numbers): ... this.
5124 (test_writing_integer_numbers): New.
5125 (json_cc_tests): Register test_writing_integer_numbers.
5126 * json.h (class value): Add forward declaration
5127 for float_number and integer_number.
5128 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5129 (class number): Move to ...
5130 (class float_number): ... this.
5131 (class integer_number): New.
5132 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5133 Use json::integer_number.
5134 (optrecord_json_writer::location_to_json): Likewise.
5135 (optrecord_json_writer::profile_count_to_json): Likewise.
5136 (optrecord_json_writer::pass_to_json): Likewise.
5137
5138 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5139
5140 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5141 autodetected_vector_size rather than vector_size is zero.
5142 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5143 Set autodetected_vector_size immediately after calling
5144 vect_analyze_loop_2. Check for a fatal error before advancing
5145 next_size.
5146
5147 2019-10-21 Jason Merrill <jason@redhat.com>
5148
5149 * lock-and-run.sh: Check for process existence rather than timeout.
5150
5151 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5152
5153 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5154 widening multiplication.
5155
5156 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5157
5158 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5159 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5160 type attribute.
5161 (subsi3_carryin_shift): Separate into register and constant controlled
5162 alternatives. Use shift_amount_operand for operand 4. Set shift
5163 attribute and simplify type attribute.
5164 (subsi3_carryin_shift_alt): Likewise.
5165 (rsbsi3_carryin_shift): Likewise.
5166 (rsbsi3_carryin_shift_alt): Likewise.
5167 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5168 and register controlled shifts into distinct alternatives.
5169 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5170 (andsi_not_shiftsi_si_scc): Likewise.
5171 (arm_cmpsi_negshiftsi_si): Likewise.
5172 (not_shiftsi): Remove redundant M constraint from alternative 1.
5173 (not_shiftsi_compare0): Likewise.
5174 (arm_cmpsi_insn): Remove redundant alternative 2.
5175 (cmpsi_shift_swp): Likewise.
5176 (sub_shiftsi): Likewise.
5177 (sub_shiftsi_compare0_scratch): Likewise.
5178 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5179 (thumb2_cmpsi_neg_shiftsi): Likewise.
5180
5181 2019-10-21 Richard Biener <rguenther@suse.de>
5182
5183 PR tree-optimization/92162
5184 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5185 STMT_VINFO_REDUC_IDX in reduc_info.
5186 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5187
5188 2019-10-21 Richard Biener <rguenther@suse.de>
5189
5190 * tree-vectorizer.h (_slp_tree::ops): New member.
5191 (SLP_TREE_SCALAR_OPS): New.
5192 (vect_get_slp_defs): Adjust prototype.
5193 * tree-vect-slp.c (vect_free_slp_tree): Release
5194 SLP_TREE_SCALAR_OPS.
5195 (vect_create_new_slp_node): Initialize it. New overload for
5196 initializing by an operands array.
5197 (_slp_oprnd_info::ops): New member.
5198 (vect_create_oprnd_info): Initialize it.
5199 (vect_free_oprnd_info): Release it.
5200 (vect_get_and_check_slp_defs): Populate the operands array.
5201 Do not swap operands in the IL when not necessary.
5202 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5203 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5204 swap operands in the operands array. Do not swap operands in
5205 the IL.
5206 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5207 (vect_gather_slp_loads): Fix.
5208 (vect_detect_hybrid_slp_stmts): Likewise.
5209 (vect_slp_analyze_node_operations_1): Search for a internal
5210 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5211 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5212 the def-type push/pop dance.
5213 (vect_get_constant_vectors): Compute number_of_vectors here.
5214 Use SLP_TREE_SCALAR_OPS and simplify greatly.
5215 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
5216 (vect_get_slp_defs): Simplify greatly.
5217 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
5218 (vect_transform_reduction): Likewise.
5219 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
5220 (vectorizable_call): Likewise.
5221 (vectorizable_operation): Likewise.
5222 (vectorizable_load): Likewise.
5223 (vectorizable_condition): Likewise.
5224 (vectorizable_comparison): Likewise.
5225
5226 2019-10-21 Richard Biener <rguenther@suse.de>
5227
5228 PR tree-optimization/92161
5229 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
5230 for reductions.
5231
5232 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5233
5234 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
5235 (aarch64_rndr): New define_insn.
5236 (aarch64_rndrrs): Likewise.
5237 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
5238 (TARGET_RNG): Likewise.
5239 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
5240 argument.
5241 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
5242 Add fourth argument in prototype.
5243 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
5244 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
5245 (aarch64_init_rng_builtins): Define.
5246 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
5247 (aarch64_expand_rng_builtin): Define.
5248 (aarch64_general_expand_builtin): Use IGNORE argument, handle
5249 RNG builtins.
5250 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5251 __ARM_FEATURE_RNG when TARGET_RNG.
5252 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
5253
5254 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
5255
5256 * tree-vect-stmts (ensure_base_align): Only change alignment if new
5257 alignment is more restrictive.
5258
5259 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5260
5261 * tree-vectorizer.h (vec_info::vector_size): New member variable.
5262 (vect_update_max_nunits): Update comment.
5263 (current_vector_size): Delete.
5264 * tree-vect-stmts.c (current_vector_size): Likewise.
5265 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
5266 of current_vector_size.
5267 (get_mask_type_for_scalar_type): Likewise.
5268 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
5269 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
5270 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
5271 (vect_double_mask_nunits, vect_transform_loop): Likewise.
5272 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5273 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
5274
5275 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5276
5277 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
5278 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
5279 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
5280 accordingly.
5281
5282 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5283
5284 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
5285 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
5286 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
5287 call accordingly.
5288 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5289
5290 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5291
5292 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
5293 a loop_vec_info.
5294 (vect_set_loop_condition_masked): Update call accordingly.
5295
5296 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5297
5298 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
5299 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5300 (simple_integer_narrowing): Update call accordingly.
5301 (vectorizable_conversion): Likewise.
5302
5303 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5304
5305 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
5306 (vectorizable_call): Update call accordingly.
5307
5308 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5309
5310 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
5311 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5312 (duplicate_and_interleave): Update call accordingly.
5313 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5314
5315 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5316
5317 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
5318 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
5319 (vect_get_constant_vectors): Update call accordingly.
5320 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
5321
5322 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5323
5324 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
5325 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
5326 (vect_prologue_cost_for_slp_op): Update call accordingly.
5327 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
5328 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
5329 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
5330 (get_mask_type_for_scalar_type): Likewise.
5331 (vect_get_vector_types_for_stmt): Likewise.
5332 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5333 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5334 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
5335 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
5336 (vect_split_statement, vect_convert_input): Likewise.
5337 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
5338 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
5339 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
5340 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
5341 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
5342 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
5343 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
5344 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
5345 (vect_recog_mask_conversion_pattern): Likewise.
5346 (vect_add_conversion_to_pattern): Likewise.
5347 (vect_recog_gather_scatter_pattern): Likewise.
5348 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
5349 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
5350
5351 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5352
5353 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
5354 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
5355 (vect_check_load_store_mask): Update call accordingly.
5356 (vect_get_mask_type_for_stmt): Likewise.
5357 * tree-vect-patterns.c (check_bool_pattern): Likewise.
5358 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
5359 (vect_convert_mask_for_vectype): Likewise.
5360
5361 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5362
5363 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
5364 a vec_info.
5365 (vect_recog_dot_prod_pattern): Update call accordingly.
5366 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
5367 (vect_recog_widen_sum_pattern): Likewise.
5368
5369 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5370
5371 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
5372 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
5373 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
5374 accordingly.
5375
5376 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5377
5378 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
5379 get_vectype_for_scalar_type_and_size instead of
5380 get_vectype_for_scalar_type.
5381
5382 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5383
5384 * common.opt (-fcommon): Fix description.
5385
5386 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5387
5388 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5389 * config/i386/i386.c (ix86_pre_reload_split): New function.
5390 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5391 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5392 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5393 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5394 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5395 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5396 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5397 *<shift_insn><dwi>3_doubleword_mask,
5398 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5399 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5400 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5401 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5402 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5403 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5404 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5405 *avx2_<code>v8qiv8si2<mask_name>_2,
5406 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5407 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5408 *avx512f_<code>v8qiv8di2<mask_name>_2,
5409 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5410 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5411 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5412 sse4_2_pcmpistr): Likewise.
5413
5414 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5415
5416 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5417 now defaults to https.
5418
5419 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5420
5421 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5422 skip non-zero array accesses.
5423
5424 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5425
5426 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5427 and return a boolean success value. Move the allocation and
5428 initialization of the bb_vec_info to...
5429 (vect_slp_bb_region): ...here. Update call accordingly.
5430 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
5431 than in vect_slp_analyze_bb_1.
5432
5433 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5434
5435 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
5436 when processing the given datarefs for the first time and
5437 check_datarefs subsequently.
5438 (vect_slp_bb_region): New function, split out of...
5439 (vect_slp_bb): ...here. Don't recompute the region bounds and
5440 dataref sets when retrying with a different vector size.
5441
5442 2019-10-19 Jakub Jelinek <jakub@redhat.com>
5443 Uroš Bizjak <ubizjak@gmail.com>
5444
5445 PR target/92140
5446 * config/i386/predicates.md (int_nonimmediate_operand): New special
5447 predicate.
5448 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
5449 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
5450 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
5451 define_insn_and_split patterns.
5452
5453 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
5454
5455 * config/rs6000/rs6000.md: Delete out--of-date comment about
5456 special-casing integer loads.
5457
5458 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
5459
5460 * escaped_string.h (escaped_string): New header.
5461 * tree.c (escaped_string): Remove escaped_string class.
5462
5463 2019-10-18 Martin Sebor <msebor@redhat.com>
5464
5465 PR tree-optimization/92157
5466 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5467 compute_string_length to return a negative result.
5468
5469 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5470
5471 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
5472 (negvsi3, negvdi3): Delete.
5473 (negdi2_compare): Delete.
5474
5475 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5476
5477 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
5478 operations.
5479 (subdi3_compare1): Delete pattern.
5480 (subvsi3_borrow): New insn pattern.
5481 (subvsi3_borrow_imm): Likewise.
5482
5483 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5484
5485 * config/arm/arm.md (subv<mode>4): Delete.
5486 (subvdi4): New expander pattern.
5487 (subvsi4): Likewise. Handle some immediate values.
5488 (subvsi3_intmin): New insn pattern.
5489 (subvsi3): Likewise.
5490 (subvsi3_imm1): Likewise.
5491 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
5492 idioms.
5493
5494 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5495
5496 * config/arm/arm.md (usubvdi4): Allow registers or integers for
5497 incoming operands. Early split the calculation into SImode
5498 operations.
5499 (usubvsi3_borrow): New insn pattern.
5500 (usubvsi3_borrow_imm): Likewise.
5501
5502 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5503
5504 * config/arm/arm.md (usubv<mode>4): Delete expansion.
5505 (usubvsi4): New pattern. Allow some immediate values for inputs.
5506 (usubvdi4): New pattern.
5507
5508 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5509
5510 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
5511 or second operand of the PLUS inside a DImode equality test to be
5512 sign-extend when selecting CC_Vmode.
5513 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
5514 instructions.
5515 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
5516 expand patterns.
5517 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
5518 (addsi3_cin_vout_0): Likewise.
5519 (adddi3_compareV): Delete.
5520
5521 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5522
5523 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
5524 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
5525 to transform this back into the summation version when that leads
5526 to smaller code.
5527
5528 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5529
5530 * config/arm/arm.md (addv<mode>4): Delete.
5531 (addvsi4): New pattern. Handle immediate values that the architecture
5532 supports.
5533 (addvdi4): New pattern.
5534 (addsi3_compareV): Rename to ...
5535 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
5536 and use COMPARE rather than NE.
5537 (addsi3_compareV_imm): New pattern.
5538 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
5539 a signed-overflow check.
5540
5541 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5542
5543 * config/arm/arm-modes.def (CC_ADC): New CC mode.
5544 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
5545 CC_ADCmode.
5546 (maybe_get_arm_condition_code): Handle CC_ADCmode.
5547 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
5548 with overflow.
5549 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
5550 expand patterns.
5551 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
5552 (addsi3_cin_cout_imm_insn): Likewise.
5553 (adddi3_compareC): Delete insn.
5554 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
5555
5556 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5557
5558 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
5559 * (uaddv<mode>4): Delete expansion pattern.
5560 (uaddvsi4): New pattern.
5561 (uaddvdi4): Likewise.
5562 (addsi3_compareC): Delete pattern, change callers to use
5563 addsi3_compare_op1.
5564 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
5565 reduce the number of alternatives and re-work type attribute handling.
5566 (addsi3_compare_op2): Clean up constraints to reduce the number of
5567 alternatives and re-work type attribute handling.
5568 (compare_addsi2_op0): Likewise.
5569 (compare_addsi2_op1): Likewise.
5570
5571 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5572
5573 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5574 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5575 for DImode operands.
5576 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5577 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5578 CC_NCVmode.
5579 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5580 (arm_cmpdi_unsigned): Delete.
5581
5582 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5583
5584 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5585 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5586 unchanged only if that will be cheaper.
5587 (arm_select_cc_mode): Recognize a swapped comparison that will
5588 be regenerated using RSBS or RSCS. Relax restriction on selecting
5589 CC_RSBmode.
5590 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5591 a constant.
5592 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5593 is CC_RSBmode.
5594 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5595 as CCmode.
5596 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5597 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5598
5599 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5600
5601 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5602 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5603 need these modes.
5604 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5605 of EQ, NE, LT, GE, LTU and GEU.
5606 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5607 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5608 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5609 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5610 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5611
5612 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5613
5614 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5615 operand 2.
5616 (cstoredi4): Similarly, but for operand 3.
5617 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5618 canonicalization of unsigned compares with a constant on Arm.
5619 Prefer using const+1 and adjusting the comparison over swapping the
5620 operands whenever the original constant was not valid.
5621 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5622 register here.
5623 (arm_validize_comparison): Do not force invalid DImode operands to
5624 registers here.
5625
5626 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5627
5628 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5629 return CC_Zmode if comparing against a constant where one word is
5630 zero.
5631 (arm_gen_compare_reg): Split DImode handling to ...
5632 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5633 against simple constants.
5634 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5635
5636 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5637
5638 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5639 (rsbsi3_carryin_shift_alt): Likewise.
5640
5641 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5642
5643 * config/arm/arm.md (negscc_borrow): New pattern.
5644 (mov_negscc): Don't split if the insn would match negscc_borrow.
5645 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5646 (thumb2_mov_negscc_strict_it): Likewise.
5647
5648 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5649
5650 * config/arm/arm.c (arm_insn_cost): New function.
5651 (TARGET_INSN_COST): Override default definition.
5652
5653 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5654
5655 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5656 borrow operations.
5657
5658 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5659
5660 * config/arm/arm.c (strip_carry_operation): New function.
5661 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5662 for SImode.
5663
5664 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5665
5666 * config/arm/predicates.md (arm_carry_operation): New special
5667 predicate.
5668 * config/arm/iterators.md (LTUGEU): Delete iterator.
5669 (cnb): Delete code attribute.
5670 (optab): Delete ltu and geu elements.
5671 * config/arm/arm.md (addsi3_carryin): Renamed from
5672 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5673 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5674 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5675 (addsi3_carryin_clobercc): Similarly.
5676 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5677 Thumb2 state.
5678
5679 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5680
5681 * config/arm/arm.md (arm_subdi3): Delete insn.
5682 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5683
5684 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5685
5686 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5687 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5688 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5689 return CC_RSBmode.
5690 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5691 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5692 expand.
5693 (subdi3): Rewrite to early-expand the sub-operations.
5694 (rsb_im_compare): New pattern.
5695 (negdi2): Delete.
5696 (negdi2_insn): Delete.
5697 (arm_negsi2): Correct type attribute to alu_imm.
5698 (negsi2_0compare): New insn pattern.
5699 (negsi2_carryin): New insn pattern.
5700
5701 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5702
5703 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5704 operand 2.
5705
5706 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5707
5708 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5709 to match canonical form.
5710
5711 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5712
5713 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5714 (extend<mode>di2): Likewise.
5715
5716 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5717
5718 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5719 * config/arm/arm.c (arm_decompose_di_binop): New function.
5720 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5721 If not generating Thumb-1 code, decompose the operation into 32-bit
5722 pieces.
5723 * add0si_carryin_<optab>: New pattern.
5724
5725 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5726
5727 * arm.md (adddi3): Only accept register operands.
5728 (arm_adddi3): Convert to simple insn with no split. Do not accept
5729 constants.
5730 (adddi_sesidi_di): Delete patern.
5731 (adddi_zesidi_di): Likewise.
5732 (uaddv<mode>4): Use LTU as condition for branch.
5733 (adddi3_compareV): Convert to simple insn with no split.
5734 (addsi3_compareV_upper): Delete pattern.
5735 (adddi3_compareC): Convert to simple insn with no split. Correct
5736 flags setting expression.
5737 (addsi3_compareC_upper): Delete pattern.
5738 (addsi3_compareC): Correct flags setting expression.
5739 (subdi3_compare1): Convert to simple insn with no split.
5740 (subsi3_carryin_compare): Delete pattern.
5741 (arm_subdi3): Convert to simple insn with no split.
5742 (subdi_zesidi): Delete pattern.
5743 (subdi_di_sesidi): Delete pattern.
5744 (subdi_zesidi_di): Delete pattern.
5745 (subdi_sesidi_di): Delete pattern.
5746 (subdi_zesidi_zesidi): Delete pattern.
5747 (negvdi3): Use s_register_operand.
5748 (negdi2_compare): Convert to simple insn with no split.
5749 (negdi2_insn): Likewise.
5750 (negsi2_carryin_compare): Delete pattern.
5751 (negdi_zero_extendsidi): Delete pattern.
5752 (arm_cmpdi_insn): Convert to simple insn with no split.
5753 (negdi2): Don't call gen_negdi2_neon.
5754 * config/arm/neon.md (adddi3_neon): Delete pattern.
5755 (subdi3_neon): Delete pattern.
5756 (negdi2_neon): Delete pattern.
5757 (splits for negdi2_neon): Delete splits.
5758
5759 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5760
5761 PR middle-end/92153
5762 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5763 than after it.
5764
5765 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5766
5767 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5768 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5769 new multilib variants and new mappings.
5770
5771 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5772
5773 PR target/86040
5774 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5775
5776 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5777 Richard Sandiford <richard.sandiford@arm.com>
5778
5779 PR target/86753
5780 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5781 and define hashmap traits for it.
5782 (loop_vec_info::scalar_cond_masked_set): New member.
5783 (vect_record_loop_mask): Adjust prototype.
5784 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5785 Implement method.
5786 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5787 vect_record_loop_mask.
5788 (vectorizable_live_operation): Likewise.
5789 (vect_record_loop_mask): New param scalar_mask. Add entry
5790 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5791 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5792 Pass it as last arg to vect_record_loop_mask.
5793 (vectorizable_call): Pass scalar_mask as last arg to
5794 vect_record_loop_mask.
5795 (vectorizable_store): Likewise.
5796 (vectorizable_load): Likewise.
5797 (vectorizable_condition): Check if another part of vectorized code
5798 applies loop_mask to condition or to it's inverse, and if yes,
5799 apply loop_mask to result of vector comparison.
5800
5801 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5802
5803 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5804
5805 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5806
5807 PR tree-optimization/92056
5808 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5809 before calling compute_builtin_object_size.
5810
5811 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5812
5813 PR target/65342
5814 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5815 (movdi_low_st): Delete.
5816 * config/rs6000/rs6000.c
5817 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5818 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5819 * config/rs6000/rs6000.md (movsi_low): Delete.
5820
5821 2019-10-17 Jason Merrill <jason@redhat.com>
5822
5823 * gimplify.h (get_initialized_tmp_var): Add default argument to
5824 post_p.
5825 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5826 NULL post_p argument.
5827 * targhooks (std_gimplify_va_arg_expr): Likewise.
5828
5829 2019-10-17 Richard Biener <rguenther@suse.de>
5830
5831 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5832 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5833 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5834 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5835 * tree-vect-loop.c (vect_is_simple_reduction): Set
5836 STMT_VINFO_REDUC_CODE.
5837 (vectorizable_reduction): Remove dead and redundant code, use
5838 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5839
5840 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5841
5842 Fix breakage introduced by r276985.
5843
5844 * config/avr/avr.c (avr_option_override): Remove set of
5845 PARAM_ALLOW_STORE_DATA_RACES.
5846 * common/config/avr/avr-common.c (avr_option_optimization_table)
5847 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5848
5849 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5850
5851 * config/i386/i386.h (processor_costs): Add clear_ratio.
5852 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5853 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5854 of 6 and move_ratio in all cost models.
5855
5856 2019-10-17 Richard Biener <rguenther@suse.de>
5857
5858 * tree-vect-loop.c (check_reduction_path): Compute reduction
5859 operation here.
5860 (vect_is_simple_reduction): Remove special-case of single-stmt
5861 reduction path detection.
5862
5863 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5864
5865 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5866
5867 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5868
5869 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5870 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5871 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5872 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5873 New combine patterns.
5874 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5875 above.
5876 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5877
5878 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5879
5880 * tree-vrp.c (value_range_base::dump): Display +INF for both
5881 pointers and integers when appropriate.
5882
5883 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5884
5885 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5886 when to use versioning threshold.
5887
5888 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5889
5890 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5891 outlined code from ...
5892 (vect_analyze_loop_2): ... here.
5893
5894 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5895
5896 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5897 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5898 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5899
5900 2019-10-17 Richard Biener <rguenther@suse.de>
5901
5902 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5903 (vect_is_simple_reduction): Move all validity checks ...
5904 (vectorizable_reduction): ... here. Compute whether we
5905 need a fold-left reduction here.
5906 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5907 both overloads, check needs_fold_left_reduction_p directly.
5908 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5909
5910 2019-10-17 Richard Biener <rguenther@suse.de>
5911
5912 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5913 TARGET_MEM_REF creation.
5914
5915 2019-10-17 Richard Biener <rguenther@suse.de>
5916
5917 PR tree-optimization/92129
5918 * tree-vect-loop.c (vectorizable_reduction): Also fail
5919 on GIMPLE_SINGLE_RHS.
5920
5921 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5922
5923 PR tree-optimization/92056
5924 * tree-object-size.c (cond_expr_object_size): Return early if then_
5925 processing resulted in unknown size.
5926
5927 PR tree-optimization/92115
5928 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5929 temporary if it could trap.
5930
5931 2019-10-17 Richard Biener <rguenther@suse.de>
5932
5933 PR debug/91887
5934 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5935 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5936
5937 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5938
5939 * tree-ssa-strlen.c (maybe_invalidate): Use
5940 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5941
5942 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5943 Jim Wilson <jimw@sifive.com>
5944
5945 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5946 regs to SIBCALL_REGS.
5947 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5948 passing regs to SIBCALL_REGS.
5949
5950 2019-10-16 Martin Sebor <msebor@redhat.com>
5951
5952 PR tree-optimization/83821
5953 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5954 the length of a string when available.
5955 (handle_builtin_memset) Add argument.
5956 (handle_store, strlen_check_and_optimize_call): Same.
5957 (check_and_optimize_stmt): Same. Pass it to callees.
5958
5959 2019-10-16 Martin Sebor <msebor@redhat.com>
5960
5961 PR tree-optimization/91996
5962 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5963 information.
5964 (compare_nonzero_chars): Add an overload.
5965 (count_nonzero_bytes): Add an argument. Call overload above.
5966 Handle non-constant lengths in some range.
5967 (handle_store): Add an argument.
5968 (check_and_optimize_stmt): Pass an argument to handle_store.
5969
5970 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5971
5972 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5973
5974 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5975
5976 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5977 operands which correspond to the same input-output register to
5978 have the same pseudo assigned to them.
5979
5980 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5981
5982 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5983
5984 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5985
5986 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5987 Apply reasonable limit to symbol offsets.
5988
5989 2019-10-16 Richard Biener <rguenther@suse.de>
5990
5991 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5992 (vect_is_simple_reduction): Delay checking to
5993 vectorizable_reduction and relax the checking.
5994 (vectorizable_reduction): Check we have a simple use. Check
5995 for bogus condition reductions.
5996 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5997 are looking at the last stmt in a pattern sequence when
5998 filling in backedge PHI values.
5999
6000 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
6001 Jiufu Guo <guojiufu@linux.ibm.com>
6002
6003 PR target/70010
6004 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6005 the callee explicitly disables some isa_flags the caller is using.
6006
6007 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6008
6009 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
6010
6011 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6012
6013 * genmodes.c (mode_data::order): New field.
6014 (blank_mode): Update accordingly.
6015 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6016 (make_vector_modes): Likewise.
6017 (VECTOR_MODES): Update use accordingly.
6018 (cmp_modes): Sort by the new order field ahead of sorting by size.
6019 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6020 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6021 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6022 (aarch64_classify_vector_mode): Handle the new partial modes.
6023 (aarch64_vl_bytes): New function.
6024 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6025 when counting the number of registers in an SVE mode.
6026 (aarch64_class_max_nregs): Likewise.
6027 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6028 in registers yet.
6029 (aarch64_classify_address): Treat partial vectors analogously
6030 to full vectors.
6031 (aarch64_print_address_internal): Consolidate the printing of
6032 MUL VL addresses, using aarch64_vl_bytes as the number of
6033 bytes represented by "VL".
6034 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6035
6036 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6037
6038 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6039 rather than known_lt when choosing frame layouts.
6040
6041 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6042
6043 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6044 that all the adjustments add up to the full frame size.
6045 Use crtl->outgoing_args_size directly as the final adjustment
6046 where appropriate.
6047
6048 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6049
6050 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6051 "frame" reference instead of always referring directly to
6052 "cfun->machine->frame".
6053
6054 2019-10-16 Richard Biener <rguenther@suse.de>
6055
6056 PR tree-optimization/92119
6057 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6058 against missing bswap lhs.
6059
6060 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6061
6062 PR middle-end/92033
6063 * poly-int.h (constant_lower_bound_with_limit): New function.
6064 (constant_upper_bound_with_limit): Likewise.
6065 * doc/poly-int.texi: Document them.
6066 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6067 into the worst-case INTEGER_CST bounds.
6068
6069 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6070
6071 PR ipa/91088
6072 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6073 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6074 * ipa-predicat.h (struct expr_eval_op): New struct.
6075 (expr_eval_ops): New typedef.
6076 (struct condition): Add type and param_ops fields, remove size field.
6077 (add_condition): Replace size parameter with type parameter, add
6078 param_ops parameter.
6079 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6080 (predicate::add_clause): Add comparisons on type and param_ops.
6081 (dump_condition): Add debug dump for param_ops.
6082 (remap_after_inlining): Adjust call arguments to add_condition.
6083 (add_condition): Replace size parameter with type parameter, add
6084 param_ops parameter. Unshare constant value used in conditions.
6085 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6086 parameter expressions using param_ops.
6087 (decompose_param_expr): New function.
6088 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6089 to replace call to unmodified_parm_or_parm_agg_item.
6090 (set_switch_stmt_execution_predicate): Likewise.
6091 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6092 with type.
6093 (inline_read_section): Read param_ops from summary stream.
6094 (ipa_fn_summary_write): Write param_ops to summary stream.
6095
6096 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6097
6098 PR rtl-optimization/92107
6099 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6100 expression written.
6101
6102 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6103
6104 * config/darwin.c: Update description of fix and continue.
6105
6106 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6107
6108 * config/darwin.c (darwin_binds_local_p): Update to call
6109 default_binds_local_p_3 () directly. amend comments.
6110
6111 2019-10-15 Richard Biener <rguenther@suse.de>
6112
6113 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6114 (tree_is_indexable): Use it.
6115 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6116 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6117 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6118
6119 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6120
6121 * config/msp430/msp430.md (zero_extendqipsi2): New.
6122 (zero_extendqisi2): Optimize case where src register and base dst
6123 register are the same.
6124 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6125 (zero_extendpsisi2): Optimize r->m case.
6126 Add unnamed insn patterns to catch insns combine searches for when
6127 optimizing pointer manipulation.
6128
6129 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6130
6131 * config/msp430/msp430.md: Group zero_extend* insns together.
6132
6133 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6134
6135 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6136 constraint.
6137 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6138 POST_INC.
6139 (msp430_subreg): Likewise.
6140 (msp430_split_addsi): Likewise.
6141 (msp430_print_operand_addr): Likewise.
6142 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6143 (USE_STORE_POST_INCREMENT): Define.
6144 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6145 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6146 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6147 (msp430_general_dst_operand): New.
6148 (msp430_general_dst_nonv_operand): New.
6149 (msp430_nonsubreg_operand): Remove.
6150 (msp430_nonsubreg_dst_operand): New.
6151 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6152 of defunct msp430_nonsubreg_operand.
6153 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6154
6155 2019-10-15 Richard Biener <rguenther@suse.de>
6156
6157 PR tree-optimization/91929
6158 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6159 (get_or_alloc_expr_for_name): Initialize it.
6160 (get_or_alloc_expr_for_constant): Likewise.
6161 (phi_translate_1): Copy it.
6162 (create_expression_by_pieces): Use the original location
6163 of the expression for the inserted stmt.
6164 (compute_avail): Record the location of the stmt for the
6165 expressions created.
6166
6167 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6168
6169 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6170 before using tree_to_uhwi.
6171
6172 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6173
6174 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6175
6176 2019-10-15 Richard Biener <rguenther@suse.de>
6177
6178 PR tree-optimization/92094
6179 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6180 do not adjust the reduction definition def type.
6181 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6182 defines the latch argument of the PHI.
6183
6184 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6185
6186 PR target/92035
6187 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6188 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6189 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6190 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6191 _mm_maskz_roundscale_round_sd): New intrinsics.
6192 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6193 __builtin_ia32_rndscales?_mask_round builtins instead of
6194 __builtin_ia32_rndscales?_round.
6195 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6196 __builtin_ia32_rndscalesd_round): Remove.
6197 (__builtin_ia32_rndscaless_mask_round,
6198 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6199 * config/i386/sse.md
6200 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6201 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6202 ... this, adjust and add subst atrributes to make it maskable.
6203
6204 2019-10-15 Richard Biener <rguenther@suse.de>
6205
6206 PR middle-end/92046
6207 * common.opt (fallow-store-data-races): New.
6208 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6209 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6210 * doc/invoke.texi (fallow-store-data-races): Document.
6211 (--param allow-store-data-races): Remove docs.
6212 * opts.c (default_options_table): Enable -fallow-store-data-races
6213 at -Ofast.
6214 (default_options_optimization): Do not enable --param
6215 allow-store-data-races at -Ofast.
6216 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
6217 instead of PARAM_ALLOW_STORE_DATA_RACES.
6218 * tree-ssa-loop-im.c (execute_sm): Likewise.
6219
6220 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6221
6222 PR tree-optimization/92085
6223 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
6224 instead of calling it unconditionally after
6225 delete_dead_or_redundant_assignment and fix indentation.
6226
6227 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6228
6229 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
6230 TARGET_VFP_DOUBLE.
6231 (*fmsub<SDF:mode>4): Likewise.
6232 *fnmsub<SDF:mode>4): Likewise.
6233 (*fnmadd<SDF:mode>4): Likewise.
6234
6235 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
6236
6237 * doc/tree-ssa.texi: Update renamed macro name.
6238
6239 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6240
6241 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
6242 vector constants.
6243
6244 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
6245
6246 * config/darwin.c: Use unsigned ints for the picbase label
6247 counters, initialise the vars explicitly.
6248 (update_pic_label_number_if_needed): Move a variable declaration
6249 to where it's needed.
6250 (machopic_output_function_base_name): Use a more strict checking
6251 assert, and and unsigned int for the picbase label counter.
6252 (machopic_get_function_picbase): Likewise.
6253
6254 2019-10-14 Richard Biener <rguenther@suse.de>
6255
6256 PR middle-end/92046
6257 * dse.c (scan_insn): Use param max_active_local_stores.
6258 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6259 based on optimization level.
6260 * loop-invariant.c (move_loop_invariants): Adjust
6261 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
6262 * opts.c (default_options_optimization): Do not adjust
6263 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
6264 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
6265
6266 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6267
6268 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
6269
6270 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6271
6272 * config/arm/arm.c (arm_option_override): Don't override sched
6273 pressure algorithm.
6274
6275 2019-10-14 Richard Biener <rguenther@suse.de>
6276
6277 PR tree-optimization/92069
6278 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
6279 cycles do not set vect_nested_cycle on the latch definition.
6280
6281 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
6282
6283 * function-abi.h (expr_callee_abi): Declare.
6284 * function-abi.cc (expr_callee_abi): New function.
6285
6286 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
6287
6288 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
6289 into [1,MAX].
6290 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
6291 non-zero being represented as [1,MAX].
6292
6293 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6294
6295 * tree-sra.c (dump_access): Add missing braces.
6296
6297 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6298
6299 * config/darwin.c (machopic_indirection_name): Rework the
6300 function to emit linker-visible symbols only for indirections
6301 in the data section. Clean up the code and update comments.
6302
6303 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6304
6305 * config/darwin.c (machopic_indirect_data_reference): Remove
6306 redundant code.
6307
6308 2019-10-13 Nathan Sidwell <nathan@acm.org>
6309
6310 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
6311
6312 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6313
6314 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
6315 c99_runtime.
6316
6317 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
6318
6319 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
6320 so non-virutal are before virutals.
6321 (output_function): Avoid body modifications.
6322
6323 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6324
6325 * config/pa/pa.c (pa_output_call): Load descriptor address to register
6326 %r22. Load function address before global pointer.
6327 (pa_attr_length_indirect_call): Adjust length of inline versions of
6328 $$dyncall.
6329 (pa_output_indirect_call): Remove fast inline version of $$dyncall
6330 before normal cases. Update inline $$dyncall sequences to preserve
6331 function descriptor address in register %r22.
6332 (TRAMPOLINE_CODE_SIZE): Adjust.
6333 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
6334 register %r22 contains trampoline address.
6335 (pa_trampoline_init): Adjust offsets.
6336 (pa_trampoline_adjust_address): Likewise.
6337 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
6338
6339 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6340
6341 PR target/67183
6342 * config/darwin.c (machopic_indirection): New field to flag
6343 non-lazy-symbol-pointers in the data section.
6344 (machopic_indirection_name): Compute if an indirection should
6345 appear in the data section.
6346 (machopic_output_data_section_indirection): New callback split
6347 from machopic_output_indirection.
6348 (machopic_output_stub_indirection): Likewise.
6349 (machopic_output_indirection): Retain the code for non-lazy
6350 symbol pointers in their regular section.
6351 (machopic_finish): Use the new callbacks to order the indirection
6352 output.
6353
6354 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6355
6356 * config/darwin-protos.h (machopic_finish): Delete.
6357 * config/darwin.c (machopic_finish): Make static.
6358
6359 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6360
6361 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
6362 sections when building kernel extension code.
6363
6364 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
6365
6366 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
6367 later standard."
6368
6369 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6370
6371 * config/pa/pa.c (pa_option_override): Remove trailing comma
6372 from warning.
6373
6374 2019-10-12 Jakub Jelinek <jakub@redhat.com>
6375
6376 PR middle-end/92063
6377 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
6378 <case VEC_COND_EXPR>: Return false with *handled = false.
6379 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
6380 recursing on the first operand.
6381 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6382 instead of tree_could_trap_p.
6383 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6384
6385 2019-10-11 Jim Wilson <jimw@sifive.com>
6386
6387 PR rtl-optimization/91860
6388 * combine.c (subst): If new_rtx is a constant, also check for
6389 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6390
6391 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6392
6393 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6394 INTVAL when calling store_bit_field.
6395
6396 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6397
6398 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6399 size.
6400
6401 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6402
6403 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6404 vectorizable_live_operation.
6405 (vectorizable_live_operation): Adjust parameters.
6406 * tree-vect-stmts.c (vect_init_vector,
6407 vect_gen_widened_results_half): Fix typo in function comment.
6408 (can_vectorize_live_stmts): Adjust function comment.
6409 Adjust parameters. Adjust call to vectorizable_live_operation.
6410 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6411 (vect_transform_stmt): Adjust function comment. Adjust call to
6412 can_vectorize_live_stmts.
6413 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6414
6415 2019-10-11 Richard Biener <rguenther@suse.de>
6416
6417 PR tree-optimization/90883
6418 PR tree-optimization/91091
6419 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6420 alias-sets both for recording VN table entries and continuing
6421 walking after translating through copies. Handle same-sized
6422 reads from SSA names by returning the plain SSA name.
6423 (eliminate_dom_walker::eliminate_stmt): Properly handle
6424 non-size precision stores in redundant store elimination.
6425
6426 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6427
6428 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
6429 (ggc_collect): Dump later to not interfere with release_page dump.
6430 (ggc_trim): New function.
6431 * ggc-none.c (ggc_trim): New.
6432 * ggc.h (ggc_trim): Declare.
6433
6434 2019-10-11 Richard Biener <rguenther@suse.de>
6435
6436 PR tree-optimization/92066
6437 PR tree-optimization/92046
6438 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6439 Fix bogus cost model check.
6440
6441 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6442
6443 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
6444 (LANG_HOOKS_DECLS): Add it.
6445 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
6446 update comment for omp_is_optional_argument.
6447 * omp-general.c (omp_is_allocatable_or_ptr): New.
6448 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
6449 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
6450 Fortran's optional arguments and allocatable/pointer scalars
6451 with use_device_addr.
6452
6453 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
6454
6455 PR target/77918
6456 * config/s390/2827.md: Add new opcodes.
6457 * config/s390/2964.md: Likewise.
6458 * config/s390/3906.md: Likewise.
6459 * config/s390/8561.md: Likewise.
6460 * config/s390/s390-builtins.def (s390_vfchesb): Use
6461 the new vec_cmpgev4sf_quiet_nocc.
6462 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
6463 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
6464 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
6465 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
6466 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
6467 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
6468 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
6469 * config/s390/s390-modes.def (CCSFPS): New mode.
6470 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
6471 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
6472 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
6473 (s390_expand_vec_compare): Use non-signaling patterns where
6474 necessary.
6475 (s390_reverse_condition): Support CCSFPS.
6476 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
6477 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
6478 (asm_fcmp_op): Likewise.
6479 (*smaxv2df3_vx): Use pattern for quiet comparison.
6480 (*sminv2df3_vx): Likewise.
6481 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
6482 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
6483 (vec_cmpgt<mode>_quiet_nocc): Likewise.
6484 (vec_cmplt<mode>_quiet_nocc): New expander.
6485 (vec_cmpge<mode>_quiet_nocc): New pattern.
6486 (vec_cmple<mode>_quiet_nocc): New expander.
6487 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
6488 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
6489 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
6490 (*vec_cmpge<mode>_signaling_nocc): Likewise.
6491 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
6492 (vec_cmpungt<mode>): New expander.
6493 (vec_cmpunge<mode>): Likewise.
6494 (vec_cmpuneq<mode>): Use quiet patterns.
6495 (vec_cmpltgt<mode>): Allow only on z14+.
6496 (vec_cmpordered<mode>): Use quiet patterns.
6497 (vec_cmpunordered<mode>): Likewise.
6498 (VEC_CMP_EXPAND): Add ungt and unge.
6499
6500 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6501
6502 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
6503 parameter.
6504 * lto-streamer-out.c: Include tree-dfa.h.
6505 (output_cfg): Do not use cfun.
6506 (lto_prepare_function_for_streaming): New.
6507 (output_function): Do not push cfun; do not initialize loop optimizer.
6508 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
6509 * passes.c (ipa_write_summaries): Use it.
6510 (ipa_write_optimization_summaries): Do not modify bodies.
6511 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
6512 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
6513 * tree-ssa-dse.c (pass_dse::execute): Update use of
6514 renumber_gimple_stmt_uids.
6515 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
6516
6517 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
6518
6519 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6520 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
6521
6522 2019-10-10 Joseph Myers <joseph@codesourcery.com>
6523
6524 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
6525 macros.
6526 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
6527 Also define DFP macros for these conditions.
6528 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
6529 DEC128_SUBNORMAL_MIN): Do not define.
6530 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
6531 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
6532
6533 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
6534 Sandra Loosemore <sandra@codesourcery.com>
6535
6536 PR middle-end/26241
6537 * doc/lto.texi (IPA): Reference to the IPA passes.
6538 * doc/passes.texi (Pass manager): Add node IPA passes and
6539 description for each IPA pass.
6540
6541 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6542
6543 * ipa-reference.c: Do not include splay-tree.h
6544 (reference_vars_to_consider): Turn to hash map.
6545 (get_static_name, ipa_init, analyze_function, propagate,
6546 stream_out_bitmap, ipa_reference_write_optimization_summary,
6547 ipa_reference_write_optimization_summary): Update.
6548
6549 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6550
6551 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
6552
6553 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
6554
6555 * config/darwin.c: Lookup Objective C metadata and force indirection
6556 for IVAR refs.
6557
6558 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
6559
6560 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
6561 addresses.
6562 (mem_operand_gpr): Add check for prefixed addresses.
6563 (mem_operand_ds_form): Add check for prefixed addresses.
6564 (rs6000_legitimate_offset_address_p): If we support prefixed
6565 addresses, check for a 34-bit offset instead of 16-bit.
6566 (rs6000_legitimate_address_p): Add check for prefixed addresses.
6567 Do not allow load/store with update if the address is prefixed.
6568 (rs6000_mode_dependent_address): If we support prefixed
6569 addresses, check for a 34-bit offset instead of 16-bit.
6570
6571 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6572
6573 PR target/77918
6574 * config/s390/vector.md (vcond_comparison_operator): New
6575 predicate.
6576 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6577
6578 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6579
6580 PR 87488
6581 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6582 -D.
6583 * configure.ac (--with-documentation-root-url): New option.
6584 * configure: Regenerate.
6585 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6586 option URL, add it as a new string field of the diagnostic option.
6587 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6588 (print_option_information): If get_option_url is non-NULL, call
6589 it, and if the result is non-NULL, potentially emit an escape
6590 sequence to markup the option text with the resulting URL.
6591 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6592 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6593 example of JSON output.
6594 * opts-diagnostic.h (get_option_url): New decl.
6595 * opts.c (get_option_url): New function.
6596 * toplev.c (general_init): Initialize the get_option_url callback.
6597
6598 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6599
6600 PR 87488
6601 * common.opt (fdiagnostics-urls=): New option.
6602 (diagnostic-url.h): Add SourceInclude.
6603 (diagnostic_url_rule): New enum.
6604 * diagnostic-color.c: Include "diagnostic-url.h".
6605 (diagnostic_urls_enabled_p): New function.
6606 * diagnostic-url.h: New file.
6607 * diagnostic.c: Include "diagnostic-url.h".
6608 (diagnostic_urls_init): New function.
6609 * diagnostic.h (diagnostic_urls_init): New decl.
6610 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6611 -fdiagnostics-urls to the list.
6612 (-fdiagnostics-urls): New option.
6613 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6614 (driver::global_initializations): Call diagnostic_urls_init.
6615 * opts-global.c (init_options_once): Likewise.
6616 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6617 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6618 show_urls.
6619 (pp_begin_url): New function.
6620 (pp_end_url): New function.
6621 (selftest::test_urls): New selftest.
6622 (selftest::pretty_print_c_tests): Call it.
6623 * pretty-print.h (pretty_printer::show_urls): New field.
6624 (pp_begin_url): New decl.
6625 (pp_end_url): New decl.
6626
6627 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6628
6629 PR target/92022
6630 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6631
6632 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6633
6634 PR target/88630
6635 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6636 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6637 also for TARGET_FPU_SH4_300.
6638 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6639 TARGET_SH4_300.
6640 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6641 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6642 (*negsf2_i): Split into ...
6643 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6644 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6645 (**abssf2_i): Split into ...
6646 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6647 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6648 (*negdf2_i): Split into ...
6649 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6650 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6651 (**abssf2_i): Split into ...
6652 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6653
6654 2019-10-10 Richard Biener <rguenther@suse.de>
6655
6656 PR middle-end/92046
6657 * opts.c (finish_options): Do not influence global --params
6658 from options that are adjustable per function.
6659 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6660 Apply --param adjustment based on active cost-model.
6661 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6662 further store-sinking when vectorization or if-conversion
6663 are not enabled.
6664
6665 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6666
6667 PR middle-end/92037
6668 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6669 rather than ggc_alloc_cleared to alloc symbol table.
6670 * toplev.c (general_init): Likewise.
6671 * cgraph.h (symbol_table): Explicitly construct every field.
6672
6673 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6674
6675 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6676 (PF_Z15): ... this.
6677 * config.gcc: Add z15 as option for --with-arch and --with-tune
6678 configure switches.
6679 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6680 error reporting for unsupported builtins.
6681 * config/s390/s390-opts.h (enum processor_type): Rename
6682 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6683 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6684 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6685 Likewise.
6686 * config/s390/s390-builtins.def: Likewise.
6687 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6688 (s390_expand_builtin): Add missing check for unsupported builtins.
6689 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6690 (s390_rtx_costs): Likewise.
6691 (s390_get_sched_attrmask): Rename arch13 to z15.
6692 (s390_get_unit_mask): Likewise.
6693 (s390_is_fpd): Likewise.
6694 (s390_is_fxd): Likewise.
6695 * config/s390/s390.h (enum processor_flags): Likewise.
6696 * config/s390/s390.md: Likewise.
6697 * config/s390/vector.md: Likewise.
6698 * config/s390/vx-builtins.md: Likewise.
6699 * config/s390/s390.opt: Add z15 to processor_type value.
6700
6701 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6702
6703 PR target/91035
6704 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6705 prototype.
6706 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6707 ("split_stack_data", "split_stack_call")
6708 ("split_stack_call_<mode>", "split_stack_cond_call")
6709 ("split_stack_cond_call_<mode>"): Remove.
6710 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6711 insn definition.
6712 * config/s390/s390.c (s390_output_split_stack_data): New function.
6713 (s390_expand_split_stack_prologue): Use the merged expander.
6714
6715 2019-10-09 Martin Sebor <msebor@redhat.com>
6716
6717 PR tree-optimization/90879
6718 * builtins.c (check_access): Avoid using maxbound when null.
6719 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6720 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6721 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6722 conditional.
6723 (get_range_strlen): Overwrite initial maxbound when non-null.
6724 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6725 changes.
6726 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6727 (used_only_for_zero_equality): New function.
6728 (handle_builtin_memcmp): Call it.
6729 (determine_min_objsize): Return an integer instead of tree.
6730 (get_len_or_size, strxcmp_eqz_result): New functions.
6731 (maybe_warn_pointless_strcmp): New function.
6732 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6733 between a longer string and a smaller array.
6734 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6735
6736 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6737
6738 * config/darwin.c (darwin_override_options): Make the check for
6739 Objective-C ABI version more specific for 64bit code.
6740
6741 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6742
6743 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6744 indicate that the new symbol is an indirection.
6745 (machopic_indirect_call_target): Likewise.
6746 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6747 (MACHO_SYMBOL_INDIRECTION_P): New.
6748 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6749
6750 2019-10-08 Jason Merrill <jason@redhat.com>
6751
6752 * doc/invoke.texi: Document -fconcepts-ts.
6753
6754 2019-10-09 Richard Biener <rguenther@suse.de>
6755
6756 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6757 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6758
6759 2019-10-08 Richard Biener <rguenther@suse.de>
6760
6761 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6762 (_stmt_vec_info::force_single_cycle): Likewise.
6763 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6764 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6765 * tree-vect-loop.c (vectorizable_reduction): Set
6766 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6767 (vect_transform_reduction): Use them to remove redundant code.
6768 (vect_transform_cycle_phi): Likewise.
6769
6770 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6771
6772 PR tree-optimization/90836
6773 * match.pd (popcount): New pattern.
6774
6775 2019-10-08 Martin Sebor <msebor@redhat.com>
6776
6777 PR middle-end/92026
6778 PR middle-end/92014
6779 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6780 again once nbytes has been set. Set the access size when not yet set.
6781
6782 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6783
6784 * config/darwin.c (machopic_select_section): Remove dead code for
6785 old Objective-C section selection method, replace with unreachable.
6786
6787 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6788
6789 * config/darwin.c (machopic_indirect_data_reference): Check for
6790 required indirections before making direct access to defined
6791 values.
6792 (machopic_output_indirection): Place the indirected pointes for
6793 required indirections into the non-lazy symbol pointers section.
6794 (darwin_encode_section_info):
6795 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6796 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6797
6798 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6799
6800 PR target/91994
6801 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6802 instead of ALL_SSE_REG to check if function call preserves some
6803 256-bit SSE registers.
6804
6805 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6806
6807 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6808 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6809 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6810
6811 2019-10-08 Richard Biener <rguenther@suse.de>
6812
6813 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6814 (_stmt_vec_info::is_reduc_info): Add.
6815 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6816 (vectorizable_condition): Remove.
6817 (vectorizable_shift): Likewise.
6818 (vectorizable_reduction): Adjust.
6819 (info_for_reduction): New.
6820 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6821 (vect_analyze_scalar_cycles_1): ... here.
6822 (vect_analyze_loop_operations): Adjust.
6823 (needs_fold_left_reduction_p): Simplify for single caller.
6824 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6825 for nested cycles not part of double reductions.
6826 (vect_model_reduction_cost): Pass in the reduction type.
6827 (info_for_reduction): New function.
6828 (vect_create_epilog_for_reduction): Use it, access reduction
6829 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6830 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6831 (vectorize_fold_left_reduction): Remove pointless assert.
6832 (vectorizable_reduction): Analyze the full reduction when
6833 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6834 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6835 stmt code-generation to vectorizable_* in most cases. Verify
6836 code-generation only for cases handled by
6837 vect_transform_reductuon.
6838 (vect_transform_reduction): Use info_for_reduction to get at
6839 reduction meta. Simplify.
6840 (vect_transform_cycle_phi): Likewise.
6841 (vectorizable_live_operation): Likewise.
6842 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6843 at the PHI node for STMT_VINFO_REDUC_TYPE.
6844 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6845 longer necessary code.
6846 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6847 (vectorizable_condition): Likewise. Get at reduction related
6848 info via info_for_reduction.
6849 (vect_analyze_stmt): Adjust.
6850 (vect_transform_stmt): Likewise.
6851 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6852 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6853
6854 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6855
6856 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6857 -fno-fp-int-builtin-inexact default for C2X.
6858
6859 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6860 Richard Biener <rguenther@suse.de>
6861
6862 PR tree-optimization/91532
6863 * tree-if-conv.c: Include tree-ssa-dse.h.
6864 (ifcvt_local_dce): Change param from bb to loop,
6865 and call dse_classify_store.
6866 (tree_if_conversion): Pass loop instead of loop->header as arg
6867 to ifcvt_local_dce.
6868 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6869 (delete_dead_or_redundant_assignment): Remove static qualifier from
6870 declaration, and add prototype in tree-ssa-dse.h.
6871 (dse_store_status): Move to tree-ssa-dse.h.
6872 (dse_classify_store): Remove static qualifier and add new tree param
6873 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6874 * tree-ssa-dse.h: New header.
6875
6876 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6877
6878 * config/darwin.c (machopic_output_indirection): Don't put
6879 hidden symbol indirections into the .data section, use the
6880 non-lazy symbol pointers section as normal.
6881 (darwin_encode_section_info): Record if a symbol is hidden.
6882 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6883 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6884
6885 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6886
6887 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6888 predicates instead of accessing bits directly.
6889 (machopic_indirect_call_target): Likewise.
6890 (machopic_output_indirection): Likewise.
6891 (darwin_encode_section_info): Improve description. Use renamed
6892 symbol flags. Use predicate macros for variables and functions.
6893 * config/darwin.h:
6894 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6895 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6896 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6897 (MACHO_SYMBOL_VARIABLE_P): New.
6898 (MACHO_SYMBOL_DEFINED_P):New.
6899 (MACHO_SYMBOL_STATIC_P): New.
6900 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6901 (SYMBOL_FLAG_SUBT_DEP): New.
6902 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6903
6904 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6905
6906 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6907 (msp430_expand_epilogue): Likewise.
6908 * config/msp430/predicates.md: Likewise.
6909 * config/msp430/msp430.md: Likewise.
6910 Replace blocks of 8 spaces with tabs.
6911
6912 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6913
6914 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6915 * config/msp430/msp430.c (msp430_split_addsi): New.
6916 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6917 a block of C code for splitting addsi.
6918
6919 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6920
6921 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6922 ix86_expand_rounddf_32): Reorder functions.
6923 * config/i386/i386-protos.h: Update.
6924
6925 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6926
6927 * config.in: Regenerate.
6928 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6929 Add new "Yx" constraint.
6930 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6931 function.
6932 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6933 prototype.
6934 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6935 code/data region to be selected in the small memory model.
6936 (msp430_section_attr): Don't warn if the "section" and "lower"
6937 attributes are used together.
6938 (msp430_handle_generic_attribute): Likewise.
6939 (msp430_var_in_low_mem): New function.
6940 (TARGET_ENCODE_SECTION_INFO): Define.
6941 (msp430_encode_section_info): New function.
6942 (gen_prefix): Return early in the small memory model.
6943 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6944 ".lower" prefix if -m{code,data}-region=lower have been passed.
6945 (msp430_output_aligned_decl_common): Emit common symbols when
6946 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6947 set.
6948 (TARGET_ASM_FILE_END): Define.
6949 (msp430_file_end): New function.
6950 (msp430_do_not_relax_short_jumps): Allow relaxation when
6951 function will be in the lower region.
6952 (msp430_op_not_in_high_mem): New function.
6953 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6954 the 'X' operand selector.
6955 Clarify comment for 'x' operand selector.
6956 * config/msp430/msp430.h (LINK_SPEC): Propagate
6957 -m{code,data}-region to the linker via spec function
6958 msp430_propagate_region_opt.
6959 (msp430_propagate_region_opt): New prototype.
6960 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6961 (SYMBOL_FLAG_LOW_MEM): Define.
6962 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6963 selector.
6964 (zero_extendqihi2): Fix operand number used by "%X" selector.
6965 (zero_extendqisi2): Likewise.
6966 (zero_extendhisi2): Likewise.
6967 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6968 (movhi): Likewise.
6969 (addqi3): Likewise.
6970 (addhi3): Likewise.
6971 (addsi3): Likewise.
6972 (addhi3_cy): Likewise.
6973 (addchi4_cy): Likewise.
6974 (subqi3): Likewise.
6975 (subhi3): Likewise.
6976 (subsi3): Likewise.
6977 (bic<mode>3): Likewise.
6978 (and<mode>3): Likewise.
6979 (ior<mode>3): Likewise.
6980 (xor<mode>3): Likewise.
6981 (slli_1): Add missing "%X" operand selector.
6982 (slll_1): Likewise.
6983 (slll_2): Likewise.
6984 (srai_1): Likewise.
6985 (sral_1): Likewise.
6986 (sral_2): Likewise.
6987 (srli_1): Likewise.
6988 (srll_1): Likewise.
6989 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6990 selector.
6991 (cbranchhi4_real): Likewise.
6992 (cbranchqi4_reversed): Likewise.
6993 (cbranchhi4_reversed): Likewise.
6994 (*bitbranch<mode>4): Likewise.
6995 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6996 * config/msp430/msp430.opt (mcode-region=): Set default to
6997 MSP430_REGION_LOWER. Improve docstring.
6998 (mdata-region=): Likewise.
6999 (muse-lower-region-prefix): New option.
7000 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
7001 mdata-region=none multilib.
7002 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
7003 mdata-region=none multilib.
7004 MULTILIB_EXCEPTIONS: Remove.
7005 MULTILIB_REQUIRED: Define.
7006 * configure: Regenerate.
7007 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
7008 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
7009 * doc/extend.texi: Clarify comment for {upper,lower,either}
7010 function attributes.
7011 Add separate description for "lower" variable attribute.
7012
7013 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7014
7015 PR target/77918
7016 * optabs-tree.c (vcond_icode_p): New function.
7017 (vcond_eq_icode_p): Likewise.
7018 (expand_vec_cond_expr_p): Use vcond_icode_p and
7019 vcond_eq_icode_p.
7020 * optabs.c (can_vcond_compare_p): New function.
7021 * optabs.h (can_vcond_compare_p): Likewise.
7022
7023 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7024
7025 PR target/77918
7026 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7027 caller passes a non-trapping condition.
7028 (is_gimple_condexpr): Allow trapping conditions.
7029 (is_gimple_condexpr_1): New helper function.
7030 (is_gimple_condexpr_for_cond): New function, acts like old
7031 is_gimple_condexpr.
7032 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7033 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7034 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7035 * gimplify.c (gimplify_cond_expr): Use
7036 is_gimple_condexpr_for_cond.
7037 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7038 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7039 VEC_COND_EXPR.
7040 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7041 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7042 is_gimple_condexpr_for_cond, remove pointless tmp check
7043 (forward_propagate_into_cond): Remove pointless tmp check.
7044
7045 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7046
7047 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7048 match that of other gsi_next_* functions. Adjust the comment.
7049 (gsi_start_nonvirtual_phis): New function.
7050 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7051 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7052
7053 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7054
7055 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7056 setjmp situation here. Fix a verb's ending: "the exact variables or
7057 elements for which there are warnings depends" -> "... depend".
7058
7059 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7060
7061 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7062
7063 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7064
7065 * ipa-prop.c (ipa_vr::nonzero_p): New.
7066 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7067 non-zero range.
7068 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7069 * tree-vrp.c (range_has_numeric_bounds_p): New.
7070 (range_int_cst_p): Use range_has_numeric_bounds_p.
7071 (get_range_op_handler): New.
7072 (supported_types_p): New.
7073 (defined_ranges_p): New.
7074 (drop_undefines_to_varying): New.
7075 (range_fold_binary_symbolics_p): New.
7076 (range_fold_unary_symbolics_p): New.
7077 (range_fold_unary_expr): Extract out into above functions.
7078 (range_fold_binary_expr): Same.
7079 (value_range_base::normalize_addresses): New.
7080 (value_range_base::normalize_symbolics): Normalize addresses.
7081 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7082
7083 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7084
7085 * tree-vrp.c (value_range_base::singleton_p): Use
7086 value_range_base::num_pairs instead of vrp_val_is* to check
7087 if a range has one sub-range.
7088
7089 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7090
7091 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7092 DEF is not a true earlyclobber but is tied to a specific input
7093 operand, and so is effectively earlyclobber wrt inputs that have
7094 different values.
7095 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7096
7097 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7098
7099 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7100 (pod_mode): Mark operators likewise.
7101 (scalar_int_mode): Mark non-default constructors and
7102 operators with CONSTEXPR.
7103 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7104 (fixed_size_mode): Likewise.
7105
7106 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7107
7108 PR target/91994
7109 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7110 and wrap the unspec_volatile in a parallel.
7111 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7112 the unspec_volatile.
7113 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7114 unspec_volatile to be wrapped in a parallel.
7115 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7116 (ix86_add_reg_usage_to_vzerouppers): New functions.
7117 (rest_of_handle_insert_vzeroupper): Use them to add register
7118 usage information to the vzeroupper instructions.
7119
7120 2019-10-07 Richard Biener <rguenther@suse.de>
7121
7122 PR tree-optimization/91975
7123 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7124 handle invariants.
7125
7126 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7127
7128 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7129 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7130
7131 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7132
7133 * config/darwin.c (darwin_override_options): Adjust objective-c
7134 ABI version error messages to avoid punctuation and contracted
7135 negations.
7136
7137 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7138
7139 * ipa-inline.c: Fix type; compute size rather than self_size
7140 for size of caller function.
7141
7142 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7143
7144 PR target/59888
7145 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7146 choose const_data section for constants with relocations.
7147 (machopic_select_section): Pass relocation flag to
7148 darwin_rodata_section ().
7149
7150 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7151
7152 PR tree-optimization/91734
7153 * generic-match-head.c: Include fold-const-call.h.
7154 * match.pd (sqrt(x) cmp c): Check the boundary value and
7155 in case inexact computation of c*c affects comparison of the boundary,
7156 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7157 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7158 for -frounding-math. For c2, try the next smaller or larger floating
7159 point constant depending on comparison code and if it has the same
7160 sqrt as c2, use it instead of c2.
7161
7162 2019-10-04 Martin Sebor <msebor@redhat.com>
7163
7164 PR middle-end/91977
7165 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7166 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7167 uninitialized objects.
7168
7169 2019-10-04 Martin Sebor <msebor@redhat.com>
7170
7171 * builtins.c (compute_objsize): Add an argument.
7172 * tree-object-size.c (addr_object_size): Same.
7173 (compute_builtin_object_size): Same.
7174 * tree-object-size.h (compute_builtin_object): Same.
7175
7176 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7177
7178 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7179
7180 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7181
7182 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7183
7184 2019-10-04 Martin Jambor <mjambor@suse.cz>
7185
7186 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7187 fntype when switching to calling memcpy instead of memset.
7188
7189 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7190
7191 * hash-table.h (hash_table::empty_slow): Don't assign
7192 size_t values to int variables.
7193
7194 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7195
7196 * expr.c (convert_mode_scalar): Remove shadowing local var.
7197 (emit_block_move): Rename local vars.
7198 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7199 (emit_push_insn): Rename local vars.
7200 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7201 shadowing local vars.
7202 (store_constructor): Remove shadowing local vars. Rename local var.
7203 (store_field, expand_cond_expr_using_cmove,
7204 expand_expr_real_2): Remove shadowing local vars.
7205 (expand_expr_real_1,
7206 do_store_flag): Remove shadowing local vars. Rename local vars.
7207
7208 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7209
7210 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7211
7212 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7213
7214 * genmatch.c (commutate): Rename local var.
7215 (lower_cond): Reuse local var.
7216 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
7217 dt_operand::gen, dt_operand::gen_gimple_expr,
7218 dt_simplify::gen): Add a param. Rename generated vars.
7219 (decision_tree::insert_operand,
7220 (capture_info::walk_match, capture_info::walk_result,
7221 capture_info::walk_c_expr): Rename local vars.
7222 (expr::gen_transform): Rename generated vars.
7223 Use snprintf. Rename local vars.
7224 (capture::gen_transform, dt_operand::get_name,
7225 dt_operand::gen_opname): Rename generated vars.
7226 (write_predicate): Adjust call to gen_kids.
7227 (parser::get_internal_capture_id): Rename generated vars.
7228 (parser::parse_expr): Rename local vars.
7229 (parser::parse_if): Remove local var.
7230 (parser::parse_pattern, add_operator): Rename local vars.
7231
7232 2019-10-04 Joseph Myers <joseph@codesourcery.com>
7233
7234 * builtins.def (DEF_C2X_BUILTIN): New macro.
7235 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
7236 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
7237 (strndup): Use DEF_C2X_BUILTIN.
7238 * coretypes.h (enum function_class): Add function_c2x_misc.
7239
7240 2019-10-04 Maya Rashish <coypu@sdf.org>
7241
7242 * ira-color.c (update_costs_from_allocno): Call
7243 ira_init_register_move_cost_if_necessary.
7244
7245 2019-10-04 Jeff Law <law@redhat.com>
7246
7247 * config/h8300/h8300.md (cpymemsi): Disable.
7248 (movmd, movmd_internal_<mode>, movstr, movsd):
7249 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
7250 (movmd splitter, movsd splitter): Likewise.
7251
7252 * range-op.cc (range_tests): Avoid two tests when ints and
7253 shorts are the same size.
7254
7255 2019-10-04 Richard Biener <rguenther@suse.de>
7256
7257 PR lto/91968
7258 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
7259 BLOCK_VARS.
7260
7261 2019-10-04 Richard Biener <rguenther@suse.de>
7262
7263 PR tree-optimization/91982
7264 * tree-vect-loop.c (vectorizable_live_operation): Also guard
7265 against EXTRACT_LAST_REDUCTION.
7266 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
7267
7268 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
7269
7270 * range-op.o (value_range_from_overflowed_bounds): Rename from
7271 adjust_overflow_bound.
7272 (value_range_with_overflow): Rename from
7273 create_range_with_overflow.
7274 (create_possibly_reversed_range): Adjusted for above renames.
7275 (operator_*::wi_fold): Same.
7276 (cross_product_operator::wi_cross_productor): Same.
7277
7278 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7279
7280 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
7281 -Wshadow=compatible-local): Fix description.
7282 Add an example where -Wshadow=compatible-local does not
7283 warn.
7284
7285 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
7286
7287 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
7288
7289 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
7290 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
7291
7292 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
7293
7294 * expr.c (emit_block_move_hints): Slightly cleaner fix to
7295 can_move_by_pieces issue.
7296
7297 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
7298
7299 PR target/87243
7300 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
7301 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
7302 is available and the user has not set one on the command line.
7303
7304 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7305
7306 PR target/91769
7307 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
7308 instead of REGNO equality check on addr.reg.
7309
7310 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
7311
7312 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
7313 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
7314 * doc/invoke.texi (inline-heuristics-hint-percent,
7315 inline-heuristics-hint-percent-O2): Document.
7316 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
7317 hint attribute.
7318 (can_inline_edge_by_limits_p): Use it.
7319
7320 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
7321
7322 * config/arm/arm.c (arm_print_value): Use real_to_decimal
7323 to print CONST_DOUBLEs.
7324
7325 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
7326
7327 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
7328 * ipa-prop.c (ipcp_free_transformation_sum): New function.
7329 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
7330
7331 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
7332
7333 * Makefile.in (OBJS): Add range.o and range-op.o.
7334 Remove wide-int-range.o.
7335 * function-tests.c (test_ranges): New.
7336 (function_tests_c_tests): Call test_ranges.
7337 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
7338 range_fold_unary_expr instead of extract_range_from_unary_expr.
7339 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7340 * range-op.cc: New file.
7341 * range-op.h: New file.
7342 * range.cc: New file.
7343 * range.h: New file.
7344 * selftest.h (range_tests): New prototype.
7345 * ssa.h: Include range.h.
7346 * tree-vrp.c (value_range_base::value_range_base): New
7347 constructors.
7348 (value_range_base::singleton_p): Do not call
7349 ranges_from_anti_range until sure we will need to.
7350 (value_range_base::type): Rename gcc_assert to
7351 gcc_checking_assert.
7352 (vrp_val_is_max): New argument.
7353 (vrp_val_is_min): Same.
7354 (wide_int_range_set_zero_nonzero_bits): Move from
7355 wide-int-range.cc.
7356 (extract_range_into_wide_ints): Remove.
7357 (extract_range_from_multiplicative_op): Remove.
7358 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
7359 from extract_range_from_binary_expr.
7360 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
7361 from extract_range_from_binary_expr.
7362 (extract_range_from_binary_expr): Remove.
7363 (normalize_for_range_ops): New.
7364 (range_fold_binary_expr): New.
7365 (range_fold_unary_expr): New.
7366 (value_range_base::num_pairs): New.
7367 (value_range_base::lower_bound): New.
7368 (value_range_base::upper_bound): New.
7369 (value_range_base::upper_bound): New.
7370 (value_range_base::contains_p): New.
7371 (value_range_base::invert): New.
7372 (value_range_base::union_): New.
7373 (value_range_base::intersect): New.
7374 (range_compatible_p): New.
7375 (value_range_base::operator==): New.
7376 (determine_value_range_1): Call range_fold_*expr instead of
7377 extract_range_from_*expr.
7378 * tree-vrp.h (class value_range_base): Add new constructors.
7379 Add methods for union_, intersect, operator==, contains_p,
7380 num_pairs, lower_bound, upper_bound, invert.
7381 (vrp_val_is_min): Add handle_pointers argument.
7382 (vrp_val_is_max): Same.
7383 (extract_range_from_unary_expr): Remove.
7384 (extract_range_from_binary_expr): Remove.
7385 (range_fold_unary_expr): New.
7386 (range_fold_binary_expr): New.
7387 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7388 range_fold_binary_expr instead of extract_range_from_binary_expr.
7389 (vr_values::extract_range_basic): Same.
7390 (vr_values::extract_range_from_unary_expr): Call
7391 range_fold_unary_expr instead of extract_range_from_unary_expr.
7392 * wide-int-range.cc: Remove.
7393 * wide-int-range.h: Remove.
7394
7395 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7396
7397 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7398 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7399 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7400 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7401 macro.
7402
7403 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7404
7405 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7406 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7407 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7408 * glimits.h: Likewise.
7409
7410 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7411
7412 PR rtl-optimization/91976
7413 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7414 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7415 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7416
7417 2019-10-02 Martin Sebor <msebor@redhat.com>
7418
7419 PR tree-optimization/80936
7420 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7421
7422 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7423
7424 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7425 instead of reg_class_contents[ALL_REGS].
7426
7427 2019-09-30 Jason Merrill <jason@redhat.com>
7428
7429 Add some hash_map_safe_* functions like vec_safe_*.
7430 * hash-map.h (default_hash_map_size): New variable.
7431 (create_ggc): Use it as default argument.
7432 (hash_map_maybe_create, hash_map_safe_get)
7433 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
7434
7435 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
7436
7437 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
7438 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
7439 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
7440 (can_inline_edge_by_limits_p): Use it.
7441 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
7442 (want_inline_small_function_p): Use O2 bounds.
7443 (edge_badness): LIkewise.
7444 * opts.c (default_options): Add OPT_finline_functions.
7445 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
7446 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
7447 New parameters.
7448 * doc/invoke.texi (-finline-functions): Update documentation.
7449 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
7450 inline-min-speedup-O2): Document.
7451 (early-inlining-insns-O2): Simplify docs.
7452
7453 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
7454
7455 PR rtl-optimization/87047
7456 * ifcvt.c (average_cost): New static function. Use it...
7457 (noce_process_if_block): ... here.
7458
7459 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7460
7461 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
7462 * config/rs6000/rs6000-string.c (expand_block_move): Add
7463 might_overlap parm.
7464 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
7465 (cpymemsi): Add might_overlap parm to expand_block_move() call.
7466
7467 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7468
7469 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
7470 (expand_builtin_memcpy): Use might_overlap parm.
7471 (expand_builtin_mempcpy_args): Use might_overlap parm.
7472 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
7473 (expand_builtin_memory_copy_args): Add might_overlap parm.
7474 * expr.c (emit_block_move_via_cpymem): Rename to
7475 emit_block_move_via_pattern, add might_overlap parm, use cpymem
7476 or movmem optab as appropriate.
7477 (emit_block_move_hints): Add might_overlap parm, do the right
7478 thing for might_overlap==true.
7479 * expr.h (emit_block_move_hints): Update prototype.
7480
7481 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
7482
7483 * tree-eh.h (unsplit_eh_edges): Declare.
7484 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
7485 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
7486 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
7487 (struct store_immediate_info): Add lp_nr field.
7488 (store_immediate_info::store_immediate_info): Add NR2 parameter and
7489 initialize lp_nr with it.
7490 (struct merged_store_group): Add lp_nr and only_constants fields.
7491 (merged_store_group::merged_store_group): Initialize them.
7492 (merged_store_group::can_be_merged_into): Deal with them.
7493 (pass_store_merging): Rename terminate_and_release_chain into
7494 terminate_and_process_chain.
7495 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
7496 renaming and remove useless assertions.
7497 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
7498 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
7499 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
7500 instead of always recomputing it and compare lp_nr.
7501 (imm_store_chain_info::output_merged_store): If the group is in an
7502 active EH region, register new stores if they can throw. Moreover,
7503 if the insertion has created new basic blocks, adjust the PHI nodes
7504 of the post landing pad.
7505 (imm_store_chain_info::output_merged_stores): If the original stores
7506 are in an active EH region, deregister them.
7507 (lhs_valid_for_store_merging_p): Prettify.
7508 (adjust_bit_pos): New function extracted from...
7509 (mem_valid_for_store_merging): ...here. Use it for the base address
7510 and also for the offset if it is the addition of a constant.
7511 (lp_nr_for_store): New function.
7512 (pass_store_merging::process_store): Change return type to bool.
7513 Call lp_nr_for_store to initialize the store info. Propagate the
7514 return status of various called functions to the return value.
7515 (store_valid_for_store_merging_p): New predicate.
7516 (enum basic_block_status): New enumeration.
7517 (get_status_for_store_merging): New function.
7518 (pass_store_merging::execute): If the function can throw and catch
7519 non-call exceptions, unsplit the EH edges on entry and clean up the
7520 CFG on exit if something changed. Call get_status_for_store_merging
7521 for every basic block and keep the chains open across basic blocks
7522 when possible. Terminate and process open chains at the end, if any.
7523
7524 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7525
7526 * reginfo.c (globalize_reg): Fix shadowed variable in
7527 function_abis walk.
7528
7529 2019-10-02 Martin Jambor <mjambor@suse.cz>
7530
7531 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
7532 do not compute some stuff when set.
7533 (cgraph_node::create_edge): Likewise.
7534 (cgraph_node::create_indirect_edge): Renamed last parameter to
7535 coning_p and flipped its meaning, don't even calculate
7536 inline_failed when set.
7537 * cgraph.h (cgraph_node::create_edge): Add new parameter.
7538 (symbol_table::::create_edge): Likewise.
7539 (cgraph_node::create_indirect_edge): Rename last parameter, flip
7540 the default value.
7541 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
7542 call graph edge creating functions.
7543
7544 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7545
7546 PR c++/91222
7547 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
7548 namespace types.
7549
7550 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
7551
7552 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
7553
7554 2019-10-02 Richard Biener <rguenther@suse.de>
7555
7556 * tree-vectorizer.h (vect_transform_reduction): Declare.
7557 * tree-vect-stmts.c (vect_transform_stmt): Use it.
7558 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
7559 stmt transform to ...
7560 (vect_transform_reduction): ... this.
7561
7562 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
7563
7564 * omp-low.c (lower_omp_target): Dereference optional argument
7565 to work with the right pointer.
7566
7567 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7568
7569 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7570 false.
7571 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7572 * langhooks.h (omp_is_optional_argument): New hook.
7573 * omp-general.c (omp_is_optional_argument): New.
7574 * omp-general.h (omp_is_optional_argument): New declaration.
7575 * omp-low.c (lower_omp_target): Create temporary for received value
7576 and take the address for new_var if the original variable was a
7577 DECL_BY_REFERENCE. Use size of referenced object when a
7578 pass-by-reference optional argument used as argument to firstprivate.
7579
7580 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7581
7582 PR tree-optimization/91940
7583 * tree-vect-patterns.c: Include tree-vector-builder.h and
7584 vec-perm-indices.h.
7585 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7586 unpromoting the argument back to uint16_t, or by converting into a
7587 rotate, or into shifts plus ior.
7588
7589 2019-10-02 Richard Biener <rguenther@suse.de>
7590
7591 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7592 New.
7593 (vect_transform_cycle_phi): Declare.
7594 * tree-vect-stmts.c (vect_transform_stmt): Call
7595 vect_transform_cycle_phi.
7596 * tree-vect-loop.c (vectorizable_reduction): Split out
7597 PHI transformation stage to ...
7598 (vect_transform_cycle_phi): ... here.
7599
7600 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7601
7602 PR middle-end/91957
7603 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7604 eliminable registers.
7605 (make_hard_regno_live): Likewise, and don't make them live.
7606
7607 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7608
7609 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7610 Call pp_emit_prefix.
7611 (layout::print_source_line): Likewise.
7612 (layout::start_annotation_line): Likewise.
7613 (diagnostic_show_locus): Remove call to temporarily clear the
7614 prefix.
7615 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7616 interaction of pp_set_prefix with rulers and fix-it hints.
7617 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7618 prefix when calling diagnostic_show_locus, rather than destroying
7619 it afterwards.
7620 (print_parseable_fixits): Temporarily clear prefix.
7621 * pretty-print.c (pp_format): Save and restore line_length, rather
7622 than assuming it is zero.
7623 (pp_output_formatted_text): Remove assertion that line_length is
7624 zero.
7625
7626 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7627
7628 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7629 Rename to ...
7630 (nonoverlapping_refs_since_match_p): ... this; handle also
7631 ARRAY_REFs.
7632 (alias_stats): Update stats.
7633 (dump_alias_stats): Likewise.
7634 (cheap_array_ref_low_bound): New function.
7635 (aliasing_matching_component_refs_p): Add partial_overlap
7636 argument;
7637 pass it to nonoverlapping_refs_since_match_p.
7638 (aliasing_component_refs_walk): Update call of
7639 aliasing_matching_component_refs_p
7640 (nonoverlapping_array_refs_p): New function.
7641 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7642 indirect_refs_may_alias_p): Update calls of
7643 nonoverlapping_refs_since_match_p.
7644
7645 2019-10-01 Maya Rashish <coypu@sdf.org>
7646
7647 PR target/85401
7648 * ira-color.c (allocno_copy_cost_saving): Call
7649 ira_init_register_move_cost_if_necessary.
7650
7651 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7652
7653 * Makefile.in (gnat_install_lib): New variable.
7654 * configure.ac: Substitute it.
7655 * configure: Regenerate.
7656
7657 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7658
7659 PR lto/91222
7660 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7661 is matched with non-C++ type
7662
7663 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7664
7665 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7666 after local CSE.
7667
7668 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7669
7670 * doc/invoke.texi (early-inlining-insns-O2): Document.
7671 (early-inlining-insns): Update.
7672 * params.def (early-inlining-insns-O2): New bound.
7673 (early-inlining-insns): Update docs.
7674 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7675
7676 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7677
7678 PR target/88562
7679 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7680 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7681 a memory access insn.
7682
7683 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7684
7685 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7686 vpmsumd.
7687
7688 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7689
7690 PR target/77918
7691 * config/s390/s390.c (s390_expand_vec_compare): Use
7692 gen_vec_cmpordered and gen_vec_cmpunordered.
7693 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7694 vec_unordered): Delete.
7695 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7696 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7697 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7698 (vec_cmp<code>): Generic dispatcher.
7699
7700 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7701
7702 PR target/77918
7703 * config/s390/vector.md (V_HW): Add V1TI in order to make
7704 vcond$a$b generate vcondv1tiv1tf.
7705
7706 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7707
7708 PR rtl-optimization/91948
7709 * ira-build.c (ira_create_allocno): Initialize
7710 ALLOCNO_CROSSED_CALLS_ABIS.
7711 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7712 than regno to ira_need_caller_save_p.
7713
7714 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7715
7716 * config/i386/i386-options.c
7717 (ix86_recompute_optlev_based_flags): New, moved out of...
7718 (ix86_option_override_internal): ... this. Call it.
7719 (ix86_override_options_after_change): Call it here too.
7720
7721 PR debug/91507
7722 * dwarf2out.c (override_type_for_decl_p): New.
7723 (gen_variable_die): Use it.
7724
7725 2019-10-01 Richard Biener <rguenther@suse.de>
7726
7727 * tree-vect-loop.c (vectorizable_reduction): Move variables
7728 to where they are used.
7729
7730 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7731
7732 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7733 (build_def_use): Use PC instead of CC0 in a comment.
7734
7735 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7736
7737 * rtl.def (CLOBBER_HIGH): Delete.
7738 * doc/rtl.texi (clobber_high): Remove documentation.
7739 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7740 (reg_is_clobbered_by_clobber_high): Delete.
7741 (gen_hard_reg_clobber_high): Likewise.
7742 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7743 * cfgexpand.c (expand_gimple_stmt): Likewise.
7744 * combine-stack-adj.c (single_set_for_csa): Likewise.
7745 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7746 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7747 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7748 * cse.c (invalidate_reg): Remove clobber_high parameter.
7749 (invalidate): Update call accordingly.
7750 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7751 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7752 (count_reg_usage, insn_live_p): Likewise.
7753 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7754 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7755 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7756 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7757 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7758 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7759 (mark_nonreg_stores_2): Likewise.
7760 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7761 (df_get_call_refs): Likewise.
7762 * dwarf2out.c (mem_loc_descriptor): Likewise.
7763 * emit-rtl.c (verify_rtx_sharing): Likewise.
7764 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7765 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7766 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7767 * genemit.c (gen_exp, gen_insn): Likewise.
7768 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7769 * haifa-sched.c (haifa_classify_rtx): Likewise.
7770 * ira-build.c (create_insn_allocnos): Likewise.
7771 * ira-costs.c (scan_one_insn): Likewise.
7772 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7773 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7774 * jump.c (mark_jump_label_1): Likewise.
7775 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7776 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7777 handling.
7778 (mark_not_eliminable): Likewise.
7779 * lra-lives.c (process_bb_lives): Likewise.
7780 * lra.c (new_insn_reg): Remove clobber_high parameter.
7781 (collect_non_operand_hard_regs): Likewise. Update call to new
7782 insn_reg. Remove CLOBBER_HIGH handling.
7783 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7784 to collect_non_operand_hard_regs.
7785 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7786 Update call to new_insn_reg.
7787 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7788 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7789 (move2add_note_store): Likewise.
7790 * print-rtl.c (print_pattern): Likewise.
7791 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7792 (if_test_bypass_p): Likewise.
7793 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7794 * reginfo.c (reg_scan_mark_refs): Likewise.
7795 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7796 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7797 (forget_old_reloads_1): Likewise.
7798 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7799 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7800 (dbr_schedule): Likewise.
7801 * resource.c (update_live_status, mark_referenced_resources)
7802 (mark_set_resources): Likewise.
7803 * rtl.c (copy_rtx): Likewise.
7804 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7805 (note_pattern_stores): Likewise.
7806 (reg_is_clobbered_by_clobber_high): Delete.
7807 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7808 CLOBBER_HIGH handling.
7809
7810 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7811
7812 PR target/91452
7813 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7814 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7815 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7816 Handle ARM_PCS_TLSDESC.
7817 (aarch64_tlsdesc_abi_id): New function.
7818 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7819 rtx instead of a list of clobbers and clobber_highs.
7820 (tlsdesc_small_<mode>): Update accordingly.
7821
7822 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7823
7824 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7825 extra callee_abi argument.
7826 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7827 Insert a CALLEE_ABI unspec into the call pattern as the second
7828 element in the PARALLEL.
7829 (aarch64_simd_call_p): Delete.
7830 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7831 the new CALLEE_ABI element of the PARALLEL.
7832 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7833 from the function type, if given.
7834 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7835 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7836 when passed the function_arg_info end marker.
7837 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7838 final argument of gen_sibcall.
7839 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7840 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7841 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7842 pattern.
7843 (call_value): Likewise operand 3.
7844 (sibcall): Likewise operand 2. Place the unspec before rather than
7845 after the return.
7846 (sibcall_value): Likewise operand 3.
7847 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7848 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7849 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7850 constraint strings.
7851 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7852
7853 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7854
7855 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7856 choose_hard_reg_mode.
7857 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7858
7859 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7860
7861 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7862 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7863 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7864
7865 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7866
7867 * diagnostic-show-locus.c (line_label::line_label): Initialize
7868 m_has_vbar.
7869 (line_label::comparator): Reverse the sort order by m_state_idx,
7870 so that when the list is walked backwards the labels appear in
7871 order of insertion into the rich_location.
7872 (line_label::m_has_vbar): New field.
7873 (layout::print_any_labels): When dealing with multiple labels at
7874 the same line and column, only print vertical bars for the one
7875 with the highest label_line.
7876 (selftest::test_one_liner_labels): Update test for multiple labels
7877 to expect the labels to be in the order of insertion into the
7878 rich_location. Add a test for many such labels, where the column
7879 numbers are out-of-order relative to the insertion order.
7880
7881 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7882
7883 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7884 (ix86_frame::expensive_count): Likewise.
7885 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7886 of use_fast_prologue_epilogue robust against incidental changes
7887 in function size.
7888
7889 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7890
7891 PR target/77918
7892 * config/s390/vector.md (vec_unordered<mode>): Call
7893 gen_vec_ordered<mode>.
7894
7895 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7896
7897 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7898 New pattern for ASRD.
7899 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7900 * internal-fn.def (IFN_DIV_POW2): New internal function.
7901 * optabs.def (sdiv_pow2_optab): New optab.
7902 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7903 Modify pattern to support new operation.
7904 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7905 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7906 Document new target selector.
7907
7908 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7909
7910 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7911 to test whether we're compiling a vector PCS function and to test
7912 whether the function needs to save a particular register.
7913 Remove the vector PCS handling of df_set_regs_ever_live.
7914 (aarch64_components_for_bb): Use crtl->abi to test whether
7915 the function needs to save a particular register.
7916 (aarch64_process_components): Use crtl->abi to test whether
7917 we're compiling a vector PCS function.
7918 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7919 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7920
7921 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7922
7923 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7924 Delete.
7925 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7926 whether the block calls a function that clobbers more registers
7927 than the current function is allowed to.
7928 (aarch64_use_simple_return_insn_p): Delete.
7929 * config/aarch64/aarch64.md (simple_return): Remove condition.
7930
7931 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7932
7933 * function-abi.h (function_abi_aggregator): New class.
7934 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7935 function.
7936 * ira.c (update_equiv_regs_prescan): New function. Call
7937 set_paradoxical_subreg here rather than...
7938 (update_equiv_regs): ...here.
7939 (ira): Call update_equiv_regs_prescan.
7940
7941 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7942
7943 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7944 IN_TARGET_CODE.
7945 (call_used_or_fixed_regs): Likewise.
7946 (call_used_or_fixed_reg_p): Likewise.
7947 * reginfo.c (regs_invalidated_by_call): New macro.
7948
7949 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7950
7951 * shrink-wrap.c: Include function-abi.h.
7952 (requires_stack_frame_p): Use crtl->abi to test whether the
7953 current function can use a register without saving it first.
7954
7955 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7956
7957 * sel-sched-ir.h (_def::crosses_call): Replace with...
7958 (_def::crossed_call_abis): ..this new field.
7959 (def_list_add): Take a mask of ABIs instead of a crosses_call
7960 boolean.
7961 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7962 of _def accordingly.
7963 * sel-sched.c: Include function-abi.h.
7964 (hard_regs_data::regs_for_call_clobbered): Delete.
7965 (reg_rename::crosses_call): Replace with...
7966 (reg_rename::crossed_call_abis): ...this new field.
7967 (fur_static_params::crosses_call): Replace with...
7968 (fur_static_params::crossed_call_abis): ...this new field.
7969 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7970 (init_hard_regs_data): Use crtl->abi to test which registers the
7971 current function would need to save before it uses them.
7972 (mark_unavailable_hard_regs): Update handling of call-clobbered
7973 registers, using call_clobbers_in_region to find out which registers
7974 might be call-clobbered (but without taking -fipa-ra into account
7975 for now). Remove separate handling of partially call-clobbered
7976 registers.
7977 (verify_target_availability): Use crossed_call_abis instead of
7978 crosses_call.
7979 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7980 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7981
7982 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7983
7984 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7985 function to test whether a register is fully or partly clobbered.
7986
7987 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7988
7989 * rtlanal.c: Include function-abi.h.
7990 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7991 function and clobbers_reg_p to test whether the register
7992 is call-clobbered.
7993 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7994 to get the ABI of the called function and full_reg_clobbers to
7995 get the set of fully call-clobbered registers. Warn about the
7996 pitfalls of using this mode.
7997
7998 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7999
8000 * reload.c: Include function-abi.h.
8001 (find_equiv_reg): Use clobbers_reg_p to test whether either
8002 of the equivalent registers is clobbered by a call.
8003 * reload1.c: Include function-abi.h.
8004 (reg_reloaded_call_part_clobbered): Delete.
8005 (reload): Use crtl->abi to test which registers would need
8006 saving in the prologue before use.
8007 (find_reg): Likewise.
8008 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
8009 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
8010 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
8011
8012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8013
8014 * regrename.h (du_head::call_clobber_mask): New field.
8015 (du_head::need_caller_save_reg): Replace with...
8016 (du_head::call_abis): ...this new field.
8017 * regrename.c: Include function-abi.h.
8018 (call_clobbered_in_chain_p): New function.
8019 (check_new_reg_p): Use crtl->abi when deciding whether a register
8020 is free for use after RA. Use call_clobbered_in_chain_p to test
8021 whether a candidate register would be clobbered by a call.
8022 (find_rename_reg): Don't add call-clobber conflicts here.
8023 (rename_chains): Check call_abis instead of need_caller_save_reg.
8024 (merge_chains): Update for changes to du_head.
8025 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8026 target. Record the ABI identifier in call_abis and the set of
8027 fully or partially clobbered registers in call_clobber_mask.
8028 Add fully-clobbered registers to hard_conflicts here rather
8029 than in find_rename_reg.
8030 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8031 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8032 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8033 function-abi.h.
8034 * config/c6x/c6x.c: Likewise.
8035
8036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8037
8038 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8039 mode of the register when deciding whether it is no longer
8040 available after a call.
8041
8042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8043
8044 * recog.c: Include function-abi.h.
8045 (peep2_find_free_register): Use crtl->abi when deciding whether
8046 a register is free for use after RA.
8047
8048 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8049
8050 * postreload-gcse.c: Include regs.h and function-abi.h.
8051 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8052 call insn target. Conservatively assume that partially-clobbered
8053 registers are altered.
8054
8055 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8056
8057 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8058 when deciding whether a register is free for use after RA.
8059 (reload_combine): Remove unnecessary use of fixed_reg_set.
8060 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8061 call insn target. Use reg_mode when testing whether a register
8062 is no longer available.
8063
8064 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8065
8066 * target.def (return_call_with_max_clobbers): Delete.
8067 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8068 * doc/tm.texi: Regenerate.
8069 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8070 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8071 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8072 (lra_reg::call_insn): Delete.
8073 * lra.c: Include function-abi.h.
8074 (initialize_lra_reg_info_element): Don't initialize the fields above.
8075 (lra): Use crtl->abi to test whether the current function needs to
8076 save a register in the prologue. Remove special pre-inheritance
8077 lra_create_live_ranges pass for flag_ipa_ra.
8078 * lra-assigns.c: Include function-abi.h
8079 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8080 function needs to save a register in the prologue.
8081 (lra_assign): Assert that registers aren't allocated to a
8082 conflicting register, rather than checking only for overlaps
8083 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8084 and for registers that are not live across a call.
8085 * lra-constraints.c (last_call_for_abi): New variable.
8086 (full_and_partial_call_clobbers): Likewise.
8087 (setup_next_usage_insn): Remove the register from
8088 full_and_partial_call_clobbers.
8089 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8090 whether the register needs a caller save.
8091 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8092 of call_used_or_fixed_regs.
8093 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8094 full_and_partial_call_clobbers.
8095 * lra-lives.c (check_pseudos_live_through_calls): Replace
8096 last_call_used_reg_set and call_insn arguments with an abi argument.
8097 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8098 as the set of conflicting registers.
8099 (calls_have_same_clobbers_p): Delete.
8100 (process_bb_lives): Track the ABI of the last call instead of an
8101 insn/HARD_REG_SET pair. Update calls to
8102 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8103 the set of registers that could be clobbered by an EH edge.
8104 Include partially-clobbered as well as fully-clobbered registers.
8105 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8106 * lra-remat.c: Include function-abi.h.
8107 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8108 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8109 registers and bitmap_view to combine them into dead_regs.
8110 (call_used_input_regno_present_p): Take a function_abi argument
8111 and use it to test whether a register is call-clobbered.
8112 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8113 call insn target. Update tje call to call_used_input_regno_present_p.
8114 (do_remat): Likewise.
8115 (lra_remat): Remove the initialization of call_used_regs_arr_len
8116 and call_used_regs_arr.
8117
8118 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8119
8120 * loop-iv.c: Include regs.h and function-abi.h.
8121 (simplify_using_initial_values): Use insn_callee_abi to get the
8122 ABI of the call insn target. Conservatively assume that
8123 partially-clobbered registers are altered.
8124
8125 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8126
8127 * function-abi.h (call_clobbers_in_region): Declare.
8128 (call_clobbered_in_region_p): New function.
8129 * function-abi.cc (call_clobbers_in_region): Likewise.
8130 * ira-int.h: Include function-abi.h.
8131 (ira_allocno::crossed_calls_abis): New field.
8132 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8133 (ira_need_caller_save_regs): New function.
8134 (ira_need_caller_save_p): Likewise.
8135 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8136 of call_used_or_fixed_regs.
8137 (do_reload): Use crtl->abi to test whether the current function
8138 needs to save a register in the prologue. Count registers that
8139 need to be saved rather than registers that don't.
8140 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8141 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8142 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8143 (propagate_some_info_from_allocno): Likewise.
8144 (copy_info_to_removed_store_destinations): Likewise.
8145 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8146 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8147 (ira_build): Use ira_need_caller_save_regs instead of
8148 call_used_or_fixed_regs.
8149 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8150 whether the current function would need to save a register
8151 before using it.
8152 (calculate_spill_cost): Likewise.
8153 (allocno_reload_assign): Use ira_need_caller_save_regs and
8154 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8155 * ira-conflicts.c (ira_build_conflicts): Use
8156 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8157 as the set of call-clobbered registers. Remove the
8158 call_used_or_fixed_regs mask from the calculation of
8159 temp_hard_reg_set and mask its use instead. Remove special
8160 handling of partially-clobbered registers.
8161 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8162 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8163 calculate the set of conflicting registers for calls that
8164 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8165 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8166 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8167 Use eh_edge_abi to calculate the set of registers that could
8168 be clobbered by an EH edge. Include partially-clobbered as
8169 well as fully-clobbered registers.
8170
8171 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8172
8173 * haifa-sched.c: Include function-abi.h.
8174 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8175 the function would need to save a register before using it.
8176
8177 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8178
8179 * gcse.c: Include function-abi.h.
8180 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8181 the call insn target. Invalidate partially call-clobbered
8182 registers as well as fully call-clobbered ones.
8183
8184 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8185
8186 * function.c (aggregate_value_p): Work out which ABI the
8187 function is using before testing which registers are at least
8188 partly preserved by a call.
8189
8190 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8191
8192 * early-remat.c: Include regs.h and function-abi.h.
8193 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8194 registers here.
8195 (early_remat::restrict_remat_for_unavail_regs): New function.
8196 (early_remat::restrict_remat_for_call): Likewise.
8197 (early_remat::process_block): Before calling emit_remat_insns
8198 for a previous call in the block, invalidate any candidates
8199 that would clobber call-preserved registers.
8200 (early_remat::emit_remat_insns_for_block): Likewise for the
8201 final call in a block. Do the same thing for live-in registers
8202 when calling emit_remat_insns at the head of a block.
8203
8204 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8205
8206 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8207 whether the current function needs to save at least part of a
8208 register before using it.
8209 (df_get_exit_block_use_set): Likewise for epilogue restores.
8210
8211 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8212
8213 * df-problems.c: Include regs.h and function-abi.h.
8214 (df_rd_problem_data): Rename sparse_invalidated_by_call to
8215 sparse_invalidated_by_eh and dense_invalidated_by_call to
8216 dense_invalidated_by_eh.
8217 (df_print_bb_index): Update accordingly.
8218 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
8219 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
8220 that are clobbered by an EH edge. Clobber partially-clobbered
8221 registers as well as fully-clobbered ones.
8222 (df_md_confluence_n): Likewise.
8223 (df_rd_local_compute): Likewise. Update for changes to
8224 df_rd_problem_data.
8225 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
8226 of registers that are clobbered by an EH edge. Includde partially-
8227 clobbered registers as well as fully-clobbered ones.
8228
8229 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8230
8231 * cselib.c (cselib_process_insn): If we know what mode a
8232 register was set in, check whether it is clobbered in that
8233 mode by a call. Only fall back to reg_raw_mode if that fails.
8234
8235 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8236
8237 * cse.c: Include regs.h and function-abi.h.
8238 (invalidate_for_call): Take the call insn as an argument.
8239 Use insn_callee_abi to get the ABI of the call and invalidate
8240 partially clobbered registers as well as fully clobbered ones.
8241 (cse_insn): Update call accordingly.
8242
8243 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8244
8245 * combine.c: Include function-abi.h.
8246 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
8247 of the target of call insns. Invalidate partially-clobbered
8248 registers as well as fully-clobbered ones.
8249
8250 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8251
8252 * cfgloopanal.c: Include regs.h and function-abi.h.
8253 (init_set_costs): Use default_function_abi to test whether
8254 a general register is call-clobbered.
8255
8256 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8257
8258 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
8259 instead of the call-clobbered sets.
8260
8261 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8262
8263 * caller-save.c (setup_save_areas): Remove redundant |s of
8264 fixed_reg_set.
8265 (save_call_clobbered_regs): Likewise. Use the call ABI rather
8266 than call_used_or_fixed_regs to decide whether a REG_RETURNED
8267 value is useful.
8268
8269 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8270
8271 * rtl.h (predefined_function_abi): Declare.
8272 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8273 instead of a boolean call_save flag.
8274 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
8275 accordingly.
8276 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8277 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8278 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
8279 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8280 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8281 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
8282 * reginfo.c (init_reg_modes_target): Likewise.
8283 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8284 instead of a boolean call_save flag.
8285 * targhooks.c: Include function-abi.h.
8286 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
8287 using eh_edge_abi to choose the mode.
8288
8289 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8290
8291 * target.def (hard_regno_call_part_clobbered): Take an ABI
8292 identifier instead of an rtx_insn.
8293 * doc/tm.texi: Regenerate.
8294 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
8295 (hook_bool_uint_uint_mode_false): New function.
8296 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
8297 (hook_bool_uint_uint_mode_false): New function.
8298 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8299 Take an ABI identifier instead of an rtx_insn.
8300 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
8301 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
8302 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
8303 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
8304 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
8305 Likewise.
8306 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
8307 * cselib.c: Include function-abi.h.
8308 (cselib_process_insn): Update call to
8309 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8310 to get the appropriate ABI identifier.
8311 * function-abi.cc (predefined_function_abi::initialize): Update call
8312 to targetm.hard_regno_call_part_clobbered.
8313 * ira-conflicts.c (ira_build_conflicts): Likewise.
8314 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8315 * lra-constraints.c: Include function-abi.h.
8316 (need_for_call_save_p): Update call to
8317 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8318 to get the appropriate ABI identifier.
8319 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8320 * regcprop.c (copyprop_hardreg_forward_1): Update call
8321 to targetm.hard_regno_call_part_clobbered.
8322 * reginfo.c (choose_hard_reg_mode): Likewise.
8323 * regrename.c (check_new_reg_p): Likewise.
8324 * reload.c (find_equiv_reg): Likewise.
8325 * reload1.c (emit_reload_insns): Likewise.
8326 * sched-deps.c: Include function-abi.h.
8327 (deps_analyze_insn): Update call to
8328 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8329 to get the appropriate ABI identifier.
8330 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
8331 call to targetm.hard_regno_call_part_clobbered.
8332 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
8333
8334 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8335
8336 * config/i386/i386.c: Include function-abi.h.
8337 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
8338 if they preserve some 256-bit or 512-bit SSE registers.
8339
8340 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8341
8342 * target.def (insn_callee_abi): New hook.
8343 (remove_extra_call_preserved_regs): Delete.
8344 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
8345 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8346 * doc/tm.texi: Regenerate.
8347 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
8348 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
8349 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
8350 insn argument.
8351 (aarch64_remove_extra_call_preserved_regs): Delete.
8352 (aarch64_insn_callee_abi): New function.
8353 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8354 (TARGET_INSN_CALLEE_ABI): New macro.
8355 * rtl.h (get_call_fndecl): Declare.
8356 (cgraph_rtl_info): Fix formatting. Tweak comment for
8357 function_used_regs. Remove function_used_regs_valid.
8358 * rtlanal.c (get_call_fndecl): Moved from final.c
8359 * function-abi.h (insn_callee_abi): Declare.
8360 (target_function_abi_info): Mention insn_callee_abi.
8361 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
8362 way to get_call_reg_set_usage did.
8363 (insn_callee_abi): New function.
8364 * regs.h (get_call_reg_set_usage): Delete.
8365 * final.c: Include function-abi.h.
8366 (collect_fn_hard_reg_usage): Add fixed and stack registers to
8367 function_used_regs before the main loop rather than afterwards.
8368 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
8369 if function_used_regs ends up not being useful.
8370 (get_call_fndecl): Move to rtlanal.c
8371 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
8372 * caller-save.c: Include function-abi.h.
8373 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
8374 instead of get_call_reg_set_usage.
8375 * cfgcleanup.c: Include function-abi.h.
8376 (old_insns_match_p): Use insn_callee_abi instead of
8377 get_call_reg_set_usage.
8378 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
8379 a tree.
8380 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
8381 function_used_regs.
8382 * df-scan.c: Include function-abi.h.
8383 (df_get_call_refs): Use insn_callee_abi instead of
8384 get_call_reg_set_usage.
8385 * ira-lives.c: Include function-abi.h.
8386 (process_bb_node_lives): Use insn_callee_abi instead of
8387 get_call_reg_set_usage.
8388 * lra-lives.c: Include function-abi.h.
8389 (process_bb_lives): Use insn_callee_abi instead of
8390 get_call_reg_set_usage.
8391 * postreload.c: Include function-abi.h.
8392 (reload_combine): Use insn_callee_abi instead of
8393 get_call_reg_set_usage.
8394 * regcprop.c: Include function-abi.h.
8395 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8396 get_call_reg_set_usage.
8397 * resource.c: Include function-abi.h.
8398 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8399 instead of get_call_reg_set_usage.
8400 * var-tracking.c: Include function-abi.h.
8401 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8402 get_call_reg_set_usage.
8403
8404 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8405
8406 * target.def (fntype_abi): New target hook.
8407 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8408 * doc/tm.texi: Regenerate.
8409 * target.h (predefined_function_abi): Declare.
8410 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8411 if defined.
8412 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8413 * config/aarch64/aarch64.c: Include function-abi.h.
8414 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8415 (TARGET_FNTYPE_ABI): Define.
8416
8417 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8418
8419 * Makefile.in (OBJS): Add function-abi.o.
8420 (GTFILES): Add function-abi.h.
8421 * function-abi.cc: New file.
8422 * function-abi.h: Likewise.
8423 * emit-rtl.h (rtl_data::abi): New field.
8424 * function.c: Include function-abi.h.
8425 (prepare_function_start): Initialize crtl->abi.
8426 * read-rtl-function.c: Include regs.h and function-abi.h.
8427 (read_rtl_function_body): Initialize crtl->abi.
8428 (read_rtl_function_body_from_file_range): Likewise.
8429 * reginfo.c: Include function-abi.h.
8430 (init_reg_sets_1): Initialize default_function_abi.
8431 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
8432 when making a register global.
8433 * target-globals.h (this_target_function_abi_info): Declare.
8434 (target_globals::function_abi_info): New field.
8435 (restore_target_globals): Copy it.
8436 * target-globals.c: Include function-abi.h.
8437 (default_target_globals): Initialize the function_abi_info field.
8438 (target_globals): Allocate it.
8439 (save_target_globals): Free it.
8440
8441 2019-09-30 Nick Clifton <nickc@redhat.com>
8442
8443 PR target/85978
8444 * config/frv/frv.c (frv_register_move_cost): Add break statements
8445 to avoid falling through to the wrong cases. Tidy code.
8446
8447 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8448
8449 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8450 For multi-registers modes, test how big each register part is.
8451
8452 2019-09-30 Nick Clifton <nickc@redhat.com>
8453
8454 PR target/59205
8455 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
8456 (TARGET_ASM_SELECT_SECTION): Remove definition.
8457 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
8458
8459 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8460
8461 * emit-rtl.c (init_raw_REG): New function.
8462 (gen_raw_REG): Use init_raw_REG.
8463 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
8464 macros.
8465 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
8466 * rtl.h (rtx_init): New function.
8467 (rtx_alloca): New function.
8468 (init_raw_REG): New function.
8469 (alloca_raw_REG): New macro.
8470
8471 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
8472
8473 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
8474 (pcrel_local_address): Replace pcrel_address predicate, use the
8475 new function address_to_insn_form.
8476 (pcrel_external_address): Replace with new implementation using
8477 address_to_insn_form..
8478 (prefixed_mem_operand): Delete predicate which is now unused.
8479 (pcrel_external_mem_operand): Delete predicate which is now
8480 unused.
8481 * config/rs6000/rs6000-protos.h (enum insn_form): New
8482 enumeration.
8483 (enum non_prefixed_form): New enumeration.
8484 (address_to_insn_form): New declaration.
8485 (prefixed_load_p): New declaration.
8486 (prefixed_store_p): New declaration.
8487 (prefixed_paddi_p): New declaration.
8488 (rs6000_asm_output_opcode): New declaration.
8489 (rs6000_final_prescan_insn): Move declaration and update calling
8490 signature.
8491 (address_is_prefixed): New helper inline function.
8492 * config/rs6000/rs6000.c(print_operand_address): Check for either
8493 PC-relative local symbols or PC-relative external symbols.
8494 (rs6000_emit_move): Support loading PC-relative addresses.
8495 (mode_supports_prefixed_address_p): Delete, no longer used.
8496 (rs6000_prefixed_address_mode_p): Delete, no longer used.
8497 (address_to_insn_form): New function to decode an address format.
8498 (reg_to_non_prefixed): New function to identify what the
8499 non-prefixed memory instruction format is for a register.
8500 (prefixed_load_p): New function to identify prefixed loads.
8501 (prefixed_store_p): New function to identify prefixed stores.
8502 (prefixed_paddi_p): New function to identify prefixed load
8503 immediates.
8504 (next_insn_prefixed_p): New static state variable.
8505 (rs6000_final_prescan_insn): New function to determine if an insn
8506 uses a prefixed instruction.
8507 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
8508 prefixed instruction.
8509 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
8510 (ASM_OUTPUT_OPCODE): New target hook.
8511 * config/rs6000/rs6000.md (prefixed): New insn attribute for
8512 prefixed instructions.
8513 (prefixed_length): New insn attribute for the size of prefixed
8514 instructions.
8515 (non_prefixed_length): New insn attribute for the size of
8516 non-prefixed instructions.
8517 (pcrel_local_addr): New insn to load up a local PC-relative
8518 address.
8519 (pcrel_extern_addr): New insn to load up an external PC-relative
8520 address.
8521 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
8522 GPR and loading a 128-bit floating point type to a GPR.
8523
8524 2019-09-30 Richard Biener <rguenther@suse.de>
8525
8526 * gimple.c (gimple_get_lhs): For PHIs return the result.
8527 * tree-vectorizer.h (vectorizable_live_operation): Also get the
8528 SLP instance as argument.
8529 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
8530 double-reduction PHIs with vectorizable_lc_phi.
8531 (vect_analyze_loop_operations): Adjust.
8532 (vect_create_epilog_for_reduction): Remove all code not dealing
8533 with reduction LC PHI or epilogue generation.
8534 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
8535 for live stmts of reductions.
8536 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
8537 do not handle defs that are not vect_internal_def.
8538 (can_vectorize_live_stmts): Adjust.
8539 (vect_analyze_stmt): When the vectorized stmt defined a value
8540 used on backedges adjust the backedge uses of vectorized PHIs.
8541
8542 2019-09-30 Martin Jambor <mjambor@suse.cz>
8543
8544 PR ipa/91853
8545 * tree-inline.c (force_value_to_type): New function.
8546 (setup_one_parameter): Use force_value_to_type to convert type.
8547 * tree-inline.c (force_value_to_type): Declare.
8548 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
8549 with register type mismatches.
8550
8551 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
8552
8553 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
8554 32-bit PowerPC.
8555 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
8556 * config/rs6000/t-freebsd64: Make use of the above define and build
8557 the 32-bit libraries with secure-plt.
8558
8559 2019-09-30 Jakub Jelinek <jakub@redhat.com>
8560
8561 PR target/91931
8562 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
8563 gen_int_mode instead of GEN_INT.
8564
8565 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
8566
8567 * config/darwin.c (gen_macho_low): Amend to include the mode
8568 argument.
8569 (machopic_indirect_data_reference): Amend gen_macho_low call
8570 to include mode argument
8571 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8572 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8573 the macho_high expander and two define_insn entries.
8574
8575 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8576
8577 PR bootstrap/90543
8578 * optc-save-gen.awk: Fix up printing string option differences.
8579
8580 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8581
8582 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8583 vec_perm cost to 1 for non-Power7 VSX architectures.
8584
8585 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8586
8587 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8588 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8589 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8590
8591 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8592
8593 * config/darwin.c (gen_macho_high): Amend to include the mode
8594 argument.
8595 (machopic_indirect_data_reference): Amend gen_macho_high call
8596 to include mode argument.
8597 (machopic_legitimize_pic_address): Likewise.
8598 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8599 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8600 the macho_high expander and two define_insn entries.
8601
8602 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8603
8604 PR target/86805
8605 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8606
8607 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8608
8609 PR target/80672
8610 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8611 std::string::compare instead of std::string::find.
8612
8613 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8614
8615 * configure: Regenerate.
8616
8617 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8618
8619 PR middle-end/91920
8620 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8621 variables as shared.
8622
8623 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8624
8625 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8626 replaces the expander and two define_insn entries.
8627 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8628 call.
8629 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8630
8631 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8632
8633 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8634 (fibonacci_heap::nodes): Likewise.
8635 (fibonacci_heap::min_key): Likewise.
8636 (fibonacci_heap::min): Likewise.
8637
8638 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8639
8640 * cgraph.c (cgraph_node::get_fun): Make const.
8641 * cgraph.h (cgraph_node::get_fun): Likewise.
8642
8643 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8644
8645 PR target/91919
8646 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8647 of SImode MULT.
8648
8649 2019-09-27 Richard Biener <rguenther@suse.de>
8650
8651 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8652 (STMT_VINFO_REDUC_FN): Likewise.
8653 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8654 STMT_VINFO_REDUC_FN.
8655 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8656 for condition reductions.
8657 (vect_create_epilog_for_reduction): Compute all required state
8658 from the stmt to be vectorized.
8659 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8660 invocation and remove then dead code. For single def-use chains
8661 record only a single vector stmt.
8662
8663 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8664
8665 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8666 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8667 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8668 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8669 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8670 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8671 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8672 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8673 (aarch64_general_builtin_rsqrt): Declare.
8674 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8675 New function.
8676 (aarch64_mangle_builtin_type): Rename to...
8677 (aarch64_general_mangle_builtin_type): ...this.
8678 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8679 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8680 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8681 aarch64_general_add_builtin instead of add_builtin_function.
8682 (aarch64_init_builtins): Rename to...
8683 (aarch64_general_init_builtins): ...this. Use
8684 aarch64_general_add_builtin instead of add_builtin_function.
8685 (aarch64_builtin_decl): Rename to...
8686 (aarch64_general_builtin_decl): ...this and remove the unused
8687 arguments.
8688 (aarch64_expand_builtin): Rename to...
8689 (aarch64_general_expand_builtin): ...this and remove the unused
8690 arguments.
8691 (aarch64_builtin_rsqrt): Rename to...
8692 (aarch64_general_builtin_rsqrt): ...this.
8693 (aarch64_fold_builtin): Rename to...
8694 (aarch64_general_fold_builtin): ...this. Take the function subcode
8695 and return type as arguments. Remove the "ignored" argument.
8696 (aarch64_gimple_fold_builtin): Rename to...
8697 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8698 subcode and gcall as arguments, and return the new function call.
8699 * config/aarch64/aarch64.c (aarch64_init_builtins)
8700 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8701 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8702 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8703 instead of aarch64_builtin_rsqrt.
8704 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8705 instead of aarch64_mangle_builtin_type.
8706
8707 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8708
8709 * target.def (check_builtin_call): New target hook.
8710 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8711 * doc/tm.texi: Regenerate.
8712
8713 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8714
8715 PR tree-optimization/91909
8716 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8717 reduc_index parameter. When handling COND_REDUCTION, make sure
8718 that the reduction phi operand is in the correct arm of the
8719 VEC_COND_EXPR.
8720 (vectorizable_reduction): Pass reduc_index to the above.
8721
8722 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8723
8724 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8725 New combine pattern.
8726
8727 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8728
8729 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8730 loop instruction into new basic block before the loop when basic
8731 block that precedes the loop is empty.
8732
8733 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8734
8735 * function.c (gimplify_parameters): Use build_clobber function.
8736 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8737 * tree-inline.c (expand_call_inline): Likewise.
8738 * tree-sra.c (clobber_subtree): Likewise.
8739 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8740 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8741 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8742 lower_omp_target): Likewise.
8743 * omp-expand.c (expand_omp_for_generic): Likewise.
8744 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8745
8746 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8747
8748 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8749 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8750 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8751 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8752 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8753 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8754 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8755 LD_ELEMREV_V16QI): Use the PURE attribute.
8756
8757 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8758
8759 * config/rs6000/darwin.md: Replace the expanders for
8760 load_macho_picbase and reload_macho_picbase with use of '@'
8761 and <mode> in their respective define_insns.
8762 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8763 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8764 Pmode to gen_load_macho_picbase.
8765 * config/rs6000/rs6000.md: Likewise.
8766
8767 2019-09-25 Richard Biener <rguenther@suse.de>
8768
8769 PR tree-optimization/91896
8770 * tree-vect-loop.c (vectorizable_reduction): The single
8771 def-use cycle optimization cannot apply when there's more
8772 than one pattern stmt involved.
8773
8774 2019-09-26 Richard Biener <rguenther@suse.de>
8775
8776 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8777 loop-closed PHIs that are vect_internal_def.
8778 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8779 Simplify.
8780 (vectorizable_lc_phi): New.
8781 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8782 (vect_transform_stmt): Likewise.
8783 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8784 (vectorizable_lc_phi): Declare.
8785
8786 2019-09-26 Richard Biener <rguenther@suse.de>
8787
8788 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8789 vectorizable_reduction for vect_double_reduction_def.
8790 (vect_transform_loop): Likewise.
8791 (vect_create_epilog_for_reduction): Move double-reduction
8792 PHI creation and preheader argument setting of PHIs ...
8793 (vectorizable_reduction): ... here. Also process
8794 vect_double_reduction_def PHIs, creating the vectorized
8795 PHI nodes, remembering the scalar adjustment computed for
8796 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8797 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8798 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8799 Initialize STMT_VINFO_REDUC_CODE.
8800 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8801 (_stmt_vec_info::reduc_code): Likewise.
8802 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8803 (STMT_VINFO_REDUC_CODE): Likewise.
8804
8805 2019-09-26 Matt Turner <mattst88@gmail.com>
8806
8807 PR driver/69471
8808 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8809 (mtune=): Add Negative(mtune=).
8810 (mcpu=): Add Negative(mcpu=).
8811 * config/arm/arm.opt: Likewise.
8812
8813 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8814
8815 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8816 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8817 Define.
8818 * config/arm/arm_acle.h: Define builtins for the above.
8819 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8820 (simd32_op): Handle the above.
8821 * config/arm/unspecs.md: Define unspecs for the above.
8822
8823 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8824
8825 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8826 (arm_<sup>xtb16): Likewise.
8827 (arm_usada8): Likewise.
8828 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8829 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8830 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8831 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8832 __sxtb16, __uxtab16, __uxtb16): Define.
8833 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8834 * config/arm/unspecs.md: Define unspecs for the above.
8835 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8836 (USXTB16): Likewise.
8837 (simd32_op): New int_attribute.
8838 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8839 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8840
8841 2019-09-26 Martin Jambor <mjambor@suse.cz>
8842
8843 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8844 internal_error.
8845
8846 2019-09-26 Martin Jambor <mjambor@suse.cz>
8847
8848 * ipa-sra.c (process_scan_results): Fix continue condition.
8849
8850 2019-09-26 Martin Liska <mliska@suse.cz>
8851
8852 PR tree-optimization/91885
8853 * tree-vectorizer.c (try_vectorize_loop_1): Add
8854 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8855
8856 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8857
8858 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8859 aarch64_plus_immediate rather than aarch64_uimm12_shift
8860 to test for valid PLUS immediates.
8861
8862 2019-09-25 Martin Jambor <mjambor@suse.cz>
8863
8864 * tree-sra.c (no_accesses_p): Remove.
8865 (no_accesses_representant): Likewise.
8866
8867 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8868
8869 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8870 consistenly.
8871 (vaba_s16): Likewise.
8872 (vaba_s32): Likewise.
8873 (vaba_u8): Likewise.
8874 (vaba_u16): Likewise.
8875 (vaba_u32): Likewise.
8876 (vabal_high_s8): Likewise.
8877 (vabal_high_s16): Likewise.
8878 (vabal_high_s32): Likewise.
8879 (vabal_high_u8): Likewise.
8880 (vabal_high_u16): Likewise.
8881 (vabal_high_u32): Likewise.
8882 (vabal_s8): Likewise.
8883 (vabal_s16): Likewise.
8884 (vabal_s32): Likewise.
8885 (vabal_u8): Likewise.
8886 (vabal_u16): Likewise.
8887 (vabal_u32): Likewise.
8888 (vabaq_s8): Likewise.
8889 (vabaq_s16): Likewise.
8890 (vabaq_s32): Likewise.
8891 (vabaq_u8): Likewise.
8892 (vabaq_u16): Likewise.
8893 (vabaq_u32): Likewise.
8894 (vabd_s8): Likewise.
8895 (vabd_s16): Likewise.
8896 (vabd_s32): Likewise.
8897 (vabd_u8): Likewise.
8898 (vabd_u16): Likewise.
8899 (vabd_u32): Likewise.
8900 (vabdl_high_s8): Likewise.
8901 (vabdl_high_s16): Likewise.
8902 (vabdl_high_s32): Likewise.
8903 (vabdl_high_u8): Likewise.
8904 (vabdl_high_u16): Likewise.
8905 (vabdl_high_u32): Likewise.
8906 (vabdl_s8): Likewise.
8907 (vabdl_s16): Likewise.
8908 (vabdl_s32): Likewise.
8909 (vabdl_u8): Likewise.
8910 (vabdl_u16): Likewise.
8911 (vabdl_u32): Likewise.
8912 (vabdq_s8): Likewise.
8913 (vabdq_s16): Likewise.
8914 (vabdq_s32): Likewise.
8915 (vabdq_u8): Likewise.
8916 (vabdq_u16): Likewise.
8917 (vabdq_u32): Likewise.
8918 (vaddlv_s8): Likewise.
8919 (vaddlv_s16): Likewise.
8920 (vaddlv_u8): Likewise.
8921 (vaddlv_u16): Likewise.
8922 (vaddlvq_s8): Likewise.
8923 (vaddlvq_s16): Likewise.
8924 (vaddlvq_s32): Likewise.
8925 (vaddlvq_u8): Likewise.
8926 (vaddlvq_u16): Likewise.
8927 (vaddlvq_u32): Likewise.
8928 (vcvtx_f32_f64): Likewise.
8929 (vcvtx_high_f32_f64): Likewise.
8930 (vcvtxd_f32_f64): Likewise.
8931 (vmla_n_f32): Likewise.
8932 (vmla_n_s16): Likewise.
8933 (vmla_n_s32): Likewise.
8934 (vmla_n_u16): Likewise.
8935 (vmla_n_u32): Likewise.
8936 (vmla_s8): Likewise.
8937 (vmla_s16): Likewise.
8938 (vmla_s32): Likewise.
8939 (vmla_u8): Likewise.
8940 (vmla_u16): Likewise.
8941 (vmla_u32): Likewise.
8942 (vmlal_high_n_s16): Likewise.
8943 (vmlal_high_n_s32): Likewise.
8944 (vmlal_high_n_u16): Likewise.
8945 (vmlal_high_n_u32): Likewise.
8946 (vmlal_high_s8): Likewise.
8947 (vmlal_high_s16): Likewise.
8948 (vmlal_high_s32): Likewise.
8949 (vmlal_high_u8): Likewise.
8950 (vmlal_high_u16): Likewise.
8951 (vmlal_high_u32): Likewise.
8952 (vmlal_n_s16): Likewise.
8953 (vmlal_n_s32): Likewise.
8954 (vmlal_n_u16): Likewise.
8955 (vmlal_n_u32): Likewise.
8956 (vmlal_s8): Likewise.
8957 (vmlal_s16): Likewise.
8958 (vmlal_s32): Likewise.
8959 (vmlal_u8): Likewise.
8960 (vmlal_u16): Likewise.
8961 (vmlal_u32): Likewise.
8962 (vmlaq_n_f32): Likewise.
8963 (vmlaq_n_s16): Likewise.
8964 (vmlaq_n_s32): Likewise.
8965 (vmlaq_n_u16): Likewise.
8966 (vmlaq_n_u32): Likewise.
8967 (vmlaq_s8): Likewise.
8968 (vmlaq_s16): Likewise.
8969 (vmlaq_s32): Likewise.
8970 (vmlaq_u8): Likewise.
8971 (vmlaq_u16): Likewise.
8972 (vmlaq_u32): Likewise.
8973 (vmls_n_f32): Likewise.
8974 (vmls_n_s16): Likewise.
8975 (vmls_n_s32): Likewise.
8976 (vmls_n_u16): Likewise.
8977 (vmls_n_u32): Likewise.
8978 (vmls_s8): Likewise.
8979 (vmls_s16): Likewise.
8980 (vmls_s32): Likewise.
8981 (vmls_u8): Likewise.
8982 (vmls_u16): Likewise.
8983 (vmls_u32): Likewise.
8984 (vmlsl_high_n_s16): Likewise.
8985 (vmlsl_high_n_s32): Likewise.
8986 (vmlsl_high_n_u16): Likewise.
8987 (vmlsl_high_n_u32): Likewise.
8988 (vmlsl_high_s8): Likewise.
8989 (vmlsl_high_s16): Likewise.
8990 (vmlsl_high_s32): Likewise.
8991 (vmlsl_high_u8): Likewise.
8992 (vmlsl_high_u16): Likewise.
8993 (vmlsl_high_u32): Likewise.
8994 (vmlsl_n_s16): Likewise.
8995 (vmlsl_n_s32): Likewise.
8996 (vmlsl_n_u16): Likewise.
8997 (vmlsl_n_u32): Likewise.
8998 (vmlsl_s8): Likewise.
8999 (vmlsl_s16): Likewise.
9000 (vmlsl_s32): Likewise.
9001 (vmlsl_u8): Likewise.
9002 (vmlsl_u16): Likewise.
9003 (vmlsl_u32): Likewise.
9004 (vmlsq_n_f32): Likewise.
9005 (vmlsq_n_s16): Likewise.
9006 (vmlsq_n_s32): Likewise.
9007 (vmlsq_n_u16): Likewise.
9008 (vmlsq_n_u32): Likewise.
9009 (vmlsq_s8): Likewise.
9010 (vmlsq_s16): Likewise.
9011 (vmlsq_s32): Likewise.
9012 (vmlsq_u8): Likewise.
9013 (vmlsq_u16): Likewise.
9014 (vmlsq_u32): Likewise.
9015 (vmovl_high_s8): Likewise.
9016 (vmovl_high_s16): Likewise.
9017 (vmovl_high_s32): Likewise.
9018 (vmovl_high_u8): Likewise.
9019 (vmovl_high_u16): Likewise.
9020 (vmovl_high_u32): Likewise.
9021 (vmovl_s8): Likewise.
9022 (vmovl_s16): Likewise.
9023 (vmovl_s32): Likewise.
9024 (vmovl_u8): Likewise.
9025 (vmovl_u16): Likewise.
9026 (vmovl_u32): Likewise.
9027 (vmovn_high_s16): Likewise.
9028 (vmovn_high_s32): Likewise.
9029 (vmovn_high_s64): Likewise.
9030 (vmovn_high_u16): Likewise.
9031 (vmovn_high_u32): Likewise.
9032 (vmovn_high_u64): Likewise.
9033 (vmovn_s16): Likewise.
9034 (vmovn_s32): Likewise.
9035 (vmovn_s64): Likewise.
9036 (vmovn_u16): Likewise.
9037 (vmovn_u32): Likewise.
9038 (vmovn_u64): Likewise.
9039 (vmull_high_n_s16): Likewise.
9040 (vmull_high_n_s32): Likewise.
9041 (vmull_high_n_u16): Likewise.
9042 (vmull_high_n_u32): Likewise.
9043 (vmull_high_p8): Likewise.
9044 (vmull_high_s8): Likewise.
9045 (vmull_high_s16): Likewise.
9046 (vmull_high_s32): Likewise.
9047 (vmull_high_u8): Likewise.
9048 (vmull_high_u16): Likewise.
9049 (vmull_high_u32): Likewise.
9050 (vmull_n_s16): Likewise.
9051 (vmull_n_s32): Likewise.
9052 (vmull_n_u16): Likewise.
9053 (vmull_n_u32): Likewise.
9054 (vmull_p8): Likewise.
9055 (vmull_s8): Likewise.
9056 (vmull_s16): Likewise.
9057 (vmull_s32): Likewise.
9058 (vmull_u8): Likewise.
9059 (vmull_u16): Likewise.
9060 (vmull_u32): Likewise.
9061 (vpadal_s8): Likewise.
9062 (vpadal_s16): Likewise.
9063 (vpadal_s32): Likewise.
9064 (vpadal_u8): Likewise.
9065 (vpadal_u16): Likewise.
9066 (vpadal_u32): Likewise.
9067 (vpadalq_s8): Likewise.
9068 (vpadalq_s16): Likewise.
9069 (vpadalq_s32): Likewise.
9070 (vpadalq_u8): Likewise.
9071 (vpadalq_u16): Likewise.
9072 (vpadalq_u32): Likewise.
9073 (vpaddl_s8): Likewise.
9074 (vpaddl_s16): Likewise.
9075 (vpaddl_s32): Likewise.
9076 (vpaddl_u8): Likewise.
9077 (vpaddl_u16): Likewise.
9078 (vpaddl_u32): Likewise.
9079 (vpaddlq_s8): Likewise.
9080 (vpaddlq_s16): Likewise.
9081 (vpaddlq_s32): Likewise.
9082 (vpaddlq_u8): Likewise.
9083 (vpaddlq_u16): Likewise.
9084 (vpaddlq_u32): Likewise.
9085 (vpaddq_s8): Likewise.
9086 (vpaddq_s16): Likewise.
9087 (vpaddq_s32): Likewise.
9088 (vpaddq_s64): Likewise.
9089 (vpaddq_u8): Likewise.
9090 (vpaddq_u16): Likewise.
9091 (vpaddq_u32): Likewise.
9092 (vpaddq_u64): Likewise.
9093 (vqdmulh_n_s16): Likewise.
9094 (vqdmulh_n_s32): Likewise.
9095 (vqdmulhq_n_s16): Likewise.
9096 (vqdmulhq_n_s32): Likewise.
9097 (vqmovn_high_s16): Likewise.
9098 (vqmovn_high_s32): Likewise.
9099 (vqmovn_high_s64): Likewise.
9100 (vqmovn_high_u16): Likewise.
9101 (vqmovn_high_u32): Likewise.
9102 (vqmovn_high_u64): Likewise.
9103 (vqmovun_high_s16): Likewise.
9104 (vqmovun_high_s32): Likewise.
9105 (vqmovun_high_s64): Likewise.
9106 (vqrdmulh_n_s16): Likewise.
9107 (vqrdmulh_n_s32): Likewise.
9108 (vqrdmulhq_n_s16): Likewise.
9109 (vqrdmulhq_n_s32): Likewise.
9110 (vrsqrte_u32): Likewise.
9111 (vrsqrteq_u32): Likewise.
9112 (vtst_p8): Likewise.
9113 (vtst_p16): Likewise.
9114 (vtst_p64): Likewise.
9115 (vtstq_p8): Likewise.
9116 (vtstq_p16): Likewise.
9117 (vtstq_p64): Likewise.
9118 (vaddlv_s32): Likewise.
9119 (vaddlv_u32): Likewise.
9120 (vqtbl1_p8): Likewise.
9121 (vqtbl1_s8): Likewise.
9122 (vqtbl1_u8): Likewise.
9123 (vqtbl1q_p8): Likewise.
9124 (vqtbl1q_s8): Likewise.
9125 (vqtbl1q_u8): Likewise.
9126 (vqtbx1_s8): Likewise.
9127 (vqtbx1_u8): Likewise.
9128 (vqtbx1_p8): Likewise.
9129 (vqtbx1q_s8): Likewise.
9130 (vqtbx1q_u8): Likewise.
9131 (vqtbx1q_p8): Likewise.
9132 (vtbl1_s8): Likewise.
9133 (vtbl1_u8): Likewise.
9134 (vtbl1_p8): Likewise.
9135 (vtbl2_s8): Likewise.
9136 (vtbl2_u8): Likewise.
9137 (vtbl2_p8): Likewise.
9138 (vtbl3_s8): Likewise.
9139 (vtbl3_u8): Likewise.
9140 (vtbl3_p8): Likewise.
9141 (vtbl4_s8): Likewise.
9142 (vtbl4_u8): Likewise.
9143 (vtbl4_p8): Likewise.
9144 (vtbx2_s8): Likewise.
9145 (vtbx2_u8): Likewise.
9146 (vtbx2_p8): Likewise.
9147 (vld1_f32): Likewise.
9148 (vld1_f64): Likewise.
9149 (vld1_p8): Likewise.
9150 (vld1_p16): Likewise.
9151 (vld1_p64): Likewise.
9152 (vld1_s8): Likewise.
9153 (vld1_s16): Likewise.
9154 (vld1_s32): Likewise.
9155 (vld1_s64): Likewise.
9156 (vld1_u8): Likewise.
9157 (vld1_u16): Likewise.
9158 (vld1_u32): Likewise.
9159 (vld1_u64): Likewise.
9160 (vld1q_f32): Likewise.
9161 (vld1q_f64): Likewise.
9162 (vld1q_p8): Likewise.
9163 (vld1q_p16): Likewise.
9164 (vld1q_p64): Likewise.
9165 (vld1q_s8): Likewise.
9166 (vld1q_s16): Likewise.
9167 (vld1q_s32): Likewise.
9168 (vld1q_s64): Likewise.
9169 (vld1q_u8): Likewise.
9170 (vld1q_u16): Likewise.
9171 (vld1q_u32): Likewise.
9172 (vld1q_u64): Likewise.
9173 (vpmax_s8): Likewise.
9174 (vpmax_s16): Likewise.
9175 (vpmax_s32): Likewise.
9176 (vpmax_u8): Likewise.
9177 (vpmax_u16): Likewise.
9178 (vpmax_u32): Likewise.
9179 (vpmaxq_s8): Likewise.
9180 (vpmaxq_s16): Likewise.
9181 (vpmaxq_s32): Likewise.
9182 (vpmaxq_u8): Likewise.
9183 (vpmaxq_u16): Likewise.
9184 (vpmaxq_u32): Likewise.
9185 (vpmax_f32): Likewise.
9186 (vpmaxq_f32): Likewise.
9187 (vpmaxq_f64): Likewise.
9188 (vpmaxqd_f64): Likewise.
9189 (vpmaxs_f32): Likewise.
9190 (vpmaxnm_f32): Likewise.
9191 (vpmaxnmq_f32): Likewise.
9192 (vpmaxnmq_f64): Likewise.
9193 (vpmaxnmqd_f64): Likewise.
9194 (vpmaxnms_f32): Likewise.
9195 (vpmin_s8): Likewise.
9196 (vpmin_s16): Likewise.
9197 (vpmin_s32): Likewise.
9198 (vpmin_u8): Likewise.
9199 (vpmin_u16): Likewise.
9200 (vpmin_u32): Likewise.
9201 (vpminq_s8): Likewise.
9202 (vpminq_s16): Likewise.
9203 (vpminq_s32): Likewise.
9204 (vpminq_u8): Likewise.
9205 (vpminq_u16): Likewise.
9206 (vpminq_u32): Likewise.
9207 (vpmin_f32): Likewise.
9208 (vpminq_f32): Likewise.
9209 (vpminq_f64): Likewise.
9210 (vpminqd_f64): Likewise.
9211 (vpmins_f32): Likewise.
9212 (vpminnm_f32): Likewise.
9213 (vpminnmq_f32): Likewise.
9214 (vpminnmq_f64): Likewise.
9215 (vpminnmqd_f64): Likewise.
9216 (vpminnms_f32): Likewise.
9217 (vmla_f32): Likewise.
9218 (vmlaq_f32): Likewise.
9219 (vmlaq_f64): Likewise.
9220 (vmls_f32): Likewise.
9221 (vmlsq_f32): Likewise.
9222 (vmlsq_f64): Likewise.
9223 (vqtbl2_s8): Likewise.
9224 (vqtbl2_u8): Likewise.
9225 (vqtbl2_p8): Likewise.
9226 (vqtbl2q_s8): Likewise.
9227 (vqtbl2q_u8): Likewise.
9228 (vqtbl2q_p8): Likewise.
9229 (vqtbl3_s8): Likewise.
9230 (vqtbl3_u8): Likewise.
9231 (vqtbl3_p8): Likewise.
9232 (vqtbl3q_s8): Likewise.
9233 (vqtbl3q_u8): Likewise.
9234 (vqtbl3q_p8): Likewise.
9235 (vqtbl4_s8): Likewise.
9236 (vqtbl4_u8): Likewise.
9237 (vqtbl4_p8): Likewise.
9238 (vqtbl4q_s8): Likewise.
9239 (vqtbl4q_u8): Likewise.
9240 (vqtbl4q_p8): Likewise.
9241 (vqtbx2_s8): Likewise.
9242 (vqtbx2_u8): Likewise.
9243 (vqtbx2_p8): Likewise.
9244 (vqtbx2q_s8): Likewise.
9245 (vqtbx2q_u8): Likewise.
9246 (vqtbx2q_p8): Likewise.
9247 (vqtbx3_s8): Likewise.
9248 (vqtbx3_u8): Likewise.
9249 (vqtbx3_p8): Likewise.
9250 (vqtbx3q_s8): Likewise.
9251 (vqtbx3q_u8): Likewise.
9252 (vqtbx3q_p8): Likewise.
9253 (vqtbx4_s8): Likewise.
9254 (vqtbx4_u8): Likewise.
9255 (vqtbx4_p8): Likewise.
9256 (vqtbx4q_s8): Likewise.
9257 (vqtbx4q_u8): Likewise.
9258 (vqtbx4q_p8): Likewise.
9259 (vrev16_p8): Likewise.
9260 (vrev16_s8): Likewise.
9261 (vrev16_u8): Likewise.
9262 (vrev16q_p8): Likewise.
9263 (vrev16q_s8): Likewise.
9264 (vrev16q_u8): Likewise.
9265 (vrev32_p8): Likewise.
9266 (vrev32_p16): Likewise.
9267 (vrev32_s8): Likewise.
9268 (vrev32_s16): Likewise.
9269 (vrev32_u8): Likewise.
9270 (vrev32_u16): Likewise.
9271 (vrev32q_p8): Likewise.
9272 (vrev32q_p16): Likewise.
9273 (vrev32q_s8): Likewise.
9274 (vrev32q_s16): Likewise.
9275 (vrev32q_u8): Likewise.
9276 (vrev32q_u16): Likewise.
9277 (vrev64_f32): Likewise.
9278 (vrev64_p8): Likewise.
9279 (vrev64_p16): Likewise.
9280 (vrev64_s8): Likewise.
9281 (vrev64_s16): Likewise.
9282 (vrev64_s32): Likewise.
9283 (vrev64_u8): Likewise.
9284 (vrev64_u16): Likewise.
9285 (vrev64_u32): Likewise.
9286 (vrev64q_f32): Likewise.
9287 (vrev64q_p8): Likewise.
9288 (vrev64q_p16): Likewise.
9289 (vrev64q_s8): Likewise.
9290 (vrev64q_s16): Likewise.
9291 (vrev64q_s32): Likewise.
9292 (vrev64q_u8): Likewise.
9293 (vrev64q_u16): Likewise.
9294 (vrev64q_u32): Likewise.
9295 (vsha1cq_u32): Likewise.
9296 (vsha1mq_u32): Likewise.
9297 (vsha1pq_u32): Likewise.
9298 (vsha1h_u32): Likewise.
9299 (vsha1su0q_u32): Likewise.
9300 (vsha1su1q_u32): Likewise.
9301 (vsha256hq_u32): Likewise.
9302 (vsha256h2q_u32): Likewise.
9303 (vsha256su0q_u32): Likewise.
9304 (vsha256su1q_u32): Likewise.
9305 (vmull_p64): Likewise.
9306 (vmull_high_p64): Likewise.
9307 (vsqrt_f32): Likewise.
9308 (vsqrtq_f32): Likewise.
9309 (vsqrt_f64): Likewise.
9310 (vsqrtq_f64): Likewise.
9311 (vst1_f32): Likewise.
9312 (vst1_f64): Likewise.
9313 (vst1_p8): Likewise.
9314 (vst1_p16): Likewise.
9315 (vst1_p64): Likewise.
9316 (vst1_s8): Likewise.
9317 (vst1_s16): Likewise.
9318 (vst1_s32): Likewise.
9319 (vst1_s64): Likewise.
9320 (vst1_u8): Likewise.
9321 (vst1_u16): Likewise.
9322 (vst1_u32): Likewise.
9323 (vst1_u64): Likewise.
9324 (vst1q_f32): Likewise.
9325 (vst1q_f64): Likewise.
9326 (vst1q_p8): Likewise.
9327 (vst1q_p16): Likewise.
9328 (vst1q_p64): Likewise.
9329 (vst1q_s8): Likewise.
9330 (vst1q_s16): Likewise.
9331 (vst1q_s32): Likewise.
9332 (vst1q_s64): Likewise.
9333 (vst1q_u8): Likewise.
9334 (vst1q_u16): Likewise.
9335 (vst1q_u32): Likewise.
9336 (vst1q_u64): Likewise.
9337 (vst1_s64_x2): Likewise.
9338 (vst1_u64_x2): Likewise.
9339 (vst1_f64_x2): Likewise.
9340 (vst1_s8_x2): Likewise.
9341 (vst1_p8_x2): Likewise.
9342 (vst1_s16_x2): Likewise.
9343 (vst1_p16_x2): Likewise.
9344 (vst1_s32_x2): Likewise.
9345 (vst1_u8_x2): Likewise.
9346 (vst1_u16_x2): Likewise.
9347 (vst1_u32_x2): Likewise.
9348 (vst1_f16_x2): Likewise.
9349 (vst1_f32_x2): Likewise.
9350 (vst1_p64_x2): Likewise.
9351 (vst1q_s8_x2): Likewise.
9352 (vst1q_p8_x2): Likewise.
9353 (vst1q_s16_x2): Likewise.
9354 (vst1q_p16_x2): Likewise.
9355 (vst1q_s32_x2): Likewise.
9356 (vst1q_s64_x2): Likewise.
9357 (vst1q_u8_x2): Likewise.
9358 (vst1q_u16_x2): Likewise.
9359 (vst1q_u32_x2): Likewise.
9360 (vst1q_u64_x2): Likewise.
9361 (vst1q_f16_x2): Likewise.
9362 (vst1q_f32_x2): Likewise.
9363 (vst1q_f64_x2): Likewise.
9364 (vst1q_p64_x2): Likewise.
9365 (vst1_s64_x3): Likewise.
9366 (vst1_u64_x3): Likewise.
9367 (vst1_f64_x3): Likewise.
9368 (vst1_s8_x3): Likewise.
9369 (vst1_p8_x3): Likewise.
9370 (vst1_s16_x3): Likewise.
9371 (vst1_p16_x3): Likewise.
9372 (vst1_s32_x3): Likewise.
9373 (vst1_u8_x3): Likewise.
9374 (vst1_u16_x3): Likewise.
9375 (vst1_u32_x3): Likewise.
9376 (vst1_f16_x3): Likewise.
9377 (vst1_f32_x3): Likewise.
9378 (vst1_p64_x3): Likewise.
9379 (vst1q_s8_x3): Likewise.
9380 (vst1q_p8_x3): Likewise.
9381 (vst1q_s16_x3): Likewise.
9382 (vst1q_p16_x3): Likewise.
9383 (vst1q_s32_x3): Likewise.
9384 (vst1q_s64_x3): Likewise.
9385 (vst1q_u8_x3): Likewise.
9386 (vst1q_u16_x3): Likewise.
9387 (vst1q_u32_x3): Likewise.
9388 (vst1q_u64_x3): Likewise.
9389 (vst1q_f16_x3): Likewise.
9390 (vst1q_f32_x3): Likewise.
9391 (vst1q_f64_x3): Likewise.
9392 (vst1q_p64_x3): Likewise.
9393 (vst2_s64): Likewise.
9394 (vst2_u64): Likewise.
9395 (vst2_f64): Likewise.
9396 (vst2_s8): Likewise.
9397 (vst2_p8): Likewise.
9398 (vst2_s16): Likewise.
9399 (vst2_p16): Likewise.
9400 (vst2_s32): Likewise.
9401 (vst2_u8): Likewise.
9402 (vst2_u16): Likewise.
9403 (vst2_u32): Likewise.
9404 (vst2_f16): Likewise.
9405 (vst2_f32): Likewise.
9406 (vst2_p64): Likewise.
9407 (vst2q_s8): Likewise.
9408 (vst2q_p8): Likewise.
9409 (vst2q_s16): Likewise.
9410 (vst2q_p16): Likewise.
9411 (vst2q_s32): Likewise.
9412 (vst2q_s64): Likewise.
9413 (vst2q_u8): Likewise.
9414 (vst2q_u16): Likewise.
9415 (vst2q_u32): Likewise.
9416 (vst2q_u64): Likewise.
9417 (vst2q_f16): Likewise.
9418 (vst2q_f32): Likewise.
9419 (vst2q_f64): Likewise.
9420 (vst2q_p64): Likewise.
9421 (vst3_s64): Likewise.
9422 (vst3_u64): Likewise.
9423 (vst3_f64): Likewise.
9424 (vst3_s8): Likewise.
9425 (vst3_p8): Likewise.
9426 (vst3_s16): Likewise.
9427 (vst3_p16): Likewise.
9428 (vst3_s32): Likewise.
9429 (vst3_u8): Likewise.
9430 (vst3_u16): Likewise.
9431 (vst3_u32): Likewise.
9432 (vst3_f16): Likewise.
9433 (vst3_f32): Likewise.
9434 (vst3_p64): Likewise.
9435 (vst3q_s8): Likewise.
9436 (vst3q_p8): Likewise.
9437 (vst3q_s16): Likewise.
9438 (vst3q_p16): Likewise.
9439 (vst3q_s32): Likewise.
9440 (vst3q_s64): Likewise.
9441 (vst3q_u8): Likewise.
9442 (vst3q_u16): Likewise.
9443 (vst3q_u32): Likewise.
9444 (vst3q_u64): Likewise.
9445 (vst3q_f16): Likewise.
9446 (vst3q_f32): Likewise.
9447 (vst3q_f64): Likewise.
9448 (vst3q_p64): Likewise.
9449 (vst4_s64): Likewise.
9450 (vst4_u64): Likewise.
9451 (vst4_f64): Likewise.
9452 (vst4_s8): Likewise.
9453 (vst4_p8): Likewise.
9454 (vst4_s16): Likewise.
9455 (vst4_p16): Likewise.
9456 (vst4_s32): Likewise.
9457 (vst4_u8): Likewise.
9458 (vst4_u16): Likewise.
9459 (vst4_u32): Likewise.
9460 (vst4_f16): Likewise.
9461 (vst4_f32): Likewise.
9462 (vst4_p64): Likewise.
9463 (vst4q_s8): Likewise.
9464 (vst4q_p8): Likewise.
9465 (vst4q_s16): Likewise.
9466 (vst4q_p16): Likewise.
9467 (vst4q_s32): Likewise.
9468 (vst4q_s64): Likewise.
9469 (vst4q_u8): Likewise.
9470 (vst4q_u16): Likewise.
9471 (vst4q_u32): Likewise.
9472 (vst4q_u64): Likewise.
9473 (vst4q_f16): Likewise.
9474 (vst4q_f32): Likewise.
9475 (vst4q_f64): Likewise.
9476 (vst4q_p64): Likewise.
9477 (vtbx4_s8): Likewise.
9478 (vtbx4_u8): Likewise.
9479 (vtbx4_p8): Likewise.
9480 (vtrn_f32): Likewise.
9481 (vtrn_p8): Likewise.
9482 (vtrn_p16): Likewise.
9483 (vtrn_s8): Likewise.
9484 (vtrn_s16): Likewise.
9485 (vtrn_s32): Likewise.
9486 (vtrn_u8): Likewise.
9487 (vtrn_u16): Likewise.
9488 (vtrn_u32): Likewise.
9489 (vtrnq_f32): Likewise.
9490 (vtrnq_p8): Likewise.
9491 (vtrnq_p16): Likewise.
9492 (vtrnq_s8): Likewise.
9493 (vtrnq_s16): Likewise.
9494 (vtrnq_s32): Likewise.
9495 (vtrnq_u8): Likewise.
9496 (vtrnq_u16): Likewise.
9497 (vtrnq_u32): Likewise.
9498 (vrsqrte_f16): Likewise.
9499 (vrsqrteq_f16): Likewise.
9500 (vsqrt_f16): Likewise.
9501 (vsqrtq_f16): Likewise.
9502 (vabd_f16): Likewise.
9503 (vabdq_f16): Likewise.
9504 (vpadd_f16): Likewise.
9505 (vpaddq_f16): Likewise.
9506 (vpmax_f16): Likewise.
9507 (vpmaxq_f16): Likewise.
9508 (vpmaxnm_f16): Likewise.
9509 (vpmaxnmq_f16): Likewise.
9510 (vpmin_f16): Likewise.
9511 (vpminq_f16): Likewise.
9512 (vpminnm_f16): Likewise.
9513 (vpminnmq_f16): Likewise.
9514 (vrsqrts_f16): Likewise.
9515 (vrsqrtsq_f16): Likewise.
9516
9517 2019-09-25 Richard Biener <rguenther@suse.de>
9518
9519 PR tree-optimization/91896
9520 * tree-vect-loop.c (vectorizable_reduction): The single
9521 def-use cycle optimization cannot apply when there's more
9522 than one pattern stmt involved.
9523
9524 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9525
9526 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
9527 the 'P' mode iterator, replacing the (removed) SI and DI variants.
9528 (reload_macho_picbase_<mode>): Likewise.
9529
9530 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9531
9532 * config/rs6000/rs6000.md: Move darwin.md include until
9533 after the definition of the mode iterators.
9534
9535 2019-09-23 Martin Sebor <msebor@redhat.com>
9536
9537 PR tree-optimization/91570
9538 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
9539 non-constant minlen, maxlen and maxbound.
9540
9541 2019-09-24 Richard Biener <rguenther@suse.de>
9542
9543 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
9544 Rename to...
9545 (_stmt_vec_info::cond_reduc_code): ... this.
9546 (_stmt_vec_info::induc_cond_initial_val): Add.
9547 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
9548 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
9549 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
9550 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
9551 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
9552 the reduction code.
9553 (vect_create_epilog_for_reduction): Drop special
9554 induction condition reduction params, pass in reduction code
9555 and simplify.
9556 (vectorizable_reduction): Perform condition reduction kind
9557 selection only at analysis time. Adjust passing on state.
9558
9559 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9560
9561 * config/aarch64/aarch64.md (mov<mode>): Don't call
9562 aarch64_split_dimode_const_store on volatile MEM.
9563
9564 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
9565
9566 * config/aarch64/aarch64-option-extensions.def (fp16fml):
9567 Update hwcap string for fp16fml.
9568
9569 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9570
9571 PR middle-end/91866
9572 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9573 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9574
9575 2019-09-24 Martin Liska <mliska@suse.cz>
9576
9577 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9578 instead of if-elseif-elseif-...
9579 * gimple-expr.c (extract_ops_from_tree): Likewise.
9580 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9581 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9582
9583 2019-09-24 Martin Jambor <mjambor@suse.cz>
9584
9585 PR ipa/91831
9586 * ipa-param-manipulation.c (carry_over_param): Make a method of
9587 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9588 in case of a context mismatch.
9589 (ipa_param_body_adjustments::common_initialization): Adjust call to
9590 carry_over_param.
9591 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9592 private method carry_over_param.
9593
9594 2019-09-24 Martin Jambor <mjambor@suse.cz>
9595
9596 PR ipa/91832
9597 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9598
9599 2019-09-24 Richard Biener <rguenther@suse.de>
9600
9601 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9602 base.
9603
9604 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9605
9606 * config/arm/t-arm (arm-builtins.o): Add dependency on
9607 arm_acle_builtins.def.
9608
9609 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9610
9611 PR target/91823
9612 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9613 canonical CONST_INTs. Use gen_rtvec.
9614
9615 2019-09-23 Richard Biener <rguenther@suse.de>
9616
9617 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9618 avoid adjusting by + 0 or * 1.
9619 (vect_create_epilog_for_reduction): Get reduction code only
9620 when necessary. Deal with adjustment_def only when necessary.
9621
9622 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9623
9624 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9625 memmodel index.
9626
9627 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9628
9629 PR ipa/91835
9630 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9631 "ipa-sra".
9632
9633 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9634
9635 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9636 code. Merge code blocks with common conditionals. Use declared
9637 macro instead of a magic number for PIC level.
9638
9639 2019-09-21 Martin Sebor <msebor@redhat.com>
9640
9641 PR middle-end/91830
9642 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9643 Simplify computation of the offset of the referenced subobject.
9644
9645 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9646
9647 * config/darwin.c (machopic_legitimize_pic_address): Check
9648 for lra not reload.
9649
9650 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9651
9652 * ira-conflicts.c (can_use_same_reg_p): New function.
9653 (process_reg_shuffles): Take an insn parameter. Ignore cases
9654 in which input operand op_num could seemingly never be allocated
9655 to the same register as the destination.
9656 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9657
9658 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9659
9660 * simplify-rtx.c (neg_const_int): Replace with...
9661 (neg_poly_int_rtx): ...this new function.
9662 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9663 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9664 (simplify_plus_minus): Likewise for constant terms here.
9665
9666 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9667
9668 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9669 HOST_WIDE_PRINT_UNSIGNED.
9670
9671 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9672
9673 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9674 character.
9675
9676 2019-09-20 Maya Rashish <coypu@sdf.org>
9677
9678 PR target/86811
9679 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9680 Define to speculation_safe_value_not_needed.
9681
9682 2019-09-20 Richard Biener <rguenther@suse.de>
9683 Uros Bizjak <ubizjak@gmail.com>
9684
9685 PR target/91814
9686 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9687 previous change.
9688 (general_scalar_chain::convert_op): Force not suitable memory
9689 operands to a register.
9690
9691 2019-09-20 Richard Biener <rguenther@suse.de>
9692
9693 PR tree-optimization/91821
9694 * tree-vect-loop.c (check_reduction_path): Check we can compute
9695 reduc_idx.
9696 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9697 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9698 operands in canonical order.
9699 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9700 STMT_VINFO_REDUC_IDX.
9701 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9702 (STMT_VINFO_REDUC_IDX): Likewise.
9703
9704 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9705
9706 PR target/91269
9707 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9708
9709 2019-09-20 Richard Biener <rguenther@suse.de>
9710
9711 PR tree-optimization/91822
9712 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9713 parameter.
9714 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9715 for reduc_index in nested cycles, adjust vectorizable_condition
9716 calls.
9717 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9718 parameter.
9719 (vect_analyze_stmt): Adjust.
9720 (vect_transform_stmt): Likewise.
9721
9722 2019-09-20 Richard Biener <rguenther@suse.de>
9723
9724 PR target/91767
9725 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9726 Ensure there's a sequence point between allocating the new register
9727 and passing a reference to a reg via regno_reg_rtx.
9728
9729 2019-09-20 Martin Jambor <mjambor@suse.cz>
9730
9731 * coretypes.h (cgraph_edge): Declare.
9732 * ipa-param-manipulation.c: Rewrite.
9733 * ipa-param-manipulation.h: Likewise.
9734 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9735 (OBJS): Added ipa-sra.o.
9736 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9737 and ref_p, added fields param_adjustments and performed_splits.
9738 (struct cgraph_clone_info): Remove ags_to_skip and
9739 combined_args_to_skip, new field param_adjustments.
9740 (cgraph_node::create_clone): Changed parameters to use
9741 ipa_param_adjustments.
9742 (cgraph_node::create_virtual_clone): Likewise.
9743 (cgraph_node::create_virtual_clone_with_body): Likewise.
9744 (tree_function_versioning): Likewise.
9745 (cgraph_build_function_type_skip_args): Removed.
9746 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9747 using ipa_param_adjustments.
9748 (clone_of_p): Likewise.
9749 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9750 (build_function_decl_skip_args): Likewise.
9751 (duplicate_thunk_for_node): Adjust parameters using
9752 ipa_param_body_adjustments, copy param_adjustments instead of
9753 args_to_skip.
9754 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9755 (cgraph_node::create_virtual_clone): Likewise.
9756 (cgraph_node::create_version_clone_with_body): Likewise.
9757 (cgraph_materialize_clone): Likewise.
9758 (symbol_table::materialize_all_clones): Likewise.
9759 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9760 ipa_replace_map check.
9761 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9762 (initialize_node_lattices): Make aware that some parameters might have
9763 already been removed.
9764 (want_remove_some_param_p): New function.
9765 (create_specialized_node): Convert to using ipa_param_adjustments and
9766 deal with possibly pre-existing adjustments.
9767 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9768 (output_node_opt_summary): Do not stream removed fields. Stream
9769 parameter adjustments instead of argumetns to skip.
9770 (input_node_opt_summary): Likewise.
9771 (input_node_opt_summary): Likewise.
9772 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9773 * lto-streamer.h (lto_section_type): Likewise.
9774 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9775 param_body_adjs.
9776 (copy_decl_to_var): Declare.
9777 * tree-inline.c (update_clone_info): Do not remap old_tree.
9778 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9779 statements, walk all extra generated statements and remap their
9780 operands.
9781 (redirect_all_calls): Add killed SSA names to a hash set.
9782 (remap_ssa_name): Do not remap killed SSA names.
9783 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9784 half of functionality moved to ipa_param_body_adjustments.
9785 (copy_decl_to_var): Make exported.
9786 (copy_body): Destroy killed_new_ssa_names hash set.
9787 (expand_call_inline): Remap performed splits.
9788 (update_clone_info): Likewise.
9789 (tree_function_versioning): Simplify tree_map processing. Updated to
9790 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9791 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9792 for the new interface.
9793 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9794 (simd_clone_compute_base_data_type): Likewise.
9795 (simd_clone_init_simd_arrays): Adjust for the new interface.
9796 (simd_clone_adjust_argument_types): Likewise.
9797 (struct modify_stmt_info): Likewise.
9798 (ipa_simd_modify_stmt_ops): Likewise.
9799 (ipa_simd_modify_function_body): Likewise.
9800 (simd_clone_adjust): Likewise.
9801 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9802 (type_internals_preclude_sra_p): Make public.
9803 * tree-sra.h: New file.
9804 * ipa-inline-transform.c (save_inline_function_body): Update to
9805 refelct new tree_function_versioning signature.
9806 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9807 ipa_param_adjustments to get current parameter indices.
9808 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9809 (ipcp_update_bits): Likewise.
9810 (ipcp_update_vr): Likewise.
9811 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9812 * ipa-sra.c: New file.
9813 * multiple_target.c (create_target_clone): Update to reflet new type
9814 of create_version_clone_with_body.
9815 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9816 tree_function_versioning.
9817 (modify_function): Update to reflect new type of
9818 tree_function_versioning.
9819 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9820 * passes.def: Remove old IPA-SRA and add new one.
9821 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9822 (make_pass_ipa_sra): Declare.
9823 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9824 ipa_sra_retvalues.
9825 * doc/invoke.texi (ipa-sra-max-replacements): New.
9826
9827 2019-09-19 Martin Sebor <msebor@redhat.com>
9828
9829 PR middle-end/91631
9830 * builtins.c (component_size): Correct trailing array computation,
9831 rename to component_ref_size and move...
9832 (compute_objsize): Adjust.
9833 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9834 (builtin_access::strict): Do not consider memmove.
9835 (builtin_access::write_off): New function.
9836 (builtin_memref::builtin_memref): Initialize refsize.
9837 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9838 refsize.
9839 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9840 Handle refsize.
9841 (builtin_access::builtin_access): Initialize dstoff to destination
9842 refeence offset here instead of in maybe_diag_overlap. Adjust
9843 referencess even to unrelated objects. Adjust sizrange of bounded
9844 string functions to reflect bound. For strcat, adjust destination
9845 sizrange by that of source.
9846 (builtin_access::strcat_overlap): Adjust offsets and sizes
9847 to reflect the increase in destination sizrange above.
9848 (builtin_access::overlap): Do not set dstoff here but instead
9849 in builtin_access::builtin_access.
9850 (check_bounds_or_overlap): Use builtin_access::write_off.
9851 (maybe_diag_access_bounds): Add argument. Add informational notes.
9852 (dump_builtin_memref, dump_builtin_access): New functions.
9853 * tree.c (component_ref_size): ...to here.
9854 * tree.h (component_ref_size): Declare.
9855 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9856 nul in the size of the source string.
9857
9858 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9859
9860 PR c/67224
9861 * doc/cpp.texi: Document support for extended characters in
9862 identifiers.
9863 * doc/cppopts.texi: Likewise.
9864
9865 2019-09-19 Richard Biener <rguenther@suse.de>
9866
9867 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9868 (check_reduction_path): New overload having the path as result.
9869 (vect_is_simple_reduction): From the detected reduction
9870 path build a SLP reduction chain if possible.
9871
9872 2019-09-19 Richard Biener <rguenther@suse.de>
9873
9874 PR target/91814
9875 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9876 Force operand to a register if it isn't nonimmediate_operand.
9877
9878 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9879
9880 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9881 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9882 (logical_op): Remove code attribute.
9883 (logical_OP): Likewise.
9884
9885 2019-09-19 Martin Liska <mliska@suse.cz>
9886
9887 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9888 Use proper casting.
9889
9890 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9891
9892 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9893 registers with %R.
9894
9895 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9896 for NE comparison of TImode values.
9897 (aarch64_emit_load_exclusive): Add support for TImode.
9898 (aarch64_emit_store_exclusive): Likewise.
9899 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9900 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9901 Change iterator from ALLI to ALLI_TI.
9902 (@atomic_compare_and_swap<JUST_TI>): New.
9903 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9904 (aarch64_load_exclusive_pair): New.
9905 (aarch64_store_exclusive_pair): New.
9906 * config/aarch64/iterators.md (JUST_TI): New.
9907
9908 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9909 strong_zero_p for aarch64_track_speculation; unify some code paths;
9910 use aarch64_gen_compare_reg instead of open-coding.
9911
9912 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9913 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9914 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9915 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9916 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9917 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9918 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9919 (atomic_<atomic_op><ALLI>): Likewise.
9920 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9921 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9922 * doc/invoke.texi: Document -moutline-atomics.
9923
9924 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9925
9926 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9927 trivial predicate for condition branch.
9928 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9929 for switch case.
9930 (compute_bb_predicates): Update predicate based on post-dominating
9931 relationship.
9932 (analyze_function_body): Calculate post-dominating information.
9933
9934 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9935
9936 * tree-vectorizer.h (vectorizable_condition): Take an int
9937 reduction index instead of a boolean flag.
9938 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9939 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9940 reductions if the reduction accumulator is the "then" rather
9941 than the "else" value.
9942 (vect_analyze_stmt): Update call accordingly.
9943 (vect_transform_stmt): Likewise.
9944 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9945 asserting that the index is > 0.
9946
9947 2019-09-19 Martin Liska <mliska@suse.cz>
9948
9949 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9950 (sort_congruence_classes_by_decl_uid): Likewise.
9951 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9952 easier sorting.
9953 (sem_item_optimizer::merge_classes): Likewise.
9954
9955 2019-09-19 Richard Biener <rguenther@suse.de>
9956
9957 PR tree-optimization/91812
9958 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9959 volatile loads.
9960
9961 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9962
9963 * defaults.h (TARGET_UNIT): New macro.
9964 (target_unit): New type.
9965 * rtl.h (native_encode_rtx, native_decode_rtx)
9966 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9967 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9968 * rtlanal.c (subreg_lsb_1): Delete.
9969 (subreg_size_lsb): New function.
9970 * simplify-rtx.c: Include rtx-vector-builder.h
9971 (simplify_immed_subreg): Delete.
9972 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9973 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9974 functions.
9975 (simplify_subreg): Use them.
9976 (test_vector_subregs_modes, test_vector_subregs_repeating)
9977 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9978 (test_vector_subregs): New functions.
9979 (test_vector_ops): Call test_vector_subregs for integer vector
9980 modes with at least 2 elements.
9981
9982 2019-09-19 Richard Biener <rguenther@suse.de>
9983
9984 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9985 LOOP_VINFO_OPERANDS_SWAPPED.
9986 (parloops_is_simple_reduction): Likewise.
9987 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9988 initialize operands_swapped.
9989 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9990 (vect_is_slp_reduction): Do not swap operands.
9991 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9992 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9993
9994 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9995
9996 PR target/87007
9997 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9998 Add avx_partial_xmm_update.
9999
10000 2019-09-18 Jim Wilson <jimw@sifive.com>
10001
10002 PR target/91683
10003 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
10004 (riscv_move_integer): Likewise.
10005 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
10006 riscv_move_integer arg.
10007 (riscv_legitimize_move): Likewise.
10008 (riscv_force_temporary): New parameter in_splitter. Don't call
10009 force_reg if true.
10010 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
10011 arg.
10012 (riscv_add_offset): Likewise.
10013 (riscv_split_symbol): New parameter in_splitter. Pass to
10014 riscv_force_temporary.
10015 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10016 arg.
10017 (riscv_move_integer): New parameter in_splitter. New local
10018 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10019 in_splitter TRUE.
10020 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10021 riscv_split_symbol, and riscv_force_temporary args.
10022 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10023 riscv_move_integer arg.
10024 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10025
10026 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10027
10028 PR target/90878
10029 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10030 hard register store cost to 6.
10031
10032 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10033
10034 PR target/91446
10035 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10036 pseudo register store cost from 3 to 6 to make it the same as
10037 QImode and HImode.
10038
10039 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10040
10041 PR target/91738
10042 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10043 (one_cmpldi2): Likewise.
10044 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10045 of the constant parts is simple.
10046 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10047 (logical_op): Add new code attribute.
10048 (logical_OP): Likewise.
10049 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10050 (arm_iordi_operand): Add predicate.
10051 (arm_xordi_operand): Add predicate.
10052
10053 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10054
10055 * config/arm/arm.md (maddsidi4): Remove expander.
10056 (mulsidi3adddi): Remove pattern.
10057 (mulsidi3adddi_v6): Likewise.
10058 (mulsidi3_nov6): Likewise.
10059 (mulsidi3_v6): Likewise.
10060 (umulsidi3): Remove expander.
10061 (umulsidi3_nov6): Remove pattern.
10062 (umulsidi3_v6): Likewise.
10063 (umulsidi3adddi): Likewise.
10064 (umulsidi3adddi_v6): Likewise.
10065 (<Us>mulsidi3): Add combined expander.
10066 (<Us>maddsidi4): Likewise.
10067 (<US>mull): Add combined umull and smull pattern.
10068 (<US>mlal): Likewise.
10069 * config/arm/iterators.md (Us): Add new iterator.
10070
10071 2019-09-18 Richard Biener <rguenther@suse.de>
10072
10073 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10074 swapping.
10075 (vectorize_fold_left_reduction): Remove assert.
10076 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10077 operand in position 2. Remove assert.
10078
10079 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10080
10081 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10082 (smulsi3_highpart_nov6): Remove pattern.
10083 (smulsi3_highpart_v6): Likewise.
10084 (umulsi3_highpart): Likewise.
10085 (umulsi3_highpart_nov6): Likewise.
10086 (umulsi3_highpart_v6): Likewise.
10087 (<US>mull_high): Add new combined multiply pattern.
10088
10089 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10090
10091 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10092 (arm_mulsi3_v6): Likewise.
10093 (mulsi3addsi_v6): Likewise.
10094 (mulsi3subsi): Likewise.
10095 (mul): Add new multiply pattern.
10096 (mla): Likewise.
10097 (mls): Likewise.
10098
10099 2019-09-18 Richard Biener <rguenther@suse.de>
10100
10101 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10102 (parloops_valid_reduction_input_p): Copy from
10103 valid_reduction_input_p.
10104 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10105 (parloops_needs_fold_left_reduction_p): Copy from
10106 needs_fold_left_reduction_p.
10107 (parloops_is_simple_reduction): Copy from
10108 vect_is_simple_reduction.
10109 (parloops_force_simple_reduction): Copy from
10110 vect_force_simple_reduction.
10111 (gather_scalar_reductions): Adjust.
10112 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10113 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10114
10115 2019-09-18 Richard Biener <rguenther@suse.de>
10116
10117 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10118 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10119 static.
10120 (vect_create_epilog_for_reduction): Remove dead code.
10121
10122 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10123
10124 * varasm.c (assemble_real): Generate canonical const_ints.
10125
10126 2019-09-18 Richard Biener <rguenther@suse.de>
10127
10128 PR lto/91763
10129 * lto-streamer-in.c (input_eh_regions): Move EH init to
10130 lto_materialize_function.
10131 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10132 Likewise.
10133
10134 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10135
10136 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10137 are INTEGER_CSTs.
10138
10139 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10140
10141 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10142 of checking specifically for INTEGER_CST.
10143
10144 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10145
10146 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10147 sizes instead of uhwi sizes.
10148
10149 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10150
10151 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10152 (add_const_value_attribute): Handle CONST_POLY_INT.
10153
10154 2019-09-18 Martin Liska <mliska@suse.cz>
10155
10156 * dbgcnt.def (store_merging): New counter.
10157 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10158 Use it in store merging.
10159
10160 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10161
10162 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10163 function.
10164 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10165 * config/arm/arm.c (arm_sched_variable_issue): New function.
10166 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10167
10168 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10169
10170 * config/arm/types.md (no_reservation): New reservation.
10171 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10172 no_insn here.
10173 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10174 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10175 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10176 * config/arm/arm1020e.md (1020alu_op): Likewise.
10177 * config/arm/arm1026ejs.md (alu_op): Likewise.
10178 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10179 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10180 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10181 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10182 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10183 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10184 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10185 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10186 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10187 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10188 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10189 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10190 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10191 * config/arm/fa526.md (526_alu_op): Likewise.
10192 * config/arm/fa606te.md (606te_alu_op): Likewise.
10193 * config/arm/fa626te.md (626te_alu_op): Likewise.
10194 * config/arm/fa726te.md (726te_alu_op): Likewise.
10195 * config/arm/xgene1.md (xgene1_nop): Likewise.
10196
10197 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10198
10199 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10200 "no_insn" to "branch".
10201
10202 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10203
10204 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10205
10206 2019-09-17 Richard Biener <rguenther@suse.de>
10207
10208 PR debug/91772
10209 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10210 was missing generate locations only once.
10211
10212 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
10213
10214 PR ipa/91089
10215 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
10216 option.
10217 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
10218 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
10219 for switch default case using range analysis information.
10220
10221 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
10222
10223 PR target/91749
10224 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
10225 mode attributed is supported by FDPIC.
10226
10227 2019-09-17 Richard Biener <rguenther@suse.de>
10228
10229 PR tree-optimization/91790
10230 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
10231 use the correct DR for setting up realignment.
10232
10233 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10234
10235 PR target/91719
10236 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
10237 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
10238 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
10239 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
10240
10241 2019-09-16 Jason Merrill <jason@redhat.com>
10242
10243 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
10244
10245 2019-09-16 Martin Liska <mliska@suse.cz>
10246
10247 * gimple-fold.c (or_comparisons_1): Remove rules moved
10248 to ...
10249 * match.pd: ... here.
10250
10251 2019-09-16 Martin Liska <mliska@suse.cz>
10252
10253 * gimple-fold.c (or_comparisons_1): Remove rules
10254 moved to ...
10255 * match.pd: ... here.
10256
10257 2019-09-16 Martin Liska <mliska@suse.cz>
10258
10259 * genmatch.c (dt_node::append_simplify): Do not print
10260 warning when we have duplicate patterns belonging
10261 to a same simplify rule.
10262 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
10263 (maybe_fold_comparisons_from_match_pd): Handle
10264 tcc_comparison as a results.
10265 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
10266
10267 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10268 Qi Feng <ffengqi@linux.ibm.com>
10269
10270 PR middle-end/88784
10271 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
10272 (x > y && x == XXX_MIN): Optimize into 'false'.
10273 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
10274 (x < y && x != XXX_MAX): Optimize into 'x < y'.
10275 (x < y && x == XXX_MAX): Optimize into 'false'.
10276 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
10277 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
10278 (x <= y || x != XXX_MIN): Optimize into 'true'.
10279 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
10280 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
10281 (x >= y || x != XXX_MAX): Optimize into 'true'.
10282 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
10283
10284 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10285 Martin Liska <mliska@suse.cz>
10286
10287 * gimple-fold.c (and_comparisons_1): Add type as first
10288 argument.
10289 (and_var_with_comparison): Likewise.
10290 (and_var_with_comparison_1): Likewise.
10291 (or_comparisons_1): Likewise.
10292 (or_var_with_comparison): Likewise.
10293 (or_var_with_comparison_1): Likewise.
10294 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
10295 (maybe_fold_or_comparisons): Likewise.
10296 (maybe_fold_comparisons_from_match_pd): New.
10297 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
10298 (maybe_fold_or_comparisons): Likewise.
10299 * gimple.c (gimple_size): Make it public and add num_ops argument.
10300 (gimple_init): New function.
10301 (gimple_alloc): Call gimple_init.
10302 * gimple.h (gimple_size): New.
10303 (gimple_init): Likewise.
10304 * tree-if-conv.c (fold_or_predicates): Pass type.
10305 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10306 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
10307 (optimize_vec_cond_expr): Likewise.
10308 (ovce_extract_ops): Return type of conditional expression.
10309 * tree-ssanames.c (init_ssa_name_imm_use): New.
10310 (make_ssa_name_fn): Use init_ssa_name_imm_use.
10311 * tree-ssanames.h (init_ssa_name_imm_use): New.
10312
10313 2019-09-16 Richard Biener <rguenther@suse.de>
10314
10315 PR tree-optimization/91756
10316 PR tree-optimization/87132
10317 * tree-ssa-alias.h (enum translate_flags): New.
10318 (get_continuation_for_phi): Use it instead of simple bool flag.
10319 (walk_non_aliased_vuses): Likewise.
10320 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10321 (get_continuation_for_phi): When looking across backedges only
10322 disallow valueization.
10323 (walk_non_aliased_vuses): Adjust.
10324 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
10325 if requested.
10326
10327 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
10328
10329 PR middle-end/80791
10330 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
10331 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10332 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10333 * target.def (have_count_reg_decr_p): New hook.
10334 (doloop_cost_for_generic): Likewise.
10335 (doloop_cost_for_address): Likewise.
10336 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
10337 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10338 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10339 * doc/tm.texi: Regenerate.
10340 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
10341 addend.
10342 (record_group): Init doloop_p.
10343 (add_candidate_1): Add optional argument doloop, change the handlings
10344 accordingly.
10345 (add_candidate): Likewise.
10346 (generic_predict_doloop_p): Update attribute.
10347 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
10348 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
10349 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
10350 MIN_EXPR.
10351 (get_computation_cost): Update for doloop IV cand extra cost.
10352 (determine_group_iv_cost_cond): Update for doloop IV cand.
10353 (determine_iv_cost): Likewise.
10354 (ivopts_estimate_reg_pressure): Likewise.
10355 (may_eliminate_iv): Update handlings for doloop IV cand.
10356 (add_iv_candidate_for_doloop): New function.
10357 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
10358 (iv_ca_set_no_cp): Update for doloop IV cand.
10359 (iv_ca_set_cp): Likewise.
10360 (iv_ca_dump): Dump register cost.
10361 (find_doloop_use): New function.
10362 (analyze_and_mark_doloop_use): Likewise.
10363 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
10364
10365 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10366
10367 PR middle-end/91708
10368 * cse.c (cse_insn): Do not replace anything with a
10369 MEM.
10370
10371 2019-09-13 Ian Lance Taylor <iant@golang.org>
10372
10373 * doc/invoke.texi (Optimize Options): Fix typo.
10374
10375 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
10376
10377 PR tree-optimization/89386
10378 * config/i386/sse.md (smulhrs<mode>3): New expander.
10379 (smulhrsv4hi3): Ditto.
10380
10381 2019-09-12 Richard Biener <rguenther@suse.de>
10382
10383 PR tree-optimization/91750
10384 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10385 in the type of the evolution.
10386
10387 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10388
10389 PR tree-optimization/89386
10390 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10391 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10392 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10393 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10394 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10395 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10396 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10397 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10398 (su, r): Handle the unspecs above.
10399 (bt): New int attribute.
10400 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10401 * internal-fn.c (first_commutative_argument): Commutativity info for
10402 above.
10403 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10404 (umulhrs_optab): New optabs.
10405 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10406 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10407 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10408 function.
10409 (vect_vect_recog_func_ptrs): Add it.
10410
10411 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10412
10413 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10414 code.
10415
10416 2019-09-11 Nathan Sidwell <nathan@acm.org>
10417
10418 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10419 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10420
10421 2019-09-11 Richard Biener <rguenther@suse.de>
10422
10423 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10424 * lto-wrapper.c (merge_and_complain): Pick up -g.
10425 (append_compiler_options): Likewise.
10426 (run_gcc): Re-instantiate handling -g0 at link-time.
10427 * doc/invoke.texi (flto): Document debug info generation.
10428
10429 2019-09-11 Richard Biener <rguenther@suse.de>
10430
10431 PR tree-optimization/90387
10432 * vr-values.c (vr_values::extract_range_basic): After inlining
10433 simplify non-constant __builtin_constant_p to false.
10434
10435 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
10436
10437 PR rtl-optimization/89795
10438 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
10439 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
10440
10441 2019-09-11 Jakub Jelinek <jakub@redhat.com>
10442
10443 PR tree-optimization/91723
10444 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
10445 instead of pointer equality when checking if argument vectypes are
10446 the same.
10447
10448 PR middle-end/91725
10449 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
10450 of get_nonzero_bits, only call it for integral types.
10451
10452 2019-09-11 Richard Biener <rguenther@suse.de>
10453
10454 Revert
10455 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10456
10457 * match.pd: Add flag_unsafe_math_optimizations check
10458 before deciding on the widest type in a binary math operation.
10459
10460 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10461
10462 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
10463 and CALL_REALLY_USED_REGISTERS must be defined, and that
10464 CALL_REALLY_USED_REGISTERS is preferred.
10465 * doc/tm.texi: Regenerate.
10466 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
10467 (call_really_used_regs): Likewise.
10468 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
10469 CALL_REALLY_USED_REGISTERS are defined.
10470 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
10471 initial value if defined.
10472 (initial_call_really_used_regs): Delete.
10473 (saved_call_really_used_regs): Likewise.
10474 (CALL_REALLY_USED_REGNO_P): Likewise.
10475 (init_reg_sets): Remove handling of call_really_used_regs.
10476 (save_register_info, restore_register_info, globalize_reg): Likewise.
10477 (init_reg_sets_1): Likewise. Use call_used_regs instead of
10478 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
10479 outside operand_reg_set.
10480 (fix_register): Don't change call_used_regs if
10481 CALL_REALLY_USED_REGISTERS is defined.
10482 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
10483 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
10484 instead of call_really_used_regs.
10485 (csky_conditional_register_usage): Remove the old handling of
10486 call_used_regs and change the handling of call_really_used_regs
10487 to use call_used_regs instead.
10488 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
10489 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
10490 making a register fixed.
10491 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
10492 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
10493 instead of call_really_used_regs.
10494 (m32r_conditional_register_usage): Don't set call_used_regs when
10495 making a register fixed.
10496 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
10497 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
10498 instead of call_really_used_regs.
10499 (mips_interrupt_extra_call_saved_reg_p): Likewise.
10500 (mips_cfun_call_saved_reg_p): Likewise.
10501 (mips_swap_registers): Remove the old handling of call_used_regs
10502 and change the handling of call_really_used_regs to use call_used_regs
10503 instead.
10504 (mips_conditional_register_usage): Likewise.
10505 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
10506 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
10507 instead of call_really_used_regs.
10508 (mn10300_get_live_callee_saved_regs): Likewise.
10509 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
10510 (mn10300_conditional_register_usage): Don't set call_used_regs when
10511 making a register fixed.
10512 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
10513 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10514 Remove the old handling of call_used_regs and change the handling
10515 of call_really_used_regs to use call_used_regs instead.
10516 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
10517 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
10518 instead of call_really_used_regs.
10519 (s390_register_info_gprtofpr, s390_register_info): Likewise.
10520 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
10521 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
10522 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
10523 (s390_conditional_register_usage): Remove the old handling of
10524 call_used_regs and change the handling of call_really_used_regs
10525 to use call_used_regs instead.
10526 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
10527 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
10528 (sh_fix_range, reg_unused_after): Likewise.
10529 (sh_conditional_register_usage): Remove the old handling of
10530 call_used_regs and change the handling of call_really_used_regs
10531 to use call_used_regs instead.
10532 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
10533 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
10534 call_used_regs when making a register fixed.
10535 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
10536 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
10537 call_used_regs when making a register fixed.
10538 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
10539 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
10540 set call_used_regs when making a register fixed.
10541 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
10542 * config/visium/visium.c (visium_conditional_register_usage): Remove
10543 the old handling of call_used_regs and change the handling of
10544 call_really_used_regs to use call_used_regs instead.
10545
10546 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10547
10548 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
10549 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
10550 * reginfo.c (call_used_regs): New macro.
10551
10552 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10553
10554 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
10555 fixed_regs test.
10556 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10557 (bpf_expand_epilogue): Likewise.
10558 * config/c6x/c6x.c (c6x_save_reg): Likewise.
10559 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10560 (ft32_expand_epilogue): Likewise.
10561 * config/i386/i386.c (ix86_save_reg): Likewise.
10562 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
10563 (moxie_expand_epilogue): Likewise.
10564 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10565 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10566 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10567
10568 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10569
10570 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10571 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10572 instead of testing call_used_regs directly.
10573 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10574 (aarch64_components_for_bb): Likewise.
10575 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10576 * config/arc/arc.c (arc_must_save_register): Likewise.
10577 (arc_epilogue_uses): Likewise.
10578 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10579 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10580 (arm_compute_save_reg0_reg12_mask): Likewise.
10581 (arm_compute_save_core_reg_mask): Likewise.
10582 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10583 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10584 (cmse_nonsecure_entry_clear_before_return): Likewise.
10585 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10586 (arm_expand_epilogue): Likewise.
10587 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10588 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10589 (_reg_unused_after): Likewise.
10590 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10591 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10592 (add_to_reg, hwloop_optimize): Likewise.
10593 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10594 (bpf_expand_epilogue): Likewise.
10595 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10596 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10597 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10598 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10599 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10600 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10601 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10602 * config/frv/frv.c (frv_stack_info): Likewise.
10603 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10604 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10605 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10606 (move_callee_saved_registers): Likewise.
10607 * config/h8300/h8300.c (byte_reg): Likewise.
10608 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10609 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10610 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10611 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10612 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10613 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10614 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10615 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10616 * config/m32c/m32c.c (need_to_save): Likewise.
10617 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10618 * config/mcore/mcore.c (calc_live_regs): Likewise.
10619 * config/microblaze/microblaze.c (microblaze_must_save_register):
10620 Likewise.
10621 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10622 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10623 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10624 (mmix_expand_epilogue): Likewise.
10625 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10626 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10627 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10628 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10629 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10630 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10631 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10632 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10633 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10634 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10635 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10636 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10637 * config/rl78/rl78.c (need_to_save): Likewise.
10638 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10639 (rs6000_stack_info, generate_set_vrsave): Likewise.
10640 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10641 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10642 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10643 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10644 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10645 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10646 (save_local_or_in_reg_p): Likewise.
10647 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10648 (xstormy16_epilogue_uses): Likewise.
10649 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10650 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10651 * config/v850/v850.c (compute_register_save_size): Likewise.
10652 * config/vax/vax.c (vax_expand_prologue): Likewise.
10653 * config/visium/visium.c (visium_save_reg_p): Likewise.
10654 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10655 * cselib.c (cselib_process_insn): Likewise.
10656 * df-scan.c (df_get_entry_block_def_set): Likewise.
10657 * function.c (aggregate_value_p): Likewise.
10658 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10659 * ira-lives.c (process_bb_node_lives): Likewise.
10660 * ira.c (do_reload): Likewise.
10661 * lra-lives.c (process_bb_lives): Likewise.
10662 * lra-remat.c (lra_remat): Likewise.
10663 * lra.c (lra): Likewise.
10664 * postreload.c (reload_combine_recognize_pattern): Likewise.
10665 (reload_cse_move2add): Likewise.
10666 * recog.c (peep2_find_free_register): Likewise.
10667 * regrename.c (check_new_reg_p): Likewise.
10668 * reload.c (find_equiv_reg): Likewise.
10669 * reload1.c (reload, find_reg): Likewise.
10670 * sel-sched.c (init_hard_regs_data): Likewise.
10671
10672 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10673
10674 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10675 regs_invalidated_by_call & ~fixed_reg_set instead of
10676 call_used_or_fixed_regs & ~fixed_reg_set.
10677 * config/sh/sh.c (output_stack_adjust): Likewise.
10678
10679 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10680
10681 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10682 (call_used_reg_set): Delete.
10683 (call_used_or_fixed_regs): New macro.
10684 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10685 of call_used_reg_set.
10686 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10687 instead of call_used_regs.
10688 (save_call_clobbered_regs): Likewise.
10689 * cfgcleanup.c (old_insns_match_p): Likewise.
10690 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10691 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10692 Likewise.
10693 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10694 * config/sh/sh.c (output_stack_adjust): Likewise.
10695 * final.c (collect_fn_hard_reg_usage): Likewise.
10696 * ira-build.c (ira_build): Likewise.
10697 * ira-color.c (calculate_saved_nregs): Likewise.
10698 (allocno_reload_assign, calculate_spill_cost): Likewise.
10699 * ira-conflicts.c (ira_build_conflicts): Likewise.
10700 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10701 * ira-lives.c (process_bb_node_lives): Likewise.
10702 * ira.c (setup_reg_renumber): Likewise.
10703 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10704 * lra-constraints.c (need_for_call_save_p): Likewise.
10705 (need_for_split_p, inherit_in_ebb): Likewise.
10706 * lra-lives.c (process_bb_lives): Likewise.
10707 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10708 * postreload.c (reload_combine): Likewise.
10709 * regrename.c (find_rename_reg): Likewise.
10710 * reload1.c (reload_as_needed): Likewise.
10711 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10712 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10713 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10714
10715 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10716
10717 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10718 (no_caller_save_reg_set): Delete.
10719 * caller-save.c (init_caller_save): Don't initialize it.
10720 * ira-conflicts.c (ira_build_conflicts): Calculate
10721 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10722
10723 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10724
10725 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10726 (target_hard_regs::x_savable_regs): New field.
10727 (call_fixed_reg_set): Delete.
10728 (savable_regs): New macro,
10729 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10730 (init_reg_sets_1): Likewise. Initialize savable_regs.
10731 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10732 for all registers. Set savable_regs instead of call_fixed_reg_set.
10733 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10734 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10735 * config/sh/sh.c (output_stack_adjust): Likewise.
10736
10737 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10738
10739 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10740 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10741 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10742
10743 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10744
10745 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10746 * rtlanal.c (get_call_rtx_from): Likewise.
10747 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10748 than the pattern to get_call_rtx_from.
10749 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10750 an rtx_insn * instead of an rtx.
10751 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10752
10753 2019-09-10 Martin Liska <mliska@suse.cz>
10754
10755 * common.opt: Use newly added WarnRemoved.
10756 * config/aarch64/aarch64.opt: Likewise.
10757 * config/arm/arm.opt: Likewise.
10758 * config/i386/i386.opt: Likewise.
10759 * config/ia64/ia64.opt: Likewise.
10760 * config/rs6000/rs6000.opt: Likewise.
10761 * doc/options.texi: Document WarnRemoved properly.
10762 * dwarf2out.c (gen_producer_string): Handle renamed
10763 OPT_SPECIAL_warn_removed.
10764 * lto-opts.c (lto_write_options): Likewise.
10765 * lto-wrapper.c (merge_and_complain): Likewise.
10766 * opts-common.c (decode_cmdline_option): Likewise.
10767 (prune_options): Likewise.
10768 (read_cmdline_option): Likewise.
10769 (control_warning_option): Likewise.
10770 * opts.c (print_filtered_help): Likewise.
10771 * optc-gen.awk: Parse for WarnRemoved and make usage
10772 of Deprecated an error.
10773 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10774
10775 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10776
10777 * doc/install.texi: Fix syntax for html generation.
10778
10779 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10780
10781 PR middle-end/91680
10782 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10783 the shift type to type.
10784
10785 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10786
10787 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10788 FDPIC mode.
10789 (stack_protect_combined_test_insn): Likewise.
10790
10791 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10792 Mickaël Guêné <mickael.guene@st.com>
10793
10794 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10795 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10796 (load_tp_soft_fdpic): New pattern.
10797 (load_tp_soft): Disable in FDPIC mode.
10798
10799 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10800 Mickaël Guêné <mickael.guene@st.com>
10801
10802 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10803 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10804 (arm_call_tls_get_addr): Add FDPIC support.
10805 (legitimize_tls_address): Likewise.
10806 (arm_emit_tls_decoration): Likewise.
10807
10808 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10809 Mickaël Guêné <mickael.guene@st.com>
10810
10811 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10812 support.
10813 (arm_trampoline_init): Likewise.
10814 (arm_trampoline_adjust_address): Likewise.
10815 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10816
10817 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10818 Mickaël Guêné <mickael.guene@st.com>
10819
10820 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10821 (legitimize_pic_address): Enforce binding rules on function
10822 pointers in FDPIC mode.
10823 (arm_assemble_integer): Likewise.
10824
10825 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10826 Mickaël Guêné <mickael.guene@st.com>
10827
10828 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10829 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10830 FDPIC.
10831
10832 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10833 Mickaël Guêné <mickael.guene@st.com>
10834
10835 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10836 field.
10837
10838 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10839 Mickaël Guêné <mickael.guene@st.com>
10840
10841 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10842 in FDPIC mode.
10843 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10844 new function.
10845 * config/arm/arm.c (arm_option_override): Define pic register to
10846 FDPIC_REGNUM.
10847 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10848 have no decl or go through PLT.
10849 (calculate_pic_address_constant): New function.
10850 (legitimize_pic_address): Call calculate_pic_address_constant.
10851 (arm_load_pic_register): Handle TARGET_FDPIC.
10852 (arm_is_segment_info_known): New function.
10853 (arm_pic_static_addr): Add support for FDPIC.
10854 (arm_load_function_descriptor): New function.
10855 (arm_emit_call_insn): Add support for FDPIC.
10856 (arm_assemble_integer): Add support for FDPIC.
10857 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10858 Define. (FDPIC_REGNUM): New define.
10859 * config/arm/arm.md (call): Add support for FDPIC.
10860 (call_value): Likewise.
10861 (restore_pic_register_after_call): New pattern.
10862 (untyped_call): Disable if FDPIC.
10863 (untyped_return): Likewise.
10864 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10865
10866 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10867 Mickaël Guêné <mickael.guene@st.com>
10868
10869 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10870 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10871 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10872 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10873 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10874 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10875 * config/arm/uclinuxfdpiceabi.h: New file.
10876
10877 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10878
10879 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10880
10881 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10882 Mickaël Guêné <mickael.guene@st.com>
10883
10884 * config/arm/arm.opt: Add -mfdpic option.
10885 * doc/invoke.texi: Add documentation for -mfdpic.
10886
10887 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10888
10889 * expmed.c (extract_bit_field): Update function comment
10890 regarding alt_rtl.
10891 * expr.c (expand_expr_real): Update function comment
10892 regarding alt_rtl.
10893 (expand_misaligned_mem_ref): New helper function.
10894 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10895 Remove duplicate assignment to "base" at case MEM_REF.
10896 Remove a shadowed variable "unsignedp" at case VCE.
10897
10898 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10899
10900 * regset.h (regs_invalidated_by_call_regset): Delete.
10901 (fixed_reg_set_regset): Likewise.
10902 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10903 (fixed_reg_set_regset, persistent_obstack): Likewise.
10904 (init_reg_sets_1, globalize_reg): Update accordingly.
10905 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10906 instead of a bitmap.
10907 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10908 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10909 instead of regs_invalidated_by_call_regset.
10910 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10911 * df-scan.c (df_scan_start_dump): Likewise.
10912 * dse.c (copy_fixed_regs): Likewise.
10913 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10914
10915 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10916
10917 * array-traits.h: New file.
10918 * coretypes.h (array_traits, bitmap_view): New types.
10919 * bitmap.h: Include "array-traits.h"
10920 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10921 (base_bitmap_view, bitmap_view): New classes.
10922 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10923 * hard-reg-set.h: Include array-traits.h.
10924 (array_traits<HARD_REG_SET>): New struct.
10925 * regset.h (IOR_REG_SET_HRS): New macro.
10926 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10927 rather than iterating over each hard register.
10928 * sched-deps.c (sched_analyze_insn): Likewise.
10929 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10930
10931 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10932
10933 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10934 instead of a HARD_REG_SET *.
10935 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10936 (ira_build): Update call accordingly.
10937 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10938
10939 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10940
10941 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10942 (HARD_REG_SET::operator!=): Likewise.
10943 (hard_reg_set_equal_p): Delete.
10944 * cfgcleanup.c (old_insns_match_p): Use == instead of
10945 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10946 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10947 (add_allocno_hard_regs_to_forest): Likewise.
10948 (setup_allocno_available_regs_num): Likewise.
10949 * ira.c (setup_pressure_classes): Likewise.
10950 (setup_allocno_and_important_classes): Likewise.
10951 (setup_reg_class_relations): Likewise.
10952 * lra-lives.c (process_bb_lives): Likewise.
10953 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10954
10955 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10956
10957 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10958 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10959 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10960 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10961 Likewise.
10962 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10963 * ira.c (setup_reg_renumber): Likewise.
10964 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10965 * regrename.c (regrename_find_superclass): Likewise.
10966 * reload1.c (find_reg): Likewise.
10967
10968 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10969
10970 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10971 * caller-save.c (setup_save_areas): Use "&~" instead of
10972 AND_COMPL_HARD_REG_SET.
10973 (save_call_clobbered_regs): Likewise.
10974 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10975 Likewise.
10976 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10977 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10978 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10979 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10980 (mips_conditional_register_usage): Likewise.
10981 * config/sh/sh.c (output_stack_adjust): Likewise.
10982 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10983 (setup_profitable_hard_regs): Likewise.
10984 (get_conflict_and_start_profitable_regs): Likewise.
10985 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10986 (ira_build_conflicts): Likewise.
10987 * ira-costs.c (restrict_cost_classes): Likewise.
10988 (setup_regno_cost_classes_by_aclass): Likewise.
10989 * ira-lives.c (process_bb_node_lives): Likewise.
10990 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10991 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10992 (setup_allocno_and_important_classes, setup_class_translate_array)
10993 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10994 Likewise.
10995 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10996 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10997 (process_alt_operands, inherit_in_ebb): Likewise.
10998 * lra-eliminations.c (update_reg_eliminate): Likewise.
10999 * lra-lives.c (process_bb_lives): Likewise.
11000 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
11001 * resource.c (find_dead_or_set_registers): Likewise.
11002 (mark_target_live_regs): Likewise.
11003 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
11004 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11005 (implicit_clobber_conflict_p): Likewise.
11006 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11007 (try_shrink_wrapping): Likewise.
11008
11009 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11010
11011 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
11012 (HARD_REG_SET::operator|=): Likewise.
11013 (IOR_HARD_REG_SET): Delete.
11014 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11015 IOR_HARD_REG_SET.
11016 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11017 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11018 * final.c (collect_fn_hard_reg_usage): Likewise.
11019 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11020 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11021 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11022 (propagate_some_info_from_allocno): Likewise.
11023 (copy_info_to_removed_store_destinations): Likewise.
11024 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11025 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11026 (fast_allocation): Likewise.
11027 * ira-conflicts.c (ira_build_conflicts): Likewise.
11028 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11029 (process_bb_node_lives): Likewise.
11030 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11031 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11032 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11033 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11034 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11035 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11036 (process_bb_lives): Likewise.
11037 * lra-spills.c (assign_spill_hard_regs): Likewise.
11038 * postreload.c (reload_combine): Likewise.
11039 * reginfo.c (init_reg_sets_1): Likewise.
11040 * regrename.c (merge_overlapping_regs, find_rename_reg)
11041 (merge_chains): Likewise.
11042 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11043 (find_reload_regs, finish_spills, choose_reload_regs_init)
11044 (emit_reload_insns): Likewise.
11045 * reorg.c (redundant_insn): Likewise.
11046 * resource.c (find_dead_or_set_registers, mark_set_resources)
11047 (mark_target_live_regs): Likewise.
11048 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11049 * sched-deps.c (sched_analyze_insn): Likewise.
11050 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11051 (find_best_reg_for_expr): Likewise.
11052 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11053
11054 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11055
11056 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11057 (HARD_REG_SET::operator&): Likewise.
11058 (AND_HARD_REG_SET): Delete.
11059 * caller-save.c (setup_save_areas): Use "&" instead of
11060 AND_HARD_REG_SET.
11061 (save_call_clobbered_regs): Likewise.
11062 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11063 * config/m32c/m32c.c (reduce_class): Likewise.
11064 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11065 * final.c (get_call_reg_set_usage): Likewise.
11066 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11067 (setup_left_conflict_sizes_p): Likewise.
11068 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11069 (ira_build_conflicts): Likewise.
11070 * ira-costs.c (restrict_cost_classes): Likewise.
11071 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11072 (setup_reg_class_relations): Likewise.
11073 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11074 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11075 * resource.c (find_dead_or_set_registers): Likewise.
11076 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11077
11078 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11079
11080 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11081 (COMPL_HARD_REG_SET): Delete.
11082 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11083 of COMPL_HARD_REG_SET.
11084 (try_rename_operands): Likewise.
11085 * config/sh/sh.c (push_regs): Likewise.
11086 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11087 * lra-constraints.c (contains_reg_p): Likewise.
11088 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11089
11090 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11091
11092 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11093 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11094 of COPY_HARD_REG_SET.
11095 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11096 (epiphany_conditional_register_usage): Likewise.
11097 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11098 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11099 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11100 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11101 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11102 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11103 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11104 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11105 * config/sh/sh.c (output_stack_adjust): Likewise.
11106 * final.c (collect_fn_hard_reg_usage): Likewise.
11107 (get_call_reg_set_usage): Likewise.
11108 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11109 (ira_flattening): Likewise.
11110 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11111 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11112 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11113 (ira_reassign_pseudos): Likewise.
11114 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11115 (ira_build_conflicts): Likewise.
11116 * ira-costs.c (restrict_cost_classes): Likewise.
11117 (setup_regno_cost_classes_by_aclass): Likewise.
11118 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11119 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11120 (setup_stack_reg_pressure_class, setup_pressure_classes)
11121 (setup_allocno_and_important_classes, setup_class_translate_array)
11122 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11123 (ira_setup_eliminable_regset): Likewise.
11124 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11125 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11126 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11127 (process_alt_operands, inherit_in_ebb): Likewise.
11128 * lra-lives.c (process_bb_lives): Likewise.
11129 * lra-spills.c (assign_spill_hard_regs): Likewise.
11130 * lra.c (lra): Likewise.
11131 * mode-switching.c (new_seginfo): Likewise.
11132 * postreload.c (reload_combine): Likewise.
11133 * reg-stack.c (straighten_stack): Likewise.
11134 * reginfo.c (save_register_info, restore_register_info): Likewise.
11135 (init_reg_sets_1, record_subregs_of_mode): Likewise
11136 * regrename.c (create_new_chain, rename_chains): Likewise.
11137 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11138 (find_reload_regs): Likewise.
11139 * resource.c (find_dead_or_set_registers): Likewise.
11140 (mark_target_live_regs): Likewise.
11141 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11142
11143 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11144
11145 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11146 (note_pattern_stores): Declare.
11147 (note_stores): Take an rtx_insn *.
11148 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11149 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11150 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11151 (note_stores): Take an rtx_insn * as argument and process
11152 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11153 (note_pattern_stores): ...this.
11154 (find_first_parameter_load): Pass the insn rather than
11155 its pattern to note_stores.
11156 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11157 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11158 (insert_one_insn): Likewise.
11159 * combine.c (combine_instructions): Likewise.
11160 (likely_spilled_retval_p): Likewise.
11161 (try_combine): Use note_pattern_stores instead of note_stores.
11162 (record_dead_and_set_regs): Pass the insn rather than its pattern
11163 to note_stores.
11164 (reg_dead_at_p): Likewise.
11165 * config/bfin/bfin.c (workaround_speculation): Likewise.
11166 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11167 rather than an rtx.
11168 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11169 instead of note_stores.
11170 (frv_optimize_membar_local): Pass the insn rather than its pattern
11171 to note_stores.
11172 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11173 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11174 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11175 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11176 (mips_reorg_process_insns): Likewise.
11177 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11178 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11179 rather than rtxes.
11180 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11181 its pattern to note_stores.
11182 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11183 of note_stores.
11184 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11185 the insn to note_stores.
11186 (prescan_insns_for_dce): Update call accordingly.
11187 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11188 to note_stores.
11189 * df-problems.c (can_move_insns_across): Likewise.
11190 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11191 * function.c (assign_parm_setup_reg): Likewise.
11192 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11193 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11194 (single_set_gcse): Likewise.
11195 * ira.c (validate_equiv_mem): Likewise.
11196 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11197 for no_equiv.
11198 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11199 pattern to note_stores.
11200 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11201 * loop-iv.c (simplify_using_initial_values): Likewise.
11202 * mode-switching.c (optimize_mode_switching): Likewise.
11203 * optabs.c (emit_libcall_block_1): Likewise.
11204 (expand_atomic_compare_and_swap): Likewise.
11205 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11206 (record_opr_changes): Likewise. Remove explicit handling of
11207 CALL_INSN_FUNCTION_USAGE.
11208 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11209 * regcprop.c (kill_clobbered_values): Likewise.
11210 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11211 to note_stores.
11212 * regrename.c (build_def_use): Likewise.
11213 * reload1.c (reload): Use note_pattern_stores instead of note_stores
11214 for mark_not_eliminable.
11215 (reload_as_needed): Pass the insn rather than its pattern
11216 to note_stores.
11217 (emit_output_reload_insns): Likewise.
11218 * resource.c (mark_target_live_regs): Likewise.
11219 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11220 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
11221 instead of note_stores.
11222 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
11223 its pattern to note_stores.
11224 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
11225 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
11226
11227 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11228
11229 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
11230 than a #define. Use a structure rather than an array as the
11231 fallback definition. Remove special cases for low array sizes.
11232 (const_hard_reg_set): New typedef.
11233 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
11234 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
11235 (hard_reg_set_empty_p): Likewise.
11236 (SET_HARD_REG_BIT): Use a function rather than a macro to
11237 handle the case in which HARD_REG_SET is a structure.
11238 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
11239 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
11240 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
11241 (IOR_COMPL_HARD_REG_SET): Likewise.
11242 (hard_reg_set_iterator::pset): Constify the pointer target.
11243 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
11244 of a "const HARD_REG_SET". Update the handling of non-integer
11245 HARD_REG_SETs.
11246 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
11247 * reload.h: Likewise.
11248 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
11249 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
11250 of a "const HARD_REG_SET".
11251 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
11252 (range_in_hard_reg_set_p): Likewise.
11253 * ira-costs.c (restrict_cost_classes): Likewise.
11254 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
11255 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11256 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
11257 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
11258 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
11259 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
11260 take an unsigned int and open-code the HARD_REG_SET operations.
11261
11262 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11263
11264 * Makefile.in (OBJS): Remove bt-load.o.
11265 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
11266 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11267 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
11268 document that the option no longer does anything.
11269 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11270 * target.def (branch_target_register_class): Delete.
11271 (branch_target_register_callee_saved): Likewise.
11272 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11273 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
11274 * doc/tm.texi: Regenerate.
11275 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
11276 (make_pass_branch_target_load_optimize2): Likewise.
11277 * passes.def (pass_branch_target_load_optimize1): Likewise.
11278 (pass_branch_target_load_optimize2): Likewise.
11279 * targhooks.h (default_branch_target_register_class): Likewise.
11280 * targhooks.c (default_branch_target_register_class): Likewise.
11281 * opt-suggestions.c (test_completion_valid_options): Remove
11282 -fbtr-bb-exclusive from the list of test options.
11283 * bt-load.c: Remove.
11284
11285 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11286
11287 * match.pd: Add flag_unsafe_math_optimizations check
11288 before deciding on the widest type in a binary math operation.
11289
11290 2019-09-09 Martin Liska <mliska@suse.cz>
11291
11292 * config/i386/i386.opt: Update comment of removed
11293 options that are preserved only for backward
11294 compatibility.
11295
11296 2019-09-09 Jakub Jelinek <jakub@redhat.com>
11297
11298 PR target/87853
11299 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
11300 instead of __v16qs.
11301
11302 PR target/91704
11303 * config/i386/avxintrin.h (__v32qs): New typedef.
11304 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
11305 instead of __v32qi.
11306
11307 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11308
11309 * doc/invoke.texi (Option Summary): Cover eBPF.
11310 (eBPF Options): New section.
11311 * doc/extend.texi (BPF Built-in Functions): Likewise.
11312 (BPF Kernel Helpers): Likewise.
11313
11314 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11315
11316 * config.gcc: Support for bpf-*-* targets.
11317 * common/config/bpf/bpf-common.c: New file.
11318 * config/bpf/t-bpf: Likewise.
11319 * config/bpf/predicates.md: Likewise.
11320 * config/bpf/constraints.md: Likewise.
11321 * config/bpf/bpf.opt: Likewise.
11322 * config/bpf/bpf.md: Likewise.
11323 * config/bpf/bpf.h: Likewise.
11324 * config/bpf/bpf.c: Likewise.
11325 * config/bpf/bpf-protos.h: Likewise.
11326 * config/bpf/bpf-opts.h: Likewise.
11327 * config/bpf/bpf-helpers.h: Likewise.
11328 * config/bpf/bpf-helpers.def: Likewise.
11329
11330 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11331
11332 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11333 indirect_calls.
11334
11335 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11336
11337 * opt-functions.awk (integer_range_info): Make sure values are in
11338 numeric context before operating with them.
11339
11340 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
11341
11342 * genemit.c (gen_split): Print the filename and line number where the
11343 splitter (or peephole2) was defined, to the dump file.
11344
11345 2019-09-07 Jakub Jelinek <jakub@redhat.com>
11346
11347 PR tree-optimization/91665
11348 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
11349 incompatible with the type of PHI result.
11350
11351 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11352
11353 PR target/91684
11354 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
11355 gen_unaligned_storedi for 4-byte aligned addresses.
11356
11357 2019-09-06 Jim Wilson <jimw@sifive.com>
11358
11359 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
11360 change.
11361
11362 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11363
11364 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
11365
11366 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11367
11368 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
11369 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
11370
11371 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
11372
11373 PR target/91654
11374 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
11375 cost of SSE->integer and integer->SSE moves from 2 to 6.
11376 (core_cost): Ditto.
11377
11378 2019-09-06 Jakub Jelinek <jakub@redhat.com>
11379
11380 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
11381 before testing TYPE_TRANSPARENT_AGGR.
11382 * calls.c (initialize_argument_information, load_register_parameters):
11383 Likewise.
11384
11385 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11386
11387 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11388 high regs.
11389 (cmp_ior): Likewise.
11390
11391 2019-09-06 Martin Liska <mliska@suse.cz>
11392
11393 * doc/match-and-simplify.texi: Separate tuples with ;.
11394
11395 2019-09-06 Martin Liska <mliska@suse.cz>
11396
11397 PR c++/91125
11398 * Makefile.in: Remove tlink.o.
11399 * collect2.c (do_link): New function isolated
11400 from do_tlink.
11401 (main): Use.
11402 * collect2.h (do_tlink): Remove declaration of do_tlink.
11403 * doc/extend.texi: Remove documentation of -frepo.
11404 * doc/invoke.texi: Likewise.
11405 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11406 * tlink.c: Remove.
11407
11408 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11409 Jim Wilson <jimw@sifive.com>
11410
11411 PR target/91635
11412 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11413 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11414 paradoxical_subreg_p (operands[0]).
11415 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11416 use as intermediate value.
11417
11418 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11419
11420 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11421 (sync_compare_and_swap<mode>_insn): Likewise.
11422
11423 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11424
11425 PR middle-end/91615
11426 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11427 without movmisalign optab.
11428
11429 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11430
11431 PR middle-end/91001
11432 PR middle-end/91105
11433 PR middle-end/91106
11434 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
11435 types, use type of their first field instead of type of
11436 args[i].tree_value.
11437
11438 2019-09-05 Richard Biener <rguenther@suse.de>
11439
11440 PR rtl-optimization/91656
11441 * postreload-gcse.c (record_last_mem_set_info): Revert addition
11442 of early out.
11443
11444 2019-09-05 Richard Biener <rguenther@suse.de>
11445
11446 PR middle-end/90501
11447 * tree-inline.c (declare_return_variable): Mark the return
11448 slot as addressable after building an address of it.
11449
11450 2019-09-05 Arnaud Charlet <charlet@adacore.com>
11451
11452 * doc/install.texi: Update and clarify requirements to build GNAT.
11453
11454 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
11455
11456 PR middle-end/91577
11457 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
11458 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
11459 call to be in memory.
11460 (pass_expand::execute): Call discover_nonconstant_array_refs before
11461 setting currently_expanding_to_rtl.
11462
11463 2019-09-04 Caroline Tice <cmtice@google.com>
11464
11465 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
11466 specified together.
11467
11468 2019-09-04 Marek Polacek <polacek@redhat.com>
11469
11470 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
11471
11472 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
11473
11474 PR target/32413
11475 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11476 for QI and HImode moves between SSE and general registers.
11477
11478 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11479
11480 PR c/78736
11481 * doc/invoke.texi: Document -Wenum-conversion.
11482
11483 2019-09-04 Richard Biener <rguenther@suse.de>
11484
11485 PR rtl-optimization/36262
11486 * postreload-gcse.c: Include intl.h and gcse.h.
11487 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
11488 to avoid linear list walk.
11489 (record_last_mem_set_info): Gate off if not computing transparentness.
11490 (get_bb_avail_insn): If transparentness isn't computed give up
11491 early.
11492 (gcse_after_reload_main): Skip compute_transp and extended PRE
11493 if gcse_or_cprop_is_too_expensive says so.
11494
11495 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11496
11497 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
11498 noinit section.
11499 (msp430_select_section): Handle decls with the "noinit" attribute with
11500 default_elf_select_section.
11501 Handle SECCAT_RODATA_MERGE_* section types with
11502 default_elf_select_section.
11503 Add comments about handling of unsupported section types.
11504 (msp430_section_type_flags): Remove handling of the noinit section.
11505
11506 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11507
11508 * config/msp430/msp430.c (msp430_attr): Remove warnings about
11509 conflicting msp430-specific attributes.
11510 (msp430_section_attr): Likewise.
11511 Add warnings about conflicts with generic "noinit" and "section"
11512 attributes.
11513 Fix grammar in -mlarge error message.
11514 (msp430_data_attr): Rename to msp430_persist_attr.
11515 Add warnings about conflicts with generic "noinit" and "section"
11516 attributes.
11517 Add warning for when variable is not initialized.
11518 Chain conditionals which prevent the attribute being added.
11519 (ATTR_EXCL): New helper.
11520 (attr_reent_exclusions): New exclusion table.
11521 (attr_naked_exclusions): Likewise.
11522 (attr_crit_exclusions): Likewise.
11523 (attr_lower_exclusions): Likewise.
11524 (attr_upper_exclusions): Likewise.
11525 (attr_either_exclusions): Likewise.
11526 (attr_persist_exclusions): Likewise.
11527 (msp430_attribute_table): Update with exclusion rules.
11528 (msp430_output_aligned_decl_common): Don't output common symbol if decl
11529 has a section.
11530
11531 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11532
11533 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
11534 (msp430_handle_generic_attribute): New function.
11535 * doc/tm.texi: Regenerate.
11536 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
11537 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11538 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11539 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
11540
11541 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
11542
11543 PR tree-optimization/91504
11544 * match.pd: Add ((~a & b) ^a) --> (a | b).
11545
11546 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11547
11548 PR target/91604
11549 * config/i386/i386-expand.c (split_double_mode): If there is more than
11550 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
11551 already split matching MEM operand instead of calling adjust_address
11552 again.
11553
11554 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
11555
11556 * config.gcc: Obsolete spu target. Remove references to spu.
11557 * configure.ac: Remove references to spu.
11558 * configure: Regenerate.
11559 * config/spu/: Remove directory.
11560 * common/config/spu/: Remove directory.
11561
11562 * doc/extend.texi: Remove references to spu.
11563 * doc/invoke.texi: Likewise.
11564 * doc/md.texi: Likewise.
11565 * doc/sourcebuild.texi: Likewise.
11566
11567 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11568
11569 PR middle-end/91603
11570 PR middle-end/91612
11571 PR middle-end/91613
11572 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11573 and SSA_NAME referring to CONSTANT_P correctly.
11574
11575 2019-09-03 Richard Biener <rguenther@suse.de>
11576
11577 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11578 (vn_nary_op_insert): Likewise.
11579 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11580 (vn_nary_op_lookup): Likewise.
11581 (vn_nary_op_insert): Likewise.
11582
11583 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11584
11585 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11586 (*op0, 1) instead of XEXP (*op1, 0).
11587
11588 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11589
11590 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11591 (aarch64_fjcvtzs): New define_insn.
11592 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11593 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11594 Add AARCH64_JSCVT.
11595 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11596 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11597 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11598 __ARM_FEATURE_JCVT where appropriate.
11599 * config/aarch64/arm_acle.h (__jcvt): Define.
11600
11601 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11602
11603 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11604 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11605 (aarch64_<frintnzs_op><mode>): New define_insn.
11606 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11607 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11608 __ARM_FEATURE_FRINT when appropriate.
11609 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11610 frint32x, frint64z, frint64x.
11611 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11612 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11613 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11614 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11615 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11616 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11617 * config/aarch64/iterators.md (VSFDF): Define.
11618 (FRINTNZX): Likewise.
11619 (frintnzs_op): Likewise.
11620
11621 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11622
11623 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11624 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11625 Cortex-A34.
11626 * config/aarch64/aarch64-tune.md: Regenerated.
11627 * doc/invoke.texi: Document the new processors.
11628
11629 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11630
11631 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11632 string.
11633 (ssbs): Likewise.
11634 (sve2): Likewise.
11635 (sve2-sm4): Likewise.
11636 (sveaes): Likewise.
11637 (svesha3): Likewise.
11638 (svebitperm): Likewise.
11639
11640 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11641 Richard Biener <rguenther@suse.de>
11642
11643 PR tree-optimization/91597
11644 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11645 BIT_AND_EXPR optimization for pointers, even if both operand
11646 ranges don't include NULL, the result can be NULL.
11647
11648 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11649
11650 PR middle-end/91605
11651 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11652 (non_mem_decl_p): ...this.
11653 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11654 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11655 unconditionally as before.
11656
11657 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11658
11659 PR target/91323
11660 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11661 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11662 * tree.def (LTGT_EXPR): Likewise.
11663 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11664
11665 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11666
11667 PR go/91617
11668 * fold-const.c (range_check_type): For enumeral and boolean
11669 type, pass 1 to type_for_size langhook instead of
11670 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11671 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11672 (build_range_check): Don't call unsigned_type_for for pointer types.
11673 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11674 range_check_type result.
11675
11676 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11677
11678 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11679 (replace_ref): Do not replace a chain of only two candidates which are
11680 valid memory references.
11681
11682 2019-09-02 Martin Liska <mliska@suse.cz>
11683
11684 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11685 Bail out when we'll end up with the same number of clusters as
11686 at the beginning.
11687 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11688 (jump_table_cluster::can_be_handled): Remove the guard
11689 as it's already handled in ::is_enabled. Allocate output
11690 after early bail out.
11691
11692 2019-09-02 Martin Liska <mliska@suse.cz>
11693
11694 PR gcov-profile/91601
11695 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11696 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11697 also negative edges.
11698 (circuit): Handle also negative edges as they can happen
11699 in some situations.
11700
11701 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11702
11703 PR target/91472
11704 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11705 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11706 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11707
11708 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11709
11710 PR middle-end/91623
11711 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11712 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11713 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11714 zero vector.
11715
11716 PR lto/91572
11717 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11718 GIMPLE_ASM TREE_LIST operands.
11719
11720 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11721
11722 * doc/generic.texi (Unary and Binary Expressions): Mark up
11723 an instance of TYPE_MIN.
11724
11725 2019-08-31 Stafford Horne <shorne@gmail.com>
11726
11727 * config/or1k/constraints.md (t): New constraint.
11728 * config/or1k/or1k.h (GOT_REGS): New register class.
11729 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11730
11731 2019-08-30 Jim Wilson <jimw@sifive.com>
11732
11733 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11734 and -fpic and -mplt then disable -msave-restore and warn.
11735
11736 2019-08-30 Martin Sebor <msebor@redhat.com>
11737
11738 PR middle-end/91599
11739 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11740 the statement doesn't have one.
11741 * gimple-pretty-print.c (percent_G_format): Same.
11742
11743 PR middle-end/91584
11744 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11745 before using them to validate MEM_REF offset.
11746
11747 2019-08-30 Marek Polacek <polacek@redhat.com>
11748
11749 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11750
11751 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11752
11753 * config/arm/arm.md (unaligned_loaddi,
11754 unaligned_storedi): New unspec insn patterns.
11755 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11756 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11757 and unaligned_storedi for 4-byte aligned memory.
11758 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11759 4-byte aligned memory.
11760
11761 2019-08-30 Martin Jambor <mjambor@suse.cz>
11762
11763 tree-optimization/91579
11764 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11765 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11766 appropriate.
11767 (arg_needs_copy_p): Removed.
11768 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11769 arg_needs_copy_p.
11770 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11771
11772 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11773
11774 * config/i386/i386-features.c
11775 (general_scalar_chain::compute_convert_gain):
11776 Correct cost for double-word shifts.
11777 (general_scalar_to_vector_candidate_p): Reject count operands
11778 greater or equal to mode bitsize.
11779
11780 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11781
11782 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11783 for moves between SSE and non-general registers and between
11784 mask and non-general registers.
11785 (ix86_register_move_cost): Remove stalled comment.
11786
11787 2019-08-29 Richard Biener <rguenther@suse.de>
11788
11789 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11790 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11791
11792 2019-08-29 Richard Biener <rguenther@suse.de>
11793
11794 PR bootstrap/91580
11795 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11796 Do not emit scalar copies for debug-insns, instead replace
11797 their uses with the reg copy used in the chain or reset them
11798 if there is a reaching definition outside of the chain as well.
11799
11800 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11801
11802 PR target/91560
11803 * config/i386/i386-expand.c (expand_vec_perm_movs,
11804 expand_vec_perm_blend, expand_vec_perm_vpermil,
11805 expand_vec_perm_pshufb, expand_vec_perm_1,
11806 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11807 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11808 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11809 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11810 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11811 comments - replace ix86_expand_vec_perm_builtin_1 with
11812 ix86_expand_vec_perm_const_1.
11813 (expand_vec_perm2_vperm2f128_vblend): New function.
11814 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11815 expand_vec_perm2_vperm2f128_vblend as last resort.
11816 (canonicalize_perm): Formatting fix.
11817
11818 PR tree-optimization/91351
11819 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11820 unsigned_type_for.
11821 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11822 range_check_type returns NULL.
11823 * tree-switch-conversion.c (switch_conversion::build_one_array):
11824 Use range_check_type instead of unsigned_type_for, don't perform
11825 linear opt if it returns NULL.
11826 (bit_test_cluster::find_bit_tests): Formatting fix.
11827 (bit_test_cluster::emit): Use range_check_type instead of
11828 unsigned_type_for.
11829 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11830 returns NULL.
11831
11832 2019-08-29 Richard Biener <rguenther@suse.de>
11833
11834 PR tree-optimization/91568
11835 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11836 (vect_update_max_nunits): Add overload for poly_uint64.
11837 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11838 (vect_build_slp_tree): Record max_nunits into the subtree
11839 and merge it upwards.
11840 (vect_print_slp_tree): Print max_nunits.
11841
11842 2019-08-28 Marek Polacek <polacek@redhat.com>
11843
11844 Implement P1152R4: Deprecating some uses of volatile.
11845 PR c++/91361
11846 * doc/invoke.texi: Document -Wvolatile.
11847
11848 2019-08-28 Marek Polacek <polacek@redhat.com>
11849
11850 PR c++/91360 - Implement C++20 P1143R2: constinit.
11851 * doc/invoke.texi: Document -Wc++20-compat.
11852
11853 2019-08-28 Martin Sebor <msebor@redhat.com>
11854
11855 PR tree-optimization/91457
11856 * builtins.c (component_size): New function.
11857 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11858 * builtins.h (compute_objsize): Add argument.
11859 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11860 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11861 (vrp_prop::check_mem_ref): Same.
11862 (vrp_prop::search_for_addr_array): Set no-warning bit.
11863 (check_array_bounds): Same.
11864
11865 2019-08-28 Martin Sebor <msebor@redhat.com>
11866
11867 PR driver/80545
11868 * opts-common.c (option_enabled): Correct checking for language
11869 options.
11870
11871 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11872
11873 * config/i386/i386.c (ix86_register_move_cost): Do not
11874 limit the cost of moves to/from XMM register to minimum 8.
11875
11876 2019-08-28 Martin Jambor <mjambor@suse.cz>
11877
11878 PR ipa/91468
11879 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11880 checking assert a normal assert to test it really is redundant.
11881 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11882 redundant test.
11883 (update_jump_functions_after_inlining): Removed combining unary
11884 arithmetic operations with an ancestor jump function.
11885 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11886 instead of t.
11887
11888 2019-08-28 Richard Biener <rguenther@suse.de>
11889
11890 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11891 add the MD problem.
11892
11893 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11894 Richard Biener <rguenther@suse.de>
11895
11896 * expr.c (expand_assignment): Handle misaligned DECLs.
11897 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11898 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11899 too.
11900 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11901 * varasm.c (build_constant_desc): Align constants of misaligned types.
11902 * config/arm/predicates.md (aligned_operand): New predicate.
11903 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11904 aligned_operand to check restrictions on memory addresses.
11905 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11906 * config/arm/vec-common.md (mov<VALL>): Likewise.
11907
11908 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11909
11910 PR libgomp/91530
11911 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11912 V_128 iterator instead of VI_128.
11913
11914 2019-08-28 Martin Liska <mliska@suse.cz>
11915
11916 PR tree-optimization/90970
11917 * builtins.c (check_access): Remove assignment to maxread
11918 as it hasn't been used since when it was introduced in r255755.
11919
11920 2019-08-27 Martin Sebor <msebor@redhat.com>
11921
11922 PR tree-optimization/91567
11923 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11924 of unknown strings.
11925 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11926 to PTRDIFF_MAX - 2.
11927
11928 2019-08-27 Jeff Law <law@redhat.com>
11929
11930 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11931 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11932
11933 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11934
11935 PR target/91528
11936 * config/i386/i386-features.c (convert_scalars_to_vector):
11937 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11938 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11939 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11940 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11941
11942 2019-08-27 Richard Biener <rguenther@suse.de>
11943
11944 * config/i386/i386-features.h
11945 (general_scalar_chain::~general_scalar_chain): Add.
11946 (general_scalar_chain::insns_conv): New bitmap.
11947 (general_scalar_chain::n_sse_to_integer): New.
11948 (general_scalar_chain::n_integer_to_sse): Likewise.
11949 (general_scalar_chain::make_vector_copies): Adjust signature.
11950 * config/i386/i386-features.c
11951 (general_scalar_chain::general_scalar_chain): Outline,
11952 initialize new members.
11953 (general_scalar_chain::~general_scalar_chain): New.
11954 (general_scalar_chain::mark_dual_mode_def): Record insns
11955 we need to insert conversions at and count them.
11956 (general_scalar_chain::compute_convert_gain): Account
11957 for conversion instructions at chain boundary.
11958 (general_scalar_chain::make_vector_copies): Generate a single
11959 copy for a def by a specific insn.
11960 (general_scalar_chain::convert_registers): First populate
11961 defs_map, then make copies at out-of chain insns.
11962
11963 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11964
11965 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11966 comment.
11967 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11968
11969 2019-08-27 Martin Liska <mliska@suse.cz>
11970
11971 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11972 loop.
11973 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11974 Enclose in anonymous namespace.
11975 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11976 hard_register initialization in braces.
11977 * tree-vrp.h (value_range_base::supports_type_p): Return false
11978 for function with boolean return type.
11979
11980 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11981
11982 * config/i386/i386.c (emit_i387_cw_initialization)
11983 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11984
11985 2019-08-26 Martin Sebor <msebor@redhat.com>
11986
11987 PR c++/83431
11988 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11989 (sprintf_dom_walker): Remove class.
11990 (get_int_range): Make argument const.
11991 (directive::fmtfunc, directive::set_precision): Same.
11992 (format_none): Same.
11993 (build_intmax_type_nodes): Same.
11994 (adjust_range_for_overflow): Same.
11995 (format_floating): Same.
11996 (format_character): Same.
11997 (format_string): Same.
11998 (format_plain): Same.
11999 (get_int_range): Cast away constness.
12000 (format_integer): Same.
12001 (get_string_length): Call get_range_strlen_dynamic. Handle
12002 null lendata.maxbound.
12003 (should_warn_p): Adjust argument scope qualifier.
12004 (maybe_warn): Same.
12005 (format_directive): Same.
12006 (parse_directive): Same.
12007 (is_call_safe): Same.
12008 (try_substitute_return_value): Same.
12009 (sprintf_dom_walker::handle_printf_call): Rename...
12010 (handle_printf_call): ...to this. Initialize target to host charmap
12011 here instead of in pass_sprintf_length::execute.
12012 (struct call_info): Make global.
12013 (sprintf_dom_walker::compute_format_length): Make global.
12014 (sprintf_dom_walker::handle_gimple_call): Same.
12015 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12016 * print-rtl.c (print_pattern): Reduce the number of spaces to
12017 avoid -Wformat-truncation.
12018 * tree-pass.h (make_pass_warn_printf): New function.
12019 * tree-ssa-strlen.c (strlen_optimize): New variable.
12020 (get_string_length): Add comments.
12021 (get_range_strlen_dynamic): New function.
12022 (check_and_optimize_call): New function.
12023 (handle_integral_assign): New function.
12024 (strlen_check_and_optimize_stmt): Factor code out into
12025 strlen_check_and_optimize_call and handle_integral_assign.
12026 (strlen_dom_walker::evrp): New member.
12027 (strlen_dom_walker::before_dom_children): Use evrp member.
12028 (strlen_dom_walker::after_dom_children): Use evrp member.
12029 (printf_strlen_execute): New function.
12030 (pass_strlen::gate): Update to handle printf calls.
12031 (dump_strlen_info): New function.
12032 (pass_data_warn_printf): New variable.
12033 (pass_warn_printf): New class.
12034 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12035 (handle_printf_call): Same.
12036 * tree-vrp.c (value_range_base::type): Adjust assertion.
12037 * vr-values.c (vr_values::update_value_range): Use type of the first
12038 argument rather than the second.
12039
12040 2019-08-26 Richard Biener <rguenther@suse.de>
12041
12042 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12043 Remove.
12044 (convert_scalars_to_vector): Do not call it.
12045
12046 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12047 Uros Bizjak <ubizjak@gmail.com>
12048
12049 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12050 CASE_MATHFN_FLOATN for roundeven.
12051 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12052 I387_ROUNDEVEN.
12053 (ix86_mode_needed): Likewise.
12054 (ix86_mode_after): Likewise.
12055 (ix86_mode_entry): Likewise.
12056 (ix86_mode_exit): Likewise.
12057 (ix86_emit_mode_set): Likewise.
12058 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12059 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12060 (ix86_entity): Add I387_ROUNDEVEN.
12061 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12062 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12063 (define_int_iterator): Likewise.
12064 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12065 (define_constant): Define ROUND_ROUNDEVEN mode.
12066 (define_attr): Add roundeven mode for i387_cw.
12067 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12068 * internal-fn.def (ROUNDEVEN): New builtin function.
12069 * optabs.def (roundeven_optab): New optab.
12070
12071 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12072
12073 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12074 for ROUNDEVEN.
12075 * builtins.def: Added function definitions for roundeven function
12076 variants.
12077 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12078 function call. Adjust condition for floor, ceil, trunc and round.
12079 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12080 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12081 (integer_valued_real_call_p): Added case for roundeven function.
12082 * real.c (is_even): New function. Returns true if real number is even,
12083 otherwise returns false.
12084 (is_halfway_below): New function. Returns true if real number is
12085 halfway between two integers, else return false.
12086 (real_roundeven): New function. Round real number to nearest integer,
12087 rounding halfway cases towards even.
12088 * real.h (real_value): Added descriptive comments. Added function
12089 declaration for roundeven function.
12090 * doc/extend.texi (Other Builtins): List roundeven variants among
12091 functions which can be handled as builtins.
12092
12093 2019-08-26 Richard Biener <rguenther@suse.de>
12094
12095 PR target/91522
12096 PR target/91527
12097 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12098 New member.
12099 (general_scalar_chain::replace_with_subreg): Remove.
12100 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12101 (general_scalar_chain::convert_reg): Adjust signature.
12102 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12103 iterate over all defs of a reg.
12104 (general_scalar_chain::replace_with_subreg): Remove.
12105 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12106 (general_scalar_chain::make_vector_copies): Populate defs_map,
12107 place copy only after defs that are used as vectors in the chain.
12108 (general_scalar_chain::convert_reg): Emit a copy for a specific
12109 def in a specific instruction.
12110 (general_scalar_chain::convert_op): All reg uses are converted here.
12111 (general_scalar_chain::convert_insn): Emit copies for scalar
12112 uses of defs here. Replace uses with the copies we created.
12113 Replace and convert the def. Adjust REG_DEAD notes, remove
12114 REG_EQUIV/EQUAL notes.
12115 (general_scalar_chain::convert_registers): Only handle copies
12116 into the chain here.
12117
12118 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12119
12120 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12121
12122 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12123
12124 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12125 Add nop_convert case.
12126 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12127 Fold all statements if requested.
12128 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12129 Allow to fold all statements.
12130 * tree-vrp.c (class vrp_folder):
12131 Let substitute_and_fold_engine fold all statements.
12132
12133 2019-08-26 Richard Biener <rguenther@suse.de>
12134
12135 PR tree-optimization/91526
12136 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12137 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12138 TODO_update_address_taken.
12139
12140 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12141
12142 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12143 __STDC_HOSTED__.
12144
12145 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12146
12147 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12148 machine mode for unspec_volatile operand.
12149
12150 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12151
12152 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12153 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12154 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12155 (prefer_neon_for_64bits): Remove.
12156 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12157 (tune_params): Remove PREF_NEON_64_FALSE uses.
12158 (arm_option_override): Remove prefer_neon selection code.
12159 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12160 * config/arm/arm-protos.h (tune_params): Remove
12161 prefer_neon_for_64bits.
12162 (prefer_neon_for_64bits): Remove.
12163
12164 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12165
12166 PR pch/61250
12167 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12168 and issue any diagnostics needed before collecting the pre-PCH
12169 state.
12170
12171 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12172
12173 PR middle-end/91283
12174 * common.opt (fexcess-precision=): Add Optimization flag. Use
12175 flag_excess_precision variable instead of
12176 flag_excess_precision_cmdline.
12177 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12178 member.
12179 (flag_excess_precision): Don't define.
12180 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12181 flag_excess_precision_cmdline. Remove comment.
12182 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12183 and x_flag_excess_precision instead of
12184 frontend_set_flag_excess_precision_cmdline and
12185 x_flag_excess_precision_cmdline.
12186 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12187 x_flag_excess_precision_cmdline.
12188 * toplev.c (init_excess_precision): Remove.
12189 (lang_dependent_init_target): Don't call it.
12190
12191 2019-08-23 Martin Liska <mliska@suse.cz>
12192
12193 * lto-wrapper.c (run_gcc): When setting jobserver
12194 set also parallel to 1. This was done so before r273908.
12195
12196 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12197
12198 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12199 (cortex-a76ae): Likewise.
12200 (cortex-a77): Likewise
12201 * config/arm/arm-tables.opt: Regenerate.
12202 * config/arm/arm-tune.md: Likewise.
12203 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12204 cortex-a77 CPU options.
12205
12206 2019-08-23 Martin Liska <mliska@suse.cz>
12207
12208 * profile.c (instrument_values): Do not set
12209 0 as last argument.
12210 * tree-profile.c (gimple_gen_interval_profiler): Remove
12211 last argument.
12212 (gimple_gen_pow2_profiler): Likewise.
12213 (gimple_gen_topn_values_profiler): Likewise.
12214 (gimple_gen_ic_profiler): Likewise.
12215 (gimple_gen_time_profiler): Likewise.
12216 (gimple_gen_average_profiler): Likewise.
12217 (gimple_gen_ior_profiler): Likewise.
12218 * value-prof.c (dump_histogram_value): Use default
12219 in switch statement instead of HIST_TYPE_MAX.
12220 (stream_in_histogram_value): Likewise.
12221 (gimple_duplicate_stmt_histograms): Do not
12222 use NULL for implicitly set arguments.
12223 (gimple_divmod_values_to_profile): Do not use
12224 reserve+quick_push.
12225 (gimple_indirect_call_to_profile): Likewise.
12226 (gimple_find_values_to_profile): Use implicit
12227 function call arguments.
12228 * value-prof.h (gimple_alloc_histogram_value):
12229 Set default values.
12230 (gimple_gen_interval_profiler): Remove last argument.
12231 (gimple_gen_pow2_profiler): Likewise.
12232 (gimple_gen_topn_values_profiler): Likewise.
12233 (gimple_gen_ic_profiler): Likewise.
12234 (gimple_gen_time_profiler): Likewise.
12235 (gimple_gen_average_profiler): Likewise.
12236 (gimple_gen_ior_profiler): Likewise.
12237
12238 2019-08-22 Martin Sebor <msebor@redhat.com>
12239
12240 PR middle-end/91490
12241 * builtins.c (c_strlen): Rename argument and introduce new local.
12242 Set no-warning bit on original argument.
12243 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
12244 Fold empty and zero constructors into empty strings.
12245 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
12246 for missing initializers.
12247 * tree.c (build_string_literal): Handle optional argument.
12248 * tree.h (build_string_literal): Add defaulted argument.
12249 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
12250 no-warning bit on original expression.
12251
12252 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12253
12254 PR target/91481
12255 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12256 and UNSPEC_DARN_RAW.
12257 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
12258 UNSPECV_DARN_RAW.
12259 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
12260 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
12261 (darn): Use an unspec_volatile, and UNSPECV_DARN.
12262
12263 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12264
12265 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12266 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
12267 * config/rs6000/rs6000.md (unspec): ... here.
12268 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
12269 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12270 cmpeqb, *cmpeqb_internal): Delete, move to...
12271 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
12272 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12273 cmpeqb, *cmpeqb_internal): ... here.
12274
12275 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12276
12277 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
12278 intrinsics if __ARM_FP.
12279 Use __ARM_FEATURE_CRC32 ifdef guard.
12280
12281 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12282
12283 * config/arm/arm.md (neon_for_64bits): Remove.
12284 (avoid_neon_for_64bits): Remove.
12285 (arm_adddi3): Always split early.
12286 (arm_subdi3): Always split early.
12287 (negdi2): Remove Neon expansion.
12288 (split zero_extend): Split before reload.
12289 (split sign_extend): Split before reload.
12290
12291 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12292
12293 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
12294 (qhs_extenddi_cstr): Likewise.
12295 * config/arm/arm.md (ashldi3): Always expand early.
12296 (ashlsi3): Likewise.
12297 (ashrsi3): Likewise.
12298 (zero_extend<mode>di2): Remove Neon variants.
12299 (extend<mode>di2): Likewise.
12300 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
12301 (signed_shift_di3_neon): Likewise.
12302 (unsigned_shift_di3_neon): Likewise.
12303 (ashrdi3_neon_imm_noclobber): Likewise.
12304 (lshrdi3_neon_imm_noclobber): Likewise.
12305 (<shift>di3_neon): Likewise.
12306 (split extend): Remove DI extend split patterns.
12307
12308 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12309
12310 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
12311 (split not): Add DImode not splitter.
12312 (anddi3): Remove pattern.
12313 (anddi3_insn): Likewise.
12314 (anddi_zesidi_di): Likewise.
12315 (anddi_sesdi_di): Likewise.
12316 (anddi_notdi_di): Likewise.
12317 (anddi_notzesidi_di): Likewise.
12318 (anddi_notsesidi_di): Likewise.
12319 (iordi3): Likewise.
12320 (iordi3_insn): Likewise.
12321 (iordi_zesidi_di): Likewise.
12322 (iordi_sesidi_di): Likewise.
12323 (xordi3): Likewise.
12324 (xordi3_insn): Likewise.
12325 (xordi_sesidi_di): Likewise.
12326 (xordi_zesidi_di): Likewise.
12327 (one_cmpldi2): Likewise.
12328 (one_cmpldi2_insn): Likewise.
12329 * config/arm/constraints.md: Remove De, Df, Dg constraints.
12330 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
12331 alternative.
12332 (iwmmxt_xordi3): Likewise.
12333 (iwmmxt_anddi3): Likewise.
12334 * config/arm/neon.md (orndi3_neon): Remove pattern.
12335 (anddi_notdi_di): Likewise.
12336 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
12337 (arm_iordi_operand_neon): Likewise.
12338 (arm_xordi_operand_neon): Likewise.
12339 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
12340 (iordi_notzesidi_di): Likewise.
12341 (iordi_notdi_zesidi): Likewise.
12342 (iordi_notsesidi_di): Likewise.
12343
12344 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
12345
12346 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
12347 insn.
12348 (iorsi3_compare0_scratch): Likewise.
12349
12350 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
12351
12352 * config/aarch64/aarch64-simd-builtins.def:
12353 (ld1x4): New.
12354 (st1x4): Likewise.
12355 * config/aarch64/aarch64-simd.md:
12356 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
12357 (aarch64_st1x4<VALLDIF:mode>): Likewise.
12358 (aarch64_ld1_x4_<mode>): Likewise.
12359 (aarch64_st1_x4_<mode>): Likewise.
12360 * config/aarch64/arm_neon.h:
12361 (vld1_s8_x4): New function.
12362 (vld1q_s8_x4): Likewise.
12363 (vld1_s16_x4): Likewise.
12364 (vld1q_s16_x4): Likewise.
12365 (vld1_s32_x4): Likewise.
12366 (vld1q_s32_x4): Likewise.
12367 (vld1_u8_x4): Likewise.
12368 (vld1q_u8_x4): Likewise.
12369 (vld1_u16_x4): Likewise.
12370 (vld1q_u16_x4): Likewise.
12371 (vld1_u32_x4): Likewise.
12372 (vld1q_u32_x4): Likewise.
12373 (vld1_f16_x4): Likewise.
12374 (vld1q_f16_x4): Likewise.
12375 (vld1_f32_x4): Likewise.
12376 (vld1q_f32_x4): Likewise.
12377 (vld1_p8_x4): Likewise.
12378 (vld1q_p8_x4): Likewise.
12379 (vld1_p16_x4): Likewise.
12380 (vld1q_p16_x4): Likewise.
12381 (vld1_s64_x4): Likewise.
12382 (vld1_u64_x4): Likewise.
12383 (vld1_p64_x4): Likewise.
12384 (vld1q_s64_x4): Likewise.
12385 (vld1q_u64_x4): Likewise.
12386 (vld1q_p64_x4): Likewise.
12387 (vld1_f64_x4): Likewise.
12388 (vld1q_f64_x4): Likewise.
12389 (vst1_s8_x4): Likewise.
12390 (vst1q_s8_x4): Likewise.
12391 (vst1_s16_x4): Likewise.
12392 (vst1q_s16_x4): Likewise.
12393 (vst1_s32_x4): Likewise.
12394 (vst1q_s32_x4): Likewise.
12395 (vst1_u8_x4): Likewise.
12396 (vst1q_u8_x4): Likewise.
12397 (vst1_u16_x4): Likewise.
12398 (vst1q_u16_x4): Likewise.
12399 (vst1_u32_x4): Likewise.
12400 (vst1q_u32_x4): Likewise.
12401 (vst1_f16_x4): Likewise.
12402 (vst1q_f16_x4): Likewise.
12403 (vst1_f32_x4): Likewise.
12404 (vst1q_f32_x4): Likewise.
12405 (vst1_p8_x4): Likewise.
12406 (vst1q_p8_x4): Likewise.
12407 (vst1_p16_x4): Likewise.
12408 (vst1q_p16_x4): Likewise.
12409 (vst1_s64_x4): Likewise.
12410 (vst1_u64_x4): Likewise.
12411 (vst1_p64_x4): Likewise.
12412 (vst1q_s64_x4): Likewise.
12413 (vst1q_u64_x4): Likewise.
12414 (vst1q_p64_x4): Likewise.
12415 (vst1_f64_x4): Likewise.
12416 (vst1q_f64_x4): Likewise.
12417
12418 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12419
12420 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12421
12422 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12423 Richard Sandiford <richard.sandiford@arm.com>
12424
12425 PR target/88839
12426 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12427 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
12428
12429 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12430
12431 PR target/90724
12432 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
12433 in reg if it fails aarch64_plus_operand predicate.
12434
12435 2019-08-21 Richard Biener <rguenther@suse.de>
12436
12437 PR tree-optimization/91482
12438 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
12439 BUILT_IN_ASSUME_ALIGNED calls.
12440
12441 2019-08-21 Richard Biener <rguenther@suse.de>
12442
12443 PR target/91498
12444 PR target/91503
12445 * config/i386/i386-features.c
12446 (general_scalar_chain::make_vector_copies): Copy stack temporary
12447 rtx when using it multiple times.
12448 (general_scalar_chain::convert_reg): Likewise.
12449
12450 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12451
12452 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
12453
12454 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
12455
12456 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
12457 catch more redundant zero initialization cases.
12458 (dse_dom_walker::dse_optimize_stmt): Likewise.
12459
12460 2019-08-20 Richard Biener <rguenther@suse.de>
12461
12462 PR lto/91307
12463 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
12464 by collect2 when targetm.have_ctors_dtors which avoids dragging
12465 in temporary filenames from LTO input objects.
12466
12467 2019-08-20 Richard Biener <rguenther@suse.de>
12468
12469 PR tree-optimization/37242
12470 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
12471 to (T)a + (T)b if we know that a + b does not overflow.
12472
12473 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
12474
12475 PR rtl-optimization/91347
12476 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
12477 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
12478
12479 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12480
12481 * calls.h (function_arg_info): Add a pass_by_reference field,
12482 defaulting to false.
12483 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12484 when applying pass-by-reference semantics.
12485 (initialize_argument_information): Likewise.
12486 (emit_library_call_value_1): Likewise.
12487 * function.c (assign_parm_data_one): Remove passed_pointer field.
12488 (assign_parm_find_data_types): Don't set it.
12489 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
12490 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
12491 arg.pass_by_reference instead of passed_pointer.
12492
12493 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12494
12495 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
12496 into a single function_arg_info, updating its fields when we
12497 apply pass-by-reference and promotion semantics. Use the
12498 function_arg_info to track the mode rather than keeping it in
12499 a separate local variable.
12500 (initialize_argument_information): Likewise. Base the final
12501 arg_to_skip on this new function_arg_info rather than creating
12502 a new one from scratch.
12503
12504 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12505
12506 * function.c (assign_parm_data_one): Replace passed_type,
12507 promoted_mode and named_arg with a function_arg_info field.
12508 (assign_parm_find_data_types): Remove local variables and
12509 assign directly to "data". Make data->passed_mode shadow
12510 data->arg.mode until promotion, then assign the promoted
12511 mode to data->arg.mode.
12512 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
12513 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
12514 (assign_parm_remove_parallels, assign_parm_setup_block_p)
12515 (assign_parm_setup_block, assign_parm_setup_reg)
12516 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
12517 arg.mode instead of promoted_mode, arg.type instead of passed_type
12518 and arg.named instead of named_arg. Use data->arg for
12519 function_arg_info structures that had the field values passed_type,
12520 promoted_mode and named_arg. Base other function_arg_infos on
12521 data->arg, changing the necessary properties.
12522
12523 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12524
12525 * calls.h (apply_pass_by_reference_rules): Declare.
12526 * calls.c (apply_pass_by_reference_rules): New function.
12527 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
12528 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
12529 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12530 * function.c (assign_parm_find_data_types): Likewise.
12531 * var-tracking.c (prepare_call_arguments): Likewise.
12532
12533 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12534
12535 * target.def (must_pass_in_stack): Take a function_arg_info instead
12536 of a mode and a type.
12537 * doc/tm.texi: Regenerate.
12538 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
12539 instead of a mode and a type.
12540 (must_pass_in_stack_var_size_or_pad): Likewise.
12541 * calls.c (must_pass_in_stack_var_size): Likewise.
12542 (must_pass_in_stack_var_size_or_pad): Likewise.
12543 (initialize_argument_information): Update call to
12544 targetm.calls.must_pass_in_stack.
12545 (must_pass_va_arg_on_stack): Likewise.
12546 * function.c (assign_parm_find_entry_rtl): Likewise.
12547 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
12548 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12549 (alpha_function_arg_advance): Likewise.
12550 * config/cr16/cr16.c (cr16_function_arg): Likewise.
12551 (cr16_function_arg_advance): Likewise.
12552 * config/cris/cris.c (cris_pass_by_reference): Likewise.
12553 (cris_arg_partial_bytes): Likewise.
12554 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12555 * config/lm32/lm32.c (lm32_function_arg): Likewise.
12556 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
12557 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
12558 * config/mips/mips.c (mips_pass_by_reference): Likewise.
12559 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
12560 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
12561 * config/sh/sh.c (sh_pass_by_reference): Likewise.
12562 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12563 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12564 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
12565 instead of a mode and a type.
12566 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
12567 (fr30_num_arg_regs): Likewise.
12568 (fr30_setup_incoming_varargs): Update calls accordingly.
12569 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12570 (fr30_function_arg_advance): Likewise.
12571 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12572 instead of a mode and a type.
12573 * config/gcn/gcn.c (num_arg_regs): Likewise.
12574 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12575 num_arg_regs and targetm.calls.must_pass_in_stack.
12576 (gcn_arg_partial_bytes): Likewise.
12577 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12578 function_arg_info instead of a mode and a type.
12579 (classify_argument): Update call accordingly.
12580 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12581 function_arg_info instead of a mode and a type.
12582 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12583 Likewise.
12584 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12585 (rs6000_parm_needs_stack): Update call accordingly.
12586 (setup_incoming_varargs): Likewise.
12587
12588 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12589
12590 * target.def (callee_copies): Take a function_arg_info instead
12591 of a mode, type and named flag.
12592 * doc/tm.texi: Regenerate.
12593 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12594 instead of a mode, type and named flag.
12595 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12596 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12597 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12598 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12599 instead of a mode, type and named flag.
12600 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12601 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12602 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12603 * calls.h (reference_callee_copied): Take a function_arg_info
12604 instead of a mode, type and named flag.
12605 * calls.c (reference_callee_copied): Likewise.
12606 (initialize_argument_information): Update call accordingly.
12607 (emit_library_call_value_1): Likewise.
12608 * function.c (gimplify_parameters): Likewise.
12609 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12610 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12611 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12612 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12613 (TARGET_CALLEE_COPIES): Define to
12614 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12615 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12616 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12617 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12618 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12619 instead of a mode, type and named flag.
12620 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12621 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12622 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12623 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12624 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12625 (TARGET_CALLEE_COPIES): Define to
12626 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12627 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12628 instead of a mode, type and named flag.
12629 * config/sh/sh.c (sh_callee_copies): Likewise.
12630 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12631 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12632 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12633
12634 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12635
12636 * target.def (function_arg_advance): Take a function_arg_info instead
12637 of a mode, type and named flag.
12638 * doc/tm.texi: Regenerate.
12639 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12640 instead of a mode, type and named flag.
12641 * targhooks.c (default_function_arg_advance): Likewise.
12642 * calls.c (initialize_argument_information): Update call to
12643 targetm.calls.function_arg_advance.
12644 (emit_library_call_value_1): Likewise.
12645 * dse.c (get_call_args): Likewise.
12646 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12647 * function.c (assign_parms, gimplify_parameters): Likewise.
12648 * var-tracking.c (prepare_call_arguments): Likewise.
12649 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12650 function_arg_info instead of a mode, type and named flag.
12651 (aarch64_setup_incoming_varargs): Update call accordingly.
12652 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12653 function_arg_info instead of a mode, type and named flag.
12654 (alpha_setup_incoming_varargs): Update call accordingly.
12655 * config/arc/arc.c (arc_function_arg_advance): Take a
12656 function_arg_info instead of a mode, type and named flag.
12657 (arc_setup_incoming_varargs): Update call accordingly.
12658 * config/arm/arm.c (arm_function_arg_advance): Take a
12659 function_arg_info instead of a mode, type and named flag.
12660 (cmse_func_args_or_return_in_stack): Update call accordingly.
12661 (arm_function_ok_for_sibcall): Likewise.
12662 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12663 * config/avr/avr.c (avr_function_arg_advance): Take a
12664 function_arg_info instead of a mode, type and named flag.
12665 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12666 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12667 (c6x_call_saved_register_used): Update call accordingly.
12668 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12669 function_arg_info instead of a mode, type and named flag.
12670 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12671 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12672 (csky_setup_incoming_varargs): Update call accordingly.
12673 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12674 function_arg_info instead of a mode, type and named flag.
12675 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12676 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12677 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12678 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12679 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12680 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12681 (ix86_setup_incoming_varargs): Update call accordingly.
12682 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12683 function_arg_info instead of a mode, type and named flag.
12684 (ia64_setup_incoming_varargs): Update call accordingly.
12685 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12686 function_arg_info instead of a mode, type and named flag.
12687 (iq2000_expand_prologue): Update call accordingly.
12688 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12689 function_arg_info instead of a mode, type and named flag.
12690 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12691 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12692 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12693 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12694 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12695 Likewise.
12696 (microblaze_expand_prologue): Update call accordingly.
12697 * config/mips/mips.c (mips_function_arg_advance): Take a
12698 function_arg_info instead of a mode, type and named flag.
12699 (mips_setup_incoming_varargs): Update call accordingly.
12700 (mips_output_args_xfer): Likewise.
12701 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12702 function_arg_info instead of a mode, type and named flag.
12703 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12704 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12705 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12706 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12707 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12708 (nios2_setup_incoming_varargs): Update call accordingly.
12709 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12710 function_arg_info instead of a mode, type and named flag.
12711 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12712 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12713 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12714 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12715 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12716 (riscv_setup_incoming_varargs): Update call accordingly.
12717 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12718 function_arg_info instead of a mode, type and named flag.
12719 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12720 Likewise.
12721 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12722 (rs6000_parm_needs_stack): Update call accordingly.
12723 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12724 instead of a mode, type and named flag.
12725 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12726 (s390_call_saved_register_used): Update call accordingly.
12727 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12728 instead of a mode, type and named flag.
12729 (sh_output_mi_thunk): Update call accordingly.
12730 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12731 function_arg_info instead of a mode, type and named flag.
12732 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12733 (spu_setup_incoming_varargs): Update call accordingly.
12734 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12735 function_arg_info instead of a mode, type and named flag.
12736 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12737 (tilegx_setup_incoming_varargs): Update call accordingly.
12738 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12739 function_arg_info instead of a mode, type and named flag.
12740 (tilegx_setup_incoming_varargs): Update call accordingly.
12741 * config/v850/v850.c (v850_function_arg_advance): Take a
12742 function_arg_info instead of a mode, type and named flag.
12743 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12744 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12745 (visium_setup_incoming_varargs): Update call accordingly.
12746 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12747 function_arg_info instead of a mode, type and named flag.
12748
12749 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12750
12751 * target.def (function_arg, function_incoming_arg): Take a
12752 function_arg_info instead of a mode, tree and named flag.
12753 * doc/tm.texi: Regenerate.
12754 * targhooks.h (default_function_arg): Take a function_arg_info
12755 instead of a mode, tree and named flag.
12756 (default_function_incoming_arg): Likewise.
12757 * targhooks.c (default_function_arg): Likewise.
12758 (default_function_incoming_arg): Likewise.
12759 * calls.h (function_arg_info::end_marker_p): New function.
12760 (function_arg_info::end_marker): Likewise.
12761 * calls.c (prepare_call_address, initialize_argument_information)
12762 (expand_call, emit_library_call_value_1): Update calls to
12763 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12764 * dse.c: Include calls.h.
12765 (get_call_args): Update call to targetm.calls.function_arg.
12766 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12767 * var-tracking.c (prepare_call_arguments): Likewise.
12768 * function.c (assign_parm_find_entry_rtl): Update call to
12769 targetm.calls.function_incoming_arg.
12770 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12771 function_arg_info instead of a mode, tree and named flag.
12772 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12773 * config/arc/arc.c (arc_function_arg): Likewise.
12774 * config/arm/arm.c (arm_function_arg): Likewise.
12775 (cmse_func_args_or_return_in_stack): Update call accordingly.
12776 (arm_function_ok_for_sibcall): Likewise.
12777 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12778 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12779 instead of a mode, tree and named flag.
12780 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12781 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12782 (c6x_call_saved_register_used): Update call accordingly.
12783 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12784 instead of a mode, tree and named flag.
12785 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12786 (cris_function_arg_1): Likewise.
12787 * config/csky/csky.c (csky_function_arg): Likewise.
12788 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12789 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12790 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12791 (frv_function_arg_1): Likewise.
12792 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12793 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12794 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12795 * config/i386/i386.c (ix86_function_arg): Likewise.
12796 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12797 (ia64_function_arg_1): Likewise.
12798 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12799 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12800 accordingly.
12801 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12802 instead of a mode, tree and named flag.
12803 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12804 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12805 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12806 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12807 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12808 (microblaze_expand_prologue): Update call accordingly.
12809 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12810 instead of a mode, tree and named flag.
12811 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12812 (mmix_function_arg_1): Likewise.
12813 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12814 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12815 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12816 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12817 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12818 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12819 (nvptx_function_incoming_arg): Likewise.
12820 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12821 * config/pa/pa.c (pa_function_arg): Likewise.
12822 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12823 * config/pru/pru.c (pru_function_arg): Likewise.
12824 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12825 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12826 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12827 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12828 (rs6000_parm_needs_stack): Update call accordingly.
12829 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12830 instead of a mode, tree and named flag.
12831 * config/s390/s390.c (s390_function_arg): Likewise.
12832 (s390_call_saved_register_used): Update call accordingly.
12833 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12834 instead of a mode, tree and named flag.
12835 (sh_output_mi_thunk): Update call accordingly.
12836 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12837 (sparc_function_incoming_arg): Take a function_arg_info instead of
12838 a mode, tree and named flag.
12839 * config/spu/spu.c (spu_function_arg): Likewise.
12840 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12841 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12842 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12843 * config/v850/v850.c (v850_function_arg): Likewise.
12844 * config/vax/vax.c (vax_function_arg): Likewise.
12845 * config/visium/visium.c (visium_function_arg): Likewise.
12846 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12847 (xtensa_function_incoming_arg): Likewise.
12848
12849 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12850
12851 * target.def (setup_incoming_varargs): Take a function_arg_info
12852 instead of a mode and tree.
12853 * doc/tm.texi: Regenerate.
12854 * targhooks.h (default_setup_incoming_varargs): Take a
12855 function_arg_info instead of a mode and tree.
12856 * targhooks.c (default_setup_incoming_varargs): Likewise.
12857 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12858 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12859 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12860 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12861 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12862 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12863 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12864 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12865 Likewise.
12866 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12867 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12868 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12869 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12870 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12871 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12872 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12873 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12874 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12875 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12876 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12877 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12878 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12879 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12880 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12881 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12882 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12883 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12884 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12885 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12886 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12887 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12888 * function.c (assign_parms_setup_varargs): Update call to
12889 targetm.calls.setup_incoming_varargs.
12890
12891 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12892
12893 * target.def (pass_by_reference): Take a function_arg_info instead
12894 of a mode, type and named flag.
12895 * doc/tm.texi: Regenerate.
12896 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12897 accordingly.
12898 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12899 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12900 function_arg_info instead of a mode, type and named flag.
12901 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12902 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12903 mode, type and named flag.
12904 * calls.c (pass_by_reference): Likewise.
12905 (pass_va_arg_by_reference): Update call accordingly.
12906 (initialize_argument_information): Likewise.
12907 (emit_library_call_value_1): Likewise.
12908 * function.c (assign_parm_find_data_types): Likewise.
12909 * var-tracking.c (prepare_call_arguments): Likewise.
12910 * stor-layout.c: Include calls.h.
12911 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12912 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12913 function_arg_info instead of a mode, type and named flag.
12914 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12915 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12916 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12917 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12918 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12919 (c6x_call_saved_register_used): Update call to pass_by_reference.
12920 * config/cris/cris.c (cris_pass_by_reference): Take a
12921 function_arg_info instead of a mode, type and named flag.
12922 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12923 function_arg_info instead of a mode, type and named flag.
12924 (epiphany_arg_partial_bytes): Update call accordingly.
12925 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12926 function_arg_info instead of a mode, type and named flag.
12927 (ft32_arg_partial_bytes): Update call accordingly.
12928 * config/i386/i386.c (ix86_pass_by_reference): Take a
12929 function_arg_info instead of a mode, type and named flag.
12930 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12931 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12932 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12933 (m32r_return_in_memory): Update call accordingly.
12934 * config/mips/mips.c (mips_pass_by_reference): Take a
12935 function_arg_info instead of a mode, type and named flag.
12936 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12937 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12938 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12939 (moxie_arg_partial_bytes): Update call accordingly.
12940 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12941 function_arg_info instead of a mode, type and named flag.
12942 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12943 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12944 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12945 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12946 (riscv_return_in_memory): Update call accordingly.
12947 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12948 function_arg_info instead of a mode, type and named flag.
12949 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12950 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12951 * config/s390/s390.c (s390_pass_by_reference): Take a
12952 function_arg_info instead of a mode, type and named flag.
12953 (s390_call_saved_register_used): Update call accordingly.
12954 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12955 instead of a mode, type and named flag.
12956 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12957 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12958 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12959 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12960 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12961 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12962
12963 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12964
12965 * target.def (arg_partial_bytes): Take a function_arg_info instead
12966 of a mode, type and named flag.
12967 * doc/tm.texi: Regenerate.
12968 * target.h (function_arg_info): Declare.
12969 * calls.h (function_arg_info): New class.
12970 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12971 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12972 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12973 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12974 * calls.c (initialize_argument_information): Update call to
12975 targetm.calls.partial_bytes.
12976 (emit_library_call_value_1): Likewise.
12977 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12978 * function.c (assign_parm_find_entry_rtl): Likewise.
12979 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12980 function_arg_info instead of a mode, type and named flag.
12981 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12982 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12983 (cmse_func_args_or_return_in_stack): Update accordingly.
12984 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12985 function_arg_info instead of a mode, type and named flag.
12986 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12987 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12988 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12989 * config/fr30/fr30.c: Include calls.h.
12990 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12991 type and named flag.
12992 * config/frv/frv.c: Include calls.h.
12993 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12994 type and named flag.
12995 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12996 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12997 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12998 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12999 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
13000 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
13001 * config/microblaze/microblaze.c (function_arg_partial_bytes):
13002 Likewise.
13003 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
13004 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
13005 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
13006 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
13007 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
13008 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
13009 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
13010 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
13011 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
13012 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
13013 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
13014 (rs6000_parm_needs_stack): Update call accordingly.
13015 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13016 function_arg_info instead of a mode, type and named flag.
13017 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13018 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13019
13020 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13021
13022 * calls.h (must_pass_va_arg_in_stack): Declare.
13023 * calls.c (must_pass_va_arg_in_stack): New function.
13024 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13025 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13026 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13027 Likewise.
13028 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13029
13030 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13031
13032 * calls.h (pass_va_arg_by_reference): Declare.
13033 * calls.c (pass_va_arg_by_reference): New function.
13034 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13035 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13036 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13037 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13038 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13039 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13040 (mips_gimplify_va_arg_expr): Likewise.
13041 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13042 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13043 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13044 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13045 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13046 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13047 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13048 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13049 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13050 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13051 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13052
13053 2019-08-20 Richard Biener <rguenther@suse.de>
13054
13055 PR target/91498
13056 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13057 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13058 (convert_scalars_to_vector): Add timode_p parameter and use it
13059 to guard TImode-only operation.
13060 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13061 (pass_stv::execute): Pass down timode_p.
13062
13063 2019-08-20 Lili Cui <lili.cui@intel.com>
13064
13065 * common/config/i386/i386-common.c
13066 (processor_names): Add tigerlake and cooperlake.
13067 (processor_alias_table): Add tigerlake and cooperlake.
13068 * config.gcc: Add -march=tigerlake and cooperlake.
13069 * config/i386/driver-i386.c
13070 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13071 Add "has_avx" to classify processor.
13072 * config/i386/i386-builtins.c (processor_model) :
13073 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13074 (arch_names_table): Add tigerlake and cooperlake.
13075 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13076 and PROCESSOR_COOPERLAKE.
13077 * config/i386/i386-c.c
13078 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13079 * config/i386/i386-options.c
13080 (m_TIGERLAKE): Define.
13081 (m_COOPERLAKE): Ditto.
13082 (m_CORE_AVX512): Ditto.
13083 (processor_cost_table): Add cascadelake.
13084 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13085 * config/i386/i386.h
13086 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13087 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13088 (PTA_MOVDIRI): Ditto.
13089 (PTA_MOVDIR64B): Ditto.
13090 (PTA_COOPERLAKE): Ditto.
13091 (PTA_TIGERLAKE): Ditto.
13092 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13093 * doc/extend.texi: Add tigerlake and cooperlake.
13094 * doc/invoke.texi: Add tigerlake and cooperlake.
13095
13096 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13097
13098 * doc/install.texi (Specific, alpha): Remove note to use
13099 binutils 2.11.2 or later.
13100
13101 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13102
13103 PR middle-end/89544
13104 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13105 when possible.
13106
13107 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13108
13109 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13110 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13111 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13112 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13113 * config/aarch64/constraints.md (Dt): New constraint
13114 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13115
13116 2019-08-19 Richard Biener <rguenther@suse.de>
13117
13118 PR tree-optimization/91403
13119 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13120 cases we can handle with tail-recursion...
13121 (follow_ssa_edge_expr): ... here. Do so.
13122
13123 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13124
13125 PR target/91441
13126 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13127 implemented for -fsanitize=kernel-address, and merge check logic
13128 with -fsanitize=address.
13129
13130 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13131
13132 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13133 for cpu and machine. Factor 64/32b builtins.
13134
13135 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13136
13137 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13138 gone, point to sourceforge.net.
13139
13140 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13141
13142 * doc/ux.texi (User Experience Guidelines): Update reference.
13143
13144 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13145
13146 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13147 not LGPL".
13148
13149 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13150
13151 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13152 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13153
13154 2019-08-16 Martin Sebor <msebor@redhat.com>
13155
13156 * tree.def (TYPE_SIZE): Clarify.
13157 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13158
13159 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13160
13161 PR tree-optimization/91109
13162 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13163 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13164 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13165
13166 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13167
13168 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13169 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13170 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13171 (uavg<mode>3_ceil): New expander.
13172 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13173 mode iterator when creating CONST1_RTX.
13174 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13175 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13176 mode iterator for const1_operand predicate.
13177
13178 2019-08-16 Richard Biener <rguenther@suse.de>
13179
13180 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13181 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13182 follow_ssa_edge.
13183 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13184 (analyze_evolution_in_loop): Likewise.
13185 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13186 (follow_ssa_edge_expr): ... here. Refactor code.
13187
13188 2019-08-16 Richard Biener <rguenther@suse.de>
13189
13190 PR target/91469
13191 * config/i386/i386-features.c
13192 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13193
13194 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13195
13196 PR other/91255
13197 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13198 only if subst_name matches curr_attr string.
13199
13200 2019-08-16 Richard Biener <rguenther@suse.de>
13201
13202 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13203 stmt at gsi_p, instead replace it with a NOP removed later.
13204 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13205 that became dead because of that.
13206
13207 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13208
13209 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13210 for which we can't represent a range.
13211 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
13212 set_varying.
13213 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13214 Set VR_UNDEFINED if type is not supported.
13215 * tree-ssanames.c (get_range_info): Pass type to set_varying.
13216 * tree-vrp.c (value_range_base::check): Assert that a varying has
13217 min/max set.
13218 (value_range_base::equal_p): Early bail for undefines.
13219 (value_range_base::set_varying): Accept a type.
13220 (value_range::set_varying): Same.
13221 (value_range_base::type): VARYING can have a type, while UNDEFINE
13222 is typeless.
13223 (value_range_base::dump): Print type for VARYING nodes.
13224 (value_range_base::set): Add type to VARYING.
13225 (extract_range_from_multiplicative_op): Pass type to set_varying.
13226 (extract_range_from_binary_expr): Same.
13227 (value_range_base::intersect_helper): Same.
13228 (value_range_base::union_helper): Same.
13229 (value_range_base::normalize_symbolics): Same.
13230 (determine_value_range_1): Same.
13231 * tree-vrp.h (class value_range_base): Add type to set_varying.
13232 Add prototype for dump(void).
13233 Add prototype for supports_type_p.
13234 (class value_range): Add type to set_varying.
13235 Add prototype for dump(void).
13236 * vr-values.c (set_value_range_to_truthvalue): Pass type to
13237 set_varying.
13238 (vr_values::get_lattice_entry): Set varying even if propagation
13239 finished.
13240 Pass type to set_varying.
13241 (vr_values::get_value_range): Remove vr_const_varying.
13242 Reallocate the lattice if needed.
13243 (vr_values::update_value_range): Pass type to set_varying.
13244 (vr_values::extract_range_for_var_from_comparison_expr): Same.
13245 (vr_values::extract_range_from_binary_expr): Same.
13246 (vr_values::extract_range_from_unary_expr): Same.
13247 (vr_values::extract_range_from_cond_expr): Same.
13248 (vr_values::check_for_binary_op_overflow): Same.
13249 (vr_values::extract_range_basic): Same.
13250 (vr_values::extract_range_from_assignment): Same.
13251 (vr_values::vr_values): Increase size of num_vr_values.
13252 (vr_values::extract_range_from_phi_node): Pass type to
13253 set_varying.
13254
13255 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
13256
13257 PR target/90878
13258 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
13259 for costs of hard register moves.
13260 (ix86_register_move_cost): Likewise.
13261 * config/i386/i386.h (processor_costs): Move costs of hard
13262 register moves to hard_register. Add int_load, int_store,
13263 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13264 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
13265 for costs of RTL expressions.
13266 * config/i386/x86-tune-costs.h: Move costs of hard register
13267 moves to hard_register. Duplicate int_load, int_store,
13268 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13269 sse_load, sse_store for costs of RTL expressions.
13270
13271 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13272
13273 * target.def (setup_incoming_vararg_bounds): Remove.
13274 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
13275 * doc/tm.texi: Regenerate.
13276 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
13277 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
13278 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13279 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
13280
13281 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13282
13283 MSP430: Fix lines over 80 characters long in
13284 config/msp430/*.{c,h} files
13285
13286 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
13287 specifier in string.
13288 (msp430_select_hwmult_lib): Split line more than 80 characters long.
13289 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
13290 redundant old comment.
13291 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13292 Split line more than 80 characters long.
13293 * config/msp430/msp430.c (msp430_option_override): Likewise.
13294 (msp430_return_in_memory): Likewise.
13295 (msp430_gimplify_va_arg_expr): Likewise.
13296 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
13297 (msp430_legitimate_constant): Likewise.
13298 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
13299 (msp430_attr): Likewise.
13300 (msp430_data_attr): Likewise.
13301 (msp430_start_function): Likewise.
13302 (gen_prefix): Likewise.
13303 (msp430_init_sections): Likewise.
13304 (msp430_select_section): Likewise.
13305 (msp430_function_section): Likewise.
13306 (msp430_unique_section): Likewise.
13307 (msp430_output_aligned_decl_common): Likewise.
13308 (msp430_do_not_relax_short_jumps): Likewise.
13309 (msp430_init_builtins): Likewise.
13310 (msp430_expand_delay_cycles): Likewise.
13311 (msp430_expand_prologue): Likewise.
13312 (msp430_expand_epilogue): Likewise.
13313 (msp430_expand_helper): Likewise.
13314 (msp430_split_movsi): Likewise.
13315 (msp430_print_operand): Likewise.
13316 (msp430_return_addr_rtx): Likewise.
13317 (msp430x_extendhisi): Likewise.
13318 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
13319 (ASM_SPEC): Likewise.
13320 Remove very obvious comments.
13321 (LIB_SPEC): Split line more than 80 characters long.
13322 (EH_RETURN_HANDLER_RTX): Likewise.
13323 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13324
13325 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13326
13327 MSP430: Fix whitespace errors and incorrect indentation in
13328 config/msp430/*.{c,h} files
13329
13330 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
13331 (msp430_select_hwmult_lib): Likewise.
13332 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
13333 (msp430_extract_mcu_data): Likewise.
13334 (struct t_msp430_mcu_data): Likewise.
13335 * config/msp430/msp430.c (struct machine_function): Remove whitespace
13336 before left square bracket.
13337 (msp430_option_override): Fix indentation.
13338 (msp430_hard_regno_nregs_with_padding): Likewise.
13339 (msp430_initial_elimination_offset): Likewise.
13340 (msp430_special_register_convention_p): Remove whitespace before left
13341 square bracket and after exclamation mark.
13342 (msp430_evaluate_arg): Likewise.
13343 (msp430_callee_copies): Fix indentation.
13344 (msp430_gimplify_va_arg_expr): Likewise.
13345 (msp430_function_arg_advance): Remove whitespace before left square
13346 bracket.
13347 (reg_ok_for_addr): Likewise.
13348 (msp430_preserve_reg_p): Likewise.
13349 (msp430_compute_frame_info): Likewise.
13350 (msp430_asm_output_addr_const_extra): Add space between function name
13351 and open parenthesis.
13352 (has_section_name): Fix indentation.
13353 (msp430_attr): Remove trailing whitespace.
13354 (msp430_section_attr): Likewise.
13355 (msp430_data_attr): Likewise.
13356 (struct msp430_attribute_table): Fix comment and whitespace.
13357 (msp430_start_function): Remove whitespace before left square bracket.
13358 Add space between function name and open parenthesis.
13359 (msp430_select_section): Remove trailing whitespace.
13360 (msp430_section_type_flags): Remove trailing whitespace.
13361 (msp430_unique_section): Remove space before closing parenthesis.
13362 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
13363 (msp430_builtins): Remove whitespace before left square bracket.
13364 (msp430_init_builtins): Fix indentation.
13365 (msp430_expand_prologue): Remove whitespace before left square bracket.
13366 Remove space before closing parenthesis.
13367 (msp430_expand_epilogue): Remove whitespace before left square bracket.
13368 (msp430_split_movsi): Remove space before closing parenthesis.
13369 (helper_function_name_mappings): Fix indentation.
13370 (msp430_use_f5_series_hwmult): Fix whitespace.
13371 (use_32bit_hwmult): Likewise.
13372 (msp430_no_hwmult): Likewise.
13373 (msp430_output_labelref): Remove whitespace before left square bracket.
13374 (msp430_print_operand_raw): Likewise.
13375 (msp430_print_operand_addr): Likewise.
13376 (msp430_print_operand): Add two spaces after '.' in comment.
13377 Fix trailing whitespace.
13378 (msp430x_extendhisi): Fix indentation.
13379 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
13380 tab.
13381 (PC_REGNUM): Likewise.
13382 (STACK_POINTER_REGNUM): Likewise.
13383 (CC_REGNUM): Likewise.
13384
13385 2019-08-15 Richard Biener <rguenther@suse.de>
13386
13387 PR target/91454
13388 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13389 helper.
13390 (general_scalar_chain::make_vector_copies): Use it.
13391
13392 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13393
13394 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13395
13396 2019-08-15 Martin Liska <mliska@suse.cz>
13397
13398 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13399 operators with no arguments.
13400 (eliminate_unnecessary_stmts): Likewise here.
13401
13402 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13403
13404 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13405 <case COMPARE>: Revert 2019-08-14 change.
13406 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13407 for (TARGET_64BIT || mode != DImode).
13408
13409 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13410
13411 * tree-vrp.c (value_range_base::set): Merge in code from
13412 value_range_base::set_and_canonicalize.
13413 Enforce canonicalization at set time.
13414 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13415 (value_range_base::set_undefined): Inline call to set().
13416 (value_range_base::set_varying): Same.
13417 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13418 (vrp_val_max): New argument handle_pointers.
13419 (vrp_val_min): Same.
13420 (ranges_from_anti_range): Same.
13421 (extract_range_into_wide_ints): Use tree argument instead of sign
13422 and precision.
13423 (extract_range_from_multiplicative_op): Take in tree type instead
13424 of precision and sign. Adapt function for canonicalized ranges.
13425 (extract_range_from_binary_expr): Pass type to
13426 extract_range_from_multiplicative_op.
13427 Adapt for canonicalized ranges.
13428 (extract_range_from_unary_expr): Same.
13429 (value_range_base::intersect_helper): Adjust for canonicalized
13430 ranges.
13431 (value_range_base::union_helper): Same.
13432 (value_range_base::normalize_symbolics): New.
13433 * tree-vrp.h (class value_range_base): Remove
13434 set_and_canonicalize.
13435 New prototype for normalize_symbolics.
13436 (class value_range): Remove set_and_canonicalize.
13437 (vrp_val_min): Adjust prototype.
13438 (vrp_val_max): Same.
13439 * vr-values.c
13440 (vr_values::extract_range_for_var_from_comparison_expr): Call set
13441 instead of set_and_canonicalize.
13442
13443 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13444
13445 PR middle-end/91444
13446 * tree-vect-stmts.c (vectorizable_call): Check that the function
13447 is a BUILT_IN_MD function before passing it to
13448 targetm.vectorize.builtin_md_vectorized_function.
13449
13450 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13451
13452 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
13453 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
13454 (aarch64_select_early_remat_modes): Use it.
13455
13456 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13457
13458 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
13459 16 for SVE predicates even if they are fixed-length.
13460
13461 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13462
13463 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
13464 operand order match the MOV /Z alias.
13465
13466 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13467
13468 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
13469 the vector pattern as an aarch64_svpattern argument. Update the
13470 overloaded caller accordingly.
13471 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
13472 (aarch64_output_sve_vector_inc_dec): Likewise.
13473
13474 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13475
13476 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
13477 multiplication case, try to compute VG * (lowest set bit) directly
13478 rather than always basing the multiplication on VG. Use
13479 expand_mult for the multiplication if we can.
13480
13481 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13482
13483 * config/aarch64/aarch64-protos.h
13484 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
13485 (aarch64_sve_inc_dec_immediate_p): Rename to...
13486 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13487 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
13488 (aarch64_output_sve_scalar_inc_dec): Declare.
13489 (aarch64_output_sve_inc_dec_immediate): Rename to...
13490 (aarch64_output_sve_vector_inc_dec): ...this.
13491 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
13492 (aarch64_output_sve_scalar_inc_dec): New functions.
13493 (aarch64_output_sve_addvl_addpl): Remove the base and offset
13494 arguments. Only handle true ADDVL and ADDPL instructions;
13495 don't emit an INC or DEC.
13496 (aarch64_sve_inc_dec_immediate_p): Rename to...
13497 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13498 (aarch64_output_sve_inc_dec_immediate): Rename to...
13499 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
13500 aarch64_sve_vector_inc_dec_immediate_p.
13501 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
13502 (aarch64_sve_plus_immediate): New predicates.
13503 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
13504 rather than aarch64_sve_addvl_addpl_immediate.
13505 (aarch64_sve_inc_dec_immediate): Rename to...
13506 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
13507 aarch64_sve_vector_inc_dec_immediate_p.
13508 (aarch64_sve_add_operand): Update accordingly.
13509 * config/aarch64/constraints.md (Uai): New constraint.
13510 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
13511 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
13512 operand into a register if it satisfies aarch64_sve_plus_immediate.
13513 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
13514 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
13515 * config/aarch64/aarch64-sve.md (add<mode>3): Call
13516 aarch64_output_sve_vector_inc_dec instead of
13517 aarch64_output_sve_inc_dec_immediate.
13518
13519 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13520
13521 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
13522 (UNSPEC_REVW): New constants.
13523 (elem_bits): New mode attribute.
13524 (SVE_INT_UNARY): New int iterator.
13525 (optab): Handle UNSPEC_REV[BHW].
13526 (sve_int_op): New int attribute.
13527 (min_elem_bits): Handle VNx16QI and the predicate modes.
13528 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
13529 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
13530 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
13531 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
13532 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
13533 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
13534 unspecs based on the total width of the reversed data.
13535 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
13536 reinterpret followed by a subreg on big-endian targets.
13537
13538 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13539 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13540
13541 * config/aarch64/aarch64-sve.md
13542 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
13543 alternatives in which one of the inputs is in the same register
13544 as the output.
13545
13546 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13547
13548 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
13549 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
13550
13551 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13552
13553 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
13554 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
13555
13556 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13557 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13558
13559 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
13560 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
13561 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
13562
13563 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13564 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13565
13566 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
13567 Add an alternative that uses reversed shifts.
13568
13569 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13570
13571 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13572 struct.
13573
13574 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13575
13576 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13577 a commutativity marker.
13578
13579 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13580 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13581
13582 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13583 (aarch64_prepare_sve_cond_int_fma): Declare.
13584 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13585 (aarch64_prepare_sve_int_fma): New functions.
13586 (aarch64_prepare_sve_cond_int_fma): Likewise.
13587 * config/aarch64/aarch64-sve.md
13588 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13589 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13590 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13591 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13592 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13593 (*madd<mode>): Rename to...
13594 (*fma<mode>4): ...this.
13595 (*msub<mode>): Rename to...
13596 (*fnma<mode>4): ...this.
13597
13598 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13599 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13600
13601 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13602 Print 2.0 naturally.
13603 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13604 * config/aarch64/predicates.md
13605 (aarch64_sve_float_negated_arith_immediate): New predicate,
13606 renamed from aarch64_sve_float_arith_with_sub_immediate.
13607 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13608 positive and negative constants.
13609 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13610 or an aarch64_sve_float_arith_with_sub_immediate.
13611 * config/aarch64/constraints.md (vsN): Use
13612 aarch64_sve_float_negated_arith_immediate.
13613 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13614 iterator.
13615 (sve_pred_fp_rhs2_immediate): New int attribute.
13616 * config/aarch64/aarch64-sve.md
13617 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13618 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13619 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13620 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13621 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13622 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13623
13624 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13625 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13626
13627 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13628 (*aarch64_cond_abd<SVE_F:mode>_3)
13629 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13630
13631 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13632 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13633
13634 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13635 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13636
13637 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13638 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13639
13640 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13641 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13642 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13643 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13644 optabs.
13645 * optabs.h (create_convert_operand_from): Expand comment.
13646 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13647 when mapping scalar rtxes to vector operands.
13648 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13649 ashiftrt and lshiftrt.
13650 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13651 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13652 (*cond_<optab><mode>_any_const): New patterns.
13653
13654 2019-08-15 Martin Liska <mliska@suse.cz>
13655
13656 PR ipa/91438
13657 * cgraph.c (cgraph_node::remove): When setting
13658 n->origin = NULL for all nested functions, reset
13659 also next_nested.
13660
13661 2019-08-15 Martin Liska <mliska@suse.cz>
13662
13663 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13664 and next_nested.
13665
13666 2019-08-15 Martin Liska <mliska@suse.cz>
13667
13668 PR ipa/91404
13669 * passes.c (order): Remove.
13670 (uid_hash_t): Likewise).
13671 (remove_cgraph_node_from_order): Remove from set
13672 of pointers (cgraph_node *).
13673 (insert_cgraph_node_to_order): New.
13674 (duplicate_cgraph_node_to_order): New.
13675 (do_per_function_toporder): Register all 3 cgraph hooks.
13676 Skip removed_nodes now as we know about all of them.
13677
13678 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13679
13680 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13681 <case E_V8QImode>: Use vector_set path for
13682 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13683 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13684 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13685
13686 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13687
13688 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13689
13690 2019-08-14 Martin Sebor <msebor@redhat.com>
13691
13692 PR tree-optimization/91294
13693 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13694 source length as exact.
13695
13696 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13697
13698 * doc/extend.texi: Add "noinit" attribute documentation.
13699 * doc/sourcebuild.texi: Add noinit effective target documentation.
13700 * varasm.c (default_section_type_flags): Add support for "noinit"
13701 section.
13702 (default_elf_select_section): Add support for "noinit" attribute.
13703 * config/msp430/msp430.c (msp430_attribute_table): Remove
13704 "noinit" entry.
13705
13706 2019-08-14 Richard Biener <rguenther@suse.de>
13707 Uroš Bizjak <ubizjak@gmail.com>
13708
13709 PR target/91154
13710 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13711 mode arguments.
13712 (scalar_chain::smode): New member.
13713 (scalar_chain::vmode): Likewise.
13714 (dimode_scalar_chain): Rename to...
13715 (general_scalar_chain): ... this.
13716 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13717 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13718 base with TImode and V1TImode.
13719 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13720 (general_scalar_chain::vector_const_cost): Adjust for SImode
13721 chains.
13722 (general_scalar_chain::compute_convert_gain): Likewise. Add
13723 {S,U}{MIN,MAX} support.
13724 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13725 (general_scalar_chain::make_vector_copies): Likewise. Handle
13726 non-DImode chains appropriately.
13727 (general_scalar_chain::convert_reg): Likewise.
13728 (general_scalar_chain::convert_op): Likewise.
13729 (general_scalar_chain::convert_insn): Likewise. Add
13730 fatal_insn_not_found if the result is not recognized.
13731 (convertible_comparison_p): Pass in the scalar mode and use that.
13732 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13733 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13734 (scalar_to_vector_candidate_p): Remove by inlining into single
13735 caller.
13736 (general_remove_non_convertible_regs): Rename from
13737 dimode_remove_non_convertible_regs.
13738 (remove_non_convertible_regs): Remove by inlining into single caller.
13739 (convert_scalars_to_vector): Handle SImode and DImode chains
13740 in addition to TImode chains.
13741 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13742 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13743 (*<maxmin>di3_doubleword): Likewise.
13744
13745 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13746 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13747
13748 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13749 (*cond_bic<mode>_any): New patterns.
13750
13751 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13752
13753 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13754 take the equivalent mask, as well as a bit count.
13755 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13756 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13757 (aarch64_sve_pred_and_operand): New predicates.
13758 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13759 code attribute.
13760 * config/aarch64/aarch64-sve.md
13761 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13762 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13763
13764 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13765
13766 * config/aarch64/aarch64-sve.md
13767 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13768 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13769 New patterns.
13770
13771 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13772 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13773
13774 * config/aarch64/aarch64-sve.md
13775 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13776 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13777
13778 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13779 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13780
13781 * config/aarch64/aarch64-sve.md
13782 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13783 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13784
13785 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13786
13787 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13788 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13789 New pattern.
13790
13791 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13792 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13793
13794 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13795
13796 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13797 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13798
13799 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13800 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13801 (aarch64_print_operand): Add support for %I.
13802 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13803 Bitcast floating-point constants to the corresponding integer constant.
13804 (aarch64_float_const_representable_p): Handle vectors as well
13805 as scalars.
13806 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13807 for the new vcond_mask_<mode><vpred> expander.
13808 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13809 test aarch64_float_const_representable_p.
13810 (aarch64_sve_reg_or_dup_imm): New predicate.
13811 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13812 gen_vcond_mask_<mode><vpred> instead of
13813 gen_aarch64_sve_dup<mode>_const.
13814 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13815 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13816 for operands 1 and 2 respectively. Force operand 2 into a
13817 register if operand 1 is a register. Fold old define_insn...
13818 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13819 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13820 floating-point constants that can be moved as integers. Add
13821 alternatives for MOV /M and FMOV /M.
13822 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13823 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13824 1 and 2 respectively.
13825 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13826 as scalars.
13827 (vss): New constraint.
13828
13829 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13830
13831 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13832 (aarch64_sve_float_maxmin_operand): New predicates.
13833 * config/aarch64/constraints.md (vsB): New constraint.
13834 (vsM): Fix typo.
13835 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13836 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13837 UNSPEC_COND_FMINNM.
13838 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13839 Use aarch64_sve_float_maxmin_operand for operand 2.
13840 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13841 Add alternatives for the constant forms.
13842
13843 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13844
13845 * config/aarch64/constraints.md (vsb): New constraint.
13846 (vsm): Generalize description.
13847 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13848 iterator.
13849 (sve_imm_con): Handle smax, smin, umax and umin.
13850 (sve_imm_prefix): New code attribute.
13851 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13852 (aarch64_sve_vsb_operand): New predicates.
13853 (aarch64_sve_mul_immediate): Rename to...
13854 (aarch64_sve_vsm_immediate): ...this.
13855 (aarch64_sve_mul_operand): Rename to...
13856 (aarch64_sve_vsm_operand): ...this.
13857 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13858 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13859 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13860 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13861 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13862 add movprfx support for the immediate alternatives.
13863 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13864 of the above.
13865 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13866 for operand 3.
13867
13868 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13869
13870 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13871 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13872 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13873
13874 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13875
13876 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13877 (optab, sve_int_op): Handle them.
13878 * config/aarch64/aarch64-sve.md: Expand comment.
13879
13880 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13881
13882 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13883 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13884 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13885
13886 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13887
13888 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13889 (aarch64_expand_sve_const_pred_trn): New functions.
13890 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13891 use the above functions when the parameter is true.
13892 (aarch64_expand_sve_const_pred): Update call accordingly.
13893 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13894 Rename to...
13895 (@aarch64_sve_<perm_insn><mode>): ...this.
13896
13897 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13898
13899 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13900 Declare.
13901 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13902 (aarch64_sve_emit_int_cmp): New functions.
13903 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13904 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13905 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13906 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13907 (UNSPEC_PRED_Z): New unspec.
13908 (set_clobber_cc_nzc): Delete.
13909 * config/aarch64/aarch64-sve.md: Add a block comment about
13910 UNSPEC_PRED_Z.
13911 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13912 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13913 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13914 UNSPEC_MERGE_PTRUE.
13915 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13916 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13917 check for compatible predicates.
13918 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13919 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13920 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13921 comparisons above.
13922
13923 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13924
13925 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13926 * config/aarch64/aarch64-sve.md: Add a section describing it.
13927 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13928 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13929 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13930 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13931 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13932 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13933 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13934 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13935 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13936 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13937 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13938 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13939 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13940 (aarch64_evpc_rev_local): Update accordingly.
13941
13942 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13943
13944 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13945 iterators.
13946 (SVE_BHSI, SVE_SDI): Tweak comment.
13947 (SVE_HSDI): Likewise. Fix definition.
13948 (SVE_SDF): New mode iterator.
13949 (elem_bits): New mode attribute.
13950 (SVE_COND_FCVT): New int iterator.
13951 * config/aarch64/aarch64-sve.md
13952 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13953 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13954 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13955 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13956 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13957 ...these new patterns.
13958 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13959 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13960 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13961 Merge into...
13962 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13963 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13964 ...these new patterns.
13965 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13966 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13967 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13968 ...this new pattern.
13969 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13970 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13971 ...this new pattern.
13972 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13973
13974 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13975
13976 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13977 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13978 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13979 unspecs.
13980 (optab, su): Handle them.
13981 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13982 * config/aarch64/aarch64-sve.md
13983 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13984 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13985 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13986 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13987 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13988 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13989 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13990 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13991 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13992 FIXUORS.
13993 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13994 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13995 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13996 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13997 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13998 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13999 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
14000 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
14001 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
14002 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
14003 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
14004 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
14005 of UNSPEC_FLOAT_CONVERT.
14006 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
14007 aarch64_sve_extend<mode><Vwide>2.
14008
14009 2019-08-14 Richard Biener <rguenther@suse.de>
14010
14011 PR target/91154
14012 * config/i386/i386-features.c
14013 (dimode_scalar_chain::compute_convert_gain): Compute and dump
14014 individual instruction gain. Fix reg-reg copy GRP cost. Use
14015 ix86_cost->sse_op for vector instruction costs.
14016
14017 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14018
14019 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14020 (cmp_op): Handle it.
14021 (SVE_COND_FP_CMP): Rename to...
14022 (SVE_COND_FP_CMP_I0): ...this.
14023 (SVE_FP_CMP): Remove.
14024 * config/aarch64/aarch64-sve.md
14025 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14026 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14027 using unspecs to represent the comparison.
14028 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14029 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14030 accordingly.
14031 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14032 (aarch64_unspec_cond_code): Move after integer code. Handle
14033 UNORDERED.
14034 (aarch64_emit_sve_predicated_cond): Replace with...
14035 (aarch64_emit_sve_fp_cond): ...this new function.
14036 (aarch64_emit_sve_or_conds): Replace with...
14037 (aarch64_emit_sve_or_fp_conds): ...this new function.
14038 (aarch64_emit_sve_inverted_cond): Replace with...
14039 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14040 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14041
14042 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14043
14044 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14045 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14046 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14047 SVE_HSD instead of SVE_SD.
14048
14049 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14050 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14051
14052 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14053 iterator.
14054 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14055 attributes.
14056 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14057 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14058 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14059 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14060 (*div<SVE_F:mode>3): Generalize to...
14061 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14062
14063 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14064 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14065
14066 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14067 constants.
14068 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14069 predicate.
14070 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14071 Declare.
14072 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14073 function.
14074 * config/aarch64/aarch64-sve.md: Add a block comment about the
14075 handling of predicated FP operations.
14076 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14077 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14078 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14079 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14080 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14081 operand.
14082 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14083 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14084 operand.
14085 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14086 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14087 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14088 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14089 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14090 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14091 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14092 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14093 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14094 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14095 strictness operands. Use aarch64_sve_pred_dominates_p to check
14096 whether the predicate on the conditional operation is suitable
14097 for merging. Split patterns into the canonical equal-predicate form.
14098 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14099 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14100
14101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14102 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14103
14104 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14105 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14106 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14107 rtx codes.
14108 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14109 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14110 unspecs.
14111
14112 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14113 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14114
14115 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14116 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14117 actually has, rather than relying on REG_EQUAL notes.
14118 Make the insn operand order match the SVE operand order.
14119 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14120 the SVE operand order.
14121
14122 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14123
14124 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14125 (aarch64_emit_set_immediate): Likewise.
14126 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14127 (aarch64_pfalse_reg): Likewise.
14128 (aarch64_convert_sve_data_to_pred): New function.
14129 (aarch64_sve_move_pred_via_while): Take an optional target register
14130 and the required register mode.
14131 (aarch64_expand_sve_const_pred_1): New function.
14132 (aarch64_expand_sve_const_pred): Likewise.
14133 (aarch64_expand_mov_immediate): Build an all-true predicate
14134 if the significant bits of the immediate are all true. Use
14135 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14136 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14137 before register allocation.
14138 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14139 a VNx16BI PTRUE when splitting the memory alternative.
14140 (vec_duplicate<mode>): Update accordingly.
14141 (*pred_cmp<cmp_op><mode>): Rename to...
14142 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14143
14144 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14145
14146 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14147 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14148 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14149 (UNSPEC_PTEST): New unspec.
14150 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14151 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14152 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14153 * config/aarch64/aarch64-sve.md: Add a new section describing the
14154 handling of UNSPEC_PTEST.
14155 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14156 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14157 (ptest_ptrue<mode>): Replace with...
14158 (aarch64_ptest<mode>): ...this new pattern.
14159 (cbranch<mode>4): Update after above changes.
14160 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14161 UNSPEC_PTEST_PTRUE.
14162 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14163 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14164 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14165
14166 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14167
14168 PR lto/91287
14169 * builtins.c (builtin_with_linkage_p): New function.
14170 * builtins.h (builtin_with_linkage_p): New function.
14171 * symtab.c (write_symbol): Remove redundant assert.
14172 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14173 Remove FIXME and use builtin_with_linkage_p.
14174
14175 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14176
14177 PR middle-end/91421
14178 * tree-core.h (function_decl::function_code): Change type to
14179 unsigned int.
14180 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14181 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14182 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14183 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14184 is BUILT_IN_NORMAL.
14185 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14186 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14187 (fndecl_built_in_p): Change the type of the "name" argument to
14188 unsigned int.
14189 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14190 after check for DECL_BUILT_IN_CLASS.
14191 * cgraphclones.c (build_function_decl_skip_args): Use
14192 set_decl_built_in_function.
14193 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14194 * ipa-split.c (split_function): Likewise.
14195 * langhooks.c (add_builtin_function_common): Likewise.
14196 * omp-simd-clone.c (simd_clone_create): Likewise.
14197 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14198 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14199 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14200 DECL_FUNCTION_CODE.
14201 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14202 instead of DECL_FUNCTION_CODE.
14203 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14204 instead of DECL_FUNCTION_CODE.
14205 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14206 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14207 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14208 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14209 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14210 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14211 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14212 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
14213 (alpha_gimple_fold_builtin): Likewise.
14214 * config/arc/arc.c (arc_expand_builtin): Likewise.
14215 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
14216 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
14217 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
14218 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
14219 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
14220 * config/frv/frv.c (frv_expand_builtin): Likewise.
14221 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
14222 (gcn_expand_builtin): Likewise.
14223 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
14224 (fold_builtin_cpu): Likewise.
14225 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
14226 * config/i386/i386.c (ix86_fold_builtin): Likewise.
14227 (ix86_gimple_fold_builtin): Likewise.
14228 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
14229 (ia64_expand_builtin): Likewise.
14230 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
14231 * config/mips/mips.c (mips_expand_builtin): Likewise.
14232 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
14233 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14234 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
14235 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
14236 * config/pa/pa.c (pa_expand_builtin): Likewise.
14237 * config/pru/pru.c (pru_expand_builtin): Likewise.
14238 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
14239 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14240 Likewise.
14241 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
14242 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
14243 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
14244 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
14245 (rs6000_builtin_reciprocal): Likewise.
14246 * config/rx/rx.c (rx_expand_builtin): Likewise.
14247 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14248 * config/s390/s390.c (s390_expand_builtin): Likewise.
14249 * config/sh/sh.c (sh_expand_builtin): Likewise.
14250 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
14251 (sparc_fold_builtin): Likewise.
14252 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14253 * config/spu/spu.c (spu_expand_builtin): Likewise.
14254 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
14255 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
14256 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
14257 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14258 (xtensa_expand_builtin): Likewise.
14259
14260 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14261
14262 PR middle-end/91421
14263 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
14264 before the DECL_FUNCTION_CODE.
14265 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
14266 to check for a BUILT_IN_ALLOCA call.
14267 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
14268 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
14269 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
14270 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14271 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
14272 for BUILT_IN_NORMAL functions.
14273 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
14274 test for BUILT_IN_TM_ABORT.
14275 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
14276 to check for a BUILT_IN_STACK_RESTORE call.
14277 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
14278 * tree-ssa-threadedge.c
14279 (record_temporary_equivalences_from_stmts_at_dest): Check for a
14280 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
14281 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
14282 test for a BUILT_IN_NORMAL call instead of a negative test for
14283 an internal function call.
14284
14285 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14286
14287 * tree.h (build_vector_a_then_b): Declare.
14288 * tree.c (build_vector_a_then_b): New function.
14289 * fold-const-call.c (fold_while_ult): Likewise.
14290 (fold_const_call): Use it to handle IFN_WHILE_ULT.
14291 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
14292 (aarch64_svpattern): New enum.
14293 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
14294 constants through aarch64_expand_mov_immediate.
14295 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
14296 than general_operand as the predicate for operand 1.
14297 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
14298 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
14299 insn_type.
14300 (simd_immediate_info::simd_immediate_info): New overload that
14301 takes a scalar_int_mode and an svpattern.
14302 (simd_immediate_info::u): Add a "pattern" field.
14303 (svpattern_token): New function.
14304 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
14305 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
14306 (aarch64_sve_move_pred_via_while): New functions.
14307 (aarch64_expand_mov_immediate): Try using
14308 aarch64_sve_move_pred_via_while for predicates that contain N ones
14309 followed by M zeros but that do not correspond to a VLnnn pattern.
14310 (aarch64_sve_pred_valid_immediate): New function.
14311 (aarch64_simd_valid_immediate): Use it instead of dealing directly
14312 with PTRUE and PFALSE.
14313 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
14314 forms.
14315
14316 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
14317
14318 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
14319 flag.
14320 (darwin_override_options): Likewise.
14321 * config/darwin.h: Likewise.
14322 * config/darwin.opt: Likewise.
14323 * config/i386/i386.c (output_pic_addr_const): Likewise.
14324 * config/rs6000/darwin.h: Likewise.
14325 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
14326 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
14327 ... this TARGET_MACHO_SYMBOL_STUBS.
14328 (FUNCTION_PROFILER):Likewise.
14329 * config/i386/i386.h: Likewise.
14330
14331 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14332
14333 * config/i386/i386-expand.c (ix86_expand_vector_extract)
14334 <case E_V2SImode>: Use vec_extr path for
14335 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14336 <case E_V8QImode>: Ditto.
14337 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
14338 Use SWI48 mode iterator. Use %k to output operand 0.
14339 (*mmx_pextrw): New insn pattern.
14340 (*mmx_pextrb): Ditto.
14341 (*mmx_pextrb_zext): Ditto.
14342
14343 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
14344
14345 * target.def (libc_has_function, libc_has_fast_function): Improve
14346 documentation strings.
14347 * doc/tm.texi: Regenerate.
14348
14349 2019-08-13 Caroline Tice <cmtice@google.com>
14350
14351 PR other/91396
14352 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
14353 vtv_end.o or vtv_end_preinit.o files if !static.
14354
14355 2019-08-13 Olivier Hainque <hainque@adacore.com>
14356
14357 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
14358
14359 2019-08-13 Olivier Hainque <hainque@adacore.com>
14360
14361 * rtlanal.c (tablejump_casesi_pattern): New function, to
14362 determine if a tablejump insn is a casesi dispatcher. Extracted
14363 from patch_jump_insn.
14364 * rtl.h (tablejump_casesi_pattern): Declare.
14365 * cfgrtl.c (patch_jump_insn): Use it.
14366 * dwarf2cfi.c (create_trace_edges): Use it.
14367
14368 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14369
14370 PR target/81800
14371 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
14372 operand is larger than a long int.
14373
14374 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14375
14376 * machmode.h (opt_mode::else_mode): New function.
14377 (opt_mode::else_blk): Use it.
14378 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
14379 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
14380 (aarch64_gen_stepped_int_parallel): Likewise.
14381 (aarch64_stepped_int_parallel_p): Likewise.
14382 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14383 argument.
14384 * config/aarch64/aarch64.c
14385 (aarch64_expand_sve_widened_duplicate): Delete.
14386 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14387 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14388 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14389 argument. Use early returns in the !CONST_INT_P handling.
14390 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14391 than handling some inline.
14392 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14393 from...
14394 (aarch64_simd_container_mode): ...here.
14395 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14396 (aarch64_sve_ld1rq_operand_p): New functions.
14397 * config/aarch64/predicates.md (descending_int_parallel)
14398 (aarch64_sve_ld1rq_operand): New predicates.
14399 * config/aarch64/constraints.md (UtQ): New constraint.
14400 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14401 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14402 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14403 (@aarch64_sve_reinterpret<mode>): New expander.
14404 (*aarch64_sve_reinterpret<mode>): New pattern.
14405 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14406 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14407 (*sve_ld1rq<Vesize>): Replace with...
14408 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14409
14410 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14411
14412 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14413 16:12.
14414
14415 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14416
14417 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14418 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14419 (msp430_check_path_for_devices): New.
14420 (parse_devices_csv_1): New.
14421 (parse_devices_csv): New.
14422 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14423 MCU data in devices.csv before using the hard-coded data.
14424 Warn if devices.csv isn't found and the MCU wasn't found in the
14425 hard-coded data either.
14426 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14427 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
14428 Search for devices.csv on -I and -L paths.
14429 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
14430 msp430_set_driver_var.
14431 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
14432 -mdevices-csv-loc=.
14433 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
14434 searched for devices.csv.
14435 (mwarn-devices-csv): Document option.
14436
14437 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14438
14439 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
14440 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
14441 Use a single Dn alternative instead of separate Dz and Dm
14442 alternatives. Use aarch64_output_sve_move_immediate.
14443 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
14444 function.
14445 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
14446 for predicates too.
14447 (aarch64_output_sve_mov_immediate): Handle predicate modes.
14448 (aarch64_output_ptrue): Delete.
14449
14450 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14451
14452 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
14453 INDEX.
14454 (simd_immediate_info::value, simd_immediate_info::step)
14455 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
14456 with...
14457 (simd_immediate_info::u): ...this new union.
14458 (simd_immediate_info::simd_immediate_info): Update accordingly.
14459 (aarch64_output_simd_mov_immediate): Likewise.
14460 (aarch64_output_sve_mov_immediate): Likewise.
14461
14462 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14463
14464 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
14465 extra_gcc_objs.
14466 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
14467 (msp430_select_cpu): New spec function.
14468 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
14469 MCU data.
14470 * config/msp430/msp430-devices.c: New file.
14471 * config/msp430/msp430-devices.h: New file.
14472 * config/msp430/msp430.c: Remove msp430_mcu_data.
14473 (msp430_option_override): Use msp430_extract_mcu_data to extract
14474 MCU data.
14475 (msp430_use_f5_series_hwmult): Likewise.
14476 (use_32bit_hwmult): Likewise.
14477 (msp430_no_hwmult): Likewise.
14478 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
14479 assembler.
14480 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
14481 and -mcpu option.
14482 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
14483 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
14484 Remove hard-coded MCU multilib data.
14485
14486 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14487
14488 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
14489 based on the mode instead of testing properties of it.
14490
14491 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14492
14493 * doc/md.texi: Document the x and y constraints for AArch64.
14494 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
14495 (FP_LO8_REGS): New reg_class.
14496 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
14497 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
14498 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
14499 * config/aarch64/predicates.md (aarch64_simd_register): Use
14500 FP_REGNUM_P instead of checking the classes manually.
14501 * config/aarch64/constraints.md (y): New constraint.
14502
14503 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14504
14505 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
14506 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
14507 * config/aarch64/aarch64-simd.md
14508 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
14509 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
14510 from the asm template.
14511 * config/aarch64/aarch64-sve.md
14512 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
14513 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
14514 from the asm template.
14515 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
14516 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
14517 from the asm template.
14518 * config/aarch64/aarch64-simd-builtins.def: Update comment.
14519
14520 2019-08-13 Martin Liska <mliska@suse.cz>
14521
14522 * value-prof.c (gimple_ic_transform): Add new line.
14523 Print details with MSG_NOTE.
14524
14525 2019-08-13 Martin Liska <mliska@suse.cz>
14526
14527 * doc/invoke.texi: Document automatic detection of jobserver.
14528 * lto-wrapper.c (run_gcc): Detect jobserver always.
14529
14530 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14531
14532 * config/i386/i386-expand.c (ix86_expand_vector_set)
14533 <case E_V2SImode>: Use vec_merge path for
14534 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14535 <case E_V8QImode>: Ditto.
14536 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
14537 (*mmx_pinsrb): Ditto.
14538
14539 2019-08-12 Jakub Jelinek <jakub@redhat.com>
14540
14541 PR target/83250
14542 PR target/91340
14543 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
14544 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
14545 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
14546 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
14547 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
14548
14549 2019-08-12 Richard Biener <rguenther@suse.de>
14550
14551 PR lto/91375
14552 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
14553 flag_devirtualize.
14554
14555 2019-08-12 Richard Biener <rguenther@suse.de>
14556
14557 PR driver/91130
14558 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
14559 lang_mask option, always use CL_DRIVER.
14560 (get_options_from_collect_gcc_options): Adjust.
14561 (find_and_merge_options): Likewise.
14562 (run_gcc): Likewise.
14563
14564 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14565
14566 * ipa-predicate.c (add_condition): Restore inverted test.
14567
14568 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14569
14570 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14571 (enum omp_clause_device_type_kind): New enum.
14572 (struct tree_omp_clause): Add subcode.device_type_kind.
14573 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14574 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14575 for device_type clause.
14576 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14577 * tree-pretty-print.c (dump_omp_clause): Likewise.
14578
14579 PR target/91408
14580 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14581 vector_operand.
14582
14583 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14584
14585 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14586 handling spilled pseudos.
14587
14588 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14589
14590 PR target/91386
14591 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14592 to preserve the contents of the original insns.
14593
14594 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14595
14596 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14597 (addsi3_compare_op2): Likewise.
14598
14599 2019-08-09 Martin Liska <mliska@suse.cz>
14600
14601 * alias.c (alias_ptr_types_compatible_p): Strengten
14602 type comparison in LTO mode.
14603
14604 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14605
14606 PR middle-end/90313
14607 * tree-tailcall.c (find_tail_calls): Reject calls that might
14608 read from an escaped RESULT_DECL.
14609
14610 2019-08-09 Martin Liska <mliska@suse.cz>
14611
14612 * doc/invoke.texi: Document the option value.
14613 * lto-wrapper.c (run_gcc): Set auto_parallel
14614 only with -flto=auto.
14615
14616 2019-08-09 Martin Liska <mliska@suse.cz>
14617
14618 * opts.c (common_handle_option): Error for an invalid argument
14619 to -flto=.
14620
14621 2019-08-09 Martin Liska <mliska@suse.cz>
14622
14623 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14624 use dump_printf to report optimization.
14625 (sem_variable::merge): Likwise.
14626 (sem_item_optimizer::merge_classes): Use dump_printf to report
14627 ICF hits.
14628
14629 2019-08-09 Martin Liska <mliska@suse.cz>
14630
14631 * value-prof.c (gimple_divmod_fixed_value_transform):
14632 Use dump_printf_loc.
14633 (gimple_mod_pow2_value_transform): Likewise.
14634 (gimple_mod_subtract_transform): Likewise.
14635 (init_node_map): Likewise.
14636 (gimple_ic_transform): Likewise.
14637 (gimple_stringops_transform): Likewise.
14638
14639 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14640
14641 * doc/extend.texi: Add const qualifier to ld intrinsics.
14642
14643 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14644
14645 * config/rs6000/dfp.md (D64_D128): Rename to ...
14646 (DDTD): ... this, throughout.
14647 (dfp_suffix): Rename to ...
14648 (q): ... this, throughout.
14649
14650 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14651
14652 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14653 (dfp_suffix): Ditto.
14654 (adddd3, addtd3): Merge to ...
14655 (add<mode>3 for D64_D128): ... this.
14656 (subdd3, subtd3): Merge to ...
14657 (sub<mode>3 for D64_D128): ... this.
14658 (muldd3, multd3): Merge to ...
14659 (mul<mode>3 for D64_D128): ... this.
14660 (divdd3, divtd3): Merge to ...
14661 (div<mode>3 for D64_D128): ... this.
14662 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14663 (*cmp<mode>_internal1 for D64_D128): ... this.
14664 (ftruncdd2, ftrunctd2): Merge to ...
14665 (ftrunc<mode>2 for D64_D128): ... this.
14666 (fixdddi2, fixtddi2): Merge to ...
14667 (fix<mode>di2 for D64_D128): ... this.
14668
14669 2019-08-08 Jim Wilson <jimw@sifive.com>
14670
14671 PR target/91229
14672 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14673 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14674 Pass into recursive call.
14675 (riscv_flatten_aggregate_argument): New arg. Pass to
14676 riscv_flatten_aggregate_field.
14677 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14678 riscv_flatten_aggregate_argument twice, with false and true as last
14679 arg. Process result twice. Compare results and warn if different.
14680 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14681
14682 2019-08-08 Martin Liska <mliska@suse.cz>
14683
14684 PR bootstrap/91352
14685 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14686 * lto-wrapper.c (jobserver_active_p): Likewise.
14687
14688 2019-08-08 Martin Liska <mliska@suse.cz>
14689
14690 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14691 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14692 (create_version_clone_with_body): Likewise.
14693
14694 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14695
14696 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14697 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14698 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14699 GOVD_EXPLICIT flags.
14700 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14701 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14702 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14703 call install_var_field with mask 11 instead of 3.
14704 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14705 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14706
14707 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14708
14709 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14710 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14711
14712 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14713
14714 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14715 MOVPRFX alternatives. Make the GPR alternatives more expensive
14716 than the FPR ones.
14717
14718 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14719
14720 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14721 Disparage the GPR alternative relative to the FPR one.
14722 Fix handling of 8-bit and 16-bit FPR values.
14723
14724 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14725
14726 * config/aarch64/iterators.md (BITWISEV): Delete.
14727 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14728 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14729 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14730 UNSPEC_FMINNMV, UNSPEC_FMINV.
14731 (bit_reduc_op): Delete.
14732 (sve_int_op): New int attribute.
14733 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14734 UNSPEC_FMINNMV, UNSPEC_FMINV.
14735 * config/aarch64/aarch64-sve.md
14736 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14737 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14738 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14739 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14740 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14741 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14742 new patterns.
14743 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14744 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14745 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14746 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14747 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14748 new patterns.
14749
14750 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14751
14752 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14753 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14754 (fms<mode>4, *fms<mode>4): Replace with...
14755 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14756 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14757 Use unspecs instead of rtx codes.
14758 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14759 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14760
14761 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14762
14763 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14764 int iterator.
14765 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14766 * config/aarch64/aarch64-sve.md
14767 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14768 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14769 use a single unspec for the rhs.
14770 (*<su><maxmin><mode>3): Delete.
14771 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14772
14773 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14774
14775 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14776 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14777 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14778 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14779 (optab, sve_fp_op): Handle them.
14780 (SVE_FP_UNARY): Delete.
14781 (optab): Remove sqrt entry.
14782 (sve_fp_op): Remove neg, abs and sqrt entries.
14783 (SVE_COND_FP_UNARY): New int iterator.
14784 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14785 (*<frint_pattern><mode>2): Delete.
14786 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14787 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14788 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14789 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14790
14791 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14792
14793 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14794
14795 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14796
14797 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14798 (UNSPEC_COND_FADD): ...this.
14799 (UNSPEC_COND_SUB): Rename to...
14800 (UNSPEC_COND_FSUB): ...this.
14801 (UNSPEC_COND_MUL): Rename to...
14802 (UNSPEC_COND_FMUL): ...this.
14803 (UNSPEC_COND_DIV): Rename to...
14804 (UNSPEC_COND_FDIV): ...this.
14805 (UNSPEC_COND_MAX): Rename to...
14806 (UNSPEC_COND_FMAXNM): ...this.
14807 (UNSPEC_COND_MIN): Rename to...
14808 (UNSPEC_COND_FMINNM): ...this.
14809 (UNSPEC_COND_LT): Rename to...
14810 (UNSPEC_COND_FCMLT): ...this.
14811 (UNSPEC_COND_LE): Rename to...
14812 (UNSPEC_COND_FCMLE): ...this.
14813 (UNSPEC_COND_EQ): Rename to...
14814 (UNSPEC_COND_FCMEQ): ...this.
14815 (UNSPEC_COND_NE): Rename to...
14816 (UNSPEC_COND_FCMNE): ...this.
14817 (UNSPEC_COND_GE): Rename to...
14818 (UNSPEC_COND_FCMGE): ...this.
14819 (UNSPEC_COND_GT): Rename to...
14820 (UNSPEC_COND_FCMGT): ...this.
14821 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14822 (sve_fp_op_rev): Update accordingly.
14823 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14824
14825 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14826
14827 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14828 banner comments.
14829 * config/aarch64/check-sve-md.awk: New file.
14830 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14831 (insn-conditions.md): Depend on it.
14832
14833 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14834
14835 PR target/91385
14836 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14837 (*negsi2_cmpz_zext): Ditto.
14838
14839 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14840
14841 * config/aarch64/iterators.md (commutative): Remove.
14842
14843 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14844
14845 PR driver/91130
14846 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14847 processing COLLECT_GCC_OPTIONS.
14848 (run_gcc): Likewise.
14849
14850 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14851
14852 PR tree-optimization/91109
14853 * lra-remat.c (update_scratch_ops): Remove assignment of the
14854 hard register.
14855
14856 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14857
14858 * data-streamer.h (streamer_write_poly_uint64): Declare.
14859 (streamer_read_poly_uint64): Likewise.
14860 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14861 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14862 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14863 (add_condition): Take a poly_int64 size.
14864 * ipa-predicate.c (add_condition): Likewise.
14865 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14866 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14867 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14868 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14869 condition::size as a poly_int64.
14870 (unmodified_parm_1): Take a poly_int64 size pointer.
14871 (unmodified_parm): Likewise.
14872 (unmodified_parm_or_parm_agg_item): Likewise.
14873 (set_cond_stmt_execution_predicate): Update accordingly.
14874 (set_switch_stmt_execution_predicate): Likewise.
14875 (will_be_nonconstant_expr_predicate): Likewise.
14876 (will_be_nonconstant_predicate): Likewise.
14877 (inline_read_section): Stream condition::size as a poly_int.
14878 (ipa_fn_summary_write): Likewise.
14879
14880 2019-08-07 Martin Liska <mliska@suse.cz>
14881
14882 * fold-const.c (twoval_comparison_p): Replace int
14883 with bool as a return type.
14884 (simple_operand_p): Likewise.
14885 (operand_equal_p): Replace int with bool as a return type.
14886 * fold-const.h (operand_equal_p): Likewise.
14887
14888 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14889
14890 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14891 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14892 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14893 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14894 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14895 * tree-pretty-print.c (dump_omp_clause): Likewise.
14896 * tree-nested.c (convert_nonlocal_omp_clauses,
14897 convert_local_omp_clauses): Likewise.
14898 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14899 Likewise.
14900 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14901 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14902 clause with array or reference to array types, no matter what type
14903 except for reference it has.
14904
14905 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14906
14907 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14908
14909 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14910
14911 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14912 (arch_canonicalize): Support rv32g and rv64g and fix error
14913 handling.
14914
14915 2019-08-06 Martin Liska <mliska@suse.cz>
14916
14917 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14918 and DECL_IS_OPERATOR_DELETE_P.
14919
14920 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14921
14922 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14923 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14924 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14925 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14926 (gimplify_omp_for): Don't do C++ random access iterator clause
14927 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14928 don't predetermine the artificial iterator in case of C++ random
14929 access iterators as lastprivate, but private. For OMP_LOOP, force
14930 bind expr around simd body and force for_pre_body before the
14931 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14932 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14933 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14934 diff var of C++ random access iterators. Handle
14935 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14936 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14937 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14938 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14939 * omp-low.c (lower_rec_input_clauses): For
14940 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14941 variables instead of default constructing them.
14942 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14943 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14944 is_taskloop_ctx check from the assert to the guarding condition.
14945
14946 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14947
14948 * config/riscv/multilib-generator: (canonical_order): New.
14949 (arch_canonicalize): Dito.
14950 Apply arch_canonicalize for alts.
14951
14952 2019-08-05 Martin Sebor <msebor@redhat.com>
14953
14954 * doc/extend.texi (Common Variable Attributes): Document alias
14955 attribute.
14956
14957 2019-08-05 Marek Polacek <polacek@redhat.com>
14958
14959 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14960 * doc/invoke.texi: Document -Wcomma-subscript.
14961
14962 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14963
14964 * tree-core.h (tree_function_decl): Make function_code an
14965 independent field. Group the remaining bitfields into bytes
14966 and move decl_type so that it contines to be at a byte boundary.
14967 Leave 12 bits for future expansion.
14968
14969 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14970
14971 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14972 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14973 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14974 IFN_MASK_STORE.
14975
14976 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14977
14978 * gimple.h (gimple_move_vops): Declare.
14979 * gimple.c (gimple_move_vops): New function
14980 * gimple-fold.c (replace_call_with_call_and_fold)
14981 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14982 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14983 (gimple_fold_call): Use it.
14984 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14985 * tree-call-cdce.c (use_internal_fn): Likewise.
14986 * tree-if-conv.c (predicate_load_or_store): Likewise.
14987 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14988 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14989 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14990 (update_call_from_tree): Likewise.
14991 * tree-vect-stmts.c (vectorizable_load): Likewise.
14992 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14993
14994 2019-08-05 Martin Liska <mliska@suse.cz>
14995
14996 PR c++/91334
14997 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14998 with not arguments.
14999 (eliminate_unnecessary_stmts): Likewise.
15000
15001 2019-08-05 Richard Biener <rguenther@suse.de>
15002
15003 PR middle-end/91169
15004 * fold-const.c (get_array_ctor_element_at_index): Create
15005 offset_ints according to the sign of the index type and treat
15006 that as signed if it is obviously so.
15007
15008 2019-08-05 Jakub Jelinek <jakub@redhat.com>
15009
15010 PR target/91341
15011 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
15012 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
15013 _mm256_storeu2_m128i): New function.
15014
15015 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15016
15017 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15018 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15019
15020 2019-08-05 Alan Modra <amodra@gmail.com>
15021
15022 PR target/91349
15023 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15024 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15025
15026 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15027
15028 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15029 bug that was fixed in Tcl 8.6.1.
15030
15031 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15032
15033 * config/rs6000/future.md: New file.
15034 * config/rs6000/rs6000.md: Include future.md.
15035 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15036
15037 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15038
15039 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15040 check to use targetm.slow_unaligned_access instead.
15041
15042 * function.c (assign_param_data_one): Remove unused data members.
15043
15044 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15045
15046 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15047 build_distinct_type_copy.
15048 (simd_clone_adjust_argument_types): Ditto.
15049 (simd_clone_adjust): Call build_distinct_type_copy here.
15050 (expand_simd_clones): Ditto.
15051
15052 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15053
15054 PR target/91201
15055 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15056
15057 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15058
15059 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15060 from 'const void *'.
15061 (sort_locs_in_loop_postorder_cmp): Likewise.
15062
15063 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15064
15065 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15066 (hot-bb-count-ws-permille): Likewise.
15067 (hot-bb-frequency-fraction): Likewise.
15068 (unlikely-bb-count-fraction): Likewise.
15069 * params.def (hot-bb-count-fraction): Rework description.
15070 (hot-bb-count-ws-permille): Likewise.
15071 (hot-bb-frequency-fraction): Likewise.
15072 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15073 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15074
15075 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15076
15077 PR target/91323
15078 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15079 Return false.
15080
15081 2019-08-02 Richard Biener <rguenther@suse.de>
15082
15083 * vec.h (vec::sort): Add gcc_qsort_r support.
15084 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15085 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15086 to gcc_qsort_r style callback.
15087 (sort_locs_in_loop_postorder_cmp): Likewise.
15088 (analyze_memory_references): Use gcc_sort_r interfaces.
15089 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15090
15091 2019-08-02 Martin Liska <mliska@suse.cz>
15092
15093 PR lto/91313
15094 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15095 to detect working job server.
15096 (driver::detect_jobserver): Test whether jobserver
15097 is active from GCC driver. That will prevent situation where
15098 GCC is invoked from a LD plugin and the linker already uses
15099 file descriptors suggested by make. That leads to a wrong
15100 detection.
15101 * gcc.h (driver): Add detect_jobserver.
15102 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15103 not scanning for --jobserver-auth prefix.
15104
15105 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15106
15107 PR tree-optimization/91201
15108 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15109 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15110 extraction.
15111
15112 2019-08-01 Martin Sebor <msebor@redhat.com>
15113
15114 PR c++/90947
15115 * tree.c (type_initializer_zero_p): Define.
15116 * tree.h (type_initializer_zero_p): New function.
15117
15118 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15119
15120 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15121
15122 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15123
15124 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15125 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15126 * predict.c (maybe_hot_count_p): Likewise.
15127 (maybe_hot_bb_p): Tweak comment.
15128 (maybe_hot_edge_p): Likewise.
15129 (probably_never_executed): Likewise. Minor tweak.
15130 (probably_never_executed_bb_p): Likewise.
15131 (unlikely_executed_edge_p): Likewise.
15132 (probably_never_executed_edge_p): Likewise.
15133 (optimize_function_for_size_p): Likewise.
15134 (optimize_function_for_speed_p): Likewise.
15135 (function_optimization_type): Likewise.
15136 (optimize_bb_for_size_p): Likewise.
15137 (optimize_bb_for_speed_p): Likewise.
15138 (bb_optimization_type): Likewise.
15139 (optimize_edge_for_size_p): Likewise.
15140 (optimize_edge_for_speed_p): Likewise.
15141 (optimize_insn_for_size_p): Likewise.
15142 (optimize_insn_for_speed_p): Likewise.
15143 (optimize_loop_for_size_p): Likewise.
15144 (optimize_loop_for_speed_p): Likewise.
15145 (optimize_loop_nest_for_speed_p): Likewise.
15146 (optimize_loop_nest_for_size_p): Likewise.
15147 (predictable_edge_p): Likewise.
15148 (handle_missing_profiles): Minor tweak.
15149
15150 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15151
15152 * config/rs6000/predicates.md (pcrel_external_address): Update
15153 comment.
15154
15155 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15156
15157 PR target/85693
15158 * config/i386/mmx.md (usadv8qi): New expander.
15159
15160 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15161
15162 PR c++/90590
15163 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15164 with reserved names that are in a system header.
15165
15166 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15167
15168 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15169 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15170 (*vec_extractv2si_0_zext): Ditto.
15171 (*vec_extractv2si_1): Add (rm,x) alternative.
15172 (*vec_extractv2si_1_zext): New insn pattern.
15173 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15174 insn constraint.
15175
15176 2019-08-01 Richard Biener <rguenther@suse.de>
15177
15178 * domwalk.c (bb_postorder): Remove static variable.
15179 (cmp_bb_postorder): Adjust.
15180 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15181 (dom_walker::walk): Adjust.
15182
15183 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15184
15185 * sort.cc (sort_r_ctx): New struct.
15186 (reorder23): Make templated on context type.
15187 (reorder45): Ditto.
15188 (cmp1): Ditto. Adjust signature.
15189 (netsort): Ditto.
15190 (mergesort): Ditto.
15191 [CHECKING_P] (cmp2to3): New static function. Use it...
15192 (gcc_qsort) [CHECKING_P]: ...here.
15193 (gcc_sort_r): New function.
15194 * system.h (sort_r_cmp_fn): New function typedef.
15195 (qsort_chk): Adjust signature.
15196 (gcc_sort_r): Declare.
15197 * vec.c (qsort_chk_error): Adjust.
15198 (qsort_chk): Adjust.
15199
15200 2019-08-01 Richard Biener <rguenther@suse.de>
15201
15202 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15203 (compute_antic): Localize it here.
15204
15205 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15206
15207 * common/config/riscv/riscv-common.c: Check -march string ends
15208 with null.
15209
15210 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15211
15212 * ipa-devirt.c (type_warning_cmp): Make static.
15213 (decl_warning_cmp): Ditto.
15214
15215 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
15216
15217 PR target/91050
15218 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
15219 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
15220 use of deleted rs6000_dejagnu_cpu_index variable.
15221 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
15222 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15223 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
15224 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
15225 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
15226 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15227
15228 2019-07-31 Richard Biener <rguenther@suse.de>
15229
15230 PR tree-optimization/91280
15231 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15232 Decompose MEM_REF manually for offset handling.
15233
15234 2019-07-31 Richard Biener <rguenther@suse.de>
15235
15236 PR tree-optimization/91293
15237 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
15238 of reduction stmts.
15239
15240 2019-07-31 Matt Thomas <matt@3am-software.com>
15241 Nick Hudson <nick@nthcliff.demon.co.uk>
15242 Matthew Green <mrg@eterna.com.au>
15243 Maya Rashish <coypu@sdf.org>
15244
15245 * config.gcc (hppa*-*-netbsd*): New target.
15246 * config/pa/pa-netbsd.h: New file.
15247 * config/pa/pa32-netbsd.h: New file.
15248
15249 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15250
15251 PR tree-optimization/91201
15252 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
15253
15254 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
15255
15256 * config/gcn/gcn-valu.md
15257 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
15258 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
15259 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
15260 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
15261 struct ilist. Add nops for delayeduse insns.
15262 * config/gcn/gcn.md (delayeduse): New attribute.
15263 (*movbi): Remove s_waitcnt from stores.
15264 (*mov<mode>_insn): Likewise.
15265 (*movti_insn): Likewise. Add delayeduse attribute.
15266 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
15267 (atomic_store<mode>): Remove or adjust s_waitcnt.
15268
15269 2019-07-31 Richard Biener <rguenther@suse.de>
15270
15271 * vr-values.h (vr_values::swap_vr_value): New.
15272 (vr_values::free_value_range): likewise.
15273 * vr-values.c (vr_values::swap_vr_value): Implement.
15274 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
15275 Do not return a range or take a var.
15276 (evrp_range_analyzer::stack): Change back to recording a non-const
15277 value_range *.
15278 * gimple-ssa-evrp-analyze.c
15279 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
15280 value-range.
15281 (evrp_range_analyzer::pop_to_marker): Adjust.
15282 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
15283 (evrp_range_analyzer::pop_value_range): Likewise. Free the
15284 no longer needed value-range.
15285
15286 2019-07-31 Martin Liska <mliska@suse.cz>
15287
15288 * tree-ssa-dce.c (propagate_necessity): Delete operator can
15289 have size and (or) alignment as 2nd and later arguments.
15290 Mark all of them as necessary.
15291
15292 2019-07-31 Richard Biener <rguenther@suse.de>
15293
15294 PR tree-optimization/91178
15295 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15296 Use tail-recursion.
15297
15298 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15299
15300 PR tree-optimization/91201
15301 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
15302 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
15303 TARGET_AVX512F.
15304 (reduc_plus_scal_<mode>): Improve formatting by introducing
15305 a temporary.
15306
15307 2019-07-31 Sudakshina Das <sudi.das@arm.com>
15308
15309 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
15310 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
15311 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
15312 (aarch64_init_tme_builtins): New.
15313 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
15314 (aarch64_expand_builtin_tme): New.
15315 (aarch64_expand_builtin): Handle TME builtins.
15316 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15317 __ARM_FEATURE_TME when enabled.
15318 * config/aarch64/aarch64-option-extensions.def: Add "tme".
15319 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
15320 (TARGET_TME): New.
15321 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
15322 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
15323 UNSPECV_TCANCEL.
15324 (tstart, ttest, tcommit, tcancel): New instructions.
15325 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
15326 (__tcancel, __ttest): New.
15327 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
15328 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
15329 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
15330 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
15331 * config/arm/types.md: Add new tme type attr.
15332 * doc/invoke.texi: Document "tme".
15333
15334 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
15335
15336 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
15337 warn_unused_result attribute.
15338 (cmse_check_address_range): Add warn_unused_result attribute.
15339
15340 2019-07-31 Richard Biener <rguenther@suse.de>
15341
15342 PR tree-optimization/91257
15343 * tree-vrp.c (union_ranges): Unify equality and less tests
15344 by using compare_values. Re-order cheap tests first.
15345
15346 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15347
15348 PR middle-end/91301
15349 * gimplify.c (gimplify_omp_for): If for class iterator on
15350 distribute parallel for there is no data sharing clause
15351 on inner_for_stmt, look for private clause on combined
15352 parallel too and if found, move it to inner_for_stmt.
15353
15354 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
15355
15356 * lra-int.h (lra_operand_data): Remove early_clobber field.
15357 (lra_insn_reg): Likewise.
15358 * lra.c (debug_operand_data): Update accordingly.
15359 (setup_operand_alternative): Likewise.
15360 (new_insn_reg): Likewise. Remove early_clobber parameter.
15361 (collect_non_operand_hard_regs): Update call accordingly.
15362 Don't assign to lra_insn_reg::early_clobber.
15363 (add_regs_to_insn_regno_info): Remove early_clobber parameter
15364 and update calls to new_insn_reg.
15365 (lra_update_insn_regno_info): Update calls accordingly.
15366 * lra-constraints.c (update_and_check_small_class_inputs): Take the
15367 alternative number as a parameter and test whether the operand
15368 is earlyclobbered in that particular alternative.
15369 (process_alt_operands): Update call accordingly. Use per-alternative
15370 checks for earyclobber here too.
15371 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
15372 against zero for IRA_UNKNOWN_ALT.
15373
15374 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15375
15376 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
15377
15378 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
15379
15380 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
15381 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15382
15383 2019-07-30 Martin Liska <mliska@suse.cz>
15384
15385 PR ipa/89330
15386 * cgraph.c (cgraph_edge::make_direct): Use
15387 edge->indirect_unknown_callee as edge->resolve_speculation can
15388 deallocate edge which is this pointer.
15389
15390 2019-07-30 Richard Biener <rguenther@suse.de>
15391
15392 PR tree-optimization/91257
15393 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15394
15395 2019-07-30 Martin Liska <mliska@suse.cz>
15396
15397 * doc/invoke.texi: Document new behavior.
15398 * lto-wrapper.c (cpuset_popcount): New function
15399 is a copy of libgomp/config/linux/proc.c.
15400 (init_num_threads): Likewise.
15401 (run_gcc): Automatically detect core count for -flto.
15402 (jobserver_active_p): New function.
15403
15404 2019-07-30 Richard Biener <rguenther@suse.de>
15405
15406 PR tree-optimization/91257
15407 * bitmap.h (bitmap_ior_into_and_free): Declare.
15408 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15409 whether to add the unliked element to the freelist.
15410 (bitmap_list_insert_element_after): Add defaulted param for
15411 an already allocated element.
15412 (bitmap_ior_into_and_free): New function.
15413 * tree-ssa-structalias.c (condense_visit): Reduce the
15414 ponts-to and edge bitmaps of the SCC members in a
15415 logarithmic fashion rather than all to one.
15416
15417 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15418
15419 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15420 parameter. When nonnull, make sure that the addition or subtraction
15421 has the same condition.
15422 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15423 for CFN_COND_MUL too.
15424
15425 2019-07-30 Richard Biener <rguenther@suse.de>
15426
15427 PR tree-optimization/91291
15428 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
15429 constant values.
15430
15431 2019-07-30 Jakub Jelinek <jakub@redhat.com>
15432
15433 PR middle-end/91216
15434 * omp-low.c (global_nonaddressable_vars): New variable.
15435 (use_pointer_for_field): For global decls, if they are non-addressable,
15436 remember it in the global_nonaddressable_vars bitmap, if they are
15437 addressable and in the global_nonaddressable_vars bitmap, ignore their
15438 TREE_ADDRESSABLE bit.
15439 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
15440 vars in global_nonaddressable_vars bitmap.
15441 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
15442
15443 PR target/91150
15444 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
15445 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
15446 comparison to unsigned HOST_WIDE_INT before shifting it left.
15447
15448 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15449
15450 * config/i386/i386.md (movstrict<mode>): Use register_operand
15451 predicate for operand 0. Add expander condition. Assert that
15452 operand 0 is a SUBREG RTX.
15453 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
15454 Update operand constraints and insn condition.
15455 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
15456 (zero_extendqihi2_and): Do not call gen_movstrictqi.
15457 (*setcc_qi_slp): Use register_operand predicate for operand 0.
15458 Update operand 0 constraints.
15459 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
15460
15461 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15462
15463 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
15464 when -m{code,data}-region are used without -mlarge.
15465 * config/msp430/msp430.c (msp430_option_override): Error when a
15466 non-default code or data region is used without -mlarge.
15467 (msp430_section_attr): Emit a warning and do not add upper/lower/either
15468 attributes when they are used without -mlarge.
15469
15470 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15471
15472 PR target/70320
15473 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
15474
15475 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15476
15477 PR middle-end/91242
15478 * wide-int.h (generic_wide_int::sext_elt): New function.
15479 * inchash.h (hash::add_wide_int): Use it instead of elt.
15480
15481 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15482
15483 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
15484 CODE_FOR_arm_##.
15485 * config/arm/arm.md (<crc_variant>): Rename to...
15486 (arm_<crc_variant>): ... This.
15487 (<cdp>): Rename to...
15488 (arm_<cdp>): ... This.
15489 (<ldc>): Rename to...
15490 (arm_<ldc>): ... This.
15491 (<stc>): Rename to...
15492 (arm_<stc>): ... This.
15493 (<mcr>): Rename to...
15494 (arm_<mcr>): ... This.
15495 (<mrc>): Rename to...
15496 (arm_<mrc>): ... This.
15497 (<mcrr>): Rename to...
15498 (arm_<mcrr>): ... This.
15499 (<mrrc>): Rename to...
15500 (arm_<mrrc>): ... This.
15501
15502 2019-07-29 Richard Biener <rguenther@suse.de>
15503
15504 PR tree-optimization/91257
15505 * tree-ssa-sccvn.h (struct vn_avail): New.
15506 (struct vn_ssa_aux): Add avail member.
15507 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
15508 member, add m_avail_freelist one.
15509 (rpo_elim::~rpo_elim): Remove.
15510 (rpo_elim::eliminate_avail): Adjust to new avail tracking
15511 data structure.
15512 (rpo_elim::eliminate_push_avail): Likewise.
15513 (do_unwind): Likewise.
15514 (do_rpo_vn): Likewise.
15515
15516 2019-07-29 Richard Biener <rguenther@suse.de>
15517
15518 PR tree-optimization/91257
15519 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
15520 most cases, instead call compare_values which handles the
15521 symbolic ranges we handle specially.
15522 (compare_values_warnv): Do not call operand_less_p but open-code
15523 the effective fold calls. Avoid converting so much.
15524
15525 2019-07-29 Martin Liska <mliska@suse.cz>
15526
15527 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
15528 remove LHS of operator new call. It's handled latter.
15529
15530 2019-07-29 Richard Biener <rguenther@suse.de>
15531
15532 PR tree-optimization/91267
15533 * vr-values.c (vr_values::update_value_range): Add early return
15534 for effectively VARYING lattice entry.
15535
15536 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15537
15538 PR debug/86638
15539 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
15540 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
15541 necessary if keep_all_vdefs_p is true.
15542 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
15543 that keep_all_vdefs_p is false.
15544 (mark_all_reaching_defs_necessary): Likewise.
15545 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
15546
15547 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15548
15549 * common.opt (Og): Change the initial value of flag_dse to 0.
15550 * opts.c (default_options_table): Move OPT_ftree_dse from
15551 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
15552 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
15553 entry before the OPT_ftree_sra entry.
15554 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
15555 of flags disabled by Og.
15556
15557 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15558
15559 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
15560 variables for -Og.
15561
15562 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15563
15564 * doc/sourcebuild.texi (check-function-bodies): Document.
15565
15566 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15567
15568 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15569 VEC_DUPLICATE of a fixed-length vector even if the result
15570 is variable-length. Likewise fold a duplicate of a
15571 variable-length vector if the variable-length vector is
15572 itself a duplicate of a fixed-length sequence.
15573 (test_vector_ops_duplicate): Test more cases.
15574
15575 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15576
15577 * vector-builder.h (vector_builder): Add a shape template parameter.
15578 (vector_builder::new_unary_operation): New function, generalizing
15579 the old tree_vector_builder function.
15580 (vector_builder::new_binary_operation): Likewise.
15581 (vector_builder::binary_encoded_nelts): Likewise.
15582 * int-vector-builder.h (int_vector_builder): Update template
15583 parameters to vector_builder.
15584 (int_vector_builder::shape_nelts): New function.
15585 * rtx-vector-builder.h (rtx_vector_builder): Update template
15586 parameters to vector_builder.
15587 (rtx_vector_builder::shape_nelts): New function.
15588 (rtx_vector_builder::nelts_of): Likewise.
15589 (rtx_vector_builder::npatterns_of): Likewise.
15590 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15591 * tree-vector-builder.h (tree_vector_builder): Update template
15592 parameters to vector_builder.
15593 (tree_vector_builder::shape_nelts): New function.
15594 (tree_vector_builder::nelts_of): Likewise.
15595 (tree_vector_builder::npatterns_of): Likewise.
15596 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15597 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15598 (tree_vector_builder::new_binary_operation): Delete.
15599 (tree_vector_builder::binary_encoded_nelts): Likewise.
15600 * simplify-rtx.c: Include rtx-vector-builder.h.
15601 (distributes_over_addition_p): New function.
15602 (simplify_const_unary_operation)
15603 (simplify_const_binary_operation): Generalize handling of vector
15604 constants to include variable-length vectors.
15605 (test_vector_ops_series): Add more tests.
15606
15607 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15608
15609 PR lto/91222
15610 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15611 than INDENTIFIER_POINTER.
15612
15613 2019-07-28 Martin Liska <mliska@suse.cz>
15614
15615 PR ipa/89330
15616 * cgraph.c (symbol_table::create_edge): Always allocate
15617 a cgraph_edge.
15618 (symbol_table::free_edge): Store summary_id to
15619 edge_released_summary_ids if != -1;
15620 * cgraph.h (NEXT_FREE_NODE): Remove.
15621 (SET_NEXT_FREE_NODE): Likewise.
15622 (NEXT_FREE_EDGE): Likewise.
15623 (symbol_table::release_symbol): Store summary_id to
15624 cgraph_released_summary_ids if != -1;
15625 (symbol_table::allocate_cgraph_symbol): Always allocate
15626 a cgraph_node.
15627
15628 2019-07-28 Alan Modra <amodra@gmail.com>
15629
15630 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15631 gen_sibcall.
15632
15633 2019-07-28 Alan Modra <amodra@gmail.com>
15634
15635 PR target/91135
15636 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15637 define.
15638 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15639 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15640 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15641
15642 2019-07-28 Alan Modra <amodra@gmail.com>
15643
15644 PR target/91050
15645 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15646 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15647 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15648 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15649 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15650 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15651 in asm_default spec.
15652 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15653 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15654
15655 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15656
15657 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15658
15659 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15660
15661 PR target/89517
15662 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15663 * config/aarch64/aarch64-option-extensions.def: Add new comments
15664 and restore easier to read options.
15665
15666 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15667
15668 * convert.c (convert_to_real_1): Move part of conversion code...
15669 * match.pd: ...To here.
15670
15671 2019-07-26 Martin Jambor <mjambor@suse.cz>
15672
15673 PR ipa/89330
15674 * ipa-inline-transform.c (check_speculations_1): New function.
15675 (push_all_edges_in_set_to_vec): Likewise.
15676 (check_speculations): Use check_speculations_1, new parameter
15677 new_edges.
15678 (inline_call): Pass new_edges to check_speculations.
15679 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15680 NULL.
15681 (speculation_useful_p): Early return true if edge is inlined, remove
15682 later checks for inline_failed.
15683
15684 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15685
15686 PR rtl-optimization/91223
15687 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15688 matching with INOUT operand.
15689
15690 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15691
15692 * stmt.c (expand_case): Try to narrow the index type if it's larger
15693 than a word. Tidy up.
15694
15695 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15696
15697 * cif-code.def (NEVER_CALL): New code.
15698 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15699 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15700
15701 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15702
15703 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15704 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15705
15706 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15707
15708 * ipa-devirt.c (add_type_duplicate): Fix return value.
15709
15710 2019-07-25 Richard Biener <rguenther@suse.de>
15711
15712 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15713 type parameter and use it instead of guessing expression
15714 type from the first operand.
15715 (extract_range_from_binary_expr): Pass expr_type down.
15716
15717 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15718
15719 * config/arm/arm.md (SATrev): Change to code attribute.
15720 (*satsi_<SAT:code>): Adjust for the above.
15721 (*satsi_<SAT:code>_shift): Likewise.
15722
15723 2019-07-25 Richard Biener <rguenther@suse.de>
15724
15725 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15726 Make value_range * temporary const.
15727 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15728 Likewise.
15729 (evrp_range_analyzer::record_ranges_from_): Likewise.
15730 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15731 deal with having recorded a const one.
15732 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15733 Return a const value_range *.
15734 (evrp_range_analyzer::pop_value_range): Likewise.
15735 (evrp_range_analyzer::stack): Record const value_range *s.
15736 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15737 Adjust.
15738 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15739 (format_integer): Likewise.
15740 (sprintf_dom_walker::handle_gimple_call): Likewise.
15741 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15742 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15743 (vrp_prop::get_value_range): Adjust.
15744 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15745 modifying the lattice in-place.
15746 (vrp_prop::visit_stmt): Likewise.
15747 * vr-values.c (vr_values::get_lattice_entry): New private method.
15748 (vr_values::get_value_range): Wrap it and return a const
15749 value_range *.
15750 (vr_values::set_def_to_varying): New.
15751 (vr_values::set_defs_to_varying): Use it.
15752 (vr_values::update_value_range): Likewise.
15753 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15754 (values::op_with_constant_singleton_va): Likewise.
15755 (vr_values::extract_range_for_var_from_co): Likewise.
15756 (vr_values::extract_range_from_ssa_name): Likewise.
15757 (vr_values::extract_range_from_cond_expr): Likewise.
15758 (vr_values::extract_range_basic): Likewise.
15759 (compare_ranges): Take const value_range *, adjust.
15760 (compare_range_with_value): Likewise.
15761 (vrp_valueize): Adjust.
15762 (vrp_valueize_1): Likewise.
15763 (vr_values::get_vr_for_comparison): Return a const value_range *.
15764 (vr_values::compare_name_with_value): Adjust.
15765 (vr_values::compare_names): Likewise.
15766 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15767 Likewise.
15768 (vr_values::vrp_evaluate_conditional): Likewise.
15769 (find_case_label_ranges): Take a const value_range *.
15770 (vr_values::vrp_visit_switch_stmt): Adjust.
15771 (vr_values::extract_range_from_phi_node): Likewise.
15772 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15773 (vr_values::simplify_abs_using_ranges): Likewise.
15774 (test_for_singularity): Take a const value_range *.
15775 (range_fits_type_p): Likewise.
15776 (vr_values::simplify_cond_using_ranges_1): Adjust.
15777 (vr_values::simplify_cond_using_ranges_2): Likewise.
15778 (vr_values::simplify_switch_using_ranges): Likewise.
15779 (vr_values::simplify_float_conversion_usi): Likewise.
15780 (vr_values::two_valued_val_range_p): Likewise.
15781 * vr-values.h (vr_values::get_value_range): Return a const
15782 value_range *.
15783 (vr_values::set_def_to_varying): New.
15784 (vr_values::get_lattice_entry): New private method.
15785 (vr_values::get_vr_for_comparison): Return a const value_range *.
15786
15787 2019-07-25 Martin Liska <mliska@suse.cz>
15788 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15789
15790 PR c++/23383
15791 * common.opt: Add -fallocation-dce
15792 * gimple.c (gimple_call_operator_delete_p): New.
15793 * gimple.h (gimple_call_operator_delete_p): Likewise.
15794 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15795 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15796 DECL_IS_OPERATOR_DELETE_P.
15797 (mark_all_reaching_defs_necessary_1): Likewise.
15798 (propagate_necessity): Likewise.
15799 (eliminate_unnecessary_stmts): Handle
15800 gimple_call_operator_delete_p.
15801 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15802 Add packing of OPERATOR_DELETE.
15803 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15804 Similarly here.
15805 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15806 (DECL_SET_IS_OPERATOR_DELETE): New.
15807 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15808
15809 2019-07-25 Martin Liska <mliska@suse.cz>
15810
15811 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15812 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15813 * coverage.c (coverage_begin_function): Likewise.
15814 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15815 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15816 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15817 (sem_item::hash_referenced_symbol_properties): Likewise.
15818 * lto-streamer-out.c (hash_tree): Likewise.
15819 * predict.c (expr_expected_value_1): Likewise.
15820 * tree-inline.c (expand_call_inline): Likewise.
15821 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15822 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15823 * tree-core.h (enum function_decl_type): New enum.
15824 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15825 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15826 (set_function_decl_type): Likewise.
15827 (DECL_IS_OPERATOR_NEW_P): New.
15828 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15829 (DECL_LAMBDA_FUNCTION): Likewise.
15830 (DECL_LAMBDA_FUNCTION_P): Likewise.
15831 (DECL_IS_OPERATOR_NEW): Remove.
15832 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15833
15834 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15835
15836 * ipa-profile.c (get_most_common_single_value): Use
15837 get_nth_most_common_value.
15838 * profile.c (sort_hist_value): New function.
15839 (compute_value_histograms): Call sort_hist_value to sort the
15840 values after loading from disk.
15841 * value-prof.c (get_most_common_single_value): Rename to ...
15842 get_nth_most_common_value. Add input params n, return
15843 the n_th value and count.
15844 (gimple_divmod_fixed_value_transform): Use
15845 get_nth_most_common_value.
15846 (gimple_ic_transform): Likewise.
15847 (gimple_stringops_transform): Likewise.
15848 * value-prof.h (get_most_common_single_value): Add input params
15849 n, default to 0.
15850
15851 2019-07-25 Richard Biener <rguenther@suse.de>
15852
15853 PR tree-optimization/91236
15854 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15855 size of CONSTRUCTOR write. Fix buffer size we pass to
15856 native_encode_expr.
15857
15858 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15859
15860 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15861 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15862 r273773.
15863
15864 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15865
15866 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15867 explicitly disabled with --disable-initfini-array.
15868
15869 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15870
15871 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15872 if-exists.
15873
15874 2019-07-24 Martin Sebor <msebor@redhat.com>
15875
15876 PR tree-optimization/91183
15877 PR tree-optimization/86688
15878 * builtins.c (compute_objsize): Handle MEM_REF.
15879 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15880 (get_min_string_length): Remove.
15881 (count_nonzero_bytes): New function.
15882 (handle_char_store): Rename...
15883 (handle_store): to this. Handle multibyte stores via integer types.
15884 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15885 function name.
15886
15887 2019-07-24 Martin Sebor <msebor@redhat.com>
15888
15889 PR driver/80545
15890 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15891 (diagnostic_report_diagnostic): Same.
15892 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15893 (diagnostic_context::lang_mask): New data member.
15894 * ipa-pure-const.c (suggest_attribute): Use
15895 lang_hooks.option_lang_mask ().
15896 * opts-common.c (option_enabled): Handle new argument.
15897 (get_option_state): Pass an additional argument.
15898 * opts.c (print_filtered_help): Print supported languages for
15899 unsupported options. Adjust printing of current state.
15900 * opts.h (option_enabled): Add argument.
15901 * toplev.c (print_switch_values): Use lang_mask.
15902 (general_init): Set global_dc->lang_mask.
15903
15904 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15905
15906 PR bootstrap/87030
15907 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15908
15909 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15910
15911 * cgraphunit.c (symbol_table::compile): Start and stop
15912 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15913 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15914
15915 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15916
15917 * gimplify.c (flag_instrument_functions_exclude_p): Include
15918 namespace/class information in the printable name.
15919 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15920 to tokens entered into the vector.
15921
15922 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15923
15924 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15925 (get_static_chain): Call it instead of build_simple_mem_ref.
15926 (get_frame_field): Likewise.
15927 (get_nonlocal_debug_decl): Likewise.
15928 (convert_nonlocal_reference_op): Likewise.
15929
15930 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15931
15932 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15933 declaration.
15934 (arc_compute_frame_size): Millicode is disabled when compiling
15935 ISR.
15936 (arc_return_address_register): Likewise.
15937 (arc_compute_function_type): Likewise.
15938 (arc_compute_frame_size): Likewise.
15939 (secondary_reload_info): Likewise.
15940 (arc_get_unalign): Likewise.
15941 (arc_can_use_return_insn): Declare.
15942 * config/arc/arc.c (AUX_LP_START): Define
15943 (AUX_LP_END): Likewise.
15944 (arc_frame_info): Update gmask member to 64-bit datum.
15945 (GMASK_LEN): Update.
15946 (arc_compute_function_type): Make it static, move it forward.
15947 (arc_must_save_register): Update, consider the extra regs.
15948 (arc_compute_millicode_save_restore_regs): Update to use the 64
15949 bit gmask.
15950 (arc_compute_frame_size): Likewise.
15951 (arc_enter_leave_p): Likewise.
15952 (arc_save_callee_saves): Likewise.
15953 (arc_restore_callee_saves): Likewise.
15954 (arc_save_callee_enter): Likewise.
15955 (arc_restore_callee_leave): Likewise.
15956 (arc_save_callee_milli): Likewise.
15957 (arc_restore_callee_milli): Likewise.
15958 (arc_expand_prologue): Add new interrupt handling.
15959 (arc_return_address_register): Make it static, move it forward.
15960 (arc_expand_epilogue): Add new interrupt handling.
15961 (arc_get_unalign): Delete.
15962 (arc_epilogue_uses): Make sure we do not remove the extra
15963 saved/restored registers when interrupt.
15964 (arc_can_use_return_insn): New function.
15965 (push_reg): Likewise.
15966 (pop_reg): Likewise.
15967 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15968 procedures.
15969 (arc_restore_callee_saves): Likewise, but restoring.
15970 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15971 (R33_REG): Likewise.
15972 (R34_REG): Likewise.
15973 (R35_REG): Likewise.
15974 (R36_REG): Likewise.
15975 (R37_REG): Likewise.
15976 (R38_REG): Likewise.
15977 (R39_REG): Likewise.
15978 (R45_REG): Likewise.
15979 (R46_REG): Likewise.
15980 (R47_REG): Likewise.
15981 (R48_REG): Likewise.
15982 (R49_REG): Likewise.
15983 (R50_REG): Likewise.
15984 (R51_REG): Likewise.
15985 (R52_REG): Likewise.
15986 (R53_REG): Likewise.
15987 (R54_REG): Likewise.
15988 (R55_REG): Likewise.
15989 (R56_REG): Likewise.
15990 (R58_REG): Likewise.
15991 (type): Add rtie attribute.
15992 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15993 (movsi_insn): Accept moves to lp_count.
15994 (rtie): Update pattern.
15995 (simple_return): Simplify it, don't use this pattern as a return
15996 from an interrupt.
15997 (arc600_rtie): New pattern.
15998 (p_return_i): Clean up.
15999 (return): Likewise.
16000 * config/arc/builtins.def (rtie): Only available for non ARC6xx
16001 family CPUs.
16002 * config/arc/predicates.md (move_src_operand): Consider lp_count
16003 as a register.
16004
16005 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
16006
16007 * config/s390/predicates.md (addv_const_operand): New predicate.
16008 * config/s390/s390-modes.def (CCO): New condition code mode.
16009 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
16010 (s390_branch_condition_mask): Likewise.
16011 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
16012 ("mulv<mode>4"): New expanders.
16013 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
16014 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
16015 pattern definitions.
16016
16017 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16018
16019 PR middle-end/91166
16020 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16021 (define_predicates): Add entry for uniform_vector_p.
16022 (vec_same_elem_p): New match pattern.
16023
16024 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16025
16026 PR bootstrap/87030
16027 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16028 * config/i386/darwin32-biarch.h .. to here.
16029 * config/i386/darwin64-biarch.h: Adjust comments.
16030 * config/rs6000/darwin32-biarch.h: Likewise.
16031 * config/rs6000/darwin64-biarch.h: Likewise.
16032 * config.gcc: Missed commit from r273746
16033 (*-*-darwin*): Don't include CPU t-darwin here.
16034 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16035 an error message if i686-darwin configuration is attempted for
16036 Darwin >= 18.
16037
16038 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16039
16040 PR bootstrap/87030
16041 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16042 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16043 an error message if i686-darwin configuration is attempted for
16044 Darwin >= 18.
16045 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16046 (powerpc-*-darwin*): Use biarch files where needed.
16047 (powerpc64-*-darwin*): Likewise.
16048 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16049 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16050 arch case.
16051 * config/i386/darwin32-biarch.h: New.
16052 * config/i386/darwin64.h: Rename.
16053 * config/i386/darwin64-biarch.h: To this.
16054 * config/i386/t-darwin: Rename.
16055 * config/i386/t-darwin32-biarch: To this.
16056 * config/i386/t-darwin64: Rename.
16057 * config/i386/t-darwin64-biarch: To this.
16058 * config/rs6000/darwin32-biarch.h: New.
16059 * config/rs6000/darwin64.h: Rename.
16060 * config/rs6000/darwin64-biarch.h: To this.
16061 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16062 arch case.
16063 * config/rs6000/t-darwin8: Rename.
16064 * config/rs6000/t-darwin32-biarch: To this.
16065 * config/rs6000/t-darwin64 Rename.
16066 * config/rs6000/t-darwin64-biarch: To this.
16067
16068 2019-07-23 Martin Sebor <msebor@redhat.com>
16069
16070 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16071
16072 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16073
16074 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16075 (rh): New alias for it.
16076
16077 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16078
16079 * gdbhooks.py: Pass replace=True to
16080 gdb.printing.register_pretty_printer.
16081
16082 2019-07-23 Richard Biener <rguenther@suse.de>
16083
16084 PR debug/91231
16085 * lto-streamer-in.c (input_function): Drop inline-entry markers
16086 that ended up with an unknown location block.
16087
16088 2019-07-23 Richard Biener <rguenther@suse.de>
16089
16090 PR tree-optimization/83518
16091 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16092 init from a constant even when partial defs are already recorded.
16093
16094 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16095
16096 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16097 * config/i386/znver1.md: Enable patterns for znver2 and add store
16098 variants which use extra AGU unit.
16099
16100 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16101
16102 * config/i386/i386-options.c (ix86_option_override_internal): Default
16103 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16104 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16105 for ZNVER2.
16106
16107 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16108
16109 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16110 (znver2_costs): Update 256 bit SSE costs and multiplication.
16111
16112 2019-07-23 Jan Beulich <jbeulich@suse.com>
16113
16114 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16115 Require only AVX512F.
16116 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16117 alternative expanding to vpternlog.
16118
16119 2019-07-23 Martin Liska <mliska@suse.cz>
16120
16121 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16122 to -flto in dwarf producer string.
16123
16124 2019-07-23 Richard Biener <rguenther@suse.de>
16125
16126 * tree-cfg.c (label_for_bb): Remove global var.
16127 (main_block_label): Take label_for_bb as argument.
16128 (cleanup_dead_labels_eh): Likewise, adjust.
16129 (cleanup_dead_labels): Adjust.
16130
16131 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16132
16133 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16134 Configurations): Add documentation for __builtin_mtfsf.
16135
16136 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16137
16138 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16139 * config/riscv/riscv.c (riscv_constant_alignment): Use
16140 riscv_align_data_type.
16141 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16142 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16143 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16144 * config/riscv/riscv.opt (malign-data): New.
16145 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16146
16147 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16148
16149 * cgraph.c (dump_graphviz): New function.
16150 * cgraph.h (dump_graphviz): New function.
16151 * symtab.c (dump_graphviz): New function.
16152
16153 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16154
16155 * config/aarch64/aarch64-simd.md
16156 (*aarch64_simd_sra<mode>): New.
16157 * config/aarch64/iterators.md
16158 (SHIFTRT): New iterator.
16159 (sra_op): New attribute.
16160
16161 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16162
16163 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16164 callee-saved regs R4->R10 in an interrupt function that calls another
16165 function.
16166
16167 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16168
16169 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16170 (_mm_blendv_epi8): New.
16171
16172 2019-07-22 Richard Biener <rguenther@suse.de>
16173
16174 PR tree-optimization/91221
16175 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16176 restrict partial-def handling of empty constructors and
16177 memset to refs with known offset.
16178
16179 2019-07-22 Jan Beulich <jbeulich@suse.com>
16180
16181 * config/i386/sse.md (ternlogsuffix): New.
16182 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16183 AVX512F is in use.
16184 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16185
16186 2019-07-22 Martin Liska <mliska@suse.cz>
16187
16188 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16189 comment.
16190 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16191
16192 2019-07-22 Martin Liska <mliska@suse.cz>
16193
16194 * lto-section-in.c (lto_get_section_data):
16195 Use new function get_compression.
16196 * lto-streamer-out.c (produce_lto_section): Use
16197 set_compression to encode compression algorithm.
16198 * lto-streamer.h (struct lto_section): Do not
16199 use bitfields in the format.
16200
16201 2019-07-22 Martin Liska <mliska@suse.cz>
16202
16203 PR driver/91172
16204 * opts-common.c (decode_cmdline_option): Decode
16205 argument of -Werror and check it for a wrong language.
16206 * opts-global.c (complain_wrong_lang): Remove such case.
16207
16208 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16209
16210 * config/arc/arc.c (prepare_move_operands): Always use an
16211 intermediate register when storing a TLS symbols.
16212
16213 2019-07-22 Stafford Horne <shorne@gmail.com>
16214
16215 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
16216 force_reg.
16217
16218 2019-07-22 Stafford Horne <shorne@gmail.com>
16219
16220 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
16221 and munordered-float validations.
16222 * config/or1k/constraints.md (d): New register constraint.
16223 * config/or1k/predicates.md (fp_comparison_operator): New.
16224 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
16225 operands.
16226 (or1k_expand_compare): Normalize unordered comparisons.
16227 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
16228 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
16229 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
16230 * config/or1k/or1k.md (type): Add fpu.
16231 (fpu): New instruction reservation.
16232 (F, f, fr, fi, FI, FOP, fop): New.
16233 (<fop><F:mode>3): New ALU instruction definition.
16234 (float<fi><F:mode>2): New conversion instruction definition.
16235 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
16236 (fpcmpcc): New code iterator.
16237 (*sf_fp_insn): New instruction definition.
16238 (cstore<F:mode>4): New expand definition.
16239 (cbranch<F:mode>4): New expand definition.
16240 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
16241 munordered-float): New options.
16242 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
16243 munordered-float.
16244
16245 2019-07-22 Stafford Horne <shorne@gmail.com>
16246
16247 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
16248 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
16249 documenation to be more clear.
16250 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
16251 more clear.
16252 * config/or1k/or1k.opt (mrori): New option.
16253 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
16254 msfimm, mshftimm): Rewrite documentation to be more clear.
16255 * config/or1k/or1k.md (insn_support): Add ror and rori.
16256 (enabled): Add conditions for ror and rori.
16257 (rotrsi3): Replace condition for shftimm with ror and rori.
16258
16259 2019-07-22 Stafford Horne <shorne@gmail.com>
16260
16261 PR target/90363
16262 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
16263 (extend<mode>si2): Update predicate.
16264 * config/or1k/predicates.md (volatile_mem_operand): New.
16265 (reg_or_mem_operand): New.
16266
16267 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
16268
16269 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
16270 * config/rs6000/rs6000-call.c: ... to here.
16271
16272 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16273
16274 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
16275 memory.
16276
16277 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16278
16279 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
16280
16281 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16282
16283 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
16284
16285 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16286
16287 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
16288 (any_memory_operand): New predicate.
16289 (reg_or_mem_operand): Use it.
16290
16291 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16292
16293 PR target/91204
16294 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
16295
16296 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
16297
16298 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
16299 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
16300
16301 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16302
16303 * tree.def (OMP_LOOP): New tree code.
16304 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
16305 (enum omp_clause_bind_kind): New enum.
16306 (struct tree_omp_clause): Add subcode.bind_kind.
16307 * tree.h (OMP_LOOP_CHECK): Rename to ...
16308 (OMP_LOOPING_CHECK): ... this.
16309 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
16310 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
16311 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
16312 (OMP_CLAUSE_BIND_KIND): Define.
16313 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16314 bind clause entries.
16315 (walk_tree_1): Handle OMP_CLAUSE_BIND.
16316 * tree-pretty-print.c (dump_omp_clause): Likewise.
16317 (dump_generic_node): Handle OMP_LOOP.
16318 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
16319 (in_omp_construct): New variable.
16320 (is_gimple_stmt): Handle OMP_LOOP.
16321 (gimplify_scan_omp_clauses): For lastprivate don't set
16322 check_non_private if code == OMP_LOOP. For reduction clause
16323 on OMP_LOOP combined with parallel or teams propagate as shared
16324 on the combined construct. Handle OMP_CLAUSE_BIND.
16325 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
16326 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
16327 for constructs from a loop construct to gimplify_scan_omp_clauses.
16328 Don't predetermine iterator linear on OMP_SIMD from loop construct.
16329 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
16330 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
16331 to match the implicit ORT_TARGET construct around whole body.
16332 Temporarily clear in_omp_construct when processing body.
16333 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
16334 etc. temporarily set in_omp_construct when processing body.
16335 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
16336 * omp-low.c (struct omp_context): Add loop_p.
16337 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
16338 in that the original var might be private.
16339 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
16340 (check_omp_nesting_restrictions): Adjust nesting restrictions for
16341 addition of loop construct.
16342 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
16343
16344 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
16345 lastprivate non-addressable iterator of a collapse(1) simd.
16346
16347 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
16348
16349 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
16350 as in rs6000.c.
16351
16352 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
16353
16354 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
16355 refer to default conditions. Warn for the 'y' spec which is ignored
16356 by current linkers.
16357
16358 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
16359
16360 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
16361 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16362 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16363 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16364 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16365 init_cumulative_args, rs6000_promote_function_mode,
16366 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16367 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16368 rs6000_function_arg_boundary, rs6000_parm_offset,
16369 rs6000_parm_start, rs6000_arg_size,
16370 rs6000_darwin64_record_arg_advance_flush,
16371 rs6000_darwin64_record_arg_advance_recurse,
16372 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16373 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16374 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16375 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16376 rs6000_finish_function_arg, rs6000_function_arg,
16377 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16378 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16379 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16380 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16381 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16382 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16383 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16384 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16385 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16386 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16387 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16388 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16389 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16390 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16391 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16392 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16393 get_element_number, altivec_expand_vec_set_builtin,
16394 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16395 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16396 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16397 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16398 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16399 rs6000_expand_builtin, rs6000_vector_type,
16400 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16401 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16402 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16403 to rs6000-call.c.
16404 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16405 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16406 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16407 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16408 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16409 init_cumulative_args, rs6000_promote_function_mode,
16410 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16411 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16412 rs6000_function_arg_boundary, rs6000_parm_offset,
16413 rs6000_parm_start, rs6000_arg_size,
16414 rs6000_darwin64_record_arg_advance_flush,
16415 rs6000_darwin64_record_arg_advance_recurse,
16416 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16417 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16418 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16419 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16420 rs6000_finish_function_arg, rs6000_function_arg,
16421 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16422 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16423 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16424 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16425 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16426 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16427 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16428 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16429 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16430 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16431 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16432 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16433 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16434 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16435 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16436 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16437 get_element_number, altivec_expand_vec_set_builtin,
16438 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16439 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16440 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16441 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16442 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16443 rs6000_expand_builtin, rs6000_vector_type,
16444 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16445 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16446 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
16447 to here from rs6000.c.
16448 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
16449 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
16450 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
16451 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
16452 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
16453 rs6000_return_in_memory, rs6000_return_in_msb,
16454 rs6000_pass_by_reference, setup_incoming_varargs,
16455 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
16456 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
16457 rs6000_function_arg_padding, rs6000_function_arg,
16458 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
16459 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
16460 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
16461 rs6000_passes_long_double, rs6000_passes_vector,
16462 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
16463 altivec_builtin_mask_for_load) Add declarations.
16464 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
16465 * config/config.gcc: Add new source file rs6000-call.c to garbage
16466 collector and extra_objs.
16467
16468 2019-07-19 Jeff Law <law@redhat.com>
16469
16470 PR tree-optimization/86061
16471 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16472 strncpy. Drop some trivial dead code.
16473 (maybe_trim_memstar_call): Handle strncpy.
16474
16475 2019-07-19 Richard Biener <rguenther@suse.de>
16476
16477 PR tree-optimization/91211
16478 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16479 memset encoding size.
16480
16481 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
16482
16483 PR target/91204
16484 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
16485
16486 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
16487
16488 PR ipa/91194
16489 * ipa-inline.c (recursive_inlining): Fix limits check.
16490
16491 2019-07-19 Richard Biener <rguenther@suse.de>
16492
16493 PR tree-optimization/91200
16494 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
16495 no PHI nodes in middle-bb.
16496
16497 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
16498
16499 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
16500 to +sve-bitperm.
16501 * config/aarch64/aarch64-option-extensions.def: Likewise.
16502
16503 2019-07-19 Jakub Jelinek <jakub@redhat.com>
16504
16505 PR middle-end/91190
16506 * function.c (insert_temp_slot_address): Store into the hash table
16507 a copy of address to avoid RTL sharing issues.
16508
16509 2019-07-19 Richard Biener <rguenther@suse.de>
16510
16511 PR tree-optimization/91207
16512 Revert
16513 2019-07-17 Richard Biener <rguenther@suse.de>
16514
16515 PR tree-optimization/91178
16516 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16517 loads with a gap larger than the vector size always use
16518 VMAT_STRIDED_SLP.
16519 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16520 avoid loading vectors that are only contained in the gap
16521 and thus are not needed.
16522
16523 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16524
16525 * config/i386/i386.md (*addqi_2_slp): Remove.
16526 (*<code>qi_2_slp): Ditto.
16527
16528 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
16529
16530 * config/rs6000/predicates.md (prefixed_mem_operand): Call
16531 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
16532 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
16533 Rename function from rs6000_prefixed_address.
16534 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16535 TARGET_HAS_TOC.
16536 (TARGET_TOC): Likewise.
16537 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16538 rs6000.h.
16539 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16540 TARGET_HAS_TOC.
16541 (TARGET_TOC): Likewise.
16542 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16543 rs6000.h.
16544 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16545 TARGET_HAS_TOC.
16546 (TARGET_TOC): Likewise.
16547 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16548 check to require -mcmodel=medium for pc-relative addressing.
16549 (create_TOC_reference): Add assertion for TARGET_TOC.
16550 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
16551 TARGET_NO_TOC.
16552 (rs6000_emit_move): Likewise.
16553 (TOC_alias_set): Rename TOC alias set static variable from 'set'
16554 to 'TOC_alias_set'.
16555 (get_TOC_alias_set): Likewise.
16556 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
16557 TARGET_NO_TOC.
16558 (rs6000_can_eliminate): Likewise.
16559 (rs6000_prefixed_address_mode_p): Rename function from
16560 rs6000_prefixed_address.
16561 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
16562 TARGET_HAS_TOC and not pc-relative.
16563 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
16564 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16565 TARGET_HAS_TOC.
16566 (TARGET_TOC): Likewise.
16567 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16568 rs6000.h.
16569
16570 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16571
16572 PR target/91188
16573 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16574 for operand 0. Do not use (match_dup) to match operand 1 with
16575 operand 0. Add check in insn constraint that either input operand
16576 matches operand 0. Use SWI12 mode iterator to also handle
16577 HImode operands.
16578 (*and<mode>_1_slp): Ditto.
16579 (*<code>qi_1_slp): Ditto.
16580 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16581 Do not use (match_dup) to match operand 1 with operand 0. Add
16582 check in insn constraint that operand 1 matches operand 0.
16583 Use SWI12 mode iterator to also handle HImode operands.
16584 (*ashl<mode>3_1_slp): Ditto.
16585 (*<shift_insn><mode>3_1_slp): Ditto.
16586 (*<rotate_insn><mode>3_1_slp): Ditto.
16587
16588 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16589
16590 * config/arm/arm-builtins.c
16591 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16592 (arm_expand_unop_builtin): Likewise.
16593 * config/arm/crypto.md
16594 (crypto_sha1h): Convert from define_insn to define_expand.
16595 (crypto_<crypto_pattern>): Likewise.
16596 (crypto_sha1h_lb): New define_insn.
16597 (crypto_<crypto_pattern>_lb): Likewise.
16598
16599 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16600
16601 PR target/90317
16602 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16603 (vsha1cq_u32): Likewise.
16604 (vsha1pq_u32): Likewise.
16605 (vsha1mq_u32): Likewise.
16606 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16607 vec select.
16608 (crypto_sha1c): Correct vec select.
16609 (crypto_sha1m): Likewise.
16610 (crypto_sha1p): Likewise.
16611
16612 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16613
16614 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16615 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16616 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16617 (subdi_zesidi_zesidi): Likewise.
16618 (negdi2_compare, negdi2_insn): Likewise.
16619 (negdi_extensidi): Likewise.
16620 (negdi_zero_extendsidi): Likewise.
16621 (arm_cmpdi_insn): Likewise.
16622 (subsi3_carryin): Use arm_borrow_operation.
16623 (subsi3_carryin_const): Likewise.
16624 (subsi3_carryin_const0): Likewise.
16625 (subsi3_carryin_compare): Likewise.
16626 (subsi3_carryin_compare_const): Likewise.
16627 (subsi3_carryin_compare_const0): Likewise.
16628 (subsi3_carryin_shift): Likewise.
16629 (rsbsi3_carryin_shift): Likewise.
16630 (negsi2_carryin_compare): Likewise.
16631
16632 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16633
16634 PR tree-optimization/91137
16635 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16636 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16637 Init, use and fini the above new field.
16638 (determine_base_object_1): New function.
16639 (determine_base_object): Reimplement using walk_tree.
16640
16641 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16642
16643 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16644 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16645 CLEANUP_FORCE_FAST_DCE is set.
16646 * ifcvt.c (rest_of_handle_if_conversion): Pass
16647 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16648 if-conversion succeeded.
16649
16650 2019-07-18 Richard Biener <rguenther@suse.de>
16651
16652 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16653 branches to make code less indented.
16654
16655 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16656
16657 PR middle-end/81824
16658 * attribs.c (decls_mismatched_attributes): Simplify the logic
16659 that avoids duplicates and false positives.
16660
16661 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16662
16663 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16664 data into data section when generating PIC code.
16665 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16666 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16667 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16668 return 2 for SOM and 0 for other targets.
16669
16670 2019-07-17 Jeff Law <law@redhat.com>
16671
16672 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16673 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16674 avoid unexpected switch statement fallthru.
16675
16676 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16677
16678 * config/i386/i386.md (*add<dwi>3_doubleword):
16679 Remove redundant constraints.
16680 (*add<mode>_1): Ditto.
16681 (*addhi_1): Ditto.
16682 (*addqi_1): Ditto.
16683 (*addqi_1_slp): Ditto.
16684 (*add<mode>_2): Ditto.
16685 (*addv<mode>4): Ditto.
16686 (*sub<dwi>3_doubleword): Ditto.
16687 (*sub<mode>_1): Ditto.
16688 (*subqi_1_slp): Ditto.
16689 (*sub<mode>_2): Ditto.
16690 (*subv<mode>4): Ditto.
16691 (*sub<mode>_3): Ditto.
16692 (@add<mode>3_carry): Ditto.
16693 (@sub<mode>3_carry): Ditto.
16694 (*add<mode>3_cc_overflow_1): Ditto.
16695 (*add<mode>3_zext_cc_overflow_2): Ditto.
16696 (*anddi_1): Ditto.
16697 (*and<mode>_1): Ditto.
16698 (*andqi_1): Ditto.
16699 (*andqi_1_slp): Ditto.
16700 (*anddi_2): Ditto.
16701 (*andqi_2_maybe_si): Ditto.
16702 (*and<mode>_2): Ditto.
16703 (*andqi_2_slp): Ditto.
16704 (*<code><mode>_1): Ditto.
16705 (*<code>qi_1): Ditto.
16706 (*<code>qi_1_slp): Ditto.
16707 (*<code><mode>_2): Ditto.
16708 (*<code>qi_2_slp): Ditto.
16709
16710 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16711
16712 * alias.c (record_component_aliases): Do not simplify pointed-to
16713 types of ODR types.
16714
16715 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16716
16717 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16718 partial reg stall on alternative 2.
16719
16720 2019-07-17 Richard Biener <rguenther@suse.de>
16721
16722 PR tree-optimization/91178
16723 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16724 lower SSA names to avoid quadratic behavior in the common case.
16725 * tree-data-ref.c (split_constant_offset): Add limit argument
16726 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16727 (split_constant_offset_1): Add limit argument and use it to
16728 limit SSA def walking. Optimize the common plus/minus case.
16729
16730 2019-07-17 Richard Biener <rguenther@suse.de>
16731
16732 PR tree-optimization/91178
16733 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16734 loads with a gap larger than the vector size always use
16735 VMAT_STRIDED_SLP.
16736 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16737 avoid loading vectors that are only contained in the gap
16738 and thus are not needed.
16739
16740 2019-07-17 Richard Biener <rguenther@suse.de>
16741
16742 PR tree-optimization/91180
16743 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16744 computation for memset partial defs.
16745
16746 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16747
16748 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16749 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16750 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16751 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16752 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16753 * omp-grid.c (grid_process_grid_body,
16754 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16755 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16756 == GF_OMP_FOR_KIND_SIMD.
16757 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16758 check_omp_nesting_restrictions, scan_omp_1_stmt,
16759 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16760 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16761 omp_find_scan): Likewise.
16762 * omp-expand.c (expand_omp_for): Likewise.
16763 * omp-general.c (omp_extract_for_data): Likewise.
16764
16765 PR tree-optimization/91157
16766 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16767 a vector boolean with scalar mode.
16768 (expand_vector_condition): Handle first operand being a vector boolean
16769 with scalar mode.
16770 (expand_vector_operations_1): For comparisons, don't bail out early
16771 if the return type is vector boolean with scalar mode, but comparison
16772 operand type is not.
16773
16774 2019-07-17 Richard Biener <rguenther@suse.de>
16775
16776 PR tree-optimization/91181
16777 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16778 IFN_LOADs as calls.
16779
16780 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16781
16782 * config/i386/i386.md (*testdi_1): Match CCZmode for
16783 constants that might have the SImode sign bit set.
16784 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16785 Use correct constraints for pentium pairing.
16786 (*test<mode>_1): Ditto.
16787
16788 2019-07-16 Jeff Law <law@redhat.com>
16789
16790 PR rtl-optimization/91173
16791 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16792 SSA_NAME with a constant value, fold its value into the offset
16793 and clear the base before calling gen_addr_rtx.
16794
16795 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16796
16797 PR rtl-optimization/91164
16798 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16799 invalidate dominance info.
16800
16801 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16802
16803 * read-md.h (md_reader::record_potential_iterator_use): Add a
16804 file_location parameter.
16805 * read-rtl.c (attribute_use::loc): New field.
16806 (map_attr_string): Take a file_location parameter. Report cases
16807 in which attributes map to multiple distinct values.
16808 (apply_attribute_uses): Update call accordingly.
16809 (md_reader::handle_overloaded_name): Likewise.
16810 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16811 nonnull strings.
16812 (record_attribute_use): Take a file_location parameter.
16813 Initialize attribute_use::loc.
16814 (md_reader::record_potential_iterator_use): Take a file_location
16815 parameter. Update call to record_attribute_use.
16816 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16817 (rtx_reader::read_rtx_code): Likewise.
16818 (rtx_reader::read_rtx_operand): Likewise. Record a location
16819 for implicitly-expanded empty strings.
16820
16821 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16822
16823 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16824 Use file_location instead of separate fields.
16825 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16826 separate filename and line number.
16827 * read-md.c (ptr_loc): As above.
16828 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16829 (md_reader::fprint_md_ptr_loc): Likewise.
16830 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16831 instead of a separate filename and line number.
16832 (md_reader::read_string): Update call accordingly.
16833
16834 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16835
16836 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16837 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16838 leaving the choice between SFDF and P implicit.
16839 (*mov<mode>_update2): Likewise.
16840 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16841 rather than leaving the choice betweem IBM128 and GPR implicit.
16842 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16843 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16844 QHSI implicit.
16845 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16846 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16847 * config/rs6000/vsx.md
16848 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16849 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16850 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16851 and VSX_EXTRACT_I implicit.
16852
16853 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16854
16855 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16856 Explicitly use <MOVEP1:MODE> for the mode attribute.
16857
16858 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16859
16860 PR bootstrap/91176
16861 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16862
16863 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16864
16865 PR target/91050
16866 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16867 .machine directive.
16868
16869 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16870
16871 * config/i386/i386.md (@test<mode>_ccno_1):
16872 Rename from test<mode>_ccno_1.
16873 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16874 (*testqi_1_maybe_si): Remove modrm attribute.
16875 (*test<mode>_1): Ditto.
16876 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16877 gen_test_ccno_1 and gen_extend_insn.
16878
16879 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16880
16881 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16882 to 0.
16883
16884 2019-07-15 Richard Biener <rguenther@suse.de>
16885
16886 PR middle-end/91162
16887 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16888 node make sure to replace all uses with something valid.
16889
16890 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16891
16892 PR tree-optimization/88497
16893 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16894 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16895 function undistribute_bitref_for_vector.
16896 (undistribute_bitref_for_vector): New function.
16897 (cleanup_vinfo_map): Likewise.
16898 (sort_by_mach_mode): Likewise.
16899
16900 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16901
16902 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16903 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16904 and testdi_ccno_1 using SWI48 mode attribute.
16905 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16906 x86_64_szext_general_operand.
16907 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16908 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16909 instead of genera_operand mode attribute.
16910
16911 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16912
16913 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16914 fopen and fclose to their respective types.
16915 (DotFn.invoke): Ditto.
16916
16917 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16918
16919 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16920 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16921 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16922 (array_index_predicate): Remove.
16923 (analyze_function_body): Account cost for variable ofsetted array
16924 indexing.
16925 (estimate_node_size_and_time): Do not compute array index hint.
16926 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16927 (inline_read_section): Do not read array index hint.
16928 (ipa_fn_summary_write): Do not write array index hint.
16929 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16930 * ipa-cp.c (hint_time_bonus): Remove.
16931 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16932 (ipa_fnsummary): Remove array_index.
16933 * ipa-inline.c (want_inline_small_function_p): Do not use
16934 array_index.
16935 (edge_badness): Likewise.
16936 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16937
16938 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16939
16940 PR target/91148
16941 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16942 superfluous "builtin function" phrasing.
16943
16944 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16945
16946 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16947 Break out from ...
16948 (aliasing_component_refs_walk): Break out from ...
16949 (aliasing_component_refs_p): ... here.
16950
16951 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16952
16953 PR target/91148
16954 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16955 "builtin function" phrasing.
16956
16957 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16958
16959 PR target/90723
16960 * recog.h (temporary_volatile_ok): New class.
16961 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16962 volatile_ok temporarily to true using temporary_volatile_ok.
16963 * expr.c (emit_block_move_via_cpymem): Likewise.
16964 * optabs.c (maybe_legitimize_operand): Likewise.
16965
16966 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16967
16968 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16969 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16970 uses inside of order(concurrent) constructs.
16971 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16972 OMP_CLAUSE_ORDER is seen.
16973 * omp-low.c (struct omp_context): Add order_concurrent member.
16974 (scan_sharing_clauses): Set ctx->order_concurrent if
16975 OMP_CLAUSE_ORDER is seen.
16976 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16977 of simd order(concurrent). Diagnose constructs not allowed inside of
16978 for order(concurrent).
16979 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16980 complaining about static double setjmp (double); or class static
16981 methods or non-global namespace setjmps.
16982 (omp_runtime_api_call): New function.
16983 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16984 order(concurrent) loops.
16985
16986 2019-07-12 Martin Sebor <msebor@redhat.com>
16987
16988 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16989 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16990 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16991 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16992
16993 2019-07-12 Jan Hubicka <jh@suse.cz>
16994
16995 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16996 (indirect_refs_may_alias_p): ... here.
16997 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16998 mem refs in the access paths.
16999
17000 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
17001
17002 PR tree-optimization/89430
17003 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
17004 store elimination for local variable without address escape.
17005
17006 2019-07-12 Jeff Law <law@redhat.com>
17007
17008 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
17009 for the ".far" section.
17010
17011 2019-07-12 Richard Biener <rguenther@suse.de>
17012
17013 PR tree-optimization/91145
17014 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17015 chain check.
17016
17017 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17018
17019 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17020 rather than this_state as the lowering context for the ELSE
17021 seq in a GIMPLE_EH_ELSE.
17022
17023 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17024
17025 * vector-builder.h (vector_builder::elt): Allow already-supplied
17026 elements to be read back before building is complete.
17027
17028 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17029
17030 PR rtl-optimization/91136
17031 * df-core.c (ACCESSING REFS): Fix typos in comment.
17032 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17033 the beginning of the block to the initial set of live registers.
17034
17035 2019-07-12 Richard Biener <rguenther@suse.de>
17036
17037 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17038 * fold-const.c (get_array_ctor_element_at_index): Add
17039 ctor_idx output parameter informing the caller where in
17040 the constructor the element was (not) found. Add early exit
17041 for when the ctor is sorted.
17042 * gimple-fold.c (fold_array_ctor_reference): Support constant
17043 folding across multiple array elements.
17044
17045 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17046
17047 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17048 doesn't have location, set the current location to the function's end.
17049
17050 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17051
17052 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17053 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17054 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17055 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17056 * config/aarch64/aarch64-simd.md
17057 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17058 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17059 * config/aarch64/aarch64-sve.md
17060 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17061 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17062
17063 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17064
17065 * doc/md.texi: Document that @ patterns can have different
17066 numbers of operands.
17067 * genemit.c (handle_overloaded_gen): Handle this case.
17068 * genopinit.c (handle_overloaded_gen): Likewise.
17069 * gensupport.c (replace_operands_with_dups): Iterate over
17070 the new rtx's format rather than the old one's.
17071
17072 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17073
17074 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17075 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17076 order clause entries.
17077 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17078 * tree-pretty-print.c (dump_omp_clause): Likewise.
17079 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17080 Likewise.
17081 * omp-low.c (scan_sharing_clauses): Likewise.
17082 * tree-nested.c (convert_nonlocal_omp_clauses,
17083 convert_local_omp_clauses): Likewise.
17084
17085 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17086
17087 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17088 fallthrough target of current basic block isn't the placed
17089 right next.
17090
17091 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17092
17093 PR target/90980
17094 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17095 (_mm512_storeu_epi64): Likewise.
17096 (_mm512_loadu_epi32): Likewise.
17097 (_mm512_storeu_epi32): Likewise.
17098 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17099 (_mm_storeu_epi64): Likewise.
17100 (_mm256_storeu_epi32): Likewise.
17101 (_mm_storeu_epi32): Likewise.
17102
17103 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17104
17105 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17106
17107 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17108
17109 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17110 Handle Modula-2.
17111
17112 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17113
17114 PR target/91124
17115 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17116 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17117 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17118 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17119 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17120 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17121 define_insns.
17122 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17123 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17124 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17125 define_insns.
17126 (sse2_cvttpd2dq<mask_name>): Change into ...
17127 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17128 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17129 (*sse2_cvtpd2dq<mask_name>): Change into ...
17130 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17131 Add "C" constraint to const0_operand.
17132 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17133 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17134 changes.
17135
17136 PR target/91124
17137 * config/i386/i386-builtin-types.def
17138 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17139 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17140 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17141 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17142 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17143 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17144 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17145 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17146 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17147 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17148 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17149 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17150 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17151 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17152 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17153 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17154 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17155 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17156 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17157 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17158 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17159 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17160 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17161 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17162 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17163 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17164 __builtin_ia32_vpdpbusd_v4si_maskz,
17165 __builtin_ia32_vpdpbusds_v16si_mask,
17166 __builtin_ia32_vpdpbusds_v16si_maskz,
17167 __builtin_ia32_vpdpbusds_v8si_mask,
17168 __builtin_ia32_vpdpbusds_v8si_maskz,
17169 __builtin_ia32_vpdpbusds_v4si_mask,
17170 __builtin_ia32_vpdpbusds_v4si_maskz,
17171 __builtin_ia32_vpdpwssd_v16si_mask,
17172 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17173 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17174 __builtin_ia32_vpdpwssd_v4si_maskz,
17175 __builtin_ia32_vpdpwssds_v16si_mask,
17176 __builtin_ia32_vpdpwssds_v16si_maskz,
17177 __builtin_ia32_vpdpwssds_v8si_mask,
17178 __builtin_ia32_vpdpwssds_v8si_maskz,
17179 __builtin_ia32_vpdpwssds_v4si_mask,
17180 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17181 suffixed types rather than *_INT.
17182 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17183 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17184 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17185 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17186 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17187 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17188
17189 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17190
17191 * tree-vrp.c (intersect_ranges): If we know the intersection is
17192 empty, there is no need to conservatively add anything else to
17193 the set.
17194
17195 2019-07-11 Richard Biener <rguenther@suse.de>
17196
17197 PR middle-end/91131
17198 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17199 when the object is volatile and we have not cleared it even though
17200 there are no nonzero elements.
17201
17202 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17203
17204 * config/rs6000/predicates.md (cint34_operand): Update
17205 SIGNED_34BIT_OFFSET_P call.
17206 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17207 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17208 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17209 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17210 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17211 argument.
17212 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
17213 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
17214 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
17215 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
17216 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
17217
17218 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
17219
17220 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
17221 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
17222 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
17223 (DEF_MIN_OSX_VERSION): New.
17224
17225 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17226
17227 * fold-const.c (fold_relational_const): Fix folding of
17228 vector-to-scalar NE_EXPRs.
17229 (test_vector_folding): Add more tests.
17230
17231 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17232
17233 PR target/91060
17234 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
17235 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
17236 (vec_setv2di_internal): Reexpress as...
17237 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
17238 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
17239 rather than gen_neon_vset_lane<mode>.
17240
17241 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
17242
17243 PR target/91102
17244 * lra-constraints.c (process_alt_operands): Don't match user
17245 defined regs only if they are early clobbers.
17246
17247 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
17248
17249 * wide-int.h (wi::lshift): Reject negative values for the fast path.
17250
17251 2019-07-10 Richard Biener <rguenther@suse.de>
17252
17253 PR tree-optimization/91126
17254 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
17255 native encoding offset for BYTES_BIG_ENDIAN.
17256 (vn_reference_lookup_3): Likewise.
17257
17258 2019-07-10 Richard Biener <rguenther@suse.de>
17259
17260 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
17261 LHS whenever possible.
17262
17263 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
17264
17265 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
17266 from ...; work also on duplicated types.
17267 (nonoverlapping_component_refs_since_match): ... here
17268 (ncr_type_uid): Break out from ...
17269 (ncr_compar): ... here; look for TYPE_UID of canonical type if
17270 available.
17271 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
17272 the types and nonoverlapping_component_refs_p_1 to disambiguate.
17273
17274 2019-07-09 Martin Sebor <msebor@redhat.com>
17275
17276 PR tree-optimization/90989
17277 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
17278 optimization to just single character stores.
17279
17280 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
17281
17282 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
17283 Swap operands only once.
17284
17285 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17286
17287 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
17288 for both call instructions.
17289
17290 2019-07-09 John Darrington <john@darrington.wattle.id.au>
17291
17292 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
17293 rather than GET_MODE_BITSIZE to better handle partial integer modes.
17294
17295 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
17296
17297 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
17298 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
17299 function from rs6000-logue.c back to rs6000.c.
17300 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
17301
17302 2019-07-09 Martin Sebor <msebor@redhat.com>
17303
17304 PR c++/61339
17305 * auto-profile.c: Change class-key of PODs to struct and others
17306 to class.
17307 * basic-block.h: Same.
17308 * bitmap.c (bitmap_alloc): Same.
17309 * bitmap.h: Same.
17310 * builtins.c (expand_builtin_prefetch): Same.
17311 (expand_builtin_interclass_mathfn): Same.
17312 (expand_builtin_strlen): Same.
17313 (expand_builtin_mempcpy_args): Same.
17314 (expand_cmpstr): Same.
17315 (expand_builtin___clear_cache): Same.
17316 (expand_ifn_atomic_bit_test_and): Same.
17317 (expand_builtin_thread_pointer): Same.
17318 (expand_builtin_set_thread_pointer): Same.
17319 * caller-save.c (setup_save_areas): Same.
17320 (replace_reg_with_saved_mem): Same.
17321 (insert_restore): Same.
17322 (insert_save): Same.
17323 (add_used_regs): Same.
17324 * cfg.c (get_bb_copy): Same.
17325 (set_loop_copy): Same.
17326 * cfg.h: Same.
17327 * cfganal.h: Same.
17328 * cfgexpand.c (alloc_stack_frame_space): Same.
17329 (add_stack_var): Same.
17330 (add_stack_var_conflict): Same.
17331 (add_scope_conflicts_1): Same.
17332 (update_alias_info_with_stack_vars): Same.
17333 (expand_used_vars): Same.
17334 * cfghooks.c (redirect_edge_and_branch_force): Same.
17335 (delete_basic_block): Same.
17336 (split_edge): Same.
17337 (make_forwarder_block): Same.
17338 (force_nonfallthru): Same.
17339 (duplicate_block): Same.
17340 (lv_flush_pending_stmts): Same.
17341 * cfghooks.h: Same.
17342 * cfgloop.c (flow_loops_cfg_dump): Same.
17343 (flow_loop_nested_p): Same.
17344 (superloop_at_depth): Same.
17345 (get_loop_latch_edges): Same.
17346 (flow_loop_dump): Same.
17347 (flow_loops_dump): Same.
17348 (flow_loops_free): Same.
17349 (flow_loop_nodes_find): Same.
17350 (establish_preds): Same.
17351 (flow_loop_tree_node_add): Same.
17352 (flow_loop_tree_node_remove): Same.
17353 (flow_loops_find): Same.
17354 (find_subloop_latch_edge_by_profile): Same.
17355 (find_subloop_latch_edge_by_ivs): Same.
17356 (mfb_redirect_edges_in_set): Same.
17357 (form_subloop): Same.
17358 (merge_latch_edges): Same.
17359 (disambiguate_multiple_latches): Same.
17360 (disambiguate_loops_with_multiple_latches): Same.
17361 (flow_bb_inside_loop_p): Same.
17362 (glb_enum_p): Same.
17363 (get_loop_body_with_size): Same.
17364 (get_loop_body): Same.
17365 (fill_sons_in_loop): Same.
17366 (get_loop_body_in_dom_order): Same.
17367 (get_loop_body_in_custom_order): Same.
17368 (release_recorded_exits): Same.
17369 (get_loop_exit_edges): Same.
17370 (num_loop_branches): Same.
17371 (remove_bb_from_loops): Same.
17372 (find_common_loop): Same.
17373 (delete_loop): Same.
17374 (cancel_loop): Same.
17375 (verify_loop_structure): Same.
17376 (loop_preheader_edge): Same.
17377 (loop_exit_edge_p): Same.
17378 (single_exit): Same.
17379 (loop_exits_to_bb_p): Same.
17380 (loop_exits_from_bb_p): Same.
17381 (get_loop_location): Same.
17382 (record_niter_bound): Same.
17383 (get_estimated_loop_iterations_int): Same.
17384 (max_stmt_executions_int): Same.
17385 (likely_max_stmt_executions_int): Same.
17386 (get_estimated_loop_iterations): Same.
17387 (get_max_loop_iterations): Same.
17388 (get_max_loop_iterations_int): Same.
17389 (get_likely_max_loop_iterations): Same.
17390 * cfgloop.h (simple_loop_desc): Same.
17391 (get_loop): Same.
17392 (loop_depth): Same.
17393 (loop_outer): Same.
17394 (loop_iterator::next): Same.
17395 (loop_outermost): Same.
17396 * cfgloopanal.c (mark_irreducible_loops): Same.
17397 (num_loop_insns): Same.
17398 (average_num_loop_insns): Same.
17399 (expected_loop_iterations_unbounded): Same.
17400 (expected_loop_iterations): Same.
17401 (mark_loop_exit_edges): Same.
17402 (single_likely_exit): Same.
17403 * cfgloopmanip.c (fix_bb_placement): Same.
17404 (fix_bb_placements): Same.
17405 (remove_path): Same.
17406 (place_new_loop): Same.
17407 (add_loop): Same.
17408 (scale_loop_frequencies): Same.
17409 (scale_loop_profile): Same.
17410 (create_empty_if_region_on_edge): Same.
17411 (create_empty_loop_on_edge): Same.
17412 (loopify): Same.
17413 (unloop): Same.
17414 (fix_loop_placements): Same.
17415 (copy_loop_info): Same.
17416 (duplicate_loop): Same.
17417 (duplicate_subloops): Same.
17418 (loop_redirect_edge): Same.
17419 (can_duplicate_loop_p): Same.
17420 (duplicate_loop_to_header_edge): Same.
17421 (mfb_keep_just): Same.
17422 (has_preds_from_loop): Same.
17423 (create_preheader): Same.
17424 (create_preheaders): Same.
17425 (lv_adjust_loop_entry_edge): Same.
17426 (loop_version): Same.
17427 * cfgloopmanip.h: Same.
17428 * cgraph.h: Same.
17429 * cgraphbuild.c: Same.
17430 * combine.c (make_extraction): Same.
17431 * config/i386/i386-features.c: Same.
17432 * config/i386/i386-features.h: Same.
17433 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
17434 (ix86_emit_outlined_ms2sysv_restore): Same.
17435 (ix86_noce_conversion_profitable_p): Same.
17436 (ix86_init_cost): Same.
17437 (ix86_simd_clone_usable): Same.
17438 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
17439 Wstruct-not-pod.
17440 * coretypes.h: Same.
17441 * data-streamer-in.c (string_for_index): Change class-key of PODs
17442 to struct and others to class.
17443 (streamer_read_indexed_string): Same.
17444 (streamer_read_string): Same.
17445 (bp_unpack_indexed_string): Same.
17446 (bp_unpack_string): Same.
17447 (streamer_read_uhwi): Same.
17448 (streamer_read_hwi): Same.
17449 (streamer_read_gcov_count): Same.
17450 (streamer_read_wide_int): Same.
17451 * data-streamer.h (streamer_write_bitpack): Same.
17452 (bp_unpack_value): Same.
17453 (streamer_write_char_stream): Same.
17454 (streamer_write_hwi_in_range): Same.
17455 (streamer_write_record_start): Same.
17456 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
17457 (add_cross_iteration_register_deps): Same.
17458 (build_intra_loop_deps): Same.
17459 * df-core.c (df_analyze): Same.
17460 (loop_post_order_compute): Same.
17461 (loop_inverted_post_order_compute): Same.
17462 * df-problems.c (df_rd_alloc): Same.
17463 (df_rd_simulate_one_insn): Same.
17464 (df_rd_local_compute): Same.
17465 (df_rd_init_solution): Same.
17466 (df_rd_confluence_n): Same.
17467 (df_rd_transfer_function): Same.
17468 (df_rd_free): Same.
17469 (df_rd_dump_defs_set): Same.
17470 (df_rd_top_dump): Same.
17471 (df_lr_alloc): Same.
17472 (df_lr_reset): Same.
17473 (df_lr_local_compute): Same.
17474 (df_lr_init): Same.
17475 (df_lr_confluence_n): Same.
17476 (df_lr_free): Same.
17477 (df_lr_top_dump): Same.
17478 (df_lr_verify_transfer_functions): Same.
17479 (df_live_alloc): Same.
17480 (df_live_reset): Same.
17481 (df_live_init): Same.
17482 (df_live_confluence_n): Same.
17483 (df_live_finalize): Same.
17484 (df_live_free): Same.
17485 (df_live_top_dump): Same.
17486 (df_live_verify_transfer_functions): Same.
17487 (df_mir_alloc): Same.
17488 (df_mir_reset): Same.
17489 (df_mir_init): Same.
17490 (df_mir_confluence_n): Same.
17491 (df_mir_free): Same.
17492 (df_mir_top_dump): Same.
17493 (df_word_lr_alloc): Same.
17494 (df_word_lr_reset): Same.
17495 (df_word_lr_init): Same.
17496 (df_word_lr_confluence_n): Same.
17497 (df_word_lr_free): Same.
17498 (df_word_lr_top_dump): Same.
17499 (df_md_alloc): Same.
17500 (df_md_simulate_one_insn): Same.
17501 (df_md_reset): Same.
17502 (df_md_init): Same.
17503 (df_md_free): Same.
17504 (df_md_top_dump): Same.
17505 * df-scan.c (df_insn_delete): Same.
17506 (df_insn_rescan): Same.
17507 (df_notes_rescan): Same.
17508 (df_sort_and_compress_mws): Same.
17509 (df_install_mws): Same.
17510 (df_refs_add_to_chains): Same.
17511 (df_ref_create_structure): Same.
17512 (df_ref_record): Same.
17513 (df_def_record_1): Same.
17514 (df_find_hard_reg_defs): Same.
17515 (df_uses_record): Same.
17516 (df_get_conditional_uses): Same.
17517 (df_get_call_refs): Same.
17518 (df_recompute_luids): Same.
17519 (df_get_entry_block_def_set): Same.
17520 (df_entry_block_defs_collect): Same.
17521 (df_get_exit_block_use_set): Same.
17522 (df_exit_block_uses_collect): Same.
17523 (df_mws_verify): Same.
17524 (df_bb_verify): Same.
17525 * df.h (df_scan_get_bb_info): Same.
17526 * doc/tm.texi: Same.
17527 * dse.c (record_store): Same.
17528 * dumpfile.h: Same.
17529 * emit-rtl.c (const_fixed_hasher::equal): Same.
17530 (set_mem_attributes_minus_bitpos): Same.
17531 (change_address): Same.
17532 (adjust_address_1): Same.
17533 (offset_address): Same.
17534 * emit-rtl.h: Same.
17535 * except.c (dw2_build_landing_pads): Same.
17536 (sjlj_emit_dispatch_table): Same.
17537 * explow.c (allocate_dynamic_stack_space): Same.
17538 (emit_stack_probe): Same.
17539 (probe_stack_range): Same.
17540 * expmed.c (store_bit_field_using_insv): Same.
17541 (store_bit_field_1): Same.
17542 (store_integral_bit_field): Same.
17543 (extract_bit_field_using_extv): Same.
17544 (extract_bit_field_1): Same.
17545 (emit_cstore): Same.
17546 * expr.c (emit_block_move_via_cpymem): Same.
17547 (expand_cmpstrn_or_cmpmem): Same.
17548 (set_storage_via_setmem): Same.
17549 (emit_single_push_insn_1): Same.
17550 (expand_assignment): Same.
17551 (store_constructor): Same.
17552 (expand_expr_real_2): Same.
17553 (expand_expr_real_1): Same.
17554 (try_casesi): Same.
17555 * flags.h: Same.
17556 * function.c (try_fit_stack_local): Same.
17557 (assign_stack_local_1): Same.
17558 (assign_stack_local): Same.
17559 (cut_slot_from_list): Same.
17560 (insert_slot_to_list): Same.
17561 (max_slot_level): Same.
17562 (move_slot_to_level): Same.
17563 (temp_address_hasher::equal): Same.
17564 (remove_unused_temp_slot_addresses): Same.
17565 (assign_temp): Same.
17566 (combine_temp_slots): Same.
17567 (update_temp_slot_address): Same.
17568 (preserve_temp_slots): Same.
17569 * function.h: Same.
17570 * fwprop.c: Same.
17571 * gcc-rich-location.h: Same.
17572 * gcov.c: Same.
17573 * genattrtab.c (check_attr_test): Same.
17574 (check_attr_value): Same.
17575 (convert_set_attr_alternative): Same.
17576 (convert_set_attr): Same.
17577 (check_defs): Same.
17578 (copy_boolean): Same.
17579 (get_attr_value): Same.
17580 (expand_delays): Same.
17581 (make_length_attrs): Same.
17582 (min_fn): Same.
17583 (make_alternative_compare): Same.
17584 (simplify_test_exp): Same.
17585 (tests_attr_p): Same.
17586 (get_attr_order): Same.
17587 (clear_struct_flag): Same.
17588 (gen_attr): Same.
17589 (compares_alternatives_p): Same.
17590 (gen_insn): Same.
17591 (gen_delay): Same.
17592 (find_attrs_to_cache): Same.
17593 (write_test_expr): Same.
17594 (walk_attr_value): Same.
17595 (write_attr_get): Same.
17596 (eliminate_known_true): Same.
17597 (write_insn_cases): Same.
17598 (write_attr_case): Same.
17599 (write_attr_valueq): Same.
17600 (write_attr_value): Same.
17601 (write_dummy_eligible_delay): Same.
17602 (next_comma_elt): Same.
17603 (find_attr): Same.
17604 (make_internal_attr): Same.
17605 (copy_rtx_unchanging): Same.
17606 (gen_insn_reserv): Same.
17607 (check_tune_attr): Same.
17608 (make_automaton_attrs): Same.
17609 (handle_arg): Same.
17610 * genextract.c (gen_insn): Same.
17611 (VEC_char_to_string): Same.
17612 * genmatch.c (print_operand): Same.
17613 (lower): Same.
17614 (parser::parse_operation): Same.
17615 (parser::parse_capture): Same.
17616 (parser::parse_c_expr): Same.
17617 (parser::parse_simplify): Same.
17618 (main): Same.
17619 * genoutput.c (output_operand_data): Same.
17620 (output_get_insn_name): Same.
17621 (compare_operands): Same.
17622 (place_operands): Same.
17623 (process_template): Same.
17624 (validate_insn_alternatives): Same.
17625 (validate_insn_operands): Same.
17626 (gen_expand): Same.
17627 (note_constraint): Same.
17628 * genpreds.c (write_one_predicate_function): Same.
17629 (add_constraint): Same.
17630 (process_define_register_constraint): Same.
17631 (write_lookup_constraint_1): Same.
17632 (write_lookup_constraint_array): Same.
17633 (write_insn_constraint_len): Same.
17634 (write_reg_class_for_constraint_1): Same.
17635 (write_constraint_satisfied_p_array): Same.
17636 * genrecog.c (optimize_subroutine_group): Same.
17637 * gensupport.c (process_define_predicate): Same.
17638 (queue_pattern): Same.
17639 (remove_from_queue): Same.
17640 (process_rtx): Same.
17641 (is_predicable): Same.
17642 (change_subst_attribute): Same.
17643 (subst_pattern_match): Same.
17644 (alter_constraints): Same.
17645 (alter_attrs_for_insn): Same.
17646 (shift_output_template): Same.
17647 (alter_output_for_subst_insn): Same.
17648 (process_one_cond_exec): Same.
17649 (subst_dup): Same.
17650 (process_define_cond_exec): Same.
17651 (mnemonic_htab_callback): Same.
17652 (gen_mnemonic_attr): Same.
17653 (read_md_rtx): Same.
17654 * ggc-page.c: Same.
17655 * gimple-loop-interchange.cc (dump_reduction): Same.
17656 (dump_induction): Same.
17657 (loop_cand::~loop_cand): Same.
17658 (free_data_refs_with_aux): Same.
17659 (tree_loop_interchange::interchange_loops): Same.
17660 (tree_loop_interchange::map_inductions_to_loop): Same.
17661 (tree_loop_interchange::move_code_to_inner_loop): Same.
17662 (compute_access_stride): Same.
17663 (compute_access_strides): Same.
17664 (proper_loop_form_for_interchange): Same.
17665 (tree_loop_interchange_compute_ddrs): Same.
17666 (prune_datarefs_not_in_loop): Same.
17667 (prepare_data_references): Same.
17668 (pass_linterchange::execute): Same.
17669 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17670 (unroll_jam_possible_p): Same.
17671 (fuse_loops): Same.
17672 (adjust_unroll_factor): Same.
17673 (tree_loop_unroll_and_jam): Same.
17674 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17675 (loop_versioning::expensive_stmt_p): Same.
17676 (loop_versioning::version_for_unity): Same.
17677 (loop_versioning::dump_inner_likelihood): Same.
17678 (loop_versioning::find_per_loop_multiplication): Same.
17679 (loop_versioning::analyze_term_using_scevs): Same.
17680 (loop_versioning::record_address_fragment): Same.
17681 (loop_versioning::analyze_expr): Same.
17682 (loop_versioning::analyze_blocks): Same.
17683 (loop_versioning::prune_conditions): Same.
17684 (loop_versioning::merge_loop_info): Same.
17685 (loop_versioning::add_loop_to_queue): Same.
17686 (loop_versioning::decide_whether_loop_is_versionable): Same.
17687 (loop_versioning::make_versioning_decisions): Same.
17688 (loop_versioning::implement_versioning_decisions): Same.
17689 * gimple-ssa-evrp-analyze.c
17690 (evrp_range_analyzer::record_ranges_from_phis): Same.
17691 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17692 (count_multiple_uses): Same.
17693 (split_group): Same.
17694 (imm_store_chain_info::output_merged_store): Same.
17695 (pass_store_merging::process_store): Same.
17696 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17697 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17698 (is_max): Same.
17699 (alloca_call_type): Same.
17700 (pass_walloca::execute): Same.
17701 * gimple-streamer-in.c (input_phi): Same.
17702 (input_gimple_stmt): Same.
17703 * gimple-streamer.h: Same.
17704 * godump.c (go_force_record_alignment): Same.
17705 (go_format_type): Same.
17706 (go_output_type): Same.
17707 (go_output_fndecl): Same.
17708 (go_output_typedef): Same.
17709 (keyword_hash_init): Same.
17710 (find_dummy_types): Same.
17711 * graph.c (draw_cfg_nodes_no_loops): Same.
17712 (draw_cfg_nodes_for_loop): Same.
17713 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17714 * hsa-brig.c: Same.
17715 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17716 * hsa-dump.c (dump_hsa_cfun): Same.
17717 * hsa-gen.c (gen_function_def_parameters): Same.
17718 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17719 * input.c (dump_line_table_statistics): Same.
17720 (test_lexer): Same.
17721 * input.h: Same.
17722 * internal-fn.c (get_multi_vector_move): Same.
17723 (expand_load_lanes_optab_fn): Same.
17724 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17725 (expand_GOMP_SIMT_EXIT): Same.
17726 (expand_GOMP_SIMT_LAST_LANE): Same.
17727 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17728 (expand_GOMP_SIMT_VOTE_ANY): Same.
17729 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17730 (expand_GOMP_SIMT_XCHG_IDX): Same.
17731 (expand_addsub_overflow): Same.
17732 (expand_neg_overflow): Same.
17733 (expand_mul_overflow): Same.
17734 (expand_call_mem_ref): Same.
17735 (expand_mask_load_optab_fn): Same.
17736 (expand_scatter_store_optab_fn): Same.
17737 (expand_gather_load_optab_fn): Same.
17738 * ipa-cp.c (ipa_get_parm_lattices): Same.
17739 (print_all_lattices): Same.
17740 (ignore_edge_p): Same.
17741 (build_toporder_info): Same.
17742 (free_toporder_info): Same.
17743 (push_node_to_stack): Same.
17744 (ipcp_lattice<valtype>::set_contains_variable): Same.
17745 (set_agg_lats_to_bottom): Same.
17746 (ipcp_bits_lattice::meet_with): Same.
17747 (set_single_call_flag): Same.
17748 (initialize_node_lattices): Same.
17749 (ipa_get_jf_ancestor_result): Same.
17750 (ipcp_verify_propagated_values): Same.
17751 (propagate_scalar_across_jump_function): Same.
17752 (propagate_context_across_jump_function): Same.
17753 (propagate_bits_across_jump_function): Same.
17754 (ipa_vr_operation_and_type_effects): Same.
17755 (propagate_vr_across_jump_function): Same.
17756 (set_check_aggs_by_ref): Same.
17757 (set_chain_of_aglats_contains_variable): Same.
17758 (merge_aggregate_lattices): Same.
17759 (agg_pass_through_permissible_p): Same.
17760 (propagate_aggs_across_jump_function): Same.
17761 (call_passes_through_thunk_p): Same.
17762 (propagate_constants_across_call): Same.
17763 (devirtualization_time_bonus): Same.
17764 (good_cloning_opportunity_p): Same.
17765 (context_independent_aggregate_values): Same.
17766 (gather_context_independent_values): Same.
17767 (perform_estimation_of_a_value): Same.
17768 (estimate_local_effects): Same.
17769 (value_topo_info<valtype>::add_val): Same.
17770 (add_all_node_vals_to_toposort): Same.
17771 (value_topo_info<valtype>::propagate_effects): Same.
17772 (ipcp_propagate_stage): Same.
17773 (ipcp_discover_new_direct_edges): Same.
17774 (same_node_or_its_all_contexts_clone_p): Same.
17775 (cgraph_edge_brings_value_p): Same.
17776 (gather_edges_for_value): Same.
17777 (create_specialized_node): Same.
17778 (find_more_scalar_values_for_callers_subset): Same.
17779 (find_more_contexts_for_caller_subset): Same.
17780 (copy_plats_to_inter): Same.
17781 (intersect_aggregates_with_edge): Same.
17782 (find_aggregate_values_for_callers_subset): Same.
17783 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17784 (decide_about_value): Same.
17785 (decide_whether_version_node): Same.
17786 (spread_undeadness): Same.
17787 (identify_dead_nodes): Same.
17788 (ipcp_store_vr_results): Same.
17789 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17790 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17791 (redirect_to_unreachable): Same.
17792 (edge_set_predicate): Same.
17793 (evaluate_conditions_for_known_args): Same.
17794 (evaluate_properties_for_edge): Same.
17795 (ipa_fn_summary_t::duplicate): Same.
17796 (ipa_call_summary_t::duplicate): Same.
17797 (dump_ipa_call_summary): Same.
17798 (ipa_dump_fn_summary): Same.
17799 (eliminated_by_inlining_prob): Same.
17800 (set_cond_stmt_execution_predicate): Same.
17801 (set_switch_stmt_execution_predicate): Same.
17802 (compute_bb_predicates): Same.
17803 (will_be_nonconstant_expr_predicate): Same.
17804 (phi_result_unknown_predicate): Same.
17805 (analyze_function_body): Same.
17806 (compute_fn_summary): Same.
17807 (estimate_edge_devirt_benefit): Same.
17808 (estimate_edge_size_and_time): Same.
17809 (estimate_calls_size_and_time): Same.
17810 (estimate_node_size_and_time): Same.
17811 (remap_edge_change_prob): Same.
17812 (remap_edge_summaries): Same.
17813 (ipa_merge_fn_summary_after_inlining): Same.
17814 (ipa_fn_summary_generate): Same.
17815 (inline_read_section): Same.
17816 (ipa_fn_summary_read): Same.
17817 (ipa_fn_summary_write): Same.
17818 * ipa-fnsummary.h: Same.
17819 * ipa-hsa.c (ipa_hsa_read_section): Same.
17820 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17821 * ipa-icf.c (sem_function::param_used_p): Same.
17822 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17823 * ipa-inline.c (edge_badness): Same.
17824 (inline_small_functions): Same.
17825 * ipa-polymorphic-call.c
17826 (ipa_polymorphic_call_context::stream_out): Same.
17827 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17828 (predicate::remap_after_inlining): Same.
17829 (predicate::stream_out): Same.
17830 * ipa-predicate.h: Same.
17831 * ipa-profile.c (ipa_profile_read_summary): Same.
17832 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17833 (count_formal_params): Same.
17834 (ipa_dump_param): Same.
17835 (ipa_alloc_node_params): Same.
17836 (ipa_print_node_jump_functions_for_edge): Same.
17837 (ipa_print_node_jump_functions): Same.
17838 (ipa_load_from_parm_agg): Same.
17839 (get_ancestor_addr_info): Same.
17840 (ipa_compute_jump_functions_for_edge): Same.
17841 (ipa_analyze_virtual_call_uses): Same.
17842 (ipa_analyze_stmt_uses): Same.
17843 (ipa_analyze_params_uses_in_bb): Same.
17844 (update_jump_functions_after_inlining): Same.
17845 (try_decrement_rdesc_refcount): Same.
17846 (ipa_impossible_devirt_target): Same.
17847 (update_indirect_edges_after_inlining): Same.
17848 (combine_controlled_uses_counters): Same.
17849 (ipa_edge_args_sum_t::duplicate): Same.
17850 (ipa_write_jump_function): Same.
17851 (ipa_write_indirect_edge_info): Same.
17852 (ipa_write_node_info): Same.
17853 (ipa_read_edge_info): Same.
17854 (ipa_prop_read_section): Same.
17855 (read_replacements_section): Same.
17856 * ipa-prop.h (ipa_get_param_count): Same.
17857 (ipa_get_param): Same.
17858 (ipa_get_type): Same.
17859 (ipa_get_param_move_cost): Same.
17860 (ipa_set_param_used): Same.
17861 (ipa_get_controlled_uses): Same.
17862 (ipa_set_controlled_uses): Same.
17863 (ipa_get_cs_argument_count): Same.
17864 * ipa-pure-const.c (analyze_function): Same.
17865 (pure_const_read_summary): Same.
17866 * ipa-ref.h: Same.
17867 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17868 * ipa-split.c (test_nonssa_use): Same.
17869 (dump_split_point): Same.
17870 (dominated_by_forbidden): Same.
17871 (split_part_set_ssa_name_p): Same.
17872 (find_split_points): Same.
17873 * ira-build.c (finish_loop_tree_nodes): Same.
17874 (low_pressure_loop_node_p): Same.
17875 * ira-color.c (ira_reuse_stack_slot): Same.
17876 * ira-int.h: Same.
17877 * ira.c (setup_reg_equiv): Same.
17878 (print_insn_chain): Same.
17879 (ira): Same.
17880 * loop-doloop.c (doloop_condition_get): Same.
17881 (add_test): Same.
17882 (record_reg_sets): Same.
17883 (doloop_optimize): Same.
17884 * loop-init.c (loop_optimizer_init): Same.
17885 (fix_loop_structure): Same.
17886 * loop-invariant.c (merge_identical_invariants): Same.
17887 (compute_always_reached): Same.
17888 (find_exits): Same.
17889 (may_assign_reg_p): Same.
17890 (find_invariants_bb): Same.
17891 (find_invariants_body): Same.
17892 (replace_uses): Same.
17893 (can_move_invariant_reg): Same.
17894 (free_inv_motion_data): Same.
17895 (move_single_loop_invariants): Same.
17896 (change_pressure): Same.
17897 (mark_ref_regs): Same.
17898 (calculate_loop_reg_pressure): Same.
17899 * loop-iv.c (biv_entry_hasher::equal): Same.
17900 (iv_extend_to_rtx_code): Same.
17901 (check_iv_ref_table_size): Same.
17902 (clear_iv_info): Same.
17903 (latch_dominating_def): Same.
17904 (iv_get_reaching_def): Same.
17905 (iv_constant): Same.
17906 (iv_subreg): Same.
17907 (iv_extend): Same.
17908 (iv_neg): Same.
17909 (iv_add): Same.
17910 (iv_mult): Same.
17911 (get_biv_step): Same.
17912 (record_iv): Same.
17913 (analyzed_for_bivness_p): Same.
17914 (record_biv): Same.
17915 (iv_analyze_biv): Same.
17916 (iv_analyze_expr): Same.
17917 (iv_analyze_def): Same.
17918 (iv_analyze_op): Same.
17919 (iv_analyze): Same.
17920 (iv_analyze_result): Same.
17921 (biv_p): Same.
17922 (eliminate_implied_conditions): Same.
17923 (simplify_using_initial_values): Same.
17924 (shorten_into_mode): Same.
17925 (canonicalize_iv_subregs): Same.
17926 (determine_max_iter): Same.
17927 (check_simple_exit): Same.
17928 (find_simple_exit): Same.
17929 (get_simple_loop_desc): Same.
17930 * loop-unroll.c (report_unroll): Same.
17931 (decide_unrolling): Same.
17932 (unroll_loops): Same.
17933 (loop_exit_at_end_p): Same.
17934 (decide_unroll_constant_iterations): Same.
17935 (unroll_loop_constant_iterations): Same.
17936 (compare_and_jump_seq): Same.
17937 (unroll_loop_runtime_iterations): Same.
17938 (decide_unroll_stupid): Same.
17939 (unroll_loop_stupid): Same.
17940 (referenced_in_one_insn_in_loop_p): Same.
17941 (reset_debug_uses_in_loop): Same.
17942 (analyze_iv_to_split_insn): Same.
17943 * lra-eliminations.c (lra_debug_elim_table): Same.
17944 (setup_can_eliminate): Same.
17945 (form_sum): Same.
17946 (lra_get_elimination_hard_regno): Same.
17947 (lra_eliminate_regs_1): Same.
17948 (eliminate_regs_in_insn): Same.
17949 (update_reg_eliminate): Same.
17950 (init_elimination): Same.
17951 (lra_eliminate): Same.
17952 * lra-int.h: Same.
17953 * lra-lives.c (initiate_live_solver): Same.
17954 * lra-remat.c (create_remat_bb_data): Same.
17955 * lra-spills.c (lra_spill): Same.
17956 * lra.c (lra_set_insn_recog_data): Same.
17957 (lra_set_used_insn_alternative_by_uid): Same.
17958 (init_reg_info): Same.
17959 (expand_reg_info): Same.
17960 * lto-cgraph.c (output_symtab): Same.
17961 (read_identifier): Same.
17962 (get_alias_symbol): Same.
17963 (input_node): Same.
17964 (input_varpool_node): Same.
17965 (input_ref): Same.
17966 (input_edge): Same.
17967 (input_cgraph_1): Same.
17968 (input_refs): Same.
17969 (input_symtab): Same.
17970 (input_offload_tables): Same.
17971 (output_cgraph_opt_summary): Same.
17972 (input_edge_opt_summary): Same.
17973 (input_cgraph_opt_section): Same.
17974 * lto-section-in.c (lto_free_raw_section_data): Same.
17975 (lto_create_simple_input_block): Same.
17976 (lto_free_function_in_decl_state_for_node): Same.
17977 * lto-streamer-in.c (lto_tag_check_set): Same.
17978 (lto_location_cache::revert_location_cache): Same.
17979 (lto_location_cache::input_location): Same.
17980 (lto_input_location): Same.
17981 (stream_input_location_now): Same.
17982 (lto_input_tree_ref): Same.
17983 (lto_input_eh_catch_list): Same.
17984 (input_eh_region): Same.
17985 (lto_init_eh): Same.
17986 (make_new_block): Same.
17987 (input_cfg): Same.
17988 (fixup_call_stmt_edges): Same.
17989 (input_struct_function_base): Same.
17990 (input_function): Same.
17991 (lto_read_body_or_constructor): Same.
17992 (lto_read_tree_1): Same.
17993 (lto_read_tree): Same.
17994 (lto_input_scc): Same.
17995 (lto_input_tree_1): Same.
17996 (lto_input_toplevel_asms): Same.
17997 (lto_input_mode_table): Same.
17998 (lto_reader_init): Same.
17999 (lto_data_in_create): Same.
18000 * lto-streamer-out.c (output_cfg): Same.
18001 * lto-streamer.h: Same.
18002 * modulo-sched.c (duplicate_insns_of_cycles): Same.
18003 (generate_prolog_epilog): Same.
18004 (mark_loop_unsched): Same.
18005 (dump_insn_location): Same.
18006 (loop_canon_p): Same.
18007 (sms_schedule): Same.
18008 * omp-expand.c (expand_omp_for_ordered_loops): Same.
18009 (expand_omp_for_generic): Same.
18010 (expand_omp_for_static_nochunk): Same.
18011 (expand_omp_for_static_chunk): Same.
18012 (expand_omp_simd): Same.
18013 (expand_omp_taskloop_for_inner): Same.
18014 (expand_oacc_for): Same.
18015 (expand_omp_atomic_pipeline): Same.
18016 (mark_loops_in_oacc_kernels_region): Same.
18017 * omp-offload.c (oacc_xform_loop): Same.
18018 * omp-simd-clone.c (simd_clone_adjust): Same.
18019 * optabs-query.c (get_traditional_extraction_insn): Same.
18020 * optabs.c (expand_vector_broadcast): Same.
18021 (expand_binop_directly): Same.
18022 (expand_twoval_unop): Same.
18023 (expand_twoval_binop): Same.
18024 (expand_unop_direct): Same.
18025 (emit_indirect_jump): Same.
18026 (emit_conditional_move): Same.
18027 (emit_conditional_neg_or_complement): Same.
18028 (emit_conditional_add): Same.
18029 (vector_compare_rtx): Same.
18030 (expand_vec_perm_1): Same.
18031 (expand_vec_perm_const): Same.
18032 (expand_vec_cond_expr): Same.
18033 (expand_vec_series_expr): Same.
18034 (maybe_emit_atomic_exchange): Same.
18035 (maybe_emit_sync_lock_test_and_set): Same.
18036 (expand_atomic_compare_and_swap): Same.
18037 (expand_atomic_load): Same.
18038 (expand_atomic_store): Same.
18039 (maybe_emit_op): Same.
18040 (valid_multiword_target_p): Same.
18041 (create_integer_operand): Same.
18042 (maybe_legitimize_operand_same_code): Same.
18043 (maybe_legitimize_operand): Same.
18044 (create_convert_operand_from_type): Same.
18045 (can_reuse_operands_p): Same.
18046 (maybe_legitimize_operands): Same.
18047 (maybe_gen_insn): Same.
18048 (maybe_expand_insn): Same.
18049 (maybe_expand_jump_insn): Same.
18050 (expand_insn): Same.
18051 * optabs.h (create_expand_operand): Same.
18052 (create_fixed_operand): Same.
18053 (create_output_operand): Same.
18054 (create_input_operand): Same.
18055 (create_convert_operand_to): Same.
18056 (create_convert_operand_from): Same.
18057 * optinfo.h: Same.
18058 * poly-int.h: Same.
18059 * predict.c (optimize_insn_for_speed_p): Same.
18060 (optimize_loop_for_size_p): Same.
18061 (optimize_loop_for_speed_p): Same.
18062 (optimize_loop_nest_for_speed_p): Same.
18063 (get_base_value): Same.
18064 (predicted_by_loop_heuristics_p): Same.
18065 (predict_extra_loop_exits): Same.
18066 (predict_loops): Same.
18067 (predict_paths_for_bb): Same.
18068 (predict_paths_leading_to): Same.
18069 (propagate_freq): Same.
18070 (pass_profile::execute): Same.
18071 * predict.h: Same.
18072 * profile-count.c (profile_count::differs_from_p): Same.
18073 (profile_probability::differs_lot_from_p): Same.
18074 * profile-count.h: Same.
18075 * profile.c (branch_prob): Same.
18076 * regrename.c (free_chain_data): Same.
18077 (mark_conflict): Same.
18078 (create_new_chain): Same.
18079 (merge_overlapping_regs): Same.
18080 (init_rename_info): Same.
18081 (merge_chains): Same.
18082 (regrename_analyze): Same.
18083 (regrename_do_replace): Same.
18084 (scan_rtx_reg): Same.
18085 (record_out_operands): Same.
18086 (build_def_use): Same.
18087 * regrename.h: Same.
18088 * reload.h: Same.
18089 * reload1.c (init_reload): Same.
18090 (maybe_fix_stack_asms): Same.
18091 (copy_reloads): Same.
18092 (count_pseudo): Same.
18093 (count_spilled_pseudo): Same.
18094 (find_reg): Same.
18095 (find_reload_regs): Same.
18096 (select_reload_regs): Same.
18097 (spill_hard_reg): Same.
18098 (fixup_eh_region_note): Same.
18099 (set_reload_reg): Same.
18100 (allocate_reload_reg): Same.
18101 (compute_reload_subreg_offset): Same.
18102 (reload_adjust_reg_for_icode): Same.
18103 (emit_input_reload_insns): Same.
18104 (emit_output_reload_insns): Same.
18105 (do_input_reload): Same.
18106 (inherit_piecemeal_p): Same.
18107 * rtl.h: Same.
18108 * sanopt.c (maybe_get_dominating_check): Same.
18109 (maybe_optimize_ubsan_ptr_ifn): Same.
18110 (can_remove_asan_check): Same.
18111 (maybe_optimize_asan_check_ifn): Same.
18112 (sanopt_optimize_walker): Same.
18113 * sched-deps.c (add_dependence_list): Same.
18114 (chain_to_prev_insn): Same.
18115 (add_insn_mem_dependence): Same.
18116 (create_insn_reg_set): Same.
18117 (maybe_extend_reg_info_p): Same.
18118 (sched_analyze_reg): Same.
18119 (sched_analyze_1): Same.
18120 (get_implicit_reg_pending_clobbers): Same.
18121 (chain_to_prev_insn_p): Same.
18122 (deps_analyze_insn): Same.
18123 (deps_start_bb): Same.
18124 (sched_free_deps): Same.
18125 (init_deps): Same.
18126 (init_deps_reg_last): Same.
18127 (free_deps): Same.
18128 * sched-ebb.c: Same.
18129 * sched-int.h: Same.
18130 * sched-rgn.c (add_branch_dependences): Same.
18131 (concat_insn_mem_list): Same.
18132 (deps_join): Same.
18133 (sched_rgn_compute_dependencies): Same.
18134 * sel-sched-ir.c (reset_target_context): Same.
18135 (copy_deps_context): Same.
18136 (init_id_from_df): Same.
18137 (has_dependence_p): Same.
18138 (change_loops_latches): Same.
18139 (bb_top_order_comparator): Same.
18140 (make_region_from_loop_preheader): Same.
18141 (sel_init_pipelining): Same.
18142 (get_loop_nest_for_rgn): Same.
18143 (make_regions_from_the_rest): Same.
18144 (sel_is_loop_preheader_p): Same.
18145 * sel-sched-ir.h (inner_loop_header_p): Same.
18146 (get_all_loop_exits): Same.
18147 * selftest.h: Same.
18148 * sese.c (sese_build_liveouts): Same.
18149 (sese_insert_phis_for_liveouts): Same.
18150 * sese.h (defined_in_sese_p): Same.
18151 * sreal.c (sreal::stream_out): Same.
18152 * sreal.h: Same.
18153 * streamer-hooks.h: Same.
18154 * target-globals.c (save_target_globals): Same.
18155 * target-globals.h: Same.
18156 * target.def: Same.
18157 * target.h: Same.
18158 * targhooks.c (default_has_ifunc_p): Same.
18159 (default_empty_mask_is_expensive): Same.
18160 (default_init_cost): Same.
18161 * targhooks.h: Same.
18162 * toplev.c: Same.
18163 * tree-affine.c (aff_combination_mult): Same.
18164 (aff_combination_expand): Same.
18165 (aff_combination_constant_multiple_p): Same.
18166 * tree-affine.h: Same.
18167 * tree-cfg.c (build_gimple_cfg): Same.
18168 (replace_loop_annotate_in_block): Same.
18169 (replace_uses_by): Same.
18170 (remove_bb): Same.
18171 (dump_cfg_stats): Same.
18172 (gimple_duplicate_sese_region): Same.
18173 (gimple_duplicate_sese_tail): Same.
18174 (move_block_to_fn): Same.
18175 (replace_block_vars_by_duplicates): Same.
18176 (move_sese_region_to_fn): Same.
18177 (print_loops_bb): Same.
18178 (print_loop): Same.
18179 (print_loops): Same.
18180 (debug): Same.
18181 (debug_loops): Same.
18182 * tree-cfg.h: Same.
18183 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18184 (chrec_fold_multiply_poly_poly): Same.
18185 (chrec_evaluate): Same.
18186 (chrec_component_in_loop_num): Same.
18187 (reset_evolution_in_loop): Same.
18188 (is_multivariate_chrec): Same.
18189 (chrec_contains_symbols): Same.
18190 (nb_vars_in_chrec): Same.
18191 (chrec_convert_1): Same.
18192 (chrec_convert_aggressive): Same.
18193 * tree-chrec.h: Same.
18194 * tree-core.h: Same.
18195 * tree-data-ref.c (dump_data_dependence_relation): Same.
18196 (canonicalize_base_object_address): Same.
18197 (data_ref_compare_tree): Same.
18198 (prune_runtime_alias_test_list): Same.
18199 (get_segment_min_max): Same.
18200 (create_intersect_range_checks): Same.
18201 (conflict_fn_no_dependence): Same.
18202 (object_address_invariant_in_loop_p): Same.
18203 (analyze_ziv_subscript): Same.
18204 (analyze_siv_subscript_cst_affine): Same.
18205 (analyze_miv_subscript): Same.
18206 (analyze_overlapping_iterations): Same.
18207 (build_classic_dist_vector_1): Same.
18208 (add_other_self_distances): Same.
18209 (same_access_functions): Same.
18210 (build_classic_dir_vector): Same.
18211 (subscript_dependence_tester_1): Same.
18212 (subscript_dependence_tester): Same.
18213 (access_functions_are_affine_or_constant_p): Same.
18214 (get_references_in_stmt): Same.
18215 (loop_nest_has_data_refs): Same.
18216 (graphite_find_data_references_in_stmt): Same.
18217 (find_data_references_in_bb): Same.
18218 (get_base_for_alignment): Same.
18219 (find_loop_nest_1): Same.
18220 (find_loop_nest): Same.
18221 * tree-data-ref.h (dr_alignment): Same.
18222 (ddr_dependence_level): Same.
18223 * tree-if-conv.c (fold_build_cond_expr): Same.
18224 (add_to_predicate_list): Same.
18225 (add_to_dst_predicate_list): Same.
18226 (phi_convertible_by_degenerating_args): Same.
18227 (idx_within_array_bound): Same.
18228 (all_preds_critical_p): Same.
18229 (pred_blocks_visited_p): Same.
18230 (predicate_bbs): Same.
18231 (build_region): Same.
18232 (if_convertible_loop_p_1): Same.
18233 (is_cond_scalar_reduction): Same.
18234 (predicate_scalar_phi): Same.
18235 (remove_conditions_and_labels): Same.
18236 (combine_blocks): Same.
18237 (version_loop_for_if_conversion): Same.
18238 (versionable_outer_loop_p): Same.
18239 (ifcvt_local_dce): Same.
18240 (tree_if_conversion): Same.
18241 (pass_if_conversion::gate): Same.
18242 * tree-if-conv.h: Same.
18243 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
18244 * tree-loop-distribution.c (bb_top_order_cmp): Same.
18245 (free_rdg): Same.
18246 (stmt_has_scalar_dependences_outside_loop): Same.
18247 (copy_loop_before): Same.
18248 (create_bb_after_loop): Same.
18249 (const_with_all_bytes_same): Same.
18250 (generate_memset_builtin): Same.
18251 (generate_memcpy_builtin): Same.
18252 (destroy_loop): Same.
18253 (build_rdg_partition_for_vertex): Same.
18254 (compute_access_range): Same.
18255 (data_ref_segment_size): Same.
18256 (latch_dominated_by_data_ref): Same.
18257 (compute_alias_check_pairs): Same.
18258 (fuse_memset_builtins): Same.
18259 (finalize_partitions): Same.
18260 (find_seed_stmts_for_distribution): Same.
18261 (prepare_perfect_loop_nest): Same.
18262 * tree-parloops.c (lambda_transform_legal_p): Same.
18263 (loop_parallel_p): Same.
18264 (reduc_stmt_res): Same.
18265 (add_field_for_name): Same.
18266 (create_call_for_reduction_1): Same.
18267 (replace_uses_in_bb_by): Same.
18268 (transform_to_exit_first_loop_alt): Same.
18269 (try_transform_to_exit_first_loop_alt): Same.
18270 (transform_to_exit_first_loop): Same.
18271 (num_phis): Same.
18272 (gen_parallel_loop): Same.
18273 (gather_scalar_reductions): Same.
18274 (get_omp_data_i_param): Same.
18275 (try_create_reduction_list): Same.
18276 (oacc_entry_exit_single_gang): Same.
18277 (parallelize_loops): Same.
18278 * tree-pass.h: Same.
18279 * tree-predcom.c (determine_offset): Same.
18280 (last_always_executed_block): Same.
18281 (split_data_refs_to_components): Same.
18282 (suitable_component_p): Same.
18283 (valid_initializer_p): Same.
18284 (find_looparound_phi): Same.
18285 (insert_looparound_copy): Same.
18286 (add_looparound_copies): Same.
18287 (determine_roots_comp): Same.
18288 (predcom_tmp_var): Same.
18289 (initialize_root_vars): Same.
18290 (initialize_root_vars_store_elim_1): Same.
18291 (initialize_root_vars_store_elim_2): Same.
18292 (finalize_eliminated_stores): Same.
18293 (initialize_root_vars_lm): Same.
18294 (remove_stmt): Same.
18295 (determine_unroll_factor): Same.
18296 (execute_pred_commoning_cbck): Same.
18297 (base_names_in_chain_on): Same.
18298 (combine_chains): Same.
18299 (pcom_stmt_dominates_stmt_p): Same.
18300 (try_combine_chains): Same.
18301 (prepare_initializers_chain_store_elim): Same.
18302 (prepare_initializers_chain): Same.
18303 (prepare_initializers): Same.
18304 (prepare_finalizers_chain): Same.
18305 (prepare_finalizers): Same.
18306 (insert_init_seqs): Same.
18307 * tree-scalar-evolution.c (loop_phi_node_p): Same.
18308 (compute_overall_effect_of_inner_loop): Same.
18309 (add_to_evolution_1): Same.
18310 (add_to_evolution): Same.
18311 (follow_ssa_edge_binary): Same.
18312 (follow_ssa_edge_expr): Same.
18313 (backedge_phi_arg_p): Same.
18314 (follow_ssa_edge_in_condition_phi_branch): Same.
18315 (follow_ssa_edge_in_condition_phi): Same.
18316 (follow_ssa_edge_inner_loop_phi): Same.
18317 (follow_ssa_edge): Same.
18318 (analyze_evolution_in_loop): Same.
18319 (analyze_initial_condition): Same.
18320 (interpret_loop_phi): Same.
18321 (interpret_condition_phi): Same.
18322 (interpret_rhs_expr): Same.
18323 (interpret_expr): Same.
18324 (interpret_gimple_assign): Same.
18325 (analyze_scalar_evolution_1): Same.
18326 (analyze_scalar_evolution): Same.
18327 (analyze_scalar_evolution_for_address_of): Same.
18328 (get_instantiated_value_entry): Same.
18329 (loop_closed_phi_def): Same.
18330 (instantiate_scev_name): Same.
18331 (instantiate_scev_poly): Same.
18332 (instantiate_scev_binary): Same.
18333 (instantiate_scev_convert): Same.
18334 (instantiate_scev_not): Same.
18335 (instantiate_scev_r): Same.
18336 (instantiate_scev): Same.
18337 (resolve_mixers): Same.
18338 (initialize_scalar_evolutions_analyzer): Same.
18339 (scev_reset_htab): Same.
18340 (scev_reset): Same.
18341 (derive_simple_iv_with_niters): Same.
18342 (simple_iv_with_niters): Same.
18343 (expression_expensive_p): Same.
18344 (final_value_replacement_loop): Same.
18345 * tree-scalar-evolution.h (block_before_loop): Same.
18346 * tree-ssa-address.h: Same.
18347 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
18348 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
18349 (record_edge_info): Same.
18350 * tree-ssa-live.c (var_map_base_fini): Same.
18351 (remove_unused_locals): Same.
18352 * tree-ssa-live.h: Same.
18353 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
18354 (pass_ch_vect::execute): Same.
18355 (pass_ch::process_loop_p): Same.
18356 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
18357 (movement_possibility): Same.
18358 (outermost_invariant_loop): Same.
18359 (stmt_cost): Same.
18360 (determine_max_movement): Same.
18361 (invariantness_dom_walker::before_dom_children): Same.
18362 (move_computations): Same.
18363 (may_move_till): Same.
18364 (force_move_till_op): Same.
18365 (force_move_till): Same.
18366 (memref_free): Same.
18367 (record_mem_ref_loc): Same.
18368 (set_ref_stored_in_loop): Same.
18369 (mark_ref_stored): Same.
18370 (sort_bbs_in_loop_postorder_cmp): Same.
18371 (sort_locs_in_loop_postorder_cmp): Same.
18372 (analyze_memory_references): Same.
18373 (mem_refs_may_alias_p): Same.
18374 (find_ref_loc_in_loop_cmp): Same.
18375 (rewrite_mem_ref_loc::operator): Same.
18376 (first_mem_ref_loc_1::operator): Same.
18377 (sm_set_flag_if_changed::operator): Same.
18378 (execute_sm_if_changed_flag_set): Same.
18379 (execute_sm): Same.
18380 (hoist_memory_references): Same.
18381 (ref_always_accessed::operator): Same.
18382 (refs_independent_p): Same.
18383 (record_dep_loop): Same.
18384 (ref_indep_loop_p_1): Same.
18385 (ref_indep_loop_p): Same.
18386 (can_sm_ref_p): Same.
18387 (find_refs_for_sm): Same.
18388 (loop_suitable_for_sm): Same.
18389 (store_motion_loop): Same.
18390 (store_motion): Same.
18391 (fill_always_executed_in): Same.
18392 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18393 (estimated_unrolled_size): Same.
18394 (loop_edge_to_cancel): Same.
18395 (remove_exits_and_undefined_stmts): Same.
18396 (remove_redundant_iv_tests): Same.
18397 (unloop_loops): Same.
18398 (estimated_peeled_sequence_size): Same.
18399 (try_peel_loop): Same.
18400 (canonicalize_loop_induction_variables): Same.
18401 (canonicalize_induction_variables): Same.
18402 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18403 (name_info): Same.
18404 (stmt_after_inc_pos): Same.
18405 (contains_abnormal_ssa_name_p): Same.
18406 (niter_for_exit): Same.
18407 (find_bivs): Same.
18408 (mark_bivs): Same.
18409 (find_givs_in_bb): Same.
18410 (find_induction_variables): Same.
18411 (find_interesting_uses_cond): Same.
18412 (outermost_invariant_loop_for_expr): Same.
18413 (idx_find_step): Same.
18414 (add_candidate_1): Same.
18415 (add_iv_candidate_derived_from_uses): Same.
18416 (alloc_use_cost_map): Same.
18417 (prepare_decl_rtl): Same.
18418 (generic_predict_doloop_p): Same.
18419 (computation_cost): Same.
18420 (determine_common_wider_type): Same.
18421 (get_computation_aff_1): Same.
18422 (get_use_type): Same.
18423 (determine_group_iv_cost_address): Same.
18424 (iv_period): Same.
18425 (difference_cannot_overflow_p): Same.
18426 (may_eliminate_iv): Same.
18427 (determine_set_costs): Same.
18428 (cheaper_cost_pair): Same.
18429 (compare_cost_pair): Same.
18430 (iv_ca_cand_for_group): Same.
18431 (iv_ca_recount_cost): Same.
18432 (iv_ca_set_remove_invs): Same.
18433 (iv_ca_set_no_cp): Same.
18434 (iv_ca_set_add_invs): Same.
18435 (iv_ca_set_cp): Same.
18436 (iv_ca_add_group): Same.
18437 (iv_ca_cost): Same.
18438 (iv_ca_compare_deps): Same.
18439 (iv_ca_delta_reverse): Same.
18440 (iv_ca_delta_commit): Same.
18441 (iv_ca_cand_used_p): Same.
18442 (iv_ca_delta_free): Same.
18443 (iv_ca_new): Same.
18444 (iv_ca_free): Same.
18445 (iv_ca_dump): Same.
18446 (iv_ca_extend): Same.
18447 (iv_ca_narrow): Same.
18448 (iv_ca_prune): Same.
18449 (cheaper_cost_with_cand): Same.
18450 (iv_ca_replace): Same.
18451 (try_add_cand_for): Same.
18452 (get_initial_solution): Same.
18453 (try_improve_iv_set): Same.
18454 (find_optimal_iv_set_1): Same.
18455 (create_new_iv): Same.
18456 (rewrite_use_compare): Same.
18457 (remove_unused_ivs): Same.
18458 (determine_scaling_factor): Same.
18459 * tree-ssa-loop-ivopts.h: Same.
18460 * tree-ssa-loop-manip.c (create_iv): Same.
18461 (compute_live_loop_exits): Same.
18462 (add_exit_phi): Same.
18463 (add_exit_phis): Same.
18464 (find_uses_to_rename_use): Same.
18465 (find_uses_to_rename_def): Same.
18466 (find_uses_to_rename_in_loop): Same.
18467 (rewrite_into_loop_closed_ssa): Same.
18468 (check_loop_closed_ssa_bb): Same.
18469 (split_loop_exit_edge): Same.
18470 (ip_end_pos): Same.
18471 (ip_normal_pos): Same.
18472 (copy_phi_node_args): Same.
18473 (gimple_duplicate_loop_to_header_edge): Same.
18474 (can_unroll_loop_p): Same.
18475 (determine_exit_conditions): Same.
18476 (scale_dominated_blocks_in_loop): Same.
18477 (niter_for_unrolled_loop): Same.
18478 (tree_transform_and_unroll_loop): Same.
18479 (rewrite_all_phi_nodes_with_iv): Same.
18480 * tree-ssa-loop-manip.h: Same.
18481 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
18482 (number_of_iterations_ne): Same.
18483 (assert_no_overflow_lt): Same.
18484 (assert_loop_rolls_lt): Same.
18485 (number_of_iterations_lt): Same.
18486 (adjust_cond_for_loop_until_wrap): Same.
18487 (tree_simplify_using_condition): Same.
18488 (simplify_using_initial_conditions): Same.
18489 (simplify_using_outer_evolutions): Same.
18490 (loop_only_exit_p): Same.
18491 (ssa_defined_by_minus_one_stmt_p): Same.
18492 (number_of_iterations_popcount): Same.
18493 (number_of_iterations_exit): Same.
18494 (find_loop_niter): Same.
18495 (finite_loop_p): Same.
18496 (chain_of_csts_start): Same.
18497 (get_val_for): Same.
18498 (loop_niter_by_eval): Same.
18499 (derive_constant_upper_bound_ops): Same.
18500 (do_warn_aggressive_loop_optimizations): Same.
18501 (record_estimate): Same.
18502 (get_cst_init_from_scev): Same.
18503 (record_nonwrapping_iv): Same.
18504 (idx_infer_loop_bounds): Same.
18505 (infer_loop_bounds_from_ref): Same.
18506 (infer_loop_bounds_from_array): Same.
18507 (infer_loop_bounds_from_pointer_arith): Same.
18508 (infer_loop_bounds_from_signedness): Same.
18509 (bound_index): Same.
18510 (discover_iteration_bound_by_body_walk): Same.
18511 (maybe_lower_iteration_bound): Same.
18512 (estimate_numbers_of_iterations): Same.
18513 (estimated_loop_iterations): Same.
18514 (estimated_loop_iterations_int): Same.
18515 (max_loop_iterations): Same.
18516 (max_loop_iterations_int): Same.
18517 (likely_max_loop_iterations): Same.
18518 (likely_max_loop_iterations_int): Same.
18519 (estimated_stmt_executions_int): Same.
18520 (max_stmt_executions): Same.
18521 (likely_max_stmt_executions): Same.
18522 (estimated_stmt_executions): Same.
18523 (stmt_dominates_stmt_p): Same.
18524 (nowrap_type_p): Same.
18525 (loop_exits_before_overflow): Same.
18526 (scev_var_range_cant_overflow): Same.
18527 (scev_probably_wraps_p): Same.
18528 (free_numbers_of_iterations_estimates): Same.
18529 * tree-ssa-loop-niter.h: Same.
18530 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
18531 (idx_analyze_ref): Same.
18532 (analyze_ref): Same.
18533 (gather_memory_references_ref): Same.
18534 (mark_nontemporal_store): Same.
18535 (emit_mfence_after_loop): Same.
18536 (may_use_storent_in_loop_p): Same.
18537 (mark_nontemporal_stores): Same.
18538 (should_unroll_loop_p): Same.
18539 (volume_of_dist_vector): Same.
18540 (add_subscript_strides): Same.
18541 (self_reuse_distance): Same.
18542 (insn_to_prefetch_ratio_too_small_p): Same.
18543 * tree-ssa-loop-split.c (split_at_bb_p): Same.
18544 (patch_loop_exit): Same.
18545 (find_or_create_guard_phi): Same.
18546 (easy_exit_values): Same.
18547 (connect_loop_phis): Same.
18548 (connect_loops): Same.
18549 (compute_new_first_bound): Same.
18550 (split_loop): Same.
18551 (tree_ssa_split_loops): Same.
18552 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
18553 (is_maybe_undefined): Same.
18554 (tree_may_unswitch_on): Same.
18555 (simplify_using_entry_checks): Same.
18556 (tree_unswitch_single_loop): Same.
18557 (tree_unswitch_loop): Same.
18558 (tree_unswitch_outer_loop): Same.
18559 (empty_bb_without_guard_p): Same.
18560 (used_outside_loop_p): Same.
18561 (get_vop_from_header): Same.
18562 (hoist_guard): Same.
18563 * tree-ssa-loop.c (gate_oacc_kernels): Same.
18564 (get_lsm_tmp_name): Same.
18565 * tree-ssa-loop.h: Same.
18566 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
18567 (build_and_add_sum): Same.
18568 (no_side_effect_bb): Same.
18569 (get_ops): Same.
18570 (linearize_expr): Same.
18571 (should_break_up_subtract): Same.
18572 (linearize_expr_tree): Same.
18573 * tree-ssa-scopedtables.c: Same.
18574 * tree-ssa-scopedtables.h: Same.
18575 * tree-ssa-structalias.c (condense_visit): Same.
18576 (label_visit): Same.
18577 (dump_pred_graph): Same.
18578 (perform_var_substitution): Same.
18579 (move_complex_constraints): Same.
18580 (remove_preds_and_fake_succs): Same.
18581 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18582 (determine_bb_domination_status): Same.
18583 (duplicate_thread_path): Same.
18584 (thread_through_all_blocks): Same.
18585 * tree-ssa-threadupdate.h: Same.
18586 * tree-streamer-in.c (streamer_read_string_cst): Same.
18587 (input_identifier): Same.
18588 (unpack_ts_type_common_value_fields): Same.
18589 (unpack_ts_block_value_fields): Same.
18590 (unpack_ts_translation_unit_decl_value_fields): Same.
18591 (unpack_ts_omp_clause_value_fields): Same.
18592 (streamer_read_tree_bitfields): Same.
18593 (streamer_alloc_tree): Same.
18594 (lto_input_ts_common_tree_pointers): Same.
18595 (lto_input_ts_vector_tree_pointers): Same.
18596 (lto_input_ts_poly_tree_pointers): Same.
18597 (lto_input_ts_complex_tree_pointers): Same.
18598 (lto_input_ts_decl_minimal_tree_pointers): Same.
18599 (lto_input_ts_decl_common_tree_pointers): Same.
18600 (lto_input_ts_decl_non_common_tree_pointers): Same.
18601 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18602 (lto_input_ts_field_decl_tree_pointers): Same.
18603 (lto_input_ts_function_decl_tree_pointers): Same.
18604 (lto_input_ts_type_common_tree_pointers): Same.
18605 (lto_input_ts_type_non_common_tree_pointers): Same.
18606 (lto_input_ts_list_tree_pointers): Same.
18607 (lto_input_ts_vec_tree_pointers): Same.
18608 (lto_input_ts_exp_tree_pointers): Same.
18609 (lto_input_ts_block_tree_pointers): Same.
18610 (lto_input_ts_binfo_tree_pointers): Same.
18611 (lto_input_ts_constructor_tree_pointers): Same.
18612 (lto_input_ts_omp_clause_tree_pointers): Same.
18613 (streamer_read_tree_body): Same.
18614 * tree-streamer.h: Same.
18615 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18616 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18617 (vect_analyze_possibly_independent_ddr): Same.
18618 (vect_analyze_data_ref_dependence): Same.
18619 (vect_compute_data_ref_alignment): Same.
18620 (vect_enhance_data_refs_alignment): Same.
18621 (vect_analyze_data_ref_access): Same.
18622 (vect_check_gather_scatter): Same.
18623 (vect_find_stmt_data_reference): Same.
18624 (vect_create_addr_base_for_vector_ref): Same.
18625 (vect_setup_realignment): Same.
18626 (vect_supportable_dr_alignment): Same.
18627 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18628 (adjust_phi_and_debug_stmts): Same.
18629 (vect_set_loop_mask): Same.
18630 (add_preheader_seq): Same.
18631 (vect_maybe_permute_loop_masks): Same.
18632 (vect_set_loop_masks_directly): Same.
18633 (vect_set_loop_condition_masked): Same.
18634 (vect_set_loop_condition_unmasked): Same.
18635 (slpeel_duplicate_current_defs_from_edges): Same.
18636 (slpeel_add_loop_guard): Same.
18637 (slpeel_can_duplicate_loop_p): Same.
18638 (create_lcssa_for_virtual_phi): Same.
18639 (iv_phi_p): Same.
18640 (vect_update_ivs_after_vectorizer): Same.
18641 (vect_gen_vector_loop_niters_mult_vf): Same.
18642 (slpeel_update_phi_nodes_for_loops): Same.
18643 (slpeel_update_phi_nodes_for_guard1): Same.
18644 (find_guard_arg): Same.
18645 (slpeel_update_phi_nodes_for_guard2): Same.
18646 (slpeel_update_phi_nodes_for_lcssa): Same.
18647 (vect_do_peeling): Same.
18648 (vect_create_cond_for_alias_checks): Same.
18649 (vect_loop_versioning): Same.
18650 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18651 (vect_inner_phi_in_double_reduction_p): Same.
18652 (vect_analyze_scalar_cycles_1): Same.
18653 (vect_fixup_scalar_cycles_with_patterns): Same.
18654 (vect_get_loop_niters): Same.
18655 (bb_in_loop_p): Same.
18656 (vect_get_max_nscalars_per_iter): Same.
18657 (vect_verify_full_masking): Same.
18658 (vect_compute_single_scalar_iteration_cost): Same.
18659 (vect_analyze_loop_form_1): Same.
18660 (vect_analyze_loop_form): Same.
18661 (vect_active_double_reduction_p): Same.
18662 (vect_analyze_loop_operations): Same.
18663 (neutral_op_for_slp_reduction): Same.
18664 (vect_is_simple_reduction): Same.
18665 (vect_model_reduction_cost): Same.
18666 (get_initial_def_for_reduction): Same.
18667 (get_initial_defs_for_reduction): Same.
18668 (vect_create_epilog_for_reduction): Same.
18669 (vectorize_fold_left_reduction): Same.
18670 (vectorizable_reduction): Same.
18671 (vectorizable_induction): Same.
18672 (vectorizable_live_operation): Same.
18673 (loop_niters_no_overflow): Same.
18674 (vect_get_loop_mask): Same.
18675 (vect_transform_loop_stmt): Same.
18676 (vect_transform_loop): Same.
18677 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18678 (vect_determine_precisions): Same.
18679 (vect_pattern_recog_1): Same.
18680 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18681 * tree-vect-stmts.c (stmt_vectype): Same.
18682 (process_use): Same.
18683 (vect_init_vector_1): Same.
18684 (vect_truncate_gather_scatter_offset): Same.
18685 (get_group_load_store_type): Same.
18686 (vect_build_gather_load_calls): Same.
18687 (vect_get_strided_load_store_ops): Same.
18688 (vectorizable_simd_clone_call): Same.
18689 (vectorizable_store): Same.
18690 (permute_vec_elements): Same.
18691 (vectorizable_load): Same.
18692 (vect_transform_stmt): Same.
18693 (supportable_widening_operation): Same.
18694 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18695 (vec_info::free_stmt_vec_info): Same.
18696 (vect_free_loop_info_assumptions): Same.
18697 (vect_loop_vectorized_call): Same.
18698 (set_uid_loop_bbs): Same.
18699 (vectorize_loops): Same.
18700 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18701 * tree.c (add_tree_to_fld_list): Same.
18702 (fld_type_variant_equal_p): Same.
18703 (fld_decl_context): Same.
18704 (fld_incomplete_type_of): Same.
18705 (free_lang_data_in_binfo): Same.
18706 (need_assembler_name_p): Same.
18707 (find_decls_types_r): Same.
18708 (get_eh_types_for_runtime): Same.
18709 (find_decls_types_in_eh_region): Same.
18710 (find_decls_types_in_node): Same.
18711 (assign_assembler_name_if_needed): Same.
18712 * value-prof.c (stream_out_histogram_value): Same.
18713 * value-prof.h: Same.
18714 * var-tracking.c (use_narrower_mode): Same.
18715 (prepare_call_arguments): Same.
18716 (vt_expand_loc_callback): Same.
18717 (resolve_expansions_pending_recursion): Same.
18718 (vt_expand_loc): Same.
18719 * varasm.c (const_hash_1): Same.
18720 (compare_constant): Same.
18721 (tree_output_constant_def): Same.
18722 (simplify_subtraction): Same.
18723 (get_pool_constant): Same.
18724 (output_constant_pool_2): Same.
18725 (output_constant_pool_1): Same.
18726 (mark_constants_in_pattern): Same.
18727 (mark_constant_pool): Same.
18728 (get_section_anchor): Same.
18729 * vr-values.c (compare_range_with_value): Same.
18730 (vr_values::extract_range_from_phi_node): Same.
18731 * vr-values.h: Same.
18732 * web.c (unionfind_union): Same.
18733 * wide-int.h: Same.
18734
18735 2019-07-09 Martin Sebor <msebor@redhat.com>
18736
18737 PR c++/61339
18738 * align.h: Change class-key from class to struct and vice versa
18739 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18740 * alloc-pool.h: Same.
18741 * asan.c (shadow_mem_size): Same.
18742 * auto-profile.c: Same.
18743 * basic-block.h: Same.
18744 * bitmap.h: Same.
18745 * cfgexpand.c (set_rtl): Same.
18746 (expand_one_stack_var_at): Same.
18747 * cfghooks.h: Same.
18748 * cfgloop.h: Same.
18749 * cgraph.h: Same.
18750 * config/i386/i386.h: Same.
18751 * df-problems.c (df_print_bb_index): Same.
18752 * df-scan.c: Same.
18753 * df.h (df_single_use): Same.
18754 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18755 (layout::annotation_line_showed_range_p): Same.
18756 (get_printed_columns): Same.
18757 (correction::ensure_terminated): Same.
18758 (line_corrections::~line_corrections): Same.
18759 * dojump.h: Same.
18760 * dse.c: Same.
18761 * dump-context.h: Same.
18762 * dumpfile.h: Same.
18763 * dwarf2out.c: Same.
18764 * edit-context.c: Same.
18765 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18766 * flags.h: Same.
18767 * function.c (assign_stack_local): Same.
18768 * function.h: Same.
18769 * gcc.c: Same.
18770 * gcov.c (block_info::block_info): Same.
18771 * genattrtab.c: Same.
18772 * genextract.c: Same.
18773 * genmatch.c (comparison_code_p): Same.
18774 (id_base::id_base): Same.
18775 (decision_tree::print): Same.
18776 * genoutput.c: Same.
18777 * genpreds.c (write_one_predicate_function): Same.
18778 * genrecog.c (validate_pattern): Same.
18779 (find_operand_positions): Same.
18780 (optimize_subroutine_group): Same.
18781 (merge_pattern_transition::merge_pattern_transition): Same.
18782 (merge_pattern_info::merge_pattern_info): Same.
18783 (merge_state_result::merge_state_result): Same.
18784 (merge_into_state): Same.
18785 * gensupport.c: Same.
18786 * gensupport.h: Same.
18787 * ggc-common.c (init_ggc_heuristics): Same.
18788 * ggc-tests.c (test_union): Same.
18789 * gimple-loop-interchange.cc (dump_induction): Same.
18790 * gimple-loop-versioning.cc: Same.
18791 * gimple-match.h (gimple_match_cond::any_else): Same.
18792 * gimple-ssa-backprop.c: Same.
18793 * gimple-ssa-sprintf.c: Same.
18794 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18795 Same.
18796 (store_immediate_info::store_immediate_info): Same.
18797 (merged_store_group::apply_stores): Same.
18798 (get_location_for_stmts): Same.
18799 * gimple-ssa-strength-reduction.c: Same.
18800 * gimple-ssa-warn-alloca.c: Same.
18801 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18802 * godump.c (go_type_decl): Same.
18803 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18804 * hash-map.h: Same.
18805 * hash-set-tests.c (test_set_of_strings): Same.
18806 * hsa-brig.c: Same.
18807 * hsa-common.h: Same.
18808 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18809 * input.c (assert_loceq): Same.
18810 * input.h: Same.
18811 * ipa-cp.c: Same.
18812 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18813 * ipa-fnsummary.h: Same.
18814 * ipa-inline.h: Same.
18815 * ipa-prop.h: Same.
18816 * ipa-split.c (visit_bb): Same.
18817 * ira-int.h (minmax_set_iter_next): Same.
18818 * loop-invariant.c: Same.
18819 * loop-iv.c: Same.
18820 * lra-eliminations.c: Same.
18821 * lra-int.h: Same.
18822 * lra-lives.c (mark_regno_dead): Same.
18823 * lra-remat.c: Same.
18824 * lra-spills.c: Same.
18825 * lto-streamer.h: Same.
18826 * mem-stats.h: Same.
18827 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18828 * omp-low.c (omp_clause_aligned_alignment): Same.
18829 * optabs-query.h (get_vcond_eq_icode): Same.
18830 * optabs.h: Same.
18831 * opts.c (wrap_help): Same.
18832 * poly-int.h: Same.
18833 * predict.c (predict_paths_leading_to_edge): Same.
18834 * pretty-print.h: Same.
18835 * profile-count.h: Same.
18836 * read-md.h: Same.
18837 * read-rtl-function.c: Same.
18838 * ree.c: Same.
18839 * reginfo.c: Same.
18840 * regrename.c: Same.
18841 * regrename.h: Same.
18842 * reload.h: Same.
18843 * rtl-iter.h: Same.
18844 * rtl.h (costs_add_n_insns): Same.
18845 * sanopt.c: Same.
18846 * sched-int.h: Same.
18847 * sel-sched-ir.h: Same.
18848 * selftest.h: Same.
18849 * sese.h (vec_find): Same.
18850 * stmt.c: Same.
18851 * target-globals.h: Same.
18852 * tree-affine.c (aff_combination_find_elt): Same.
18853 * tree-affine.h: Same.
18854 * tree-data-ref.h: Same.
18855 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18856 * tree-predcom.c: Same.
18857 * tree-scalar-evolution.c (find_var_scev_info): Same.
18858 * tree-ssa-alias.h: Same.
18859 * tree-ssa-ccp.c: Same.
18860 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18861 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18862 (rewrite_mem_refs): Same.
18863 (execute_sm_if_changed): Same.
18864 (hoist_memory_references): Same.
18865 * tree-ssa-loop-ivopts.c (operator<=): Same.
18866 * tree-ssa-loop.h: Same.
18867 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18868 * tree-ssa-structalias.c: Same.
18869 * tree-switch-conversion.h (cluster::cluster): Same.
18870 (simple_cluster::simple_cluster): Same.
18871 * tree-vect-patterns.c (type_conversion_p): Same.
18872 * tree-vectorizer.c (dump_stmt_cost): Same.
18873 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18874 * tree.c (protected_set_expr_location): Same.
18875 * tree.h (desired_pro_or_demotion_p): Same.
18876 (fndecl_built_in_p): Same.
18877 * unique-ptr-tests.cc: Same.
18878 * var-tracking.c (delete_variable_part): Same.
18879 * varasm.c (assemble_real): Same.
18880 (tree_output_constant_def): Same.
18881 * vec.c: Same.
18882 * wide-int-bitmask.h: Same.
18883 * wide-int.h (decompose): Same.
18884
18885 2019-07-09 Richard Biener <rguenther@suse.de>
18886
18887 PR tree-optimization/91114
18888 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18889 find a vector type isn't fatal.
18890
18891 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18892
18893 * config/aarch64/aarch64-simd.md
18894 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18895 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18896 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18897 (*aarch64_crypto_aese_fused,
18898 *aarch64_crypto_aesd_fused): Update to new definition.
18899 * config/aarch64/aarch64.c
18900 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18901
18902 2019-07-09 Richard Biener <rguenther@suse.de>
18903
18904 * gimple-match.h (gimple_match_op::resimplify): New.
18905 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18906 gimple_resimplify4, gimple_resimplify5): Remove.
18907 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18908 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18909 Make static.
18910 (gimple_match_op::resimplify): New.
18911 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18912 according to availability. Use gimple_match_op::resimplify.
18913
18914 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18915
18916 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18917
18918 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18919
18920 * config/arm/crypto.md:
18921 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18922 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18923 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18924 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18925 * config/arm/arm.c
18926 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18927 * config/arm/aarch-common-protos.h
18928 (aarch_crypto_can_dual_issue): Remove.
18929 * config/arm/aarch-common.c
18930 (aarch_crypto_can_dual_issue): Likewise.
18931 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18932 * config/arm/cortex-a53.md: Likewise.
18933 * config/arm/cortex-a57.md: Likewise.
18934 * config/arm/iterators.md:
18935 (CRYPTO_BINARY): Redefine.
18936 (CRYPTO_UNARY): Removed.
18937 (CRYPTO_AES, CRYPTO_AESMC): New.
18938
18939 2019-07-09 Richard Biener <rguenther@suse.de>
18940
18941 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18942 (vn_reference_lookup_3): If the main ref has no access path recorded
18943 but orig_ref has use it to do access-path based disambiguation.
18944 (vn_reference_lookup_pieces): Adjust.
18945 (vn_reference_lookup): Pass down original ref if we valueized.
18946
18947 2019-07-09 Martin Liska <mliska@suse.cz>
18948
18949 * doc/extend.texi: Document influence on loop
18950 optimizers.
18951
18952 2019-07-09 Martin Liska <mliska@suse.cz>
18953
18954 * lto-compress.c (lto_normalized_zstd_level): Do not use
18955 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18956 of libzstd. One can use 0 as a default compression level.
18957
18958 2019-07-09 Martin Liska <mliska@suse.cz>
18959
18960 * doc/invoke.texi: Add link from -fprofile-dir option.
18961 Use better wording for 'gcno filename'.
18962
18963 2019-07-08 Martin Sebor <msebor@redhat.com>
18964
18965 PR middle-end/71924
18966 PR middle-end/90549
18967 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18968 comment.
18969 (args_loc_t): New type.
18970 (args_loc_t, locmap_t): same.
18971 (diag_returned_locals): New function.
18972 (is_addr_local): Same.
18973 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18974 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18975 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18976
18977 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18978
18979 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18980 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18981 and casts in offset when different, both through gimple stmts
18982 and through trees. Rewritten using loops to minimize code duplication
18983 for each operand.
18984
18985 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18986
18987 * emit-rtl.c (set_insn_locations): New function moved from...
18988 * function.c (set_insn_locations): ...here.
18989 * ira-emit.c (emit_moves): Propagate location of the first instruction
18990 to the inserted move instructions.
18991 * reg-stack.c (compensate_edge): Set the location if the sequence is
18992 inserted on the edge.
18993 * rtl.h (set_insn_locations): Declare.
18994
18995 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18996
18997 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18998 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18999 .machine string.
19000
19001 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19002
19003 PR rtl-optimization/88233
19004 * common.opt (fsplit-wide-types-early): New option.
19005 * common/config/rs6000/rs6000-common.c
19006 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
19007 OPT_LEVELS_ALL.
19008 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
19009 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
19010 flag_split_wide_types_early.
19011 (pass_data_lower_subreg3): New.
19012 (pass_lower_subreg3): New.
19013 (make_pass_lower_subreg3): New.
19014 * passes.def (pass_lower_subreg2): Move after the loop passes.
19015 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19016 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19017 the pass pipeline; its previous place is taken by ...
19018 (make_pass_lower_subreg3): ... this.
19019
19020 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19021
19022 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19023 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19024
19025 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19026
19027 * config/s390/constraints.md: Add new jsc constraint.
19028 * config/s390/predicates.md: New predicates.
19029 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19030 * config/s390/s390.c (s390_valid_shift_count): New function.
19031 (print_shift_count_operand): Use s390_valid_shift_count.
19032 (print_operand): Likewise.
19033 * config/s390/s390.md: Use new predicate.
19034 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19035 * config/s390/vector.md: Use new predicate.
19036
19037 2019-07-08 Andrew Waterman <andrew@sifive.com>
19038 Jim Wilson <jimw@sifive.com>
19039
19040 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19041 bitsize instead of BITS_PER_WORD.
19042
19043 2019-07-08 Martin Liska <mliska@suse.cz>
19044
19045 * collect2.c (defined): Revert to before r254460.
19046 (scan_prog_file): Revert to before r254460.
19047
19048 2019-07-08 Richard Biener <rguenther@suse.de>
19049
19050 PR tree-optimization/83518
19051 * tree-ssa-sccvn.c: Include splay-tree.h.
19052 (struct pd_range, struct pd_data): New.
19053 (struct vn_walk_cb_data): Add data to track partial definitions.
19054 (vn_walk_cb_data::~vn_walk_cb_data): New.
19055 (vn_walk_cb_data::push_partial_def): New.
19056 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19057 (vn_reference_lookup_2): When partial defs are registered give up.
19058 (vn_reference_lookup_3): Track partial defs for memset and
19059 constructor zeroing and for defs from constants.
19060
19061 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19062
19063 * doc/install.texi (bootstrap-Og): Document.
19064
19065 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19066
19067 * config/riscv/pic.md (*local_pic_load_s<mode>)
19068 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19069 referenced by <mode>, giving...
19070 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19071 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19072 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19073 use <X:MODE> for the mode attribute.
19074
19075 2019-07-07 Jeff Law <law@redhat.com>
19076
19077 PR tree-optimization/91090
19078 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19079 in handling of ranges to simplify switch statements.
19080
19081 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19082
19083 * config/darwin.c (darwin_override_options): Make a final check on PIC
19084 options.
19085
19086 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19087
19088 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19089 on for kernel code.
19090
19091 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19092
19093 PR target/91068
19094 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19095 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19096 instead of matching them to "l" output operands.
19097
19098 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19099
19100 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19101 and check whether addr.reg is nonnull before using it.
19102
19103 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19104
19105 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19106 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19107 variable(s). For conditional lastprivate look through outer
19108 GIMPLE_OMP_SCAN context.
19109 (lower_omp_1): For conditional lastprivate look through outer
19110 GIMPLE_OMP_SCAN context.
19111
19112 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19113 member to combined_into_simd_safelen1.
19114 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19115 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19116 clauses if ctx->combined_into_simd_safelen1 put statements after the
19117 predicate conditionalized block rather than into it.
19118
19119 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19120
19121 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19122 operand 1.
19123 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19124 Make the choice of <mode> explicit, giving...
19125 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19126
19127 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19128
19129 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19130 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19131 of .md attributes.
19132 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19133 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19134 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19135 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19136 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19137 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19138 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19139 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19140 (*avx512f_scatterdi<mode>): Likewise.
19141 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19142
19143 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19144
19145 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19146 specify the mode iterator referenced by <mode>, giving...
19147 (*push1_h8300hs_<QHI:mode>): ...this.
19148
19149 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19150
19151 * config/gcn/gcn-valu.md
19152 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19153 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19154 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19155 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19156 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19157 but using the _exec comparison patterns.
19158 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19159 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19160 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19161 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19162 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19163 but using the _exec comparison patterns.
19164
19165 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19166
19167 * config/arm/sync.md
19168 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19169 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19170 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19171 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19172 <SIDI:cas_cmp_str>.
19173
19174 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19175
19176 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19177 (maybe_lookup_ctx): Add forward declaration.
19178 (omp_find_scan): Likewise. Walk into body of simd if composited
19179 with worksharing loop.
19180 (scan_omp_simd_scan): New function.
19181 (scan_omp_1_stmt): Call it.
19182 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19183 ctx->for_simd_scan_phase.
19184 (lower_rec_input_clauses): Do much less work for inscan reductions
19185 in ctx->for_simd_scan_phase is_simd regions.
19186 (lower_omp_scan): Set is_simd also on simd constructs composited
19187 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19188 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19189 emit their body after in simd constructs composited with worksharing
19190 loop.
19191 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19192
19193 * omp-low.c (omp_find_scan): Make static.
19194 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19195 the second loop, var2 represents the first partial sum and so needs
19196 to go before rprivb[ivar].
19197
19198 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19199
19200 * config/rs6000/rs6000-logue.c: Remove unused code.
19201
19202 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19203
19204 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19205
19206 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19207
19208 PR target/90712
19209 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19210 check with a frame laid out check.
19211
19212 2019-07-05 Richard Biener <rguenther@suse.de>
19213
19214 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
19215 when comparing against a store with possibly the same value.
19216
19217 2019-07-05 Richard Biener <rguenther@suse.de>
19218
19219 PR tree-optimization/91091
19220 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
19221 (walk_non_aliased_vuses): Likewise.
19222 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
19223 (get_continuation_for_phi): New tbaa_p parameter and pass
19224 it down.
19225 (walk_non_aliased_vuses): Likewise.
19226 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
19227 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
19228 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
19229 Likewise.
19230 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
19231 (adjust_offsets_for_equal_base_address): New function.
19232 (vn_reference_lookup_3): Use it to catch more base equivalences.
19233 Handle and pass down tbaa_p flag.
19234 (vn_reference_lookup_pieces): Adjust.
19235 (vn_reference_lookup): Remove alias-set altering, instead pass
19236 down false as tbaa_p.
19237
19238 2019-07-05 Richard Biener <rguenther@suse.de>
19239
19240 PR tree-optimization/91091
19241 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
19242 accesses can happen with -fno-strict-aliasing.
19243
19244 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
19245
19246 * tree-ssa-alias.c (alias_stats): Add
19247 nonoverlapping_component_refs_since_match_p_must_overlap.
19248 (dump_alias_stats): Print it.
19249 (nonoverlapping_component_refs_since_match_p): Add early exit.
19250 (nonoverlapping_component_refs_p): Do not account early exit.
19251
19252 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19253
19254 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
19255 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
19256 (emit_eh_dispatch): Delete.
19257 (lower_catch): Emit the eh_dispatch manually and set the location of
19258 the first catch statement onto it.
19259 (lower_eh_filter): Emit the eh_dispatch manually and set location.
19260 (lower_eh_dispatch): Propagate location.
19261 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
19262 (eliminate_build): Likewise.
19263
19264 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19265
19266 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
19267 phi nodes if possible.
19268 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
19269 location info on the newly created statement.
19270 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
19271 newly created increment if needed.
19272
19273 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19274
19275 PR middle-end/78884
19276 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
19277 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
19278 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
19279 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
19280 ctx->add_safelen1 is set.
19281
19282 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
19283 GOMP_loop_start at the start of second worksharing loop in a scan.
19284 For nowait, don't emit GOMP_loop_end_nowait at the end of first
19285 worksharing loop in a scan even if there are conditional lastprivates,
19286 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
19287
19288 2019-07-04 Jan Hubicka <jh@suse.cz>
19289
19290 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
19291 Fix check for match in the ref walk.
19292
19293 2019-07-04 Martin Liska <mliska@suse.cz>
19294
19295 * tree-ssa-loop-niter.c
19296 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
19297 (estimate_numbers_of_iterations):
19298 Support __builtin_expect_with_probability for analysis
19299 of # of loop iterations.
19300
19301 2019-07-04 Alexandre Oliva <oliva@adacore.com>
19302
19303 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
19304 * except.c: Likewise.
19305 * expr.c (expand_expr_real_1): Reject it.
19306 * gimplify.c (gimplify_expr): Gimplify it, within
19307 TRY_FINALLY_EXPR.
19308 * tree-dump.c (dequeue_and_dump): Dump it.
19309 * tree-pretty-print.c (dump_generic_node): Likewise.
19310 * tree.c (block_may_fallthru): Handle it.
19311 * tree.def (EH_ELSE_EXPR): Introduce it.
19312 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
19313 with GIMPLE_EH_ELSE as try/finally/else.
19314
19315 2019-07-04 Richard Biener <rguenther@suse.de>
19316
19317 PR ipa/91062
19318 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19319 parameter whether to disable GC collection.
19320 * passes.c (execute_one_ipa_transform_pass): Likewise, and
19321 honor it.
19322 (execute_all_ipa_transforms): Likewise and pass it down.
19323 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
19324 collection from applying IPA transforms.
19325 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
19326 from applying IPA transforms.
19327
19328 2019-07-04 Richard Biener <rguenther@suse.de>
19329
19330 PR tree-optimization/90911
19331 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
19332 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
19333 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19334 scalar_loop_scaling.
19335 (vect_transform_loop): Scale scalar loop profile if needed.
19336 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
19337 the loop copy from if-conversion adjust edge probabilities
19338 and scale the vectorized loop body profile, queue the scalar
19339 profile for updating after peeling.
19340
19341 2019-07-04 Jan Hubicka <jh@suse.cz>
19342
19343 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
19344 parameters; return early for must-alias.
19345 (indirect_ref_may_alias_decl_p): Likewise; when establishing
19346 outer types match, try nonoverlapping_component_refs
19347 if must-alias is not obvious.
19348 (indirect_refs_may_alias_p): Likewise.
19349 (refs_may_alias_p_2): Likewise.
19350
19351 2019-07-04 Richard Biener <rguenther@suse.de>
19352
19353 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
19354 argument.
19355 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
19356 globals into...
19357 (struct vn_walk_cb_data): New callback data struct.
19358 (vn_reference_lookup_2): Adjust.
19359 (vn_reference_lookup_3): Likewise.
19360 (vn_reference_lookup_pieces): Likewise.
19361 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
19362 (visit_reference_op_load): Adjust.
19363
19364 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19365
19366 PR tree-optimization/91063
19367 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
19368 stmt from stmts sequence before calling vect_init_vector_1.
19369 Formatting fix.
19370
19371 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19372
19373 PR target/88833
19374 * fwprop.c (reg_single_def_p): New function.
19375 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
19376 (forward_propagate_into): New parameter reg_prop_only
19377 with default value false.
19378 Propagate def's src into loop only if SET_SRC and SET_DEST
19379 of def_set have single definitions.
19380 Likewise if reg_prop_only is set to true.
19381 (fwprop): New param fwprop_addr_p.
19382 Integrate fwprop_addr into fwprop.
19383 (fwprop_addr): Remove.
19384 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19385 to true.
19386 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19387 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19388 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19389
19390 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19391
19392 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19393 in worksharing loop scans.
19394
19395 PR tree-optimization/91074
19396 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19397 temporary.
19398
19399 PR rtl-optimization/90756
19400 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19401 for VECTOR_TYPE_P.
19402
19403 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19404
19405 * config/aarch64/aarch64.md: Remove redundant constraints from
19406 define_expand but keep some patterns untouched if they are
19407 specially selected by TARGET_SECONDARY_RELOAD hook.
19408 * config/aarch64/aarch64-sve.md: Likewise.
19409 * config/aarch64/atomics.md: Remove redundant constraints from
19410 define_expand.
19411 * config/aarch64/aarch64-simd.md: Likewise.
19412
19413 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19414
19415 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19416 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19417 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19418 clauses.
19419 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19420 DARWIN_NOPIE_SPEC.
19421
19422 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19423
19424 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19425 (STARTFILE_SPEC): Split crt3 into a separate spec.
19426 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19427 (DARWIN_CRT2_SPEC): New.
19428 (DARWIN_CRT3_SPEC): New.
19429 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
19430 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
19431 (DARWIN_CRT3_SPEC): New.
19432
19433 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
19434
19435 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
19436 Change the RTL attribute "length" from "4" to "*" to allow the
19437 length attribute to be adjusted automatically for prefixed load,
19438 store, and add immediate instructions.
19439 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
19440 Likewise.
19441 (extendsi<mode>2, EXTSI iterator): Likewise.
19442 (movsi_internal1): Likewise.
19443 (movsi_from_sf): Likewise.
19444 (movdi_from_sf_zero_ext): Likewise.
19445 (mov<mode>_internal): Likewise.
19446 (movcc_internal1, QHI iterator): Likewise.
19447 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
19448 (movsf_from_si): Likewise.
19449 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
19450 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19451 (mov<mode>, FMOVE128 iterator): Likewise.
19452 (movdi_internal64): Likewise.
19453 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
19454 Likewise.
19455 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
19456 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
19457 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
19458 (vsx_splat_v4sf): Likewise.
19459
19460 2019-07-03 Mark Wielaard <mark@klomp.org>
19461
19462 PR debug/90981
19463 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
19464 DW_AT_addr_base if there is actually a .debug_addr section with
19465 addresses.
19466 (output_addr_table): Add DWARF5 table header generation here after
19467 checking there are actually any addresses from...
19468 (dwarf2out_finish): ...here.
19469
19470 2019-07-03 Richard Biener <rguenther@suse.de>
19471
19472 PR middle-end/91069
19473 * match.pd (vec_perm -> bit_insert): Fix element read from
19474 first vector.
19475
19476 2019-07-03 Martin Liska <mliska@suse.cz>
19477
19478 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
19479 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
19480 condition.
19481 * generic-match-head.c: Include dbgcnt.h.
19482 * gimple-match-head.c: Likewise.
19483
19484 2019-07-03 Martin Liska <mliska@suse.cz>
19485
19486 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
19487 (GCOV_COUNTER_V_TOPN): New.
19488 (GCOV_COUNTER_V_INDIR): Use _topn.
19489 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
19490 (GCOV_TOPN_VALUES): New.
19491 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
19492 (GCOV_TOPN_VALUES_COUNTERS): New.
19493 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
19494 * tree-profile.c:
19495 (gimple_init_gcov_profiler): Rename variables from one_value
19496 to topn_values.
19497 (gimple_gen_one_value_profiler): Remove.
19498 (gimple_gen_topn_values_profiler): New function.
19499 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
19500 names instead of SINGLE_VALUE.
19501 (stream_out_histogram_value): Likewise.
19502 (stream_in_histogram_value): Likewise.
19503 (get_most_common_single_value): Likewise.
19504 (gimple_divmod_fixed_value_transform): Likewise.
19505 (gimple_stringops_transform): Likewise.
19506 (gimple_divmod_values_to_profile): Likewise.
19507 (gimple_stringops_values_to_profile): Likewise.
19508 (gimple_find_values_to_profile): Likewise.
19509 * value-prof.h (enum hist_type): Rename to TOPN.
19510 (gimple_gen_one_value_profiler): Remove.
19511 (gimple_gen_topn_values_profiler): New.
19512
19513 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
19514
19515 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
19516 if it has the DW_AT_data_member_location attribute.
19517
19518 2019-07-03 Richard Biener <rguenther@suse.de>
19519
19520 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
19521 dumping.
19522
19523 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
19524
19525 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
19526 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
19527 (tlsdesc_small_sve_<mode>): Likewise.
19528
19529 2019-07-03 Martin Liska <mliska@suse.cz>
19530
19531 * Makefile.in: Define ZSTD_LIB.
19532 * common.opt: Adjust compression level
19533 to support also zstd levels.
19534 * config.in: Regenerate.
19535 * configure: Likewise.
19536 * configure.ac: Add --with-zstd and --with-zstd-include options
19537 and detect ZSTD.
19538 * doc/install.texi: Mention zstd dependency.
19539 * gcc.c: Print supported LTO compression algorithms.
19540 * lto-compress.c (lto_normalized_zstd_level): Likewise.
19541 (lto_compression_zstd): Likewise.
19542 (lto_uncompression_zstd): Likewise.
19543 (lto_end_compression): Dispatch in between zlib and zstd.
19544 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
19545 (lto_uncompression_zlib): Make it static.
19546 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
19547 * lto-section-in.c (lto_get_section_data): Pass info
19548 about used compression.
19549 * lto-streamer-out.c: By default use zstd when possible.
19550 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
19551 (TV_IPA_LTO_COMPRESS): Likewise for compression.
19552
19553 2019-07-03 Martin Liska <mliska@suse.cz>
19554
19555 * lto-section-in.c (lto_get_section_data): Add "lto" section.
19556 * lto-section-out.c (lto_destroy_simple_output_block): Never
19557 compress LTO_section_lto section.
19558 * lto-streamer-out.c (produce_asm): Do not set major_version
19559 and minor_version.
19560 (lto_output_toplevel_asms): Likewise.
19561 (produce_lto_section): New function.
19562 (lto_output): Call produce_lto_section.
19563 (lto_write_mode_table): Do not set major_version and
19564 minor_version.
19565 (produce_asm_for_decls): Likewise.
19566 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19567 type.
19568 (struct lto_header): Remove.
19569 (struct lto_section): New struct.
19570 (struct lto_simple_header): Do not inherit from lto_header.
19571 (struct lto_file_decl_data): Add lto_section_header field.
19572
19573 2019-07-03 Martin Liska <mliska@suse.cz>
19574
19575 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19576 dead assignemts.
19577 * reg-stack.c (check_asm_stack_operands): Likewise.
19578 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19579 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19580 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19581 force_expand_binop.
19582
19583 2019-07-03 Martin Liska <mliska@suse.cz>
19584
19585 PR tree-optimization/90892
19586 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19587 in string constants.
19588
19589 2019-07-03 Martin Liska <mliska@suse.cz>
19590
19591 PR middle-end/90899
19592 * multiple_target.c (create_dispatcher_calls): Add to comdat
19593 group only if set for ifunc.
19594
19595 2019-07-03 Martin Liska <mliska@suse.cz>
19596
19597 PR target/88056
19598 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19599 Define local_object_name in outer scope in order to handle
19600 use-after-scope issue.
19601
19602 2019-07-03 Martin Liska <mliska@suse.cz>
19603
19604 * common.opt: Add fprofile-note.
19605 * coverage.c (coverage_init): Append the option
19606 to bbg_file_name.
19607 * doc/invoke.texi: Document -fprofile-note.
19608
19609 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19610
19611 PR tree-optimization/91033
19612 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19613 vect_analyze_data_refs): Add bool * arguments.
19614 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19615 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19616 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19617 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19618 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19619 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19620 vect_analyze_data_refs caller.
19621
19622 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19623 clause.
19624 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19625 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19626 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19627 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19628 OMP_CLAUSE__SCANTEMP_ entry.
19629 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19630 * tree-pretty-print.c (dump_omp_clause): Likewise.
19631 * tree-nested.c (convert_nonlocal_omp_clauses,
19632 convert_local_omp_clauses): Likewise.
19633 * omp-general.h (struct omp_for_data): Add have_scantemp and
19634 have_nonctrl_scantemp members.
19635 * omp-general.c (omp_extract_for_data): Initialize them.
19636 * omp-low.c (struct omp_context): Add scan_exclusive member.
19637 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19638 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19639 ctx->scan_exclusive.
19640 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19641 of !ctx->scan_inclusive.
19642 (lower_rec_input_clauses): Simplify gimplification of dtors using
19643 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19644 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19645 loops. Don't add barrier for reduction_omp_orig_ref if
19646 ctx->scan_??xclusive.
19647 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19648 (lower_omp_scan): Use ctx->scan_exclusive instead
19649 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19650 reductions. Use new_vard != new_var instead of repeated
19651 omp_is_reference calls.
19652 (omp_find_scan, lower_omp_for_scan): New functions.
19653 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19654 inscan reductions.
19655 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19656 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19657 and fd->have_scantemp.
19658
19659 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19660 on worksharing loop propagate it as shared clause to containing
19661 combined parallel.
19662
19663 * omp-expand.c (expand_omp_for_static_nochunk,
19664 expand_omp_for_static_chunk): For nowait worksharing loop with
19665 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19666 at the end.
19667
19668 2019-07-02 qing zhao <qing.zhao@oracle.com>
19669
19670 PR preprocessor/90581
19671 * doc/cppopts.texi: Add document for -fmax-include-depth.
19672 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19673
19674 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19675
19676 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19677 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19678 (mmx_packssdw): Ditto.
19679 (mmx_punpckhbw): Ditto.
19680 (mmx_punpcklbw): Ditto.
19681 (mmx_punpckhwd): Ditto.
19682 (mmx_punpcklwd): Ditto.
19683 (mmx_punpckhdq): Ditto.
19684 (mmx_punpckldq): Ditto.
19685 (*vec_dupv4hi): Ditto.
19686 (*vec_dupv2si): Ditto.
19687 (mmx_pmovmskb): Ditto.
19688 * config/i386/sse.md (sse_cvtpi2ps): Use
19689 TARGET_SSE2 && SSE_REG_P in split condition.
19690 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19691 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19692 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19693 (ssse3_pshufbv8qi3): Ditto.
19694 (ssse3_palignrdi): Ditto.
19695
19696 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19697
19698 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19699 with inlined save and restore.
19700
19701 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19702
19703 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19704 to be inserted on single successor edge of the entry block. Then call
19705 commit_edge_insertions instead of inserting the instructions manually.
19706 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19707 RTL expansion and rebuild jump labels chain.
19708
19709 2019-07-02 Richard Biener <rguenther@suse.de>
19710
19711 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19712 TI_CHREC_KNOWN.
19713 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19714 Define here.
19715 * tree.c (build_common_tree_nodes): Initialize them.
19716 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19717 Make declarations comments.
19718 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19719 chrec_known): Remove definitions.
19720 (initialize_scalar_evolutions_analyzer): Remove.
19721 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19722 * tree-streamer.c (preload_common_nodes): Do not preload
19723 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19724
19725 2019-07-02 Jan Hubicka <jh@suse.cz>
19726
19727 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19728 sanity check.
19729
19730 2019-07-02 Jan Hubicka <jh@suse.cz>
19731
19732 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19733 to ..
19734 (nonoverlapping_component_refs_since_match_p): ... this one;
19735 handle also non-decl bases; return -1 if search gave up.
19736 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19737 nonoverlapping_component_refs_of_decl_p_no_alias to
19738 nonoverlapping_component_refs_since_match_p_may_alias,
19739 nonoverlapping_component_refs_since_match_p_no_alias.
19740 (dump_alias_stats): Update dumping.
19741 (aliasing_matching_component_refs_p): Break out from ...;
19742 dispatch to nonoverlapping_component_refs_for_decl_p
19743 and nonoverlapping_component_refs_since_match_p.
19744 (aliasing_component_refs_p): ... here; call
19745 nonoverlapping_component_refs_p in scenarios where we can not
19746 precisely determine base match.
19747 (decl_refs_may_alias_p): Use
19748 nonoverlapping_component_refs_since_match_p.
19749 (indirect_ref_may_alias_decl_p): Do not call
19750 nonoverlapping_component_refs_p.
19751 (indirect_refs_may_alias_p): Likewise.
19752
19753 2019-07-02 Jan Hubicka <jh@suse.cz>
19754
19755 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19756 to clobber of return value.
19757
19758 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19759
19760 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19761 for is_neon_type instructions that have not already been categorized.
19762
19763 2019-07-02 Richard Biener <rguenther@suse.de>
19764
19765 PR tree-optimization/58483
19766 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19767 for MEM_REF base hashing.
19768 (equal_mem_array_ref_p): Likewise for base comparison.
19769
19770 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19771
19772 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19773 parameterized name.
19774 (signbit<mode>2): Use that name. Simplify.
19775
19776 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19777
19778 PR middle-end/66726
19779 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19780 Tune heuristic from PR71016 to allow MIN / MAX.
19781
19782 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19783
19784 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19785 parameterized name.
19786 (abs<mode>2): Use that name. Simplify.
19787
19788 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19789
19790 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19791 parameterized name.
19792 (neg<mode>2): Use that name. Simplify.
19793
19794 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19795
19796 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19797 name.
19798 (abs<mode>2): Use that name. Simplify.
19799
19800 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19801
19802 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19803 name.
19804 (neg<mode>2): Use that name. Simplify.
19805
19806 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19807
19808 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19809 ("enabled" attribute): Handle sse_noavx isa attribute.
19810 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19811 Use TARGET_SSE && SSE_REGNO_P in split condition.
19812 (*vec_dupv2sf): Ditto.
19813
19814 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19815
19816 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19817 name.
19818 (floatsi<mode>2): Use that name. Simplify.
19819
19820 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19821
19822 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19823 parameterized name.
19824 (extenddf<mode>2_vsx): Make this a parameterized name.
19825 (extenddf<mode>2): Use those names. Simplify.
19826
19827 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19828
19829 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19830 name.
19831 (eh_return): Use that name. Simplify.
19832
19833 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19834
19835 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19836 (doloop_end): Use that name. Simplify.
19837
19838 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19839
19840 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19841 parameterized name.
19842 (indirect_jump): Use that name. Simplify.
19843
19844 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19845
19846 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19847 parameterized name.
19848 (abs<mode>2): Use that name. Simplify.
19849
19850 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19851
19852 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19853 parameterized name.
19854 (fix_trunc<mode>si2): Use that name. Simplify.
19855
19856 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19857
19858 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19859 (allocate_stack): Use that name. Simplify.
19860
19861 2019-07-01 Martin Sebor <msebor@redhat.com>
19862
19863 PR middle-end/90923
19864 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19865 (hash_map::get_or_insert): Same. Reformat comment.
19866 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19867 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19868 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19869 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19870 (hash_table::hash_table (const hash_table&)): Use copy ctor
19871 instead of assignment to copy elements.
19872
19873 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19874 John David Anglin <danglin@gcc.gnu.org>
19875
19876 PR target/90963
19877 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19878 using saved frame pointer.
19879
19880 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19881
19882 PR middle-end/64242
19883 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19884 Add frame clobber and schedule blockage.
19885
19886 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19887
19888 * doc/invoke.texi (Link Options): Further editorial changes to
19889 -flinker-output docs.
19890
19891 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19892
19893 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19894 Load both operands of a PLUS into registers separately.
19895
19896 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19897
19898 * config/s390/vector.md: Fix shift count operand printing.
19899
19900 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19901
19902 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19903
19904 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19905
19906 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19907 Use recog_data to test for an output operand.
19908
19909 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19910
19911 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19912 exclude any others that are disparaged or that are bound to need
19913 a reload or spill.
19914 (ira_get_dup_out_num): Expand comment.
19915
19916 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19917
19918 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19919 constraint string for each operand/alternative combo. Only handle
19920 '%' at the start of constraint strings, and look for it outside
19921 the main loop.
19922
19923 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19924
19925 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19926 alternative_mask instead of HARD_REG_SET to represent a
19927 bitmask of alternatives.
19928 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19929 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19930
19931 2019-07-01 Martin Liska <mliska@suse.cz>
19932
19933 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19934 use () for a constructor call.
19935 (test_applying_fixits_line_out_of_range): Likewise.
19936 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19937 argument.
19938 (free_page): Likewise.
19939
19940 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19941
19942 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19943 parameter names to match usage (no functional change).
19944 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19945
19946 2019-07-01 Richard Biener <rguenther@suse.de>
19947
19948 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19949 pass parameter.
19950 (pass_fre::execute): Honor it.
19951 * passes.def: Adjust pass_fre invocations to allow iterating,
19952 add non-iterating pass_fre before late threading/dom.
19953
19954 2019-07-01 Richard Biener <rguenther@suse.de>
19955
19956 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19957 TARGET_MEM_REF handling to also handle address-taken ones.
19958
19959 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19960
19961 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19962 hardware attributes): Document avx512vp2intersect.
19963
19964 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19965
19966 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19967 (abs<mode>2): New expander.
19968 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19969 Use CODE_FOR_ssse3_absv8qi2.
19970 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19971 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19972
19973 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19974
19975 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19976 to sse, sse_noavx and avx. Update all uses.
19977
19978 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19979
19980 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19981 (*mmx_<plusminus_insn><mode>3): Ditto.
19982 (*mmx_mulv4hi3"): Ditto.
19983 (*mmx_smulv4hi3_highpart): Ditto.
19984 (*mmx_umulv4hi3_highpart): Ditto.
19985 (*mmx_pmaddwd): Ditto.
19986 (*sse2_umulv1siv1di3): Ditto.
19987 (*mmx_<code>v4hi3): Ditto.
19988 (*mmx_<code>v8qi3): Ditto.
19989 (mmx_ashr<mode>3): Ditto.
19990 ("mmx_<shift_insn><mode>3): Ditto.
19991 (*mmx_eq<mode>3): Ditto.
19992 (mmx_gt<mode>3): Ditto.
19993 (mmx_andnot<mode>3): Ditto.
19994 (*mmx_<code><mode>3): Ditto.
19995 (*mmx_pinsrw): Ditto.
19996 (*mmx_pextrw): Ditto.
19997 (mmx_pshufw_1): Ditto.
19998 (*mmx_uavgv8qi3): Ditto.
19999 (*mmx_uavgv4hi3): Ditto.
20000 ("mmx_psadbw): Ditto.
20001 * config/i386/sse.md (sse_cvtps2pi): Ditto.
20002 (sse_cvttps2pi): Ditto.
20003 (ssse3_pmaddubsw): Ditto.
20004 (*ssse3_pmulhrswv4hi3): Ditto.
20005 (ssse3_psign<mode>3): Ditto.
20006
20007 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
20008
20009 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
20010 adjustment for bit-fields to all aggregate types.
20011
20012 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
20013
20014 * config/rs6000/predicates.md (pcrel_address): Use
20015 SYMBOL_REF_LOCAL_P to determine if a label is local.
20016 (pcrel_external_address): New predicate.
20017 (non_prefixed_mem_operand): Delete, predicate not used.
20018 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20019 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20020 addressing.
20021 (SYMBOL_REF_PCREL_P): Likewise.
20022
20023 PR target/91009
20024 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20025 alternative.
20026 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20027 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20028 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20029
20030 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20031
20032 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20033 override on extra_headers.
20034
20035 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20036
20037 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20038 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20039 from warning.
20040 (darwin_driver_init): Likewise.
20041
20042 2019-06-28 Jan Beulich <jbeulich@suse.com>
20043
20044 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20045 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20046 Eliminate redundant alternative.
20047
20048 2019-06-28 Jan Beulich <jbeulich@suse.com>
20049
20050 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20051 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20052 Use vector_operand.
20053
20054 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20055
20056 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20057 having a lower cost regardless of the speed option.
20058
20059 2019-06-28 Jan Beulich <jbeulich@suse.com>
20060
20061 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20062 vector_operand plus, on both alternatives, "Bm" constraint.
20063
20064 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20065
20066 * config/arm/arm.md: Remove redundant constraints from
20067 define_expand but leave reload_inm and reload_outm patterns
20068 untouched since they need special constraints to work.
20069 * config/arm/arm-fixed.md: Remove redundant constraints from
20070 define_expand.
20071 * config/arm/iwmmxt.md: Likewise.
20072 * config/arm/neon.md: Likewise.
20073 * config/arm/sync.md: Likewise.
20074 * config/arm/thumb1.md: Likewise.
20075 * config/arm/vec-common.md: Likewise.
20076
20077 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20078
20079 * doc/install.texi: Document --disable-tm-clone-registry.
20080
20081 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20082
20083 PR c++/91024
20084 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20085 statements.
20086
20087 PR tree-optimization/91010
20088 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20089 return true. Otherwise, don't call operand_equal_p if offset1 or
20090 offset2 is NULL and just return false.
20091
20092 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20093
20094 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20095 user-specified float mode choice for kernel mode code.
20096
20097 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20098
20099 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20100 spec.
20101
20102 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20103
20104 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20105 use longcall for 64b code.
20106
20107 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20108
20109 * builtins.c (get_memory_rtx): Fix comment.
20110 * optabs.def (movmem_optab): Change to cpymem_optab.
20111 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20112 (emit_block_move_hints): Change movmem to cpymem.
20113 * defaults.h: Change movmem to cpymem.
20114 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20115 (default_use_by_pieces_infrastructure_p): Ditto.
20116 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20117 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20118 to cpymem.
20119 * config/aarch64/aarch64.h: Change movmem to cpymem.
20120 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20121 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20122 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20123 movmem to cpymem.
20124 * config/arc/arc-protos.h: Change movmem to cpymem.
20125 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20126 * config/arc/arc.h: Change movmem to cpymem in comment.
20127 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20128 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20129 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20130 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20131 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20132 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20133 * config/avr/avr-protos.h: Change movmem to cpymem.
20134 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20135 avr_out_movmem): Change movmem to cpymem.
20136 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20137 Change movmem to cpymem.
20138 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20139 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20140 Change movmem to cpymem.
20141 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20142 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20143 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20144 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20145 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20146 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20147 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20148 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20149 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20150 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20151 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20152 expand_small_cpymem_or_setmem,
20153 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20154 expand_set_or_cpymem_constant_prologue,
20155 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20156 * config/i386/i386-protos.h: Change movmem to cpymem.
20157 * config/i386/i386.h: Change movmem to cpymem in comment.
20158 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20159 (setmem<mode>): Change expansion function name.
20160 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20161 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20162 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20163 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20164 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20165 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20166 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20167 to cpymem.
20168 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20169 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20170 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20171 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20172 Change movmem to cpymem.
20173 * config/mips/mips.h: Change movmem to cpymem.
20174 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20175 * config/nds32/nds32-memory-manipulation.c
20176 (nds32_expand_movmemsi_loop_unknown_size,
20177 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20178 nds32_expand_movmemsi_unroll,
20179 nds32_expand_movmemsi): Change movmem to cpymem.
20180 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20181 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20182 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20183 (pa_adjust_insn_length): Change call to compute_movmem_length.
20184 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20185 movmemdi, movmemdi_prereload,
20186 movmemdi_postreload): Change movmem to cpymem.
20187 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20188 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20189 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20190 * config/riscv/riscv.h: Change movmem to cpymem.
20191 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20192 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20193 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20194 movmem to cpymem.
20195 * config/s390/s390-protos.h: Change movmem to cpymem.
20196 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20197 s390_expand_insv): Change movmem to cpymem.
20198 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20199 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20200 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20201 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20202 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20203 for nonexistent function.
20204 * config/vax/vax.h: Change movmem to cpymem in comment.
20205 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20206 * config/visium/visium.h: Change movmem to cpymem in comment.
20207 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20208 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20209 * doc/md.texi: Change movmem to cpymem and update description to match.
20210 * doc/rtl.texi: Change movmem to cpymem.
20211 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20212 * doc/tm.texi: Regenerate.
20213
20214 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
20215
20216 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
20217 -fvariable-expansion-in-unroller by default.
20218 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
20219 default for Power.
20220
20221 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
20222
20223 Revert
20224 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20225 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20226
20227 * config.gcc(rs6000-*-*): Define target_gtfiles.
20228
20229 2019-06-27 Jan Hubicka <jh@suse.cz>
20230
20231 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
20232 (add_type_duplicate): When odr hash is not allocated, to nothing.
20233 (odr_based_tbaa_p): New function.
20234 (set_type_canonical_for_odr_type): New function.
20235 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
20236 set_type_canonical_for_odr_type): New.
20237 * tree.c (gimple_canonical_types_compatible_p): ODR types with
20238 ODR based TBAA are not equivalent to non-ODR types.
20239
20240 2019-06-27 Martin Liska <mliska@suse.cz>
20241
20242 PR tree-optimization/90974
20243 PR rtl-optimization/90975
20244 PR rtl-optimization/90976
20245 PR target/91016
20246 PR tree-optimization/91017
20247 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
20248 unused tmp.
20249 * lra.c (lra_set_insn_recog_data): Remove a leftover from
20250 initial commit of IRA.
20251 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
20252 of op0 and op1.
20253 * tree-vect-loop.c (vect_create_epilog_for_reduction):
20254 Remove unused mode1.
20255 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
20256 to new_stmt_info.
20257
20258 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20259
20260 PR target/90991
20261 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
20262 instead of register_operand for operands[1], add m to its constraints
20263 if operands[2] uses "C" constraint. Ensure in condition that if
20264 operands[2] is not 0, then operands[1] is not a MEM. For last two
20265 alternatives, use unaligned loads instead of aligned if operands[1] is
20266 misaligned_operand.
20267
20268 2019-06-27 Martin Liska <mliska@suse.cz>
20269
20270 * asan.c (asan_emit_allocas_unpoison): Remove obviously
20271 dead assignments.
20272 * bt-load.c (move_btr_def): Likewise.
20273 * builtins.c (expand_builtin_apply_args_1): Likewise.
20274 (expand_builtin_apply): Likewise.
20275 * cfgexpand.c (expand_asm_stmt): Likewise.
20276 (construct_init_block): Likewise.
20277 * cfghooks.c (verify_flow_info): Likewise.
20278 * cfgloopmanip.c (remove_path): Likewise.
20279 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
20280 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
20281 * combine.c (simplify_if_then_else): Likewise.
20282 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
20283 (choose_basereg): Likewise.
20284 (ix86_expand_prologue): Likewise.
20285 (ix86_preferred_output_reload_class): Likewise.
20286 * cselib.c (cselib_record_sets): Likewise.
20287 * df-scan.c (df_scan_alloc): Likewise.
20288 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
20289 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
20290 * emit-rtl.c (try_split): Likewise.
20291 * graphite-scop-detection.c (assign_parameter_index_in_region):
20292 Likewise.
20293 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
20294 * ira-color.c (setup_profitable_hard_regs): Likewise.
20295 * ira.c (rtx_moveable_p): Likewise.
20296 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
20297 * read-rtl.c (read_subst_mapping): Likewise.
20298 * regrename.c (scan_rtx): Likewise.
20299 * reorg.c (fill_slots_from_thread): Likewise.
20300 * tree-inline.c (tree_function_versioning): Likewise.
20301 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
20302 * tree-ssa-sink.c (statement_sink_location): Likewise.
20303 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
20304 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
20305 (vect_create_epilog_for_reduction): Likewise.
20306 * tree.c (build_nonstandard_integer_type): Likewise.
20307
20308 2019-06-27 Richard Biener <rguenther@suse.de>
20309
20310 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
20311
20312 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
20313
20314 PR tree-optimization/89772
20315 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
20316 out-of-bound accesses checking.
20317
20318 2019-06-27 Martin Liska <mliska@suse.cz>
20319
20320 PR tree-optimization/91014
20321 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
20322 when LHS is NULL_TREE.
20323
20324 2019-06-27 Martin Liska <mliska@suse.cz>
20325
20326 * symbol-summary.h (traverse): Pass
20327 argument a to the call of callback.
20328 (gt_ggc_mx): Mark arguments as unused.
20329 (gt_pch_nx): Likewise.
20330
20331 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
20332
20333 PR target/62147
20334 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
20335 finiteness.
20336
20337 2019-06-26 Jeff Law <law@redhat.com>
20338
20339 PR tree-optimization/90883
20340 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
20341 (delete_dead_or_redundant_assignment): Likewise.
20342
20343 PR tree-optimization/90883
20344 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
20345 * tree-ssa-dse.c: Update various comments to distinguish between
20346 dead and redundant stores.
20347 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
20348 (dse_optimize_redundant_stores): New function.
20349 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
20350 Distinguish between dead and redundant calls in dump output. All
20351 callers updated.
20352 (delete_dead_or_redundant_assignment): Similarly for assignments.
20353 (dse_optimize_stmt): Handle _CHK variants. For statements which
20354 store 0 into multiple memory locations, try to prove a subsequent
20355 store is redundant.
20356
20357 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
20358
20359 PR target/89021
20360 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
20361 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
20362
20363 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20364
20365 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
20366 (branch_islands): New extern.
20367 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
20368 * config/rs6000/rs6000.c: .. here.
20369
20370 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20371
20372 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
20373 (powerpc*-*-*) ... to here.
20374
20375 2019-06-26 Jeff Law <law@redhat.com>
20376
20377 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
20378 memcpy, memmove and memset builtins.
20379 (maybe_trim_memstar_call): Likewise.
20380
20381 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20382
20383 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20384
20385 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20386
20387 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20388
20389 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20390
20391 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20392 declaration.
20393 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20394 "static".
20395 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20396 declaration.
20397
20398 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20399
20400 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20401
20402 2019-06-26 Richard Biener <rguenther@suse.de>
20403
20404 PR ipa/90982
20405 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20406
20407 2019-06-26 Richard Biener <rguenther@suse.de>
20408
20409 * lto-streamer.h (lto_bitmap_alloc): Remove.
20410 (lto_bitmap_free): Likewise.
20411 * lto-streamer.c (lto_bitmap_alloc): Remove.
20412 (lto_bitmap_free): Likewise.
20413 (lto_obstack): Likewise.
20414 (lto_obstack_initialized): Likewise.
20415 * lto-streamer-out.c (lto_output): Use own obstack for local
20416 bitmap, free it consistently.
20417
20418 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20419
20420 PR target/90991
20421 * config/i386/sse.md
20422 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20423 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20424 insns if operands[2] is misaligned_operand.
20425
20426 2019-06-26 Li Jia He <helijia@linux.ibm.com>
20427
20428 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
20429 TARGET_POWERPC64.
20430 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
20431 to GPR.
20432
20433 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20434
20435 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
20436
20437 2019-06-26 Martin Liska <mliska@suse.cz>
20438
20439 PR tree-optimization/90973
20440 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
20441 epilogue_cost_vec instead of prologue_cost_vec for
20442 a epilogue cost.
20443
20444 2019-06-26 Martin Liska <mliska@suse.cz>
20445
20446 * bb-reorder.c (connect_better_edge_p): Add missing else
20447 statement in the middle of if-else statements.
20448
20449 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
20450 H.J. Lu <hongjiu.lu@intel.com>
20451 Olga Makhotina <olga.makhotina@intel.com>
20452
20453 * common/config/i386/i386-common.c
20454 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
20455 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
20456 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
20457 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
20458 (ix86_handle_option): Handle -mavx512vp2intersect.
20459 * config/i386/avx512vp2intersectintrin.h: New.
20460 * config/i386/avx512vp2intersectvlintrin.h: New.
20461 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
20462 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20463 AVX512VP2INTERSECT.
20464 * config/i386/i386-builtin-types.def: Add new types.
20465 * config/i386/i386-builtin.def: Add new builtins.
20466 * config/i386/i386-builtins.c: (enum processor_features): Add
20467 F_AVX512VP2INTERSECT.
20468 (static const _isa_names_table isa_names_table): Ditto.
20469 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20470 __AVX512VP2INTERSECT__.
20471 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
20472 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
20473 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
20474 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
20475 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
20476 * config/i386/i386-options.c (ix86_target_string): Add
20477 -mavx512vp2intersect.
20478 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
20479 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
20480 P2HImode and P2QImode.
20481 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
20482 number for P2QImode and P2HImode.
20483 (ix86_regmode_natural_size): New function.
20484 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
20485 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
20486 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
20487 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
20488 * config/i386/i386.opt: Add -mavx512vp2intersect.
20489 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
20490 avx512vp2intersectvlintrin.h.
20491 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
20492 (define_mode_iterator VI48_AVX512VP2VL): New.
20493 (avx512vp2intersect_2intersect<mode>,
20494 avx512vp2intersect_2intersectv16si): New define_insn patterns.
20495 * config.gcc: Add avx512vp2intersectvlintrin.h and
20496 avx512vp2intersectintrin.h to extra_headers.
20497 * doc/invoke.texi: Document -mavx512vp2intersect.
20498
20499 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
20500
20501 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
20502
20503 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20504
20505 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
20506 savres_routine_syms, savres_routine_name, morestack_ref,
20507 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20508 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20509 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20510 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20511 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20512 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20513 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20514 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20515 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20516 get_stack_clash_protection_probe_interval,
20517 get_stack_clash_protection_guard_size,
20518 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20519 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20520 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20521 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20522 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20523 gen_frame_mem_offset, rs6000_savres_routine_name,
20524 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20525 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20526 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20527 rs6000_global_entry_point_prologue_needed_p,
20528 rs6000_get_separate_components, rs6000_components_for_bb,
20529 rs6000_disqualify_components, rs6000_emit_prologue_components,
20530 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20531 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20532 rs6000_output_savres_externs, rs6000_output_function_prologue,
20533 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20534 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20535 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20536 rs6000_output_function_epilogue, gen_add3_const,
20537 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20538 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20539 to rs6000-logue.c.
20540 (machine_function): Moved to rs6000.h.
20541 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
20542 rs6000-internal.h.
20543 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
20544 savres_routine_syms, savres_routine_name, morestack_ref,
20545 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20546 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20547 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20548 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20549 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20550 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20551 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20552 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20553 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20554 get_stack_clash_protection_probe_interval,
20555 get_stack_clash_protection_guard_size,
20556 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20557 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20558 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20559 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20560 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20561 gen_frame_mem_offset, rs6000_savres_routine_name,
20562 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20563 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20564 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20565 rs6000_global_entry_point_prologue_needed_p,
20566 rs6000_get_separate_components, rs6000_components_for_bb,
20567 rs6000_disqualify_components, rs6000_emit_prologue_components,
20568 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20569 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20570 rs6000_output_savres_externs, rs6000_output_function_prologue,
20571 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20572 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20573 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20574 rs6000_output_function_epilogue, gen_add3_const,
20575 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20576 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20577 to here from rs6000.c.
20578 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20579 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20580 quad_address_offset_p) Moved to here from rs6000.c.
20581 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20582 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20583 collector.
20584
20585 2019-06-25 Martin Liska <mliska@suse.cz>
20586
20587 * hash-table.c (hashtab_chk_error): Move here from ...
20588 * hash-table.h (hashtab_chk_error): ... here.
20589
20590 2019-06-25 Martin Liska <mliska@suse.cz>
20591
20592 PR tree-optimization/90978
20593 * df-scan.c (df_update_entry_block_defs): Remove dead else
20594 branch.
20595 (df_update_exit_block_uses): Likewise.
20596
20597 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20598 Andrew Stubbs <ams@codesourcery.com>
20599
20600 * config.gcc (thread_file): Set to gcn for AMD GCN.
20601 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20602 (TARGET_EMUTLS_VAR_INIT): New hook.
20603
20604 2019-06-25 Martin Jambor <mjambor@suse.cz>
20605
20606 PR ipa/90939
20607 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20608
20609 2019-06-25 Richard Biener <rguenther@suse.de>
20610
20611 PR tree-optimization/90930
20612 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20613 into parallel form in the last pass instance.
20614
20615 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20616
20617 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20618 (arc_legitimize_pic_address): Simplify and cleanup the function.
20619 (SYMBOLIC_CONST): Remove.
20620 (prepare_pic_move): Likewise.
20621 (prepare_move_operands): Handle complex mov cases here.
20622 (arc_legitimize_address_0): Remove call to
20623 arc_legitimize_pic_address.
20624 (arc_legitimize_address): Remove call to
20625 arc_legitimize_tls_address.
20626 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20627 (movhi_insn): Likewise.
20628
20629 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20630
20631 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20632 PTRDIFF_TYPE.
20633 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20634 format of "__intN" types for UINTMAX_TYPE.
20635 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20636 format of "__intN" types for SIZETYPE.
20637 * tree.c (build_common_tree_nodes): Accept "__intN__"
20638 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20639 * doc/invoke.texi: Document that __intN__ disables pedantic
20640 warnings.
20641
20642 2019-06-25 Jan Hubicka <jh@suse.cz>
20643
20644 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20645 base2_alias_set is non-zero before doing TBAA based disambiguation.
20646
20647 2019-06-25 Martin Liska <mliska@suse.cz>
20648
20649 PR tree-optimization/90973
20650 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20651 of prologue and epilogue.
20652
20653 2019-06-24 Jan Hubicka <jh@suse.cz>
20654
20655 * ipa-utils.h (type_with_linkage_p): Verify that type is
20656 CXX_ODR_P.
20657 (odr_type_p): Remove extra return.
20658 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20659 hash STRING_FLAG only for arrays and integers.
20660 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20661 Update analogously.
20662 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20663 Likewise.
20664 * print-tree.c (print_node): Print cxx-odr-p
20665 and string-flag.
20666 * tree.c (need_assembler_name_p): Also check that type
20667 is CXX_ODR_TYPE_P
20668 (verify_type_variant): Update verification of SRING_FLAG;
20669 also check CXX_ODR_P.
20670 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20671 (TYPE_STRING_FLAG): Use it.
20672 (TYPE_CXX_ODR_P): New macro.
20673 * dwarf2out.c (gen_array_type_die): First check that type
20674 is an array and then test string flag.
20675
20676 2019-06-24 Richard Biener <rguenther@suse.de>
20677
20678 PR tree-optimization/90972
20679 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20680 in common code, dealing with STRING_CST properly.
20681
20682 2019-06-24 Richard Biener <rguenther@suse.de>
20683
20684 PR tree-optimization/90930
20685 PR tree-optimization/90316
20686 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20687 decrement of limit.
20688
20689 2019-06-24 Martin Sebor <msebor@redhat.com>
20690
20691 * tree-pretty-print.h: Remove unnecessary punctuation characters
20692 from a diagnostic.
20693 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20694
20695 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20696
20697 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20698 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20699 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20700
20701 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20702
20703 * config/rs6000/darwin.h: Handle GCC target pragma.
20704
20705 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20706
20707 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20708
20709 2019-06-22 Jeff Law <law@redhat.com>
20710
20711 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20712
20713 2019-06-22 Jan Hubicka <jh@suse.cz>
20714
20715 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20716 give up on bitfields; continue searching for different refs
20717 appearing later.
20718
20719 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20720
20721 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20722 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20723 containing the offset as possible simd lane access. Look through
20724 widening conversion. Move the
20725 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20726
20727 2019-06-21 Richard Biener <rguenther@suse.de>
20728
20729 PR tree-optimization/90930
20730 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20731 flag on new stmts to avoid re-processing them.
20732
20733 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20734
20735 PR c++/90875 - added -Wswitch-outside-range option
20736 * doc/invoke.texi (Wswitch-outside-range): Document.
20737
20738 2019-06-21 Jeff Law <law@redhat.com>
20739
20740 PR tree-optimization/90949
20741 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20742 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20743
20744 2019-06-21 Richard Biener <rguenther@suse.de>
20745
20746 PR debug/90914
20747 * dwarf2out.c (prune_unused_types_walk): Always consider
20748 function-local extern declarations as used.
20749
20750 2019-06-21 Richard Biener <rguenther@suse.de>
20751
20752 PR tree-optimization/90913
20753 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20754 the scalar variant of if-conversion versioning.
20755
20756 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20757
20758 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20759 create another "omp scan inscan exclusive" array if
20760 !ctx->scan_inclusive.
20761 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20762 (lower_omp_scan): Likewise.
20763 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20764 2-bit bitfield for simd_lane_access_p member.
20765 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20766 aux == (void *)-4 as simd lane access.
20767 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20768 comment with permutations to show the canonical permutation order.
20769 (vectorizable_scan_store): Handle exclusive scan.
20770 (vectorizable_store): Call vectorizable_scan_store even for
20771 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20772
20773 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20774 "omp simd array" arrays with one byte elements.
20775
20776 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20777
20778 * config/alpha/alpha.md (@unaligned_store<mode>):
20779 Rename from unaligned_store<mode>.
20780 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20781 * config/alpha/sync.md (@load_locked_<mode>): Rename
20782 from load_locked_<mode>.
20783 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20784 (@atomic_compare_and_swap<mode>_1): Rename
20785 from atomic_compare_and_swap<mode>_1.
20786 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20787 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20788 Use gen_reload_in_aligned and gen_unaligned_store.
20789 (emit_load_locked): Remove.
20790 (emit_store_conditional): Ditto.
20791 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20792 (alpha_split_compare_and_swap): Ditto.
20793 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20794 (alpha_split_compare_and_swap_12): Use gen_load_locked
20795 and gen_store_conditional.
20796 (alpha_split_atomic_exchange): Ditto.
20797 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20798 (alpha_split_atomic_exchange_12): Use gen_load_locked
20799 and gen_store_conditional.
20800
20801 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20802
20803 * config/aarch64/aarch64-errata.h: New file.
20804 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20805 (CA53_ERR_843419_SPEC): Delete.
20806 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20807 * config/aarch64/aarch64-linux.h: Likewise.
20808 * config/aarch64/aarch64-netbsd.h: Likewise.
20809 * config/aarch64/aarch64-freebsd.h: Likewise.
20810
20811 2019-06-20 Marek Polacek <polacek@redhat.com>
20812
20813 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20814
20815 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20816
20817 * config/rs6000/rs6000.md (isa attribute): Add support for
20818 for a future processor.
20819
20820 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20821
20822 PR target/54855
20823 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20824 standard scalar operation pattern for V2DF.
20825 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20826 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20827 (*ieee_<ieee_maxmin><mode>3): Likewise.
20828 (vec_setv2df_0): Likewise.
20829
20830 2019-06-20 Jan Hubicka <jh@suse.cz>
20831
20832 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20833 parameter; it has no use in gimple memory model.
20834 (indirect_ref_may_alias_decl_p): Update.
20835
20836 2019-06-20 Martin Liska <mliska@suse.cz>
20837
20838 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20839 to 10.
20840
20841 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20842
20843 * tree-vect-stmts.c (enum scan_store_kind): New type.
20844 (scan_store_can_perm_p): Change last argument from int * to
20845 vec<enum scan_store_kind> *, record precisely which permutations
20846 need whole vector left shift or that plus VEC_COND_EXPR.
20847 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20848 and additional VEC_COND_EXPR only for those iterations that need it.
20849
20850 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20851
20852 * config.gcc: Fix ARM --with-fpu checking and error message.
20853
20854 2019-06-19 Marek Polacek <polacek@redhat.com>
20855
20856 PR c++/60364 - noreturn after first decl not diagnosed.
20857 * attribs.c (get_attribute_namespace): No longer static.
20858 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20859 attributes.
20860 (attr_noreturn_exclusions): Make it extern.
20861 * attribs.h (get_attribute_namespace): Declare.
20862 * tree-inline.c (function_attribute_inlinable_p): Use
20863 get_attribute_name.
20864
20865 2019-06-19 Martin Sebor <msebor@redhat.com>
20866
20867 PR tree-optimization/90626
20868 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20869
20870 PR tree-optimization/90626
20871 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20872 (handle_builtin_string_cmp): Call it.
20873
20874 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20875
20876 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20877 and DARWIN_NOPIE_SPEC.
20878 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20879 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20880 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20881 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20882 (DARWIN_EXPORT_DYNAMIC): Delete.
20883 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20884 and pie options processing to darwin.h.
20885 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20886
20887 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20888
20889 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20890 in computing the number of options to be moved.
20891
20892 2019-06-19 Maya Rashish <coypu@sdf.org>
20893
20894 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20895 (CLEAR_INSN_CACHE) Use it.
20896
20897 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20898
20899 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20900
20901 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20902
20903 PR middle-end/84521
20904 * builtins.c (expand_builtin_setjmp_setup): Save
20905 hard_frame_pointer_rtx.
20906 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20907 restore fp.
20908 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20909 non-local goto.
20910 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20911 elimination code.
20912 (remove_reg_equal_offset_note): Remove unused function.
20913 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20914 code.
20915 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20916 (arc_builtin_setjmp_frame_value): Remove function.
20917 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20918 (avr_builtin_setjmp_frame_value): Remove function.
20919 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20920 (ix86_builtin_setjmp_frame_value): Remove function.
20921 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20922 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20923 (sparc_builtin_setjmp_frame_value): Remove function.
20924 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20925 (vax_builtin_setjmp_frame_value): Remove function.
20926 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20927 pointer if has_nonlocal_label.
20928
20929 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20930
20931 * doc/md.texi: Document vec_shl_<mode> pattern.
20932 * optabs.def (vec_shl_optab): New optab.
20933 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20934 argument, if == vec_shl_optab, check for left whole vector shift
20935 pattern rather than right shift.
20936 (expand_vec_perm_const): Add vec_shl_optab support.
20937 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20938 in the comment.
20939 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20940 can be handled by vec_shl_optab.
20941 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20942 (check_scan_store): Use it.
20943 (vectorizable_scan_store): If target can't do normal permutations,
20944 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20945 after it.
20946 * config/i386/sse.md (vec_shl_<mode>): New expander.
20947
20948 * omp-low.c (lower_rec_input_clauses): Handle references properly
20949 in inscan clauses.
20950 (lower_omp_scan): Likewise.
20951
20952 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20953
20954 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20955 mem_mode is BLKmode.
20956
20957 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20958
20959 PR target/90922
20960 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20961 pointer adjustment for the case of no callee-saved registers and
20962 stack frame bigger than 128 bytes.
20963
20964 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20965
20966 PR middle-end/90862
20967 * omp-low.c (check_omp_nesting_restrictions): Handle
20968 GF_OMP_TARGET_KIND_OACC_DECLARE.
20969
20970 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20971
20972 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20973 (@add<mode>3_carry): Rename from add<mode>3_carry.
20974 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20975 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20976 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20977 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20978 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20979 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20980 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20981 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20982 (cmpstrnsi): Use gen_cmp_1.
20983 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20984 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20985 (@umonitor_<mode>): Rename from umonitor_<mode>.
20986 * config/i386/i386-expand.c (ix86_expand_copysign):
20987 Use gen_copysign3_const and gen_copysign3_var.
20988 (ix86_expand_xorsign): Use gen_xorsign3_1.
20989 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20990 gen_sub3_carry_ccgz and gen_cmp1.
20991 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20992 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20993 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20994 (ix86_split_lshr): Ditto.
20995 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20996
20997 2019-06-18 Jason Merrill <jason@redhat.com>
20998
20999 * tree.c (build_constructor): Add MEM_STAT_DECL.
21000
21001 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21002
21003 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
21004 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
21005 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
21006 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
21007 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
21008 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
21009 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
21010 Use CC_NZC instead of CC.
21011 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
21012 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
21013 (aarch64_print_operand): Handle E_CC_NZCmode.
21014 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
21015 of gen_set_clobber_cc.
21016
21017 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21018
21019 * config/aarch64/aarch64-sve.md: Tabify file.
21020
21021 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21022
21023 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21024 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21025 * config/aarch64/aarch64-sve.md: Use it.
21026
21027 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21028
21029 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21030 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21031 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21032 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21033 (aarch64_expand_sve_vec_cmp_int): Use it.
21034 (aarch64_expand_sve_vec_cmp_float): Likewise.
21035 * config/aarch64/aarch64-sve.md: Likewise throughout.
21036
21037 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21038 Kugan Vivekanandarajah <kuganv@linaro.org>
21039
21040 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21041 (*cond_<optab><mode>_z): Fold into...
21042 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21043 operand 4 can be tied to operand 0 (either inherently or via RA).
21044
21045 2019-06-18 Richard Biener <rguenther@suse.de>
21046
21047 PR debug/90900
21048 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21049 as if optimized away.
21050
21051 2019-06-18 Tom de Vries <tdevries@suse.de>
21052
21053 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21054 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21055 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21056 Rename to ...
21057 (define_insn "@set_softstack_<mode>"): ... this.
21058 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21059 (define_insn "@omp_simt_enter_<mode>"): ... this.
21060 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21061 (define_insn "@omp_simt_exit_<mode>"): ... this.
21062
21063 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21064
21065 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21066 vf parameter. Restore the previous iv step of nscalars_step,
21067 but give it iv_type rather than compare_type. Tweak code order
21068 to match the comments.
21069 (vect_set_loop_condition_masked): Update accordingly.
21070 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21071 for iv_precision. Tweak comment formatting.
21072
21073 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21074
21075 * config/darwin.c: Strip trailing whitespace.
21076
21077 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21078
21079 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21080 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21081
21082 2019-06-18 Martin Jambor <mjambor@suse.cz>
21083
21084 PR ipa/90889
21085 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21086 caller does not have flag_ipa_cp set.
21087
21088 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21089
21090 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21091 from "*fold_left_plus_<mode>", updated operands order.
21092 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21093 * internal-fn.c (mask_fold_left_direct): New define.
21094 (expand_mask_fold_left_optab_fn): Likewise.
21095 (direct_mask_fold_left_optab_supported_p): Likewise.
21096 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21097 * optabs.def (mask_fold_left_plus_optab): New optab.
21098 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21099 masked internal_fn for a reduction ifn.
21100 (vectorize_fold_left_reduction): Add support for masking reductions.
21101
21102 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21103
21104 PR middle-end/80791
21105 * target.def (predict_doloop_p): New hook.
21106 * targhooks.h (default_predict_doloop_p): New declaration.
21107 * targhooks.c (default_predict_doloop_p): New function.
21108 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21109 * doc/tm.texi: Regenerate.
21110 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21111 (TARGET_PREDICT_DOLOOP_P): New macro.
21112 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21113
21114 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21115
21116 * omp-low.c (struct omp_context): Add scan_inclusive field.
21117 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21118 if inclusive scan.
21119 (struct omplow_simd_context): Add lastlane member.
21120 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21121 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21122 1 or 2 argument.
21123 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21124 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21125 (lower_omp_scan): New function.
21126 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21127 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21128 check 3rd argument if present rather than 2nd.
21129 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21130 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21131 2-bit bitfield.
21132 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21133 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21134 than 2nd.
21135 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21136 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21137 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21138 init.
21139 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21140 IFN_GOMP_SIMD_LANE argument.
21141 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21142 encoded ->aux value.
21143 * tree-vect-stmts.c: Include attribs.h.
21144 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21145 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21146 functions.
21147 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21148 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21149
21150 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21151
21152 PR target/62055
21153 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21154 (*nabs<mode>2_1): Ditto.
21155 (nabs sse-reg splitter): New splitter.
21156 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21157
21158 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21159
21160 PR bootstrap/90873.
21161 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21162 TMR index check.
21163
21164 2019-06-17 Tom de Vries <tdevries@suse.de>
21165
21166 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21167 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21168 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21169 ...
21170 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21171 match_operand 0.
21172 (define_insn "omp_simt_enter_insn"): Rename to ...
21173 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21174 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21175 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21176 gen_omp_simt_enter_si.
21177 (define_expand "omp_simt_exit"): New.
21178 (define_insn "omp_simt_exit"): Rename to ...
21179 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21180 match_operand 0.
21181
21182 2019-06-17 Matthew Green <mrg@eterna.com.au>
21183 Maya Rashish <coypu@sdf.org>
21184
21185 * config.gcc (aarch64*-*-netbsd*): New target.
21186 * config/aarch64/aarch64-netbsd.h: New file.
21187 * config/aarch64/t-aarch64-netbsd: Likewise.
21188
21189 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21190
21191 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21192 the access path from base to first VIEW_CONVERT_EXPR or
21193 BIT_FIELD_REF.
21194
21195 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21196
21197 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21198 access path on BIT_FIELD_REFs.
21199
21200 2019-06-17 Martin Liska <mliska@suse.cz>
21201
21202 PR ipa/90874
21203 * ipa-utils.h (odr_type_p): Remove dead code.
21204
21205 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21206
21207 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21208 alternative Solaris 11.4 format.
21209 * configure: Regenerate.
21210
21211 2019-06-17 Tom de Vries <tdevries@suse.de>
21212
21213 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
21214 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
21215 match_operand 0.
21216 (define_insn "call_value_insn"): Rename to ...
21217 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
21218 match_operand 0.
21219 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
21220 DI.
21221
21222 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
21223
21224 PR middle-end/64242
21225 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
21226 frame clobbers and schedule block.
21227 (builtin_longjmp): Likewise.
21228
21229 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21230
21231 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
21232 describe how to perform MSPABI compliant 64-bit shift.
21233 * config/msp430/msp430.md (ashldi3): New define_expand.
21234 (ashrdi3): New define_expand.
21235 (lshrdi3): New define_expand.
21236
21237 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21238
21239 * doc/sourcebuild.texi: Document new effective target keyword
21240 longlong64.
21241
21242 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21243
21244 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
21245 indirect_refs_may_alias_p): Revert accidental commits.
21246
21247 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
21248 at the end of structures.
21249
21250 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21251
21252 * config/darwin.c (machopic_indirect_call_target): Use renamed
21253 darwin_picsymbol_stubs to decide on output.
21254 (darwin_override_options): Handle darwin_picsymbol_stubs.
21255 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
21256 (LD64_VERSION): Revise default.
21257 * config/darwin.opt: (mpic-symbol-stubs): New option.
21258 (darwin_picsymbol_stubs): New variable.
21259 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
21260 rename to TARGET_MACHO_PICSYM_STUBS.
21261 * config/i386/i386.c (output_pic_addr_const): Likewise.
21262 * config/i386/i386.h Likewise.
21263 * config/rs6000/darwin.h: Likewise.
21264 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
21265 darwin_picsymbol_stubs.
21266
21267 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21268
21269 * config/darwin.opt (prebind, noprebind, seglinkedit,
21270 noseglinkedit): Add RejectNegative.
21271
21272 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21273
21274 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
21275 in my previous patch.
21276
21277 2019-06-16 Tom de Vries <tdevries@suse.de>
21278
21279 PR tree-optimization/89376
21280 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
21281
21282 2019-06-15 Maya Rashish <coypu@sdf.org>
21283
21284 * doc/invoke.texi (Spec Files): Update location of the
21285 Fortran spec file.
21286
21287 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
21288
21289 * doc/extend.texi (Common Function Attributes): Clarify
21290 no_sanitize. Fix grammar.
21291
21292 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
21293
21294 * tree-ssa-alias.c (alias_stats): Add
21295 nonoverlapping_component_refs_p_may_alias,
21296 nonoverlapping_component_refs_p_no_alias,
21297 nonoverlapping_component_refs_of_decl_p_may_alias,
21298 nonoverlapping_component_refs_of_decl_p_no_alias.
21299 (dump_alias_stats): Dump them.
21300 (nonoverlapping_component_refs_of_decl_p): Add stats.
21301 (nonoverlapping_component_refs_p): Add stats; do not stop on first
21302 ARRAY_REF.
21303
21304 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
21305
21306 * config/i386/i386.md (and<mode>3): Generate zero-extends for
21307 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
21308 only.
21309 (*anddi3_doubleword): Split before reload. Merge with
21310 anddi->zext pre-reload splitter.
21311 (*andndi3_doubleword): Split before reload.
21312 (*<code>di3_doubleword): Ditto.
21313 (*one_cmpldi2_doubleword): Ditto.
21314
21315 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21316
21317 PR middle-end/90779
21318 * gimplify.c: Include omp-offload.h and context.h.
21319 (gimplify_bind_expr): Add "omp declare target" attributes
21320 to static block scope variables inside of target region or target
21321 functions.
21322
21323 2019-06-15 Tom de Vries <tdevries@suse.de>
21324
21325 PR tree-optimization/90009
21326 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
21327 Return NULL if bb contains IFN_UNIQUE.
21328
21329 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
21330
21331 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
21332 (un): New define_mode_attr.
21333 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
21334 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
21335 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
21336 merge into ...
21337 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
21338
21339 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
21340
21341 * config/darwin.opt: Add RejectNegative where needed, reorder
21342 and add minimal functional descriptions.
21343
21344 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21345
21346 PR rtl-optimization/90765
21347 * calls.c (update_stack_alignment_for_call): New function.
21348 (expand_call): Call update_stack_alignment_for_call when
21349 outgoing parameter is passed in the stack.
21350 (emit_library_call_value_1): Likewise.
21351 * function.c (locate_and_pad_parm): Don't update
21352 stack_alignment_needed and preferred_stack_boundary.
21353
21354 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21355
21356 PR target/90877
21357 * config/i386/i386-features.c
21358 (dimode_scalar_chain::compute_convert_gain): Replace
21359 mmxsse_to_integer with sse_to_integer.
21360 * config/i386/i386.c (ix86_register_move_cost): Verify that
21361 moves between MMX and non-MMX units require secondary memory.
21362 Correct costs of moves between SSE and integer units.
21363 * config/i386/i386.h (processor_costs): Rename cost of moving
21364 SSE register to integer to sse_to_integer. Rename cost of
21365
21366 2019-06-14 Matt Thomas <matt@3am-software.com>
21367 Matthew Green <mrg@eterna.com.au>
21368 Nick Hudson <skrll@netbsd.org>
21369 Maya Rashish <coypu@sdf.org>
21370 Richard Earnshaw <rearnsha@arm.com>
21371
21372 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
21373 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
21374 * config/arm/netbsd-eabi.h: New file.
21375 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
21376 redefining.
21377 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
21378 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
21379 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
21380 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
21381
21382 2019-06-14 Richard Biener <rguenther@suse.de>
21383
21384 * tree-loop-distribution.c (classify_partition): Return
21385 whether a reduction appeared in all partitions and do not
21386 stop builtin detection because of this.
21387 (distribute_loop): Sort a non-builtin partition last if
21388 there's a reduction in all partitions and make sure the
21389 partition prevailing as last is not a builtin.
21390
21391 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21392
21393 PR ipa/90401
21394 * ipa-prop.c (add_to_agg_contents_list): New function.
21395 (clobber_by_agg_contents_list_p): Likewise.
21396 (extract_mem_content): Likewise.
21397 (get_place_in_agg_contents_list): Delete.
21398 (determine_known_aggregate_parts): Renamed from
21399 determine_locally_known_aggregate_parts. New parameter
21400 aa_walk_budget_p.
21401
21402 2019-06-13 Martin Sebor <msebor@redhat.com>
21403
21404 PR tree-optimization/90662
21405 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21406 to the same type.
21407
21408 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21409
21410 PR bootstrap/90873
21411 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21412 dbase is not TARGET_MEM_REF.
21413
21414 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21415
21416 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21417 Update all uses.
21418 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21419 Do not generate DImode extends for 32bit targets.
21420 (and->zext post-reload splitter): Use gen_extend_insn
21421 instead of indirect functions.
21422 (anddi->zext pre-reload splitter): New.
21423 (*zext<mode>_doubleword_and): Remove.
21424 (*zext<mode>_doubleword): Ditto.
21425 (*zextsi_doubleword): Dittto.
21426
21427 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21428
21429 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
21430 Use gen_sub3_insn instead of indirect function.
21431 (ix86_expand_ashl_const): Use gen_add2_insn instead of
21432 indirect function.
21433 (ix86_adjust_counter): Ditto.
21434
21435 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
21436 Lijia He <helijia@linux.ibm.com>
21437
21438 PR tree-optimization/77820
21439 * tree-ssa-threadedge.c
21440 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
21441 function.
21442 (thread_across_edge): Add call to
21443 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
21444
21445 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
21446
21447 * config/darwin-driver.c (validate_macosx_version_min): New.
21448 (darwin_default_min_version): Cleanup and validate supplied version.
21449 (darwin_driver_init): Likewise and push cleaned version into opts.
21450
21451 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21452
21453 PR tree-optimization/90869
21454 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
21455 converts in MEM_REF referencing decl rather than view converts
21456 from decl type to MEM_REF type.
21457
21458 2019-06-13 Richard Biener <rguenther@suse.de>
21459
21460 PR tree-optimization/90856
21461 * tree-sra.c (build_ref_for_model): Only use
21462 build_reconstructed_reference when address-spaces are the same.
21463
21464 2019-06-13 Jakub Jelinek <jakub@redhat.com>
21465
21466 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
21467 wrap ei variable name in the declaration in ()s.
21468 (nvptx_single): Actually use mode_label variable. Formatting fix.
21469
21470 2019-06-13 Richard Biener <rguenther@suse.de>
21471
21472 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
21473 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
21474 also return the condition stmt.
21475 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
21476 loop we can version and version that, reusing the loop version
21477 created by if-conversion instead of versioning again.
21478
21479 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
21480
21481 * gimple-loop-versioning.cc (prune_loop_conditions): Use
21482 may_contain_p.
21483 * tree-vrp (value_range_base::may_contain_p): Call into
21484 value_inside_range.
21485 (value_inside_range): Make private inside value_range_base class.
21486 Take min/max from *this.
21487 (range_includes_p): Remove.
21488 * tree-vrp.h (value_range_base): Add value_inside_range.
21489 (range_includes_p): Remove.
21490 (range_includes_zero_p): Call may_contain_p.
21491 * vr-values.c (compare_range_with_value): Same.
21492
21493 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
21494
21495 * doc/extend.texi (ARC Function Attributes): Update info.
21496
21497 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
21498
21499 PR tree-optimization/89713
21500 * doc/invoke.texi (-ffinite-loops): Document new option.
21501 * common.opt (-ffinite-loops): New option.
21502 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
21503 IFN_GOACC_LOOP calls as necessary.
21504 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
21505 is finite.
21506 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
21507 IFN_GOACC_LOOP call is not used.
21508 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
21509
21510 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21511
21512 PR target/88838
21513 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
21514 compare_type is not with Pmode size, we will create an IV with
21515 Pmode size with truncated use (i.e. converted to the correct type).
21516 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
21517 (vect_iv_limit_for_full_masking): New. Factored out of
21518 vect_set_loop_condition_masked.
21519 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
21520 (vect_iv_limit_for_full_masking): Declare.
21521
21522 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21523
21524 PR target/88834
21525 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
21526 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
21527 (get_alias_ptr_type_for_ptr_address): Likewise.
21528 (add_iv_candidate_for_use): Add scaled index candidate if useful.
21529 * tree-ssa-address.c (preferred_mem_scale_factor): New.
21530 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
21531 allow_reg_index_p.
21532
21533 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21534
21535 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
21536
21537 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
21538
21539 * common/config/pru/pru-common.c: New file.
21540 * config.gcc: Add PRU target.
21541 * config/pru/alu-zext.md: New file.
21542 * config/pru/constraints.md: New file.
21543 * config/pru/predicates.md: New file.
21544 * config/pru/pru-opts.h: New file.
21545 * config/pru/pru-passes.c: New file.
21546 * config/pru/pru-pragma.c: New file.
21547 * config/pru/pru-protos.h: New file.
21548 * config/pru/pru.c: New file.
21549 * config/pru/pru.h: New file.
21550 * config/pru/pru.md: New file.
21551 * config/pru/pru.opt: New file.
21552 * config/pru/t-pru: New file.
21553 * doc/extend.texi: Document PRU pragmas.
21554 * doc/invoke.texi: Document PRU-specific options.
21555 * doc/md.texi: Document PRU asm constraints.
21556
21557 2019-06-12 Martin Sebor <msebor@redhat.com>
21558
21559 PR middle-end/90676
21560 * tree-pretty-print.c (dump_mem_ref): New function. Include
21561 MEM_REF type in output when different size than operand.
21562 (dump_generic_node): Move code to dump_mem_ref and call it.
21563
21564 2019-06-12 Martin Sebor <msebor@redhat.com>
21565
21566 PR tree-optimization/90662
21567 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21568 to arrays.
21569
21570 2019-06-12 Tom de Vries <tdevries@suse.de>
21571
21572 PR tree-optimization/90009
21573 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21574
21575 2019-06-12 Martin Liska <mliska@suse.cz>
21576
21577 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21578 the created map.
21579 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21580 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21581 Do not sanitize created maps.
21582
21583 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21584
21585 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21586 value_range::singleton_p.
21587 * tree-vrp.c (value_range_constant_singleton): Remove.
21588 * tree-vrp.h (value_range_constant_singleton): Remove.
21589 * vr-values.c (vr_values::singleton): Use
21590 value_range::singleton_p.
21591
21592 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21593
21594 PR target/90811
21595 * cfgexpand.c (align_local_variable): Add really_expand argument,
21596 don't SET_DECL_ALIGN if it is false.
21597 (add_stack_var): Add really_expand argument, pass it through to
21598 align_local_variable.
21599 (expand_one_stack_var_1): Pass true as really_expand to
21600 align_local_variable.
21601 (expand_one_ssa_partition): Pass true as really_expand to
21602 add_stack_var.
21603 (expand_one_var): Pass really_expand through to add_stack_var.
21604
21605 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21606
21607 * config/arm/iterators.md (VABAL): New int iterator.
21608 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21609 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21610 UNSPEC_VABAL_U values.
21611
21612 2019-06-12 Martin Liska <mliska@suse.cz>
21613
21614 * value-prof.c (stream_out_histogram_value): Only first value
21615 can't be negative.
21616
21617 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21618
21619 PR c/90760
21620 * symtab.c (symtab_node::set_section): Allow being called on aliases
21621 as long as they aren't analyzed yet.
21622
21623 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21624
21625 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21626 to `mips_set_text_contents_type' to indicate whether a
21627 non-debug insn follows.
21628
21629 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21630
21631 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21632 enabling -mpcrel by default.
21633 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21634 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21635 that the test against -mcpu=future is done first. Then test if
21636 -mprefixed-addr is on for -mpcrel.
21637 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21638
21639 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21640
21641 PR target/90811
21642 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21643 instead of and.u%d.
21644
21645 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21646
21647 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21648
21649 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21650
21651 PR c++/90449 - add -Winaccessible-base option.
21652 * doc/invoke.texi (Winaccessible-base): Document.
21653
21654 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21655
21656 PR tree-optimization/62041
21657 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21658
21659 2019-06-11 Jason Merrill <jason@redhat.com>
21660
21661 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21662 * tree.c (get_tree_code_name): Likewise.
21663 * print-tree.c (print_node): Only briefly print a node with an
21664 invalid code.
21665
21666 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21667
21668 PR bootstrap/90819
21669 * trans-mem.c (tm_memopt_compute_available): Add assertion
21670 that blocks is not empty. Formatting fix.
21671
21672 2019-06-11 Martin Liska <mliska@suse.cz>
21673
21674 PR c++/87847
21675 * hash-table.h: Extend create_gcc, add one parameter
21676 that is passed into hash_table::hash_table.
21677
21678 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21679
21680 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21681 New prototype.
21682 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21683 Emit clobber also for non-sse operations.
21684 (ix86_split_fp_absneg_operator): New function.
21685 * config/i386/i386.md (SSEMODEF): New mode iterator.
21686 (ssevecmodef): New mode attribute.
21687 (<code>tf2): Use absneg code iterator.
21688 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21689 Add three-operand AVX alternatives.
21690 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21691 Use absneg code iterator and X87MODEF mode iterator.
21692 (absneg fp_reg non-sse splitter): Call absneg code iterator
21693 and X87MODEF mode iterator.
21694 (absneg general_reg non-sse splitter): Use absneg code iterator
21695 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21696 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21697 code iterator. Add three-operand AVX alternative.
21698 (absneg sse_reg splitter): Use absneg code iterator
21699 and SSEMODEF mode iterator. Handle AVX operands.
21700 (absneg fp_reg splitter): Use absneg code iterator
21701 and MODEF mode iterator.
21702 (absneg general_reg splitter): Merge splitters using MODEF mode
21703 iterator. Use absneg code iterator. Call
21704 ix86_split_fp_absneg_operator.
21705 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21706 Do not enable for non-sse modes before reload.
21707 (CSGNMODE): Remove.
21708 (CSGNVMODE): Ditto.
21709 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21710 ssevecmodef mode attribute instaed of CSGNVMODE.
21711 (copysign<mode>3_const): Ditto.
21712 (copysign<mode>3_var): Ditto.
21713 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21714 Use absneg code iterator. Simplify code using std::swap.
21715 * config/i386/predicates.md (absneg_operator): Remove.
21716
21717 2019-06-10 Martin Sebor <msebor@redhat.com>
21718
21719 * gimple-fold.c (get_range_strlen): Update comment that didn't
21720 make it into r267503 or related commits.
21721
21722 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21723
21724 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21725 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21726
21727 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21728
21729 * tree.def (OMP_SCAN): New tree code.
21730 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21731 OMP_CLAUSE_EXCLUSIVE.
21732 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21733 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21734 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21735 OMP_CLAUSE_{IN,EX}CLUSIVE.
21736 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21737 * tree-nested.c (convert_nonlocal_reference_stmt,
21738 convert_local_reference_stmt, convert_gimple_call): Handle
21739 GIMPLE_OMP_SCAN.
21740 * tree-pretty-print.c (dump_omp_clause): Handle
21741 OMP_CLAUSE_{IN,EX}CLUSIVE.
21742 (dump_generic_node): Handle OMP_SCAN.
21743 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21744 * gimple.h (gomp_scan): New type.
21745 (is_a_helper <gomp_scan *>::test,
21746 is_a_helper <const gomp_scan *>::test): New templates.
21747 (gimple_build_omp_scan): Declare.
21748 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21749 gimple_omp_scan_set_clauses): New inline functions.
21750 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21751 * gimple.c (gimple_build_omp_scan): New function.
21752 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21753 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21754 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21755 GIMPLE_OMP_TASKGROUP.
21756 (dump_gimple_omp_scan): New function.
21757 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21758 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21759 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21760 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21761 (is_gimple_stmt): Handle OMP_SCAN.
21762 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21763 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21764 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21765 mentioned in nested #pragma omp scan. Handle
21766 OMP_CLAUSE_{IN,EX}CLUSIVE.
21767 (gimplify_expr): Handle OMP_SCAN.
21768 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21769 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21770 simd constructs.
21771 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21772 GIMPLE_OMP_SCAN.
21773
21774 2019-06-10 Martin Liska <mliska@suse.cz>
21775
21776 * ipa-cp.c (ignore_edge_p): New function.
21777 (build_toporder_info): Use it.
21778 * ipa-inline.c (ignore_edge_p): New function.
21779 (inline_small_functions): Use it.
21780 * ipa-pure-const.c (ignore_edge_for_nothrow):
21781 Verify opt_for_fn for caller and callee.
21782 (ignore_edge_for_pure_const): Likewise.
21783 * ipa-reference.c (ignore_edge_p): Extend to check
21784 for opt_for_fn.
21785 * ipa-utils.c (searchc): Refactor.
21786 * ipa-utils.h: Fix coding style.
21787
21788 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21789
21790 * config/arc/arc.c (arc_rtx_costs): Update costs.
21791
21792 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21793
21794 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21795 (arc_split_ior): Likewise.
21796 (arc_check_mov_const): Likewise.
21797 (arc_split_mov_const): Likewise.
21798 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21799 (arc_rtx_costs): Replace check Crr with Cax constraint.
21800 (prepare_move_operands): Cleanup, remove unused code.
21801 (arc_split_ior): New function.
21802 (arc_check_ior_const): Likewise.
21803 (arc_split_mov_const): Likewise.
21804 (arc_check_mov_const): Likewise.
21805 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21806 in define_insn_and_split pattern.
21807 (iorsi3): Likewise.
21808 (mulsi3_v2): Add new matching variant.
21809 (andsi3_i): Cleanup pattern.
21810 (rotrsi3_cnt1): Update pattern.
21811 (rotrsi3_cnt8): New pattern.
21812 (ashlsi2_cnt8): Likewise.
21813 (ashlsi2_cnt16): Likewise.
21814 * config/arc/constraints.md (C0p): Update constraint.
21815 (Crr): Remove it.
21816 (C0x): New pattern.
21817 (Cax): New pattern.
21818
21819 2019-06-10 Martin Liska <mliska@suse.cz>
21820
21821 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21822 Update coding style.
21823 (sem_item_optimizer::dump_cong_classes):
21824 Print how many items are in a non-singular class. Improve
21825 coding style.
21826
21827 2019-06-10 Martin Liska <mliska@suse.cz>
21828
21829 * value-prof.c (dump_histogram_value): Change dump format.
21830 (gimple_mod_subtract_transform): Remove legacy comment.
21831
21832 2019-06-10 Martin Liska <mliska@suse.cz>
21833
21834 * value-prof.c (dump_histogram_value): Print histogram values
21835 only if present.
21836
21837 2019-06-10 Martin Liska <mliska@suse.cz>
21838
21839 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21840 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21841 * ipa-profile.c (ipa_profile_generate_summary):
21842 Use get_most_common_single_value.
21843 * tree-profile.c (gimple_init_gcov_profiler):
21844 Instrument with __gcov_one_value_profiler_v2
21845 and __gcov_indirect_call_profiler_v4.
21846 * value-prof.c (dump_histogram_value):
21847 Print all values for HIST_TYPE_SINGLE_VALUE.
21848 (stream_out_histogram_value): Update assert for
21849 N values.
21850 (stream_in_histogram_value): Set number of
21851 counters for HIST_TYPE_SINGLE_VALUE.
21852 (get_most_common_single_value): New.
21853 (gimple_divmod_fixed_value_transform):
21854 Use get_most_common_single_value.
21855 (gimple_ic_transform): Likewise.
21856 (gimple_stringops_transform): Likewise.
21857 (gimple_find_values_to_profile): Set number
21858 of counters for HIST_TYPE_SINGLE_VALUE.
21859 * value-prof.h (get_most_common_single_value): New.
21860
21861 2019-06-10 Martin Liska <mliska@suse.cz>
21862
21863 * hash-map.h: Pass default value to hash_table ctor.
21864 * hash-table.h: Add default value to call of a ctor.
21865
21866 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21867
21868 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21869 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21870
21871 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21872
21873 PR target/90751
21874 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21875 Call pa_output_function_label.
21876 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21877 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21878 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21879 to declaration.
21880 (pa_linux_output_function_prologue): Declare.
21881 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21882 (pa_output_function_label): New.
21883 (pa_output_function_prologue): Revise to use pa_output_function_label.
21884 (pa_linux_output_function_prologue): New.
21885 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21886
21887 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21888
21889 * tree-vrp.h (value_range_base::intersect): New.
21890 (value_range::intersect_helper): Move from here...
21891 (value_range_base::intersect_helper): ...to here.
21892 * tree-vrp.c (value_range::intersect_helper): Rename to...
21893 (value_range_base::intersect_helper): ...this, and rewrite to
21894 return a value instead of modifying THIS in place.
21895 Also, move equivalence handling...
21896 (value_range::intersect): ...here, while calling intersect_helper.
21897 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21898 calling intersect.
21899 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21900 Same.
21901 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21902
21903 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21904
21905 * Makefile.in (genprogerr): Add condmd.
21906 (genprog): Remove it here.
21907
21908 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21909
21910 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21911
21912 2019-06-07 Richard Biener <rguenther@suse.de>
21913
21914 PR debug/90574
21915 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21916 that appear after user labels.
21917
21918 2019-06-07 Martin Liska <mliska@suse.cz>
21919
21920 * cselib.c (cselib_init): Disable hash table
21921 sanitization.
21922 * hash-set.h: Pass new default argument to m_table.
21923 * hash-table.c: Add global variable with hash table
21924 sanitization limit.
21925 * hash-table.h (Allocator>::hash_table): Add new argument
21926 to ctor.
21927 (hashtab_chk_error): New.
21928 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21929 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21930 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21931
21932 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21933
21934 * common.opt (flto-odr-type-merging): Ignore.
21935 * invoke.texi (-flto-odr-type-merging): Remove.
21936 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21937 (can_be_vtable_hashed_p): Remove.
21938 (hash_odr_vtable): Remove.
21939 (odr_vtable_hasher::hash): Remove.
21940 (types_same_for_odr): Remove.
21941 (types_odr_comparable): Remove.
21942 (odr_vtable_hasher::equal): Remove.
21943 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21944 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21945 (get_odr_type): Do not use vtable hash.
21946 (dump_odr_type): Remove commented out code.
21947 (build_type_inheritance_graph): Do not allocate vtable hash.
21948 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21949 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21950 (odr_type_p): Likewise.
21951 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21952 test.
21953
21954 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21955
21956 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21957 immediately after same_types_for_tbaa_p returns -1 and continue
21958 looking for possible exact match; if matching types are arrays
21959 watch for partial overlaps.
21960 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21961 (indirect_refs_may_alias_p): Do type based disambiguation first;
21962 update comment.
21963
21964 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21965
21966 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21967
21968 2019-06-07 Martin Liska <mliska@suse.cz>
21969
21970 * doc/invoke.texi: Remove param.
21971 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21972 Remove.
21973 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21974 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21975 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21976 * profile.c (instrument_values): Remove
21977 HIST_TYPE_INDIR_CALL_TOPN.
21978 * tree-profile.c (init_ic_make_global_vars):
21979 Always build __gcov_indirect_call only.
21980 (gimple_init_gcov_profiler): Remove usage
21981 of PARAM_INDIR_CALL_TOPN_PROFILE.
21982 (gimple_gen_ic_profiler): Likewise.
21983 * value-prof.c (dump_histogram_value): Likewise.
21984 (stream_in_histogram_value): Likewise.
21985 (gimple_indirect_call_to_profile): Likewise.
21986 (gimple_find_values_to_profile): Likewise.
21987 * value-prof.h (enum hist_type): Likewise.
21988
21989 2019-06-07 Martin Liska <mliska@suse.cz>
21990
21991 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21992 function.
21993
21994 2019-06-07 Martin Liska <mliska@suse.cz>
21995
21996 PR tree-optimization/78902
21997 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21998 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21999 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22000 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22001 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
22002 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22003 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
22004 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
22005 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22006 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22007 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22008 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
22009 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
22010 New.
22011 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
22012 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
22013 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
22014 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22015 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22016 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22017 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22018 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22019 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22020 warn_unused_result attribute.
22021 (BUILT_IN_STRDUP): Likewise.
22022 (BUILT_IN_STRNDUP): Likewise.
22023 (BUILT_IN_ALLOCA): Likewise.
22024 (BUILT_IN_CALLOC): Likewise.
22025 (BUILT_IN_MALLOC): Likewise.
22026 (BUILT_IN_REALLOC): Likewise.
22027
22028 2019-06-06 Jim Wilson <jimw@sifive.com>
22029
22030 PR target/89955
22031 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22032 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22033 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22034
22035 2019-06-06 Martin Sebor <msebor@redhat.com>
22036
22037 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22038 (handle_builtin_malloc): Remove trailing spaces.
22039 (handle_builtin_memset): Same.
22040 (handle_builtin_memcmp): Same.
22041 (compute_string_length): Same.
22042 (determine_min_objsize): Same.
22043 (handle_builtin_string_cmp): Same.
22044 (handle_char_store): Same. Break up excessively long line.
22045
22046 2019-06-06 Martin Jambor <mjambor@suse.cz>
22047
22048 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22049 check.
22050
22051 2019-06-06 Martin Jambor <mjambor@suse.cz>
22052
22053 * tree-sra.c (struct access): New field grp_same_access_path.
22054 (dump_access): Dump it.
22055 (build_reconstructed_reference): New function.
22056 (build_ref_for_model): Use it if possible.
22057 (path_comparable_for_same_access): New function.
22058 (same_access_path_p): Likewise.
22059 (sort_and_splice_var_accesses): Set the new flag.
22060 (analyze_access_subtree): Likewise.
22061 (propagate_subaccesses_across_link): Propagate zero value of the new
22062 flag down the access tree.
22063
22064 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22065
22066 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22067 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22068 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22069 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22070 Add gfx906.
22071
22072 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22073
22074 PR tree-optimization/90332
22075 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22076 Handle VALS containing two vectors.
22077 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22078 to...
22079 (@aarch64_combinez<mode>): ... This.
22080 (*aarch64_combinez_be<mode>): Rename to...
22081 (@aarch64_combinez_be<mode>): ... This.
22082 (vec_init<mode><Vhalf>): New define_expand.
22083 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22084
22085 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22086
22087 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22088 library functions only when not optimizing for size.
22089 (ashlsi3): Likewise.
22090 (ashrhi3): Likewise.
22091 (ashrsi3): Likewise.
22092 (lshrhi3): Likewise.
22093 (lshrsi3): Likewise.
22094
22095 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22096
22097 PR rtl-optimization/88751
22098 * ira.c (ira): Use the number of the actually referenced registers
22099 when calculating the threshold.
22100
22101 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22102
22103 * configure: Regenerate.
22104
22105 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22106
22107 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22108 register if it is in memory, so the shift can be emulated with a rotate
22109 instruction.
22110 (ashrhi3): Likewise.
22111 (lshrhi3): Likewise.
22112
22113 2019-06-06 Martin Liska <mliska@suse.cz>
22114
22115 PR tree-optimization/87954
22116 * match.pd: Simplify mult where both arguments are 0 or 1.
22117
22118 2019-06-06 Richard Biener <rguenther@suse.de>
22119
22120 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22121 put equivalences on UNDEFINED ranges.
22122 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22123 Make sure to drop defs of stmts added during simplification
22124 to VARYING.
22125
22126 2019-06-06 Richard Biener <rguenther@suse.de>
22127
22128 * tree-ssa-structalias.c: Include tree-cfg.h.
22129 (make_heapvar): Do not make heap vars artificial.
22130 (find_func_aliases_for_builtin_call): Handle stack allocation
22131 functions.
22132 (find_func_aliases): Delay processing of simple enough returns
22133 in non-IPA mode.
22134 (set_uids_in_ptset): Adjust.
22135 (find_what_var_points_to): Likewise.
22136 (solve_constraints): Do not dump points-to sets here.
22137 (compute_points_to_sets): Post-process return statements,
22138 amending the escaped solution. Dump points-to sets afterwards.
22139 (ipa_pta_execute): Dump points-to sets.
22140
22141 2019-06-06 Martin Liska <mliska@suse.cz>
22142
22143 PR web/87933
22144 * doc/install.texi: Fix HTML headers and
22145 titles for 'Installing GCC' pages.
22146
22147 2019-06-06 Martin Liska <mliska@suse.cz>
22148
22149 * ipa-icf-gimple.h (dump_message_1): Remove.
22150 (dump_message): Likewise.
22151 (return_false_with_message_1): Print also file.
22152 (return_false_with_msg): Likewise.
22153 (return_with_result): Likewise.
22154 (return_with_debug): Likewise.
22155 * ipa-icf.c (sem_function::equals_private): Remove call
22156 to dump_message.
22157
22158 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22159
22160 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22161 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22162 memory operand for it.
22163 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22164
22165 2019-06-05 Martin Sebor <msebor@redhat.com>
22166
22167 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22168 Adjust quoting and hyphenation.
22169 * convert.c (convert_to_real_1): Same.
22170 * gcc.c (driver_wrong_lang_callback): Same.
22171 (driver::handle_unrecognized_options): Same.
22172 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22173 * opts-common.c (cmdline_handle_error): Same.
22174 (read_cmdline_option): Same.
22175 * opts-global.c (complain_wrong_lang): Same.
22176 (print_ignored_options): Same.
22177 (handle_common_deferred_options): Same.
22178 * pretty-print.h: Same.
22179 * print-rtl.c (debug_bb_n_slim): Same.
22180 * sched-rgn.c (make_pass_sched_fusion): Same.
22181 * tree-cfg.c (verify_gimple_assign_unary): Same.
22182 (verify_gimple_label): Same.
22183 * tree-ssa-operands.c (verify_ssa_operands): Same.
22184 * varasm.c (do_assemble_alias): Same.
22185 (assemble_alias): Same.
22186
22187 2019-06-05 Richard Henderson <rth@twiddle.net>
22188
22189 * config/alpha/alpha.c (direct_return): Move down after
22190 struct machine_function definition; use saved frame_size;
22191 return bool.
22192 (struct machine_function): Add sa_mask, sa_size, frame_size.
22193 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22194 (alpha_compute_frame_layout): ... new function.
22195 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22196 (alpha_initial_elimination_offset): Use saved sa_size.
22197 (alpha_vms_initial_elimination_offset): Likewise.
22198 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22199 (alpha_expand_prologue): Use saved frame data. Merge integer
22200 and fp register save loops.
22201 (alpha_expand_epilogue): Likewise.
22202 (alpha_start_function): Use saved frame data.
22203 * config/alpha/alpha-protos.h (direct_return): Update.
22204 (alpha_sa_size): Remove.
22205
22206 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22207
22208 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22209 multiplication by a power-of-two value.
22210 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22211 and turn the modulo operation into a masking operation.
22212
22213 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22214
22215 PR debug/90733
22216 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
22217 with VOIDmode inner operands.
22218
22219 2019-06-05 Richard Biener <rguenther@suse.de>
22220
22221 PR middle-end/90726
22222 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22223 turn an expression graph into a tree.
22224
22225 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22226
22227 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
22228 member.
22229 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
22230 treat it like explicit monotonic schedule modifier.
22231 (expand_omp_for): Initialize has_lastprivate_conditional.
22232 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
22233 schedule modifier.
22234
22235 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
22236 references, lookup in in hash map MEM_REF operand instead of the
22237 MEM_REF itself.
22238 (lower_omp_1): When looking for lastprivate conditional assignments,
22239 handle MEM_REFs with REFERENCE_TYPE operands.
22240
22241 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
22242 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
22243 and references a VLA. Handle references to non-VLAs if is_simd
22244 all privatization clauses like reductions.
22245 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22246 If omp_is_reference, use always omp simd arrays and set
22247 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
22248 fails, emit reference initialization.
22249
22250 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22251
22252 PR target/89803
22253 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22254 _mm_mask_fpclass_sd_mask): New intrinsics.
22255 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
22256 * config/i386/i386-builtin.def
22257 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
22258 New builtins.
22259 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
22260 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
22261 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
22262 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
22263 case QI_FTYPE_V2SF_INT): Ditto.
22264 * config/i386/sse.md
22265 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
22266 Extended to insnstructions with mask operands.
22267
22268 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22269
22270 * config/rs6000/constraints.md (define_register_constraint "wp"):
22271 Delete.
22272 (define_register_constraint "wq"): Delete.
22273 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22274 (rs6000_init_hard_regno_mode_ok): Adjust.
22275 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22276 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
22277 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
22278 (define_mode_attr VSa): Delete.
22279 (define_mode_attr VSisa): New.
22280 (rest of file): Adjust.
22281 * doc/md.texi (Machine Constraints): Adjust.
22282
22283 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22284
22285 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
22286 (define_attr "enabled"): Handle those new isa values.
22287
22288 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22289
22290 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
22291 (define_mode_attr VSr5): Delete.
22292 (define_mode_attr VStype_sqrt): Delete.
22293 (define_mode_iterator VSX_SPDP): Delete.
22294 (define_mode_attr VS_spdp_res): Delete.
22295 (define_mode_attr VS_spdp_insn): Delete.
22296 (define_mode_attr VS_spdp_type): Delete.
22297 (*vsx_sqrt<mode>2): Adjust.
22298 (vsx_<VS_spdp_insn>): Delete, split to...
22299 (vsx_xscvdpsp): ... this. New. And...
22300 (vsx_xvcvspdp): ... this. New. And...
22301 (vsx_xvcvdpsp): ... this. New.
22302
22303 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22304
22305 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
22306 and V2DF.
22307 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
22308 (rest of file): Adjust.
22309
22310 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22311
22312 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
22313 (vsx_extract_<mode>_var): Ditto.
22314
22315 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22316
22317 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
22318 with just "wa".
22319
22320 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22321
22322 * config/rs6000/constraints.md (define_register_constraint "ww"):
22323 Delete.
22324 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22325 (rs6000_init_hard_regno_mode_ok): Adjust.
22326 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22327 RS6000_CONSTRAINT_ww.
22328 * config/rs6000/rs6000.md: Adjust.
22329 * config/rs6000/vsx.md: Adjust.
22330 * doc/md.texi (Machine Constraints): Adjust.
22331
22332 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22333
22334 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
22335 (define_mode_attr sd): New.
22336 (define_mode_attr s): New.
22337 (define_mode_attr Ftrad): Delete.
22338 (define_mode_attr Fvsx): Delete.
22339 (define_mode_attr Fs): Delete.
22340 (rest of file): Use the new mode attributes.
22341 * config.rs6000/vsx.md: Use the new mode attributes.
22342
22343 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22344
22345 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
22346 with just "wa".
22347
22348 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22349
22350 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
22351 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
22352 used with VSX_B, VSX_D, or VSX_F, with just "wa".
22353
22354 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
22355
22356 PR target/78263
22357 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
22358 C++ with strict ANSI requirements.
22359
22360 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
22361
22362 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
22363 computations when step is 1.
22364
22365 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22366
22367 * config/rs6000/constraints.md (define_register_constraint "wf"):
22368 Delete.
22369 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22370 (rs6000_init_hard_regno_mode_ok): Adjust.
22371 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22372 RS6000_CONSTRAINT_wf.
22373 * config/rs6000/rs6000.md: Adjust.
22374 * config/rs6000/vsx.md: Adjust.
22375 * doc/md.texi (Machine Constraints): Adjust.
22376
22377 2019-06-04 Andrew Pinski <apinski@marvell.com>
22378
22379 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
22380 Fix ILP32 value.
22381
22382 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22383
22384 * config/rs6000/constraints.md (define_register_constraint "wd"):
22385 Delete.
22386 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22387 (rs6000_init_hard_regno_mode_ok): Adjust.
22388 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22389 RS6000_CONSTRAINT_wd.
22390 * config/rs6000/rs6000.md: Adjust.
22391 * config/rs6000/vsx.md: Adjust.
22392 * doc/md.texi (Machine Constraints): Adjust.
22393
22394 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22395
22396 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22397 (rest of file): Adjust.
22398
22399 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22400
22401 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22402 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22403 (vsx_splat_<mode>_reg): Adjust.
22404
22405 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22406
22407 * config/rs6000/constraints.md (define_register_constraint "ws"):
22408 Delete.
22409 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22410 (rs6000_init_hard_regno_mode_ok): Adjust.
22411 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22412 RS6000_CONSTRAINT_ws.
22413 * config/rs6000/rs6000.md: Adjust.
22414 * config/rs6000/vsx.md: Adjust.
22415 * doc/md.texi (Machine Constraints): Adjust.
22416
22417 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22418
22419 * config/rs6000/constraints.md (define_register_constraint "wv"):
22420 Delete.
22421 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22422 (rs6000_init_hard_regno_mode_ok): Adjust.
22423 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22424 RS6000_CONSTRAINT_wv.
22425 * config/rs6000/rs6000.md: Adjust.
22426 * config/rs6000/vsx.md: Adjust.
22427 * doc/md.texi (Machine Constraints): Adjust.
22428
22429 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22430
22431 * config/rs6000/constraints.md (define_register_constraint "wi"):
22432 Delete.
22433 (define_register_constraint "wt"): Delete.
22434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22435 (rs6000_init_hard_regno_mode_ok): Adjust.
22436 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22437 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
22438 * config/rs6000/rs6000.md: Adjust.
22439 * config/rs6000/vsx.md: Adjust.
22440 * doc/md.texi (Machine Constraints): Adjust.
22441
22442 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22443
22444 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
22445 const.
22446 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
22447 default_elf_asm_output_external.
22448
22449 2019-06-04 Martin Liska <mliska@suse.cz>
22450
22451 * ipa-icf.c (INCLUDE_LIST): Remove.
22452 (sem_item_optimizer::execute): Remove call to init_wpa.
22453 * ipa-icf.h (init_wpa): Remove.
22454
22455 2019-06-04 Jakub Jelinek <jakub@redhat.com>
22456
22457 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
22458 conditional on combined for simd.
22459 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
22460 member.
22461 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
22462 constructs, don't remove lastprivate_conditional_map, but instead set
22463 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
22464 to parent construct temporaries.
22465 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
22466 like !ctx->lastprivate_conditional_map.
22467 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
22468 use up->outer context instead of up.
22469 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
22470 gimple_omp_for_combined_p.
22471 (expand_omp_for_static_nochunk): Likewise.
22472 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
22473 probably moved over into expand_omp_for_generic rather than being copied
22474 there.
22475
22476 2019-06-04 Martin Liska <mliska@suse.cz>
22477
22478 * value-prof.c (dump_histogram_value): Fix typo.
22479 (gimple_mod_subtract_transform): Likewise.
22480
22481 2019-06-04 Richard Biener <rguenther@suse.de>
22482
22483 PR middle-end/90726
22484 * tree-chrec.c (chrec_contains_symbols): Add to visited.
22485 (tree_contains_chrecs): Likewise.
22486 (chrec_contains_symbols_defined_in_loop): Move here and avoid
22487 exponential behaivor from ...
22488 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22489 ... here.
22490 (expression_expensive_p): Avoid exponential behavior and compute
22491 expanded size, rejecting any expansion.
22492 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
22493 (idx_contains_abnormal_ssa_name_p): Likewise.
22494 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
22495 (contains_abnormal_ssa_name_p): Simplify and use
22496 walk_tree_without_duplicates.
22497
22498 2019-06-04 Richard Biener <rguenther@suse.de>
22499
22500 PR tree-optimization/90738
22501 Revert
22502 2019-06-03 Richard Biener <rguenther@suse.de>
22503
22504 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22505 full reference tree and record in ref->ref.
22506 (vn_reference_lookup_3): Pass in original ref to
22507 ao_ref_init_from_vn_reference.
22508 (vn_reference_lookup): Likewise.
22509 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22510 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22511 Handle non-decl bases in the original reference.
22512
22513 2019-06-04 Martin Liska <mliska@suse.cz>
22514
22515 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
22516 number of references.
22517 (sem_item_optimizer::do_congruence_step):
22518 (sem_item_optimizer::worklist_push): Dump how references
22519 a class has.
22520 (sem_item_optimizer::worklist_pop): Use heap.
22521 (sem_item_optimizer::process_cong_reduction): Likewise.
22522 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
22523
22524 2019-06-04 Martin Liska <mliska@suse.cz>
22525
22526 * ipa-icf.h (struct sem_usage_pair_hash): New.
22527 (sem_usage_pair_hash::hash): Likewise.
22528 (sem_usage_pair_hash::equal): Likewise.
22529 (struct sem_usage_hash): Likewise.
22530 * ipa-icf.c (sem_item::sem_item): Initialize
22531 referenced_by_count.
22532 (sem_item::add_reference): Register a reference
22533 in ref_map and not in target->usages.
22534 (sem_item::setup): Remove initialization of
22535 dead vectors.
22536 (sem_item::~sem_item): Remove usage of dead vectors.
22537 (sem_item::dump): Remove dump of references.
22538 (sem_item_optimizer::sem_item_optimizer): Initialize
22539 m_references.
22540 (sem_item_optimizer::read_section): Remove useless
22541 dump.
22542 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
22543 (sem_item_optimizer::build_graph): Pass m_references
22544 to ::add_reference.
22545 (sem_item_optimizer::verify_classes): Remove usage of dead
22546 vectors.
22547 (sem_item_optimizer::traverse_congruence_split): Return true
22548 when a class is split.
22549 (sem_item_optimizer::do_congruence_step_for_index): Use
22550 hash_map for look up of (sem_item *, index). That brings
22551 significant speed up.
22552 (sem_item_optimizer::do_congruence_step): Return true
22553 when a split is done.
22554 (congruence_class::is_class_used): Use referenced_by_count.
22555
22556 2019-06-04 Alan Modra <amodra@gmail.com>
22557
22558 PR target/90689
22559 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
22560 error.
22561
22562 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22563
22564 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
22565 * config/rs6000/rs6000.c (direct_move_p): Adjust.
22566 (rs6000_secondary_reload_simple_move): Adjust.
22567 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22568 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22569 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22570 comment.
22571 (power6x): Adjust.
22572 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22573 (floatunssi<mode>2_lfiwzx): Adjust.
22574 (fix_trunc<mode>si2_stfiwx): Adjust.
22575 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22576 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22577 (mfpgpr): Mark as deprecated.
22578 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22579 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22580 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22581
22582 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22583
22584 * config/rs6000/constraints.md (define_register_constraint "wg"):
22585 Delete.
22586 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22587 RS6000_CONSTRAINT_wg.
22588 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22589 (rs6000_init_hard_regno_mode_ok): Adjust.
22590 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22591 Delete "wg" alternatives.
22592 * doc/md.texi (Machine Constraints): Adjust.
22593
22594 2019-06-03 Alan Modra <amodra@gmail.com>
22595
22596 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22597 (get_uncond_jump_length): Assert length less than INT_MAX and
22598 non-negative.
22599
22600 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22601
22602 PR middle-end/64242
22603 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22604 block.
22605 (expand_builtin_nonlocal_goto): Likewise.
22606
22607 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22608
22609 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22610 (aarch64_asm_output_external): Declare.
22611 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22612 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22613 (aarch64_asm_output_alias): New.
22614 (aarch64_asm_output_external): New.
22615 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22616 (ASM_OUTPUT_EXTERNAL): Define.
22617
22618 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22619 * tree-vrp.h (value_range_base::nonzero_p): New.
22620 (value_range_base::set_nonnull): Rename to...
22621 (value_range_base::set_nonzero): ...this.
22622 (value_range_base::set_null): Rename to...
22623 (value_range_base::set_zero): ...this.
22624 (value_range::set_nonnull): Remove.
22625 (value_range::set_null): Remove.
22626 * tree-vrp.c (range_is_null): Remove.
22627 (range_is_nonnull): Remove.
22628 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22629 instead of range_is_*null.
22630 (extract_range_from_unary_expr): Same.
22631 (value_range_base::set_nonnull): Rename to...
22632 (value_range_base::set_nonzero): ...this.
22633 (value_range::set_nonnull): Remove.
22634 (value_range_base::set_null): Rename to...
22635 (value_range_base::set_zero): ...this.
22636 (value_range::set_null): Remove.
22637 (extract_range_from_binary_expr): Rename set_*null uses to
22638 set_*zero.
22639 (extract_range_from_unary_expr): Same.
22640 (union_helper): Same.
22641 * vr-values.c (get_value_range): Use set_*zero instead of
22642 set_*null.
22643 (vr_values::extract_range_from_binary_expr): Same.
22644 (vr_values::extract_range_basic): Same.
22645
22646 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22647
22648 PR driver/90684
22649 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22650
22651 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22652
22653 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22654 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22655 Rename to...
22656 (aarch64_<su>abd<mode>_3): ... This.
22657 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22658
22659 2019-06-03 Richard Biener <rguenther@suse.de>
22660
22661 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22662 full reference tree and record in ref->ref.
22663 (vn_reference_lookup_3): Pass in original ref to
22664 ao_ref_init_from_vn_reference.
22665 (vn_reference_lookup): Likewise.
22666 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22667 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22668 Handle non-decl bases in the original reference.
22669
22670 2019-06-03 Martin Liska <mliska@suse.cz>
22671
22672 * doc/generic.texi: Remove Java Trees.
22673
22674 2019-06-03 Martin Liska <mliska@suse.cz>
22675
22676 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22677 returns 0 when operands are equal.
22678
22679 2019-06-03 Richard Biener <rguenther@suse.de>
22680
22681 PR tree-optimization/90716
22682 * tree-loop-distribution.c (destroy_loop): Process blocks in
22683 correct order.
22684
22685 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22686
22687 PR target/88837
22688 * vector-builder.h (vector_builder::count_dups): New method.
22689 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22690 Declare prototype.
22691 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22692 (vec_init<mode><Vel>): New pattern.
22693 * config/aarch64/aarch64.c (emit_insr): New function.
22694 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22695 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22696 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22697 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22698
22699 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22700
22701 PR tree-optimization/90681
22702 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22703 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22704 special case for SLP, but fail on non-groupped loads.
22705
22706 2019-06-03 Martin Liska <mliska@suse.cz>
22707
22708 * cfg.c (debug): Use TDF_DETAILS for debug and
22709 print edge info only once.
22710
22711 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22712
22713 PR fortran/90539
22714 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22715
22716 2019-06-01 Martin Sebor <msebor@redhat.com>
22717
22718 PR middle-end/90694
22719 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22720
22721 2019-05-31 Jan Hubicka <jh@suse.cz>
22722
22723 * alias.c: Include ipa-utils.h.
22724 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22725 * ipa-devirt.c (prevailing_odr_type): New.
22726 * ipa-utils.h (previaling_odr_type): Declare.
22727
22728 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22729 Hongtao Liu <hongtao.liu@intel.com>
22730
22731 PR target/89355
22732 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22733 NOTE_INSN_DELETED_LABEL check.
22734
22735 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22736 Robert Suchanek <robert.suchanek@mips.com>
22737
22738 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22739 and 3rd operands of the fmadd/fmsub/maddv builtin.
22740
22741 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22742
22743 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22744 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22745 on OMP_SIMD if not nested inside of worksharing loop that also has
22746 lastprivate conditional clause for the same decl.
22747 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22748 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22749 on simd.
22750 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22751 on simd construct.
22752 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22753 on simd construct.
22754 (lower_lastprivate_clauses): Likewise.
22755 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22756 calling lower_rec_input_clauses.
22757 (lower_omp_for): Likewise.
22758 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22759 clause on simd construct.
22760 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22761 OMP_CLAUSE__CONDTEMP_ clause is present.
22762
22763 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22764 ivar and lvar.
22765
22766 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22767
22768 PR c/43673
22769 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22770 TEX_D32, TEX_D64 or TEX_D128.
22771
22772 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22773
22774 * match.pd (~(vec?cst1:cst2)): New transformation.
22775
22776 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22777
22778 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22779 ((size_t)(A /[ex] B) CMP C): New transformation.
22780
22781 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22782
22783 * doc/md.texi: Document define_insn_and_rewrite.
22784 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22785 * gensupport.c (queue_elem): Update comment.
22786 (replace_operands_with_dups): New function.
22787 (gen_rewrite_sequence): Likewise.
22788 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22789 * read-rtl.c (apply_subst_iterator): Likewise.
22790 (add_condition_to_rtx, named_rtx_p): Likewise.
22791 (rtx_reader::read_rtx_operand): Likewise.
22792 * config/aarch64/aarch64-sve.md
22793 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22794 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22795 define_insn_and_rewrite.
22796 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22797 Remove separate define_split.
22798
22799 2019-05-31 Jan Hubicka <jh@suse.cz>
22800
22801 * tree-ssa-alias.c (type_has_components_p): New function.
22802 (aliasing_component_refs_p): Use it.
22803
22804 2019-05-31 Martin Liska <mliska@suse.cz>
22805
22806 * gdbhooks.py: Add const_tree to TreePrinter.
22807
22808 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22809
22810 PR debug/86964
22811 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22812 * doc/invoke.texi (Debugging Options): Document new default of
22813 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22814
22815 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22816
22817 PR tree-optimization/90671
22818 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22819 template_block used to be empty on the first call, don't use
22820 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22821 seq with bb_seq and set it with set_bb_seq.
22822
22823 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22824
22825 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22826
22827 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22828 Michael Meissner <meissner@linux.ibm.com>
22829
22830 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22831 (prefixed_mem_operand): Likewise.
22832 (non_prefixed_mem_operand): Likewise.
22833 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22834 prototype.
22835 * config/rs6000/rs6000.c (print_operand_address): Handle
22836 PC-relative addresses.
22837 (mode_supports_prefixed_address_p): New function.
22838 (rs6000_prefixed_address): New function.
22839 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22840 (SYMBOL_REF_PCREL_P): Likewise.
22841
22842 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22843
22844 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22845 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22846 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22847 is nested inside of parallel region, add _condtemp_ clause to both.
22848 * tree-nested.c (convert_nonlocal_omp_clauses,
22849 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22850 assertion failure.
22851 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22852 member.
22853 * omp-general.c (omp_extract_for_data): Compute it.
22854 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22855 (lower_rec_input_clauses): Likewise.
22856 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22857 clause is already present, just add one further one after it.
22858 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22859 (lower_send_shared_vars): Clear _condtemp_ vars.
22860 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22861 or section or taskgroup.
22862 * omp-expand.c (determine_parallel_type): Disallow combining only if
22863 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22864 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22865 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22866 expand_omp_for_static_chunk, expand_omp_for): Use
22867 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22868 determine if a special set of API routines are needed and if condtemp
22869 needs to be initialized, while always initialize cond_var if
22870 fd->lastprivate_conditional is non-zero.
22871
22872 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22873 Michael Meissner <meissner@linux.ibm.com>
22874
22875 * config/rs6000/constraints.md (eI): New constraint.
22876 * config/rs6000/predicates.md (cint34_operand): New predicate.
22877 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22878 (SIGNED_34BIT_OFFSET_P): Likewise.
22879 * doc/md.texi (eI): Document constraint.
22880
22881 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22882
22883 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22884
22885 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22886 Michael Meissner <meissner@linux.ibm.com>
22887
22888 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22889 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22890 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22891 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22892 (OTHER_FUTURE_MASKS): Likewise.
22893 (POWERPC_MASKS): Likewise.
22894 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22895 specified without -mprefixed-addr or -mcpu=future. Error if
22896 -mprefixed-addr is specified without -mcpu=future.
22897 (rs6000_opt_masks): Add entry for prefixed-addr.
22898 * rs6000.opt (mprefixed-addr): New option.
22899
22900 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22901
22902 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22903 cfun->is_thunk check.
22904
22905 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22906
22907 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22908 to length.
22909
22910 2019-05-30 Martin Liska <mliska@suse.cz>
22911
22912 * gdbinit.in: Fix 'ptc' command. Add trt
22913 that prints TREE_TYPE($).
22914
22915 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22916 Alan Modra <amodra@gmail.com>
22917
22918 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22919 calls here...
22920 (rs6000_indirect_call_template_1): ...and here.
22921 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22922 plt16_ha, plt16_lo, mtctr indirect calls. Use
22923 rs6000_pltseq_enum.
22924 (rs6000_decl_ok_for_sibcall): New function.
22925 (rs6000_function_ok_for_sibcall): Refactor.
22926 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22927 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22928 when pcrel. Reorganize.
22929 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22930 * rs6000.h (rs6000_pltseq_enum): New enum.
22931 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22932 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22933 (*pltseq_plt16_ha): Likewise.
22934 (*pltseq_plt16_lo): Likewise.
22935 (*pltseq_mtctr): Likewise.
22936 (*pltseq_plt_pcrel): New insn.
22937 (*call_local_aix): Handle @notoc calls.
22938 (*call_value_local_aix): Likewise.
22939 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22940 (*call_value_nonlocal_aix): Likewise.
22941 (*call_indirect_pcrel): New insn.
22942 (*call_value_indirect_pcrel): Likewise.
22943
22944 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22945
22946 * config/i386/sse.md (*save_multiple<mode>): Rename from
22947 save_multiple<mode>.
22948 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22949 (*restore_multiple_and_return<mode>): Rename from
22950 restore_multiple_and_return<mode>.
22951 (*restore_multiple_leave_return<mode>): Rename from
22952 restore_multiple_leave_return<mode>.
22953
22954 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22955
22956 * config.gcc (rx-*-linux*): New target.
22957 * config/rx/elf.opt: New file.
22958 * config/rx/linux.h: Likewise.
22959 * config/rx/t-linux: Likewise.
22960 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22961 make it zero.
22962 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22963 (ASM_APP_OFF): Likewise.
22964 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22965 moved elsewhere.
22966
22967 2019-05-29 Jan Hubicka <jh@suse.cz>
22968
22969 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22970 variants are pointer equivalent.
22971
22972 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22973
22974 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22975 * config/aarch64/aarch64-sve2.md: New file.
22976 (<u>avg<mode>3_floor): New pattern.
22977 (<u>avg<mode>3_ceil): Likewise.
22978 (*<sur>h<addsub><mode>): Likewise.
22979 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22980 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22981
22982 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22983
22984 PR bootstrap/90543
22985 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22986 for var_opt_string printing. In cl_optimization_print_diff, print
22987 (null) instead of invoking undefined behavior if one of the
22988 var_opt_string pointers is NULL and use && instead of first || in the
22989 guarding condition. For var_target_other options, handle const char *
22990 target variables similarly to const char * optimize node variables.
22991
22992 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22993
22994 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22995 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22996 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22997 Add autib1716 and pacib1716 initialisation.
22998 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22999 for autib1716 and pacib1716.
23000 * config/aarch64/aarch64-protos.h (aarch64_key_type,
23001 aarch64_post_cfi_startproc): Define.
23002 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
23003 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
23004 aarch64_handle_pac_ret_protection): Set default sign key to A.
23005 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
23006 aarch64_expand_prologue): Add check for b-key.
23007 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
23008 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
23009 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
23010 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
23011 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
23012 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
23013 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23014 * config/aarch64/aarch64.md (do_return): Add check for b-key.
23015 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23016 pauth_hint_num_a with pauth_hint_num.
23017 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23018 pauth_hint_num_a with pauth_hint_num.
23019 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23020 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23021 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23022 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23023 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23024 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23025 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23026 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23027 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23028 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23029 UNSPEC_AUTIA1716 respectively.
23030 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23031 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23032 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23033 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23034 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23035 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23036
23037 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23038
23039 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23040 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23041 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23042 explicit clause on combined parallel into implicit shared clause.
23043 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23044 and firstprivate if the decl has one too from combined parallel to
23045 the worksharing construct.
23046
23047 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23048 Michael Meissner <meissner@linux.ibm.com>
23049
23050 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23051
23052 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23053
23054 * rtl.h (LABEL_REF_P): New #define.
23055
23056 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23057
23058 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23059
23060 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23061
23062 * internal-fn.c: Marked mask_load_direct as vectorizable.
23063 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23064 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23065 combined even if masks different with allow_slp_p param.
23066 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23067 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23068 dissolve SLP-only vectorizable groups when SLP has been discarded.
23069 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23070 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23071 masks.
23072 (vect_build_slp_tree_1): Fixed comment typo.
23073 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23074 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23075 loads for SLP only.
23076 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23077 vectorizable.
23078 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23079
23080 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23081
23082 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23083 Remove obsolete use_thunk reference.
23084 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23085 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23086 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23087 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23088 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23089 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23090 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23091 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23092 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23093
23094 2019-05-28 Nathan Sidwell <nathan@acm.org>
23095
23096 * tree.h (IDENTIFIER_ANON_P): New.
23097 (anon_aggrname_format, anon_aggname_p): Don't declare.
23098 (make_anon_name): Declare.
23099 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23100 (hash_tree): Likewise.
23101 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23102 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23103 (anon_cnt, make_anon_name): New.
23104
23105 2019-05-28 Martin Liska <mliska@suse.cz>
23106
23107 PR other/90315
23108 * opts-global.c (decode_options): Print help for all
23109 help_option_arguments.
23110 * opts.c (print_help): Add new argument.
23111 (common_handle_option): Remember all values into
23112 help_option_arguments.
23113 * opts.h (print_help): Add new argument.
23114
23115 2019-05-28 Martin Liska <mliska@suse.cz>
23116
23117 PR ipa/90555
23118 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23119 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23120 (func_checker::compare_bb): Call compare_loops.
23121
23122 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23123
23124 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23125 on sections construct.
23126 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23127 construct.
23128 (lower_omp_sections): Handle lastprivate conditional.
23129 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23130 lastprivate_conditional_map.
23131 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23132
23133 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23134 critical, taskgroup and section regions when looking for a region
23135 with non-NULL lastprivate_conditional_map.
23136
23137 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23138
23139 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23140 (*ix86_gen_sub3): Ditto.
23141 (*ix86_gen_sub3_carry): Ditto.
23142 (*ix86_gen_one_cmpl2): Ditto.
23143 (*ix86_gen_andsp): Ditto.
23144 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23145 (gen_and2_insn): New static function.
23146 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23147 Use gen_add3_insn instead of ix86_gen_add3.
23148 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23149 instead of ix86_gen_add3.
23150 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23151 Use gen_sub3_insn instead of ix86_gen_sub3.
23152 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23153 instead of ix86_gen_add3.
23154 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23155 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23156 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23157 * config/i386/i386-options.c (ix86_option_override_internal):
23158 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23159 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23160
23161 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23162
23163 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23164 and DW_OP_GNU_const_index opcodes.
23165
23166 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23167
23168 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23169
23170 2019-05-27 Richard Biener <rguenther@suse.de>
23171
23172 PR tree-optimization/90637
23173 * tree-ssa-sink.c (statement_sink_location): Honor the
23174 computed sink location for single-uses.
23175
23176 2019-05-27 Richard Biener <rguenther@suse.de>
23177
23178 PR middle-end/90610
23179 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23180 a bit-insert.
23181
23182 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23183
23184 * config/i386/i386.md (@sub<mode>3_carry): Rename
23185 from sub<mode>3_carry.
23186 (@leave_<mode>): New expander.
23187 (*leave): Rename from leave.
23188 (*leave_rex64): Rename from leave_rex64.
23189 (@monitorx_<mode>): Rename from monitorx_<mode>.
23190 (@clzero_<mode>): Rename from clzero_<mode>.
23191 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23192 from sse3_monitor_<mode>.
23193 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23194 (*ix86_gen_leave): Ditto.
23195 (*ix86_gen_monitor): Ditto.
23196 (*ix86_gen_monitorx): Ditto.
23197 (*ix86_gen_clzero): Ditto.
23198 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23199 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23200 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23201 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23202 Use gen_sse3_monitor instead of ix86_gen_monitor.
23203 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23204 instead of ix86_gen_monitorx.
23205 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23206 instead of ix86_gen_clzero.
23207 * config/i386/i386-options.c (ix86_option_override_internal):
23208 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23209 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23210
23211 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23212
23213 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
23214 Rename from tls_global_dynamic_64_<mode>.
23215 (@tls_local_dynamic_base_64_<mode>): Rename from
23216 tls_local_dynamic_base_64_<mode>.
23217 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
23218 Remove indirect function.
23219 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
23220 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
23221 instead of ix86_gen_tls_global_dynamic_64.
23222 Use gen_tls_local_dynamic_base_64 instead of
23223 ix86_gen_tls_local_dynamic_base_64.
23224 * config/i386/i386-options.c (ix86_option_override_internal):
23225 Do not initialize ix86_gen_tls_global_dynamic_64 and
23226 ix86_gen_tls_local_dynamic_base_64.
23227
23228 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23229
23230 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
23231 Rename from pro_epilogue_adjust_stack_<mode>_add.
23232 (@pro_epilogue_adjust_stack_sub_<mode>)
23233 Rename from pro_epilogue_adjust_stack_<mode>_sub.
23234 (@allocate_stack_worker_probe_<mode>):
23235 Rename from allocate_stack_worker_probe_<mode>.
23236 (allocate_stack): Use gen_allocate_stack_worker_probe.
23237 (probe_stack): Use gen_probe_stack_1.
23238 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
23239 (@adjust_stack_and_probe_<mode>): Rename from
23240 adjust_stack_and_probe<mode>.
23241 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
23242 (stack_protect_set): Use gen_stack_protect_set_1.
23243 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
23244 (stack_protect_test): Use gen_stack_protect_test_1.
23245 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
23246 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
23247 Remove indirect function.
23248 (*ix86_gen_adjust_stack_and_probe): Ditto.
23249 (*ix86_gen_probe_stack_range): Ditto.
23250 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
23251 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
23252 (ix86_adjust_stack_and_probe_stack_clash): Use
23253 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
23254 (ix86_adjust_stack_and_probe): Ditto.
23255 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
23256 of ix86_gen_probe_stack_range.
23257 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
23258 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
23259 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
23260 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
23261 CODE_FOR_stack_protect_test_{si,di}.
23262 * config/i386/i386-options.c (ix86_option_override_internal):
23263 Do not initialize ix86_gen_allocate_stack_worker,
23264 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
23265
23266 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
23267
23268 * doc/invoke.texi (Link Options): Many editorial changes around
23269 -flinker-output.
23270
23271 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23272
23273 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
23274 pre-Solaris 11 referene and most Studio compiler details.
23275
23276 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
23277
23278 PR target/90530
23279 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
23280 DImode to SImode in floating-point registers on 64-bit target.
23281 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
23282 register_operand in xmpyu patterns.
23283
23284 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23285
23286 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
23287 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
23288 OMP_CLAUSE__REDUCTEMP_.
23289 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23290 OMP_CLAUSE__CONDTEMP_.
23291 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
23292 * tree-pretty-print.c (dump_omp_clause): Likewise.
23293 * tree-nested.c (convert_nonlocal_omp_clauses,
23294 convert_local_omp_clauses): Likewise.
23295 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
23296 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
23297 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
23298 on OMP_FOR.
23299 (gimplify_omp_for): Warn and disable conditional modifier from
23300 lastprivate on loop iterators.
23301 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
23302 member.
23303 * omp-general.c (omp_extract_for_data): Initialize it.
23304 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
23305 member.
23306 (delete_omp_context): Delete it.
23307 (lower_lastprivate_conditional_clauses): New function.
23308 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
23309 handle lastprivate conditional clauses.
23310 (lower_reduction_clauses): Add CLIST argument, emit it into
23311 the critical section if any.
23312 (lower_omp_sections): Adjust lower_lastprivate_clauses and
23313 lower_reduction_clauses callers.
23314 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
23315 to lower_lastprivate_clauses.
23316 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
23317 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
23318 clist into a critical section if not emitted there already by
23319 lower_reduction_clauses.
23320 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
23321 callers.
23322 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
23323 conditional variables.
23324 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
23325 clause is present.
23326 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23327 expand_omp_for_static_chunk): Handle lastprivate conditional.
23328 (expand_omp_for): Handle fd.lastprivate_conditional like
23329 fd.have_reductemp.
23330
23331 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23332
23333 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
23334 kernel does not exit cleanly.
23335 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
23336
23337 2019-05-24 Jason Merrill <jason@redhat.com>
23338
23339 Revert:
23340 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23341
23342 2019-05-24 Richard Biener <rguenther@suse.de>
23343
23344 PR testsuite/90607
23345 * tree-loop-distribution.c (struct partition): Add location
23346 member.
23347 (partition_alloc): Initialize all fields.
23348 (generate_memset_builtin): Use the location recorded in the
23349 partition for the generated call.
23350 (generate_memcpy_builtin): Likewise.
23351 (classify_partition): Record the location of a single store
23352 as location for the partition.
23353
23354 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23355
23356 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
23357 for lo-part.
23358
23359 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
23360
23361 PR target/90588
23362 * common/config/aarch64/aarch64-common.c
23363 (aarch64_rewrite_selected_cpu): Change local temporary variable
23364 type from unsigned long to uint64_t.
23365 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
23366 aarch64_get_extension_string_for_isa_flags): Change declaration to
23367 match new definition by replacing unsigned long with uint64_t.
23368
23369 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23370
23371 PR target/90568
23372 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
23373 gen_attr_type just once instead of 4-7 times. Formatting fixes.
23374 Handle stack_protect_test_<mode> codegen similarly to corresponding
23375 sub instruction.
23376
23377 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
23378
23379 * config/i386/darwin.h: Reject -mfentry*.
23380 * doc/sourcebuild.texi: Document mfentry target support.
23381
23382 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23383
23384 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23385 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23386 false for PC-relative functions.
23387 (rs6000_output_function_prologue): Change called function name to
23388 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23389 name,1" for PC-relative functions.
23390 (rs6000_elf_declare_function_name): Change called function name to
23391 rs6000_global_entry_point_prologue_needed_p.
23392
23393 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23394
23395 PR target/90552
23396 * config/i386/i386.c (gen_rtx_cost):
23397 Use ix86_tune_cost instead of ix86_cost.
23398
23399 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23400 Michael Meissner <meissner@linux.ibm.com>
23401 Segher Boessenkool <segher@kernel.crashing.org>
23402
23403 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23404 OPTION_MASK_PCREL.
23405 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23406 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23407 (rs6000_fndecl_pcrel_p): Likewise.
23408 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23409 error if -mpcrel is requested without -mcpu=future.
23410 (rs6000_opt_masks): Add entry for pcrel.
23411 (rs6000_fndecl_pcrel_p): New function.
23412 (rs6000_pcrel_p): Likewise.
23413 * config/rs6000/rs6000.opt (mpcrel): New option.
23414 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23415
23416 2019-05-23 Jan Hubicka <jh@suse.cz>
23417 Martin Liska <mliska@suse.cz>
23418
23419 PR tree-optimization/90576
23420 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23421 poly_int_tree_p.
23422 (aliasing_component_refs_p): Fix three way size compare conditional;
23423 give up earlier in case we can not decide on equivalence.
23424
23425 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23426 Michael Meissner <meissner@linux.ibm.com>
23427 Segher Boessenkool <segher@kernel.crashing.org>
23428
23429 * config.gcc: Add future cpu.
23430 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
23431 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
23432 #define.
23433 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
23434 (RS6000_CPU): New instantiation for future cpu.
23435 * config/rs6000/rs6000-opts.h (enum processor_type): Add
23436 PROCESSOR_FUTURE.
23437 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23438 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
23439 * config/rs6000/rs6000-tables.opt: Regenerate.
23440 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
23441 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
23442 (rs6000_machine_from_flags): Handle future cpu.
23443 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
23444 PROCESSOR_POWER9 for now.
23445 (rs6000_adjust_cost): Likewise.
23446 (rs6000_issue_rate): Likewise.
23447 (rs6000_register_move_cost): Likewise.
23448 (rs6000_opt_masks): Add entry for future.
23449 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
23450 (MASK_FUTURE): New #define.
23451 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
23452 * config/rs6000/rs6000.opt (mfuture): New target option.
23453 * doc/invoke.texi (mcpu): Add future cpu.
23454
23455 2019-05-23 Martin Liska <mliska@suse.cz>
23456
23457 PR c++/90587
23458 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
23459 operation points to a temporary (pointed via tree_to_wide_ref)
23460 that is out of scope after the &.
23461
23462 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
23463
23464 PR c++/90592
23465 * doc/extend.texi (Function Names): Add missing word.
23466
23467 2019-05-23 Richard Biener <rguenther@suse.de>
23468
23469 PR tree-optimization/88440
23470 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
23471 at -O[2s]+.
23472 * tree-loop-distribution.c (generate_memset_builtin): Fold the
23473 generated call.
23474 (generate_memcpy_builtin): Likewise.
23475 (distribute_loop): Pass in whether to only distribute patterns.
23476 (prepare_perfect_loop_nest): Also allow size optimization.
23477 (pass_loop_distribution::execute): When optimizing a loop
23478 nest for size allow pattern replacement.
23479
23480 2019-05-23 Jakub Jelinek <jakub@redhat.com>
23481
23482 PR target/90568
23483 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
23484 of xor.
23485
23486 2019-05-23 Martin Liska <mliska@suse.cz>
23487
23488 PR sanitizer/90570
23489 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
23490 expression similarly to gimplify_decl_expr.
23491
23492 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23493
23494 * cse.c (cse_dump_path): s/dump_file/f.
23495
23496 2019-05-22 David Malcolm <dmalcolm@redhat.com>
23497
23498 PR c++/90462
23499 * diagnostic-format-json.cc: Include "selftest.h".
23500 (json_from_expanded_location): Only add "file" key for non-NULL
23501 file strings.
23502 (json_from_location_range): Don't add "start" and "finish"
23503 children if they are UNKNOWN_LOCATION.
23504 (selftest::test_unknown_location): New selftest.
23505 (selftest::test_bad_endpoints): New selftest.
23506 (selftest::diagnostic_format_json_cc_tests): New function.
23507 * json.cc (json::object::get): New function.
23508 (selftest::test_object_get): New selftest.
23509 (selftest::json_cc_tests): Call it.
23510 * json.h (json::object::get): New decl.
23511 * selftest-run-tests.c (selftest::run_tests): Call
23512 selftest::diagnostic_format_json_cc_tests.
23513 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
23514 decl.
23515
23516 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
23517 Andrew Stubbs <amd@codesourcery.com>
23518
23519 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
23520 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
23521 (kernel): Rename to...
23522 (main_kernel): ... this.
23523 (load_image): Load _init_array and _fini_array kernels.
23524 (run): Add argument for kernel to run.
23525 (main): Run init_array_kernel before main_kernel, and
23526 fini_array_kernel after.
23527 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
23528 amdgpu_hsa_kernel attribute on functions.
23529 (gcn_disable_constructors): Delete.
23530 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
23531 * config/gcn/crt0.c (size_t): Define.
23532 (_init_array, _fini_array): New.
23533 (__preinit_array_start, __preinit_array_end,
23534 __init_array_start, __init_array_end,
23535 __fini_array_start, __fini_array_end): Declare weak references.
23536
23537 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
23538
23539 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
23540
23541 2019-05-22 Jason Merrill <jason@redhat.com>
23542
23543 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23544
23545 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
23546
23547 PR target/88483
23548 * config/i386/i386-options.c (ix86_init_machine_status): Set
23549 stack_frame_required to true.
23550 * config/i386/i386.c (ix86_get_frame_size): New function.
23551 (ix86_frame_pointer_required): Replace get_frame_size with
23552 ix86_get_frame_size.
23553 (ix86_compute_frame_layout): Likewise.
23554 (ix86_find_max_used_stack_alignment): Changed to void. Set
23555 stack_frame_required.
23556 (ix86_finalize_stack_frame_flags): Always call
23557 ix86_find_max_used_stack_alignment. Replace get_frame_size with
23558 ix86_get_frame_size.
23559 * config/i386/i386.h (machine_function): Add stack_frame_required.
23560
23561 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23562
23563 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
23564
23565 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
23566
23567 * common/config/aarch64/aarch64-common.c
23568 (struct aarch64_option_extension, struct processor_name_to_arch,
23569 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23570 aarch64_contains_opt,
23571 aarch64_get_extension_string_for_isa_flags): Change type of
23572 variables storing flags to uint64_t.
23573 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23574 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23575 * config/aarch64/aarch64.c (struct processor,
23576 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23577 aarch64_validate_march, aarch64_override_options,
23578 aarch64_option_print, aarch64_handle_attr_isa_flags,
23579 aarch64_declare_function_name, aarch64_start_file): Make flag
23580 variables uint64_t.
23581 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23582 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23583 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23584 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23585 * config/aarch64/driver-aarch64.c
23586 (struct aarch64_arch_extension, struct aarch64_core_data,
23587 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23588 flag variables uint64_t.
23589 * doc/invoke.texi: Add documentation for new arguments.
23590
23591 2019-05-22 Richard Biener <rguenther@suse.de>
23592
23593 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23594 rewrite ...
23595 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23596
23597 2019-05-22 Martin Liska <mliska@suse.cz>
23598
23599 PR lto/90500
23600 * doc/extend.texi: Document the change.
23601
23602 2019-05-22 Richard Biener <rguenther@suse.de>
23603
23604 PR tree-optimization/90450
23605 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23606 (mem_ref_hasher::equal): Check it.
23607 (mem_ref_alloc): Initialize it.
23608 (gather_mem_refs_stmt): Set it.
23609
23610 2019-05-22 Richard Biener <rguenther@suse.de>
23611
23612 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23613 Add ABS_EXPR.
23614 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23615 as ABSU_EXPR.
23616
23617 2019-05-22 Alan Modra <amodra@gmail.com>
23618
23619 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23620 (ASM_CPU_SPEC): Conditionally add -many.
23621 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23622 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23623 (rs6000_file_start): ..extracted from here, and modified to
23624 test all ISA bits.
23625 (rs6000_output_function_prologue): Emit .machine as necessary.
23626
23627 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23628
23629 PR middle-end/90553
23630 * ira-lives.c (process_bb_node_lives): Consider defs
23631 for a call insn to be die before the call, not after.
23632
23633 * function.c (assign_parm_setup_block): Raise alignment of
23634 stacked parameter only for STRICT_ALIGNMENT targets.
23635
23636 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23637
23638 * config/rs6000/constraints.md (define_register_constraint "wz"):
23639 Delete.
23640 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23641 RS6000_CONSTRAINT_wz.
23642 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23643 (rs6000_init_hard_regno_mode_ok): Adjust.
23644 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23645 * doc/md.texi (Machine Constraints): Adjust.
23646
23647 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23648
23649 * config/rs6000/constraints.md (define_register_constraint "wl"):
23650 Delete.
23651 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23652 RS6000_CONSTRAINT_wl.
23653 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23654 (rs6000_init_hard_regno_mode_ok): Adjust.
23655 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23656 * doc/md.texi (Machine Constraints): Adjust.
23657
23658 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23659
23660 * config/rs6000/constraints.md (define_register_constraint "wm"):
23661 Delete.
23662 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23663 RS6000_CONSTRAINT_wm.
23664 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23665 (rs6000_init_hard_regno_mode_ok): Adjust.
23666 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23667 * doc/md.texi (Machine Constraints): Adjust.
23668
23669 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23670
23671 * config/rs6000/constraints.md (define_register_constraint "wk"):
23672 Delete.
23673 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23674 RS6000_CONSTRAINT_wk.
23675 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23676 (rs6000_init_hard_regno_mode_ok): Adjust.
23677 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23678 * doc/md.texi (Machine Constraints): Adjust.
23679
23680 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23681
23682 * config/rs6000/constraints.md (define_register_constraint "wj"):
23683 Delete.
23684 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23685 RS6000_CONSTRAINT_wj.
23686 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23687 (rs6000_init_hard_regno_mode_ok): Adjust.
23688 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23689 (VS_64dm): Delete.
23690 * config/rs6000/vsx.md: Ditto.
23691 * doc/md.texi (Machine Constraints): Adjust.
23692
23693 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23694
23695 * config/rs6000/constraints.md (define_register_constraint "wh"):
23696 Delete.
23697 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23698 RS6000_CONSTRAINT_wh.
23699 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23700 (rs6000_init_hard_regno_mode_ok): Adjust.
23701 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23702 * doc/md.texi (Machine Constraints): Adjust.
23703
23704 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23705
23706 PR target/90547
23707 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23708 Avoid calling gen_lowpart with CONST operand.
23709
23710 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23711
23712 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23713 field template_last_to_copy.
23714 (ssa_create_duplicates): Set it, and use it. Attempt to
23715 preserve more debug stmts.
23716
23717 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23718
23719 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23720 (signbit<mode>2): New expander
23721
23722 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23723
23724 PR bootstrap/87338
23725 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23726 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23727
23728 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23729
23730 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23731 %ebx and %ecx bafore calling cpuid with leaf 1 or
23732 non-constant leaf argument.
23733
23734 2019-05-21 Alan Modra <amodra@gmail.com>
23735
23736 PR target/90545
23737 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23738 power9 direct move cost.
23739
23740 2019-05-21 Richard Biener <rguenther@suse.de>
23741
23742 PR middle-end/90510
23743 * fold-const.c (fold_read_from_vector): New function.
23744 * fold-const.h (fold_read_from_vector): Declare.
23745 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23746 single-element insert permutations. Canonicalize selector
23747 further and fix issue with last commit.
23748
23749 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23750
23751 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23752 parameter with default value false to declaration.
23753 (split_edges_for_insertion): New inline function. Wrapper for
23754 split_critical_edges with for_edge_insertion_p = true.
23755 * tree-cfg.c (split_critical_edges): Don't split non-critical
23756 edges if for_edge_insertion_p is false. Fix whitespace.
23757 * tree-ssa-pre.c (pass_pre::execute): Call
23758 split_edges_for_insertion instead of split_critical_edges.
23759 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23760 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23761 (pass_data_sink_code): Update function name in the comment.
23762
23763 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23764
23765 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23766 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23767 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23768 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23769 positives.
23770
23771 2019-05-21 Martin Liska <mliska@suse.cz>
23772
23773 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23774 an extra newline.
23775 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23776 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23777 vec_lvsr.
23778 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23779 Quote a C type.
23780 (rs6000_function_arg): Likewise.
23781 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23782 (rs6000_expand_ternop_builtin): Use interval syntax.
23783 (get_element_number): Likewise.
23784 (altivec_expand_builtin): Likewise.
23785 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23786
23787 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23788
23789 PR c++/59813
23790 PR target/90418
23791 * function.h (struct function): Add calls_eh_return member.
23792 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23793 gimplifying __builtin_eh_return call.
23794 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23795 to cfun.
23796 (expand_call_inline): Or in src_cfun->calls_eh_return into
23797 dst_cfun->calls_eh_return.
23798 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23799 cfun->calls_eh_return.
23800 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23801 * lto-streamer-out.c (output_struct_function_base): Write
23802 calls_eh_return.
23803
23804 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23805
23806 PR rtl-optimization/43147
23807 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23808 IX86_BUILTIN_SHUFPD.
23809
23810 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23811
23812 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23813 (refs_may_alias_p_1): ... here; update stats.
23814 (refs_may_alias_p): Do not update stats here.
23815
23816 2019-05-20 Richard Biener <rguenther@suse.de>
23817
23818 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23819 doesn't produce pointers.
23820 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23821 the first operand points to.
23822
23823 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23824
23825 * tree-ssa-alias.c (compare_sizes): New function.
23826 (sompare_type_sizes): New function
23827 (aliasing_component_refs_p): Use it.
23828 (indirect_ref_may_alias_decl_p): Likewise.
23829
23830 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23831
23832 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23833
23834 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23835
23836 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23837 (LIBLSAN_EARLY_SPEC): Likewise.
23838 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23839
23840 2019-05-20 Martin Liska <mliska@suse.cz>
23841
23842 * config/i386/i386.c (ix86_libc_has_fast_function):
23843 Add ATTRIBUTE_UNUSED for the argument.
23844
23845 2019-05-20 Richard Biener <rguenther@suse.de>
23846
23847 * gimple-match-head.c: Include vec-perm-indices.h.
23848 * generic-match-head.c: Likewise.
23849 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23850 is included.
23851 * fold-const.c (fold_vec_perm): Export.
23852 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23853 (match.pd): ...here.
23854
23855 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23856
23857 * cfgloop.h (struct loop): Add simdlen member.
23858 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23859 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23860 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23861 as new argument to autovectorize_vector_sizes target hook. If
23862 loop->simdlen, pick up vector size where the vectorization factor
23863 is equal to loop->simd, and if there is none, fall back to the first
23864 successful one.
23865 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23866 caller.
23867 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23868 * omp-general.c (omp_max_vf): Likewise.
23869 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23870 * tree-vect-slp.c (vect_slp_bb): Likewise.
23871 * target.def (autovectorize_vector_sizes): Add ALL argument and
23872 document it.
23873 * doc/tm.texi: Adjust documentation.
23874 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23875 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23876 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23877 bool argument.
23878 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23879 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23880 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23881 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23882 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23883 preferred vector size is not 512-bit or 256-bit, just put those
23884 unpreferred ones last.
23885
23886 2019-05-20 Martin Liska <mliska@suse.cz>
23887
23888 * targhooks.c (default_libc_has_fast_function): New function.
23889 * targhooks.h (default_libc_has_fast_function): Likewise.
23890
23891 2019-05-20 Martin Liska <mliska@suse.cz>
23892
23893 PR middle-end/90263
23894 * builtins.c (expand_builtin_memory_copy_args): When having a
23895 target with fast mempcpy implementation do now use memcpy.
23896 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23897 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23898 * doc/tm.texi: Likewise.
23899 * doc/tm.texi.in: Likewise.
23900 * target.def:
23901 * expr.c (emit_block_move_hints): Add 2 new arguments.
23902 * expr.h (emit_block_move_hints): Bail out when libcall
23903 to memcpy would be used.
23904
23905 2019-05-20 Martin Liska <mliska@suse.cz>
23906
23907 * profile-count.c: Add vertical spacing in order
23908 to separate functions.
23909 * profile-count.h: Likewise.
23910
23911 2019-05-20 Martin Liska <mliska@suse.cz>
23912
23913 * profile-count.h: Do not use full qualified
23914 names if possible.
23915 * profile-count.c (profile_count::to_frequency): Likewise.
23916
23917 2019-05-20 Martin Liska <mliska@suse.cz>
23918
23919 * profile-count.h (enum profile_quality): Use capital letters
23920 for enum value names. Use the adjusted names.
23921 * profile-count.c: Use the adjusted names.
23922
23923 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23924
23925 * config/rs6000/constraints.md (define_register_constraint "wH"):
23926 Delete.
23927 (define_register_constraint "wI"): Delete.
23928 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23929 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23930 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23931 (rs6000_init_hard_regno_mode_ok): Adjust.
23932 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23933 resp. "d", or with "wa" as appropriate, all with "p8v".
23934 * config/rs6000/vsx.md: Ditto.
23935 * doc/md.texi (Machine Constraints): Adjust.
23936
23937 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23938
23939 * config/rs6000/constraints.md (define_register_constraint "wy"):
23940 Delete.
23941 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23942 RS6000_CONSTRAINT_wy.
23943 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23944 (rs6000_init_hard_regno_mode_ok): Adjust.
23945 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23946 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23947 (define_mode_attr Fisa): New.
23948 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23949 * doc/md.texi (Machine Constraints): Adjust.
23950
23951 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23952
23953 * config/rs6000/constraints.md (define_register_constraint "wu"):
23954 Delete.
23955 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23956 RS6000_CONSTRAINT_wu.
23957 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23958 (rs6000_init_hard_regno_mode_ok): Adjust.
23959 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23960 both with "p8v".
23961 (define_mode_attr Fa): Delete.
23962 * config/rs6000/vsx.md: Ditto.
23963 * doc/md.texi (Machine Constraints): Adjust.
23964
23965 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23966
23967 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23968 Delete.
23969 (define_register_constraint "wK"): Delete.
23970 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23971 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23972 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23973 (rs6000_init_hard_regno_mode_ok): Adjust.
23974 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23975 Replace "wK" constraint by "wH" with "p9v".
23976 * config/rs6000/vsx.md: Ditto.
23977 * doc/md.texi (Machine Constraints): Adjust.
23978
23979 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23980
23981 * config/rs6000/constraints.md (define_register_constraint "wb"):
23982 Delete.
23983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23984 RS6000_CONSTRAINT_wb.
23985 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23986 (rs6000_init_hard_regno_mode_ok): Adjust.
23987 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23988 * config/rs6000/vsx.md: Ditto.
23989 * doc/md.texi (Machine Constraints): Adjust.
23990
23991 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23992
23993 * config/rs6000/constraints.md (define_register_constraint "wo"):
23994 Delete.
23995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23996 RS6000_CONSTRAINT_wo.
23997 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23998 (rs6000_init_hard_regno_mode_ok): Adjust.
23999 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
24000 * config/rs6000/altivec.md: Ditto.
24001 * doc/md.texi (Machine Constraints): Adjust.
24002
24003 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24004
24005 * config/darwin-c.c (darwin_register_objc_includes): Do not
24006 prepend the sysroot when building gnu-runtime header search
24007 paths.
24008
24009 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24010
24011 * config/darwin.c (darwin_file_end): Use switch_to_section ()
24012 instead of direct output of the asm.
24013
24014 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24015
24016 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24017 argument to be type bool (was int before).
24018 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24019 at first use. Use type bool for some variables. Fix a theoretical
24020 eh_return bug for svr4.
24021
24022 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24023
24024 * config/rs6000/rs6000.md (isa): New attribute.
24025 (enabled): New attribute.
24026
24027 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24028
24029 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24030 assemble_start_function and assemble_end_function.
24031
24032 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24033
24034 PR middle-end/89433
24035 * omp-general.c (oacc_verify_routine_clauses): Change formal
24036 parameters. Add checking if already marked with an OpenACC
24037 'routine' directive. Adjust all users.
24038
24039 PR middle-end/89433
24040 * omp-general.c (oacc_build_routine_dims): Move some of its
24041 processing into...
24042 (oacc_verify_routine_clauses): ... this new function.
24043 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24044
24045 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24046
24047 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24048 formating of picbase labels to match other ports.
24049
24050 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24051
24052 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24053 in the generated code.
24054
24055 2019-05-16 Martin Sebor <msebor@redhat.com>
24056
24057 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24058 identifiers, keywords, operators, and types in diagnostics. Correct
24059 quoting, spelling, and sentence capitalization issues.
24060 (expand_builtin_atomic_is_lock_free): Same.
24061 (fold_builtin_next_arg): Same.
24062 * cfgexpand.c (expand_one_var): Same.
24063 (tree_conflicts_with_clobbers_p): Same.
24064 (expand_asm_stmt): Same.
24065 (verify_loop_structure): Same.
24066 * cgraphunit.c (process_function_and_variable_attributes): Same.
24067 * collect-utils.c (collect_execute): Same.
24068 * collect2.c (maybe_run_lto_and_relink): Same.
24069 (is_lto_object_file): Same.
24070 (scan_prog_file): Same.
24071 * convert.c (convert_to_real_1): Same.
24072 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24073 * except.c (verify_eh_tree): Same.
24074 * gcc.c (execute): Same.
24075 (eval_spec_function): Same.
24076 (run_attempt): Same.
24077 (driver::set_up_specs): Same.
24078 (compare_debug_auxbase_opt_spec_function): Same.
24079 * gcov-tool.c (unlink_gcda_file): Same.
24080 (do_merge): Same.
24081 (do_rewrite): Same.
24082 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24083 * gimplify.c (gimplify_asm_expr): Same.
24084 (gimplify_adjust_omp_clauses): Same.
24085 * hsa-gen.c (gen_hsa_addr_insns): Same.
24086 (gen_hsa_insns_for_load): Same.
24087 (gen_hsa_cmp_insn_from_gimple): Same.
24088 (gen_hsa_insns_for_operation_assignment): Same.
24089 (gen_get_level): Same.
24090 (gen_hsa_alloca): Same.
24091 (omp_simple_builtin::generate): Same.
24092 (gen_hsa_atomic_for_builtin): Same.
24093 (gen_hsa_insns_for_call): Same.
24094 * input.c (dump_location_info): Same.
24095 * ipa-devirt.c (compare_virtual_tables): Same.
24096 * ira.c (ira_setup_eliminable_regset): Same.
24097 * lra-assigns.c (lra_assign): Same.
24098 * lra-constraints.c (lra_constraints): Same.
24099 * lto-streamer-in.c (lto_input_mode_table): Same.
24100 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24101 (merge_and_complain): Same.
24102 (compile_offload_image): Same.
24103 (compile_images_for_offload_targets): Same.
24104 (debug_objcopy): Same.
24105 (run_gcc): Same.
24106 (main): Same.
24107 * opts.c (print_specific_help): Same.
24108 (parse_no_sanitize_attribute): Same.
24109 (print_help): Same.
24110 (handle_param): Same.
24111 * plugin.c (add_new_plugin): Same.
24112 (parse_plugin_arg_opt): Same.
24113 (try_init_one_plugin): Same.
24114 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24115 operators, and types in diagnostics. Correct quoting and spelling
24116 issues.
24117 * read-rtl-function.c (parse_edge_flag_token): Same.
24118 (function_reader::parse_enum_value): Same.
24119 * reg-stack.c (check_asm_stack_operands): Same.
24120 * regcprop.c (validate_value_data): Same.
24121 * sched-rgn.c (make_pass_sched_fusion): Same.
24122 * stmt.c (check_unique_operand_names): Same.
24123 * targhooks.c (default_target_option_pragma_parse): Same.
24124 * tlink.c (recompile_files): Same.
24125 * toplev.c (process_options): Same.
24126 (do_compile): Same.
24127 * trans-mem.c (diagnose_tm_1): Same.
24128 (ipa_tm_scan_irr_block): Same.
24129 (ipa_tm_diagnose_transaction): Same.
24130 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24131 format a tree code name in a diagnostic.
24132 (verify_types_in_gimple_min_lval): Same.
24133 (verify_types_in_gimple_reference): Same.
24134 (verify_gimple_call): Same.
24135 (verify_gimple_assign_unary): Same.
24136 (verify_gimple_assign_binary): Same.
24137 (verify_gimple_assign_ternary): Same.
24138 (verify_gimple_assign_single): Same.
24139 (verify_gimple_switch): Same.
24140 (verify_gimple_label): Same.
24141 (verify_gimple_phi): Same.
24142 (verify_gimple_in_seq): Same.
24143 (verify_eh_throw_stmt_node): Same.
24144 (collect_subblocks): Same.
24145 (gimple_verify_flow_info): Same.
24146 (do_warn_unused_result): Same.
24147 * tree-inline.c (expand_call_inline): Same.
24148 * tree-into-ssa.c (update_ssa): Same.
24149 * tree.c (tree_int_cst_elt_check_failed): Same.
24150 (tree_vec_elt_check_failed): Same.
24151 (omp_clause_operand_check_failed): Same.
24152 (verify_type_variant): Same.
24153 (verify_type): Same.
24154 * value-prof.c (verify_histograms): Same.
24155 * varasm.c (assemble_start_function): Same.
24156
24157 2019-05-16 Martin Sebor <msebor@redhat.com>
24158
24159 * config/i386/i386-expand.c (get_element_number): Quote keywords
24160 and other internal names in diagnostics. Adjust other diagnostic
24161 formatting issues noted by -Wformat-diag.
24162 * config/i386/i386-features.c
24163 (ix86_mangle_function_version_assembler_name): Same.
24164 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24165 * config/i386/i386.c (ix86_function_type_abi): Same.
24166 (ix86_function_ms_hook_prologue): Same.
24167 (classify_argument): Same.
24168 (ix86_expand_prologue): Same.
24169 (ix86_md_asm_adjust): Same.
24170 (ix86_memmodel_check): Same.
24171
24172 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24173
24174 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24175 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24176 and fpxx modes.
24177
24178 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24179
24180 PR target/90497
24181 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24182 intrinsics without SSE/SSE2/SSSE3.
24183 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24184 check.
24185 (*mmx_uavgv8qi3): Likewise.
24186
24187 2019-05-17 Richard Biener <rguenther@suse.de>
24188
24189 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24190 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24191
24192 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24193
24194 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24195 vec_sldw insn pattern.
24196
24197 2019-05-17 Richard Biener <rguenther@suse.de>
24198
24199 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24200
24201 2019-05-17 Martin Liska <mliska@suse.cz>
24202
24203 PR driver/90496
24204 * toplev.c (output_stack_usage): With LTO and sanitizer it
24205 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24206 has no file location.
24207
24208 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24209
24210 PR c++/90484
24211 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24212 sz0 is equal to sz1, instead return false in that case.
24213
24214 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
24215 has non-constant expression, force sctx.lane and use two
24216 argument IFN_GOMP_SIMD_LANE instead of single argument.
24217 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
24218 two argument IFN_GOMP_SIMD_LANE without lhs.
24219 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
24220 member.
24221 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
24222 Define.
24223 (LOOP_REQUIRES_VERSIONING): Or in
24224 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
24225 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24226 simd_if_cond.
24227 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
24228 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
24229 from simd if clause if needed.
24230
24231 2019-05-16 Richard Biener <rguenther@suse.de>
24232
24233 * tree-affine.c (expr_to_aff_combination): New function split
24234 out from...
24235 (tree_to_aff_combination): ... here.
24236 (aff_combination_expand): Avoid building a GENERIC tree.
24237
24238 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
24239
24240 * cgraphunit.c (cgraph_node::expand_thunk): Remove
24241 assemble_start_function and assemble_end_function calls.
24242 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
24243 assemble_start_function and assemble_end_function.
24244 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
24245 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
24246 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
24247 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
24248 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
24249 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
24250 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
24251 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
24252 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24253 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24254 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
24255 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
24256 Likewise.
24257 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
24258 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
24259 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
24260 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
24261 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24262 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24263 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
24264 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
24265 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24266 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24267 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24268 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24269 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
24270 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
24271 Likewise.
24272 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24273 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24274 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
24275
24276 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
24277
24278 * tree-ssa-alias.c (alias_stats): Add
24279 aliasing_component_refs_p_may_alias and
24280 aliasing_component_refs_p_no_alias.
24281 (dump_alias_stats): Print aliasing_component_refs_p stats.
24282 (aliasing_component_refs_p): Update stats.
24283
24284 2019-05-16 Martin Liska <mliska@suse.cz>
24285
24286 PR lto/90500
24287 * multiple_target.c (expand_target_clones): Do not allow
24288 target_clones being used with a symbol that is an alias.
24289
24290 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
24291
24292 PR tree-optimization/90394
24293 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
24294 positives rather than ICE for cases where (code2 == NE_EXPR
24295 && code1 == BIT_AND_EXPR).
24296
24297 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24298
24299 PR fortran/90329
24300 * tree-core.h (struct tree_decl_common): Document
24301 decl_nonshareable_flag for PARM_DECLs.
24302 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
24303 * calls.c (expand_call): Don't try tail call if caller
24304 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
24305 passed on the stack and callee needs to pass any arguments on the
24306 stack.
24307 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24308 else if instead of series of mutually exclusive ifs. Handle
24309 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
24310 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24311
24312 * lto-streamer.h (LTO_major_version): Bump to 9.
24313
24314 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
24315
24316 PR tree-optimization/90106
24317 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
24318 new parameter as new internal function call, also move it to new
24319 basic block.
24320 (use_internal_fn): Pass internal function call to
24321 shrink_wrap_one_built_in_call_with_conds.
24322
24323 2019-05-15 Jakub Jelinek <jakub@redhat.com>
24324
24325 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
24326 max_vf to 1.
24327 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
24328 safelen_int and set loop->dont_vectorize.
24329
24330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24331
24332 PR target/89021
24333 * config/i386/i386-builtin.def: Enable MMX intrinsics with
24334 SSE/SSE2/SSSE3.
24335 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24336 Likewise.
24337 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
24338 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
24339 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
24340 is defined.
24341
24342 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24343
24344 PR target/89021
24345 * config/i386/mmx.md (*vec_dupv2sf): Changed to
24346 define_insn_and_split to support SSE emulation.
24347 (*vec_extractv2sf_0): Likewise.
24348 (*vec_extractv2sf_1): Likewise.
24349 (*vec_extractv2si_0): Likewise.
24350 (*vec_extractv2si_1): Likewise.
24351 (*vec_extractv2si_zext_mem): Likewise.
24352 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
24353 (vec_extractv2sf_1 splitter): Likewise.
24354 (vec_extractv2sfsf): Likewise.
24355 (vec_setv2si): Likewise.
24356 (vec_extractv2si_1 splitter): Likewise.
24357 (vec_extractv2sisi): Likewise.
24358 (vec_setv4hi): Likewise.
24359 (vec_extractv4hihi): Likewise.
24360 (vec_setv8qi): Likewise.
24361 (vec_extractv8qiqi): Likewise.
24362 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24363 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
24364 (vec_extractv2sisi): Likewise.
24365 (vec_extractv4hihi): Likewise.
24366 (vec_extractv8qiqi): Likewise.
24367 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24368 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
24369 (vec_initv2sisi): Likewise.
24370 (vec_initv4hihi): Likewise.
24371 (vec_initv8qiqi): Likewise.
24372 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
24373 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
24374 (vec_setv4hi): Likewise.
24375 (vec_setv8qi): Likewise.
24376
24377 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24378
24379 PR target/89021
24380 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
24381 TARGET_MMX_WITH_SSE.
24382 (MMXMODE:*mov<mode>_internal): Likewise.
24383 (MMXMODE:movmisalign<mode>): Likewise.
24384
24385 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24386
24387 PR target/89021
24388 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24389 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24390 (sse2_cvtpd2pi): Ditto.
24391 (sse2_cvttpd2pi): Ditto.
24392 (*vec_concatv2sf_sse4_1): Ditto.
24393 (*vec_concatv2sf_sse): Ditto.
24394 (*vec_concatv2si_sse4_1): Ditto.
24395 (*vec_concatv2si): Ditto.
24396 (*vec_concatv4si_0): Ditto.
24397 (*vec_concatv2di_0): Ditto.
24398
24399 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24400
24401 PR target/89021
24402 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24403
24404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24405
24406 PR target/89021
24407 * config/i386/sse.md (ssse3_palignrdi): Changed to
24408 define_insn_and_split to support SSE emulation.
24409
24410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24411
24412 PR target/89021
24413 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24414
24415 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24416
24417 PR target/89021
24418 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24419 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24420 SSE emulation.
24421
24422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24423
24424 PR target/89021
24425 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24426 or TARGET_MMX_WITH_SSE.
24427 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
24428
24429 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24430
24431 PR target/89021
24432 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
24433
24434 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24435
24436 PR target/89021
24437 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
24438 Changed to define_insn_and_split to support SSE emulation.
24439
24440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24441
24442 PR target/89021
24443 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
24444 Changed to define_insn_and_split to support SSE emulation.
24445
24446 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24447
24448 PR target/89021
24449 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
24450 (*mmx_<emms>): This.
24451 (mmx_<emms>): New expander.
24452
24453 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24454
24455 PR target/89021
24456 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
24457 support.
24458 (*sse2_umulv1siv1di3): Add SSE2 emulation.
24459
24460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24461
24462 PR target/89021
24463 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
24464
24465 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24466
24467 PR target/89021
24468 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
24469
24470 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24471
24472 PR target/89021
24473 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
24474 TARGET_MMX_WITH_SSE.
24475 (*mmx_uavgv4hi3): Add SSE emulation.
24476
24477 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24478
24479 PR target/89021
24480 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
24481 and TARGET_MMX_WITH_SSE.
24482 (*mmx_uavgv8qi3): Add SSE emulation.
24483
24484 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24485
24486 PR target/89021
24487 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
24488 maskmovdqu for __MMX_WITH_SSE__.
24489
24490 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24491
24492 PR target/89021
24493 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
24494 TARGET_MMX and TARGET_MMX_WITH_SSE.
24495 (*mmx_umulv4hi3_highpart): Add SSE emulation.
24496
24497 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24498
24499 PR target/89021
24500 * config/i386/mmx.md (mmx_pmovmskb): Changed to
24501 define_insn_and_split to support SSE emulation.
24502
24503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24504
24505 PR target/89021
24506 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
24507 and TARGET_MMX_WITH_SSE.
24508 (mmx_<code>v8qi3): Likewise.
24509 (smaxmin:<code>v4hi3): New.
24510 (umaxmin:<code>v8qi3): Likewise.
24511 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
24512 (umaxmin:*mmx_<code>v8qi3): Likewise.
24513
24514 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24515
24516 PR target/89021
24517 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
24518 TARGET_MMX_WITH_SSE.
24519 (*mmx_pinsrw): Add SSE emulation.
24520
24521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24522
24523 PR target/89021
24524 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
24525
24526 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24527
24528 PR target/89021
24529 * config/i386/sse.md (sse_cvtpi2ps): Changed to
24530 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24531 SSE emulation.
24532
24533 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24534
24535 PR target/89021
24536 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
24537 (sse_cvttps2pi): Likewise.
24538
24539 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24540
24541 PR target/89021
24542 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
24543 TARGET_MMX_WITH_SSE.
24544 (mmx_pshufw_1): Add SSE emulation.
24545 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
24546 TARGET_MMX_WITH_SSE to support SSE emulation.
24547
24548 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24549
24550 PR target/89021
24551 * config/i386/constraints.md (Yw): New constraint.
24552 * config/i386/mmx.md (*vec_dupv2si): Changed to
24553 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
24554 support SSE emulation.
24555
24556 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24557
24558 PR target/89021
24559 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
24560 TARGET_MMX_WITH_SSE.
24561 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24562 support.
24563 (mmx_gt<mode>3): Likewise.
24564
24565 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24566
24567 PR target/89021
24568 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24569 TARGET_MMX_WITH_SSE. Add SSE support.
24570
24571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24572
24573 PR target/89021
24574 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24575 TARGET_MMX_WITH_SSE.
24576 (any_logic:<code><mode>3): New.
24577 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24578 Add SSE support.
24579
24580 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24581
24582 PR target/89021
24583 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24584 TARGET_MMX_WITH_SSE. Add SSE emulation.
24585 (mmx_<shift_insn><mode>3): Likewise.
24586 (ashr<mode>3): New.
24587 (<shift_insn><mode>3): Likewise.
24588
24589 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24590
24591 PR target/89021
24592 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24593 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24594
24595 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24596
24597 PR target/89021
24598 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24599 TARGET_MMX_WITH_SSE.
24600 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24601 SSE support.
24602
24603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24604
24605 PR target/89021
24606 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24607 TARGET_MMX_WITH_SSE.
24608 (mulv4hi3): New.
24609 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24610 support.
24611
24612 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24613
24614 PR target/89021
24615 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24616 (plusminus:mmx_<plusminus_insn><mode>3): Check
24617 TARGET_MMX_WITH_SSE.
24618 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24619 (<plusminus_insn><mode>3): New.
24620 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24621 (*mmx_<plusminus_insn><mode>3): Likewise.
24622
24623 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24624
24625 PR target/89021
24626 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24627 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24628 prototype.
24629 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24630 define_insn_and_split to support SSE emulation.
24631 (mmx_punpcklbw): Likewise.
24632 (mmx_punpckhwd): Likewise.
24633 (mmx_punpcklwd): Likewise.
24634 (mmx_punpckhdq): Likewise.
24635 (mmx_punpckldq): Likewise.
24636
24637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24638 Uros Bizjak <ubizjak@gmail.com>
24639
24640 PR target/89021
24641 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24642 New function.
24643 (ix86_split_mmx_pack): Likewise.
24644 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24645 New prototype.
24646 (ix86_split_mmx_pack): Likewise.
24647 * config/i386/i386.md (mmx_isa): New.
24648 (enabled): Also check mmx_isa.
24649 * config/i386/mmx.md (any_s_truncate): New code iterator.
24650 (s_trunsuffix): New code attr.
24651 (mmx_packsswb): Removed.
24652 (mmx_packssdw): Likewise.
24653 (mmx_packuswb): Likewise.
24654 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24655 MMX packsswb/packuswb with SSE2.
24656 (mmx_packssdw): Likewise.
24657 * config/i386/predicates.md (register_mmxmem_operand): New.
24658
24659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24660
24661 PR target/89021
24662 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24663 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24664 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24665 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24666 (ix86_vector_mode_supported_p): Likewise.
24667 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24668
24669 2019-05-15 Martin Liska <mliska@suse.cz>
24670
24671 PR middle-end/90478
24672 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24673 Check for overflow.
24674
24675 2019-05-15 Richard Biener <rguenther@suse.de>
24676
24677 * tree-into-ssa.c (pass_build_ssa::execute): Run
24678 update_address_taken before going into SSA.
24679
24680 2019-05-15 Richard Biener <rguenther@suse.de>
24681
24682 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24683 as __BIT_FIELD_REF with type with -gimple.
24684
24685 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24686
24687 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24688 semantically equivalent branches (left over after prior refactorings).
24689
24690 2019-05-15 Richard Biener <rguenther@suse.de>
24691
24692 PR tree-optimization/88828
24693 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24694 bogus check.
24695
24696 2019-05-14 Richard Biener <rguenther@suse.de>
24697
24698 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24699 as __VIEW_CONVERT with -gimple.
24700
24701 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24702
24703 PR target/82920
24704 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24705 Darwin.
24706
24707 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24708
24709 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24710 define_split to become a define_insn_and_split.
24711
24712 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24713
24714 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24715 arguments.
24716 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24717 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24718 (sibcall_epilogue): Adjust.
24719 (epilogue): Adjust.
24720
24721 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24722
24723 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24724 to unsupported ones.
24725 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24726 * config.host: Likewise.
24727 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24728 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24729 __svr4__]: Remove "brand" fallback.
24730 [!KSTAT_DATA_STRING]: Remove.
24731 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24732 to *-*-solaris2*.
24733 (comdat_group): Likewise.
24734 (set_have_as_tls): Likewise.
24735 (gcc_cv_target_dl_iterate_phdr): Likewise.
24736 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24737 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24738 * configure: Regenerate.
24739 * doc/install.texi: Simplify Solaris target triplets.
24740 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24741 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24742 Remove Solaris 10 references.
24743 Remove obsolete Solaris bug reference.
24744 (Specific, sparc-sun-solaris2.10): Remove.
24745
24746 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24747
24748 * config/i386/i386.md (any_div): New code iterator.
24749 (paired_mod): New code attribute.
24750 (sgnprefix): Handle DIV and UDIV RTXes.
24751 (u): Ditto.
24752 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24753 and udivmod<mode>4 patterns using any_div code iterator.
24754 (divmod splitters): Macroize splitters using any_div code iterator.
24755 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24756 (*udivmodsi4_pow2_zext_2): Ditto.
24757 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24758 and *udivmod<mode>4_noext patterns using any_div code iterator.
24759 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24760 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24761 patterns using any_div code iterator.
24762 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24763 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24764 patterns using any_div code iterator.
24765 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24766 udivmodhiqi3 patterns using any_extend code iterator.
24767
24768 2019-05-14 Richard Biener <rguenther@suse.de>
24769 H.J. Lu <hongjiu.lu@intel.com>
24770
24771 PR tree-optimization/88828
24772 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24773 permuting in a single non-constant element not extracted
24774 from a vector.
24775
24776 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24777
24778 * internal-fn.def (SIGNBIT): New.
24779 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24780 defined.
24781 (signbitv4sf2): Likewise.
24782
24783 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24784
24785 PR target/90357
24786 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24787 next insn when the SRC reg is dead.
24788
24789 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24790
24791 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24792 (alloc_cand_and_find_basis): Ditto.
24793 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24794 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24795 (create_add_imm_cand, slsr_process_cast): Ditto.
24796 (slsr_process_copy, replace_mult_candidate): Ditto.
24797 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24798 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24799 (pass_strength_reduction::execute): Init the first NULL element.
24800
24801 2019-05-13 Nathan Sidwell <nathan@acm.org>
24802
24803 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24804 (run_attempt): Reformat line break.
24805
24806 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24807
24808 PR target/90418
24809 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24810 data registers in sibcall epilogues.
24811 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24812
24813 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24814
24815 PR target/89221
24816 * configure.ac (--enable-frame-pointer):
24817 Disable by default for cygwin and mingw.
24818 * configure: Regenerate.
24819
24820 2019-05-13 Nathan Sidwell <nathan@acm.org>
24821
24822 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24823 piece of code.
24824 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24825 (gen_member_die): Move abstract origin check earlier. Only VARs
24826 can be static_inline_p. Simplify splicing control flow.
24827
24828 2019-05-13 Richard Biener <rguenther@suse.de>
24829
24830 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24831 VIEW_CONVERT_EXPR.
24832 (vect_build_slp_tree_1): Likewise.
24833
24834 2019-05-13 Richard Biener <rguenther@suse.de>
24835
24836 PR tree-optimization/90402
24837 * tree-if-conv.c (tree_if_conversion): Value number only
24838 the loop body by making the latch an exit of the region
24839 as well.
24840 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24841 processing PHIs.
24842 (do_rpo_vn): Deal with multiple edges into the entry block
24843 that are not backedges inside the region by skipping PHIs
24844 of the entry block.
24845
24846 2019-05-13 Richard Biener <rguenther@suse.de>
24847
24848 PR tree-optimization/90316
24849 * tree-ssa-pre.c (insert_aux): Fold into ...
24850 (insert): ... this function. Use a RPO walk to reduce the
24851 number of required iterations.
24852
24853 2019-05-13 Martin Liska <mliska@suse.cz>
24854
24855 PR tree-optimization/90416
24856 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24857 string instead of passing the second part as va_arg argument.
24858
24859 2019-05-13 Martin Liska <mliska@suse.cz>
24860
24861 PR gcov-profile/90380
24862 * gcov.c (handle_cycle): Do not support zero cycle count,
24863 it should not be possible.
24864 (path_contains_zero_cycle_arc): New function.
24865 (circuit): Ignore zero cycle arc counts.
24866
24867 2019-05-13 Martin Liska <mliska@suse.cz>
24868
24869 PR gcov-profile/90380
24870 * gcov.c (enum loop_type): Remove the enum and
24871 the operator.
24872 (handle_cycle): Assert that we should not reach
24873 a negative count.
24874 (circuit): Use loop_found instead of a tri-state loop_type.
24875 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24876 happen.
24877
24878 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24879
24880 PR target/82920
24881 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24882 (ix86_output_indirect_branch_via_reg): Use output mechanism
24883 accounting for __USER_LABEL_PREFIX__.
24884 (ix86_output_indirect_branch_via_push): Likewise.
24885 (ix86_output_function_return): Likewise.
24886 (ix86_output_indirect_function_return): Likewise.
24887
24888 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24889
24890 * doc/md.texi: Document use of code attributes in rtx patterns.
24891 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24892 * read-rtl.c (find_code): Split out search loops into...
24893 (maybe_find_code): ...this new function.
24894 (check_code_iterator): Make the error message more informative.
24895 (check_code_attribute): New function.
24896 (rtx_reader::rtx_alloc_for_name): Likewise.
24897 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24898 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24899 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24900 <max_opp> directly as an rtx code instead of via a match_operator.
24901 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24902 (<su>abd<mode>_3): Update accordingly.
24903
24904 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24905
24906 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24907 is given, print the state of the EH "save world" computation for
24908 Darwin.
24909
24910 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24911
24912 PR c++/59813
24913 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24914 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24915
24916 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24917
24918 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24919 Use pinsrd for TARGET_SSE4_1.
24920 * config/i386/sse.md (movdi_to_sse): Ditto.
24921
24922 2019-05-10 Richard Biener <rguenther@suse.de>
24923
24924 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24925 (do_rpo_vn): Initialize next_value_id.
24926
24927 2019-05-10 Martin Liska <mliska@suse.cz>
24928
24929 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24930 Fix plural form.
24931
24932 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24933
24934 PR tree-optimization/90385
24935 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24936 arguments of the exit phis.
24937
24938 PR c++/90383
24939 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24940 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24941 id->do_not_fold.
24942 (copy_tree_body_r): Likewise.
24943 (copy_fn): Set id.do_not_fold to true.
24944
24945 2019-05-10 Martin Liska <mliska@suse.cz>
24946
24947 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24948 Reapply changes from r269790.
24949
24950 2019-05-10 Martin Liska <mliska@suse.cz>
24951
24952 PR middle-end/90340
24953 * doc/invoke.texi: New params.
24954 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24955 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24956 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24957 Use it.
24958 * tree-switch-conversion.h (struct jump_table_cluster):
24959 Likewise.
24960
24961 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24962
24963 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24964
24965 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24966
24967 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24968
24969 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24970
24971 PR rtl-optimization/88879
24972 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24973
24974 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24975
24976 PR target/90405
24977 * config/arm/arm.c (callee_saved_reg_p): Move before
24978 thumb_find_work_register.
24979 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24980 thumb_find_work_register. Only call df_get_live_out once.
24981 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24982 (thumb_find_work_register): Use
24983 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24984 algorithms to locate a spare call clobbered reg.
24985
24986 2019-05-09 Martin Liska <mliska@suse.cz>
24987
24988 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24989 and MAX_EXPR in GIMPLE FE format.
24990
24991 2019-05-09 Martin Liska <mliska@suse.cz>
24992
24993 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24994 * gimple-pretty-print.c (dump_gimple_bb_header):
24995 Dump BB count.
24996 (pp_cfg_jump): Dump edge probability.
24997 * profile-count.c (profile_quality_as_string): Simplify
24998 with a static array.
24999 (parse_profile_quality): New function.
25000 (profile_count::dump): Simplify with a static array.
25001 (profile_count::from_gcov_type): Add new argument.
25002 * profile-count.h (parse_profile_quality): Likewise.
25003 * predict.h (set_hot_bb_threshold): New.
25004 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25005 New param.
25006 * predict.c (get_hot_bb_threshold): Set from the new param.
25007 (set_hot_bb_threshold): New.
25008
25009 2019-05-09 Richard Biener <rguenther@suse.de>
25010
25011 PR tree-optimization/90395
25012 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
25013 rewrite vector stores that throw internally.
25014
25015 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25016
25017 * cif-code.def (CHKP): Remove.
25018
25019 PR target/89221
25020 * configure.ac (--enable-frame-pointer): Disable by default for
25021 GNU systems.
25022 * configure: Regenerate.
25023
25024 2019-05-09 Alan Modra <amodra@gmail.com>
25025
25026 PR target/89271
25027 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25028 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25029 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25030 cost for general <-> vsx when direct moves are available.
25031 Cost union classes at minimal cost for any reg in the class.
25032 Correct calculation for moves between vsx, float, and altivec.
25033 Don't return a low cost for moves between special regs. Don't
25034 use hard coded register numbers.
25035 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25036 (rs6000_ira_change_pseudo_allocno_class): New function.
25037 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25038 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25039 alternatives.
25040 (movsi_internal1): Don't disparage vector alternatives.
25041 (mov<mode>_internal): Likewise, excepting alternative that
25042 will be split.
25043 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25044 we <- b alternative.
25045
25046 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25047
25048 PR c++/59813
25049 PR tree-optimization/89060
25050 * tree-ssa-live.h (live_vars_map): New typedef.
25051 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25052 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25053 (struct compute_live_vars_data): New type.
25054 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25055 live_vars_at_stmt, destroy_live_vars): New functions.
25056 * tree-tailcall.c: Include tree-ssa-live.h.
25057 (live_vars, live_vars_vec): New global variables.
25058 (find_tail_calls): Perform variable life analysis before punting.
25059 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25060 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25061 member.
25062 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25063 Perform variable life analysis to select variables that really need
25064 clobbers added.
25065 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25066 instead set id->eh_landing_pad_dest and assert it is the same.
25067 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25068
25069 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25070 Richard Earnshaw <rearnsha@arm.com>
25071
25072 PR target/88167
25073 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25074 function.
25075 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25076 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25077 register if both the epilogue and prologue can use call-clobbered
25078 regs.
25079 (thumb1_unexpanded_epilogue): Use
25080 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25081 picking temporaries for restoring high regs to match that of the
25082 prologue where possible.
25083 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25084 the list of work registers. Detect if the return address is still live
25085 at the end of the prologue and avoid using it for a work register if so.
25086 If the return address is not live, add LR to the list of pushable regs
25087 after the first pass.
25088
25089 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25090
25091 PR tree-optimization/90078
25092 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25093 (INFTY): Increase the value for infinite cost.
25094 (struct comp_cost): Promote type of members to int64_t.
25095 (infinite_cost): Don't set complexity in initialization.
25096 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25097 overflows to infinite_cost.
25098 (adjust_setup_cost): Promote type of parameter and cost computation
25099 to int64_t.
25100 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25101 int64_t.
25102 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25103 cost computation to int64_t.
25104 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25105 int64_t's format specifier in dump.
25106
25107 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25108
25109 PR tree-optimization/90240
25110 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25111 with respect to scaling factor pre-computed for each basic block.
25112 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25113 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25114 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25115 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25116 live range for array of loop's basic blocks. Cleanup aux field of
25117 loop's basic blocks.
25118
25119 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25120
25121 PR tree-optimization/90356
25122 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25123
25124 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25125
25126 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25127 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25128 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25129 (ix86_handle_option): Handle -mavx512bf16.
25130 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25131 to extra_headers.
25132 * config/i386/avx512bf16vlintrin.h: New.
25133 * config/i386/avx512bf16intrin.h: New.
25134 * config/i386/cpuid.h (bit_AVX512BF16): New.
25135 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25136 * config/i386/i386-builtin-types.def: Add new types.
25137 * config/i386/i386-builtin.def: Add new builtins.
25138 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25139 __AVX512BF16__.
25140 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25141 (ix86_option_override_internal): Handle BF16.
25142 (ix86_valid_target_attribute_inner_p): Ditto.
25143 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25144 * config/i386/i386-builtin.c (enum processor_features): Add
25145 F_AVX512BF16.
25146 (static const _isa_names_table isa_names_table): Ditto.
25147 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25148 (PTA_AVX512BF16): Ditto.
25149 * config/i386/i386.opt: Add -mavx512bf16.
25150 * config/i386/immintrin.h: Include avx512bf16intrin.h
25151 and avx512bf16vlintrin.h.
25152 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25153 avx512f_cvtneps2bf16_<mode><mask_name>,
25154 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25155 * config/i386/subst.md (mask_half): Add new subst.
25156 * doc/invoke.texi: Document -mavx512bf16.
25157
25158 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25159
25160 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25161 Delete declaration.
25162 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25163 (rs6000_debug_legitimize_reload_address): Delete.
25164 (rs6000_legitimize_reload_address_ptr): Delete.
25165 (rs6000_option_override_internal): Adjust.
25166 (mem_operand_gpr): Adjust comment.
25167 (legitimate_lo_sum_address_p): Ditto.
25168 (rs6000_legitimize_reload_address): Delete.
25169 (rs6000_debug_legitimize_reload_address): Delete.
25170 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25171
25172 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25173
25174 PR target/89765
25175 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25176 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25177 to compute vector element selector for both constant and variable
25178 operands.
25179
25180 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25181
25182 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25183 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25184 ashrdi3_cvt using SWI48 mode iterator.
25185
25186 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25187
25188 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25189 (aarch64_<su>abd<mode>_3): Likewise.
25190 (*aarch64_<su>abd<mode>_3): New define_insn.
25191 (<sur>sad<vsi2qi>): New define_expand.
25192 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25193 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25194 (build_vect_cond_expr): Likewise.
25195
25196 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25197
25198 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25199 clobbers outside of accessible_reg_set.
25200 * config/i386/i386.c (ix86_conditional_register_usage):
25201 Disable register sets by clearing corresponding bits in
25202 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25203 call_used_regs and don't clear corresponding reg_names array members.
25204
25205 2019-05-07 Richard Biener <rguenther@suse.de>
25206
25207 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25208 not specified still compute a comp_vectype for invariant
25209 compares.
25210
25211 2019-05-07 Richard Biener <rguenther@suse.de>
25212
25213 PR tree-optimization/90316
25214 * tree-ssa-pre.c (translate_vuse_through_block): When
25215 same_valid is NULL do not bother to search for a virtual
25216 PHI continuation.
25217 (phi_translate_1): When operands changed we cannot keep
25218 the same value-number so do not bother to ask whether
25219 that's possible from translate_vuse_through_block.
25220
25221 2019-05-07 Martin Liska <mliska@suse.cz>
25222
25223 * bitmap.c (bitmap_register): Come up with
25224 alloc_descriptor_max_uid and assign it for
25225 a new bitmap.
25226 (register_overhead): Use get_descriptor as
25227 a descriptor.
25228 (release_overhead): New.
25229 (bitmap_elem_to_freelist): Call it.
25230 (bitmap_elt_clear_from): Likewise.
25231 (bitmap_obstack_free): Likewise.
25232 (bitmap_move): Sensitively release memory.
25233 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
25234 (bitmap_initialize): Initialize alloc_descriptor to zero.
25235 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
25236
25237 2019-05-07 Richard Biener <rguenther@suse.de>
25238
25239 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
25240 we build a SLP node. Remove max_size and limiting.
25241 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
25242
25243 2019-05-07 Richard Biener <rguenther@suse.de>
25244
25245 PR tree-optimization/90316
25246 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
25247 limit by reference.
25248 (walk_non_aliased_vuses): Take walking limit argument.
25249 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
25250 walking if it is reached instead of just counting.
25251 (get_continuation_for_phi): Likewise.
25252 (walk_non_aliased_vuses): Likewise, instead of leaving counter
25253 limiting to the callback.
25254 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
25255 (vn_reference_lookup_3): Likewise.
25256 (vn_reference_lookup_pieces): Likewise.
25257 (vn_reference_lookup): Likewise.
25258 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
25259 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
25260 (avail_exprs_stack::lookup_avail_expr): Likewise.
25261
25262 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
25263
25264 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
25265 for comparaible types in the second direction even if first one
25266 hits incomparable type.
25267
25268 2019-05-07 Richard Biener <rguenther@suse.de>
25269
25270 PR lto/90369
25271 * lto-wrapper.c (debug_objcopy): Use the original filename
25272 including archive offset for the filename used for -save-temps.
25273
25274 2019-05-07 Li Jia He <helijia@linux.ibm.com>
25275
25276 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
25277 detection.
25278
25279 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
25280 Hongtao Liu <hongtao.liu@intel.com>
25281
25282 PR target/89750
25283 PR target/86444
25284 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
25285 Modified, original implementation isn't correct.
25286
25287 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25288
25289 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
25290 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
25291 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
25292 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
25293 (FRAME_POINTER_REGNUM): Change numbering.
25294 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
25295 (alt_reg_names): Adjust.
25296 (rs6000_conditional_register_usage): Don't mark hard register 64 as
25297 fixed.
25298 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25299 (DWARF_FRAME_REGISTERS): Delete.
25300 (DWARF2_FRAME_REG_OUT): Fix whitespace.
25301 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25302 Adjust.
25303 (REG_ALLOC_ORDER): Adjust.
25304 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
25305 (REG_CLASS_CONTENTS): Adjust.
25306 (RETURN_ADDR_RTX): Change comment.
25307 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
25308 instead of 67.
25309 (REGISTER_NAMES): Adjust.
25310 (ADDITIONAL_REGISTER_NAMES): Adjust.
25311 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25312
25313 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25314
25315 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
25316 Delete.
25317 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25318 (DWARF_FRAME_REGISTERS): Adjust.
25319 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25320 Adjust.
25321 (REG_ALLOC_ORDER): Adjust.
25322 (enum reg_class): Delete SPR_REGS.
25323 (REG_CLASS_NAMES): Delete SPR_REGS.
25324 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
25325 (REGISTER_NAMES): Adjust.
25326 (ADDITIONAL_REGISTER_NAMES): Adjust.
25327 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25328 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
25329 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
25330 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
25331 (htm_spr_regno): Delete.
25332 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
25333 argument.
25334 (rs6000_dbx_register_number): Adjust.
25335
25336 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25337
25338 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
25339
25340 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25341
25342 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
25343 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
25344
25345 2019-05-06 Jakub Jelinek <jakub@redhat.com>
25346
25347 PR tree-optimization/88709
25348 PR tree-optimization/90271
25349 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
25350 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
25351 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
25352 variable.
25353 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
25354 of the store merging group is larger than
25355 PARAM_STORE_MERGING_MAX_SIZE parameter.
25356 (split_group): Add bzero_first argument. If set, always emit first
25357 the first store which must be = {} of the whole area and then for the
25358 rest of the stores consider all zero bytes as paddings.
25359 (imm_store_chain_info::output_merged_store): Check if first store
25360 is = {} of the whole area and if yes, determine which setting of
25361 bzero_first for split_group gives smaller number of stores. Adjust
25362 split_group callers.
25363 (lhs_valid_for_store_merging_p): Allow decls.
25364 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
25365 no elts.
25366 (pass_store_merging::process_store): Likewise.
25367
25368 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
25369
25370 PR target/89424
25371 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25372 handling of V1TImode.
25373
25374 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
25375
25376 PR target/89221
25377 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
25378 and enable_frame_pointer ...
25379 * configure.ac: ... here. Update help strings for
25380 --enable-frame-pointer.
25381 * configure: Regenerate.
25382 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25383 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25384 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25385 (USE_X86_64_FRAME_POINTER): Ditto.
25386
25387 2019-05-06 Martin Liska <mliska@suse.cz>
25388
25389 * config.gcc: Append to target_gtfiles and fix indentation.
25390
25391 2019-05-06 Richard Biener <rguenther@suse.de>
25392
25393 PR tree-optimization/90358
25394 * tree-vect-stmts.c (get_group_load_store_type): Properly
25395 detect unused upper half of load.
25396 (vectorizable_load): Likewise.
25397
25398 2019-05-06 Richard Biener <rguenther@suse.de>
25399
25400 PR tree-optimization/88828
25401 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25402 (simplify_vector_constructor): ...here. Handle constants in
25403 the constructor.
25404
25405 2019-05-06 Richard Biener <rguenther@suse.de>
25406
25407 PR tree-optimization/90328
25408 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25409 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25410 is valid in the loop nest before using it.
25411 (initialize_data_dependence_relation): Adjust.
25412 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25413 loop as loop-nest to dr_may_alias_p.
25414
25415 2019-05-06 Richard Biener <rguenther@suse.de>
25416
25417 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25418
25419 2019-05-06 Richard Biener <rguenther@suse.de>
25420
25421 PR tree-optimization/90316
25422 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25423 compute target on demand.
25424 (get_continuation_for_phi): Remove code walking stmts to
25425 get to a target virtual operand which could end up being
25426 quadratic.
25427
25428 2019-05-06 Martin Liska <mliska@suse.cz>
25429
25430 PR sanitizer/90312
25431 * config/i386/i386-options.c (ix86_option_override_internal): Error only
25432 when -mabi is selected to a non-default version.
25433
25434 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
25435 Martin Liska <mliska@suse.cz>
25436
25437 * Makefile.in: Add lto-dump.texi.
25438 * cgraph.h: Add new functions get_visibility_string and
25439 get_symtab_type_string.
25440 * doc/gcc.texi: Include lto-dump section.
25441 * doc/lto-dump.texi: New file.
25442 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
25443 (parse_dump_option): Factor out this function.
25444 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
25445 (parse_dump_option): Export the function.
25446 * symtab.c (symtab_node::get_visibility_string): New function.
25447 (symtab_node::get_symtab_type_string): Likewise.
25448
25449 2019-05-06 Martin Liska <mliska@suse.cz>
25450
25451 * config/i386/i386-builtins.c: New file.
25452 * config/i386/i386-builtins.h: New file.
25453 * config/i386/i386-expand.c: New file.
25454 * config/i386/i386-expand.h: New file.
25455 * config/i386/i386-features.c: New file.
25456 * config/i386/i386-features.h: New file.
25457 * config/i386/i386-options.c: New file.
25458 * config/i386/i386-options.h: New file.
25459 * config.gcc: Add new files into extra_objs and
25460 target_gtfiles.
25461 * config/i386/i386.c: Split content of the file
25462 into newly introduced files.
25463 * config/i386/i386.h: Declare common variables
25464 and macros.
25465 * config/i386/t-i386: Define dependencies for new files.
25466
25467 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
25468
25469 PR target/89400
25470 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
25471 Restrict 'all' variant to 32-bit configurations.
25472 (unaligned_loadhiu): Likewise.
25473 (unaligned_storehi): Likewise.
25474 (unaligned_storesi): Likewise.
25475 (unaligned_loadhis): Disable when compiling for thumb1.
25476
25477 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
25478
25479 PR tree-optimization/90269
25480 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25481 Ignore clobbers.
25482
25483 2019-05-03 Martin Liska <mliska@suse.cz>
25484
25485 * hash-map.h: Add is_empty function.
25486 * hash-set.h: Likewise.
25487 * hash-table.h: Likewise.
25488 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
25489 elements () == 0 (and similar usages).
25490 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
25491 * gimplify.c (gimplify_bind_expr): Likewise.
25492 (gimplify_switch_expr): Likewise.
25493 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
25494 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
25495 * postreload-gcse.c (dump_hash_table): Likewise.
25496 (gcse_after_reload_main): Likewise.
25497 * predict.c (combine_predictions_for_bb): Likewise.
25498 * tree-parloops.c (reduction_phi): Likewise.
25499 (separate_decls_in_region): Likewise.
25500 (transform_to_exit_first_loop): Likewise.
25501 (gen_parallel_loop): Likewise.
25502 (gather_scalar_reductions): Likewise.
25503 (try_create_reduction_list): Likewise.
25504 * var-tracking.c (dump_vars): Likewise.
25505 (emit_notes_for_changes): Likewise.
25506 (vt_emit_notes): Likewise.
25507
25508 2019-05-03 Richard Biener <rguenther@suse.de>
25509
25510 PR tree-optimization/90316
25511 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
25512 before running VN.
25513
25514 2019-05-03 Richard Biener <rguenther@suse.de>
25515
25516 * tree-vect-stmts.c (get_group_load_store_type): Avoid
25517 peeling for gaps by loading only lower halves of vectors
25518 if possible.
25519 (vectorizable_load): Likewise.
25520
25521 2019-05-03 Richard Biener <rguenther@suse.de>
25522
25523 PR middle-end/89518
25524 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
25525
25526 2019-05-03 Richard Biener <rguenther@suse.de>
25527
25528 PR middle-end/87314
25529 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
25530 Handle STRING_CST vs DECL or STRING_CST.
25531
25532 2019-05-03 Richard Biener <rguenther@suse.de>
25533
25534 PR tree-optimization/88963
25535 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
25536 vector loads feeding only BIT_FIELD_REFs to component
25537 loads. Rewrite stores fed by CONSTRUCTORs to component
25538 stores.
25539
25540 2019-05-03 Jakub Jelinek <jakub@redhat.com>
25541
25542 * opts.h (finish_options): Remove lang_mask argument.
25543 (print_help, help_option_argument): Declare.
25544 * opts.c (print_help): Remove forward declaration, no longer static.
25545 (finish_options): Remove lang_mask argument, don't call print_help
25546 here.
25547 * opts-global.c (decode_options): Adjust finish_option caller, call
25548 print_help here.
25549
25550 PR tree-optimization/90303
25551 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
25552 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
25553
25554 2019-05-03 Richard Biener <rguenther@suse.de>
25555
25556 PR tree-optimization/89698
25557 * gimple-fold.c (canonicalize_constructor_val): Early out
25558 for constants, handle unfolded INTEGER_CSTs as they appear in
25559 C++ virtual table ctors.
25560
25561 2019-05-03 Richard Biener <rguenther@suse.de>
25562
25563 * passes.c (execute_function_todo): Remove dead code.
25564
25565 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25566
25567 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25568 the internal register number, for any "real" register.
25569
25570 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25571
25572 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25573 correct numbers for TFHAR, TFIAR, TEXASR.
25574
25575 2019-05-02 Richard Biener <rguenther@suse.de>
25576
25577 PR tree-optimization/89653
25578 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25579 update-address-taken before the pass.
25580 * passes.def (pass_tree_loop_init): Put comment before it.
25581
25582 2019-05-02 Richard Biener <rguenther@suse.de>
25583
25584 PR tree-optimization/89509
25585 * tree-ssa-structalias.c (compute_dependence_clique): Look
25586 at the first subvar when determining whether it is restrict.
25587
25588 2019-05-02 Richard Biener <rguenther@suse.de>
25589
25590 PR tree-optimization/90273
25591 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25592 useless debug stmts.
25593
25594 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25595
25596 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25597 ACLE branch.
25598 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25599 SVE ACLE branch.
25600 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25601 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25602 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25603 (vectorizable_reduction): Use the functions above to vectorize in a
25604 fully masked loop codes that don't have a conditional internal
25605 function.
25606
25607 2019-05-02 Martin Liska <mliska@suse.cz>
25608
25609 * cgraphclones.c: Call valid_attribute_p with 1 for
25610 target_clone.
25611 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25612 it's for target attribute.
25613 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25614 Add new boolean argument.
25615 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25616 Likewise.
25617 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25618 to ix86_valid_target_attribute_inner_p.
25619 (ix86_valid_target_attribute_p): Pass flags argument to
25620 ix86_valid_target_attribute_inner_p.
25621 (get_builtin_code_for_version): Use 0 as it's target attribute.
25622
25623 2019-05-02 Martin Liska <mliska@suse.cz>
25624
25625 * gcc.c (process_command): Add dummy file only
25626 if n_infiles == 0.
25627 * opts-global.c (decode_options): Pass lang_mask.
25628 * opts.c (print_help): New function.
25629 (finish_options): Print --help if help_option_argument
25630 is set.
25631 (common_handle_option): Factor out content of OPT__help_
25632 into print_help.
25633 * opts.h (finish_options): Add new argument.
25634
25635 2019-05-02 Martin Liska <mliska@suse.cz>
25636
25637 PR target/88809
25638 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25639 With -minline-all-stringops use inline expansion using 4B loop.
25640 * doc/invoke.texi: Document the change of
25641 -minline-all-stringops.
25642
25643 2019-05-01 Jeff Law <law@redhat.com>
25644
25645 PR tree-optimization/88797
25646 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25647 PHI feeds a conditional on the RHS of an assignment.
25648
25649 2019-04-30 Andrew Waterman <andrew@sifive.com>
25650 Jim Wilson <jimw@sifive.com>
25651
25652 * config/riscv/constraints.md (L): New.
25653 * config/riscv/predicates.md (lui_operand): New.
25654 (sfb_alu_operand): New.
25655 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25656 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25657 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25658 * config/riscv/risc.md (type): Add sfb_alu.
25659 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25660 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25661 (branch_zero<mode>): Delete.
25662 (mov<mode>cc): New.
25663 (mov<GPR:mode><X:mode>cc): Likewise.
25664 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25665
25666 2019-04-30 Nathan Sidwell <nathan@acm.org>
25667
25668 * tree.h (MARK_TS_EXP): New.
25669
25670 2019-04-30 Martin Liska <mliska@suse.cz>
25671
25672 * opts.c (enable_warning_as_error): Provide hints
25673 for unknown options.
25674
25675 2019-04-30 Martin Liska <mliska@suse.cz>
25676
25677 PR debug/90288
25678 * doc/invoke.texi: Add missing dash for gas-locview-support
25679 and gno-as-locview-support.
25680
25681 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25682
25683 PR target/89093
25684 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25685 whitespace at the start of target attribute string.
25686
25687 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25688
25689 PR target/86538
25690 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25691 Define __ARM_FEATURE_ATOMICS.
25692
25693 2019-04-30 Martin Liska <mliska@suse.cz>
25694
25695 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25696 into built_in_function enum. Remove code for endp == 2 and
25697 use BUILT_IN_* constants.
25698 (gimple_fold_builtin): Call the function with fcode.
25699
25700 2019-04-30 Martin Liska <mliska@suse.cz>
25701
25702 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25703 DECL_FUNCTION_CODE into ix86_builtins enum before
25704 the switch statement.
25705
25706 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25707
25708 PR tree-optimization/89475
25709 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25710 calls.
25711
25712 2019-04-30 Martin Liska <mliska@suse.cz>
25713
25714 PR translation/90274
25715 * opts.c (print_filtered_help): Wrap string in _(...).
25716
25717 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25718
25719 PR tree-optimization/90240
25720 Revert:
25721 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25722
25723 PR tree-optimization/90078
25724 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25725 checks for infinite_cost overflow.
25726
25727 2019-04-29 Jeff Law <law@redhat.com>
25728
25729 * passes.def: Move -Wrestrict pass after copy propagation.
25730
25731 2019-04-29 Maya Rashish <coypu@sdf.org>
25732
25733 * config.gcc (default_gnu_indirect_function): Default to yes
25734 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25735 sparc*-*-netbsd*, x86_64-*-netbsd*.
25736
25737 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25738
25739 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25740 where cond2 is NE_EXPR.
25741 (is_value_included_in): Update comment.
25742
25743 2019-04-29 Richard Biener <rguenther@suse.de>
25744
25745 PR tree-optimization/90278
25746 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25747 EH on comparison simplification.
25748
25749 2019-04-29 Jason Merrill <jason@redhat.com>
25750
25751 PR c++/82081 - tail call optimization breaks noexcept
25752 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25753 nothrow function to a might-throw function into a tail call.
25754
25755 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25756
25757 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25758 (DDR_INNER_LOOP): Likewise.
25759 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25760 (initialize_data_dependence_relation): Likewise.
25761 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25762
25763 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25764
25765 PR rtl-optimization/90257
25766 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25767 return value.
25768
25769 Revert the revert:
25770 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25771
25772 PR target/90178
25773 Revert:
25774 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25775
25776 Revert the revert:
25777 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25778
25779 Revert:
25780 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25781
25782 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25783
25784 2019-04-29 Richard Biener <rguenther@suse.de>
25785
25786 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25787 rhs issue a reset.
25788
25789 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25790
25791 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25792 varasm.h, and netbsd-protos.h.
25793
25794 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25795
25796 PR target/89261
25797 * config/i386/i386-protos.h (ix86_data_alignment): Change
25798 the second argument type to unsigned int.
25799 * config/i386/i386.c (ix86_data_alignment): Change "align"
25800 argument type to unsigned int.
25801
25802 2019-04-27 Martin Liska <mliska@suse.cz>
25803
25804 PR middle-end/90258
25805 * opt-suggestions.c (option_proposer::build_option_suggestions):
25806 When get_valid_option_values returns empty values, add the
25807 misspelling candidate.
25808
25809 2019-04-26 Jim Wilson <jimw@sifive.com>
25810
25811 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25812 parameter.
25813 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25814 Pass orig_mode to riscv_build_integer.
25815 (riscv_split_integer): Pass mode to riscv_move_integer.
25816 (riscv_legitimize_const_move): Likewise.
25817 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25818 promoted_mode. Replace force_reg call with code to load constant into
25819 promoted reg and then subreg it for the store.
25820 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25821 riscv_move_integer.
25822
25823 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25824
25825 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25826 corrupt codes.
25827
25828 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25829
25830 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25831 commentary about the encoding of precision.
25832
25833 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25834
25835 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25836 * config/i386/t-freebsd64: New file.
25837 * config.gcc: Add the t-freebsd64 for multilib support.
25838
25839 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25840
25841 * doc/extend.texi (vector_size): Add missing comma after @xref.
25842
25843 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25844
25845 * BASE-VER: Set to 10.0.0.
25846
25847 2019-04-25 Richard Biener <rguenther@suse.de>
25848
25849 PR middle-end/89765
25850 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25851 VIEW_CONVERT_EXPR into one operating on an rvalue.
25852
25853 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25854
25855 PR target/89929
25856 * config/i386/i386.c (feature_priority): Moved to file scope.
25857 (processor_features): Likewise.
25858 (processor_model): Likewise.
25859 (_arch_names_table): Likewise.
25860 (arch_names_table): Likewise.
25861 (_feature_list): Removed.
25862 (feature_list): Likewise.
25863 (_isa_names_table): Moved to file scope. Add priority.
25864 (isa_names_table): Likewise.
25865 (get_builtin_code_for_version): Replace feature_list with
25866 isa_names_table. Update error message for P_ZERO priority.
25867
25868 2019-04-25 Richard Biener <rguenther@suse.de>
25869
25870 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25871 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25872
25873 2019-04-24 Jeff Law <law@redhat.com>
25874
25875 PR tree-optimization/90037
25876 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25877 * passes.def: Replace all instance of phi-only cprop with the
25878 lattice propagator. Move propagation pass from after erroneous
25879 path isolation to before erroneous path isolation.
25880 * tree-ssa-phionlycprop.c: Remove.
25881
25882 2019-04-24 Richard Biener <rguenther@suse.de>
25883
25884 PR middle-end/90213
25885 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25886 by size and BITS_PER_UNIT on poly-wide-ints.
25887
25888 2019-04-25 Richard Biener <rguenther@suse.de>
25889
25890 PR middle-end/90194
25891 * match.pd: Add pattern to simplify view-conversion of an
25892 empty constructor.
25893
25894 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25895
25896 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25897 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25898 for Go on 32 bit AIX.
25899 * config/rs6000/aix72.h: Likewise.
25900
25901 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25902
25903 PR target/90193
25904 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25905 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25906
25907 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25908
25909 PR target/89952
25910 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25911 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25912 for restored hard frame pointer.
25913 (s390_sched_dependencies_evaluation): Implement new target hook.
25914 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25915
25916 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25917
25918 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25919 * config/arc/arc.c (arc_init): Cleanup warning message.
25920 (arc_override_options): Likewise.
25921
25922 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25923
25924 PR target/90187
25925 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25926 a register if both if_true and if_false are MEMs.
25927
25928 PR tree-optimization/90208
25929 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25930 after labels of new_bb, not before them.
25931
25932 PR tree-optimization/90211
25933 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25934 which are not SSA_NAMEs.
25935
25936 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25937
25938 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25939 AArch64.
25940 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25941
25942 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25943
25944 PR rtl-optimization/87979
25945 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25946 not equal zero.
25947
25948 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25949
25950 PR rtl-optimization/84032
25951 * modulo-sched.c (ps_insn_find_column): Change condition so that
25952 branch will always be the last insn in a row inside partial
25953 schedule.
25954
25955 2019-04-23 Richard Biener <rguenther@suse.de>
25956
25957 PR debug/90131
25958 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25959 dest_single_pred_p argument.
25960 (remove_forwarder_block): Adjust.
25961 (remove_forwarder_block_with_phi): Likewise.
25962
25963 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25964 Bernd Edlinger <bernd.edlinger@hotmail.de>
25965 Jakub Jelinek <jakub@redhat.com>
25966
25967 PR target/89093
25968 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25969 if used with general-regs-only.
25970 (arm_conditional_register_usage): Don't add non-general regs if
25971 general-regs-only.
25972 (arm_valid_target_attribute_rec): Handle general-regs-only.
25973 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25974 general-regs-only.
25975 (TARGET_HARD_FLOAT_SUB): Define.
25976 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25977 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25978 (TARGET_REALLY_IWMMXT2): Likewise.
25979 * config/arm/arm.opt: Add -mgeneral-regs-only.
25980 * doc/extend.texi: Document ARM general-regs-only target.
25981 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25982
25983 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25984
25985 PR tree-optimization/90078
25986 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25987 checks for infinite_cost overflow.
25988
25989 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25990
25991 PR tree-optimization/90021
25992 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25993 and check univariate against it.
25994 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25995 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25996
25997 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25998
25999 PR target/90178
26000 Revert:
26001 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26002
26003 Revert the revert:
26004 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26005
26006 Revert:
26007 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26008
26009 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26010
26011 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
26012
26013 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
26014 names using operand format, rather than hard-wired.
26015 (speculation_barrier): Likewise.
26016
26017 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26018
26019 PR tree-optimization/88055
26020 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26021 (gen_one_condition): Use it if !HONOR_NANS.
26022
26023 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26024
26025 PR middle-end/90139
26026 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26027 assign_temp instead of gen_reg_rtx.
26028
26029 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26030
26031 PR translation/90118
26032 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26033 Add missing space before %<.
26034
26035 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26036
26037 PR rtl-optimization/87871
26038 * ira-lives.c (make_object_dead): Don't add conflicts to
26039 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26040
26041 2019-04-18 Martin Sebor <msebor@redhat.com>
26042
26043 PR middle-end/89797
26044 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26045 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26046 assuming type size fits in SHWI.
26047
26048 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26049
26050 PR ipa/85051
26051 * ipa-inline.c (flatten_function): New parameter UPDATE.
26052 (ipa_inline, early_inliner): Use it.
26053
26054 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26055
26056 * fold-const.c (int_const_binop): Return early on failure.
26057
26058 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26059
26060 PR middle-end/85164
26061 * combine.c (force_int_to_mode): Cast the argument rather than
26062 the result of known_alignment.
26063 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26064
26065 2019-04-18 Richard Biener <rguenther@suse.de>
26066
26067 PR debug/90131
26068 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26069 out from ...
26070 (remove_forwarder_block): ... here.
26071 (remove_forwarder_block_with_phi): Also move debug stmts here.
26072
26073 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26074
26075 PR translation/79183
26076 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26077 inform where appropriate.
26078
26079 2019-04-18 Richard Biener <rguenther@suse.de>
26080
26081 * tree.c (get_qualified_type): Put found type variants at the
26082 head of the variant list.
26083
26084 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26085
26086 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26087
26088 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26089
26090 PR target/90125
26091 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26092 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26093 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26094 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26095 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26096
26097 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26098
26099 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26100 even for allocno's with no conflicts.
26101 (print_conflicts): Print an extra newline.
26102
26103 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26104
26105 * auto-inc-dec.c (attempt_change): Set the alignment of the
26106 temporary memory to that of the original.
26107
26108 2019-04-17 Joao Moreira <jmoreira@suse.de>
26109
26110 * targhooks.c (default_print_patchable_function_entry): Emit
26111 __patchable_function_entries section with writable flags to allow
26112 relocation resolution.
26113
26114 2019-04-17 Jonny Grant <jg@jguk.org>
26115
26116 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26117
26118 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26119
26120 PR middle-end/90095
26121 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26122 on lowpart SUBREGs.
26123
26124 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26125
26126 * config/arc/arc.c (arc_init): Format diagnostic string.
26127 (arc_override_options): Likewise.
26128 (check_if_valid_regno_const): Likewise.
26129 (arc_reorg): Likewise.
26130
26131 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26132
26133 PR target/17108
26134 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26135 name.
26136 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26137 name.
26138 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26139 (*movdi_update1): Use Pmode.
26140 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26141 (movdi_<mode>_update_stack): Rename to ...
26142 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26143 use Pmode.
26144 (*movsi_update1): Use Pmode.
26145 (*movsi_update2): Use Pmode.
26146 (movsi_update): Rename to ...
26147 (movsi_<mode>_update): ... this. Use Pmode.
26148 (movsi_update_stack): Fix condition.
26149 (*movhi_update1): Use Pmode. Fix argument to
26150 avoiding_indexed_address_p.
26151 (*movhi_update2): Ditto.
26152 (*movhi_update3): Ditto.
26153 (*movhi_update4): Ditto.
26154 (*movqi_update1): Ditto.
26155 (*movqi_update2): Ditto.
26156 (*movqi_update3): Ditto.
26157 (*movsf_update1, *movdf_update1): Merge, rename to...
26158 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26159 avoiding_indexed_address_p. Add "size" attribute.
26160 (*movsf_update2, *movdf_update2): Merge, rename to...
26161 (*mov<mode>_update2): This. Ditto.
26162 (*movsf_update3): Use Pmode. Fix argument to
26163 avoiding_indexed_address_p.
26164 (*movsf_update4): Ditto.
26165 (allocate_stack): Simplify condition. Adjust pattern names.
26166
26167 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26168
26169 PR target/89093
26170 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26171 whitespace at the start of target attribute string.
26172
26173 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26174
26175 PR target/84369
26176 * config/rs6000/power9.md: Add store forwarding bypass.
26177
26178 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26179
26180 PR debug/89528
26181 * valtrack.c (dead_debug_insert_temp): Reset debug references
26182 to the return value of a call being removed.
26183
26184 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26185
26186 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26187 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26188 implement target hook.
26189 (arc_memory_move_cost): New function.
26190 (TARGET_REGISTER_MOVE_COST): Define.
26191 (TARGET_MEMORY_MOVE_COST): Likewise.
26192 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26193 (MEMORY_MOVE_COST): Likewise.
26194
26195 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26196
26197 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26198 (sibcall_value_insn): Likewise.
26199 * config/arc/constraints.md (Rs5): Remove.
26200
26201 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26202
26203 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26204 for last two fake registers.
26205 (arc_conditional_register_usage): Make sure fake frame and arg
26206 pointer regs are in general regs class.
26207 (FRAME_POINTER_MASK): Remove.
26208 (RETURN_ADDR_MASK): Remove.
26209 (arc_must_save_register): Use hard frame regnum.
26210 (frame_restore_reg): Use hard_frame_pointer_rtx.
26211 (arc_save_callee_saves): Likewise.
26212 (arc_restore_callee_saves): Likewise.
26213 (arc_save_callee_enter): Likewise.
26214 (arc_restore_callee_leave): Likewise.
26215 (arc_save_callee_milli): Likewise.
26216 (arc_eh_return_address_location): Likewise.
26217 (arc_check_multi): Use hard frame regnum.
26218 (arc_can_eliminate): Likewise.
26219 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
26220 for register allocator.
26221 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
26222 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
26223 (FRAME_POINTER_REGNUM): Change it to a fake register.
26224 (HARD_FRAME_POINTER_REGNUM): Defined.
26225 (ARG_POINTER_REGNUM): Change it to a new fake register.
26226 (ELIMINABLE_REGS): Update.
26227 (REGISTER_NAMES): Update names.
26228 * config/arc/arc.md (LP_START): Remove.
26229 (LP_END): Likewise.
26230 (shift_si3_loop): Update pattern.
26231
26232 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26233
26234 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
26235 to avoid delay slot scheduling.
26236 (arc_must_save_register): Don't save SP.
26237 * config/arc/arc.md (stack_tie): Remove.
26238 (UNSPEC_ARC_STKTIE): Likewise.
26239
26240 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
26241 Shiva Chen <shiva0217@gmail.com>
26242
26243 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
26244 code gen with large shift amount.
26245
26246 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
26247
26248 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
26249 subreg.
26250
26251 2019-04-16 Jakub Jelinek <jakub@redhat.com>
26252
26253 PR target/90096
26254 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
26255 print -m64/-mx32/-m32 if it is true.
26256 (ix86_debug_options, ix86_function_specific_print): Pass true as
26257 ADD_ABI_P to ix86_target_string.
26258 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
26259 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
26260 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
26261
26262 PR rtl-optimization/90082
26263 * dce.c (can_delete_call): New function.
26264 (deletable_insn_p, mark_insn): Use it.
26265
26266 PR tree-optimization/90090
26267 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
26268 throw internally.
26269 (is_division_by_square): Likewise. Formatting fix.
26270
26271 2019-04-16 Richard Biener <rguenther@suse.de>
26272
26273 PR tree-optimization/56049
26274 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
26275 equality check if alias-set zero will prevail.
26276
26277 2019-04-15 Jeff Law <law@redhat.com>
26278
26279 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
26280 size and alignment as unsigned.
26281
26282 2019-04-15 Richard Biener <rguenther@suse.de>
26283
26284 PR debug/90074
26285 * tree-loop-distribution.c (destroy_loop): Preserve correct
26286 debug info.
26287
26288 2019-04-15 Richard Biener <rguenther@suse.de>
26289
26290 PR tree-optimization/90071
26291 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
26292 abnormal operands from def stmts.
26293
26294 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
26295
26296 PR rtl-optimization/89794
26297 * combine.c (count_auto_inc): New function.
26298 (try_combine): Count how many auto_inc expressions there were in the
26299 original instructions. Ensure we have the same number in the new
26300 instructions. Remove the code that tried to ensure auto_inc side
26301 effects on i1 and i0 are not lost.
26302
26303 2019-04-15 Richard Biener <rguenther@suse.de>
26304
26305 PR ipa/88936
26306 * tree.h (auto_var_p): Declare.
26307 * tree.c (auto_var_p): New function, split out from ...
26308 (auto_var_in_fn_p): ... here.
26309 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
26310 member.
26311 (new_var_info): Initialize it.
26312 (set_uids_in_ptset): Also set the shadow variable uid if required.
26313 (ipa_pta_execute): Postprocess points-to solutions assigning
26314 shadow variable uids for locals that may reach their containing
26315 function recursively.
26316 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
26317 assert but instead check whether the points-to solution is
26318 a singleton.
26319
26320 2019-04-15 Martin Jambor <mjambor@suse.cz>
26321
26322 PR ipa/pr89693
26323 * cgraph.c (clone_of_p): Loop over clone chain for each step in
26324 the thunk chain.
26325
26326 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26327
26328 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
26329
26330 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26331 Kito Cheng <kito.cheng@gmail.com>
26332 Shiva Chen <shiva0217@gmail.com>
26333
26334 * config/nds32/nds32-md-auxiliary.c
26335 (nds32_legitimize_pic_address): Use new PIC pattern.
26336 (nds32_legitimize_tls_address): Use new TLS pattern.
26337 (nds32_output_symrel): New.
26338 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
26339 (nds32_alloc_relax_group_id): Ditto.
26340 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
26341 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
26342 relax_group_id.
26343 (nds32_group_tls_insn): Ditto.
26344 (nds32_group_float_insns): Ditto.
26345 * config/nds32/nds32.md (tls_le): New.
26346 (sym_got): Ditto.
26347
26348 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
26349
26350 * configure: Add nds32 target for dwarf2 debug_line checking.
26351 * configure.ac: Regenerated.
26352
26353 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
26354
26355 PR lto/89358
26356 * ipa-devirt.c (skip_in_fields_list_p): New.
26357 (odr_types_equivalent_p): Use it.
26358
26359 2019-04-13 Jakub Jelinek <jakub@redhat.com>
26360
26361 PR target/89093
26362 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
26363 instead of strncmp when checking for thumb and arm. Formatting fixes.
26364
26365 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
26366
26367 * doc/install.texi: Document --with-target-system-zlib.
26368
26369 2019-04-12 Martin Sebor <msebor@redhat.com>
26370
26371 PR c/88383
26372 PR c/89288
26373 PR c/89798
26374 PR c/89797
26375 * targhooks.c (default_vector_alignment): Avoid assuming
26376 argument fits in SHWI.
26377 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
26378 a shift expression.
26379 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
26380
26381 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26382
26383 PR rtl-optimization/89965
26384 * dce.c: Include rtl-iter.h.
26385 (struct check_argument_load_data): New type.
26386 (check_argument_load): New function.
26387 (find_call_stack_args): Check for loads from stack slots still tracked
26388 in sp_bytes and punt if any is found.
26389
26390 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26391
26392 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26393
26394 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26395 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26396
26397 2019-04-12 Martin Liska <mliska@suse.cz>
26398
26399 PR middle-end/89970
26400 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26401 in error message.
26402 (separate_attrs): Handle multiple 'default's.
26403 (expand_target_clones): Rework error handling code.
26404
26405 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26406
26407 PR target/87532
26408 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26409 mode of vector rather than mode of destination for move instruction.
26410 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26411 Use QI inner mode with V16QI vector mode.
26412
26413 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26414
26415 PR target/52726
26416 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26417 "invalid %%t operand" in output_operand_lossage message.
26418
26419 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26420
26421 * config/s390/predicates.md (permute_pattern_operand): New
26422 predicate.
26423 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26424 operand for the permute pattern.
26425 ("*vec_perm<mode>"): New insn definition.
26426 ("bswap<mode>"): Generate the permute pattern operand in the
26427 expander and perform the operand reloads for pre arch13 level
26428 already.
26429 ("*bswap<mode>_emu"): Rename to ...
26430 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
26431 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
26432 Add the USE operand for the permute pattern.
26433 ("*vec_set_bswap_vec<mode>"): Likewise.
26434
26435 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26436
26437 PR c/89946
26438 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
26439 and gcc_unreachable if it fails, just call tree_to_uhwi which
26440 verifies that too. Test TREE_CHAIN instead of list_length > 1.
26441 Start warning message with a lower-case letter. Formatting fixes.
26442
26443 PR rtl-optimization/90026
26444 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
26445 successors, look for BARRIERs inside of the whole BB_FOOTER chain
26446 rather than just at the start of it. If e->src BB_FOOTER is not NULL
26447 in cfglayout mode, use emit_barrier_after_bb.
26448
26449 2018-04-11 Steve Ellcey <sellcey@marvell.com>
26450
26451 PR rtl-optimization/87763
26452 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
26453 New Instruction.
26454
26455 2019-04-11 Tom de Vries <tdevries@suse.de>
26456
26457 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
26458 max macro using statement expression.
26459
26460 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
26461
26462 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
26463 * xcoffout.c (xcoff_private_rodata_section_name): Define.
26464 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
26465 read_only_private_data_section using xcoff_private_rodata_section_name.
26466 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
26467
26468 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
26469
26470 PR target/90016
26471 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
26472
26473 2019-04-11 Jakub Jelinek <jakub@redhat.com>
26474
26475 PR rtl-optimization/89965
26476 * dce.c (sp_based_mem_offset): New function.
26477 (find_call_stack_args): Use sp_based_mem_offset.
26478
26479 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
26480
26481 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
26482
26483 2019-04-11 Richard Biener <rguenther@suse.de>
26484
26485 PR tree-optimization/90020
26486 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
26487 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
26488 * tree-ssa-pre.c (compute_avail): Use it to not put
26489 possibly trapping references after a call that might not
26490 return into EXP_GEN.
26491 * gcse.c (compute_hash_table_work): Do not elide
26492 marking a block containing a call if the call might not
26493 return.
26494
26495 2019-04-11 Richard Biener <rguenther@suse.de>
26496
26497 PR tree-optimization/90018
26498 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
26499 Test both SLP and interleaving variants.
26500
26501 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
26502
26503 * config/s390/8561.md: New file.
26504 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26505 Add arch13 cpu model.
26506 * config/s390/s390-opts.h (enum processor_type): Likewise.
26507 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
26508 (s390_get_unit_mask): Likewise.
26509 (s390_is_fpd): Likewise.
26510 (s390_is_fxd): Likewise.
26511 * config/s390/s390.h (s390_tune_attr): Likewise.
26512 * config/s390/s390.md: Include arch13 pipeline description.
26513 * config/s390/s390.opt: Add arch13.
26514
26515 2018-04-10 Steve Ellcey <sellcey@marvell.com>
26516
26517 PR rtl-optimization/87763
26518 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
26519 New prototype.
26520 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
26521 New function.
26522 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
26523 New instruction.
26524 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
26525 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
26526 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
26527 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
26528
26529 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
26530
26531 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
26532 "Although" in -fipa-icf documentation.
26533
26534 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
26535 of using multiple -g options.
26536
26537 2019-04-10 Martin Liska <mliska@suse.cz>
26538
26539 PR gcov-profile/89959
26540 * doc/gcov.texi: Make documentation of -x option
26541 more precise.
26542
26543 2019-04-10 Richard Biener <rguenther@suse.de>
26544
26545 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
26546 member.
26547 (DR_GROUP_SAME_DR_STMT): Remove.
26548 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
26549 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
26550 replace with assert.
26551 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
26552 (vect_record_grouped_load_vectors): Remove unreachable code.
26553
26554 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
26555
26556 PR target/90016
26557 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
26558 obsolete reference to N.
26559
26560 2019-04-10 Jakub Jelinek <jakub@redhat.com>
26561
26562 PR middle-end/90025
26563 * expr.c (store_expr): Set properly size on the MEM passed to
26564 clear_storage.
26565
26566 PR c++/90010
26567 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26568 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26569 translation is needed, and when translation is needed, only append
26570 ... if the string length is hostsz or more bytes long. Avoid using
26571 strncpy or strcat.
26572
26573 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26574
26575 PR target/90024
26576 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26577 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26578 into three.
26579 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26580 differences directly.
26581 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26582
26583 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26584
26585 PR translation/90011
26586 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26587 from diagnostics.
26588 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26589 diagnostics.
26590 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26591 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26592 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26593 trailing space from -gsplit-dwarf diagnostics.
26594
26595 PR tree-optimization/89998
26596 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26597 instead of integer_type_node if possible, don't add ranges if return
26598 type is not compatible with int.
26599 * gimple-fold.c (gimple_fold_builtin_sprintf,
26600 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26601 integer_type_node.
26602
26603 2019-04-09 Martin Liska <mliska@suse.cz>
26604
26605 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26606 * doc/install.texi: Document the new config.
26607
26608 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26609
26610 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26611 use gimple_expr_type for load and store calls. Skip over the
26612 condition argument in a conditional internal function.
26613 Protect use of TREE_INT_CST_LOW.
26614
26615 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26616
26617 PR target/90015
26618 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26619 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26620 trailing period from it too.
26621
26622 2019-04-08 wu yuan <wuyuan5@huawei.com>
26623
26624 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26625 * config/aarch64/aarch64.md: Add "tsv110.md".
26626 * config/aarch64/tsv110.md: New file.
26627
26628 2019-04-08 Richard Biener <rguenther@suse.de>
26629
26630 PR tree-optimization/90006
26631 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26632 calls like lrint.
26633
26634 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26635
26636 PR target/83033
26637 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26638 construction.
26639 (fma_root_node): Likewise.
26640 (func_fma_steering): Likewise.
26641
26642 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26643
26644 PR rtl-optimization/89865
26645 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26646
26647 PR rtl-optimization/89865
26648 * config/i386/i386.md
26649 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26650 numbers not to clash with the additional operands[4].
26651 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26652 with extra register copy in the middle.
26653
26654 2019-04-08 Martin Liska <mliska@suse.cz>
26655
26656 PR gcov-profile/89961
26657 * doc/gcov.texi: Document data_file.
26658 * gcov.c (generate_results): Add data_info into JSON output.
26659
26660 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26661
26662 PR tree-optimization/89725
26663 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26664 loop's chrec as invariant symbol.
26665 * tree-chrec.h (chrec_contains_symbols): New parameter.
26666 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26667 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26668 function of loops not in DDR's loop_nest.
26669 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26670
26671 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26672
26673 PR target/89623
26674 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26675 Mask.
26676
26677 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26678
26679 PR target/89945
26680 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26681 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26682
26683 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26684
26685 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26686 targetm.fixed_condition_code_regs.
26687
26688 2019-04-05 Richard Biener <rguenther@suse.de>
26689
26690 PR debug/89892
26691 PR debug/89905
26692 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26693 debug bind stmts but reset them if they are not valid at the
26694 destination.
26695
26696 2019-04-05 Martin Liska <mliska@suse.cz>
26697
26698 PR translation/89936
26699 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26700 order to wrap keywords or arguments.
26701 * collect2.c (main): Likewise.
26702 (scan_prog_file): Likewise.
26703 (scan_libraries): Likewise.
26704 * common/config/riscv/riscv-common.c
26705 (riscv_subset_list::parsing_subset_version): Likewise.
26706 (riscv_subset_list::parse_std_ext): Likewise.
26707 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26708 Likewise.
26709 * config/arm/arm.c (arm_option_override): Likewise.
26710 * config/cris/cris.c (cris_print_operand): Likewise.
26711 * config/darwin-c.c (darwin_pragma_options): Likewise.
26712 (darwin_pragma_unused): Likewise.
26713 (darwin_pragma_ms_struct): Likewise.
26714 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26715 * config/i386/i386.c (print_reg): Likewise.
26716 (ix86_print_operand): Likewise.
26717 * config/i386/xm-djgpp.h: Likewise.
26718 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26719 * config/m32c/m32c.c (m32c_option_override): Likewise.
26720 * config/msp430/msp430.c (msp430_option_override): Likewise.
26721 * config/nds32/nds32.c (nds32_option_override): Likewise.
26722 * config/nvptx/mkoffload.c (main): Likewise.
26723 * config/rx/rx.c (rx_print_operand): Likewise.
26724 (valid_psw_flag): Likewise.
26725 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26726 (vms_pragma_nomember_alignment): Likewise.
26727 (vms_pragma_extern_model): Likewise.
26728 * lto-wrapper.c (compile_offload_image): Likewise.
26729 * omp-offload.c (oacc_parse_default_dims): Likewise.
26730 * symtab.c (symtab_node::verify_base): Likewise.
26731 * tlink.c (recompile_files): Likewise.
26732 (start_tweaking): Likewise.
26733 * tree-profile.c (parse_profile_filter): Likewise.
26734
26735 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26736
26737 PR tree-optimization/89956
26738 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26739 multiple negates of the same value.
26740
26741 2019-04-04 Martin Sebor <msebor@redhat.com>
26742
26743 PR middle-end/89957
26744 PR middle-end/89911
26745 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26746 have the same precision since the function crashes otherwise.
26747 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26748 has non-zero arguments.
26749
26750 2019-04-04 Martin Sebor <msebor@redhat.com>
26751
26752 PR middle-end/89934
26753 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26754 out if the number of arguments is less than expected.
26755
26756 2019-04-04 Jeff Law <law@redhat.com>
26757
26758 PR rtl-optimization/89399
26759 * ree.c (combine_set_extension): Use single_set rather than
26760 digging into PATTERN for items on the candidate list.
26761 (combine_reaching_defs): Likewise.
26762
26763 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26764
26765 PR rtl-optimization/46590
26766 * loop-invariant.c (find_defs): Move df_remove_problem and
26767 df_process_deferred_rescans to move_invariants.
26768 Move df_live_add_problem and df_live_set_all_dirty calls
26769 to move_invariants.
26770 (move_invariants): Likewise.
26771 (move_loop_invariants): Likewise, making the df_live calls
26772 conditional on -O. Remove the problem again if we added it
26773 locally.
26774
26775 2019-04-03 qing zhao <qing.zhao@oracle.com>
26776
26777 PR tree-optimization/89730
26778 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26779 -flive-patching=inline-only-static.
26780 (can_inline_edge_by_limits_p): Add the checking for
26781 -flive-patching=inline-only-static and grant always_inline
26782 even when -flive-patching=inline-only-static is specified.
26783
26784 2019-04-03 Jeff Law <law@redhat.com>
26785
26786 PR rtl-optimization/81025
26787 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26788
26789 2019-04-03 Richard Biener <rguenther@suse.de>
26790
26791 PR tree-optimization/84101
26792 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26793 regs.h for hard_regno_nregs.
26794 (cfun_returns): New helper.
26795 (vect_model_store_cost): When vectorizing a store to a decl
26796 we return and the function ABI returns in a multi-reg location
26797 account for the possible spilling that will happen.
26798
26799 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26800
26801 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26802 displacement addresses for vector mode operands.
26803
26804 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26805
26806 * config/arc/arc.c (GMASK_LEN): Define.
26807 (arc_restore_callee_saves): Restore first blink when
26808 !optimize_size.
26809
26810 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26811
26812 * doc/extend.texi: Add deprecated comment on sign-return-address
26813 function attribute and add mbranch-protection.
26814 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26815
26816 2019-04-03 Richard Biener <rguenther@suse.de>
26817
26818 PR lto/89896
26819 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26820 the all target phony.
26821
26822 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26823
26824 PR target/89902
26825 PR target/89903
26826 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26827 Return false for variable DImode shifts.
26828 (dimode_scalar_chain::compute_convert_gain): Do not handle
26829 register count operand in variable DImode shifts.
26830 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26831 count argument of a variable shift instruction to a vector register.
26832 (dimode_scalar_chain::convert_reg): Remove support to convert
26833 count argument of a variable shift instruction.
26834
26835 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26836
26837 PR rtl-optimization/84206
26838 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26839 iterating over loop headers.
26840
26841 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26842
26843 PR rtl-optimization/85876
26844 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26845 beyond the original fence.
26846
26847 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26848
26849 * config.gcc: Mark spu* targets as deprecated/obsolete.
26850
26851 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26852
26853 * config/s390/s390-builtin-types.def: New builtin function type
26854 definitions. Remove unused types.
26855 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26856 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26857 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26858 overloaded builtins.
26859 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26860 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26861 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26862 (vec_double, vec_signed, vec_unsigned): Define to use the new
26863 overloaded builtins.
26864 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26865 Remove expanders.
26866
26867 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26868
26869 * config/s390/s390-builtin-types.def: New builtin function type
26870 definitions.
26871 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26872 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26873 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26874 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26875 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26876 constant definitions.
26877 * config/s390/vecintrin.h (vec_search_string_cc)
26878 (vec_search_string_until_zero_cc): New builtin name definitions.
26879 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26880 expanders.
26881 ("vec_vstrs<mode>"): New insn definition.
26882
26883 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26884
26885 * config/s390/s390-builtin-types.def: Add new builtin function
26886 types.
26887 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26888 New overloaded builtins.
26889 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26890 s390_vsrd.
26891 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26892 (UNSPEC_VEC_SLDBYTE): ... this.
26893 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26894 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26895 definitions.
26896 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26897 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26898 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26899
26900 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26901
26902 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26903 New insn definition.
26904 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26905 * config/s390/vector.md (V_HW_HSD): ... here.
26906
26907 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26908
26909 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26910 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26911 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26912 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26913 New insn definitions.
26914
26915 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26916
26917 * config/s390/s390-builtin-types.def: Add new builtin function type.
26918 * config/s390/s390-builtins.def: Add overloaded builtin
26919 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26920 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26921 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26922 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26923 ("eltswap<mode>"): New expander.
26924 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26925 insn definitions.
26926
26927 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26928
26929 * config/s390/s390-builtin-types.def: Add new builtin function types.
26930 * config/s390/s390-builtins.def: Add overloaded builtin
26931 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26932 instructions.
26933 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26934 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26935 ("bswap<mode>"): New expander.
26936 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26937
26938 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26939
26940 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26941 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26942 vector builtin version number in __VEC__.
26943
26944 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26945
26946 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26947 iterators.
26948 (SFSI): New mode attribute.
26949 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26950 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26951 rename to ...
26952 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26953 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26954 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26955 ("floatsi<mode>2"): Add wcefb instruction.
26956
26957 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26958
26959 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26960 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26961 mode iterators.
26962 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26963 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26964 support 32 bit fp-int conversions. Rename to ...
26965 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26966 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26967 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26968 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26969 ... to these.
26970
26971 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26972
26973 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26974 if-then-else constructs if we can use the select instruction.
26975 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26976
26977 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26978
26979 * config/s390/s390.md ("*popcountdi_arch13_cc")
26980 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26981 definition.
26982 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26983 Append _z196 to make it ...
26984 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26985 ("popcounthi2_z196"): ... this.
26986 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26987 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26988
26989 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26990
26991 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26992 certain compares for arch13 in order to make use of the condition
26993 code result produced by the new instructions.
26994 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26995 nxrk, and nxgrk instruction patterns.
26996 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26997 (inv_no): Add new code iterator together with some attributes.
26998 ("*andc_split_<mode>"): Disable splitter for arch13.
26999 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
27000 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
27001 ("*<ANDOR:bitops_name>c<GPR:mode>")
27002 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
27003 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
27004 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
27005 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
27006
27007 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27008
27009 * common/config/s390/s390-common.c (processor_flags_table): New
27010 entry for arch13.
27011 * config.gcc: Support arch13 with the --with-arch= configure flag.
27012 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27013 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
27014 * config/s390/s390.c (s390_get_sched_attrmask)
27015 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27016 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27017 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27018 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27019 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27020 definitions.
27021 * config/s390/s390.opt: Support arch13 as processor type in
27022 command line options.
27023
27024 2019-04-02 Martin Liska <mliska@suse.cz>
27025
27026 PR translation/89912
27027 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27028 Fix param description of graphite-max-arrays-per-scop.
27029
27030 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27031
27032 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27033 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27034 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27035
27036 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27037
27038 PR rtl-optimization/85412
27039 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27040 sel_sched_region_1, not after.
27041
27042 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27043
27044 PR rtl-optimization/86928
27045 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27046 compute_live if necessary.
27047 (sel_redirect_edge_and_branch): Likewise.
27048
27049 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27050
27051 PR rtl-optimization/89865
27052 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27053 register if it is a part of small class.
27054
27055 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27056
27057 PR rtl-optimization/87273
27058 * sel-sched-ir.c (merge_fences): Remove assert.
27059
27060 2019-04-01 Richard Biener <rguenther@suse.de>
27061
27062 PR tree-optimization/46590
27063 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27064 (dom_walker::m_reachability): Add in place of...
27065 (dom_walker::m_skip_unreachable_blocks): ...this.
27066 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27067 Move complex initialization ...
27068 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27069 lazily and initialize edge flags on each invocation.
27070 (dom_walker::bb_reachable): Use m_reachability.
27071
27072 2019-04-01 Martin Liska <mliska@suse.cz>
27073
27074 PR driver/89861
27075 * opt-suggestions.c (option_proposer::build_option_suggestions):
27076 Add variant without any argument in order to provide better
27077 hints.
27078
27079 2019-04-01 Richard Biener <rguenther@suse.de>
27080
27081 PR c/71598
27082 * gimple.c: Include langhooks.h.
27083 (gimple_get_alias_set): Treat enumeral types as the underlying
27084 integer type.
27085
27086 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27087 Eric Botcazou <ebotcazou@adacore.com>
27088
27089 PR rtl-optimization/89862
27090 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27091 that operates on the full registers for WORD_REGISTER_OPERATIONS
27092 architectures.
27093
27094 2019-03-29 Jim Wilson <jimw@sifive.com>
27095
27096 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27097 Clear MASK_RVC and then set if C subset supported.
27098
27099 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27100
27101 PR c/89872
27102 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27103 non-addressable complit into its initializer if it is volatile.
27104
27105 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27106
27107 * opts-common.c (integral_argument): Set errno properly in one case.
27108
27109 2019-03-29 Martin Liska <mliska@suse.cz>
27110
27111 * doc/invoke.texi: Remove -Wchkp from documentation.
27112
27113 2019-03-29 Martin Liska <mliska@suse.cz>
27114
27115 * dbgcnt.c (print_limit_reach): New function.
27116 (dbg_cnt): Use it.
27117
27118 2019-03-29 Martin Liska <mliska@suse.cz>
27119
27120 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27121 (dbg_cnt_process_opt): Parse first tokens aas
27122 dbg_cnt_process_single_pair is also using strtok.
27123
27124 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27125
27126 PR rtl-optimization/87485
27127 * function.c (expand_function_end): Move stack_protect_epilogue
27128 before loading of return value into hard register(s).
27129
27130 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27131
27132 PR middle-end/89621
27133 * tree-inline.h (struct copy_body_data): Add
27134 dont_remap_vla_if_no_change flag.
27135 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27136 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27137 and remap_type_2 returns false.
27138 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27139 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27140 only from where it is copied to nested contexts.
27141
27142 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27143
27144 PR target/89865
27145 * config/i386/i386.md (RMW operation with LEA peephole):
27146 Use LEAMODE mode attribute instead of SWI mode iterator for
27147 LEA pattern.
27148
27149 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27150
27151 PR target/89848
27152 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27153 Also process XEXP (src, 0) of a shift insn.
27154
27155 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27156
27157 PR middle-end/89725
27158 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27159 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27160
27161 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27162
27163 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27164 test.
27165 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27166 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27167 immediately after first one with df_analyze in between, but rather
27168 process all bbs, queueing ones that need second pass in a worklist,
27169 df_analyze, process queued debug insn changes and if second pass is
27170 needed, process bbs from worklist, df_analyze, process queued debug
27171 insns again.
27172
27173 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27174 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27175 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27176
27177 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27178
27179 PR c/79022
27180 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27181 definition.
27182
27183 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27184
27185 PR target/85667
27186 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27187 function for 32-bit MS_ABI.
27188 (function_value_ms_32): New function.
27189
27190 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27191
27192 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27193 (movdi): Call gen_movdi_symbol_save_scc.
27194 (gen_movdi_symbol_save_scc): New insn and split.
27195
27196 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27197
27198 PR rtl-optimization/89313
27199 * function.c (matching_constraint_num): New static function.
27200 (match_asm_constraints_1): Use it. Fixup white space and comment.
27201 Don't replace inputs with non-matching constraints which conflict
27202 with early clobber outputs.
27203
27204 2019-03-27 Jeff Law <law@redhat.com>
27205
27206 PR rtl-optimization/87761
27207 PR rtl-optimization/89826
27208 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27209 slightly later.
27210 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27211 note problem to get REG_DEAD/REG_UNUSED notes updated.
27212
27213 2019-03-27 Richard Biener <rguenther@suse.de>
27214
27215 PR tree-optimization/89463
27216 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
27217 queue edges to remove.
27218 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
27219 dead stmts. Delay edge removal until PHIs are removed to
27220 make debug-stmt creation not confused by seemingly degenerate
27221 PHIs.
27222
27223 2019-03-27 Alan Modra <amodra@gmail.com>
27224
27225 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
27226 throughout file.
27227 * config/rs6000/darwin.h: Likewise.
27228 * config/rs6000/rs6000.c: Likewise.
27229
27230 2019-03-27 Alan Modra <amodra@gmail.com>
27231
27232 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
27233 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
27234
27235 2019-03-26 Andrew Waterman <andrew@sifive.com>
27236 Jim Wilson <jimw@sifive.com>
27237
27238 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
27239 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
27240 (generic_idivdi, generic_fmul_single, generic_fmul_double)
27241 (generic_fdiv, generic_fsqrt): Add check for generic tune.
27242 (generic_alu): Add auipc to type list.
27243 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
27244 (riscv_microarchitecture): Declare.
27245 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
27246 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
27247 field.
27248 (riscv_microarchitecture): New.
27249 (sifive_7_tune_info): New.
27250 (riscv_cpu_info_table): Add microarchitecture value for rocket and
27251 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
27252 entries.
27253 (riscv_store_data_bypass_p): New.
27254 (riscv_option_override): Set riscv_microarchitecture from
27255 cpu->microarchitecture.
27256 * config/riscv/riscv.md: Include sifive-7.md.
27257 (type): Add auipc.
27258 (tune): New.
27259 (auipc<mode>): Change type to auipc.
27260 (restore_stack_nonlocal): New.
27261 * config/riscv/sifive-7.md: New.
27262 * doc/invoke.texi (RISC-V Options): Update mtune docs.
27263
27264 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
27265
27266 PR target/89827
27267 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
27268 Also process XEXP (src, 0) of a shift insn.
27269
27270 2019-03-26 Richard Biener <rguenther@suse.de>
27271
27272 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
27273 (copy_debug_stmt): Likewise.
27274 (expand_call_inline): Likewise.
27275 (copy_bb): Avoid redundant lookup & set of gimple_block.
27276 * gimple-low.c (lower_gimple_return): Likewise.
27277 (lower_builtin_setjmp): Likewise.
27278
27279 2019-03-26 Jakub Jelinek <jakub@redhat.com>
27280
27281 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
27282 is constant 0, turn into static const data member initialized to false.
27283 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
27284 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
27285
27286 2019-03-26 Jason Merrill <jason@redhat.com>
27287 Jakub Jelinek <jakub@redhat.com>
27288
27289 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
27290 method.
27291 (mem_alloc_description::release_object_overhead): Fix comment typos.
27292 * hash-table.h (hash_table::~hash_table): Call
27293 release_instance_overhead only if m_entries is non-NULL, otherwise
27294 call unregister_descriptor.
27295
27296 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
27297
27298 PR tree-optimization/81740
27299 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27300 In case of outer loop vectorization, check for backward dependence
27301 at the inner loop if outer loop dependence is reversed.
27302
27303 2019-03-26 Alan Modra <amodra@gmail.com>
27304
27305 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
27306 rs6000_vector_mem init. Correct wI and wJ comment.
27307
27308 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
27309
27310 PR rtl-optimization/88347
27311 PR rtl-optimization/88423
27312 * sched-deps.c (sched_analyze_insn): Take into account that for
27313 tablejumps the barrier appears after a label and a jump_table_data.
27314
27315 2019-03-25 Martin Sebor <msebor@redhat.com>
27316
27317 PR c/89812
27318 * c-common.c (check_user_alignment): Rename local. Correct maximum
27319 alignment in diagnostic. Avoid assuming argument fits in SHWI,
27320 convert it to UHWI when it fits.
27321
27322 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
27323
27324 PR debug/86964
27325 * dwarf2out.c (premark_used_variables): New function.
27326 (prune_unused_types_walk): Do not mark not premarked external
27327 variables.
27328 (prune_unused_types): Call premark_used_variables.
27329
27330 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
27331
27332 PR rtl-optimization/89676
27333 * lra-constraints.c (curr_insn_transform): Do match reload for
27334 early clobbers when the match was successful only for different
27335 registers.
27336
27337 2019-03-25 Martin Sebor <msebor@redhat.com>
27338
27339 * doc/extend.texi (Common Type Attributes): Document vector_size.
27340 (Common Variable Attributes): Mention size constraint. Correct
27341 quoting and typos.
27342 (Vector Extensions): Use @dfn when defining bas type. Clarify
27343 base type and size constraints.
27344
27345 2019-03-25 Richard Biener <rguenther@suse.de>
27346
27347 PR tree-optimization/89789
27348 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
27349 changes from non-undefined back to undefined.
27350
27351 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
27352
27353 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
27354 heap string and a gc string, but since this variable is unknown to
27355 ggc the gc string might get reused and corrupted. Fixed by always
27356 using a heap string.
27357
27358 2019-03-25 Richard Biener <rguenther@suse.de>
27359
27360 PR tree-optimization/89779
27361 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
27362 to remove IV defs, delay actual removal.
27363 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
27364 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
27365 very end, properly also reset loop control IV information.
27366
27367 2019-03-25 Richard Biener <rguenther@suse.de>
27368
27369 PR tree-optimization/89802
27370 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
27371 move EH data to folded stmt.
27372
27373 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27374
27375 * config/s390/s390-builtin-types.def: Remove few unused types and
27376 fix sort order for others.
27377
27378 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27379
27380 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
27381 expected and found types with -mdebug during builtin matching.
27382
27383 2019-03-25 Richard Biener <rguenther@suse.de>
27384
27385 PR middle-end/89790
27386 * fold-const.c (operand_equal_p): Revert last change with
27387 updated comment.
27388
27389 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27390
27391 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27392 notes for the result of the __tls_get_addr calls.
27393 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27394
27395 2019-03-24 Jeff Law <law@redhat.com>
27396
27397 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27398
27399 PR rtl-optimization/87761
27400 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27401 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27402 as needed.
27403 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27404 rescans. Reprocess blocks as needed, calling df_analyze before
27405 reprocessing. Always call df_analyze before fixing up debug bind
27406 insns.
27407
27408 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27409
27410 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27411 big endian.
27412
27413 2019-03-22 Andrew Pinski <apinski@marvell.com>
27414
27415 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27416 attrribute for uxtw.
27417
27418 2019-03-26 Jeff Law <law@redhat.com>
27419
27420 PR rtl-optimization/87761
27421 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27422 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27423 (mips_split_move): Accept new INSN argument. Try to forward SRC
27424 into the next instruction.
27425 (mips_split_move_insn): Pass INSN through to mips_split_move.
27426
27427 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
27428
27429 PR rtl-optimization/89676
27430 * lra-constraints.c (curr_insn_transform): Do match reload for
27431 early clobbers even if the match was successful.
27432
27433 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27434
27435 PR c++/87481
27436 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
27437
27438 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
27439
27440 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
27441
27442 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27443
27444 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
27445 <avx512>_fmsub_<mode>_mask3<round_name>,
27446 <avx512>_fnmadd_<mode>_mask3<round_name>,
27447 <avx512>_fnmsub_<mode>_mask3<round_name>,
27448 avx512f_vmfmadd_<mode>_mask3<round_name>,
27449 avx512f_vmfmsub_<mode>_mask3<round_name>,
27450 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
27451 instead of register_operand and %v instead of v for match_operand 1.
27452 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
27453 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
27454 <round_nimm_predicate> instead of register_operand and %v instead of v
27455 for match_operand 1.
27456
27457 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
27458 <avx512>_fmadd_<mode>_mask3<round_name>,
27459 <avx512>_fmsub_<mode>_mask<round_name>,
27460 <avx512>_fmsub_<mode>_mask3<round_name>,
27461 <avx512>_fnmadd_<mode>_mask<round_name>,
27462 <avx512>_fnmadd_<mode>_mask3<round_name>,
27463 <avx512>_fnmsub_<mode>_mask<round_name>,
27464 <avx512>_fnmsub_<mode>_mask3<round_name>,
27465 <avx512>_fmaddsub_<mode>_mask<round_name>,
27466 <avx512>_fmaddsub_<mode>_mask3<round_name>,
27467 <avx512>_fmsubadd_<mode>_mask<round_name>,
27468 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
27469 <round_nimm_predicate> instead of nonimmediate_operand.
27470 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
27471 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
27472 Use register_operand instead of <round_nimm_predicate> for the
27473 operand that needs to match output.
27474 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
27475 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
27476 Likewise. Formatting fixes.
27477
27478 PR target/89784
27479 * config/i386/i386.c (enum ix86_builtins): Remove
27480 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
27481 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
27482 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
27483 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
27484 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
27485 __builtin_ia32_vfmsubss3_mask3): New builtins.
27486 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
27487 avx512f_vmfmadd_<mode>_mask3<round_name>,
27488 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
27489 *avx512f_vmfmsub_<mode>_mask<round_name>,
27490 avx512f_vmfmsub_<mode>_mask3<round_name>,
27491 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
27492 *avx512f_vmfnmadd_<mode>_mask<round_name>,
27493 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
27494 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
27495 *avx512f_vmfnmsub_<mode>_mask<round_name>,
27496 avx512f_vmfnmsub_<mode>_mask3<round_name>,
27497 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
27498 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
27499 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
27500 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
27501 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
27502 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
27503 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
27504 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
27505 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
27506 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
27507 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
27508 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
27509 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
27510 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
27511 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
27512 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
27513 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
27514 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
27515 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
27516 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
27517 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
27518 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
27519
27520 2019-03-21 Martin Sebor <msebor@redhat.com>
27521
27522 PR tree-optimization/89350
27523 * builtins.c (compute_objsize): Also ignore offsets whose upper
27524 bound is negative.
27525 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
27526 (builtin_memref::builtin_memref): Initialize new member.
27527 Allow EXPR to be null.
27528 (builtin_memref::extend_offset_range): Replace local with a member.
27529 Avoid assuming pointer offsets are unsigned.
27530 (builtin_memref::set_base_and_offset): Determine base object
27531 before computing offset range.
27532 (builtin_access::builtin_access): Handle memset.
27533 (builtin_access::generic_overlap): Replace local with a member.
27534 (builtin_access::strcat_overlap): Same.
27535 (builtin_access::overlap): Same.
27536 (maybe_diag_overlap): Same.
27537 (maybe_diag_access_bounds): Same.
27538 (wrestrict_dom_walker::check_call): Handle memset.
27539 (check_bounds_or_overlap): Same.
27540
27541 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
27542 Jakub Jelinek <jakub@redhat.com>
27543
27544 PR lto/89692
27545 * tree.c (fld_type_variant, fld_incomplete_type_of,
27546 fld_process_array_type): Call fld->pset.add and don't call
27547 add_tree_to_fld_list if it returns true.
27548 (free_lang_data_in_type): Similarly with self-recursive call. Purge
27549 non-marked types from TYPE_NEXT_VARIANT list.
27550 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
27551
27552 2019-03-21 Jakub Jelinek <jakub@redhat.com>
27553
27554 * hash-table.h (hash_table): Add Lazy template parameter defaulted
27555 to false, if true, don't alloc_entries during construction, but defer
27556 it to the first method that needs m_entries allocated.
27557 (hash_table::hash_table, hash_table::~hash_table,
27558 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
27559 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
27560 hash_table::clear_slot, hash_table::traverse_noresize,
27561 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
27562 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
27563 false.
27564 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
27565 NO_INSERT instead of find_with_hash.
27566 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
27567 hash_set::m_table): Add Lazy to template params of hash_table.
27568 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27569 * attribs.c (test_attribute_exclusions): Likewise.
27570 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27571 hash_set. Add tests for hash_set with Lazy = true.
27572
27573 2019-03-21 Richard Biener <rguenther@suse.de>
27574
27575 PR tree-optimization/89779
27576 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27577 checks with respect to released SSA names now having error_mark_node
27578 type.
27579 * fold-const.c (operand_equal_p): Likewise.
27580
27581 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27582
27583 PR target/89775
27584 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27585 available to ...
27586 (s390_optimize_register_info): Use global_not_special_regno_p to
27587 check for global regs.
27588
27589 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27590
27591 PR target/89752
27592 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27593 update this_alternative nor this_alternative_set.
27594
27595 2019-03-19 Jim Wilson <jimw@sifive.com>
27596
27597 PR target/89411
27598 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27599 align, size, offset. Use them to handle a BLKmode reference. Update
27600 comment.
27601 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27602
27603 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27604
27605 PR rtl-optimization/89768
27606 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27607 instead of GEN_INT.
27608 (unroll_loop_runtime_iterations): Likewise.
27609
27610 2019-03-19 Martin Sebor <msebor@redhat.com>
27611
27612 PR tree-optimization/89644
27613 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27614 rather than endptr as an indicator of nul-termination.
27615
27616 PR tree-optimization/89644
27617 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27618 arrays in determining sequence sizes in strncpy and stpncpy.
27619
27620 2019-03-19 Martin Liska <mliska@suse.cz>
27621
27622 PR middle-end/89737
27623 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27624 unlikely_edges if there's an edge that belongs to both these sets.
27625
27626 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27627
27628 PR target/89746
27629 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27630 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27631 go via a stack temporary.
27632
27633 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27634
27635 PR target/89378
27636 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27637 instead of gen_rtx_SUBREG.
27638 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27639
27640 2019-03-19 Richard Biener <rguenther@suse.de>
27641
27642 PR debug/88389
27643 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27644
27645 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27646
27647 PR lto/87809
27648 PR lto/89335
27649 * tree.c (free_lang_data_in_decl): Do not free context of C++
27650 destrutors.
27651
27652 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27653
27654 PR target/89506
27655 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27656 subs for the first alternative except when operands[3] is 1.
27657
27658 PR target/89752
27659 * gimplify.c (gimplify_asm_expr): For output argument with
27660 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27661 diagnose error.
27662
27663 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27664
27665 PR rtl-optimization/89753
27666 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27667 explicit unrolling factor even more robust.
27668
27669 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27670
27671 PR target/89726
27672 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27673 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27674 signed zeros, do another copysign after the compensation.
27675
27676 2019-03-18 Martin Sebor <msebor@redhat.com>
27677
27678 PR tree-optimization/89720
27679 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27680 more conservatively, the same as anti-range.
27681
27682 2019-03-18 Richard Biener <rguenther@suse.de>
27683
27684 PR middle-end/88945
27685 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27686 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27687 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27688 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27689
27690 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27691
27692 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27693 Extend queue to 1024 entries.
27694 Add "consumed" field.
27695 (gomp_print_output): Remove print_index parameter.
27696 Add final parameter.
27697 Change limit to unsigned.
27698 Use consumed field to implement circular buffer.
27699 Detect interrupted print in final pass.
27700 Flush output at the end.
27701 (run): Update gomp_print_output usage.
27702 (main): Initialize kernargs->output_data.consumed.
27703
27704 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27705
27706 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27707 calculation of the minimum number of scalar iterations for
27708 fully-predicated loops.
27709
27710 2019-03-18 Martin Jambor <mjambor@suse.cz>
27711
27712 PR tree-optimization/89546
27713 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27714 any propagation to its children took place.
27715
27716 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27717
27718 PR target/89627
27719 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27720 parameter, and make use of it.
27721 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27722
27723 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27724
27725 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27726 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27727 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27728 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27729 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27730 match what the ops is doing.
27731 (push_multi_fp_blink): Likewise.
27732 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27733 compiling for size and elf target.
27734 (arc_save_callee_enter): Adjust note to match what enter/leave
27735 operation does.
27736
27737 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27738
27739 * config/arc/arc.md (tst_movb): Fix constraint.
27740
27741 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27742
27743 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27744
27745 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27746
27747 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27748 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27749 reg_alloc_order references.
27750 (size_alloc_order): Define.
27751 (arc_adjust_reg_alloc_order): New function.
27752 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27753 order.
27754 (ADJUST_REG_ALLOC_ORDER): Define.
27755 (HONOR_REG_ALLOC_ORDER): Likewise.
27756
27757 2019-03-18 Richard Biener <rguenther@suse.de>
27758
27759 PR target/87561
27760 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27761 loads and stores a bit more.
27762
27763 2019-03-18 Richard Biener <rguenther@suse.de>
27764
27765 PR target/87561
27766 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27767 load pessimization to stores as well.
27768
27769 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27770
27771 PR middle-end/86979
27772 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27773 successor, use NULL as its av set.
27774
27775 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27776
27777 PR rtl-optimization/89721
27778 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27779
27780 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27781
27782 PR target/87532
27783 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27784 When handling vec_extract, use modular arithmetic to allow
27785 constant selectors greater than vector length.
27786 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27787 V1TImode vectors to have constant selector values greater than 0.
27788 Use modular arithmetic to compute vector index.
27789 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27790 index for in-memory vectors. Correct code generation for
27791 in-register vectors.
27792 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27793 compute index.
27794
27795 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27796
27797 PR c++/88534
27798 PR c++/88537
27799 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27800 VAR_DECL args.
27801
27802 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27803
27804 PR c++/89709
27805 * tree.c (inchash::add_expr): Strip any location wrappers.
27806 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27807 after hash verification.
27808
27809 PR debug/89704
27810 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27811 SIGN_EXTEND and ZERO_EXTEND.
27812
27813 2019-03-14 Jason Merrill <jason@redhat.com>
27814 Jakub Jelinek <jakub@redhat.com>
27815
27816 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27817 than if is_empty (*slot).
27818 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27819 existing elt and for elt removal.
27820 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27821 of already removed elt.
27822
27823 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27824
27825 PR target/89650
27826 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27827 REG_EH_REGION note.
27828
27829 2019-03-14 Martin Liska <mliska@suse.cz>
27830
27831 PR other/89712
27832 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27833
27834 2019-03-14 Richard Biener <rguenther@suse.de>
27835
27836 PR target/89711
27837 * config/i386/i386.c (make_resolver_func): Properly set
27838 DECL_CONTEXT on the RESULT_DECL.
27839 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27840
27841 2019-03-14 Richard Biener <rguenther@suse.de>
27842
27843 * gimple-pretty-print.c: Include cfgloop.h.
27844 (dump_gimple_phi): Adjust.
27845 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27846 (pp_cfg_jump): Adjust.
27847 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27848 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27849 (lower_phi_internal_fn): Remove.
27850 (verify_gimple_call): Remove IFN_PHI special-casing.
27851 (dump_function_to_file): Dump IL state.
27852 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27853 done to deal with PHI nodes being present in non-SSA state.
27854
27855 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27856
27857 PR ipa/89684
27858 * multiple_target.c (create_dispatcher_calls): Change
27859 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27860 In the node->iterate_referring loop, push *ref rather than ref, call
27861 ref->remove_reference () and always pass 0 to iterate_referring.
27862
27863 PR rtl-optimization/89679
27864 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27865 would contain a paradoxical SUBREG.
27866
27867 2019-03-14 Richard Biener <rguenther@suse.de>
27868
27869 PR tree-optimization/89710
27870 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27871 safe_dyn_cast.
27872
27873 2019-03-14 Martin Liska <mliska@suse.cz>
27874
27875 * coverage.c (coverage_begin_function): Stream also
27876 end_column.
27877 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27878 documentation about function declaration location.
27879 * gcov-dump.c (tag_function): Print whole range
27880 of function declaration.
27881 * gcov.c (struct function_info): Add end_column field.
27882 (function_info::function_info): Initialize it.
27883 (output_json_intermediate_file): Output {start,end}_column
27884 fields.
27885 (read_graph_file): Read end_column.
27886
27887 2019-03-14 Richard Biener <rguenther@suse.de>
27888
27889 PR middle-end/89698
27890 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27891 that the access types are similar.
27892
27893 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27894
27895 PR tree-optimization/89703
27896 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27897 aren't compatible also with builtin_decl_explicit. Check pure
27898 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27899 and BUILT_IN_STPNCPY{,_CHK}.
27900
27901 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27902
27903 PR target/89523
27904 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27905 addr32 prefix to VSIB address for X32.
27906 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27907 "%M2" to opcode.
27908 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27909 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27910 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27911 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27912 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27913 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27914 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27915 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27916 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27917 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27918 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27919 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27920 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27921 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27922 (*avx512f_scatterdi<mode>): Likewise.
27923
27924 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27925
27926 PR target/85860
27927 * lra-constraints.c (inherit_in_ebb): Update
27928 potential_reload_hard_regs along with live_hard_regs.
27929
27930 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27931
27932 PR debug/89498
27933 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27934 DWARF_OFFSET_SIZE.
27935 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27936
27937 2019-03-13 Martin Sebor <msebor@redhat.com>
27938
27939 PR tree-optimization/89662
27940 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27941 has a size.
27942
27943 2019-03-13 Richard Biener <rguenther@suse.de>
27944
27945 PR middle-end/89677
27946 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27947 throw FP expressions at tree-affine.
27948
27949 2019-03-14 Richard Biener <rguenther@suse.de>
27950
27951 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27952 dump negative integer constants using _Literal (type) -num.
27953
27954 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27955
27956 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27957 nonlocal_value member.
27958
27959 PR middle-end/88588
27960 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27961 (ipa_simd_modify_function_body): Handle PHIs.
27962
27963 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27964
27965 * config/s390/s390.c (s390_option_override_internal): Use more
27966 aggressive inlining parameters.
27967
27968 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27969
27970 * config/s390/3906.md: New file.
27971 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27972 (LONGRUNNING_THRESHOLD): Remove.
27973 (MAX_SCHED_MIX_SCORE): Decrease.
27974 (MAX_SCHED_MIX_DISTANCE): Decrease.
27975 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27976 (struct s390_sched_state): New struct to hold scheduling state.
27977 (S390_SCHED_STATE_NORMAL): Remove.
27978 (S390_SCHED_STATE_CRACKED): Remove.
27979 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27980 (s390_get_sched_attrmask): Use new attribute.
27981 (s390_get_unit_mask): Use new units.
27982 (s390_is_fpd): New function.
27983 (s390_is_fxd): New function.
27984 (s390_is_longrunning): New function.
27985 (s390_sched_score): Use new functions.
27986 (s390_sched_reorder): Likewise.
27987 (s390_sched_variable_issue): Rework and use new functions.
27988 (s390_sched_init): Use new functions.
27989 * config/s390/s390.h (s390_tune_attr): Add z14.
27990 * config/s390/s390.md: Add z14.
27991
27992 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27993
27994 * config/s390/2964.md: Update pipeline description.
27995 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27996 (LONGRUNNING_THRESHOLD): Remove.
27997 (LATENCY_FACTOR): Remove.
27998 (s390_get_unit_mask): Add unit.
27999 (s390_sched_score): Use fxd/fpd.
28000 (s390_sched_variable_issue): Use fxd/fpd.
28001
28002 2019-03-12 Martin Liska <mliska@suse.cz>
28003
28004 * config/i386/i386.c: Reword an error message.
28005
28006 2019-03-12 Martin Jambor <mjambor@suse.cz>
28007
28008 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
28009 terminate with newline.
28010
28011 2019-03-12 Jakub Jelinek <jakub@redhat.com>
28012
28013 PR target/52726
28014 * config/s390/s390.md (tabort): Use %wd instead of
28015 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28016 letters and periods.
28017 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28018 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28019 's with %< and %>.
28020
28021 PR middle-end/89663
28022 * builtins.c (expand_builtin_int_roundingfn,
28023 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28024 gcc_unreachable if validate_arglist fails.
28025
28026 2019-03-12 Richard Biener <rguenther@suse.de>
28027
28028 PR tree-optimization/89664
28029 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28030 free the occurance tree after the early out.
28031
28032 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28033
28034 PR middle-end/89655
28035 PR bootstrap/89656
28036 * vr-values.c (vr_values::update_value_range): If
28037 old_vr->varying_p (), don't update it, make new_vr also VARYING
28038 and return false.
28039
28040 2019-03-11 Martin Liska <mliska@suse.cz>
28041
28042 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28043 Fix double string quoting.
28044
28045 2019-03-11 Martin Liska <mliska@suse.cz>
28046
28047 * collect-utils.c (collect_wait): Wrap apostrophes
28048 in gcc internal format with %'.
28049 * collect2.c (main): Likewise.
28050 (scan_prog_file): Likewise.
28051 (scan_libraries): Likewise.
28052 * config/i386/i386.c (ix86_expand_call): Likewise.
28053 (ix86_handle_interrupt_attribute): Likewise.
28054 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28055 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28056 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28057 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28058 * symtab.c (symtab_node::verify_base): Likewise.
28059 * tree-cfg.c (verify_gimple_label): Likewise.
28060 * tree.c (verify_type_variant): Likewise.
28061
28062 2019-03-11 Martin Liska <mliska@suse.cz>
28063
28064 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28065 in a string format message and fix GNU coding style.
28066 (expand_builtin_set_thread_pointer): Likewise.
28067 * common/config/aarch64/aarch64-common.c
28068 (aarch64_rewrite_selected_cpu): Likewise.
28069 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28070 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28071 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28072 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28073 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28074 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28075 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28076 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28077 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28078 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28079 Likewise.
28080 * common/config/riscv/riscv-common.c
28081 (riscv_subset_list::parsing_subset_version): Likewise.
28082 (riscv_subset_list::parse_std_ext): Likewise.
28083 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28084 (riscv_subset_list::parse): Likewise.
28085 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28086 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28087 (aarch64_override_options_internal): Likewise.
28088 (aarch64_validate_mcpu): Likewise.
28089 (aarch64_validate_march): Likewise.
28090 (aarch64_validate_mtune): Likewise.
28091 (aarch64_override_options): Likewise.
28092 * config/alpha/alpha.c (alpha_option_override): Likewise.
28093 * config/arc/arc.c (arc_init): Likewise.
28094 (parse_mrgf_banked_regs_option): Likewise.
28095 (arc_override_options): Likewise.
28096 (arc_expand_builtin_aligned): Likewise.
28097 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28098 (arm_expand_builtin): Likewise.
28099 * config/arm/arm.c (arm_option_check_internal): Likewise.
28100 (arm_configure_build_target): Likewise.
28101 (arm_option_override): Likewise.
28102 (arm_options_perform_arch_sanity_checks): Likewise.
28103 (arm_handle_cmse_nonsecure_entry): Likewise.
28104 (arm_handle_cmse_nonsecure_call): Likewise.
28105 (arm_tls_referenced_p): Likewise.
28106 (thumb1_expand_prologue): Likewise.
28107 * config/avr/avr.c (avr_option_override): Likewise.
28108 * config/bfin/bfin.c (bfin_option_override): Likewise.
28109 * config/c6x/c6x.c (c6x_option_override): Likewise.
28110 * config/cr16/cr16.c (cr16_override_options): Likewise.
28111 * config/cris/cris.c (cris_option_override): Likewise.
28112 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28113 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28114 * config/darwin.c (darwin_override_options): Likewise.
28115 * config/frv/frv.c (frv_expand_builtin): Likewise.
28116 * config/h8300/h8300.c (h8300_option_override): Likewise.
28117 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28118 (ix86_option_override_internal): Likewise.
28119 (warn_once_call_ms2sysv_xlogues): Likewise.
28120 (ix86_expand_prologue): Likewise.
28121 (split_stack_prologue_scratch_regno): Likewise.
28122 (ix86_warn_parameter_passing_abi): Likewise.
28123 * config/ia64/ia64.c (fix_range): Likewise.
28124 * config/m68k/m68k.c (m68k_option_override): Likewise.
28125 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28126 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28127 (mips_set_compression_mode): Likewise.
28128 * config/mmix/mmix.c (mmix_option_override): Likewise.
28129 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28130 * config/msp430/msp430.c (msp430_option_override): Likewise.
28131 * config/nds32/nds32.c (nds32_option_override): Likewise.
28132 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28133 (nios2_option_override): Likewise.
28134 (nios2_expand_custom_builtin): Likewise.
28135 * config/nvptx/mkoffload.c (main): Likewise.
28136 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28137 * config/pa/pa.c (fix_range): Likewise.
28138 (pa_option_override): Likewise.
28139 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28140 (riscv_option_override): Likewise.
28141 * config/rl78/rl78.c (rl78_option_override): Likewise.
28142 * config/rs6000/aix61.h: Likewise.
28143 * config/rs6000/aix71.h: Likewise.
28144 * config/rs6000/aix72.h: Likewise.
28145 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28146 * config/rs6000/freebsd64.h: Likewise.
28147 * config/rs6000/linux64.h: Likewise.
28148 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28149 (rs6000_expand_zeroop_builtin): Likewise.
28150 (rs6000_expand_mtfsb_builtin): Likewise.
28151 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28152 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28153 (rs6000_invalid_builtin): Likewise.
28154 (rs6000_expand_split_stack_prologue): Likewise.
28155 * config/rs6000/rtems.h: Likewise.
28156 * config/rx/rx.c (valid_psw_flag): Likewise.
28157 (rx_expand_builtin): Likewise.
28158 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28159 * config/s390/s390.c (s390_expand_builtin): Likewise.
28160 (s390_function_profiler): Likewise.
28161 (s390_option_override_internal): Likewise.
28162 (s390_option_override): Likewise.
28163 * config/sh/sh.c (sh_option_override): Likewise.
28164 (sh_builtin_saveregs): Likewise.
28165 (sh_fix_range): Likewise.
28166 * config/sh/vxworks.h: Likewise.
28167 * config/sparc/sparc.c (sparc_option_override): Likewise.
28168 * config/spu/spu.c (spu_option_override): Likewise.
28169 (fix_range): Likewise.
28170 * config/visium/visium.c (visium_option_override): Likewise.
28171 (visium_handle_interrupt_attr): Likewise.
28172 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28173 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28174 (dbg_cnt_process_opt): Likewise.
28175 * dwarf2out.c (output_dwarf_version): Likewise.
28176 * except.c (expand_eh_return): Likewise.
28177 * gcc.c (defined): Likewise.
28178 (driver_handle_option): Likewise.
28179 (process_command): Likewise.
28180 (compare_files): Likewise.
28181 (driver::prepare_infiles): Likewise.
28182 (driver::do_spec_on_infiles): Likewise.
28183 (driver::maybe_run_linker): Likewise.
28184 * omp-offload.c (oacc_parse_default_dims): Likewise.
28185 * opts-global.c (handle_common_deferred_options): Likewise.
28186 * opts.c (parse_sanitizer_options): Likewise.
28187 (common_handle_option): Likewise.
28188 (enable_warning_as_error): Likewise.
28189 * passes.c (enable_disable_pass): Likewise.
28190 * plugin.c (parse_plugin_arg_opt): Likewise.
28191 (default_plugin_dir_name): Likewise.
28192 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28193 (default_pch_valid_p): Likewise.
28194 * toplev.c (init_asm_output): Likewise.
28195 (process_options): Likewise.
28196 (toplev::run_self_tests): Likewise.
28197 * tree-cfg.c (verify_gimple_call): Likewise.
28198 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28199 (tree_inlinable_function_p): Likewise.
28200 * var-tracking.c (vt_find_locations): Likewise.
28201
28202 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28203
28204 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28205 only on the else branch.
28206
28207 2019-03-11 Martin Liska <mliska@suse.cz>
28208
28209 * gcov.c (output_intermediate_json_line): Print function
28210 name of each line.
28211 (output_json_intermediate_file): Add new argument.
28212 * doc/gcov.texi: Document the change.
28213
28214 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
28215
28216 PR rtl-optimization/89588
28217 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28218 explicit unrolling factor more robust.
28219
28220 2019-03-11 Richard Biener <rguenther@suse.de>
28221
28222 PR tree-optimization/89649
28223 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
28224 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
28225 on the prolog and epilog loops.
28226 (vect_loop_versioning): Return copy of loop.
28227 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
28228 on the non-vectorized version of the loop.
28229
28230 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
28231
28232 PR target/68924
28233 * config/i386/sse.md (*vec_extractv2di_0_sse):
28234 Add (=r,x) alternative and corresponding splitter.
28235
28236 2019-03-10 Martin Jambor <mjambor@suse.cz>
28237
28238 PR tree-optimization/85762
28239 PR tree-optimization/87008
28240 PR tree-optimization/85459
28241 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
28242 it points to if there is a type changing MEM_REF. Adjust all callers.
28243 (build_accesses_from_assign): Disable total scalarization if
28244 contains_vce_or_bfcref_p returns true through the new parameter, for
28245 both rhs and lhs.
28246
28247 2019-03-09 Jakub Jelinek <jakub@redhat.com>
28248
28249 PR c/88568
28250 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
28251 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
28252
28253 PR target/79645
28254 * common.opt (fdiagnostics-show-labels,
28255 fdiagnostics-show-line-numbers, fdiagnostics-format=,
28256 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
28257 gas-locview-support, ginline-points, ginternal-reset-location-views):
28258 Terminate description text with a dot.
28259 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
28260 * config/mcore/mcore.opt (m210, m340): Likewise.
28261 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
28262 mnops=): Start description text with a capital letter.
28263 * config/arc/arc.opt (msize-level=): Likewise.
28264 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
28265 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
28266 mnewlib): Likewise.
28267 * config/ft32/ft32.opt (msim): Likewise.
28268 (mft32b, mcompress): Likewise. Terminate description text with a dot.
28269 (mnodiv, mnopm): Terminate description text with a dot.
28270 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
28271 a colon.
28272 * config/i386/i386.opt (prefer_vector_width, instrument_return):
28273 Likewise.
28274 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
28275 text.
28276
28277 PR rtl-optimization/89634
28278 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
28279 are modified in BB_END (e->src) instruction.
28280
28281 2019-03-08 David Malcolm <dmalcolm@redhat.com>
28282
28283 PR target/79926
28284 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
28285 messages more amenable to translation, and improve wording.
28286
28287 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
28288
28289 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
28290 ud- and du-chains between phases.
28291
28292 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
28293
28294 PR debug/89631
28295 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
28296 instead of POLY_INT_CST.
28297
28298 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
28299
28300 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
28301 requirement.
28302
28303 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
28304
28305 PR target/68924
28306 PR target/78782
28307 PR target/87558
28308 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
28309 (_mm_storeu_si64): Ditto.
28310
28311 2019-03-08 Martin Liska <mliska@suse.cz>
28312
28313 PR target/86952
28314 * config/i386/i386.c (ix86_option_override_internal): Disable
28315 jump tables when retpolines are used.
28316
28317 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
28318
28319 PR go/63560
28320 * ipa-split.c (execute_split_functions): Do not split
28321 'noinline' or 'section' function.
28322
28323 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28324
28325 PR target/79846
28326 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
28327 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
28328 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
28329
28330 PR ipa/80000
28331 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28332 from diagnostics. Formatting fixes.
28333
28334 PR target/85665
28335 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
28336 warn_odr diagnostics.
28337
28338 PR other/80058
28339 * lra-constraints.c (process_alt_operands): Avoid one space before
28340 " at the end of line and another after " on another line in a string
28341 literal.
28342 * attribs.c (handle_dll_attribute): Likewise.
28343 * config/avr/avr-devices.c (avr_texinfo): Likewise.
28344
28345 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
28346 warning_at or inform messages in G_() if there is no ?:.
28347
28348 PR tree-optimization/89550
28349 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
28350 returned true. Formatting fixes.
28351 (expand_builtin_strnlen): Formatting fixes.
28352 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
28353 if warning_at returned true.
28354 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
28355
28356 2019-03-08 Richard Biener <rguenther@suse.de>
28357
28358 PR middle-end/89578
28359 * cfgloop.h (struct loop): Add owned_clique field.
28360 * cfgloopmanip.c (copy_loop_info): Copy it.
28361 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
28362 cliques.
28363 * tree-inline.c (copy_loops): Remap owned_clique.
28364 * lto-streamer-in.c (input_cfg): Stream owned_clique.
28365 * lto-streamer-out.c (output_cfg): Likewise.
28366
28367 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28368
28369 PR target/80190
28370 * config/darwin.c: Include intl.h.
28371 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
28372 composing the message out of two separate parts.
28373
28374 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28375
28376 PR target/80003
28377 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
28378 doesn't start with a capital letter and doesn't end with a dot.
28379 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
28380 with a capital letter.
28381 (ix86_mangle_function_version_assembler_name): Likewise.
28382 (ix86_generate_version_dispatcher_body): Likewise.
28383 (fold_builtin_cpu): Likewise.
28384 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28385 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28386 translators, wrap full type name in %qs.
28387
28388 PR translation/79999
28389 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28390 depend clause with source (or sink) modifier.
28391 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28392
28393 PR target/89602
28394 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28395 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28396 (avx512f_load<mode>_mask): New define_expand.
28397 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28398 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28399 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28400 __builtin_ia32_movess_mask): New builtins.
28401 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28402 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28403 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28404 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28405
28406 2019-03-07 Martin Jambor <mjambor@suse.cz>
28407
28408 PR lto/87525
28409 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28410 for extern inline functions.
28411
28412 2019-03-07 Martin Jambor <mjambor@suse.cz>
28413
28414 PR ipa/88235
28415 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28416 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28417 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28418 have multiple callees. At the end check if declarations match as
28419 opposed to cgraph_nodes.
28420
28421 2019-03-07 Martin Liska <mliska@suse.cz>
28422
28423 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28424 which is equivalent to searching for this in clones chain.
28425 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28426 names with a neighbour and special case first node in a chain.
28427
28428 2019-01-25 Jason Merrill <jason@redhat.com>
28429
28430 PR c++/80916 - spurious "static but not defined" warning.
28431 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
28432 for an internal symbol with DECL_EXTERNAL.
28433
28434 2019-04-07 Richard Biener <rguenther@suse.de>
28435
28436 PR middle-end/89618
28437 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
28438 * tree-inline.c (copy_loops): Simplify.
28439
28440 2019-03-07 Martin Liska <mliska@suse.cz>
28441
28442 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
28443
28444 2019-03-07 Richard Biener <rguenther@suse.de>
28445
28446 PR tree-optimization/89595
28447 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
28448 stmt iterator as reference, take boolean output parameter to
28449 indicate whether the stmt was removed and thus the iterator
28450 already advanced.
28451 (dom_opt_dom_walker::before_dom_children): Re-iterate over
28452 stmts created by folding.
28453
28454 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28455
28456 PR c++/89585
28457 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
28458 at toplevel.
28459
28460 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
28461
28462 PR rtl-optimization/88845
28463 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
28464 LRA.
28465 * lra.c (remove_scratches_1): New function.
28466 (remove_scratches): Use it.
28467 (lra_emit_move): Likewise.
28468
28469 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
28470
28471 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
28472 unaligned_access variable.
28473 * config/arc/arc.c (arc_override_options): Set unaligned access
28474 default on for HS CPUs.
28475 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
28476
28477 2019-03-06 Martin Liska <mliska@suse.cz>
28478
28479 PR gcov-profile/89577
28480 * doc/gcov.texi: Prefer to use --coverage.
28481 * doc/sourcebuild.texi: Likewise.
28482
28483 2019-03-02 Jason Merrill <jason@redhat.com>
28484
28485 PR c++/86485 - -Wmaybe-unused with empty class ?:
28486 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
28487
28488 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28489
28490 PR target/89587
28491 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
28492 if_multiarch.
28493
28494 PR middle-end/89590
28495 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
28496 exactly one argument.
28497
28498 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28499 Richard Sandiford <richard.sandiford@arm.com>
28500
28501 PR tree-optimization/89570
28502 * match.pd (vec_cond into cond_op simplification): Don't use
28503 get_conditional_internal_fn, use as_internal_fn (cond_op).
28504
28505 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
28506
28507 PR target/89222
28508 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
28509 to decide when to split off a non-zero offset from a symbol.
28510 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
28511 in function symbols.
28512
28513 2019-03-05 Richard Biener <rguenther@suse.de>
28514
28515 PR tree-optimization/89594
28516 * tree-if-conv.c (pass_if_conversion::execute): Handle
28517 case where .LOOP_VECTORIZED_FUNCTION was removed.
28518
28519 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28520
28521 PR bootstrap/89560
28522 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
28523 instead alloca it only when needed with the needed size.
28524
28525 PR tree-optimization/89570
28526 * match.pd (vec_cond into cond_op simplification): Guard with
28527 vectorized_internal_fn_supported_p test and #if GIMPLE.
28528
28529 PR tree-optimization/89566
28530 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
28531 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
28532 Punt if get_user_idx_format succeeds, but idx_format argument is
28533 not provided or doesn't have pointer type, or if idx_args is above
28534 number of provided arguments.
28535
28536 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
28537
28538 PR tree-optimization/89437
28539 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
28540
28541 2019-03-04 Richard Biener <rguenther@suse.de>
28542
28543 PR middle-end/89572
28544 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
28545 safe_dyn_cast.
28546
28547 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
28548
28549 PR tree-optimization/89487
28550 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
28551 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
28552 (distribute_loop): Don't do runtime alias check if there is non-
28553 addressable data reference.
28554 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
28555 is a register variable.
28556
28557 2019-03-02 Jakub Jelinek <jakub@redhat.com>
28558
28559 PR target/89506
28560 * config/arm/arm.md (cmpsi2_addneg): Use
28561 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
28562 If operands[2] is 0 or INT_MIN, force use of subs.
28563 (*compare_scc splitter): Use gen_int_mode.
28564 (*negscc): Likewise.
28565 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
28566
28567 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28568 Monk Chiang <sh.chiang04@gmail.com>
28569
28570 * common/config/riscv/riscv-common.c: Include sstream.
28571 (riscv_subset_list::to_string): New.
28572 (riscv_arch_str): Likewise.
28573 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28574 * config.in: Regen.
28575 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28576 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28577 (riscv_emit_attribute): New.
28578 (riscv_file_start): Emit attribute if needed.
28579 (riscv_option_override): Init riscv_emit_attribute_p.
28580 * config/riscv/riscv.opt (mriscv-attribute): New option.
28581 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28582 * configure: Regen.
28583 * doc/install.texi: Document --with-riscv-attribute.
28584 * doc/invoke.texi: Document -mriscv-attribute.
28585
28586 * common/config/riscv/riscv-common.c:
28587 Include config/riscv/riscv-protos.h.
28588 (INCLUDE_STRING): Defined.
28589 (RISCV_DONT_CARE_VERSION): Defined.
28590 (riscv_subset_t): Declare.
28591 (riscv_subset_t::riscv_subset_t): New.
28592 (riscv_subset_list): Declare.
28593 (riscv_subset_list::riscv_subset_list): New.
28594 (riscv_subset_list::~riscv_subset_list): Likewise.
28595 (riscv_subset_list::parsing_subset_version): Likewise.
28596 (riscv_subset_list::parse_std_ext): Likewise.
28597 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28598 (riscv_subset_list::add): Likewise.
28599 (riscv_subset_list::lookup): Likewise.
28600 (riscv_subset_list::xlen): Likewise.
28601 (riscv_subset_list::parse): Likewise.
28602 (riscv_supported_std_ext): Likewise.
28603 (current_subset_list): Likewise.
28604 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28605 parse.
28606
28607 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28608
28609 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28610 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28611 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28612
28613 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28614
28615 PR rtl-optimization/85899
28616 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28617 fallthru edges leading to the exit block.
28618
28619 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28620
28621 PR target/89517
28622 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28623 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28624
28625 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28626
28627 PR tree-optimization/89535
28628 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28629 for each operand. Calculate the fallback choice for mask operands
28630 and pass it to vect_get_vec_def_for_operand.
28631
28632 2019-03-01 Richard Biener <rguenther@suse.de>
28633
28634 PR middle-end/89541
28635 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28636 get virtual operands.
28637 (get_expr_operands): Handle CONST_DECL like other decls.
28638
28639 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28640
28641 PR middle-end/89503
28642 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28643 on DECL_P and EXPR_P.
28644
28645 2019-03-01 Richard Biener <rguenther@suse.de>
28646
28647 PR middle-end/89497
28648 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28649 argument, defaulted to zero.
28650 * passes.c (execute_function_todo): Pass down SSA update flags
28651 to cleanup_tree_cfg.
28652 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28653 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28654 form if requested.
28655 (cleanup_tree_cfg): Get and pass down SSA update flags.
28656
28657 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28658
28659 PR bootstrap/89539
28660 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28661 early_lto_debug argument.
28662
28663 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28664
28665 PR tree-optimization/89536
28666 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28667 only whether bit #0 of the value is 0 instead of the entire value.
28668
28669 2019-02-28 Marek Polacek <polacek@redhat.com>
28670
28671 PR c++/87068 - missing diagnostic with fallthrough statement.
28672 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28673 at the end of a seq, save its location to walk_stmt_info.
28674 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28675 a switch.
28676
28677 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28678
28679 PR lto/88585
28680 * tree.c (find_atomic_core_type): Move ahead in file.
28681 (check_base_type): Correctly compare alignments of atomic types.
28682
28683 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28684
28685 PR target/89455
28686 * config/i386/i386.c (get_builtin_code_for_version): Identify
28687 Westmere from PCLMUL, instead of AES.
28688
28689 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28690
28691 PR target/89434
28692 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28693 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28694 -UINTVAL (...).
28695
28696 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28697
28698 PR target/88530
28699 * config/aarch64/aarch64-option-extensions.def: Document it.
28700 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28701 if empty hwcaps.
28702
28703 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28704
28705 PR c/89520
28706 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28707 builtins if they don't have a single scalar floating point argument.
28708 Formatting fixes.
28709
28710 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28711
28712 PR rtl-optimization/89490
28713 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28714 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28715 block section is not mergeable.
28716
28717 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28718
28719 PR target/70341
28720 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28721 old define_insn to ...
28722 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28723 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28724 Rename old define_insn to ...
28725 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28726 (thumb2_casesi_internal_pic): New define_expand. Rename old
28727 define_insn to ...
28728 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28729 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28730 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28731
28732 2019-02-27 Richard Biener <rguenther@suse.de>
28733
28734 PR debug/88878
28735 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28736
28737 2019-02-27 Richard Biener <rguenther@suse.de>
28738
28739 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28740 building.
28741
28742 2019-02-27 Richard Biener <rguenther@suse.de>
28743
28744 PR debug/88878
28745 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28746 parameter, prefix section name with .gnu.debuglto_ if true.
28747 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28748 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28749
28750 2019-02-27 Richard Biener <rguenther@suse.de>
28751
28752 PR debug/89514
28753 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28754 rather than on use_debug_types, doing what output_die does.
28755 (value_format): Likewise.
28756
28757 2019-02-27 Martin Jambor <mjambor@suse.cz>
28758 Martin Sebor <msebor@redhat.com>
28759
28760 * doc/invoke.texi (Warning Options): Reword description of
28761 -Wno-absolute-value.
28762
28763 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28764
28765 PR tree-optimization/89280
28766 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28767 builtin_setjmp_setup_bb): New functions.
28768 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28769 When visiting __builtin_setjmp_setup block, queue in special
28770 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28771 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28772 from visited after the loop if they don't have any visited successor
28773 blocks.
28774
28775 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28776
28777 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28778 New function.
28779 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28780
28781 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28782
28783 PR c++/89507
28784 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28785 with types other than sizetype/ssizetype.
28786
28787 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28788
28789 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28790 (enum sparc_processor_type): ...this.
28791 (enum sparc_code_model_type): New enumeration type.
28792 (enum sparc_memory_model_type): Tweak comments.
28793 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28794 (mtune): Likewise.
28795 (mcmodel): Use sparc_code_model enumeration and variable.
28796 (sparc_code_model): New enumeration.
28797 (mdebug): Add Undocumented marker.
28798 * config/sparc/sparc.h (enum cmodel): Delete.
28799 (sparc_cmodel): Likewise.
28800 (TARGET_CM_MEDLOW): Adjust to above renaming.
28801 (TARGET_CM_MEDMID): Likewise.
28802 (TARGET_CM_MEDANY): Likewise.
28803 (TARGET_CM_EMBMEDANY): Likewise.
28804 * config/sparc/sparc.c (sparc_cmodel): Delete.
28805 (sparc_option_override): Remove string/value mapping support for the
28806 code model. Move code and memory model support to after the handling
28807 of target flags. Do private machine setup last.
28808 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28809 (sparc_legitimize_reload_address): Likewise.
28810 (sparc_output_mi_thunk): Likewise.
28811 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28812
28813 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28814
28815 PR tree-optimization/89500
28816 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28817 (handle_builtin_strlen): Remove noncst_bound variable. Always
28818 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28819 cst if the first cst bytes starting at x are known to be non-zero,
28820 even if the string is not zero terminated. Don't try to modify
28821 *si for strnlen. Update strlen_to_stridx only for strlen or if
28822 we can prove strnlen returns the same value as strlen would.
28823
28824 2019-02-26 Martin Liska <mliska@suse.cz>
28825
28826 * alloc-pool.h (struct pool_usage): Remove extra
28827 print_dash_line.
28828 * bitmap.h (struct bitmap_usage): Likewise.
28829 * ggc-common.c (struct ggc_usage): Likewise.
28830 * mem-stats.h (struct mem_usage): Likewise.
28831 (mem_alloc_description::dump): Print dash lines
28832 here and repeat header at the end of a table report.
28833 It's then more readable.
28834 * tree-phinodes.c (phinodes_print_statistics): Make
28835 horizontal alignment.
28836 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28837 * vec.c (struct vec_usage): Remove extra print_dash_line.
28838 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28839
28840 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28841
28842 * doc/extend.texi (__builtin_object_size):
28843 Use @pxref instead of @xref inside parenthesis.
28844 (__builtin_has_attribute): Add missing comma after @xref.
28845 (__builtin_object_size): Ditto.
28846 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28847
28848 2019-02-26 Jeff Law <law@redhat.com>
28849
28850 PR rtl-optimization/87761
28851 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28852 detect obviously dead insns and delete them.
28853
28854 2019-02-26 Richard Biener <rguenther@suse.de>
28855
28856 PR tree-optimization/89505
28857 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28858 to handle restrict pointed-to vars with multiple subvars
28859 correctly.
28860
28861 2019-02-26 Richard Biener <rguenther@suse.de>
28862
28863 PR tree-optimization/89489
28864 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28865
28866 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28867
28868 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28869 and move around comment.
28870 <BIT_AND_EXPR>: Likewise.
28871 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28872
28873 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28874
28875 PR target/89474
28876 * config/i386/i386.c (remove_partial_avx_dependency): Call
28877 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28878 after changing possibly many instructions to use that pseudo. Fix up
28879 insertion of v4sf_const0 setter at the start of bb.
28880
28881 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28882
28883 PR c/80409
28884 * doc/extend.texi (Variadic Pointer Args): New section.
28885
28886 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28887 Martin Sebor <msebor@gmail.com>
28888
28889 * common.opt (Wattribute-alias): Likewise.
28890 * doc/invoke.texi (Option Summary): List general form of
28891 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28892 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28893 Add cross-references.
28894 (-Wattribute-alias): Rewrite and correct default. Mention
28895 considered attributes (same as for -Wmissing-attributes).
28896
28897 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28898
28899 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28900 (_mm_cvtpd_ps): Likewise.
28901 (_mm_cvttpd_epi32): Likewise.
28902
28903 PR target/89338
28904 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28905 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28906
28907 PR target/89339
28908 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28909
28910 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28911
28912 PR target/88530
28913 * common/config/aarch64/aarch64-common.c
28914 (struct aarch64_option_extension): Add is_synthetic.
28915 (all_extensions): Use it.
28916 (TARGET_OPTION_INIT_STRUCT): Define hook.
28917 (struct gcc_targetm_common): Moved to end.
28918 (all_extensions_by_on): New.
28919 (opt_ext_cmp, typedef opt_ext): New.
28920 (aarch64_option_init_struct): New.
28921 (aarch64_contains_opt): New.
28922 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28923 * config/aarch64/aarch64-option-extensions.def
28924 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28925 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28926 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28927 Set is_synthetic to false.
28928 (crypto): Set is_synthetic to true.
28929 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28930 SYNTHETIC.
28931
28932 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28933
28934 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28935 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28936 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28937 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28938 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28939 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28940 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28941 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28942 Rename ...
28943 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28944 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28945 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28946 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28947 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28948 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28949 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28950 vfmlsl_laneq_high_f16): ... To this.
28951 * config/arm/neon.md: Update comments.
28952
28953 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28954
28955 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28956 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28957 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28958 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28959 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28960 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28961 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28962 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28963 Rename ...
28964 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28965 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28966 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28967 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28968 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28969 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28970 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28971 vfmlslq_laneq_high_f16): ... To this.
28972
28973 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28974
28975 PR rtl-optimization/86096
28976 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28977 comparing mw_order values.
28978
28979 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28980
28981 PR target/89434
28982 * config/arm/arm.md (*subsi3_carryin_const): Use
28983 arm_neg_immediate_operand predicate instead of
28984 arm_not_immediate_operand, "L" constraint instead of "K" and
28985 print it using %n2 instead of %B2.
28986 (*subsi3_carryin_const0): New define_insn.
28987 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28988 instead of arm_not_operand and "I" constraint instead of "K" and
28989 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28990 another match_operand and in the condition check that it is negation
28991 of operands[2].
28992 (*subsi3_carryin_compare_const0): New define_ins.
28993 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28994 *subsi3_carryin_const.
28995 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28996 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28997
28998 PR target/89438
28999 * config/arm.vfp.md (*negdf2_vfp): Use
29000 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
29001 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
29002
29003 2019-02-24 Jakub Jelinek <jakub@redhat.com>
29004
29005 PR rtl-optimization/89445
29006 * simplify-rtx.c (simplify_ternary_operation): Don't use
29007 simplify_merge_mask on operands that may trap.
29008 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
29009 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
29010 second operand is CONST_VECTOR, check if any element could be zero.
29011 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
29012 their operands can trap.
29013
29014 2019-02-23 Martin Sebor <msebor@redhat.com>
29015
29016 * gimple-ssa-sprintf.c (target_strtol): Rename...
29017 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29018 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29019 check for range error.
29020
29021 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29022
29023 PR driver/69471
29024 * opts-common.c (prune_options): Also prune joined switches
29025 with Negative and RejectNegative.
29026 * config/i386/i386.opt (march=): Add Negative(march=).
29027 (mtune=): Add Negative(mtune=).
29028 * doc/options.texi: Document Negative used together with Joined
29029 and RejectNegative.
29030
29031 2019-02-22 Martin Sebor <msebor@redhat.com>
29032
29033 * doc/extend.texi (Other Builtins): Add
29034 __builtin_is_constant_evaluated.
29035
29036 2019-02-22 Richard Biener <rguenther@suse.de>
29037
29038 PR tree-optimization/87609
29039 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29040
29041 2019-02-22 Jeff Law <law@redhat.com>
29042
29043 PR rtl-optimization/87761
29044 * config/mips/mips.md: Add new combiner pattern to recognize
29045 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29046
29047 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29048
29049 PR target/89324
29050 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29051 destination register in peepholes generating patterns for ADDS/SUBS.
29052 (add<mode>3_compare0,
29053 *addsi3_compare0_uxtw, add<mode>3_compareC,
29054 add<mode>3_compareV_imm, add<mode>3_compareV,
29055 *adds_<optab><ALLX:mode>_<GPI:mode>,
29056 *subs_<optab><ALLX:mode>_<GPI:mode>,
29057 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29058 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29059 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29060 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29061 sub<mode>3_compare1): Allow stack pointer for source register.
29062 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29063
29064 2019-02-22 Martin Sebor <msebor@redhat.com>
29065
29066 PR tree-optimization/88993
29067 PR tree-optimization/88853
29068 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29069 New helper.
29070 (sprintf_dom_walker::call_info::is_string_func): New helper.
29071 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29072 for formatted string functions.
29073 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29074
29075 2019-02-22 Martin Sebor <msebor@redhat.com>
29076
29077 PR c/89425
29078 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29079 unreachable subexpressions.
29080
29081 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29082 Hongtao Liu <hongtao.liu@intel.com>
29083 Sunil K Pandey <sunil.k.pandey@intel.com>
29084
29085 PR target/87007
29086 * config/i386/i386-passes.def: Add
29087 pass_remove_partial_avx_dependency.
29088 * config/i386/i386-protos.h
29089 (make_pass_remove_partial_avx_dependency): New.
29090 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29091 New function.
29092 (pass_data_remove_partial_avx_dependency): New.
29093 (pass_remove_partial_avx_dependency): Likewise.
29094 (make_pass_remove_partial_avx_dependency): Likewise.
29095 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29096 (*extendsfdf2): Add avx_partial_xmm_update.
29097 (truncdfsf2): Likewise.
29098 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29099 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29100
29101 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29102
29103 PR middle-end/85598
29104 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29105 analysis for pass.
29106
29107 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29108
29109 PR target/89444
29110 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29111 (PTA_SKYLAKE): Add PTA_AES.
29112 (PTA_GOLDMONT): Likewise.
29113
29114 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29115
29116 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29117 instruction if enabled.
29118 (aarch64_override_options): Remove reference to return address key.
29119
29120 2019-02-22 Richard Biener <rguenther@suse.de>
29121
29122 PR tree-optimization/89440
29123 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29124 not necessary assert.
29125
29126 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29127
29128 PR fortran/72741
29129 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29130 (oacc_replace_fn_attrib_attr): ... this new function.
29131 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29132 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29133
29134 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29135
29136 * config/arm/arm-cpus.in (ares): Rename to...
29137 (neoverse-n1): ... This. Add ares as alias.
29138 * config/arm/arm-tables.opt: Regenerate.
29139 * config/arm/arm-tune.md: Likewise.
29140 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29141
29142 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29143
29144 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29145 * config/aarch64/aarch64-tune.md: Regenerate.
29146 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29147
29148 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29149
29150 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29151 (neoversen1_tunings): ... This.
29152 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29153 (neoverse-n1): New CPU.
29154 * config/aarch64/aarch64-tune.md: Regenerate.
29155 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29156
29157 2019-02-22 Richard Biener <rguenther@suse.de>
29158
29159 PR middle-end/87609
29160 * cfghooks.h (dependence_hash): New typedef.
29161 (struct copy_bb_data): New type.
29162 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29163 (duplicate_block): Likewise.
29164 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29165 (copy_bbs): Create and pass down copy_bb_data.
29166 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29167 (rtl_duplicate_bb): Likewise.
29168 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29169 remap dependence info.
29170
29171 2019-02-22 Richard Biener <rguenther@suse.de>
29172
29173 PR tree-optimization/87609
29174 * tree-core.h (tree_base): Document special clique values.
29175 * tree-inline.c (remap_dependence_clique): Do not use the
29176 special clique value of one.
29177 (maybe_set_dependence_info): Use clique one.
29178 (clear_dependence_clique): New callback.
29179 (compute_dependence_clique): Clear clique one from all refs
29180 before assigning it (again).
29181
29182 2019-02-21 Martin Sebor <msebor@redhat.com>
29183
29184 * doc/extend.texi (__clear_cache): Correct signature.
29185
29186 2019-02-21 Ian Lance Taylor <iant@golang.org>
29187
29188 PR go/89170
29189 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29190 than output_constant_def.
29191 (add_constant_to_table): New static function.
29192 (output_constant_def): Call add_constant_to_table.
29193 (tree_output_constant_def): Likewise.
29194
29195 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29196
29197 PR c++/89285
29198 * builtins.c (fold_builtin_arith_overflow): If first two args are
29199 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29200 to ifn.
29201
29202 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29203
29204 PR target/87412
29205 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29206 error for -mindirect-branch/-mfunction-return with incompatible
29207 -fcf-protection.
29208
29209 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29210
29211 PR bootstrap/88714
29212 * constraints.md (q): Remove.
29213 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
29214 instead of q.
29215
29216 2019-02-21 Martin Jambor <mjambor@suse.cz>
29217
29218 PR hsa/89302
29219 * omp-general.c (omp_extract_for_data): Removed a duplicate call
29220 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
29221 (omp_adjust_for_condition): ...here. Added necessary parameters.
29222 * omp-general.h (omp_adjust_for_condition): Updated declaration.
29223 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
29224 proper values to new parameters of omp_adjust_for_condition.
29225
29226 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29227
29228 PR middle-end/89412
29229 * expr.c (expand_assignment): If result is a MEM, use change_address
29230 instead of simplify_gen_subreg.
29231
29232 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29233 David Malcolm <dmalcolm@redhat.com>
29234
29235 PR middle-end/89091
29236 * fold-const.c (decode_field_reference): Return NULL_TREE if
29237 lang_hooks.types.type_for_size returns NULL. Check it before
29238 overwriting *exp_. Use return NULL_TREE instead of return 0.
29239
29240 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29241
29242 PR middle-end/88074
29243 PR middle-end/89415
29244 * toplev.c (do_compile): Double the emin/emax exponents to workaround
29245 buggy mpc_norm.
29246
29247 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
29248
29249 PR target/89397
29250 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
29251 TARGET_SSE in addition to TARGET_SSE_MATH.
29252
29253 (ix86_excess_precision): Ditto.
29254 (ix86_float_exceptions_rounding_supported_p): Ditto.
29255 (use_rsqrt_p): Ditto.
29256 * config/i386/sse.md (rsqrt<mode>2): Ditto.
29257
29258 2019-02-20 David Malcolm <dmalcolm@redhat.com>
29259
29260 PR c/89410
29261 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
29262 linenum_arith_t when determining if two adjacent line spans are
29263 close enough to merge.
29264 (diagnostic_show_locus): Use linenum_arith_t when iterating over
29265 lines within each line_span.
29266
29267 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
29268
29269 PR target/86487
29270 * lra-constraints.c(uses_hard_regs_p): Fix handling of
29271 paradoxical SUBREGS.
29272
29273 2019-02-20 Li Jia He <helijia@linux.ibm.com>
29274
29275 PR target/88100
29276 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
29277 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
29278 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
29279 range checking it.
29280
29281 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
29282
29283 * config/gcn/gcn.c (print_operand): Fix typo.
29284
29285 2019-02-19 Richard Biener <rguenther@suse.de>
29286
29287 PR middle-end/88074
29288 * toplev.c (do_compile): Initialize mpfr's exponent range
29289 based on available float modes.
29290
29291 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
29292
29293 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
29294 as long as the epilogue isn't completed.
29295
29296 2019-02-18 Martin Sebor <msebor@redhat.com>
29297
29298 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
29299 __has_cpp_attribute, and __has_include.
29300
29301 2019-02-18 Martin Sebor <msebor@redhat.com>
29302
29303 * doc/invoke.texi (-Wreturn-type): Correct and expand.
29304
29305 2019-02-18 Martin Sebor <msebor@redhat.com>
29306
29307 PR middle-end/89294
29308 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
29309 expression.
29310 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
29311
29312 2019-02-18 Richard Biener <rguenther@suse.de>
29313
29314 PR tree-optimization/89296
29315 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
29316 of no-warning flag to cases that might emit the bogus warning.
29317
29318 2019-02-18 Jakub Jelinek <jakub@redhat.com>
29319
29320 PR bootstrap/88714
29321 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
29322 "q" constraint.
29323 * config/arm/vfp.md (*movdi_vfp): Likewise.
29324 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
29325 "q" constraint for operands[0].
29326
29327 PR target/89369
29328 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
29329 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
29330 pattern in a temporary buffer.
29331 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
29332 than 64-operands[2].
29333
29334 PR target/89361
29335 * config/s390/s390.c (s390_indirect_branch_attrvalue,
29336 s390_indirect_branch_settings): Define unconditionally.
29337 (s390_set_current_function): Likewise, but guard the whole body except
29338 the s390_indirect_branch_settings call with
29339 #if S390_USE_TARGET_ATTRIBUTE.
29340 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
29341
29342 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
29343 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
29344 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
29345 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
29346 HOST_WIDE_INT_1U instead of 1ULL.
29347 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
29348 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
29349 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
29350 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
29351 instead of 1UL.
29352 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
29353 instead of 1ul.
29354
29355 2019-02-18 Martin Jambor <mjambor@suse.cz>
29356
29357 PR tree-optimization/89209
29358 * tree-sra.c (create_access_replacement): New optional parameter
29359 reg_tree. Use it as a type if non-NULL and access type is not of
29360 a register type.
29361 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
29362 to create_access_replacement.
29363 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
29364 Check lacc is non-NULL before attempting to re-create it on the RHS.
29365
29366 2019-02-18 Martin Liska <mliska@suse.cz>
29367
29368 PR ipa/89306
29369 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
29370 by default.
29371 (symbol_table::free_edge): Recycle m_summary_id.
29372 * cgraph.h (get_summary_id): New.
29373 (symbol_table::release_symbol): Set m_summary_id to -1
29374 by default.
29375 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
29376 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
29377 function_summary to fast_function_summary.
29378 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
29379 * ipa-pure-const.c (class funct_state_summary_t):
29380 Switch from function_summary to fast_function_summary.
29381 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29382 (class ipa_ref_opt_summary_t): Switch from function_summary
29383 to fast_function_summary.
29384 * symbol-summary.h (class function_summary_base): New class
29385 that is created from base of former function_summary.
29386 (function_summary_base::unregister_hooks): New.
29387 (class function_summary): Inherit from function_summary_base.
29388 (class call_summary_base): New class
29389 that is created from base of former call_summary.
29390 (class call_summary): Inherit from call_summary_base.
29391 (struct is_same): New.
29392 (class fast_function_summary): New summary class.
29393 (class fast_call_summary): New summary class.
29394 * vec.h (vec_safe_grow_cleared): New function.
29395
29396 2019-02-18 Martin Liska <mliska@suse.cz>
29397
29398 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29399 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29400 * doc/tm.texi: Document new target hook.
29401 * doc/tm.texi.in: Likewise.
29402 * target.def: Add new target macro.
29403 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29404 suffixes.
29405
29406 2019-02-17 Alan Modra <amodra@gmail.com>
29407
29408 PR target/89271
29409 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29410 output reg on add insn.
29411 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29412
29413 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29414
29415 PR target/89372
29416 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29417 (PMULHRSW): Likewise.
29418 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29419 TARGET_AVX2.
29420 (ssse3_pmulhrswv4hi3): New expander.
29421
29422 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29423
29424 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29425 MMX. Add isa attribute.
29426
29427 2019-02-16 Jakub Jelinek <jakub@redhat.com>
29428
29429 PR rtl-optimization/66152
29430 * builtins.h (c_readstr): Declare.
29431 * builtins.c (c_readstr): Remove forward declaration. Add
29432 null_terminated_p argument, if false, read all bytes from the
29433 string instead of stopping after '\0'.
29434 * expr.c (string_cst_read_str): New function.
29435 (store_expr): Use string_cst_read_str instead of
29436 builtin_strncpy_read_str. Try to store by pieces the whole
29437 exp_len first, and only if that fails, split it up into
29438 store by pieces followed by clear_storage. Formatting fix.
29439
29440 * config/i386/i386.md (*movqi_internal): Remove static from
29441 buf variable. Use output_asm_insn (buf, operands); return "";
29442 instead of return buf;.
29443 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
29444 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
29445 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
29446
29447 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29448
29449 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
29450 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
29451 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
29452 (CC1_SPEC): Likewise.
29453 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
29454
29455 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29456
29457 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
29458 the base address on 64-bit strict-alignment platforms.
29459
29460 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
29461
29462 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
29463
29464 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29465
29466 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
29467
29468 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
29469
29470 PR rtl-optimization/88308
29471 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
29472 on copied instruction.
29473
29474 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29475
29476 * final.c (insn_current_reference_address): Replace test on JUMP_P
29477 with test on jump_to_label_p.
29478 * config/visium/visium-passes.def: New file.
29479 * config/visium/t-visium (PASSES_EXTRA): Define.
29480 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
29481 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
29482 (TRAMPOLINE_ALIGNMENT): Define.
29483 * config/visium/visium.c (visium_option_override): Do not register
29484 the machine-specific reorg pass here.
29485 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
29486 for the GR6.
29487 (output_branch): Adjust threshold for long branch instruction.
29488 * config/visium/visium.md (cpu): Move around.
29489 (length): Adjust for the GR6.
29490
29491 2019-02-15 Richard Biener <rguenther@suse.de>
29492 Jakub Jelinek <jakub@redhat.com>
29493
29494 PR tree-optimization/89278
29495 * tree-loop-distribution.c: Include tree-eh.h.
29496 (generate_memset_builtin, generate_memcpy_builtin): Call
29497 rewrite_to_non_trapping_overflow on builtin->size before passing it
29498 to force_gimple_operand_gsi.
29499
29500 2019-02-15 Jakub Jelinek <jakub@redhat.com>
29501
29502 PR other/89342
29503 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
29504 optimize_debug.
29505 * opth-gen.awk: Likewise.
29506
29507 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29508
29509 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
29510 Enable MMX, SSE and SSE2 by default.
29511 * config/i386/i386.c (ix86_option_override_internal): Do not
29512 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
29513
29514 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29515
29516 PR rtl-optimization/89354
29517 * combine.c (make_extraction): Punt if extraction_mode is narrower
29518 than len bits.
29519
29520 2019-02-14 Maya Rashish <coypu@sdf.org>
29521
29522 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
29523 * config/netbsd-d.c: New file.
29524 * config/t-netbsd: Add netbsd-d.o
29525
29526 2018-02-14 Steve Ellcey <sellcey@marvell.com>
29527
29528 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
29529 affects_type_identity to true for aarch64_vector_pcs.
29530 (aarch64_comp_type_attributes): New function.
29531 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
29532
29533 2019-02-14 Tamar Christina <tamar.christina@arm.com>
29534
29535 PR target/88850
29536 * config/arm/iterators.md (ANY64): Add V4HF.
29537
29538 2019-02-14 Martin Liska <mliska@suse.cz>
29539
29540 PR rtl-optimization/89242
29541 * dce.c (delete_unmarked_insns): Call free_dominance_info we
29542 process a transformation.
29543
29544 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29545
29546 PR tree-optimization/89314
29547 * fold-const.c (fold_binary_loc): Cast strlen argument to
29548 const char * before dereferencing it. Formatting fixes.
29549
29550 PR middle-end/89284
29551 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
29552
29553 2019-02-13 Ian Lance Taylor <iant@golang.org>
29554
29555 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
29556 and set current index for other optimizations.
29557
29558 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
29559
29560 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
29561 nonimmediate_operand as operand 2 predicate.
29562 (vec_set<VF2_512_256:mode>_0): Ditto.
29563 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
29564 (*vec_concatv2si): Remove alternative 2.
29565 (*vec_concatv4si_0): Use vm constraint for alternative 0.
29566 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
29567 (vec_concatv2di): Split alternatives 4,5,6 to ...
29568 (*vec_concatv2di_0) ... new pattern.
29569
29570 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29571
29572 PR target/89190
29573 * config/arm/arm.c (ldm_stm_operation_p) Set
29574 addr_reg_in_reglist correctly for first register.
29575 (load_multiple_sequence): Remove dead base check.
29576 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29577
29578 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29579
29580 PR target/88847
29581 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29582 Expose as @aarch64_pred_mov.
29583 * config/aarch64/aarch64.c (aarch64_classify_address):
29584 Use expand_insn which legitimizes operands.
29585
29586 2019-02-13 Martin Liska <mliska@suse.cz>
29587
29588 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29589 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29590 and pointer_offset fields.
29591 (initialize_argument_information): Remove usage of dead
29592 fields.
29593 * cgraph.h (struct cgraph_thunk_info): Remove
29594 add_pointer_bounds_args.
29595 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29596 fields.
29597 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29598 fields.
29599 * config/i386/i386.c (ix86_function_arg_advance): Remove
29600 unrelated comment.
29601 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29602 (def_builtin): Remove usage of dead fields.
29603 (ix86_add_new_builtins): Likewise.
29604 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29605 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29606 (sem_function::init): Likewise.
29607 (sem_variable::merge): Likewise.
29608 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29609 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29610 * lto-cgraph.c (lto_output_node): Likewise.
29611 (lto_output_varpool_node): Likewise.
29612 (input_node): Likewise.
29613 (input_varpool_node): Likewise.
29614 * lto-streamer-out.c (lto_output): Likewise.
29615 * tree-inline.c (expand_call_inline): Remove usage of
29616 assign_stmts.
29617 * tree-inline.h (struct copy_body_data): Likewise.
29618 * varpool.c (varpool_node::dump): Likewise.
29619
29620 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29621
29622 PR middle-end/89303
29623 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29624 into pt->vars_contains_escaped_heap instead of setting
29625 pt->vars_contains_escaped_heap to it.
29626
29627 PR middle-end/89281
29628 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29629 INTVAL (size), compare it to GET_MODE_MASK instead of
29630 1 << GET_MODE_BITSIZE.
29631
29632 PR target/89290
29633 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29634 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29635 -mcmodel=large.
29636
29637 2019-02-13 Martin Liska <mliska@suse.cz>
29638
29639 PR lto/88858
29640 * cfgrtl.c (remove_barriers_from_footer): New function.
29641 (try_redirect_by_replacing_jump): Use it.
29642 (cfg_layout_redirect_edge_and_branch): Likewise.
29643
29644 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29645
29646 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29647 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29648 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29649 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29650 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29651 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29652 New BU_CRYPTO_2.
29653 * config/rs6000/rs6000.c (builtin_function_type)
29654 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29655 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29656 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29657 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29658 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29659
29660 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29661
29662 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29663 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29664
29665 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29666
29667 PR target/89229
29668 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29669 268678 and revision 268657.
29670 (*movti_internal): Likewise.
29671
29672 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29673
29674 PR target/89233
29675 * config/s390/s390.c (s390_decompose_address): Update comment.
29676 (s390_check_qrst_address): Reject invalid address forms after
29677 LRA.
29678
29679 2019-02-12 Martin Liska <mliska@suse.cz>
29680
29681 PR lto/88876
29682 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29683 we need default values of funct_state for a function that
29684 is not optimized.
29685
29686 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29687
29688 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29689 the object to pick the size of stores on strict-alignment platforms.
29690
29691 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29692 (*movdi_insn_sp32): Likewise.
29693 (*movdi_insn_sp64): Likewise.
29694
29695 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29696
29697 PR lto/88677
29698 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29699 types that needs constructiong.
29700 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29701
29702 2019-02-12 Richard Biener <rguenther@suse.de>
29703
29704 PR tree-optimization/89253
29705 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29706 duplicate the loop.
29707
29708 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29709
29710 PR lto/88147
29711 * input.c (selftest::test_line_offset_overflow): New selftest.
29712 (selftest::input_c_tests): Call it.
29713
29714 2019-02-11 Martin Sebor <msebor@redhat.com>
29715
29716 PR tree-optimization/88771
29717 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29718 when -Wstringop-overflow is set.
29719 (builtin_memref::builtin_memref): Adjust excessive upper bound
29720 only when lower bound is not excessive.
29721 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29722 -Wstringop-ovefflow.
29723 (maybe_diag_offset_bounds): Rename...
29724 (maybe_diag_access_bounds): ...to this.
29725 (check_bounds_or_overlap): Adjust for name change above.
29726
29727 2019-02-11 Martin Sebor <msebor@redhat.com>
29728
29729 PR c++/87996
29730 * builtins.c (max_object_size): Move from here...
29731 * builtins.h (max_object_size): ...and here...
29732 * tree.c (max_object_size): ...to here...
29733 * tree.h (max_object_size): ...and here.
29734
29735 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29736
29737 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29738 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29739 for correct semantics.
29740
29741 2019-02-11 Alan Modra <amodra@gmail.com>
29742
29743 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29744 -mlongcall and -mpltseq.
29745 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29746 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29747 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29748 * config/rs6000/sysv4.opt (mpltseq): New option.
29749 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29750 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29751 support is lacking. Don't allow -mpltseq with -mbss-plt.
29752 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29753 -mpltseq given for ELFv1.
29754 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29755 Only use UNSPEC_PLTSEQ for inline PLT calls.
29756 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29757 use UNSPEC_PLTSEQ for inline PLT calls.
29758 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29759 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29760 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29761 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29762 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29763 (pltseq_mtctr_<mode>): Likewise.
29764
29765 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29766
29767 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29768 Solaris ld.
29769 * configure: Regenerate.
29770
29771 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29772
29773 PR bootstrap/88714
29774 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29775 instead of r.
29776
29777 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29778
29779 * function.c (assign_parm_setup_block): Use the stored
29780 size, not the passed size, when allocating stack-space,
29781 also for a parameter with alignment larger than
29782 MAX_SUPPORTED_STACK_ALIGNMENT.
29783
29784 2019-02-11 Martin Liska <mliska@suse.cz>
29785
29786 PR ipa/89009
29787 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29788 * ipa-inline.c (inline_small_functions): Likewise.
29789 * ipa-pure-const.c (propagate_pure_const): Likewise.
29790 (propagate_nothrow): Likewise.
29791 * ipa-reference.c (propagate): Likewise.
29792 * ipa-utils.c (struct searchc_env): Remove unused field.
29793 (searchc): Always search across AVAIL_INTERPOSABLE.
29794 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29795 the only called IPA pure const can properly not propagate
29796 across interposable boundary.
29797 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29798
29799 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29800
29801 * config/nds32/nds32.md (call_internal, call_value_internal,
29802 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29803
29804 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29805
29806 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29807 typo.
29808
29809 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29810
29811 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29812 in comments
29813
29814 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29815
29816 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29817
29818 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29819
29820 PR tree-optimization/89268
29821 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29822 if preds is non-NULL.
29823
29824 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29825
29826 PR lto/89272
29827 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29828 polymorphic types.
29829
29830 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29831
29832 * config/nds32/nds32.md (trap): New pattern.
29833
29834 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29835
29836 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29837 dwarf span.
29838
29839 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29840
29841 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29842 to split POST_INC.
29843
29844 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29845
29846 * ipa-visibility.c (localize_node): Also do not localize
29847 LDPR_PREVAILING_DEF_IRONLY_EXP.
29848
29849 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29850
29851 PR lto/87957
29852 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29853 instead of type_with_linkage.
29854
29855 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29856
29857 PR ipa/88755
29858 * params.def (uninlined-function-insns, uninlined-function-time,
29859 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29860 bound so we don't get overflows.
29861
29862 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29863
29864 * config/rs6000/rs6000-string.c (expand_compare_loop,
29865 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29866 memcmp/strncmp.
29867
29868 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29869
29870 PR middle-end/89246
29871 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29872 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29873 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29874
29875 2019-02-09 Alan Modra <amodra@gmail.com>
29876
29877 PR target/88343
29878 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29879 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29880 setup.
29881
29882 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29883
29884 PR middle-end/88560
29885 * lra-constraints.c (process_alt_operands): Don't increase reject
29886 for memory when offset memory is required.
29887
29888 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29889
29890 * config/s390/vector.md: Implement vector copysign.
29891
29892 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29893
29894 * expr.c (expand_constructor): Correct indentations.
29895
29896 2019-02-08 Richard Biener <rguenther@suse.de>
29897
29898 PR tree-optimization/89247
29899 * tree-if-conv.c: Include tree-cfgcleanup.h.
29900 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29901 (tree_if_conversion): Pass through predicate vector.
29902 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29903 inline, see if any if-converted loops we refrece in
29904 LOOP_VECTORIZED calls vanished and fixup.
29905 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29906
29907 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29908
29909 * config/s390/constraints.md (jdd): New constraint.
29910
29911 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29912
29913 PR target/89229
29914 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29915 upper 16 vector registers without TARGET_AVX512VL.
29916 (*movti_internal): Likewise.
29917
29918 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29919
29920 PR rtl-optimization/89234
29921 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29922 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29923 (copy_reg_eh_region_note_backward): Likewise.
29924
29925 2019-02-08 Richard Biener <rguenther@suse.de>
29926
29927 PR middle-end/89223
29928 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29929 doesn't fit in HWI.
29930 (analyze_subscript_affine_affine): Handle failure from
29931 initialize_matrix_A.
29932
29933 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29934
29935 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29936 cfun everywhere.
29937
29938 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29939
29940 PR tree-optimization/86637
29941 PR tree-optimization/89235
29942 * tree-vect-loop.c (optimize_mask_stores): Add an
29943 auto_purge_vect_location sentinel to ensure that vect_location is
29944 purged on exit.
29945 * tree-vectorizer.c
29946 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29947 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29948 to ensure that vect_location is purged on exit.
29949 (pass_slp_vectorize::execute): Likewise, replacing the manual
29950 reset.
29951 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29952
29953 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29954
29955 * config/aarch64/iterators.md (max_opp): New code_attr.
29956 (USMAX): New code iterator.
29957 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29958 (aarch64_smax): Likewise.
29959 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29960 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29961 MINUS (MAX MIN).
29962
29963 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29964
29965 PR target/89229
29966 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29967 for TARGET_AVX512VL.
29968 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29969
29970 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29971
29972 * config/s390/s390-builtin-types.def: Add new types.
29973 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29974 (s390_vec_xlw4): Make the memory operand into a const pointer.
29975 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29976 float.
29977 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29978 a new vector type with the alignment of the scalar memory operand.
29979
29980 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29981 Jakub Jelinek <jakub@redhat.com>
29982
29983 PR bootstrap/88714
29984 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29985 arm_count_ldrdstrd_insns): New declarations.
29986 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29987 MINUS.
29988 (valid_operands_ldrd_strd): New function.
29989 (arm_count_ldrdstrd_insns): New function.
29990 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29991 sets instead of single DImode set and define new insns to match this.
29992
29993 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29994
29995 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29996 Make it a C initializer.
29997
29998 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29999
30000 PR/target 88850
30001 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
30002
30003 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30004
30005 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
30006 Use neon_dot<q> for type.
30007 (neon_<sup>dot_lane<vsi2qi>): Likewise.
30008
30009 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30010
30011 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
30012 Use neon_dot<q> for type.
30013 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
30014 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30015
30016 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30017
30018 PR rtl-optimization/89225
30019 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30020 sizes check.
30021
30022 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30023
30024 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30025 after restoring registers saved to allocate the frame on Windows.
30026
30027 2019-02-06 Richard Biener <rguenther@suse.de>
30028
30029 PR tree-optimization/89182
30030 * graphite.h (cached_scalar_evolution_in_region): Declare.
30031 * graphite.c (struct seir_cache_key): New.
30032 (struct sese_scev_hash): Likewise.
30033 (seir_cache): New global.
30034 (cached_scalar_evolution_in_region): New function.
30035 (graphite_transform_loops): Allocate and release seir_cache.
30036 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30037 cached_scalar_evolution_in_region.
30038 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30039 Simplify.
30040 (scop_detection::graphite_can_represent_expr: Use
30041 cached_scalar_evolution_in_region.
30042 (scop_detection::stmt_simple_for_scop_p): Likewise.
30043 (find_params_in_bb): Likewise.
30044 (gather_bbs::before_dom_children): Likewise.
30045 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30046 (add_loop_constraints): Likewise.
30047
30048 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30049
30050 PR middle-end/89210
30051 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30052 operand to new_unary_operation only if both element types are integral
30053 and it isn't a widening conversion. Return NULL_TREE if
30054 new_unary_operation failed.
30055
30056 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30057
30058 PR target/88856
30059 * config/s390/s390.md: Remove load and test FP splitter.
30060
30061 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30062
30063 PR target/89112
30064 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30065 expand_compare_loop, expand_block_compare_gpr,
30066 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30067 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30068 #include "profile-count.h" and "predict.h" for types and functions
30069 needed to work with REG_BR_PROB notes.
30070
30071 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30072
30073 PR target/89112
30074 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30075 for the long branch case.
30076
30077 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30078
30079 PR target/89188
30080 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30081 can throw, non-call exceptions are enabled and we can't delete
30082 dead exceptions or alter cfg. Set must_clean if
30083 delete_insn_and_edges returns true, don't set it blindly for calls.
30084 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30085
30086 PR rtl-optimization/89195
30087 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30088 of the original MEM.
30089
30090 2019-02-05 Martin Liska <mliska@suse.cz>
30091
30092 PR gcov-profile/89000
30093 * gcov.c (function_summary): Remove argument.
30094 (file_summary): New function.
30095 (print_usage): Replace tabs with spaces.
30096 (generate_results): Use new function file_summary.
30097
30098 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30099
30100 PR target/89186
30101 * optabs.c (prepare_cmp_insn): Pass x and y to
30102 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30103
30104 2019-02-05 Richard Biener <rguenther@suse.de>
30105
30106 PR middle-end/89150
30107 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30108 (struct bitmap_element): Drop chain_prev so we properly recurse on
30109 the prev member, supporting tree views.
30110 (struct bitmap_head): GTY skip the obstack member.
30111
30112 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30113
30114 PR c/88698
30115 * doc/extend.texi (Vector Extensions): Add an example of using vector
30116 types together with x86 intrinsics.
30117
30118 2019-02-04 Alan Modra <amodra@gmail.com>
30119
30120 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30121 str[] size to 160, and comment.
30122
30123 2019-02-04 Alan Modra <amodra@gmail.com>
30124
30125 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30126 (rs6000_pltseq_template): Guard output of TLS markers with
30127 TARGET_TLS_MARKERS.
30128 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30129 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30130 to use inline PLT sequences.
30131 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30132 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30133 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30134
30135 2019-02-04 Martin Liska <mliska@suse.cz>
30136
30137 PR ipa/88985
30138 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30139 out when ipa_fn_summaries does not contain entry for callee.
30140
30141 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30142
30143 * config/sparc/sparc.h: Remove superfluous blank lines.
30144 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30145 (got_register_rtx): ...this.
30146 (sparc_got): Adjust to above renaming.
30147 (sparc_tls_got): Likewise.
30148 (sparc_delegitimize_address): Likewise.
30149 (sparc_output_mi_thunk): Likewise.
30150 (sparc_init_pic_reg): Likewise.
30151 (save_local_or_in_reg_p): Fix test on the GOT register.
30152 (USE_HIDDEN_LINKONCE): Move around.
30153 (get_pc_thunk_name): Likewise.
30154 (gen_load_pcrel_sym): Likewise.
30155 (load_got_register): Likewise.
30156
30157 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30158
30159 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30160 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30161
30162 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30163
30164 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30165 into consideration.
30166
30167 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30168
30169 * config.gcc (with_nds32_lib, glibc):
30170 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30171 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30172 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30173
30174 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30175
30176 PR target/89071
30177 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30178 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30179 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30180 (*rcpsf2_sse): Ditto.
30181 (*rsqrtsf2_sse): Ditto.
30182 (sse4_1_round<mode<2): Ditto.
30183
30184 2019-02-03 Richard Biener <rguenther@suse.de>
30185
30186 PR debug/87295
30187 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30188 orig.
30189
30190 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30191
30192 PR middle-end/87887
30193 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30194 Punt with warning on aggregate return or argument types. Ignore
30195 type/mode checking for uniform arguments.
30196
30197 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30198
30199 * combine.c (try_combine): Do not print "Can't combine" messages unless
30200 printing failed combination attempts.
30201
30202 2019-02-01 Martin Jambor <mjambor@suse.cz>
30203
30204 PR hsa/87863
30205 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30206 segment and global segment variables before making them static.
30207
30208 2019-02-01 Martin Jambor <mjambor@suse.cz>
30209
30210 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30211 missed optimization dump with dump_enabled_p.
30212
30213 2019-02-01 Richard Biener <rguenther@suse.de>
30214
30215 PR middle-end/88597
30216 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
30217 the instantiate cache.
30218 (instantiate_scev_binary): Elide second operand procesing
30219 if equal to the first.
30220 * tree-chrec.c (chrec_contains_symbols): Add visited set.
30221 (chrec_contains_undetermined): Likewise.
30222 (tree_contains_chrecs): Likewise.
30223
30224 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
30225
30226 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
30227
30228 2019-02-01 Jakub Jelinek <jakub@redhat.com>
30229
30230 PR tree-optimization/89143
30231 * wide-int-range.h (wide_int_range_absu): Declare.
30232 * wide-int-range.cc (wide_int_range_absu): New function.
30233 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
30234
30235 PR tree-optimization/88107
30236 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
30237 instead of assertion that eh_region_outermost is non-NULL, if it
30238 is NULL, set *ALL to true and return NULL.
30239 (move_sese_region_to_fn): Adjust caller, if all is set, call
30240 duplicate_eh_regions with NULL region.
30241
30242 2019-02-01 Richard Biener <rguenth@suse.de>
30243
30244 PR rtl-optimization/88593
30245 * mode-switching.c (optimize_mode_switching): Free dominators before
30246 calling cleanup_cfg.
30247
30248 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30249
30250 PR tree-optimization/88932
30251 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
30252
30253 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30254
30255 PR middle-end/89137
30256 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
30257 bogus clang warning.
30258
30259 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
30260
30261 PR target/89071
30262 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
30263 alternative to avoid partial SSE register stall for TARGET_AVX.
30264 (truncdfsf2): Ditto.
30265 (sse4_1_round<mode>2): Ditto.
30266
30267 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
30268
30269 PR tree-optimization/89008
30270 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
30271 process anything of the form X * 0.
30272
30273 2019-01-31 Richard Biener <rguenther@suse.de>
30274
30275 PR tree-optimization/89135
30276 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
30277 with abnormal preds.
30278
30279 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30280
30281 PR sanitizer/89124
30282 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
30283 always_inline callees into no_sanitize_address callers.
30284
30285 2019-01-31 Richard Biener <rguenther@suse.de>
30286
30287 PR rtl-optimization/89115
30288 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
30289
30290 2019-01-30 Martin Sebor <msebor@redhat.com>
30291
30292 PR other/89106
30293 * doc/extend.texi (cast to a union): Correct and expand.
30294
30295 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
30296
30297 PR rtl-optimization/87246
30298 * lra-constraints.c (simplify_operand_subreg): Reload memory
30299 in subreg if the address became invalid.
30300
30301 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
30302
30303 PR target/87064
30304 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
30305 Disable for little-endian.
30306
30307 2019-01-30 Richard Biener <rguenther@suse.de>
30308
30309 PR rtl-optimization/89115
30310 * opts.c (default_options_optimization): Reduce
30311 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
30312 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
30313 to the default.
30314
30315 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
30316
30317 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
30318 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
30319 type of vector element when vec_extract is implemented by direct
30320 move.
30321
30322 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
30323
30324 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
30325
30326 2019-01-30 Richard Biener <rguenther@suse.de>
30327
30328 PR tree-optimization/89111
30329 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
30330 canonicalization to appropriately sized access types.
30331
30332 2019-01-30 Jakub Jelinek <jakub@redhat.com>
30333
30334 PR c++/89105
30335 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
30336 for arguments to functions that are TU-local and shouldn't be
30337 referenced by assembly.
30338
30339 2019-01-30 Ulrich Drepper <drepper@redhat.com>
30340
30341 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
30342 after '='.
30343
30344 2019-01-29 Martin Sebor <msebor@redhat.com>
30345
30346 PR c/88956
30347 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
30348
30349 2019-01-29 Jakub Jelinek <jakub@redhat.com>
30350
30351 PR c++/66676
30352 PR ipa/89104
30353 * omp-simd-clone.c (simd_clone_clauses_extract)
30354 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
30355 OMP_CLAUSE_ALIGNED_ALIGNMENT.
30356
30357 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
30358
30359 * config.gcc: Force .init_array for ARC.
30360
30361 2019-01-29 Richard Biener <rguenther@suse.de>
30362
30363 PR debug/87295
30364 * dwarf2out.c (collect_skeleton_dies): New helper.
30365 (copy_decls_for_unworthy_types): Call it.
30366 (build_abbrev_table): Assert we do not try to replace
30367 DW_AT_signature refs with local refs.
30368
30369 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30370
30371 PR middle-end/89002
30372 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
30373 for lastprivate/linear IV, push gimplify context around gimplify_assign
30374 and, if it needed any temporaries, pop it into a gimple bind around the
30375 sequence.
30376
30377 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
30378
30379 * common.opt (-Wattribute-alias): Remove "no-" from name.
30380 Make -Wattribute-alias command line option and
30381 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30382
30383 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30384
30385 PR target/89073
30386 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30387 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30388 x86 ISA options.
30389 (bmi2): Add missing @opindex.
30390 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30391 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30392 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30393 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30394 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30395 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30396 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30397 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30398 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30399 xsavec, xsaveopt and xsaves options.
30400
30401 2019-01-28 Richard Biener <rguenther@suse.de>
30402
30403 PR debug/89076
30404 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30405 support removal.
30406
30407 2019-01-28 Richard Biener <rguenther@suse.de>
30408
30409 PR tree-optimization/88739
30410 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30411 BIT_FIELD_REFs only are applied to mode-precision operands
30412 when they are integral.
30413 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30414 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30415 BIT_FIELD_REFs of non-mode-precision integral operands.
30416
30417 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30418
30419 PR target/87214
30420 * config/i386/sse.md
30421 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30422 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30423 first constants in pairs are multiples of 2. Formatting fixes.
30424 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30425 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30426 first constants in each quadruple are multiples of 4. Formatting fixes.
30427
30428 2019-01-26 Martin Jambor <mjambor@suse.cz>
30429
30430 PR ipa/88933
30431 * tree-inline.c: Include tree-cfgcleanup.h.
30432 (delete_unreachable_blocks_update_callgraph): Move...
30433 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30434 ...here, make externally visible, make second argument bool, adjust
30435 all callers.
30436 * tree-cfgcleanup.c: Include cgraph.h.
30437 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
30438 Declare.
30439 * ipa-prop.c: Include tree-cfgcleanup.h.
30440 (ipcp_transform_function): Call
30441 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
30442
30443 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
30444
30445 PR rtl-optimization/88846
30446 * ira.c (process_set_for_memref_referenced_p): New.
30447 (memref_referenced_p): Add new param. Use
30448 process_set_for_memref_referenced_p. Add new switch cases.
30449 (memref_used_between_p): Pass new arg to memref_referenced_p.
30450
30451 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
30452
30453 PR target/88469
30454 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
30455 argument ABI_BREAK. Set to true if the calculated alignment has
30456 changed in gcc-9. Check bit-fields for their base type alignment.
30457 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
30458 (aarch64_function_arg_boundary): Likewise.
30459 (aarch64_gimplify_va_arg_expr): Likewise.
30460
30461 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30462
30463 PR middle-end/89037
30464 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
30465 instead of accessing TREE_INT_CST_ELT directly.
30466
30467 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
30468
30469 * doc/sourcebuild.texi (Environment attributes): Add fenv and
30470 fenv_exceptions description.
30471
30472 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
30473
30474 PR rtl-optimization/87763
30475 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
30476 Allow SUBREG when matching CC_NZmode compare.
30477
30478 2019-01-25 Richard Biener <rguenther@suse.de>
30479
30480 PR tree-optimization/89049
30481 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
30482 Look at the pattern stmt to determine if the stmt is vectorized.
30483
30484 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30485
30486 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
30487 (pred_mov<mode>): Handle all-register forms using both a new
30488 alternative and a split.
30489
30490 2019-01-25 Richard Biener <rguenther@suse.de>
30491
30492 PR tree-optimization/86865
30493 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30494 Reject non-do-while loops.
30495
30496 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
30497
30498 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
30499 * config/rs6000/constraints.md (Q constraint): Use REG_P.
30500 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
30501 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30502 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
30503 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30504 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
30505 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
30506 vlogical_operand, gpc_reg_operand, int_reg_operand,
30507 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
30508 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
30509 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
30510 (save_world_operation, restore_world_operation, lmw_operation,
30511 stmw_operation): Use MEM_P and REG_P.
30512 (tie_operand): Use MEM_P.
30513 (vrsave_operation, crsave_operation): Use REG_P.
30514 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
30515 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
30516 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
30517 (call_operand): Use HARD_REGISTER_P.
30518 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
30519 Use CONST_INT_P.
30520 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
30521 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
30522 quad_aligned_load_p, replace_swapped_aligned_store,
30523 recombine_lvx_pattern, replace_swapped_aligned_load,
30524 recombine_stvx_pattern): Use MEM_P.
30525 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
30526 Use MEM_P and SYMBOL_REF_P.
30527 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
30528 (insn_is_swappable_p): Use REG_P and MEM_P.
30529 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
30530 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
30531 Use CONST_INT_P.
30532 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
30533 Use CONST_DOUBLE_P.
30534 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
30535 CONST_WIDE_INT_P.
30536 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
30537 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
30538 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
30539 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
30540 reg_or_subregno:
30541 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30542 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
30543 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
30544 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
30545 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
30546 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
30547 rs6000_split_logical_di): Use CONST_INT_P.
30548 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
30549 REG_P and SYMBOL_REF_P.
30550 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
30551 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
30552 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
30553 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
30554 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
30555 (small_data_operand, print_operand_address): Use CONST_INT_P and
30556 SYMBOL_REF_P.
30557 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
30558 (rs6000_init_hard_regno_mode_ok, direct_move_p):
30559 Use HARD_REGISTER_NUM_P.
30560 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
30561 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
30562 SUBREG_P and SYMBOL_REF_P.
30563 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
30564 and HARD_REGISTER_NUM_P.
30565 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
30566 reg_or_subregno.
30567 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30568 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30569 MEM_P and REG_P.
30570 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30571 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30572 find_addr_reg): Use REG_P.
30573 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30574 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30575 (offsettable_ok_by_alignment, constant_pool_expr_p,
30576 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30577 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30578 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30579 rs6000_assemble_integer, create_TOC_reference,
30580 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30581 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30582 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30583 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30584 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30585 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30586 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30587 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30588 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30589 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30590 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30591 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30592 and cbranch<mode>4): Use CONST_INT_P.
30593 (multiple define_splits): Use REG_P and SUBREG_P.
30594 (define_expands call, call_value): Use MEM_P.
30595 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30596 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30597 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30598 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30599 and HARD_REGISTER_NUM_P.
30600 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30601
30602 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30603
30604 PR rtl-optimization/88948
30605 * rtl.h (prepare_copy_insn): New prototype.
30606 * gcse.c (prepare_copy_insn): New function, split out from
30607 process_insert_insn.
30608 (process_insert_insn): Use prepare_copy_insn.
30609 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30610 instead of gen_move_insn.
30611
30612 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30613
30614 PR debug/89006
30615 * config/i386/i386.c (ix86_pic_register_p): Return true for
30616 UNSPEC_SET_GOT too.
30617
30618 PR tree-optimization/88964
30619 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30620 punt if HONOR_SNANS (chrec).
30621
30622 PR middle-end/89015
30623 * tree-nested.c (convert_nonlocal_reference_stmt,
30624 convert_local_reference_stmt, convert_tramp_reference_stmt,
30625 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30626 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30627 or GIMPLE_OMP_TASK.
30628
30629 PR tree-optimization/89027
30630 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30631 for "omp simd array" variables.
30632
30633 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30634
30635 PR target/88469
30636 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30637 force the alignment of m_val.
30638
30639 2019-01-24 Richard Biener <rguenther@suse.de>
30640
30641 PR lto/87187
30642 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30643 When in "legacy" debug mode make sure to reset self-origins.
30644
30645 2019-01-24 Martin Liska <mliska@suse.cz>
30646
30647 PR gcov-profile/88994
30648 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30649 result will be always smaller or equal to the original.
30650 * gcov.c (mangle_name): Fix else branch where we should
30651 also copy to PTR and shift the pointer.
30652
30653 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30654
30655 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30656 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30657
30658 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30659
30660 * common/config/i386/i386-common.c
30661 (OPTION_MASK_ISA_ENQCMD_SET,
30662 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30663 (ix86_handle_option): Handle -menqcmd.
30664 * config.gcc (enqcmdintrin.h): New header file.
30665 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30666 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30667 -menqcmd.
30668 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30669 function type.
30670 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30671 __builtin_ia32_enqcmds): New builtins.
30672 * config/i386/i386-c.c (__ENQCMD__): New macro.
30673 * config/i386/i386-option.c (ix86_target_string): Add
30674 -menqcmd.
30675 (ix86_valid_target_attribute_inner_p): Likewise.
30676 * config/i386/i386-expand.c
30677 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30678 IX86_BUILTIN_ENQCMDS.
30679 * config/i386/i386.h (TARGET_ENQCMD): New.
30680 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30681 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30682 (movdir64b_<mode>): Parameterize to enable share expansion code
30683 with ENQCMD in function ix86_expand_builtin.
30684 * config/i386/i386.opt: Add -menqcmd.
30685 * config/i386/immintrin.h: Include enqcmdintrin.h.
30686 * config/i386/enqcmdintrin.h: New intrinsic file.
30687 * doc/invoke.texi: Add -menqcmd.
30688
30689 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30690 Steve Ellcey <sellcey@marvell.com>
30691
30692 PR target/85711
30693 * recog.c (address_operand): Return false on wrong mode for address.
30694 (constrain_operands): Check for mode with 'p' constraint.
30695
30696 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30697
30698 PR target/88998
30699 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30700 Disparage MMX alternative.
30701 (sse2_cvtpd2pi): Ditto.
30702 (sse2_cvttpd2pi): Ditto.
30703
30704 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30705
30706 PR driver/89014
30707 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30708 use-after-free of the result of
30709 aarch64_get_extension_string_for_isa_flags.
30710
30711 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30712
30713 PR c/44715
30714 * doc/extend.texi: Document break and continue behavior in
30715 statement expressions.
30716
30717 2019-01-23 Richard Biener <rguenther@suse.de>
30718
30719 PR tree-optimization/89008
30720 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30721 not leave another stray operand.
30722
30723 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30724
30725 * BASE-VER: Bump to 9.0.1.
30726
30727 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30728
30729 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30730 thunk that returns by reference, use the type of the return object
30731 of the thunk instead of that of the alias to build the dereference.
30732
30733 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30734
30735 * config/arc/atomic.md: Add operand to DMB instruction.
30736
30737 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30738
30739 PR tree-optimization/88964
30740 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30741 build_zero_cst instead of build_int_cst. Return false for loop
30742 invariants which honor signed zeros.
30743
30744 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30745
30746 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30747
30748 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30749
30750 PR target/88965
30751 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30752 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30753 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30754
30755 PR middle-end/88968
30756 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30757 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30758
30759 PR target/87064
30760 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30761 Disable for little endian.
30762
30763 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30764
30765 PR target/88469
30766 * config/arm/arm.c (arm_needs_double_word_align): Check
30767 DECL_BIT_FIELD_TYPE.
30768
30769 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30770 H.J. Lu <hongjiu.lu@intel.com>
30771
30772 PR target/88909
30773 * config/i386/i386-builtin.def: Add mask2 to all builtin
30774 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30775 SPECIAL_ARGS.
30776 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30777 (BDESC_FIRST): Likewise.
30778 (define_builtin): Add an argument for mask2. Updated to handle
30779 both ix86_isa_flags and ix86_isa_flags2.
30780 (define_builtin_const): Likewise.
30781 (define_builtin_pure): Likewise.
30782 (define_builtin2): Deleted.
30783 (define_builtin_const2): Likewise.
30784 (builtin_description): Add a member, mask2.
30785 (bdesc_*): Add mask2 to builtin initializations.
30786 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30787 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30788 support.
30789 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30790
30791 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30792
30793 PR target/88954
30794 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30795 noplt attribute.
30796
30797 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30798
30799 PR target/88469
30800 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30801 alignment is dominated by a bitfield with 64-bit aligned base type.
30802 (arm_function_arg): Emit a warning if the alignment has changed since
30803 earlier GCC releases.
30804 (arm_function_arg_boundary): Likewise.
30805 (arm_setup_incoming_varargs): Likewise.
30806
30807 2019-01-22 Richard Biener <rguenther@suse.de>
30808
30809 PR tree-optimization/88862
30810 * graphite-scop-detection.c
30811 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30812
30813 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30814
30815 * doc/extend.tex (AMD GCN Function Attributes): New section.
30816 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30817 * doc/invoke.texi (AMD GCN Options): New section.
30818 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30819
30820 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30821
30822 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30823 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30824
30825 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30826
30827 PR tree-optimization/88044
30828 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30829 is false in the first iteration, but !every_iteration, return false
30830 instead of true with niter->niter zero.
30831
30832 PR rtl-optimization/88904
30833 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30834 any nonequal registers before processing BB_END (b).
30835
30836 PR target/88905
30837 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30838 GET_MODE (op0).
30839 (expand_binop_directly, expand_doubleword_clz,
30840 expand_doubleword_popcount, expand_ctz, expand_ffs,
30841 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30842
30843 PR rtl-optimization/49429
30844 PR target/49454
30845 PR rtl-optimization/86334
30846 PR target/88906
30847 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30848 addressable from here...
30849 (emit_block_op_via_libcall): ... to here.
30850
30851 2019-01-22 Richard Biener <rguenther@suse.de>
30852
30853 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30854 auto_vec for cost vector to fix memleak.
30855 (vectorize_fold_left_reduction): Properly gather SLP defs.
30856 (vectorizable_comparison): Do not swap operands to properly
30857 gather SLP defs.
30858
30859 2019-01-22 Alan Modra <amodra@gmail.com>
30860
30861 PR target/88614
30862 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30863 stays a reg. Allow a const_int.
30864 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30865 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30866 (IS_NOMARK_TLSGETADDR): Define.
30867 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30868 (rs6000_output_tlsargs): New function.
30869 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30870 __tls_get_addr call takes an arg.
30871 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30872 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30873 delete split..
30874 (call_value_nonlocal_sysv): ..or here, delete split.
30875 (tls_gdld_nomark): Delete.
30876 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30877 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30878 (call_value_nonlocal_sysv): Likewise.
30879 (call_value_nonlocal_sysv_secure): Likewise.
30880 (call_value_nonlocal_aix): Likewise.
30881 (call_value_indirect_aix): Likewise.
30882 (call_value_indirect_elfv2): Likewise.
30883 (call_value_local32, call_value_local64): Disable for no-mark tls.
30884 (call_value_local_aix): Likewise.
30885
30886 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30887
30888 PR target/88938
30889 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30890 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30891
30892 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30893
30894 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30895 string contents as hash_map keys.
30896
30897 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30898
30899 PR c/88928
30900 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30901 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30902 instead of TYPE_ALIGN.
30903 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30904 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30905 pointer from TYPE_STUB_DECL.
30906
30907 2019-01-21 Richard Biener <rguenther@suse.de>
30908
30909 PR tree-optimization/88934
30910 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30911 at the possibly non-constant operand.
30912 (vect_get_constant_vectors): Adjust.
30913
30914 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30915
30916 PR target/71659
30917 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30918 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30919 instead of _X86INTRIN_H_INCLUDED.
30920 * onfig/i386/clwbintrin.h: Likewise.
30921 * config/i386/pkuintrin.h: Likewise.
30922 * config/i386/prfchwintrin.h: Likewise.
30923 * config/i386/rdseedintrin.h: Likewise.
30924 * config/i386/wbnoinvdintrin.h: Likewise.
30925 * config/i386/xsavecintrin.h: Likewise.
30926 * config/i386/xsavesintrin.h: Likewise.
30927 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30928 * config/i386/xsaveintrin.h: Likewise.
30929 * config/i386/xsaveoptintrin.h: Likewise.
30930 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30931 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30932 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30933 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30934 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30935 * config/i386/immintrin.h: Here.
30936
30937 2019-01-20 Martin Jambor <mjambor@suse.cz>
30938
30939 PR ipa/87615
30940 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30941 with aa_walk_budget.
30942 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30943 aa_walk_budget_p parameter.
30944 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30945 walk. Updated all callers.
30946 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30947 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30948 unmodified_parm.
30949 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30950 parameter info. Extract info from fbi. Pass fbi to recursive calls
30951 and to unmodified_parm.
30952 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30953 info, updated call to will_be_nonconstant_expr_predicate.
30954 (param_change_prob): New parameter fbi, limit AA walking.
30955 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30956 calls to various above functions.
30957 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30958 parameter. Use it to limit AA walking.
30959 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30960 fbi, limit AA walk.
30961 (detect_type_change): New parameter fbi, pass it on to
30962 detect_type_change_from_memory_writes.
30963 (detect_type_change_ssa): Likewise.
30964 (aa_overwalked): Removed.
30965 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30966 accordingly, adjust to the neew AA limiting scheme.
30967 (parm_ref_data_preserved_p): Likewise.
30968 (ipa_compute_jump_functions_for_edge): Adjust call to
30969 get_dynamic_type.
30970 (ipa_analyze_call_uses): Likewise.
30971 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30972 (ipa_analyze_node): Initialize aa_walk_budget.
30973 (ipcp_transform_function): Likewise.
30974 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30975 to get_dynamic_type.
30976
30977 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30978
30979 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30980 outside of #if CHECKING_P code.
30981
30982 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30983
30984 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30985 New function, split out from...
30986 (loop_versioning::analyze_stride): ...here.
30987 (loop_versioning::find_per_loop_multiplication): Use gassign.
30988 (loop_versioning::analyze_term_using_scevs): Return a success code.
30989 (loop_versioning::analyze_arbitrary_term): New function.
30990 (loop_versioning::analyze_address_fragment): Use
30991 analyze_arbitrary_term if all else fails.
30992
30993 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30994
30995 PR target/88892
30996 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30997 operands.
30998
30999 2019-01-18 Richard Biener <rguenther@suse.de>
31000
31001 PR tree-optimization/88903
31002 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
31003 scalar stmts a SLP shift amount is composed of when detecting
31004 shifts by scalars.
31005
31006 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
31007
31008 PR target/88799
31009 * config/arm/arm-cpus.in (mp): New feature.
31010 (sec): New feature.
31011 (fgroup ARMv7ve): Add mp and sec features.
31012 (arch armv7-a): Add options to allow mp and sec extensions.
31013 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
31014 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
31015 extenstions to the base architecture.
31016 (cpu cortex-a8): Add sec extension to the base architecture.
31017 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31018 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31019 variants down to the base v7-a varaint.
31020 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31021 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31022 of permitted extensions for -march=armv7-a and for
31023 -mcpu=generic-armv7-a.
31024
31025 2019-01-18 Martin Liska <mliska@suse.cz>
31026
31027 * params.def: Fix comment.
31028 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31029 name.
31030 (gimple_gen_ic_func_profiler): Likewise.
31031
31032 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31033
31034 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31035 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31036 and put in error checks for stack protector guard options.
31037 (aarch64_stack_protect_guard): New.
31038 (TARGET_STACK_PROTECT_GUARD): Define.
31039 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31040 (reg_stack_protect_address<mode>): New.
31041 (stack_protect_set): Adjust for SSP_GLOBAL.
31042 (stack_protect_test): Likewise.
31043 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31044 (-mstack-protector-guard): Likewise.
31045 (-mstack-protector-guard-offset): Likewise.
31046
31047 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31048
31049 PR tree-optimization/86214
31050 * tree-inline.h (struct copy_body_data): Add
31051 add_clobbers_to_eh_landing_pads member.
31052 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31053 (copy_edges_for_bb): Call it if EH edge destination is <
31054 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31055 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31056 if flag_stack_reuse != SR_NONE and clear it afterwards.
31057
31058 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31059
31060 PR target/85596
31061 * doc/install.texi (with-multilib-list): Document for aarch64.
31062
31063 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31064
31065 PR target/88734
31066 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31067 (("..."))) with ("...").
31068
31069 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31070
31071 * doc/extend.texi (Built-in Functions for Memory Model Aware
31072 Atomic Operations): Document atomic fetch and nand.
31073
31074 2019-01-18 Martin Liska <mliska@suse.cz>
31075 Richard Biener <rguenther@suse.de>
31076
31077 PR middle-end/88587
31078 * cgraph.h (create_version_clone_with_body): Add new argument
31079 with attributes.
31080 * cgraphclones.c (cgraph_node::create_version_clone): Add
31081 DECL_ATTRIBUTES to a newly created decl. And call
31082 valid_attribute_p so that proper cl_target_optimization_node
31083 is set for the newly created declaration.
31084 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31085 for declaration.
31086 (expand_target_clones): Do not call valid_attribute_p, it must
31087 be already done.
31088 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31089 vector types.
31090
31091 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31092
31093 PR target/88734
31094 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31095 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31096 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31097
31098 2019-01-17 Martin Sebor <msebor@redhat.com>
31099
31100 PR middle-end/88273
31101 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31102 Handle anti-ranges the same as no range at all.
31103
31104 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31105
31106 * config/aarch64/aarch64.c (cgraph.h): New include.
31107 (intl.h): New include.
31108 (supported_simd_type): New function.
31109 (currently_supported_simd_type): Ditto.
31110 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31111 (aarch64_simd_clone_adjust): Ditto.
31112 (aarch64_simd_clone_usable): Ditto.
31113 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31114 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31115 (TARGET_SIMD_CLONE_USABLE): Ditto.
31116 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31117 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31118 call.
31119
31120 2019-01-17 Martin Sebor <msebor@redhat.com>
31121
31122 PR tree-optimization/88800
31123 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31124 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31125 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31126 redundant argument. Add new argument and issue diagnostics under
31127 its control. Detect out-of-bounds access even with warnings
31128 disabled.
31129 (check_bounds_or_overlap): Change return type. Add argument.
31130 (wrestrict_dom_walker::check_call): Adjust.
31131 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31132 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31133 check_bounds_or_overlap's return value.
31134 (handle_builtin_stxncpy): Same.
31135 (handle_builtin_strcat): Same.
31136
31137 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31138 Kwok Cheung Yeung <kcy@codesourcery.com>
31139 Julian Brown <julian@codesourcery.com>
31140 Tom de Vries <tom@codesourcery.com>
31141
31142 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31143
31144 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31145
31146 * doc/sourcebuild.texi: Document dg-require-effective-target
31147 llvm_binutils and offload_gcn.
31148
31149 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31150 Kwok Cheung Yeung <kcy@codesourcery.com>
31151 Julian Brown <julian@codesourcery.com>
31152 Tom de Vries <tom@codesourcery.com>
31153
31154 * doc/sourcebuild.texi: Document dg-required-effective-target
31155 exceptions.
31156
31157 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31158 Kwok Cheung Yeung <kcy@codesourcery.com>
31159 Julian Brown <julian@codesourcery.com>
31160 Tom de Vries <tom@codesourcery.com>
31161 Jan Hubicka <hubicka@ucw.cz>
31162 Martin Jambor <mjambor@suse.cz>
31163
31164 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31165 * configure.ac: Check for dlopen.
31166 * configure: Regenerate.
31167
31168 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31169 Kwok Cheung Yeung <kcy@codesourcery.com>
31170 Julian Brown <julian@codesourcery.com>
31171 Tom de Vries <tom@codesourcery.com>
31172 Jan Hubicka <hubicka@ucw.cz>
31173 Martin Jambor <mjambor@suse.cz>
31174
31175 * common/config/gcn/gcn-common.c: New file.
31176 * config/gcn/driver-gcn.c: New file.
31177 * config/gcn/gcn-builtins.def: New file.
31178 * config/gcn/gcn-hsa.h: New file.
31179 * config/gcn/gcn-modes.def: New file.
31180 * config/gcn/gcn-opts.h: New file.
31181 * config/gcn/gcn-passes.def: New file.
31182 * config/gcn/gcn-protos.h: New file.
31183 * config/gcn/gcn-run.c: New file.
31184 * config/gcn/gcn-tree.c: New file.
31185 * config/gcn/gcn.c: New file.
31186 * config/gcn/gcn.h: New file.
31187 * config/gcn/gcn.opt: New file.
31188 * config/gcn/t-gcn-hsa: New file.
31189
31190 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31191 Kwok Cheung Yeung <kcy@codesourcery.com>
31192 Julian Brown <julian@codesourcery.com>
31193 Tom de Vries <tom@codesourcery.com>
31194 Jan Hubicka <hubicka@ucw.cz>
31195 Martin Jambor <mjambor@suse.cz>
31196
31197 * config/gcn/constraints.md: New file.
31198 * config/gcn/gcn-valu.md: New file.
31199 * config/gcn/gcn.md: New file.
31200 * config/gcn/predicates.md: New file.
31201
31202 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31203
31204 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31205 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31206 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31207 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31208
31209 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31210
31211 PR target/88851
31212 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
31213 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
31214 it and document registers.
31215
31216 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31217
31218 * config/aarch64/aarch64.c (ares_tunings): Define.
31219 * config/aarch64/aarch64-cores.def (ares): Use the above.
31220
31221 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31222
31223 PR target/88794
31224 Revert:
31225 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
31226
31227 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
31228 (_mm512_fixupimm_round_pd): Update parameters and builtin.
31229 (_mm512_maskz_fixupimm_round_pd): Ditto.
31230 (_mm512_fixupimm_round_ps): Ditto.
31231 (_mm512_maskz_fixupimm_round_ps): Ditto.
31232 (_mm_fixupimm_round_sd): Ditto.
31233 (_mm_maskz_fixupimm_round_sd): Ditto.
31234 (_mm_fixupimm_round_ss): Ditto.
31235 (_mm_maskz_fixupimm_round_ss): Ditto.
31236 (_mm512_fixupimm_pd): Ditto.
31237 (_mm512_maskz_fixupimm_pd): Ditto.
31238 (_mm512_fixupimm_ps): Ditto.
31239 (_mm512_maskz_fixupimm_ps): Ditto.
31240 (_mm_fixupimm_sd): Ditto.
31241 (_mm_maskz_fixupimm_sd): Ditto.
31242 (_mm_fixupimm_ss): Ditto.
31243 (_mm_maskz_fixupimm_ss): Ditto.
31244 (_mm512_mask_fixupimm_round_pd): Update builtin.
31245 (_mm512_mask_fixupimm_round_ps): Ditto.
31246 (_mm_mask_fixupimm_round_sd): Ditto.
31247 (_mm_mask_fixupimm_round_ss): Ditto.
31248 (_mm512_mask_fixupimm_pd): Ditto.
31249 (_mm512_mask_fixupimm_ps): Ditto.
31250 (_mm_mask_fixupimm_sd): Ditto.
31251 (_mm_mask_fixupimm_ss): Ditto.
31252 * config/i386/avx512vlintrin.h:
31253 (_mm256_fixupimm_pd): Update parameters and builtin.
31254 (_mm256_maskz_fixupimm_pd): Ditto.
31255 (_mm256_fixupimm_ps): Ditto.
31256 (_mm256_maskz_fixupimm_ps): Ditto.
31257 (_mm_fixupimm_pd): Ditto.
31258 (_mm_maskz_fixupimm_pd): Ditto.
31259 (_mm_fixupimm_ps): Ditto.
31260 (_mm_maskz_fixupimm_ps): Ditto.
31261 (_mm256_mask_fixupimm_pd): Update builtin.
31262 (_mm256_mask_fixupimm_ps): Ditto.
31263 (_mm_mask_fixupimm_pd): Ditto.
31264 (_mm_mask_fixupimm_ps): Ditto.
31265 * config/i386/i386-builtin-types.def: Add new types and remove
31266 useless ones.
31267 * config/i386/i386-builtin.def: Update builtin definitions.
31268 * config/i386/i386.c: Handle new builtin types and remove useless ones.
31269 * config/i386/sse.md: Update VFIXUPIMM* patterns.
31270 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31271 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31272 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
31273 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31274 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31275 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
31276 * config/i386/subst.md:
31277 (round_saeonly_sd_mask_operand4): Add new subst_attr.
31278 (round_saeonly_sd_mask_op4): Ditto.
31279 (round_saeonly_expand_operand5): Ditto.
31280 (round_saeonly_expand): Update.
31281
31282 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31283
31284 PR target/88794
31285 Revert:
31286 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
31287
31288 * config/i386/sse.md: Combine VFIXUPIMM* patterns
31289 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31290 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31291 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
31292 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31293 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31294 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
31295
31296 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31297
31298 PR target/88794
31299 Revert:
31300 2018-12-15 Jakub Jelinek <jakub@redhat.com>
31301
31302 PR target/88489
31303 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
31304 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
31305 instead of UNSPEC_FIXUPIMM.
31306
31307 2019-01-17 Richard Biener <rguenther@suse.de>
31308
31309 PR lto/86736
31310 * dwarf2out.c (want_pubnames): Never generate pubnames sections
31311 and friends for the LTO part of debug info.
31312
31313 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31314
31315 PR tree-optimization/86214
31316 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
31317 if x == y.
31318
31319 PR rtl-optimization/88870
31320 * dce.c (deletable_insn_p): Never delete const/pure calls that can
31321 throw if we can't alter the cfg or delete dead exceptions.
31322 (mark_insn): Don't call find_call_stack_args for such calls.
31323
31324 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
31325
31326 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
31327 prototypes for vec_st.
31328 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
31329 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
31330 mainly on signed/unsigned long long and double.
31331
31332 2019-01-16 David Malcolm <dmalcolm@redhat.com>
31333
31334 PR target/88861
31335 * combine.c (delete_noop_moves): Convert to "bool" return,
31336 returning true if any edges are eliminated.
31337 (combine_instructions): Also return true if delete_noop_moves
31338 returns true.
31339
31340 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31341
31342 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
31343 correct max nunits for endian swap.
31344 (aarch64_expand_fcmla_builtin): Correct subreg code.
31345 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31346 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
31347 lane endianness.
31348
31349 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
31350
31351 * config/alpha/alpha.c (alpha_gimplify_va_arg):
31352 Handle split indirect COMPLEX_TYPE arguments.
31353
31354 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
31355
31356 PR target/86891
31357 * config/aarch64/aarch64-modes.def: Add comment about how the carry
31358 bit is set by add and compare.
31359 (CC_ADC): New CC_MODE.
31360 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
31361 to cache the code and mode of X. Adjust the shape of a CC_Cmode
31362 comparison. Add detection for CC_ADCmode.
31363 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
31364 CC_ADCmode.
31365 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
31366 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
31367 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
31368 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
31369 to eliminate the need for zero-extending the operands.
31370 (add<mode>3_compareC_imm): Delete. Merge into ...
31371 (add<mode>3_compareC): ... this. Restructure the comparison to
31372 eliminate the need for zero-extending the operands.
31373 (add<mode>3_carryin): Use LTU for the overflow detection.
31374 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
31375 Reexpress comparison for overflow.
31376 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
31377 (add<mode>3_carryinC): Likewise.
31378 (add<mode>3_carryinV): Use LTU for carry between partials.
31379 * config/aarch64/predicates.md (aarch64_carry_operation): Update
31380 handling of CC_Cmode and add CC_ADCmode.
31381 (aarch64_borrow_operation): Likewise.
31382
31383 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31384
31385 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31386 Remove patternmode.
31387 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31388 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31389 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31390 Remove endianness conversion.
31391
31392 2019-01-16 Martin Liska <mliska@suse.cz>
31393
31394 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31395 for GCC driver.
31396 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31397 a new argument.
31398 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31399 (path_prefix_reset): Move up in the source file.
31400 (find_fortran_preinclude_file): Make complex search for the
31401 fortran header files.
31402
31403 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31404
31405 * godump.c (go_output_typedef): When outputting a typedef, refer
31406 to the underlying type by its name and not its structure.
31407
31408 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31409
31410 PR c++/88795
31411 * tree.c (build_function_type): Assert that arg_types is not
31412 error_mark_node.
31413
31414 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31415
31416 PR inline-asm/52813
31417 * doc/extend.texi: Document that listing the stack pointer in the
31418 clobber list of an asm is a deprecated feature.
31419 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31420 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31421 warning instead of an error for clobbers of the stack pointer.
31422 Add a note explaining why.
31423
31424 2019-01-15 Richard Biener <rguenther@suse.de>
31425
31426 PR debug/88046
31427 * dwarf2out.c (gen_member_die): Do not generate inheritance
31428 DIEs late.
31429
31430 2019-01-15 Richard Biener <rguenther@suse.de>
31431
31432 PR tree-optimization/88855
31433 * tree-if-conv.c (combine_blocks): Collect
31434 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
31435
31436 2019-01-15 Tom de Vries <tdevries@suse.de>
31437
31438 PR target/80547
31439 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
31440 lhs == NULL_TREE for gang-level reduction.
31441
31442 2019-01-15 Richard Biener <rguenther@suse.de>
31443 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31444
31445 PR ipa/88788
31446 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
31447 return true if SSA_NAME is already marked in visited bitmap.
31448 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
31449
31450 2019-01-15 Jakub Jelinek <jakub@redhat.com>
31451
31452 PR tree-optimization/88775
31453 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
31454 equal == 0 equality pointer comparisons some more if compared in
31455 integral types and either one points to an automatic var and the
31456 other to a global, or we can prove at least one points to the middle
31457 or both point to start or both point to end.
31458
31459 2019-01-14 Andi Kleen <ak@linux.intel.com>
31460
31461 * Makefile.in: Lower autofdo sampling rate by 10x.
31462 * Makefile.tpl: Dito.
31463
31464 2019-01-14 Tom Honermann <tom@honermann.net>
31465
31466 * defaults.h: Define CHAR8_TYPE.
31467
31468 2019-01-14 Martin Sebor <msebor@redhat.com>
31469
31470 PR target/88638
31471 * doc/extend.texi (Darwin Format Checks): Clarify.
31472
31473 2019-01-14 Richard Biener <rguenther@suse.de>
31474
31475 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
31476 whether we are in (simplify ...) or (match ...) context.
31477
31478 2019-01-14 Jakub Jelinek <jakub@redhat.com>
31479
31480 PR rtl-optimization/88796
31481 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
31482 * cfgexpand.c (stack_protect_prologue): Initialize
31483 crtl->stack_protect_guard_decl.
31484 * function.c (stack_protect_epilogue): Use it instead of calling
31485 targetm.stack_protect_guard again.
31486 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
31487 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
31488 crtl->stack_protect_guard_decl.
31489 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
31490 on the returned MEM_EXPR.
31491
31492 2019-01-12 Tom de Vries <tdevries@suse.de>
31493
31494 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
31495 vector length using -fopenacc-dim.
31496
31497 2019-01-12 Tom de Vries <tdevries@suse.de>
31498
31499 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
31500 lengths into account.
31501
31502 2019-01-12 Svante Signell <svante.signell@gmail.com>
31503
31504 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
31505 (TARGET_CAN_SPLIT_STACK): Define.
31506 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
31507
31508 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31509
31510 * params.def (inline-unit-growth): Set to 40.
31511
31512 2019-01-12 Jakub Jelinek <jakub@redhat.com>
31513
31514 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
31515
31516 2019-01-12 Tom de Vries <tdevries@suse.de>
31517
31518 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
31519 region calling vector-partitionable routine, set default_vector_length
31520 to WARP_SIZE.
31521
31522 2019-01-12 Tom de Vries <tdevries@suse.de>
31523
31524 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
31525 variable default_vector_length.
31526
31527 2019-01-12 Tom de Vries <tdevries@suse.de>
31528
31529 PR middle-end/88703
31530 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
31531 from oacc_default_dims, as oacc_validate_dims would do it, and apply
31532 dimensions limits.
31533
31534 2019-01-12 Tom de Vries <tdevries@suse.de>
31535
31536 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
31537 (nvptx_goacc_validate_dims): Add used parameter.
31538 * doc/tm.texi: Regenerate.
31539 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
31540 argument to call to targetm.goacc.validate_dims.
31541 (default_goacc_validate_dims): Add used
31542 parameter.
31543 * target.def (validate_dims): Add used parameter in DEFHOOK.
31544 * targhooks.h (default_goacc_validate_dims): Add used parameter.
31545
31546 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31547
31548 PR middle-end/85956
31549 PR lto/88733
31550 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
31551 field.
31552 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
31553 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
31554 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
31555 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
31556
31557 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
31558
31559 PR rtl-optimization/87305
31560 * lra-assigns.c
31561 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
31562 for little endian pseudos used as paradoxical subreg.
31563
31564 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31565
31566 PR tree-optimization/88693
31567 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31568 for STRING_CSTs that don't contain any NUL characters in the first
31569 TREE_STRING_LENGTH bytes.
31570
31571 2019-01-11 Alan Modra <amodra@gmail.com>
31572
31573 PR 88777
31574 PR 88614
31575 * genattrtab.c (min_fn): Don't translate values.
31576 (min_attr_value): Return INT_MAX when the value can't be calculated.
31577 Return minimum among any values that can be calculated.
31578 (max_attr_value): Adjust.
31579
31580 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31581
31582 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31583
31584 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31585
31586 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31587 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31588 (aarch64_return_call_with_max_clobbers): New function.
31589 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31590 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31591 argument.
31592 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31593 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31594 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31595 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31596 * cselib.c (cselib_process_insn): Add argument to
31597 targetm.hard_regno_call_part_clobbered call.
31598 * ira-conflicts.c (ira_build_conflicts): Ditto.
31599 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31600 * lra-constraints.c (inherit_reload_reg): Ditto.
31601 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31602 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31603 argument. Call targetm.return_call_with_max_clobbers.
31604 Add argument to targetm.hard_regno_call_part_clobbered call.
31605 (calls_have_same_clobbers_p): New function.
31606 (process_bb_lives): Add call_insn and last_call_insn variables.
31607 Pass call_insn to check_pseudos_live_through_calls.
31608 Modify if stmt to check targetm.return_call_with_max_clobbers.
31609 Update setting of flush variable.
31610 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31611 to false.
31612 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31613 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31614 targetm.hard_regno_call_part_clobbered call.
31615 * reginfo.c (choose_hard_reg_mode): Ditto.
31616 * regrename.c (check_new_reg_p): Ditto.
31617 * reload.c (find_equiv_reg): Ditto.
31618 * reload1.c (emit_reload_insns): Ditto.
31619 * sched-deps.c (deps_analyze_insn): Ditto.
31620 * sel-sched.c (init_regs_for_mode): Ditto.
31621 (mark_unavailable_hard_regs): Ditto.
31622 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31623 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31624 (return_call_with_max_clobbers): New target function.
31625 * doc/tm.texi: Regenerate.
31626 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31627 * hooks.c (hook_bool_uint_mode_false): Change to
31628 hook_bool_insn_uint_mode_false.
31629 * hooks.h (hook_bool_uint_mode_false): Ditto.
31630
31631 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31632
31633 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31634 (aarch64_remove_extra_call_preserved_regs): New function.
31635 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31636 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31637 * doc/tm.texi: Regenerate.
31638 * final.c (get_call_reg_set_usage): Call new hook.
31639 * target.def (remove_extra_call_preserved_regs): New hook.
31640 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31641 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31642
31643 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31644
31645 PR bootstrap/88714
31646 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31647 inside of pass_combine_1 dump rather than pass_profile_1.
31648
31649 2019-01-11 Tom de Vries <tdevries@suse.de>
31650
31651 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31652 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31653 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31654 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31655 num_workers 16.
31656
31657 2019-01-11 Tom de Vries <tdevries@suse.de>
31658
31659 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31660
31661 2019-01-11 Jan Beulich <jbeulich@suse.com>
31662
31663 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31664 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31665 sse2_cvtsi2sd): Add {l}.
31666 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31667 syntax.
31668
31669 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31670
31671 PR target/88785
31672 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31673 define_expand.
31674 (*float<floatunssuffix>v2div2sf2): New define_insn.
31675 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31676 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31677 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31678 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31679 match_operands with "const0_operand" "C".
31680
31681 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31682
31683 * config/aarch64/aarch64-builtins.c
31684 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31685 (aarch64_init_simd_builtins): ...Here
31686
31687 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31688
31689 PR rtl-optimization/87305
31690 * lra-assigns.c
31691 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31692 allocation for big endian pseudos used as paradoxical subregs and
31693 spill them if it is wrong.
31694 * lra-constraints.c (lra_constraints): Add a comment.
31695
31696 2019-01-10 Richard Biener <rguenther@suse.de>
31697
31698 PR tree-optimization/88792
31699 * tree-ssa-pre.c (get_representative_for): Do not return a
31700 value-number here.
31701
31702 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31703
31704 PR middle-end/84877
31705 PR bootstrap/88450
31706 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31707 (assign_parm_setup_block): Do the argument slot realignment here
31708 instead.
31709
31710 2019-01-10 Stefan Agner <stefan@agner.ch>
31711
31712 PR target/88648
31713 * config/arm/arm.c (arm_option_override_internal): Force
31714 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31715
31716 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31717
31718 PR c/88568
31719 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31720 DECL_EXTERNAL.
31721
31722 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31723
31724 * config/arm/arm-builtins.c
31725 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31726 (MAC_LANE_PAIR_QUALIFIERS): New.
31727 (arm_expand_builtin_args): Use it.
31728 (arm_expand_builtin_1): Likewise.
31729 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31730 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31731 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31732 * config/arm/arm_neon.h:
31733 (vcadd_rot90_f16): New.
31734 (vcaddq_rot90_f16): New.
31735 (vcadd_rot270_f16): New.
31736 (vcaddq_rot270_f16): New.
31737 (vcmla_f16): New.
31738 (vcmlaq_f16): New.
31739 (vcmla_lane_f16): New.
31740 (vcmla_laneq_f16): New.
31741 (vcmlaq_lane_f16): New.
31742 (vcmlaq_laneq_f16): New.
31743 (vcmla_rot90_f16): New.
31744 (vcmlaq_rot90_f16): New.
31745 (vcmla_rot90_lane_f16): New.
31746 (vcmla_rot90_laneq_f16): New.
31747 (vcmlaq_rot90_lane_f16): New.
31748 (vcmlaq_rot90_laneq_f16): New.
31749 (vcmla_rot180_f16): New.
31750 (vcmlaq_rot180_f16): New.
31751 (vcmla_rot180_lane_f16): New.
31752 (vcmla_rot180_laneq_f16): New.
31753 (vcmlaq_rot180_lane_f16): New.
31754 (vcmlaq_rot180_laneq_f16): New.
31755 (vcmla_rot270_f16): New.
31756 (vcmlaq_rot270_f16): New.
31757 (vcmla_rot270_lane_f16): New.
31758 (vcmla_rot270_laneq_f16): New.
31759 (vcmlaq_rot270_lane_f16): New.
31760 (vcmlaq_rot270_laneq_f16): New.
31761 (vcadd_rot90_f32): New.
31762 (vcaddq_rot90_f32): New.
31763 (vcadd_rot270_f32): New.
31764 (vcaddq_rot270_f32): New.
31765 (vcmla_f32): New.
31766 (vcmlaq_f32): New.
31767 (vcmla_lane_f32): New.
31768 (vcmla_laneq_f32): New.
31769 (vcmlaq_lane_f32): New.
31770 (vcmlaq_laneq_f32): New.
31771 (vcmla_rot90_f32): New.
31772 (vcmlaq_rot90_f32): New.
31773 (vcmla_rot90_lane_f32): New.
31774 (vcmla_rot90_laneq_f32): New.
31775 (vcmlaq_rot90_lane_f32): New.
31776 (vcmlaq_rot90_laneq_f32): New.
31777 (vcmla_rot180_f32): New.
31778 (vcmlaq_rot180_f32): New.
31779 (vcmla_rot180_lane_f32): New.
31780 (vcmla_rot180_laneq_f32): New.
31781 (vcmlaq_rot180_lane_f32): New.
31782 (vcmlaq_rot180_laneq_f32): New.
31783 (vcmla_rot270_f32): New.
31784 (vcmlaq_rot270_f32): New.
31785 (vcmla_rot270_lane_f32): New.
31786 (vcmla_rot270_laneq_f32): New.
31787 (vcmlaq_rot270_lane_f32): New.
31788 (vcmlaq_rot270_laneq_f32): New.
31789 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31790 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31791 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31792 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31793 vcmlaq_lane270): New.
31794 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31795 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31796 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31797 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31798 (arm_option_reconfigure_globals): Use them.
31799 * config/arm/iterators.md (VDF, VQ_HSF): New.
31800 (VCADD, VCMLA): New.
31801 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31802 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31803 New.
31804 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31805 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31806
31807 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31808
31809 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31810 Add qualifier_lane_pair_index.
31811 (emit-rtl.h): Include.
31812 (TYPES_QUADOP_LANE_PAIR): New.
31813 (aarch64_simd_expand_args): Use it.
31814 (aarch64_simd_expand_builtin): Likewise.
31815 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31816 New.
31817 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31818 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31819 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31820 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31821 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31822 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31823 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31824 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31825 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31826 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31827 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31828 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31829 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31830 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31831 Add __ARM_FEATURE_COMPLEX.
31832 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31833 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31834 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31835 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31836 fcmlaq_lane270): New.
31837 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31838 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31839 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31840 * config/aarch64/arm_neon.h:
31841 (vcadd_rot90_f16): New.
31842 (vcaddq_rot90_f16): New.
31843 (vcadd_rot270_f16): New.
31844 (vcaddq_rot270_f16): New.
31845 (vcmla_f16): New.
31846 (vcmlaq_f16): New.
31847 (vcmla_lane_f16): New.
31848 (vcmla_laneq_f16): New.
31849 (vcmlaq_lane_f16): New.
31850 (vcmlaq_rot90_lane_f16): New.
31851 (vcmla_rot90_laneq_f16): New.
31852 (vcmla_rot90_lane_f16): New.
31853 (vcmlaq_rot90_f16): New.
31854 (vcmla_rot90_f16): New.
31855 (vcmlaq_laneq_f16): New.
31856 (vcmla_rot180_laneq_f16): New.
31857 (vcmla_rot180_lane_f16): New.
31858 (vcmlaq_rot180_f16): New.
31859 (vcmla_rot180_f16): New.
31860 (vcmlaq_rot90_laneq_f16): New.
31861 (vcmlaq_rot270_laneq_f16): New.
31862 (vcmlaq_rot270_lane_f16): New.
31863 (vcmla_rot270_laneq_f16): New.
31864 (vcmlaq_rot270_f16): New.
31865 (vcmla_rot270_f16): New.
31866 (vcmlaq_rot180_laneq_f16): New.
31867 (vcmlaq_rot180_lane_f16): New.
31868 (vcmla_rot270_lane_f16): New.
31869 (vcadd_rot90_f32): New.
31870 (vcaddq_rot90_f32): New.
31871 (vcaddq_rot90_f64): New.
31872 (vcadd_rot270_f32): New.
31873 (vcaddq_rot270_f32): New.
31874 (vcaddq_rot270_f64): New.
31875 (vcmla_f32): New.
31876 (vcmlaq_f32): New.
31877 (vcmlaq_f64): New.
31878 (vcmla_lane_f32): New.
31879 (vcmla_laneq_f32): New.
31880 (vcmlaq_lane_f32): New.
31881 (vcmlaq_laneq_f32): New.
31882 (vcmla_rot90_f32): New.
31883 (vcmlaq_rot90_f32): New.
31884 (vcmlaq_rot90_f64): New.
31885 (vcmla_rot90_lane_f32): New.
31886 (vcmla_rot90_laneq_f32): New.
31887 (vcmlaq_rot90_lane_f32): New.
31888 (vcmlaq_rot90_laneq_f32): New.
31889 (vcmla_rot180_f32): New.
31890 (vcmlaq_rot180_f32): New.
31891 (vcmlaq_rot180_f64): New.
31892 (vcmla_rot180_lane_f32): New.
31893 (vcmla_rot180_laneq_f32): New.
31894 (vcmlaq_rot180_lane_f32): New.
31895 (vcmlaq_rot180_laneq_f32): New.
31896 (vcmla_rot270_f32): New.
31897 (vcmlaq_rot270_f32): New.
31898 (vcmlaq_rot270_f64): New.
31899 (vcmla_rot270_lane_f32): New.
31900 (vcmla_rot270_laneq_f32): New.
31901 (vcmlaq_rot270_lane_f32): New.
31902 (vcmlaq_rot270_laneq_f32): New.
31903 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31904 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31905 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31906 (FCADD, FCMLA): New.
31907 (rot): New.
31908 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31909
31910 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31911
31912 PR other/16615
31913
31914 * config/pa/pa.c: Change "can not" to "cannot".
31915 * gimple-ssa-evrp-analyze.c: Likewise.
31916 * ipa-icf.c: Likewise.
31917 * ipa-polymorphic-call.c: Likewise.
31918 * ipa-pure-const.c: Likewise.
31919 * lra-constraints.c: Likewise.
31920 * lra-remat.c: Likewise.
31921 * reload1.c: Likewise.
31922 * reorg.c: Likewise.
31923 * tree-ssa-uninit.c: Likewise.
31924
31925 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31926
31927 PR other/16615
31928
31929 * Makefile.in: Mechanically replace "can not" with "cannot".
31930 * alias.c: Likewise.
31931 * builtins.c: Likewise.
31932 * calls.c: Likewise.
31933 * cgraph.c: Likewise.
31934 * cgraph.h: Likewise.
31935 * cgraphclones.c: Likewise.
31936 * cgraphunit.c: Likewise.
31937 * combine-stack-adj.c: Likewise.
31938 * combine.c: Likewise.
31939 * common/config/i386/i386-common.c: Likewise.
31940 * config/aarch64/aarch64.c: Likewise.
31941 * config/alpha/sync.md: Likewise.
31942 * config/arc/arc.c: Likewise.
31943 * config/arc/predicates.md: Likewise.
31944 * config/arm/arm-c.c: Likewise.
31945 * config/arm/arm.c: Likewise.
31946 * config/arm/arm.h: Likewise.
31947 * config/arm/arm.md: Likewise.
31948 * config/arm/cortex-r4f.md: Likewise.
31949 * config/csky/csky.c: Likewise.
31950 * config/csky/csky.h: Likewise.
31951 * config/darwin-f.c: Likewise.
31952 * config/epiphany/epiphany.md: Likewise.
31953 * config/i386/i386.c: Likewise.
31954 * config/i386/sol2.h: Likewise.
31955 * config/m68k/m68k.c: Likewise.
31956 * config/mcore/mcore.h: Likewise.
31957 * config/microblaze/microblaze.md: Likewise.
31958 * config/mips/20kc.md: Likewise.
31959 * config/mips/sb1.md: Likewise.
31960 * config/nds32/nds32.c: Likewise.
31961 * config/nds32/predicates.md: Likewise.
31962 * config/pa/pa.c: Likewise.
31963 * config/rs6000/e300c2c3.md: Likewise.
31964 * config/rs6000/rs6000.c: Likewise.
31965 * config/s390/s390.h: Likewise.
31966 * config/sh/sh.c: Likewise.
31967 * config/sh/sh.md: Likewise.
31968 * config/spu/vmx2spu.h: Likewise.
31969 * cprop.c: Likewise.
31970 * dbxout.c: Likewise.
31971 * df-scan.c: Likewise.
31972 * doc/cfg.texi: Likewise.
31973 * doc/extend.texi: Likewise.
31974 * doc/fragments.texi: Likewise.
31975 * doc/gty.texi: Likewise.
31976 * doc/invoke.texi: Likewise.
31977 * doc/lto.texi: Likewise.
31978 * doc/md.texi: Likewise.
31979 * doc/objc.texi: Likewise.
31980 * doc/rtl.texi: Likewise.
31981 * doc/tm.texi: Likewise.
31982 * dse.c: Likewise.
31983 * emit-rtl.c: Likewise.
31984 * emit-rtl.h: Likewise.
31985 * except.c: Likewise.
31986 * expmed.c: Likewise.
31987 * expr.c: Likewise.
31988 * fold-const.c: Likewise.
31989 * genautomata.c: Likewise.
31990 * gimple-fold.c: Likewise.
31991 * hard-reg-set.h: Likewise.
31992 * ifcvt.c: Likewise.
31993 * ipa-comdats.c: Likewise.
31994 * ipa-cp.c: Likewise.
31995 * ipa-devirt.c: Likewise.
31996 * ipa-fnsummary.c: Likewise.
31997 * ipa-icf.c: Likewise.
31998 * ipa-inline-transform.c: Likewise.
31999 * ipa-inline.c: Likewise.
32000 * ipa-polymorphic-call.c: Likewise.
32001 * ipa-profile.c: Likewise.
32002 * ipa-prop.c: Likewise.
32003 * ipa-pure-const.c: Likewise.
32004 * ipa-reference.c: Likewise.
32005 * ipa-split.c: Likewise.
32006 * ipa-visibility.c: Likewise.
32007 * ipa.c: Likewise.
32008 * ira-build.c: Likewise.
32009 * ira-color.c: Likewise.
32010 * ira-conflicts.c: Likewise.
32011 * ira-costs.c: Likewise.
32012 * ira-int.h: Likewise.
32013 * ira-lives.c: Likewise.
32014 * ira.c: Likewise.
32015 * ira.h: Likewise.
32016 * loop-invariant.c: Likewise.
32017 * loop-unroll.c: Likewise.
32018 * lower-subreg.c: Likewise.
32019 * lra-assigns.c: Likewise.
32020 * lra-constraints.c: Likewise.
32021 * lra-eliminations.c: Likewise.
32022 * lra-lives.c: Likewise.
32023 * lra-remat.c: Likewise.
32024 * lra-spills.c: Likewise.
32025 * lra.c: Likewise.
32026 * lto-cgraph.c: Likewise.
32027 * lto-streamer-out.c: Likewise.
32028 * postreload-gcse.c: Likewise.
32029 * predict.c: Likewise.
32030 * profile-count.h: Likewise.
32031 * profile.c: Likewise.
32032 * recog.c: Likewise.
32033 * ree.c: Likewise.
32034 * reload.c: Likewise.
32035 * reload1.c: Likewise.
32036 * reorg.c: Likewise.
32037 * resource.c: Likewise.
32038 * rtl.def: Likewise.
32039 * rtl.h: Likewise.
32040 * rtlanal.c: Likewise.
32041 * sched-deps.c: Likewise.
32042 * sched-ebb.c: Likewise.
32043 * sched-rgn.c: Likewise.
32044 * sel-sched-ir.c: Likewise.
32045 * sel-sched.c: Likewise.
32046 * shrink-wrap.c: Likewise.
32047 * simplify-rtx.c: Likewise.
32048 * symtab.c: Likewise.
32049 * target.def: Likewise.
32050 * toplev.c: Likewise.
32051 * tree-call-cdce.c: Likewise.
32052 * tree-cfg.c: Likewise.
32053 * tree-complex.c: Likewise.
32054 * tree-core.h: Likewise.
32055 * tree-eh.c: Likewise.
32056 * tree-inline.c: Likewise.
32057 * tree-loop-distribution.c: Likewise.
32058 * tree-nrv.c: Likewise.
32059 * tree-profile.c: Likewise.
32060 * tree-sra.c: Likewise.
32061 * tree-ssa-alias.c: Likewise.
32062 * tree-ssa-dce.c: Likewise.
32063 * tree-ssa-dom.c: Likewise.
32064 * tree-ssa-forwprop.c: Likewise.
32065 * tree-ssa-loop-im.c: Likewise.
32066 * tree-ssa-loop-ivcanon.c: Likewise.
32067 * tree-ssa-loop-ivopts.c: Likewise.
32068 * tree-ssa-loop-niter.c: Likewise.
32069 * tree-ssa-phionlycprop.c: Likewise.
32070 * tree-ssa-phiopt.c: Likewise.
32071 * tree-ssa-propagate.c: Likewise.
32072 * tree-ssa-threadedge.c: Likewise.
32073 * tree-ssa-threadupdate.c: Likewise.
32074 * tree-ssa-uninit.c: Likewise.
32075 * tree-ssanames.c: Likewise.
32076 * tree-streamer-out.c: Likewise.
32077 * tree.c: Likewise.
32078 * tree.h: Likewise.
32079 * vr-values.c: Likewise.
32080
32081 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32082
32083 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32084 (ix86_split_xorsign): Ditto.
32085 * config/i386/i386.c (ix86_expand_xorsign): New function.
32086 (ix86_split_xorsign): Ditto.
32087 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32088 (xorsign<mode>3): New expander.
32089 (xorsign<mode>3_1): New insn_and_split pattern.
32090 * config/i386/sse.md (xorsign<mode>3): New expander.
32091
32092 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32093
32094 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32095 (*tablejump_sp64): Likewise.
32096 (*tablejump<P:mode>): ...this.
32097 (*call_address_sp32): Merge into...
32098 (*call_address_sp64): Likewise.
32099 (*call_address<P:mode>): ...this.
32100 (*call_symbolic_sp32): Merge into...
32101 (*call_symbolic_sp64): Likewise.
32102 (*call_symbolic<P:mode>): ...this.
32103 (call_value): Remove constraint and add predicate.
32104 (*call_value_address_sp32): Merge into...
32105 (*call_value_address_sp64): Likewise.
32106 (*call_value_address<P:mode>): ...this.
32107 (*call_value_symbolic_sp32): Merge into...
32108 (*call_value_symbolic_sp64): Likewise.
32109 (*call_value_symbolic<P:mode>): ...this.
32110 (*sibcall_symbolic_sp32): Merge into...
32111 (*sibcall_symbolic_sp64): Likewise.
32112 (*sibcall_symbolic<P:mode>): ...this.
32113 (sibcall_value): Remove constraint and add predicate.
32114 (*sibcall_value_symbolic_sp32): Merge into...
32115 (*sibcall_value_symbolic_sp64): Likewise.
32116 (*sibcall_value_symbolic<P:mode>): ...this.
32117 (window_save): Minor tweak.
32118 (*branch_sp32): Merge into...
32119 (*branch_sp64): Likewise.
32120 (*branch<P:mode>): ...this.
32121
32122 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32123 James Clarke <jrtc27@jrtc27.com>
32124
32125 PR target/84010
32126 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32127 consistently in TLS address generation and adjust code to the renaming
32128 of patterns. Mark calls to __tls_get_addr as const.
32129 * config/sparc/sparc.md (tgd_hi22): Turn into...
32130 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32131 (tgd_lo10): Turn into...
32132 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32133 (tgd_add32): Merge into...
32134 (tgd_add64): Likewise.
32135 (tgd_add<P:mode>): ...this and use Pmode throughout.
32136 (tldm_hi22): Turn into...
32137 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32138 (tldm_lo10): Turn into...
32139 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32140 (tldm_add32): Merge into...
32141 (tldm_add64): Likewise.
32142 (tldm_add<P:mode>): ...this and use Pmode throughout.
32143 (tldm_call32): Merge into...
32144 (tldm_call64): Likewise.
32145 (tldm_call<P:mode>): ...this and use Pmode throughout.
32146 (tldo_hix22): Turn into...
32147 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32148 (tldo_lox10): Turn into...
32149 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32150 (tldo_add32): Merge into...
32151 (tldo_add64): Likewise.
32152 (tldo_add<P:mode>): ...this and use Pmode throughout.
32153 (tie_hi22): Turn into...
32154 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32155 (tie_lo10): Turn into...
32156 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32157 (tie_ld64): Use DImode throughout.
32158 (tie_add32): Merge into...
32159 (tie_add64): Likewise.
32160 (tie_add<P:mode>): ...this and use Pmode throughout.
32161 (tle_hix22_sp32): Merge into...
32162 (tle_hix22_sp64): Likewise.
32163 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32164 (tle_lox22_sp32): Merge into...
32165 (tle_lox22_sp64): Likewise.
32166 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32167 (*tldo_ldub_sp32): Merge into...
32168 (*tldo_ldub_sp64): Likewise.
32169 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32170 (*tldo_ldub1_sp32): Merge into...
32171 (*tldo_ldub1_sp64): Likewise.
32172 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32173 (*tldo_ldub2_sp32): Merge into...
32174 (*tldo_ldub2_sp64): Likewise.
32175 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32176 (*tldo_ldsb1_sp32): Merge into...
32177 (*tldo_ldsb1_sp64): Likewise.
32178 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32179 (*tldo_ldsb2_sp32): Merge into...
32180 (*tldo_ldsb2_sp64): Likewise.
32181 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32182 (*tldo_ldub3_sp64): Use DImode throughout.
32183 (*tldo_ldsb3_sp64): Likewise.
32184 (*tldo_lduh_sp32): Merge into...
32185 (*tldo_lduh_sp64): Likewise.
32186 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32187 (*tldo_lduh1_sp32): Merge into...
32188 (*tldo_lduh1_sp64): Likewise.
32189 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32190 (*tldo_ldsh1_sp32): Merge into...
32191 (*tldo_ldsh1_sp64): Likewise.
32192 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32193 (*tldo_lduh2_sp64): Use DImode throughout.
32194 (*tldo_ldsh2_sp64): Likewise.
32195 (*tldo_lduw_sp32): Merge into...
32196 (*tldo_lduw_sp64): Likewise.
32197 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32198 (*tldo_lduw1_sp64): Use DImode throughout.
32199 (*tldo_ldsw1_sp64): Likewise.
32200 (*tldo_ldx_sp64): Likewise.
32201 (*tldo_stb_sp32): Merge into...
32202 (*tldo_stb_sp64): Likewise.
32203 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32204 (*tldo_sth_sp32): Merge into...
32205 (*tldo_sth_sp64): Likewise.
32206 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32207 (*tldo_stw_sp32): Merge into...
32208 (*tldo_stw_sp64): Likewise.
32209 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32210 (*tldo_stx_sp64): Use DImode throughout.
32211
32212 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32213
32214 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
32215 check configure option to set BTI and Return Address Signing.
32216 * configure.ac: Add --enable-standard-branch-protection and
32217 --disable-standard-branch-protection.
32218 * configure: Regenerated.
32219 * doc/install.texi: Document the same.
32220
32221 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32222 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32223
32224 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
32225 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
32226 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
32227 if bti is enabled.
32228 * config/aarch64/aarch64-bti-insert.c: New file.
32229 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
32230 pass.
32231 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
32232 new bti pass.
32233 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
32234 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
32235 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
32236 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
32237
32238 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32239
32240 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
32241 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
32242 Disable bti for -mbranch-protection=none.
32243 (aarch64_handle_standard_branch_protection): Enable bti for
32244 -mbranch-protection=standard.
32245 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
32246 -mbranch-protection.
32247 (aarch64_bti_enabled): Check if bti is enabled.
32248 * config/aarch64/aarch64.opt: Declare target variable.
32249 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
32250
32251 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32252
32253 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
32254 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
32255 (aarch64_expand_epilogue): Likewise.
32256 (aarch64_output_mi_thunk): Likewise.
32257 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
32258 TAILCALL_ADDR_REGS to x16 and x17.
32259 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
32260
32261 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32262
32263 * config/aarch64/aarch64-option-extensions.def: Define
32264 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
32265 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
32266 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
32267 (AARCH64_FL_PREDRES): New.
32268 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
32269 AARCH64_FL_PREDRES by default.
32270 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
32271
32272 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32273
32274 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
32275 ARMv8.5-A.
32276 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
32277 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
32278 * doc/invoke.texi: Document ARMv8.5-A.
32279
32280 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
32281
32282 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
32283 (xorsign<mode>3): Likewise.
32284
32285 2019-01-09 Jelinek <jakub@redhat.com>
32286
32287 PR middle-end/88758
32288 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
32289 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
32290
32291 PR rtl-optimization/88331
32292 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
32293 not currently_expanding_to_rtl.
32294
32295 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32296
32297 * doc/invoke.texi (-Os): Remove trailing spaces.
32298 (-finline-functions): Remove reference to -O2.
32299
32300 2019-01-08 Jakub Jelinek <jakub@redhat.com>
32301
32302 PR rtl-optimization/79593
32303 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
32304
32305 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
32306 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
32307
32308 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
32309
32310 PR bootstrap/88721
32311 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
32312 to -1 on entry.
32313
32314 PR debug/88723
32315 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
32316 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
32317
32318 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
32319
32320 PR target/88717
32321 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
32322 ix86_avx_u128_mode_entry.
32323
32324 2019-01-08 Martin Liska <mliska@suse.cz>
32325
32326 PR tree-optimization/88753
32327 * tree-switch-conversion.c (switch_conversion::build_one_array):
32328 Come up with local variable constructor. Convert first to
32329 type of constructor values.
32330
32331 2019-01-08 Richard Biener <rguenther@suse.de>
32332
32333 PR tree-optimization/86554
32334 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
32335 rpo_avail): Move earlier.
32336 (visit_nary_op): When value-numbering to expressions
32337 with different overflow behavior make sure there's an
32338 available expression on the path.
32339
32340 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
32341
32342 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
32343 aarch64_parse_branch_protection,
32344 struct aarch64_branch_protect_type,
32345 aarch64_handle_no_branch_protection,
32346 aarch64_handle_standard_branch_protection,
32347 aarch64_validate_mbranch_protection,
32348 aarch64_handle_pac_ret_protection,
32349 aarch64_handle_attr_branch_protection,
32350 accepted_branch_protection_string,
32351 aarch64_pac_ret_subtypes,
32352 aarch64_branch_protect_types,
32353 aarch64_handle_pac_ret_leaf): Define.
32354 (aarch64_override_options_after_change_1, aarch64_override_options):
32355 Add check for accepted_branch_protection_string.
32356 (aarch64_option_save): Save accepted_branch_protection_string.
32357 (aarch64_option_restore): Save accepted_branch_protection_string.
32358 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
32359 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
32360 msign-return-address.
32361 * doc/invoke.texi: Add mbranch-protection.
32362
32363 2019-01-08 Alan Modra <amodra@gmail.com>
32364
32365 PR target/88614
32366 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
32367 Delete "unknownp" parameter. Adjust callers. Handle
32368 CONST_INT, PLUS, MINUS, and MULT.
32369 (attr_value_aligned): Renamed from or_attr_value.
32370 (min_attr_value): Return INT_MIN for unhandled rtl case..
32371 (min_fn): ..and translate to INT_MAX here.
32372 (write_length_unit_log): Modify to cope without "unknown".
32373 (write_attr_value): Handle IF_THEN_ELSE.
32374
32375 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32376
32377 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
32378 optimization for masked stores.
32379
32380 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32381
32382 PR middle-end/88567
32383 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32384 output vector directly to duplicate_and_interleave instead of
32385 going through a temporary. Postpone insertion of ctor_seq to
32386 the end of the loop.
32387
32388 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32389
32390 PR target/86891
32391 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32392 unsigned_p. Handle signed and unsigned overflow correction as
32393 required.
32394 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32395 prototype.
32396 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32397 for operand 2.
32398 (add<mode>3_compareV_imm): Make this callable for expanding.
32399 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32400 aarch64_plus_operand for operand 2.
32401 (subv<GPI:mode>_insn): New insn pattern.
32402 (subv<GPI:mode>_imm): Likewise.
32403 (negv<GPI:mode>3): New expand pattern.
32404 (negv<GPI:mode>_insn): New insn pattern.
32405 (negv<GPI:mode>_cmp_only): Likewise.
32406 (cmpv<GPI:mode>_insn): Likewise.
32407 (subvti4): Use register_operand for operand 1. Update call to
32408 aarch64_expand_subvti.
32409 (usubvti4): Likewise.
32410 (negvti3): New expand pattern.
32411 (negdi_carryout): New insn pattern.
32412 (negvdi_carryinV): New insn pattern.
32413 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32414 version the named version.
32415 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32416 operands.
32417 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32418 patterns.
32419 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32420 patterns.
32421 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32422 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32423 (sub<mode>3_carryinCV): Delete.
32424 (sub<GPI:mode>3_carryinV): New expand pattern.
32425 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32426
32427 2019-01-07 Richard Biener <rguenther@suse.de>
32428
32429 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
32430 of tree_operand_hash.
32431
32432 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32433
32434 PR tree-optimization/88598
32435 * tree.h (single_nonzero_element): Declare.
32436 * tree.c (single_nonzero_element): New function.
32437 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
32438 if I is the only nonzero element of CST.
32439
32440 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32441
32442 PR tree-optimization/88598
32443 * tree.h (initializer_each_zero_or_onep): Declare.
32444 * tree.c (initializer_each_zero_or_onep): New function.
32445 (signed_or_unsigned_type_for): Handle float types too.
32446 (unsigned_type_for, signed_type_for): Update comments accordingly.
32447 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
32448 x & { 0 or -1, 0 or -1, ... }.
32449
32450 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
32451
32452 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
32453 with x86_64-pc-linux-gnu.
32454
32455 2019-01-07 Tom de Vries <tdevries@suse.de>
32456
32457 PR target/85486
32458 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
32459 function.
32460 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
32461 routines.
32462
32463 2019-01-07 Jakub Jelinek <jakub@redhat.com>
32464
32465 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
32466 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
32467 TARGET_AVX512F as condition.
32468
32469 PR debug/88723
32470 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
32471 const_not_ok_for_debug_p target hook.
32472 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
32473 on UNSPEC and subexpressions thereof if all subexpressions of the
32474 UNSPEC are CONSTANT_P.
32475
32476 PR tree-optimization/88676
32477 * tree-ssa-phiopt.c (two_value_replacement): New function.
32478 (tree_ssa_phiopt_worker): Call it.
32479
32480 PR sanitizer/88619
32481 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
32482 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
32483
32484 PR c++/85052
32485 * tree-vect-generic.c: Include insn-config.h and recog.h.
32486 (expand_vector_piecewise): Add defaulted ret_type argument,
32487 if non-NULL, use that in preference to type for the result type.
32488 (expand_vector_parallel): Formatting fix.
32489 (do_vec_conversion, do_vec_narrowing_conversion,
32490 expand_vector_conversion): New functions.
32491 (expand_vector_operations_1): Call expand_vector_conversion
32492 for VEC_CONVERT ifn calls.
32493 * internal-fn.def (VEC_CONVERT): New internal function.
32494 * internal-fn.c (expand_VEC_CONVERT): New function.
32495 * fold-const-call.c (fold_const_vec_convert): New function.
32496 (fold_const_call): Use it for CFN_VEC_CONVERT.
32497 * doc/extend.texi (__builtin_convertvector): Document.
32498
32499 2019-01-07 Tom de Vries <tdevries@suse.de>
32500
32501 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
32502 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
32503 vector_red_partition, vector_red_sym): New global variables.
32504 (nvptx_option_override): Initialize vector_red_sym.
32505 (nvptx_declare_function_name): Restore red_partition register.
32506 (nvptx_file_end): Emit code to declare the vector reduction variables.
32507 (nvptx_output_red_partition): New function.
32508 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
32509 large vector reductions.
32510 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
32511 (nvptx_init_builtins): Add VECTOR_ADDR.
32512 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
32513 Handle nvptx_expand_shared_addr.
32514 (nvptx_get_shared_red_addr): Add vector argument and handle large
32515 vectors.
32516 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
32517 large vectors.
32518 (nvptx_goacc_reduction_init): Likewise.
32519 (nvptx_goacc_reduction_fini): Likewise.
32520 (nvptx_goacc_reduction_teardown): Likewise.
32521 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
32522 init,fini,teardown}.
32523 (nvptx_init_axis_predicate): Initialize vector_red_partition.
32524 (nvptx_set_current_function): Init vector_red_partition.
32525 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
32526 (nvptx_red_partition): New insn.
32527 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
32528
32529 2019-01-07 Tom de Vries <tdevries@suse.de>
32530
32531 PR target/85381
32532 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
32533 empty loops.
32534
32535 2019-01-07 Tom de Vries <tdevries@suse.de>
32536
32537 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
32538 (nvptx_option_override): Init oacc_bcast_partition.
32539 (nvptx_init_oacc_workers): New function.
32540 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
32541 (nvptx_needs_shared_bcast): New function.
32542 (nvptx_find_par): Generalize to enable vectors to use shared-memory
32543 to propagate state.
32544 (nvptx_shared_propagate): Initialize vector bcast partition and
32545 synchronization state.
32546 (nvptx_single): Generalize to enable vectors to use shared-memory
32547 to propagate state.
32548 (nvptx_process_pars): Likewise.
32549 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
32550 * config/nvptx/nvptx.h (struct machine_function): Add
32551 bcast_partition and sync_bar members.
32552
32553 2019-01-07 Tom de Vries <tdevries@suse.de>
32554
32555 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
32556 (nvptx_apply_dim_limits): New function.
32557 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
32558 PTX_WARP_SIZE.
32559
32560 2019-01-07 Tom de Vries <tdevries@suse.de>
32561
32562 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
32563 as late as possible.
32564
32565 2019-01-07 Tom de Vries <tdevries@suse.de>
32566
32567 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32568 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32569 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32570 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32571 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32572
32573 2019-01-07 Tom de Vries <tdevries@suse.de>
32574
32575 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32576
32577 2019-01-07 Tom de Vries <tdevries@suse.de>
32578
32579 * omp-offload.c (oacc_get_min_dim): New function.
32580 * omp-offload.h (oacc_get_min_dim): Declare.
32581
32582 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32583
32584 PR target/88521
32585 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32586 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32587
32588 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32589
32590 PR tree-opt/86020
32591 Revert:
32592 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32593
32594 * ipa-inline.c (edge_badness): Use inlined_time instead of
32595 inline_summaries->get.
32596
32597 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32598
32599 * opts.c (enable_fdo_optimizations): Enable
32600 version-loops-for-strides, loop-interchange, unrol-and-jam
32601 and tree-loop-distribution.
32602 * invoke.texi: Document newly enabled options.
32603
32604 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32605
32606 * doc/invoke.texi (max-inline-insns-small): New parameters.
32607 * ipa-inline.c (want_early_inline_function_p): simplify.
32608 (want_inline_small_function_p): Fix pasto from previous patch;
32609 use max-inline-insns-small bound.
32610 * params.def (max-inline-insns-small): New param.
32611 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32612 variables correctly.
32613
32614 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32615
32616 * doc/invoke.texi: Document max-inline-insns-size,
32617 uninlined-function-insns, uninlined-function-time,
32618 uninlined-thunk-insns and uninlined-thunk-time.
32619 * params.def: Add max-inline-insns-size,
32620 uninlined-function-insns, uninlined-function-time,
32621 uninlined-thunk-insns and uninlined-thunk-time.
32622 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32623 new parameters.
32624 * ipa-inline.c (can_inline_edge_by_limits_p,
32625 want_inline_small_function_p): Use new parameters.
32626
32627 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32628
32629 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32630
32631 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32632
32633 PR middle-end/82564
32634 PR target/88620
32635 * expr.c (expand_assignment): For calls returning VLA structures
32636 if to_rtx is not a MEM, force it into a stack temporary.
32637
32638 PR debug/88635
32639 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32640 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32641 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32642 subexpressions of both operands.
32643 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32644 subrtxes are CONSTANT_P.
32645 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32646 2018-11-09 changes.
32647
32648 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32649
32650 * params.def (hot-bb-count-ws-permille): Set to 990.
32651
32652 2019-01-04 Martin Sebor <msebor@redhat.com>
32653
32654 PR c/88546
32655 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32656 leaf.
32657
32658 2019-01-04 Martin Sebor <msebor@redhat.com>
32659
32660 PR c/88363
32661 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32662
32663 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32664
32665 * gdbinit.in: Turn off pagination for the skip commands, restore
32666 it to previous state afterwards.
32667
32668 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32669
32670 PR target/88594
32671 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32672 of GET_MODE (opN) as modes of the libcall arguments.
32673
32674 2019-01-04 Jan Beulich <jbeulich@suse.com>
32675
32676 * config/i386/sse.md
32677 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32678 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32679 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32680 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32681 avx512f_vmcmp<mode>3<round_saeonly_name>,
32682 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32683 avx512f_maskcmp<mode>3,
32684 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32685 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32686 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32687 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32688 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32689 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32690 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32691 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32692 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32693 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32694 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32695 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32696 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32697 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32698 avx512cd_maskb_vec_dup<mode>,
32699 avx512cd_maskw_vec_dup<mode>,
32700 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32701 avx512dq_vmfpclass<mode>,
32702 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32703 instead of =Yk.
32704
32705 2019-01-03 Martin Sebor <msebor@redhat.com>
32706
32707 PR tree-optimization/88659
32708 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32709
32710 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32711
32712 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32713 unaligned vsx and avoid lxvd2x/stxvd2x.
32714 (gen_lvx_v4si_move): New function.
32715
32716 2019-01-03 Tom de Vries <tdevries@suse.de>
32717
32718 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32719 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32720 function.
32721 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32722
32723 2019-01-03 Tom de Vries <tdevries@suse.de>
32724
32725 * config/nvptx/nvptx.c (struct offload_attrs): New.
32726 (populate_offload_attrs): New function. Factor mask extraction out of
32727 nvptx_reorg. Add extraction of dimensions.
32728 (nvptx_reorg): Use populate_offload_attrs.
32729
32730 2019-01-03 Tom de Vries <tdevries@suse.de>
32731
32732 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32733 cases for oacc_min_dims_p and routine_p. Add asserts for
32734 oacc_default_dims_p and offload_region_p.
32735
32736 2019-01-03 Tom de Vries <tdevries@suse.de>
32737
32738 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32739 factored out of ...
32740 (nvptx_goacc_validate_dims): ... here.
32741
32742 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32743
32744 PR tree-optimization/85574
32745 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32746 structure.
32747 (struct ssa_equip_hash_traits): Declare.
32748 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32749
32750 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32751
32752 PR debug/88644
32753 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32754 change it to qualified_type.
32755
32756 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32757
32758 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32759 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32760
32761 2019-01-02 Martin Sebor <msebor@redhat.com>
32762 Jeff Law <law@redhat.com>
32763
32764 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32765 (get_range_strlen_tree): Update appropriately.
32766 (get_range_strlen)
32767 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32768
32769 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32770 rather than set_range_info.
32771 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32772 maybe_set_strlen_range. Handle potentially boundary crossing
32773 cases more conservatively.
32774 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32775 Call set_strlen_range.
32776 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32777
32778 PR middle-end/88663
32779 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32780 need the flexp argument.
32781 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32782 from calls to get_range_strlen. Update comments. Just update
32783 VAL for an unterminated const char array and let the reset of the
32784 code handle it normally. No longer try to set *flexp. Adjust
32785 return value.
32786 (get_range_strlen): Update for the new get_range_strlen API.
32787 (get_maxval_strlen): Similarly.
32788 (gimple_fold_builtin_strlen): Handle update meaning of return value
32789 from get_range_strlen.
32790 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32791 get_range_strlen API.
32792
32793 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32794
32795 PR lto/88130
32796 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32797 false at WPA time when body was removed.
32798
32799 2019-01-02 Martin Liska <mliska@suse.cz>
32800
32801 PR tree-optimization/88650
32802 * predict.c (set_even_probabilities): Calculate probability
32803 remainer only when really used.
32804
32805 2019-01-02 Richard Biener <rguenther@suse.de>
32806
32807 PR middle-end/88651
32808 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32809 widest_ints when mangling max_stmt_execution results.
32810
32811 2019-01-02 Richard Biener <rguenther@suse.de>
32812
32813 PR tree-optimization/88621
32814 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32815 bitfields when canoncalizing.
32816
32817 2019-01-02 Richard Biener <rguenther@suse.de>
32818
32819 PR target/87545
32820 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32821 cost of cheap SSE instruction.
32822
32823 2019-01-02 Richard Biener <rguenther@suse.de>
32824
32825 PR ipa/85574
32826 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32827 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32828 function.
32829 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32830 set after UIDs before splitting them.
32831
32832 2019-01-01 Martin Sebor <msebor@redhat.com>
32833 Jeff Law <law@redhat.com>
32834
32835 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32836 length is optimistic. If it is, then arrange to compute the
32837 conservative length as well.
32838
32839 * gimple-fold.h (get_range_strlen): Update prototype.
32840 * builtins.c (check_access): Update call to get_range_strlen to use
32841 c_strlen_data pointer. Change various variable accesses to instead
32842 pull data from the c_strlen_data structure.
32843 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32844 * calls.c (maybe_warn_nonstring_arg): Likewise.
32845 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32846 minimum length if maximum lengh is unknown.
32847 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32848 that used c_strlen, it's no longer needed. Restructure slightly.
32849 (format_string): Set unlikely range appropriately.
32850 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32851 formatting issues.
32852 (get_range_strlen): Accept c_strlen_data pointer for external
32853 call sites as well. Pass through to call to internal get_range_strlen.
32854 Adjust minlen, maxlen and maxbound as needed.
32855 (get_maxval_strlen): Update comments.
32856 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32857 to use c_strlen_data pointer. Change variable accesses to instead
32858 use c_strlen_data data members.
32859
32860 * gimple-fold.c (get_range_strlen): Update prototype.
32861 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32862 local variables. Use pdata to return information to caller.
32863 Update calls to get_range_strlen. Update pdata->maxbound.
32864 (get_range_strlen -- static version): Similarly.
32865 (get_range_strlen -- extern version): Update for internal
32866 get_range_strlen API change. Convert to external data format.
32867 (get_maxval_strlen): Similarly.
32868
32869 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32870
32871 * coverage.c (get_coverage_counts): Use current_function_decl.
32872 * profile.c (read_thunk_profile): New function.
32873 (branch_prob): Add THUNK parameter.
32874 * tree-profile.c (tree_profiling): Handle thunks.
32875 * value-prof.c (init_node_map): Handle thunks.
32876 * value-prof.h (branch_prob): Upate prototype.
32877 (read_thunk_profile): Declare.
32878
32879 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32880
32881 Update copyright years.
32882
32883 * gcc.c (process_command): Update copyright notice dates.
32884 * gcov-dump.c (print_version): Ditto.
32885 * gcov.c (print_version): Ditto.
32886 * gcov-tool.c (print_version): Ditto.
32887 * gengtype.c (create_file): Ditto.
32888 * doc/cpp.texi: Bump @copying's copyright year.
32889 * doc/cppinternals.texi: Ditto.
32890 * doc/gcc.texi: Ditto.
32891 * doc/gccint.texi: Ditto.
32892 * doc/gcov.texi: Ditto.
32893 * doc/install.texi: Ditto.
32894 * doc/invoke.texi: Ditto.
32895 \f
32896 Copyright (C) 2019 Free Software Foundation, Inc.
32897
32898 Copying and distribution of this file, with or without modification,
32899 are permitted in any medium without royalty provided the copyright
32900 notice and this notice are preserved.