]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
Introduce vxworks specific crtstuff support
[thirdparty/gcc.git] / gcc / ChangeLog
1 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
2 Olivier Hainque <hainque@adacore.com>
3
4 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
5 definition, pointless with a VxWorks specific version
6 of crtstuff.
7 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
8 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
9 New local macros, controlling the addition of vxworks specific
10 crtstuff objects depending on the EH mechanism and kind of
11 module being linked.
12 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
13
14 2019-11-06 Pat Bernardi <bernardi@adacore.com>
15 Jerome Lambourg <lambourg@adacore.com>
16 Olivier Hainque <hainque@adacore.com>
17
18 * config.gcc: Add comment to introduce the TARGET_VXWORKS
19 common macro definitions, conveying VXWORKS7 or 64bit general
20 variations. Add a block to set gcc_cv_initfini_array
21 unconditionally to "yes" for VxWorks7.
22 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
23 by default. Update some comments.
24 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
25 default, to be added the end of VXWORKS_LIBS_RTP.
26 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
27 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
28 redefine.
29 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
30 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
31 to account for the now available TLS abilities.
32 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
33 (VXWORKS_HAVE_TLS): Likewise.
34
35 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
36
37 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
38 (vect_slp_convert_to_external): Likewise.
39 (vect_slp_analyze_node_operations): If analysis fails, try building
40 the node from scalars instead.
41
42 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
43
44 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
45 between vector types.
46 * tree-vect-stmts.c (vectorizable_conversion): Extend the
47 non-widening and non-narrowing path to handle standard
48 conversion codes, if the target supports them.
49 * expr.c (convert_move): Try using the extend and truncate optabs
50 for vectors.
51 * optabs-tree.c (supportable_convert_operation): Likewise.
52 * config/aarch64/iterators.md (Vnarroqw): New iterator.
53 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
54 (trunc<mode><Vnarrowq>2): New patterns.
55
56 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
57
58 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
59 require vectype and nunits_vectype to have the same size;
60 instead assert that nunits_vectype has at least as many
61 elements as vectype. Don't compute a separate nunits_vectype
62 if the scalar type is obviously the same as vectype's.
63 Tweak dump messages.
64
65 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
66
67 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
68 function.
69 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
70 (TARGET_VECTORIZE_RELATED_MODE): Define.
71
72 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
73
74 * tree-vectorizer.h (vec_info::mode_set): New typedef.
75 (vec_info::used_vector_mode): New member variable.
76 (vect_chooses_same_modes_p): Declare.
77 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
78 chosen vector mode in vec_info::used_vector_mode.
79 (vect_chooses_same_modes_p): New function.
80 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
81 the same vector statements multiple times.
82 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
83
84 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
85
86 * machmode.h (opt_machine_mode::operator==): New function.
87 (opt_machine_mode::operator!=): Likewise.
88 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
89 (get_related_vectype_for_scalar_type): Delete.
90 (get_vectype_for_scalar_type_and_size): Declare.
91 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
92 whether analysis passed or failed, and with what vector modes.
93 Use related_vector_mode to check whether trying a particular
94 vector mode would be redundant with the autodetected mode,
95 and print a dump message if we decide to skip it.
96 * tree-vect-loop.c (vect_analyze_loop): Likewise.
97 (vect_create_epilog_for_reduction): Use
98 get_related_vectype_for_scalar_type instead of
99 get_vectype_for_scalar_type_and_size.
100 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
101 with...
102 (get_related_vectype_for_scalar_type): ...this new function.
103 Take a starting/"prevailing" vector mode rather than a vector size.
104 Take an optional nunits argument, with the same meaning as for
105 related_vector_mode. Use related_vector_mode when not
106 auto-detecting a mode, falling back to mode_for_vector if no
107 target mode exists.
108 (get_vectype_for_scalar_type): Update accordingly.
109 (get_same_sized_vectype): Likewise.
110 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
111
112 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
113
114 * tree-vect-stmts.c (vectorizable_call): Require the types
115 to have the same size.
116
117 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
118
119 * tree-vect-stmts.c (vectorizable_call): If an operand is
120 constant or external, use get_vectype_for_scalar_type
121 rather than get_same_sized_vectype to get its vector type.
122 (vectorizable_conversion, vectorizable_shift): Likewise.
123 (vectorizable_operation): Likewise.
124
125 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
126
127 * tree-vectorizer.h (vec_info::vector_size): Replace with...
128 (vec_info::vector_mode): ...this new field.
129 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
130 (vect_analyze_loop, vect_transform_loop): Likewise.
131 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
132 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
133 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
134 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
135 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
136
137 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
138
139 * target.h (vector_sizes, auto_vector_sizes): Delete.
140 (vector_modes, auto_vector_modes): New typedefs.
141 * target.def (autovectorize_vector_sizes): Replace with...
142 (autovectorize_vector_modes): ...this new hook.
143 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
144 Replace with...
145 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
146 * doc/tm.texi: Regenerate.
147 * targhooks.h (default_autovectorize_vector_sizes): Delete.
148 (default_autovectorize_vector_modes): New function.
149 * targhooks.c (default_autovectorize_vector_sizes): Delete.
150 (default_autovectorize_vector_modes): New function.
151 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
152 of autovectorize_vector_sizes. Use the number of units in the mode
153 to calculate the maximum VF.
154 * omp-low.c (omp_clause_aligned_alignment): Use
155 autovectorize_vector_modes instead of autovectorize_vector_sizes.
156 Use a loop based on related_mode to iterate through all supported
157 vector modes for a given scalar mode.
158 * optabs-query.c (can_vec_mask_load_store_p): Use
159 autovectorize_vector_modes instead of autovectorize_vector_sizes.
160 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
161 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
162 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
163 Replace with...
164 (aarch64_autovectorize_vector_modes): ...this new function.
165 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
166 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
167 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
168 (arc_autovectorize_vector_modes): ...this new function.
169 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
170 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
171 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
172 (arm_autovectorize_vector_modes): ...this new function.
173 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
174 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
175 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
176 (ix86_autovectorize_vector_modes): ...this new function.
177 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
178 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
179 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
180 (mips_autovectorize_vector_modes): ...this new function.
181 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
182 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
183
184 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
185
186 * tree-vect-stmts.c (vectorizable_shift): Check the number
187 of vector elements as well as the type mode when deciding
188 whether an op1_vectype is compatible. Reuse the result of
189 this check when generating vector statements.
190
191 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
192
193 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
194 targetm.vectorize.preferred_simd_mode returns an integer mode,
195 use mode_for_vector to decide what the vector type's mode
196 should actually be. Use build_vector_type_for_mode instead
197 of build_vector_type.
198
199 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
200
201 * target.def (get_mask_mode): Take a vector mode itself as argument,
202 instead of properties about the vector mode.
203 * doc/tm.texi: Regenerate.
204 * targhooks.h (default_get_mask_mode): Update to reflect new
205 get_mode_mask interface.
206 * targhooks.c (default_get_mask_mode): Likewise. Use
207 related_int_vector_mode.
208 * optabs-query.c (can_vec_mask_load_store_p): Update call
209 to get_mask_mode.
210 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
211 first that the original mode really is a vector.
212 * tree.c (build_truth_vector_type_for): Likewise.
213 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
214 get_mode_mask interface.
215 (aarch64_expand_sve_vcond): Update call accordingly.
216 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
217 get_mode_mask interface.
218 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
219
220 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
221
222 * tree.h (build_truth_vector_type): Delete.
223 (build_same_sized_truth_vector_type): Likewise.
224 * tree.c (build_truth_vector_type): Rename to...
225 (build_truth_vector_type_for): ...this. Make static and take
226 a vector type as argument.
227 (truth_type_for): Update accordingly.
228 (build_same_sized_truth_vector_type): Delete.
229 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
230 instead of build_same_sized_truth_vector_type.
231 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
232 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
233 * tree-vect-patterns.c (build_mask_conversion): Likeise.
234 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
235 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
236 (vect_build_gather_load_calls, vectorizable_call): Likewise.
237 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
238 (vectorizable_store, vectorizable_condition): Likewise.
239 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
240 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
241 build_truth_vector_type.
242 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
243 Use truth_type_for instead of build_same_sized_truth_vector_type.
244 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
245
246 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
247
248 * tree.h (build_truth_vector_type_for_mode): Declare.
249 * tree.c (build_truth_vector_type_for_mode): New function,
250 split out from...
251 (build_truth_vector_type): ...here.
252 (build_opaque_vector_type): Fix head comment.
253 * tree-vectorizer.h (supportable_narrowing_operation): Remove
254 vec_info parameter.
255 (vect_halve_mask_nunits): Replace vec_info parameter with the
256 mode of the new vector.
257 (vect_double_mask_nunits): Likewise.
258 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
259 (vect_double_mask_nunits): Likewise.
260 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
261 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
262 to vect_halve_mask_nunits, getting the required mode from the unpack
263 patterns.
264 (vect_set_loop_condition_masked): Update call accordingly.
265 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
266 parameter and update call to vect_double_mask_nunits.
267 (vectorizable_conversion): Update call accordingly.
268 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
269 (vectorizable_call): Update call accordingly.
270 (supportable_widening_operation): Update call to
271 vect_halve_mask_nunits.
272 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
273 Use build_truth_vector_type_mode instead of build_truth_vector_type.
274
275 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
276
277 * machmode.h (mode_for_int_vector): Delete.
278 (related_int_vector_mode): Declare.
279 * stor-layout.c (mode_for_int_vector): Delete.
280 (related_int_vector_mode): New function.
281 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
282 instead of mode_for_int_vector.
283 (expand_vec_perm_const): Likewise.
284 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
285 (aarch64_evpc_sve_tbl): Likewise.
286 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
287 (s390_expand_vcond): Likewise.
288
289 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
290
291 * target.def (related_mode): New hook.
292 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
293 * doc/tm.texi: Regenerate.
294 * targhooks.h (default_vectorize_related_mode): Declare.
295 * targhooks.c (default_vectorize_related_mode): New function.
296 * machmode.h (related_vector_mode): Declare.
297 * stor-layout.c (related_vector_mode): New function.
298 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
299 * optabs-query.c (qimode_for_vec_perm): Likewise.
300 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
301 (vectorizable_store, vectorizable_load): Likewise
302
303 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
304
305 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
306 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
307 * config/arm/arm-c.c (arm_cpu_builtins): Define
308 __GCC_ASM_FLAG_OUTPUTS__.
309 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
310 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
311 Define __GCC_ASM_FLAG_OUTPUTS__.
312 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
313 * doc/extend.texi (FlagOutputOperands): Add documentation
314 for ARM and AArch64.
315
316 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
317 * config/arm/predicates.md (nz_comparison_operator): Rename
318 from noov_comparison_operator.
319 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
320 (arm_gen_dicompare_reg): Likewise.
321 (maybe_get_arm_condition_code): Likewise.
322 (thumb1_final_prescan_insn): Likewise.
323 (arm_emit_coreregs_64bit_shift): Likewise.
324 * config/arm/arm.md (addsi3_compare0): Likewise.
325 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
326 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
327 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
328 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
329 (*mulsi3addsi_compare0_scratch): Likewise.
330 (*mulsi3addsi_compare0_scratch_v6): Likewise.
331 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
332 (*zeroextractsi_compare0_scratch): Likewise.
333 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
334 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
335 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
336 (andsi_not_shiftsi_si_scc): Likewise.
337 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
338 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
339 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
340 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
341 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
342 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
343 (return_addr_mask, *check_arch2): Likewise.
344 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
345 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
346 (compare_scc splitters): Likewise.
347 (movcond_addsi): Likewise.
348 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
349 (*thumb2_addsi3_compare0_scratch): Likewise.
350 (*thumb2_mulsi_short_compare0): Likewise.
351 (*thumb2_mulsi_short_compare0_scratch): Likewise.
352 (compare peephole2s): Likewise.
353 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
354 nz_comparison_operator names.
355 (cbranchsi4_insn): Likewise.
356
357 * config/arm/constraints.md (c): Use cc_register predicate.
358
359 * config/aarch64/constraints.md (c): New constraint.
360
361 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
362
363 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
364 ipa_merge_fn_summary_after_inlining): Micro optimize.
365
366 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
367
368 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
369
370 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
371
372 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
373 (ipa_value_range_from_jfunc): New function.
374 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
375 known_value_ranges parameter; use it to evalulate conditions.
376 (evaluate_properties_for_edge): Compute known value ranges.
377 (ipa_fn_summary_t::duplicate): Update use of
378 evaluate_conditions_for_known_args.
379 (estimate_ipcp_clone_size_and_time): Likewise.
380 (ipa_merge_fn_summary_after_inlining): Likewise.
381 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
382
383 2019-11-14 Martin Liska <mliska@suse.cz>
384
385 * ipa-inline.c (want_inline_small_function_p): Use
386 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
387 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
388
389 2019-11-14 Martin Liska <mliska@suse.cz>
390
391 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
392 of a callee to get value of the param.
393 * ipa-inline.c (inline_insns_auto): Use proper
394 opt_for_fn.
395 * opts.c (maybe_default_option): Do not overwrite param
396 value if optimization level does not match. Note that
397 params usually have default value set via Init() keyword.
398 * params.opt: Remove -param=max-inline-insns-auto-O2.
399 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
400 * doc/invoke.texi: Remove documentation of
401 max-inline-insns-auto-O2.
402
403 2019-11-14 Martin Liska <mliska@suse.cz>
404
405 * tree-switch-conversion.c (switch_conversion::switch_conversion):
406 Do not initialize m_other_count.
407 (switch_conversion::collect): Do not count m_default_count and
408 m_other_count as we use frequencies for edges.
409 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
410
411 2019-11-14 Martin Liska <mliska@suse.cz>
412
413 PR other/92329
414 * doc/invoke.texi: Document -fallocation-dce.
415
416 2019-11-14 Martin Liska <mliska@suse.cz>
417
418 PR target/92389
419 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
420 PTA_ICELAKE_CLIENT which is later interited by
421 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
422
423 2019-11-14 Martin Liska <mliska@suse.cz>
424
425 * ipa-icf.c (sem_item_optimizer::execute): Save
426 loaded_symbols.
427 (sem_item_optimizer::parse_nonsingleton_classes):
428 Return number of loaded symbols.
429 (sem_item_optimizer::merge_classes): Print
430 statistics about totally needed symbols.
431 * ipa-icf.h (parse_nonsingleton_classes): Change return
432 type.
433 (merge_classes): Add one argument.
434
435 2019-11-14 Martin Liska <mliska@suse.cz>
436
437 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
438 func_checker::hash_operand by handling of FIELD_DECLs.
439
440 2019-11-14 Martin Liska <mliska@suse.cz>
441
442 * ipa-icf-gimple.h (func_checker::func_checker): Add
443 default constructor.
444 * ipa-icf.c (sem_function::init): Make operand_equal_p
445 and hash_operand public.
446 (sem_item::add_expr): Remove.
447 (sem_item::add_type): Remove.
448 (sem_function::hash_stmt): Use m_checker for hashing
449 of GIMPLE statements.
450 (sem_function::parse): Init with checker.
451 (sem_variable::parse): Pass NULL as checker.
452 (sem_item_optimizer::parse_funcs_and_vars):
453 Pass checker to ::parse function.
454 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
455 (sem_variable::parse): New function.
456 (sem_variable::get_hash): Only return computed hash value.
457 (sem_variable::init): Initialize hash of a variable.
458 * ipa-icf.h: Remove add_expr, add_type and add func_checker
459 to couple of functions as a new argument.
460
461 2019-11-14 Martin Liska <mliska@suse.cz>
462
463 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
464 bail out reason.
465 (func_checker::compare_gimple_assign): Likewise.
466
467 2019-11-14 Jakub Jelinek <jakub@redhat.com>
468
469 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
470 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
471 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
472
473 * omp-general.c (omp_context_name_list_prop): New function.
474 (omp_context_selector_matches): Use it. Return 0 if it returns
475 NULL.
476 (omp_context_selector_props_compare): Allow equivalency of an
477 identifier and a string literal containing no embedded zeros.
478
479 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
480
481 * range-op.cc (RANGE3): Remove.
482 (range_tests): Remove all selftest that check for multi-ranges.
483 Put tests in namespace selftest.
484 * selftest.h: Move range_tests into namespace selftest.
485 * value-range.h (class value_range): Unfriend range_tests.
486
487 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
488
489 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
490 normalize_symbolics and normalize_addresses working in place.
491 (range_fold_unary_symbolics_p): Same.
492 (range_fold_unary_symbolics_p): Same.
493 * value-range.cc (num_pairs): Same.
494 (lower_bound): Same.
495 (upper_bound): Same.
496 (contains_p): Same.
497 (normalize_addresses): Same.
498 (normalize_symbolics): Same.
499 * value-range.h (normalize_symbolics): Same.
500 (normalize_addresses): Same.
501
502 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
503
504 PR ipa/91682
505 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
506 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
507 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
508 (ipa_agg_jump_function): Remove member function equal_to.
509 (ipa_agg_jump_function_p): Remove typedef.
510 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
511 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
512 information for aggregate jump function.
513 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
514 record last definition statement.
515 (load_from_unmodified_param_or_agg): New function.
516 (ipa_known_agg_contents_list): Add new field type and value, remove
517 field constant.
518 (build_agg_jump_func_from_list): Rename parameter const_count to
519 value_count, build aggregate jump function from ipa_load_agg_data.
520 (analyze_agg_content_value): New function.
521 (extract_mem_content): Analyze memory store assignment to prepare
522 information for aggregate jump function generation.
523 (determine_known_aggregate_parts): Add new parameter fbi, remove
524 parameter aa_walk_budeget_p.
525 (update_jump_functions_after_inlining): Update aggregate jump function.
526 (ipa_find_agg_cst_for_param): Change type of parameter agg.
527 (try_make_edge_direct_simple_call): Add new parameter new_root.
528 (try_make_edge_direct_virtual_call): Add new parameter new_root and
529 new_root_info.
530 (update_indirect_edges_after_inlining): Pass new argument to
531 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
532 (ipa_write_jump_function): Write aggregate jump function to file.
533 (ipa_read_jump_function): Read aggregate jump function from file.
534 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
535 * ipa-cp.c (ipa_get_jf_arith_result): New function.
536 (ipa_agg_value_from_node): Likewise.
537 (ipa_agg_value_set_from_jfunc): Likewise.
538 (propagate_vals_across_arith_jfunc): Likewise.
539 (propagate_aggregate_lattice): Likewise.
540 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
541 (propagate_vals_across_pass_through): Call
542 propagate_vals_across_arith_jfunc.
543 (get_clone_agg_value): Move forward.
544 (propagate_aggs_across_jump_function): Handle value propagation for
545 aggregate jump function.
546 (agg_jmp_p_vec_for_t_vec): Remove.
547 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
548 with vec<ipa_agg_value>.
549 (copy_plats_to_inter, intersect_with_plats): Likewise.
550 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
551 (intersect_aggregate_with_edge): Likewise.
552 (find_aggregate_values_for_callers_subset): Likewise.
553 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
554 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
555 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
556 (gather_context_independent_values): Likewise.
557 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
558 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
559 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
560 (evaluate_properties_for_edge): Likewise.
561 (estimate_edge_devirt_benefit): Likewise.
562 (estimate_edge_size_and_time): Likewise.
563 (estimate_calls_size_and_time): Likewise.
564 (ipa_call_context::ipa_call_context): Likewise.
565 (estimate_ipcp_clone_size_and_time): Likewise.
566 * ipa-fnsummary.h (ipa_call_context): Replace
567 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
568 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
569 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
570 (do_estimate_edge_size): Likewise.
571 (do_estimate_edge_hints): Likewise.
572
573 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
574
575 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
576 binary operations.
577
578 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
579
580 * ipa-profile.c (check_argument_count): Check properly that e_info
581 is non-NULL; do not check descriptors.
582
583 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
584
585 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
586 check for ipa profiles.
587
588 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
589
590 PR c++/92421
591 * ipa-prop.c (update_indirect_edges_after_inlining):
592 Mark parameter as used.
593 * ipa-inline.c (recursive_inlining): Reset node cache
594 after inlining.
595 (inline_small_functions): Remove checking ifdef.
596 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
597 cache consistency.
598
599 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
600
601 PR ipa/92498
602 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
603 is NULL.
604 (ipa_profile): Fix reversed test.
605
606 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
607
608 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
609 (propagate_constants_topo): Fix typo.
610
611 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
612
613 * Makefile.in (OBJS): Add value-range.o.
614 (GTFILES): Add value-range.h.
615 * gengtype.c (open_base_files): Add value-range.h to list of
616 header files.
617 * tree-vrp.c: Move the following value_range related functions:
618 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
619 constant_p, set_undefined, set_varying, may_contain_p,
620 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
621 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
622 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
623 value_inside_range, ranges_from_anti_range, union_ranges,
624 intersect_ranges, intersect_helper, union_helper, union_,
625 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
626 upper_bound, contains_p, invert, intersect...
627 * value-range.cc: ...to here.
628 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
629 associated inline methods from here...
630 * value-range.h: ...to here.
631
632 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
633
634 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
635 instead of asserting its value.
636
637 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
638
639 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
640 constructors and set methods so value_range_kind is the last
641 argument and defaults to VR_RANGE.
642 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
643 * ipa-cp.c (propagate_vr_across_jump_function): Same.
644 * ipa-prop.c (ipa_get_value_range): Same.
645 (ipa_compute_jump_functions_for_edge): Same.
646 * range-op.cc (value_range_from_overflowed_bounds): Same.
647 (operator_cast::op1_range): Same.
648 (range_tests): Same.
649 * range.cc (range_nonzero): Same.
650 * tree-ssanames.c (get_range_info): Same.
651 * tree-vrp.c (value_range_equiv::set): Same.
652 (value_range::value_range): Same.
653 (value_range_equiv::value_range_equiv): Same.
654 (value_range_equiv::update): Same.
655 (value_range_equiv::deep_copy): Same.
656 (value_range_equiv::move): Same.
657 (value_range_equiv::set_undefined): Same.
658 (value_range::set): Same.
659 (value_range::set_nonzero): Same.
660 (ranges_from_anti_range): Same.
661 (extract_range_from_plus_minus_expr): Same.
662 (value_range::intersect_helper): Same.
663 (value_range_equiv::intersect): Same.
664 (value_range::union_helper): Same.
665 (value_range_equiv::union_): Same.
666 (value_range::normalize_symbolics): Same.
667 (value_range::invert): Same.
668 (determine_value_range_1): Same.
669 * tree-vrp.h (class value_range): Same.
670 (class value_range_equiv): Same.
671 * vr-values.c (set_value_range_to_nonnegative): Same.
672 (set_value_range_to_truthvalue): Same.
673 (vr_values::update_value_range): Same.
674 (vr_values::extract_range_for_var_from_comparison_expr): Same.
675 (vr_values::extract_range_from_binary_expr): Same.
676 (vr_values::extract_range_from_comparison): Same.
677 (vr_values::extract_range_basic): Same.
678 (vr_values::adjust_range_with_scev): Same.
679 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
680 (vr_values::extract_range_from_phi_node): Same.
681
682 2019-11-13 Ulrich Drepper <drepper@redhat.com>
683
684 * tree-dump.c (dequeue_and_dump): Print first tree operand
685 for VIEW_CONVERT_EXPR.
686
687 2019-11-13 Joseph Myers <joseph@codesourcery.com>
688
689 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
690 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
691 * real.c (get_max_float): Add norm_max argument.
692 * real.h (get_max_float): Update prototype.
693 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
694 get_max_float.
695
696 2019-11-13 Martin Liska <mliska@suse.cz>
697
698 * dbgcnt.c (test_sorted_dbg_counters): New.
699 (dbgcnt_c_tests): Likewise.
700 * selftest-run-tests.c (selftest::run_tests): Likewise.
701 * selftest.h (dbgcnt_c_tests): Likewise.
702
703 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
704 Martin Jambor <mjambor@suse.cz>
705
706 PR ipa/92454
707 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
708 (identify_dead_nodes): Likewise.
709
710 2019-11-13 Martin Liska <mliska@suse.cz>
711
712 * ipa-icf.c (sem_function::equals_private): Do not overuse
713 push/pop_cfun functions.
714
715 2019-11-13 Martin Liska <mliska@suse.cz>
716
717 * common.opt: Document change of -fdbg-cnt option.
718 * dbgcnt.c (DEBUG_COUNTER): Remove.
719 (dbg_cnt_is_enabled): Remove.
720 (dbg_cnt): Work with new intervals.
721 (dbg_cnt_set_limit_by_index): Set to new
722 list of intervals.
723 (dbg_cnt_set_limit_by_name): Likewise.
724 (dbg_cnt_process_single_pair): Process new format.
725 (dbg_cnt_process_opt): Likewise.
726 (dbg_cnt_list_all_counters): Likewise.
727 * doc/invoke.texi: Document change of -fdbg-cnt option.
728 (cmp_tuples): New.
729
730 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
731
732 * ipa-inline.c (ipa_inline): Check that function is defined before
733 flattening.
734
735 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
736 Julian Brown <julian@codesourcery.com>
737
738 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
739 flag_worker_partitioning is not set.
740 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
741 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
742
743 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
744
745 * config/gcn/gcn-run.c (heap_region): New global variable.
746 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
747 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
748 (get_kernarg_region): Move contents to ....
749 (get_memory_region): .... here.
750 (get_heap_region): New function.
751 (init_device): Initialize the heap_region.
752 (device_malloc): Add region parameter.
753 (struct kernargs): Move heap ....
754 (heap): ... to global scope.
755 (main): Allocate heap separate to kernargs.
756
757 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
758
759 * ipa-prop.c (ipa_print_node_jump_functions,
760 ipa_print_node_params): Print info about missing summaries.
761
762 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
763
764 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
765 the cost of generating loop masks.
766
767 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
768
769 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
770 New function.
771 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
772 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
773 (vect_transform_loop): Likewise.
774 (vect_analyze_loop_costing): Don't take the cost of versioning
775 into account for the static profitability threshold if it turns
776 out that no versioning is needed.
777
778 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
779
780 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
781 and target_option_default_node to get -fprofile-generate ctors working
782 right with LTO.
783
784 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
785
786 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
787 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
788 (vectorizable_assignment): Don't add a cost for nop conversions.
789 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
790 Likewise.
791 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
792
793 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
794
795 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
796 number of ncopies as an additional argument.
797 (vectorizable_conversion): Update call accordingly. Use "modifier"
798 to check whether a conversion is between vectors with the same
799 numbers of units.
800
801 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
802
803 * config/aarch64/aarch64-sve-builtins-functions.h
804 (unary_count::expand): Use aarch64_sve_int_mode instead of
805 mode_for_int_vector.
806
807 2019-11-13 Martin Liska <mliska@suse.cz>
808
809 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
810
811 2019-11-13 Martin Liska <mliska@suse.cz>
812
813 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
814 Remove call to finalize_options_struct.
815
816 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
817
818 PR target/92055
819 * config/avr/t-avr (avr-mcus): Do not depend on
820 $(srcdir)/config/avr/t-multilib.
821
822 2019-11-13 Richard Biener <rguenther@suse.de>
823
824 PR tree-optimization/92473
825 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
826 direct optab reduction in the correct type.
827
828 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
829
830 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
831 hexadecimal literal.
832
833 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
834
835 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
836 UNORDERED if !HONOR_NANS (DFmode).
837 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
838 if !HONOR_NANS (<MODE>mode).
839
840 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
841
842 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
843 (ipcp_verify_propagated_values): Likewise.
844 (propagate_constants_across_call): Likewise.
845 (propagate_constants_topo): Likewise.
846 (ipcp_propagate_stage): Likewise.
847
848 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
849
850 PR ipa/92471
851 * ipa-profile.c (check_argument_count): Break out from ...;
852 watch for missing summaries.
853 (ipa_profile): Here.
854
855 2019-11-12 Martin Sebor <msebor@redhat.com>
856
857 PR tree-optimization/92412
858 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
859 extern variables.
860
861 2019-11-12 Martin Sebor <msebor@redhat.com>
862
863 PR middle-end/83688
864 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
865 (directive::argno): New member.
866 (format_result::aliases, format_result::alias_count): New data members.
867 (format_result::append_alias): New member function.
868 (fmtresult::dst_offset): New data member.
869 (pass_sprintf_length::call_info::dst_origin): New data member.
870 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
871 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
872 (get_origin_and_offset): Same.
873 (format_string): Call it.
874 (format_directive): Call append_alias and set directive argument
875 number.
876 (maybe_warn_overlap): New function.
877 (pass_sprintf_length::compute_format_length): Call it.
878 (pass_sprintf_length::handle_gimple_call): Initialize new members.
879 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
880
881 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
882
883 PR rtl-optimization/92430
884 * cfgcleanup.c (pass_jump_after_combine::execute): Free
885 dominance info at the beginning.
886
887 2019-11-12 Richard Biener <rguenther@suse.de>
888
889 PR tree-optimization/92460
890 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
891 expression before gimplifying.
892
893 2019-11-12 Richard Biener <rguenther@suse.de>
894
895 PR tree-optimization/92461
896 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
897 stmt after propagation.
898
899 2019-11-12 Martin Liska <mliska@suse.cz>
900
901 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
902 Use SET_OPTION_IF_UNSET.
903 (ix86_option_override_internal): Likewise.
904 * opts.c (default_options_optimization): Likewise.
905 (finish_options): Likewise.
906 (enable_fdo_optimizations): Likewise.
907 (common_handle_option): Likewise.
908
909 2019-11-12 Martin Liska <mliska@suse.cz>
910
911 * common/common-target.def: Remove option_validate_param and
912 option_default_params.
913 * common/common-targhooks.c (default_option_validate_param):
914 Remove.
915 * common/common-targhooks.h (default_option_validate_param):
916 Remove.
917 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
918 Remove usage of this.
919 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
920 (aarch64_option_validate_param): Likewise.
921 (aarch64_option_default_params): Likewise
922 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
923 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
924 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
925 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
926 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
927 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
928 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
929 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
930 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
931 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
932 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
933 guard_size here.
934 * doc/tm.texi: Remove option_default_params and option_validate_param.
935 * doc/tm.texi.in: Likewise.
936
937 2019-11-12 Martin Liska <mliska@suse.cz>
938
939 * common/common-target.def:
940 Do not mention set_default_param_value
941 and set_param_value.
942 * doc/tm.texi: Likewise.
943
944 2019-11-12 Martin Liska <mliska@suse.cz>
945
946 * common.opt: Remove param_values.
947 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
948 Remove finalize_options_struct.
949 * gcc.c (driver::decode_argv): Do not call global_init_params
950 and finish_params.
951 (driver::finalize): Do not call params_c_finalize
952 and finalize_options_struct.
953 * opt-suggestions.c (option_proposer::get_completions): Remove
954 special casing of params.
955 (option_proposer::find_param_completions): Remove.
956 (test_completion_partial_match): Update expected output.
957 * opt-suggestions.h: Remove find_param_completions.
958 * opts-common.c (add_misspelling_candidates): Add
959 --param with a space.
960 * opts.c (handle_param): Remove.
961 (init_options_struct):. Remove init_options_struct and
962 similar calls.
963 (finalize_options_struct): Remove.
964 (common_handle_option): Use SET_OPTION_IF_UNSET.
965 * opts.h (finalize_options_struct): Remove.
966 * toplev.c (general_init): Do not call global_init_params.
967 (toplev::finalize): Do not call params_c_finalize and
968 finalize_options_struct.
969
970 2019-11-12 Martin Liska <mliska@suse.cz>
971
972 * Makefile.in: Remove PARAMS_H and params.list
973 and params.options.
974 * params-enum.h: Remove.
975 * params-list.h: Remove.
976 * params-options.h: Remove.
977 * params.c: Remove.
978 * params.def: Remove.
979 * params.h: Remove.
980 * asan.c: Do not include params.h.
981 * auto-profile.c: Likewise.
982 * bb-reorder.c: Likewise.
983 * builtins.c: Likewise.
984 * cfgcleanup.c: Likewise.
985 * cfgexpand.c: Likewise.
986 * cfgloopanal.c: Likewise.
987 * cgraph.c: Likewise.
988 * combine.c: Likewise.
989 * common/config/aarch64/aarch64-common.c: Likewise.
990 * common/config/gcn/gcn-common.c: Likewise.
991 * common/config/ia64/ia64-common.c: Likewise.
992 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
993 * common/config/rs6000/rs6000-common.c: Likewise.
994 * common/config/sh/sh-common.c: Likewise.
995 * config/aarch64/aarch64.c: Likewise.
996 * config/alpha/alpha.c: Likewise.
997 * config/arm/arm.c: Likewise.
998 * config/avr/avr.c: Likewise.
999 * config/csky/csky.c: Likewise.
1000 * config/i386/i386-builtins.c: Likewise.
1001 * config/i386/i386-expand.c: Likewise.
1002 * config/i386/i386-features.c: Likewise.
1003 * config/i386/i386-options.c: Likewise.
1004 * config/i386/i386.c: Likewise.
1005 * config/ia64/ia64.c: Likewise.
1006 * config/rs6000/rs6000-logue.c: Likewise.
1007 * config/rs6000/rs6000.c: Likewise.
1008 * config/s390/s390.c: Likewise.
1009 * config/sparc/sparc.c: Likewise.
1010 * config/visium/visium.c: Likewise.
1011 * coverage.c: Likewise.
1012 * cprop.c: Likewise.
1013 * cse.c: Likewise.
1014 * cselib.c: Likewise.
1015 * dse.c: Likewise.
1016 * emit-rtl.c: Likewise.
1017 * explow.c: Likewise.
1018 * final.c: Likewise.
1019 * fold-const.c: Likewise.
1020 * gcc.c: Likewise.
1021 * gcse.c: Likewise.
1022 * ggc-common.c: Likewise.
1023 * ggc-page.c: Likewise.
1024 * gimple-loop-interchange.cc: Likewise.
1025 * gimple-loop-jam.c: Likewise.
1026 * gimple-loop-versioning.cc: Likewise.
1027 * gimple-ssa-split-paths.c: Likewise.
1028 * gimple-ssa-sprintf.c: Likewise.
1029 * gimple-ssa-store-merging.c: Likewise.
1030 * gimple-ssa-strength-reduction.c: Likewise.
1031 * gimple-ssa-warn-alloca.c: Likewise.
1032 * gimple-ssa-warn-restrict.c: Likewise.
1033 * graphite-isl-ast-to-gimple.c: Likewise.
1034 * graphite-optimize-isl.c: Likewise.
1035 * graphite-scop-detection.c: Likewise.
1036 * graphite-sese-to-poly.c: Likewise.
1037 * graphite.c: Likewise.
1038 * haifa-sched.c: Likewise.
1039 * hsa-gen.c: Likewise.
1040 * ifcvt.c: Likewise.
1041 * ipa-cp.c: Likewise.
1042 * ipa-fnsummary.c: Likewise.
1043 * ipa-inline-analysis.c: Likewise.
1044 * ipa-inline.c: Likewise.
1045 * ipa-polymorphic-call.c: Likewise.
1046 * ipa-profile.c: Likewise.
1047 * ipa-prop.c: Likewise.
1048 * ipa-split.c: Likewise.
1049 * ipa-sra.c: Likewise.
1050 * ira-build.c: Likewise.
1051 * ira-conflicts.c: Likewise.
1052 * loop-doloop.c: Likewise.
1053 * loop-invariant.c: Likewise.
1054 * loop-unroll.c: Likewise.
1055 * lra-assigns.c: Likewise.
1056 * lra-constraints.c: Likewise.
1057 * modulo-sched.c: Likewise.
1058 * opt-suggestions.c: Likewise.
1059 * opts.c: Likewise.
1060 * postreload-gcse.c: Likewise.
1061 * predict.c: Likewise.
1062 * reload.c: Likewise.
1063 * reorg.c: Likewise.
1064 * resource.c: Likewise.
1065 * sanopt.c: Likewise.
1066 * sched-deps.c: Likewise.
1067 * sched-ebb.c: Likewise.
1068 * sched-rgn.c: Likewise.
1069 * sel-sched-ir.c: Likewise.
1070 * sel-sched.c: Likewise.
1071 * shrink-wrap.c: Likewise.
1072 * stmt.c: Likewise.
1073 * targhooks.c: Likewise.
1074 * toplev.c: Likewise.
1075 * tracer.c: Likewise.
1076 * trans-mem.c: Likewise.
1077 * tree-chrec.c: Likewise.
1078 * tree-data-ref.c: Likewise.
1079 * tree-if-conv.c: Likewise.
1080 * tree-inline.c: Likewise.
1081 * tree-loop-distribution.c: Likewise.
1082 * tree-parloops.c: Likewise.
1083 * tree-predcom.c: Likewise.
1084 * tree-profile.c: Likewise.
1085 * tree-scalar-evolution.c: Likewise.
1086 * tree-sra.c: Likewise.
1087 * tree-ssa-ccp.c: Likewise.
1088 * tree-ssa-dom.c: Likewise.
1089 * tree-ssa-dse.c: Likewise.
1090 * tree-ssa-ifcombine.c: Likewise.
1091 * tree-ssa-loop-ch.c: Likewise.
1092 * tree-ssa-loop-im.c: Likewise.
1093 * tree-ssa-loop-ivcanon.c: Likewise.
1094 * tree-ssa-loop-ivopts.c: Likewise.
1095 * tree-ssa-loop-manip.c: Likewise.
1096 * tree-ssa-loop-niter.c: Likewise.
1097 * tree-ssa-loop-prefetch.c: Likewise.
1098 * tree-ssa-loop-unswitch.c: Likewise.
1099 * tree-ssa-math-opts.c: Likewise.
1100 * tree-ssa-phiopt.c: Likewise.
1101 * tree-ssa-pre.c: Likewise.
1102 * tree-ssa-reassoc.c: Likewise.
1103 * tree-ssa-sccvn.c: Likewise.
1104 * tree-ssa-scopedtables.c: Likewise.
1105 * tree-ssa-sink.c: Likewise.
1106 * tree-ssa-strlen.c: Likewise.
1107 * tree-ssa-structalias.c: Likewise.
1108 * tree-ssa-tail-merge.c: Likewise.
1109 * tree-ssa-threadbackward.c: Likewise.
1110 * tree-ssa-threadedge.c: Likewise.
1111 * tree-ssa-uninit.c: Likewise.
1112 * tree-switch-conversion.c: Likewise.
1113 * tree-vect-data-refs.c: Likewise.
1114 * tree-vect-loop.c: Likewise.
1115 * tree-vect-slp.c: Likewise.
1116 * tree-vrp.c: Likewise.
1117 * tree.c: Likewise.
1118 * value-prof.c: Likewise.
1119 * var-tracking.c: Likewise.
1120
1121 2019-11-12 Martin Liska <mliska@suse.cz>
1122
1123 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
1124 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
1125 macro.
1126 (asan_sanitize_allocas_p): Likewise.
1127 (asan_emit_stack_protection): Likewise.
1128 (asan_protect_global): Likewise.
1129 (instrument_derefs): Likewise.
1130 (instrument_builtin_call): Likewise.
1131 (asan_expand_mark_ifn): Likewise.
1132 * auto-profile.c (auto_profile): Likewise.
1133 * bb-reorder.c (copy_bb_p): Likewise.
1134 (duplicate_computed_gotos): Likewise.
1135 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
1136 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
1137 (try_crossjump_bb): Likewise.
1138 * cfgexpand.c (defer_stack_allocation): Likewise.
1139 (stack_protect_classify_type): Likewise.
1140 (pass_expand::execute): Likewise.
1141 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1142 (estimate_reg_pressure_cost): Likewise.
1143 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
1144 * combine.c (combine_instructions): Likewise.
1145 (record_value_for_reg): Likewise.
1146 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
1147 (aarch64_option_default_params): Likewise.
1148 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1149 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1150 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1151 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1152 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
1153 (aarch64_allocate_and_probe_stack_space): Likewise.
1154 (aarch64_expand_epilogue): Likewise.
1155 (aarch64_override_options_internal): Likewise.
1156 * config/alpha/alpha.c (alpha_option_override): Likewise.
1157 * config/arm/arm.c (arm_option_override): Likewise.
1158 (arm_valid_target_attribute_p): Likewise.
1159 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1160 * config/i386/i386.c (get_probe_interval): Likewise.
1161 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
1162 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1163 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
1164 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
1165 (get_stack_clash_protection_guard_size): Likewise.
1166 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1167 * config/s390/s390.c (allocate_stack_space): Likewise.
1168 (s390_emit_prologue): Likewise.
1169 (s390_option_override_internal): Likewise.
1170 * config/sparc/sparc.c (sparc_option_override): Likewise.
1171 * config/visium/visium.c (visium_option_override): Likewise.
1172 * coverage.c (get_coverage_counts): Likewise.
1173 (coverage_compute_profile_id): Likewise.
1174 (coverage_begin_function): Likewise.
1175 (coverage_end_function): Likewise.
1176 * cse.c (cse_find_path): Likewise.
1177 (cse_extended_basic_block): Likewise.
1178 (cse_main): Likewise.
1179 * cselib.c (cselib_invalidate_mem): Likewise.
1180 * dse.c (dse_step1): Likewise.
1181 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
1182 (get_max_insn_count): Likewise.
1183 (make_debug_insn_raw): Likewise.
1184 (init_emit): Likewise.
1185 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1186 * final.c (compute_alignments): Likewise.
1187 * fold-const.c (fold_range_test): Likewise.
1188 (fold_truth_andor): Likewise.
1189 (tree_single_nonnegative_warnv_p): Likewise.
1190 (integer_valued_real_single_p): Likewise.
1191 * gcse.c (want_to_gcse_p): Likewise.
1192 (prune_insertions_deletions): Likewise.
1193 (hoist_code): Likewise.
1194 (gcse_or_cprop_is_too_expensive): Likewise.
1195 * ggc-common.c: Likewise.
1196 * ggc-page.c (ggc_collect): Likewise.
1197 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1198 (MAX_DATAREFS): Likewise.
1199 (OUTER_STRIDE_RATIO): Likewise.
1200 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1201 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1202 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1203 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1204 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1205 (imm_store_chain_info::output_merged_store): Likewise.
1206 (pass_store_merging::process_store): Likewise.
1207 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1208 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1209 (scop_to_isl_ast): Likewise.
1210 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1211 (optimize_isl): Likewise.
1212 * graphite-scop-detection.c (build_scops): Likewise.
1213 * haifa-sched.c (set_modulo_params): Likewise.
1214 (rank_for_schedule): Likewise.
1215 (model_add_to_worklist): Likewise.
1216 (model_promote_insn): Likewise.
1217 (model_choose_insn): Likewise.
1218 (queue_to_ready): Likewise.
1219 (autopref_multipass_dfa_lookahead_guard): Likewise.
1220 (schedule_block): Likewise.
1221 (sched_init): Likewise.
1222 * hsa-gen.c (init_prologue): Likewise.
1223 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1224 (cond_move_process_if_block): Likewise.
1225 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1226 (merge_agg_lats_step): Likewise.
1227 (devirtualization_time_bonus): Likewise.
1228 (hint_time_bonus): Likewise.
1229 (incorporate_penalties): Likewise.
1230 (good_cloning_opportunity_p): Likewise.
1231 (ipcp_propagate_stage): Likewise.
1232 * ipa-fnsummary.c (decompose_param_expr): Likewise.
1233 (set_switch_stmt_execution_predicate): Likewise.
1234 (analyze_function_body): Likewise.
1235 (compute_fn_summary): Likewise.
1236 * ipa-inline-analysis.c (estimate_growth): Likewise.
1237 * ipa-inline.c (caller_growth_limits): Likewise.
1238 (inline_insns_single): Likewise.
1239 (inline_insns_auto): Likewise.
1240 (can_inline_edge_by_limits_p): Likewise.
1241 (want_early_inline_function_p): Likewise.
1242 (big_speedup_p): Likewise.
1243 (want_inline_small_function_p): Likewise.
1244 (want_inline_self_recursive_call_p): Likewise.
1245 (edge_badness): Likewise.
1246 (recursive_inlining): Likewise.
1247 (compute_max_insns): Likewise.
1248 (early_inliner): Likewise.
1249 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
1250 * ipa-profile.c (ipa_profile): Likewise.
1251 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
1252 (ipa_analyze_node): Likewise.
1253 (ipcp_transform_function): Likewise.
1254 * ipa-split.c (consider_split): Likewise.
1255 * ipa-sra.c (allocate_access): Likewise.
1256 (process_scan_results): Likewise.
1257 (ipa_sra_summarize_function): Likewise.
1258 (pull_accesses_from_callee): Likewise.
1259 * ira-build.c (loop_compare_func): Likewise.
1260 (mark_loops_for_removal): Likewise.
1261 * ira-conflicts.c (build_conflict_bit_table): Likewise.
1262 * loop-doloop.c (doloop_optimize): Likewise.
1263 * loop-invariant.c (gain_for_invariant): Likewise.
1264 (move_loop_invariants): Likewise.
1265 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
1266 (decide_unroll_runtime_iterations): Likewise.
1267 (decide_unroll_stupid): Likewise.
1268 (expand_var_during_unrolling): Likewise.
1269 * lra-assigns.c (spill_for): Likewise.
1270 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
1271 * modulo-sched.c (sms_schedule): Likewise.
1272 (DFA_HISTORY): Likewise.
1273 * opts.c (default_options_optimization): Likewise.
1274 (finish_options): Likewise.
1275 (common_handle_option): Likewise.
1276 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
1277 (if): Likewise.
1278 * predict.c (get_hot_bb_threshold): Likewise.
1279 (maybe_hot_count_p): Likewise.
1280 (probably_never_executed): Likewise.
1281 (predictable_edge_p): Likewise.
1282 (predict_loops): Likewise.
1283 (expr_expected_value_1): Likewise.
1284 (tree_predict_by_opcode): Likewise.
1285 (handle_missing_profiles): Likewise.
1286 * reload.c (find_equiv_reg): Likewise.
1287 * reorg.c (redundant_insn): Likewise.
1288 * resource.c (mark_target_live_regs): Likewise.
1289 (incr_ticks_for_insn): Likewise.
1290 * sanopt.c (pass_sanopt::execute): Likewise.
1291 * sched-deps.c (sched_analyze_1): Likewise.
1292 (sched_analyze_2): Likewise.
1293 (sched_analyze_insn): Likewise.
1294 (deps_analyze_insn): Likewise.
1295 * sched-ebb.c (schedule_ebbs): Likewise.
1296 * sched-rgn.c (find_single_block_region): Likewise.
1297 (too_large): Likewise.
1298 (haifa_find_rgns): Likewise.
1299 (extend_rgns): Likewise.
1300 (new_ready): Likewise.
1301 (schedule_region): Likewise.
1302 (sched_rgn_init): Likewise.
1303 * sel-sched-ir.c (make_region_from_loop): Likewise.
1304 * sel-sched-ir.h (MAX_WS): Likewise.
1305 * sel-sched.c (process_pipelined_exprs): Likewise.
1306 (sel_setup_region_sched_flags): Likewise.
1307 * shrink-wrap.c (try_shrink_wrapping): Likewise.
1308 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
1309 * toplev.c (print_version): Likewise.
1310 (process_options): Likewise.
1311 * tracer.c (tail_duplicate): Likewise.
1312 * trans-mem.c (tm_log_add): Likewise.
1313 * tree-chrec.c (chrec_fold_plus_1): Likewise.
1314 * tree-data-ref.c (split_constant_offset): Likewise.
1315 (compute_all_dependences): Likewise.
1316 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
1317 * tree-inline.c (remap_gimple_stmt): Likewise.
1318 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
1319 * tree-parloops.c (MIN_PER_THREAD): Likewise.
1320 (create_parallel_loop): Likewise.
1321 * tree-predcom.c (determine_unroll_factor): Likewise.
1322 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
1323 * tree-sra.c (analyze_all_variable_accesses): Likewise.
1324 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
1325 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
1326 (dse_optimize_redundant_stores): Likewise.
1327 (dse_classify_store): Likewise.
1328 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
1329 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
1330 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
1331 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
1332 (try_peel_loop): Likewise.
1333 (tree_unroll_loops_completely): Likewise.
1334 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
1335 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
1336 (MAX_CONSIDERED_GROUPS): Likewise.
1337 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
1338 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
1339 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
1340 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
1341 (L1_CACHE_SIZE_BYTES): Likewise.
1342 (L2_CACHE_SIZE_BYTES): Likewise.
1343 (should_issue_prefetch_p): Likewise.
1344 (schedule_prefetches): Likewise.
1345 (determine_unroll_factor): Likewise.
1346 (volume_of_references): Likewise.
1347 (add_subscript_strides): Likewise.
1348 (self_reuse_distance): Likewise.
1349 (mem_ref_count_reasonable_p): Likewise.
1350 (insn_to_prefetch_ratio_too_small_p): Likewise.
1351 (loop_prefetch_arrays): Likewise.
1352 (tree_ssa_prefetch_arrays): Likewise.
1353 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
1354 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
1355 (convert_mult_to_fma): Likewise.
1356 (math_opts_dom_walker::after_dom_children): Likewise.
1357 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
1358 (hoist_adjacent_loads): Likewise.
1359 (gate_hoist_loads): Likewise.
1360 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
1361 (compute_partial_antic_aux): Likewise.
1362 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
1363 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
1364 (vn_reference_lookup): Likewise.
1365 (do_rpo_vn): Likewise.
1366 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
1367 * tree-ssa-sink.c (select_best_block): Likewise.
1368 * tree-ssa-strlen.c (new_stridx): Likewise.
1369 (new_addr_stridx): Likewise.
1370 (get_range_strlen_dynamic): Likewise.
1371 (class ssa_name_limit_t): Likewise.
1372 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
1373 (create_variable_info_for_1): Likewise.
1374 (init_alias_vars): Likewise.
1375 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
1376 (tail_merge_optimize): Likewise.
1377 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
1378 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
1379 (thread_jumps::find_jump_threads_backwards): Likewise.
1380 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
1381 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
1382 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
1383 (jump_table_cluster::can_be_handled): Likewise.
1384 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
1385 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
1386 (param_switch_conversion_branch_ratio): Likewise.
1387 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
1388 (vect_enhance_data_refs_alignment): Likewise.
1389 (vect_prune_runtime_alias_test_list): Likewise.
1390 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
1391 (vect_get_datarefs_in_loop): Likewise.
1392 (vect_analyze_loop): Likewise.
1393 * tree-vect-slp.c (vect_slp_bb): Likewise.
1394 * tree-vectorizer.h: Likewise.
1395 * tree-vrp.c (find_switch_asserts): Likewise.
1396 (vrp_prop::check_mem_ref): Likewise.
1397 * tree.c (wide_int_to_tree_1): Likewise.
1398 (cache_integer_cst): Likewise.
1399 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
1400 (reverse_op): Likewise.
1401 (vt_find_locations): Likewise.
1402
1403 2019-11-12 Martin Liska <mliska@suse.cz>
1404
1405 * Makefile.in: Include params.opt.
1406 * flag-types.h (enum parloops_schedule_type): Add
1407 parloops_schedule_type used in params.opt.
1408 * params.opt: New file.
1409
1410 2019-11-12 Martin Liska <mliska@suse.cz>
1411
1412 * common.opt: Remove --param and --param= options.
1413 * opt-functions.awk: Mark CL_PARAMS for options
1414 that have Param keyword.
1415 * opts-common.c (decode_cmdline_options_to_array):
1416 Replace --param key=value with --param=key=value.
1417 * opts.c (print_filtered_help): Remove special
1418 printing of params.
1419 (print_specific_help): Update title for params.
1420 (common_handle_option): Do not handle OPT__param.
1421 opts.h (SET_OPTION_IF_UNSET): New macro.
1422 * doc/options.texi: Document Param keyword.
1423
1424 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
1425 Frederik Harwath <frederik@codesourcery.com>
1426 Thomas Schwinge <thomas@codesourcery.com>
1427
1428 gcc/
1429 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
1430 enumeration constant.
1431 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1432 (is_gimple_omp_offloaded): Likewise.
1433 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
1434 constant. Adjust the value of ORT_NONE accordingly.
1435 (is_gimple_stmt): Handle OACC_SERIAL.
1436 (oacc_default_clause): Handle ORT_ACC_SERIAL.
1437 (gomp_needs_data_present): Likewise.
1438 (gimplify_adjust_omp_clauses): Likewise.
1439 (gimplify_omp_workshare): Handle OACC_SERIAL.
1440 (gimplify_expr): Likewise.
1441 * omp-expand.c (expand_omp_target):
1442 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1443 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
1444 * omp-low.c (is_oacc_parallel): Rename function to...
1445 (is_oacc_parallel_or_serial): ... this.
1446 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
1447 (scan_sharing_clauses): Adjust accordingly.
1448 (scan_omp_for): Likewise.
1449 (lower_oacc_head_mark): Likewise.
1450 (convert_from_firstprivate_int): Likewise.
1451 (lower_omp_target): Likewise.
1452 (check_omp_nesting_restrictions): Handle
1453 GF_OMP_TARGET_KIND_OACC_SERIAL.
1454 (lower_oacc_reductions): Likewise.
1455 (lower_omp_target): Likewise.
1456 * tree.def (OACC_SERIAL): New tree code.
1457 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
1458
1459 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
1460
1461 2019-11-12 Jakub Jelinek <jakub@redhat.com>
1462
1463 PR target/92449
1464 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
1465 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
1466
1467 PR tree-optimization/92452
1468 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
1469 into NULL_TREE, set up_bound to NULL_TREE instead of computing
1470 MINUS_EXPR on it.
1471
1472 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
1473
1474 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
1475 safelen with 0.
1476
1477 2019-11-12 Alan Modra <amodra@gmail.com>
1478
1479 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
1480 element of unspec vec.
1481 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
1482 PC-relative TLS.
1483 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
1484 (tls_gd_pcrel, tls_ld_pcrel): New insns.
1485 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
1486 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
1487
1488 2019-11-12 Alan Modra <amodra@gmail.com>
1489
1490 * config/rs6000/rs6000.opt (mtls-markers): Delete.
1491 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
1492 (IS_NOMARK_TLSGETADDR): Likewise.
1493 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
1494 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
1495 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
1496 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
1497 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
1498 (rs6000_indirect_call_template_1): Likewise.
1499 (rs6000_pltseq_template): Likewise.
1500 (rs6000_opt_vars): Remove "tls-markers" entry.
1501 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
1502 with TARGET_ELF.
1503 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
1504 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
1505 (pltseq_plt_pcrel<mode>): Likewise.
1506 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
1507 (call_value_local64): Likewise.
1508 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
1509 output and length attribute sub-expression.
1510 (call_value_nonlocal_sysv<mode>),
1511 (call_value_nonlocal_sysv_secure<mode>),
1512 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
1513 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
1514 (call_value_indirect_pcrel<mode>): Likewise.
1515 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
1516 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
1517 * configure: Regenerate.
1518 * config.in: Regenerate.
1519
1520 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
1521
1522 * config/rs6000/predicates.md (prefixed_memory): New predicate.
1523 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
1524 address being a prefixed load/store.
1525 (stack_protect_testdi): Deal with either address being a prefixed
1526 load.
1527
1528 2019-11-11 Jakub Jelinek <jakub@redhat.com>
1529
1530 PR bootstrap/92433
1531 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
1532 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
1533 std::swap.
1534
1535 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
1536
1537 PR tree-optimization/92420
1538 * tree-vect-stmts.c (get_negative_load_store_type): Move further
1539 up file.
1540 (get_group_load_store_type): Use it for reversed SLP accesses.
1541
1542 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
1543
1544 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
1545 summary.
1546 (ipcp_transformation_t::duplicate): Break out from ...
1547 (ipa_node_params_t::duplicate): ... here; add copying of agg
1548 replacements.
1549 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
1550 (ipcp_transformation_t): Add duplicate.
1551
1552 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
1553
1554 PR fortran/91828
1555 * doc/install.texi: Document that the minimum MPFR version is
1556 3.1.0.
1557
1558 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1559
1560 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
1561 use new register constraint letters.
1562
1563 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
1564
1565 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
1566 as well, if interesting recover the symbol and re-legitimize the
1567 pic address.
1568
1569 2019-11-11 Martin Liska <mliska@suse.cz>
1570
1571 * dbgcnt.def (DEBUG_COUNTER): Sort counters
1572 alphabetically.
1573
1574 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
1575
1576 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
1577 account when checking if there are enough iterations to vectorize
1578 epilogue.
1579
1580 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
1581 Kwok Cheung Yeung <kcy@codesourcery.com>
1582
1583 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
1584 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
1585 (LANG_HOOKS_DECLS): Rename also here.
1586 * langhooks.h (lang_hooks_for_decls): Rename
1587 omp_is_optional_argument to omp_check_optional_argument; take
1588 additional bool argument.
1589 * omp-general.h (omp_check_optional_argument): Likewise.
1590 * omp-general.h (omp_check_optional_argument): Likewise.
1591 * omp-low.c (lower_omp_target): Update calls; handle absent
1592 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
1593
1594 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
1595
1596 PR target/87833
1597 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
1598 -fPIC and -shared the last to create offload image.
1599
1600 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
1601
1602 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
1603 of 'offset'.
1604
1605 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
1606 (config.status): Use/depend on it.
1607 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
1608 * configure: Regenerate.
1609
1610 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
1611
1612 PR tree-optimization/88760
1613 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
1614 * gcc/common/config/rs6000/rs6000-common.c
1615 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
1616 Turn on -funroll-loops and -munroll-only-small-loops.
1617 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
1618 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
1619 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
1620 Turn off -munroll-only-small-loops for explicit -funroll-loops.
1621 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
1622 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
1623
1624 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
1625
1626 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
1627 Make scalar_load, vector_load, unaligned_load and
1628 vector_gather_load cost more to conform hardware latency and
1629 insn cost settings.
1630
1631 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
1632
1633 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
1634 (MACHO_SYMBOL_LINKER_VIS_P): New.
1635
1636 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
1637
1638 * lra-spills.c (assign_spill_hard_regs): Do not spill into
1639 registers in eliminable_regset.
1640
1641 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1642
1643 * ipa-inline.c (compute_uninlined_call_time,
1644 compute_inlined_call_time): Take edge frequency as
1645 parameter rather than computing it by itself.
1646 (big_speedup_p, edge_badness): Manually CSE sreal
1647 frequency calculations.
1648
1649 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1650
1651 * profile-count.c (profile_count::to_sreal_scale): Short circuit
1652 case where profiles are same.
1653
1654 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1655
1656 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
1657
1658 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
1659
1660 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
1661 args summaries of inlined edge unless it holds info about
1662 described reference.
1663
1664 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
1665
1666 * config/rs6000/rs6000.md (CC_any): New mode iterator.
1667 (*movcc_internal1): Rename to...
1668 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
1669
1670 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1671
1672 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
1673 (cgraph_node::create_virtual_clone): Copy it.
1674 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
1675 summaries.
1676 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
1677 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
1678 is disabled.
1679 (propagate_constants_across_call): If callee is not analyzed, give up.
1680 (propagate_constants_topo): Lower to bottom latties of all callees of
1681 functions with ipa-cp disabled.
1682 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
1683 (cgraph_edge_brings_value_p): Check for availability first.
1684 (create_specialized_node): Set ipcp_clone.
1685 (ipcp_store_bits_results): Check that info is present.
1686 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
1687 thunks.
1688 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
1689 conservative when callee summary is missing.
1690 (remap_edge_summaries): Lookup call summary only when needed.
1691 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
1692 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
1693 Use get_create.
1694 (ipa_analyze_node): Use get_create.
1695 (propagate_controlled_uses): Do not propagate when function is not
1696 analyzed.
1697 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
1698 (ipa_read_node_info): Use get_create.
1699 * ipa-prop.h (IPA_NODE_REF): Use get.
1700 (IPA_NODE_REF_GET_CREATE): New.
1701
1702 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1703
1704 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
1705 on function symbol.
1706
1707 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1708
1709 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
1710 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1711 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
1712 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
1713
1714 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1715
1716 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
1717 capping the growth cumulated.
1718 (offline_size): Break out from ...
1719 (estimate_growth): ... here.
1720 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
1721 parameters.
1722 (growth_likely_positive): Turn to ...
1723 (growth_positive_p): Re-implement.
1724 * ipa-inline.h (growth_likely_positive): Remove.
1725 (growth_positive_p): Declare.
1726 * ipa-inline.c (want_inline_small_function_p): Use
1727 growth_positive_p.
1728 (want_inline_function_to_all_callers_p): Likewise.
1729
1730 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1731
1732 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
1733 calculation of min_size.
1734 (ipa_update_overall_fn_summary): Likewise.
1735
1736 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
1737
1738 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
1739 estimate_edge_devirt_benefit when not computing hints;
1740 do not compute time when not asked for.
1741 (estimate_calls_size_and_time): Pass NULL hints and time when
1742 these are not computed; do not evaluate hint predicates when these are
1743 not computed.
1744 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
1745 frequency.
1746
1747 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1748
1749 PR tree-optimization/92401
1750 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
1751 if res_op->code is an expression with code length 1.
1752 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
1753 if res_op->code is an expression with code length 2.
1754 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
1755 if res_op->code is an expression with code length 3.
1756
1757 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
1758
1759 * config/darwin.c (machopic_mcount_stub_name): Validate the
1760 symbol stub name when it is created.
1761 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
1762 stub validation.
1763
1764 2019-11-09 Jakub Jelinek <jakub@redhat.com>
1765
1766 * symtab.c: Fix comment typos.
1767 * cgraphunit.c: Likewise.
1768 * cgraph.h: Likewise.
1769 * cgraphclones.c: Likewise.
1770 * cgraph.c: Likewise.
1771 * varpool.c: Likewise.
1772 * tree-ssa-strlen.c: Likewise.
1773 * ipa-sra.c: Likewise.
1774 (scan_expr_access, check_all_callers_for_issues): Fix typo
1775 in a dump message.
1776
1777 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
1778
1779 * config/darwin-protos.h: Add include quard.
1780
1781 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
1782
1783 * range-op.h (range_operator::fold_range): Return result in a
1784 reference parameter instead of by value.
1785 (range_operator::wi_fold): Same.
1786 * range-op.cc (range_operator::wi_fold): Return result in a reference
1787 parameter instead of by value.
1788 (range_operator::fold_range): Same.
1789 (value_range_from_overflowed_bounds): Same.
1790 (value_range_with_overflow): Same
1791 (create_possibly_reversed_range): Same.
1792 (operator_equal::fold_range): Same.
1793 (operator_not_equal::fold_range): Same.
1794 (operator_lt::fold_range): Same.
1795 (operator_le::fold_range): Same.
1796 (operator_gt::fold_range): Same.
1797 (operator_ge::fold_range): Same.
1798 (operator_plus::wi_fold): Same.
1799 (operator_plus::op1_range): Change call to fold_range.
1800 (operator_plus::op2_range): Change call to fold_range.
1801 (operator_minus::wi_fold): Return result via reference parameter.
1802 (operator_minus::op1_range): Change call to fold_range.
1803 (operator_minus::op2_range): Change call to fold_range.
1804 (operator_min::wi_fold): Return result via reference parameter.
1805 (operator_max::wi_fold): Same.
1806 (cross_product_operator::wi_cross_product): Same.
1807 (operator_mult::wi_fold): Same.
1808 (operator_div::wi_fold): Same.
1809 (operator_div op_floor_div): Fix whitespace.
1810 (operator_exact_divide::op1_range): Change call to fold_range.
1811 (operator_lshift::fold_range): Return result via reference parameter.
1812 (operator_lshift::wi_fold): Same.
1813 (operator_rshift::fold_range): Same.
1814 (operator_rshift::wi_fold): Same.
1815 (operator_cast::fold_range): Same.
1816 (operator_cast::op1_range): Change calls to fold_range.
1817 (operator_logical_and::fold_range): Return result via reference.
1818 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
1819 (operator_bitwise_and::wi_fold): Return result via reference.
1820 (operator_logical_or::fold_range): Same.
1821 (operator_bitwise_or::wi_fold): Same.
1822 (operator_bitwise_xor::wi_fold): Same.
1823 (operator_trunc_mod::wi_fold): Same.
1824 (operator_logical_not::fold_range): Same.
1825 (operator_bitwise_not::fold_range): Same.
1826 (operator_bitwise_not::op1_range): Change call to fold_range.
1827 (operator_cst::fold_range): Return result via reference.
1828 (operator_identity::fold_range): Same.
1829 (operator_abs::wi_fold): Same.
1830 (operator_absu::wi_fold): Same.
1831 (operator_negate::fold_range): Same.
1832 (operator_negate::op1_range): Change call to fold_range.
1833 (operator_addr_expr::fold_range): Return result via reference.
1834 (operator_addr_expr::op1_range): Change call to fold_range.
1835 (operator_pointer_plus::wi_fold): Return result via reference.
1836 (operator_pointer_min_max::wi_fold): Same.
1837 (operator_pointer_and::wi_fold): Same.
1838 (operator_pointer_or::wi_fold): Same.
1839 (range_op_handler): Change call to fold_range.
1840 (range_cast): Same.
1841 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
1842 fold_range.
1843 (range_fold_unary_symbolics_p): Same.
1844 (range_fold_binary_expr): Same.
1845 (range_fold_unary_expr): Same.
1846
1847 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1848
1849 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
1850 vector type as an argument rather than reading it from the
1851 stmt_vec_info.
1852 (vect_create_epilog_for_reduction): Update accordingly.
1853 (vectorizable_reduction): Likewise.
1854 (vect_transform_cycle_phi): Likewise.
1855
1856 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
1857
1858 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
1859 the comparison codes that make sense for the mode used, and only the
1860 codes that can be done with a single branch instruction.
1861
1862 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1863
1864 PR tree-optimization/92351
1865 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
1866 peeling the main loop for alignment, make sure to set the misalignment
1867 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
1868
1869 2019-11-08 Richard Biener <rguenther@suse.de>
1870
1871 * dbgcnt.def (ivopts_loop): Add.
1872 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
1873 ivopts_loop before optimizing a loop.
1874
1875 2019-11-08 Richard Biener <rguenther@suse.de>
1876
1877 PR ipa/92409
1878 * tree-inline.c (declare_return_variable): Properly handle
1879 type mismatches for the return slot.
1880
1881 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
1882
1883 PR target/92095
1884 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
1885 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
1886 change.
1887 (got_helper_needed): New static variable.
1888 (output_load_pcrel_sym): New function.
1889 (get_pc_thunk_name): Remove after inlining...
1890 (load_got_register): ...here. Rework the initialization of the GOT
1891 register and of the GOT helper.
1892 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
1893 (sparc_file_end): Test got_helper_needed to decide whether the GOT
1894 helper must be emitted. Use output_asm_insn instead of fprintf.
1895 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
1896 if optimization is enabled.
1897 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
1898 by calling output_load_pcrel_sym.
1899
1900 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1901
1902 * tree-sra.c (create_access): Delay disqualifying the base
1903 for poly_int values until we know we have a base.
1904
1905 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
1906
1907 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
1908 for loops with SIMDUID set. Enable epilogue vectorization for loops
1909 with SIMDLEN set after finding a main loop with a VF that matches it.
1910
1911 2019-11-08 Jakub Jelinek <jakub@redhat.com>
1912
1913 PR target/92038
1914 * gimple-ssa-store-merging.c (find_constituent_stores): For return
1915 value only, return non-NULL if there is a single non-clobber
1916 constituent store even if there are constituent clobbers and return
1917 one of clobber constituent stores if all constituent stores are
1918 clobbers.
1919 (split_group): Handle clobbers.
1920 (imm_store_chain_info::output_merged_store): When computing
1921 bzero_first, look after all clobbers at the start. Don't count
1922 clobber stmts in orig_num_stmts, except if the first orig store is
1923 a clobber covering the whole area and split_stores cover the whole
1924 area, consider equal number of stmts ok. Punt if split_stores
1925 contains only ->orig stores and their number plus number of original
1926 clobbers is equal to original number of stmts. For ->orig, look past
1927 clobbers in the constituent stores.
1928 (imm_store_chain_info::output_merged_stores): Don't remove clobber
1929 stmts.
1930 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
1931 rhs.
1932 (store_valid_for_store_merging_p): Allow clobber stmts.
1933 (verify_clear_bit_region_be): Fix up a thinko in function comment.
1934
1935 PR c++/92384
1936 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
1937 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
1938 slot.
1939 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
1940 force creation of a unique data.stack_parm slot.
1941
1942 2019-11-08 Richard Biener <rguenther@suse.de>
1943
1944 * genmatch.c (expr::gen_transform): Use the resimplify
1945 member function instead of hard-coding the gimple_resimplifyN variant.
1946 (dt_simplify::gen_1): Likewise.
1947
1948 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1949
1950 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
1951 POLY_INT_CST.
1952
1953 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1954
1955 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
1956 instead of INTEGER_CST.
1957
1958 2019-11-08 Richard Biener <rguenther@suse.de>
1959
1960 PR tree-optimization/92324
1961 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1962 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
1963 sign-conversions as necessary.
1964 (vectorizable_reduction): Reject conversions in the chain
1965 that are not sign-conversions, base analysis on a non-converting
1966 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
1967 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
1968 for debug stmts.
1969 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
1970 (STMT_VINFO_REDUC_VECTYPE): Likewise.
1971
1972 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
1973
1974 PR target/92055
1975 * config/avr/avr.opt (-mdouble=, -mlong-double=):
1976 Fix a missing '-' when displaying these options in the
1977 help screen.
1978
1979 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1980
1981 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
1982
1983 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1984
1985 * config/aarch64/aarch64-builtins.c
1986 (aarch64_builtin_vectorized_function): Remove bswap handling.
1987
1988 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * tree-core.h (tree_type_common::indivisible_p): New member variable.
1991 * tree.h (TYPE_INDIVISIBLE_P): New macro.
1992 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1993 Treat the vector types as indivisible.
1994
1995 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
1996
1997 * optabs.def (gather_load_optab, mask_gather_load_optab)
1998 (scatter_store_optab, mask_scatter_store_optab): Turn into
1999 conversion optabs, with the offset mode given explicitly.
2000 * doc/md.texi: Update accordingly.
2001 * config/aarch64/aarch64-sve-builtins-base.cc
2002 (svld1_gather_impl::expand): Likewise.
2003 (svst1_scatter_impl::expand): Likewise.
2004 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2005 (expand_scatter_store_optab_fn): Likewise.
2006 (direct_gather_load_optab_supported_p): Likewise.
2007 (direct_scatter_store_optab_supported_p): Likewise.
2008 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2009 to be argument 4.
2010 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2011 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2012 argument with the offset vector type. Require the two vector
2013 types to have the same number of elements but allow their element
2014 sizes to be different. Treat the optabs as conversion optabs.
2015 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
2016 prototype accordingly.
2017 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
2018 (supports_vec_convert_optab_p): ...this new function.
2019 (supports_vec_gather_load_p): Update accordingly.
2020 (supports_vec_scatter_store_p): Likewise.
2021 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
2022 Replace the offset sign and bits parameters with a scalar type tree.
2023 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
2024 Pass back the offset vector type instead of the scalar element type.
2025 Allow the offset to be wider than the memory elements. Search for
2026 an offset type that the target supports, stopping once we've
2027 reached the maximum of the element size and pointer size.
2028 Update call to internal_gather_scatter_fn_supported_p.
2029 (vect_check_gather_scatter): Update calls accordingly.
2030 When testing a new scale before knowing the final offset type,
2031 check whether the scale is supported for any signed or unsigned
2032 offset type. Check whether the target supports the source and
2033 target types of a conversion before deciding whether to look
2034 through the conversion. Record the chosen offset_vectype.
2035 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
2036 (vect_recog_gather_scatter_pattern): Get the scalar offset type
2037 directly from the gs_info's offset_vectype instead. Pass a zero
2038 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
2039 * tree-vect-stmts.c (check_load_store_masking): Update call to
2040 internal_gather_scatter_fn_supported_p, passing the offset vector
2041 type recorded in the gs_info.
2042 (vect_truncate_gather_scatter_offset): Update call to
2043 vect_check_gather_scatter, leaving it to search for a valid
2044 offset vector type.
2045 (vect_use_strided_gather_scatters_p): Convert the offset to the
2046 element type of the gs_info's offset_vectype.
2047 (vect_get_gather_scatter_ops): Get the offset vector type directly
2048 from the gs_info.
2049 (vect_get_strided_load_store_ops): Likewise.
2050 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
2051 and IFN_MASK_GATHER_LOAD.
2052 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
2053 (gather_load<mode><v_int_equiv>): ...this.
2054 (mask_gather_load<mode>): Rename to...
2055 (mask_gather_load<mode><v_int_equiv>): ...this.
2056 (scatter_store<mode>): Rename to...
2057 (scatter_store<mode><v_int_equiv>): ...this.
2058 (mask_scatter_store<mode>): Rename to...
2059 (mask_scatter_store<mode><v_int_equiv>): ...this.
2060
2061 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
2062
2063 PR target/92132
2064 * config/rs6000/predicates.md
2065 (signed_or_equality_comparison_operator): New predicate.
2066 (unsigned_or_equality_comparison_operator): Likewise.
2067 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
2068 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
2069 * config/rs6000/vector.md
2070 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
2071 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
2072 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
2073 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
2074 vector modes and same-size integer vector modes.
2075 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
2076 (vector_lt<mode> for VEC_F): New expand.
2077 (vector_le<mode> for VEC_F): Likewise.
2078 (vector_ne<mode> for VEC_F): Likewise.
2079 (vector_unge<mode> for VEC_F): Likewise.
2080 (vector_ungt<mode> for VEC_F): Likewise.
2081 (vector_unle<mode> for VEC_F): Likewise.
2082 (vector_unlt<mode> for VEC_F): Likewise.
2083 (vector_uneq<mode>): Expose name.
2084 (vector_ltgt<mode>): Likewise.
2085 (vector_unordered<mode>): Likewise.
2086 (vector_ordered<mode>): Likewise.
2087
2088 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
2089
2090 PR target/92295
2091 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
2092 Enhance ix86_expand_vector_init_concat.
2093
2094 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2095
2096 * doc/invoke.texi (-Wold-style-definition): Document () not being
2097 considered an old-style definition for C2x.
2098
2099 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
2100
2101 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
2102 Enhance comment.
2103 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
2104 insn patterns using ldcw instruction.
2105 (memory_barrier): Remove insn pattern using sync instruction.
2106 * config/pa/pa.opt (coherent-ldcw): New option.
2107 (ordered): New option.
2108
2109 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2110
2111 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
2112 valid conditions.
2113
2114 2019-11-07 Jakub Jelinek <jakub@redhat.com>
2115
2116 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
2117 typo - mistmatch -> mismatch.
2118 * ipa-profile.c (ipa_profile): Likewise.
2119 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
2120 - mistmatch -> mismatch.
2121
2122 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2123
2124 * simplify-rtx.c (comparison_to_mask): New function.
2125 (mask_to_comparison): New function.
2126 (simplify_logical_relational_operation): New function.
2127 (simplify_binary_operation_1): Call
2128 simplify_logical_relational_operation.
2129
2130 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
2131
2132 PR other/92090
2133 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
2134 modes for integer constants.
2135
2136 2019-11-07 Jan Hubicka <jh@suse.cz>
2137
2138 PR ipa/92406
2139 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
2140 summary.
2141
2142 2019-11-07 Jan Hubicka <jh@suse.cz>
2143
2144 * optc-save-gen.awk: Generate cl_target_option_free
2145 and cl_optimization_option_free.
2146 * opth-en.awk: Declare cl_target_option_free
2147 and cl_optimization_option_free.
2148 * tree.c (free_node): Use it.
2149
2150 2019-11-06 Jan Hubicka <jh@suse.cz>
2151
2152 * lto-streamer-in.c: Include alloc-pool.h.
2153 (freeing_string_slot_hasher): Remove.
2154 (string_slot_allocator): New object allocator.
2155 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
2156 (file_name_obstack): New obstack.
2157 (canon_file_name): Allocate in obstack and allocator.
2158 (lto_reader_init): Initialize obstack and allocator.
2159 (lto_free_file_name_hash): New function.
2160 * lto-streamer.h (lto_free_file_name_hash): New.
2161
2162 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
2163
2164 PR tree-optimization/89134
2165 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
2166 * params.def: Add min-loop-cond-split-prob.
2167 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
2168 outside checks on loop into the function.
2169 (split_info): New class.
2170 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
2171 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
2172 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
2173 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
2174 (stmt_semi_invariant_p, branch_removable_p): Likewise.
2175 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
2176 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
2177 (split_loop_on_cond): Likewise.
2178 (tree_ssa_split_loops): Add loop split on conditional statement.
2179
2180 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
2181
2182 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2183 pattern.
2184
2185 2019-11-07 Richard Biener <rguenther@suse.de>
2186
2187 PR tree-optimization/92405
2188 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2189 restrict lane-reducing ops to single stmt chains.
2190
2191 2019-11-07 Martin Jambor <mjambor@suse.cz>
2192
2193 PR lto/70929
2194 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2195 * cgraph.h (gimple_check_call_matching_types): Remove
2196 * cgraph.c (gimple_check_call_args): Likewise.
2197 (gimple_check_call_matching_types): Likewise.
2198 (symbol_table::create_edge): Do not call
2199 gimple_check_call_matching_types.
2200 (cgraph_edge::make_direct): Likewise.
2201 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2202 * value-prof.h (check_ic_target): Remove.
2203 * value-prof.c (check_ic_target): Remove.
2204 (gimple_ic_transform): Do nat call check_ic_target.
2205 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2206 (afdo_indirect_call): Likewise.
2207 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2208 gimple_check_call_matching_types.
2209 * ipa-inline.c (early_inliner): Likewise.
2210
2211 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2212
2213 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2214 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2215 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2216 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2217 * config/arm/iterators.md (USSAT16): New int_iterator.
2218 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2219 (sup): Likewise.
2220 * config/arm/predicates.md (ssat16_imm): New predicate.
2221 (usat16_imm): Likewise.
2222 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2223
2224 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2225
2226 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2227 New define_insns.
2228 (arm_<simd32_op>): New define_expands.
2229 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
2230 __smuad, __smuadx): Define.
2231 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2232 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
2233 (SIMD32_BINOP_Q): Likewise.
2234 (simd32_op): Handle the above.
2235 * config/arm/unspecs.md: Define unspecs for the above.
2236
2237 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2238
2239 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
2240 * config/arm/arm.md (APSRGE_REGNUM): Define.
2241 (arm_<simd32_op>): New define_insn.
2242 (arm_sel): Likewise.
2243 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
2244 (CALL_USED_REGISTERS): Likewise.
2245 (REG_ALLOC_ORDER): Likewise.
2246 (FIRST_PSEUDO_REGISTER): Update value.
2247 (ARM_GE_BITS_READ): Define.
2248 * config/arm/arm.c (arm_conditional_register_usage): Clear
2249 APSRGE_REGNUM from operand_reg_set.
2250 (arm_ge_bits_access): Define.
2251 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
2252 ARM_BUIILTIN_sel.
2253 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
2254 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
2255 FAIL if ARM_GE_BITS_READ.
2256 (*arm_add<mode>3): New define_insn.
2257 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
2258 (*arm_sub<mode>3): New define_insn.
2259 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
2260 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
2261 __usub16): Define.
2262 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2263 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
2264 (simd32_op): Handle the above.
2265 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
2266 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
2267 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
2268 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
2269
2270 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2271
2272 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
2273 (arm_smlabb): New define_expand.
2274 (*maddhisi4tb): Rename to...
2275 (maddhisi4tb): ... This.
2276 (*maddhisi4tt): Rename to...
2277 (maddhisi4tt): ... This.
2278 (arm_smlatb_setq): New define_insn.
2279 (arm_smlatb): New define_expand.
2280 (arm_smlatt_setq): New define_insn.
2281 (arm_smlatt): New define_expand.
2282 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
2283 (arm_<smlaw_op>): New define_expand.
2284 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
2285 __smlawb, __smlawt): Define.
2286 * config/arm_acle_builtins.def: Define builtins for the above.
2287 * config/arm/iterators.md (SMLAWBT): New int_iterator.
2288 (slaw_op): New int_attribute.
2289 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
2290
2291 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2292
2293 * config/arm/arm.md (arm_<ss_op>): New define_expand.
2294 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
2295 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
2296 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
2297 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
2298 (ss_op): New code_attr.
2299
2300 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2301
2302 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
2303 * config/arm/arm.md (APSRQ_REGNUM): Define.
2304 (add_setq): New define_subst.
2305 (add_clobber_q_name): New define_subst_attr.
2306 (add_clobber_q_pred): Likewise.
2307 (maddhisi4): Change to define_expand. Split into mult and add if
2308 ARM_Q_BIT_READ.
2309 (arm_maddhisi4): New define_insn.
2310 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
2311 (*maddhisi4tt): Likewise.
2312 (arm_ssat): New define_expand.
2313 (arm_usat): Likewise.
2314 (arm_get_apsr): New define_insn.
2315 (arm_set_apsr): Likewise.
2316 (arm_saturation_occurred): New define_expand.
2317 (arm_set_saturation): Likewise.
2318 (*satsi_<SAT:code>): Rename to...
2319 (satsi_<SAT:code><add_clobber_q_name>): ... This.
2320 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
2321 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
2322 (CALL_USED_REGISTERS): Mark apsrq.
2323 (FIRST_PSEUDO_REGISTER): Update value.
2324 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
2325 (machine_function): Add q_bit_access.
2326 (ARM_Q_BIT_READ): Define.
2327 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
2328 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
2329 operand_reg_set.
2330 (arm_q_bit_access): Define.
2331 * config/arm/arm-builtins.c: Include stringpool.h.
2332 (arm_sat_binop_imm_qualifiers,
2333 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
2334 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
2335 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
2336 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
2337 SET_SAT_QUALIFIERS): Likewise.
2338 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
2339 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
2340 Handle 0 argument expander.
2341 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
2342 (arm_check_builtin_call): Define.
2343 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
2344 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
2345 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
2346 (arm_q_bit_access): Likewise.
2347 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
2348 __saturation_occurred, __set_saturation_occurred): Define.
2349 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
2350 saturation_occurred, set_saturation_occurred.
2351 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
2352 (UNSPEC_APSR_READ): Likewise.
2353 (VUNSPEC_APSR_WRITE): Likewise.
2354 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
2355 (*arm_ssadd<mode>3): New define_insn.
2356 (sssub<mode>3): Convert to define_expand.
2357 (*arm_sssub<mode>3): New define_insn.
2358 (ssmulsa3): Convert to define_expand.
2359 (*arm_ssmulsa3): New define_insn.
2360 (usmulusa3): Convert to define_expand.
2361 (*arm_usmulusa3): New define_insn.
2362 (ssmulha3): FAIL if ARM_Q_BIT_READ.
2363 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
2364 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
2365
2366 2019-11-07 Martin Liska <mliska@suse.cz>
2367
2368 PR c++/92354
2369 * cgraph.c (delete_function_version): Clear global
2370 variable version_info_node if equal to deleted
2371 function.
2372
2373 2019-11-07 Martin Liska <mliska@suse.cz>
2374
2375 * fold-const.c (operand_compare::operand_equal_p): Add comparison
2376 of CONSTRUCTOR_NO_CLEARING.
2377 (operand_compare::hash_operand): Likewise.
2378
2379 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
2380
2381 Support 64-bit double and 64-bit long double configurations.
2382
2383 PR target/92055
2384 * config.gcc (tm_defines) [avr]: Set from --with-double=,
2385 --with-long-double=.
2386 * config/avr/t-multilib: Remove.
2387 * config/avr/t-avr: Output of genmultilib.awk is now fully
2388 dynamically generated and no more part of the repo.
2389 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
2390 Pass them down to...
2391 * config/avr/genmultilib.awk: ...here and handle them.
2392 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
2393 (-mlong-double=, avr_long_double). New option and var.
2394 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
2395 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
2396 Set default as requested by --with-double=
2397 (TARGET_HANDLE_OPTION): Define to this...
2398 (avr_handle_option): ...new hook worker.
2399 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
2400 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
2401 (avr_double_lib): New proto for spec function.
2402 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
2403 (DRIVER_SELF_SPECS): Call %:double-lib.
2404 * config/avr/avr.c (avr_option_override): Assert
2405 sizeof(long double) >= sizeof(double) for the target.
2406 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
2407 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
2408 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
2409 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
2410 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
2411 New built-in define depending on --with-double=, --with-long-double=.
2412 * config/avr/driver-avr.c (avr_double_lib): New spec function.
2413 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
2414 * doc/install.texi (Cross-Compiler-Specific Options)
2415 <--with-double=, --with-long-double=>: Doc.
2416
2417 2019-11-07 Richard Biener <rguenther@suse.de>
2418
2419 * dbgcnt.def (gimple_unroll): New.
2420 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
2421 gimple_unroll debug counter before applying transform.
2422 (try_peel_loop): Likewise.
2423
2424 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
2425
2426 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
2427 frame pointer in multiple registers.
2428 (ira_setup_eliminable_regset): Setup eliminable_regset,
2429 ira_no_alloc_regs and regs_ever_live for frame pointer in
2430 multiple registers.
2431
2432 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
2433
2434 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
2435 V2DI modes.
2436
2437 2019-11-06 Jan Hubicka <jh@suse.cz>
2438
2439 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
2440 allocations.
2441 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
2442 Do not silently ignore summary corruptions.
2443
2444 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2445
2446 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
2447 the epilogue if there are peeled iterations for it to handle.
2448
2449 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2450
2451 * config/arc/arc.c (arc_split_ior): Add asserts.
2452 (arc_split_mov_const): Likewise.
2453 (arc_check_ior_const): Do not match known short immediate values.
2454 * config/arc/arc.md (movsi): Don't split predicated instructions
2455 (iorsi): Likewise.
2456
2457 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2458
2459 * config/arc/arc.opt (mea): Update help string.
2460 * doc/invoke.texi(ARC): Update mea option info.
2461
2462 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
2463
2464 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
2465 (zero_extendqisi2_ac): Likewise.
2466 (zero_extendhisi2_i): Likewise.
2467 (extendqihi2_i): Likewise.
2468 (extendqisi2_ac): Likewise.
2469 (extendhisi2_i): Likewise.
2470
2471 2019-11-06 Richard Biener <rguenther@suse.de>
2472
2473 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
2474 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
2475 Simplify single_defuse_cycle condition.
2476
2477 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2478
2479 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
2480 epilogue loop, make sure that the VF is small enough or that
2481 the epilogue loop can be fully-masked.
2482
2483 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
2484
2485 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
2486 loop when we've finished, rather than returning directly from
2487 the loop. Use a local variable to track whether we're still
2488 searching for the preferred simdlen. Make vect_epilogues
2489 record whether the next iteration should try to treat the
2490 loop as an epilogue.
2491
2492 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
2493
2494 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
2495 __arc_hard_float__, __ARC_HARD_FLOAT__,
2496 __arc_soft_float__, __ARC_SOFT_FLOAT__
2497
2498 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
2499
2500 PR tree-optimization/92317
2501 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
2502 update phi's with constant phi arguments.
2503
2504 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
2505 Alexandre Oliva <oliva@adacore.com>
2506
2507 * common.opt (-fcallgraph-info[=]): New option.
2508 * doc/invoke.texi (Developer options): Document it.
2509 * opts.c (common_handle_option): Handle it.
2510 * builtins.c (expand_builtin_alloca): Record allocation if
2511 -fcallgraph-info=da.
2512 * calls.c (expand_call): If -fcallgraph-info, record the call.
2513 (emit_library_call_value_1): Likewise.
2514 * flag-types.h (enum callgraph_info_type): New type.
2515 * explow.c: Include stringpool.h.
2516 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
2517 * function.c (allocate_stack_usage_info): New.
2518 (allocate_struct_function): Call it for -fcallgraph-info.
2519 (prepare_function_start): Call it otherwise.
2520 (record_final_call, record_dynamic_alloc): New.
2521 * function.h (struct callinfo_callee): New.
2522 (CALLEE_FROM_CGRAPH_P): New.
2523 (struct callinfo_dalloc): New.
2524 (struct stack_usage): Add callees and dallocs.
2525 (record_final_call, record_dynamic_alloc): Declare.
2526 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
2527 object if -fcallgraph-info=da.
2528 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
2529 * print-tree.h (print_decl_identifier): Declare.
2530 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
2531 * print-tree.c: Include print-tree.h.
2532 (print_decl_identifier): New function.
2533 * toplev.c: Include print-tree.h.
2534 (callgraph_info_file): New global variable.
2535 (callgraph_info_external_printed): Likewise.
2536 (output_stack_usage): Rename to...
2537 (output_stack_usage_1): ... this. Make it static, add cf
2538 parameter. If -fcallgraph-info=su, print stack usage to cf.
2539 If -fstack-usage, use print_decl_identifier for
2540 pretty-printing.
2541 (INDIRECT_CALL_NAME): New.
2542 (dump_final_node_vcg_start): New.
2543 (dump_final_callee_vcg, dump_final_node_vcg): New.
2544 (output_stack_usage): New.
2545 (lang_dependent_init): Open and start file if
2546 -fcallgraph-info. Allocated callgraph_info_external_printed.
2547 (finalize): If callgraph_info_file is not null, finish it,
2548 close it, and release callgraph_info_external_printed.
2549
2550 2019-11-06 Gergö Barany <gergo@codesourcery.com>
2551 Frederik Harwath <frederik@codesourcery.com>
2552 Thomas Schwinge <thomas@codesourcery.com>
2553
2554 * omp-low.c (struct omp_context): New fields
2555 local_reduction_clauses, outer_reduction_clauses.
2556 (new_omp_context): Initialize these.
2557 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
2558 (scan_omp_for): Check reduction clauses for incorrect nesting.
2559
2560 2019-11-06 Jakub Jelinek <jakub@redhat.com>
2561
2562 PR inline-asm/92352
2563 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
2564 operands with non-memory constraints.
2565
2566 2019-11-05 Martin Sebor <msebor@redhat.com>
2567
2568 PR tree-optimization/92373
2569 * tree.c (component_ref_size): Only consider initializers of objects
2570 of matching struct types.
2571 Return null for instances of interior zero-length arrays.
2572
2573 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
2574
2575 * doc/md.texi (Insn Splitting): Fix combiner documentation.
2576
2577 2019-11-05 Jason Merrill <jason@redhat.com>
2578
2579 PR tree-optimization/91825
2580 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
2581
2582 2019-11-05 Jim Wilson <jimw@sifive.com>
2583
2584 PR middle-end/92263
2585 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
2586 optimize_insn_for_speed_p is true.
2587
2588 2019-11-05 Martin Sebor <msebor@redhat.com>
2589
2590 PR middle-end/92333
2591 PR middle-end/82608
2592 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
2593 size.
2594 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
2595 name and location for a temporary variable.
2596
2597 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2598
2599 * tree-vrp.c (value_range::value_range): Fix whitespace.
2600 (defined_ranges_p): Same.
2601 (range_fold_binary_symbolics_p): Same.
2602 (value_range::intersect_helper): Same.
2603 (value_range::union_helper): Same.
2604 * tree-vrp.h (range_fold_binary_expr): Same.
2605
2606 2019-11-04 Martin Sebor <msebor@redhat.com>
2607
2608 PR middle-end/92341
2609 PR middle-end/82612
2610 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
2611 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
2612 of message printed in a warning for empty arrays.
2613 (vrp_prop::check_mem_ref): Also handle function parameters and
2614 empty arrays.
2615
2616 2019-11-05 Richard Biener <rguenther@suse.de>
2617
2618 PR tree-optimization/92371
2619 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
2620 on the original stmt of live stmts in the chain.
2621 (vectorizable_live_operation): Look at the original stmt when
2622 checking STMT_VINFO_REDUC_DEF.
2623
2624 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2625
2626 * gimple-fold.c, gimple-loop-versioning.cc,
2627 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
2628 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
2629 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
2630 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
2631 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
2632 value_range_equiv, and value_range_base to value_range.
2633
2634 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2635
2636 * expr.c (build_personality_function): Fix generated type to
2637 match actual personality functions.
2638
2639 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
2640
2641 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
2642 enough bytes for the NULL character.
2643
2644 2019-11-05 Richard Biener <rguenther@suse.de>
2645
2646 PR tree-optimization/92280
2647 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
2648 had a single use do not create a new CTOR.
2649 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
2650 BIT_FIELD_REF of a CTOR via GENERIC.
2651
2652 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
2653
2654 * config/s390/s390.c (s390_vector_alignment): Check if the value
2655 fits into uhwi before using it.
2656
2657 2019-11-05 Martin Liska <mliska@suse.cz>
2658
2659 * symbol-summary.h: Use ggc_delete.
2660
2661 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
2662
2663 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
2664 Change vec_perm field to 10.
2665
2666 2019-11-05 Arnaud Charlet <charlet@adacore.com>
2667
2668 * doc/install.texi: Further fix syntax for html generation.
2669
2670 2019-11-05 Martin Liska <mliska@suse.cz>
2671
2672 * symbol-summary.h: Rename allocator to m_allocator and
2673 add comment.
2674
2675 2019-11-05 Richard Biener <rguenther@suse.de>
2676
2677 PR tree-optimization/92324
2678 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
2679 all signed or unsigned operations.
2680
2681 2019-11-05 Jan Hubicka <jh@suse.cz>
2682
2683 * hsa-brig.c: Include alloc-pool.h
2684 * hsa-dump.c: Likewise.
2685 * hsa-gen.c: Likewise.
2686 * hse-regalloc.c: Likewise.
2687 * ipa-hsa.c: Likewise.
2688 * ipa-predicate.c: Likewise.
2689 * ipa-reference.c: Likewise.
2690 * ipa-sra.c: Likewise.
2691 * omp-expand.c: Likewise.
2692 * omp-general.c: Likewise.
2693 * omp-low.c: Likewise.
2694 * sumbol-summary.h (function_summary_base): Add allocator.
2695 (function_summary<T *>::function_summary): Update construction.
2696 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
2697 (call_summary_base): Add allcator.
2698 (call_summary<T *>::call_summary): Update construction.
2699 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
2700
2701 2019-11-05 Jakub Jelinek <jakub@redhat.com>
2702
2703 PR tree-optimization/91945
2704 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
2705 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
2706 Formatting fix.
2707
2708 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2709
2710 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
2711 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
2712 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
2713 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
2714 (vrp_set_zero_nonzero_bits): Move to...
2715 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
2716 (vr_values::simplify_bit_ops_using_ranges): Rename
2717 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
2718
2719 2019-11-05 Martin Liska <mliska@suse.cz>
2720
2721 PR c++/92339
2722 * fold-const.c (operand_compare::hash_operand): Remove
2723 FIELD_DECL handling.
2724
2725 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2726
2727 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
2728 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
2729 static.
2730
2731 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
2732
2733 * tree-vrp.c (value_range_base::operator==): Use equal_p to
2734 properly handle symbolics.
2735 (range_compatible_p): Remove.
2736
2737 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
2738
2739 * common.opt (-fabi-version): Document =14.
2740 * doc/invoke.texi (C++ Dialect Options): Likewise.
2741
2742 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2743
2744 * tree-vrp.c (value_range_base::set): Do not special case pointers.
2745
2746 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
2747
2748 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
2749 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
2750 gcn_omp_device_kind_arch_isa.
2751 * config/gcn/t-omp-device: New file.
2752 * configure.ac: Support gcn for omp_device_property.
2753 * configure: Regenerate.
2754
2755 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2756
2757 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
2758 (vrp_val_max): Same.
2759 (vrp_val_is_min): Same.
2760 (vrp_val_is_max): Same.
2761 (value_range_base::nonzero_p): Remove last argument to
2762 vrp_val_is_max.
2763 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
2764 (vrp_val_max): Same.
2765 (vrp_val_is_min): Same.
2766 (vrp_val_is_max): Same.
2767 (value_range_base::set_varying): Remove last argument to vrp_val*.
2768 (value_range_base::dump): Same.
2769 (value_range_base::set): Same.
2770 (value_range_base::normalize_symbolics): Same.
2771 (value_range_base::num_pairs): Same.
2772 (value_range_base::lower_bound): Same.
2773 (value_range_base::upper_bound): Same.
2774 (ranges_from_anti_range): Remove handle_pointers argument.
2775 (value_range_base::singleton_p): Remove last argument to
2776 ranges_from_anti_range.
2777
2778 2019-11-04 Jan Hubicka <jh@suse.cz>
2779
2780 * ipa-reference.c (init_function_info): Initialize
2781 info->global.statics_read.
2782
2783 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2784
2785 * tree-vrp.c (value_range_base::invert): Use constructors to build
2786 range.
2787
2788 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2789
2790 * tree-vrp.c (range_int_cst_singleton_p): Remove.
2791 * tree-vrp.h (range_int_cst_singleton_p): Remove.
2792
2793 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2794
2795 * tree-vrp.c (value_range_base::normalize_addresses): Handle
2796 VR_UNDEFINED.
2797
2798 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
2799
2800 * tree-vrp.c (dump_assert_info): New.
2801 (dump_asserts_info): New.
2802
2803 2019-11-04 Jan Hubicka <jh@suse.cz>
2804
2805 * ipa-inline-transform.c: Include ipa-utils.h
2806 (inline_call): Set thunk_expansion flag.
2807 * ipa-utils.h (thunk_expansion): Declare.
2808 * ipa-devirt.c (thunk_expansion): New global var.
2809 (devirt_node_removal_hook): Do not invalidate cache while
2810 doing thunk expansion.
2811
2812 2019-11-04 Tamar Christina <tamar.christina@arm.com>
2813
2814 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
2815
2816 2019-11-04 Martin Sebor <msebor@redhat.com>
2817
2818 PR tree-optimization/92349
2819 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
2820 memebers have constant sizes.
2821
2822 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
2823
2824 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
2825 parameter.
2826 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
2827 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
2828 vect_analyze_loop.
2829
2830 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
2831
2832 * expr.c (store_constructor): Modify to handle single element vectors.
2833 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
2834 constructors.
2835 (vect_slp_check_for_constructors): New function.
2836 (vect_slp_analyze_bb_1): Call new function to check for vector
2837 constructors.
2838 (vectorize_slp_instance_root_stmt): New function.
2839 (vect_schedule_slp): Call new function to vectorize root stmt of vector
2840 constructors.
2841 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
2842
2843 2019-11-04 Richard Biener <rguenther@suse.de>
2844
2845 PR tree-optimization/92345
2846 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
2847 we produced a reduction chain.
2848 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
2849 LOOP_VINFO_REDUCTIONS.
2850
2851 2019-11-04 Jan Hubicka <jh@suse.cz>
2852
2853 * cgraphclones.c (cgraph_node::create_version_clone): Do not
2854 duplicate summaries.
2855 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
2856 first.
2857 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
2858 access call summaries.
2859 (dump_ipa_call_summary): Be ready for missing edge summaries.
2860 (analyze_function_body): Use get instead of get_create to access
2861 edge summary.
2862 (estimate_calls_size_and_time): Do not access summaries of
2863 inlined edges; sanity check they are missing.
2864 (ipa_call_context::estimate_size_and_time): Use get instead
2865 of get_create to access node summary.
2866 (inline_update_callee_summaries): Do not update depth of
2867 inlined edge.
2868 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
2869 growth caches.
2870 (ipa_merge_fn_summary_after_inlining): Use get instead
2871 of get_create.
2872 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
2873 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
2874 fast summary.
2875 (initialize_growth_caches): Update.
2876 (do_estimate_edge_time): Remove redundant copy of context.
2877 (ipa_remove_from_growth_caches): New function.
2878 * ipa-inline.c (flatten_function): Update overall summary
2879 only when optimizing.
2880 (inline_to_all_callers): Update overall summary of function
2881 inlined to.
2882 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
2883 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
2884 to false.
2885
2886 2019-11-04 Richard Biener <rguenther@suse.de>
2887
2888 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
2889 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
2890
2891 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
2892
2893 * ggc-common.c: Include system.h before malloc.h.
2894
2895 2019-11-04 Alexandre Oliva <oliva@adacore.com>
2896
2897 * configure.ac: Pass --enable-obsolete=* and
2898 --enable-option-checking=* down to build configure, and fail
2899 if it fails. AC_SUBST HAVE_AUTO_BUILD.
2900 * configure: Rebuild.
2901 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
2902 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
2903
2904 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2905
2906 * config.in: Regenerate.
2907 * config/msp430/msp430.c (msp430_option_override): Emit an error if
2908 -mtiny-printf is used without GCC being configured with
2909 --enable-newlib-nano-formatted-io.
2910 * config/msp430/msp430.h (LINK_SPEC): Pass
2911 "--wrap puts --wrap printf" when -mtiny-printf is used.
2912 * config/msp430/msp430.opt: Document -mtiny-printf.
2913 * configure: Regenerate.
2914 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
2915 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
2916 --enable-newlib-nano-formatted-io is passed.
2917 * doc/invoke.texi: Document -mtiny-printf.
2918
2919 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2920
2921 * configure: Regenerate.
2922
2923 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2924
2925 * config/msp430/driver-msp430.c
2926 (msp430_get_linker_devices_include_path): New spec function.
2927 * config/msp430/msp430-devices.c (msp430_dirname): New function.
2928 (extract_devices_dir_from_exec_prefix): New function.
2929 (extract_devices_dir_from_collect_gcc): New function.
2930 (msp430_check_env_var_for_devices): New function.
2931 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
2932 (parse_devices_csv): Call msp430_check_env_var_for_devices if
2933 devices.csv was not found using other methods.
2934 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
2935 New prototype.
2936 (msp430_dirname): Likewise.
2937 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
2938 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
2939 msp430_get_linker_devices_include_path.
2940 (TARGET_EXTRA_PRE_INCLUDES): Define.
2941 * doc/invoke.texi: Document new ways of searching for support files.
2942
2943 2019-11-04 Richard Biener <rguenther@suse.de>
2944
2945 PR tree-optimization/92301
2946 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
2947 as required by epilogue generation
2948
2949 2019-11-04 Martin Liska <mliska@suse.cz>
2950
2951 PR ipa/92304
2952 * fold-const.c (operand_compare::hash_operand): Fix field
2953 hashing of CONSTRUCTOR.
2954
2955 2019-11-04 Martin Liska <mliska@suse.cz>
2956
2957 * ggc.h (ggc_delete): New function.
2958 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
2959 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
2960 (ipa_free_all_node_params): Likewise.
2961 * ipa-sra.c (ipa_sra_analysis): Likewise.
2962
2963 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
2964
2965 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
2966 set_switch_stmt_execution_predicate, compute_bb_predicates,
2967 will_be_nonconstant_expr_predicate,
2968 phi_result_unknown_predicate,
2969 analyze_function_body): Pass arround params summary.
2970 (ipa_call_context::duplicate_from): New comment;
2971 only duplicate useful values.
2972 (ipa_call_context::equal_to): Only compare useful values.
2973 (remap_edge_summaries): Pass params_summary.
2974 (remap_hint_predicate): Likewise.
2975 (ipa_merge_fn_summary_after_inlining): Likewise.
2976 (inline_read_section): Initialize params summary used flags.
2977 * ipa-predicate.c (predicate::remap_after_inlining): Pass
2978 around param_summary.
2979 (add_condition): Initialized used params summary flags.
2980 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
2981 (inline_param_summary::useless_p): New predicate.
2982 (remap_after_inlining, add_condition): Update prototype
2983 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
2984 move_cost.
2985 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
2986 summaries.
2987 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
2988 (ipa_analyze_virtual_call_uses): Likewise.
2989 (update_indirect_edges_after_inlining): Update param summaries.
2990 (ipa_print_node_params): Print used flags.
2991 (ipa_read_indirect_edge_info): Update param summareis.
2992 * ipa-prop.h (ipa_param_descriptor): Add
2993 used_by_ipa_predicates, used_by_indirect_call
2994 and used_by_polymorphic_call.
2995 (ipa_set_param_used_by_ipa_predicates,
2996 ipa_set_param_used_by_indirect_call,
2997 ipa_set_param_used_by_polymorphic_call,
2998 ipa_is_param_used_by_ipa_predicates,
2999 ipa_is_param_used_by_indirect_call,
3000 ipa_is_param_used_by_polymorphic_call): New inline functions.
3001
3002 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3003
3004 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3005 member function.
3006 (ipa_call_context::release): Add ALL parameter.
3007 (ipa_call_context::equal_to): New member function.
3008 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3009 duplicate_form, release, equal_to and exists_p member functoins.
3010 * ipa-inline-analysis.c (node_context_cache_entry): New
3011 class.
3012 (node_context_summary): Likewise.
3013 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
3014 node_context_clear): New static vars.
3015 (initialize_growth_caches): New function.
3016 (free_growth_caches): Also delete node_context_cache; output stats.
3017 (do_estimate_edge_time): Cache contexts.
3018 (reset_node_cache): New function.
3019 * ipa-inline.c (reset_edge_caches): Reset also node cache.
3020 (inline_small_functions): Initialize growth caches.
3021 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
3022 Declare.
3023 * ipa-predicate.h (inline_param_summary::equal_to): New.
3024 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
3025 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
3026 (ipa_agg_jump_function): Implement equal_to member function.
3027
3028 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3029
3030 * ipa-fnsummary.c (inline_read_section): Set vector size
3031 ahead of time.
3032
3033 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3034
3035 * ipa-fnsummary.c (ipa_call_context): New constructor.
3036 (estimate_node_size_and_time): Turn to ...
3037 (ipa_call_context::estimate_size_and_time): ... this one.
3038 (ipa_call_context::release): New.
3039 * ipa-fnsummary.h (ipa_call_context): New class.
3040 (estimate_node_size_and_time): Remove.
3041 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
3042 do_estimate_edge_hints): Update.
3043
3044 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3045
3046 * config.in: Regenerate.
3047 * configure: Regenerate.
3048 * configure.ac: Check for mallinfo.
3049 * ggc-common.c: Include malloc.h if available;
3050 include options.h
3051 (report_heap_memory_use): New functoin.
3052 * ggc-page.c (ggc_grow): Do not print "start".
3053 * ggc.h (report_heap_memory_use): Declare.
3054 * pases.c (execute_one_pass): Report memory after IPA passes.
3055 (ipa_read_summaries_1): Likewise.
3056 (ipa_read_optimization_summaries_1): Likewise.
3057
3058 2019-11-02 Jakub Jelinek <jakub@redhat.com>
3059
3060 * gimplify.h (omp_construct_selector_matches): Change return
3061 type to int, add a new SCORES argument.
3062 * gimplify.c (omp_construct_selector_matches): Likewise. If
3063 SCORES is non-NULL, compute scores of each construct.
3064 * omp-general.h (omp_get_context_selector): Declare.
3065 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
3066 Adjust omp_construct_selector_matches callers.
3067 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
3068 (omp_context_compute_score): New function.
3069 (omp_resolve_declare_variant): Compute scores and decide based on
3070 that.
3071
3072 PR bootstrap/92314
3073 * configure.ac: Don't look for omp-device-properties files from
3074 installed offloading compilers. Instead add tmake_file snippets
3075 for configured offloading targets and use files they generate.
3076 * Makefile.in (install): Don't depend on
3077 install-omp-device-properties.
3078 (install-omp-device-properties): Remove goal.
3079 * config/i386/t-omp-device: New file.
3080 * config/i386/t-intelmic (omp-device-properties): Remove goal.
3081 * config/nvptx/t-omp-device: New file.
3082 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
3083 * configure: Regenerated.
3084
3085 * omp-general.h (omp_context_selector_set_compare): Declare.
3086 * omp-general.c (omp_construct_simd_compare,
3087 omp_context_selector_props_compare, omp_context_selector_set_compare,
3088 omp_context_selector_compare): New functions.
3089 (omp_resolve_declare_variant): Prune variants that are strict subset
3090 of another variant.
3091
3092 2019-11-01 Martin Sebor <msebor@redhat.com>
3093
3094 PR middle-end/91679
3095 PR middle-end/91647
3096 PR middle-end/91463
3097 PR middle-end/92312
3098 * doc/invoke.texi (-Wzero-length-bounds): Document.
3099 * gimple-match-head.c (try_conditional_simplification): Use memcpy
3100 instead of a hand-rolled loop to avoid PR 92323.
3101 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
3102 with initializers.
3103 (vrp_prop::check_mem_ref): Handle declared struct objects.
3104 * tree.c (last_field): New function.
3105 (array_at_struct_end_p): Handle MEM_REF.
3106 (get_initializer_for): New helper.
3107 (component_ref_size): Add argument. Rename locals. Call
3108 get_initializer_for instead of fold_ctor_reference. Correct handling
3109 of flexible array members.
3110 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
3111
3112 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3113
3114 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
3115 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
3116 UNSPEC_VSX_CVSPUXDS): Remove.
3117 (vsx_xvcvspdp): New define_expand, old define_insn split to...
3118 (vsx_xvcvspdp_be): ... this. New. And...
3119 (vsx_xvcvspdp_le): ... this. New.
3120 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
3121 (vsx_xvcv<su>xwdp_be): ... this. New. And...
3122 (vsx_xvcv<su>xwdp_le): ... this. New.
3123 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
3124 (vsx_xvcvsp<su>xds_be): ... this. New. And...
3125 (vsx_xvcvsp<su>xds_le): ... this. New.
3126
3127 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3128
3129 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
3130 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
3131 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
3132 UNSPEC_VSX_XVCVSPSXWS): Remove.
3133 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
3134 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
3135
3136 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3137
3138 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
3139 (UNSPEC_VSX_XVCDPSP): Remove.
3140 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
3141 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
3142
3143 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
3144
3145 * hooks.c (hook_tree_tree_bool_null): New.
3146 * hooks.h (hook_tree_tree_bool_null): Declare.
3147 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
3148 (LANG_HOOKS_DECLS): Add it.
3149 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
3150 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
3151 (lower_omp_target): Handle Fortran array with descriptor in
3152 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
3153
3154 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
3155
3156 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3157 Assert that the type we store in abi_vector_types is its own
3158 main variant.
3159 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
3160
3161 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3162
3163 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
3164 from a CONST_INT address when TARGET_THUMB2.
3165
3166 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3167
3168 * config/arm/arm.md (add_not_cin): New insn.
3169 (add_not_shift_cin): Likewise.
3170
3171 2019-10-31 Martin Liska <mliska@suse.cz>
3172
3173 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
3174 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
3175 and compare_memory_operand.
3176
3177 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3178
3179 * configure.ac: Compute and substitute omp_device_properties and
3180 omp_device_property_deps.
3181 * Makefile.in (generated_files): Add omp-device-properties.h.
3182 (omp-general.o): Depend on omp-device-properties.h.
3183 (omp_device_properties): New make variable.
3184 (omp-device-properties.h, s-omp-device-properties-h,
3185 install-omp-device-properties): New goals.
3186 (install): Depend on install-omp-device-properties for accelerators.
3187 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3188 * target.h (enum omp_device_kind_arch_isa): New enum.
3189 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3190 documentation.
3191 * omp-general.c: Include omp-device-properties.h.
3192 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3193 colon instead of comma.
3194 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3195 functions.
3196 (omp_context_selector_matches): Implement device set arch/isa
3197 selectors, improve device set kind selector handling.
3198 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3199 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3200 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3201 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3202 ix86_omp_device_kind_arch_isa.
3203 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3204 definition from ix86_target_string to file scope.
3205 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3206 to file scope.
3207 (ix86_omp_device_kind_arch_isa): New function.
3208 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3209 isa_opts definitions to file scope.
3210 * config/i386/t-intelmic (omp-device-properties): New goal.
3211 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3212 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3213 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3214 nvptx_omp_device_kind_arch_isa.
3215 * configure: Regenerate.
3216 * doc/tm.texi: Regenerate.
3217
3218 PR middle-end/92231
3219 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3220 DECL_BUILT_IN in comment. Remove redundant ()s around return
3221 argument.
3222 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3223 before calling fndecl_built_in_p.
3224 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3225 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3226 fndecl_built_in_p on it.
3227
3228 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
3229
3230 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
3231
3232 2019-10-31 Martin Liska <mliska@suse.cz>
3233
3234 * config/arm/arm.c (arm_get_pcs_model): Remove usage
3235 of cgraph_local_info and use local_info_node instead.
3236 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
3237 (bfin_function_ok_for_sibcall): Likewise.
3238 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
3239 (must_reload_pic_reg_p): Likewise.
3240
3241 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3242
3243 PR c++/90947
3244 * tree.h (type_initializer_zero_p): Remove.
3245 * tree.c (type_initializer_zero_p): Remove.
3246
3247 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3248
3249 * doc/invoke.texi (-Wshadow, -Wshadow=global
3250 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
3251
3252 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
3253
3254 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
3255 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
3256 and 'target exit data'.
3257
3258 2019-10-30 Martin Jambor <mjambor@suse.cz>
3259
3260 ipa/92278
3261 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
3262 availability comparison.
3263
3264 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3265
3266 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
3267 calls to __mspabi_mpy* functions.
3268 * config/msp430/msp430.md (mulhisi3): New define_expand.
3269 (umulhisi3): New define_expand.
3270 (*mulhisi3_inline): Use old mulhisi3 define_insn.
3271 (*umulhisi3_inline): Use old umulhisi3 define_insn.
3272
3273 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3274
3275 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
3276 (msp430_check_plus_not_high_mem): New.
3277 (msp430_op_not_in_high_mem): Use new functions to check if the operand
3278 might be in low memory.
3279 Indicate that a 16-bit absolute address is in lower memory.
3280
3281 2019-10-30 Martin Jambor <mjambor@suse.cz>
3282
3283 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
3284 ultimate_alias_target.
3285
3286 2019-10-30 Richard Biener <rguenther@suse.de>
3287
3288 PR tree-optimization/92275
3289 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
3290 Copy all loop-closed PHIs.
3291
3292 2019-10-30 Martin Liska <mliska@suse.cz>
3293
3294 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
3295 const_tree as function argument.
3296 (func_checker::compare_decl): Likewise.
3297 (func_checker::operand_equal_p): Likewise.
3298 (func_checker::compare_variable_decl): Likewise.
3299 (func_checker::parse_labels): Likewise.
3300 * ipa-icf-gimple.h: Likewise.
3301
3302 2019-10-30 Martin Liska <mliska@suse.cz>
3303
3304 * ipa-icf-gimple.c (func_checker::compatible_types_p):
3305 Do not compare alias sets. It's handled by operand_equal_p.
3306
3307 2019-10-30 Martin Liska <mliska@suse.cz>
3308
3309 * ipa-icf-gimple.c (func_checker::func_checker): Do not
3310 initialize m_compare_polymorphic.
3311 (func_checker::compare_decl): Do not compare polymorphic types.
3312 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
3313 * ipa-icf.c (sem_function::equals_private): Do not call
3314 compare_polymorphic_p.
3315
3316 2019-10-30 Martin Liska <mliska@suse.cz>
3317
3318 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
3319 compare_operand.
3320 (func_checker::compare_memory_operand): Remove.
3321 (func_checker::compare_cst_or_decl): Remove.
3322 (func_checker::operand_equal_valueize): Do not handle
3323 FIELD_DECL.
3324 (func_checker::compare_gimple_call): Call compare_operand.
3325 (func_checker::compare_gimple_assign): Likewise.
3326 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
3327 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
3328 * ipa-icf.h (icf_handled_component_p): Remove.
3329
3330 2019-10-30 Martin Liska <mliska@suse.cz>
3331
3332 * ipa-icf-gimple.c (func_checker::hash_operand): New.
3333 (func_checker::compare_cst_or_decl): Remove handling
3334 of FIELD_DECL.
3335 (func_checker::compare_operand): Transform to ...
3336 (func_checker::operand_equal_p): ... this.
3337 * ipa-icf-gimple.h (class func_checker): Add
3338 operand_equal_p and hash_operand.
3339 * ipa-icf.c (sem_function::equals_private): Fix
3340 pushing and popping of cfun.
3341
3342 2019-10-30 Martin Liska <mliska@suse.cz>
3343
3344 * fold-const.c (operand_equal_p): Move to ...
3345 (operand_compare::operand_equal_p): ... here.
3346 (operand_compare::verify_hash_value): New.
3347 (add_expr): Move to ...
3348 (operand_compare::hash_operand): ... here.
3349 * fold-const.h (operand_equal_p): Move to the class.
3350 (class operand_compare): New.
3351 * tree.c (add_expr): Remove.
3352
3353 2019-10-30 Martin Liska <mliska@suse.cz>
3354
3355 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
3356 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
3357
3358 2019-10-30 Martin Liska <mliska@suse.cz>
3359
3360 PR lto/91393
3361 PR lto/88220
3362 * cgraph.c (cgraph_node::get_create): Overwrite node->order
3363 from a first_clone in order to get proper LTO section
3364 in LTO stream.
3365 (cgraph_node::get_untransformed_body):
3366 Use lto_get_section_data where symtab_node::order
3367 must be provided.
3368 * cgraphclones.c (cgraph_node::find_replacement):
3369 Update also symbol order.
3370 * ipa-fnsummary.c (ipa_fn_summary_read):
3371 Use new function lto_get_summary_section_data.
3372 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
3373 * ipa-icf.c (sem_item_optimizer::read_summary):
3374 Likewise.
3375 * ipa-prop.c (ipa_prop_read_jump_functions):
3376 Likewise.
3377 (ipcp_read_transformation_summaries): Likewise.
3378 * ipa-sra.c (ipa_sra_read_summary): Likewise.
3379 * lto-cgraph.c (input_node): Add also order_base.
3380 (input_varpool_node): Likewise.
3381 (input_cgraph_1): Assign the order_base.
3382 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
3383 * lto-opts.c (lto_write_options): Pass new argument.
3384 * lto-section-in.c (lto_get_section_data): Add new argumente order.
3385 (lto_get_summary_section_data): New.
3386 (lto_get_raw_section_data): Add order argument.
3387 (lto_create_simple_input_block): Likewise.
3388 * lto-section-out.c (lto_destroy_simple_output_block):
3389 Likewise.
3390 * lto-streamer-in.c (lto_input_toplevel_asms):
3391 Use lto_get_summary_section_data.
3392 (lto_input_mode_table): Likewise.
3393 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
3394 (lto_output_toplevel_asms): Pass new argument.
3395 (copy_function_or_variable): Likewise.
3396 (produce_lto_section):Likewise.
3397 (produce_symtab): Likewise.
3398 (lto_write_mode_table): Likewise.
3399 (produce_asm_for_decls): Likewise.
3400 * lto-streamer.c (lto_get_section_name): Concat symbol name
3401 and symbol order.
3402 * lto-streamer.h (lto_get_section_data): Add order argument.
3403 (lto_get_summary_section_data): New.
3404 (lto_get_raw_section_data): Add order argument.
3405 (lto_get_section_name): Likewise.
3406 * varpool.c (varpool_node::get_constructor): Pass order argument.
3407
3408 2019-10-30 Jakub Jelinek <jakub@redhat.com>
3409
3410 PR tree-optimization/92262
3411 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
3412 ubase or cbase here.
3413 (remove_unused_ivs): Unshare comp before using it.
3414
3415 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
3416
3417 * ipa-prop.c (update_jump_functions_after_inlining):
3418 Watch for missing summaries.
3419
3420 2019-10-30 Richard Biener <rguenther@suse.de>
3421
3422 PR tree-optimization/65930
3423 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
3424 chains also allow a leading and trailing conversion.
3425 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
3426 intermediate reduction chains.
3427 (vect_analyze_slp_instance): Likewise. Build a SLP
3428 node for a trailing conversion manually.
3429
3430 2019-10-30 Martin Liska <mliska@suse.cz>
3431
3432 * cgraph.c (cgraph_node::local_info): Transform to ...
3433 (cgraph_node::local_info_node): ... this.
3434 (cgraph_node::dump): Remove cgraph_local_info and
3435 put its fields directly into cgraph_node.
3436 (cgraph_node::get_availability): Likewise.
3437 (cgraph_node::make_local): Likewise.
3438 (cgraph_node::verify_node): Likewise.
3439 * cgraph.h (struct GTY): Likewise.
3440 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
3441 (duplicate_thunk_for_node): Likewise.
3442 (cgraph_node::create_clone): Likewise.
3443 (cgraph_node::create_virtual_clone): Likewise.
3444 (cgraph_node::create_version_clone): Likewise.
3445 * cgraphunit.c (cgraph_node::reset): Likewise.
3446 (cgraph_node::finalize_function): Likewise.
3447 (cgraph_node::add_new_function): Likewise.
3448 (analyze_functions): Likewise.
3449 * combine.c (setup_incoming_promotions): Likewise.
3450 * config/i386/i386.c (ix86_function_regparm): Likewise.
3451 (ix86_function_sseregparm): Likewise.
3452 (init_cumulative_args): Likewise.
3453 * ipa-cp.c (determine_versionability): Likewise.
3454 (count_callers): Likewise.
3455 (set_single_call_flag): Likewise.
3456 (initialize_node_lattices): Likewise.
3457 (estimate_local_effects): Likewise.
3458 (create_specialized_node): Likewise.
3459 (identify_dead_nodes): Likewise.
3460 * ipa-fnsummary.c (compute_fn_summary): Likewise.
3461 (ipa_fn_summary_generate): Likewise.
3462 * ipa-hsa.c (check_warn_node_versionable): Likewise.
3463 (process_hsa_functions): Likewise.
3464 * ipa-icf.c (set_local): Likewise.
3465 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
3466 * ipa-inline.c (speculation_useful_p): Likewise.
3467 * ipa-profile.c (ipa_propagate_frequency): Likewise.
3468 (ipa_profile): Likewise.
3469 * ipa-split.c (split_function): Likewise.
3470 (execute_split_functions): Likewise.
3471 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
3472 (ipa_sra_ipa_function_checks): Likewise.
3473 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3474 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3475 * lto-cgraph.c (lto_output_node): Likewise.
3476 (input_overwrite_node): Likewise.
3477 * multiple_target.c (expand_target_clones): Likewise.
3478 * omp-simd-clone.c (simd_clone_create): Likewise.
3479 * trans-mem.c (expand_call_tm): Likewise.
3480 (ipa_tm_mayenterirr_function): Likewise.
3481 (ipa_tm_diagnose_tm_safe): Likewise.
3482 (ipa_tm_diagnose_transaction): Likewise.
3483 (ipa_tm_create_version): Likewise.
3484 (ipa_tm_transform_calls_redirect): Likewise.
3485 (ipa_tm_execute): Likewise.
3486 * tree-inline.c (expand_call_inline): Likewise.
3487
3488 2019-10-29 Martin Liska <mliska@suse.cz>
3489
3490 * symbol-summary.h (function_summary): Pass memory location
3491 to underlaying hash_map (or vec).
3492 (V>::fast_function_summary): Likewise.
3493
3494 2019-10-29 Martin Liska <mliska@suse.cz>
3495
3496 * ggc.h (ggc_alloc_no_dtor): New function.
3497 * ipa-fnsummary.c (ipa_free_fn_summary): Call
3498 destructor and ggc_free.
3499 (ipa_free_size_summary): Call delete instead
3500 of release.
3501 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
3502 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
3503 (ipa_free_all_edge_args): Call destructor and ggc_free.
3504 (ipa_free_all_node_params): Likewise.
3505 (ipcp_free_transformation_sum): Likewise.
3506 * ipa-prop.h (ipa_check_create_node_params):
3507 Call new ggc_alloc_no_dtor.
3508 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
3509 (ipa_sra_analysis): Call destructor and ggc_free.
3510 Replace release with delete operator.
3511 * symbol-summary.h (release): Remove ..
3512 (V>::~fast_function_summary): and move logic here.
3513 Likewise for other classes.
3514
3515 2019-10-29 Richard Biener <rguenther@suse.de>
3516
3517 PR tree-optimization/92260
3518 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
3519 lane-reducing ops.
3520
3521 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
3522
3523 PR tree-optimization/88915
3524 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
3525 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
3526 and make the valueize function pointer also take a void pointer.
3527 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
3528 around vn_valueize, to call it without a context.
3529 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
3530 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
3531 (~_loop_vec_info): Release epilogue_vinfos.
3532 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
3533 number of iterations of epilogue.
3534 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
3535 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
3536 versioning threshold needed for main loop.
3537 (vect_analyze_loop): Likewise.
3538 (find_in_mapping): New helper function.
3539 (update_epilogue_loop_vinfo): New function.
3540 (vect_transform_loop): When vectorizing epilogues re-use analysis done
3541 on main loop and call update_epilogue_loop_vinfo to update it.
3542 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
3543 stmts on loop preheader edge.
3544 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
3545 we decided to vectorize epilogues. Update epilogues NITERS and
3546 construct ADVANCE to update epilogues data references where needed.
3547 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
3548 (vect_do_peeling, vect_update_inits_of_drs,
3549 determine_peel_for_niter, vect_analyze_loop): Add or update
3550 declarations.
3551 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
3552 created loop_vec_info's for epilogues when available. Otherwise analyse
3553 epilogue separately.
3554
3555 2019-10-29 Richard Biener <rguenther@suse.de>
3556
3557 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
3558 example.
3559
3560 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3561
3562 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
3563 index for the COND_EXPR from stmt_info rather than reduc_info.
3564
3565 2019-10-29 Richard Biener <rguenther@suse.de>
3566
3567 PR tree-optimization/65930
3568 * tree-vect-loop.c (check_reduction_path): Relax single-use
3569 check allowing out-of-loop uses.
3570 (vect_is_simple_reduction): SLP reduction chains cannot have
3571 intermediate stmts used outside of the loop.
3572 (vect_create_epilog_for_reduction): The adjustment might need
3573 to be converted.
3574 (vectorizable_reduction): Annotate live stmts of the reduction
3575 chain with STMT_VINFO_REDUC_DEF.
3576 * tree-vect-stms.c (process_use): Remove no longer true asserts.
3577
3578 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3579
3580 * calls.c (pass_by_reference): Leave the target to decide whether
3581 POLY_INT_CST-sized arguments should be passed by value or reference,
3582 rather than forcing them to be passed by reference.
3583 (must_pass_in_stack_var_size): Likewise.
3584 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
3585 V31_REGNUM to P15_REGNUM.
3586 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
3587 Take an extra "silent_p" parameter, defaulting to false.
3588 (aarch64_sve::svbool_type_p): Declare.
3589 (aarch64_sve::nvectors_if_data_type): Likewise.
3590 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
3591 (aarch64_frame::reg_offset): Turn into poly_int64s.
3592 (aarch64_frame::save_regs_size): Likewise.
3593 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
3594 (aarch64_frame::sve_callee_adjust): Likewise.
3595 (aarch64_frame::spare_reg_reg): Likewise.
3596 (ARM_PCS_SVE): New arm_pcs value.
3597 (CUMULATIVE_ARGS::aapcs_nprn): New field.
3598 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
3599 (CUMULATIVE_ARGS::silent_p): Likewise.
3600 (BITS_PER_SVE_PRED): New macro.
3601 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
3602 function. Reject aarch64_vector_pcs attributes on SVE functions.
3603 (aarch64_attribute_table): Use the above handler.
3604 (aarch64_sve_abi): New function.
3605 (aarch64_sve_argument_p): Likewise.
3606 (aarch64_returns_value_in_sve_regs_p): Likewise.
3607 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
3608 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
3609 descriptor for them.
3610 (aarch64_simd_decl_p): Delete.
3611 (aarch64_emit_cfi_for_reg_p): New function.
3612 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
3613 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
3614 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
3615 as partly clobbered for the SVE PCS.
3616 (aarch64_function_ok_for_sibcall): Check whether the two functions
3617 use the same ABI, rather than checking specifically for whether
3618 they're aarch64_vector_pcs functions.
3619 (aarch64_pass_by_reference): Raise an error for attempts to pass
3620 SVE arguments when SVE is disabled. Pass SVE arguments by reference
3621 if there are not enough free registers left, or if the argument is
3622 variadic.
3623 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
3624 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
3625 tuples in memory.
3626 (aarch64_layout_arg): Take a function_arg_info rather than
3627 individual properties. Handle SVE predicates, vectors and tuples.
3628 Raise an error if they are passed to unprototyped functions.
3629 (aarch64_function_arg): If the silent_p flag is set, suppress the
3630 usual error about using float registers without TARGET_FLOAT.
3631 (aarch64_init_cumulative_args): Take a silent_p parameter and store
3632 it in the cumulative_args structure. Initialize aapcs_nprn and
3633 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
3634 error about using float registers without TARGET_FLOAT.
3635 If the silent_p flag is not set, also raise an error about
3636 using SVE functions when SVE is disabled.
3637 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
3638 and call it for SVE functions too. Update aapcs_nprn similarly
3639 to the other register counts.
3640 (aarch64_layout_frame): If a big-endian function needs to save
3641 and restore Z8-Z15, search for a spare predicate that it can use.
3642 Store SVE predicates at the bottom of the register save area,
3643 followed by SVE vectors, then followed by the normal slots.
3644 Keep pointing the hard frame pointer at the base of the normal slots,
3645 above the SVE vectors. Update the various frame creation and
3646 tear-down strategies for the new layout, initializing the new
3647 sve_callee_adjust field. Add an additional layout for frames
3648 whose saved registers are all SVE registers.
3649 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
3650 (aarch64_return_address_signing_enabled): Likewise.
3651 (aarch64_push_regs, aarch64_pop_regs): Update calls to
3652 aarch64_reg_save_mode.
3653 (aarch64_adjust_sve_callee_save_base): New function.
3654 (aarch64_add_cfa_expression): Move earlier in file. Take the
3655 saved register as an rtx rather than a register number and use
3656 its mode for the MEM slot.
3657 (aarch64_save_callee_saves): Remove the mode argument and instead
3658 use aarch64_reg_save_mode to get the mode of each save slot.
3659 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
3660 offsets. Allow GP offsets to be saved at a VL-based offset from
3661 the stack, handling this case using the frame pointer if available
3662 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
3663 big-endian SVE functions; use normal moves for other SVE saves.
3664 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
3665 returns true. Add explicit CFA notes when not storing via the
3666 stack pointer. Do not try to pair SVE saves.
3667 (aarch64_restore_callee_saves): Cope with poly_int64 register
3668 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
3669 use normal moves for other SVE restores. Only add CFA restore notes
3670 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
3671 SVE restores.
3672 (aarch64_get_separate_components): Always keep the first SVE save
3673 in the prologue if we need to use it as a stack probe. Don't allow
3674 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
3675 Likewise the spare predicate register that they need. Update the
3676 offset calculation to account for the SVE save area. Use the
3677 appropriate range check for SVE LDR and STR instructions.
3678 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
3679 (aarch64_process_components): Likewise. Update the offset
3680 calculation to account for the SVE save area. Only mark the
3681 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
3682 Do not try to pair SVE saves.
3683 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
3684 reg_offsets. When handling the final allocation, expect the
3685 first SVE register save to be part of the initial allocation
3686 and for it to act as a probe at SP. Account for the SVE callee
3687 save area in the dump information.
3688 (aarch64_expand_prologue): Update the frame diagram. Fold the
3689 SVE callee allocation into the initial allocation if stack clash
3690 protection is enabled. Use new variables to track the offset
3691 of the frame chain (and hard frame pointer) from the current
3692 stack pointer, and likewise the offset of the bottom of the
3693 register save area. Update calls to aarch64_save_callee_saves
3694 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
3695 saving the FP&SIMD registers. Save the predicate registers.
3696 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
3697 into account when setting the stack pointer from the frame pointer,
3698 and when deciding whether we can inherit the initial adjustment
3699 amount from the prologue. Restore the predicate registers after
3700 the vector registers, then apply sve_callee_adjust, then restore
3701 the general registers.
3702 (aarch64_secondary_reload): Don't use secondary SVE reloads
3703 for VNx16BImode.
3704 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
3705 (aarch64_short_vector_p): Return false for SVE types.
3706 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
3707 at the start of the function. Return false for SVE types.
3708 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
3709 functions too.
3710 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
3711 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
3712 to big-endian targets for bytewise moves.
3713 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
3714
3715 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
3716 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
3717 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3718
3719 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
3720 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
3721 aarch64-sve-builtins-base.o to extra_objs. Add
3722 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
3723 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
3724 (aarch64-sve-builtins-shapes.o): Likewise.
3725 (aarch64-sve-builtins-base.o): New rules.
3726 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
3727 (aarch64_resolve_overloaded_builtin): Likewise.
3728 (aarch64_check_builtin_call): Likewise.
3729 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
3730 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
3731 pragma.
3732 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
3733 (aarch64_svprfop): New enum.
3734 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
3735 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
3736 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
3737 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3738 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
3739 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
3740 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
3741 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
3742 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
3743 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
3744 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
3745 (aarch64_sve::mangle_builtin_type): Likewise.
3746 (aarch64_sve::resolve_overloaded_builtin): Likewise.
3747 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
3748 (aarch64_sve::expand_builtin): Likewise.
3749 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
3750 (aarch64_sve_int_mode): Likewise.
3751 (aarch64_ptrue_all_mode): New function.
3752 (aarch64_convert_sve_data_to_pred): Make public.
3753 (svprfop_token): New function.
3754 (aarch64_output_sve_prefetch): Likewise.
3755 (aarch64_fold_sve_cnt_pat): Likewise.
3756 (aarch64_output_sve_cnt_pat_immediate): Likewise.
3757 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
3758 instead of gen_while_ult.
3759 (aarch64_replace_reg_mode): Make public.
3760 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
3761 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
3762 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
3763 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
3764 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
3765 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
3766 (aarch64_sve_ptrue_svpattern_p): Likewise.
3767 (aarch64_sve_pred_valid_immediate): Check
3768 aarch64_sve_ptrue_svpattern_p.
3769 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
3770 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
3771 functions.
3772 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
3773 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
3774 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
3775 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
3776 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
3777 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
3778 New unspecs.
3779 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
3780 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
3781 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
3782 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
3783 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
3784 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
3785 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
3786 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
3787 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
3788 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
3789 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
3790 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
3791 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
3792 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
3793 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
3794 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
3795 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
3796 (Vesize): Handle partial vector modes.
3797 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
3798 mode attributes.
3799 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
3800 iterators.
3801 (s, paired_extend, inc_dec): New code attributes.
3802 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
3803 (SVE_INT_UNARY): Add UNSPEC_RBIT.
3804 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
3805 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
3806 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
3807 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3808 UNSPEC_COND_FMULX.
3809 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
3810 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
3811 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3812 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
3813 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
3814 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
3815 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
3816 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
3817 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
3818 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
3819 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
3820 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
3821 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
3822 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
3823 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
3824 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
3825 UNSPEC_COND_FSCALE.
3826 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
3827 (binqops_op, binqops_op_rev, last_op): New int attributes.
3828 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
3829 (fn, ab): New int attributes.
3830 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
3831 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
3832 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
3833 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
3834 UNSPEC_RBIT.
3835 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
3836 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
3837 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
3838 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
3839 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
3840 UNSPEC_COND_FMULX.
3841 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
3842 (brk_reg_con, brk_reg_opno): New int attributes.
3843 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
3844 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
3845 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
3846 UNSPEC_COND_FMIN.
3847 (max_elem_bits): New int attribute.
3848 (min_elem_bits): Handle UNSPEC_RBIT.
3849 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
3850 TRUNCATE as well as SUBREG.
3851 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
3852 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
3853 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
3854 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
3855 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
3856 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
3857 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
3858 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
3859 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
3860 (aarch64_gather_scale_operand_h): New predicates.
3861 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
3862 (vgd, vgh, vgw, vsQ, vsS): New constraints.
3863 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
3864 (*aarch64_sve_reinterpret<mode>): Allow any source register
3865 instead of requiring an exact match.
3866 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
3867 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
3868 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
3869 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
3870 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
3871 (aarch64_update_ffrt): New patterns.
3872 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3873 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3874 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3875 (@aarch64_ld<fn>f1<mode>): New patterns.
3876 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
3877 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3878 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3879 (@aarch64_ldnt1<mode>): New patterns.
3880 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3881 the scalar part of the address.
3882 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
3883 scalar part of the addresse and add an alternative for handling
3884 nonzero offsets.
3885 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3886 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
3887 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3888 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3889 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3890 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3891 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
3892 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
3893 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
3894 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
3895 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
3896 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
3897 (@aarch64_sve_prefetch<mode>): New patterns.
3898 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
3899 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
3900 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
3901 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
3902 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
3903 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3904 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3905 (@aarch64_stnt1<mode>): New patterns.
3906 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
3907 the scalar part of the address.
3908 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
3909 the scalar part of the addresse and add an alternative for handling
3910 nonzero offsets.
3911 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
3912 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
3913 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
3914 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
3915 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
3916 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
3917 New patterns.
3918 (vec_duplicate<mode>): Use QI as the mode of the input operand.
3919 (extract_last_<mode>): Generalize to...
3920 (@extract_<LAST:last_op>_<mode>): ...this.
3921 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
3922 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
3923 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
3924 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
3925 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
3926 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
3927 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
3928 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
3929 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
3930 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
3931 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
3932 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
3933 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
3934 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
3935 (*aarch64_adr_uxtw_unspec): Likewise.
3936 (*aarch64_adr_uxtw): Rename to...
3937 (*aarch64_adr_uxtw_and): ...this.
3938 (@aarch64_adr<mode>_shift): New expander.
3939 (*aarch64_adr_shift_sxtw): New pattern.
3940 (aarch64_<su>abd<mode>_3): Rename to...
3941 (@aarch64_pred_<su>abd<mode>): ...this.
3942 (<su>abd<mode>_3): Update accordingly.
3943 (@aarch64_cond_<su>abd<mode>): New expander.
3944 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
3945 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
3946 (*<su>mul<mode>3_highpart): Rename to...
3947 (@aarch64_pred_<optab><mode>): ...this.
3948 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
3949 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
3950 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
3951 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
3952 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
3953 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
3954 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
3955 (*v<ASHIFT:optab><mode>3): Rename to...
3956 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
3957 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
3958 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
3959 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
3960 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
3961 (@cond_asrd<mode>): New expander.
3962 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
3963 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
3964 (*sdiv_pow2<mode>3): Delete.
3965 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
3966 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
3967 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
3968 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
3969 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
3970 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
3971 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
3972 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
3973 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
3974 (*add<SVE_F:mode>3): Rename to...
3975 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
3976 for SVE_STRICT_GP.
3977 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
3978 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
3979 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
3980 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
3981 (*sub<SVE_F:mode>3): Rename to...
3982 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
3983 for SVE_STRICT_GP.
3984 (@aarch64_pred_abd<SVE_F:mode>): New expander.
3985 (*fabd<SVE_F:mode>3): Rename to...
3986 (*aarch64_pred_abd<SVE_F:mode>): ...this.
3987 (@aarch64_cond_abd<SVE_F:mode>): New expander.
3988 (*mul<SVE_F:mode>3): Rename to...
3989 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
3990 for SVE_STRICT_GP.
3991 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
3992 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
3993 to...
3994 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
3995 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
3996 (*<nlogical><PRED_ALL:mode>3): Rename to...
3997 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
3998 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
3999 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4000 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4001 (aarch64_pred_<logical_nn><mode>_z): ...this.
4002 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4003 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4004 (*fma<SVE_I:mode>4): Rename to...
4005 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4006 (*fnma<SVE_I:mode>4): Rename to...
4007 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4008 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4009 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4010 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4011 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4012 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4013 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
4014 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
4015 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
4016 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
4017 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
4018 (@aarch64_sve_tmad<mode>): Likewise.
4019 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
4020 (*aarch64_sel_dup<mode>): Rename to...
4021 (@aarch64_sel_dup<mode>): ...this.
4022 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
4023 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
4024 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
4025 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
4026 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
4027 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
4028 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
4029 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
4030 (*fcm<cmp_op><mode>): Rename to...
4031 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
4032 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4033 (*fcmuo<mode>): Rename to...
4034 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
4035 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4036 (@aarch64_pred_fac<cmp_op><mode>): New expander.
4037 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
4038 (fold_extract_last_<mode>): Generalize to...
4039 (@fold_extract_<last_op>_<mode>): ...this.
4040 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
4041 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
4042 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
4043 DImode result explicit.
4044 (reduc_plus_scal_<mode>): Update accordingly.
4045 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
4046 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
4047 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
4048 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
4049 (*aarch64_sve_tbl<mode>): Rename to...
4050 (@aarch64_sve_tbl<mode>): ...this.
4051 (@aarch64_sve_compact<mode>): New pattern.
4052 (*aarch64_sve_dup_lane<mode>): Rename to...
4053 (@aarch64_sve_dup_lane<mode>): ...this.
4054 (@aarch64_sve_dupq_lane<mode>): New pattern.
4055 (@aarch64_sve_splice<mode>): Likewise.
4056 (aarch64_sve_<perm_insn><mode>): Rename to...
4057 (@aarch64_sve_<perm_insn><mode>): ...this.
4058 (*aarch64_sve_ext<mode>): Rename to...
4059 (@aarch64_sve_ext<mode>): ...this.
4060 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
4061 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
4062 to...
4063 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
4064 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4065 Rename to...
4066 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4067 ...this.
4068 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
4069 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
4070 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
4071 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
4072 to...
4073 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
4074 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
4075 a "@" marker.
4076 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
4077 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
4078 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
4079 pattern.
4080 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
4081 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
4082 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
4083 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
4084 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
4085 "@" marker.
4086 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
4087 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
4088 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
4089 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
4090 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
4091 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
4092 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
4093 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
4094 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
4095 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
4096 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
4097 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
4098 (aarch64_sve_cnt_pat): Likewise.
4099 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4100 (*aarch64_sve_incsi_pat): Likewise.
4101 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4102 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4103 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4104 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4105 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4106 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4107 (*aarch64_sve_decsi_pat): Likewise.
4108 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4109 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4110 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4111 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4112 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4113 (@aarch64_pred_cntp<mode>): Likewise.
4114 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4115 New expander.
4116 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4117 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4118 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4119 New expander.
4120 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4121 New pattern.
4122 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
4123 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4124 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
4125 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4126 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
4127 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4128 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4129 New expander.
4130 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4131 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4132 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4133 New expander.
4134 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4135 New pattern.
4136 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
4137 expander.
4138 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4139 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
4140 expander.
4141 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4142 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
4143 expander.
4144 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4145 * config/aarch64/arm_sve.h: New file.
4146 * config/aarch64/aarch64-sve-builtins.h: Likewise.
4147 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
4148 * config/aarch64/aarch64-sve-builtins.def: Likewise.
4149 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
4150 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
4151 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
4152 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
4153 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
4154 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
4155
4156 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4157
4158 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
4159 New pattern.
4160 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
4161 SVE modes.
4162
4163 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4164
4165 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
4166 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
4167 FFRT_REGNUM + 1.
4168 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
4169 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
4170 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
4171 (aarch64_hard_regno_nregs): Handle the new register classes.
4172 (aarch64_hard_regno_mode_ok): Likewise.
4173 (aarch64_regno_regclass): Likewise.
4174 (aarch64_class_max_nregs): Likewise.
4175 (aarch64_register_move_cost): Likewise.
4176 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
4177 as general register_operands.
4178
4179 2019-10-29 Martin Liska <mliska@suse.cz>
4180
4181 * ggc-common.c: One can't subtract unsigned types
4182 in compare function.
4183
4184 2019-10-29 Martin Liska <mliska@suse.cz>
4185
4186 * cgraphunit.c (symbol_table::compile): Pass
4187 title as dump_memory_report argument.
4188 * toplev.c (dump_memory_report): New argument.
4189 (finalize): Pass new argument.
4190 * toplev.h (dump_memory_report): Add argument.
4191
4192 2019-10-29 Martin Liska <mliska@suse.cz>
4193
4194 * ggc-common.c: Move Leak to the first column.
4195
4196 2019-10-29 Martin Liska <mliska@suse.cz>
4197
4198 * cgraphunit.c (symbol_table::compile): Remove argument
4199 for dump_memory_report.
4200 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4201 (compare_final): Remove in order to make report
4202 better readable.
4203 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4204 * mem-stats.h (mem_alloc_description::get_list):
4205 Do not pass cmp.
4206 (mem_alloc_description::dump): Likewise here.
4207 * toplev.c (dump_memory_report): Remove final
4208 argument.
4209 (finalize): Likewise.
4210 * toplev.h (dump_memory_report): Remove argument.
4211
4212 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4213
4214 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4215 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4216 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4217 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4218 accept "const".
4219
4220 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4221
4222 * coretypes.h (string_int_pair): New typedef.
4223 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4224 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4225 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4226
4227 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4228
4229 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
4230 (simulate_builtin_function_decl): Declare.
4231 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
4232 (LANG_HOOKS_INITIALIZER): Include it.
4233 * langhooks.c (add_builtin_function_common): Rename to...
4234 (build_builtin_function): ...this. Add a location parameter and use
4235 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
4236 the decl instead.
4237 (add_builtin_function): Update accordingly, passing the returned
4238 decl to the lang hook.
4239 (add_builtin_function_ext_scope): Likewise
4240 (simulate_builtin_function_decl): New function.
4241
4242 2019-10-29 Jakub Jelinek <jakub@redhat.com>
4243
4244 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
4245 example, use actual names of supported offload targets.
4246
4247 PR target/92258
4248 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
4249
4250 2019-10-28 Martin Sebor <msebor@redhat.com>
4251
4252 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
4253 (handle_store): Pass argument to get_addr_stridx.
4254
4255 2019-10-28 Martin Sebor <msebor@redhat.com>
4256
4257 PR tree-optimization/92226
4258 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
4259 the offset is in the open range outlined by SI's length.
4260
4261 2019-10-28 Martin Sebor <msebor@redhat.com>
4262
4263 PR c/66970
4264 * doc/cpp.texi (__has_builtin): Document.
4265 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
4266
4267 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
4268
4269 PR target/82981
4270 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
4271 doubleword and low doubleword result of multiplication on
4272 MIPS64R6.
4273
4274 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
4275 pure qualifier to the built-in.
4276 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
4277 built-ins.
4278 (struct mips_builtin_description): Add is_pure flag.
4279 (mips_init_builtins): Mark built-in as pure if the flag in the
4280 corresponding mips_builtin_description struct is set.
4281
4282 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
4283 alternative which covers the floating-point input value. Also
4284 forbid the split of insert.d pattern for floating-point values.
4285
4286 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
4287
4288 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
4289 * config/riscv/riscv-sr.c: New file.
4290 * config/riscv/riscv.c (riscv_reorg): New function.
4291 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4292 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
4293 (riscv_remove_unneeded_save_restore_calls): Declare.
4294 * config/riscv/t-riscv (riscv-sr.o): New build rule.
4295
4296 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4297
4298 PR tree-optimization/92163
4299 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
4300 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
4301 before calling bitmap_set_bit.
4302 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
4303 delete_dead_or_redundant_assignment.
4304 (dse_dom_walker::dse_optimize_stmt): Likewise.
4305 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
4306
4307 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4308
4309 PR middle-end/91272
4310 * tree-vect-stmts.c (vectorizable_condition): Support
4311 EXTRACT_LAST_REDUCTION with fully-masked loops.
4312
4313 2019-10-28 Richard Biener <rguenther@suse.de>
4314
4315 PR tree-optimization/92252
4316 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
4317 STMT_VINFO_REDUC_IDX when swapping operands.
4318
4319 2019-10-28 Richard Biener <rguenther@suse.de>
4320
4321 PR tree-optimization/92241
4322 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
4323 we failed to update the reduction index do not use the pattern
4324 stmts for the reduction chain.
4325 (vectorizable_reduction): When the reduction chain is corrupt,
4326 fail.
4327 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
4328 fail to update the reduction chain.
4329
4330 2019-10-28 Richard Biener <rguenther@suse.de>
4331
4332 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
4333 STMT_VINFO_REDUC_IDX from the actual stmt.
4334 (vect_transform_reduction): Likewise.
4335 (vectorizable_reduction): Compute the reduction chain length,
4336 do not recompute the reduction operand index. Remove no longer
4337 necessary restriction for condition reduction chains.
4338
4339 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4340
4341 PR target/92225
4342 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
4343 condition for V2DImode.
4344
4345 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
4346
4347 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
4348 Remove %k operand modifier.
4349 (*vec_extractv2df_1_sse): Remove %q operand modifier.
4350
4351 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
4352
4353 PR rtl-optimization/92007
4354 * cfgcleanup.c (thread_jump): Add an assertion that we don't
4355 call it after reload if hot/cold partitioning has been done.
4356 (class pass_postreload_jump): Rename to
4357 pass_jump_after_combine.
4358 (make_pass_postreload_jump): Rename to
4359 make_pass_jump_after_combine.
4360 * passes.def(pass_postreload_jump): Move before reload, rename
4361 to pass_jump_after_combine.
4362 * tree-pass.h (make_pass_postreload_jump): Rename to
4363 make_pass_jump_after_combine.
4364
4365 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
4366
4367 PR ipa/92242
4368 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
4369 for missing EDGE_REF
4370 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
4371
4372 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
4373
4374 PR tree-optimization/88760
4375 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
4376 Enable -funroll-loops for -O2 and above.
4377 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
4378 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
4379 do not turn on web and rngreg implicitly, if the unroller is not
4380 explicitly enabled.
4381
4382 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4383
4384 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
4385 jump functions.
4386
4387 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
4388
4389 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
4390 * cgraph.h (cgraph_node::rtl_info): Likewise.
4391
4392 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4393
4394 * ipa-cp.c (propagate_constants_across_call): If args are not available
4395 just drop everything to varying.
4396 (find_aggregate_values_for_callers_subset): Watch for missing
4397 edge summary.
4398 (find_more_scalar_values_for_callers_subs): Likewise.
4399 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
4400 update_jump_functions_after_inlining, propagate_controlled_uses):
4401 Watch for missing summaries.
4402 (ipa_propagate_indirect_call_infos): Remove summary after propagation
4403 is finished.
4404 (ipa_write_node_info): Watch for missing summaries.
4405 (ipa_read_edge_info): Create new ref.
4406 (ipa_edge_args_sum_t): Add remove.
4407 (IPA_EDGE_REF_GET_CREATE): New macro.
4408 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
4409 edge summary.
4410 (remap_edge_change_prob): Likewise.
4411
4412 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4413
4414 * ipa-inline-transform.c (inline_call): update function summaries
4415 after expanidng thunk.
4416
4417 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
4418
4419 * ipa-icf.c (sem_function::merge): Update function summaries.
4420 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
4421
4422 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
4423
4424 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
4425 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
4426 operand already has scalar mode.
4427 (iptr): Remove SF/DF.
4428
4429 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
4430
4431 PR target/91289
4432 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
4433 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
4434 this.
4435
4436 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4437
4438 * config/i386/sse.md
4439 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
4440 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
4441 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
4442 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
4443 <sse>_vmmaskcmp<mode>3):
4444 Change predicates from vector_operand to nonimmediate_operand,
4445 constraints xBm to xm, since scalar operations don't need
4446 memory address alignment.
4447 (avx512f_vmcmp<mode>3<round_saeonly_name>,
4448 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
4449 round_saeonly_nimm_predicate with
4450 round_saeonly_nimm_scalar_predicate.
4451 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
4452 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
4453 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
4454 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
4455 avx512f_vmfmadd_<mode>_mask3<round_name>,
4456 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
4457 *avx512f_vmfmsub_<mode>_mask<round_name>,
4458 avx512f_vmfmsub_<mode>_mask3<round_name>,
4459 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
4460 *avx512f_vmfnmadd_<mode>_mask<round_name>,
4461 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
4462 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
4463 *avx512f_vmfnmsub_<mode>_mask<round_name>,
4464 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
4465 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
4466 cvtusi2<ssescalarmodesuffix>32<round_name>,
4467 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
4468 round_nimm_predicate with round_nimm_scalr_predicate.
4469 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
4470 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
4471 avx512er_vmrcp28<mode><round_saeonly_name>,
4472 avx512er_vmrsqrt28<mode><round_saeonly_name>,
4473 ): Replace round_saeonly_nimm_predicate with
4474 round_saeonly_nimm_scalar_predicate.
4475 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
4476 vector_operand with nonimmediate_operand.
4477 * config/i386/subst.md (round_scalar_nimm_predicate,
4478 round_saeonly_scalar_nimm_predicate): Replace
4479 vector_operand with nonimmediate_operand.
4480
4481 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
4482
4483 PR target/89071
4484 * config/i386/i386.md (*rcpsf2_sse): Add
4485 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
4486 (*rsqrtsf2_sse): Ditto.
4487 (*sqrt<mode>2_sse): Ditto.
4488 (sse4_1_round<mode>2): separate constraint vm, add
4489 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
4490 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
4491 by pass rpad.
4492 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
4493 Ditto.
4494 (*sse_vmrsqrtv4sf2): Ditto.
4495 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
4496 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
4497 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
4498 <iptr> pointer size modifier since vround support memory operand.
4499
4500 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
4501
4502 PR target/85969
4503 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
4504 static function.
4505
4506 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
4507 Tobias Burnus <tobias@codesourcery.com>
4508
4509 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
4510 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
4511 common block decls.
4512
4513 2019-10-25 Richard Biener <rguenther@suse.de>
4514
4515 PR tree-optimization/92222
4516 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
4517 (_slp_oprnd_info::second_pattern): Likewise.
4518 (_slp_oprnd_info::any_pattern): New.
4519 (vect_create_oprnd_info): Adjust.
4520 (vect_get_and_check_slp_defs): Compute whether any stmt is
4521 in a pattern.
4522 (vect_build_slp_tree_2): Avoid building up a node from scalars
4523 if any of the operand defs, not just the first, is in a pattern.
4524
4525 2019-10-25 Richard Biener <rguenther@suse.de>
4526
4527 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
4528 swapping if we actually have to modify the IL on a shared stmt.
4529 (vect_build_slp_tree_2): Never fail swapping on shared stmts
4530 because we no longer modify the IL.
4531
4532 2019-10-25 Martin Liska <mliska@suse.cz>
4533
4534 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
4535
4536 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
4537
4538 * tree-vect-loop.c (vectorizable_reduction): Restrict the
4539 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
4540 handled by vect_transform_reduction. Allow fully-masked loops
4541 to be used with reduction chains.
4542 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
4543 operations in fully-masked loops.
4544 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
4545 operations in fully-masked loops.
4546
4547 2019-10-25 Richard Biener <rguenther@suse.de>
4548
4549 * tree-vect-loop.c (vectorizable_reduction): Verify
4550 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
4551 correctly.
4552 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
4553 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
4554 stmts.
4555
4556 2019-10-24 Jakub Jelinek <jakub@redhat.com>
4557
4558 * gimplify.h (omp_construct_selector_matches): Declare.
4559 * gimplify.c (struct gimplify_omp_ctx): Add code member.
4560 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
4561 called function if needed for flag_openmp.
4562 (gimplify_scan_omp_clauses): Set ctx->code.
4563 (omp_construct_selector_matches): New function.
4564 * omp-general.h (omp_constructor_traits_to_codes,
4565 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
4566 * omp-general.c (omp_constructor_traits_to_codes,
4567 omp_context_selector_matches, omp_resolve_declare_variant): New
4568 functions.
4569
4570 * config/arc/arc.c (hwloop_optimize): Add missing space in string
4571 literal.
4572 * config/rx/rx.c (rx_print_operand): Likewise.
4573 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
4574 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
4575 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
4576 Likewise.
4577 * genemit.c (emit_c_code): Likewise.
4578 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
4579
4580 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4581
4582 * symbols-summary.h (fast_function_summary<T *, V>::release,
4583 fast_call_summary<T *, V>::release): Free m_vector.
4584
4585 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4586
4587 * cgraphunit.c (symbol_table::process_new_functions): Call
4588 ipa_free_size_summary.
4589 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
4590 (devirtualization_time_bonus): Update.
4591 (ipcp_propagate_stage): Update.
4592 * ipa-fnsummary.c (ipa_size_summaries): New.
4593 (ipa_fn_summary_alloc): Alloc size summary.
4594 (dump_ipa_call_summary): Update.
4595 (ipa_dump_fn_summary): Update.
4596 (analyze_function_body): Update.
4597 (compute_fn_summary): Likewise.
4598 (ipa_get_stack_frame_offset): New function.
4599 (inline_update_callee_summaries): Do not update frame offsets.
4600 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
4601 remove call and function summary.
4602 (ipa_update_overall_fn_summary): Update.
4603 (inline_read_section): Update.
4604 (ipa_fn_summary_write): Update.
4605 (ipa_free_fn_summary): Do not remove summaries.
4606 (ipa_free_size_summary): New.
4607 (release summary pass): Also run at WPA.
4608 * ipa-fnsummary.h (ipa_size_summary): Declare.
4609 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
4610 estimated_self_stack_size.
4611 (ipa_size_summary_t): New type.
4612 (ipa_size_summaries): Declare.
4613 (ipa_free_size_summary): Declare.
4614 (ipa_get_stack_frame_offset): Declare.
4615 * ipa-icf.c (sem_function::merge): Update.
4616 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
4617 (estimate_growth): Update.
4618 (growth_likely_positive): Update.
4619 (clone_inlined_nodes): Update.
4620 (inline_call): Update.
4621 * ipa-inline.c (caller_growth_limits): Update.
4622 (edge_badness): Update.
4623 (recursive_inlining): Update.
4624 (inline_small_functions): Update.
4625 (inline_to_all_callers_1): Update.
4626 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
4627
4628 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
4629
4630 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
4631 (uavg<mode>3_ceil): ... This.
4632 (altivec_vavgs<VI_char>): Rename to...
4633 (avg<mode>3_ceil): ... This.
4634 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
4635 VAVGUW, VAVGSW): Adjust.
4636
4637 2019-10-24 Nathan Sidwell <nathan@acm.org>
4638
4639 * dumpfile.c (dump_begin): Reorder decls to use RAII.
4640
4641 2019-10-24 Martin Liska <mliska@suse.cz>
4642
4643 * symbol-summary.h (gt_pch_nx): Mark all functions
4644 with gcc_unreachable as we do not expect to be called.
4645
4646 2019-10-24 Richard Biener <rguenther@suse.de>
4647
4648 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
4649 chains try harder with operand swapping and instead of
4650 putting a shifted chain into the reduction operands put
4651 a repetition of the final reduction op there as if we'd
4652 reassociate the expression.
4653
4654 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
4655
4656 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
4657 statics_not_read and statics_not_written to statics_read and
4658 statics_written respectively.
4659 (no_module_statics): New static var.
4660 (ipa_reference_get_not_read_global): Rename to ...
4661 (ipa_reference_get_read_global): ... this.
4662 (ipa_reference_get_not_written_global): Rename to ...
4663 (ipa_reference_get_written_global): ... this.
4664 (dump_static_vars_set_to_file): Dump no_module_statics.
4665 (copy_static_var_set): Add for propagation parameter.
4666 (ipa_init): Initialize no_module_statics.
4667 (ipa_ref_opt_summary_t::duplicate): Update.
4668 (ipa_ref_opt_summary_t::remove): Update.
4669 (propagate): Update.
4670 (write_node_summary_p): Look correctly for bitmap differences.
4671 (ipa_reference_write_optimization_summary): Update.
4672 (ipa_reference_read_optimization_summary): Update.
4673 * ipa-reference.h
4674 (ipa_reference_get_not_read_global): Rename to ...
4675 (ipa_reference_get_read_global): ... this.
4676 (ipa_reference_get_not_written_global): Rename to ...
4677 (ipa_reference_get_written_global): ... this.
4678 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
4679 (call_may_clobber_ref_p_1): Update.
4680
4681 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4682
4683 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
4684 and add comment.
4685 (msp430_hard_regno_nregs_with_padding): Remove.
4686
4687 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4688
4689 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
4690 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
4691 shift amount is between 1 and 4.
4692 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
4693 is between 1 and 4.
4694
4695 2019-10-24 Richard Biener <rguenther@suse.de>
4696
4697 PR tree-optimization/92205
4698 * tree-vect-loop.c (vectorizable_reduction): Restrict
4699 search for alternate vectype_in to lane-reducing patterns
4700 we support.
4701
4702 2019-10-24 Richard Biener <rguenther@suse.de>
4703
4704 PR tree-optimization/92203
4705 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
4706 Skip eliminating conversion stmts inserted by insertion.
4707
4708 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
4709
4710 * config/s390/s390.c (s390_get_thread_pointer): Use
4711 gen_get_thread_pointer.
4712 (s390_expand_split_stack_prologue): Likewise.
4713 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
4714 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
4715 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
4716 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
4717 parameterized name.
4718
4719 2019-10-24 Richard Biener <rguenther@suse.de>
4720
4721 * tree-vect-slp.c (vect_analyze_slp): When reduction group
4722 SLP discovery fails try to handle the reduction as part
4723 of SLP reduction discovery.
4724
4725 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
4726
4727 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
4728 declaration.
4729 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
4730 attribute if it exists, rather than the insn size. If we use the
4731 insn size, adjust the size to remove the extra size that prefixed
4732 instructions take.
4733 (rs6000_adjust_insn_length): New function.
4734 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
4735 update the instruction sized if prefixed instructions are used.
4736 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
4737 (non_prefixed_length attribute): Delete.
4738 (num_insns attribute): New insn attribute to return the number of
4739 instructions.
4740 (max_prefixed_insns attribute): New insn attribute to return the
4741 maximum number of prefixed instructions in an insn.
4742 (length attribute): Do not adjust for prefix instructions here,
4743 punt to ADJUST_INSN_LENGTH.
4744 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
4745 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
4746 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
4747 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
4748 max_prefixed_insns and num_insns.
4749
4750 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
4751 (movtd_64bit_nodm): Reformat.
4752 (mov<mode>_32bit): Reformat.
4753 (mov<mode>_softfloat): Reformat.
4754 (FMOVE128_GPR splitter): Reformat.
4755 (DIFD splitter): Reformat.
4756 (TI2 splitter): Reformat.
4757 * config/rs6000/predicates.md (lwa_operand): If the bottom two
4758 bits of the offset for the memory address are non-zero, use PLWA
4759 if prefixed instructions are available.
4760
4761 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4762
4763 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
4764
4765 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4766
4767 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
4768 previous patch.
4769
4770 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4771
4772 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
4773 (cmp_symbol_files): New.
4774 (lto_output): Copy sections in file order.
4775 * lto-streamer.h (lto_file_decl_data): Add field order.
4776
4777 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4778
4779 * ipa-reference.h (ipa_reference_var_uid): Move offline.
4780 * ipa-reference.c (reference_vars_map_t): new type.
4781 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
4782 (ipa_reference_var_uid): Implement.
4783 (varpool_node_hooks): New static var.
4784 (varpool_removal_hook): New function.
4785 (is_improper): Do not check bitmap for id==-1
4786 (get_static_name): Update.
4787 (ipa_init): Initialize new datastructures.
4788 (analyze_function): Do not recompute ids.
4789 (propagate): Free reference_vars_to_consider.
4790 (stream_out_bitmap): Update.
4791 (ipa_reference_read_optimization_summary): Update.
4792
4793 2019-10-23 qing zhao <qing.zhao@oracle.com>
4794
4795 PR gcov-profile/91971
4796 * coverage.c (coverage_init): Mangle the full path of filename when
4797 filename is a absolute path.
4798
4799 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4800
4801 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
4802 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
4803 (msp430_has_hwmult): New.
4804 (msp430_output_labelref):
4805 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
4806 * config/msp430/msp430.md (mulhisi3): Likewise.
4807 (umulhisi3): Likewise.
4808 (mulsidi3): Likewise.
4809 (umulsidi3): Likewise.
4810
4811 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
4812
4813 PR ipa/92074
4814 * params.def (inline-heuristics-hint-percent): Set to 600.
4815
4816 2019-10-23 Richard Biener <rguenther@suse.de>
4817
4818 PR tree-optimization/65930
4819 * tree-vect-loop.c (check_reduction_path): Allow conversions
4820 that only change the sign.
4821 (vectorizable_reduction): Relax latch def stmts we handle further.
4822
4823 2019-10-23 Jakub Jelinek <jakub@redhat.com>
4824
4825 PR debug/90231
4826 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
4827 (remove_unused_ivs): Use it instead of get_computation_at. When
4828 choosing best candidate, only consider candidates where
4829 get_debug_computation_at actually returns non-NULL.
4830
4831 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
4832
4833 PR tree-optimization/92131
4834 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
4835 range would be symbolic, drop to varying for any explicit overflow
4836 in the constant part or if neither range is a singleton.
4837
4838 2019-10-23 Martin Liska <mliska@suse.cz>
4839
4840 PR middle-end/81669
4841 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
4842 Initialize m_data.
4843
4844 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
4845
4846 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
4847 int_mode_for_mode rather than mode_for_int_vector for scalars.
4848
4849 2019-10-23 Richard Biener <rguenther@suse.de>
4850
4851 PR tree-optimization/92179
4852 * tree-vect-stmts.c (vectorizable_shift): For shift args
4853 that are all the same remove type restriction in the SLP case.
4854 Adjust SLP code to handle converting of the shift arg to
4855 only apply in case the modes are different.
4856
4857 2019-10-23 Martin Liska <mliska@suse.cz>
4858
4859 PR ipa/91969
4860 * ipa-inline.c (recursive_inlining): Do not print
4861 when curr->count is not initialized.
4862
4863 2019-10-23 Richard Biener <rguenther@suse.de>
4864
4865 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
4866 op from scalars in case there's a constant operand in its
4867 definition.
4868
4869 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
4870
4871 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
4872 against out of range max skip or log values.
4873
4874 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
4875
4876 * cgraph.c (dump_graphviz): Change name to dump_name
4877
4878 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4879
4880 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
4881 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
4882 subtraction from a carry operation.
4883
4884 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
4885
4886 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
4887
4888 2019-10-22 Richard Biener <rguenther@suse.de>
4889
4890 PR tree-optimization/92173
4891 * tree-vect-loop.c (vectorizable_reduction): If
4892 vect_transform_reduction cannot handle code-generation try without
4893 the single-def-use-cycle optimization. Pass optab_vector to
4894 optab_for_tree_code to get vector shifts as that's what we'd
4895 generate.
4896
4897 2019-10-22 Michael Matz <matz@suse.de>
4898
4899 PR middle-end/90796
4900 * gimple-loop-jam.c (any_access_function_variant_p): New function.
4901 (adjust_unroll_factor): Use it to constrain safety, new parameter.
4902 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
4903
4904 2019-10-22 Richard Biener <rguenther@suse.de>
4905
4906 PR tree-optimization/92173
4907 * tree-vect-loop.c (vectorizable_reduction): If
4908 vect_transform_reduction cannot handle code-generation try without
4909 the single-def-use-cycle optimization. Pass optab_vector to
4910 optab_for_tree_code to get vector shifts as that's what we'd
4911 generate.
4912
4913 2019-10-22 Martin Liska <mliska@suse.cz>
4914
4915 * diagnostic-format-json.cc (json_from_expanded_location):
4916 Use json::integer_number.
4917 * gcov.c (output_intermediate_json_line): Use new
4918 json::integer_number.
4919 (output_json_intermediate_file): Likewise.
4920 * json.cc (number::print): Move to ...
4921 (float_number::print): ... this.
4922 (integer_number::print): New.
4923 (test_writing_numbers): Move to ...
4924 (test_writing_float_numbers): ... this.
4925 (test_writing_integer_numbers): New.
4926 (json_cc_tests): Register test_writing_integer_numbers.
4927 * json.h (class value): Add forward declaration
4928 for float_number and integer_number.
4929 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
4930 (class number): Move to ...
4931 (class float_number): ... this.
4932 (class integer_number): New.
4933 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
4934 Use json::integer_number.
4935 (optrecord_json_writer::location_to_json): Likewise.
4936 (optrecord_json_writer::profile_count_to_json): Likewise.
4937 (optrecord_json_writer::pass_to_json): Likewise.
4938
4939 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
4940
4941 * tree-vect-slp.c (vect_slp_bb_region): Check whether
4942 autodetected_vector_size rather than vector_size is zero.
4943 * tree-vect-loop.c (vect_analyze_loop): Likewise.
4944 Set autodetected_vector_size immediately after calling
4945 vect_analyze_loop_2. Check for a fatal error before advancing
4946 next_size.
4947
4948 2019-10-21 Jason Merrill <jason@redhat.com>
4949
4950 * lock-and-run.sh: Check for process existence rather than timeout.
4951
4952 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4953
4954 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
4955 widening multiplication.
4956
4957 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
4958
4959 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
4960 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
4961 type attribute.
4962 (subsi3_carryin_shift): Separate into register and constant controlled
4963 alternatives. Use shift_amount_operand for operand 4. Set shift
4964 attribute and simplify type attribute.
4965 (subsi3_carryin_shift_alt): Likewise.
4966 (rsbsi3_carryin_shift): Likewise.
4967 (rsbsi3_carryin_shift_alt): Likewise.
4968 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
4969 and register controlled shifts into distinct alternatives.
4970 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
4971 (andsi_not_shiftsi_si_scc): Likewise.
4972 (arm_cmpsi_negshiftsi_si): Likewise.
4973 (not_shiftsi): Remove redundant M constraint from alternative 1.
4974 (not_shiftsi_compare0): Likewise.
4975 (arm_cmpsi_insn): Remove redundant alternative 2.
4976 (cmpsi_shift_swp): Likewise.
4977 (sub_shiftsi): Likewise.
4978 (sub_shiftsi_compare0_scratch): Likewise.
4979 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
4980 (thumb2_cmpsi_neg_shiftsi): Likewise.
4981
4982 2019-10-21 Richard Biener <rguenther@suse.de>
4983
4984 PR tree-optimization/92162
4985 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
4986 STMT_VINFO_REDUC_IDX in reduc_info.
4987 * tree-vect-stmts.c (vectorizable_condition): Likewise.
4988
4989 2019-10-21 Richard Biener <rguenther@suse.de>
4990
4991 * tree-vectorizer.h (_slp_tree::ops): New member.
4992 (SLP_TREE_SCALAR_OPS): New.
4993 (vect_get_slp_defs): Adjust prototype.
4994 * tree-vect-slp.c (vect_free_slp_tree): Release
4995 SLP_TREE_SCALAR_OPS.
4996 (vect_create_new_slp_node): Initialize it. New overload for
4997 initializing by an operands array.
4998 (_slp_oprnd_info::ops): New member.
4999 (vect_create_oprnd_info): Initialize it.
5000 (vect_free_oprnd_info): Release it.
5001 (vect_get_and_check_slp_defs): Populate the operands array.
5002 Do not swap operands in the IL when not necessary.
5003 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5004 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5005 swap operands in the operands array. Do not swap operands in
5006 the IL.
5007 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5008 (vect_gather_slp_loads): Fix.
5009 (vect_detect_hybrid_slp_stmts): Likewise.
5010 (vect_slp_analyze_node_operations_1): Search for a internal
5011 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5012 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5013 the def-type push/pop dance.
5014 (vect_get_constant_vectors): Compute number_of_vectors here.
5015 Use SLP_TREE_SCALAR_OPS and simplify greatly.
5016 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
5017 (vect_get_slp_defs): Simplify greatly.
5018 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
5019 (vect_transform_reduction): Likewise.
5020 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
5021 (vectorizable_call): Likewise.
5022 (vectorizable_operation): Likewise.
5023 (vectorizable_load): Likewise.
5024 (vectorizable_condition): Likewise.
5025 (vectorizable_comparison): Likewise.
5026
5027 2019-10-21 Richard Biener <rguenther@suse.de>
5028
5029 PR tree-optimization/92161
5030 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
5031 for reductions.
5032
5033 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5034
5035 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
5036 (aarch64_rndr): New define_insn.
5037 (aarch64_rndrrs): Likewise.
5038 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
5039 (TARGET_RNG): Likewise.
5040 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
5041 argument.
5042 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
5043 Add fourth argument in prototype.
5044 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
5045 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
5046 (aarch64_init_rng_builtins): Define.
5047 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
5048 (aarch64_expand_rng_builtin): Define.
5049 (aarch64_general_expand_builtin): Use IGNORE argument, handle
5050 RNG builtins.
5051 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5052 __ARM_FEATURE_RNG when TARGET_RNG.
5053 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
5054
5055 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
5056
5057 * tree-vect-stmts (ensure_base_align): Only change alignment if new
5058 alignment is more restrictive.
5059
5060 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5061
5062 * tree-vectorizer.h (vec_info::vector_size): New member variable.
5063 (vect_update_max_nunits): Update comment.
5064 (current_vector_size): Delete.
5065 * tree-vect-stmts.c (current_vector_size): Likewise.
5066 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
5067 of current_vector_size.
5068 (get_mask_type_for_scalar_type): Likewise.
5069 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
5070 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
5071 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
5072 (vect_double_mask_nunits, vect_transform_loop): Likewise.
5073 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5074 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
5075
5076 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5077
5078 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
5079 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
5080 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
5081 accordingly.
5082
5083 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5084
5085 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
5086 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
5087 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
5088 call accordingly.
5089 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5090
5091 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5092
5093 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
5094 a loop_vec_info.
5095 (vect_set_loop_condition_masked): Update call accordingly.
5096
5097 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5098
5099 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
5100 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5101 (simple_integer_narrowing): Update call accordingly.
5102 (vectorizable_conversion): Likewise.
5103
5104 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5105
5106 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
5107 (vectorizable_call): Update call accordingly.
5108
5109 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5110
5111 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
5112 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5113 (duplicate_and_interleave): Update call accordingly.
5114 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5115
5116 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5117
5118 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
5119 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
5120 (vect_get_constant_vectors): Update call accordingly.
5121 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
5122
5123 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5124
5125 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
5126 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
5127 (vect_prologue_cost_for_slp_op): Update call accordingly.
5128 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
5129 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
5130 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
5131 (get_mask_type_for_scalar_type): Likewise.
5132 (vect_get_vector_types_for_stmt): Likewise.
5133 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5134 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5135 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
5136 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
5137 (vect_split_statement, vect_convert_input): Likewise.
5138 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
5139 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
5140 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
5141 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
5142 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
5143 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
5144 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
5145 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
5146 (vect_recog_mask_conversion_pattern): Likewise.
5147 (vect_add_conversion_to_pattern): Likewise.
5148 (vect_recog_gather_scatter_pattern): Likewise.
5149 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
5150 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
5151
5152 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5153
5154 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
5155 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
5156 (vect_check_load_store_mask): Update call accordingly.
5157 (vect_get_mask_type_for_stmt): Likewise.
5158 * tree-vect-patterns.c (check_bool_pattern): Likewise.
5159 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
5160 (vect_convert_mask_for_vectype): Likewise.
5161
5162 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5163
5164 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
5165 a vec_info.
5166 (vect_recog_dot_prod_pattern): Update call accordingly.
5167 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
5168 (vect_recog_widen_sum_pattern): Likewise.
5169
5170 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5171
5172 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
5173 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
5174 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
5175 accordingly.
5176
5177 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5178
5179 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
5180 get_vectype_for_scalar_type_and_size instead of
5181 get_vectype_for_scalar_type.
5182
5183 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5184
5185 * common.opt (-fcommon): Fix description.
5186
5187 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5188
5189 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5190 * config/i386/i386.c (ix86_pre_reload_split): New function.
5191 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5192 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5193 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5194 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5195 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5196 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5197 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5198 *<shift_insn><dwi>3_doubleword_mask,
5199 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5200 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5201 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5202 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5203 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5204 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5205 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5206 *avx2_<code>v8qiv8si2<mask_name>_2,
5207 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5208 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5209 *avx512f_<code>v8qiv8di2<mask_name>_2,
5210 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5211 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5212 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5213 sse4_2_pcmpistr): Likewise.
5214
5215 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5216
5217 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5218 now defaults to https.
5219
5220 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5221
5222 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5223 skip non-zero array accesses.
5224
5225 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5226
5227 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5228 and return a boolean success value. Move the allocation and
5229 initialization of the bb_vec_info to...
5230 (vect_slp_bb_region): ...here. Update call accordingly.
5231 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
5232 than in vect_slp_analyze_bb_1.
5233
5234 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5235
5236 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
5237 when processing the given datarefs for the first time and
5238 check_datarefs subsequently.
5239 (vect_slp_bb_region): New function, split out of...
5240 (vect_slp_bb): ...here. Don't recompute the region bounds and
5241 dataref sets when retrying with a different vector size.
5242
5243 2019-10-19 Jakub Jelinek <jakub@redhat.com>
5244 Uroš Bizjak <ubizjak@gmail.com>
5245
5246 PR target/92140
5247 * config/i386/predicates.md (int_nonimmediate_operand): New special
5248 predicate.
5249 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
5250 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
5251 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
5252 define_insn_and_split patterns.
5253
5254 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
5255
5256 * config/rs6000/rs6000.md: Delete out--of-date comment about
5257 special-casing integer loads.
5258
5259 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
5260
5261 * escaped_string.h (escaped_string): New header.
5262 * tree.c (escaped_string): Remove escaped_string class.
5263
5264 2019-10-18 Martin Sebor <msebor@redhat.com>
5265
5266 PR tree-optimization/92157
5267 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
5268 compute_string_length to return a negative result.
5269
5270 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5271
5272 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
5273 (negvsi3, negvdi3): Delete.
5274 (negdi2_compare): Delete.
5275
5276 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5277
5278 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
5279 operations.
5280 (subdi3_compare1): Delete pattern.
5281 (subvsi3_borrow): New insn pattern.
5282 (subvsi3_borrow_imm): Likewise.
5283
5284 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5285
5286 * config/arm/arm.md (subv<mode>4): Delete.
5287 (subvdi4): New expander pattern.
5288 (subvsi4): Likewise. Handle some immediate values.
5289 (subvsi3_intmin): New insn pattern.
5290 (subvsi3): Likewise.
5291 (subvsi3_imm1): Likewise.
5292 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
5293 idioms.
5294
5295 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5296
5297 * config/arm/arm.md (usubvdi4): Allow registers or integers for
5298 incoming operands. Early split the calculation into SImode
5299 operations.
5300 (usubvsi3_borrow): New insn pattern.
5301 (usubvsi3_borrow_imm): Likewise.
5302
5303 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5304
5305 * config/arm/arm.md (usubv<mode>4): Delete expansion.
5306 (usubvsi4): New pattern. Allow some immediate values for inputs.
5307 (usubvdi4): New pattern.
5308
5309 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5310
5311 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
5312 or second operand of the PLUS inside a DImode equality test to be
5313 sign-extend when selecting CC_Vmode.
5314 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
5315 instructions.
5316 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
5317 expand patterns.
5318 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
5319 (addsi3_cin_vout_0): Likewise.
5320 (adddi3_compareV): Delete.
5321
5322 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5323
5324 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
5325 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
5326 to transform this back into the summation version when that leads
5327 to smaller code.
5328
5329 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5330
5331 * config/arm/arm.md (addv<mode>4): Delete.
5332 (addvsi4): New pattern. Handle immediate values that the architecture
5333 supports.
5334 (addvdi4): New pattern.
5335 (addsi3_compareV): Rename to ...
5336 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
5337 and use COMPARE rather than NE.
5338 (addsi3_compareV_imm): New pattern.
5339 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
5340 a signed-overflow check.
5341
5342 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5343
5344 * config/arm/arm-modes.def (CC_ADC): New CC mode.
5345 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
5346 CC_ADCmode.
5347 (maybe_get_arm_condition_code): Handle CC_ADCmode.
5348 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
5349 with overflow.
5350 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
5351 expand patterns.
5352 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
5353 (addsi3_cin_cout_imm_insn): Likewise.
5354 (adddi3_compareC): Delete insn.
5355 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
5356
5357 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5358
5359 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
5360 * (uaddv<mode>4): Delete expansion pattern.
5361 (uaddvsi4): New pattern.
5362 (uaddvdi4): Likewise.
5363 (addsi3_compareC): Delete pattern, change callers to use
5364 addsi3_compare_op1.
5365 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
5366 reduce the number of alternatives and re-work type attribute handling.
5367 (addsi3_compare_op2): Clean up constraints to reduce the number of
5368 alternatives and re-work type attribute handling.
5369 (compare_addsi2_op0): Likewise.
5370 (compare_addsi2_op1): Likewise.
5371
5372 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5373
5374 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
5375 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
5376 for DImode operands.
5377 (arm_gen_dicompare_reg): Remove unreachable expansion code.
5378 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
5379 CC_NCVmode.
5380 * config/arm/arm.md (arm_cmpdi_insn): Delete.
5381 (arm_cmpdi_unsigned): Delete.
5382
5383 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5384
5385 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
5386 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
5387 unchanged only if that will be cheaper.
5388 (arm_select_cc_mode): Recognize a swapped comparison that will
5389 be regenerated using RSBS or RSCS. Relax restriction on selecting
5390 CC_RSBmode.
5391 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
5392 a constant.
5393 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
5394 is CC_RSBmode.
5395 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
5396 as CCmode.
5397 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
5398 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
5399
5400 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5401
5402 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
5403 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
5404 need these modes.
5405 (arm_gen_dicompare_reg): New code to early expand the sub-operations
5406 of EQ, NE, LT, GE, LTU and GEU.
5407 * config/arm/iterators.md (CC_EXTEND): New code attribute.
5408 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
5409 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
5410 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
5411 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
5412
5413 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5414
5415 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
5416 operand 2.
5417 (cstoredi4): Similarly, but for operand 3.
5418 * config/arm/arm.c (arm_canoncialize_comparison): Allow
5419 canonicalization of unsigned compares with a constant on Arm.
5420 Prefer using const+1 and adjusting the comparison over swapping the
5421 operands whenever the original constant was not valid.
5422 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
5423 register here.
5424 (arm_validize_comparison): Do not force invalid DImode operands to
5425 registers here.
5426
5427 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5428
5429 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
5430 return CC_Zmode if comparing against a constant where one word is
5431 zero.
5432 (arm_gen_compare_reg): Split DImode handling to ...
5433 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
5434 against simple constants.
5435 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
5436
5437 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5438
5439 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
5440 (rsbsi3_carryin_shift_alt): Likewise.
5441
5442 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5443
5444 * config/arm/arm.md (negscc_borrow): New pattern.
5445 (mov_negscc): Don't split if the insn would match negscc_borrow.
5446 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
5447 (thumb2_mov_negscc_strict_it): Likewise.
5448
5449 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5450
5451 * config/arm/arm.c (arm_insn_cost): New function.
5452 (TARGET_INSN_COST): Override default definition.
5453
5454 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5455
5456 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5457 borrow operations.
5458
5459 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5460
5461 * config/arm/arm.c (strip_carry_operation): New function.
5462 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
5463 for SImode.
5464
5465 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5466
5467 * config/arm/predicates.md (arm_carry_operation): New special
5468 predicate.
5469 * config/arm/iterators.md (LTUGEU): Delete iterator.
5470 (cnb): Delete code attribute.
5471 (optab): Delete ltu and geu elements.
5472 * config/arm/arm.md (addsi3_carryin): Renamed from
5473 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
5474 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
5475 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
5476 (addsi3_carryin_clobercc): Similarly.
5477 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
5478 Thumb2 state.
5479
5480 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5481
5482 * config/arm/arm.md (arm_subdi3): Delete insn.
5483 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
5484
5485 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5486
5487 * config/arm/arm-modes.def (CC_RSB): New CC mode.
5488 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
5489 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
5490 return CC_RSBmode.
5491 (maybe_get_arm_condition_code): Handle CC_RSBmode.
5492 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
5493 expand.
5494 (subdi3): Rewrite to early-expand the sub-operations.
5495 (rsb_im_compare): New pattern.
5496 (negdi2): Delete.
5497 (negdi2_insn): Delete.
5498 (arm_negsi2): Correct type attribute to alu_imm.
5499 (negsi2_0compare): New insn pattern.
5500 (negsi2_carryin): New insn pattern.
5501
5502 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5503
5504 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
5505 operand 2.
5506
5507 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5508
5509 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
5510 to match canonical form.
5511
5512 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5513
5514 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
5515 (extend<mode>di2): Likewise.
5516
5517 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5518
5519 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
5520 * config/arm/arm.c (arm_decompose_di_binop): New function.
5521 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
5522 If not generating Thumb-1 code, decompose the operation into 32-bit
5523 pieces.
5524 * add0si_carryin_<optab>: New pattern.
5525
5526 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
5527
5528 * arm.md (adddi3): Only accept register operands.
5529 (arm_adddi3): Convert to simple insn with no split. Do not accept
5530 constants.
5531 (adddi_sesidi_di): Delete patern.
5532 (adddi_zesidi_di): Likewise.
5533 (uaddv<mode>4): Use LTU as condition for branch.
5534 (adddi3_compareV): Convert to simple insn with no split.
5535 (addsi3_compareV_upper): Delete pattern.
5536 (adddi3_compareC): Convert to simple insn with no split. Correct
5537 flags setting expression.
5538 (addsi3_compareC_upper): Delete pattern.
5539 (addsi3_compareC): Correct flags setting expression.
5540 (subdi3_compare1): Convert to simple insn with no split.
5541 (subsi3_carryin_compare): Delete pattern.
5542 (arm_subdi3): Convert to simple insn with no split.
5543 (subdi_zesidi): Delete pattern.
5544 (subdi_di_sesidi): Delete pattern.
5545 (subdi_zesidi_di): Delete pattern.
5546 (subdi_sesidi_di): Delete pattern.
5547 (subdi_zesidi_zesidi): Delete pattern.
5548 (negvdi3): Use s_register_operand.
5549 (negdi2_compare): Convert to simple insn with no split.
5550 (negdi2_insn): Likewise.
5551 (negsi2_carryin_compare): Delete pattern.
5552 (negdi_zero_extendsidi): Delete pattern.
5553 (arm_cmpdi_insn): Convert to simple insn with no split.
5554 (negdi2): Don't call gen_negdi2_neon.
5555 * config/arm/neon.md (adddi3_neon): Delete pattern.
5556 (subdi3_neon): Delete pattern.
5557 (negdi2_neon): Delete pattern.
5558 (splits for negdi2_neon): Delete splits.
5559
5560 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5561
5562 PR middle-end/92153
5563 * ggc-page.c (release_pages): Read g->alloc_size before free rather
5564 than after it.
5565
5566 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
5567
5568 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
5569 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
5570 new multilib variants and new mappings.
5571
5572 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5573
5574 PR target/86040
5575 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
5576
5577 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5578 Richard Sandiford <richard.sandiford@arm.com>
5579
5580 PR target/86753
5581 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
5582 and define hashmap traits for it.
5583 (loop_vec_info::scalar_cond_masked_set): New member.
5584 (vect_record_loop_mask): Adjust prototype.
5585 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
5586 Implement method.
5587 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
5588 vect_record_loop_mask.
5589 (vectorizable_live_operation): Likewise.
5590 (vect_record_loop_mask): New param scalar_mask. Add entry
5591 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
5592 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
5593 Pass it as last arg to vect_record_loop_mask.
5594 (vectorizable_call): Pass scalar_mask as last arg to
5595 vect_record_loop_mask.
5596 (vectorizable_store): Likewise.
5597 (vectorizable_load): Likewise.
5598 (vectorizable_condition): Check if another part of vectorized code
5599 applies loop_mask to condition or to it's inverse, and if yes,
5600 apply loop_mask to result of vector comparison.
5601
5602 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
5603
5604 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
5605
5606 2019-10-18 Jakub Jelinek <jakub@redhat.com>
5607
5608 PR tree-optimization/92056
5609 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
5610 before calling compute_builtin_object_size.
5611
5612 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
5613
5614 PR target/65342
5615 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
5616 (movdi_low_st): Delete.
5617 * config/rs6000/rs6000.c
5618 (darwin_rs6000_legitimate_lo_sum_const_p): New.
5619 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
5620 * config/rs6000/rs6000.md (movsi_low): Delete.
5621
5622 2019-10-17 Jason Merrill <jason@redhat.com>
5623
5624 * gimplify.h (get_initialized_tmp_var): Add default argument to
5625 post_p.
5626 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
5627 NULL post_p argument.
5628 * targhooks (std_gimplify_va_arg_expr): Likewise.
5629
5630 2019-10-17 Richard Biener <rguenther@suse.de>
5631
5632 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
5633 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
5634 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
5635 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
5636 * tree-vect-loop.c (vect_is_simple_reduction): Set
5637 STMT_VINFO_REDUC_CODE.
5638 (vectorizable_reduction): Remove dead and redundant code, use
5639 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
5640
5641 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
5642
5643 Fix breakage introduced by r276985.
5644
5645 * config/avr/avr.c (avr_option_override): Remove set of
5646 PARAM_ALLOW_STORE_DATA_RACES.
5647 * common/config/avr/avr-common.c (avr_option_optimization_table)
5648 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
5649
5650 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
5651
5652 * config/i386/i386.h (processor_costs): Add clear_ratio.
5653 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
5654 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
5655 of 6 and move_ratio in all cost models.
5656
5657 2019-10-17 Richard Biener <rguenther@suse.de>
5658
5659 * tree-vect-loop.c (check_reduction_path): Compute reduction
5660 operation here.
5661 (vect_is_simple_reduction): Remove special-case of single-stmt
5662 reduction path detection.
5663
5664 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
5665
5666 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
5667
5668 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
5669
5670 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
5671 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
5672 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
5673 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
5674 New combine patterns.
5675 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
5676 above.
5677 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
5678
5679 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
5680
5681 * tree-vrp.c (value_range_base::dump): Display +INF for both
5682 pointers and integers when appropriate.
5683
5684 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5685
5686 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
5687 when to use versioning threshold.
5688
5689 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5690
5691 * tree-vect-loop.c (determine_peel_for_niter): New function contained
5692 outlined code from ...
5693 (vect_analyze_loop_2): ... here.
5694
5695 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
5696
5697 * tree-vect-loop.c (vect_transform_loop): Move code from here...
5698 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
5699 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
5700
5701 2019-10-17 Richard Biener <rguenther@suse.de>
5702
5703 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
5704 (vect_is_simple_reduction): Move all validity checks ...
5705 (vectorizable_reduction): ... here. Compute whether we
5706 need a fold-left reduction here.
5707 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
5708 both overloads, check needs_fold_left_reduction_p directly.
5709 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
5710
5711 2019-10-17 Richard Biener <rguenther@suse.de>
5712
5713 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
5714 TARGET_MEM_REF creation.
5715
5716 2019-10-17 Richard Biener <rguenther@suse.de>
5717
5718 PR tree-optimization/92129
5719 * tree-vect-loop.c (vectorizable_reduction): Also fail
5720 on GIMPLE_SINGLE_RHS.
5721
5722 2019-10-17 Jakub Jelinek <jakub@redhat.com>
5723
5724 PR tree-optimization/92056
5725 * tree-object-size.c (cond_expr_object_size): Return early if then_
5726 processing resulted in unknown size.
5727
5728 PR tree-optimization/92115
5729 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
5730 temporary if it could trap.
5731
5732 2019-10-17 Richard Biener <rguenther@suse.de>
5733
5734 PR debug/91887
5735 * dwarf2out.c (gen_formal_parameter_die): Also try to match
5736 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
5737
5738 2019-10-16 Jakub Jelinek <jakub@redhat.com>
5739
5740 * tree-ssa-strlen.c (maybe_invalidate): Use
5741 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
5742
5743 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
5744 Jim Wilson <jimw@sifive.com>
5745
5746 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
5747 regs to SIBCALL_REGS.
5748 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
5749 passing regs to SIBCALL_REGS.
5750
5751 2019-10-16 Martin Sebor <msebor@redhat.com>
5752
5753 PR tree-optimization/83821
5754 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
5755 the length of a string when available.
5756 (handle_builtin_memset) Add argument.
5757 (handle_store, strlen_check_and_optimize_call): Same.
5758 (check_and_optimize_stmt): Same. Pass it to callees.
5759
5760 2019-10-16 Martin Sebor <msebor@redhat.com>
5761
5762 PR tree-optimization/91996
5763 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
5764 information.
5765 (compare_nonzero_chars): Add an overload.
5766 (count_nonzero_bytes): Add an argument. Call overload above.
5767 Handle non-constant lengths in some range.
5768 (handle_store): Add an argument.
5769 (check_and_optimize_stmt): Pass an argument to handle_store.
5770
5771 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
5772
5773 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
5774
5775 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5776
5777 * config/mips/mips.c (mips_expand_builtin_insn): Force the
5778 operands which correspond to the same input-output register to
5779 have the same pseudo assigned to them.
5780
5781 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
5782
5783 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
5784
5785 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
5786
5787 * config/aarch64/aarch64.c (aarch64_classify_symbol):
5788 Apply reasonable limit to symbol offsets.
5789
5790 2019-10-16 Richard Biener <rguenther@suse.de>
5791
5792 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
5793 (vect_is_simple_reduction): Delay checking to
5794 vectorizable_reduction and relax the checking.
5795 (vectorizable_reduction): Check we have a simple use. Check
5796 for bogus condition reductions.
5797 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
5798 are looking at the last stmt in a pattern sequence when
5799 filling in backedge PHI values.
5800
5801 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
5802 Jiufu Guo <guojiufu@linux.ibm.com>
5803
5804 PR target/70010
5805 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
5806 the callee explicitly disables some isa_flags the caller is using.
5807
5808 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5809
5810 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
5811
5812 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5813
5814 * genmodes.c (mode_data::order): New field.
5815 (blank_mode): Update accordingly.
5816 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
5817 (make_vector_modes): Likewise.
5818 (VECTOR_MODES): Update use accordingly.
5819 (cmp_modes): Sort by the new order field ahead of sorting by size.
5820 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
5821 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
5822 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
5823 (aarch64_classify_vector_mode): Handle the new partial modes.
5824 (aarch64_vl_bytes): New function.
5825 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
5826 when counting the number of registers in an SVE mode.
5827 (aarch64_class_max_nregs): Likewise.
5828 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
5829 in registers yet.
5830 (aarch64_classify_address): Treat partial vectors analogously
5831 to full vectors.
5832 (aarch64_print_address_internal): Consolidate the printing of
5833 MUL VL addresses, using aarch64_vl_bytes as the number of
5834 bytes represented by "VL".
5835 (aarch64_vector_mode_supported_p): Reject partial vector modes.
5836
5837 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5838
5839 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
5840 rather than known_lt when choosing frame layouts.
5841
5842 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5843
5844 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
5845 that all the adjustments add up to the full frame size.
5846 Use crtl->outgoing_args_size directly as the final adjustment
5847 where appropriate.
5848
5849 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5850
5851 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
5852 "frame" reference instead of always referring directly to
5853 "cfun->machine->frame".
5854
5855 2019-10-16 Richard Biener <rguenther@suse.de>
5856
5857 PR tree-optimization/92119
5858 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
5859 against missing bswap lhs.
5860
5861 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
5862
5863 PR middle-end/92033
5864 * poly-int.h (constant_lower_bound_with_limit): New function.
5865 (constant_upper_bound_with_limit): Likewise.
5866 * doc/poly-int.texi: Document them.
5867 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
5868 into the worst-case INTEGER_CST bounds.
5869
5870 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
5871
5872 PR ipa/91088
5873 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
5874 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
5875 * ipa-predicat.h (struct expr_eval_op): New struct.
5876 (expr_eval_ops): New typedef.
5877 (struct condition): Add type and param_ops fields, remove size field.
5878 (add_condition): Replace size parameter with type parameter, add
5879 param_ops parameter.
5880 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
5881 (predicate::add_clause): Add comparisons on type and param_ops.
5882 (dump_condition): Add debug dump for param_ops.
5883 (remap_after_inlining): Adjust call arguments to add_condition.
5884 (add_condition): Replace size parameter with type parameter, add
5885 param_ops parameter. Unshare constant value used in conditions.
5886 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
5887 parameter expressions using param_ops.
5888 (decompose_param_expr): New function.
5889 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
5890 to replace call to unmodified_parm_or_parm_agg_item.
5891 (set_switch_stmt_execution_predicate): Likewise.
5892 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
5893 with type.
5894 (inline_read_section): Read param_ops from summary stream.
5895 (ipa_fn_summary_write): Write param_ops to summary stream.
5896
5897 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
5898
5899 PR rtl-optimization/92107
5900 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
5901 expression written.
5902
5903 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5904
5905 * config/darwin.c: Update description of fix and continue.
5906
5907 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
5908
5909 * config/darwin.c (darwin_binds_local_p): Update to call
5910 default_binds_local_p_3 () directly. amend comments.
5911
5912 2019-10-15 Richard Biener <rguenther@suse.de>
5913
5914 * lto-streamer-out.c (lto_variably_modified_type_p): New.
5915 (tree_is_indexable): Use it.
5916 * tree-streamer-out.c (pack_ts_type_common_value_fields):
5917 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
5918 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
5919
5920 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5921
5922 * config/msp430/msp430.md (zero_extendqipsi2): New.
5923 (zero_extendqisi2): Optimize case where src register and base dst
5924 register are the same.
5925 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
5926 (zero_extendpsisi2): Optimize r->m case.
5927 Add unnamed insn patterns to catch insns combine searches for when
5928 optimizing pointer manipulation.
5929
5930 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5931
5932 * config/msp430/msp430.md: Group zero_extend* insns together.
5933
5934 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5935
5936 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
5937 constraint.
5938 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
5939 POST_INC.
5940 (msp430_subreg): Likewise.
5941 (msp430_split_addsi): Likewise.
5942 (msp430_print_operand_addr): Likewise.
5943 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
5944 (USE_STORE_POST_INCREMENT): Define.
5945 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
5946 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
5947 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
5948 (msp430_general_dst_operand): New.
5949 (msp430_general_dst_nonv_operand): New.
5950 (msp430_nonsubreg_operand): Remove.
5951 (msp430_nonsubreg_dst_operand): New.
5952 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
5953 of defunct msp430_nonsubreg_operand.
5954 (msp430_nonsubregnonpostinc_or_imm_operand): New.
5955
5956 2019-10-15 Richard Biener <rguenther@suse.de>
5957
5958 PR tree-optimization/91929
5959 * tree-ssa-pre.c (pre_expr_d::loc): New member.
5960 (get_or_alloc_expr_for_name): Initialize it.
5961 (get_or_alloc_expr_for_constant): Likewise.
5962 (phi_translate_1): Copy it.
5963 (create_expression_by_pieces): Use the original location
5964 of the expression for the inserted stmt.
5965 (compute_avail): Record the location of the stmt for the
5966 expressions created.
5967
5968 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
5969
5970 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
5971 before using tree_to_uhwi.
5972
5973 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
5974
5975 * config/s390/s390.md: Run %a0:DI splitters only after reload.
5976
5977 2019-10-15 Richard Biener <rguenther@suse.de>
5978
5979 PR tree-optimization/92094
5980 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
5981 do not adjust the reduction definition def type.
5982 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
5983 defines the latch argument of the PHI.
5984
5985 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
5986
5987 PR target/92035
5988 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
5989 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
5990 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
5991 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
5992 _mm_maskz_roundscale_round_sd): New intrinsics.
5993 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
5994 __builtin_ia32_rndscales?_mask_round builtins instead of
5995 __builtin_ia32_rndscales?_round.
5996 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
5997 __builtin_ia32_rndscalesd_round): Remove.
5998 (__builtin_ia32_rndscaless_mask_round,
5999 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6000 * config/i386/sse.md
6001 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6002 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6003 ... this, adjust and add subst atrributes to make it maskable.
6004
6005 2019-10-15 Richard Biener <rguenther@suse.de>
6006
6007 PR middle-end/92046
6008 * common.opt (fallow-store-data-races): New.
6009 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6010 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6011 * doc/invoke.texi (fallow-store-data-races): Document.
6012 (--param allow-store-data-races): Remove docs.
6013 * opts.c (default_options_table): Enable -fallow-store-data-races
6014 at -Ofast.
6015 (default_options_optimization): Do not enable --param
6016 allow-store-data-races at -Ofast.
6017 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
6018 instead of PARAM_ALLOW_STORE_DATA_RACES.
6019 * tree-ssa-loop-im.c (execute_sm): Likewise.
6020
6021 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6022
6023 PR tree-optimization/92085
6024 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
6025 instead of calling it unconditionally after
6026 delete_dead_or_redundant_assignment and fix indentation.
6027
6028 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6029
6030 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
6031 TARGET_VFP_DOUBLE.
6032 (*fmsub<SDF:mode>4): Likewise.
6033 *fnmsub<SDF:mode>4): Likewise.
6034 (*fnmadd<SDF:mode>4): Likewise.
6035
6036 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
6037
6038 * doc/tree-ssa.texi: Update renamed macro name.
6039
6040 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6041
6042 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
6043 vector constants.
6044
6045 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
6046
6047 * config/darwin.c: Use unsigned ints for the picbase label
6048 counters, initialise the vars explicitly.
6049 (update_pic_label_number_if_needed): Move a variable declaration
6050 to where it's needed.
6051 (machopic_output_function_base_name): Use a more strict checking
6052 assert, and and unsigned int for the picbase label counter.
6053 (machopic_get_function_picbase): Likewise.
6054
6055 2019-10-14 Richard Biener <rguenther@suse.de>
6056
6057 PR middle-end/92046
6058 * dse.c (scan_insn): Use param max_active_local_stores.
6059 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6060 based on optimization level.
6061 * loop-invariant.c (move_loop_invariants): Adjust
6062 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
6063 * opts.c (default_options_optimization): Do not adjust
6064 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
6065 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
6066
6067 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6068
6069 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
6070
6071 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6072
6073 * config/arm/arm.c (arm_option_override): Don't override sched
6074 pressure algorithm.
6075
6076 2019-10-14 Richard Biener <rguenther@suse.de>
6077
6078 PR tree-optimization/92069
6079 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
6080 cycles do not set vect_nested_cycle on the latch definition.
6081
6082 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
6083
6084 * function-abi.h (expr_callee_abi): Declare.
6085 * function-abi.cc (expr_callee_abi): New function.
6086
6087 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
6088
6089 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
6090 into [1,MAX].
6091 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
6092 non-zero being represented as [1,MAX].
6093
6094 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6095
6096 * tree-sra.c (dump_access): Add missing braces.
6097
6098 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6099
6100 * config/darwin.c (machopic_indirection_name): Rework the
6101 function to emit linker-visible symbols only for indirections
6102 in the data section. Clean up the code and update comments.
6103
6104 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6105
6106 * config/darwin.c (machopic_indirect_data_reference): Remove
6107 redundant code.
6108
6109 2019-10-13 Nathan Sidwell <nathan@acm.org>
6110
6111 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
6112
6113 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6114
6115 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
6116 c99_runtime.
6117
6118 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
6119
6120 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
6121 so non-virutal are before virutals.
6122 (output_function): Avoid body modifications.
6123
6124 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6125
6126 * config/pa/pa.c (pa_output_call): Load descriptor address to register
6127 %r22. Load function address before global pointer.
6128 (pa_attr_length_indirect_call): Adjust length of inline versions of
6129 $$dyncall.
6130 (pa_output_indirect_call): Remove fast inline version of $$dyncall
6131 before normal cases. Update inline $$dyncall sequences to preserve
6132 function descriptor address in register %r22.
6133 (TRAMPOLINE_CODE_SIZE): Adjust.
6134 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
6135 register %r22 contains trampoline address.
6136 (pa_trampoline_init): Adjust offsets.
6137 (pa_trampoline_adjust_address): Likewise.
6138 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
6139
6140 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6141
6142 PR target/67183
6143 * config/darwin.c (machopic_indirection): New field to flag
6144 non-lazy-symbol-pointers in the data section.
6145 (machopic_indirection_name): Compute if an indirection should
6146 appear in the data section.
6147 (machopic_output_data_section_indirection): New callback split
6148 from machopic_output_indirection.
6149 (machopic_output_stub_indirection): Likewise.
6150 (machopic_output_indirection): Retain the code for non-lazy
6151 symbol pointers in their regular section.
6152 (machopic_finish): Use the new callbacks to order the indirection
6153 output.
6154
6155 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6156
6157 * config/darwin-protos.h (machopic_finish): Delete.
6158 * config/darwin.c (machopic_finish): Make static.
6159
6160 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6161
6162 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
6163 sections when building kernel extension code.
6164
6165 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
6166
6167 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
6168 later standard."
6169
6170 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6171
6172 * config/pa/pa.c (pa_option_override): Remove trailing comma
6173 from warning.
6174
6175 2019-10-12 Jakub Jelinek <jakub@redhat.com>
6176
6177 PR middle-end/92063
6178 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
6179 <case VEC_COND_EXPR>: Return false with *handled = false.
6180 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
6181 recursing on the first operand.
6182 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6183 instead of tree_could_trap_p.
6184 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6185
6186 2019-10-11 Jim Wilson <jimw@sifive.com>
6187
6188 PR rtl-optimization/91860
6189 * combine.c (subst): If new_rtx is a constant, also check for
6190 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6191
6192 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6193
6194 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6195 INTVAL when calling store_bit_field.
6196
6197 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6198
6199 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6200 size.
6201
6202 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6203
6204 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6205 vectorizable_live_operation.
6206 (vectorizable_live_operation): Adjust parameters.
6207 * tree-vect-stmts.c (vect_init_vector,
6208 vect_gen_widened_results_half): Fix typo in function comment.
6209 (can_vectorize_live_stmts): Adjust function comment.
6210 Adjust parameters. Adjust call to vectorizable_live_operation.
6211 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6212 (vect_transform_stmt): Adjust function comment. Adjust call to
6213 can_vectorize_live_stmts.
6214 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6215
6216 2019-10-11 Richard Biener <rguenther@suse.de>
6217
6218 PR tree-optimization/90883
6219 PR tree-optimization/91091
6220 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6221 alias-sets both for recording VN table entries and continuing
6222 walking after translating through copies. Handle same-sized
6223 reads from SSA names by returning the plain SSA name.
6224 (eliminate_dom_walker::eliminate_stmt): Properly handle
6225 non-size precision stores in redundant store elimination.
6226
6227 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6228
6229 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
6230 (ggc_collect): Dump later to not interfere with release_page dump.
6231 (ggc_trim): New function.
6232 * ggc-none.c (ggc_trim): New.
6233 * ggc.h (ggc_trim): Declare.
6234
6235 2019-10-11 Richard Biener <rguenther@suse.de>
6236
6237 PR tree-optimization/92066
6238 PR tree-optimization/92046
6239 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6240 Fix bogus cost model check.
6241
6242 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
6243
6244 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
6245 (LANG_HOOKS_DECLS): Add it.
6246 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
6247 update comment for omp_is_optional_argument.
6248 * omp-general.c (omp_is_allocatable_or_ptr): New.
6249 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
6250 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
6251 Fortran's optional arguments and allocatable/pointer scalars
6252 with use_device_addr.
6253
6254 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
6255
6256 PR target/77918
6257 * config/s390/2827.md: Add new opcodes.
6258 * config/s390/2964.md: Likewise.
6259 * config/s390/3906.md: Likewise.
6260 * config/s390/8561.md: Likewise.
6261 * config/s390/s390-builtins.def (s390_vfchesb): Use
6262 the new vec_cmpgev4sf_quiet_nocc.
6263 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
6264 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
6265 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
6266 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
6267 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
6268 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
6269 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
6270 * config/s390/s390-modes.def (CCSFPS): New mode.
6271 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
6272 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
6273 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
6274 (s390_expand_vec_compare): Use non-signaling patterns where
6275 necessary.
6276 (s390_reverse_condition): Support CCSFPS.
6277 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
6278 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
6279 (asm_fcmp_op): Likewise.
6280 (*smaxv2df3_vx): Use pattern for quiet comparison.
6281 (*sminv2df3_vx): Likewise.
6282 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
6283 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
6284 (vec_cmpgt<mode>_quiet_nocc): Likewise.
6285 (vec_cmplt<mode>_quiet_nocc): New expander.
6286 (vec_cmpge<mode>_quiet_nocc): New pattern.
6287 (vec_cmple<mode>_quiet_nocc): New expander.
6288 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
6289 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
6290 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
6291 (*vec_cmpge<mode>_signaling_nocc): Likewise.
6292 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
6293 (vec_cmpungt<mode>): New expander.
6294 (vec_cmpunge<mode>): Likewise.
6295 (vec_cmpuneq<mode>): Use quiet patterns.
6296 (vec_cmpltgt<mode>): Allow only on z14+.
6297 (vec_cmpordered<mode>): Use quiet patterns.
6298 (vec_cmpunordered<mode>): Likewise.
6299 (VEC_CMP_EXPAND): Add ungt and unge.
6300
6301 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
6302
6303 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
6304 parameter.
6305 * lto-streamer-out.c: Include tree-dfa.h.
6306 (output_cfg): Do not use cfun.
6307 (lto_prepare_function_for_streaming): New.
6308 (output_function): Do not push cfun; do not initialize loop optimizer.
6309 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
6310 * passes.c (ipa_write_summaries): Use it.
6311 (ipa_write_optimization_summaries): Do not modify bodies.
6312 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
6313 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
6314 * tree-ssa-dse.c (pass_dse::execute): Update use of
6315 renumber_gimple_stmt_uids.
6316 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
6317
6318 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
6319
6320 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
6321 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
6322
6323 2019-10-10 Joseph Myers <joseph@codesourcery.com>
6324
6325 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
6326 macros.
6327 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
6328 Also define DFP macros for these conditions.
6329 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
6330 DEC128_SUBNORMAL_MIN): Do not define.
6331 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
6332 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
6333
6334 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
6335 Sandra Loosemore <sandra@codesourcery.com>
6336
6337 PR middle-end/26241
6338 * doc/lto.texi (IPA): Reference to the IPA passes.
6339 * doc/passes.texi (Pass manager): Add node IPA passes and
6340 description for each IPA pass.
6341
6342 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6343
6344 * ipa-reference.c: Do not include splay-tree.h
6345 (reference_vars_to_consider): Turn to hash map.
6346 (get_static_name, ipa_init, analyze_function, propagate,
6347 stream_out_bitmap, ipa_reference_write_optimization_summary,
6348 ipa_reference_write_optimization_summary): Update.
6349
6350 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6351
6352 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
6353
6354 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
6355
6356 * config/darwin.c: Lookup Objective C metadata and force indirection
6357 for IVAR refs.
6358
6359 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
6360
6361 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
6362 addresses.
6363 (mem_operand_gpr): Add check for prefixed addresses.
6364 (mem_operand_ds_form): Add check for prefixed addresses.
6365 (rs6000_legitimate_offset_address_p): If we support prefixed
6366 addresses, check for a 34-bit offset instead of 16-bit.
6367 (rs6000_legitimate_address_p): Add check for prefixed addresses.
6368 Do not allow load/store with update if the address is prefixed.
6369 (rs6000_mode_dependent_address): If we support prefixed
6370 addresses, check for a 34-bit offset instead of 16-bit.
6371
6372 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
6373
6374 PR target/77918
6375 * config/s390/vector.md (vcond_comparison_operator): New
6376 predicate.
6377 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
6378
6379 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6380
6381 PR 87488
6382 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
6383 -D.
6384 * configure.ac (--with-documentation-root-url): New option.
6385 * configure: Regenerate.
6386 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
6387 option URL, add it as a new string field of the diagnostic option.
6388 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
6389 (print_option_information): If get_option_url is non-NULL, call
6390 it, and if the result is non-NULL, potentially emit an escape
6391 sequence to markup the option text with the resulting URL.
6392 * diagnostic.h (diagnostic_context::get_option_url): New callback.
6393 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
6394 example of JSON output.
6395 * opts-diagnostic.h (get_option_url): New decl.
6396 * opts.c (get_option_url): New function.
6397 * toplev.c (general_init): Initialize the get_option_url callback.
6398
6399 2019-10-10 David Malcolm <dmalcolm@redhat.com>
6400
6401 PR 87488
6402 * common.opt (fdiagnostics-urls=): New option.
6403 (diagnostic-url.h): Add SourceInclude.
6404 (diagnostic_url_rule): New enum.
6405 * diagnostic-color.c: Include "diagnostic-url.h".
6406 (diagnostic_urls_enabled_p): New function.
6407 * diagnostic-url.h: New file.
6408 * diagnostic.c: Include "diagnostic-url.h".
6409 (diagnostic_urls_init): New function.
6410 * diagnostic.h (diagnostic_urls_init): New decl.
6411 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
6412 -fdiagnostics-urls to the list.
6413 (-fdiagnostics-urls): New option.
6414 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
6415 (driver::global_initializations): Call diagnostic_urls_init.
6416 * opts-global.c (init_options_once): Likewise.
6417 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
6418 * pretty-print.c (pretty_printer::pretty_printer): Initialize
6419 show_urls.
6420 (pp_begin_url): New function.
6421 (pp_end_url): New function.
6422 (selftest::test_urls): New selftest.
6423 (selftest::pretty_print_c_tests): Call it.
6424 * pretty-print.h (pretty_printer::show_urls): New field.
6425 (pp_begin_url): New decl.
6426 (pp_end_url): New decl.
6427
6428 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
6429
6430 PR target/92022
6431 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
6432
6433 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
6434
6435 PR target/88630
6436 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
6437 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
6438 also for TARGET_FPU_SH4_300.
6439 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
6440 TARGET_SH4_300.
6441 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
6442 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
6443 (*negsf2_i): Split into ...
6444 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
6445 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
6446 (**abssf2_i): Split into ...
6447 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
6448 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
6449 (*negdf2_i): Split into ...
6450 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
6451 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
6452 (**abssf2_i): Split into ...
6453 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
6454
6455 2019-10-10 Richard Biener <rguenther@suse.de>
6456
6457 PR middle-end/92046
6458 * opts.c (finish_options): Do not influence global --params
6459 from options that are adjustable per function.
6460 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6461 Apply --param adjustment based on active cost-model.
6462 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
6463 further store-sinking when vectorization or if-conversion
6464 are not enabled.
6465
6466 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
6467
6468 PR middle-end/92037
6469 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
6470 rather than ggc_alloc_cleared to alloc symbol table.
6471 * toplev.c (general_init): Likewise.
6472 * cgraph.h (symbol_table): Explicitly construct every field.
6473
6474 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6475
6476 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
6477 (PF_Z15): ... this.
6478 * config.gcc: Add z15 as option for --with-arch and --with-tune
6479 configure switches.
6480 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
6481 error reporting for unsupported builtins.
6482 * config/s390/s390-opts.h (enum processor_type): Rename
6483 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
6484 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
6485 * config/s390/driver-native.c (s390_host_detect_local_cpu):
6486 Likewise.
6487 * config/s390/s390-builtins.def: Likewise.
6488 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
6489 (s390_expand_builtin): Add missing check for unsupported builtins.
6490 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
6491 (s390_rtx_costs): Likewise.
6492 (s390_get_sched_attrmask): Rename arch13 to z15.
6493 (s390_get_unit_mask): Likewise.
6494 (s390_is_fpd): Likewise.
6495 (s390_is_fxd): Likewise.
6496 * config/s390/s390.h (enum processor_flags): Likewise.
6497 * config/s390/s390.md: Likewise.
6498 * config/s390/vector.md: Likewise.
6499 * config/s390/vx-builtins.md: Likewise.
6500 * config/s390/s390.opt: Add z15 to processor_type value.
6501
6502 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
6503
6504 PR target/91035
6505 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
6506 prototype.
6507 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
6508 ("split_stack_data", "split_stack_call")
6509 ("split_stack_call_<mode>", "split_stack_cond_call")
6510 ("split_stack_cond_call_<mode>"): Remove.
6511 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
6512 insn definition.
6513 * config/s390/s390.c (s390_output_split_stack_data): New function.
6514 (s390_expand_split_stack_prologue): Use the merged expander.
6515
6516 2019-10-09 Martin Sebor <msebor@redhat.com>
6517
6518 PR tree-optimization/90879
6519 * builtins.c (check_access): Avoid using maxbound when null.
6520 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
6521 * doc/invoke.texi (-Wstring-compare): Document new warning option.
6522 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
6523 conditional.
6524 (get_range_strlen): Overwrite initial maxbound when non-null.
6525 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
6526 changes.
6527 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
6528 (used_only_for_zero_equality): New function.
6529 (handle_builtin_memcmp): Call it.
6530 (determine_min_objsize): Return an integer instead of tree.
6531 (get_len_or_size, strxcmp_eqz_result): New functions.
6532 (maybe_warn_pointless_strcmp): New function.
6533 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
6534 between a longer string and a smaller array.
6535 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
6536
6537 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6538
6539 * config/darwin.c (darwin_override_options): Make the check for
6540 Objective-C ABI version more specific for 64bit code.
6541
6542 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
6543
6544 * config/darwin.c (machopic_indirect_data_reference): Set flag to
6545 indicate that the new symbol is an indirection.
6546 (machopic_indirect_call_target): Likewise.
6547 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
6548 (MACHO_SYMBOL_INDIRECTION_P): New.
6549 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
6550
6551 2019-10-08 Jason Merrill <jason@redhat.com>
6552
6553 * doc/invoke.texi: Document -fconcepts-ts.
6554
6555 2019-10-09 Richard Biener <rguenther@suse.de>
6556
6557 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
6558 allow stmts other than GIMPLE_ASSIGN in nested cycles.
6559
6560 2019-10-08 Richard Biener <rguenther@suse.de>
6561
6562 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
6563 (_stmt_vec_info::force_single_cycle): Likewise.
6564 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
6565 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
6566 * tree-vect-loop.c (vectorizable_reduction): Set
6567 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
6568 (vect_transform_reduction): Use them to remove redundant code.
6569 (vect_transform_cycle_phi): Likewise.
6570
6571 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
6572
6573 PR tree-optimization/90836
6574 * match.pd (popcount): New pattern.
6575
6576 2019-10-08 Martin Sebor <msebor@redhat.com>
6577
6578 PR middle-end/92026
6579 PR middle-end/92014
6580 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
6581 again once nbytes has been set. Set the access size when not yet set.
6582
6583 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6584
6585 * config/darwin.c (machopic_select_section): Remove dead code for
6586 old Objective-C section selection method, replace with unreachable.
6587
6588 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
6589
6590 * config/darwin.c (machopic_indirect_data_reference): Check for
6591 required indirections before making direct access to defined
6592 values.
6593 (machopic_output_indirection): Place the indirected pointes for
6594 required indirections into the non-lazy symbol pointers section.
6595 (darwin_encode_section_info):
6596 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
6597 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
6598
6599 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
6600
6601 PR target/91994
6602 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
6603 instead of ALL_SSE_REG to check if function call preserves some
6604 256-bit SSE registers.
6605
6606 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
6607
6608 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
6609 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
6610 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
6611
6612 2019-10-08 Richard Biener <rguenther@suse.de>
6613
6614 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
6615 (_stmt_vec_info::is_reduc_info): Add.
6616 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
6617 (vectorizable_condition): Remove.
6618 (vectorizable_shift): Likewise.
6619 (vectorizable_reduction): Adjust.
6620 (info_for_reduction): New.
6621 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
6622 (vect_analyze_scalar_cycles_1): ... here.
6623 (vect_analyze_loop_operations): Adjust.
6624 (needs_fold_left_reduction_p): Simplify for single caller.
6625 (vect_is_simple_reduction): Likewise. Remove stmt restriction
6626 for nested cycles not part of double reductions.
6627 (vect_model_reduction_cost): Pass in the reduction type.
6628 (info_for_reduction): New function.
6629 (vect_create_epilog_for_reduction): Use it, access reduction
6630 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
6631 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6632 (vectorize_fold_left_reduction): Remove pointless assert.
6633 (vectorizable_reduction): Analyze the full reduction when
6634 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
6635 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
6636 stmt code-generation to vectorizable_* in most cases. Verify
6637 code-generation only for cases handled by
6638 vect_transform_reductuon.
6639 (vect_transform_reduction): Use info_for_reduction to get at
6640 reduction meta. Simplify.
6641 (vect_transform_cycle_phi): Likewise.
6642 (vectorizable_live_operation): Likewise.
6643 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
6644 at the PHI node for STMT_VINFO_REDUC_TYPE.
6645 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
6646 longer necessary code.
6647 * tree-vect-stmts.c (vectorizable_shift): Make static again.
6648 (vectorizable_condition): Likewise. Get at reduction related
6649 info via info_for_reduction.
6650 (vect_analyze_stmt): Adjust.
6651 (vect_transform_stmt): Likewise.
6652 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
6653 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
6654
6655 2019-10-08 Joseph Myers <joseph@codesourcery.com>
6656
6657 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
6658 -fno-fp-int-builtin-inexact default for C2X.
6659
6660 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6661 Richard Biener <rguenther@suse.de>
6662
6663 PR tree-optimization/91532
6664 * tree-if-conv.c: Include tree-ssa-dse.h.
6665 (ifcvt_local_dce): Change param from bb to loop,
6666 and call dse_classify_store.
6667 (tree_if_conversion): Pass loop instead of loop->header as arg
6668 to ifcvt_local_dce.
6669 * tree-ssa-dse.c: Include tree-ssa-dse.h.
6670 (delete_dead_or_redundant_assignment): Remove static qualifier from
6671 declaration, and add prototype in tree-ssa-dse.h.
6672 (dse_store_status): Move to tree-ssa-dse.h.
6673 (dse_classify_store): Remove static qualifier and add new tree param
6674 stop_at_vuse, and add prototype in tree-ssa-dse.h.
6675 * tree-ssa-dse.h: New header.
6676
6677 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6678
6679 * config/darwin.c (machopic_output_indirection): Don't put
6680 hidden symbol indirections into the .data section, use the
6681 non-lazy symbol pointers section as normal.
6682 (darwin_encode_section_info): Record if a symbol is hidden.
6683 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
6684 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
6685
6686 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
6687
6688 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
6689 predicates instead of accessing bits directly.
6690 (machopic_indirect_call_target): Likewise.
6691 (machopic_output_indirection): Likewise.
6692 (darwin_encode_section_info): Improve description. Use renamed
6693 symbol flags. Use predicate macros for variables and functions.
6694 * config/darwin.h:
6695 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
6696 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
6697 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
6698 (MACHO_SYMBOL_VARIABLE_P): New.
6699 (MACHO_SYMBOL_DEFINED_P):New.
6700 (MACHO_SYMBOL_STATIC_P): New.
6701 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
6702 (SYMBOL_FLAG_SUBT_DEP): New.
6703 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
6704
6705 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6706
6707 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
6708 (msp430_expand_epilogue): Likewise.
6709 * config/msp430/predicates.md: Likewise.
6710 * config/msp430/msp430.md: Likewise.
6711 Replace blocks of 8 spaces with tabs.
6712
6713 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6714
6715 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
6716 * config/msp430/msp430.c (msp430_split_addsi): New.
6717 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
6718 a block of C code for splitting addsi.
6719
6720 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
6721
6722 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
6723 ix86_expand_rounddf_32): Reorder functions.
6724 * config/i386/i386-protos.h: Update.
6725
6726 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6727
6728 * config.in: Regenerate.
6729 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
6730 Add new "Yx" constraint.
6731 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
6732 function.
6733 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
6734 prototype.
6735 * config/msp430/msp430.c (msp430_option_override): Allow the lower
6736 code/data region to be selected in the small memory model.
6737 (msp430_section_attr): Don't warn if the "section" and "lower"
6738 attributes are used together.
6739 (msp430_handle_generic_attribute): Likewise.
6740 (msp430_var_in_low_mem): New function.
6741 (TARGET_ENCODE_SECTION_INFO): Define.
6742 (msp430_encode_section_info): New function.
6743 (gen_prefix): Return early in the small memory model.
6744 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
6745 ".lower" prefix if -m{code,data}-region=lower have been passed.
6746 (msp430_output_aligned_decl_common): Emit common symbols when
6747 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
6748 set.
6749 (TARGET_ASM_FILE_END): Define.
6750 (msp430_file_end): New function.
6751 (msp430_do_not_relax_short_jumps): Allow relaxation when
6752 function will be in the lower region.
6753 (msp430_op_not_in_high_mem): New function.
6754 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
6755 the 'X' operand selector.
6756 Clarify comment for 'x' operand selector.
6757 * config/msp430/msp430.h (LINK_SPEC): Propagate
6758 -m{code,data}-region to the linker via spec function
6759 msp430_propagate_region_opt.
6760 (msp430_propagate_region_opt): New prototype.
6761 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
6762 (SYMBOL_FLAG_LOW_MEM): Define.
6763 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
6764 selector.
6765 (zero_extendqihi2): Fix operand number used by "%X" selector.
6766 (zero_extendqisi2): Likewise.
6767 (zero_extendhisi2): Likewise.
6768 (movqi): Use "Yx" constraint in place of "%X" operand selector.
6769 (movhi): Likewise.
6770 (addqi3): Likewise.
6771 (addhi3): Likewise.
6772 (addsi3): Likewise.
6773 (addhi3_cy): Likewise.
6774 (addchi4_cy): Likewise.
6775 (subqi3): Likewise.
6776 (subhi3): Likewise.
6777 (subsi3): Likewise.
6778 (bic<mode>3): Likewise.
6779 (and<mode>3): Likewise.
6780 (ior<mode>3): Likewise.
6781 (xor<mode>3): Likewise.
6782 (slli_1): Add missing "%X" operand selector.
6783 (slll_1): Likewise.
6784 (slll_2): Likewise.
6785 (srai_1): Likewise.
6786 (sral_1): Likewise.
6787 (sral_2): Likewise.
6788 (srli_1): Likewise.
6789 (srll_1): Likewise.
6790 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
6791 selector.
6792 (cbranchhi4_real): Likewise.
6793 (cbranchqi4_reversed): Likewise.
6794 (cbranchhi4_reversed): Likewise.
6795 (*bitbranch<mode>4): Likewise.
6796 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
6797 * config/msp430/msp430.opt (mcode-region=): Set default to
6798 MSP430_REGION_LOWER. Improve docstring.
6799 (mdata-region=): Likewise.
6800 (muse-lower-region-prefix): New option.
6801 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
6802 mdata-region=none multilib.
6803 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
6804 mdata-region=none multilib.
6805 MULTILIB_EXCEPTIONS: Remove.
6806 MULTILIB_REQUIRED: Define.
6807 * configure: Regenerate.
6808 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
6809 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
6810 * doc/extend.texi: Clarify comment for {upper,lower,either}
6811 function attributes.
6812 Add separate description for "lower" variable attribute.
6813
6814 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6815
6816 PR target/77918
6817 * optabs-tree.c (vcond_icode_p): New function.
6818 (vcond_eq_icode_p): Likewise.
6819 (expand_vec_cond_expr_p): Use vcond_icode_p and
6820 vcond_eq_icode_p.
6821 * optabs.c (can_vcond_compare_p): New function.
6822 * optabs.h (can_vcond_compare_p): Likewise.
6823
6824 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
6825
6826 PR target/77918
6827 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
6828 caller passes a non-trapping condition.
6829 (is_gimple_condexpr): Allow trapping conditions.
6830 (is_gimple_condexpr_1): New helper function.
6831 (is_gimple_condexpr_for_cond): New function, acts like old
6832 is_gimple_condexpr.
6833 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
6834 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
6835 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
6836 * gimplify.c (gimplify_cond_expr): Use
6837 is_gimple_condexpr_for_cond.
6838 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
6839 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
6840 VEC_COND_EXPR.
6841 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
6842 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
6843 is_gimple_condexpr_for_cond, remove pointless tmp check
6844 (forward_propagate_into_cond): Remove pointless tmp check.
6845
6846 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6847
6848 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
6849 match that of other gsi_next_* functions. Adjust the comment.
6850 (gsi_start_nonvirtual_phis): New function.
6851 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
6852 gsi_next_nonvirtual_phi accordingly. (No functional change.)
6853
6854 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
6855
6856 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
6857 setjmp situation here. Fix a verb's ending: "the exact variables or
6858 elements for which there are warnings depends" -> "... depend".
6859
6860 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6861
6862 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
6863
6864 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6865
6866 * ipa-prop.c (ipa_vr::nonzero_p): New.
6867 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
6868 non-zero range.
6869 * ipa-prop.h (class ipa_vr): Add nonzero_p.
6870 * tree-vrp.c (range_has_numeric_bounds_p): New.
6871 (range_int_cst_p): Use range_has_numeric_bounds_p.
6872 (get_range_op_handler): New.
6873 (supported_types_p): New.
6874 (defined_ranges_p): New.
6875 (drop_undefines_to_varying): New.
6876 (range_fold_binary_symbolics_p): New.
6877 (range_fold_unary_symbolics_p): New.
6878 (range_fold_unary_expr): Extract out into above functions.
6879 (range_fold_binary_expr): Same.
6880 (value_range_base::normalize_addresses): New.
6881 (value_range_base::normalize_symbolics): Normalize addresses.
6882 * tree-vrp.h (class value_range_base): Add normalize_addresses.
6883
6884 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
6885
6886 * tree-vrp.c (value_range_base::singleton_p): Use
6887 value_range_base::num_pairs instead of vrp_val_is* to check
6888 if a range has one sub-range.
6889
6890 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6891
6892 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
6893 DEF is not a true earlyclobber but is tied to a specific input
6894 operand, and so is effectively earlyclobber wrt inputs that have
6895 different values.
6896 (make_early_clobber_and_input_conflicts): Pass this case to the above.
6897
6898 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6899
6900 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
6901 (pod_mode): Mark operators likewise.
6902 (scalar_int_mode): Mark non-default constructors and
6903 operators with CONSTEXPR.
6904 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
6905 (fixed_size_mode): Likewise.
6906
6907 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
6908
6909 PR target/91994
6910 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
6911 and wrap the unspec_volatile in a parallel.
6912 (*avx_vzeroupper): New define_insn. Use a match_parallel around
6913 the unspec_volatile.
6914 * config/i386/predicates.md (vzeroupper_pattern): Expect the
6915 unspec_volatile to be wrapped in a parallel.
6916 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
6917 (ix86_add_reg_usage_to_vzerouppers): New functions.
6918 (rest_of_handle_insert_vzeroupper): Use them to add register
6919 usage information to the vzeroupper instructions.
6920
6921 2019-10-07 Richard Biener <rguenther@suse.de>
6922
6923 PR tree-optimization/91975
6924 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
6925 handle invariants.
6926
6927 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
6928
6929 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
6930 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
6931
6932 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
6933
6934 * config/darwin.c (darwin_override_options): Adjust objective-c
6935 ABI version error messages to avoid punctuation and contracted
6936 negations.
6937
6938 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
6939
6940 * ipa-inline.c: Fix type; compute size rather than self_size
6941 for size of caller function.
6942
6943 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
6944
6945 PR target/59888
6946 * config/darwin.c (darwin_rodata_section): Add relocation flag,
6947 choose const_data section for constants with relocations.
6948 (machopic_select_section): Pass relocation flag to
6949 darwin_rodata_section ().
6950
6951 2019-10-05 Jakub Jelinek <jakub@redhat.com>
6952
6953 PR tree-optimization/91734
6954 * generic-match-head.c: Include fold-const-call.h.
6955 * match.pd (sqrt(x) cmp c): Check the boundary value and
6956 in case inexact computation of c*c affects comparison of the boundary,
6957 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
6958 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
6959 for -frounding-math. For c2, try the next smaller or larger floating
6960 point constant depending on comparison code and if it has the same
6961 sqrt as c2, use it instead of c2.
6962
6963 2019-10-04 Martin Sebor <msebor@redhat.com>
6964
6965 PR middle-end/91977
6966 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
6967 MEM_REF right operand. Avoid failing for MEM_REF assignments from
6968 uninitialized objects.
6969
6970 2019-10-04 Martin Sebor <msebor@redhat.com>
6971
6972 * builtins.c (compute_objsize): Add an argument.
6973 * tree-object-size.c (addr_object_size): Same.
6974 (compute_builtin_object_size): Same.
6975 * tree-object-size.h (compute_builtin_object): Same.
6976
6977 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
6978
6979 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
6980
6981 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
6982
6983 * match.pd (sinh (x) / cosh (x)): New simplification rule.
6984
6985 2019-10-04 Martin Jambor <mjambor@suse.cz>
6986
6987 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
6988 fntype when switching to calling memcpy instead of memset.
6989
6990 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6991
6992 * hash-table.h (hash_table::empty_slow): Don't assign
6993 size_t values to int variables.
6994
6995 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6996
6997 * expr.c (convert_mode_scalar): Remove shadowing local var.
6998 (emit_block_move): Rename local vars.
6999 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7000 (emit_push_insn): Rename local vars.
7001 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7002 shadowing local vars.
7003 (store_constructor): Remove shadowing local vars. Rename local var.
7004 (store_field, expand_cond_expr_using_cmove,
7005 expand_expr_real_2): Remove shadowing local vars.
7006 (expand_expr_real_1,
7007 do_store_flag): Remove shadowing local vars. Rename local vars.
7008
7009 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7010
7011 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7012
7013 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7014
7015 * genmatch.c (commutate): Rename local var.
7016 (lower_cond): Reuse local var.
7017 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
7018 dt_operand::gen, dt_operand::gen_gimple_expr,
7019 dt_simplify::gen): Add a param. Rename generated vars.
7020 (decision_tree::insert_operand,
7021 (capture_info::walk_match, capture_info::walk_result,
7022 capture_info::walk_c_expr): Rename local vars.
7023 (expr::gen_transform): Rename generated vars.
7024 Use snprintf. Rename local vars.
7025 (capture::gen_transform, dt_operand::get_name,
7026 dt_operand::gen_opname): Rename generated vars.
7027 (write_predicate): Adjust call to gen_kids.
7028 (parser::get_internal_capture_id): Rename generated vars.
7029 (parser::parse_expr): Rename local vars.
7030 (parser::parse_if): Remove local var.
7031 (parser::parse_pattern, add_operator): Rename local vars.
7032
7033 2019-10-04 Joseph Myers <joseph@codesourcery.com>
7034
7035 * builtins.def (DEF_C2X_BUILTIN): New macro.
7036 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
7037 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
7038 (strndup): Use DEF_C2X_BUILTIN.
7039 * coretypes.h (enum function_class): Add function_c2x_misc.
7040
7041 2019-10-04 Maya Rashish <coypu@sdf.org>
7042
7043 * ira-color.c (update_costs_from_allocno): Call
7044 ira_init_register_move_cost_if_necessary.
7045
7046 2019-10-04 Jeff Law <law@redhat.com>
7047
7048 * config/h8300/h8300.md (cpymemsi): Disable.
7049 (movmd, movmd_internal_<mode>, movstr, movsd):
7050 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
7051 (movmd splitter, movsd splitter): Likewise.
7052
7053 * range-op.cc (range_tests): Avoid two tests when ints and
7054 shorts are the same size.
7055
7056 2019-10-04 Richard Biener <rguenther@suse.de>
7057
7058 PR lto/91968
7059 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
7060 BLOCK_VARS.
7061
7062 2019-10-04 Richard Biener <rguenther@suse.de>
7063
7064 PR tree-optimization/91982
7065 * tree-vect-loop.c (vectorizable_live_operation): Also guard
7066 against EXTRACT_LAST_REDUCTION.
7067 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
7068
7069 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
7070
7071 * range-op.o (value_range_from_overflowed_bounds): Rename from
7072 adjust_overflow_bound.
7073 (value_range_with_overflow): Rename from
7074 create_range_with_overflow.
7075 (create_possibly_reversed_range): Adjusted for above renames.
7076 (operator_*::wi_fold): Same.
7077 (cross_product_operator::wi_cross_productor): Same.
7078
7079 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7080
7081 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
7082 -Wshadow=compatible-local): Fix description.
7083 Add an example where -Wshadow=compatible-local does not
7084 warn.
7085
7086 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
7087
7088 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
7089
7090 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
7091 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
7092
7093 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
7094
7095 * expr.c (emit_block_move_hints): Slightly cleaner fix to
7096 can_move_by_pieces issue.
7097
7098 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
7099
7100 PR target/87243
7101 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
7102 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
7103 is available and the user has not set one on the command line.
7104
7105 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7106
7107 PR target/91769
7108 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
7109 instead of REGNO equality check on addr.reg.
7110
7111 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
7112
7113 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
7114 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
7115 * doc/invoke.texi (inline-heuristics-hint-percent,
7116 inline-heuristics-hint-percent-O2): Document.
7117 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
7118 hint attribute.
7119 (can_inline_edge_by_limits_p): Use it.
7120
7121 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
7122
7123 * config/arm/arm.c (arm_print_value): Use real_to_decimal
7124 to print CONST_DOUBLEs.
7125
7126 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
7127
7128 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
7129 * ipa-prop.c (ipcp_free_transformation_sum): New function.
7130 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
7131
7132 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
7133
7134 * Makefile.in (OBJS): Add range.o and range-op.o.
7135 Remove wide-int-range.o.
7136 * function-tests.c (test_ranges): New.
7137 (function_tests_c_tests): Call test_ranges.
7138 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
7139 range_fold_unary_expr instead of extract_range_from_unary_expr.
7140 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7141 * range-op.cc: New file.
7142 * range-op.h: New file.
7143 * range.cc: New file.
7144 * range.h: New file.
7145 * selftest.h (range_tests): New prototype.
7146 * ssa.h: Include range.h.
7147 * tree-vrp.c (value_range_base::value_range_base): New
7148 constructors.
7149 (value_range_base::singleton_p): Do not call
7150 ranges_from_anti_range until sure we will need to.
7151 (value_range_base::type): Rename gcc_assert to
7152 gcc_checking_assert.
7153 (vrp_val_is_max): New argument.
7154 (vrp_val_is_min): Same.
7155 (wide_int_range_set_zero_nonzero_bits): Move from
7156 wide-int-range.cc.
7157 (extract_range_into_wide_ints): Remove.
7158 (extract_range_from_multiplicative_op): Remove.
7159 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
7160 from extract_range_from_binary_expr.
7161 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
7162 from extract_range_from_binary_expr.
7163 (extract_range_from_binary_expr): Remove.
7164 (normalize_for_range_ops): New.
7165 (range_fold_binary_expr): New.
7166 (range_fold_unary_expr): New.
7167 (value_range_base::num_pairs): New.
7168 (value_range_base::lower_bound): New.
7169 (value_range_base::upper_bound): New.
7170 (value_range_base::upper_bound): New.
7171 (value_range_base::contains_p): New.
7172 (value_range_base::invert): New.
7173 (value_range_base::union_): New.
7174 (value_range_base::intersect): New.
7175 (range_compatible_p): New.
7176 (value_range_base::operator==): New.
7177 (determine_value_range_1): Call range_fold_*expr instead of
7178 extract_range_from_*expr.
7179 * tree-vrp.h (class value_range_base): Add new constructors.
7180 Add methods for union_, intersect, operator==, contains_p,
7181 num_pairs, lower_bound, upper_bound, invert.
7182 (vrp_val_is_min): Add handle_pointers argument.
7183 (vrp_val_is_max): Same.
7184 (extract_range_from_unary_expr): Remove.
7185 (extract_range_from_binary_expr): Remove.
7186 (range_fold_unary_expr): New.
7187 (range_fold_binary_expr): New.
7188 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7189 range_fold_binary_expr instead of extract_range_from_binary_expr.
7190 (vr_values::extract_range_basic): Same.
7191 (vr_values::extract_range_from_unary_expr): Call
7192 range_fold_unary_expr instead of extract_range_from_unary_expr.
7193 * wide-int-range.cc: Remove.
7194 * wide-int-range.h: Remove.
7195
7196 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7197
7198 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7199 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7200 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7201 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7202 macro.
7203
7204 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7205
7206 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7207 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7208 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7209 * glimits.h: Likewise.
7210
7211 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7212
7213 PR rtl-optimization/91976
7214 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7215 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7216 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7217
7218 2019-10-02 Martin Sebor <msebor@redhat.com>
7219
7220 PR tree-optimization/80936
7221 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7222
7223 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7224
7225 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7226 instead of reg_class_contents[ALL_REGS].
7227
7228 2019-09-30 Jason Merrill <jason@redhat.com>
7229
7230 Add some hash_map_safe_* functions like vec_safe_*.
7231 * hash-map.h (default_hash_map_size): New variable.
7232 (create_ggc): Use it as default argument.
7233 (hash_map_maybe_create, hash_map_safe_get)
7234 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
7235
7236 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
7237
7238 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
7239 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
7240 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
7241 (can_inline_edge_by_limits_p): Use it.
7242 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
7243 (want_inline_small_function_p): Use O2 bounds.
7244 (edge_badness): LIkewise.
7245 * opts.c (default_options): Add OPT_finline_functions.
7246 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
7247 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
7248 New parameters.
7249 * doc/invoke.texi (-finline-functions): Update documentation.
7250 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
7251 inline-min-speedup-O2): Document.
7252 (early-inlining-insns-O2): Simplify docs.
7253
7254 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
7255
7256 PR rtl-optimization/87047
7257 * ifcvt.c (average_cost): New static function. Use it...
7258 (noce_process_if_block): ... here.
7259
7260 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7261
7262 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
7263 * config/rs6000/rs6000-string.c (expand_block_move): Add
7264 might_overlap parm.
7265 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
7266 (cpymemsi): Add might_overlap parm to expand_block_move() call.
7267
7268 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
7269
7270 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
7271 (expand_builtin_memcpy): Use might_overlap parm.
7272 (expand_builtin_mempcpy_args): Use might_overlap parm.
7273 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
7274 (expand_builtin_memory_copy_args): Add might_overlap parm.
7275 * expr.c (emit_block_move_via_cpymem): Rename to
7276 emit_block_move_via_pattern, add might_overlap parm, use cpymem
7277 or movmem optab as appropriate.
7278 (emit_block_move_hints): Add might_overlap parm, do the right
7279 thing for might_overlap==true.
7280 * expr.h (emit_block_move_hints): Update prototype.
7281
7282 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
7283
7284 * tree-eh.h (unsplit_eh_edges): Declare.
7285 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
7286 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
7287 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
7288 (struct store_immediate_info): Add lp_nr field.
7289 (store_immediate_info::store_immediate_info): Add NR2 parameter and
7290 initialize lp_nr with it.
7291 (struct merged_store_group): Add lp_nr and only_constants fields.
7292 (merged_store_group::merged_store_group): Initialize them.
7293 (merged_store_group::can_be_merged_into): Deal with them.
7294 (pass_store_merging): Rename terminate_and_release_chain into
7295 terminate_and_process_chain.
7296 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
7297 renaming and remove useless assertions.
7298 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
7299 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
7300 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
7301 instead of always recomputing it and compare lp_nr.
7302 (imm_store_chain_info::output_merged_store): If the group is in an
7303 active EH region, register new stores if they can throw. Moreover,
7304 if the insertion has created new basic blocks, adjust the PHI nodes
7305 of the post landing pad.
7306 (imm_store_chain_info::output_merged_stores): If the original stores
7307 are in an active EH region, deregister them.
7308 (lhs_valid_for_store_merging_p): Prettify.
7309 (adjust_bit_pos): New function extracted from...
7310 (mem_valid_for_store_merging): ...here. Use it for the base address
7311 and also for the offset if it is the addition of a constant.
7312 (lp_nr_for_store): New function.
7313 (pass_store_merging::process_store): Change return type to bool.
7314 Call lp_nr_for_store to initialize the store info. Propagate the
7315 return status of various called functions to the return value.
7316 (store_valid_for_store_merging_p): New predicate.
7317 (enum basic_block_status): New enumeration.
7318 (get_status_for_store_merging): New function.
7319 (pass_store_merging::execute): If the function can throw and catch
7320 non-call exceptions, unsplit the EH edges on entry and clean up the
7321 CFG on exit if something changed. Call get_status_for_store_merging
7322 for every basic block and keep the chains open across basic blocks
7323 when possible. Terminate and process open chains at the end, if any.
7324
7325 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7326
7327 * reginfo.c (globalize_reg): Fix shadowed variable in
7328 function_abis walk.
7329
7330 2019-10-02 Martin Jambor <mjambor@suse.cz>
7331
7332 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
7333 do not compute some stuff when set.
7334 (cgraph_node::create_edge): Likewise.
7335 (cgraph_node::create_indirect_edge): Renamed last parameter to
7336 coning_p and flipped its meaning, don't even calculate
7337 inline_failed when set.
7338 * cgraph.h (cgraph_node::create_edge): Add new parameter.
7339 (symbol_table::::create_edge): Likewise.
7340 (cgraph_node::create_indirect_edge): Rename last parameter, flip
7341 the default value.
7342 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
7343 call graph edge creating functions.
7344
7345 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7346
7347 PR c++/91222
7348 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
7349 namespace types.
7350
7351 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
7352
7353 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
7354
7355 2019-10-02 Richard Biener <rguenther@suse.de>
7356
7357 * tree-vectorizer.h (vect_transform_reduction): Declare.
7358 * tree-vect-stmts.c (vect_transform_stmt): Use it.
7359 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
7360 stmt transform to ...
7361 (vect_transform_reduction): ... this.
7362
7363 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
7364
7365 * omp-low.c (lower_omp_target): Dereference optional argument
7366 to work with the right pointer.
7367
7368 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
7369
7370 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
7371 false.
7372 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
7373 * langhooks.h (omp_is_optional_argument): New hook.
7374 * omp-general.c (omp_is_optional_argument): New.
7375 * omp-general.h (omp_is_optional_argument): New declaration.
7376 * omp-low.c (lower_omp_target): Create temporary for received value
7377 and take the address for new_var if the original variable was a
7378 DECL_BY_REFERENCE. Use size of referenced object when a
7379 pass-by-reference optional argument used as argument to firstprivate.
7380
7381 2019-10-02 Jakub Jelinek <jakub@redhat.com>
7382
7383 PR tree-optimization/91940
7384 * tree-vect-patterns.c: Include tree-vector-builder.h and
7385 vec-perm-indices.h.
7386 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
7387 unpromoting the argument back to uint16_t, or by converting into a
7388 rotate, or into shifts plus ior.
7389
7390 2019-10-02 Richard Biener <rguenther@suse.de>
7391
7392 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
7393 New.
7394 (vect_transform_cycle_phi): Declare.
7395 * tree-vect-stmts.c (vect_transform_stmt): Call
7396 vect_transform_cycle_phi.
7397 * tree-vect-loop.c (vectorizable_reduction): Split out
7398 PHI transformation stage to ...
7399 (vect_transform_cycle_phi): ... here.
7400
7401 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7402
7403 PR middle-end/91957
7404 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
7405 eliminable registers.
7406 (make_hard_regno_live): Likewise, and don't make them live.
7407
7408 2019-10-01 David Malcolm <dmalcolm@redhat.com>
7409
7410 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
7411 Call pp_emit_prefix.
7412 (layout::print_source_line): Likewise.
7413 (layout::start_annotation_line): Likewise.
7414 (diagnostic_show_locus): Remove call to temporarily clear the
7415 prefix.
7416 (selftest::test_one_liner_fixit_remove): Add test coverage for the
7417 interaction of pp_set_prefix with rulers and fix-it hints.
7418 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
7419 prefix when calling diagnostic_show_locus, rather than destroying
7420 it afterwards.
7421 (print_parseable_fixits): Temporarily clear prefix.
7422 * pretty-print.c (pp_format): Save and restore line_length, rather
7423 than assuming it is zero.
7424 (pp_output_formatted_text): Remove assertion that line_length is
7425 zero.
7426
7427 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7428
7429 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7430 Rename to ...
7431 (nonoverlapping_refs_since_match_p): ... this; handle also
7432 ARRAY_REFs.
7433 (alias_stats): Update stats.
7434 (dump_alias_stats): Likewise.
7435 (cheap_array_ref_low_bound): New function.
7436 (aliasing_matching_component_refs_p): Add partial_overlap
7437 argument;
7438 pass it to nonoverlapping_refs_since_match_p.
7439 (aliasing_component_refs_walk): Update call of
7440 aliasing_matching_component_refs_p
7441 (nonoverlapping_array_refs_p): New function.
7442 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
7443 indirect_refs_may_alias_p): Update calls of
7444 nonoverlapping_refs_since_match_p.
7445
7446 2019-10-01 Maya Rashish <coypu@sdf.org>
7447
7448 PR target/85401
7449 * ira-color.c (allocno_copy_cost_saving): Call
7450 ira_init_register_move_cost_if_necessary.
7451
7452 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
7453
7454 * Makefile.in (gnat_install_lib): New variable.
7455 * configure.ac: Substitute it.
7456 * configure: Regenerate.
7457
7458 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7459
7460 PR lto/91222
7461 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
7462 is matched with non-C++ type
7463
7464 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7465
7466 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
7467 after local CSE.
7468
7469 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
7470
7471 * doc/invoke.texi (early-inlining-insns-O2): Document.
7472 (early-inlining-insns): Update.
7473 * params.def (early-inlining-insns-O2): New bound.
7474 (early-inlining-insns): Update docs.
7475 * ipa-inline.c (want_early_inline_function_p): Use new bound.
7476
7477 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
7478
7479 PR target/88562
7480 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
7481 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
7482 a memory access insn.
7483
7484 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
7485
7486 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
7487 vpmsumd.
7488
7489 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7490
7491 PR target/77918
7492 * config/s390/s390.c (s390_expand_vec_compare): Use
7493 gen_vec_cmpordered and gen_vec_cmpunordered.
7494 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
7495 vec_unordered): Delete.
7496 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
7497 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
7498 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
7499 (vec_cmp<code>): Generic dispatcher.
7500
7501 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
7502
7503 PR target/77918
7504 * config/s390/vector.md (V_HW): Add V1TI in order to make
7505 vcond$a$b generate vcondv1tiv1tf.
7506
7507 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7508
7509 PR rtl-optimization/91948
7510 * ira-build.c (ira_create_allocno): Initialize
7511 ALLOCNO_CROSSED_CALLS_ABIS.
7512 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
7513 than regno to ira_need_caller_save_p.
7514
7515 2019-10-01 Alexandre Oliva <oliva@adacore.com>
7516
7517 * config/i386/i386-options.c
7518 (ix86_recompute_optlev_based_flags): New, moved out of...
7519 (ix86_option_override_internal): ... this. Call it.
7520 (ix86_override_options_after_change): Call it here too.
7521
7522 PR debug/91507
7523 * dwarf2out.c (override_type_for_decl_p): New.
7524 (gen_variable_die): Use it.
7525
7526 2019-10-01 Richard Biener <rguenther@suse.de>
7527
7528 * tree-vect-loop.c (vectorizable_reduction): Move variables
7529 to where they are used.
7530
7531 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7532
7533 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
7534 (build_def_use): Use PC instead of CC0 in a comment.
7535
7536 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7537
7538 * rtl.def (CLOBBER_HIGH): Delete.
7539 * doc/rtl.texi (clobber_high): Remove documentation.
7540 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
7541 (reg_is_clobbered_by_clobber_high): Delete.
7542 (gen_hard_reg_clobber_high): Likewise.
7543 * alias.c (record_set): Remove CLOBBER_HIGH handling.
7544 * cfgexpand.c (expand_gimple_stmt): Likewise.
7545 * combine-stack-adj.c (single_set_for_csa): Likewise.
7546 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
7547 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
7548 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
7549 * cse.c (invalidate_reg): Remove clobber_high parameter.
7550 (invalidate): Update call accordingly.
7551 (canonicalize_insn): Remove CLOBBER_HIGH handling.
7552 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
7553 (count_reg_usage, insn_live_p): Likewise.
7554 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
7555 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
7556 (cselib_invalidate_rtx_note_stores): Update call accordingly.
7557 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
7558 (cselib_invalidate_regno, cselib_process_insn): Likewise.
7559 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
7560 (mark_nonreg_stores_2): Likewise.
7561 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
7562 (df_get_call_refs): Likewise.
7563 * dwarf2out.c (mem_loc_descriptor): Likewise.
7564 * emit-rtl.c (verify_rtx_sharing): Likewise.
7565 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
7566 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
7567 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
7568 * genemit.c (gen_exp, gen_insn): Likewise.
7569 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
7570 * haifa-sched.c (haifa_classify_rtx): Likewise.
7571 * ira-build.c (create_insn_allocnos): Likewise.
7572 * ira-costs.c (scan_one_insn): Likewise.
7573 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
7574 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
7575 * jump.c (mark_jump_label_1): Likewise.
7576 * lra-int.h (lra_insn_reg::clobber_high): Delete.
7577 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
7578 handling.
7579 (mark_not_eliminable): Likewise.
7580 * lra-lives.c (process_bb_lives): Likewise.
7581 * lra.c (new_insn_reg): Remove clobber_high parameter.
7582 (collect_non_operand_hard_regs): Likewise. Update call to new
7583 insn_reg. Remove CLOBBER_HIGH handling.
7584 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
7585 to collect_non_operand_hard_regs.
7586 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
7587 Update call to new_insn_reg.
7588 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
7589 * postreload.c (reload_cse_simplify, reload_combine_note_use)
7590 (move2add_note_store): Likewise.
7591 * print-rtl.c (print_pattern): Likewise.
7592 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
7593 (if_test_bypass_p): Likewise.
7594 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
7595 * reginfo.c (reg_scan_mark_refs): Likewise.
7596 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
7597 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
7598 (forget_old_reloads_1): Likewise.
7599 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
7600 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
7601 (dbr_schedule): Likewise.
7602 * resource.c (update_live_status, mark_referenced_resources)
7603 (mark_set_resources): Likewise.
7604 * rtl.c (copy_rtx): Likewise.
7605 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
7606 (note_pattern_stores): Likewise.
7607 (reg_is_clobbered_by_clobber_high): Delete.
7608 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
7609 CLOBBER_HIGH handling.
7610
7611 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7612
7613 PR target/91452
7614 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
7615 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
7616 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7617 Handle ARM_PCS_TLSDESC.
7618 (aarch64_tlsdesc_abi_id): New function.
7619 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
7620 rtx instead of a list of clobbers and clobber_highs.
7621 (tlsdesc_small_<mode>): Update accordingly.
7622
7623 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7624
7625 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
7626 extra callee_abi argument.
7627 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
7628 Insert a CALLEE_ABI unspec into the call pattern as the second
7629 element in the PARALLEL.
7630 (aarch64_simd_call_p): Delete.
7631 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
7632 the new CALLEE_ABI element of the PARALLEL.
7633 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
7634 from the function type, if given.
7635 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
7636 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
7637 when passed the function_arg_info end marker.
7638 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
7639 final argument of gen_sibcall.
7640 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
7641 (call): Make operand 2 a const_int_operand and pass it to expand_call.
7642 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
7643 pattern.
7644 (call_value): Likewise operand 3.
7645 (sibcall): Likewise operand 2. Place the unspec before rather than
7646 after the return.
7647 (sibcall_value): Likewise operand 3.
7648 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
7649 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
7650 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
7651 constraint strings.
7652 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
7653
7654 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
7655
7656 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
7657 choose_hard_reg_mode.
7658 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7659
7660 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7661
7662 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
7663 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
7664 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
7665
7666 2019-09-30 David Malcolm <dmalcolm@redhat.com>
7667
7668 * diagnostic-show-locus.c (line_label::line_label): Initialize
7669 m_has_vbar.
7670 (line_label::comparator): Reverse the sort order by m_state_idx,
7671 so that when the list is walked backwards the labels appear in
7672 order of insertion into the rich_location.
7673 (line_label::m_has_vbar): New field.
7674 (layout::print_any_labels): When dealing with multiple labels at
7675 the same line and column, only print vertical bars for the one
7676 with the highest label_line.
7677 (selftest::test_one_liner_labels): Update test for multiple labels
7678 to expect the labels to be in the order of insertion into the
7679 rich_location. Add a test for many such labels, where the column
7680 numbers are out-of-order relative to the insertion order.
7681
7682 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7683
7684 * config/i386/i386.h (ix86_frame::expensive_p): New field.
7685 (ix86_frame::expensive_count): Likewise.
7686 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
7687 of use_fast_prologue_epilogue robust against incidental changes
7688 in function size.
7689
7690 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
7691
7692 PR target/77918
7693 * config/s390/vector.md (vec_unordered<mode>): Call
7694 gen_vec_ordered<mode>.
7695
7696 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
7697
7698 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
7699 New pattern for ASRD.
7700 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
7701 * internal-fn.def (IFN_DIV_POW2): New internal function.
7702 * optabs.def (sdiv_pow2_optab): New optab.
7703 * tree-vect-patterns.c (vect_recog_divmod_pattern):
7704 Modify pattern to support new operation.
7705 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
7706 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
7707 Document new target selector.
7708
7709 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7710
7711 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
7712 to test whether we're compiling a vector PCS function and to test
7713 whether the function needs to save a particular register.
7714 Remove the vector PCS handling of df_set_regs_ever_live.
7715 (aarch64_components_for_bb): Use crtl->abi to test whether
7716 the function needs to save a particular register.
7717 (aarch64_process_components): Use crtl->abi to test whether
7718 we're compiling a vector PCS function.
7719 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
7720 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
7721
7722 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7723
7724 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
7725 Delete.
7726 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
7727 whether the block calls a function that clobbers more registers
7728 than the current function is allowed to.
7729 (aarch64_use_simple_return_insn_p): Delete.
7730 * config/aarch64/aarch64.md (simple_return): Remove condition.
7731
7732 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7733
7734 * function-abi.h (function_abi_aggregator): New class.
7735 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
7736 function.
7737 * ira.c (update_equiv_regs_prescan): New function. Call
7738 set_paradoxical_subreg here rather than...
7739 (update_equiv_regs): ...here.
7740 (ira): Call update_equiv_regs_prescan.
7741
7742 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7743
7744 * hard-reg-set.h (regs_invalidated_by_call): Only define if
7745 IN_TARGET_CODE.
7746 (call_used_or_fixed_regs): Likewise.
7747 (call_used_or_fixed_reg_p): Likewise.
7748 * reginfo.c (regs_invalidated_by_call): New macro.
7749
7750 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7751
7752 * shrink-wrap.c: Include function-abi.h.
7753 (requires_stack_frame_p): Use crtl->abi to test whether the
7754 current function can use a register without saving it first.
7755
7756 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7757
7758 * sel-sched-ir.h (_def::crosses_call): Replace with...
7759 (_def::crossed_call_abis): ..this new field.
7760 (def_list_add): Take a mask of ABIs instead of a crosses_call
7761 boolean.
7762 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
7763 of _def accordingly.
7764 * sel-sched.c: Include function-abi.h.
7765 (hard_regs_data::regs_for_call_clobbered): Delete.
7766 (reg_rename::crosses_call): Replace with...
7767 (reg_rename::crossed_call_abis): ...this new field.
7768 (fur_static_params::crosses_call): Replace with...
7769 (fur_static_params::crossed_call_abis): ...this new field.
7770 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
7771 (init_hard_regs_data): Use crtl->abi to test which registers the
7772 current function would need to save before it uses them.
7773 (mark_unavailable_hard_regs): Update handling of call-clobbered
7774 registers, using call_clobbers_in_region to find out which registers
7775 might be call-clobbered (but without taking -fipa-ra into account
7776 for now). Remove separate handling of partially call-clobbered
7777 registers.
7778 (verify_target_availability): Use crossed_call_abis instead of
7779 crosses_call.
7780 (get_spec_check_type_for_insn, find_used_regs): Likewise.
7781 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
7782
7783 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7784
7785 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
7786 function to test whether a register is fully or partly clobbered.
7787
7788 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7789
7790 * rtlanal.c: Include function-abi.h.
7791 (reg_set_p): Use insn_callee_abi to get the ABI of the called
7792 function and clobbers_reg_p to test whether the register
7793 is call-clobbered.
7794 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
7795 to get the ABI of the called function and full_reg_clobbers to
7796 get the set of fully call-clobbered registers. Warn about the
7797 pitfalls of using this mode.
7798
7799 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7800
7801 * reload.c: Include function-abi.h.
7802 (find_equiv_reg): Use clobbers_reg_p to test whether either
7803 of the equivalent registers is clobbered by a call.
7804 * reload1.c: Include function-abi.h.
7805 (reg_reloaded_call_part_clobbered): Delete.
7806 (reload): Use crtl->abi to test which registers would need
7807 saving in the prologue before use.
7808 (find_reg): Likewise.
7809 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
7810 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
7811 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
7812
7813 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7814
7815 * regrename.h (du_head::call_clobber_mask): New field.
7816 (du_head::need_caller_save_reg): Replace with...
7817 (du_head::call_abis): ...this new field.
7818 * regrename.c: Include function-abi.h.
7819 (call_clobbered_in_chain_p): New function.
7820 (check_new_reg_p): Use crtl->abi when deciding whether a register
7821 is free for use after RA. Use call_clobbered_in_chain_p to test
7822 whether a candidate register would be clobbered by a call.
7823 (find_rename_reg): Don't add call-clobber conflicts here.
7824 (rename_chains): Check call_abis instead of need_caller_save_reg.
7825 (merge_chains): Update for changes to du_head.
7826 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
7827 target. Record the ABI identifier in call_abis and the set of
7828 fully or partially clobbered registers in call_clobber_mask.
7829 Add fully-clobbered registers to hard_conflicts here rather
7830 than in find_rename_reg.
7831 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
7832 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
7833 * config/aarch64/falkor-tag-collision-avoidance.c: Include
7834 function-abi.h.
7835 * config/c6x/c6x.c: Likewise.
7836
7837 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7838
7839 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
7840 mode of the register when deciding whether it is no longer
7841 available after a call.
7842
7843 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7844
7845 * recog.c: Include function-abi.h.
7846 (peep2_find_free_register): Use crtl->abi when deciding whether
7847 a register is free for use after RA.
7848
7849 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7850
7851 * postreload-gcse.c: Include regs.h and function-abi.h.
7852 (record_opr_changes): Use insn_callee_abi to get the ABI of the
7853 call insn target. Conservatively assume that partially-clobbered
7854 registers are altered.
7855
7856 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7857
7858 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
7859 when deciding whether a register is free for use after RA.
7860 (reload_combine): Remove unnecessary use of fixed_reg_set.
7861 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
7862 call insn target. Use reg_mode when testing whether a register
7863 is no longer available.
7864
7865 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7866
7867 * target.def (return_call_with_max_clobbers): Delete.
7868 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7869 * doc/tm.texi: Regenerate.
7870 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
7871 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
7872 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
7873 (lra_reg::call_insn): Delete.
7874 * lra.c: Include function-abi.h.
7875 (initialize_lra_reg_info_element): Don't initialize the fields above.
7876 (lra): Use crtl->abi to test whether the current function needs to
7877 save a register in the prologue. Remove special pre-inheritance
7878 lra_create_live_ranges pass for flag_ipa_ra.
7879 * lra-assigns.c: Include function-abi.h
7880 (find_hard_regno_for_1): Use crtl->abi to test whether the current
7881 function needs to save a register in the prologue.
7882 (lra_assign): Assert that registers aren't allocated to a
7883 conflicting register, rather than checking only for overlaps
7884 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
7885 and for registers that are not live across a call.
7886 * lra-constraints.c (last_call_for_abi): New variable.
7887 (full_and_partial_call_clobbers): Likewise.
7888 (setup_next_usage_insn): Remove the register from
7889 full_and_partial_call_clobbers.
7890 (need_for_call_save_p): Use call_clobbered_in_region_p to test
7891 whether the register needs a caller save.
7892 (need_for_split_p): Use full_and_partial_reg_clobbers instead
7893 of call_used_or_fixed_regs.
7894 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
7895 full_and_partial_call_clobbers.
7896 * lra-lives.c (check_pseudos_live_through_calls): Replace
7897 last_call_used_reg_set and call_insn arguments with an abi argument.
7898 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
7899 as the set of conflicting registers.
7900 (calls_have_same_clobbers_p): Delete.
7901 (process_bb_lives): Track the ABI of the last call instead of an
7902 insn/HARD_REG_SET pair. Update calls to
7903 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
7904 the set of registers that could be clobbered by an EH edge.
7905 Include partially-clobbered as well as fully-clobbered registers.
7906 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
7907 * lra-remat.c: Include function-abi.h.
7908 (call_used_regs_arr_len, call_used_regs_arr): Delete.
7909 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
7910 registers and bitmap_view to combine them into dead_regs.
7911 (call_used_input_regno_present_p): Take a function_abi argument
7912 and use it to test whether a register is call-clobbered.
7913 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
7914 call insn target. Update tje call to call_used_input_regno_present_p.
7915 (do_remat): Likewise.
7916 (lra_remat): Remove the initialization of call_used_regs_arr_len
7917 and call_used_regs_arr.
7918
7919 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7920
7921 * loop-iv.c: Include regs.h and function-abi.h.
7922 (simplify_using_initial_values): Use insn_callee_abi to get the
7923 ABI of the call insn target. Conservatively assume that
7924 partially-clobbered registers are altered.
7925
7926 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7927
7928 * function-abi.h (call_clobbers_in_region): Declare.
7929 (call_clobbered_in_region_p): New function.
7930 * function-abi.cc (call_clobbers_in_region): Likewise.
7931 * ira-int.h: Include function-abi.h.
7932 (ira_allocno::crossed_calls_abis): New field.
7933 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
7934 (ira_need_caller_save_regs): New function.
7935 (ira_need_caller_save_p): Likewise.
7936 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
7937 of call_used_or_fixed_regs.
7938 (do_reload): Use crtl->abi to test whether the current function
7939 needs to save a register in the prologue. Count registers that
7940 need to be saved rather than registers that don't.
7941 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
7942 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7943 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
7944 (propagate_some_info_from_allocno): Likewise.
7945 (copy_info_to_removed_store_destinations): Likewise.
7946 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
7947 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
7948 (ira_build): Use ira_need_caller_save_regs instead of
7949 call_used_or_fixed_regs.
7950 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
7951 whether the current function would need to save a register
7952 before using it.
7953 (calculate_spill_cost): Likewise.
7954 (allocno_reload_assign): Use ira_need_caller_save_regs and
7955 ira_need_caller_save_p instead of call_used_or_fixed_regs.
7956 * ira-conflicts.c (ira_build_conflicts): Use
7957 ira_need_caller_save_regs rather than call_used_or_fixed_regs
7958 as the set of call-clobbered registers. Remove the
7959 call_used_or_fixed_regs mask from the calculation of
7960 temp_hard_reg_set and mask its use instead. Remove special
7961 handling of partially-clobbered registers.
7962 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
7963 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
7964 calculate the set of conflicting registers for calls that
7965 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
7966 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
7967 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
7968 Use eh_edge_abi to calculate the set of registers that could
7969 be clobbered by an EH edge. Include partially-clobbered as
7970 well as fully-clobbered registers.
7971
7972 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7973
7974 * haifa-sched.c: Include function-abi.h.
7975 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
7976 the function would need to save a register before using it.
7977
7978 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7979
7980 * gcse.c: Include function-abi.h.
7981 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
7982 the call insn target. Invalidate partially call-clobbered
7983 registers as well as fully call-clobbered ones.
7984
7985 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7986
7987 * function.c (aggregate_value_p): Work out which ABI the
7988 function is using before testing which registers are at least
7989 partly preserved by a call.
7990
7991 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
7992
7993 * early-remat.c: Include regs.h and function-abi.h.
7994 (early_remat::maybe_add_candidate): Don't check for call-clobbered
7995 registers here.
7996 (early_remat::restrict_remat_for_unavail_regs): New function.
7997 (early_remat::restrict_remat_for_call): Likewise.
7998 (early_remat::process_block): Before calling emit_remat_insns
7999 for a previous call in the block, invalidate any candidates
8000 that would clobber call-preserved registers.
8001 (early_remat::emit_remat_insns_for_block): Likewise for the
8002 final call in a block. Do the same thing for live-in registers
8003 when calling emit_remat_insns at the head of a block.
8004
8005 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8006
8007 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8008 whether the current function needs to save at least part of a
8009 register before using it.
8010 (df_get_exit_block_use_set): Likewise for epilogue restores.
8011
8012 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8013
8014 * df-problems.c: Include regs.h and function-abi.h.
8015 (df_rd_problem_data): Rename sparse_invalidated_by_call to
8016 sparse_invalidated_by_eh and dense_invalidated_by_call to
8017 dense_invalidated_by_eh.
8018 (df_print_bb_index): Update accordingly.
8019 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
8020 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
8021 that are clobbered by an EH edge. Clobber partially-clobbered
8022 registers as well as fully-clobbered ones.
8023 (df_md_confluence_n): Likewise.
8024 (df_rd_local_compute): Likewise. Update for changes to
8025 df_rd_problem_data.
8026 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
8027 of registers that are clobbered by an EH edge. Includde partially-
8028 clobbered registers as well as fully-clobbered ones.
8029
8030 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8031
8032 * cselib.c (cselib_process_insn): If we know what mode a
8033 register was set in, check whether it is clobbered in that
8034 mode by a call. Only fall back to reg_raw_mode if that fails.
8035
8036 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8037
8038 * cse.c: Include regs.h and function-abi.h.
8039 (invalidate_for_call): Take the call insn as an argument.
8040 Use insn_callee_abi to get the ABI of the call and invalidate
8041 partially clobbered registers as well as fully clobbered ones.
8042 (cse_insn): Update call accordingly.
8043
8044 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8045
8046 * combine.c: Include function-abi.h.
8047 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
8048 of the target of call insns. Invalidate partially-clobbered
8049 registers as well as fully-clobbered ones.
8050
8051 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8052
8053 * cfgloopanal.c: Include regs.h and function-abi.h.
8054 (init_set_costs): Use default_function_abi to test whether
8055 a general register is call-clobbered.
8056
8057 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8058
8059 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
8060 instead of the call-clobbered sets.
8061
8062 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8063
8064 * caller-save.c (setup_save_areas): Remove redundant |s of
8065 fixed_reg_set.
8066 (save_call_clobbered_regs): Likewise. Use the call ABI rather
8067 than call_used_or_fixed_regs to decide whether a REG_RETURNED
8068 value is useful.
8069
8070 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8071
8072 * rtl.h (predefined_function_abi): Declare.
8073 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8074 instead of a boolean call_save flag.
8075 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
8076 accordingly.
8077 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8078 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8079 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
8080 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8081 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8082 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
8083 * reginfo.c (init_reg_modes_target): Likewise.
8084 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8085 instead of a boolean call_save flag.
8086 * targhooks.c: Include function-abi.h.
8087 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
8088 using eh_edge_abi to choose the mode.
8089
8090 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8091
8092 * target.def (hard_regno_call_part_clobbered): Take an ABI
8093 identifier instead of an rtx_insn.
8094 * doc/tm.texi: Regenerate.
8095 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
8096 (hook_bool_uint_uint_mode_false): New function.
8097 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
8098 (hook_bool_uint_uint_mode_false): New function.
8099 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8100 Take an ABI identifier instead of an rtx_insn.
8101 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
8102 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
8103 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
8104 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
8105 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
8106 Likewise.
8107 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
8108 * cselib.c: Include function-abi.h.
8109 (cselib_process_insn): Update call to
8110 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8111 to get the appropriate ABI identifier.
8112 * function-abi.cc (predefined_function_abi::initialize): Update call
8113 to targetm.hard_regno_call_part_clobbered.
8114 * ira-conflicts.c (ira_build_conflicts): Likewise.
8115 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8116 * lra-constraints.c: Include function-abi.h.
8117 (need_for_call_save_p): Update call to
8118 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8119 to get the appropriate ABI identifier.
8120 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8121 * regcprop.c (copyprop_hardreg_forward_1): Update call
8122 to targetm.hard_regno_call_part_clobbered.
8123 * reginfo.c (choose_hard_reg_mode): Likewise.
8124 * regrename.c (check_new_reg_p): Likewise.
8125 * reload.c (find_equiv_reg): Likewise.
8126 * reload1.c (emit_reload_insns): Likewise.
8127 * sched-deps.c: Include function-abi.h.
8128 (deps_analyze_insn): Update call to
8129 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8130 to get the appropriate ABI identifier.
8131 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
8132 call to targetm.hard_regno_call_part_clobbered.
8133 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
8134
8135 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8136
8137 * config/i386/i386.c: Include function-abi.h.
8138 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
8139 if they preserve some 256-bit or 512-bit SSE registers.
8140
8141 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8142
8143 * target.def (insn_callee_abi): New hook.
8144 (remove_extra_call_preserved_regs): Delete.
8145 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
8146 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8147 * doc/tm.texi: Regenerate.
8148 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
8149 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
8150 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
8151 insn argument.
8152 (aarch64_remove_extra_call_preserved_regs): Delete.
8153 (aarch64_insn_callee_abi): New function.
8154 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8155 (TARGET_INSN_CALLEE_ABI): New macro.
8156 * rtl.h (get_call_fndecl): Declare.
8157 (cgraph_rtl_info): Fix formatting. Tweak comment for
8158 function_used_regs. Remove function_used_regs_valid.
8159 * rtlanal.c (get_call_fndecl): Moved from final.c
8160 * function-abi.h (insn_callee_abi): Declare.
8161 (target_function_abi_info): Mention insn_callee_abi.
8162 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
8163 way to get_call_reg_set_usage did.
8164 (insn_callee_abi): New function.
8165 * regs.h (get_call_reg_set_usage): Delete.
8166 * final.c: Include function-abi.h.
8167 (collect_fn_hard_reg_usage): Add fixed and stack registers to
8168 function_used_regs before the main loop rather than afterwards.
8169 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
8170 if function_used_regs ends up not being useful.
8171 (get_call_fndecl): Move to rtlanal.c
8172 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
8173 * caller-save.c: Include function-abi.h.
8174 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
8175 instead of get_call_reg_set_usage.
8176 * cfgcleanup.c: Include function-abi.h.
8177 (old_insns_match_p): Use insn_callee_abi instead of
8178 get_call_reg_set_usage.
8179 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
8180 a tree.
8181 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
8182 function_used_regs.
8183 * df-scan.c: Include function-abi.h.
8184 (df_get_call_refs): Use insn_callee_abi instead of
8185 get_call_reg_set_usage.
8186 * ira-lives.c: Include function-abi.h.
8187 (process_bb_node_lives): Use insn_callee_abi instead of
8188 get_call_reg_set_usage.
8189 * lra-lives.c: Include function-abi.h.
8190 (process_bb_lives): Use insn_callee_abi instead of
8191 get_call_reg_set_usage.
8192 * postreload.c: Include function-abi.h.
8193 (reload_combine): Use insn_callee_abi instead of
8194 get_call_reg_set_usage.
8195 * regcprop.c: Include function-abi.h.
8196 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8197 get_call_reg_set_usage.
8198 * resource.c: Include function-abi.h.
8199 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8200 instead of get_call_reg_set_usage.
8201 * var-tracking.c: Include function-abi.h.
8202 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8203 get_call_reg_set_usage.
8204
8205 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8206
8207 * target.def (fntype_abi): New target hook.
8208 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8209 * doc/tm.texi: Regenerate.
8210 * target.h (predefined_function_abi): Declare.
8211 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8212 if defined.
8213 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8214 * config/aarch64/aarch64.c: Include function-abi.h.
8215 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8216 (TARGET_FNTYPE_ABI): Define.
8217
8218 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8219
8220 * Makefile.in (OBJS): Add function-abi.o.
8221 (GTFILES): Add function-abi.h.
8222 * function-abi.cc: New file.
8223 * function-abi.h: Likewise.
8224 * emit-rtl.h (rtl_data::abi): New field.
8225 * function.c: Include function-abi.h.
8226 (prepare_function_start): Initialize crtl->abi.
8227 * read-rtl-function.c: Include regs.h and function-abi.h.
8228 (read_rtl_function_body): Initialize crtl->abi.
8229 (read_rtl_function_body_from_file_range): Likewise.
8230 * reginfo.c: Include function-abi.h.
8231 (init_reg_sets_1): Initialize default_function_abi.
8232 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
8233 when making a register global.
8234 * target-globals.h (this_target_function_abi_info): Declare.
8235 (target_globals::function_abi_info): New field.
8236 (restore_target_globals): Copy it.
8237 * target-globals.c: Include function-abi.h.
8238 (default_target_globals): Initialize the function_abi_info field.
8239 (target_globals): Allocate it.
8240 (save_target_globals): Free it.
8241
8242 2019-09-30 Nick Clifton <nickc@redhat.com>
8243
8244 PR target/85978
8245 * config/frv/frv.c (frv_register_move_cost): Add break statements
8246 to avoid falling through to the wrong cases. Tidy code.
8247
8248 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8249
8250 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8251 For multi-registers modes, test how big each register part is.
8252
8253 2019-09-30 Nick Clifton <nickc@redhat.com>
8254
8255 PR target/59205
8256 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
8257 (TARGET_ASM_SELECT_SECTION): Remove definition.
8258 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
8259
8260 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8261
8262 * emit-rtl.c (init_raw_REG): New function.
8263 (gen_raw_REG): Use init_raw_REG.
8264 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
8265 macros.
8266 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
8267 * rtl.h (rtx_init): New function.
8268 (rtx_alloca): New function.
8269 (init_raw_REG): New function.
8270 (alloca_raw_REG): New macro.
8271
8272 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
8273
8274 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
8275 (pcrel_local_address): Replace pcrel_address predicate, use the
8276 new function address_to_insn_form.
8277 (pcrel_external_address): Replace with new implementation using
8278 address_to_insn_form..
8279 (prefixed_mem_operand): Delete predicate which is now unused.
8280 (pcrel_external_mem_operand): Delete predicate which is now
8281 unused.
8282 * config/rs6000/rs6000-protos.h (enum insn_form): New
8283 enumeration.
8284 (enum non_prefixed_form): New enumeration.
8285 (address_to_insn_form): New declaration.
8286 (prefixed_load_p): New declaration.
8287 (prefixed_store_p): New declaration.
8288 (prefixed_paddi_p): New declaration.
8289 (rs6000_asm_output_opcode): New declaration.
8290 (rs6000_final_prescan_insn): Move declaration and update calling
8291 signature.
8292 (address_is_prefixed): New helper inline function.
8293 * config/rs6000/rs6000.c(print_operand_address): Check for either
8294 PC-relative local symbols or PC-relative external symbols.
8295 (rs6000_emit_move): Support loading PC-relative addresses.
8296 (mode_supports_prefixed_address_p): Delete, no longer used.
8297 (rs6000_prefixed_address_mode_p): Delete, no longer used.
8298 (address_to_insn_form): New function to decode an address format.
8299 (reg_to_non_prefixed): New function to identify what the
8300 non-prefixed memory instruction format is for a register.
8301 (prefixed_load_p): New function to identify prefixed loads.
8302 (prefixed_store_p): New function to identify prefixed stores.
8303 (prefixed_paddi_p): New function to identify prefixed load
8304 immediates.
8305 (next_insn_prefixed_p): New static state variable.
8306 (rs6000_final_prescan_insn): New function to determine if an insn
8307 uses a prefixed instruction.
8308 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
8309 prefixed instruction.
8310 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
8311 (ASM_OUTPUT_OPCODE): New target hook.
8312 * config/rs6000/rs6000.md (prefixed): New insn attribute for
8313 prefixed instructions.
8314 (prefixed_length): New insn attribute for the size of prefixed
8315 instructions.
8316 (non_prefixed_length): New insn attribute for the size of
8317 non-prefixed instructions.
8318 (pcrel_local_addr): New insn to load up a local PC-relative
8319 address.
8320 (pcrel_extern_addr): New insn to load up an external PC-relative
8321 address.
8322 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
8323 GPR and loading a 128-bit floating point type to a GPR.
8324
8325 2019-09-30 Richard Biener <rguenther@suse.de>
8326
8327 * gimple.c (gimple_get_lhs): For PHIs return the result.
8328 * tree-vectorizer.h (vectorizable_live_operation): Also get the
8329 SLP instance as argument.
8330 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
8331 double-reduction PHIs with vectorizable_lc_phi.
8332 (vect_analyze_loop_operations): Adjust.
8333 (vect_create_epilog_for_reduction): Remove all code not dealing
8334 with reduction LC PHI or epilogue generation.
8335 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
8336 for live stmts of reductions.
8337 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
8338 do not handle defs that are not vect_internal_def.
8339 (can_vectorize_live_stmts): Adjust.
8340 (vect_analyze_stmt): When the vectorized stmt defined a value
8341 used on backedges adjust the backedge uses of vectorized PHIs.
8342
8343 2019-09-30 Martin Jambor <mjambor@suse.cz>
8344
8345 PR ipa/91853
8346 * tree-inline.c (force_value_to_type): New function.
8347 (setup_one_parameter): Use force_value_to_type to convert type.
8348 * tree-inline.c (force_value_to_type): Declare.
8349 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
8350 with register type mismatches.
8351
8352 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
8353
8354 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
8355 32-bit PowerPC.
8356 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
8357 * config/rs6000/t-freebsd64: Make use of the above define and build
8358 the 32-bit libraries with secure-plt.
8359
8360 2019-09-30 Jakub Jelinek <jakub@redhat.com>
8361
8362 PR target/91931
8363 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
8364 gen_int_mode instead of GEN_INT.
8365
8366 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
8367
8368 * config/darwin.c (gen_macho_low): Amend to include the mode
8369 argument.
8370 (machopic_indirect_data_reference): Amend gen_macho_low call
8371 to include mode argument
8372 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
8373 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
8374 the macho_high expander and two define_insn entries.
8375
8376 2019-09-29 Jakub Jelinek <jakub@redhat.com>
8377
8378 PR bootstrap/90543
8379 * optc-save-gen.awk: Fix up printing string option differences.
8380
8381 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8382
8383 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
8384 vec_perm cost to 1 for non-Power7 VSX architectures.
8385
8386 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
8387
8388 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
8389 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
8390 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
8391
8392 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
8393
8394 * config/darwin.c (gen_macho_high): Amend to include the mode
8395 argument.
8396 (machopic_indirect_data_reference): Amend gen_macho_high call
8397 to include mode argument.
8398 (machopic_legitimize_pic_address): Likewise.
8399 * config/rs6000/rs6000.c (rs6000_legitimize_address):
8400 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
8401 the macho_high expander and two define_insn entries.
8402
8403 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8404
8405 PR target/86805
8406 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
8407
8408 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
8409
8410 PR target/80672
8411 * config/sh/sh.c (parse_validate_atomic_model_option): Use
8412 std::string::compare instead of std::string::find.
8413
8414 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
8415
8416 * configure: Regenerate.
8417
8418 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8419
8420 PR middle-end/91920
8421 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
8422 variables as shared.
8423
8424 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
8425
8426 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
8427 replaces the expander and two define_insn entries.
8428 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
8429 call.
8430 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
8431
8432 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8433
8434 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
8435 (fibonacci_heap::nodes): Likewise.
8436 (fibonacci_heap::min_key): Likewise.
8437 (fibonacci_heap::min): Likewise.
8438
8439 2019-09-27 David Malcolm <dmalcolm@redhat.com>
8440
8441 * cgraph.c (cgraph_node::get_fun): Make const.
8442 * cgraph.h (cgraph_node::get_fun): Likewise.
8443
8444 2019-09-27 Jakub Jelinek <jakub@redhat.com>
8445
8446 PR target/91919
8447 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
8448 of SImode MULT.
8449
8450 2019-09-27 Richard Biener <rguenther@suse.de>
8451
8452 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
8453 (STMT_VINFO_REDUC_FN): Likewise.
8454 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
8455 STMT_VINFO_REDUC_FN.
8456 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
8457 for condition reductions.
8458 (vect_create_epilog_for_reduction): Compute all required state
8459 from the stmt to be vectorized.
8460 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
8461 invocation and remove then dead code. For single def-use chains
8462 record only a single vector stmt.
8463
8464 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8465
8466 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
8467 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
8468 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
8469 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
8470 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
8471 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
8472 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
8473 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
8474 (aarch64_general_builtin_rsqrt): Declare.
8475 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
8476 New function.
8477 (aarch64_mangle_builtin_type): Rename to...
8478 (aarch64_general_mangle_builtin_type): ...this.
8479 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
8480 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
8481 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
8482 aarch64_general_add_builtin instead of add_builtin_function.
8483 (aarch64_init_builtins): Rename to...
8484 (aarch64_general_init_builtins): ...this. Use
8485 aarch64_general_add_builtin instead of add_builtin_function.
8486 (aarch64_builtin_decl): Rename to...
8487 (aarch64_general_builtin_decl): ...this and remove the unused
8488 arguments.
8489 (aarch64_expand_builtin): Rename to...
8490 (aarch64_general_expand_builtin): ...this and remove the unused
8491 arguments.
8492 (aarch64_builtin_rsqrt): Rename to...
8493 (aarch64_general_builtin_rsqrt): ...this.
8494 (aarch64_fold_builtin): Rename to...
8495 (aarch64_general_fold_builtin): ...this. Take the function subcode
8496 and return type as arguments. Remove the "ignored" argument.
8497 (aarch64_gimple_fold_builtin): Rename to...
8498 (aarch64_general_gimple_fold_builtin): ...this. Take the function
8499 subcode and gcall as arguments, and return the new function call.
8500 * config/aarch64/aarch64.c (aarch64_init_builtins)
8501 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
8502 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
8503 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
8504 instead of aarch64_builtin_rsqrt.
8505 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
8506 instead of aarch64_mangle_builtin_type.
8507
8508 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8509
8510 * target.def (check_builtin_call): New target hook.
8511 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
8512 * doc/tm.texi: Regenerate.
8513
8514 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
8515
8516 PR tree-optimization/91909
8517 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
8518 reduc_index parameter. When handling COND_REDUCTION, make sure
8519 that the reduction phi operand is in the correct arm of the
8520 VEC_COND_EXPR.
8521 (vectorizable_reduction): Pass reduc_index to the above.
8522
8523 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
8524
8525 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
8526 New combine pattern.
8527
8528 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
8529
8530 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
8531 loop instruction into new basic block before the loop when basic
8532 block that precedes the loop is empty.
8533
8534 2019-09-26 Jakub Jelinek <jakub@redhat.com>
8535
8536 * function.c (gimplify_parameters): Use build_clobber function.
8537 * tree-ssa.c (execute_update_addresses_taken): Likewise.
8538 * tree-inline.c (expand_call_inline): Likewise.
8539 * tree-sra.c (clobber_subtree): Likewise.
8540 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
8541 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
8542 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
8543 lower_omp_target): Likewise.
8544 * omp-expand.c (expand_omp_for_generic): Likewise.
8545 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
8546
8547 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
8548
8549 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
8550 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
8551 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
8552 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
8553 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
8554 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
8555 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
8556 LD_ELEMREV_V16QI): Use the PURE attribute.
8557
8558 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
8559
8560 * config/rs6000/darwin.md: Replace the expanders for
8561 load_macho_picbase and reload_macho_picbase with use of '@'
8562 and <mode> in their respective define_insns.
8563 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
8564 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
8565 Pmode to gen_load_macho_picbase.
8566 * config/rs6000/rs6000.md: Likewise.
8567
8568 2019-09-25 Richard Biener <rguenther@suse.de>
8569
8570 PR tree-optimization/91896
8571 * tree-vect-loop.c (vectorizable_reduction): The single
8572 def-use cycle optimization cannot apply when there's more
8573 than one pattern stmt involved.
8574
8575 2019-09-26 Richard Biener <rguenther@suse.de>
8576
8577 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
8578 loop-closed PHIs that are vect_internal_def.
8579 (vect_create_epilog_for_reduction): Exit early for nested cycles.
8580 Simplify.
8581 (vectorizable_lc_phi): New.
8582 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
8583 (vect_transform_stmt): Likewise.
8584 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
8585 (vectorizable_lc_phi): Declare.
8586
8587 2019-09-26 Richard Biener <rguenther@suse.de>
8588
8589 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
8590 vectorizable_reduction for vect_double_reduction_def.
8591 (vect_transform_loop): Likewise.
8592 (vect_create_epilog_for_reduction): Move double-reduction
8593 PHI creation and preheader argument setting of PHIs ...
8594 (vectorizable_reduction): ... here. Also process
8595 vect_double_reduction_def PHIs, creating the vectorized
8596 PHI nodes, remembering the scalar adjustment computed for
8597 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
8598 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
8599 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
8600 Initialize STMT_VINFO_REDUC_CODE.
8601 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
8602 (_stmt_vec_info::reduc_code): Likewise.
8603 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
8604 (STMT_VINFO_REDUC_CODE): Likewise.
8605
8606 2019-09-26 Matt Turner <mattst88@gmail.com>
8607
8608 PR driver/69471
8609 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
8610 (mtune=): Add Negative(mtune=).
8611 (mcpu=): Add Negative(mcpu=).
8612 * config/arm/arm.opt: Likewise.
8613
8614 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8615
8616 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8617 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
8618 Define.
8619 * config/arm/arm_acle.h: Define builtins for the above.
8620 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
8621 (simd32_op): Handle the above.
8622 * config/arm/unspecs.md: Define unspecs for the above.
8623
8624 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8625
8626 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
8627 (arm_<sup>xtb16): Likewise.
8628 (arm_usada8): Likewise.
8629 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
8630 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
8631 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
8632 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
8633 __sxtb16, __uxtab16, __uxtb16): Define.
8634 * config/arm/arm_acle_builtins.def: Define builtins for the above.
8635 * config/arm/unspecs.md: Define unspecs for the above.
8636 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
8637 (USXTB16): Likewise.
8638 (simd32_op): New int_attribute.
8639 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
8640 * doc/sourcebuild.exp (arm_simd32_ok): Document.
8641
8642 2019-09-26 Martin Jambor <mjambor@suse.cz>
8643
8644 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
8645 internal_error.
8646
8647 2019-09-26 Martin Jambor <mjambor@suse.cz>
8648
8649 * ipa-sra.c (process_scan_results): Fix continue condition.
8650
8651 2019-09-26 Martin Liska <mliska@suse.cz>
8652
8653 PR tree-optimization/91885
8654 * tree-vectorizer.c (try_vectorize_loop_1): Add
8655 TODO_update_ssa_only_virtuals similarly to what slp pass does.
8656
8657 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
8658
8659 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
8660 aarch64_plus_immediate rather than aarch64_uimm12_shift
8661 to test for valid PLUS immediates.
8662
8663 2019-09-25 Martin Jambor <mjambor@suse.cz>
8664
8665 * tree-sra.c (no_accesses_p): Remove.
8666 (no_accesses_representant): Likewise.
8667
8668 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8669
8670 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
8671 consistenly.
8672 (vaba_s16): Likewise.
8673 (vaba_s32): Likewise.
8674 (vaba_u8): Likewise.
8675 (vaba_u16): Likewise.
8676 (vaba_u32): Likewise.
8677 (vabal_high_s8): Likewise.
8678 (vabal_high_s16): Likewise.
8679 (vabal_high_s32): Likewise.
8680 (vabal_high_u8): Likewise.
8681 (vabal_high_u16): Likewise.
8682 (vabal_high_u32): Likewise.
8683 (vabal_s8): Likewise.
8684 (vabal_s16): Likewise.
8685 (vabal_s32): Likewise.
8686 (vabal_u8): Likewise.
8687 (vabal_u16): Likewise.
8688 (vabal_u32): Likewise.
8689 (vabaq_s8): Likewise.
8690 (vabaq_s16): Likewise.
8691 (vabaq_s32): Likewise.
8692 (vabaq_u8): Likewise.
8693 (vabaq_u16): Likewise.
8694 (vabaq_u32): Likewise.
8695 (vabd_s8): Likewise.
8696 (vabd_s16): Likewise.
8697 (vabd_s32): Likewise.
8698 (vabd_u8): Likewise.
8699 (vabd_u16): Likewise.
8700 (vabd_u32): Likewise.
8701 (vabdl_high_s8): Likewise.
8702 (vabdl_high_s16): Likewise.
8703 (vabdl_high_s32): Likewise.
8704 (vabdl_high_u8): Likewise.
8705 (vabdl_high_u16): Likewise.
8706 (vabdl_high_u32): Likewise.
8707 (vabdl_s8): Likewise.
8708 (vabdl_s16): Likewise.
8709 (vabdl_s32): Likewise.
8710 (vabdl_u8): Likewise.
8711 (vabdl_u16): Likewise.
8712 (vabdl_u32): Likewise.
8713 (vabdq_s8): Likewise.
8714 (vabdq_s16): Likewise.
8715 (vabdq_s32): Likewise.
8716 (vabdq_u8): Likewise.
8717 (vabdq_u16): Likewise.
8718 (vabdq_u32): Likewise.
8719 (vaddlv_s8): Likewise.
8720 (vaddlv_s16): Likewise.
8721 (vaddlv_u8): Likewise.
8722 (vaddlv_u16): Likewise.
8723 (vaddlvq_s8): Likewise.
8724 (vaddlvq_s16): Likewise.
8725 (vaddlvq_s32): Likewise.
8726 (vaddlvq_u8): Likewise.
8727 (vaddlvq_u16): Likewise.
8728 (vaddlvq_u32): Likewise.
8729 (vcvtx_f32_f64): Likewise.
8730 (vcvtx_high_f32_f64): Likewise.
8731 (vcvtxd_f32_f64): Likewise.
8732 (vmla_n_f32): Likewise.
8733 (vmla_n_s16): Likewise.
8734 (vmla_n_s32): Likewise.
8735 (vmla_n_u16): Likewise.
8736 (vmla_n_u32): Likewise.
8737 (vmla_s8): Likewise.
8738 (vmla_s16): Likewise.
8739 (vmla_s32): Likewise.
8740 (vmla_u8): Likewise.
8741 (vmla_u16): Likewise.
8742 (vmla_u32): Likewise.
8743 (vmlal_high_n_s16): Likewise.
8744 (vmlal_high_n_s32): Likewise.
8745 (vmlal_high_n_u16): Likewise.
8746 (vmlal_high_n_u32): Likewise.
8747 (vmlal_high_s8): Likewise.
8748 (vmlal_high_s16): Likewise.
8749 (vmlal_high_s32): Likewise.
8750 (vmlal_high_u8): Likewise.
8751 (vmlal_high_u16): Likewise.
8752 (vmlal_high_u32): Likewise.
8753 (vmlal_n_s16): Likewise.
8754 (vmlal_n_s32): Likewise.
8755 (vmlal_n_u16): Likewise.
8756 (vmlal_n_u32): Likewise.
8757 (vmlal_s8): Likewise.
8758 (vmlal_s16): Likewise.
8759 (vmlal_s32): Likewise.
8760 (vmlal_u8): Likewise.
8761 (vmlal_u16): Likewise.
8762 (vmlal_u32): Likewise.
8763 (vmlaq_n_f32): Likewise.
8764 (vmlaq_n_s16): Likewise.
8765 (vmlaq_n_s32): Likewise.
8766 (vmlaq_n_u16): Likewise.
8767 (vmlaq_n_u32): Likewise.
8768 (vmlaq_s8): Likewise.
8769 (vmlaq_s16): Likewise.
8770 (vmlaq_s32): Likewise.
8771 (vmlaq_u8): Likewise.
8772 (vmlaq_u16): Likewise.
8773 (vmlaq_u32): Likewise.
8774 (vmls_n_f32): Likewise.
8775 (vmls_n_s16): Likewise.
8776 (vmls_n_s32): Likewise.
8777 (vmls_n_u16): Likewise.
8778 (vmls_n_u32): Likewise.
8779 (vmls_s8): Likewise.
8780 (vmls_s16): Likewise.
8781 (vmls_s32): Likewise.
8782 (vmls_u8): Likewise.
8783 (vmls_u16): Likewise.
8784 (vmls_u32): Likewise.
8785 (vmlsl_high_n_s16): Likewise.
8786 (vmlsl_high_n_s32): Likewise.
8787 (vmlsl_high_n_u16): Likewise.
8788 (vmlsl_high_n_u32): Likewise.
8789 (vmlsl_high_s8): Likewise.
8790 (vmlsl_high_s16): Likewise.
8791 (vmlsl_high_s32): Likewise.
8792 (vmlsl_high_u8): Likewise.
8793 (vmlsl_high_u16): Likewise.
8794 (vmlsl_high_u32): Likewise.
8795 (vmlsl_n_s16): Likewise.
8796 (vmlsl_n_s32): Likewise.
8797 (vmlsl_n_u16): Likewise.
8798 (vmlsl_n_u32): Likewise.
8799 (vmlsl_s8): Likewise.
8800 (vmlsl_s16): Likewise.
8801 (vmlsl_s32): Likewise.
8802 (vmlsl_u8): Likewise.
8803 (vmlsl_u16): Likewise.
8804 (vmlsl_u32): Likewise.
8805 (vmlsq_n_f32): Likewise.
8806 (vmlsq_n_s16): Likewise.
8807 (vmlsq_n_s32): Likewise.
8808 (vmlsq_n_u16): Likewise.
8809 (vmlsq_n_u32): Likewise.
8810 (vmlsq_s8): Likewise.
8811 (vmlsq_s16): Likewise.
8812 (vmlsq_s32): Likewise.
8813 (vmlsq_u8): Likewise.
8814 (vmlsq_u16): Likewise.
8815 (vmlsq_u32): Likewise.
8816 (vmovl_high_s8): Likewise.
8817 (vmovl_high_s16): Likewise.
8818 (vmovl_high_s32): Likewise.
8819 (vmovl_high_u8): Likewise.
8820 (vmovl_high_u16): Likewise.
8821 (vmovl_high_u32): Likewise.
8822 (vmovl_s8): Likewise.
8823 (vmovl_s16): Likewise.
8824 (vmovl_s32): Likewise.
8825 (vmovl_u8): Likewise.
8826 (vmovl_u16): Likewise.
8827 (vmovl_u32): Likewise.
8828 (vmovn_high_s16): Likewise.
8829 (vmovn_high_s32): Likewise.
8830 (vmovn_high_s64): Likewise.
8831 (vmovn_high_u16): Likewise.
8832 (vmovn_high_u32): Likewise.
8833 (vmovn_high_u64): Likewise.
8834 (vmovn_s16): Likewise.
8835 (vmovn_s32): Likewise.
8836 (vmovn_s64): Likewise.
8837 (vmovn_u16): Likewise.
8838 (vmovn_u32): Likewise.
8839 (vmovn_u64): Likewise.
8840 (vmull_high_n_s16): Likewise.
8841 (vmull_high_n_s32): Likewise.
8842 (vmull_high_n_u16): Likewise.
8843 (vmull_high_n_u32): Likewise.
8844 (vmull_high_p8): Likewise.
8845 (vmull_high_s8): Likewise.
8846 (vmull_high_s16): Likewise.
8847 (vmull_high_s32): Likewise.
8848 (vmull_high_u8): Likewise.
8849 (vmull_high_u16): Likewise.
8850 (vmull_high_u32): Likewise.
8851 (vmull_n_s16): Likewise.
8852 (vmull_n_s32): Likewise.
8853 (vmull_n_u16): Likewise.
8854 (vmull_n_u32): Likewise.
8855 (vmull_p8): Likewise.
8856 (vmull_s8): Likewise.
8857 (vmull_s16): Likewise.
8858 (vmull_s32): Likewise.
8859 (vmull_u8): Likewise.
8860 (vmull_u16): Likewise.
8861 (vmull_u32): Likewise.
8862 (vpadal_s8): Likewise.
8863 (vpadal_s16): Likewise.
8864 (vpadal_s32): Likewise.
8865 (vpadal_u8): Likewise.
8866 (vpadal_u16): Likewise.
8867 (vpadal_u32): Likewise.
8868 (vpadalq_s8): Likewise.
8869 (vpadalq_s16): Likewise.
8870 (vpadalq_s32): Likewise.
8871 (vpadalq_u8): Likewise.
8872 (vpadalq_u16): Likewise.
8873 (vpadalq_u32): Likewise.
8874 (vpaddl_s8): Likewise.
8875 (vpaddl_s16): Likewise.
8876 (vpaddl_s32): Likewise.
8877 (vpaddl_u8): Likewise.
8878 (vpaddl_u16): Likewise.
8879 (vpaddl_u32): Likewise.
8880 (vpaddlq_s8): Likewise.
8881 (vpaddlq_s16): Likewise.
8882 (vpaddlq_s32): Likewise.
8883 (vpaddlq_u8): Likewise.
8884 (vpaddlq_u16): Likewise.
8885 (vpaddlq_u32): Likewise.
8886 (vpaddq_s8): Likewise.
8887 (vpaddq_s16): Likewise.
8888 (vpaddq_s32): Likewise.
8889 (vpaddq_s64): Likewise.
8890 (vpaddq_u8): Likewise.
8891 (vpaddq_u16): Likewise.
8892 (vpaddq_u32): Likewise.
8893 (vpaddq_u64): Likewise.
8894 (vqdmulh_n_s16): Likewise.
8895 (vqdmulh_n_s32): Likewise.
8896 (vqdmulhq_n_s16): Likewise.
8897 (vqdmulhq_n_s32): Likewise.
8898 (vqmovn_high_s16): Likewise.
8899 (vqmovn_high_s32): Likewise.
8900 (vqmovn_high_s64): Likewise.
8901 (vqmovn_high_u16): Likewise.
8902 (vqmovn_high_u32): Likewise.
8903 (vqmovn_high_u64): Likewise.
8904 (vqmovun_high_s16): Likewise.
8905 (vqmovun_high_s32): Likewise.
8906 (vqmovun_high_s64): Likewise.
8907 (vqrdmulh_n_s16): Likewise.
8908 (vqrdmulh_n_s32): Likewise.
8909 (vqrdmulhq_n_s16): Likewise.
8910 (vqrdmulhq_n_s32): Likewise.
8911 (vrsqrte_u32): Likewise.
8912 (vrsqrteq_u32): Likewise.
8913 (vtst_p8): Likewise.
8914 (vtst_p16): Likewise.
8915 (vtst_p64): Likewise.
8916 (vtstq_p8): Likewise.
8917 (vtstq_p16): Likewise.
8918 (vtstq_p64): Likewise.
8919 (vaddlv_s32): Likewise.
8920 (vaddlv_u32): Likewise.
8921 (vqtbl1_p8): Likewise.
8922 (vqtbl1_s8): Likewise.
8923 (vqtbl1_u8): Likewise.
8924 (vqtbl1q_p8): Likewise.
8925 (vqtbl1q_s8): Likewise.
8926 (vqtbl1q_u8): Likewise.
8927 (vqtbx1_s8): Likewise.
8928 (vqtbx1_u8): Likewise.
8929 (vqtbx1_p8): Likewise.
8930 (vqtbx1q_s8): Likewise.
8931 (vqtbx1q_u8): Likewise.
8932 (vqtbx1q_p8): Likewise.
8933 (vtbl1_s8): Likewise.
8934 (vtbl1_u8): Likewise.
8935 (vtbl1_p8): Likewise.
8936 (vtbl2_s8): Likewise.
8937 (vtbl2_u8): Likewise.
8938 (vtbl2_p8): Likewise.
8939 (vtbl3_s8): Likewise.
8940 (vtbl3_u8): Likewise.
8941 (vtbl3_p8): Likewise.
8942 (vtbl4_s8): Likewise.
8943 (vtbl4_u8): Likewise.
8944 (vtbl4_p8): Likewise.
8945 (vtbx2_s8): Likewise.
8946 (vtbx2_u8): Likewise.
8947 (vtbx2_p8): Likewise.
8948 (vld1_f32): Likewise.
8949 (vld1_f64): Likewise.
8950 (vld1_p8): Likewise.
8951 (vld1_p16): Likewise.
8952 (vld1_p64): Likewise.
8953 (vld1_s8): Likewise.
8954 (vld1_s16): Likewise.
8955 (vld1_s32): Likewise.
8956 (vld1_s64): Likewise.
8957 (vld1_u8): Likewise.
8958 (vld1_u16): Likewise.
8959 (vld1_u32): Likewise.
8960 (vld1_u64): Likewise.
8961 (vld1q_f32): Likewise.
8962 (vld1q_f64): Likewise.
8963 (vld1q_p8): Likewise.
8964 (vld1q_p16): Likewise.
8965 (vld1q_p64): Likewise.
8966 (vld1q_s8): Likewise.
8967 (vld1q_s16): Likewise.
8968 (vld1q_s32): Likewise.
8969 (vld1q_s64): Likewise.
8970 (vld1q_u8): Likewise.
8971 (vld1q_u16): Likewise.
8972 (vld1q_u32): Likewise.
8973 (vld1q_u64): Likewise.
8974 (vpmax_s8): Likewise.
8975 (vpmax_s16): Likewise.
8976 (vpmax_s32): Likewise.
8977 (vpmax_u8): Likewise.
8978 (vpmax_u16): Likewise.
8979 (vpmax_u32): Likewise.
8980 (vpmaxq_s8): Likewise.
8981 (vpmaxq_s16): Likewise.
8982 (vpmaxq_s32): Likewise.
8983 (vpmaxq_u8): Likewise.
8984 (vpmaxq_u16): Likewise.
8985 (vpmaxq_u32): Likewise.
8986 (vpmax_f32): Likewise.
8987 (vpmaxq_f32): Likewise.
8988 (vpmaxq_f64): Likewise.
8989 (vpmaxqd_f64): Likewise.
8990 (vpmaxs_f32): Likewise.
8991 (vpmaxnm_f32): Likewise.
8992 (vpmaxnmq_f32): Likewise.
8993 (vpmaxnmq_f64): Likewise.
8994 (vpmaxnmqd_f64): Likewise.
8995 (vpmaxnms_f32): Likewise.
8996 (vpmin_s8): Likewise.
8997 (vpmin_s16): Likewise.
8998 (vpmin_s32): Likewise.
8999 (vpmin_u8): Likewise.
9000 (vpmin_u16): Likewise.
9001 (vpmin_u32): Likewise.
9002 (vpminq_s8): Likewise.
9003 (vpminq_s16): Likewise.
9004 (vpminq_s32): Likewise.
9005 (vpminq_u8): Likewise.
9006 (vpminq_u16): Likewise.
9007 (vpminq_u32): Likewise.
9008 (vpmin_f32): Likewise.
9009 (vpminq_f32): Likewise.
9010 (vpminq_f64): Likewise.
9011 (vpminqd_f64): Likewise.
9012 (vpmins_f32): Likewise.
9013 (vpminnm_f32): Likewise.
9014 (vpminnmq_f32): Likewise.
9015 (vpminnmq_f64): Likewise.
9016 (vpminnmqd_f64): Likewise.
9017 (vpminnms_f32): Likewise.
9018 (vmla_f32): Likewise.
9019 (vmlaq_f32): Likewise.
9020 (vmlaq_f64): Likewise.
9021 (vmls_f32): Likewise.
9022 (vmlsq_f32): Likewise.
9023 (vmlsq_f64): Likewise.
9024 (vqtbl2_s8): Likewise.
9025 (vqtbl2_u8): Likewise.
9026 (vqtbl2_p8): Likewise.
9027 (vqtbl2q_s8): Likewise.
9028 (vqtbl2q_u8): Likewise.
9029 (vqtbl2q_p8): Likewise.
9030 (vqtbl3_s8): Likewise.
9031 (vqtbl3_u8): Likewise.
9032 (vqtbl3_p8): Likewise.
9033 (vqtbl3q_s8): Likewise.
9034 (vqtbl3q_u8): Likewise.
9035 (vqtbl3q_p8): Likewise.
9036 (vqtbl4_s8): Likewise.
9037 (vqtbl4_u8): Likewise.
9038 (vqtbl4_p8): Likewise.
9039 (vqtbl4q_s8): Likewise.
9040 (vqtbl4q_u8): Likewise.
9041 (vqtbl4q_p8): Likewise.
9042 (vqtbx2_s8): Likewise.
9043 (vqtbx2_u8): Likewise.
9044 (vqtbx2_p8): Likewise.
9045 (vqtbx2q_s8): Likewise.
9046 (vqtbx2q_u8): Likewise.
9047 (vqtbx2q_p8): Likewise.
9048 (vqtbx3_s8): Likewise.
9049 (vqtbx3_u8): Likewise.
9050 (vqtbx3_p8): Likewise.
9051 (vqtbx3q_s8): Likewise.
9052 (vqtbx3q_u8): Likewise.
9053 (vqtbx3q_p8): Likewise.
9054 (vqtbx4_s8): Likewise.
9055 (vqtbx4_u8): Likewise.
9056 (vqtbx4_p8): Likewise.
9057 (vqtbx4q_s8): Likewise.
9058 (vqtbx4q_u8): Likewise.
9059 (vqtbx4q_p8): Likewise.
9060 (vrev16_p8): Likewise.
9061 (vrev16_s8): Likewise.
9062 (vrev16_u8): Likewise.
9063 (vrev16q_p8): Likewise.
9064 (vrev16q_s8): Likewise.
9065 (vrev16q_u8): Likewise.
9066 (vrev32_p8): Likewise.
9067 (vrev32_p16): Likewise.
9068 (vrev32_s8): Likewise.
9069 (vrev32_s16): Likewise.
9070 (vrev32_u8): Likewise.
9071 (vrev32_u16): Likewise.
9072 (vrev32q_p8): Likewise.
9073 (vrev32q_p16): Likewise.
9074 (vrev32q_s8): Likewise.
9075 (vrev32q_s16): Likewise.
9076 (vrev32q_u8): Likewise.
9077 (vrev32q_u16): Likewise.
9078 (vrev64_f32): Likewise.
9079 (vrev64_p8): Likewise.
9080 (vrev64_p16): Likewise.
9081 (vrev64_s8): Likewise.
9082 (vrev64_s16): Likewise.
9083 (vrev64_s32): Likewise.
9084 (vrev64_u8): Likewise.
9085 (vrev64_u16): Likewise.
9086 (vrev64_u32): Likewise.
9087 (vrev64q_f32): Likewise.
9088 (vrev64q_p8): Likewise.
9089 (vrev64q_p16): Likewise.
9090 (vrev64q_s8): Likewise.
9091 (vrev64q_s16): Likewise.
9092 (vrev64q_s32): Likewise.
9093 (vrev64q_u8): Likewise.
9094 (vrev64q_u16): Likewise.
9095 (vrev64q_u32): Likewise.
9096 (vsha1cq_u32): Likewise.
9097 (vsha1mq_u32): Likewise.
9098 (vsha1pq_u32): Likewise.
9099 (vsha1h_u32): Likewise.
9100 (vsha1su0q_u32): Likewise.
9101 (vsha1su1q_u32): Likewise.
9102 (vsha256hq_u32): Likewise.
9103 (vsha256h2q_u32): Likewise.
9104 (vsha256su0q_u32): Likewise.
9105 (vsha256su1q_u32): Likewise.
9106 (vmull_p64): Likewise.
9107 (vmull_high_p64): Likewise.
9108 (vsqrt_f32): Likewise.
9109 (vsqrtq_f32): Likewise.
9110 (vsqrt_f64): Likewise.
9111 (vsqrtq_f64): Likewise.
9112 (vst1_f32): Likewise.
9113 (vst1_f64): Likewise.
9114 (vst1_p8): Likewise.
9115 (vst1_p16): Likewise.
9116 (vst1_p64): Likewise.
9117 (vst1_s8): Likewise.
9118 (vst1_s16): Likewise.
9119 (vst1_s32): Likewise.
9120 (vst1_s64): Likewise.
9121 (vst1_u8): Likewise.
9122 (vst1_u16): Likewise.
9123 (vst1_u32): Likewise.
9124 (vst1_u64): Likewise.
9125 (vst1q_f32): Likewise.
9126 (vst1q_f64): Likewise.
9127 (vst1q_p8): Likewise.
9128 (vst1q_p16): Likewise.
9129 (vst1q_p64): Likewise.
9130 (vst1q_s8): Likewise.
9131 (vst1q_s16): Likewise.
9132 (vst1q_s32): Likewise.
9133 (vst1q_s64): Likewise.
9134 (vst1q_u8): Likewise.
9135 (vst1q_u16): Likewise.
9136 (vst1q_u32): Likewise.
9137 (vst1q_u64): Likewise.
9138 (vst1_s64_x2): Likewise.
9139 (vst1_u64_x2): Likewise.
9140 (vst1_f64_x2): Likewise.
9141 (vst1_s8_x2): Likewise.
9142 (vst1_p8_x2): Likewise.
9143 (vst1_s16_x2): Likewise.
9144 (vst1_p16_x2): Likewise.
9145 (vst1_s32_x2): Likewise.
9146 (vst1_u8_x2): Likewise.
9147 (vst1_u16_x2): Likewise.
9148 (vst1_u32_x2): Likewise.
9149 (vst1_f16_x2): Likewise.
9150 (vst1_f32_x2): Likewise.
9151 (vst1_p64_x2): Likewise.
9152 (vst1q_s8_x2): Likewise.
9153 (vst1q_p8_x2): Likewise.
9154 (vst1q_s16_x2): Likewise.
9155 (vst1q_p16_x2): Likewise.
9156 (vst1q_s32_x2): Likewise.
9157 (vst1q_s64_x2): Likewise.
9158 (vst1q_u8_x2): Likewise.
9159 (vst1q_u16_x2): Likewise.
9160 (vst1q_u32_x2): Likewise.
9161 (vst1q_u64_x2): Likewise.
9162 (vst1q_f16_x2): Likewise.
9163 (vst1q_f32_x2): Likewise.
9164 (vst1q_f64_x2): Likewise.
9165 (vst1q_p64_x2): Likewise.
9166 (vst1_s64_x3): Likewise.
9167 (vst1_u64_x3): Likewise.
9168 (vst1_f64_x3): Likewise.
9169 (vst1_s8_x3): Likewise.
9170 (vst1_p8_x3): Likewise.
9171 (vst1_s16_x3): Likewise.
9172 (vst1_p16_x3): Likewise.
9173 (vst1_s32_x3): Likewise.
9174 (vst1_u8_x3): Likewise.
9175 (vst1_u16_x3): Likewise.
9176 (vst1_u32_x3): Likewise.
9177 (vst1_f16_x3): Likewise.
9178 (vst1_f32_x3): Likewise.
9179 (vst1_p64_x3): Likewise.
9180 (vst1q_s8_x3): Likewise.
9181 (vst1q_p8_x3): Likewise.
9182 (vst1q_s16_x3): Likewise.
9183 (vst1q_p16_x3): Likewise.
9184 (vst1q_s32_x3): Likewise.
9185 (vst1q_s64_x3): Likewise.
9186 (vst1q_u8_x3): Likewise.
9187 (vst1q_u16_x3): Likewise.
9188 (vst1q_u32_x3): Likewise.
9189 (vst1q_u64_x3): Likewise.
9190 (vst1q_f16_x3): Likewise.
9191 (vst1q_f32_x3): Likewise.
9192 (vst1q_f64_x3): Likewise.
9193 (vst1q_p64_x3): Likewise.
9194 (vst2_s64): Likewise.
9195 (vst2_u64): Likewise.
9196 (vst2_f64): Likewise.
9197 (vst2_s8): Likewise.
9198 (vst2_p8): Likewise.
9199 (vst2_s16): Likewise.
9200 (vst2_p16): Likewise.
9201 (vst2_s32): Likewise.
9202 (vst2_u8): Likewise.
9203 (vst2_u16): Likewise.
9204 (vst2_u32): Likewise.
9205 (vst2_f16): Likewise.
9206 (vst2_f32): Likewise.
9207 (vst2_p64): Likewise.
9208 (vst2q_s8): Likewise.
9209 (vst2q_p8): Likewise.
9210 (vst2q_s16): Likewise.
9211 (vst2q_p16): Likewise.
9212 (vst2q_s32): Likewise.
9213 (vst2q_s64): Likewise.
9214 (vst2q_u8): Likewise.
9215 (vst2q_u16): Likewise.
9216 (vst2q_u32): Likewise.
9217 (vst2q_u64): Likewise.
9218 (vst2q_f16): Likewise.
9219 (vst2q_f32): Likewise.
9220 (vst2q_f64): Likewise.
9221 (vst2q_p64): Likewise.
9222 (vst3_s64): Likewise.
9223 (vst3_u64): Likewise.
9224 (vst3_f64): Likewise.
9225 (vst3_s8): Likewise.
9226 (vst3_p8): Likewise.
9227 (vst3_s16): Likewise.
9228 (vst3_p16): Likewise.
9229 (vst3_s32): Likewise.
9230 (vst3_u8): Likewise.
9231 (vst3_u16): Likewise.
9232 (vst3_u32): Likewise.
9233 (vst3_f16): Likewise.
9234 (vst3_f32): Likewise.
9235 (vst3_p64): Likewise.
9236 (vst3q_s8): Likewise.
9237 (vst3q_p8): Likewise.
9238 (vst3q_s16): Likewise.
9239 (vst3q_p16): Likewise.
9240 (vst3q_s32): Likewise.
9241 (vst3q_s64): Likewise.
9242 (vst3q_u8): Likewise.
9243 (vst3q_u16): Likewise.
9244 (vst3q_u32): Likewise.
9245 (vst3q_u64): Likewise.
9246 (vst3q_f16): Likewise.
9247 (vst3q_f32): Likewise.
9248 (vst3q_f64): Likewise.
9249 (vst3q_p64): Likewise.
9250 (vst4_s64): Likewise.
9251 (vst4_u64): Likewise.
9252 (vst4_f64): Likewise.
9253 (vst4_s8): Likewise.
9254 (vst4_p8): Likewise.
9255 (vst4_s16): Likewise.
9256 (vst4_p16): Likewise.
9257 (vst4_s32): Likewise.
9258 (vst4_u8): Likewise.
9259 (vst4_u16): Likewise.
9260 (vst4_u32): Likewise.
9261 (vst4_f16): Likewise.
9262 (vst4_f32): Likewise.
9263 (vst4_p64): Likewise.
9264 (vst4q_s8): Likewise.
9265 (vst4q_p8): Likewise.
9266 (vst4q_s16): Likewise.
9267 (vst4q_p16): Likewise.
9268 (vst4q_s32): Likewise.
9269 (vst4q_s64): Likewise.
9270 (vst4q_u8): Likewise.
9271 (vst4q_u16): Likewise.
9272 (vst4q_u32): Likewise.
9273 (vst4q_u64): Likewise.
9274 (vst4q_f16): Likewise.
9275 (vst4q_f32): Likewise.
9276 (vst4q_f64): Likewise.
9277 (vst4q_p64): Likewise.
9278 (vtbx4_s8): Likewise.
9279 (vtbx4_u8): Likewise.
9280 (vtbx4_p8): Likewise.
9281 (vtrn_f32): Likewise.
9282 (vtrn_p8): Likewise.
9283 (vtrn_p16): Likewise.
9284 (vtrn_s8): Likewise.
9285 (vtrn_s16): Likewise.
9286 (vtrn_s32): Likewise.
9287 (vtrn_u8): Likewise.
9288 (vtrn_u16): Likewise.
9289 (vtrn_u32): Likewise.
9290 (vtrnq_f32): Likewise.
9291 (vtrnq_p8): Likewise.
9292 (vtrnq_p16): Likewise.
9293 (vtrnq_s8): Likewise.
9294 (vtrnq_s16): Likewise.
9295 (vtrnq_s32): Likewise.
9296 (vtrnq_u8): Likewise.
9297 (vtrnq_u16): Likewise.
9298 (vtrnq_u32): Likewise.
9299 (vrsqrte_f16): Likewise.
9300 (vrsqrteq_f16): Likewise.
9301 (vsqrt_f16): Likewise.
9302 (vsqrtq_f16): Likewise.
9303 (vabd_f16): Likewise.
9304 (vabdq_f16): Likewise.
9305 (vpadd_f16): Likewise.
9306 (vpaddq_f16): Likewise.
9307 (vpmax_f16): Likewise.
9308 (vpmaxq_f16): Likewise.
9309 (vpmaxnm_f16): Likewise.
9310 (vpmaxnmq_f16): Likewise.
9311 (vpmin_f16): Likewise.
9312 (vpminq_f16): Likewise.
9313 (vpminnm_f16): Likewise.
9314 (vpminnmq_f16): Likewise.
9315 (vrsqrts_f16): Likewise.
9316 (vrsqrtsq_f16): Likewise.
9317
9318 2019-09-25 Richard Biener <rguenther@suse.de>
9319
9320 PR tree-optimization/91896
9321 * tree-vect-loop.c (vectorizable_reduction): The single
9322 def-use cycle optimization cannot apply when there's more
9323 than one pattern stmt involved.
9324
9325 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9326
9327 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
9328 the 'P' mode iterator, replacing the (removed) SI and DI variants.
9329 (reload_macho_picbase_<mode>): Likewise.
9330
9331 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
9332
9333 * config/rs6000/rs6000.md: Move darwin.md include until
9334 after the definition of the mode iterators.
9335
9336 2019-09-23 Martin Sebor <msebor@redhat.com>
9337
9338 PR tree-optimization/91570
9339 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
9340 non-constant minlen, maxlen and maxbound.
9341
9342 2019-09-24 Richard Biener <rguenther@suse.de>
9343
9344 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
9345 Rename to...
9346 (_stmt_vec_info::cond_reduc_code): ... this.
9347 (_stmt_vec_info::induc_cond_initial_val): Add.
9348 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
9349 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
9350 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
9351 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
9352 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
9353 the reduction code.
9354 (vect_create_epilog_for_reduction): Drop special
9355 induction condition reduction params, pass in reduction code
9356 and simplify.
9357 (vectorizable_reduction): Perform condition reduction kind
9358 selection only at analysis time. Adjust passing on state.
9359
9360 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9361
9362 * config/aarch64/aarch64.md (mov<mode>): Don't call
9363 aarch64_split_dimode_const_store on volatile MEM.
9364
9365 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
9366
9367 * config/aarch64/aarch64-option-extensions.def (fp16fml):
9368 Update hwcap string for fp16fml.
9369
9370 2019-09-24 Jakub Jelinek <jakub@redhat.com>
9371
9372 PR middle-end/91866
9373 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
9374 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
9375
9376 2019-09-24 Martin Liska <mliska@suse.cz>
9377
9378 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
9379 instead of if-elseif-elseif-...
9380 * gimple-expr.c (extract_ops_from_tree): Likewise.
9381 * gimple.c (get_gimple_rhs_num_ops): Likewise.
9382 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
9383
9384 2019-09-24 Martin Jambor <mjambor@suse.cz>
9385
9386 PR ipa/91831
9387 * ipa-param-manipulation.c (carry_over_param): Make a method of
9388 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
9389 in case of a context mismatch.
9390 (ipa_param_body_adjustments::common_initialization): Adjust call to
9391 carry_over_param.
9392 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
9393 private method carry_over_param.
9394
9395 2019-09-24 Martin Jambor <mjambor@suse.cz>
9396
9397 PR ipa/91832
9398 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
9399
9400 2019-09-24 Richard Biener <rguenther@suse.de>
9401
9402 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
9403 base.
9404
9405 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9406
9407 * config/arm/t-arm (arm-builtins.o): Add dependency on
9408 arm_acle_builtins.def.
9409
9410 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9411
9412 PR target/91823
9413 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
9414 canonical CONST_INTs. Use gen_rtvec.
9415
9416 2019-09-23 Richard Biener <rguenther@suse.de>
9417
9418 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
9419 avoid adjusting by + 0 or * 1.
9420 (vect_create_epilog_for_reduction): Get reduction code only
9421 when necessary. Deal with adjustment_def only when necessary.
9422
9423 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
9424
9425 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
9426 memmodel index.
9427
9428 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9429
9430 PR ipa/91835
9431 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
9432 "ipa-sra".
9433
9434 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
9435
9436 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
9437 code. Merge code blocks with common conditionals. Use declared
9438 macro instead of a magic number for PIC level.
9439
9440 2019-09-21 Martin Sebor <msebor@redhat.com>
9441
9442 PR middle-end/91830
9443 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
9444 Simplify computation of the offset of the referenced subobject.
9445
9446 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
9447
9448 * config/darwin.c (machopic_legitimize_pic_address): Check
9449 for lra not reload.
9450
9451 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9452
9453 * ira-conflicts.c (can_use_same_reg_p): New function.
9454 (process_reg_shuffles): Take an insn parameter. Ignore cases
9455 in which input operand op_num could seemingly never be allocated
9456 to the same register as the destination.
9457 (add_insn_allocno_copies): Update call to process_reg_shuffles.
9458
9459 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
9460
9461 * simplify-rtx.c (neg_const_int): Replace with...
9462 (neg_poly_int_rtx): ...this new function.
9463 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
9464 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
9465 (simplify_plus_minus): Likewise for constant terms here.
9466
9467 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
9468
9469 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
9470 HOST_WIDE_PRINT_UNSIGNED.
9471
9472 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
9473
9474 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
9475 character.
9476
9477 2019-09-20 Maya Rashish <coypu@sdf.org>
9478
9479 PR target/86811
9480 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
9481 Define to speculation_safe_value_not_needed.
9482
9483 2019-09-20 Richard Biener <rguenther@suse.de>
9484 Uros Bizjak <ubizjak@gmail.com>
9485
9486 PR target/91814
9487 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
9488 previous change.
9489 (general_scalar_chain::convert_op): Force not suitable memory
9490 operands to a register.
9491
9492 2019-09-20 Richard Biener <rguenther@suse.de>
9493
9494 PR tree-optimization/91821
9495 * tree-vect-loop.c (check_reduction_path): Check we can compute
9496 reduc_idx.
9497 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
9498 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
9499 operands in canonical order.
9500 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9501 STMT_VINFO_REDUC_IDX.
9502 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
9503 (STMT_VINFO_REDUC_IDX): Likewise.
9504
9505 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
9506
9507 PR target/91269
9508 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
9509
9510 2019-09-20 Richard Biener <rguenther@suse.de>
9511
9512 PR tree-optimization/91822
9513 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
9514 parameter.
9515 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
9516 for reduc_index in nested cycles, adjust vectorizable_condition
9517 calls.
9518 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
9519 parameter.
9520 (vect_analyze_stmt): Adjust.
9521 (vect_transform_stmt): Likewise.
9522
9523 2019-09-20 Richard Biener <rguenther@suse.de>
9524
9525 PR target/91767
9526 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
9527 Ensure there's a sequence point between allocating the new register
9528 and passing a reference to a reg via regno_reg_rtx.
9529
9530 2019-09-20 Martin Jambor <mjambor@suse.cz>
9531
9532 * coretypes.h (cgraph_edge): Declare.
9533 * ipa-param-manipulation.c: Rewrite.
9534 * ipa-param-manipulation.h: Likewise.
9535 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
9536 (OBJS): Added ipa-sra.o.
9537 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
9538 and ref_p, added fields param_adjustments and performed_splits.
9539 (struct cgraph_clone_info): Remove ags_to_skip and
9540 combined_args_to_skip, new field param_adjustments.
9541 (cgraph_node::create_clone): Changed parameters to use
9542 ipa_param_adjustments.
9543 (cgraph_node::create_virtual_clone): Likewise.
9544 (cgraph_node::create_virtual_clone_with_body): Likewise.
9545 (tree_function_versioning): Likewise.
9546 (cgraph_build_function_type_skip_args): Removed.
9547 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
9548 using ipa_param_adjustments.
9549 (clone_of_p): Likewise.
9550 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
9551 (build_function_decl_skip_args): Likewise.
9552 (duplicate_thunk_for_node): Adjust parameters using
9553 ipa_param_body_adjustments, copy param_adjustments instead of
9554 args_to_skip.
9555 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
9556 (cgraph_node::create_virtual_clone): Likewise.
9557 (cgraph_node::create_version_clone_with_body): Likewise.
9558 (cgraph_materialize_clone): Likewise.
9559 (symbol_table::materialize_all_clones): Likewise.
9560 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
9561 ipa_replace_map check.
9562 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
9563 (initialize_node_lattices): Make aware that some parameters might have
9564 already been removed.
9565 (want_remove_some_param_p): New function.
9566 (create_specialized_node): Convert to using ipa_param_adjustments and
9567 deal with possibly pre-existing adjustments.
9568 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
9569 (output_node_opt_summary): Do not stream removed fields. Stream
9570 parameter adjustments instead of argumetns to skip.
9571 (input_node_opt_summary): Likewise.
9572 (input_node_opt_summary): Likewise.
9573 * lto-section-in.c (lto_section_name): Added ipa-sra section.
9574 * lto-streamer.h (lto_section_type): Likewise.
9575 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
9576 param_body_adjs.
9577 (copy_decl_to_var): Declare.
9578 * tree-inline.c (update_clone_info): Do not remap old_tree.
9579 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
9580 statements, walk all extra generated statements and remap their
9581 operands.
9582 (redirect_all_calls): Add killed SSA names to a hash set.
9583 (remap_ssa_name): Do not remap killed SSA names.
9584 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
9585 half of functionality moved to ipa_param_body_adjustments.
9586 (copy_decl_to_var): Make exported.
9587 (copy_body): Destroy killed_new_ssa_names hash set.
9588 (expand_call_inline): Remap performed splits.
9589 (update_clone_info): Likewise.
9590 (tree_function_versioning): Simplify tree_map processing. Updated to
9591 accept ipa_param_adjustments and use ipa_param_body_adjustments.
9592 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
9593 for the new interface.
9594 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
9595 (simd_clone_compute_base_data_type): Likewise.
9596 (simd_clone_init_simd_arrays): Adjust for the new interface.
9597 (simd_clone_adjust_argument_types): Likewise.
9598 (struct modify_stmt_info): Likewise.
9599 (ipa_simd_modify_stmt_ops): Likewise.
9600 (ipa_simd_modify_function_body): Likewise.
9601 (simd_clone_adjust): Likewise.
9602 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
9603 (type_internals_preclude_sra_p): Make public.
9604 * tree-sra.h: New file.
9605 * ipa-inline-transform.c (save_inline_function_body): Update to
9606 refelct new tree_function_versioning signature.
9607 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
9608 ipa_param_adjustments to get current parameter indices.
9609 (ipcp_modif_dom_walker::before_dom_children): Likewise.
9610 (ipcp_update_bits): Likewise.
9611 (ipcp_update_vr): Likewise.
9612 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
9613 * ipa-sra.c: New file.
9614 * multiple_target.c (create_target_clone): Update to reflet new type
9615 of create_version_clone_with_body.
9616 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
9617 tree_function_versioning.
9618 (modify_function): Update to reflect new type of
9619 tree_function_versioning.
9620 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
9621 * passes.def: Remove old IPA-SRA and add new one.
9622 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
9623 (make_pass_ipa_sra): Declare.
9624 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
9625 ipa_sra_retvalues.
9626 * doc/invoke.texi (ipa-sra-max-replacements): New.
9627
9628 2019-09-19 Martin Sebor <msebor@redhat.com>
9629
9630 PR middle-end/91631
9631 * builtins.c (component_size): Correct trailing array computation,
9632 rename to component_ref_size and move...
9633 (compute_objsize): Adjust.
9634 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
9635 (builtin_access::strict): Do not consider memmove.
9636 (builtin_access::write_off): New function.
9637 (builtin_memref::builtin_memref): Initialize refsize.
9638 (builtin_memref::set_base_and_offset): Adjust refoff and compute
9639 refsize.
9640 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
9641 Handle refsize.
9642 (builtin_access::builtin_access): Initialize dstoff to destination
9643 refeence offset here instead of in maybe_diag_overlap. Adjust
9644 referencess even to unrelated objects. Adjust sizrange of bounded
9645 string functions to reflect bound. For strcat, adjust destination
9646 sizrange by that of source.
9647 (builtin_access::strcat_overlap): Adjust offsets and sizes
9648 to reflect the increase in destination sizrange above.
9649 (builtin_access::overlap): Do not set dstoff here but instead
9650 in builtin_access::builtin_access.
9651 (check_bounds_or_overlap): Use builtin_access::write_off.
9652 (maybe_diag_access_bounds): Add argument. Add informational notes.
9653 (dump_builtin_memref, dump_builtin_access): New functions.
9654 * tree.c (component_ref_size): ...to here.
9655 * tree.h (component_ref_size): Declare.
9656 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
9657 nul in the size of the source string.
9658
9659 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
9660
9661 PR c/67224
9662 * doc/cpp.texi: Document support for extended characters in
9663 identifiers.
9664 * doc/cppopts.texi: Likewise.
9665
9666 2019-09-19 Richard Biener <rguenther@suse.de>
9667
9668 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
9669 (check_reduction_path): New overload having the path as result.
9670 (vect_is_simple_reduction): From the detected reduction
9671 path build a SLP reduction chain if possible.
9672
9673 2019-09-19 Richard Biener <rguenther@suse.de>
9674
9675 PR target/91814
9676 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
9677 Force operand to a register if it isn't nonimmediate_operand.
9678
9679 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
9680
9681 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
9682 * config/arm/iterators.md (optab): Add and, ior, xor entries.
9683 (logical_op): Remove code attribute.
9684 (logical_OP): Likewise.
9685
9686 2019-09-19 Martin Liska <mliska@suse.cz>
9687
9688 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
9689 Use proper casting.
9690
9691 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
9692
9693 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
9694 registers with %R.
9695
9696 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
9697 for NE comparison of TImode values.
9698 (aarch64_emit_load_exclusive): Add support for TImode.
9699 (aarch64_emit_store_exclusive): Likewise.
9700 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
9701 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
9702 Change iterator from ALLI to ALLI_TI.
9703 (@atomic_compare_and_swap<JUST_TI>): New.
9704 (@atomic_compare_and_swap<JUST_TI>_lse): New.
9705 (aarch64_load_exclusive_pair): New.
9706 (aarch64_store_exclusive_pair): New.
9707 * config/aarch64/iterators.md (JUST_TI): New.
9708
9709 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
9710 strong_zero_p for aarch64_track_speculation; unify some code paths;
9711 use aarch64_gen_compare_reg instead of open-coding.
9712
9713 * config/aarch64/aarch64.opt (-moutline-atomics): New.
9714 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
9715 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
9716 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
9717 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
9718 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
9719 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
9720 (atomic_<atomic_op><ALLI>): Likewise.
9721 (atomic_fetch_<atomic_op><ALLI>): Likewise.
9722 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
9723 * doc/invoke.texi: Document -moutline-atomics.
9724
9725 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
9726
9727 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
9728 trivial predicate for condition branch.
9729 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
9730 for switch case.
9731 (compute_bb_predicates): Update predicate based on post-dominating
9732 relationship.
9733 (analyze_function_body): Calculate post-dominating information.
9734
9735 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9736
9737 * tree-vectorizer.h (vectorizable_condition): Take an int
9738 reduction index instead of a boolean flag.
9739 * tree-vect-stmts.c (vectorizable_condition): Likewise.
9740 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
9741 reductions if the reduction accumulator is the "then" rather
9742 than the "else" value.
9743 (vect_analyze_stmt): Update call accordingly.
9744 (vect_transform_stmt): Likewise.
9745 * tree-vect-loop.c (vectorizable_reduction): Likewise,
9746 asserting that the index is > 0.
9747
9748 2019-09-19 Martin Liska <mliska@suse.cz>
9749
9750 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
9751 (sort_congruence_classes_by_decl_uid): Likewise.
9752 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
9753 easier sorting.
9754 (sem_item_optimizer::merge_classes): Likewise.
9755
9756 2019-09-19 Richard Biener <rguenther@suse.de>
9757
9758 PR tree-optimization/91812
9759 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
9760 volatile loads.
9761
9762 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
9763
9764 * defaults.h (TARGET_UNIT): New macro.
9765 (target_unit): New type.
9766 * rtl.h (native_encode_rtx, native_decode_rtx)
9767 (native_decode_vector_rtx, subreg_size_lsb): Declare.
9768 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
9769 * rtlanal.c (subreg_lsb_1): Delete.
9770 (subreg_size_lsb): New function.
9771 * simplify-rtx.c: Include rtx-vector-builder.h
9772 (simplify_immed_subreg): Delete.
9773 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
9774 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
9775 functions.
9776 (simplify_subreg): Use them.
9777 (test_vector_subregs_modes, test_vector_subregs_repeating)
9778 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
9779 (test_vector_subregs): New functions.
9780 (test_vector_ops): Call test_vector_subregs for integer vector
9781 modes with at least 2 elements.
9782
9783 2019-09-19 Richard Biener <rguenther@suse.de>
9784
9785 * tree-parloops.c (parloops_is_slp_reduction): Do not set
9786 LOOP_VINFO_OPERANDS_SWAPPED.
9787 (parloops_is_simple_reduction): Likewise.
9788 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
9789 initialize operands_swapped.
9790 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
9791 (vect_is_slp_reduction): Do not swap operands.
9792 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
9793 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
9794
9795 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
9796
9797 PR target/87007
9798 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
9799 Add avx_partial_xmm_update.
9800
9801 2019-09-18 Jim Wilson <jimw@sifive.com>
9802
9803 PR target/91683
9804 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
9805 (riscv_move_integer): Likewise.
9806 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
9807 riscv_move_integer arg.
9808 (riscv_legitimize_move): Likewise.
9809 (riscv_force_temporary): New parameter in_splitter. Don't call
9810 force_reg if true.
9811 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
9812 arg.
9813 (riscv_add_offset): Likewise.
9814 (riscv_split_symbol): New parameter in_splitter. Pass to
9815 riscv_force_temporary.
9816 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
9817 arg.
9818 (riscv_move_integer): New parameter in_splitter. New local
9819 can_create_psuedo. Don't call riscv_split_integer or force_reg when
9820 in_splitter TRUE.
9821 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
9822 riscv_split_symbol, and riscv_force_temporary args.
9823 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
9824 riscv_move_integer arg.
9825 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
9826
9827 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9828
9829 PR target/90878
9830 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
9831 hard register store cost to 6.
9832
9833 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
9834
9835 PR target/91446
9836 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
9837 pseudo register store cost from 3 to 6 to make it the same as
9838 QImode and HImode.
9839
9840 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9841
9842 PR target/91738
9843 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
9844 (one_cmpldi2): Likewise.
9845 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
9846 of the constant parts is simple.
9847 * config/arm/iterators.md (LOGICAL): Add new code iterator.
9848 (logical_op): Add new code attribute.
9849 (logical_OP): Likewise.
9850 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
9851 (arm_iordi_operand): Add predicate.
9852 (arm_xordi_operand): Add predicate.
9853
9854 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9855
9856 * config/arm/arm.md (maddsidi4): Remove expander.
9857 (mulsidi3adddi): Remove pattern.
9858 (mulsidi3adddi_v6): Likewise.
9859 (mulsidi3_nov6): Likewise.
9860 (mulsidi3_v6): Likewise.
9861 (umulsidi3): Remove expander.
9862 (umulsidi3_nov6): Remove pattern.
9863 (umulsidi3_v6): Likewise.
9864 (umulsidi3adddi): Likewise.
9865 (umulsidi3adddi_v6): Likewise.
9866 (<Us>mulsidi3): Add combined expander.
9867 (<Us>maddsidi4): Likewise.
9868 (<US>mull): Add combined umull and smull pattern.
9869 (<US>mlal): Likewise.
9870 * config/arm/iterators.md (Us): Add new iterator.
9871
9872 2019-09-18 Richard Biener <rguenther@suse.de>
9873
9874 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
9875 swapping.
9876 (vectorize_fold_left_reduction): Remove assert.
9877 (vectorizable_reduction): Also expect COND_EXPR non-reduction
9878 operand in position 2. Remove assert.
9879
9880 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9881
9882 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
9883 (smulsi3_highpart_nov6): Remove pattern.
9884 (smulsi3_highpart_v6): Likewise.
9885 (umulsi3_highpart): Likewise.
9886 (umulsi3_highpart_nov6): Likewise.
9887 (umulsi3_highpart_v6): Likewise.
9888 (<US>mull_high): Add new combined multiply pattern.
9889
9890 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
9891
9892 * config/arm/arm.md (arm_mulsi3): Remove pattern.
9893 (arm_mulsi3_v6): Likewise.
9894 (mulsi3addsi_v6): Likewise.
9895 (mulsi3subsi): Likewise.
9896 (mul): Add new multiply pattern.
9897 (mla): Likewise.
9898 (mls): Likewise.
9899
9900 2019-09-18 Richard Biener <rguenther@suse.de>
9901
9902 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
9903 (parloops_valid_reduction_input_p): Copy from
9904 valid_reduction_input_p.
9905 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
9906 (parloops_needs_fold_left_reduction_p): Copy from
9907 needs_fold_left_reduction_p.
9908 (parloops_is_simple_reduction): Copy from
9909 vect_is_simple_reduction.
9910 (parloops_force_simple_reduction): Copy from
9911 vect_force_simple_reduction.
9912 (gather_scalar_reductions): Adjust.
9913 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
9914 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
9915
9916 2019-09-18 Richard Biener <rguenther@suse.de>
9917
9918 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
9919 * tree-vect-loop.c (get_initial_def_for_reduction): Make
9920 static.
9921 (vect_create_epilog_for_reduction): Remove dead code.
9922
9923 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9924
9925 * varasm.c (assemble_real): Generate canonical const_ints.
9926
9927 2019-09-18 Richard Biener <rguenther@suse.de>
9928
9929 PR lto/91763
9930 * lto-streamer-in.c (input_eh_regions): Move EH init to
9931 lto_materialize_function.
9932 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
9933 Likewise.
9934
9935 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9936
9937 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
9938 are INTEGER_CSTs.
9939
9940 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9941
9942 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
9943 of checking specifically for INTEGER_CST.
9944
9945 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9946
9947 * stor-layout.c (compute_record_mode): Operate on poly_uint64
9948 sizes instead of uhwi sizes.
9949
9950 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
9951
9952 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
9953 (add_const_value_attribute): Handle CONST_POLY_INT.
9954
9955 2019-09-18 Martin Liska <mliska@suse.cz>
9956
9957 * dbgcnt.def (store_merging): New counter.
9958 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
9959 Use it in store merging.
9960
9961 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9962
9963 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
9964 function.
9965 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9966 * config/arm/arm.c (arm_sched_variable_issue): New function.
9967 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
9968
9969 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9970
9971 * config/arm/types.md (no_reservation): New reservation.
9972 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
9973 no_insn here.
9974 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
9975 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
9976 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
9977 * config/arm/arm1020e.md (1020alu_op): Likewise.
9978 * config/arm/arm1026ejs.md (alu_op): Likewise.
9979 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
9980 * config/arm/arm926ejs.md (9_alu_op): Likewise.
9981 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
9982 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
9983 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
9984 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
9985 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
9986 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
9987 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
9988 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
9989 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
9990 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
9991 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
9992 * config/arm/fa526.md (526_alu_op): Likewise.
9993 * config/arm/fa606te.md (606te_alu_op): Likewise.
9994 * config/arm/fa626te.md (626te_alu_op): Likewise.
9995 * config/arm/fa726te.md (726te_alu_op): Likewise.
9996 * config/arm/xgene1.md (xgene1_nop): Likewise.
9997
9998 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
9999
10000 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10001 "no_insn" to "branch".
10002
10003 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10004
10005 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10006
10007 2019-09-17 Richard Biener <rguenther@suse.de>
10008
10009 PR debug/91772
10010 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10011 was missing generate locations only once.
10012
10013 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
10014
10015 PR ipa/91089
10016 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
10017 option.
10018 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
10019 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
10020 for switch default case using range analysis information.
10021
10022 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
10023
10024 PR target/91749
10025 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
10026 mode attributed is supported by FDPIC.
10027
10028 2019-09-17 Richard Biener <rguenther@suse.de>
10029
10030 PR tree-optimization/91790
10031 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
10032 use the correct DR for setting up realignment.
10033
10034 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10035
10036 PR target/91719
10037 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
10038 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
10039 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
10040 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
10041
10042 2019-09-16 Jason Merrill <jason@redhat.com>
10043
10044 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
10045
10046 2019-09-16 Martin Liska <mliska@suse.cz>
10047
10048 * gimple-fold.c (or_comparisons_1): Remove rules moved
10049 to ...
10050 * match.pd: ... here.
10051
10052 2019-09-16 Martin Liska <mliska@suse.cz>
10053
10054 * gimple-fold.c (or_comparisons_1): Remove rules
10055 moved to ...
10056 * match.pd: ... here.
10057
10058 2019-09-16 Martin Liska <mliska@suse.cz>
10059
10060 * genmatch.c (dt_node::append_simplify): Do not print
10061 warning when we have duplicate patterns belonging
10062 to a same simplify rule.
10063 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
10064 (maybe_fold_comparisons_from_match_pd): Handle
10065 tcc_comparison as a results.
10066 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
10067
10068 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10069 Qi Feng <ffengqi@linux.ibm.com>
10070
10071 PR middle-end/88784
10072 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
10073 (x > y && x == XXX_MIN): Optimize into 'false'.
10074 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
10075 (x < y && x != XXX_MAX): Optimize into 'x < y'.
10076 (x < y && x == XXX_MAX): Optimize into 'false'.
10077 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
10078 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
10079 (x <= y || x != XXX_MIN): Optimize into 'true'.
10080 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
10081 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
10082 (x >= y || x != XXX_MAX): Optimize into 'true'.
10083 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
10084
10085 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10086 Martin Liska <mliska@suse.cz>
10087
10088 * gimple-fold.c (and_comparisons_1): Add type as first
10089 argument.
10090 (and_var_with_comparison): Likewise.
10091 (and_var_with_comparison_1): Likewise.
10092 (or_comparisons_1): Likewise.
10093 (or_var_with_comparison): Likewise.
10094 (or_var_with_comparison_1): Likewise.
10095 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
10096 (maybe_fold_or_comparisons): Likewise.
10097 (maybe_fold_comparisons_from_match_pd): New.
10098 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
10099 (maybe_fold_or_comparisons): Likewise.
10100 * gimple.c (gimple_size): Make it public and add num_ops argument.
10101 (gimple_init): New function.
10102 (gimple_alloc): Call gimple_init.
10103 * gimple.h (gimple_size): New.
10104 (gimple_init): Likewise.
10105 * tree-if-conv.c (fold_or_predicates): Pass type.
10106 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10107 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
10108 (optimize_vec_cond_expr): Likewise.
10109 (ovce_extract_ops): Return type of conditional expression.
10110 * tree-ssanames.c (init_ssa_name_imm_use): New.
10111 (make_ssa_name_fn): Use init_ssa_name_imm_use.
10112 * tree-ssanames.h (init_ssa_name_imm_use): New.
10113
10114 2019-09-16 Richard Biener <rguenther@suse.de>
10115
10116 PR tree-optimization/91756
10117 PR tree-optimization/87132
10118 * tree-ssa-alias.h (enum translate_flags): New.
10119 (get_continuation_for_phi): Use it instead of simple bool flag.
10120 (walk_non_aliased_vuses): Likewise.
10121 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10122 (get_continuation_for_phi): When looking across backedges only
10123 disallow valueization.
10124 (walk_non_aliased_vuses): Adjust.
10125 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
10126 if requested.
10127
10128 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
10129
10130 PR middle-end/80791
10131 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
10132 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10133 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10134 * target.def (have_count_reg_decr_p): New hook.
10135 (doloop_cost_for_generic): Likewise.
10136 (doloop_cost_for_address): Likewise.
10137 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
10138 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10139 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10140 * doc/tm.texi: Regenerate.
10141 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
10142 addend.
10143 (record_group): Init doloop_p.
10144 (add_candidate_1): Add optional argument doloop, change the handlings
10145 accordingly.
10146 (add_candidate): Likewise.
10147 (generic_predict_doloop_p): Update attribute.
10148 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
10149 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
10150 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
10151 MIN_EXPR.
10152 (get_computation_cost): Update for doloop IV cand extra cost.
10153 (determine_group_iv_cost_cond): Update for doloop IV cand.
10154 (determine_iv_cost): Likewise.
10155 (ivopts_estimate_reg_pressure): Likewise.
10156 (may_eliminate_iv): Update handlings for doloop IV cand.
10157 (add_iv_candidate_for_doloop): New function.
10158 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
10159 (iv_ca_set_no_cp): Update for doloop IV cand.
10160 (iv_ca_set_cp): Likewise.
10161 (iv_ca_dump): Dump register cost.
10162 (find_doloop_use): New function.
10163 (analyze_and_mark_doloop_use): Likewise.
10164 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
10165
10166 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10167
10168 PR middle-end/91708
10169 * cse.c (cse_insn): Do not replace anything with a
10170 MEM.
10171
10172 2019-09-13 Ian Lance Taylor <iant@golang.org>
10173
10174 * doc/invoke.texi (Optimize Options): Fix typo.
10175
10176 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
10177
10178 PR tree-optimization/89386
10179 * config/i386/sse.md (smulhrs<mode>3): New expander.
10180 (smulhrsv4hi3): Ditto.
10181
10182 2019-09-12 Richard Biener <rguenther@suse.de>
10183
10184 PR tree-optimization/91750
10185 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10186 in the type of the evolution.
10187
10188 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10189
10190 PR tree-optimization/89386
10191 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10192 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10193 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10194 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10195 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10196 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10197 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10198 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10199 (su, r): Handle the unspecs above.
10200 (bt): New int attribute.
10201 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10202 * internal-fn.c (first_commutative_argument): Commutativity info for
10203 above.
10204 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10205 (umulhrs_optab): New optabs.
10206 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10207 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10208 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10209 function.
10210 (vect_vect_recog_func_ptrs): Add it.
10211
10212 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10213
10214 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10215 code.
10216
10217 2019-09-11 Nathan Sidwell <nathan@acm.org>
10218
10219 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10220 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10221
10222 2019-09-11 Richard Biener <rguenther@suse.de>
10223
10224 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10225 * lto-wrapper.c (merge_and_complain): Pick up -g.
10226 (append_compiler_options): Likewise.
10227 (run_gcc): Re-instantiate handling -g0 at link-time.
10228 * doc/invoke.texi (flto): Document debug info generation.
10229
10230 2019-09-11 Richard Biener <rguenther@suse.de>
10231
10232 PR tree-optimization/90387
10233 * vr-values.c (vr_values::extract_range_basic): After inlining
10234 simplify non-constant __builtin_constant_p to false.
10235
10236 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
10237
10238 PR rtl-optimization/89795
10239 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
10240 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
10241
10242 2019-09-11 Jakub Jelinek <jakub@redhat.com>
10243
10244 PR tree-optimization/91723
10245 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
10246 instead of pointer equality when checking if argument vectypes are
10247 the same.
10248
10249 PR middle-end/91725
10250 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
10251 of get_nonzero_bits, only call it for integral types.
10252
10253 2019-09-11 Richard Biener <rguenther@suse.de>
10254
10255 Revert
10256 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
10257
10258 * match.pd: Add flag_unsafe_math_optimizations check
10259 before deciding on the widest type in a binary math operation.
10260
10261 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10262
10263 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
10264 and CALL_REALLY_USED_REGISTERS must be defined, and that
10265 CALL_REALLY_USED_REGISTERS is preferred.
10266 * doc/tm.texi: Regenerate.
10267 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
10268 (call_really_used_regs): Likewise.
10269 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
10270 CALL_REALLY_USED_REGISTERS are defined.
10271 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
10272 initial value if defined.
10273 (initial_call_really_used_regs): Delete.
10274 (saved_call_really_used_regs): Likewise.
10275 (CALL_REALLY_USED_REGNO_P): Likewise.
10276 (init_reg_sets): Remove handling of call_really_used_regs.
10277 (save_register_info, restore_register_info, globalize_reg): Likewise.
10278 (init_reg_sets_1): Likewise. Use call_used_regs instead of
10279 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
10280 outside operand_reg_set.
10281 (fix_register): Don't change call_used_regs if
10282 CALL_REALLY_USED_REGISTERS is defined.
10283 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
10284 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
10285 instead of call_really_used_regs.
10286 (csky_conditional_register_usage): Remove the old handling of
10287 call_used_regs and change the handling of call_really_used_regs
10288 to use call_used_regs instead.
10289 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
10290 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
10291 making a register fixed.
10292 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
10293 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
10294 instead of call_really_used_regs.
10295 (m32r_conditional_register_usage): Don't set call_used_regs when
10296 making a register fixed.
10297 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
10298 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
10299 instead of call_really_used_regs.
10300 (mips_interrupt_extra_call_saved_reg_p): Likewise.
10301 (mips_cfun_call_saved_reg_p): Likewise.
10302 (mips_swap_registers): Remove the old handling of call_used_regs
10303 and change the handling of call_really_used_regs to use call_used_regs
10304 instead.
10305 (mips_conditional_register_usage): Likewise.
10306 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
10307 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
10308 instead of call_really_used_regs.
10309 (mn10300_get_live_callee_saved_regs): Likewise.
10310 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
10311 (mn10300_conditional_register_usage): Don't set call_used_regs when
10312 making a register fixed.
10313 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
10314 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
10315 Remove the old handling of call_used_regs and change the handling
10316 of call_really_used_regs to use call_used_regs instead.
10317 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
10318 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
10319 instead of call_really_used_regs.
10320 (s390_register_info_gprtofpr, s390_register_info): Likewise.
10321 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
10322 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
10323 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
10324 (s390_conditional_register_usage): Remove the old handling of
10325 call_used_regs and change the handling of call_really_used_regs
10326 to use call_used_regs instead.
10327 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
10328 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
10329 (sh_fix_range, reg_unused_after): Likewise.
10330 (sh_conditional_register_usage): Remove the old handling of
10331 call_used_regs and change the handling of call_really_used_regs
10332 to use call_used_regs instead.
10333 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
10334 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
10335 call_used_regs when making a register fixed.
10336 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
10337 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
10338 call_used_regs when making a register fixed.
10339 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
10340 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
10341 set call_used_regs when making a register fixed.
10342 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
10343 * config/visium/visium.c (visium_conditional_register_usage): Remove
10344 the old handling of call_used_regs and change the handling of
10345 call_really_used_regs to use call_used_regs instead.
10346
10347 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10348
10349 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
10350 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
10351 * reginfo.c (call_used_regs): New macro.
10352
10353 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10354
10355 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
10356 fixed_regs test.
10357 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10358 (bpf_expand_epilogue): Likewise.
10359 * config/c6x/c6x.c (c6x_save_reg): Likewise.
10360 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
10361 (ft32_expand_epilogue): Likewise.
10362 * config/i386/i386.c (ix86_save_reg): Likewise.
10363 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
10364 (moxie_expand_epilogue): Likewise.
10365 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10366 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10367 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10368
10369 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10370
10371 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
10372 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
10373 instead of testing call_used_regs directly.
10374 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
10375 (aarch64_components_for_bb): Likewise.
10376 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
10377 * config/arc/arc.c (arc_must_save_register): Likewise.
10378 (arc_epilogue_uses): Likewise.
10379 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
10380 (legitimize_pic_address, callee_saved_reg_p): Likewise.
10381 (arm_compute_save_reg0_reg12_mask): Likewise.
10382 (arm_compute_save_core_reg_mask): Likewise.
10383 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
10384 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
10385 (cmse_nonsecure_entry_clear_before_return): Likewise.
10386 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
10387 (arm_expand_epilogue): Likewise.
10388 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
10389 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
10390 (_reg_unused_after): Likewise.
10391 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
10392 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
10393 (add_to_reg, hwloop_optimize): Likewise.
10394 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
10395 (bpf_expand_epilogue): Likewise.
10396 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
10397 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
10398 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
10399 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
10400 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
10401 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
10402 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
10403 * config/frv/frv.c (frv_stack_info): Likewise.
10404 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
10405 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
10406 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
10407 (move_callee_saved_registers): Likewise.
10408 * config/h8300/h8300.c (byte_reg): Likewise.
10409 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
10410 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
10411 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
10412 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
10413 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
10414 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
10415 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
10416 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
10417 * config/m32c/m32c.c (need_to_save): Likewise.
10418 * config/m68k/m68k.c (m68k_save_reg): Likewise.
10419 * config/mcore/mcore.c (calc_live_regs): Likewise.
10420 * config/microblaze/microblaze.c (microblaze_must_save_register):
10421 Likewise.
10422 * config/mmix/mmix.c (mmix_local_regno): Likewise.
10423 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
10424 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
10425 (mmix_expand_epilogue): Likewise.
10426 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
10427 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
10428 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
10429 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
10430 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
10431 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
10432 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
10433 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
10434 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
10435 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
10436 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
10437 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
10438 * config/rl78/rl78.c (need_to_save): Likewise.
10439 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
10440 (rs6000_stack_info, generate_set_vrsave): Likewise.
10441 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
10442 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
10443 * config/rx/rx.c (rx_get_stack_layout): Likewise.
10444 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
10445 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
10446 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
10447 (save_local_or_in_reg_p): Likewise.
10448 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
10449 (xstormy16_epilogue_uses): Likewise.
10450 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
10451 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
10452 * config/v850/v850.c (compute_register_save_size): Likewise.
10453 * config/vax/vax.c (vax_expand_prologue): Likewise.
10454 * config/visium/visium.c (visium_save_reg_p): Likewise.
10455 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
10456 * cselib.c (cselib_process_insn): Likewise.
10457 * df-scan.c (df_get_entry_block_def_set): Likewise.
10458 * function.c (aggregate_value_p): Likewise.
10459 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
10460 * ira-lives.c (process_bb_node_lives): Likewise.
10461 * ira.c (do_reload): Likewise.
10462 * lra-lives.c (process_bb_lives): Likewise.
10463 * lra-remat.c (lra_remat): Likewise.
10464 * lra.c (lra): Likewise.
10465 * postreload.c (reload_combine_recognize_pattern): Likewise.
10466 (reload_cse_move2add): Likewise.
10467 * recog.c (peep2_find_free_register): Likewise.
10468 * regrename.c (check_new_reg_p): Likewise.
10469 * reload.c (find_equiv_reg): Likewise.
10470 * reload1.c (reload, find_reg): Likewise.
10471 * sel-sched.c (init_hard_regs_data): Likewise.
10472
10473 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10474
10475 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
10476 regs_invalidated_by_call & ~fixed_reg_set instead of
10477 call_used_or_fixed_regs & ~fixed_reg_set.
10478 * config/sh/sh.c (output_stack_adjust): Likewise.
10479
10480 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10481
10482 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
10483 (call_used_reg_set): Delete.
10484 (call_used_or_fixed_regs): New macro.
10485 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
10486 of call_used_reg_set.
10487 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
10488 instead of call_used_regs.
10489 (save_call_clobbered_regs): Likewise.
10490 * cfgcleanup.c (old_insns_match_p): Likewise.
10491 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
10492 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10493 Likewise.
10494 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10495 * config/sh/sh.c (output_stack_adjust): Likewise.
10496 * final.c (collect_fn_hard_reg_usage): Likewise.
10497 * ira-build.c (ira_build): Likewise.
10498 * ira-color.c (calculate_saved_nregs): Likewise.
10499 (allocno_reload_assign, calculate_spill_cost): Likewise.
10500 * ira-conflicts.c (ira_build_conflicts): Likewise.
10501 * ira-costs.c (ira_tune_allocno_costs): Likewise.
10502 * ira-lives.c (process_bb_node_lives): Likewise.
10503 * ira.c (setup_reg_renumber): Likewise.
10504 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
10505 * lra-constraints.c (need_for_call_save_p): Likewise.
10506 (need_for_split_p, inherit_in_ebb): Likewise.
10507 * lra-lives.c (process_bb_lives): Likewise.
10508 * lra-remat.c (call_used_input_regno_present_p): Likewise.
10509 * postreload.c (reload_combine): Likewise.
10510 * regrename.c (find_rename_reg): Likewise.
10511 * reload1.c (reload_as_needed): Likewise.
10512 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10513 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10514 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10515
10516 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10517
10518 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
10519 (no_caller_save_reg_set): Delete.
10520 * caller-save.c (init_caller_save): Don't initialize it.
10521 * ira-conflicts.c (ira_build_conflicts): Calculate
10522 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
10523
10524 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10525
10526 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
10527 (target_hard_regs::x_savable_regs): New field.
10528 (call_fixed_reg_set): Delete.
10529 (savable_regs): New macro,
10530 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
10531 (init_reg_sets_1): Likewise. Initialize savable_regs.
10532 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
10533 for all registers. Set savable_regs instead of call_fixed_reg_set.
10534 (setup_save_areas, save_call_clobbered_regs): Replace uses of
10535 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
10536 * config/sh/sh.c (output_stack_adjust): Likewise.
10537
10538 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10539
10540 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
10541 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
10542 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
10543
10544 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
10545
10546 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
10547 * rtlanal.c (get_call_rtx_from): Likewise.
10548 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
10549 than the pattern to get_call_rtx_from.
10550 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
10551 an rtx_insn * instead of an rtx.
10552 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
10553
10554 2019-09-10 Martin Liska <mliska@suse.cz>
10555
10556 * common.opt: Use newly added WarnRemoved.
10557 * config/aarch64/aarch64.opt: Likewise.
10558 * config/arm/arm.opt: Likewise.
10559 * config/i386/i386.opt: Likewise.
10560 * config/ia64/ia64.opt: Likewise.
10561 * config/rs6000/rs6000.opt: Likewise.
10562 * doc/options.texi: Document WarnRemoved properly.
10563 * dwarf2out.c (gen_producer_string): Handle renamed
10564 OPT_SPECIAL_warn_removed.
10565 * lto-opts.c (lto_write_options): Likewise.
10566 * lto-wrapper.c (merge_and_complain): Likewise.
10567 * opts-common.c (decode_cmdline_option): Likewise.
10568 (prune_options): Likewise.
10569 (read_cmdline_option): Likewise.
10570 (control_warning_option): Likewise.
10571 * opts.c (print_filtered_help): Likewise.
10572 * optc-gen.awk: Parse for WarnRemoved and make usage
10573 of Deprecated an error.
10574 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
10575
10576 2019-09-10 Arnaud Charlet <charlet@adacore.com>
10577
10578 * doc/install.texi: Fix syntax for html generation.
10579
10580 2019-09-10 Jakub Jelinek <jakub@redhat.com>
10581
10582 PR middle-end/91680
10583 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
10584 the shift type to type.
10585
10586 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10587
10588 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
10589 FDPIC mode.
10590 (stack_protect_combined_test_insn): Likewise.
10591
10592 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10593 Mickaël Guêné <mickael.guene@st.com>
10594
10595 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
10596 * config/arm/arm.md (FDPIC_REGNUM): New constant.
10597 (load_tp_soft_fdpic): New pattern.
10598 (load_tp_soft): Disable in FDPIC mode.
10599
10600 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10601 Mickaël Guêné <mickael.guene@st.com>
10602
10603 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
10604 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
10605 (arm_call_tls_get_addr): Add FDPIC support.
10606 (legitimize_tls_address): Likewise.
10607 (arm_emit_tls_decoration): Likewise.
10608
10609 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10610 Mickaël Guêné <mickael.guene@st.com>
10611
10612 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
10613 support.
10614 (arm_trampoline_init): Likewise.
10615 (arm_trampoline_adjust_address): Likewise.
10616 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
10617
10618 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10619 Mickaël Guêné <mickael.guene@st.com>
10620
10621 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
10622 (legitimize_pic_address): Enforce binding rules on function
10623 pointers in FDPIC mode.
10624 (arm_assemble_integer): Likewise.
10625
10626 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10627 Mickaël Guêné <mickael.guene@st.com>
10628
10629 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
10630 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
10631 FDPIC.
10632
10633 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10634 Mickaël Guêné <mickael.guene@st.com>
10635
10636 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
10637 field.
10638
10639 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10640 Mickaël Guêné <mickael.guene@st.com>
10641
10642 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
10643 in FDPIC mode.
10644 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
10645 new function.
10646 * config/arm/arm.c (arm_option_override): Define pic register to
10647 FDPIC_REGNUM.
10648 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
10649 have no decl or go through PLT.
10650 (calculate_pic_address_constant): New function.
10651 (legitimize_pic_address): Call calculate_pic_address_constant.
10652 (arm_load_pic_register): Handle TARGET_FDPIC.
10653 (arm_is_segment_info_known): New function.
10654 (arm_pic_static_addr): Add support for FDPIC.
10655 (arm_load_function_descriptor): New function.
10656 (arm_emit_call_insn): Add support for FDPIC.
10657 (arm_assemble_integer): Add support for FDPIC.
10658 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
10659 Define. (FDPIC_REGNUM): New define.
10660 * config/arm/arm.md (call): Add support for FDPIC.
10661 (call_value): Likewise.
10662 (restore_pic_register_after_call): New pattern.
10663 (untyped_call): Disable if FDPIC.
10664 (untyped_return): Likewise.
10665 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
10666
10667 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10668 Mickaël Guêné <mickael.guene@st.com>
10669
10670 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
10671 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
10672 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
10673 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
10674 (CC1_SPEC): Use FDPIC_CC1_SPEC.
10675 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
10676 * config/arm/uclinuxfdpiceabi.h: New file.
10677
10678 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10679
10680 * config.gcc: Handle *-*-uclinuxfdpiceabi.
10681
10682 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
10683 Mickaël Guêné <mickael.guene@st.com>
10684
10685 * config/arm/arm.opt: Add -mfdpic option.
10686 * doc/invoke.texi: Add documentation for -mfdpic.
10687
10688 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
10689
10690 * expmed.c (extract_bit_field): Update function comment
10691 regarding alt_rtl.
10692 * expr.c (expand_expr_real): Update function comment
10693 regarding alt_rtl.
10694 (expand_misaligned_mem_ref): New helper function.
10695 (expand_expr_real_2): Use expand_misaligned_mem_ref.
10696 Remove duplicate assignment to "base" at case MEM_REF.
10697 Remove a shadowed variable "unsignedp" at case VCE.
10698
10699 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * regset.h (regs_invalidated_by_call_regset): Delete.
10702 (fixed_reg_set_regset): Likewise.
10703 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
10704 (fixed_reg_set_regset, persistent_obstack): Likewise.
10705 (init_reg_sets_1, globalize_reg): Update accordingly.
10706 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
10707 instead of a bitmap.
10708 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
10709 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
10710 instead of regs_invalidated_by_call_regset.
10711 (df_lr_confluence_n, df_md_confluence_n): Likewise.
10712 * df-scan.c (df_scan_start_dump): Likewise.
10713 * dse.c (copy_fixed_regs): Likewise.
10714 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
10715
10716 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10717
10718 * array-traits.h: New file.
10719 * coretypes.h (array_traits, bitmap_view): New types.
10720 * bitmap.h: Include "array-traits.h"
10721 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10722 (base_bitmap_view, bitmap_view): New classes.
10723 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
10724 * hard-reg-set.h: Include array-traits.h.
10725 (array_traits<HARD_REG_SET>): New struct.
10726 * regset.h (IOR_REG_SET_HRS): New macro.
10727 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
10728 rather than iterating over each hard register.
10729 * sched-deps.c (sched_analyze_insn): Likewise.
10730 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
10731
10732 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10733
10734 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
10735 instead of a HARD_REG_SET *.
10736 * ira-build.c (ior_hard_reg_conflicts): Likewise.
10737 (ira_build): Update call accordingly.
10738 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
10739
10740 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10741
10742 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
10743 (HARD_REG_SET::operator!=): Likewise.
10744 (hard_reg_set_equal_p): Delete.
10745 * cfgcleanup.c (old_insns_match_p): Use == instead of
10746 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
10747 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
10748 (add_allocno_hard_regs_to_forest): Likewise.
10749 (setup_allocno_available_regs_num): Likewise.
10750 * ira.c (setup_pressure_classes): Likewise.
10751 (setup_allocno_and_important_classes): Likewise.
10752 (setup_reg_class_relations): Likewise.
10753 * lra-lives.c (process_bb_lives): Likewise.
10754 * reg-stack.c (change_stack, convert_regs_1): Likewise.
10755
10756 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10757
10758 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
10759 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
10760 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
10761 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
10762 Likewise.
10763 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
10764 * ira.c (setup_reg_renumber): Likewise.
10765 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10766 * regrename.c (regrename_find_superclass): Likewise.
10767 * reload1.c (find_reg): Likewise.
10768
10769 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
10772 * caller-save.c (setup_save_areas): Use "&~" instead of
10773 AND_COMPL_HARD_REG_SET.
10774 (save_call_clobbered_regs): Likewise.
10775 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
10776 Likewise.
10777 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10778 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10779 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
10780 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10781 (mips_conditional_register_usage): Likewise.
10782 * config/sh/sh.c (output_stack_adjust): Likewise.
10783 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
10784 (setup_profitable_hard_regs): Likewise.
10785 (get_conflict_and_start_profitable_regs): Likewise.
10786 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10787 (ira_build_conflicts): Likewise.
10788 * ira-costs.c (restrict_cost_classes): Likewise.
10789 (setup_regno_cost_classes_by_aclass): Likewise.
10790 * ira-lives.c (process_bb_node_lives): Likewise.
10791 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
10792 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
10793 (setup_allocno_and_important_classes, setup_class_translate_array)
10794 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
10795 Likewise.
10796 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10797 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10798 (process_alt_operands, inherit_in_ebb): Likewise.
10799 * lra-eliminations.c (update_reg_eliminate): Likewise.
10800 * lra-lives.c (process_bb_lives): Likewise.
10801 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
10802 * resource.c (find_dead_or_set_registers): Likewise.
10803 (mark_target_live_regs): Likewise.
10804 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
10805 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10806 (implicit_clobber_conflict_p): Likewise.
10807 * shrink-wrap.c (requires_stack_frame_p): Likewise.
10808 (try_shrink_wrapping): Likewise.
10809
10810 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10811
10812 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
10813 (HARD_REG_SET::operator|=): Likewise.
10814 (IOR_HARD_REG_SET): Delete.
10815 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
10816 IOR_HARD_REG_SET.
10817 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10818 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
10819 * final.c (collect_fn_hard_reg_usage): Likewise.
10820 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
10821 * ira-build.c (merge_hard_reg_conflicts): Likewise.
10822 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
10823 (propagate_some_info_from_allocno): Likewise.
10824 (copy_info_to_removed_store_destinations): Likewise.
10825 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
10826 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
10827 (fast_allocation): Likewise.
10828 * ira-conflicts.c (ira_build_conflicts): Likewise.
10829 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
10830 (process_bb_node_lives): Likewise.
10831 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
10832 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10833 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10834 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
10835 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
10836 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
10837 (process_bb_lives): Likewise.
10838 * lra-spills.c (assign_spill_hard_regs): Likewise.
10839 * postreload.c (reload_combine): Likewise.
10840 * reginfo.c (init_reg_sets_1): Likewise.
10841 * regrename.c (merge_overlapping_regs, find_rename_reg)
10842 (merge_chains): Likewise.
10843 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
10844 (find_reload_regs, finish_spills, choose_reload_regs_init)
10845 (emit_reload_insns): Likewise.
10846 * reorg.c (redundant_insn): Likewise.
10847 * resource.c (find_dead_or_set_registers, mark_set_resources)
10848 (mark_target_live_regs): Likewise.
10849 * rtlanal.c (find_all_hard_reg_sets): Likewise.
10850 * sched-deps.c (sched_analyze_insn): Likewise.
10851 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10852 (find_best_reg_for_expr): Likewise.
10853 * shrink-wrap.c (try_shrink_wrapping): Likewise.
10854
10855 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10856
10857 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
10858 (HARD_REG_SET::operator&): Likewise.
10859 (AND_HARD_REG_SET): Delete.
10860 * caller-save.c (setup_save_areas): Use "&" instead of
10861 AND_HARD_REG_SET.
10862 (save_call_clobbered_regs): Likewise.
10863 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10864 * config/m32c/m32c.c (reduce_class): Likewise.
10865 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10866 * final.c (get_call_reg_set_usage): Likewise.
10867 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
10868 (setup_left_conflict_sizes_p): Likewise.
10869 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10870 (ira_build_conflicts): Likewise.
10871 * ira-costs.c (restrict_cost_classes): Likewise.
10872 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
10873 (setup_reg_class_relations): Likewise.
10874 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
10875 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
10876 * resource.c (find_dead_or_set_registers): Likewise.
10877 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10878
10879 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10880
10881 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
10882 (COMPL_HARD_REG_SET): Delete.
10883 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
10884 of COMPL_HARD_REG_SET.
10885 (try_rename_operands): Likewise.
10886 * config/sh/sh.c (push_regs): Likewise.
10887 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10888 * lra-constraints.c (contains_reg_p): Likewise.
10889 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
10890
10891 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10892
10893 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
10894 * caller-save.c (save_call_clobbered_regs): Use assignment instead
10895 of COPY_HARD_REG_SET.
10896 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
10897 (epiphany_conditional_register_usage): Likewise.
10898 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
10899 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10900 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
10901 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
10902 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
10903 * config/mips/mips.c (mips_class_max_nregs): Likewise.
10904 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
10905 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
10906 * config/sh/sh.c (output_stack_adjust): Likewise.
10907 * final.c (collect_fn_hard_reg_usage): Likewise.
10908 (get_call_reg_set_usage): Likewise.
10909 * ira-build.c (ira_create_object, remove_low_level_allocnos)
10910 (ira_flattening): Likewise.
10911 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
10912 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
10913 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
10914 (ira_reassign_pseudos): Likewise.
10915 * ira-conflicts.c (print_allocno_conflicts): Likewise.
10916 (ira_build_conflicts): Likewise.
10917 * ira-costs.c (restrict_cost_classes): Likewise.
10918 (setup_regno_cost_classes_by_aclass): Likewise.
10919 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
10920 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
10921 (setup_stack_reg_pressure_class, setup_pressure_classes)
10922 (setup_allocno_and_important_classes, setup_class_translate_array)
10923 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
10924 (ira_setup_eliminable_regset): Likewise.
10925 * lra-assigns.c (find_hard_regno_for_1): Likewise.
10926 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
10927 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
10928 (process_alt_operands, inherit_in_ebb): Likewise.
10929 * lra-lives.c (process_bb_lives): Likewise.
10930 * lra-spills.c (assign_spill_hard_regs): Likewise.
10931 * lra.c (lra): Likewise.
10932 * mode-switching.c (new_seginfo): Likewise.
10933 * postreload.c (reload_combine): Likewise.
10934 * reg-stack.c (straighten_stack): Likewise.
10935 * reginfo.c (save_register_info, restore_register_info): Likewise.
10936 (init_reg_sets_1, record_subregs_of_mode): Likewise
10937 * regrename.c (create_new_chain, rename_chains): Likewise.
10938 * reload1.c (order_regs_for_reload, find_reg): Likewise.
10939 (find_reload_regs): Likewise.
10940 * resource.c (find_dead_or_set_registers): Likewise.
10941 (mark_target_live_regs): Likewise.
10942 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
10943
10944 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
10945
10946 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
10947 (note_pattern_stores): Declare.
10948 (note_stores): Take an rtx_insn *.
10949 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
10950 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
10951 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
10952 (note_stores): Take an rtx_insn * as argument and process
10953 CALL_INSN_FUNCTION_USAGE. Rename old function to...
10954 (note_pattern_stores): ...this.
10955 (find_first_parameter_load): Pass the insn rather than
10956 its pattern to note_stores.
10957 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
10958 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
10959 (insert_one_insn): Likewise.
10960 * combine.c (combine_instructions): Likewise.
10961 (likely_spilled_retval_p): Likewise.
10962 (try_combine): Use note_pattern_stores instead of note_stores.
10963 (record_dead_and_set_regs): Pass the insn rather than its pattern
10964 to note_stores.
10965 (reg_dead_at_p): Likewise.
10966 * config/bfin/bfin.c (workaround_speculation): Likewise.
10967 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
10968 rather than an rtx.
10969 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
10970 instead of note_stores.
10971 (frv_optimize_membar_local): Pass the insn rather than its pattern
10972 to note_stores.
10973 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
10974 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
10975 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
10976 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
10977 (mips_reorg_process_insns): Likewise.
10978 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
10979 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
10980 rather than rtxes.
10981 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
10982 its pattern to note_stores.
10983 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
10984 of note_stores.
10985 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
10986 the insn to note_stores.
10987 (prescan_insns_for_dce): Update call accordingly.
10988 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
10989 to note_stores.
10990 * df-problems.c (can_move_insns_across): Likewise.
10991 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
10992 * function.c (assign_parm_setup_reg): Likewise.
10993 * gcse-common.c (record_last_mem_set_info_common): Likewise.
10994 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
10995 (single_set_gcse): Likewise.
10996 * ira.c (validate_equiv_mem): Likewise.
10997 (update_equiv_regs): Use note_pattern_stores rather than note_stores
10998 for no_equiv.
10999 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11000 pattern to note_stores.
11001 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11002 * loop-iv.c (simplify_using_initial_values): Likewise.
11003 * mode-switching.c (optimize_mode_switching): Likewise.
11004 * optabs.c (emit_libcall_block_1): Likewise.
11005 (expand_atomic_compare_and_swap): Likewise.
11006 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11007 (record_opr_changes): Likewise. Remove explicit handling of
11008 CALL_INSN_FUNCTION_USAGE.
11009 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11010 * regcprop.c (kill_clobbered_values): Likewise.
11011 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11012 to note_stores.
11013 * regrename.c (build_def_use): Likewise.
11014 * reload1.c (reload): Use note_pattern_stores instead of note_stores
11015 for mark_not_eliminable.
11016 (reload_as_needed): Pass the insn rather than its pattern
11017 to note_stores.
11018 (emit_output_reload_insns): Likewise.
11019 * resource.c (mark_target_live_regs): Likewise.
11020 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11021 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
11022 instead of note_stores.
11023 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
11024 its pattern to note_stores.
11025 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
11026 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
11027
11028 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11029
11030 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
11031 than a #define. Use a structure rather than an array as the
11032 fallback definition. Remove special cases for low array sizes.
11033 (const_hard_reg_set): New typedef.
11034 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
11035 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
11036 (hard_reg_set_empty_p): Likewise.
11037 (SET_HARD_REG_BIT): Use a function rather than a macro to
11038 handle the case in which HARD_REG_SET is a structure.
11039 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
11040 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
11041 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
11042 (IOR_COMPL_HARD_REG_SET): Likewise.
11043 (hard_reg_set_iterator::pset): Constify the pointer target.
11044 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
11045 of a "const HARD_REG_SET". Update the handling of non-integer
11046 HARD_REG_SETs.
11047 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
11048 * reload.h: Likewise.
11049 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
11050 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
11051 of a "const HARD_REG_SET".
11052 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
11053 (range_in_hard_reg_set_p): Likewise.
11054 * ira-costs.c (restrict_cost_classes): Likewise.
11055 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
11056 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11057 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
11058 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
11059 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
11060 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
11061 take an unsigned int and open-code the HARD_REG_SET operations.
11062
11063 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11064
11065 * Makefile.in (OBJS): Remove bt-load.o.
11066 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
11067 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11068 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
11069 document that the option no longer does anything.
11070 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11071 * target.def (branch_target_register_class): Delete.
11072 (branch_target_register_callee_saved): Likewise.
11073 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11074 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
11075 * doc/tm.texi: Regenerate.
11076 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
11077 (make_pass_branch_target_load_optimize2): Likewise.
11078 * passes.def (pass_branch_target_load_optimize1): Likewise.
11079 (pass_branch_target_load_optimize2): Likewise.
11080 * targhooks.h (default_branch_target_register_class): Likewise.
11081 * targhooks.c (default_branch_target_register_class): Likewise.
11082 * opt-suggestions.c (test_completion_valid_options): Remove
11083 -fbtr-bb-exclusive from the list of test options.
11084 * bt-load.c: Remove.
11085
11086 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11087
11088 * match.pd: Add flag_unsafe_math_optimizations check
11089 before deciding on the widest type in a binary math operation.
11090
11091 2019-09-09 Martin Liska <mliska@suse.cz>
11092
11093 * config/i386/i386.opt: Update comment of removed
11094 options that are preserved only for backward
11095 compatibility.
11096
11097 2019-09-09 Jakub Jelinek <jakub@redhat.com>
11098
11099 PR target/87853
11100 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
11101 instead of __v16qs.
11102
11103 PR target/91704
11104 * config/i386/avxintrin.h (__v32qs): New typedef.
11105 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
11106 instead of __v32qi.
11107
11108 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11109
11110 * doc/invoke.texi (Option Summary): Cover eBPF.
11111 (eBPF Options): New section.
11112 * doc/extend.texi (BPF Built-in Functions): Likewise.
11113 (BPF Kernel Helpers): Likewise.
11114
11115 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11116
11117 * config.gcc: Support for bpf-*-* targets.
11118 * common/config/bpf/bpf-common.c: New file.
11119 * config/bpf/t-bpf: Likewise.
11120 * config/bpf/predicates.md: Likewise.
11121 * config/bpf/constraints.md: Likewise.
11122 * config/bpf/bpf.opt: Likewise.
11123 * config/bpf/bpf.md: Likewise.
11124 * config/bpf/bpf.h: Likewise.
11125 * config/bpf/bpf.c: Likewise.
11126 * config/bpf/bpf-protos.h: Likewise.
11127 * config/bpf/bpf-opts.h: Likewise.
11128 * config/bpf/bpf-helpers.h: Likewise.
11129 * config/bpf/bpf-helpers.def: Likewise.
11130
11131 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11132
11133 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11134 indirect_calls.
11135
11136 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11137
11138 * opt-functions.awk (integer_range_info): Make sure values are in
11139 numeric context before operating with them.
11140
11141 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
11142
11143 * genemit.c (gen_split): Print the filename and line number where the
11144 splitter (or peephole2) was defined, to the dump file.
11145
11146 2019-09-07 Jakub Jelinek <jakub@redhat.com>
11147
11148 PR tree-optimization/91665
11149 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
11150 incompatible with the type of PHI result.
11151
11152 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11153
11154 PR target/91684
11155 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
11156 gen_unaligned_storedi for 4-byte aligned addresses.
11157
11158 2019-09-06 Jim Wilson <jimw@sifive.com>
11159
11160 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
11161 change.
11162
11163 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11164
11165 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
11166
11167 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11168
11169 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
11170 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
11171
11172 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
11173
11174 PR target/91654
11175 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
11176 cost of SSE->integer and integer->SSE moves from 2 to 6.
11177 (core_cost): Ditto.
11178
11179 2019-09-06 Jakub Jelinek <jakub@redhat.com>
11180
11181 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
11182 before testing TYPE_TRANSPARENT_AGGR.
11183 * calls.c (initialize_argument_information, load_register_parameters):
11184 Likewise.
11185
11186 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11187
11188 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11189 high regs.
11190 (cmp_ior): Likewise.
11191
11192 2019-09-06 Martin Liska <mliska@suse.cz>
11193
11194 * doc/match-and-simplify.texi: Separate tuples with ;.
11195
11196 2019-09-06 Martin Liska <mliska@suse.cz>
11197
11198 PR c++/91125
11199 * Makefile.in: Remove tlink.o.
11200 * collect2.c (do_link): New function isolated
11201 from do_tlink.
11202 (main): Use.
11203 * collect2.h (do_tlink): Remove declaration of do_tlink.
11204 * doc/extend.texi: Remove documentation of -frepo.
11205 * doc/invoke.texi: Likewise.
11206 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11207 * tlink.c: Remove.
11208
11209 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11210 Jim Wilson <jimw@sifive.com>
11211
11212 PR target/91635
11213 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11214 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11215 paradoxical_subreg_p (operands[0]).
11216 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11217 use as intermediate value.
11218
11219 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11220
11221 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11222 (sync_compare_and_swap<mode>_insn): Likewise.
11223
11224 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11225
11226 PR middle-end/91615
11227 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11228 without movmisalign optab.
11229
11230 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11231
11232 PR middle-end/91001
11233 PR middle-end/91105
11234 PR middle-end/91106
11235 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
11236 types, use type of their first field instead of type of
11237 args[i].tree_value.
11238
11239 2019-09-05 Richard Biener <rguenther@suse.de>
11240
11241 PR rtl-optimization/91656
11242 * postreload-gcse.c (record_last_mem_set_info): Revert addition
11243 of early out.
11244
11245 2019-09-05 Richard Biener <rguenther@suse.de>
11246
11247 PR middle-end/90501
11248 * tree-inline.c (declare_return_variable): Mark the return
11249 slot as addressable after building an address of it.
11250
11251 2019-09-05 Arnaud Charlet <charlet@adacore.com>
11252
11253 * doc/install.texi: Update and clarify requirements to build GNAT.
11254
11255 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
11256
11257 PR middle-end/91577
11258 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
11259 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
11260 call to be in memory.
11261 (pass_expand::execute): Call discover_nonconstant_array_refs before
11262 setting currently_expanding_to_rtl.
11263
11264 2019-09-04 Caroline Tice <cmtice@google.com>
11265
11266 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
11267 specified together.
11268
11269 2019-09-04 Marek Polacek <polacek@redhat.com>
11270
11271 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
11272
11273 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
11274
11275 PR target/32413
11276 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11277 for QI and HImode moves between SSE and general registers.
11278
11279 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11280
11281 PR c/78736
11282 * doc/invoke.texi: Document -Wenum-conversion.
11283
11284 2019-09-04 Richard Biener <rguenther@suse.de>
11285
11286 PR rtl-optimization/36262
11287 * postreload-gcse.c: Include intl.h and gcse.h.
11288 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
11289 to avoid linear list walk.
11290 (record_last_mem_set_info): Gate off if not computing transparentness.
11291 (get_bb_avail_insn): If transparentness isn't computed give up
11292 early.
11293 (gcse_after_reload_main): Skip compute_transp and extended PRE
11294 if gcse_or_cprop_is_too_expensive says so.
11295
11296 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11297
11298 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
11299 noinit section.
11300 (msp430_select_section): Handle decls with the "noinit" attribute with
11301 default_elf_select_section.
11302 Handle SECCAT_RODATA_MERGE_* section types with
11303 default_elf_select_section.
11304 Add comments about handling of unsupported section types.
11305 (msp430_section_type_flags): Remove handling of the noinit section.
11306
11307 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11308
11309 * config/msp430/msp430.c (msp430_attr): Remove warnings about
11310 conflicting msp430-specific attributes.
11311 (msp430_section_attr): Likewise.
11312 Add warnings about conflicts with generic "noinit" and "section"
11313 attributes.
11314 Fix grammar in -mlarge error message.
11315 (msp430_data_attr): Rename to msp430_persist_attr.
11316 Add warnings about conflicts with generic "noinit" and "section"
11317 attributes.
11318 Add warning for when variable is not initialized.
11319 Chain conditionals which prevent the attribute being added.
11320 (ATTR_EXCL): New helper.
11321 (attr_reent_exclusions): New exclusion table.
11322 (attr_naked_exclusions): Likewise.
11323 (attr_crit_exclusions): Likewise.
11324 (attr_lower_exclusions): Likewise.
11325 (attr_upper_exclusions): Likewise.
11326 (attr_either_exclusions): Likewise.
11327 (attr_persist_exclusions): Likewise.
11328 (msp430_attribute_table): Update with exclusion rules.
11329 (msp430_output_aligned_decl_common): Don't output common symbol if decl
11330 has a section.
11331
11332 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
11333
11334 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
11335 (msp430_handle_generic_attribute): New function.
11336 * doc/tm.texi: Regenerate.
11337 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
11338 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11339 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
11340 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
11341
11342 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
11343
11344 PR tree-optimization/91504
11345 * match.pd: Add ((~a & b) ^a) --> (a | b).
11346
11347 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11348
11349 PR target/91604
11350 * config/i386/i386-expand.c (split_double_mode): If there is more than
11351 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
11352 already split matching MEM operand instead of calling adjust_address
11353 again.
11354
11355 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
11356
11357 * config.gcc: Obsolete spu target. Remove references to spu.
11358 * configure.ac: Remove references to spu.
11359 * configure: Regenerate.
11360 * config/spu/: Remove directory.
11361 * common/config/spu/: Remove directory.
11362
11363 * doc/extend.texi: Remove references to spu.
11364 * doc/invoke.texi: Likewise.
11365 * doc/md.texi: Likewise.
11366 * doc/sourcebuild.texi: Likewise.
11367
11368 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
11369
11370 PR middle-end/91603
11371 PR middle-end/91612
11372 PR middle-end/91613
11373 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
11374 and SSA_NAME referring to CONSTANT_P correctly.
11375
11376 2019-09-03 Richard Biener <rguenther@suse.de>
11377
11378 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
11379 (vn_nary_op_insert): Likewise.
11380 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
11381 (vn_nary_op_lookup): Likewise.
11382 (vn_nary_op_insert): Likewise.
11383
11384 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
11385
11386 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
11387 (*op0, 1) instead of XEXP (*op1, 0).
11388
11389 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11390
11391 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
11392 (aarch64_fjcvtzs): New define_insn.
11393 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
11394 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
11395 Add AARCH64_JSCVT.
11396 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
11397 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
11398 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11399 __ARM_FEATURE_JCVT where appropriate.
11400 * config/aarch64/arm_acle.h (__jcvt): Define.
11401
11402 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11403
11404 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
11405 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
11406 (aarch64_<frintnzs_op><mode>): New define_insn.
11407 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
11408 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
11409 __ARM_FEATURE_FRINT when appropriate.
11410 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
11411 frint32x, frint64z, frint64x.
11412 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
11413 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
11414 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
11415 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
11416 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
11417 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
11418 * config/aarch64/iterators.md (VSFDF): Define.
11419 (FRINTNZX): Likewise.
11420 (frintnzs_op): Likewise.
11421
11422 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
11423
11424 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
11425 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
11426 Cortex-A34.
11427 * config/aarch64/aarch64-tune.md: Regenerated.
11428 * doc/invoke.texi: Document the new processors.
11429
11430 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11431
11432 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
11433 string.
11434 (ssbs): Likewise.
11435 (sve2): Likewise.
11436 (sve2-sm4): Likewise.
11437 (sveaes): Likewise.
11438 (svesha3): Likewise.
11439 (svebitperm): Likewise.
11440
11441 2019-09-03 Jakub Jelinek <jakub@redhat.com>
11442 Richard Biener <rguenther@suse.de>
11443
11444 PR tree-optimization/91597
11445 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
11446 BIT_AND_EXPR optimization for pointers, even if both operand
11447 ranges don't include NULL, the result can be NULL.
11448
11449 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
11450
11451 PR middle-end/91605
11452 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
11453 (non_mem_decl_p): ...this.
11454 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
11455 (expand_assignment): Call mem_ref_referes_to_non_mem_p
11456 unconditionally as before.
11457
11458 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11459
11460 PR target/91323
11461 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
11462 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
11463 * tree.def (LTGT_EXPR): Likewise.
11464 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
11465
11466 2019-09-02 Jakub Jelinek <jakub@redhat.com>
11467
11468 PR go/91617
11469 * fold-const.c (range_check_type): For enumeral and boolean
11470 type, pass 1 to type_for_size langhook instead of
11471 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
11472 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
11473 (build_range_check): Don't call unsigned_type_for for pointer types.
11474 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
11475 range_check_type result.
11476
11477 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
11478
11479 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
11480 (replace_ref): Do not replace a chain of only two candidates which are
11481 valid memory references.
11482
11483 2019-09-02 Martin Liska <mliska@suse.cz>
11484
11485 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
11486 Bail out when we'll end up with the same number of clusters as
11487 at the beginning.
11488 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
11489 (jump_table_cluster::can_be_handled): Remove the guard
11490 as it's already handled in ::is_enabled. Allocate output
11491 after early bail out.
11492
11493 2019-09-02 Martin Liska <mliska@suse.cz>
11494
11495 PR gcov-profile/91601
11496 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
11497 (path_contains_zero_or_negative_cycle_arc): ... this and handle
11498 also negative edges.
11499 (circuit): Handle also negative edges as they can happen
11500 in some situations.
11501
11502 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
11503
11504 PR target/91472
11505 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
11506 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
11507 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
11508
11509 2019-09-01 Jakub Jelinek <jakub@redhat.com>
11510
11511 PR middle-end/91623
11512 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
11513 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
11514 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
11515 zero vector.
11516
11517 PR lto/91572
11518 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
11519 GIMPLE_ASM TREE_LIST operands.
11520
11521 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
11522
11523 * doc/generic.texi (Unary and Binary Expressions): Mark up
11524 an instance of TYPE_MIN.
11525
11526 2019-08-31 Stafford Horne <shorne@gmail.com>
11527
11528 * config/or1k/constraints.md (t): New constraint.
11529 * config/or1k/or1k.h (GOT_REGS): New register class.
11530 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
11531
11532 2019-08-30 Jim Wilson <jimw@sifive.com>
11533
11534 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
11535 and -fpic and -mplt then disable -msave-restore and warn.
11536
11537 2019-08-30 Martin Sebor <msebor@redhat.com>
11538
11539 PR middle-end/91599
11540 * tree-ssa-strlen.c (handle_store): Use a fallback location if
11541 the statement doesn't have one.
11542 * gimple-pretty-print.c (percent_G_format): Same.
11543
11544 PR middle-end/91584
11545 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
11546 before using them to validate MEM_REF offset.
11547
11548 2019-08-30 Marek Polacek <polacek@redhat.com>
11549
11550 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
11551
11552 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
11553
11554 * config/arm/arm.md (unaligned_loaddi,
11555 unaligned_storedi): New unspec insn patterns.
11556 * config/arm/neon.md (unaligned_storev8qi): Likewise.
11557 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
11558 and unaligned_storedi for 4-byte aligned memory.
11559 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
11560 4-byte aligned memory.
11561
11562 2019-08-30 Martin Jambor <mjambor@suse.cz>
11563
11564 tree-optimization/91579
11565 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
11566 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
11567 appropriate.
11568 (arg_needs_copy_p): Removed.
11569 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
11570 arg_needs_copy_p.
11571 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
11572
11573 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11574
11575 * config/i386/i386-features.c
11576 (general_scalar_chain::compute_convert_gain):
11577 Correct cost for double-word shifts.
11578 (general_scalar_to_vector_candidate_p): Reject count operands
11579 greater or equal to mode bitsize.
11580
11581 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
11582
11583 * config/i386/i386.c (inline_secondary_memory_needed): Return true
11584 for moves between SSE and non-general registers and between
11585 mask and non-general registers.
11586 (ix86_register_move_cost): Remove stalled comment.
11587
11588 2019-08-29 Richard Biener <rguenther@suse.de>
11589
11590 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11591 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
11592
11593 2019-08-29 Richard Biener <rguenther@suse.de>
11594
11595 PR bootstrap/91580
11596 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
11597 Do not emit scalar copies for debug-insns, instead replace
11598 their uses with the reg copy used in the chain or reset them
11599 if there is a reaching definition outside of the chain as well.
11600
11601 2019-08-29 Jakub Jelinek <jakub@redhat.com>
11602
11603 PR target/91560
11604 * config/i386/i386-expand.c (expand_vec_perm_movs,
11605 expand_vec_perm_blend, expand_vec_perm_vpermil,
11606 expand_vec_perm_pshufb, expand_vec_perm_1,
11607 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
11608 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
11609 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
11610 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11611 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
11612 comments - replace ix86_expand_vec_perm_builtin_1 with
11613 ix86_expand_vec_perm_const_1.
11614 (expand_vec_perm2_vperm2f128_vblend): New function.
11615 (ix86_expand_vec_perm_const_1): New forward declaration. Call
11616 expand_vec_perm2_vperm2f128_vblend as last resort.
11617 (canonicalize_perm): Formatting fix.
11618
11619 PR tree-optimization/91351
11620 * tree-cfg.c (generate_range_test): Use range_check_type instead of
11621 unsigned_type_for.
11622 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
11623 range_check_type returns NULL.
11624 * tree-switch-conversion.c (switch_conversion::build_one_array):
11625 Use range_check_type instead of unsigned_type_for, don't perform
11626 linear opt if it returns NULL.
11627 (bit_test_cluster::find_bit_tests): Formatting fix.
11628 (bit_test_cluster::emit): Use range_check_type instead of
11629 unsigned_type_for.
11630 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
11631 returns NULL.
11632
11633 2019-08-29 Richard Biener <rguenther@suse.de>
11634
11635 PR tree-optimization/91568
11636 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
11637 (vect_update_max_nunits): Add overload for poly_uint64.
11638 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
11639 (vect_build_slp_tree): Record max_nunits into the subtree
11640 and merge it upwards.
11641 (vect_print_slp_tree): Print max_nunits.
11642
11643 2019-08-28 Marek Polacek <polacek@redhat.com>
11644
11645 Implement P1152R4: Deprecating some uses of volatile.
11646 PR c++/91361
11647 * doc/invoke.texi: Document -Wvolatile.
11648
11649 2019-08-28 Marek Polacek <polacek@redhat.com>
11650
11651 PR c++/91360 - Implement C++20 P1143R2: constinit.
11652 * doc/invoke.texi: Document -Wc++20-compat.
11653
11654 2019-08-28 Martin Sebor <msebor@redhat.com>
11655
11656 PR tree-optimization/91457
11657 * builtins.c (component_size): New function.
11658 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
11659 * builtins.h (compute_objsize): Add argument.
11660 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
11661 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
11662 (vrp_prop::check_mem_ref): Same.
11663 (vrp_prop::search_for_addr_array): Set no-warning bit.
11664 (check_array_bounds): Same.
11665
11666 2019-08-28 Martin Sebor <msebor@redhat.com>
11667
11668 PR driver/80545
11669 * opts-common.c (option_enabled): Correct checking for language
11670 options.
11671
11672 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
11673
11674 * config/i386/i386.c (ix86_register_move_cost): Do not
11675 limit the cost of moves to/from XMM register to minimum 8.
11676
11677 2019-08-28 Martin Jambor <mjambor@suse.cz>
11678
11679 PR ipa/91468
11680 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
11681 checking assert a normal assert to test it really is redundant.
11682 * ipa-prop.c (compute_complex_assign_jump_func): Removed
11683 redundant test.
11684 (update_jump_functions_after_inlining): Removed combining unary
11685 arithmetic operations with an ancestor jump function.
11686 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
11687 instead of t.
11688
11689 2019-08-28 Richard Biener <rguenther@suse.de>
11690
11691 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
11692 add the MD problem.
11693
11694 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
11695 Richard Biener <rguenther@suse.de>
11696
11697 * expr.c (expand_assignment): Handle misaligned DECLs.
11698 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
11699 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
11700 too.
11701 (assign_parm_setup_stack): Allocate properly aligned stack slots.
11702 * varasm.c (build_constant_desc): Align constants of misaligned types.
11703 * config/arm/predicates.md (aligned_operand): New predicate.
11704 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
11705 aligned_operand to check restrictions on memory addresses.
11706 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
11707 * config/arm/vec-common.md (mov<VALL>): Likewise.
11708
11709 2019-08-28 Jakub Jelinek <jakub@redhat.com>
11710
11711 PR libgomp/91530
11712 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
11713 V_128 iterator instead of VI_128.
11714
11715 2019-08-28 Martin Liska <mliska@suse.cz>
11716
11717 PR tree-optimization/90970
11718 * builtins.c (check_access): Remove assignment to maxread
11719 as it hasn't been used since when it was introduced in r255755.
11720
11721 2019-08-27 Martin Sebor <msebor@redhat.com>
11722
11723 PR tree-optimization/91567
11724 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
11725 of unknown strings.
11726 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
11727 to PTRDIFF_MAX - 2.
11728
11729 2019-08-27 Jeff Law <law@redhat.com>
11730
11731 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
11732 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
11733
11734 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
11735
11736 PR target/91528
11737 * config/i386/i386-features.c (convert_scalars_to_vector):
11738 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
11739 crtl->stack_realign_processed. Update crtl->drap_reg by calling
11740 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
11741 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
11742
11743 2019-08-27 Richard Biener <rguenther@suse.de>
11744
11745 * config/i386/i386-features.h
11746 (general_scalar_chain::~general_scalar_chain): Add.
11747 (general_scalar_chain::insns_conv): New bitmap.
11748 (general_scalar_chain::n_sse_to_integer): New.
11749 (general_scalar_chain::n_integer_to_sse): Likewise.
11750 (general_scalar_chain::make_vector_copies): Adjust signature.
11751 * config/i386/i386-features.c
11752 (general_scalar_chain::general_scalar_chain): Outline,
11753 initialize new members.
11754 (general_scalar_chain::~general_scalar_chain): New.
11755 (general_scalar_chain::mark_dual_mode_def): Record insns
11756 we need to insert conversions at and count them.
11757 (general_scalar_chain::compute_convert_gain): Account
11758 for conversion instructions at chain boundary.
11759 (general_scalar_chain::make_vector_copies): Generate a single
11760 copy for a def by a specific insn.
11761 (general_scalar_chain::convert_registers): First populate
11762 defs_map, then make copies at out-of chain insns.
11763
11764 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
11765
11766 * config/arm/arm.md (stack_protect_set_insn): Add security-related
11767 comment.
11768 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
11769
11770 2019-08-27 Martin Liska <mliska@suse.cz>
11771
11772 * cgraph.c (cgraph_node::remove): Remove dead assignment before
11773 loop.
11774 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
11775 Enclose in anonymous namespace.
11776 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
11777 hard_register initialization in braces.
11778 * tree-vrp.h (value_range_base::supports_type_p): Return false
11779 for function with boolean return type.
11780
11781 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
11782
11783 * config/i386/i386.c (emit_i387_cw_initialization)
11784 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
11785
11786 2019-08-26 Martin Sebor <msebor@redhat.com>
11787
11788 PR c++/83431
11789 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
11790 (sprintf_dom_walker): Remove class.
11791 (get_int_range): Make argument const.
11792 (directive::fmtfunc, directive::set_precision): Same.
11793 (format_none): Same.
11794 (build_intmax_type_nodes): Same.
11795 (adjust_range_for_overflow): Same.
11796 (format_floating): Same.
11797 (format_character): Same.
11798 (format_string): Same.
11799 (format_plain): Same.
11800 (get_int_range): Cast away constness.
11801 (format_integer): Same.
11802 (get_string_length): Call get_range_strlen_dynamic. Handle
11803 null lendata.maxbound.
11804 (should_warn_p): Adjust argument scope qualifier.
11805 (maybe_warn): Same.
11806 (format_directive): Same.
11807 (parse_directive): Same.
11808 (is_call_safe): Same.
11809 (try_substitute_return_value): Same.
11810 (sprintf_dom_walker::handle_printf_call): Rename...
11811 (handle_printf_call): ...to this. Initialize target to host charmap
11812 here instead of in pass_sprintf_length::execute.
11813 (struct call_info): Make global.
11814 (sprintf_dom_walker::compute_format_length): Make global.
11815 (sprintf_dom_walker::handle_gimple_call): Same.
11816 * passes.def (pass_sprintf_length): Replace with pass_strlen.
11817 * print-rtl.c (print_pattern): Reduce the number of spaces to
11818 avoid -Wformat-truncation.
11819 * tree-pass.h (make_pass_warn_printf): New function.
11820 * tree-ssa-strlen.c (strlen_optimize): New variable.
11821 (get_string_length): Add comments.
11822 (get_range_strlen_dynamic): New function.
11823 (check_and_optimize_call): New function.
11824 (handle_integral_assign): New function.
11825 (strlen_check_and_optimize_stmt): Factor code out into
11826 strlen_check_and_optimize_call and handle_integral_assign.
11827 (strlen_dom_walker::evrp): New member.
11828 (strlen_dom_walker::before_dom_children): Use evrp member.
11829 (strlen_dom_walker::after_dom_children): Use evrp member.
11830 (printf_strlen_execute): New function.
11831 (pass_strlen::gate): Update to handle printf calls.
11832 (dump_strlen_info): New function.
11833 (pass_data_warn_printf): New variable.
11834 (pass_warn_printf): New class.
11835 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
11836 (handle_printf_call): Same.
11837 * tree-vrp.c (value_range_base::type): Adjust assertion.
11838 * vr-values.c (vr_values::update_value_range): Use type of the first
11839 argument rather than the second.
11840
11841 2019-08-26 Richard Biener <rguenther@suse.de>
11842
11843 * config/i386/i386-features.c (general_remove_non_convertible_regs):
11844 Remove.
11845 (convert_scalars_to_vector): Do not call it.
11846
11847 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11848 Uros Bizjak <ubizjak@gmail.com>
11849
11850 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
11851 CASE_MATHFN_FLOATN for roundeven.
11852 * config/i386/i386.c (ix86_i387_mode_needed): Add case
11853 I387_ROUNDEVEN.
11854 (ix86_mode_needed): Likewise.
11855 (ix86_mode_after): Likewise.
11856 (ix86_mode_entry): Likewise.
11857 (ix86_mode_exit): Likewise.
11858 (ix86_emit_mode_set): Likewise.
11859 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
11860 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
11861 (ix86_entity): Add I387_ROUNDEVEN.
11862 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
11863 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
11864 (define_int_iterator): Likewise.
11865 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
11866 (define_constant): Define ROUND_ROUNDEVEN mode.
11867 (define_attr): Add roundeven mode for i387_cw.
11868 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
11869 * internal-fn.def (ROUNDEVEN): New builtin function.
11870 * optabs.def (roundeven_optab): New optab.
11871
11872 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
11873
11874 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
11875 for ROUNDEVEN.
11876 * builtins.def: Added function definitions for roundeven function
11877 variants.
11878 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
11879 function call. Adjust condition for floor, ceil, trunc and round.
11880 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
11881 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
11882 (integer_valued_real_call_p): Added case for roundeven function.
11883 * real.c (is_even): New function. Returns true if real number is even,
11884 otherwise returns false.
11885 (is_halfway_below): New function. Returns true if real number is
11886 halfway between two integers, else return false.
11887 (real_roundeven): New function. Round real number to nearest integer,
11888 rounding halfway cases towards even.
11889 * real.h (real_value): Added descriptive comments. Added function
11890 declaration for roundeven function.
11891 * doc/extend.texi (Other Builtins): List roundeven variants among
11892 functions which can be handled as builtins.
11893
11894 2019-08-26 Richard Biener <rguenther@suse.de>
11895
11896 PR target/91522
11897 PR target/91527
11898 * config/i386/i386-features.h (general_scalar_chain::defs_map):
11899 New member.
11900 (general_scalar_chain::replace_with_subreg): Remove.
11901 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11902 (general_scalar_chain::convert_reg): Adjust signature.
11903 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
11904 iterate over all defs of a reg.
11905 (general_scalar_chain::replace_with_subreg): Remove.
11906 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
11907 (general_scalar_chain::make_vector_copies): Populate defs_map,
11908 place copy only after defs that are used as vectors in the chain.
11909 (general_scalar_chain::convert_reg): Emit a copy for a specific
11910 def in a specific instruction.
11911 (general_scalar_chain::convert_op): All reg uses are converted here.
11912 (general_scalar_chain::convert_insn): Emit copies for scalar
11913 uses of defs here. Replace uses with the copies we created.
11914 Replace and convert the def. Adjust REG_DEAD notes, remove
11915 REG_EQUIV/EQUAL notes.
11916 (general_scalar_chain::convert_registers): Only handle copies
11917 into the chain here.
11918
11919 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11920
11921 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
11922
11923 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
11924
11925 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
11926 Add nop_convert case.
11927 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
11928 Fold all statements if requested.
11929 * tree-ssa-propagate.h (class substitute_and_fold_engine):
11930 Allow to fold all statements.
11931 * tree-vrp.c (class vrp_folder):
11932 Let substitute_and_fold_engine fold all statements.
11933
11934 2019-08-26 Richard Biener <rguenther@suse.de>
11935
11936 PR tree-optimization/91526
11937 * passes.def: Note that after late FRE we do TODO_update_address_taken.
11938 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
11939 TODO_update_address_taken.
11940
11941 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
11942
11943 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
11944 __STDC_HOSTED__.
11945
11946 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
11947
11948 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
11949 machine mode for unspec_volatile operand.
11950
11951 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
11952
11953 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
11954 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
11955 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
11956 (prefer_neon_for_64bits): Remove.
11957 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
11958 (tune_params): Remove PREF_NEON_64_FALSE uses.
11959 (arm_option_override): Remove prefer_neon selection code.
11960 (arm_print_tune_info): Remove prefer_neon_for_64bits.
11961 * config/arm/arm-protos.h (tune_params): Remove
11962 prefer_neon_for_64bits.
11963 (prefer_neon_for_64bits): Remove.
11964
11965 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
11966
11967 PR pch/61250
11968 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
11969 and issue any diagnostics needed before collecting the pre-PCH
11970 state.
11971
11972 2019-08-23 Jakub Jelinek <jakub@redhat.com>
11973
11974 PR middle-end/91283
11975 * common.opt (fexcess-precision=): Add Optimization flag. Use
11976 flag_excess_precision variable instead of
11977 flag_excess_precision_cmdline.
11978 * flags.h (class target_flag_state): Remove x_flag_excess_precision
11979 member.
11980 (flag_excess_precision): Don't define.
11981 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
11982 flag_excess_precision_cmdline. Remove comment.
11983 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
11984 and x_flag_excess_precision instead of
11985 frontend_set_flag_excess_precision_cmdline and
11986 x_flag_excess_precision_cmdline.
11987 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
11988 x_flag_excess_precision_cmdline.
11989 * toplev.c (init_excess_precision): Remove.
11990 (lang_dependent_init_target): Don't call it.
11991
11992 2019-08-23 Martin Liska <mliska@suse.cz>
11993
11994 * lto-wrapper.c (run_gcc): When setting jobserver
11995 set also parallel to 1. This was done so before r273908.
11996
11997 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
11998
11999 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12000 (cortex-a76ae): Likewise.
12001 (cortex-a77): Likewise
12002 * config/arm/arm-tables.opt: Regenerate.
12003 * config/arm/arm-tune.md: Likewise.
12004 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12005 cortex-a77 CPU options.
12006
12007 2019-08-23 Martin Liska <mliska@suse.cz>
12008
12009 * profile.c (instrument_values): Do not set
12010 0 as last argument.
12011 * tree-profile.c (gimple_gen_interval_profiler): Remove
12012 last argument.
12013 (gimple_gen_pow2_profiler): Likewise.
12014 (gimple_gen_topn_values_profiler): Likewise.
12015 (gimple_gen_ic_profiler): Likewise.
12016 (gimple_gen_time_profiler): Likewise.
12017 (gimple_gen_average_profiler): Likewise.
12018 (gimple_gen_ior_profiler): Likewise.
12019 * value-prof.c (dump_histogram_value): Use default
12020 in switch statement instead of HIST_TYPE_MAX.
12021 (stream_in_histogram_value): Likewise.
12022 (gimple_duplicate_stmt_histograms): Do not
12023 use NULL for implicitly set arguments.
12024 (gimple_divmod_values_to_profile): Do not use
12025 reserve+quick_push.
12026 (gimple_indirect_call_to_profile): Likewise.
12027 (gimple_find_values_to_profile): Use implicit
12028 function call arguments.
12029 * value-prof.h (gimple_alloc_histogram_value):
12030 Set default values.
12031 (gimple_gen_interval_profiler): Remove last argument.
12032 (gimple_gen_pow2_profiler): Likewise.
12033 (gimple_gen_topn_values_profiler): Likewise.
12034 (gimple_gen_ic_profiler): Likewise.
12035 (gimple_gen_time_profiler): Likewise.
12036 (gimple_gen_average_profiler): Likewise.
12037 (gimple_gen_ior_profiler): Likewise.
12038
12039 2019-08-22 Martin Sebor <msebor@redhat.com>
12040
12041 PR middle-end/91490
12042 * builtins.c (c_strlen): Rename argument and introduce new local.
12043 Set no-warning bit on original argument.
12044 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
12045 Fold empty and zero constructors into empty strings.
12046 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
12047 for missing initializers.
12048 * tree.c (build_string_literal): Handle optional argument.
12049 * tree.h (build_string_literal): Add defaulted argument.
12050 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
12051 no-warning bit on original expression.
12052
12053 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12054
12055 PR target/91481
12056 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12057 and UNSPEC_DARN_RAW.
12058 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
12059 UNSPECV_DARN_RAW.
12060 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
12061 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
12062 (darn): Use an unspec_volatile, and UNSPECV_DARN.
12063
12064 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12065
12066 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12067 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
12068 * config/rs6000/rs6000.md (unspec): ... here.
12069 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
12070 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12071 cmpeqb, *cmpeqb_internal): Delete, move to...
12072 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
12073 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12074 cmpeqb, *cmpeqb_internal): ... here.
12075
12076 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12077
12078 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
12079 intrinsics if __ARM_FP.
12080 Use __ARM_FEATURE_CRC32 ifdef guard.
12081
12082 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12083
12084 * config/arm/arm.md (neon_for_64bits): Remove.
12085 (avoid_neon_for_64bits): Remove.
12086 (arm_adddi3): Always split early.
12087 (arm_subdi3): Always split early.
12088 (negdi2): Remove Neon expansion.
12089 (split zero_extend): Split before reload.
12090 (split sign_extend): Split before reload.
12091
12092 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12093
12094 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
12095 (qhs_extenddi_cstr): Likewise.
12096 * config/arm/arm.md (ashldi3): Always expand early.
12097 (ashlsi3): Likewise.
12098 (ashrsi3): Likewise.
12099 (zero_extend<mode>di2): Remove Neon variants.
12100 (extend<mode>di2): Likewise.
12101 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
12102 (signed_shift_di3_neon): Likewise.
12103 (unsigned_shift_di3_neon): Likewise.
12104 (ashrdi3_neon_imm_noclobber): Likewise.
12105 (lshrdi3_neon_imm_noclobber): Likewise.
12106 (<shift>di3_neon): Likewise.
12107 (split extend): Remove DI extend split patterns.
12108
12109 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12110
12111 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
12112 (split not): Add DImode not splitter.
12113 (anddi3): Remove pattern.
12114 (anddi3_insn): Likewise.
12115 (anddi_zesidi_di): Likewise.
12116 (anddi_sesdi_di): Likewise.
12117 (anddi_notdi_di): Likewise.
12118 (anddi_notzesidi_di): Likewise.
12119 (anddi_notsesidi_di): Likewise.
12120 (iordi3): Likewise.
12121 (iordi3_insn): Likewise.
12122 (iordi_zesidi_di): Likewise.
12123 (iordi_sesidi_di): Likewise.
12124 (xordi3): Likewise.
12125 (xordi3_insn): Likewise.
12126 (xordi_sesidi_di): Likewise.
12127 (xordi_zesidi_di): Likewise.
12128 (one_cmpldi2): Likewise.
12129 (one_cmpldi2_insn): Likewise.
12130 * config/arm/constraints.md: Remove De, Df, Dg constraints.
12131 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
12132 alternative.
12133 (iwmmxt_xordi3): Likewise.
12134 (iwmmxt_anddi3): Likewise.
12135 * config/arm/neon.md (orndi3_neon): Remove pattern.
12136 (anddi_notdi_di): Likewise.
12137 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
12138 (arm_iordi_operand_neon): Likewise.
12139 (arm_xordi_operand_neon): Likewise.
12140 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
12141 (iordi_notzesidi_di): Likewise.
12142 (iordi_notdi_zesidi): Likewise.
12143 (iordi_notsesidi_di): Likewise.
12144
12145 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
12146
12147 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
12148 insn.
12149 (iorsi3_compare0_scratch): Likewise.
12150
12151 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
12152
12153 * config/aarch64/aarch64-simd-builtins.def:
12154 (ld1x4): New.
12155 (st1x4): Likewise.
12156 * config/aarch64/aarch64-simd.md:
12157 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
12158 (aarch64_st1x4<VALLDIF:mode>): Likewise.
12159 (aarch64_ld1_x4_<mode>): Likewise.
12160 (aarch64_st1_x4_<mode>): Likewise.
12161 * config/aarch64/arm_neon.h:
12162 (vld1_s8_x4): New function.
12163 (vld1q_s8_x4): Likewise.
12164 (vld1_s16_x4): Likewise.
12165 (vld1q_s16_x4): Likewise.
12166 (vld1_s32_x4): Likewise.
12167 (vld1q_s32_x4): Likewise.
12168 (vld1_u8_x4): Likewise.
12169 (vld1q_u8_x4): Likewise.
12170 (vld1_u16_x4): Likewise.
12171 (vld1q_u16_x4): Likewise.
12172 (vld1_u32_x4): Likewise.
12173 (vld1q_u32_x4): Likewise.
12174 (vld1_f16_x4): Likewise.
12175 (vld1q_f16_x4): Likewise.
12176 (vld1_f32_x4): Likewise.
12177 (vld1q_f32_x4): Likewise.
12178 (vld1_p8_x4): Likewise.
12179 (vld1q_p8_x4): Likewise.
12180 (vld1_p16_x4): Likewise.
12181 (vld1q_p16_x4): Likewise.
12182 (vld1_s64_x4): Likewise.
12183 (vld1_u64_x4): Likewise.
12184 (vld1_p64_x4): Likewise.
12185 (vld1q_s64_x4): Likewise.
12186 (vld1q_u64_x4): Likewise.
12187 (vld1q_p64_x4): Likewise.
12188 (vld1_f64_x4): Likewise.
12189 (vld1q_f64_x4): Likewise.
12190 (vst1_s8_x4): Likewise.
12191 (vst1q_s8_x4): Likewise.
12192 (vst1_s16_x4): Likewise.
12193 (vst1q_s16_x4): Likewise.
12194 (vst1_s32_x4): Likewise.
12195 (vst1q_s32_x4): Likewise.
12196 (vst1_u8_x4): Likewise.
12197 (vst1q_u8_x4): Likewise.
12198 (vst1_u16_x4): Likewise.
12199 (vst1q_u16_x4): Likewise.
12200 (vst1_u32_x4): Likewise.
12201 (vst1q_u32_x4): Likewise.
12202 (vst1_f16_x4): Likewise.
12203 (vst1q_f16_x4): Likewise.
12204 (vst1_f32_x4): Likewise.
12205 (vst1q_f32_x4): Likewise.
12206 (vst1_p8_x4): Likewise.
12207 (vst1q_p8_x4): Likewise.
12208 (vst1_p16_x4): Likewise.
12209 (vst1q_p16_x4): Likewise.
12210 (vst1_s64_x4): Likewise.
12211 (vst1_u64_x4): Likewise.
12212 (vst1_p64_x4): Likewise.
12213 (vst1q_s64_x4): Likewise.
12214 (vst1q_u64_x4): Likewise.
12215 (vst1q_p64_x4): Likewise.
12216 (vst1_f64_x4): Likewise.
12217 (vst1q_f64_x4): Likewise.
12218
12219 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12220
12221 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12222
12223 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12224 Richard Sandiford <richard.sandiford@arm.com>
12225
12226 PR target/88839
12227 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12228 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
12229
12230 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12231
12232 PR target/90724
12233 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
12234 in reg if it fails aarch64_plus_operand predicate.
12235
12236 2019-08-21 Richard Biener <rguenther@suse.de>
12237
12238 PR tree-optimization/91482
12239 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
12240 BUILT_IN_ASSUME_ALIGNED calls.
12241
12242 2019-08-21 Richard Biener <rguenther@suse.de>
12243
12244 PR target/91498
12245 PR target/91503
12246 * config/i386/i386-features.c
12247 (general_scalar_chain::make_vector_copies): Copy stack temporary
12248 rtx when using it multiple times.
12249 (general_scalar_chain::convert_reg): Likewise.
12250
12251 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12252
12253 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
12254
12255 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
12256
12257 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
12258 catch more redundant zero initialization cases.
12259 (dse_dom_walker::dse_optimize_stmt): Likewise.
12260
12261 2019-08-20 Richard Biener <rguenther@suse.de>
12262
12263 PR lto/91307
12264 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
12265 by collect2 when targetm.have_ctors_dtors which avoids dragging
12266 in temporary filenames from LTO input objects.
12267
12268 2019-08-20 Richard Biener <rguenther@suse.de>
12269
12270 PR tree-optimization/37242
12271 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
12272 to (T)a + (T)b if we know that a + b does not overflow.
12273
12274 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
12275
12276 PR rtl-optimization/91347
12277 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
12278 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
12279
12280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12281
12282 * calls.h (function_arg_info): Add a pass_by_reference field,
12283 defaulting to false.
12284 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
12285 when applying pass-by-reference semantics.
12286 (initialize_argument_information): Likewise.
12287 (emit_library_call_value_1): Likewise.
12288 * function.c (assign_parm_data_one): Remove passed_pointer field.
12289 (assign_parm_find_data_types): Don't set it.
12290 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
12291 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
12292 arg.pass_by_reference instead of passed_pointer.
12293
12294 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12295
12296 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
12297 into a single function_arg_info, updating its fields when we
12298 apply pass-by-reference and promotion semantics. Use the
12299 function_arg_info to track the mode rather than keeping it in
12300 a separate local variable.
12301 (initialize_argument_information): Likewise. Base the final
12302 arg_to_skip on this new function_arg_info rather than creating
12303 a new one from scratch.
12304
12305 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12306
12307 * function.c (assign_parm_data_one): Replace passed_type,
12308 promoted_mode and named_arg with a function_arg_info field.
12309 (assign_parm_find_data_types): Remove local variables and
12310 assign directly to "data". Make data->passed_mode shadow
12311 data->arg.mode until promotion, then assign the promoted
12312 mode to data->arg.mode.
12313 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
12314 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
12315 (assign_parm_remove_parallels, assign_parm_setup_block_p)
12316 (assign_parm_setup_block, assign_parm_setup_reg)
12317 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
12318 arg.mode instead of promoted_mode, arg.type instead of passed_type
12319 and arg.named instead of named_arg. Use data->arg for
12320 function_arg_info structures that had the field values passed_type,
12321 promoted_mode and named_arg. Base other function_arg_infos on
12322 data->arg, changing the necessary properties.
12323
12324 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12325
12326 * calls.h (apply_pass_by_reference_rules): Declare.
12327 * calls.c (apply_pass_by_reference_rules): New function.
12328 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
12329 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
12330 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
12331 * function.c (assign_parm_find_data_types): Likewise.
12332 * var-tracking.c (prepare_call_arguments): Likewise.
12333
12334 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12335
12336 * target.def (must_pass_in_stack): Take a function_arg_info instead
12337 of a mode and a type.
12338 * doc/tm.texi: Regenerate.
12339 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
12340 instead of a mode and a type.
12341 (must_pass_in_stack_var_size_or_pad): Likewise.
12342 * calls.c (must_pass_in_stack_var_size): Likewise.
12343 (must_pass_in_stack_var_size_or_pad): Likewise.
12344 (initialize_argument_information): Update call to
12345 targetm.calls.must_pass_in_stack.
12346 (must_pass_va_arg_on_stack): Likewise.
12347 * function.c (assign_parm_find_entry_rtl): Likewise.
12348 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
12349 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12350 (alpha_function_arg_advance): Likewise.
12351 * config/cr16/cr16.c (cr16_function_arg): Likewise.
12352 (cr16_function_arg_advance): Likewise.
12353 * config/cris/cris.c (cris_pass_by_reference): Likewise.
12354 (cris_arg_partial_bytes): Likewise.
12355 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12356 * config/lm32/lm32.c (lm32_function_arg): Likewise.
12357 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
12358 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
12359 * config/mips/mips.c (mips_pass_by_reference): Likewise.
12360 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
12361 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
12362 * config/sh/sh.c (sh_pass_by_reference): Likewise.
12363 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12364 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
12365 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
12366 instead of a mode and a type.
12367 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
12368 (fr30_num_arg_regs): Likewise.
12369 (fr30_setup_incoming_varargs): Update calls accordingly.
12370 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
12371 (fr30_function_arg_advance): Likewise.
12372 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
12373 instead of a mode and a type.
12374 * config/gcn/gcn.c (num_arg_regs): Likewise.
12375 (gcn_function_arg, gcn_function_arg_advance): Update calls to
12376 num_arg_regs and targetm.calls.must_pass_in_stack.
12377 (gcn_arg_partial_bytes): Likewise.
12378 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
12379 function_arg_info instead of a mode and a type.
12380 (classify_argument): Update call accordingly.
12381 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
12382 function_arg_info instead of a mode and a type.
12383 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
12384 Likewise.
12385 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
12386 (rs6000_parm_needs_stack): Update call accordingly.
12387 (setup_incoming_varargs): Likewise.
12388
12389 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12390
12391 * target.def (callee_copies): Take a function_arg_info instead
12392 of a mode, type and named flag.
12393 * doc/tm.texi: Regenerate.
12394 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
12395 instead of a mode, type and named flag.
12396 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12397 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12398 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12399 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
12400 instead of a mode, type and named flag.
12401 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
12402 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
12403 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
12404 * calls.h (reference_callee_copied): Take a function_arg_info
12405 instead of a mode, type and named flag.
12406 * calls.c (reference_callee_copied): Likewise.
12407 (initialize_argument_information): Update call accordingly.
12408 (emit_library_call_value_1): Likewise.
12409 * function.c (gimplify_parameters): Likewise.
12410 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
12411 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
12412 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
12413 * config/c6x/c6x.c (c6x_callee_copies): Delete.
12414 (TARGET_CALLEE_COPIES): Define to
12415 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12416 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
12417 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12418 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12419 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
12420 instead of a mode, type and named flag.
12421 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
12422 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12423 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12424 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
12425 * config/msp430/msp430.c (msp430_callee_copies): Delete.
12426 (TARGET_CALLEE_COPIES): Define to
12427 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
12428 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
12429 instead of a mode, type and named flag.
12430 * config/sh/sh.c (sh_callee_copies): Likewise.
12431 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
12432 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
12433 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
12434
12435 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12436
12437 * target.def (function_arg_advance): Take a function_arg_info instead
12438 of a mode, type and named flag.
12439 * doc/tm.texi: Regenerate.
12440 * targhooks.h (default_function_arg_advance): Take a function_arg_info
12441 instead of a mode, type and named flag.
12442 * targhooks.c (default_function_arg_advance): Likewise.
12443 * calls.c (initialize_argument_information): Update call to
12444 targetm.calls.function_arg_advance.
12445 (emit_library_call_value_1): Likewise.
12446 * dse.c (get_call_args): Likewise.
12447 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12448 * function.c (assign_parms, gimplify_parameters): Likewise.
12449 * var-tracking.c (prepare_call_arguments): Likewise.
12450 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
12451 function_arg_info instead of a mode, type and named flag.
12452 (aarch64_setup_incoming_varargs): Update call accordingly.
12453 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
12454 function_arg_info instead of a mode, type and named flag.
12455 (alpha_setup_incoming_varargs): Update call accordingly.
12456 * config/arc/arc.c (arc_function_arg_advance): Take a
12457 function_arg_info instead of a mode, type and named flag.
12458 (arc_setup_incoming_varargs): Update call accordingly.
12459 * config/arm/arm.c (arm_function_arg_advance): Take a
12460 function_arg_info instead of a mode, type and named flag.
12461 (cmse_func_args_or_return_in_stack): Update call accordingly.
12462 (arm_function_ok_for_sibcall): Likewise.
12463 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12464 * config/avr/avr.c (avr_function_arg_advance): Take a
12465 function_arg_info instead of a mode, type and named flag.
12466 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
12467 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
12468 (c6x_call_saved_register_used): Update call accordingly.
12469 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
12470 function_arg_info instead of a mode, type and named flag.
12471 * config/cris/cris.c (cris_function_arg_advance): Likewise.
12472 * config/csky/csky.c (csky_function_arg_advance): Likewise.
12473 (csky_setup_incoming_varargs): Update call accordingly.
12474 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
12475 function_arg_info instead of a mode, type and named flag.
12476 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
12477 * config/frv/frv.c (frv_function_arg_advance): Likewise.
12478 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
12479 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
12480 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
12481 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
12482 (ix86_setup_incoming_varargs): Update call accordingly.
12483 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
12484 function_arg_info instead of a mode, type and named flag.
12485 (ia64_setup_incoming_varargs): Update call accordingly.
12486 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
12487 function_arg_info instead of a mode, type and named flag.
12488 (iq2000_expand_prologue): Update call accordingly.
12489 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
12490 function_arg_info instead of a mode, type and named flag.
12491 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
12492 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
12493 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
12494 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
12495 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
12496 Likewise.
12497 (microblaze_expand_prologue): Update call accordingly.
12498 * config/mips/mips.c (mips_function_arg_advance): Take a
12499 function_arg_info instead of a mode, type and named flag.
12500 (mips_setup_incoming_varargs): Update call accordingly.
12501 (mips_output_args_xfer): Likewise.
12502 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
12503 function_arg_info instead of a mode, type and named flag.
12504 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
12505 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
12506 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
12507 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
12508 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
12509 (nios2_setup_incoming_varargs): Update call accordingly.
12510 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
12511 function_arg_info instead of a mode, type and named flag.
12512 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
12513 * config/pa/pa.c (pa_function_arg_advance): Likewise.
12514 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
12515 * config/pru/pru.c (pru_function_arg_advance): Likewise.
12516 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
12517 (riscv_setup_incoming_varargs): Update call accordingly.
12518 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
12519 function_arg_info instead of a mode, type and named flag.
12520 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
12521 Likewise.
12522 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
12523 (rs6000_parm_needs_stack): Update call accordingly.
12524 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
12525 instead of a mode, type and named flag.
12526 * config/s390/s390.c (s390_function_arg_advance): Likewise.
12527 (s390_call_saved_register_used): Update call accordingly.
12528 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
12529 instead of a mode, type and named flag.
12530 (sh_output_mi_thunk): Update call accordingly.
12531 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
12532 function_arg_info instead of a mode, type and named flag.
12533 * config/spu/spu.c (spu_function_arg_advance): Likewise.
12534 (spu_setup_incoming_varargs): Update call accordingly.
12535 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
12536 function_arg_info instead of a mode, type and named flag.
12537 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
12538 (tilegx_setup_incoming_varargs): Update call accordingly.
12539 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
12540 function_arg_info instead of a mode, type and named flag.
12541 (tilegx_setup_incoming_varargs): Update call accordingly.
12542 * config/v850/v850.c (v850_function_arg_advance): Take a
12543 function_arg_info instead of a mode, type and named flag.
12544 * config/vax/vax.c (vax_function_arg_advance): Likewise.
12545 * config/visium/visium.c (visium_function_arg_advance): Likewise.
12546 (visium_setup_incoming_varargs): Update call accordingly.
12547 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
12548 function_arg_info instead of a mode, type and named flag.
12549
12550 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12551
12552 * target.def (function_arg, function_incoming_arg): Take a
12553 function_arg_info instead of a mode, tree and named flag.
12554 * doc/tm.texi: Regenerate.
12555 * targhooks.h (default_function_arg): Take a function_arg_info
12556 instead of a mode, tree and named flag.
12557 (default_function_incoming_arg): Likewise.
12558 * targhooks.c (default_function_arg): Likewise.
12559 (default_function_incoming_arg): Likewise.
12560 * calls.h (function_arg_info::end_marker_p): New function.
12561 (function_arg_info::end_marker): Likewise.
12562 * calls.c (prepare_call_address, initialize_argument_information)
12563 (expand_call, emit_library_call_value_1): Update calls to
12564 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
12565 * dse.c: Include calls.h.
12566 (get_call_args): Update call to targetm.calls.function_arg.
12567 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12568 * var-tracking.c (prepare_call_arguments): Likewise.
12569 * function.c (assign_parm_find_entry_rtl): Update call to
12570 targetm.calls.function_incoming_arg.
12571 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
12572 function_arg_info instead of a mode, tree and named flag.
12573 * config/alpha/alpha.c (alpha_function_arg): Likewise.
12574 * config/arc/arc.c (arc_function_arg): Likewise.
12575 * config/arm/arm.c (arm_function_arg): Likewise.
12576 (cmse_func_args_or_return_in_stack): Update call accordingly.
12577 (arm_function_ok_for_sibcall): Likewise.
12578 (cmse_nonsecure_call_clear_caller_saved): Likewise.
12579 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
12580 instead of a mode, tree and named flag.
12581 * config/bfin/bfin.c (bfin_function_arg): Likewise.
12582 * config/c6x/c6x.c (c6x_function_arg): Likewise.
12583 (c6x_call_saved_register_used): Update call accordingly.
12584 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
12585 instead of a mode, tree and named flag.
12586 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
12587 (cris_function_arg_1): Likewise.
12588 * config/csky/csky.c (csky_function_arg): Likewise.
12589 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
12590 * config/fr30/fr30.c (fr30_function_arg): Likewise.
12591 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
12592 (frv_function_arg_1): Likewise.
12593 * config/ft32/ft32.c (ft32_function_arg): Likewise.
12594 * config/gcn/gcn.c (gcn_function_arg): Likewise.
12595 * config/h8300/h8300.c (h8300_function_arg): Likewise.
12596 * config/i386/i386.c (ix86_function_arg): Likewise.
12597 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
12598 (ia64_function_arg_1): Likewise.
12599 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
12600 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
12601 accordingly.
12602 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
12603 instead of a mode, tree and named flag.
12604 * config/m32c/m32c.c (m32c_function_arg): Likewise.
12605 * config/m32r/m32r.c (m32r_function_arg): Likewise.
12606 * config/m68k/m68k.c (m68k_function_arg): Likewise.
12607 * config/mcore/mcore.c (mcore_function_arg): Likewise.
12608 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
12609 (microblaze_expand_prologue): Update call accordingly.
12610 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
12611 instead of a mode, tree and named flag.
12612 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
12613 (mmix_function_arg_1): Likewise.
12614 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
12615 * config/moxie/moxie.c (moxie_function_arg): Likewise.
12616 * config/msp430/msp430.c (msp430_function_arg): Likewise.
12617 * config/nds32/nds32.c (nds32_function_arg): Likewise.
12618 * config/nios2/nios2.c (nios2_function_arg): Likewise.
12619 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
12620 (nvptx_function_incoming_arg): Likewise.
12621 * config/or1k/or1k.c (or1k_function_arg): Likewise.
12622 * config/pa/pa.c (pa_function_arg): Likewise.
12623 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
12624 * config/pru/pru.c (pru_function_arg): Likewise.
12625 * config/riscv/riscv.c (riscv_function_arg): Likewise.
12626 * config/rl78/rl78.c (rl78_function_arg): Likewise.
12627 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
12628 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
12629 (rs6000_parm_needs_stack): Update call accordingly.
12630 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
12631 instead of a mode, tree and named flag.
12632 * config/s390/s390.c (s390_function_arg): Likewise.
12633 (s390_call_saved_register_used): Update call accordingly.
12634 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
12635 instead of a mode, tree and named flag.
12636 (sh_output_mi_thunk): Update call accordingly.
12637 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
12638 (sparc_function_incoming_arg): Take a function_arg_info instead of
12639 a mode, tree and named flag.
12640 * config/spu/spu.c (spu_function_arg): Likewise.
12641 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
12642 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
12643 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
12644 * config/v850/v850.c (v850_function_arg): Likewise.
12645 * config/vax/vax.c (vax_function_arg): Likewise.
12646 * config/visium/visium.c (visium_function_arg): Likewise.
12647 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
12648 (xtensa_function_incoming_arg): Likewise.
12649
12650 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12651
12652 * target.def (setup_incoming_varargs): Take a function_arg_info
12653 instead of a mode and tree.
12654 * doc/tm.texi: Regenerate.
12655 * targhooks.h (default_setup_incoming_varargs): Take a
12656 function_arg_info instead of a mode and tree.
12657 * targhooks.c (default_setup_incoming_varargs): Likewise.
12658 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
12659 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
12660 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
12661 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
12662 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
12663 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
12664 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
12665 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
12666 Likewise.
12667 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
12668 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
12669 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
12670 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
12671 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
12672 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
12673 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
12674 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
12675 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
12676 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
12677 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
12678 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
12679 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
12680 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
12681 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
12682 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
12683 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
12684 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
12685 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
12686 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
12687 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
12688 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
12689 * function.c (assign_parms_setup_varargs): Update call to
12690 targetm.calls.setup_incoming_varargs.
12691
12692 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12693
12694 * target.def (pass_by_reference): Take a function_arg_info instead
12695 of a mode, type and named flag.
12696 * doc/tm.texi: Regenerate.
12697 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
12698 accordingly.
12699 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
12700 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
12701 function_arg_info instead of a mode, type and named flag.
12702 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
12703 * calls.h (pass_by_reference): Take a function_arg_info instead of a
12704 mode, type and named flag.
12705 * calls.c (pass_by_reference): Likewise.
12706 (pass_va_arg_by_reference): Update call accordingly.
12707 (initialize_argument_information): Likewise.
12708 (emit_library_call_value_1): Likewise.
12709 * function.c (assign_parm_find_data_types): Likewise.
12710 * var-tracking.c (prepare_call_arguments): Likewise.
12711 * stor-layout.c: Include calls.h.
12712 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
12713 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
12714 function_arg_info instead of a mode, type and named flag.
12715 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
12716 * config/arc/arc.c (arc_pass_by_reference): Likewise.
12717 * config/arm/arm.c (arm_pass_by_reference): Likewise.
12718 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
12719 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
12720 (c6x_call_saved_register_used): Update call to pass_by_reference.
12721 * config/cris/cris.c (cris_pass_by_reference): Take a
12722 function_arg_info instead of a mode, type and named flag.
12723 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
12724 function_arg_info instead of a mode, type and named flag.
12725 (epiphany_arg_partial_bytes): Update call accordingly.
12726 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
12727 function_arg_info instead of a mode, type and named flag.
12728 (ft32_arg_partial_bytes): Update call accordingly.
12729 * config/i386/i386.c (ix86_pass_by_reference): Take a
12730 function_arg_info instead of a mode, type and named flag.
12731 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
12732 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
12733 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
12734 (m32r_return_in_memory): Update call accordingly.
12735 * config/mips/mips.c (mips_pass_by_reference): Take a
12736 function_arg_info instead of a mode, type and named flag.
12737 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
12738 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
12739 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
12740 (moxie_arg_partial_bytes): Update call accordingly.
12741 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
12742 function_arg_info instead of a mode, type and named flag.
12743 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
12744 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
12745 * config/pa/pa.c (pa_pass_by_reference): Likewise.
12746 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
12747 (riscv_return_in_memory): Update call accordingly.
12748 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
12749 function_arg_info instead of a mode, type and named flag.
12750 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
12751 (rs6000_parm_needs_stack): Update call to pass_by_reference.
12752 * config/s390/s390.c (s390_pass_by_reference): Take a
12753 function_arg_info instead of a mode, type and named flag.
12754 (s390_call_saved_register_used): Update call accordingly.
12755 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
12756 instead of a mode, type and named flag.
12757 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
12758 * config/spu/spu.c (spu_pass_by_reference): Likewise.
12759 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
12760 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
12761 * config/v850/v850.c (v850_pass_by_reference): Likewise.
12762 * config/visium/visium.c (visium_pass_by_reference): Likewise.
12763
12764 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12765
12766 * target.def (arg_partial_bytes): Take a function_arg_info instead
12767 of a mode, type and named flag.
12768 * doc/tm.texi: Regenerate.
12769 * target.h (function_arg_info): Declare.
12770 * calls.h (function_arg_info): New class.
12771 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12772 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
12773 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
12774 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
12775 * calls.c (initialize_argument_information): Update call to
12776 targetm.calls.partial_bytes.
12777 (emit_library_call_value_1): Likewise.
12778 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
12779 * function.c (assign_parm_find_entry_rtl): Likewise.
12780 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
12781 function_arg_info instead of a mode, type and named flag.
12782 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
12783 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
12784 (cmse_func_args_or_return_in_stack): Update accordingly.
12785 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
12786 function_arg_info instead of a mode, type and named flag.
12787 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
12788 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
12789 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
12790 * config/fr30/fr30.c: Include calls.h.
12791 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
12792 type and named flag.
12793 * config/frv/frv.c: Include calls.h.
12794 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
12795 type and named flag.
12796 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
12797 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
12798 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
12799 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
12800 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
12801 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
12802 * config/microblaze/microblaze.c (function_arg_partial_bytes):
12803 Likewise.
12804 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
12805 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
12806 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
12807 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
12808 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
12809 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
12810 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
12811 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
12812 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
12813 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
12814 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
12815 (rs6000_parm_needs_stack): Update call accordingly.
12816 * config/sh/sh.c (sh_arg_partial_bytes): Take a
12817 function_arg_info instead of a mode, type and named flag.
12818 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
12819 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
12820
12821 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12822
12823 * calls.h (must_pass_va_arg_in_stack): Declare.
12824 * calls.c (must_pass_va_arg_in_stack): New function.
12825 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
12826 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
12827 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
12828 Likewise.
12829 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12830
12831 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
12832
12833 * calls.h (pass_va_arg_by_reference): Declare.
12834 * calls.c (pass_va_arg_by_reference): New function.
12835 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
12836 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
12837 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
12838 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
12839 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
12840 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
12841 (mips_gimplify_va_arg_expr): Likewise.
12842 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
12843 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
12844 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
12845 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
12846 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
12847 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
12848 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
12849 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
12850 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
12851 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
12852 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
12853
12854 2019-08-20 Richard Biener <rguenther@suse.de>
12855
12856 PR target/91498
12857 * config/i386/i386-features.c (general_scalar_chain::convert_op):
12858 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
12859 (convert_scalars_to_vector): Add timode_p parameter and use it
12860 to guard TImode-only operation.
12861 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
12862 (pass_stv::execute): Pass down timode_p.
12863
12864 2019-08-20 Lili Cui <lili.cui@intel.com>
12865
12866 * common/config/i386/i386-common.c
12867 (processor_names): Add tigerlake and cooperlake.
12868 (processor_alias_table): Add tigerlake and cooperlake.
12869 * config.gcc: Add -march=tigerlake and cooperlake.
12870 * config/i386/driver-i386.c
12871 (host_detect_local_cpu): Detect tigerlake and cooperlake.
12872 Add "has_avx" to classify processor.
12873 * config/i386/i386-builtins.c (processor_model) :
12874 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
12875 (arch_names_table): Add tigerlake and cooperlake.
12876 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
12877 and PROCESSOR_COOPERLAKE.
12878 * config/i386/i386-c.c
12879 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
12880 * config/i386/i386-options.c
12881 (m_TIGERLAKE): Define.
12882 (m_COOPERLAKE): Ditto.
12883 (m_CORE_AVX512): Ditto.
12884 (processor_cost_table): Add cascadelake.
12885 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
12886 * config/i386/i386.h
12887 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
12888 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12889 (PTA_MOVDIRI): Ditto.
12890 (PTA_MOVDIR64B): Ditto.
12891 (PTA_COOPERLAKE): Ditto.
12892 (PTA_TIGERLAKE): Ditto.
12893 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
12894 * doc/extend.texi: Add tigerlake and cooperlake.
12895 * doc/invoke.texi: Add tigerlake and cooperlake.
12896
12897 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
12898
12899 * doc/install.texi (Specific, alpha): Remove note to use
12900 binutils 2.11.2 or later.
12901
12902 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
12903
12904 PR middle-end/89544
12905 * function.c (assign_parm_find_stack_rtl): Use larger alignment
12906 when possible.
12907
12908 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
12909
12910 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
12911 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
12912 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
12913 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
12914 * config/aarch64/constraints.md (Dt): New constraint
12915 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
12916
12917 2019-08-19 Richard Biener <rguenther@suse.de>
12918
12919 PR tree-optimization/91403
12920 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
12921 cases we can handle with tail-recursion...
12922 (follow_ssa_edge_expr): ... here. Do so.
12923
12924 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
12925
12926 PR target/91441
12927 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
12928 implemented for -fsanitize=kernel-address, and merge check logic
12929 with -fsanitize=address.
12930
12931 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
12932
12933 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
12934 for cpu and machine. Factor 64/32b builtins.
12935
12936 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
12937
12938 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
12939 gone, point to sourceforge.net.
12940
12941 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12942
12943 * doc/ux.texi (User Experience Guidelines): Update reference.
12944
12945 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
12946
12947 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
12948 not LGPL".
12949
12950 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
12951
12952 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
12953 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
12954
12955 2019-08-16 Martin Sebor <msebor@redhat.com>
12956
12957 * tree.def (TYPE_SIZE): Clarify.
12958 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
12959
12960 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
12961
12962 PR tree-optimization/91109
12963 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
12964 * lra.c (lra): Use lra_need_for_scratch_reg_p.
12965 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
12966
12967 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
12968
12969 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
12970 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
12971 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
12972 (uavg<mode>3_ceil): New expander.
12973 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
12974 mode iterator when creating CONST1_RTX.
12975 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
12976 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
12977 mode iterator for const1_operand predicate.
12978
12979 2019-08-16 Richard Biener <rguenther@suse.de>
12980
12981 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
12982 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
12983 follow_ssa_edge.
12984 (follow_ssa_edge_in_condition_phi_branch): Likewise.
12985 (analyze_evolution_in_loop): Likewise.
12986 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
12987 (follow_ssa_edge_expr): ... here. Refactor code.
12988
12989 2019-08-16 Richard Biener <rguenther@suse.de>
12990
12991 PR target/91469
12992 * config/i386/i386-features.c
12993 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
12994
12995 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12996
12997 PR other/91255
12998 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
12999 only if subst_name matches curr_attr string.
13000
13001 2019-08-16 Richard Biener <rguenther@suse.de>
13002
13003 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13004 stmt at gsi_p, instead replace it with a NOP removed later.
13005 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13006 that became dead because of that.
13007
13008 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13009
13010 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13011 for which we can't represent a range.
13012 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
13013 set_varying.
13014 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13015 Set VR_UNDEFINED if type is not supported.
13016 * tree-ssanames.c (get_range_info): Pass type to set_varying.
13017 * tree-vrp.c (value_range_base::check): Assert that a varying has
13018 min/max set.
13019 (value_range_base::equal_p): Early bail for undefines.
13020 (value_range_base::set_varying): Accept a type.
13021 (value_range::set_varying): Same.
13022 (value_range_base::type): VARYING can have a type, while UNDEFINE
13023 is typeless.
13024 (value_range_base::dump): Print type for VARYING nodes.
13025 (value_range_base::set): Add type to VARYING.
13026 (extract_range_from_multiplicative_op): Pass type to set_varying.
13027 (extract_range_from_binary_expr): Same.
13028 (value_range_base::intersect_helper): Same.
13029 (value_range_base::union_helper): Same.
13030 (value_range_base::normalize_symbolics): Same.
13031 (determine_value_range_1): Same.
13032 * tree-vrp.h (class value_range_base): Add type to set_varying.
13033 Add prototype for dump(void).
13034 Add prototype for supports_type_p.
13035 (class value_range): Add type to set_varying.
13036 Add prototype for dump(void).
13037 * vr-values.c (set_value_range_to_truthvalue): Pass type to
13038 set_varying.
13039 (vr_values::get_lattice_entry): Set varying even if propagation
13040 finished.
13041 Pass type to set_varying.
13042 (vr_values::get_value_range): Remove vr_const_varying.
13043 Reallocate the lattice if needed.
13044 (vr_values::update_value_range): Pass type to set_varying.
13045 (vr_values::extract_range_for_var_from_comparison_expr): Same.
13046 (vr_values::extract_range_from_binary_expr): Same.
13047 (vr_values::extract_range_from_unary_expr): Same.
13048 (vr_values::extract_range_from_cond_expr): Same.
13049 (vr_values::check_for_binary_op_overflow): Same.
13050 (vr_values::extract_range_basic): Same.
13051 (vr_values::extract_range_from_assignment): Same.
13052 (vr_values::vr_values): Increase size of num_vr_values.
13053 (vr_values::extract_range_from_phi_node): Pass type to
13054 set_varying.
13055
13056 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
13057
13058 PR target/90878
13059 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
13060 for costs of hard register moves.
13061 (ix86_register_move_cost): Likewise.
13062 * config/i386/i386.h (processor_costs): Move costs of hard
13063 register moves to hard_register. Add int_load, int_store,
13064 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13065 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
13066 for costs of RTL expressions.
13067 * config/i386/x86-tune-costs.h: Move costs of hard register
13068 moves to hard_register. Duplicate int_load, int_store,
13069 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13070 sse_load, sse_store for costs of RTL expressions.
13071
13072 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13073
13074 * target.def (setup_incoming_vararg_bounds): Remove.
13075 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
13076 * doc/tm.texi: Regenerate.
13077 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
13078 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
13079 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13080 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
13081
13082 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13083
13084 MSP430: Fix lines over 80 characters long in
13085 config/msp430/*.{c,h} files
13086
13087 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
13088 specifier in string.
13089 (msp430_select_hwmult_lib): Split line more than 80 characters long.
13090 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
13091 redundant old comment.
13092 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13093 Split line more than 80 characters long.
13094 * config/msp430/msp430.c (msp430_option_override): Likewise.
13095 (msp430_return_in_memory): Likewise.
13096 (msp430_gimplify_va_arg_expr): Likewise.
13097 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
13098 (msp430_legitimate_constant): Likewise.
13099 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
13100 (msp430_attr): Likewise.
13101 (msp430_data_attr): Likewise.
13102 (msp430_start_function): Likewise.
13103 (gen_prefix): Likewise.
13104 (msp430_init_sections): Likewise.
13105 (msp430_select_section): Likewise.
13106 (msp430_function_section): Likewise.
13107 (msp430_unique_section): Likewise.
13108 (msp430_output_aligned_decl_common): Likewise.
13109 (msp430_do_not_relax_short_jumps): Likewise.
13110 (msp430_init_builtins): Likewise.
13111 (msp430_expand_delay_cycles): Likewise.
13112 (msp430_expand_prologue): Likewise.
13113 (msp430_expand_epilogue): Likewise.
13114 (msp430_expand_helper): Likewise.
13115 (msp430_split_movsi): Likewise.
13116 (msp430_print_operand): Likewise.
13117 (msp430_return_addr_rtx): Likewise.
13118 (msp430x_extendhisi): Likewise.
13119 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
13120 (ASM_SPEC): Likewise.
13121 Remove very obvious comments.
13122 (LIB_SPEC): Split line more than 80 characters long.
13123 (EH_RETURN_HANDLER_RTX): Likewise.
13124 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13125
13126 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13127
13128 MSP430: Fix whitespace errors and incorrect indentation in
13129 config/msp430/*.{c,h} files
13130
13131 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
13132 (msp430_select_hwmult_lib): Likewise.
13133 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
13134 (msp430_extract_mcu_data): Likewise.
13135 (struct t_msp430_mcu_data): Likewise.
13136 * config/msp430/msp430.c (struct machine_function): Remove whitespace
13137 before left square bracket.
13138 (msp430_option_override): Fix indentation.
13139 (msp430_hard_regno_nregs_with_padding): Likewise.
13140 (msp430_initial_elimination_offset): Likewise.
13141 (msp430_special_register_convention_p): Remove whitespace before left
13142 square bracket and after exclamation mark.
13143 (msp430_evaluate_arg): Likewise.
13144 (msp430_callee_copies): Fix indentation.
13145 (msp430_gimplify_va_arg_expr): Likewise.
13146 (msp430_function_arg_advance): Remove whitespace before left square
13147 bracket.
13148 (reg_ok_for_addr): Likewise.
13149 (msp430_preserve_reg_p): Likewise.
13150 (msp430_compute_frame_info): Likewise.
13151 (msp430_asm_output_addr_const_extra): Add space between function name
13152 and open parenthesis.
13153 (has_section_name): Fix indentation.
13154 (msp430_attr): Remove trailing whitespace.
13155 (msp430_section_attr): Likewise.
13156 (msp430_data_attr): Likewise.
13157 (struct msp430_attribute_table): Fix comment and whitespace.
13158 (msp430_start_function): Remove whitespace before left square bracket.
13159 Add space between function name and open parenthesis.
13160 (msp430_select_section): Remove trailing whitespace.
13161 (msp430_section_type_flags): Remove trailing whitespace.
13162 (msp430_unique_section): Remove space before closing parenthesis.
13163 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
13164 (msp430_builtins): Remove whitespace before left square bracket.
13165 (msp430_init_builtins): Fix indentation.
13166 (msp430_expand_prologue): Remove whitespace before left square bracket.
13167 Remove space before closing parenthesis.
13168 (msp430_expand_epilogue): Remove whitespace before left square bracket.
13169 (msp430_split_movsi): Remove space before closing parenthesis.
13170 (helper_function_name_mappings): Fix indentation.
13171 (msp430_use_f5_series_hwmult): Fix whitespace.
13172 (use_32bit_hwmult): Likewise.
13173 (msp430_no_hwmult): Likewise.
13174 (msp430_output_labelref): Remove whitespace before left square bracket.
13175 (msp430_print_operand_raw): Likewise.
13176 (msp430_print_operand_addr): Likewise.
13177 (msp430_print_operand): Add two spaces after '.' in comment.
13178 Fix trailing whitespace.
13179 (msp430x_extendhisi): Fix indentation.
13180 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
13181 tab.
13182 (PC_REGNUM): Likewise.
13183 (STACK_POINTER_REGNUM): Likewise.
13184 (CC_REGNUM): Likewise.
13185
13186 2019-08-15 Richard Biener <rguenther@suse.de>
13187
13188 PR target/91454
13189 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13190 helper.
13191 (general_scalar_chain::make_vector_copies): Use it.
13192
13193 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13194
13195 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13196
13197 2019-08-15 Martin Liska <mliska@suse.cz>
13198
13199 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13200 operators with no arguments.
13201 (eliminate_unnecessary_stmts): Likewise here.
13202
13203 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13204
13205 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13206 <case COMPARE>: Revert 2019-08-14 change.
13207 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13208 for (TARGET_64BIT || mode != DImode).
13209
13210 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13211
13212 * tree-vrp.c (value_range_base::set): Merge in code from
13213 value_range_base::set_and_canonicalize.
13214 Enforce canonicalization at set time.
13215 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13216 (value_range_base::set_undefined): Inline call to set().
13217 (value_range_base::set_varying): Same.
13218 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13219 (vrp_val_max): New argument handle_pointers.
13220 (vrp_val_min): Same.
13221 (ranges_from_anti_range): Same.
13222 (extract_range_into_wide_ints): Use tree argument instead of sign
13223 and precision.
13224 (extract_range_from_multiplicative_op): Take in tree type instead
13225 of precision and sign. Adapt function for canonicalized ranges.
13226 (extract_range_from_binary_expr): Pass type to
13227 extract_range_from_multiplicative_op.
13228 Adapt for canonicalized ranges.
13229 (extract_range_from_unary_expr): Same.
13230 (value_range_base::intersect_helper): Adjust for canonicalized
13231 ranges.
13232 (value_range_base::union_helper): Same.
13233 (value_range_base::normalize_symbolics): New.
13234 * tree-vrp.h (class value_range_base): Remove
13235 set_and_canonicalize.
13236 New prototype for normalize_symbolics.
13237 (class value_range): Remove set_and_canonicalize.
13238 (vrp_val_min): Adjust prototype.
13239 (vrp_val_max): Same.
13240 * vr-values.c
13241 (vr_values::extract_range_for_var_from_comparison_expr): Call set
13242 instead of set_and_canonicalize.
13243
13244 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13245
13246 PR middle-end/91444
13247 * tree-vect-stmts.c (vectorizable_call): Check that the function
13248 is a BUILT_IN_MD function before passing it to
13249 targetm.vectorize.builtin_md_vectorized_function.
13250
13251 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13252
13253 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
13254 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
13255 (aarch64_select_early_remat_modes): Use it.
13256
13257 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13258
13259 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
13260 16 for SVE predicates even if they are fixed-length.
13261
13262 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13263
13264 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
13265 operand order match the MOV /Z alias.
13266
13267 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13268
13269 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
13270 the vector pattern as an aarch64_svpattern argument. Update the
13271 overloaded caller accordingly.
13272 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
13273 (aarch64_output_sve_vector_inc_dec): Likewise.
13274
13275 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13276
13277 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
13278 multiplication case, try to compute VG * (lowest set bit) directly
13279 rather than always basing the multiplication on VG. Use
13280 expand_mult for the multiplication if we can.
13281
13282 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13283
13284 * config/aarch64/aarch64-protos.h
13285 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
13286 (aarch64_sve_inc_dec_immediate_p): Rename to...
13287 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13288 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
13289 (aarch64_output_sve_scalar_inc_dec): Declare.
13290 (aarch64_output_sve_inc_dec_immediate): Rename to...
13291 (aarch64_output_sve_vector_inc_dec): ...this.
13292 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
13293 (aarch64_output_sve_scalar_inc_dec): New functions.
13294 (aarch64_output_sve_addvl_addpl): Remove the base and offset
13295 arguments. Only handle true ADDVL and ADDPL instructions;
13296 don't emit an INC or DEC.
13297 (aarch64_sve_inc_dec_immediate_p): Rename to...
13298 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
13299 (aarch64_output_sve_inc_dec_immediate): Rename to...
13300 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
13301 aarch64_sve_vector_inc_dec_immediate_p.
13302 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
13303 (aarch64_sve_plus_immediate): New predicates.
13304 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
13305 rather than aarch64_sve_addvl_addpl_immediate.
13306 (aarch64_sve_inc_dec_immediate): Rename to...
13307 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
13308 aarch64_sve_vector_inc_dec_immediate_p.
13309 (aarch64_sve_add_operand): Update accordingly.
13310 * config/aarch64/constraints.md (Uai): New constraint.
13311 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
13312 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
13313 operand into a register if it satisfies aarch64_sve_plus_immediate.
13314 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
13315 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
13316 * config/aarch64/aarch64-sve.md (add<mode>3): Call
13317 aarch64_output_sve_vector_inc_dec instead of
13318 aarch64_output_sve_inc_dec_immediate.
13319
13320 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13321
13322 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
13323 (UNSPEC_REVW): New constants.
13324 (elem_bits): New mode attribute.
13325 (SVE_INT_UNARY): New int iterator.
13326 (optab): Handle UNSPEC_REV[BHW].
13327 (sve_int_op): New int attribute.
13328 (min_elem_bits): Handle VNx16QI and the predicate modes.
13329 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
13330 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
13331 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
13332 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
13333 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
13334 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
13335 unspecs based on the total width of the reversed data.
13336 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
13337 reinterpret followed by a subreg on big-endian targets.
13338
13339 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13340 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13341
13342 * config/aarch64/aarch64-sve.md
13343 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
13344 alternatives in which one of the inputs is in the same register
13345 as the output.
13346
13347 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13348
13349 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
13350 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
13351
13352 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13353
13354 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
13355 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
13356
13357 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13358 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13359
13360 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
13361 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
13362 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
13363
13364 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13365 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13366
13367 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
13368 Add an alternative that uses reversed shifts.
13369
13370 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13371
13372 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
13373 struct.
13374
13375 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13376
13377 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
13378 a commutativity marker.
13379
13380 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13381 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13382
13383 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
13384 (aarch64_prepare_sve_cond_int_fma): Declare.
13385 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
13386 (aarch64_prepare_sve_int_fma): New functions.
13387 (aarch64_prepare_sve_cond_int_fma): Likewise.
13388 * config/aarch64/aarch64-sve.md
13389 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
13390 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
13391 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
13392 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
13393 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
13394 (*madd<mode>): Rename to...
13395 (*fma<mode>4): ...this.
13396 (*msub<mode>): Rename to...
13397 (*fnma<mode>4): ...this.
13398
13399 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13400 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13401
13402 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
13403 Print 2.0 naturally.
13404 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
13405 * config/aarch64/predicates.md
13406 (aarch64_sve_float_negated_arith_immediate): New predicate,
13407 renamed from aarch64_sve_float_arith_with_sub_immediate.
13408 (aarch64_sve_float_arith_with_sub_immediate): Test for both
13409 positive and negative constants.
13410 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
13411 or an aarch64_sve_float_arith_with_sub_immediate.
13412 * config/aarch64/constraints.md (vsN): Use
13413 aarch64_sve_float_negated_arith_immediate.
13414 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
13415 iterator.
13416 (sve_pred_fp_rhs2_immediate): New int attribute.
13417 * config/aarch64/aarch64-sve.md
13418 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
13419 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
13420 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
13421 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
13422 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
13423 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
13424
13425 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13426 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13427
13428 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
13429 (*aarch64_cond_abd<SVE_F:mode>_3)
13430 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
13431
13432 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13433 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13434
13435 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
13436 (*aarch64_cond_<su>abd<mode>_any): New patterns.
13437
13438 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13439 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13440
13441 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
13442 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
13443 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
13444 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
13445 optabs.
13446 * optabs.h (create_convert_operand_from): Expand comment.
13447 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
13448 when mapping scalar rtxes to vector operands.
13449 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
13450 ashiftrt and lshiftrt.
13451 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
13452 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
13453 (*cond_<optab><mode>_any_const): New patterns.
13454
13455 2019-08-15 Martin Liska <mliska@suse.cz>
13456
13457 PR ipa/91438
13458 * cgraph.c (cgraph_node::remove): When setting
13459 n->origin = NULL for all nested functions, reset
13460 also next_nested.
13461
13462 2019-08-15 Martin Liska <mliska@suse.cz>
13463
13464 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
13465 and next_nested.
13466
13467 2019-08-15 Martin Liska <mliska@suse.cz>
13468
13469 PR ipa/91404
13470 * passes.c (order): Remove.
13471 (uid_hash_t): Likewise).
13472 (remove_cgraph_node_from_order): Remove from set
13473 of pointers (cgraph_node *).
13474 (insert_cgraph_node_to_order): New.
13475 (duplicate_cgraph_node_to_order): New.
13476 (do_per_function_toporder): Register all 3 cgraph hooks.
13477 Skip removed_nodes now as we know about all of them.
13478
13479 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
13480
13481 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
13482 <case E_V8QImode>: Use vector_set path for
13483 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13484 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
13485 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
13486
13487 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
13488
13489 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
13490
13491 2019-08-14 Martin Sebor <msebor@redhat.com>
13492
13493 PR tree-optimization/91294
13494 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
13495 source length as exact.
13496
13497 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
13498
13499 * doc/extend.texi: Add "noinit" attribute documentation.
13500 * doc/sourcebuild.texi: Add noinit effective target documentation.
13501 * varasm.c (default_section_type_flags): Add support for "noinit"
13502 section.
13503 (default_elf_select_section): Add support for "noinit" attribute.
13504 * config/msp430/msp430.c (msp430_attribute_table): Remove
13505 "noinit" entry.
13506
13507 2019-08-14 Richard Biener <rguenther@suse.de>
13508 Uroš Bizjak <ubizjak@gmail.com>
13509
13510 PR target/91154
13511 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
13512 mode arguments.
13513 (scalar_chain::smode): New member.
13514 (scalar_chain::vmode): Likewise.
13515 (dimode_scalar_chain): Rename to...
13516 (general_scalar_chain): ... this.
13517 (general_scalar_chain::general_scalar_chain): Take mode arguments.
13518 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
13519 base with TImode and V1TImode.
13520 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
13521 (general_scalar_chain::vector_const_cost): Adjust for SImode
13522 chains.
13523 (general_scalar_chain::compute_convert_gain): Likewise. Add
13524 {S,U}{MIN,MAX} support.
13525 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
13526 (general_scalar_chain::make_vector_copies): Likewise. Handle
13527 non-DImode chains appropriately.
13528 (general_scalar_chain::convert_reg): Likewise.
13529 (general_scalar_chain::convert_op): Likewise.
13530 (general_scalar_chain::convert_insn): Likewise. Add
13531 fatal_insn_not_found if the result is not recognized.
13532 (convertible_comparison_p): Pass in the scalar mode and use that.
13533 (general_scalar_to_vector_candidate_p): Likewise. Rename from
13534 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
13535 (scalar_to_vector_candidate_p): Remove by inlining into single
13536 caller.
13537 (general_remove_non_convertible_regs): Rename from
13538 dimode_remove_non_convertible_regs.
13539 (remove_non_convertible_regs): Remove by inlining into single caller.
13540 (convert_scalars_to_vector): Handle SImode and DImode chains
13541 in addition to TImode chains.
13542 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
13543 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
13544 (*<maxmin>di3_doubleword): Likewise.
13545
13546 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13547 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13548
13549 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
13550 (*cond_bic<mode>_any): New patterns.
13551
13552 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13553
13554 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
13555 take the equivalent mask, as well as a bit count.
13556 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
13557 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
13558 (aarch64_sve_pred_and_operand): New predicates.
13559 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
13560 code attribute.
13561 * config/aarch64/aarch64-sve.md
13562 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
13563 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
13564
13565 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13566
13567 * config/aarch64/aarch64-sve.md
13568 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13569 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
13570 New patterns.
13571
13572 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13573 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13574
13575 * config/aarch64/aarch64-sve.md
13576 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
13577 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
13578
13579 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13580 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13581
13582 * config/aarch64/aarch64-sve.md
13583 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
13584 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
13585
13586 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13587
13588 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
13589 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
13590 New pattern.
13591
13592 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13593 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13594
13595 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
13596
13597 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13598 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13599
13600 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
13601 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
13602 (aarch64_print_operand): Add support for %I.
13603 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
13604 Bitcast floating-point constants to the corresponding integer constant.
13605 (aarch64_float_const_representable_p): Handle vectors as well
13606 as scalars.
13607 (aarch64_expand_sve_vcond): Make sure that the operands are valid
13608 for the new vcond_mask_<mode><vpred> expander.
13609 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
13610 test aarch64_float_const_representable_p.
13611 (aarch64_sve_reg_or_dup_imm): New predicate.
13612 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
13613 gen_vcond_mask_<mode><vpred> instead of
13614 gen_aarch64_sve_dup<mode>_const.
13615 (vcond_mask_<mode><vpred>): Turn into a define_expand that
13616 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
13617 for operands 1 and 2 respectively. Force operand 2 into a
13618 register if operand 1 is a register. Fold old define_insn...
13619 (aarch64_sve_dup<mode>_const): ...and this define_insn...
13620 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
13621 floating-point constants that can be moved as integers. Add
13622 alternatives for MOV /M and FMOV /M.
13623 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
13624 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
13625 1 and 2 respectively.
13626 * config/aarch64/constraints.md (Ufc): Handle vectors as well
13627 as scalars.
13628 (vss): New constraint.
13629
13630 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13631
13632 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
13633 (aarch64_sve_float_maxmin_operand): New predicates.
13634 * config/aarch64/constraints.md (vsB): New constraint.
13635 (vsM): Fix typo.
13636 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
13637 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
13638 UNSPEC_COND_FMINNM.
13639 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
13640 Use aarch64_sve_float_maxmin_operand for operand 2.
13641 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
13642 Add alternatives for the constant forms.
13643
13644 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13645
13646 * config/aarch64/constraints.md (vsb): New constraint.
13647 (vsm): Generalize description.
13648 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
13649 iterator.
13650 (sve_imm_con): Handle smax, smin, umax and umin.
13651 (sve_imm_prefix): New code attribute.
13652 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
13653 (aarch64_sve_vsb_operand): New predicates.
13654 (aarch64_sve_mul_immediate): Rename to...
13655 (aarch64_sve_vsm_immediate): ...this.
13656 (aarch64_sve_mul_operand): Rename to...
13657 (aarch64_sve_vsm_operand): ...this.
13658 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
13659 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
13660 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
13661 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
13662 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
13663 add movprfx support for the immediate alternatives.
13664 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
13665 of the above.
13666 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
13667 for operand 3.
13668
13669 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13670
13671 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
13672 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
13673 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
13674
13675 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13676
13677 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
13678 (optab, sve_int_op): Handle them.
13679 * config/aarch64/aarch64-sve.md: Expand comment.
13680
13681 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13682
13683 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
13684 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
13685 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
13686
13687 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13688
13689 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
13690 (aarch64_expand_sve_const_pred_trn): New functions.
13691 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
13692 use the above functions when the parameter is true.
13693 (aarch64_expand_sve_const_pred): Update call accordingly.
13694 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
13695 Rename to...
13696 (@aarch64_sve_<perm_insn><mode>): ...this.
13697
13698 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13699
13700 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
13701 Declare.
13702 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
13703 (aarch64_sve_emit_int_cmp): New functions.
13704 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
13705 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
13706 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
13707 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
13708 (UNSPEC_PRED_Z): New unspec.
13709 (set_clobber_cc_nzc): Delete.
13710 * config/aarch64/aarch64-sve.md: Add a block comment about
13711 UNSPEC_PRED_Z.
13712 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
13713 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
13714 the old pattern with that name. Use UNSPEC_PRED_Z instead of
13715 UNSPEC_MERGE_PTRUE.
13716 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
13717 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
13718 check for compatible predicates.
13719 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
13720 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
13721 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
13722 comparisons above.
13723
13724 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13725
13726 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
13727 * config/aarch64/aarch64-sve.md: Add a section describing it.
13728 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
13729 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
13730 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
13731 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
13732 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
13733 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
13734 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
13735 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
13736 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
13737 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
13738 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
13739 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
13740 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
13741 (aarch64_evpc_rev_local): Update accordingly.
13742
13743 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13744
13745 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
13746 iterators.
13747 (SVE_BHSI, SVE_SDI): Tweak comment.
13748 (SVE_HSDI): Likewise. Fix definition.
13749 (SVE_SDF): New mode iterator.
13750 (elem_bits): New mode attribute.
13751 (SVE_COND_FCVT): New int iterator.
13752 * config/aarch64/aarch64-sve.md
13753 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
13754 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
13755 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
13756 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
13757 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
13758 ...these new patterns.
13759 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
13760 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
13761 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
13762 Merge into...
13763 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
13764 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
13765 ...these new patterns.
13766 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
13767 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
13768 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
13769 ...this new pattern.
13770 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
13771 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
13772 ...this new pattern.
13773 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
13774
13775 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13776
13777 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
13778 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
13779 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
13780 unspecs.
13781 (optab, su): Handle them.
13782 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
13783 * config/aarch64/aarch64-sve.md
13784 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
13785 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
13786 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
13787 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
13788 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
13789 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
13790 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
13791 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
13792 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
13793 FIXUORS.
13794 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
13795 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
13796 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
13797 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
13798 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
13799 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
13800 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
13801 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
13802 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
13803 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
13804 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
13805 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
13806 of UNSPEC_FLOAT_CONVERT.
13807 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
13808 aarch64_sve_extend<mode><Vwide>2.
13809
13810 2019-08-14 Richard Biener <rguenther@suse.de>
13811
13812 PR target/91154
13813 * config/i386/i386-features.c
13814 (dimode_scalar_chain::compute_convert_gain): Compute and dump
13815 individual instruction gain. Fix reg-reg copy GRP cost. Use
13816 ix86_cost->sse_op for vector instruction costs.
13817
13818 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13819
13820 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
13821 (cmp_op): Handle it.
13822 (SVE_COND_FP_CMP): Rename to...
13823 (SVE_COND_FP_CMP_I0): ...this.
13824 (SVE_FP_CMP): Remove.
13825 * config/aarch64/aarch64-sve.md
13826 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
13827 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
13828 using unspecs to represent the comparison.
13829 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
13830 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
13831 accordingly.
13832 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
13833 (aarch64_unspec_cond_code): Move after integer code. Handle
13834 UNORDERED.
13835 (aarch64_emit_sve_predicated_cond): Replace with...
13836 (aarch64_emit_sve_fp_cond): ...this new function.
13837 (aarch64_emit_sve_or_conds): Replace with...
13838 (aarch64_emit_sve_or_fp_conds): ...this new function.
13839 (aarch64_emit_sve_inverted_cond): Replace with...
13840 (aarch64_emit_sve_invert_fp_cond): ...this new function.
13841 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
13842
13843 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13844
13845 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
13846 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
13847 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
13848 SVE_HSD instead of SVE_SD.
13849
13850 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13851 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13852
13853 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
13854 iterator.
13855 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
13856 attributes.
13857 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
13858 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
13859 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
13860 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
13861 (*div<SVE_F:mode>3): Generalize to...
13862 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
13863
13864 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13865 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13866
13867 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
13868 constants.
13869 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
13870 predicate.
13871 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
13872 Declare.
13873 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
13874 function.
13875 * config/aarch64/aarch64-sve.md: Add a block comment about the
13876 handling of predicated FP operations.
13877 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
13878 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
13879 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13880 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
13881 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
13882 operand.
13883 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
13884 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
13885 operand.
13886 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
13887 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
13888 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
13889 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
13890 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
13891 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
13892 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
13893 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
13894 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
13895 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
13896 strictness operands. Use aarch64_sve_pred_dominates_p to check
13897 whether the predicate on the conditional operation is suitable
13898 for merging. Split patterns into the canonical equal-predicate form.
13899 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
13900 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
13901
13902 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13903 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13904
13905 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
13906 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
13907 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
13908 rtx codes.
13909 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
13910 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
13911 unspecs.
13912
13913 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13914 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
13915
13916 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
13917 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
13918 actually has, rather than relying on REG_EQUAL notes.
13919 Make the insn operand order match the SVE operand order.
13920 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
13921 the SVE operand order.
13922
13923 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13924
13925 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
13926 (aarch64_emit_set_immediate): Likewise.
13927 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
13928 (aarch64_pfalse_reg): Likewise.
13929 (aarch64_convert_sve_data_to_pred): New function.
13930 (aarch64_sve_move_pred_via_while): Take an optional target register
13931 and the required register mode.
13932 (aarch64_expand_sve_const_pred_1): New function.
13933 (aarch64_expand_sve_const_pred): Likewise.
13934 (aarch64_expand_mov_immediate): Build an all-true predicate
13935 if the significant bits of the immediate are all true. Use
13936 aarch64_expand_sve_const_pred for all compile-time predicate constants.
13937 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
13938 before register allocation.
13939 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
13940 a VNx16BI PTRUE when splitting the memory alternative.
13941 (vec_duplicate<mode>): Update accordingly.
13942 (*pred_cmp<cmp_op><mode>): Rename to...
13943 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
13944
13945 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
13946
13947 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
13948 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
13949 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
13950 (UNSPEC_PTEST): New unspec.
13951 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
13952 * config/aarch64/iterators.md (data_bytes): New mode attribute.
13953 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
13954 * config/aarch64/aarch64-sve.md: Add a new section describing the
13955 handling of UNSPEC_PTEST.
13956 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
13957 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
13958 (ptest_ptrue<mode>): Replace with...
13959 (aarch64_ptest<mode>): ...this new pattern.
13960 (cbranch<mode>4): Update after above changes.
13961 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
13962 UNSPEC_PTEST_PTRUE.
13963 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
13964 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
13965 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
13966
13967 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
13968
13969 PR lto/91287
13970 * builtins.c (builtin_with_linkage_p): New function.
13971 * builtins.h (builtin_with_linkage_p): New function.
13972 * symtab.c (write_symbol): Remove redundant assert.
13973 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
13974 Remove FIXME and use builtin_with_linkage_p.
13975
13976 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
13977
13978 PR middle-end/91421
13979 * tree-core.h (function_decl::function_code): Change type to
13980 unsigned int.
13981 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
13982 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
13983 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
13984 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
13985 is BUILT_IN_NORMAL.
13986 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
13987 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
13988 (fndecl_built_in_p): Change the type of the "name" argument to
13989 unsigned int.
13990 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
13991 after check for DECL_BUILT_IN_CLASS.
13992 * cgraphclones.c (build_function_decl_skip_args): Use
13993 set_decl_built_in_function.
13994 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
13995 * ipa-split.c (split_function): Likewise.
13996 * langhooks.c (add_builtin_function_common): Likewise.
13997 * omp-simd-clone.c (simd_clone_create): Likewise.
13998 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
13999 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14000 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14001 DECL_FUNCTION_CODE.
14002 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14003 instead of DECL_FUNCTION_CODE.
14004 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14005 instead of DECL_FUNCTION_CODE.
14006 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14007 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14008 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14009 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14010 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14011 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14012 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14013 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
14014 (alpha_gimple_fold_builtin): Likewise.
14015 * config/arc/arc.c (arc_expand_builtin): Likewise.
14016 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
14017 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
14018 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
14019 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
14020 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
14021 * config/frv/frv.c (frv_expand_builtin): Likewise.
14022 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
14023 (gcn_expand_builtin): Likewise.
14024 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
14025 (fold_builtin_cpu): Likewise.
14026 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
14027 * config/i386/i386.c (ix86_fold_builtin): Likewise.
14028 (ix86_gimple_fold_builtin): Likewise.
14029 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
14030 (ia64_expand_builtin): Likewise.
14031 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
14032 * config/mips/mips.c (mips_expand_builtin): Likewise.
14033 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
14034 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14035 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
14036 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
14037 * config/pa/pa.c (pa_expand_builtin): Likewise.
14038 * config/pru/pru.c (pru_expand_builtin): Likewise.
14039 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
14040 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14041 Likewise.
14042 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
14043 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
14044 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
14045 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
14046 (rs6000_builtin_reciprocal): Likewise.
14047 * config/rx/rx.c (rx_expand_builtin): Likewise.
14048 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14049 * config/s390/s390.c (s390_expand_builtin): Likewise.
14050 * config/sh/sh.c (sh_expand_builtin): Likewise.
14051 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
14052 (sparc_fold_builtin): Likewise.
14053 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14054 * config/spu/spu.c (spu_expand_builtin): Likewise.
14055 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
14056 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
14057 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
14058 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14059 (xtensa_expand_builtin): Likewise.
14060
14061 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14062
14063 PR middle-end/91421
14064 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
14065 before the DECL_FUNCTION_CODE.
14066 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
14067 to check for a BUILT_IN_ALLOCA call.
14068 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
14069 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
14070 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
14071 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14072 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
14073 for BUILT_IN_NORMAL functions.
14074 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
14075 test for BUILT_IN_TM_ABORT.
14076 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
14077 to check for a BUILT_IN_STACK_RESTORE call.
14078 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
14079 * tree-ssa-threadedge.c
14080 (record_temporary_equivalences_from_stmts_at_dest): Check for a
14081 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
14082 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
14083 test for a BUILT_IN_NORMAL call instead of a negative test for
14084 an internal function call.
14085
14086 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14087
14088 * tree.h (build_vector_a_then_b): Declare.
14089 * tree.c (build_vector_a_then_b): New function.
14090 * fold-const-call.c (fold_while_ult): Likewise.
14091 (fold_const_call): Use it to handle IFN_WHILE_ULT.
14092 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
14093 (aarch64_svpattern): New enum.
14094 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
14095 constants through aarch64_expand_mov_immediate.
14096 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
14097 than general_operand as the predicate for operand 1.
14098 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
14099 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
14100 insn_type.
14101 (simd_immediate_info::simd_immediate_info): New overload that
14102 takes a scalar_int_mode and an svpattern.
14103 (simd_immediate_info::u): Add a "pattern" field.
14104 (svpattern_token): New function.
14105 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
14106 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
14107 (aarch64_sve_move_pred_via_while): New functions.
14108 (aarch64_expand_mov_immediate): Try using
14109 aarch64_sve_move_pred_via_while for predicates that contain N ones
14110 followed by M zeros but that do not correspond to a VLnnn pattern.
14111 (aarch64_sve_pred_valid_immediate): New function.
14112 (aarch64_simd_valid_immediate): Use it instead of dealing directly
14113 with PTRUE and PFALSE.
14114 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
14115 forms.
14116
14117 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
14118
14119 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
14120 flag.
14121 (darwin_override_options): Likewise.
14122 * config/darwin.h: Likewise.
14123 * config/darwin.opt: Likewise.
14124 * config/i386/i386.c (output_pic_addr_const): Likewise.
14125 * config/rs6000/darwin.h: Likewise.
14126 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
14127 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
14128 ... this TARGET_MACHO_SYMBOL_STUBS.
14129 (FUNCTION_PROFILER):Likewise.
14130 * config/i386/i386.h: Likewise.
14131
14132 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14133
14134 * config/i386/i386-expand.c (ix86_expand_vector_extract)
14135 <case E_V2SImode>: Use vec_extr path for
14136 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14137 <case E_V8QImode>: Ditto.
14138 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
14139 Use SWI48 mode iterator. Use %k to output operand 0.
14140 (*mmx_pextrw): New insn pattern.
14141 (*mmx_pextrb): Ditto.
14142 (*mmx_pextrb_zext): Ditto.
14143
14144 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
14145
14146 * target.def (libc_has_function, libc_has_fast_function): Improve
14147 documentation strings.
14148 * doc/tm.texi: Regenerate.
14149
14150 2019-08-13 Caroline Tice <cmtice@google.com>
14151
14152 PR other/91396
14153 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
14154 vtv_end.o or vtv_end_preinit.o files if !static.
14155
14156 2019-08-13 Olivier Hainque <hainque@adacore.com>
14157
14158 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
14159
14160 2019-08-13 Olivier Hainque <hainque@adacore.com>
14161
14162 * rtlanal.c (tablejump_casesi_pattern): New function, to
14163 determine if a tablejump insn is a casesi dispatcher. Extracted
14164 from patch_jump_insn.
14165 * rtl.h (tablejump_casesi_pattern): Declare.
14166 * cfgrtl.c (patch_jump_insn): Use it.
14167 * dwarf2cfi.c (create_trace_edges): Use it.
14168
14169 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14170
14171 PR target/81800
14172 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
14173 operand is larger than a long int.
14174
14175 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14176
14177 * machmode.h (opt_mode::else_mode): New function.
14178 (opt_mode::else_blk): Use it.
14179 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
14180 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
14181 (aarch64_gen_stepped_int_parallel): Likewise.
14182 (aarch64_stepped_int_parallel_p): Likewise.
14183 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14184 argument.
14185 * config/aarch64/aarch64.c
14186 (aarch64_expand_sve_widened_duplicate): Delete.
14187 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14188 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14189 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14190 argument. Use early returns in the !CONST_INT_P handling.
14191 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14192 than handling some inline.
14193 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14194 from...
14195 (aarch64_simd_container_mode): ...here.
14196 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14197 (aarch64_sve_ld1rq_operand_p): New functions.
14198 * config/aarch64/predicates.md (descending_int_parallel)
14199 (aarch64_sve_ld1rq_operand): New predicates.
14200 * config/aarch64/constraints.md (UtQ): New constraint.
14201 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14202 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14203 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14204 (@aarch64_sve_reinterpret<mode>): New expander.
14205 (*aarch64_sve_reinterpret<mode>): New pattern.
14206 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14207 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14208 (*sve_ld1rq<Vesize>): Replace with...
14209 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14210
14211 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14212
14213 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14214 16:12.
14215
14216 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14217
14218 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14219 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14220 (msp430_check_path_for_devices): New.
14221 (parse_devices_csv_1): New.
14222 (parse_devices_csv): New.
14223 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14224 MCU data in devices.csv before using the hard-coded data.
14225 Warn if devices.csv isn't found and the MCU wasn't found in the
14226 hard-coded data either.
14227 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14228 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
14229 Search for devices.csv on -I and -L paths.
14230 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
14231 msp430_set_driver_var.
14232 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
14233 -mdevices-csv-loc=.
14234 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
14235 searched for devices.csv.
14236 (mwarn-devices-csv): Document option.
14237
14238 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14239
14240 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
14241 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
14242 Use a single Dn alternative instead of separate Dz and Dm
14243 alternatives. Use aarch64_output_sve_move_immediate.
14244 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
14245 function.
14246 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
14247 for predicates too.
14248 (aarch64_output_sve_mov_immediate): Handle predicate modes.
14249 (aarch64_output_ptrue): Delete.
14250
14251 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14252
14253 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
14254 INDEX.
14255 (simd_immediate_info::value, simd_immediate_info::step)
14256 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
14257 with...
14258 (simd_immediate_info::u): ...this new union.
14259 (simd_immediate_info::simd_immediate_info): Update accordingly.
14260 (aarch64_output_simd_mov_immediate): Likewise.
14261 (aarch64_output_sve_mov_immediate): Likewise.
14262
14263 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14264
14265 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
14266 extra_gcc_objs.
14267 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
14268 (msp430_select_cpu): New spec function.
14269 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
14270 MCU data.
14271 * config/msp430/msp430-devices.c: New file.
14272 * config/msp430/msp430-devices.h: New file.
14273 * config/msp430/msp430.c: Remove msp430_mcu_data.
14274 (msp430_option_override): Use msp430_extract_mcu_data to extract
14275 MCU data.
14276 (msp430_use_f5_series_hwmult): Likewise.
14277 (use_32bit_hwmult): Likewise.
14278 (msp430_no_hwmult): Likewise.
14279 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
14280 assembler.
14281 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
14282 and -mcpu option.
14283 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
14284 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
14285 Remove hard-coded MCU multilib data.
14286
14287 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14288
14289 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
14290 based on the mode instead of testing properties of it.
14291
14292 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14293
14294 * doc/md.texi: Document the x and y constraints for AArch64.
14295 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
14296 (FP_LO8_REGS): New reg_class.
14297 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
14298 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
14299 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
14300 * config/aarch64/predicates.md (aarch64_simd_register): Use
14301 FP_REGNUM_P instead of checking the classes manually.
14302 * config/aarch64/constraints.md (y): New constraint.
14303
14304 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14305
14306 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
14307 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
14308 * config/aarch64/aarch64-simd.md
14309 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
14310 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
14311 from the asm template.
14312 * config/aarch64/aarch64-sve.md
14313 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
14314 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
14315 from the asm template.
14316 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
14317 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
14318 from the asm template.
14319 * config/aarch64/aarch64-simd-builtins.def: Update comment.
14320
14321 2019-08-13 Martin Liska <mliska@suse.cz>
14322
14323 * value-prof.c (gimple_ic_transform): Add new line.
14324 Print details with MSG_NOTE.
14325
14326 2019-08-13 Martin Liska <mliska@suse.cz>
14327
14328 * doc/invoke.texi: Document automatic detection of jobserver.
14329 * lto-wrapper.c (run_gcc): Detect jobserver always.
14330
14331 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14332
14333 * config/i386/i386-expand.c (ix86_expand_vector_set)
14334 <case E_V2SImode>: Use vec_merge path for
14335 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14336 <case E_V8QImode>: Ditto.
14337 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
14338 (*mmx_pinsrb): Ditto.
14339
14340 2019-08-12 Jakub Jelinek <jakub@redhat.com>
14341
14342 PR target/83250
14343 PR target/91340
14344 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
14345 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
14346 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
14347 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
14348 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
14349
14350 2019-08-12 Richard Biener <rguenther@suse.de>
14351
14352 PR lto/91375
14353 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
14354 flag_devirtualize.
14355
14356 2019-08-12 Richard Biener <rguenther@suse.de>
14357
14358 PR driver/91130
14359 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
14360 lang_mask option, always use CL_DRIVER.
14361 (get_options_from_collect_gcc_options): Adjust.
14362 (find_and_merge_options): Likewise.
14363 (run_gcc): Likewise.
14364
14365 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14366
14367 * ipa-predicate.c (add_condition): Restore inverted test.
14368
14369 2019-08-10 Jakub Jelinek <jakub@redhat.com>
14370
14371 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
14372 (enum omp_clause_device_type_kind): New enum.
14373 (struct tree_omp_clause): Add subcode.device_type_kind.
14374 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
14375 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14376 for device_type clause.
14377 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
14378 * tree-pretty-print.c (dump_omp_clause): Likewise.
14379
14380 PR target/91408
14381 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
14382 vector_operand.
14383
14384 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
14385
14386 * reload1.c (finish_spills): Do not check ira_conflicts_p when
14387 handling spilled pseudos.
14388
14389 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14390
14391 PR target/91386
14392 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
14393 to preserve the contents of the original insns.
14394
14395 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
14396
14397 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
14398 (addsi3_compare_op2): Likewise.
14399
14400 2019-08-09 Martin Liska <mliska@suse.cz>
14401
14402 * alias.c (alias_ptr_types_compatible_p): Strengten
14403 type comparison in LTO mode.
14404
14405 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
14406
14407 PR middle-end/90313
14408 * tree-tailcall.c (find_tail_calls): Reject calls that might
14409 read from an escaped RESULT_DECL.
14410
14411 2019-08-09 Martin Liska <mliska@suse.cz>
14412
14413 * doc/invoke.texi: Document the option value.
14414 * lto-wrapper.c (run_gcc): Set auto_parallel
14415 only with -flto=auto.
14416
14417 2019-08-09 Martin Liska <mliska@suse.cz>
14418
14419 * opts.c (common_handle_option): Error for an invalid argument
14420 to -flto=.
14421
14422 2019-08-09 Martin Liska <mliska@suse.cz>
14423
14424 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
14425 use dump_printf to report optimization.
14426 (sem_variable::merge): Likwise.
14427 (sem_item_optimizer::merge_classes): Use dump_printf to report
14428 ICF hits.
14429
14430 2019-08-09 Martin Liska <mliska@suse.cz>
14431
14432 * value-prof.c (gimple_divmod_fixed_value_transform):
14433 Use dump_printf_loc.
14434 (gimple_mod_pow2_value_transform): Likewise.
14435 (gimple_mod_subtract_transform): Likewise.
14436 (init_node_map): Likewise.
14437 (gimple_ic_transform): Likewise.
14438 (gimple_stringops_transform): Likewise.
14439
14440 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
14441
14442 * doc/extend.texi: Add const qualifier to ld intrinsics.
14443
14444 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14445
14446 * config/rs6000/dfp.md (D64_D128): Rename to ...
14447 (DDTD): ... this, throughout.
14448 (dfp_suffix): Rename to ...
14449 (q): ... this, throughout.
14450
14451 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
14452
14453 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
14454 (dfp_suffix): Ditto.
14455 (adddd3, addtd3): Merge to ...
14456 (add<mode>3 for D64_D128): ... this.
14457 (subdd3, subtd3): Merge to ...
14458 (sub<mode>3 for D64_D128): ... this.
14459 (muldd3, multd3): Merge to ...
14460 (mul<mode>3 for D64_D128): ... this.
14461 (divdd3, divtd3): Merge to ...
14462 (div<mode>3 for D64_D128): ... this.
14463 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
14464 (*cmp<mode>_internal1 for D64_D128): ... this.
14465 (ftruncdd2, ftrunctd2): Merge to ...
14466 (ftrunc<mode>2 for D64_D128): ... this.
14467 (fixdddi2, fixtddi2): Merge to ...
14468 (fix<mode>di2 for D64_D128): ... this.
14469
14470 2019-08-08 Jim Wilson <jimw@sifive.com>
14471
14472 PR target/91229
14473 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
14474 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
14475 Pass into recursive call.
14476 (riscv_flatten_aggregate_argument): New arg. Pass to
14477 riscv_flatten_aggregate_field.
14478 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
14479 riscv_flatten_aggregate_argument twice, with false and true as last
14480 arg. Process result twice. Compare results and warn if different.
14481 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
14482
14483 2019-08-08 Martin Liska <mliska@suse.cz>
14484
14485 PR bootstrap/91352
14486 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
14487 * lto-wrapper.c (jobserver_active_p): Likewise.
14488
14489 2019-08-08 Martin Liska <mliska@suse.cz>
14490
14491 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
14492 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
14493 (create_version_clone_with_body): Likewise.
14494
14495 2019-08-08 Jakub Jelinek <jakub@redhat.com>
14496
14497 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
14498 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
14499 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
14500 GOVD_EXPLICIT flags.
14501 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
14502 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
14503 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
14504 call install_var_field with mask 11 instead of 3.
14505 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
14506 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
14507
14508 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14509
14510 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
14511 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
14512
14513 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14514
14515 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
14516 MOVPRFX alternatives. Make the GPR alternatives more expensive
14517 than the FPR ones.
14518
14519 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14520
14521 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
14522 Disparage the GPR alternative relative to the FPR one.
14523 Fix handling of 8-bit and 16-bit FPR values.
14524
14525 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14526
14527 * config/aarch64/iterators.md (BITWISEV): Delete.
14528 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
14529 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
14530 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14531 UNSPEC_FMINNMV, UNSPEC_FMINV.
14532 (bit_reduc_op): Delete.
14533 (sve_int_op): New int attribute.
14534 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
14535 UNSPEC_FMINNMV, UNSPEC_FMINV.
14536 * config/aarch64/aarch64-sve.md
14537 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14538 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
14539 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
14540 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
14541 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
14542 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
14543 new patterns.
14544 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
14545 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
14546 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
14547 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
14548 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
14549 new patterns.
14550
14551 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14552
14553 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
14554 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
14555 (fms<mode>4, *fms<mode>4): Replace with...
14556 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14557 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
14558 Use unspecs instead of rtx codes.
14559 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
14560 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
14561
14562 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14563
14564 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
14565 int iterator.
14566 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
14567 * config/aarch64/aarch64-sve.md
14568 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
14569 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
14570 use a single unspec for the rhs.
14571 (*<su><maxmin><mode>3): Delete.
14572 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
14573
14574 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14575
14576 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
14577 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
14578 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
14579 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
14580 (optab, sve_fp_op): Handle them.
14581 (SVE_FP_UNARY): Delete.
14582 (optab): Remove sqrt entry.
14583 (sve_fp_op): Remove neg, abs and sqrt entries.
14584 (SVE_COND_FP_UNARY): New int iterator.
14585 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
14586 (*<frint_pattern><mode>2): Delete.
14587 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14588 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14589 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
14590 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
14591
14592 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14593
14594 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
14595
14596 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14597
14598 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
14599 (UNSPEC_COND_FADD): ...this.
14600 (UNSPEC_COND_SUB): Rename to...
14601 (UNSPEC_COND_FSUB): ...this.
14602 (UNSPEC_COND_MUL): Rename to...
14603 (UNSPEC_COND_FMUL): ...this.
14604 (UNSPEC_COND_DIV): Rename to...
14605 (UNSPEC_COND_FDIV): ...this.
14606 (UNSPEC_COND_MAX): Rename to...
14607 (UNSPEC_COND_FMAXNM): ...this.
14608 (UNSPEC_COND_MIN): Rename to...
14609 (UNSPEC_COND_FMINNM): ...this.
14610 (UNSPEC_COND_LT): Rename to...
14611 (UNSPEC_COND_FCMLT): ...this.
14612 (UNSPEC_COND_LE): Rename to...
14613 (UNSPEC_COND_FCMLE): ...this.
14614 (UNSPEC_COND_EQ): Rename to...
14615 (UNSPEC_COND_FCMEQ): ...this.
14616 (UNSPEC_COND_NE): Rename to...
14617 (UNSPEC_COND_FCMNE): ...this.
14618 (UNSPEC_COND_GE): Rename to...
14619 (UNSPEC_COND_FCMGE): ...this.
14620 (UNSPEC_COND_GT): Rename to...
14621 (UNSPEC_COND_FCMGT): ...this.
14622 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
14623 (sve_fp_op_rev): Update accordingly.
14624 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
14625
14626 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14627
14628 * config/aarch64/aarch64-sve.md: Reorganize contents and add
14629 banner comments.
14630 * config/aarch64/check-sve-md.awk: New file.
14631 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
14632 (insn-conditions.md): Depend on it.
14633
14634 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
14635
14636 PR target/91385
14637 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
14638 (*negsi2_cmpz_zext): Ditto.
14639
14640 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14641
14642 * config/aarch64/iterators.md (commutative): Remove.
14643
14644 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
14645
14646 PR driver/91130
14647 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
14648 processing COLLECT_GCC_OPTIONS.
14649 (run_gcc): Likewise.
14650
14651 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
14652
14653 PR tree-optimization/91109
14654 * lra-remat.c (update_scratch_ops): Remove assignment of the
14655 hard register.
14656
14657 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
14658
14659 * data-streamer.h (streamer_write_poly_uint64): Declare.
14660 (streamer_read_poly_uint64): Likewise.
14661 * data-streamer-in.c (streamer_read_poly_uint64): New function.
14662 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
14663 * ipa-predicate.h (condition::size): Turn into a poly_int64.
14664 (add_condition): Take a poly_int64 size.
14665 * ipa-predicate.c (add_condition): Likewise.
14666 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
14667 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
14668 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
14669 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
14670 condition::size as a poly_int64.
14671 (unmodified_parm_1): Take a poly_int64 size pointer.
14672 (unmodified_parm): Likewise.
14673 (unmodified_parm_or_parm_agg_item): Likewise.
14674 (set_cond_stmt_execution_predicate): Update accordingly.
14675 (set_switch_stmt_execution_predicate): Likewise.
14676 (will_be_nonconstant_expr_predicate): Likewise.
14677 (will_be_nonconstant_predicate): Likewise.
14678 (inline_read_section): Stream condition::size as a poly_int.
14679 (ipa_fn_summary_write): Likewise.
14680
14681 2019-08-07 Martin Liska <mliska@suse.cz>
14682
14683 * fold-const.c (twoval_comparison_p): Replace int
14684 with bool as a return type.
14685 (simple_operand_p): Likewise.
14686 (operand_equal_p): Replace int with bool as a return type.
14687 * fold-const.h (operand_equal_p): Likewise.
14688
14689 2019-08-07 Jakub Jelinek <jakub@redhat.com>
14690
14691 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
14692 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
14693 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
14694 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
14695 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
14696 * tree-pretty-print.c (dump_omp_clause): Likewise.
14697 * tree-nested.c (convert_nonlocal_omp_clauses,
14698 convert_local_omp_clauses): Likewise.
14699 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
14700 Likewise.
14701 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
14702 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
14703 clause with array or reference to array types, no matter what type
14704 except for reference it has.
14705
14706 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
14707
14708 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
14709
14710 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
14711
14712 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
14713 (arch_canonicalize): Support rv32g and rv64g and fix error
14714 handling.
14715
14716 2019-08-06 Martin Liska <mliska@suse.cz>
14717
14718 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
14719 and DECL_IS_OPERATOR_DELETE_P.
14720
14721 2019-08-06 Jakub Jelinek <jakub@redhat.com>
14722
14723 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
14724 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
14725 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
14726 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
14727 (gimplify_omp_for): Don't do C++ random access iterator clause
14728 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
14729 don't predetermine the artificial iterator in case of C++ random
14730 access iterators as lastprivate, but private. For OMP_LOOP, force
14731 bind expr around simd body and force for_pre_body before the
14732 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
14733 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
14734 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
14735 diff var of C++ random access iterators. Handle
14736 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
14737 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
14738 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
14739 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
14740 * omp-low.c (lower_rec_input_clauses): For
14741 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
14742 variables instead of default constructing them.
14743 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
14744 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
14745 is_taskloop_ctx check from the assert to the guarding condition.
14746
14747 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
14748
14749 * config/riscv/multilib-generator: (canonical_order): New.
14750 (arch_canonicalize): Dito.
14751 Apply arch_canonicalize for alts.
14752
14753 2019-08-05 Martin Sebor <msebor@redhat.com>
14754
14755 * doc/extend.texi (Common Variable Attributes): Document alias
14756 attribute.
14757
14758 2019-08-05 Marek Polacek <polacek@redhat.com>
14759
14760 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
14761 * doc/invoke.texi: Document -Wcomma-subscript.
14762
14763 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14764
14765 * tree-core.h (tree_function_decl): Make function_code an
14766 independent field. Group the remaining bitfields into bytes
14767 and move decl_type so that it contines to be at a byte boundary.
14768 Leave 12 bits for future expansion.
14769
14770 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14771
14772 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
14773 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
14774 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
14775 IFN_MASK_STORE.
14776
14777 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
14778
14779 * gimple.h (gimple_move_vops): Declare.
14780 * gimple.c (gimple_move_vops): New function
14781 * gimple-fold.c (replace_call_with_call_and_fold)
14782 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
14783 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
14784 (gimple_fold_call): Use it.
14785 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
14786 * tree-call-cdce.c (use_internal_fn): Likewise.
14787 * tree-if-conv.c (predicate_load_or_store): Likewise.
14788 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
14789 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
14790 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
14791 (update_call_from_tree): Likewise.
14792 * tree-vect-stmts.c (vectorizable_load): Likewise.
14793 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
14794
14795 2019-08-05 Martin Liska <mliska@suse.cz>
14796
14797 PR c++/91334
14798 * tree-ssa-dce.c (propagate_necessity): Handle new operators
14799 with not arguments.
14800 (eliminate_unnecessary_stmts): Likewise.
14801
14802 2019-08-05 Richard Biener <rguenther@suse.de>
14803
14804 PR middle-end/91169
14805 * fold-const.c (get_array_ctor_element_at_index): Create
14806 offset_ints according to the sign of the index type and treat
14807 that as signed if it is obviously so.
14808
14809 2019-08-05 Jakub Jelinek <jakub@redhat.com>
14810
14811 PR target/91341
14812 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
14813 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
14814 _mm256_storeu2_m128i): New function.
14815
14816 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
14817
14818 * config/riscv/riscv.c (riscv_promote_function_mode): New.
14819 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
14820
14821 2019-08-05 Alan Modra <amodra@gmail.com>
14822
14823 PR target/91349
14824 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
14825 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
14826
14827 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
14828
14829 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
14830 bug that was fixed in Tcl 8.6.1.
14831
14832 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
14833
14834 * config/rs6000/future.md: New file.
14835 * config/rs6000/rs6000.md: Include future.md.
14836 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
14837
14838 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
14839
14840 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
14841 check to use targetm.slow_unaligned_access instead.
14842
14843 * function.c (assign_param_data_one): Remove unused data members.
14844
14845 2019-08-02 Steve Ellcey <sellcey@marvell.com>
14846
14847 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
14848 build_distinct_type_copy.
14849 (simd_clone_adjust_argument_types): Ditto.
14850 (simd_clone_adjust): Call build_distinct_type_copy here.
14851 (expand_simd_clones): Ditto.
14852
14853 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14854
14855 PR target/91201
14856 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
14857
14858 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
14859
14860 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
14861 from 'const void *'.
14862 (sort_locs_in_loop_postorder_cmp): Likewise.
14863
14864 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
14865
14866 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
14867 (hot-bb-count-ws-permille): Likewise.
14868 (hot-bb-frequency-fraction): Likewise.
14869 (unlikely-bb-count-fraction): Likewise.
14870 * params.def (hot-bb-count-fraction): Rework description.
14871 (hot-bb-count-ws-permille): Likewise.
14872 (hot-bb-frequency-fraction): Likewise.
14873 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
14874 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
14875
14876 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
14877
14878 PR target/91323
14879 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
14880 Return false.
14881
14882 2019-08-02 Richard Biener <rguenther@suse.de>
14883
14884 * vec.h (vec::sort): Add gcc_qsort_r support.
14885 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
14886 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
14887 to gcc_qsort_r style callback.
14888 (sort_locs_in_loop_postorder_cmp): Likewise.
14889 (analyze_memory_references): Use gcc_sort_r interfaces.
14890 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
14891
14892 2019-08-02 Martin Liska <mliska@suse.cz>
14893
14894 PR lto/91313
14895 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
14896 to detect working job server.
14897 (driver::detect_jobserver): Test whether jobserver
14898 is active from GCC driver. That will prevent situation where
14899 GCC is invoked from a LD plugin and the linker already uses
14900 file descriptors suggested by make. That leads to a wrong
14901 detection.
14902 * gcc.h (driver): Add detect_jobserver.
14903 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
14904 not scanning for --jobserver-auth prefix.
14905
14906 2019-08-02 Jakub Jelinek <jakub@redhat.com>
14907
14908 PR tree-optimization/91201
14909 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
14910 V16QImode extraction without sse4.1 try to use V4SImode lowpart
14911 extraction.
14912
14913 2019-08-01 Martin Sebor <msebor@redhat.com>
14914
14915 PR c++/90947
14916 * tree.c (type_initializer_zero_p): Define.
14917 * tree.h (type_initializer_zero_p): New function.
14918
14919 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14920
14921 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
14922
14923 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
14924
14925 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
14926 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
14927 * predict.c (maybe_hot_count_p): Likewise.
14928 (maybe_hot_bb_p): Tweak comment.
14929 (maybe_hot_edge_p): Likewise.
14930 (probably_never_executed): Likewise. Minor tweak.
14931 (probably_never_executed_bb_p): Likewise.
14932 (unlikely_executed_edge_p): Likewise.
14933 (probably_never_executed_edge_p): Likewise.
14934 (optimize_function_for_size_p): Likewise.
14935 (optimize_function_for_speed_p): Likewise.
14936 (function_optimization_type): Likewise.
14937 (optimize_bb_for_size_p): Likewise.
14938 (optimize_bb_for_speed_p): Likewise.
14939 (bb_optimization_type): Likewise.
14940 (optimize_edge_for_size_p): Likewise.
14941 (optimize_edge_for_speed_p): Likewise.
14942 (optimize_insn_for_size_p): Likewise.
14943 (optimize_insn_for_speed_p): Likewise.
14944 (optimize_loop_for_size_p): Likewise.
14945 (optimize_loop_for_speed_p): Likewise.
14946 (optimize_loop_nest_for_speed_p): Likewise.
14947 (optimize_loop_nest_for_size_p): Likewise.
14948 (predictable_edge_p): Likewise.
14949 (handle_missing_profiles): Minor tweak.
14950
14951 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
14952
14953 * config/rs6000/predicates.md (pcrel_external_address): Update
14954 comment.
14955
14956 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14957
14958 PR target/85693
14959 * config/i386/mmx.md (usadv8qi): New expander.
14960
14961 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
14962
14963 PR c++/90590
14964 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
14965 with reserved names that are in a system header.
14966
14967 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
14968
14969 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
14970 (*vec_extractv2si_0_zext_sse4): New insn pattern.
14971 (*vec_extractv2si_0_zext): Ditto.
14972 (*vec_extractv2si_1): Add (rm,x) alternative.
14973 (*vec_extractv2si_1_zext): New insn pattern.
14974 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
14975 insn constraint.
14976
14977 2019-08-01 Richard Biener <rguenther@suse.de>
14978
14979 * domwalk.c (bb_postorder): Remove static variable.
14980 (cmp_bb_postorder): Adjust.
14981 (sort_bbs_postorder): Adjust and use gcc_sort_r.
14982 (dom_walker::walk): Adjust.
14983
14984 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
14985
14986 * sort.cc (sort_r_ctx): New struct.
14987 (reorder23): Make templated on context type.
14988 (reorder45): Ditto.
14989 (cmp1): Ditto. Adjust signature.
14990 (netsort): Ditto.
14991 (mergesort): Ditto.
14992 [CHECKING_P] (cmp2to3): New static function. Use it...
14993 (gcc_qsort) [CHECKING_P]: ...here.
14994 (gcc_sort_r): New function.
14995 * system.h (sort_r_cmp_fn): New function typedef.
14996 (qsort_chk): Adjust signature.
14997 (gcc_sort_r): Declare.
14998 * vec.c (qsort_chk_error): Adjust.
14999 (qsort_chk): Adjust.
15000
15001 2019-08-01 Richard Biener <rguenther@suse.de>
15002
15003 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15004 (compute_antic): Localize it here.
15005
15006 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15007
15008 * common/config/riscv/riscv-common.c: Check -march string ends
15009 with null.
15010
15011 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15012
15013 * ipa-devirt.c (type_warning_cmp): Make static.
15014 (decl_warning_cmp): Ditto.
15015
15016 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
15017
15018 PR target/91050
15019 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
15020 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
15021 use of deleted rs6000_dejagnu_cpu_index variable.
15022 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
15023 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15024 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
15025 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
15026 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
15027 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15028
15029 2019-07-31 Richard Biener <rguenther@suse.de>
15030
15031 PR tree-optimization/91280
15032 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15033 Decompose MEM_REF manually for offset handling.
15034
15035 2019-07-31 Richard Biener <rguenther@suse.de>
15036
15037 PR tree-optimization/91293
15038 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
15039 of reduction stmts.
15040
15041 2019-07-31 Matt Thomas <matt@3am-software.com>
15042 Nick Hudson <nick@nthcliff.demon.co.uk>
15043 Matthew Green <mrg@eterna.com.au>
15044 Maya Rashish <coypu@sdf.org>
15045
15046 * config.gcc (hppa*-*-netbsd*): New target.
15047 * config/pa/pa-netbsd.h: New file.
15048 * config/pa/pa32-netbsd.h: New file.
15049
15050 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15051
15052 PR tree-optimization/91201
15053 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
15054
15055 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
15056
15057 * config/gcn/gcn-valu.md
15058 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
15059 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
15060 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
15061 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
15062 struct ilist. Add nops for delayeduse insns.
15063 * config/gcn/gcn.md (delayeduse): New attribute.
15064 (*movbi): Remove s_waitcnt from stores.
15065 (*mov<mode>_insn): Likewise.
15066 (*movti_insn): Likewise. Add delayeduse attribute.
15067 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
15068 (atomic_store<mode>): Remove or adjust s_waitcnt.
15069
15070 2019-07-31 Richard Biener <rguenther@suse.de>
15071
15072 * vr-values.h (vr_values::swap_vr_value): New.
15073 (vr_values::free_value_range): likewise.
15074 * vr-values.c (vr_values::swap_vr_value): Implement.
15075 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
15076 Do not return a range or take a var.
15077 (evrp_range_analyzer::stack): Change back to recording a non-const
15078 value_range *.
15079 * gimple-ssa-evrp-analyze.c
15080 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
15081 value-range.
15082 (evrp_range_analyzer::pop_to_marker): Adjust.
15083 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
15084 (evrp_range_analyzer::pop_value_range): Likewise. Free the
15085 no longer needed value-range.
15086
15087 2019-07-31 Martin Liska <mliska@suse.cz>
15088
15089 * tree-ssa-dce.c (propagate_necessity): Delete operator can
15090 have size and (or) alignment as 2nd and later arguments.
15091 Mark all of them as necessary.
15092
15093 2019-07-31 Richard Biener <rguenther@suse.de>
15094
15095 PR tree-optimization/91178
15096 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15097 Use tail-recursion.
15098
15099 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15100
15101 PR tree-optimization/91201
15102 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
15103 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
15104 TARGET_AVX512F.
15105 (reduc_plus_scal_<mode>): Improve formatting by introducing
15106 a temporary.
15107
15108 2019-07-31 Sudakshina Das <sudi.das@arm.com>
15109
15110 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
15111 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
15112 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
15113 (aarch64_init_tme_builtins): New.
15114 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
15115 (aarch64_expand_builtin_tme): New.
15116 (aarch64_expand_builtin): Handle TME builtins.
15117 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15118 __ARM_FEATURE_TME when enabled.
15119 * config/aarch64/aarch64-option-extensions.def: Add "tme".
15120 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
15121 (TARGET_TME): New.
15122 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
15123 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
15124 UNSPECV_TCANCEL.
15125 (tstart, ttest, tcommit, tcancel): New instructions.
15126 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
15127 (__tcancel, __ttest): New.
15128 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
15129 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
15130 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
15131 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
15132 * config/arm/types.md: Add new tme type attr.
15133 * doc/invoke.texi: Document "tme".
15134
15135 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
15136
15137 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
15138 warn_unused_result attribute.
15139 (cmse_check_address_range): Add warn_unused_result attribute.
15140
15141 2019-07-31 Richard Biener <rguenther@suse.de>
15142
15143 PR tree-optimization/91257
15144 * tree-vrp.c (union_ranges): Unify equality and less tests
15145 by using compare_values. Re-order cheap tests first.
15146
15147 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15148
15149 PR middle-end/91301
15150 * gimplify.c (gimplify_omp_for): If for class iterator on
15151 distribute parallel for there is no data sharing clause
15152 on inner_for_stmt, look for private clause on combined
15153 parallel too and if found, move it to inner_for_stmt.
15154
15155 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
15156
15157 * lra-int.h (lra_operand_data): Remove early_clobber field.
15158 (lra_insn_reg): Likewise.
15159 * lra.c (debug_operand_data): Update accordingly.
15160 (setup_operand_alternative): Likewise.
15161 (new_insn_reg): Likewise. Remove early_clobber parameter.
15162 (collect_non_operand_hard_regs): Update call accordingly.
15163 Don't assign to lra_insn_reg::early_clobber.
15164 (add_regs_to_insn_regno_info): Remove early_clobber parameter
15165 and update calls to new_insn_reg.
15166 (lra_update_insn_regno_info): Update calls accordingly.
15167 * lra-constraints.c (update_and_check_small_class_inputs): Take the
15168 alternative number as a parameter and test whether the operand
15169 is earlyclobbered in that particular alternative.
15170 (process_alt_operands): Update call accordingly. Use per-alternative
15171 checks for earyclobber here too.
15172 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
15173 against zero for IRA_UNKNOWN_ALT.
15174
15175 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15176
15177 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
15178
15179 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
15180
15181 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
15182 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15183
15184 2019-07-30 Martin Liska <mliska@suse.cz>
15185
15186 PR ipa/89330
15187 * cgraph.c (cgraph_edge::make_direct): Use
15188 edge->indirect_unknown_callee as edge->resolve_speculation can
15189 deallocate edge which is this pointer.
15190
15191 2019-07-30 Richard Biener <rguenther@suse.de>
15192
15193 PR tree-optimization/91257
15194 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15195
15196 2019-07-30 Martin Liska <mliska@suse.cz>
15197
15198 * doc/invoke.texi: Document new behavior.
15199 * lto-wrapper.c (cpuset_popcount): New function
15200 is a copy of libgomp/config/linux/proc.c.
15201 (init_num_threads): Likewise.
15202 (run_gcc): Automatically detect core count for -flto.
15203 (jobserver_active_p): New function.
15204
15205 2019-07-30 Richard Biener <rguenther@suse.de>
15206
15207 PR tree-optimization/91257
15208 * bitmap.h (bitmap_ior_into_and_free): Declare.
15209 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15210 whether to add the unliked element to the freelist.
15211 (bitmap_list_insert_element_after): Add defaulted param for
15212 an already allocated element.
15213 (bitmap_ior_into_and_free): New function.
15214 * tree-ssa-structalias.c (condense_visit): Reduce the
15215 ponts-to and edge bitmaps of the SCC members in a
15216 logarithmic fashion rather than all to one.
15217
15218 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15219
15220 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15221 parameter. When nonnull, make sure that the addition or subtraction
15222 has the same condition.
15223 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15224 for CFN_COND_MUL too.
15225
15226 2019-07-30 Richard Biener <rguenther@suse.de>
15227
15228 PR tree-optimization/91291
15229 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
15230 constant values.
15231
15232 2019-07-30 Jakub Jelinek <jakub@redhat.com>
15233
15234 PR middle-end/91216
15235 * omp-low.c (global_nonaddressable_vars): New variable.
15236 (use_pointer_for_field): For global decls, if they are non-addressable,
15237 remember it in the global_nonaddressable_vars bitmap, if they are
15238 addressable and in the global_nonaddressable_vars bitmap, ignore their
15239 TREE_ADDRESSABLE bit.
15240 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
15241 vars in global_nonaddressable_vars bitmap.
15242 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
15243
15244 PR target/91150
15245 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
15246 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
15247 comparison to unsigned HOST_WIDE_INT before shifting it left.
15248
15249 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15250
15251 * config/i386/i386.md (movstrict<mode>): Use register_operand
15252 predicate for operand 0. Add expander condition. Assert that
15253 operand 0 is a SUBREG RTX.
15254 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
15255 Update operand constraints and insn condition.
15256 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
15257 (zero_extendqihi2_and): Do not call gen_movstrictqi.
15258 (*setcc_qi_slp): Use register_operand predicate for operand 0.
15259 Update operand 0 constraints.
15260 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
15261
15262 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15263
15264 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
15265 when -m{code,data}-region are used without -mlarge.
15266 * config/msp430/msp430.c (msp430_option_override): Error when a
15267 non-default code or data region is used without -mlarge.
15268 (msp430_section_attr): Emit a warning and do not add upper/lower/either
15269 attributes when they are used without -mlarge.
15270
15271 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15272
15273 PR target/70320
15274 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
15275
15276 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15277
15278 PR middle-end/91242
15279 * wide-int.h (generic_wide_int::sext_elt): New function.
15280 * inchash.h (hash::add_wide_int): Use it instead of elt.
15281
15282 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15283
15284 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
15285 CODE_FOR_arm_##.
15286 * config/arm/arm.md (<crc_variant>): Rename to...
15287 (arm_<crc_variant>): ... This.
15288 (<cdp>): Rename to...
15289 (arm_<cdp>): ... This.
15290 (<ldc>): Rename to...
15291 (arm_<ldc>): ... This.
15292 (<stc>): Rename to...
15293 (arm_<stc>): ... This.
15294 (<mcr>): Rename to...
15295 (arm_<mcr>): ... This.
15296 (<mrc>): Rename to...
15297 (arm_<mrc>): ... This.
15298 (<mcrr>): Rename to...
15299 (arm_<mcrr>): ... This.
15300 (<mrrc>): Rename to...
15301 (arm_<mrrc>): ... This.
15302
15303 2019-07-29 Richard Biener <rguenther@suse.de>
15304
15305 PR tree-optimization/91257
15306 * tree-ssa-sccvn.h (struct vn_avail): New.
15307 (struct vn_ssa_aux): Add avail member.
15308 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
15309 member, add m_avail_freelist one.
15310 (rpo_elim::~rpo_elim): Remove.
15311 (rpo_elim::eliminate_avail): Adjust to new avail tracking
15312 data structure.
15313 (rpo_elim::eliminate_push_avail): Likewise.
15314 (do_unwind): Likewise.
15315 (do_rpo_vn): Likewise.
15316
15317 2019-07-29 Richard Biener <rguenther@suse.de>
15318
15319 PR tree-optimization/91257
15320 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
15321 most cases, instead call compare_values which handles the
15322 symbolic ranges we handle specially.
15323 (compare_values_warnv): Do not call operand_less_p but open-code
15324 the effective fold calls. Avoid converting so much.
15325
15326 2019-07-29 Martin Liska <mliska@suse.cz>
15327
15328 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
15329 remove LHS of operator new call. It's handled latter.
15330
15331 2019-07-29 Richard Biener <rguenther@suse.de>
15332
15333 PR tree-optimization/91267
15334 * vr-values.c (vr_values::update_value_range): Add early return
15335 for effectively VARYING lattice entry.
15336
15337 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15338
15339 PR debug/86638
15340 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
15341 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
15342 necessary if keep_all_vdefs_p is true.
15343 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
15344 that keep_all_vdefs_p is false.
15345 (mark_all_reaching_defs_necessary): Likewise.
15346 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
15347
15348 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15349
15350 * common.opt (Og): Change the initial value of flag_dse to 0.
15351 * opts.c (default_options_table): Move OPT_ftree_dse from
15352 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
15353 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
15354 entry before the OPT_ftree_sra entry.
15355 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
15356 of flags disabled by Og.
15357
15358 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15359
15360 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
15361 variables for -Og.
15362
15363 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15364
15365 * doc/sourcebuild.texi (check-function-bodies): Document.
15366
15367 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15368
15369 * simplify-rtx.c (simplify_const_unary_operation): Fold a
15370 VEC_DUPLICATE of a fixed-length vector even if the result
15371 is variable-length. Likewise fold a duplicate of a
15372 variable-length vector if the variable-length vector is
15373 itself a duplicate of a fixed-length sequence.
15374 (test_vector_ops_duplicate): Test more cases.
15375
15376 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
15377
15378 * vector-builder.h (vector_builder): Add a shape template parameter.
15379 (vector_builder::new_unary_operation): New function, generalizing
15380 the old tree_vector_builder function.
15381 (vector_builder::new_binary_operation): Likewise.
15382 (vector_builder::binary_encoded_nelts): Likewise.
15383 * int-vector-builder.h (int_vector_builder): Update template
15384 parameters to vector_builder.
15385 (int_vector_builder::shape_nelts): New function.
15386 * rtx-vector-builder.h (rtx_vector_builder): Update template
15387 parameters to vector_builder.
15388 (rtx_vector_builder::shape_nelts): New function.
15389 (rtx_vector_builder::nelts_of): Likewise.
15390 (rtx_vector_builder::npatterns_of): Likewise.
15391 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
15392 * tree-vector-builder.h (tree_vector_builder): Update template
15393 parameters to vector_builder.
15394 (tree_vector_builder::shape_nelts): New function.
15395 (tree_vector_builder::nelts_of): Likewise.
15396 (tree_vector_builder::npatterns_of): Likewise.
15397 (tree_vector_builder::nelts_per_pattern_of): Likewise.
15398 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
15399 (tree_vector_builder::new_binary_operation): Delete.
15400 (tree_vector_builder::binary_encoded_nelts): Likewise.
15401 * simplify-rtx.c: Include rtx-vector-builder.h.
15402 (distributes_over_addition_p): New function.
15403 (simplify_const_unary_operation)
15404 (simplify_const_binary_operation): Generalize handling of vector
15405 constants to include variable-length vectors.
15406 (test_vector_ops_series): Add more tests.
15407
15408 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
15409
15410 PR lto/91222
15411 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
15412 than INDENTIFIER_POINTER.
15413
15414 2019-07-28 Martin Liska <mliska@suse.cz>
15415
15416 PR ipa/89330
15417 * cgraph.c (symbol_table::create_edge): Always allocate
15418 a cgraph_edge.
15419 (symbol_table::free_edge): Store summary_id to
15420 edge_released_summary_ids if != -1;
15421 * cgraph.h (NEXT_FREE_NODE): Remove.
15422 (SET_NEXT_FREE_NODE): Likewise.
15423 (NEXT_FREE_EDGE): Likewise.
15424 (symbol_table::release_symbol): Store summary_id to
15425 cgraph_released_summary_ids if != -1;
15426 (symbol_table::allocate_cgraph_symbol): Always allocate
15427 a cgraph_node.
15428
15429 2019-07-28 Alan Modra <amodra@gmail.com>
15430
15431 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
15432 gen_sibcall.
15433
15434 2019-07-28 Alan Modra <amodra@gmail.com>
15435
15436 PR target/91135
15437 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
15438 define.
15439 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
15440 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
15441 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
15442
15443 2019-07-28 Alan Modra <amodra@gmail.com>
15444
15445 PR target/91050
15446 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
15447 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
15448 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
15449 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
15450 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
15451 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
15452 in asm_default spec.
15453 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
15454 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
15455
15456 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
15457
15458 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
15459
15460 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15461
15462 PR target/89517
15463 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
15464 * config/aarch64/aarch64-option-extensions.def: Add new comments
15465 and restore easier to read options.
15466
15467 2019-07-26 Tamar Christina <tamar.christina@arm.com>
15468
15469 * convert.c (convert_to_real_1): Move part of conversion code...
15470 * match.pd: ...To here.
15471
15472 2019-07-26 Martin Jambor <mjambor@suse.cz>
15473
15474 PR ipa/89330
15475 * ipa-inline-transform.c (check_speculations_1): New function.
15476 (push_all_edges_in_set_to_vec): Likewise.
15477 (check_speculations): Use check_speculations_1, new parameter
15478 new_edges.
15479 (inline_call): Pass new_edges to check_speculations.
15480 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
15481 NULL.
15482 (speculation_useful_p): Early return true if edge is inlined, remove
15483 later checks for inline_failed.
15484
15485 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
15486
15487 PR rtl-optimization/91223
15488 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
15489 matching with INOUT operand.
15490
15491 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15492
15493 * stmt.c (expand_case): Try to narrow the index type if it's larger
15494 than a word. Tidy up.
15495
15496 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
15497
15498 * cif-code.def (NEVER_CALL): New code.
15499 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
15500 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
15501
15502 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
15503
15504 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
15505 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15506
15507 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15508
15509 * ipa-devirt.c (add_type_duplicate): Fix return value.
15510
15511 2019-07-25 Richard Biener <rguenther@suse.de>
15512
15513 * tree-vrp.c (extract_range_from_multiplicative_op): Add
15514 type parameter and use it instead of guessing expression
15515 type from the first operand.
15516 (extract_range_from_binary_expr): Pass expr_type down.
15517
15518 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15519
15520 * config/arm/arm.md (SATrev): Change to code attribute.
15521 (*satsi_<SAT:code>): Adjust for the above.
15522 (*satsi_<SAT:code>_shift): Likewise.
15523
15524 2019-07-25 Richard Biener <rguenther@suse.de>
15525
15526 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
15527 Make value_range * temporary const.
15528 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
15529 Likewise.
15530 (evrp_range_analyzer::record_ranges_from_): Likewise.
15531 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
15532 deal with having recorded a const one.
15533 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
15534 Return a const value_range *.
15535 (evrp_range_analyzer::pop_value_range): Likewise.
15536 (evrp_range_analyzer::stack): Record const value_range *s.
15537 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15538 Adjust.
15539 * gimple-ssa-sprintf.c (get_int_range): Likewise.
15540 (format_integer): Likewise.
15541 (sprintf_dom_walker::handle_gimple_call): Likewise.
15542 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
15543 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
15544 (vrp_prop::get_value_range): Adjust.
15545 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
15546 modifying the lattice in-place.
15547 (vrp_prop::visit_stmt): Likewise.
15548 * vr-values.c (vr_values::get_lattice_entry): New private method.
15549 (vr_values::get_value_range): Wrap it and return a const
15550 value_range *.
15551 (vr_values::set_def_to_varying): New.
15552 (vr_values::set_defs_to_varying): Use it.
15553 (vr_values::update_value_range): Likewise.
15554 (vr_values::vrp_stmt_computes_nonzero): Adjust.
15555 (values::op_with_constant_singleton_va): Likewise.
15556 (vr_values::extract_range_for_var_from_co): Likewise.
15557 (vr_values::extract_range_from_ssa_name): Likewise.
15558 (vr_values::extract_range_from_cond_expr): Likewise.
15559 (vr_values::extract_range_basic): Likewise.
15560 (compare_ranges): Take const value_range *, adjust.
15561 (compare_range_with_value): Likewise.
15562 (vrp_valueize): Adjust.
15563 (vrp_valueize_1): Likewise.
15564 (vr_values::get_vr_for_comparison): Return a const value_range *.
15565 (vr_values::compare_name_with_value): Adjust.
15566 (vr_values::compare_names): Likewise.
15567 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
15568 Likewise.
15569 (vr_values::vrp_evaluate_conditional): Likewise.
15570 (find_case_label_ranges): Take a const value_range *.
15571 (vr_values::vrp_visit_switch_stmt): Adjust.
15572 (vr_values::extract_range_from_phi_node): Likewise.
15573 (vr_values::simplify_div_or_mod_using_ran): Likewise.
15574 (vr_values::simplify_abs_using_ranges): Likewise.
15575 (test_for_singularity): Take a const value_range *.
15576 (range_fits_type_p): Likewise.
15577 (vr_values::simplify_cond_using_ranges_1): Adjust.
15578 (vr_values::simplify_cond_using_ranges_2): Likewise.
15579 (vr_values::simplify_switch_using_ranges): Likewise.
15580 (vr_values::simplify_float_conversion_usi): Likewise.
15581 (vr_values::two_valued_val_range_p): Likewise.
15582 * vr-values.h (vr_values::get_value_range): Return a const
15583 value_range *.
15584 (vr_values::set_def_to_varying): New.
15585 (vr_values::get_lattice_entry): New private method.
15586 (vr_values::get_vr_for_comparison): Return a const value_range *.
15587
15588 2019-07-25 Martin Liska <mliska@suse.cz>
15589 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
15590
15591 PR c++/23383
15592 * common.opt: Add -fallocation-dce
15593 * gimple.c (gimple_call_operator_delete_p): New.
15594 * gimple.h (gimple_call_operator_delete_p): Likewise.
15595 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
15596 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
15597 DECL_IS_OPERATOR_DELETE_P.
15598 (mark_all_reaching_defs_necessary_1): Likewise.
15599 (propagate_necessity): Likewise.
15600 (eliminate_unnecessary_stmts): Handle
15601 gimple_call_operator_delete_p.
15602 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
15603 Add packing of OPERATOR_DELETE.
15604 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
15605 Similarly here.
15606 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
15607 (DECL_SET_IS_OPERATOR_DELETE): New.
15608 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
15609
15610 2019-07-25 Martin Liska <mliska@suse.cz>
15611
15612 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
15613 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
15614 * coverage.c (coverage_begin_function): Likewise.
15615 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
15616 * gimple.c (gimple_call_nonnull_result_p): Likewise.
15617 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
15618 (sem_item::hash_referenced_symbol_properties): Likewise.
15619 * lto-streamer-out.c (hash_tree): Likewise.
15620 * predict.c (expr_expected_value_1): Likewise.
15621 * tree-inline.c (expand_call_inline): Likewise.
15622 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
15623 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15624 * tree-core.h (enum function_decl_type): New enum.
15625 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
15626 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
15627 (set_function_decl_type): Likewise.
15628 (DECL_IS_OPERATOR_NEW_P): New.
15629 (DECL_SET_IS_OPERATOR_NEW): Likewise.
15630 (DECL_LAMBDA_FUNCTION): Likewise.
15631 (DECL_LAMBDA_FUNCTION_P): Likewise.
15632 (DECL_IS_OPERATOR_NEW): Remove.
15633 (DECL_SET_LAMBDA_FUNCTION): Likewise.
15634
15635 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
15636
15637 * ipa-profile.c (get_most_common_single_value): Use
15638 get_nth_most_common_value.
15639 * profile.c (sort_hist_value): New function.
15640 (compute_value_histograms): Call sort_hist_value to sort the
15641 values after loading from disk.
15642 * value-prof.c (get_most_common_single_value): Rename to ...
15643 get_nth_most_common_value. Add input params n, return
15644 the n_th value and count.
15645 (gimple_divmod_fixed_value_transform): Use
15646 get_nth_most_common_value.
15647 (gimple_ic_transform): Likewise.
15648 (gimple_stringops_transform): Likewise.
15649 * value-prof.h (get_most_common_single_value): Add input params
15650 n, default to 0.
15651
15652 2019-07-25 Richard Biener <rguenther@suse.de>
15653
15654 PR tree-optimization/91236
15655 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
15656 size of CONSTRUCTOR write. Fix buffer size we pass to
15657 native_encode_expr.
15658
15659 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15660
15661 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
15662 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
15663 r273773.
15664
15665 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15666
15667 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
15668 explicitly disabled with --disable-initfini-array.
15669
15670 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15671
15672 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
15673 if-exists.
15674
15675 2019-07-24 Martin Sebor <msebor@redhat.com>
15676
15677 PR tree-optimization/91183
15678 PR tree-optimization/86688
15679 * builtins.c (compute_objsize): Handle MEM_REF.
15680 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
15681 (get_min_string_length): Remove.
15682 (count_nonzero_bytes): New function.
15683 (handle_char_store): Rename...
15684 (handle_store): to this. Handle multibyte stores via integer types.
15685 (strlen_check_and_optimize_stmt): Adjust conditional and the called
15686 function name.
15687
15688 2019-07-24 Martin Sebor <msebor@redhat.com>
15689
15690 PR driver/80545
15691 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
15692 (diagnostic_report_diagnostic): Same.
15693 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
15694 (diagnostic_context::lang_mask): New data member.
15695 * ipa-pure-const.c (suggest_attribute): Use
15696 lang_hooks.option_lang_mask ().
15697 * opts-common.c (option_enabled): Handle new argument.
15698 (get_option_state): Pass an additional argument.
15699 * opts.c (print_filtered_help): Print supported languages for
15700 unsupported options. Adjust printing of current state.
15701 * opts.h (option_enabled): Add argument.
15702 * toplev.c (print_switch_values): Use lang_mask.
15703 (general_init): Set global_dc->lang_mask.
15704
15705 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15706
15707 PR bootstrap/87030
15708 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
15709
15710 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
15711
15712 * cgraphunit.c (symbol_table::compile): Start and stop
15713 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
15714 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
15715
15716 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
15717
15718 * gimplify.c (flag_instrument_functions_exclude_p): Include
15719 namespace/class information in the printable name.
15720 * opts.c (add_comma_separated_to_vector): Add NUL terminator
15721 to tokens entered into the vector.
15722
15723 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
15724
15725 * tree-nested.c (build_simple_mem_ref_notrap): New function.
15726 (get_static_chain): Call it instead of build_simple_mem_ref.
15727 (get_frame_field): Likewise.
15728 (get_nonlocal_debug_decl): Likewise.
15729 (convert_nonlocal_reference_op): Likewise.
15730
15731 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
15732
15733 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
15734 declaration.
15735 (arc_compute_frame_size): Millicode is disabled when compiling
15736 ISR.
15737 (arc_return_address_register): Likewise.
15738 (arc_compute_function_type): Likewise.
15739 (arc_compute_frame_size): Likewise.
15740 (secondary_reload_info): Likewise.
15741 (arc_get_unalign): Likewise.
15742 (arc_can_use_return_insn): Declare.
15743 * config/arc/arc.c (AUX_LP_START): Define
15744 (AUX_LP_END): Likewise.
15745 (arc_frame_info): Update gmask member to 64-bit datum.
15746 (GMASK_LEN): Update.
15747 (arc_compute_function_type): Make it static, move it forward.
15748 (arc_must_save_register): Update, consider the extra regs.
15749 (arc_compute_millicode_save_restore_regs): Update to use the 64
15750 bit gmask.
15751 (arc_compute_frame_size): Likewise.
15752 (arc_enter_leave_p): Likewise.
15753 (arc_save_callee_saves): Likewise.
15754 (arc_restore_callee_saves): Likewise.
15755 (arc_save_callee_enter): Likewise.
15756 (arc_restore_callee_leave): Likewise.
15757 (arc_save_callee_milli): Likewise.
15758 (arc_restore_callee_milli): Likewise.
15759 (arc_expand_prologue): Add new interrupt handling.
15760 (arc_return_address_register): Make it static, move it forward.
15761 (arc_expand_epilogue): Add new interrupt handling.
15762 (arc_get_unalign): Delete.
15763 (arc_epilogue_uses): Make sure we do not remove the extra
15764 saved/restored registers when interrupt.
15765 (arc_can_use_return_insn): New function.
15766 (push_reg): Likewise.
15767 (pop_reg): Likewise.
15768 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
15769 procedures.
15770 (arc_restore_callee_saves): Likewise, but restoring.
15771 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
15772 (R33_REG): Likewise.
15773 (R34_REG): Likewise.
15774 (R35_REG): Likewise.
15775 (R36_REG): Likewise.
15776 (R37_REG): Likewise.
15777 (R38_REG): Likewise.
15778 (R39_REG): Likewise.
15779 (R45_REG): Likewise.
15780 (R46_REG): Likewise.
15781 (R47_REG): Likewise.
15782 (R48_REG): Likewise.
15783 (R49_REG): Likewise.
15784 (R50_REG): Likewise.
15785 (R51_REG): Likewise.
15786 (R52_REG): Likewise.
15787 (R53_REG): Likewise.
15788 (R54_REG): Likewise.
15789 (R55_REG): Likewise.
15790 (R56_REG): Likewise.
15791 (R58_REG): Likewise.
15792 (type): Add rtie attribute.
15793 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
15794 (movsi_insn): Accept moves to lp_count.
15795 (rtie): Update pattern.
15796 (simple_return): Simplify it, don't use this pattern as a return
15797 from an interrupt.
15798 (arc600_rtie): New pattern.
15799 (p_return_i): Clean up.
15800 (return): Likewise.
15801 * config/arc/builtins.def (rtie): Only available for non ARC6xx
15802 family CPUs.
15803 * config/arc/predicates.md (move_src_operand): Consider lp_count
15804 as a register.
15805
15806 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
15807
15808 * config/s390/predicates.md (addv_const_operand): New predicate.
15809 * config/s390/s390-modes.def (CCO): New condition code mode.
15810 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
15811 (s390_branch_condition_mask): Likewise.
15812 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
15813 ("mulv<mode>4"): New expanders.
15814 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
15815 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
15816 pattern definitions.
15817
15818 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
15819
15820 PR middle-end/91166
15821 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
15822 (define_predicates): Add entry for uniform_vector_p.
15823 (vec_same_elem_p): New match pattern.
15824
15825 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
15826
15827 PR bootstrap/87030
15828 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
15829 * config/i386/darwin32-biarch.h .. to here.
15830 * config/i386/darwin64-biarch.h: Adjust comments.
15831 * config/rs6000/darwin32-biarch.h: Likewise.
15832 * config/rs6000/darwin64-biarch.h: Likewise.
15833 * config.gcc: Missed commit from r273746
15834 (*-*-darwin*): Don't include CPU t-darwin here.
15835 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15836 an error message if i686-darwin configuration is attempted for
15837 Darwin >= 18.
15838
15839 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
15840
15841 PR bootstrap/87030
15842 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
15843 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
15844 an error message if i686-darwin configuration is attempted for
15845 Darwin >= 18.
15846 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
15847 (powerpc-*-darwin*): Use biarch files where needed.
15848 (powerpc64-*-darwin*): Likewise.
15849 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
15850 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15851 arch case.
15852 * config/i386/darwin32-biarch.h: New.
15853 * config/i386/darwin64.h: Rename.
15854 * config/i386/darwin64-biarch.h: To this.
15855 * config/i386/t-darwin: Rename.
15856 * config/i386/t-darwin32-biarch: To this.
15857 * config/i386/t-darwin64: Rename.
15858 * config/i386/t-darwin64-biarch: To this.
15859 * config/rs6000/darwin32-biarch.h: New.
15860 * config/rs6000/darwin64.h: Rename.
15861 * config/rs6000/darwin64-biarch.h: To this.
15862 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
15863 arch case.
15864 * config/rs6000/t-darwin8: Rename.
15865 * config/rs6000/t-darwin32-biarch: To this.
15866 * config/rs6000/t-darwin64 Rename.
15867 * config/rs6000/t-darwin64-biarch: To this.
15868
15869 2019-07-23 Martin Sebor <msebor@redhat.com>
15870
15871 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
15872
15873 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15874
15875 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
15876 (rh): New alias for it.
15877
15878 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
15879
15880 * gdbhooks.py: Pass replace=True to
15881 gdb.printing.register_pretty_printer.
15882
15883 2019-07-23 Richard Biener <rguenther@suse.de>
15884
15885 PR debug/91231
15886 * lto-streamer-in.c (input_function): Drop inline-entry markers
15887 that ended up with an unknown location block.
15888
15889 2019-07-23 Richard Biener <rguenther@suse.de>
15890
15891 PR tree-optimization/83518
15892 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
15893 init from a constant even when partial defs are already recorded.
15894
15895 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15896
15897 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
15898 * config/i386/znver1.md: Enable patterns for znver2 and add store
15899 variants which use extra AGU unit.
15900
15901 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15902
15903 * config/i386/i386-options.c (ix86_option_override_internal): Default
15904 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
15905 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
15906 for ZNVER2.
15907
15908 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
15909
15910 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
15911 (znver2_costs): Update 256 bit SSE costs and multiplication.
15912
15913 2019-07-23 Jan Beulich <jbeulich@suse.com>
15914
15915 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
15916 Require only AVX512F.
15917 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
15918 alternative expanding to vpternlog.
15919
15920 2019-07-23 Martin Liska <mliska@suse.cz>
15921
15922 * dwarf2out.c (gen_producer_string): Canonize -flto=N
15923 to -flto in dwarf producer string.
15924
15925 2019-07-23 Richard Biener <rguenther@suse.de>
15926
15927 * tree-cfg.c (label_for_bb): Remove global var.
15928 (main_block_label): Take label_for_bb as argument.
15929 (cleanup_dead_labels_eh): Likewise, adjust.
15930 (cleanup_dead_labels): Adjust.
15931
15932 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15933
15934 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
15935 Configurations): Add documentation for __builtin_mtfsf.
15936
15937 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
15938
15939 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
15940 * config/riscv/riscv.c (riscv_constant_alignment): Use
15941 riscv_align_data_type.
15942 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
15943 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15944 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
15945 * config/riscv/riscv.opt (malign-data): New.
15946 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
15947
15948 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
15949
15950 * cgraph.c (dump_graphviz): New function.
15951 * cgraph.h (dump_graphviz): New function.
15952 * symtab.c (dump_graphviz): New function.
15953
15954 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
15955
15956 * config/aarch64/aarch64-simd.md
15957 (*aarch64_simd_sra<mode>): New.
15958 * config/aarch64/iterators.md
15959 (SHIFTRT): New iterator.
15960 (sra_op): New attribute.
15961
15962 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15963
15964 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
15965 callee-saved regs R4->R10 in an interrupt function that calls another
15966 function.
15967
15968 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
15969
15970 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
15971 (_mm_blendv_epi8): New.
15972
15973 2019-07-22 Richard Biener <rguenther@suse.de>
15974
15975 PR tree-optimization/91221
15976 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
15977 restrict partial-def handling of empty constructors and
15978 memset to refs with known offset.
15979
15980 2019-07-22 Jan Beulich <jbeulich@suse.com>
15981
15982 * config/i386/sse.md (ternlogsuffix): New.
15983 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
15984 AVX512F is in use.
15985 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
15986
15987 2019-07-22 Martin Liska <mliska@suse.cz>
15988
15989 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
15990 comment.
15991 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
15992
15993 2019-07-22 Martin Liska <mliska@suse.cz>
15994
15995 * lto-section-in.c (lto_get_section_data):
15996 Use new function get_compression.
15997 * lto-streamer-out.c (produce_lto_section): Use
15998 set_compression to encode compression algorithm.
15999 * lto-streamer.h (struct lto_section): Do not
16000 use bitfields in the format.
16001
16002 2019-07-22 Martin Liska <mliska@suse.cz>
16003
16004 PR driver/91172
16005 * opts-common.c (decode_cmdline_option): Decode
16006 argument of -Werror and check it for a wrong language.
16007 * opts-global.c (complain_wrong_lang): Remove such case.
16008
16009 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16010
16011 * config/arc/arc.c (prepare_move_operands): Always use an
16012 intermediate register when storing a TLS symbols.
16013
16014 2019-07-22 Stafford Horne <shorne@gmail.com>
16015
16016 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
16017 force_reg.
16018
16019 2019-07-22 Stafford Horne <shorne@gmail.com>
16020
16021 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
16022 and munordered-float validations.
16023 * config/or1k/constraints.md (d): New register constraint.
16024 * config/or1k/predicates.md (fp_comparison_operator): New.
16025 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
16026 operands.
16027 (or1k_expand_compare): Normalize unordered comparisons.
16028 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
16029 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
16030 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
16031 * config/or1k/or1k.md (type): Add fpu.
16032 (fpu): New instruction reservation.
16033 (F, f, fr, fi, FI, FOP, fop): New.
16034 (<fop><F:mode>3): New ALU instruction definition.
16035 (float<fi><F:mode>2): New conversion instruction definition.
16036 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
16037 (fpcmpcc): New code iterator.
16038 (*sf_fp_insn): New instruction definition.
16039 (cstore<F:mode>4): New expand definition.
16040 (cbranch<F:mode>4): New expand definition.
16041 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
16042 munordered-float): New options.
16043 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
16044 munordered-float.
16045
16046 2019-07-22 Stafford Horne <shorne@gmail.com>
16047
16048 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
16049 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
16050 documenation to be more clear.
16051 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
16052 more clear.
16053 * config/or1k/or1k.opt (mrori): New option.
16054 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
16055 msfimm, mshftimm): Rewrite documentation to be more clear.
16056 * config/or1k/or1k.md (insn_support): Add ror and rori.
16057 (enabled): Add conditions for ror and rori.
16058 (rotrsi3): Replace condition for shftimm with ror and rori.
16059
16060 2019-07-22 Stafford Horne <shorne@gmail.com>
16061
16062 PR target/90363
16063 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
16064 (extend<mode>si2): Update predicate.
16065 * config/or1k/predicates.md (volatile_mem_operand): New.
16066 (reg_or_mem_operand): New.
16067
16068 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
16069
16070 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
16071 * config/rs6000/rs6000-call.c: ... to here.
16072
16073 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16074
16075 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
16076 memory.
16077
16078 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16079
16080 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
16081
16082 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16083
16084 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
16085
16086 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16087
16088 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
16089 (any_memory_operand): New predicate.
16090 (reg_or_mem_operand): Use it.
16091
16092 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16093
16094 PR target/91204
16095 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
16096
16097 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
16098
16099 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
16100 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
16101
16102 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16103
16104 * tree.def (OMP_LOOP): New tree code.
16105 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
16106 (enum omp_clause_bind_kind): New enum.
16107 (struct tree_omp_clause): Add subcode.bind_kind.
16108 * tree.h (OMP_LOOP_CHECK): Rename to ...
16109 (OMP_LOOPING_CHECK): ... this.
16110 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
16111 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
16112 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
16113 (OMP_CLAUSE_BIND_KIND): Define.
16114 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16115 bind clause entries.
16116 (walk_tree_1): Handle OMP_CLAUSE_BIND.
16117 * tree-pretty-print.c (dump_omp_clause): Likewise.
16118 (dump_generic_node): Handle OMP_LOOP.
16119 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
16120 (in_omp_construct): New variable.
16121 (is_gimple_stmt): Handle OMP_LOOP.
16122 (gimplify_scan_omp_clauses): For lastprivate don't set
16123 check_non_private if code == OMP_LOOP. For reduction clause
16124 on OMP_LOOP combined with parallel or teams propagate as shared
16125 on the combined construct. Handle OMP_CLAUSE_BIND.
16126 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
16127 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
16128 for constructs from a loop construct to gimplify_scan_omp_clauses.
16129 Don't predetermine iterator linear on OMP_SIMD from loop construct.
16130 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
16131 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
16132 to match the implicit ORT_TARGET construct around whole body.
16133 Temporarily clear in_omp_construct when processing body.
16134 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
16135 etc. temporarily set in_omp_construct when processing body.
16136 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
16137 * omp-low.c (struct omp_context): Add loop_p.
16138 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
16139 in that the original var might be private.
16140 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
16141 (check_omp_nesting_restrictions): Adjust nesting restrictions for
16142 addition of loop construct.
16143 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
16144
16145 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
16146 lastprivate non-addressable iterator of a collapse(1) simd.
16147
16148 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
16149
16150 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
16151 as in rs6000.c.
16152
16153 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
16154
16155 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
16156 refer to default conditions. Warn for the 'y' spec which is ignored
16157 by current linkers.
16158
16159 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
16160
16161 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
16162 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16163 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16164 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16165 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16166 init_cumulative_args, rs6000_promote_function_mode,
16167 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16168 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16169 rs6000_function_arg_boundary, rs6000_parm_offset,
16170 rs6000_parm_start, rs6000_arg_size,
16171 rs6000_darwin64_record_arg_advance_flush,
16172 rs6000_darwin64_record_arg_advance_recurse,
16173 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16174 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16175 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16176 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16177 rs6000_finish_function_arg, rs6000_function_arg,
16178 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16179 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16180 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16181 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16182 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16183 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16184 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16185 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16186 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16187 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16188 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16189 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16190 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16191 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16192 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16193 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16194 get_element_number, altivec_expand_vec_set_builtin,
16195 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16196 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16197 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16198 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16199 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16200 rs6000_expand_builtin, rs6000_vector_type,
16201 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16202 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16203 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16204 to rs6000-call.c.
16205 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16206 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16207 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16208 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16209 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16210 init_cumulative_args, rs6000_promote_function_mode,
16211 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16212 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16213 rs6000_function_arg_boundary, rs6000_parm_offset,
16214 rs6000_parm_start, rs6000_arg_size,
16215 rs6000_darwin64_record_arg_advance_flush,
16216 rs6000_darwin64_record_arg_advance_recurse,
16217 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16218 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16219 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16220 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16221 rs6000_finish_function_arg, rs6000_function_arg,
16222 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16223 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16224 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16225 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16226 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16227 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16228 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16229 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16230 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16231 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16232 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16233 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16234 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16235 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16236 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16237 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16238 get_element_number, altivec_expand_vec_set_builtin,
16239 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16240 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16241 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16242 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16243 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16244 rs6000_expand_builtin, rs6000_vector_type,
16245 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16246 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16247 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
16248 to here from rs6000.c.
16249 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
16250 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
16251 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
16252 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
16253 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
16254 rs6000_return_in_memory, rs6000_return_in_msb,
16255 rs6000_pass_by_reference, setup_incoming_varargs,
16256 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
16257 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
16258 rs6000_function_arg_padding, rs6000_function_arg,
16259 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
16260 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
16261 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
16262 rs6000_passes_long_double, rs6000_passes_vector,
16263 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
16264 altivec_builtin_mask_for_load) Add declarations.
16265 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
16266 * config/config.gcc: Add new source file rs6000-call.c to garbage
16267 collector and extra_objs.
16268
16269 2019-07-19 Jeff Law <law@redhat.com>
16270
16271 PR tree-optimization/86061
16272 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
16273 strncpy. Drop some trivial dead code.
16274 (maybe_trim_memstar_call): Handle strncpy.
16275
16276 2019-07-19 Richard Biener <rguenther@suse.de>
16277
16278 PR tree-optimization/91211
16279 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16280 memset encoding size.
16281
16282 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
16283
16284 PR target/91204
16285 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
16286
16287 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
16288
16289 PR ipa/91194
16290 * ipa-inline.c (recursive_inlining): Fix limits check.
16291
16292 2019-07-19 Richard Biener <rguenther@suse.de>
16293
16294 PR tree-optimization/91200
16295 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
16296 no PHI nodes in middle-bb.
16297
16298 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
16299
16300 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
16301 to +sve-bitperm.
16302 * config/aarch64/aarch64-option-extensions.def: Likewise.
16303
16304 2019-07-19 Jakub Jelinek <jakub@redhat.com>
16305
16306 PR middle-end/91190
16307 * function.c (insert_temp_slot_address): Store into the hash table
16308 a copy of address to avoid RTL sharing issues.
16309
16310 2019-07-19 Richard Biener <rguenther@suse.de>
16311
16312 PR tree-optimization/91207
16313 Revert
16314 2019-07-17 Richard Biener <rguenther@suse.de>
16315
16316 PR tree-optimization/91178
16317 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16318 loads with a gap larger than the vector size always use
16319 VMAT_STRIDED_SLP.
16320 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16321 avoid loading vectors that are only contained in the gap
16322 and thus are not needed.
16323
16324 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16325
16326 * config/i386/i386.md (*addqi_2_slp): Remove.
16327 (*<code>qi_2_slp): Ditto.
16328
16329 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
16330
16331 * config/rs6000/predicates.md (prefixed_mem_operand): Call
16332 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
16333 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
16334 Rename function from rs6000_prefixed_address.
16335 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16336 TARGET_HAS_TOC.
16337 (TARGET_TOC): Likewise.
16338 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16339 rs6000.h.
16340 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16341 TARGET_HAS_TOC.
16342 (TARGET_TOC): Likewise.
16343 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16344 rs6000.h.
16345 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16346 TARGET_HAS_TOC.
16347 (TARGET_TOC): Likewise.
16348 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
16349 check to require -mcmodel=medium for pc-relative addressing.
16350 (create_TOC_reference): Add assertion for TARGET_TOC.
16351 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
16352 TARGET_NO_TOC.
16353 (rs6000_emit_move): Likewise.
16354 (TOC_alias_set): Rename TOC alias set static variable from 'set'
16355 to 'TOC_alias_set'.
16356 (get_TOC_alias_set): Likewise.
16357 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
16358 TARGET_NO_TOC.
16359 (rs6000_can_eliminate): Likewise.
16360 (rs6000_prefixed_address_mode_p): Rename function from
16361 rs6000_prefixed_address.
16362 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
16363 TARGET_HAS_TOC and not pc-relative.
16364 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
16365 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
16366 TARGET_HAS_TOC.
16367 (TARGET_TOC): Likewise.
16368 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
16369 rs6000.h.
16370
16371 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
16372
16373 PR target/91188
16374 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
16375 for operand 0. Do not use (match_dup) to match operand 1 with
16376 operand 0. Add check in insn constraint that either input operand
16377 matches operand 0. Use SWI12 mode iterator to also handle
16378 HImode operands.
16379 (*and<mode>_1_slp): Ditto.
16380 (*<code>qi_1_slp): Ditto.
16381 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
16382 Do not use (match_dup) to match operand 1 with operand 0. Add
16383 check in insn constraint that operand 1 matches operand 0.
16384 Use SWI12 mode iterator to also handle HImode operands.
16385 (*ashl<mode>3_1_slp): Ditto.
16386 (*<shift_insn><mode>3_1_slp): Ditto.
16387 (*<rotate_insn><mode>3_1_slp): Ditto.
16388
16389 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16390
16391 * config/arm/arm-builtins.c
16392 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
16393 (arm_expand_unop_builtin): Likewise.
16394 * config/arm/crypto.md
16395 (crypto_sha1h): Convert from define_insn to define_expand.
16396 (crypto_<crypto_pattern>): Likewise.
16397 (crypto_sha1h_lb): New define_insn.
16398 (crypto_<crypto_pattern>_lb): Likewise.
16399
16400 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
16401
16402 PR target/90317
16403 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
16404 (vsha1cq_u32): Likewise.
16405 (vsha1pq_u32): Likewise.
16406 (vsha1mq_u32): Likewise.
16407 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
16408 vec select.
16409 (crypto_sha1c): Correct vec select.
16410 (crypto_sha1m): Likewise.
16411 (crypto_sha1p): Likewise.
16412
16413 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
16414
16415 * config/arm/predicates.md (arm_borrow_operation): New predicate.
16416 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
16417 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
16418 (subdi_zesidi_zesidi): Likewise.
16419 (negdi2_compare, negdi2_insn): Likewise.
16420 (negdi_extensidi): Likewise.
16421 (negdi_zero_extendsidi): Likewise.
16422 (arm_cmpdi_insn): Likewise.
16423 (subsi3_carryin): Use arm_borrow_operation.
16424 (subsi3_carryin_const): Likewise.
16425 (subsi3_carryin_const0): Likewise.
16426 (subsi3_carryin_compare): Likewise.
16427 (subsi3_carryin_compare_const): Likewise.
16428 (subsi3_carryin_compare_const0): Likewise.
16429 (subsi3_carryin_shift): Likewise.
16430 (rsbsi3_carryin_shift): Likewise.
16431 (negsi2_carryin_compare): Likewise.
16432
16433 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
16434
16435 PR tree-optimization/91137
16436 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
16437 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
16438 Init, use and fini the above new field.
16439 (determine_base_object_1): New function.
16440 (determine_base_object): Reimplement using walk_tree.
16441
16442 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
16443
16444 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
16445 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
16446 CLEANUP_FORCE_FAST_DCE is set.
16447 * ifcvt.c (rest_of_handle_if_conversion): Pass
16448 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
16449 if-conversion succeeded.
16450
16451 2019-07-18 Richard Biener <rguenther@suse.de>
16452
16453 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
16454 branches to make code less indented.
16455
16456 2019-07-17 Alexandre Oliva <oliva@adacore.com>
16457
16458 PR middle-end/81824
16459 * attribs.c (decls_mismatched_attributes): Simplify the logic
16460 that avoids duplicates and false positives.
16461
16462 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
16463
16464 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
16465 data into data section when generating PIC code.
16466 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
16467 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
16468 generating code for SOM targets earlier than HP-UX 11. Otherwise,
16469 return 2 for SOM and 0 for other targets.
16470
16471 2019-07-17 Jeff Law <law@redhat.com>
16472
16473 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
16474 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
16475 avoid unexpected switch statement fallthru.
16476
16477 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16478
16479 * config/i386/i386.md (*add<dwi>3_doubleword):
16480 Remove redundant constraints.
16481 (*add<mode>_1): Ditto.
16482 (*addhi_1): Ditto.
16483 (*addqi_1): Ditto.
16484 (*addqi_1_slp): Ditto.
16485 (*add<mode>_2): Ditto.
16486 (*addv<mode>4): Ditto.
16487 (*sub<dwi>3_doubleword): Ditto.
16488 (*sub<mode>_1): Ditto.
16489 (*subqi_1_slp): Ditto.
16490 (*sub<mode>_2): Ditto.
16491 (*subv<mode>4): Ditto.
16492 (*sub<mode>_3): Ditto.
16493 (@add<mode>3_carry): Ditto.
16494 (@sub<mode>3_carry): Ditto.
16495 (*add<mode>3_cc_overflow_1): Ditto.
16496 (*add<mode>3_zext_cc_overflow_2): Ditto.
16497 (*anddi_1): Ditto.
16498 (*and<mode>_1): Ditto.
16499 (*andqi_1): Ditto.
16500 (*andqi_1_slp): Ditto.
16501 (*anddi_2): Ditto.
16502 (*andqi_2_maybe_si): Ditto.
16503 (*and<mode>_2): Ditto.
16504 (*andqi_2_slp): Ditto.
16505 (*<code><mode>_1): Ditto.
16506 (*<code>qi_1): Ditto.
16507 (*<code>qi_1_slp): Ditto.
16508 (*<code><mode>_2): Ditto.
16509 (*<code>qi_2_slp): Ditto.
16510
16511 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
16512
16513 * alias.c (record_component_aliases): Do not simplify pointed-to
16514 types of ODR types.
16515
16516 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
16517
16518 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
16519 partial reg stall on alternative 2.
16520
16521 2019-07-17 Richard Biener <rguenther@suse.de>
16522
16523 PR tree-optimization/91178
16524 * tree-ssa.c (release_defs_bitset): Iterate from higher to
16525 lower SSA names to avoid quadratic behavior in the common case.
16526 * tree-data-ref.c (split_constant_offset): Add limit argument
16527 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16528 (split_constant_offset_1): Add limit argument and use it to
16529 limit SSA def walking. Optimize the common plus/minus case.
16530
16531 2019-07-17 Richard Biener <rguenther@suse.de>
16532
16533 PR tree-optimization/91178
16534 * tree-vect-stmts.c (get_group_load_store_type): For SLP
16535 loads with a gap larger than the vector size always use
16536 VMAT_STRIDED_SLP.
16537 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
16538 avoid loading vectors that are only contained in the gap
16539 and thus are not needed.
16540
16541 2019-07-17 Richard Biener <rguenther@suse.de>
16542
16543 PR tree-optimization/91180
16544 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
16545 computation for memset partial defs.
16546
16547 2019-07-17 Jakub Jelinek <jakub@redhat.com>
16548
16549 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
16550 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
16551 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
16552 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
16553 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
16554 * omp-grid.c (grid_process_grid_body,
16555 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
16556 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
16557 == GF_OMP_FOR_KIND_SIMD.
16558 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
16559 check_omp_nesting_restrictions, scan_omp_1_stmt,
16560 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
16561 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
16562 omp_find_scan): Likewise.
16563 * omp-expand.c (expand_omp_for): Likewise.
16564 * omp-general.c (omp_extract_for_data): Likewise.
16565
16566 PR tree-optimization/91157
16567 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
16568 a vector boolean with scalar mode.
16569 (expand_vector_condition): Handle first operand being a vector boolean
16570 with scalar mode.
16571 (expand_vector_operations_1): For comparisons, don't bail out early
16572 if the return type is vector boolean with scalar mode, but comparison
16573 operand type is not.
16574
16575 2019-07-17 Richard Biener <rguenther@suse.de>
16576
16577 PR tree-optimization/91181
16578 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
16579 IFN_LOADs as calls.
16580
16581 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
16582
16583 * config/i386/i386.md (*testdi_1): Match CCZmode for
16584 constants that might have the SImode sign bit set.
16585 (*testqi_1_maybe_si): Remove "!" constraint modifier.
16586 Use correct constraints for pentium pairing.
16587 (*test<mode>_1): Ditto.
16588
16589 2019-07-16 Jeff Law <law@redhat.com>
16590
16591 PR rtl-optimization/91173
16592 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
16593 SSA_NAME with a constant value, fold its value into the offset
16594 and clear the base before calling gen_addr_rtx.
16595
16596 2019-07-16 Jakub Jelinek <jakub@redhat.com>
16597
16598 PR rtl-optimization/91164
16599 * dse.c (rest_of_handle_dse): If dead edges have been purged,
16600 invalidate dominance info.
16601
16602 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16603
16604 * read-md.h (md_reader::record_potential_iterator_use): Add a
16605 file_location parameter.
16606 * read-rtl.c (attribute_use::loc): New field.
16607 (map_attr_string): Take a file_location parameter. Report cases
16608 in which attributes map to multiple distinct values.
16609 (apply_attribute_uses): Update call accordingly.
16610 (md_reader::handle_overloaded_name): Likewise.
16611 (md_reader::apply_iterator_to_string): Likewise. Skip empty
16612 nonnull strings.
16613 (record_attribute_use): Take a file_location parameter.
16614 Initialize attribute_use::loc.
16615 (md_reader::record_potential_iterator_use): Take a file_location
16616 parameter. Update call to record_attribute_use.
16617 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
16618 (rtx_reader::read_rtx_code): Likewise.
16619 (rtx_reader::read_rtx_operand): Likewise. Record a location
16620 for implicitly-expanded empty strings.
16621
16622 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16623
16624 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
16625 Use file_location instead of separate fields.
16626 (md_reader::set_md_ptr_loc): Take a file_location instead of a
16627 separate filename and line number.
16628 * read-md.c (ptr_loc): As above.
16629 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
16630 (md_reader::fprint_md_ptr_loc): Likewise.
16631 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
16632 instead of a separate filename and line number.
16633 (md_reader::read_string): Update call accordingly.
16634
16635 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16636
16637 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
16638 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
16639 leaving the choice between SFDF and P implicit.
16640 (*mov<mode>_update2): Likewise.
16641 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
16642 rather than leaving the choice betweem IBM128 and GPR implicit.
16643 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
16644 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
16645 QHSI implicit.
16646 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
16647 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
16648 * config/rs6000/vsx.md
16649 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
16650 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
16651 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
16652 and VSX_EXTRACT_I implicit.
16653
16654 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
16655
16656 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
16657 Explicitly use <MOVEP1:MODE> for the mode attribute.
16658
16659 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
16660
16661 PR bootstrap/91176
16662 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
16663
16664 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
16665
16666 PR target/91050
16667 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
16668 .machine directive.
16669
16670 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
16671
16672 * config/i386/i386.md (@test<mode>_ccno_1):
16673 Rename from test<mode>_ccno_1.
16674 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
16675 (*testqi_1_maybe_si): Remove modrm attribute.
16676 (*test<mode>_1): Ditto.
16677 * config/i386/i386-expand.c (ix86_split_idivmod): Use
16678 gen_test_ccno_1 and gen_extend_insn.
16679
16680 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
16681
16682 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
16683 to 0.
16684
16685 2019-07-15 Richard Biener <rguenther@suse.de>
16686
16687 PR middle-end/91162
16688 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
16689 node make sure to replace all uses with something valid.
16690
16691 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
16692
16693 PR tree-optimization/88497
16694 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
16695 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
16696 function undistribute_bitref_for_vector.
16697 (undistribute_bitref_for_vector): New function.
16698 (cleanup_vinfo_map): Likewise.
16699 (sort_by_mach_mode): Likewise.
16700
16701 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
16702
16703 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
16704 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
16705 and testdi_ccno_1 using SWI48 mode attribute.
16706 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
16707 x86_64_szext_general_operand.
16708 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
16709 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
16710 instead of genera_operand mode attribute.
16711
16712 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
16713
16714 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
16715 fopen and fclose to their respective types.
16716 (DotFn.invoke): Ditto.
16717
16718 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
16719
16720 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
16721 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
16722 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
16723 (array_index_predicate): Remove.
16724 (analyze_function_body): Account cost for variable ofsetted array
16725 indexing.
16726 (estimate_node_size_and_time): Do not compute array index hint.
16727 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
16728 (inline_read_section): Do not read array index hint.
16729 (ipa_fn_summary_write): Do not write array index hint.
16730 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
16731 * ipa-cp.c (hint_time_bonus): Remove.
16732 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
16733 (ipa_fnsummary): Remove array_index.
16734 * ipa-inline.c (want_inline_small_function_p): Do not use
16735 array_index.
16736 (edge_badness): Likewise.
16737 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
16738
16739 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
16740
16741 PR target/91148
16742 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
16743 superfluous "builtin function" phrasing.
16744
16745 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
16746
16747 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
16748 Break out from ...
16749 (aliasing_component_refs_walk): Break out from ...
16750 (aliasing_component_refs_p): ... here.
16751
16752 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
16753
16754 PR target/91148
16755 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
16756 "builtin function" phrasing.
16757
16758 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16759
16760 PR target/90723
16761 * recog.h (temporary_volatile_ok): New class.
16762 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
16763 volatile_ok temporarily to true using temporary_volatile_ok.
16764 * expr.c (emit_block_move_via_cpymem): Likewise.
16765 * optabs.c (maybe_legitimize_operand): Likewise.
16766
16767 2019-07-13 Jakub Jelinek <jakub@redhat.com>
16768
16769 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
16770 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
16771 uses inside of order(concurrent) constructs.
16772 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
16773 OMP_CLAUSE_ORDER is seen.
16774 * omp-low.c (struct omp_context): Add order_concurrent member.
16775 (scan_sharing_clauses): Set ctx->order_concurrent if
16776 OMP_CLAUSE_ORDER is seen.
16777 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
16778 of simd order(concurrent). Diagnose constructs not allowed inside of
16779 for order(concurrent).
16780 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
16781 complaining about static double setjmp (double); or class static
16782 methods or non-global namespace setjmps.
16783 (omp_runtime_api_call): New function.
16784 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
16785 order(concurrent) loops.
16786
16787 2019-07-12 Martin Sebor <msebor@redhat.com>
16788
16789 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
16790 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
16791 * tree-vrp.c (vrp_prop::check_mem_ref): Use
16792 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
16793
16794 2019-07-12 Jan Hubicka <jh@suse.cz>
16795
16796 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
16797 (indirect_refs_may_alias_p): ... here.
16798 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
16799 mem refs in the access paths.
16800
16801 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
16802
16803 PR tree-optimization/89430
16804 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
16805 store elimination for local variable without address escape.
16806
16807 2019-07-12 Jeff Law <law@redhat.com>
16808
16809 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
16810 for the ".far" section.
16811
16812 2019-07-12 Richard Biener <rguenther@suse.de>
16813
16814 PR tree-optimization/91145
16815 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
16816 chain check.
16817
16818 2019-07-12 Alexandre Oliva <oliva@adacore.com>
16819
16820 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
16821 rather than this_state as the lowering context for the ELSE
16822 seq in a GIMPLE_EH_ELSE.
16823
16824 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16825
16826 * vector-builder.h (vector_builder::elt): Allow already-supplied
16827 elements to be read back before building is complete.
16828
16829 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16830
16831 PR rtl-optimization/91136
16832 * df-core.c (ACCESSING REFS): Fix typos in comment.
16833 * resource.c (mark_target_live_reg): Add artificial defs that occur at
16834 the beginning of the block to the initial set of live registers.
16835
16836 2019-07-12 Richard Biener <rguenther@suse.de>
16837
16838 * fold-const.h (get_array_ctor_element_at_index): Adjust.
16839 * fold-const.c (get_array_ctor_element_at_index): Add
16840 ctor_idx output parameter informing the caller where in
16841 the constructor the element was (not) found. Add early exit
16842 for when the ctor is sorted.
16843 * gimple-fold.c (fold_array_ctor_reference): Support constant
16844 folding across multiple array elements.
16845
16846 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
16847
16848 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
16849 doesn't have location, set the current location to the function's end.
16850
16851 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16852
16853 * config/aarch64/aarch64.md (*compare_condjump<mode>)
16854 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
16855 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
16856 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
16857 * config/aarch64/aarch64-simd.md
16858 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
16859 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
16860 * config/aarch64/aarch64-sve.md
16861 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
16862 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
16863
16864 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
16865
16866 * doc/md.texi: Document that @ patterns can have different
16867 numbers of operands.
16868 * genemit.c (handle_overloaded_gen): Handle this case.
16869 * genopinit.c (handle_overloaded_gen): Likewise.
16870 * gensupport.c (replace_operands_with_dups): Iterate over
16871 the new rtx's format rather than the old one's.
16872
16873 2019-07-12 Jakub Jelinek <jakub@redhat.com>
16874
16875 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
16876 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16877 order clause entries.
16878 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
16879 * tree-pretty-print.c (dump_omp_clause): Likewise.
16880 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
16881 Likewise.
16882 * omp-low.c (scan_sharing_clauses): Likewise.
16883 * tree-nested.c (convert_nonlocal_omp_clauses,
16884 convert_local_omp_clauses): Likewise.
16885
16886 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
16887
16888 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
16889 fallthrough target of current basic block isn't the placed
16890 right next.
16891
16892 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
16893
16894 PR target/90980
16895 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
16896 (_mm512_storeu_epi64): Likewise.
16897 (_mm512_loadu_epi32): Likewise.
16898 (_mm512_storeu_epi32): Likewise.
16899 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
16900 (_mm_storeu_epi64): Likewise.
16901 (_mm256_storeu_epi32): Likewise.
16902 (_mm_storeu_epi32): Likewise.
16903
16904 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16905
16906 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
16907
16908 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
16909
16910 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
16911 Handle Modula-2.
16912
16913 2019-07-11 Jakub Jelinek <jakub@redhat.com>
16914
16915 PR target/91124
16916 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
16917 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16918 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
16919 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
16920 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
16921 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
16922 define_insns.
16923 (ufix_truncv2dfv2si2<mask_name>): Change into ...
16924 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
16925 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
16926 define_insns.
16927 (sse2_cvttpd2dq<mask_name>): Change into ...
16928 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
16929 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
16930 (*sse2_cvtpd2dq<mask_name>): Change into ...
16931 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
16932 Add "C" constraint to const0_operand.
16933 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
16934 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
16935 changes.
16936
16937 PR target/91124
16938 * config/i386/i386-builtin-types.def
16939 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
16940 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
16941 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
16942 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
16943 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
16944 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
16945 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
16946 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
16947 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
16948 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
16949 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
16950 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
16951 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
16952 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
16953 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
16954 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
16955 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
16956 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
16957 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
16958 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
16959 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
16960 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
16961 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
16962 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
16963 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
16964 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
16965 __builtin_ia32_vpdpbusd_v4si_maskz,
16966 __builtin_ia32_vpdpbusds_v16si_mask,
16967 __builtin_ia32_vpdpbusds_v16si_maskz,
16968 __builtin_ia32_vpdpbusds_v8si_mask,
16969 __builtin_ia32_vpdpbusds_v8si_maskz,
16970 __builtin_ia32_vpdpbusds_v4si_mask,
16971 __builtin_ia32_vpdpbusds_v4si_maskz,
16972 __builtin_ia32_vpdpwssd_v16si_mask,
16973 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
16974 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
16975 __builtin_ia32_vpdpwssd_v4si_maskz,
16976 __builtin_ia32_vpdpwssds_v16si_mask,
16977 __builtin_ia32_vpdpwssds_v16si_maskz,
16978 __builtin_ia32_vpdpwssds_v8si_mask,
16979 __builtin_ia32_vpdpwssds_v8si_maskz,
16980 __builtin_ia32_vpdpwssds_v4si_mask,
16981 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
16982 suffixed types rather than *_INT.
16983 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
16984 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
16985 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
16986 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
16987 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
16988 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
16989
16990 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
16991
16992 * tree-vrp.c (intersect_ranges): If we know the intersection is
16993 empty, there is no need to conservatively add anything else to
16994 the set.
16995
16996 2019-07-11 Richard Biener <rguenther@suse.de>
16997
16998 PR middle-end/91131
16999 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17000 when the object is volatile and we have not cleared it even though
17001 there are no nonzero elements.
17002
17003 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17004
17005 * config/rs6000/predicates.md (cint34_operand): Update
17006 SIGNED_34BIT_OFFSET_P call.
17007 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17008 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17009 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17010 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17011 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17012 argument.
17013 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
17014 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
17015 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
17016 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
17017 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
17018
17019 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
17020
17021 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
17022 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
17023 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
17024 (DEF_MIN_OSX_VERSION): New.
17025
17026 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17027
17028 * fold-const.c (fold_relational_const): Fix folding of
17029 vector-to-scalar NE_EXPRs.
17030 (test_vector_folding): Add more tests.
17031
17032 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17033
17034 PR target/91060
17035 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
17036 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
17037 (vec_setv2di_internal): Reexpress as...
17038 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
17039 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
17040 rather than gen_neon_vset_lane<mode>.
17041
17042 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
17043
17044 PR target/91102
17045 * lra-constraints.c (process_alt_operands): Don't match user
17046 defined regs only if they are early clobbers.
17047
17048 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
17049
17050 * wide-int.h (wi::lshift): Reject negative values for the fast path.
17051
17052 2019-07-10 Richard Biener <rguenther@suse.de>
17053
17054 PR tree-optimization/91126
17055 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
17056 native encoding offset for BYTES_BIG_ENDIAN.
17057 (vn_reference_lookup_3): Likewise.
17058
17059 2019-07-10 Richard Biener <rguenther@suse.de>
17060
17061 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
17062 LHS whenever possible.
17063
17064 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
17065
17066 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
17067 from ...; work also on duplicated types.
17068 (nonoverlapping_component_refs_since_match): ... here
17069 (ncr_type_uid): Break out from ...
17070 (ncr_compar): ... here; look for TYPE_UID of canonical type if
17071 available.
17072 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
17073 the types and nonoverlapping_component_refs_p_1 to disambiguate.
17074
17075 2019-07-09 Martin Sebor <msebor@redhat.com>
17076
17077 PR tree-optimization/90989
17078 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
17079 optimization to just single character stores.
17080
17081 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
17082
17083 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
17084 Swap operands only once.
17085
17086 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17087
17088 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
17089 for both call instructions.
17090
17091 2019-07-09 John Darrington <john@darrington.wattle.id.au>
17092
17093 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
17094 rather than GET_MODE_BITSIZE to better handle partial integer modes.
17095
17096 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
17097
17098 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
17099 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
17100 function from rs6000-logue.c back to rs6000.c.
17101 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
17102
17103 2019-07-09 Martin Sebor <msebor@redhat.com>
17104
17105 PR c++/61339
17106 * auto-profile.c: Change class-key of PODs to struct and others
17107 to class.
17108 * basic-block.h: Same.
17109 * bitmap.c (bitmap_alloc): Same.
17110 * bitmap.h: Same.
17111 * builtins.c (expand_builtin_prefetch): Same.
17112 (expand_builtin_interclass_mathfn): Same.
17113 (expand_builtin_strlen): Same.
17114 (expand_builtin_mempcpy_args): Same.
17115 (expand_cmpstr): Same.
17116 (expand_builtin___clear_cache): Same.
17117 (expand_ifn_atomic_bit_test_and): Same.
17118 (expand_builtin_thread_pointer): Same.
17119 (expand_builtin_set_thread_pointer): Same.
17120 * caller-save.c (setup_save_areas): Same.
17121 (replace_reg_with_saved_mem): Same.
17122 (insert_restore): Same.
17123 (insert_save): Same.
17124 (add_used_regs): Same.
17125 * cfg.c (get_bb_copy): Same.
17126 (set_loop_copy): Same.
17127 * cfg.h: Same.
17128 * cfganal.h: Same.
17129 * cfgexpand.c (alloc_stack_frame_space): Same.
17130 (add_stack_var): Same.
17131 (add_stack_var_conflict): Same.
17132 (add_scope_conflicts_1): Same.
17133 (update_alias_info_with_stack_vars): Same.
17134 (expand_used_vars): Same.
17135 * cfghooks.c (redirect_edge_and_branch_force): Same.
17136 (delete_basic_block): Same.
17137 (split_edge): Same.
17138 (make_forwarder_block): Same.
17139 (force_nonfallthru): Same.
17140 (duplicate_block): Same.
17141 (lv_flush_pending_stmts): Same.
17142 * cfghooks.h: Same.
17143 * cfgloop.c (flow_loops_cfg_dump): Same.
17144 (flow_loop_nested_p): Same.
17145 (superloop_at_depth): Same.
17146 (get_loop_latch_edges): Same.
17147 (flow_loop_dump): Same.
17148 (flow_loops_dump): Same.
17149 (flow_loops_free): Same.
17150 (flow_loop_nodes_find): Same.
17151 (establish_preds): Same.
17152 (flow_loop_tree_node_add): Same.
17153 (flow_loop_tree_node_remove): Same.
17154 (flow_loops_find): Same.
17155 (find_subloop_latch_edge_by_profile): Same.
17156 (find_subloop_latch_edge_by_ivs): Same.
17157 (mfb_redirect_edges_in_set): Same.
17158 (form_subloop): Same.
17159 (merge_latch_edges): Same.
17160 (disambiguate_multiple_latches): Same.
17161 (disambiguate_loops_with_multiple_latches): Same.
17162 (flow_bb_inside_loop_p): Same.
17163 (glb_enum_p): Same.
17164 (get_loop_body_with_size): Same.
17165 (get_loop_body): Same.
17166 (fill_sons_in_loop): Same.
17167 (get_loop_body_in_dom_order): Same.
17168 (get_loop_body_in_custom_order): Same.
17169 (release_recorded_exits): Same.
17170 (get_loop_exit_edges): Same.
17171 (num_loop_branches): Same.
17172 (remove_bb_from_loops): Same.
17173 (find_common_loop): Same.
17174 (delete_loop): Same.
17175 (cancel_loop): Same.
17176 (verify_loop_structure): Same.
17177 (loop_preheader_edge): Same.
17178 (loop_exit_edge_p): Same.
17179 (single_exit): Same.
17180 (loop_exits_to_bb_p): Same.
17181 (loop_exits_from_bb_p): Same.
17182 (get_loop_location): Same.
17183 (record_niter_bound): Same.
17184 (get_estimated_loop_iterations_int): Same.
17185 (max_stmt_executions_int): Same.
17186 (likely_max_stmt_executions_int): Same.
17187 (get_estimated_loop_iterations): Same.
17188 (get_max_loop_iterations): Same.
17189 (get_max_loop_iterations_int): Same.
17190 (get_likely_max_loop_iterations): Same.
17191 * cfgloop.h (simple_loop_desc): Same.
17192 (get_loop): Same.
17193 (loop_depth): Same.
17194 (loop_outer): Same.
17195 (loop_iterator::next): Same.
17196 (loop_outermost): Same.
17197 * cfgloopanal.c (mark_irreducible_loops): Same.
17198 (num_loop_insns): Same.
17199 (average_num_loop_insns): Same.
17200 (expected_loop_iterations_unbounded): Same.
17201 (expected_loop_iterations): Same.
17202 (mark_loop_exit_edges): Same.
17203 (single_likely_exit): Same.
17204 * cfgloopmanip.c (fix_bb_placement): Same.
17205 (fix_bb_placements): Same.
17206 (remove_path): Same.
17207 (place_new_loop): Same.
17208 (add_loop): Same.
17209 (scale_loop_frequencies): Same.
17210 (scale_loop_profile): Same.
17211 (create_empty_if_region_on_edge): Same.
17212 (create_empty_loop_on_edge): Same.
17213 (loopify): Same.
17214 (unloop): Same.
17215 (fix_loop_placements): Same.
17216 (copy_loop_info): Same.
17217 (duplicate_loop): Same.
17218 (duplicate_subloops): Same.
17219 (loop_redirect_edge): Same.
17220 (can_duplicate_loop_p): Same.
17221 (duplicate_loop_to_header_edge): Same.
17222 (mfb_keep_just): Same.
17223 (has_preds_from_loop): Same.
17224 (create_preheader): Same.
17225 (create_preheaders): Same.
17226 (lv_adjust_loop_entry_edge): Same.
17227 (loop_version): Same.
17228 * cfgloopmanip.h: Same.
17229 * cgraph.h: Same.
17230 * cgraphbuild.c: Same.
17231 * combine.c (make_extraction): Same.
17232 * config/i386/i386-features.c: Same.
17233 * config/i386/i386-features.h: Same.
17234 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
17235 (ix86_emit_outlined_ms2sysv_restore): Same.
17236 (ix86_noce_conversion_profitable_p): Same.
17237 (ix86_init_cost): Same.
17238 (ix86_simd_clone_usable): Same.
17239 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
17240 Wstruct-not-pod.
17241 * coretypes.h: Same.
17242 * data-streamer-in.c (string_for_index): Change class-key of PODs
17243 to struct and others to class.
17244 (streamer_read_indexed_string): Same.
17245 (streamer_read_string): Same.
17246 (bp_unpack_indexed_string): Same.
17247 (bp_unpack_string): Same.
17248 (streamer_read_uhwi): Same.
17249 (streamer_read_hwi): Same.
17250 (streamer_read_gcov_count): Same.
17251 (streamer_read_wide_int): Same.
17252 * data-streamer.h (streamer_write_bitpack): Same.
17253 (bp_unpack_value): Same.
17254 (streamer_write_char_stream): Same.
17255 (streamer_write_hwi_in_range): Same.
17256 (streamer_write_record_start): Same.
17257 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
17258 (add_cross_iteration_register_deps): Same.
17259 (build_intra_loop_deps): Same.
17260 * df-core.c (df_analyze): Same.
17261 (loop_post_order_compute): Same.
17262 (loop_inverted_post_order_compute): Same.
17263 * df-problems.c (df_rd_alloc): Same.
17264 (df_rd_simulate_one_insn): Same.
17265 (df_rd_local_compute): Same.
17266 (df_rd_init_solution): Same.
17267 (df_rd_confluence_n): Same.
17268 (df_rd_transfer_function): Same.
17269 (df_rd_free): Same.
17270 (df_rd_dump_defs_set): Same.
17271 (df_rd_top_dump): Same.
17272 (df_lr_alloc): Same.
17273 (df_lr_reset): Same.
17274 (df_lr_local_compute): Same.
17275 (df_lr_init): Same.
17276 (df_lr_confluence_n): Same.
17277 (df_lr_free): Same.
17278 (df_lr_top_dump): Same.
17279 (df_lr_verify_transfer_functions): Same.
17280 (df_live_alloc): Same.
17281 (df_live_reset): Same.
17282 (df_live_init): Same.
17283 (df_live_confluence_n): Same.
17284 (df_live_finalize): Same.
17285 (df_live_free): Same.
17286 (df_live_top_dump): Same.
17287 (df_live_verify_transfer_functions): Same.
17288 (df_mir_alloc): Same.
17289 (df_mir_reset): Same.
17290 (df_mir_init): Same.
17291 (df_mir_confluence_n): Same.
17292 (df_mir_free): Same.
17293 (df_mir_top_dump): Same.
17294 (df_word_lr_alloc): Same.
17295 (df_word_lr_reset): Same.
17296 (df_word_lr_init): Same.
17297 (df_word_lr_confluence_n): Same.
17298 (df_word_lr_free): Same.
17299 (df_word_lr_top_dump): Same.
17300 (df_md_alloc): Same.
17301 (df_md_simulate_one_insn): Same.
17302 (df_md_reset): Same.
17303 (df_md_init): Same.
17304 (df_md_free): Same.
17305 (df_md_top_dump): Same.
17306 * df-scan.c (df_insn_delete): Same.
17307 (df_insn_rescan): Same.
17308 (df_notes_rescan): Same.
17309 (df_sort_and_compress_mws): Same.
17310 (df_install_mws): Same.
17311 (df_refs_add_to_chains): Same.
17312 (df_ref_create_structure): Same.
17313 (df_ref_record): Same.
17314 (df_def_record_1): Same.
17315 (df_find_hard_reg_defs): Same.
17316 (df_uses_record): Same.
17317 (df_get_conditional_uses): Same.
17318 (df_get_call_refs): Same.
17319 (df_recompute_luids): Same.
17320 (df_get_entry_block_def_set): Same.
17321 (df_entry_block_defs_collect): Same.
17322 (df_get_exit_block_use_set): Same.
17323 (df_exit_block_uses_collect): Same.
17324 (df_mws_verify): Same.
17325 (df_bb_verify): Same.
17326 * df.h (df_scan_get_bb_info): Same.
17327 * doc/tm.texi: Same.
17328 * dse.c (record_store): Same.
17329 * dumpfile.h: Same.
17330 * emit-rtl.c (const_fixed_hasher::equal): Same.
17331 (set_mem_attributes_minus_bitpos): Same.
17332 (change_address): Same.
17333 (adjust_address_1): Same.
17334 (offset_address): Same.
17335 * emit-rtl.h: Same.
17336 * except.c (dw2_build_landing_pads): Same.
17337 (sjlj_emit_dispatch_table): Same.
17338 * explow.c (allocate_dynamic_stack_space): Same.
17339 (emit_stack_probe): Same.
17340 (probe_stack_range): Same.
17341 * expmed.c (store_bit_field_using_insv): Same.
17342 (store_bit_field_1): Same.
17343 (store_integral_bit_field): Same.
17344 (extract_bit_field_using_extv): Same.
17345 (extract_bit_field_1): Same.
17346 (emit_cstore): Same.
17347 * expr.c (emit_block_move_via_cpymem): Same.
17348 (expand_cmpstrn_or_cmpmem): Same.
17349 (set_storage_via_setmem): Same.
17350 (emit_single_push_insn_1): Same.
17351 (expand_assignment): Same.
17352 (store_constructor): Same.
17353 (expand_expr_real_2): Same.
17354 (expand_expr_real_1): Same.
17355 (try_casesi): Same.
17356 * flags.h: Same.
17357 * function.c (try_fit_stack_local): Same.
17358 (assign_stack_local_1): Same.
17359 (assign_stack_local): Same.
17360 (cut_slot_from_list): Same.
17361 (insert_slot_to_list): Same.
17362 (max_slot_level): Same.
17363 (move_slot_to_level): Same.
17364 (temp_address_hasher::equal): Same.
17365 (remove_unused_temp_slot_addresses): Same.
17366 (assign_temp): Same.
17367 (combine_temp_slots): Same.
17368 (update_temp_slot_address): Same.
17369 (preserve_temp_slots): Same.
17370 * function.h: Same.
17371 * fwprop.c: Same.
17372 * gcc-rich-location.h: Same.
17373 * gcov.c: Same.
17374 * genattrtab.c (check_attr_test): Same.
17375 (check_attr_value): Same.
17376 (convert_set_attr_alternative): Same.
17377 (convert_set_attr): Same.
17378 (check_defs): Same.
17379 (copy_boolean): Same.
17380 (get_attr_value): Same.
17381 (expand_delays): Same.
17382 (make_length_attrs): Same.
17383 (min_fn): Same.
17384 (make_alternative_compare): Same.
17385 (simplify_test_exp): Same.
17386 (tests_attr_p): Same.
17387 (get_attr_order): Same.
17388 (clear_struct_flag): Same.
17389 (gen_attr): Same.
17390 (compares_alternatives_p): Same.
17391 (gen_insn): Same.
17392 (gen_delay): Same.
17393 (find_attrs_to_cache): Same.
17394 (write_test_expr): Same.
17395 (walk_attr_value): Same.
17396 (write_attr_get): Same.
17397 (eliminate_known_true): Same.
17398 (write_insn_cases): Same.
17399 (write_attr_case): Same.
17400 (write_attr_valueq): Same.
17401 (write_attr_value): Same.
17402 (write_dummy_eligible_delay): Same.
17403 (next_comma_elt): Same.
17404 (find_attr): Same.
17405 (make_internal_attr): Same.
17406 (copy_rtx_unchanging): Same.
17407 (gen_insn_reserv): Same.
17408 (check_tune_attr): Same.
17409 (make_automaton_attrs): Same.
17410 (handle_arg): Same.
17411 * genextract.c (gen_insn): Same.
17412 (VEC_char_to_string): Same.
17413 * genmatch.c (print_operand): Same.
17414 (lower): Same.
17415 (parser::parse_operation): Same.
17416 (parser::parse_capture): Same.
17417 (parser::parse_c_expr): Same.
17418 (parser::parse_simplify): Same.
17419 (main): Same.
17420 * genoutput.c (output_operand_data): Same.
17421 (output_get_insn_name): Same.
17422 (compare_operands): Same.
17423 (place_operands): Same.
17424 (process_template): Same.
17425 (validate_insn_alternatives): Same.
17426 (validate_insn_operands): Same.
17427 (gen_expand): Same.
17428 (note_constraint): Same.
17429 * genpreds.c (write_one_predicate_function): Same.
17430 (add_constraint): Same.
17431 (process_define_register_constraint): Same.
17432 (write_lookup_constraint_1): Same.
17433 (write_lookup_constraint_array): Same.
17434 (write_insn_constraint_len): Same.
17435 (write_reg_class_for_constraint_1): Same.
17436 (write_constraint_satisfied_p_array): Same.
17437 * genrecog.c (optimize_subroutine_group): Same.
17438 * gensupport.c (process_define_predicate): Same.
17439 (queue_pattern): Same.
17440 (remove_from_queue): Same.
17441 (process_rtx): Same.
17442 (is_predicable): Same.
17443 (change_subst_attribute): Same.
17444 (subst_pattern_match): Same.
17445 (alter_constraints): Same.
17446 (alter_attrs_for_insn): Same.
17447 (shift_output_template): Same.
17448 (alter_output_for_subst_insn): Same.
17449 (process_one_cond_exec): Same.
17450 (subst_dup): Same.
17451 (process_define_cond_exec): Same.
17452 (mnemonic_htab_callback): Same.
17453 (gen_mnemonic_attr): Same.
17454 (read_md_rtx): Same.
17455 * ggc-page.c: Same.
17456 * gimple-loop-interchange.cc (dump_reduction): Same.
17457 (dump_induction): Same.
17458 (loop_cand::~loop_cand): Same.
17459 (free_data_refs_with_aux): Same.
17460 (tree_loop_interchange::interchange_loops): Same.
17461 (tree_loop_interchange::map_inductions_to_loop): Same.
17462 (tree_loop_interchange::move_code_to_inner_loop): Same.
17463 (compute_access_stride): Same.
17464 (compute_access_strides): Same.
17465 (proper_loop_form_for_interchange): Same.
17466 (tree_loop_interchange_compute_ddrs): Same.
17467 (prune_datarefs_not_in_loop): Same.
17468 (prepare_data_references): Same.
17469 (pass_linterchange::execute): Same.
17470 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
17471 (unroll_jam_possible_p): Same.
17472 (fuse_loops): Same.
17473 (adjust_unroll_factor): Same.
17474 (tree_loop_unroll_and_jam): Same.
17475 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
17476 (loop_versioning::expensive_stmt_p): Same.
17477 (loop_versioning::version_for_unity): Same.
17478 (loop_versioning::dump_inner_likelihood): Same.
17479 (loop_versioning::find_per_loop_multiplication): Same.
17480 (loop_versioning::analyze_term_using_scevs): Same.
17481 (loop_versioning::record_address_fragment): Same.
17482 (loop_versioning::analyze_expr): Same.
17483 (loop_versioning::analyze_blocks): Same.
17484 (loop_versioning::prune_conditions): Same.
17485 (loop_versioning::merge_loop_info): Same.
17486 (loop_versioning::add_loop_to_queue): Same.
17487 (loop_versioning::decide_whether_loop_is_versionable): Same.
17488 (loop_versioning::make_versioning_decisions): Same.
17489 (loop_versioning::implement_versioning_decisions): Same.
17490 * gimple-ssa-evrp-analyze.c
17491 (evrp_range_analyzer::record_ranges_from_phis): Same.
17492 * gimple-ssa-store-merging.c (split_store::split_store): Same.
17493 (count_multiple_uses): Same.
17494 (split_group): Same.
17495 (imm_store_chain_info::output_merged_store): Same.
17496 (pass_store_merging::process_store): Same.
17497 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
17498 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
17499 (is_max): Same.
17500 (alloca_call_type): Same.
17501 (pass_walloca::execute): Same.
17502 * gimple-streamer-in.c (input_phi): Same.
17503 (input_gimple_stmt): Same.
17504 * gimple-streamer.h: Same.
17505 * godump.c (go_force_record_alignment): Same.
17506 (go_format_type): Same.
17507 (go_output_type): Same.
17508 (go_output_fndecl): Same.
17509 (go_output_typedef): Same.
17510 (keyword_hash_init): Same.
17511 (find_dummy_types): Same.
17512 * graph.c (draw_cfg_nodes_no_loops): Same.
17513 (draw_cfg_nodes_for_loop): Same.
17514 * hard-reg-set.h (hard_reg_set_iter_next): Same.
17515 * hsa-brig.c: Same.
17516 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
17517 * hsa-dump.c (dump_hsa_cfun): Same.
17518 * hsa-gen.c (gen_function_def_parameters): Same.
17519 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
17520 * input.c (dump_line_table_statistics): Same.
17521 (test_lexer): Same.
17522 * input.h: Same.
17523 * internal-fn.c (get_multi_vector_move): Same.
17524 (expand_load_lanes_optab_fn): Same.
17525 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
17526 (expand_GOMP_SIMT_EXIT): Same.
17527 (expand_GOMP_SIMT_LAST_LANE): Same.
17528 (expand_GOMP_SIMT_ORDERED_PRED): Same.
17529 (expand_GOMP_SIMT_VOTE_ANY): Same.
17530 (expand_GOMP_SIMT_XCHG_BFLY): Same.
17531 (expand_GOMP_SIMT_XCHG_IDX): Same.
17532 (expand_addsub_overflow): Same.
17533 (expand_neg_overflow): Same.
17534 (expand_mul_overflow): Same.
17535 (expand_call_mem_ref): Same.
17536 (expand_mask_load_optab_fn): Same.
17537 (expand_scatter_store_optab_fn): Same.
17538 (expand_gather_load_optab_fn): Same.
17539 * ipa-cp.c (ipa_get_parm_lattices): Same.
17540 (print_all_lattices): Same.
17541 (ignore_edge_p): Same.
17542 (build_toporder_info): Same.
17543 (free_toporder_info): Same.
17544 (push_node_to_stack): Same.
17545 (ipcp_lattice<valtype>::set_contains_variable): Same.
17546 (set_agg_lats_to_bottom): Same.
17547 (ipcp_bits_lattice::meet_with): Same.
17548 (set_single_call_flag): Same.
17549 (initialize_node_lattices): Same.
17550 (ipa_get_jf_ancestor_result): Same.
17551 (ipcp_verify_propagated_values): Same.
17552 (propagate_scalar_across_jump_function): Same.
17553 (propagate_context_across_jump_function): Same.
17554 (propagate_bits_across_jump_function): Same.
17555 (ipa_vr_operation_and_type_effects): Same.
17556 (propagate_vr_across_jump_function): Same.
17557 (set_check_aggs_by_ref): Same.
17558 (set_chain_of_aglats_contains_variable): Same.
17559 (merge_aggregate_lattices): Same.
17560 (agg_pass_through_permissible_p): Same.
17561 (propagate_aggs_across_jump_function): Same.
17562 (call_passes_through_thunk_p): Same.
17563 (propagate_constants_across_call): Same.
17564 (devirtualization_time_bonus): Same.
17565 (good_cloning_opportunity_p): Same.
17566 (context_independent_aggregate_values): Same.
17567 (gather_context_independent_values): Same.
17568 (perform_estimation_of_a_value): Same.
17569 (estimate_local_effects): Same.
17570 (value_topo_info<valtype>::add_val): Same.
17571 (add_all_node_vals_to_toposort): Same.
17572 (value_topo_info<valtype>::propagate_effects): Same.
17573 (ipcp_propagate_stage): Same.
17574 (ipcp_discover_new_direct_edges): Same.
17575 (same_node_or_its_all_contexts_clone_p): Same.
17576 (cgraph_edge_brings_value_p): Same.
17577 (gather_edges_for_value): Same.
17578 (create_specialized_node): Same.
17579 (find_more_scalar_values_for_callers_subset): Same.
17580 (find_more_contexts_for_caller_subset): Same.
17581 (copy_plats_to_inter): Same.
17582 (intersect_aggregates_with_edge): Same.
17583 (find_aggregate_values_for_callers_subset): Same.
17584 (cgraph_edge_brings_all_agg_vals_for_node): Same.
17585 (decide_about_value): Same.
17586 (decide_whether_version_node): Same.
17587 (spread_undeadness): Same.
17588 (identify_dead_nodes): Same.
17589 (ipcp_store_vr_results): Same.
17590 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
17591 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
17592 (redirect_to_unreachable): Same.
17593 (edge_set_predicate): Same.
17594 (evaluate_conditions_for_known_args): Same.
17595 (evaluate_properties_for_edge): Same.
17596 (ipa_fn_summary_t::duplicate): Same.
17597 (ipa_call_summary_t::duplicate): Same.
17598 (dump_ipa_call_summary): Same.
17599 (ipa_dump_fn_summary): Same.
17600 (eliminated_by_inlining_prob): Same.
17601 (set_cond_stmt_execution_predicate): Same.
17602 (set_switch_stmt_execution_predicate): Same.
17603 (compute_bb_predicates): Same.
17604 (will_be_nonconstant_expr_predicate): Same.
17605 (phi_result_unknown_predicate): Same.
17606 (analyze_function_body): Same.
17607 (compute_fn_summary): Same.
17608 (estimate_edge_devirt_benefit): Same.
17609 (estimate_edge_size_and_time): Same.
17610 (estimate_calls_size_and_time): Same.
17611 (estimate_node_size_and_time): Same.
17612 (remap_edge_change_prob): Same.
17613 (remap_edge_summaries): Same.
17614 (ipa_merge_fn_summary_after_inlining): Same.
17615 (ipa_fn_summary_generate): Same.
17616 (inline_read_section): Same.
17617 (ipa_fn_summary_read): Same.
17618 (ipa_fn_summary_write): Same.
17619 * ipa-fnsummary.h: Same.
17620 * ipa-hsa.c (ipa_hsa_read_section): Same.
17621 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
17622 * ipa-icf.c (sem_function::param_used_p): Same.
17623 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
17624 * ipa-inline.c (edge_badness): Same.
17625 (inline_small_functions): Same.
17626 * ipa-polymorphic-call.c
17627 (ipa_polymorphic_call_context::stream_out): Same.
17628 * ipa-predicate.c (predicate::remap_after_duplication): Same.
17629 (predicate::remap_after_inlining): Same.
17630 (predicate::stream_out): Same.
17631 * ipa-predicate.h: Same.
17632 * ipa-profile.c (ipa_profile_read_summary): Same.
17633 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
17634 (count_formal_params): Same.
17635 (ipa_dump_param): Same.
17636 (ipa_alloc_node_params): Same.
17637 (ipa_print_node_jump_functions_for_edge): Same.
17638 (ipa_print_node_jump_functions): Same.
17639 (ipa_load_from_parm_agg): Same.
17640 (get_ancestor_addr_info): Same.
17641 (ipa_compute_jump_functions_for_edge): Same.
17642 (ipa_analyze_virtual_call_uses): Same.
17643 (ipa_analyze_stmt_uses): Same.
17644 (ipa_analyze_params_uses_in_bb): Same.
17645 (update_jump_functions_after_inlining): Same.
17646 (try_decrement_rdesc_refcount): Same.
17647 (ipa_impossible_devirt_target): Same.
17648 (update_indirect_edges_after_inlining): Same.
17649 (combine_controlled_uses_counters): Same.
17650 (ipa_edge_args_sum_t::duplicate): Same.
17651 (ipa_write_jump_function): Same.
17652 (ipa_write_indirect_edge_info): Same.
17653 (ipa_write_node_info): Same.
17654 (ipa_read_edge_info): Same.
17655 (ipa_prop_read_section): Same.
17656 (read_replacements_section): Same.
17657 * ipa-prop.h (ipa_get_param_count): Same.
17658 (ipa_get_param): Same.
17659 (ipa_get_type): Same.
17660 (ipa_get_param_move_cost): Same.
17661 (ipa_set_param_used): Same.
17662 (ipa_get_controlled_uses): Same.
17663 (ipa_set_controlled_uses): Same.
17664 (ipa_get_cs_argument_count): Same.
17665 * ipa-pure-const.c (analyze_function): Same.
17666 (pure_const_read_summary): Same.
17667 * ipa-ref.h: Same.
17668 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
17669 * ipa-split.c (test_nonssa_use): Same.
17670 (dump_split_point): Same.
17671 (dominated_by_forbidden): Same.
17672 (split_part_set_ssa_name_p): Same.
17673 (find_split_points): Same.
17674 * ira-build.c (finish_loop_tree_nodes): Same.
17675 (low_pressure_loop_node_p): Same.
17676 * ira-color.c (ira_reuse_stack_slot): Same.
17677 * ira-int.h: Same.
17678 * ira.c (setup_reg_equiv): Same.
17679 (print_insn_chain): Same.
17680 (ira): Same.
17681 * loop-doloop.c (doloop_condition_get): Same.
17682 (add_test): Same.
17683 (record_reg_sets): Same.
17684 (doloop_optimize): Same.
17685 * loop-init.c (loop_optimizer_init): Same.
17686 (fix_loop_structure): Same.
17687 * loop-invariant.c (merge_identical_invariants): Same.
17688 (compute_always_reached): Same.
17689 (find_exits): Same.
17690 (may_assign_reg_p): Same.
17691 (find_invariants_bb): Same.
17692 (find_invariants_body): Same.
17693 (replace_uses): Same.
17694 (can_move_invariant_reg): Same.
17695 (free_inv_motion_data): Same.
17696 (move_single_loop_invariants): Same.
17697 (change_pressure): Same.
17698 (mark_ref_regs): Same.
17699 (calculate_loop_reg_pressure): Same.
17700 * loop-iv.c (biv_entry_hasher::equal): Same.
17701 (iv_extend_to_rtx_code): Same.
17702 (check_iv_ref_table_size): Same.
17703 (clear_iv_info): Same.
17704 (latch_dominating_def): Same.
17705 (iv_get_reaching_def): Same.
17706 (iv_constant): Same.
17707 (iv_subreg): Same.
17708 (iv_extend): Same.
17709 (iv_neg): Same.
17710 (iv_add): Same.
17711 (iv_mult): Same.
17712 (get_biv_step): Same.
17713 (record_iv): Same.
17714 (analyzed_for_bivness_p): Same.
17715 (record_biv): Same.
17716 (iv_analyze_biv): Same.
17717 (iv_analyze_expr): Same.
17718 (iv_analyze_def): Same.
17719 (iv_analyze_op): Same.
17720 (iv_analyze): Same.
17721 (iv_analyze_result): Same.
17722 (biv_p): Same.
17723 (eliminate_implied_conditions): Same.
17724 (simplify_using_initial_values): Same.
17725 (shorten_into_mode): Same.
17726 (canonicalize_iv_subregs): Same.
17727 (determine_max_iter): Same.
17728 (check_simple_exit): Same.
17729 (find_simple_exit): Same.
17730 (get_simple_loop_desc): Same.
17731 * loop-unroll.c (report_unroll): Same.
17732 (decide_unrolling): Same.
17733 (unroll_loops): Same.
17734 (loop_exit_at_end_p): Same.
17735 (decide_unroll_constant_iterations): Same.
17736 (unroll_loop_constant_iterations): Same.
17737 (compare_and_jump_seq): Same.
17738 (unroll_loop_runtime_iterations): Same.
17739 (decide_unroll_stupid): Same.
17740 (unroll_loop_stupid): Same.
17741 (referenced_in_one_insn_in_loop_p): Same.
17742 (reset_debug_uses_in_loop): Same.
17743 (analyze_iv_to_split_insn): Same.
17744 * lra-eliminations.c (lra_debug_elim_table): Same.
17745 (setup_can_eliminate): Same.
17746 (form_sum): Same.
17747 (lra_get_elimination_hard_regno): Same.
17748 (lra_eliminate_regs_1): Same.
17749 (eliminate_regs_in_insn): Same.
17750 (update_reg_eliminate): Same.
17751 (init_elimination): Same.
17752 (lra_eliminate): Same.
17753 * lra-int.h: Same.
17754 * lra-lives.c (initiate_live_solver): Same.
17755 * lra-remat.c (create_remat_bb_data): Same.
17756 * lra-spills.c (lra_spill): Same.
17757 * lra.c (lra_set_insn_recog_data): Same.
17758 (lra_set_used_insn_alternative_by_uid): Same.
17759 (init_reg_info): Same.
17760 (expand_reg_info): Same.
17761 * lto-cgraph.c (output_symtab): Same.
17762 (read_identifier): Same.
17763 (get_alias_symbol): Same.
17764 (input_node): Same.
17765 (input_varpool_node): Same.
17766 (input_ref): Same.
17767 (input_edge): Same.
17768 (input_cgraph_1): Same.
17769 (input_refs): Same.
17770 (input_symtab): Same.
17771 (input_offload_tables): Same.
17772 (output_cgraph_opt_summary): Same.
17773 (input_edge_opt_summary): Same.
17774 (input_cgraph_opt_section): Same.
17775 * lto-section-in.c (lto_free_raw_section_data): Same.
17776 (lto_create_simple_input_block): Same.
17777 (lto_free_function_in_decl_state_for_node): Same.
17778 * lto-streamer-in.c (lto_tag_check_set): Same.
17779 (lto_location_cache::revert_location_cache): Same.
17780 (lto_location_cache::input_location): Same.
17781 (lto_input_location): Same.
17782 (stream_input_location_now): Same.
17783 (lto_input_tree_ref): Same.
17784 (lto_input_eh_catch_list): Same.
17785 (input_eh_region): Same.
17786 (lto_init_eh): Same.
17787 (make_new_block): Same.
17788 (input_cfg): Same.
17789 (fixup_call_stmt_edges): Same.
17790 (input_struct_function_base): Same.
17791 (input_function): Same.
17792 (lto_read_body_or_constructor): Same.
17793 (lto_read_tree_1): Same.
17794 (lto_read_tree): Same.
17795 (lto_input_scc): Same.
17796 (lto_input_tree_1): Same.
17797 (lto_input_toplevel_asms): Same.
17798 (lto_input_mode_table): Same.
17799 (lto_reader_init): Same.
17800 (lto_data_in_create): Same.
17801 * lto-streamer-out.c (output_cfg): Same.
17802 * lto-streamer.h: Same.
17803 * modulo-sched.c (duplicate_insns_of_cycles): Same.
17804 (generate_prolog_epilog): Same.
17805 (mark_loop_unsched): Same.
17806 (dump_insn_location): Same.
17807 (loop_canon_p): Same.
17808 (sms_schedule): Same.
17809 * omp-expand.c (expand_omp_for_ordered_loops): Same.
17810 (expand_omp_for_generic): Same.
17811 (expand_omp_for_static_nochunk): Same.
17812 (expand_omp_for_static_chunk): Same.
17813 (expand_omp_simd): Same.
17814 (expand_omp_taskloop_for_inner): Same.
17815 (expand_oacc_for): Same.
17816 (expand_omp_atomic_pipeline): Same.
17817 (mark_loops_in_oacc_kernels_region): Same.
17818 * omp-offload.c (oacc_xform_loop): Same.
17819 * omp-simd-clone.c (simd_clone_adjust): Same.
17820 * optabs-query.c (get_traditional_extraction_insn): Same.
17821 * optabs.c (expand_vector_broadcast): Same.
17822 (expand_binop_directly): Same.
17823 (expand_twoval_unop): Same.
17824 (expand_twoval_binop): Same.
17825 (expand_unop_direct): Same.
17826 (emit_indirect_jump): Same.
17827 (emit_conditional_move): Same.
17828 (emit_conditional_neg_or_complement): Same.
17829 (emit_conditional_add): Same.
17830 (vector_compare_rtx): Same.
17831 (expand_vec_perm_1): Same.
17832 (expand_vec_perm_const): Same.
17833 (expand_vec_cond_expr): Same.
17834 (expand_vec_series_expr): Same.
17835 (maybe_emit_atomic_exchange): Same.
17836 (maybe_emit_sync_lock_test_and_set): Same.
17837 (expand_atomic_compare_and_swap): Same.
17838 (expand_atomic_load): Same.
17839 (expand_atomic_store): Same.
17840 (maybe_emit_op): Same.
17841 (valid_multiword_target_p): Same.
17842 (create_integer_operand): Same.
17843 (maybe_legitimize_operand_same_code): Same.
17844 (maybe_legitimize_operand): Same.
17845 (create_convert_operand_from_type): Same.
17846 (can_reuse_operands_p): Same.
17847 (maybe_legitimize_operands): Same.
17848 (maybe_gen_insn): Same.
17849 (maybe_expand_insn): Same.
17850 (maybe_expand_jump_insn): Same.
17851 (expand_insn): Same.
17852 * optabs.h (create_expand_operand): Same.
17853 (create_fixed_operand): Same.
17854 (create_output_operand): Same.
17855 (create_input_operand): Same.
17856 (create_convert_operand_to): Same.
17857 (create_convert_operand_from): Same.
17858 * optinfo.h: Same.
17859 * poly-int.h: Same.
17860 * predict.c (optimize_insn_for_speed_p): Same.
17861 (optimize_loop_for_size_p): Same.
17862 (optimize_loop_for_speed_p): Same.
17863 (optimize_loop_nest_for_speed_p): Same.
17864 (get_base_value): Same.
17865 (predicted_by_loop_heuristics_p): Same.
17866 (predict_extra_loop_exits): Same.
17867 (predict_loops): Same.
17868 (predict_paths_for_bb): Same.
17869 (predict_paths_leading_to): Same.
17870 (propagate_freq): Same.
17871 (pass_profile::execute): Same.
17872 * predict.h: Same.
17873 * profile-count.c (profile_count::differs_from_p): Same.
17874 (profile_probability::differs_lot_from_p): Same.
17875 * profile-count.h: Same.
17876 * profile.c (branch_prob): Same.
17877 * regrename.c (free_chain_data): Same.
17878 (mark_conflict): Same.
17879 (create_new_chain): Same.
17880 (merge_overlapping_regs): Same.
17881 (init_rename_info): Same.
17882 (merge_chains): Same.
17883 (regrename_analyze): Same.
17884 (regrename_do_replace): Same.
17885 (scan_rtx_reg): Same.
17886 (record_out_operands): Same.
17887 (build_def_use): Same.
17888 * regrename.h: Same.
17889 * reload.h: Same.
17890 * reload1.c (init_reload): Same.
17891 (maybe_fix_stack_asms): Same.
17892 (copy_reloads): Same.
17893 (count_pseudo): Same.
17894 (count_spilled_pseudo): Same.
17895 (find_reg): Same.
17896 (find_reload_regs): Same.
17897 (select_reload_regs): Same.
17898 (spill_hard_reg): Same.
17899 (fixup_eh_region_note): Same.
17900 (set_reload_reg): Same.
17901 (allocate_reload_reg): Same.
17902 (compute_reload_subreg_offset): Same.
17903 (reload_adjust_reg_for_icode): Same.
17904 (emit_input_reload_insns): Same.
17905 (emit_output_reload_insns): Same.
17906 (do_input_reload): Same.
17907 (inherit_piecemeal_p): Same.
17908 * rtl.h: Same.
17909 * sanopt.c (maybe_get_dominating_check): Same.
17910 (maybe_optimize_ubsan_ptr_ifn): Same.
17911 (can_remove_asan_check): Same.
17912 (maybe_optimize_asan_check_ifn): Same.
17913 (sanopt_optimize_walker): Same.
17914 * sched-deps.c (add_dependence_list): Same.
17915 (chain_to_prev_insn): Same.
17916 (add_insn_mem_dependence): Same.
17917 (create_insn_reg_set): Same.
17918 (maybe_extend_reg_info_p): Same.
17919 (sched_analyze_reg): Same.
17920 (sched_analyze_1): Same.
17921 (get_implicit_reg_pending_clobbers): Same.
17922 (chain_to_prev_insn_p): Same.
17923 (deps_analyze_insn): Same.
17924 (deps_start_bb): Same.
17925 (sched_free_deps): Same.
17926 (init_deps): Same.
17927 (init_deps_reg_last): Same.
17928 (free_deps): Same.
17929 * sched-ebb.c: Same.
17930 * sched-int.h: Same.
17931 * sched-rgn.c (add_branch_dependences): Same.
17932 (concat_insn_mem_list): Same.
17933 (deps_join): Same.
17934 (sched_rgn_compute_dependencies): Same.
17935 * sel-sched-ir.c (reset_target_context): Same.
17936 (copy_deps_context): Same.
17937 (init_id_from_df): Same.
17938 (has_dependence_p): Same.
17939 (change_loops_latches): Same.
17940 (bb_top_order_comparator): Same.
17941 (make_region_from_loop_preheader): Same.
17942 (sel_init_pipelining): Same.
17943 (get_loop_nest_for_rgn): Same.
17944 (make_regions_from_the_rest): Same.
17945 (sel_is_loop_preheader_p): Same.
17946 * sel-sched-ir.h (inner_loop_header_p): Same.
17947 (get_all_loop_exits): Same.
17948 * selftest.h: Same.
17949 * sese.c (sese_build_liveouts): Same.
17950 (sese_insert_phis_for_liveouts): Same.
17951 * sese.h (defined_in_sese_p): Same.
17952 * sreal.c (sreal::stream_out): Same.
17953 * sreal.h: Same.
17954 * streamer-hooks.h: Same.
17955 * target-globals.c (save_target_globals): Same.
17956 * target-globals.h: Same.
17957 * target.def: Same.
17958 * target.h: Same.
17959 * targhooks.c (default_has_ifunc_p): Same.
17960 (default_empty_mask_is_expensive): Same.
17961 (default_init_cost): Same.
17962 * targhooks.h: Same.
17963 * toplev.c: Same.
17964 * tree-affine.c (aff_combination_mult): Same.
17965 (aff_combination_expand): Same.
17966 (aff_combination_constant_multiple_p): Same.
17967 * tree-affine.h: Same.
17968 * tree-cfg.c (build_gimple_cfg): Same.
17969 (replace_loop_annotate_in_block): Same.
17970 (replace_uses_by): Same.
17971 (remove_bb): Same.
17972 (dump_cfg_stats): Same.
17973 (gimple_duplicate_sese_region): Same.
17974 (gimple_duplicate_sese_tail): Same.
17975 (move_block_to_fn): Same.
17976 (replace_block_vars_by_duplicates): Same.
17977 (move_sese_region_to_fn): Same.
17978 (print_loops_bb): Same.
17979 (print_loop): Same.
17980 (print_loops): Same.
17981 (debug): Same.
17982 (debug_loops): Same.
17983 * tree-cfg.h: Same.
17984 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
17985 (chrec_fold_multiply_poly_poly): Same.
17986 (chrec_evaluate): Same.
17987 (chrec_component_in_loop_num): Same.
17988 (reset_evolution_in_loop): Same.
17989 (is_multivariate_chrec): Same.
17990 (chrec_contains_symbols): Same.
17991 (nb_vars_in_chrec): Same.
17992 (chrec_convert_1): Same.
17993 (chrec_convert_aggressive): Same.
17994 * tree-chrec.h: Same.
17995 * tree-core.h: Same.
17996 * tree-data-ref.c (dump_data_dependence_relation): Same.
17997 (canonicalize_base_object_address): Same.
17998 (data_ref_compare_tree): Same.
17999 (prune_runtime_alias_test_list): Same.
18000 (get_segment_min_max): Same.
18001 (create_intersect_range_checks): Same.
18002 (conflict_fn_no_dependence): Same.
18003 (object_address_invariant_in_loop_p): Same.
18004 (analyze_ziv_subscript): Same.
18005 (analyze_siv_subscript_cst_affine): Same.
18006 (analyze_miv_subscript): Same.
18007 (analyze_overlapping_iterations): Same.
18008 (build_classic_dist_vector_1): Same.
18009 (add_other_self_distances): Same.
18010 (same_access_functions): Same.
18011 (build_classic_dir_vector): Same.
18012 (subscript_dependence_tester_1): Same.
18013 (subscript_dependence_tester): Same.
18014 (access_functions_are_affine_or_constant_p): Same.
18015 (get_references_in_stmt): Same.
18016 (loop_nest_has_data_refs): Same.
18017 (graphite_find_data_references_in_stmt): Same.
18018 (find_data_references_in_bb): Same.
18019 (get_base_for_alignment): Same.
18020 (find_loop_nest_1): Same.
18021 (find_loop_nest): Same.
18022 * tree-data-ref.h (dr_alignment): Same.
18023 (ddr_dependence_level): Same.
18024 * tree-if-conv.c (fold_build_cond_expr): Same.
18025 (add_to_predicate_list): Same.
18026 (add_to_dst_predicate_list): Same.
18027 (phi_convertible_by_degenerating_args): Same.
18028 (idx_within_array_bound): Same.
18029 (all_preds_critical_p): Same.
18030 (pred_blocks_visited_p): Same.
18031 (predicate_bbs): Same.
18032 (build_region): Same.
18033 (if_convertible_loop_p_1): Same.
18034 (is_cond_scalar_reduction): Same.
18035 (predicate_scalar_phi): Same.
18036 (remove_conditions_and_labels): Same.
18037 (combine_blocks): Same.
18038 (version_loop_for_if_conversion): Same.
18039 (versionable_outer_loop_p): Same.
18040 (ifcvt_local_dce): Same.
18041 (tree_if_conversion): Same.
18042 (pass_if_conversion::gate): Same.
18043 * tree-if-conv.h: Same.
18044 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
18045 * tree-loop-distribution.c (bb_top_order_cmp): Same.
18046 (free_rdg): Same.
18047 (stmt_has_scalar_dependences_outside_loop): Same.
18048 (copy_loop_before): Same.
18049 (create_bb_after_loop): Same.
18050 (const_with_all_bytes_same): Same.
18051 (generate_memset_builtin): Same.
18052 (generate_memcpy_builtin): Same.
18053 (destroy_loop): Same.
18054 (build_rdg_partition_for_vertex): Same.
18055 (compute_access_range): Same.
18056 (data_ref_segment_size): Same.
18057 (latch_dominated_by_data_ref): Same.
18058 (compute_alias_check_pairs): Same.
18059 (fuse_memset_builtins): Same.
18060 (finalize_partitions): Same.
18061 (find_seed_stmts_for_distribution): Same.
18062 (prepare_perfect_loop_nest): Same.
18063 * tree-parloops.c (lambda_transform_legal_p): Same.
18064 (loop_parallel_p): Same.
18065 (reduc_stmt_res): Same.
18066 (add_field_for_name): Same.
18067 (create_call_for_reduction_1): Same.
18068 (replace_uses_in_bb_by): Same.
18069 (transform_to_exit_first_loop_alt): Same.
18070 (try_transform_to_exit_first_loop_alt): Same.
18071 (transform_to_exit_first_loop): Same.
18072 (num_phis): Same.
18073 (gen_parallel_loop): Same.
18074 (gather_scalar_reductions): Same.
18075 (get_omp_data_i_param): Same.
18076 (try_create_reduction_list): Same.
18077 (oacc_entry_exit_single_gang): Same.
18078 (parallelize_loops): Same.
18079 * tree-pass.h: Same.
18080 * tree-predcom.c (determine_offset): Same.
18081 (last_always_executed_block): Same.
18082 (split_data_refs_to_components): Same.
18083 (suitable_component_p): Same.
18084 (valid_initializer_p): Same.
18085 (find_looparound_phi): Same.
18086 (insert_looparound_copy): Same.
18087 (add_looparound_copies): Same.
18088 (determine_roots_comp): Same.
18089 (predcom_tmp_var): Same.
18090 (initialize_root_vars): Same.
18091 (initialize_root_vars_store_elim_1): Same.
18092 (initialize_root_vars_store_elim_2): Same.
18093 (finalize_eliminated_stores): Same.
18094 (initialize_root_vars_lm): Same.
18095 (remove_stmt): Same.
18096 (determine_unroll_factor): Same.
18097 (execute_pred_commoning_cbck): Same.
18098 (base_names_in_chain_on): Same.
18099 (combine_chains): Same.
18100 (pcom_stmt_dominates_stmt_p): Same.
18101 (try_combine_chains): Same.
18102 (prepare_initializers_chain_store_elim): Same.
18103 (prepare_initializers_chain): Same.
18104 (prepare_initializers): Same.
18105 (prepare_finalizers_chain): Same.
18106 (prepare_finalizers): Same.
18107 (insert_init_seqs): Same.
18108 * tree-scalar-evolution.c (loop_phi_node_p): Same.
18109 (compute_overall_effect_of_inner_loop): Same.
18110 (add_to_evolution_1): Same.
18111 (add_to_evolution): Same.
18112 (follow_ssa_edge_binary): Same.
18113 (follow_ssa_edge_expr): Same.
18114 (backedge_phi_arg_p): Same.
18115 (follow_ssa_edge_in_condition_phi_branch): Same.
18116 (follow_ssa_edge_in_condition_phi): Same.
18117 (follow_ssa_edge_inner_loop_phi): Same.
18118 (follow_ssa_edge): Same.
18119 (analyze_evolution_in_loop): Same.
18120 (analyze_initial_condition): Same.
18121 (interpret_loop_phi): Same.
18122 (interpret_condition_phi): Same.
18123 (interpret_rhs_expr): Same.
18124 (interpret_expr): Same.
18125 (interpret_gimple_assign): Same.
18126 (analyze_scalar_evolution_1): Same.
18127 (analyze_scalar_evolution): Same.
18128 (analyze_scalar_evolution_for_address_of): Same.
18129 (get_instantiated_value_entry): Same.
18130 (loop_closed_phi_def): Same.
18131 (instantiate_scev_name): Same.
18132 (instantiate_scev_poly): Same.
18133 (instantiate_scev_binary): Same.
18134 (instantiate_scev_convert): Same.
18135 (instantiate_scev_not): Same.
18136 (instantiate_scev_r): Same.
18137 (instantiate_scev): Same.
18138 (resolve_mixers): Same.
18139 (initialize_scalar_evolutions_analyzer): Same.
18140 (scev_reset_htab): Same.
18141 (scev_reset): Same.
18142 (derive_simple_iv_with_niters): Same.
18143 (simple_iv_with_niters): Same.
18144 (expression_expensive_p): Same.
18145 (final_value_replacement_loop): Same.
18146 * tree-scalar-evolution.h (block_before_loop): Same.
18147 * tree-ssa-address.h: Same.
18148 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
18149 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
18150 (record_edge_info): Same.
18151 * tree-ssa-live.c (var_map_base_fini): Same.
18152 (remove_unused_locals): Same.
18153 * tree-ssa-live.h: Same.
18154 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
18155 (pass_ch_vect::execute): Same.
18156 (pass_ch::process_loop_p): Same.
18157 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
18158 (movement_possibility): Same.
18159 (outermost_invariant_loop): Same.
18160 (stmt_cost): Same.
18161 (determine_max_movement): Same.
18162 (invariantness_dom_walker::before_dom_children): Same.
18163 (move_computations): Same.
18164 (may_move_till): Same.
18165 (force_move_till_op): Same.
18166 (force_move_till): Same.
18167 (memref_free): Same.
18168 (record_mem_ref_loc): Same.
18169 (set_ref_stored_in_loop): Same.
18170 (mark_ref_stored): Same.
18171 (sort_bbs_in_loop_postorder_cmp): Same.
18172 (sort_locs_in_loop_postorder_cmp): Same.
18173 (analyze_memory_references): Same.
18174 (mem_refs_may_alias_p): Same.
18175 (find_ref_loc_in_loop_cmp): Same.
18176 (rewrite_mem_ref_loc::operator): Same.
18177 (first_mem_ref_loc_1::operator): Same.
18178 (sm_set_flag_if_changed::operator): Same.
18179 (execute_sm_if_changed_flag_set): Same.
18180 (execute_sm): Same.
18181 (hoist_memory_references): Same.
18182 (ref_always_accessed::operator): Same.
18183 (refs_independent_p): Same.
18184 (record_dep_loop): Same.
18185 (ref_indep_loop_p_1): Same.
18186 (ref_indep_loop_p): Same.
18187 (can_sm_ref_p): Same.
18188 (find_refs_for_sm): Same.
18189 (loop_suitable_for_sm): Same.
18190 (store_motion_loop): Same.
18191 (store_motion): Same.
18192 (fill_always_executed_in): Same.
18193 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18194 (estimated_unrolled_size): Same.
18195 (loop_edge_to_cancel): Same.
18196 (remove_exits_and_undefined_stmts): Same.
18197 (remove_redundant_iv_tests): Same.
18198 (unloop_loops): Same.
18199 (estimated_peeled_sequence_size): Same.
18200 (try_peel_loop): Same.
18201 (canonicalize_loop_induction_variables): Same.
18202 (canonicalize_induction_variables): Same.
18203 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18204 (name_info): Same.
18205 (stmt_after_inc_pos): Same.
18206 (contains_abnormal_ssa_name_p): Same.
18207 (niter_for_exit): Same.
18208 (find_bivs): Same.
18209 (mark_bivs): Same.
18210 (find_givs_in_bb): Same.
18211 (find_induction_variables): Same.
18212 (find_interesting_uses_cond): Same.
18213 (outermost_invariant_loop_for_expr): Same.
18214 (idx_find_step): Same.
18215 (add_candidate_1): Same.
18216 (add_iv_candidate_derived_from_uses): Same.
18217 (alloc_use_cost_map): Same.
18218 (prepare_decl_rtl): Same.
18219 (generic_predict_doloop_p): Same.
18220 (computation_cost): Same.
18221 (determine_common_wider_type): Same.
18222 (get_computation_aff_1): Same.
18223 (get_use_type): Same.
18224 (determine_group_iv_cost_address): Same.
18225 (iv_period): Same.
18226 (difference_cannot_overflow_p): Same.
18227 (may_eliminate_iv): Same.
18228 (determine_set_costs): Same.
18229 (cheaper_cost_pair): Same.
18230 (compare_cost_pair): Same.
18231 (iv_ca_cand_for_group): Same.
18232 (iv_ca_recount_cost): Same.
18233 (iv_ca_set_remove_invs): Same.
18234 (iv_ca_set_no_cp): Same.
18235 (iv_ca_set_add_invs): Same.
18236 (iv_ca_set_cp): Same.
18237 (iv_ca_add_group): Same.
18238 (iv_ca_cost): Same.
18239 (iv_ca_compare_deps): Same.
18240 (iv_ca_delta_reverse): Same.
18241 (iv_ca_delta_commit): Same.
18242 (iv_ca_cand_used_p): Same.
18243 (iv_ca_delta_free): Same.
18244 (iv_ca_new): Same.
18245 (iv_ca_free): Same.
18246 (iv_ca_dump): Same.
18247 (iv_ca_extend): Same.
18248 (iv_ca_narrow): Same.
18249 (iv_ca_prune): Same.
18250 (cheaper_cost_with_cand): Same.
18251 (iv_ca_replace): Same.
18252 (try_add_cand_for): Same.
18253 (get_initial_solution): Same.
18254 (try_improve_iv_set): Same.
18255 (find_optimal_iv_set_1): Same.
18256 (create_new_iv): Same.
18257 (rewrite_use_compare): Same.
18258 (remove_unused_ivs): Same.
18259 (determine_scaling_factor): Same.
18260 * tree-ssa-loop-ivopts.h: Same.
18261 * tree-ssa-loop-manip.c (create_iv): Same.
18262 (compute_live_loop_exits): Same.
18263 (add_exit_phi): Same.
18264 (add_exit_phis): Same.
18265 (find_uses_to_rename_use): Same.
18266 (find_uses_to_rename_def): Same.
18267 (find_uses_to_rename_in_loop): Same.
18268 (rewrite_into_loop_closed_ssa): Same.
18269 (check_loop_closed_ssa_bb): Same.
18270 (split_loop_exit_edge): Same.
18271 (ip_end_pos): Same.
18272 (ip_normal_pos): Same.
18273 (copy_phi_node_args): Same.
18274 (gimple_duplicate_loop_to_header_edge): Same.
18275 (can_unroll_loop_p): Same.
18276 (determine_exit_conditions): Same.
18277 (scale_dominated_blocks_in_loop): Same.
18278 (niter_for_unrolled_loop): Same.
18279 (tree_transform_and_unroll_loop): Same.
18280 (rewrite_all_phi_nodes_with_iv): Same.
18281 * tree-ssa-loop-manip.h: Same.
18282 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
18283 (number_of_iterations_ne): Same.
18284 (assert_no_overflow_lt): Same.
18285 (assert_loop_rolls_lt): Same.
18286 (number_of_iterations_lt): Same.
18287 (adjust_cond_for_loop_until_wrap): Same.
18288 (tree_simplify_using_condition): Same.
18289 (simplify_using_initial_conditions): Same.
18290 (simplify_using_outer_evolutions): Same.
18291 (loop_only_exit_p): Same.
18292 (ssa_defined_by_minus_one_stmt_p): Same.
18293 (number_of_iterations_popcount): Same.
18294 (number_of_iterations_exit): Same.
18295 (find_loop_niter): Same.
18296 (finite_loop_p): Same.
18297 (chain_of_csts_start): Same.
18298 (get_val_for): Same.
18299 (loop_niter_by_eval): Same.
18300 (derive_constant_upper_bound_ops): Same.
18301 (do_warn_aggressive_loop_optimizations): Same.
18302 (record_estimate): Same.
18303 (get_cst_init_from_scev): Same.
18304 (record_nonwrapping_iv): Same.
18305 (idx_infer_loop_bounds): Same.
18306 (infer_loop_bounds_from_ref): Same.
18307 (infer_loop_bounds_from_array): Same.
18308 (infer_loop_bounds_from_pointer_arith): Same.
18309 (infer_loop_bounds_from_signedness): Same.
18310 (bound_index): Same.
18311 (discover_iteration_bound_by_body_walk): Same.
18312 (maybe_lower_iteration_bound): Same.
18313 (estimate_numbers_of_iterations): Same.
18314 (estimated_loop_iterations): Same.
18315 (estimated_loop_iterations_int): Same.
18316 (max_loop_iterations): Same.
18317 (max_loop_iterations_int): Same.
18318 (likely_max_loop_iterations): Same.
18319 (likely_max_loop_iterations_int): Same.
18320 (estimated_stmt_executions_int): Same.
18321 (max_stmt_executions): Same.
18322 (likely_max_stmt_executions): Same.
18323 (estimated_stmt_executions): Same.
18324 (stmt_dominates_stmt_p): Same.
18325 (nowrap_type_p): Same.
18326 (loop_exits_before_overflow): Same.
18327 (scev_var_range_cant_overflow): Same.
18328 (scev_probably_wraps_p): Same.
18329 (free_numbers_of_iterations_estimates): Same.
18330 * tree-ssa-loop-niter.h: Same.
18331 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
18332 (idx_analyze_ref): Same.
18333 (analyze_ref): Same.
18334 (gather_memory_references_ref): Same.
18335 (mark_nontemporal_store): Same.
18336 (emit_mfence_after_loop): Same.
18337 (may_use_storent_in_loop_p): Same.
18338 (mark_nontemporal_stores): Same.
18339 (should_unroll_loop_p): Same.
18340 (volume_of_dist_vector): Same.
18341 (add_subscript_strides): Same.
18342 (self_reuse_distance): Same.
18343 (insn_to_prefetch_ratio_too_small_p): Same.
18344 * tree-ssa-loop-split.c (split_at_bb_p): Same.
18345 (patch_loop_exit): Same.
18346 (find_or_create_guard_phi): Same.
18347 (easy_exit_values): Same.
18348 (connect_loop_phis): Same.
18349 (connect_loops): Same.
18350 (compute_new_first_bound): Same.
18351 (split_loop): Same.
18352 (tree_ssa_split_loops): Same.
18353 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
18354 (is_maybe_undefined): Same.
18355 (tree_may_unswitch_on): Same.
18356 (simplify_using_entry_checks): Same.
18357 (tree_unswitch_single_loop): Same.
18358 (tree_unswitch_loop): Same.
18359 (tree_unswitch_outer_loop): Same.
18360 (empty_bb_without_guard_p): Same.
18361 (used_outside_loop_p): Same.
18362 (get_vop_from_header): Same.
18363 (hoist_guard): Same.
18364 * tree-ssa-loop.c (gate_oacc_kernels): Same.
18365 (get_lsm_tmp_name): Same.
18366 * tree-ssa-loop.h: Same.
18367 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
18368 (build_and_add_sum): Same.
18369 (no_side_effect_bb): Same.
18370 (get_ops): Same.
18371 (linearize_expr): Same.
18372 (should_break_up_subtract): Same.
18373 (linearize_expr_tree): Same.
18374 * tree-ssa-scopedtables.c: Same.
18375 * tree-ssa-scopedtables.h: Same.
18376 * tree-ssa-structalias.c (condense_visit): Same.
18377 (label_visit): Same.
18378 (dump_pred_graph): Same.
18379 (perform_var_substitution): Same.
18380 (move_complex_constraints): Same.
18381 (remove_preds_and_fake_succs): Same.
18382 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
18383 (determine_bb_domination_status): Same.
18384 (duplicate_thread_path): Same.
18385 (thread_through_all_blocks): Same.
18386 * tree-ssa-threadupdate.h: Same.
18387 * tree-streamer-in.c (streamer_read_string_cst): Same.
18388 (input_identifier): Same.
18389 (unpack_ts_type_common_value_fields): Same.
18390 (unpack_ts_block_value_fields): Same.
18391 (unpack_ts_translation_unit_decl_value_fields): Same.
18392 (unpack_ts_omp_clause_value_fields): Same.
18393 (streamer_read_tree_bitfields): Same.
18394 (streamer_alloc_tree): Same.
18395 (lto_input_ts_common_tree_pointers): Same.
18396 (lto_input_ts_vector_tree_pointers): Same.
18397 (lto_input_ts_poly_tree_pointers): Same.
18398 (lto_input_ts_complex_tree_pointers): Same.
18399 (lto_input_ts_decl_minimal_tree_pointers): Same.
18400 (lto_input_ts_decl_common_tree_pointers): Same.
18401 (lto_input_ts_decl_non_common_tree_pointers): Same.
18402 (lto_input_ts_decl_with_vis_tree_pointers): Same.
18403 (lto_input_ts_field_decl_tree_pointers): Same.
18404 (lto_input_ts_function_decl_tree_pointers): Same.
18405 (lto_input_ts_type_common_tree_pointers): Same.
18406 (lto_input_ts_type_non_common_tree_pointers): Same.
18407 (lto_input_ts_list_tree_pointers): Same.
18408 (lto_input_ts_vec_tree_pointers): Same.
18409 (lto_input_ts_exp_tree_pointers): Same.
18410 (lto_input_ts_block_tree_pointers): Same.
18411 (lto_input_ts_binfo_tree_pointers): Same.
18412 (lto_input_ts_constructor_tree_pointers): Same.
18413 (lto_input_ts_omp_clause_tree_pointers): Same.
18414 (streamer_read_tree_body): Same.
18415 * tree-streamer.h: Same.
18416 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
18417 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
18418 (vect_analyze_possibly_independent_ddr): Same.
18419 (vect_analyze_data_ref_dependence): Same.
18420 (vect_compute_data_ref_alignment): Same.
18421 (vect_enhance_data_refs_alignment): Same.
18422 (vect_analyze_data_ref_access): Same.
18423 (vect_check_gather_scatter): Same.
18424 (vect_find_stmt_data_reference): Same.
18425 (vect_create_addr_base_for_vector_ref): Same.
18426 (vect_setup_realignment): Same.
18427 (vect_supportable_dr_alignment): Same.
18428 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
18429 (adjust_phi_and_debug_stmts): Same.
18430 (vect_set_loop_mask): Same.
18431 (add_preheader_seq): Same.
18432 (vect_maybe_permute_loop_masks): Same.
18433 (vect_set_loop_masks_directly): Same.
18434 (vect_set_loop_condition_masked): Same.
18435 (vect_set_loop_condition_unmasked): Same.
18436 (slpeel_duplicate_current_defs_from_edges): Same.
18437 (slpeel_add_loop_guard): Same.
18438 (slpeel_can_duplicate_loop_p): Same.
18439 (create_lcssa_for_virtual_phi): Same.
18440 (iv_phi_p): Same.
18441 (vect_update_ivs_after_vectorizer): Same.
18442 (vect_gen_vector_loop_niters_mult_vf): Same.
18443 (slpeel_update_phi_nodes_for_loops): Same.
18444 (slpeel_update_phi_nodes_for_guard1): Same.
18445 (find_guard_arg): Same.
18446 (slpeel_update_phi_nodes_for_guard2): Same.
18447 (slpeel_update_phi_nodes_for_lcssa): Same.
18448 (vect_do_peeling): Same.
18449 (vect_create_cond_for_alias_checks): Same.
18450 (vect_loop_versioning): Same.
18451 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
18452 (vect_inner_phi_in_double_reduction_p): Same.
18453 (vect_analyze_scalar_cycles_1): Same.
18454 (vect_fixup_scalar_cycles_with_patterns): Same.
18455 (vect_get_loop_niters): Same.
18456 (bb_in_loop_p): Same.
18457 (vect_get_max_nscalars_per_iter): Same.
18458 (vect_verify_full_masking): Same.
18459 (vect_compute_single_scalar_iteration_cost): Same.
18460 (vect_analyze_loop_form_1): Same.
18461 (vect_analyze_loop_form): Same.
18462 (vect_active_double_reduction_p): Same.
18463 (vect_analyze_loop_operations): Same.
18464 (neutral_op_for_slp_reduction): Same.
18465 (vect_is_simple_reduction): Same.
18466 (vect_model_reduction_cost): Same.
18467 (get_initial_def_for_reduction): Same.
18468 (get_initial_defs_for_reduction): Same.
18469 (vect_create_epilog_for_reduction): Same.
18470 (vectorize_fold_left_reduction): Same.
18471 (vectorizable_reduction): Same.
18472 (vectorizable_induction): Same.
18473 (vectorizable_live_operation): Same.
18474 (loop_niters_no_overflow): Same.
18475 (vect_get_loop_mask): Same.
18476 (vect_transform_loop_stmt): Same.
18477 (vect_transform_loop): Same.
18478 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
18479 (vect_determine_precisions): Same.
18480 (vect_pattern_recog_1): Same.
18481 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
18482 * tree-vect-stmts.c (stmt_vectype): Same.
18483 (process_use): Same.
18484 (vect_init_vector_1): Same.
18485 (vect_truncate_gather_scatter_offset): Same.
18486 (get_group_load_store_type): Same.
18487 (vect_build_gather_load_calls): Same.
18488 (vect_get_strided_load_store_ops): Same.
18489 (vectorizable_simd_clone_call): Same.
18490 (vectorizable_store): Same.
18491 (permute_vec_elements): Same.
18492 (vectorizable_load): Same.
18493 (vect_transform_stmt): Same.
18494 (supportable_widening_operation): Same.
18495 * tree-vectorizer.c (vec_info::replace_stmt): Same.
18496 (vec_info::free_stmt_vec_info): Same.
18497 (vect_free_loop_info_assumptions): Same.
18498 (vect_loop_vectorized_call): Same.
18499 (set_uid_loop_bbs): Same.
18500 (vectorize_loops): Same.
18501 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
18502 * tree.c (add_tree_to_fld_list): Same.
18503 (fld_type_variant_equal_p): Same.
18504 (fld_decl_context): Same.
18505 (fld_incomplete_type_of): Same.
18506 (free_lang_data_in_binfo): Same.
18507 (need_assembler_name_p): Same.
18508 (find_decls_types_r): Same.
18509 (get_eh_types_for_runtime): Same.
18510 (find_decls_types_in_eh_region): Same.
18511 (find_decls_types_in_node): Same.
18512 (assign_assembler_name_if_needed): Same.
18513 * value-prof.c (stream_out_histogram_value): Same.
18514 * value-prof.h: Same.
18515 * var-tracking.c (use_narrower_mode): Same.
18516 (prepare_call_arguments): Same.
18517 (vt_expand_loc_callback): Same.
18518 (resolve_expansions_pending_recursion): Same.
18519 (vt_expand_loc): Same.
18520 * varasm.c (const_hash_1): Same.
18521 (compare_constant): Same.
18522 (tree_output_constant_def): Same.
18523 (simplify_subtraction): Same.
18524 (get_pool_constant): Same.
18525 (output_constant_pool_2): Same.
18526 (output_constant_pool_1): Same.
18527 (mark_constants_in_pattern): Same.
18528 (mark_constant_pool): Same.
18529 (get_section_anchor): Same.
18530 * vr-values.c (compare_range_with_value): Same.
18531 (vr_values::extract_range_from_phi_node): Same.
18532 * vr-values.h: Same.
18533 * web.c (unionfind_union): Same.
18534 * wide-int.h: Same.
18535
18536 2019-07-09 Martin Sebor <msebor@redhat.com>
18537
18538 PR c++/61339
18539 * align.h: Change class-key from class to struct and vice versa
18540 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
18541 * alloc-pool.h: Same.
18542 * asan.c (shadow_mem_size): Same.
18543 * auto-profile.c: Same.
18544 * basic-block.h: Same.
18545 * bitmap.h: Same.
18546 * cfgexpand.c (set_rtl): Same.
18547 (expand_one_stack_var_at): Same.
18548 * cfghooks.h: Same.
18549 * cfgloop.h: Same.
18550 * cgraph.h: Same.
18551 * config/i386/i386.h: Same.
18552 * df-problems.c (df_print_bb_index): Same.
18553 * df-scan.c: Same.
18554 * df.h (df_single_use): Same.
18555 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
18556 (layout::annotation_line_showed_range_p): Same.
18557 (get_printed_columns): Same.
18558 (correction::ensure_terminated): Same.
18559 (line_corrections::~line_corrections): Same.
18560 * dojump.h: Same.
18561 * dse.c: Same.
18562 * dump-context.h: Same.
18563 * dumpfile.h: Same.
18564 * dwarf2out.c: Same.
18565 * edit-context.c: Same.
18566 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
18567 * flags.h: Same.
18568 * function.c (assign_stack_local): Same.
18569 * function.h: Same.
18570 * gcc.c: Same.
18571 * gcov.c (block_info::block_info): Same.
18572 * genattrtab.c: Same.
18573 * genextract.c: Same.
18574 * genmatch.c (comparison_code_p): Same.
18575 (id_base::id_base): Same.
18576 (decision_tree::print): Same.
18577 * genoutput.c: Same.
18578 * genpreds.c (write_one_predicate_function): Same.
18579 * genrecog.c (validate_pattern): Same.
18580 (find_operand_positions): Same.
18581 (optimize_subroutine_group): Same.
18582 (merge_pattern_transition::merge_pattern_transition): Same.
18583 (merge_pattern_info::merge_pattern_info): Same.
18584 (merge_state_result::merge_state_result): Same.
18585 (merge_into_state): Same.
18586 * gensupport.c: Same.
18587 * gensupport.h: Same.
18588 * ggc-common.c (init_ggc_heuristics): Same.
18589 * ggc-tests.c (test_union): Same.
18590 * gimple-loop-interchange.cc (dump_induction): Same.
18591 * gimple-loop-versioning.cc: Same.
18592 * gimple-match.h (gimple_match_cond::any_else): Same.
18593 * gimple-ssa-backprop.c: Same.
18594 * gimple-ssa-sprintf.c: Same.
18595 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
18596 Same.
18597 (store_immediate_info::store_immediate_info): Same.
18598 (merged_store_group::apply_stores): Same.
18599 (get_location_for_stmts): Same.
18600 * gimple-ssa-strength-reduction.c: Same.
18601 * gimple-ssa-warn-alloca.c: Same.
18602 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
18603 * godump.c (go_type_decl): Same.
18604 * hash-map-tests.c (test_map_of_strings_to_int): Same.
18605 * hash-map.h: Same.
18606 * hash-set-tests.c (test_set_of_strings): Same.
18607 * hsa-brig.c: Same.
18608 * hsa-common.h: Same.
18609 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
18610 * input.c (assert_loceq): Same.
18611 * input.h: Same.
18612 * ipa-cp.c: Same.
18613 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
18614 * ipa-fnsummary.h: Same.
18615 * ipa-inline.h: Same.
18616 * ipa-prop.h: Same.
18617 * ipa-split.c (visit_bb): Same.
18618 * ira-int.h (minmax_set_iter_next): Same.
18619 * loop-invariant.c: Same.
18620 * loop-iv.c: Same.
18621 * lra-eliminations.c: Same.
18622 * lra-int.h: Same.
18623 * lra-lives.c (mark_regno_dead): Same.
18624 * lra-remat.c: Same.
18625 * lra-spills.c: Same.
18626 * lto-streamer.h: Same.
18627 * mem-stats.h: Same.
18628 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
18629 * omp-low.c (omp_clause_aligned_alignment): Same.
18630 * optabs-query.h (get_vcond_eq_icode): Same.
18631 * optabs.h: Same.
18632 * opts.c (wrap_help): Same.
18633 * poly-int.h: Same.
18634 * predict.c (predict_paths_leading_to_edge): Same.
18635 * pretty-print.h: Same.
18636 * profile-count.h: Same.
18637 * read-md.h: Same.
18638 * read-rtl-function.c: Same.
18639 * ree.c: Same.
18640 * reginfo.c: Same.
18641 * regrename.c: Same.
18642 * regrename.h: Same.
18643 * reload.h: Same.
18644 * rtl-iter.h: Same.
18645 * rtl.h (costs_add_n_insns): Same.
18646 * sanopt.c: Same.
18647 * sched-int.h: Same.
18648 * sel-sched-ir.h: Same.
18649 * selftest.h: Same.
18650 * sese.h (vec_find): Same.
18651 * stmt.c: Same.
18652 * target-globals.h: Same.
18653 * tree-affine.c (aff_combination_find_elt): Same.
18654 * tree-affine.h: Same.
18655 * tree-data-ref.h: Same.
18656 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
18657 * tree-predcom.c: Same.
18658 * tree-scalar-evolution.c (find_var_scev_info): Same.
18659 * tree-ssa-alias.h: Same.
18660 * tree-ssa-ccp.c: Same.
18661 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
18662 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
18663 (rewrite_mem_refs): Same.
18664 (execute_sm_if_changed): Same.
18665 (hoist_memory_references): Same.
18666 * tree-ssa-loop-ivopts.c (operator<=): Same.
18667 * tree-ssa-loop.h: Same.
18668 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
18669 * tree-ssa-structalias.c: Same.
18670 * tree-switch-conversion.h (cluster::cluster): Same.
18671 (simple_cluster::simple_cluster): Same.
18672 * tree-vect-patterns.c (type_conversion_p): Same.
18673 * tree-vectorizer.c (dump_stmt_cost): Same.
18674 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
18675 * tree.c (protected_set_expr_location): Same.
18676 * tree.h (desired_pro_or_demotion_p): Same.
18677 (fndecl_built_in_p): Same.
18678 * unique-ptr-tests.cc: Same.
18679 * var-tracking.c (delete_variable_part): Same.
18680 * varasm.c (assemble_real): Same.
18681 (tree_output_constant_def): Same.
18682 * vec.c: Same.
18683 * wide-int-bitmask.h: Same.
18684 * wide-int.h (decompose): Same.
18685
18686 2019-07-09 Richard Biener <rguenther@suse.de>
18687
18688 PR tree-optimization/91114
18689 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
18690 find a vector type isn't fatal.
18691
18692 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18693
18694 * config/aarch64/aarch64-simd.md
18695 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
18696 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
18697 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
18698 (*aarch64_crypto_aese_fused,
18699 *aarch64_crypto_aesd_fused): Update to new definition.
18700 * config/aarch64/aarch64.c
18701 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
18702
18703 2019-07-09 Richard Biener <rguenther@suse.de>
18704
18705 * gimple-match.h (gimple_match_op::resimplify): New.
18706 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
18707 gimple_resimplify4, gimple_resimplify5): Remove.
18708 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
18709 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
18710 Make static.
18711 (gimple_match_op::resimplify): New.
18712 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
18713 according to availability. Use gimple_match_op::resimplify.
18714
18715 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
18716
18717 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
18718
18719 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
18720
18721 * config/arm/crypto.md:
18722 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
18723 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
18724 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
18725 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
18726 * config/arm/arm.c
18727 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
18728 * config/arm/aarch-common-protos.h
18729 (aarch_crypto_can_dual_issue): Remove.
18730 * config/arm/aarch-common.c
18731 (aarch_crypto_can_dual_issue): Likewise.
18732 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
18733 * config/arm/cortex-a53.md: Likewise.
18734 * config/arm/cortex-a57.md: Likewise.
18735 * config/arm/iterators.md:
18736 (CRYPTO_BINARY): Redefine.
18737 (CRYPTO_UNARY): Removed.
18738 (CRYPTO_AES, CRYPTO_AESMC): New.
18739
18740 2019-07-09 Richard Biener <rguenther@suse.de>
18741
18742 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
18743 (vn_reference_lookup_3): If the main ref has no access path recorded
18744 but orig_ref has use it to do access-path based disambiguation.
18745 (vn_reference_lookup_pieces): Adjust.
18746 (vn_reference_lookup): Pass down original ref if we valueized.
18747
18748 2019-07-09 Martin Liska <mliska@suse.cz>
18749
18750 * doc/extend.texi: Document influence on loop
18751 optimizers.
18752
18753 2019-07-09 Martin Liska <mliska@suse.cz>
18754
18755 * lto-compress.c (lto_normalized_zstd_level): Do not use
18756 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
18757 of libzstd. One can use 0 as a default compression level.
18758
18759 2019-07-09 Martin Liska <mliska@suse.cz>
18760
18761 * doc/invoke.texi: Add link from -fprofile-dir option.
18762 Use better wording for 'gcno filename'.
18763
18764 2019-07-08 Martin Sebor <msebor@redhat.com>
18765
18766 PR middle-end/71924
18767 PR middle-end/90549
18768 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
18769 comment.
18770 (args_loc_t): New type.
18771 (args_loc_t, locmap_t): same.
18772 (diag_returned_locals): New function.
18773 (is_addr_local): Same.
18774 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
18775 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
18776 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
18777
18778 2019-07-08 Jakub Jelinek <jakub@redhat.com>
18779
18780 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
18781 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
18782 and casts in offset when different, both through gimple stmts
18783 and through trees. Rewritten using loops to minimize code duplication
18784 for each operand.
18785
18786 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
18787
18788 * emit-rtl.c (set_insn_locations): New function moved from...
18789 * function.c (set_insn_locations): ...here.
18790 * ira-emit.c (emit_moves): Propagate location of the first instruction
18791 to the inserted move instructions.
18792 * reg-stack.c (compensate_edge): Set the location if the sequence is
18793 inserted on the edge.
18794 * rtl.h (set_insn_locations): Declare.
18795
18796 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18797
18798 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
18799 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
18800 .machine string.
18801
18802 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
18803
18804 PR rtl-optimization/88233
18805 * common.opt (fsplit-wide-types-early): New option.
18806 * common/config/rs6000/rs6000-common.c
18807 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
18808 OPT_LEVELS_ALL.
18809 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
18810 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
18811 flag_split_wide_types_early.
18812 (pass_data_lower_subreg3): New.
18813 (pass_lower_subreg3): New.
18814 (make_pass_lower_subreg3): New.
18815 * passes.def (pass_lower_subreg2): Move after the loop passes.
18816 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
18817 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
18818 the pass pipeline; its previous place is taken by ...
18819 (make_pass_lower_subreg3): ... this.
18820
18821 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18822
18823 * config/s390/s390.c (s390_shift_truncation_mask): Define.
18824 (TARGET_SHIFT_TRUNCATION_MASK): Define.
18825
18826 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
18827
18828 * config/s390/constraints.md: Add new jsc constraint.
18829 * config/s390/predicates.md: New predicates.
18830 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
18831 * config/s390/s390.c (s390_valid_shift_count): New function.
18832 (print_shift_count_operand): Use s390_valid_shift_count.
18833 (print_operand): Likewise.
18834 * config/s390/s390.md: Use new predicate.
18835 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
18836 * config/s390/vector.md: Use new predicate.
18837
18838 2019-07-08 Andrew Waterman <andrew@sifive.com>
18839 Jim Wilson <jimw@sifive.com>
18840
18841 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
18842 bitsize instead of BITS_PER_WORD.
18843
18844 2019-07-08 Martin Liska <mliska@suse.cz>
18845
18846 * collect2.c (defined): Revert to before r254460.
18847 (scan_prog_file): Revert to before r254460.
18848
18849 2019-07-08 Richard Biener <rguenther@suse.de>
18850
18851 PR tree-optimization/83518
18852 * tree-ssa-sccvn.c: Include splay-tree.h.
18853 (struct pd_range, struct pd_data): New.
18854 (struct vn_walk_cb_data): Add data to track partial definitions.
18855 (vn_walk_cb_data::~vn_walk_cb_data): New.
18856 (vn_walk_cb_data::push_partial_def): New.
18857 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
18858 (vn_reference_lookup_2): When partial defs are registered give up.
18859 (vn_reference_lookup_3): Track partial defs for memset and
18860 constructor zeroing and for defs from constants.
18861
18862 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18863
18864 * doc/install.texi (bootstrap-Og): Document.
18865
18866 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
18867
18868 * config/riscv/pic.md (*local_pic_load_s<mode>)
18869 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
18870 referenced by <mode>, giving...
18871 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
18872 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
18873 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
18874 use <X:MODE> for the mode attribute.
18875
18876 2019-07-07 Jeff Law <law@redhat.com>
18877
18878 PR tree-optimization/91090
18879 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
18880 in handling of ranges to simplify switch statements.
18881
18882 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18883
18884 * config/darwin.c (darwin_override_options): Make a final check on PIC
18885 options.
18886
18887 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
18888
18889 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
18890 on for kernel code.
18891
18892 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18893
18894 PR target/91068
18895 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
18896 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
18897 instead of matching them to "l" output operands.
18898
18899 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
18900
18901 * config/mips/mips.c (mips_split_move): Zero-initialize addr
18902 and check whether addr.reg is nonnull before using it.
18903
18904 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18905
18906 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
18907 ctx->for_simd_scan_phase simd copy the outer var to the privatized
18908 variable(s). For conditional lastprivate look through outer
18909 GIMPLE_OMP_SCAN context.
18910 (lower_omp_1): For conditional lastprivate look through outer
18911 GIMPLE_OMP_SCAN context.
18912
18913 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
18914 member to combined_into_simd_safelen1.
18915 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
18916 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
18917 clauses if ctx->combined_into_simd_safelen1 put statements after the
18918 predicate conditionalized block rather than into it.
18919
18920 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18921
18922 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
18923 operand 1.
18924 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
18925 Make the choice of <mode> explicit, giving...
18926 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
18927
18928 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18929
18930 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
18931 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
18932 of .md attributes.
18933 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
18934 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
18935 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
18936 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
18937 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
18938 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
18939 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
18940 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
18941 (*avx512f_scatterdi<mode>): Likewise.
18942 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
18943
18944 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18945
18946 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
18947 specify the mode iterator referenced by <mode>, giving...
18948 (*push1_h8300hs_<QHI:mode>): ...this.
18949
18950 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18951
18952 * config/gcn/gcn-valu.md
18953 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
18954 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
18955 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
18956 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
18957 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
18958 but using the _exec comparison patterns.
18959 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
18960 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
18961 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
18962 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
18963 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
18964 but using the _exec comparison patterns.
18965
18966 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
18967
18968 * config/arm/sync.md
18969 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
18970 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
18971 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
18972 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
18973 <SIDI:cas_cmp_str>.
18974
18975 2019-07-06 Jakub Jelinek <jakub@redhat.com>
18976
18977 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
18978 (maybe_lookup_ctx): Add forward declaration.
18979 (omp_find_scan): Likewise. Walk into body of simd if composited
18980 with worksharing loop.
18981 (scan_omp_simd_scan): New function.
18982 (scan_omp_1_stmt): Call it.
18983 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
18984 ctx->for_simd_scan_phase.
18985 (lower_rec_input_clauses): Do much less work for inscan reductions
18986 in ctx->for_simd_scan_phase is_simd regions.
18987 (lower_omp_scan): Set is_simd also on simd constructs composited
18988 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
18989 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
18990 emit their body after in simd constructs composited with worksharing
18991 loop.
18992 (lower_omp_for_scan): Handle worksharing loop composited with simd.
18993
18994 * omp-low.c (omp_find_scan): Make static.
18995 (lower_omp_for_scan): Fix order of merge arguments in input phase of
18996 the second loop, var2 represents the first partial sum and so needs
18997 to go before rprivb[ivar].
18998
18999 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19000
19001 * config/rs6000/rs6000-logue.c: Remove unused code.
19002
19003 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19004
19005 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19006
19007 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19008
19009 PR target/90712
19010 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19011 check with a frame laid out check.
19012
19013 2019-07-05 Richard Biener <rguenther@suse.de>
19014
19015 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
19016 when comparing against a store with possibly the same value.
19017
19018 2019-07-05 Richard Biener <rguenther@suse.de>
19019
19020 PR tree-optimization/91091
19021 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
19022 (walk_non_aliased_vuses): Likewise.
19023 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
19024 (get_continuation_for_phi): New tbaa_p parameter and pass
19025 it down.
19026 (walk_non_aliased_vuses): Likewise.
19027 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
19028 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
19029 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
19030 Likewise.
19031 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
19032 (adjust_offsets_for_equal_base_address): New function.
19033 (vn_reference_lookup_3): Use it to catch more base equivalences.
19034 Handle and pass down tbaa_p flag.
19035 (vn_reference_lookup_pieces): Adjust.
19036 (vn_reference_lookup): Remove alias-set altering, instead pass
19037 down false as tbaa_p.
19038
19039 2019-07-05 Richard Biener <rguenther@suse.de>
19040
19041 PR tree-optimization/91091
19042 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
19043 accesses can happen with -fno-strict-aliasing.
19044
19045 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
19046
19047 * tree-ssa-alias.c (alias_stats): Add
19048 nonoverlapping_component_refs_since_match_p_must_overlap.
19049 (dump_alias_stats): Print it.
19050 (nonoverlapping_component_refs_since_match_p): Add early exit.
19051 (nonoverlapping_component_refs_p): Do not account early exit.
19052
19053 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19054
19055 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
19056 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
19057 (emit_eh_dispatch): Delete.
19058 (lower_catch): Emit the eh_dispatch manually and set the location of
19059 the first catch statement onto it.
19060 (lower_eh_filter): Emit the eh_dispatch manually and set location.
19061 (lower_eh_dispatch): Propagate location.
19062 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
19063 (eliminate_build): Likewise.
19064
19065 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19066
19067 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
19068 phi nodes if possible.
19069 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
19070 location info on the newly created statement.
19071 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
19072 newly created increment if needed.
19073
19074 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19075
19076 PR middle-end/78884
19077 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
19078 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
19079 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
19080 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
19081 ctx->add_safelen1 is set.
19082
19083 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
19084 GOMP_loop_start at the start of second worksharing loop in a scan.
19085 For nowait, don't emit GOMP_loop_end_nowait at the end of first
19086 worksharing loop in a scan even if there are conditional lastprivates,
19087 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
19088
19089 2019-07-04 Jan Hubicka <jh@suse.cz>
19090
19091 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
19092 Fix check for match in the ref walk.
19093
19094 2019-07-04 Martin Liska <mliska@suse.cz>
19095
19096 * tree-ssa-loop-niter.c
19097 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
19098 (estimate_numbers_of_iterations):
19099 Support __builtin_expect_with_probability for analysis
19100 of # of loop iterations.
19101
19102 2019-07-04 Alexandre Oliva <oliva@adacore.com>
19103
19104 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
19105 * except.c: Likewise.
19106 * expr.c (expand_expr_real_1): Reject it.
19107 * gimplify.c (gimplify_expr): Gimplify it, within
19108 TRY_FINALLY_EXPR.
19109 * tree-dump.c (dequeue_and_dump): Dump it.
19110 * tree-pretty-print.c (dump_generic_node): Likewise.
19111 * tree.c (block_may_fallthru): Handle it.
19112 * tree.def (EH_ELSE_EXPR): Introduce it.
19113 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
19114 with GIMPLE_EH_ELSE as try/finally/else.
19115
19116 2019-07-04 Richard Biener <rguenther@suse.de>
19117
19118 PR ipa/91062
19119 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19120 parameter whether to disable GC collection.
19121 * passes.c (execute_one_ipa_transform_pass): Likewise, and
19122 honor it.
19123 (execute_all_ipa_transforms): Likewise and pass it down.
19124 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
19125 collection from applying IPA transforms.
19126 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
19127 from applying IPA transforms.
19128
19129 2019-07-04 Richard Biener <rguenther@suse.de>
19130
19131 PR tree-optimization/90911
19132 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
19133 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
19134 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19135 scalar_loop_scaling.
19136 (vect_transform_loop): Scale scalar loop profile if needed.
19137 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
19138 the loop copy from if-conversion adjust edge probabilities
19139 and scale the vectorized loop body profile, queue the scalar
19140 profile for updating after peeling.
19141
19142 2019-07-04 Jan Hubicka <jh@suse.cz>
19143
19144 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
19145 parameters; return early for must-alias.
19146 (indirect_ref_may_alias_decl_p): Likewise; when establishing
19147 outer types match, try nonoverlapping_component_refs
19148 if must-alias is not obvious.
19149 (indirect_refs_may_alias_p): Likewise.
19150 (refs_may_alias_p_2): Likewise.
19151
19152 2019-07-04 Richard Biener <rguenther@suse.de>
19153
19154 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
19155 argument.
19156 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
19157 globals into...
19158 (struct vn_walk_cb_data): New callback data struct.
19159 (vn_reference_lookup_2): Adjust.
19160 (vn_reference_lookup_3): Likewise.
19161 (vn_reference_lookup_pieces): Likewise.
19162 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
19163 (visit_reference_op_load): Adjust.
19164
19165 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19166
19167 PR tree-optimization/91063
19168 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
19169 stmt from stmts sequence before calling vect_init_vector_1.
19170 Formatting fix.
19171
19172 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19173
19174 PR target/88833
19175 * fwprop.c (reg_single_def_p): New function.
19176 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
19177 (forward_propagate_into): New parameter reg_prop_only
19178 with default value false.
19179 Propagate def's src into loop only if SET_SRC and SET_DEST
19180 of def_set have single definitions.
19181 Likewise if reg_prop_only is set to true.
19182 (fwprop): New param fwprop_addr_p.
19183 Integrate fwprop_addr into fwprop.
19184 (fwprop_addr): Remove.
19185 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19186 to true.
19187 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19188 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19189 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19190
19191 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19192
19193 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19194 in worksharing loop scans.
19195
19196 PR tree-optimization/91074
19197 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19198 temporary.
19199
19200 PR rtl-optimization/90756
19201 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19202 for VECTOR_TYPE_P.
19203
19204 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19205
19206 * config/aarch64/aarch64.md: Remove redundant constraints from
19207 define_expand but keep some patterns untouched if they are
19208 specially selected by TARGET_SECONDARY_RELOAD hook.
19209 * config/aarch64/aarch64-sve.md: Likewise.
19210 * config/aarch64/atomics.md: Remove redundant constraints from
19211 define_expand.
19212 * config/aarch64/aarch64-simd.md: Likewise.
19213
19214 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19215
19216 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19217 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19218 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19219 clauses.
19220 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19221 DARWIN_NOPIE_SPEC.
19222
19223 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19224
19225 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19226 (STARTFILE_SPEC): Split crt3 into a separate spec.
19227 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19228 (DARWIN_CRT2_SPEC): New.
19229 (DARWIN_CRT3_SPEC): New.
19230 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
19231 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
19232 (DARWIN_CRT3_SPEC): New.
19233
19234 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
19235
19236 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
19237 Change the RTL attribute "length" from "4" to "*" to allow the
19238 length attribute to be adjusted automatically for prefixed load,
19239 store, and add immediate instructions.
19240 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
19241 Likewise.
19242 (extendsi<mode>2, EXTSI iterator): Likewise.
19243 (movsi_internal1): Likewise.
19244 (movsi_from_sf): Likewise.
19245 (movdi_from_sf_zero_ext): Likewise.
19246 (mov<mode>_internal): Likewise.
19247 (movcc_internal1, QHI iterator): Likewise.
19248 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
19249 (movsf_from_si): Likewise.
19250 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
19251 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
19252 (mov<mode>, FMOVE128 iterator): Likewise.
19253 (movdi_internal64): Likewise.
19254 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
19255 Likewise.
19256 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
19257 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
19258 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
19259 (vsx_splat_v4sf): Likewise.
19260
19261 2019-07-03 Mark Wielaard <mark@klomp.org>
19262
19263 PR debug/90981
19264 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
19265 DW_AT_addr_base if there is actually a .debug_addr section with
19266 addresses.
19267 (output_addr_table): Add DWARF5 table header generation here after
19268 checking there are actually any addresses from...
19269 (dwarf2out_finish): ...here.
19270
19271 2019-07-03 Richard Biener <rguenther@suse.de>
19272
19273 PR middle-end/91069
19274 * match.pd (vec_perm -> bit_insert): Fix element read from
19275 first vector.
19276
19277 2019-07-03 Martin Liska <mliska@suse.cz>
19278
19279 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
19280 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
19281 condition.
19282 * generic-match-head.c: Include dbgcnt.h.
19283 * gimple-match-head.c: Likewise.
19284
19285 2019-07-03 Martin Liska <mliska@suse.cz>
19286
19287 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
19288 (GCOV_COUNTER_V_TOPN): New.
19289 (GCOV_COUNTER_V_INDIR): Use _topn.
19290 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
19291 (GCOV_TOPN_VALUES): New.
19292 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
19293 (GCOV_TOPN_VALUES_COUNTERS): New.
19294 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
19295 * tree-profile.c:
19296 (gimple_init_gcov_profiler): Rename variables from one_value
19297 to topn_values.
19298 (gimple_gen_one_value_profiler): Remove.
19299 (gimple_gen_topn_values_profiler): New function.
19300 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
19301 names instead of SINGLE_VALUE.
19302 (stream_out_histogram_value): Likewise.
19303 (stream_in_histogram_value): Likewise.
19304 (get_most_common_single_value): Likewise.
19305 (gimple_divmod_fixed_value_transform): Likewise.
19306 (gimple_stringops_transform): Likewise.
19307 (gimple_divmod_values_to_profile): Likewise.
19308 (gimple_stringops_values_to_profile): Likewise.
19309 (gimple_find_values_to_profile): Likewise.
19310 * value-prof.h (enum hist_type): Rename to TOPN.
19311 (gimple_gen_one_value_profiler): Remove.
19312 (gimple_gen_topn_values_profiler): New.
19313
19314 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
19315
19316 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
19317 if it has the DW_AT_data_member_location attribute.
19318
19319 2019-07-03 Richard Biener <rguenther@suse.de>
19320
19321 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
19322 dumping.
19323
19324 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
19325
19326 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
19327 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
19328 (tlsdesc_small_sve_<mode>): Likewise.
19329
19330 2019-07-03 Martin Liska <mliska@suse.cz>
19331
19332 * Makefile.in: Define ZSTD_LIB.
19333 * common.opt: Adjust compression level
19334 to support also zstd levels.
19335 * config.in: Regenerate.
19336 * configure: Likewise.
19337 * configure.ac: Add --with-zstd and --with-zstd-include options
19338 and detect ZSTD.
19339 * doc/install.texi: Mention zstd dependency.
19340 * gcc.c: Print supported LTO compression algorithms.
19341 * lto-compress.c (lto_normalized_zstd_level): Likewise.
19342 (lto_compression_zstd): Likewise.
19343 (lto_uncompression_zstd): Likewise.
19344 (lto_end_compression): Dispatch in between zlib and zstd.
19345 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
19346 (lto_uncompression_zlib): Make it static.
19347 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
19348 * lto-section-in.c (lto_get_section_data): Pass info
19349 about used compression.
19350 * lto-streamer-out.c: By default use zstd when possible.
19351 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
19352 (TV_IPA_LTO_COMPRESS): Likewise for compression.
19353
19354 2019-07-03 Martin Liska <mliska@suse.cz>
19355
19356 * lto-section-in.c (lto_get_section_data): Add "lto" section.
19357 * lto-section-out.c (lto_destroy_simple_output_block): Never
19358 compress LTO_section_lto section.
19359 * lto-streamer-out.c (produce_asm): Do not set major_version
19360 and minor_version.
19361 (lto_output_toplevel_asms): Likewise.
19362 (produce_lto_section): New function.
19363 (lto_output): Call produce_lto_section.
19364 (lto_write_mode_table): Do not set major_version and
19365 minor_version.
19366 (produce_asm_for_decls): Likewise.
19367 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
19368 type.
19369 (struct lto_header): Remove.
19370 (struct lto_section): New struct.
19371 (struct lto_simple_header): Do not inherit from lto_header.
19372 (struct lto_file_decl_data): Add lto_section_header field.
19373
19374 2019-07-03 Martin Liska <mliska@suse.cz>
19375
19376 * lra-eliminations.c (eliminate_regs_in_insn): Remove
19377 dead assignemts.
19378 * reg-stack.c (check_asm_stack_operands): Likewise.
19379 * tree-ssa-structalias.c (create_function_info_for): Likewise.
19380 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
19381 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
19382 force_expand_binop.
19383
19384 2019-07-03 Martin Liska <mliska@suse.cz>
19385
19386 PR tree-optimization/90892
19387 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
19388 in string constants.
19389
19390 2019-07-03 Martin Liska <mliska@suse.cz>
19391
19392 PR middle-end/90899
19393 * multiple_target.c (create_dispatcher_calls): Add to comdat
19394 group only if set for ifunc.
19395
19396 2019-07-03 Martin Liska <mliska@suse.cz>
19397
19398 PR target/88056
19399 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
19400 Define local_object_name in outer scope in order to handle
19401 use-after-scope issue.
19402
19403 2019-07-03 Martin Liska <mliska@suse.cz>
19404
19405 * common.opt: Add fprofile-note.
19406 * coverage.c (coverage_init): Append the option
19407 to bbg_file_name.
19408 * doc/invoke.texi: Document -fprofile-note.
19409
19410 2019-07-03 Jakub Jelinek <jakub@redhat.com>
19411
19412 PR tree-optimization/91033
19413 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
19414 vect_analyze_data_refs): Add bool * arguments.
19415 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
19416 if failure is due to scatter/gather, set *fatal to false if non-NULL.
19417 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
19418 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
19419 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
19420 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
19421 vect_analyze_data_refs caller.
19422
19423 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
19424 clause.
19425 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
19426 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
19427 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
19428 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
19429 OMP_CLAUSE__SCANTEMP_ entry.
19430 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
19431 * tree-pretty-print.c (dump_omp_clause): Likewise.
19432 * tree-nested.c (convert_nonlocal_omp_clauses,
19433 convert_local_omp_clauses): Likewise.
19434 * omp-general.h (struct omp_for_data): Add have_scantemp and
19435 have_nonctrl_scantemp members.
19436 * omp-general.c (omp_extract_for_data): Initialize them.
19437 * omp-low.c (struct omp_context): Add scan_exclusive member.
19438 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
19439 result again with GF_OMP_FOR_KIND_MASK. Initialize also
19440 ctx->scan_exclusive.
19441 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
19442 of !ctx->scan_inclusive.
19443 (lower_rec_input_clauses): Simplify gimplification of dtors using
19444 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
19445 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
19446 loops. Don't add barrier for reduction_omp_orig_ref if
19447 ctx->scan_??xclusive.
19448 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
19449 (lower_omp_scan): Use ctx->scan_exclusive instead
19450 of !ctx->scan_inclusive. Handle worksharing loops with inscan
19451 reductions. Use new_vard != new_var instead of repeated
19452 omp_is_reference calls.
19453 (omp_find_scan, lower_omp_for_scan): New functions.
19454 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
19455 inscan reductions.
19456 * omp-expand.c (expand_omp_scantemp_alloc): New function.
19457 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
19458 and fd->have_scantemp.
19459
19460 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
19461 on worksharing loop propagate it as shared clause to containing
19462 combined parallel.
19463
19464 * omp-expand.c (expand_omp_for_static_nochunk,
19465 expand_omp_for_static_chunk): For nowait worksharing loop with
19466 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
19467 at the end.
19468
19469 2019-07-02 qing zhao <qing.zhao@oracle.com>
19470
19471 PR preprocessor/90581
19472 * doc/cppopts.texi: Add document for -fmax-include-depth.
19473 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
19474
19475 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
19476
19477 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
19478 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
19479 (mmx_packssdw): Ditto.
19480 (mmx_punpckhbw): Ditto.
19481 (mmx_punpcklbw): Ditto.
19482 (mmx_punpckhwd): Ditto.
19483 (mmx_punpcklwd): Ditto.
19484 (mmx_punpckhdq): Ditto.
19485 (mmx_punpckldq): Ditto.
19486 (*vec_dupv4hi): Ditto.
19487 (*vec_dupv2si): Ditto.
19488 (mmx_pmovmskb): Ditto.
19489 * config/i386/sse.md (sse_cvtpi2ps): Use
19490 TARGET_SSE2 && SSE_REG_P in split condition.
19491 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
19492 TARGET_SSSE3 && SSE_REGNO_P in split condition.
19493 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
19494 (ssse3_pshufbv8qi3): Ditto.
19495 (ssse3_palignrdi): Ditto.
19496
19497 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
19498
19499 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
19500 with inlined save and restore.
19501
19502 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
19503
19504 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
19505 to be inserted on single successor edge of the entry block. Then call
19506 commit_edge_insertions instead of inserting the instructions manually.
19507 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
19508 RTL expansion and rebuild jump labels chain.
19509
19510 2019-07-02 Richard Biener <rguenther@suse.de>
19511
19512 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
19513 TI_CHREC_KNOWN.
19514 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19515 Define here.
19516 * tree.c (build_common_tree_nodes): Initialize them.
19517 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
19518 Make declarations comments.
19519 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
19520 chrec_known): Remove definitions.
19521 (initialize_scalar_evolutions_analyzer): Remove.
19522 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
19523 * tree-streamer.c (preload_common_nodes): Do not preload
19524 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
19525
19526 2019-07-02 Jan Hubicka <jh@suse.cz>
19527
19528 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
19529 sanity check.
19530
19531 2019-07-02 Jan Hubicka <jh@suse.cz>
19532
19533 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
19534 to ..
19535 (nonoverlapping_component_refs_since_match_p): ... this one;
19536 handle also non-decl bases; return -1 if search gave up.
19537 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
19538 nonoverlapping_component_refs_of_decl_p_no_alias to
19539 nonoverlapping_component_refs_since_match_p_may_alias,
19540 nonoverlapping_component_refs_since_match_p_no_alias.
19541 (dump_alias_stats): Update dumping.
19542 (aliasing_matching_component_refs_p): Break out from ...;
19543 dispatch to nonoverlapping_component_refs_for_decl_p
19544 and nonoverlapping_component_refs_since_match_p.
19545 (aliasing_component_refs_p): ... here; call
19546 nonoverlapping_component_refs_p in scenarios where we can not
19547 precisely determine base match.
19548 (decl_refs_may_alias_p): Use
19549 nonoverlapping_component_refs_since_match_p.
19550 (indirect_ref_may_alias_decl_p): Do not call
19551 nonoverlapping_component_refs_p.
19552 (indirect_refs_may_alias_p): Likewise.
19553
19554 2019-07-02 Jan Hubicka <jh@suse.cz>
19555
19556 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
19557 to clobber of return value.
19558
19559 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19560
19561 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
19562 for is_neon_type instructions that have not already been categorized.
19563
19564 2019-07-02 Richard Biener <rguenther@suse.de>
19565
19566 PR tree-optimization/58483
19567 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
19568 for MEM_REF base hashing.
19569 (equal_mem_array_ref_p): Likewise for base comparison.
19570
19571 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19572
19573 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
19574 parameterized name.
19575 (signbit<mode>2): Use that name. Simplify.
19576
19577 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
19578
19579 PR middle-end/66726
19580 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
19581 Tune heuristic from PR71016 to allow MIN / MAX.
19582
19583 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19584
19585 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
19586 parameterized name.
19587 (abs<mode>2): Use that name. Simplify.
19588
19589 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19590
19591 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
19592 parameterized name.
19593 (neg<mode>2): Use that name. Simplify.
19594
19595 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19596
19597 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
19598 name.
19599 (abs<mode>2): Use that name. Simplify.
19600
19601 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19602
19603 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
19604 name.
19605 (neg<mode>2): Use that name. Simplify.
19606
19607 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
19608
19609 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
19610 ("enabled" attribute): Handle sse_noavx isa attribute.
19611 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
19612 Use TARGET_SSE && SSE_REGNO_P in split condition.
19613 (*vec_dupv2sf): Ditto.
19614
19615 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19616
19617 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
19618 name.
19619 (floatsi<mode>2): Use that name. Simplify.
19620
19621 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19622
19623 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
19624 parameterized name.
19625 (extenddf<mode>2_vsx): Make this a parameterized name.
19626 (extenddf<mode>2): Use those names. Simplify.
19627
19628 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19629
19630 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
19631 name.
19632 (eh_return): Use that name. Simplify.
19633
19634 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19635
19636 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
19637 (doloop_end): Use that name. Simplify.
19638
19639 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19640
19641 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
19642 parameterized name.
19643 (indirect_jump): Use that name. Simplify.
19644
19645 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19646
19647 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
19648 parameterized name.
19649 (abs<mode>2): Use that name. Simplify.
19650
19651 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19652
19653 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
19654 parameterized name.
19655 (fix_trunc<mode>si2): Use that name. Simplify.
19656
19657 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19658
19659 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
19660 (allocate_stack): Use that name. Simplify.
19661
19662 2019-07-01 Martin Sebor <msebor@redhat.com>
19663
19664 PR middle-end/90923
19665 * hash-map.h (hash_map::put): On insertion invoke element ctor.
19666 (hash_map::get_or_insert): Same. Reformat comment.
19667 * hash-set.h (hash_set::add): On insertion invoke element ctor.
19668 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19669 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
19670 * hash-table.h (hash_table::operator=): Prevent copy assignment.
19671 (hash_table::hash_table (const hash_table&)): Use copy ctor
19672 instead of assignment to copy elements.
19673
19674 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
19675 John David Anglin <danglin@gcc.gnu.org>
19676
19677 PR target/90963
19678 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
19679 using saved frame pointer.
19680
19681 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
19682
19683 PR middle-end/64242
19684 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
19685 Add frame clobber and schedule blockage.
19686
19687 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
19688
19689 * doc/invoke.texi (Link Options): Further editorial changes to
19690 -flinker-output docs.
19691
19692 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
19693
19694 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
19695 Load both operands of a PLUS into registers separately.
19696
19697 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
19698
19699 * config/s390/vector.md: Fix shift count operand printing.
19700
19701 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19702
19703 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
19704
19705 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19706
19707 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
19708 Use recog_data to test for an output operand.
19709
19710 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19711
19712 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
19713 exclude any others that are disparaged or that are bound to need
19714 a reload or spill.
19715 (ira_get_dup_out_num): Expand comment.
19716
19717 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19718
19719 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
19720 constraint string for each operand/alternative combo. Only handle
19721 '%' at the start of constraint strings, and look for it outside
19722 the main loop.
19723
19724 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
19725
19726 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
19727 alternative_mask instead of HARD_REG_SET to represent a
19728 bitmask of alternatives.
19729 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
19730 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
19731
19732 2019-07-01 Martin Liska <mliska@suse.cz>
19733
19734 * edit-context.c (test_applying_fixits_unreadable_file): Do not
19735 use () for a constructor call.
19736 (test_applying_fixits_line_out_of_range): Likewise.
19737 * ggc-page.c (alloc_page): Use (void *) for %p printf format
19738 argument.
19739 (free_page): Likewise.
19740
19741 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
19742
19743 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
19744 parameter names to match usage (no functional change).
19745 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
19746
19747 2019-07-01 Richard Biener <rguenther@suse.de>
19748
19749 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
19750 pass parameter.
19751 (pass_fre::execute): Honor it.
19752 * passes.def: Adjust pass_fre invocations to allow iterating,
19753 add non-iterating pass_fre before late threading/dom.
19754
19755 2019-07-01 Richard Biener <rguenther@suse.de>
19756
19757 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
19758 TARGET_MEM_REF handling to also handle address-taken ones.
19759
19760 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
19761
19762 * doc/sourcebuild.texi (Effective-Target Keywords, Other
19763 hardware attributes): Document avx512vp2intersect.
19764
19765 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19766
19767 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
19768 (abs<mode>2): New expander.
19769 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
19770 Use CODE_FOR_ssse3_absv8qi2.
19771 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
19772 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
19773
19774 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19775
19776 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
19777 to sse, sse_noavx and avx. Update all uses.
19778
19779 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
19780
19781 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
19782 (*mmx_<plusminus_insn><mode>3): Ditto.
19783 (*mmx_mulv4hi3"): Ditto.
19784 (*mmx_smulv4hi3_highpart): Ditto.
19785 (*mmx_umulv4hi3_highpart): Ditto.
19786 (*mmx_pmaddwd): Ditto.
19787 (*sse2_umulv1siv1di3): Ditto.
19788 (*mmx_<code>v4hi3): Ditto.
19789 (*mmx_<code>v8qi3): Ditto.
19790 (mmx_ashr<mode>3): Ditto.
19791 ("mmx_<shift_insn><mode>3): Ditto.
19792 (*mmx_eq<mode>3): Ditto.
19793 (mmx_gt<mode>3): Ditto.
19794 (mmx_andnot<mode>3): Ditto.
19795 (*mmx_<code><mode>3): Ditto.
19796 (*mmx_pinsrw): Ditto.
19797 (*mmx_pextrw): Ditto.
19798 (mmx_pshufw_1): Ditto.
19799 (*mmx_uavgv8qi3): Ditto.
19800 (*mmx_uavgv4hi3): Ditto.
19801 ("mmx_psadbw): Ditto.
19802 * config/i386/sse.md (sse_cvtps2pi): Ditto.
19803 (sse_cvttps2pi): Ditto.
19804 (ssse3_pmaddubsw): Ditto.
19805 (*ssse3_pmulhrswv4hi3): Ditto.
19806 (ssse3_psign<mode>3): Ditto.
19807
19808 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
19809
19810 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
19811 adjustment for bit-fields to all aggregate types.
19812
19813 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
19814
19815 * config/rs6000/predicates.md (pcrel_address): Use
19816 SYMBOL_REF_LOCAL_P to determine if a label is local.
19817 (pcrel_external_address): New predicate.
19818 (non_prefixed_mem_operand): Delete, predicate not used.
19819 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
19820 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
19821 addressing.
19822 (SYMBOL_REF_PCREL_P): Likewise.
19823
19824 PR target/91009
19825 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
19826 alternative.
19827 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
19828 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
19829 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
19830
19831 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19832
19833 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
19834 override on extra_headers.
19835
19836 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
19837
19838 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
19839 * config/darwin-driver.c (darwin_default_min_version): Remove newline
19840 from warning.
19841 (darwin_driver_init): Likewise.
19842
19843 2019-06-28 Jan Beulich <jbeulich@suse.com>
19844
19845 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19846 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
19847 Eliminate redundant alternative.
19848
19849 2019-06-28 Jan Beulich <jbeulich@suse.com>
19850
19851 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
19852 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
19853 Use vector_operand.
19854
19855 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
19856
19857 * config/arc/arc.c (arc_rtx_costs): All short instructions are
19858 having a lower cost regardless of the speed option.
19859
19860 2019-06-28 Jan Beulich <jbeulich@suse.com>
19861
19862 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
19863 vector_operand plus, on both alternatives, "Bm" constraint.
19864
19865 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
19866
19867 * config/arm/arm.md: Remove redundant constraints from
19868 define_expand but leave reload_inm and reload_outm patterns
19869 untouched since they need special constraints to work.
19870 * config/arm/arm-fixed.md: Remove redundant constraints from
19871 define_expand.
19872 * config/arm/iwmmxt.md: Likewise.
19873 * config/arm/neon.md: Likewise.
19874 * config/arm/sync.md: Likewise.
19875 * config/arm/thumb1.md: Likewise.
19876 * config/arm/vec-common.md: Likewise.
19877
19878 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
19879
19880 * doc/install.texi: Document --disable-tm-clone-registry.
19881
19882 2019-06-27 Jakub Jelinek <jakub@redhat.com>
19883
19884 PR c++/91024
19885 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
19886 statements.
19887
19888 PR tree-optimization/91010
19889 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
19890 return true. Otherwise, don't call operand_equal_p if offset1 or
19891 offset2 is NULL and just return false.
19892
19893 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19894
19895 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
19896 user-specified float mode choice for kernel mode code.
19897
19898 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19899
19900 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
19901 spec.
19902
19903 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
19904
19905 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
19906 use longcall for 64b code.
19907
19908 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
19909
19910 * builtins.c (get_memory_rtx): Fix comment.
19911 * optabs.def (movmem_optab): Change to cpymem_optab.
19912 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
19913 (emit_block_move_hints): Change movmem to cpymem.
19914 * defaults.h: Change movmem to cpymem.
19915 * targhooks.c (get_move_ratio): Change movmem to cpymem.
19916 (default_use_by_pieces_infrastructure_p): Ditto.
19917 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
19918 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
19919 to cpymem.
19920 * config/aarch64/aarch64.h: Change movmem to cpymem.
19921 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
19922 * config/alpha/alpha.h: Change movmem to cpymem in comment.
19923 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
19924 movmem to cpymem.
19925 * config/arc/arc-protos.h: Change movmem to cpymem.
19926 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
19927 * config/arc/arc.h: Change movmem to cpymem in comment.
19928 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
19929 * config/arm/arm-protos.h: Change movmem to cpymem in names.
19930 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
19931 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
19932 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
19933 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
19934 * config/avr/avr-protos.h: Change movmem to cpymem.
19935 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
19936 avr_out_movmem): Change movmem to cpymem.
19937 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
19938 Change movmem to cpymem.
19939 * config/bfin/bfin-protos.h: Change movmem to cpymem.
19940 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
19941 Change movmem to cpymem.
19942 * config/bfin/bfin.h: Change movmem to cpymem in comment.
19943 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
19944 * config/c6x/c6x-protos.h: Change movmem to cpymem.
19945 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
19946 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
19947 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
19948 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
19949 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
19950 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
19951 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
19952 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
19953 expand_small_cpymem_or_setmem,
19954 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
19955 expand_set_or_cpymem_constant_prologue,
19956 ix86_expand_set_or_cpymem): Change movmem to cpymem.
19957 * config/i386/i386-protos.h: Change movmem to cpymem.
19958 * config/i386/i386.h: Change movmem to cpymem in comment.
19959 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
19960 (setmem<mode>): Change expansion function name.
19961 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
19962 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
19963 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
19964 * config/m32c/m32c-protos.h: Change movmem to cpymem.
19965 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
19966 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
19967 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
19968 to cpymem.
19969 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
19970 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
19971 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
19972 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
19973 Change movmem to cpymem.
19974 * config/mips/mips.h: Change movmem to cpymem.
19975 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
19976 * config/nds32/nds32-memory-manipulation.c
19977 (nds32_expand_movmemsi_loop_unknown_size,
19978 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
19979 nds32_expand_movmemsi_unroll,
19980 nds32_expand_movmemsi): Change movmem to cpymem.
19981 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
19982 * config/nds32/nds32-protos.h: Change movmem to cpymem.
19983 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
19984 (pa_adjust_insn_length): Change call to compute_movmem_length.
19985 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
19986 movmemdi, movmemdi_prereload,
19987 movmemdi_postreload): Change movmem to cpymem.
19988 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
19989 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
19990 * config/riscv/riscv.c: Change movmem to cpymem in comment.
19991 * config/riscv/riscv.h: Change movmem to cpymem.
19992 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
19993 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
19994 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
19995 movmem to cpymem.
19996 * config/s390/s390-protos.h: Change movmem to cpymem.
19997 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
19998 s390_expand_insv): Change movmem to cpymem.
19999 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20000 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20001 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20002 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20003 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20004 for nonexistent function.
20005 * config/vax/vax.h: Change movmem to cpymem in comment.
20006 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20007 * config/visium/visium.h: Change movmem to cpymem in comment.
20008 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20009 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20010 * doc/md.texi: Change movmem to cpymem and update description to match.
20011 * doc/rtl.texi: Change movmem to cpymem.
20012 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20013 * doc/tm.texi: Regenerate.
20014
20015 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
20016
20017 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
20018 -fvariable-expansion-in-unroller by default.
20019 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
20020 default for Power.
20021
20022 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
20023
20024 Revert
20025 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20026 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20027
20028 * config.gcc(rs6000-*-*): Define target_gtfiles.
20029
20030 2019-06-27 Jan Hubicka <jh@suse.cz>
20031
20032 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
20033 (add_type_duplicate): When odr hash is not allocated, to nothing.
20034 (odr_based_tbaa_p): New function.
20035 (set_type_canonical_for_odr_type): New function.
20036 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
20037 set_type_canonical_for_odr_type): New.
20038 * tree.c (gimple_canonical_types_compatible_p): ODR types with
20039 ODR based TBAA are not equivalent to non-ODR types.
20040
20041 2019-06-27 Martin Liska <mliska@suse.cz>
20042
20043 PR tree-optimization/90974
20044 PR rtl-optimization/90975
20045 PR rtl-optimization/90976
20046 PR target/91016
20047 PR tree-optimization/91017
20048 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
20049 unused tmp.
20050 * lra.c (lra_set_insn_recog_data): Remove a leftover from
20051 initial commit of IRA.
20052 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
20053 of op0 and op1.
20054 * tree-vect-loop.c (vect_create_epilog_for_reduction):
20055 Remove unused mode1.
20056 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
20057 to new_stmt_info.
20058
20059 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20060
20061 PR target/90991
20062 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
20063 instead of register_operand for operands[1], add m to its constraints
20064 if operands[2] uses "C" constraint. Ensure in condition that if
20065 operands[2] is not 0, then operands[1] is not a MEM. For last two
20066 alternatives, use unaligned loads instead of aligned if operands[1] is
20067 misaligned_operand.
20068
20069 2019-06-27 Martin Liska <mliska@suse.cz>
20070
20071 * asan.c (asan_emit_allocas_unpoison): Remove obviously
20072 dead assignments.
20073 * bt-load.c (move_btr_def): Likewise.
20074 * builtins.c (expand_builtin_apply_args_1): Likewise.
20075 (expand_builtin_apply): Likewise.
20076 * cfgexpand.c (expand_asm_stmt): Likewise.
20077 (construct_init_block): Likewise.
20078 * cfghooks.c (verify_flow_info): Likewise.
20079 * cfgloopmanip.c (remove_path): Likewise.
20080 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
20081 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
20082 * combine.c (simplify_if_then_else): Likewise.
20083 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
20084 (choose_basereg): Likewise.
20085 (ix86_expand_prologue): Likewise.
20086 (ix86_preferred_output_reload_class): Likewise.
20087 * cselib.c (cselib_record_sets): Likewise.
20088 * df-scan.c (df_scan_alloc): Likewise.
20089 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
20090 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
20091 * emit-rtl.c (try_split): Likewise.
20092 * graphite-scop-detection.c (assign_parameter_index_in_region):
20093 Likewise.
20094 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
20095 * ira-color.c (setup_profitable_hard_regs): Likewise.
20096 * ira.c (rtx_moveable_p): Likewise.
20097 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
20098 * read-rtl.c (read_subst_mapping): Likewise.
20099 * regrename.c (scan_rtx): Likewise.
20100 * reorg.c (fill_slots_from_thread): Likewise.
20101 * tree-inline.c (tree_function_versioning): Likewise.
20102 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
20103 * tree-ssa-sink.c (statement_sink_location): Likewise.
20104 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
20105 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
20106 (vect_create_epilog_for_reduction): Likewise.
20107 * tree.c (build_nonstandard_integer_type): Likewise.
20108
20109 2019-06-27 Richard Biener <rguenther@suse.de>
20110
20111 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
20112
20113 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
20114
20115 PR tree-optimization/89772
20116 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
20117 out-of-bound accesses checking.
20118
20119 2019-06-27 Martin Liska <mliska@suse.cz>
20120
20121 PR tree-optimization/91014
20122 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
20123 when LHS is NULL_TREE.
20124
20125 2019-06-27 Martin Liska <mliska@suse.cz>
20126
20127 * symbol-summary.h (traverse): Pass
20128 argument a to the call of callback.
20129 (gt_ggc_mx): Mark arguments as unused.
20130 (gt_pch_nx): Likewise.
20131
20132 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
20133
20134 PR target/62147
20135 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
20136 finiteness.
20137
20138 2019-06-26 Jeff Law <law@redhat.com>
20139
20140 PR tree-optimization/90883
20141 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
20142 (delete_dead_or_redundant_assignment): Likewise.
20143
20144 PR tree-optimization/90883
20145 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
20146 * tree-ssa-dse.c: Update various comments to distinguish between
20147 dead and redundant stores.
20148 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
20149 (dse_optimize_redundant_stores): New function.
20150 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
20151 Distinguish between dead and redundant calls in dump output. All
20152 callers updated.
20153 (delete_dead_or_redundant_assignment): Similarly for assignments.
20154 (dse_optimize_stmt): Handle _CHK variants. For statements which
20155 store 0 into multiple memory locations, try to prove a subsequent
20156 store is redundant.
20157
20158 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
20159
20160 PR target/89021
20161 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
20162 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
20163
20164 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20165
20166 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
20167 (branch_islands): New extern.
20168 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
20169 * config/rs6000/rs6000.c: .. here.
20170
20171 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20172
20173 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
20174 (powerpc*-*-*) ... to here.
20175
20176 2019-06-26 Jeff Law <law@redhat.com>
20177
20178 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
20179 memcpy, memmove and memset builtins.
20180 (maybe_trim_memstar_call): Likewise.
20181
20182 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20183
20184 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20185
20186 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20187
20188 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20189
20190 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20191
20192 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20193 declaration.
20194 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20195 "static".
20196 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20197 declaration.
20198
20199 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20200
20201 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20202
20203 2019-06-26 Richard Biener <rguenther@suse.de>
20204
20205 PR ipa/90982
20206 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20207
20208 2019-06-26 Richard Biener <rguenther@suse.de>
20209
20210 * lto-streamer.h (lto_bitmap_alloc): Remove.
20211 (lto_bitmap_free): Likewise.
20212 * lto-streamer.c (lto_bitmap_alloc): Remove.
20213 (lto_bitmap_free): Likewise.
20214 (lto_obstack): Likewise.
20215 (lto_obstack_initialized): Likewise.
20216 * lto-streamer-out.c (lto_output): Use own obstack for local
20217 bitmap, free it consistently.
20218
20219 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20220
20221 PR target/90991
20222 * config/i386/sse.md
20223 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20224 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20225 insns if operands[2] is misaligned_operand.
20226
20227 2019-06-26 Li Jia He <helijia@linux.ibm.com>
20228
20229 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
20230 TARGET_POWERPC64.
20231 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
20232 to GPR.
20233
20234 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20235
20236 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
20237
20238 2019-06-26 Martin Liska <mliska@suse.cz>
20239
20240 PR tree-optimization/90973
20241 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
20242 epilogue_cost_vec instead of prologue_cost_vec for
20243 a epilogue cost.
20244
20245 2019-06-26 Martin Liska <mliska@suse.cz>
20246
20247 * bb-reorder.c (connect_better_edge_p): Add missing else
20248 statement in the middle of if-else statements.
20249
20250 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
20251 H.J. Lu <hongjiu.lu@intel.com>
20252 Olga Makhotina <olga.makhotina@intel.com>
20253
20254 * common/config/i386/i386-common.c
20255 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
20256 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
20257 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
20258 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
20259 (ix86_handle_option): Handle -mavx512vp2intersect.
20260 * config/i386/avx512vp2intersectintrin.h: New.
20261 * config/i386/avx512vp2intersectvlintrin.h: New.
20262 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
20263 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20264 AVX512VP2INTERSECT.
20265 * config/i386/i386-builtin-types.def: Add new types.
20266 * config/i386/i386-builtin.def: Add new builtins.
20267 * config/i386/i386-builtins.c: (enum processor_features): Add
20268 F_AVX512VP2INTERSECT.
20269 (static const _isa_names_table isa_names_table): Ditto.
20270 * config/i386/i386-c.c (ix86_target_macros_internal): Define
20271 __AVX512VP2INTERSECT__.
20272 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
20273 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
20274 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
20275 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
20276 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
20277 * config/i386/i386-options.c (ix86_target_string): Add
20278 -mavx512vp2intersect.
20279 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
20280 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
20281 P2HImode and P2QImode.
20282 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
20283 number for P2QImode and P2HImode.
20284 (ix86_regmode_natural_size): New function.
20285 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
20286 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
20287 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
20288 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
20289 * config/i386/i386.opt: Add -mavx512vp2intersect.
20290 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
20291 avx512vp2intersectvlintrin.h.
20292 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
20293 (define_mode_iterator VI48_AVX512VP2VL): New.
20294 (avx512vp2intersect_2intersect<mode>,
20295 avx512vp2intersect_2intersectv16si): New define_insn patterns.
20296 * config.gcc: Add avx512vp2intersectvlintrin.h and
20297 avx512vp2intersectintrin.h to extra_headers.
20298 * doc/invoke.texi: Document -mavx512vp2intersect.
20299
20300 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
20301
20302 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
20303
20304 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
20305
20306 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
20307 savres_routine_syms, savres_routine_name, morestack_ref,
20308 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20309 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20310 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20311 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20312 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20313 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20314 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20315 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20316 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20317 get_stack_clash_protection_probe_interval,
20318 get_stack_clash_protection_guard_size,
20319 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20320 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20321 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20322 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20323 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20324 gen_frame_mem_offset, rs6000_savres_routine_name,
20325 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20326 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20327 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20328 rs6000_global_entry_point_prologue_needed_p,
20329 rs6000_get_separate_components, rs6000_components_for_bb,
20330 rs6000_disqualify_components, rs6000_emit_prologue_components,
20331 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20332 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20333 rs6000_output_savres_externs, rs6000_output_function_prologue,
20334 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20335 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20336 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20337 rs6000_output_function_epilogue, gen_add3_const,
20338 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20339 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20340 to rs6000-logue.c.
20341 (machine_function): Moved to rs6000.h.
20342 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
20343 rs6000-internal.h.
20344 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
20345 savres_routine_syms, savres_routine_name, morestack_ref,
20346 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
20347 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
20348 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
20349 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
20350 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
20351 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
20352 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
20353 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
20354 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
20355 get_stack_clash_protection_probe_interval,
20356 get_stack_clash_protection_guard_size,
20357 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
20358 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
20359 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
20360 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
20361 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
20362 gen_frame_mem_offset, rs6000_savres_routine_name,
20363 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
20364 ptr_regno_for_savres, rs6000_emit_savres_rtx,
20365 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
20366 rs6000_global_entry_point_prologue_needed_p,
20367 rs6000_get_separate_components, rs6000_components_for_bb,
20368 rs6000_disqualify_components, rs6000_emit_prologue_components,
20369 rs6000_emit_epilogue_components, rs6000_set_handled_components,
20370 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
20371 rs6000_output_savres_externs, rs6000_output_function_prologue,
20372 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
20373 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
20374 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
20375 rs6000_output_function_epilogue, gen_add3_const,
20376 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
20377 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
20378 to here from rs6000.c.
20379 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
20380 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
20381 quad_address_offset_p) Moved to here from rs6000.c.
20382 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
20383 * config/config.gcc: Add new source file rs6000-logue.c to garbage
20384 collector.
20385
20386 2019-06-25 Martin Liska <mliska@suse.cz>
20387
20388 * hash-table.c (hashtab_chk_error): Move here from ...
20389 * hash-table.h (hashtab_chk_error): ... here.
20390
20391 2019-06-25 Martin Liska <mliska@suse.cz>
20392
20393 PR tree-optimization/90978
20394 * df-scan.c (df_update_entry_block_defs): Remove dead else
20395 branch.
20396 (df_update_exit_block_uses): Likewise.
20397
20398 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
20399 Andrew Stubbs <ams@codesourcery.com>
20400
20401 * config.gcc (thread_file): Set to gcn for AMD GCN.
20402 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
20403 (TARGET_EMUTLS_VAR_INIT): New hook.
20404
20405 2019-06-25 Martin Jambor <mjambor@suse.cz>
20406
20407 PR ipa/90939
20408 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
20409
20410 2019-06-25 Richard Biener <rguenther@suse.de>
20411
20412 PR tree-optimization/90930
20413 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
20414 into parallel form in the last pass instance.
20415
20416 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
20417
20418 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
20419 (arc_legitimize_pic_address): Simplify and cleanup the function.
20420 (SYMBOLIC_CONST): Remove.
20421 (prepare_pic_move): Likewise.
20422 (prepare_move_operands): Handle complex mov cases here.
20423 (arc_legitimize_address_0): Remove call to
20424 arc_legitimize_pic_address.
20425 (arc_legitimize_address): Remove call to
20426 arc_legitimize_tls_address.
20427 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
20428 (movhi_insn): Likewise.
20429
20430 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
20431
20432 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
20433 PTRDIFF_TYPE.
20434 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
20435 format of "__intN" types for UINTMAX_TYPE.
20436 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
20437 format of "__intN" types for SIZETYPE.
20438 * tree.c (build_common_tree_nodes): Accept "__intN__"
20439 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
20440 * doc/invoke.texi: Document that __intN__ disables pedantic
20441 warnings.
20442
20443 2019-06-25 Jan Hubicka <jh@suse.cz>
20444
20445 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
20446 base2_alias_set is non-zero before doing TBAA based disambiguation.
20447
20448 2019-06-25 Martin Liska <mliska@suse.cz>
20449
20450 PR tree-optimization/90973
20451 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
20452 of prologue and epilogue.
20453
20454 2019-06-24 Jan Hubicka <jh@suse.cz>
20455
20456 * ipa-utils.h (type_with_linkage_p): Verify that type is
20457 CXX_ODR_P.
20458 (odr_type_p): Remove extra return.
20459 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
20460 hash STRING_FLAG only for arrays and integers.
20461 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
20462 Update analogously.
20463 * tree-streamer-out.c (pack_ts_type_common_value_fields):
20464 Likewise.
20465 * print-tree.c (print_node): Print cxx-odr-p
20466 and string-flag.
20467 * tree.c (need_assembler_name_p): Also check that type
20468 is CXX_ODR_TYPE_P
20469 (verify_type_variant): Update verification of SRING_FLAG;
20470 also check CXX_ODR_P.
20471 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
20472 (TYPE_STRING_FLAG): Use it.
20473 (TYPE_CXX_ODR_P): New macro.
20474 * dwarf2out.c (gen_array_type_die): First check that type
20475 is an array and then test string flag.
20476
20477 2019-06-24 Richard Biener <rguenther@suse.de>
20478
20479 PR tree-optimization/90972
20480 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
20481 in common code, dealing with STRING_CST properly.
20482
20483 2019-06-24 Richard Biener <rguenther@suse.de>
20484
20485 PR tree-optimization/90930
20486 PR tree-optimization/90316
20487 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
20488 decrement of limit.
20489
20490 2019-06-24 Martin Sebor <msebor@redhat.com>
20491
20492 * tree-pretty-print.h: Remove unnecessary punctuation characters
20493 from a diagnostic.
20494 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
20495
20496 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
20497
20498 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
20499 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
20500 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
20501
20502 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20503
20504 * config/rs6000/darwin.h: Handle GCC target pragma.
20505
20506 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
20507
20508 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
20509
20510 2019-06-22 Jeff Law <law@redhat.com>
20511
20512 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20513
20514 2019-06-22 Jan Hubicka <jh@suse.cz>
20515
20516 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
20517 give up on bitfields; continue searching for different refs
20518 appearing later.
20519
20520 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20521
20522 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20523 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
20524 containing the offset as possible simd lane access. Look through
20525 widening conversion. Move the
20526 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
20527
20528 2019-06-21 Richard Biener <rguenther@suse.de>
20529
20530 PR tree-optimization/90930
20531 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
20532 flag on new stmts to avoid re-processing them.
20533
20534 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
20535
20536 PR c++/90875 - added -Wswitch-outside-range option
20537 * doc/invoke.texi (Wswitch-outside-range): Document.
20538
20539 2019-06-21 Jeff Law <law@redhat.com>
20540
20541 PR tree-optimization/90949
20542 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
20543 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
20544
20545 2019-06-21 Richard Biener <rguenther@suse.de>
20546
20547 PR debug/90914
20548 * dwarf2out.c (prune_unused_types_walk): Always consider
20549 function-local extern declarations as used.
20550
20551 2019-06-21 Richard Biener <rguenther@suse.de>
20552
20553 PR tree-optimization/90913
20554 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
20555 the scalar variant of if-conversion versioning.
20556
20557 2019-06-21 Jakub Jelinek <jakub@redhat.com>
20558
20559 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
20560 create another "omp scan inscan exclusive" array if
20561 !ctx->scan_inclusive.
20562 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
20563 (lower_omp_scan): Likewise.
20564 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
20565 2-bit bitfield for simd_lane_access_p member.
20566 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
20567 aux == (void *)-4 as simd lane access.
20568 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
20569 comment with permutations to show the canonical permutation order.
20570 (vectorizable_scan_store): Handle exclusive scan.
20571 (vectorizable_store): Call vectorizable_scan_store even for
20572 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
20573
20574 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
20575 "omp simd array" arrays with one byte elements.
20576
20577 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
20578
20579 * config/alpha/alpha.md (@unaligned_store<mode>):
20580 Rename from unaligned_store<mode>.
20581 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
20582 * config/alpha/sync.md (@load_locked_<mode>): Rename
20583 from load_locked_<mode>.
20584 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
20585 (@atomic_compare_and_swap<mode>_1): Rename
20586 from atomic_compare_and_swap<mode>_1.
20587 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
20588 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
20589 Use gen_reload_in_aligned and gen_unaligned_store.
20590 (emit_load_locked): Remove.
20591 (emit_store_conditional): Ditto.
20592 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
20593 (alpha_split_compare_and_swap): Ditto.
20594 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
20595 (alpha_split_compare_and_swap_12): Use gen_load_locked
20596 and gen_store_conditional.
20597 (alpha_split_atomic_exchange): Ditto.
20598 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
20599 (alpha_split_atomic_exchange_12): Use gen_load_locked
20600 and gen_store_conditional.
20601
20602 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
20603
20604 * config/aarch64/aarch64-errata.h: New file.
20605 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
20606 (CA53_ERR_843419_SPEC): Delete.
20607 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
20608 * config/aarch64/aarch64-linux.h: Likewise.
20609 * config/aarch64/aarch64-netbsd.h: Likewise.
20610 * config/aarch64/aarch64-freebsd.h: Likewise.
20611
20612 2019-06-20 Marek Polacek <polacek@redhat.com>
20613
20614 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
20615
20616 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
20617
20618 * config/rs6000/rs6000.md (isa attribute): Add support for
20619 for a future processor.
20620
20621 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
20622
20623 PR target/54855
20624 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
20625 standard scalar operation pattern for V2DF.
20626 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
20627 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
20628 (*ieee_<ieee_maxmin><mode>3): Likewise.
20629 (vec_setv2df_0): Likewise.
20630
20631 2019-06-20 Jan Hubicka <jh@suse.cz>
20632
20633 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
20634 parameter; it has no use in gimple memory model.
20635 (indirect_ref_may_alias_decl_p): Update.
20636
20637 2019-06-20 Martin Liska <mliska@suse.cz>
20638
20639 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
20640 to 10.
20641
20642 2019-06-20 Jakub Jelinek <jakub@redhat.com>
20643
20644 * tree-vect-stmts.c (enum scan_store_kind): New type.
20645 (scan_store_can_perm_p): Change last argument from int * to
20646 vec<enum scan_store_kind> *, record precisely which permutations
20647 need whole vector left shift or that plus VEC_COND_EXPR.
20648 (vectorizable_scan_store): Adjust caller, use whole vector left shift
20649 and additional VEC_COND_EXPR only for those iterations that need it.
20650
20651 2019-06-20 Alexandre Oliva <oliva@adacore.com>
20652
20653 * config.gcc: Fix ARM --with-fpu checking and error message.
20654
20655 2019-06-19 Marek Polacek <polacek@redhat.com>
20656
20657 PR c++/60364 - noreturn after first decl not diagnosed.
20658 * attribs.c (get_attribute_namespace): No longer static.
20659 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
20660 attributes.
20661 (attr_noreturn_exclusions): Make it extern.
20662 * attribs.h (get_attribute_namespace): Declare.
20663 * tree-inline.c (function_attribute_inlinable_p): Use
20664 get_attribute_name.
20665
20666 2019-06-19 Martin Sebor <msebor@redhat.com>
20667
20668 PR tree-optimization/90626
20669 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
20670
20671 PR tree-optimization/90626
20672 * tree-ssa-strlen.c (strxcmp_unequal): New function.
20673 (handle_builtin_string_cmp): Call it.
20674
20675 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20676
20677 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
20678 and DARWIN_NOPIE_SPEC.
20679 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
20680 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
20681 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
20682 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
20683 (DARWIN_EXPORT_DYNAMIC): Delete.
20684 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
20685 and pie options processing to darwin.h.
20686 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
20687
20688 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
20689
20690 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
20691 in computing the number of options to be moved.
20692
20693 2019-06-19 Maya Rashish <coypu@sdf.org>
20694
20695 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
20696 (CLEAR_INSN_CACHE) Use it.
20697
20698 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
20699
20700 * config/i386/i386.md (cmpstrnsi): Remove dead code.
20701
20702 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
20703
20704 PR middle-end/84521
20705 * builtins.c (expand_builtin_setjmp_setup): Save
20706 hard_frame_pointer_rtx.
20707 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
20708 restore fp.
20709 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
20710 non-local goto.
20711 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
20712 elimination code.
20713 (remove_reg_equal_offset_note): Remove unused function.
20714 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
20715 code.
20716 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20717 (arc_builtin_setjmp_frame_value): Remove function.
20718 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20719 (avr_builtin_setjmp_frame_value): Remove function.
20720 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20721 (ix86_builtin_setjmp_frame_value): Remove function.
20722 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
20723 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20724 (sparc_builtin_setjmp_frame_value): Remove function.
20725 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
20726 (vax_builtin_setjmp_frame_value): Remove function.
20727 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
20728 pointer if has_nonlocal_label.
20729
20730 2019-06-19 Jakub Jelinek <jakub@redhat.com>
20731
20732 * doc/md.texi: Document vec_shl_<mode> pattern.
20733 * optabs.def (vec_shl_optab): New optab.
20734 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
20735 argument, if == vec_shl_optab, check for left whole vector shift
20736 pattern rather than right shift.
20737 (expand_vec_perm_const): Add vec_shl_optab support.
20738 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
20739 in the comment.
20740 * tree-vect-generic.c (lower_vec_perm): Support permutations which
20741 can be handled by vec_shl_optab.
20742 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
20743 (check_scan_store): Use it.
20744 (vectorizable_scan_store): If target can't do normal permutations,
20745 try to use whole vector left shifts and if needed a VEC_COND_EXPR
20746 after it.
20747 * config/i386/sse.md (vec_shl_<mode>): New expander.
20748
20749 * omp-low.c (lower_rec_input_clauses): Handle references properly
20750 in inscan clauses.
20751 (lower_omp_scan): Likewise.
20752
20753 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
20754
20755 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
20756 mem_mode is BLKmode.
20757
20758 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
20759
20760 PR target/90922
20761 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
20762 pointer adjustment for the case of no callee-saved registers and
20763 stack frame bigger than 128 bytes.
20764
20765 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
20766
20767 PR middle-end/90862
20768 * omp-low.c (check_omp_nesting_restrictions): Handle
20769 GF_OMP_TARGET_KIND_OACC_DECLARE.
20770
20771 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
20772
20773 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
20774 (@add<mode>3_carry): Rename from add<mode>3_carry.
20775 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
20776 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
20777 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
20778 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
20779 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
20780 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
20781 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
20782 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
20783 (cmpstrnsi): Use gen_cmp_1.
20784 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
20785 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
20786 (@umonitor_<mode>): Rename from umonitor_<mode>.
20787 * config/i386/i386-expand.c (ix86_expand_copysign):
20788 Use gen_copysign3_const and gen_copysign3_var.
20789 (ix86_expand_xorsign): Use gen_xorsign3_1.
20790 (ix86_expand_branch): Use gen_sub3_carry_ccc,
20791 gen_sub3_carry_ccgz and gen_cmp1.
20792 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
20793 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
20794 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
20795 (ix86_split_lshr): Ditto.
20796 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
20797
20798 2019-06-18 Jason Merrill <jason@redhat.com>
20799
20800 * tree.c (build_constructor): Add MEM_STAT_DECL.
20801
20802 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20803
20804 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
20805 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
20806 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
20807 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
20808 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
20809 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
20810 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
20811 Use CC_NZC instead of CC.
20812 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
20813 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
20814 (aarch64_print_operand): Handle E_CC_NZCmode.
20815 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
20816 of gen_set_clobber_cc.
20817
20818 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20819
20820 * config/aarch64/aarch64-sve.md: Tabify file.
20821
20822 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20823
20824 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
20825 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
20826 * config/aarch64/aarch64-sve.md: Use it.
20827
20828 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20829
20830 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
20831 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
20832 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
20833 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
20834 (aarch64_expand_sve_vec_cmp_int): Use it.
20835 (aarch64_expand_sve_vec_cmp_float): Likewise.
20836 * config/aarch64/aarch64-sve.md: Likewise throughout.
20837
20838 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20839 Kugan Vivekanandarajah <kuganv@linaro.org>
20840
20841 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
20842 (*cond_<optab><mode>_z): Fold into...
20843 (*cond_<optab><mode>_any): ...here. Also handle cases in which
20844 operand 4 can be tied to operand 0 (either inherently or via RA).
20845
20846 2019-06-18 Richard Biener <rguenther@suse.de>
20847
20848 PR debug/90900
20849 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
20850 as if optimized away.
20851
20852 2019-06-18 Tom de Vries <tdevries@suse.de>
20853
20854 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
20855 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
20856 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
20857 Rename to ...
20858 (define_insn "@set_softstack_<mode>"): ... this.
20859 (define_insn "omp_simt_enter_<mode>"): Rename to ...
20860 (define_insn "@omp_simt_enter_<mode>"): ... this.
20861 (define_insn "omp_simt_exit_<mode>"): Rename to ...
20862 (define_insn "@omp_simt_exit_<mode>"): ... this.
20863
20864 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
20865
20866 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
20867 vf parameter. Restore the previous iv step of nscalars_step,
20868 but give it iv_type rather than compare_type. Tweak code order
20869 to match the comments.
20870 (vect_set_loop_condition_masked): Update accordingly.
20871 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
20872 for iv_precision. Tweak comment formatting.
20873
20874 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20875
20876 * config/darwin.c: Strip trailing whitespace.
20877
20878 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
20879
20880 * config/darwin.c (darwin_emit_unwind_label): New default to false.
20881 (darwin_override_options): Set darwin_emit_unwind_label as needed.
20882
20883 2019-06-18 Martin Jambor <mjambor@suse.cz>
20884
20885 PR ipa/90889
20886 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
20887 caller does not have flag_ipa_cp set.
20888
20889 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20890
20891 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
20892 from "*fold_left_plus_<mode>", updated operands order.
20893 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
20894 * internal-fn.c (mask_fold_left_direct): New define.
20895 (expand_mask_fold_left_optab_fn): Likewise.
20896 (direct_mask_fold_left_optab_supported_p): Likewise.
20897 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
20898 * optabs.def (mask_fold_left_plus_optab): New optab.
20899 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
20900 masked internal_fn for a reduction ifn.
20901 (vectorize_fold_left_reduction): Add support for masking reductions.
20902
20903 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
20904
20905 PR middle-end/80791
20906 * target.def (predict_doloop_p): New hook.
20907 * targhooks.h (default_predict_doloop_p): New declaration.
20908 * targhooks.c (default_predict_doloop_p): New function.
20909 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
20910 * doc/tm.texi: Regenerate.
20911 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
20912 (TARGET_PREDICT_DOLOOP_P): New macro.
20913 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
20914
20915 2019-06-17 Jakub Jelinek <jakub@redhat.com>
20916
20917 * omp-low.c (struct omp_context): Add scan_inclusive field.
20918 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
20919 if inclusive scan.
20920 (struct omplow_simd_context): Add lastlane member.
20921 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
20922 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
20923 1 or 2 argument.
20924 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
20925 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
20926 (lower_omp_scan): New function.
20927 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
20928 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
20929 check 3rd argument if present rather than 2nd.
20930 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
20931 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
20932 2-bit bitfield.
20933 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20934 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
20935 than 2nd.
20936 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
20937 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
20938 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
20939 init.
20940 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
20941 IFN_GOMP_SIMD_LANE argument.
20942 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
20943 encoded ->aux value.
20944 * tree-vect-stmts.c: Include attribs.h.
20945 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
20946 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
20947 functions.
20948 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
20949 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
20950
20951 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
20952
20953 PR target/62055
20954 * config/i386/i386.md (*nabstf2_1): New insn pattern.
20955 (*nabs<mode>2_1): Ditto.
20956 (nabs sse-reg splitter): New splitter.
20957 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
20958
20959 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20960
20961 PR bootstrap/90873.
20962 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
20963 TMR index check.
20964
20965 2019-06-17 Tom de Vries <tdevries@suse.de>
20966
20967 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
20968 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
20969 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
20970 ...
20971 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
20972 match_operand 0.
20973 (define_insn "omp_simt_enter_insn"): Rename to ...
20974 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
20975 match_operand 0, 1 and 2, as well as the unspec_volatile result.
20976 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
20977 gen_omp_simt_enter_si.
20978 (define_expand "omp_simt_exit"): New.
20979 (define_insn "omp_simt_exit"): Rename to ...
20980 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
20981 match_operand 0.
20982
20983 2019-06-17 Matthew Green <mrg@eterna.com.au>
20984 Maya Rashish <coypu@sdf.org>
20985
20986 * config.gcc (aarch64*-*-netbsd*): New target.
20987 * config/aarch64/aarch64-netbsd.h: New file.
20988 * config/aarch64/t-aarch64-netbsd: Likewise.
20989
20990 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20991
20992 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
20993 the access path from base to first VIEW_CONVERT_EXPR or
20994 BIT_FIELD_REF.
20995
20996 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
20997
20998 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
20999 access path on BIT_FIELD_REFs.
21000
21001 2019-06-17 Martin Liska <mliska@suse.cz>
21002
21003 PR ipa/90874
21004 * ipa-utils.h (odr_type_p): Remove dead code.
21005
21006 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21007
21008 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21009 alternative Solaris 11.4 format.
21010 * configure: Regenerate.
21011
21012 2019-06-17 Tom de Vries <tdevries@suse.de>
21013
21014 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
21015 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
21016 match_operand 0.
21017 (define_insn "call_value_insn"): Rename to ...
21018 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
21019 match_operand 0.
21020 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
21021 DI.
21022
21023 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
21024
21025 PR middle-end/64242
21026 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
21027 frame clobbers and schedule block.
21028 (builtin_longjmp): Likewise.
21029
21030 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21031
21032 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
21033 describe how to perform MSPABI compliant 64-bit shift.
21034 * config/msp430/msp430.md (ashldi3): New define_expand.
21035 (ashrdi3): New define_expand.
21036 (lshrdi3): New define_expand.
21037
21038 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21039
21040 * doc/sourcebuild.texi: Document new effective target keyword
21041 longlong64.
21042
21043 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21044
21045 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
21046 indirect_refs_may_alias_p): Revert accidental commits.
21047
21048 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
21049 at the end of structures.
21050
21051 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21052
21053 * config/darwin.c (machopic_indirect_call_target): Use renamed
21054 darwin_picsymbol_stubs to decide on output.
21055 (darwin_override_options): Handle darwin_picsymbol_stubs.
21056 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
21057 (LD64_VERSION): Revise default.
21058 * config/darwin.opt: (mpic-symbol-stubs): New option.
21059 (darwin_picsymbol_stubs): New variable.
21060 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
21061 rename to TARGET_MACHO_PICSYM_STUBS.
21062 * config/i386/i386.c (output_pic_addr_const): Likewise.
21063 * config/i386/i386.h Likewise.
21064 * config/rs6000/darwin.h: Likewise.
21065 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
21066 darwin_picsymbol_stubs.
21067
21068 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21069
21070 * config/darwin.opt (prebind, noprebind, seglinkedit,
21071 noseglinkedit): Add RejectNegative.
21072
21073 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21074
21075 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
21076 in my previous patch.
21077
21078 2019-06-16 Tom de Vries <tdevries@suse.de>
21079
21080 PR tree-optimization/89376
21081 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
21082
21083 2019-06-15 Maya Rashish <coypu@sdf.org>
21084
21085 * doc/invoke.texi (Spec Files): Update location of the
21086 Fortran spec file.
21087
21088 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
21089
21090 * doc/extend.texi (Common Function Attributes): Clarify
21091 no_sanitize. Fix grammar.
21092
21093 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
21094
21095 * tree-ssa-alias.c (alias_stats): Add
21096 nonoverlapping_component_refs_p_may_alias,
21097 nonoverlapping_component_refs_p_no_alias,
21098 nonoverlapping_component_refs_of_decl_p_may_alias,
21099 nonoverlapping_component_refs_of_decl_p_no_alias.
21100 (dump_alias_stats): Dump them.
21101 (nonoverlapping_component_refs_of_decl_p): Add stats.
21102 (nonoverlapping_component_refs_p): Add stats; do not stop on first
21103 ARRAY_REF.
21104
21105 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
21106
21107 * config/i386/i386.md (and<mode>3): Generate zero-extends for
21108 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
21109 only.
21110 (*anddi3_doubleword): Split before reload. Merge with
21111 anddi->zext pre-reload splitter.
21112 (*andndi3_doubleword): Split before reload.
21113 (*<code>di3_doubleword): Ditto.
21114 (*one_cmpldi2_doubleword): Ditto.
21115
21116 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21117
21118 PR middle-end/90779
21119 * gimplify.c: Include omp-offload.h and context.h.
21120 (gimplify_bind_expr): Add "omp declare target" attributes
21121 to static block scope variables inside of target region or target
21122 functions.
21123
21124 2019-06-15 Tom de Vries <tdevries@suse.de>
21125
21126 PR tree-optimization/90009
21127 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
21128 Return NULL if bb contains IFN_UNIQUE.
21129
21130 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
21131
21132 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
21133 (un): New define_mode_attr.
21134 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
21135 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
21136 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
21137 merge into ...
21138 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
21139
21140 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
21141
21142 * config/darwin.opt: Add RejectNegative where needed, reorder
21143 and add minimal functional descriptions.
21144
21145 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21146
21147 PR rtl-optimization/90765
21148 * calls.c (update_stack_alignment_for_call): New function.
21149 (expand_call): Call update_stack_alignment_for_call when
21150 outgoing parameter is passed in the stack.
21151 (emit_library_call_value_1): Likewise.
21152 * function.c (locate_and_pad_parm): Don't update
21153 stack_alignment_needed and preferred_stack_boundary.
21154
21155 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21156
21157 PR target/90877
21158 * config/i386/i386-features.c
21159 (dimode_scalar_chain::compute_convert_gain): Replace
21160 mmxsse_to_integer with sse_to_integer.
21161 * config/i386/i386.c (ix86_register_move_cost): Verify that
21162 moves between MMX and non-MMX units require secondary memory.
21163 Correct costs of moves between SSE and integer units.
21164 * config/i386/i386.h (processor_costs): Rename cost of moving
21165 SSE register to integer to sse_to_integer. Rename cost of
21166
21167 2019-06-14 Matt Thomas <matt@3am-software.com>
21168 Matthew Green <mrg@eterna.com.au>
21169 Nick Hudson <skrll@netbsd.org>
21170 Maya Rashish <coypu@sdf.org>
21171 Richard Earnshaw <rearnsha@arm.com>
21172
21173 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
21174 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
21175 * config/arm/netbsd-eabi.h: New file.
21176 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
21177 redefining.
21178 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
21179 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
21180 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
21181 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
21182
21183 2019-06-14 Richard Biener <rguenther@suse.de>
21184
21185 * tree-loop-distribution.c (classify_partition): Return
21186 whether a reduction appeared in all partitions and do not
21187 stop builtin detection because of this.
21188 (distribute_loop): Sort a non-builtin partition last if
21189 there's a reduction in all partitions and make sure the
21190 partition prevailing as last is not a builtin.
21191
21192 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21193
21194 PR ipa/90401
21195 * ipa-prop.c (add_to_agg_contents_list): New function.
21196 (clobber_by_agg_contents_list_p): Likewise.
21197 (extract_mem_content): Likewise.
21198 (get_place_in_agg_contents_list): Delete.
21199 (determine_known_aggregate_parts): Renamed from
21200 determine_locally_known_aggregate_parts. New parameter
21201 aa_walk_budget_p.
21202
21203 2019-06-13 Martin Sebor <msebor@redhat.com>
21204
21205 PR tree-optimization/90662
21206 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21207 to the same type.
21208
21209 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21210
21211 PR bootstrap/90873
21212 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21213 dbase is not TARGET_MEM_REF.
21214
21215 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21216
21217 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21218 Update all uses.
21219 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21220 Do not generate DImode extends for 32bit targets.
21221 (and->zext post-reload splitter): Use gen_extend_insn
21222 instead of indirect functions.
21223 (anddi->zext pre-reload splitter): New.
21224 (*zext<mode>_doubleword_and): Remove.
21225 (*zext<mode>_doubleword): Ditto.
21226 (*zextsi_doubleword): Dittto.
21227
21228 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21229
21230 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
21231 Use gen_sub3_insn instead of indirect function.
21232 (ix86_expand_ashl_const): Use gen_add2_insn instead of
21233 indirect function.
21234 (ix86_adjust_counter): Ditto.
21235
21236 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
21237 Lijia He <helijia@linux.ibm.com>
21238
21239 PR tree-optimization/77820
21240 * tree-ssa-threadedge.c
21241 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
21242 function.
21243 (thread_across_edge): Add call to
21244 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
21245
21246 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
21247
21248 * config/darwin-driver.c (validate_macosx_version_min): New.
21249 (darwin_default_min_version): Cleanup and validate supplied version.
21250 (darwin_driver_init): Likewise and push cleaned version into opts.
21251
21252 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21253
21254 PR tree-optimization/90869
21255 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
21256 converts in MEM_REF referencing decl rather than view converts
21257 from decl type to MEM_REF type.
21258
21259 2019-06-13 Richard Biener <rguenther@suse.de>
21260
21261 PR tree-optimization/90856
21262 * tree-sra.c (build_ref_for_model): Only use
21263 build_reconstructed_reference when address-spaces are the same.
21264
21265 2019-06-13 Jakub Jelinek <jakub@redhat.com>
21266
21267 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
21268 wrap ei variable name in the declaration in ()s.
21269 (nvptx_single): Actually use mode_label variable. Formatting fix.
21270
21271 2019-06-13 Richard Biener <rguenther@suse.de>
21272
21273 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
21274 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
21275 also return the condition stmt.
21276 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
21277 loop we can version and version that, reusing the loop version
21278 created by if-conversion instead of versioning again.
21279
21280 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
21281
21282 * gimple-loop-versioning.cc (prune_loop_conditions): Use
21283 may_contain_p.
21284 * tree-vrp (value_range_base::may_contain_p): Call into
21285 value_inside_range.
21286 (value_inside_range): Make private inside value_range_base class.
21287 Take min/max from *this.
21288 (range_includes_p): Remove.
21289 * tree-vrp.h (value_range_base): Add value_inside_range.
21290 (range_includes_p): Remove.
21291 (range_includes_zero_p): Call may_contain_p.
21292 * vr-values.c (compare_range_with_value): Same.
21293
21294 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
21295
21296 * doc/extend.texi (ARC Function Attributes): Update info.
21297
21298 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
21299
21300 PR tree-optimization/89713
21301 * doc/invoke.texi (-ffinite-loops): Document new option.
21302 * common.opt (-ffinite-loops): New option.
21303 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
21304 IFN_GOACC_LOOP calls as necessary.
21305 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
21306 is finite.
21307 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
21308 IFN_GOACC_LOOP call is not used.
21309 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
21310
21311 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21312
21313 PR target/88838
21314 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
21315 compare_type is not with Pmode size, we will create an IV with
21316 Pmode size with truncated use (i.e. converted to the correct type).
21317 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
21318 (vect_iv_limit_for_full_masking): New. Factored out of
21319 vect_set_loop_condition_masked.
21320 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
21321 (vect_iv_limit_for_full_masking): Declare.
21322
21323 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21324
21325 PR target/88834
21326 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
21327 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
21328 (get_alias_ptr_type_for_ptr_address): Likewise.
21329 (add_iv_candidate_for_use): Add scaled index candidate if useful.
21330 * tree-ssa-address.c (preferred_mem_scale_factor): New.
21331 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
21332 allow_reg_index_p.
21333
21334 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21335
21336 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
21337
21338 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
21339
21340 * common/config/pru/pru-common.c: New file.
21341 * config.gcc: Add PRU target.
21342 * config/pru/alu-zext.md: New file.
21343 * config/pru/constraints.md: New file.
21344 * config/pru/predicates.md: New file.
21345 * config/pru/pru-opts.h: New file.
21346 * config/pru/pru-passes.c: New file.
21347 * config/pru/pru-pragma.c: New file.
21348 * config/pru/pru-protos.h: New file.
21349 * config/pru/pru.c: New file.
21350 * config/pru/pru.h: New file.
21351 * config/pru/pru.md: New file.
21352 * config/pru/pru.opt: New file.
21353 * config/pru/t-pru: New file.
21354 * doc/extend.texi: Document PRU pragmas.
21355 * doc/invoke.texi: Document PRU-specific options.
21356 * doc/md.texi: Document PRU asm constraints.
21357
21358 2019-06-12 Martin Sebor <msebor@redhat.com>
21359
21360 PR middle-end/90676
21361 * tree-pretty-print.c (dump_mem_ref): New function. Include
21362 MEM_REF type in output when different size than operand.
21363 (dump_generic_node): Move code to dump_mem_ref and call it.
21364
21365 2019-06-12 Martin Sebor <msebor@redhat.com>
21366
21367 PR tree-optimization/90662
21368 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
21369 to arrays.
21370
21371 2019-06-12 Tom de Vries <tdevries@suse.de>
21372
21373 PR tree-optimization/90009
21374 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
21375
21376 2019-06-12 Martin Liska <mliska@suse.cz>
21377
21378 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
21379 the created map.
21380 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
21381 * mem-stats.h (mem_alloc_description::mem_alloc_description):
21382 Do not sanitize created maps.
21383
21384 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
21385
21386 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
21387 value_range::singleton_p.
21388 * tree-vrp.c (value_range_constant_singleton): Remove.
21389 * tree-vrp.h (value_range_constant_singleton): Remove.
21390 * vr-values.c (vr_values::singleton): Use
21391 value_range::singleton_p.
21392
21393 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21394
21395 PR target/90811
21396 * cfgexpand.c (align_local_variable): Add really_expand argument,
21397 don't SET_DECL_ALIGN if it is false.
21398 (add_stack_var): Add really_expand argument, pass it through to
21399 align_local_variable.
21400 (expand_one_stack_var_1): Pass true as really_expand to
21401 align_local_variable.
21402 (expand_one_ssa_partition): Pass true as really_expand to
21403 add_stack_var.
21404 (expand_one_var): Pass really_expand through to add_stack_var.
21405
21406 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
21407
21408 * config/arm/iterators.md (VABAL): New int iterator.
21409 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
21410 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
21411 UNSPEC_VABAL_U values.
21412
21413 2019-06-12 Martin Liska <mliska@suse.cz>
21414
21415 * value-prof.c (stream_out_histogram_value): Only first value
21416 can't be negative.
21417
21418 2019-06-12 Jakub Jelinek <jakub@redhat.com>
21419
21420 PR c/90760
21421 * symtab.c (symtab_node::set_section): Allow being called on aliases
21422 as long as they aren't analyzed yet.
21423
21424 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
21425
21426 * config/mips/mips.c (mips_final_postscan_insn): Modify call
21427 to `mips_set_text_contents_type' to indicate whether a
21428 non-debug insn follows.
21429
21430 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
21431
21432 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
21433 enabling -mpcrel by default.
21434 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
21435 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
21436 that the test against -mcpu=future is done first. Then test if
21437 -mprefixed-addr is on for -mpcrel.
21438 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
21439
21440 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21441
21442 PR target/90811
21443 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
21444 instead of and.u%d.
21445
21446 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21447
21448 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
21449
21450 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
21451
21452 PR c++/90449 - add -Winaccessible-base option.
21453 * doc/invoke.texi (Winaccessible-base): Document.
21454
21455 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
21456
21457 PR tree-optimization/62041
21458 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
21459
21460 2019-06-11 Jason Merrill <jason@redhat.com>
21461
21462 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
21463 * tree.c (get_tree_code_name): Likewise.
21464 * print-tree.c (print_node): Only briefly print a node with an
21465 invalid code.
21466
21467 2019-06-11 Jakub Jelinek <jakub@redhat.com>
21468
21469 PR bootstrap/90819
21470 * trans-mem.c (tm_memopt_compute_available): Add assertion
21471 that blocks is not empty. Formatting fix.
21472
21473 2019-06-11 Martin Liska <mliska@suse.cz>
21474
21475 PR c++/87847
21476 * hash-table.h: Extend create_gcc, add one parameter
21477 that is passed into hash_table::hash_table.
21478
21479 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
21480
21481 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
21482 New prototype.
21483 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
21484 Emit clobber also for non-sse operations.
21485 (ix86_split_fp_absneg_operator): New function.
21486 * config/i386/i386.md (SSEMODEF): New mode iterator.
21487 (ssevecmodef): New mode attribute.
21488 (<code>tf2): Use absneg code iterator.
21489 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
21490 Add three-operand AVX alternatives.
21491 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
21492 Use absneg code iterator and X87MODEF mode iterator.
21493 (absneg fp_reg non-sse splitter): Call absneg code iterator
21494 and X87MODEF mode iterator.
21495 (absneg general_reg non-sse splitter): Use absneg code iterator
21496 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
21497 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
21498 code iterator. Add three-operand AVX alternative.
21499 (absneg sse_reg splitter): Use absneg code iterator
21500 and SSEMODEF mode iterator. Handle AVX operands.
21501 (absneg fp_reg splitter): Use absneg code iterator
21502 and MODEF mode iterator.
21503 (absneg general_reg splitter): Merge splitters using MODEF mode
21504 iterator. Use absneg code iterator. Call
21505 ix86_split_fp_absneg_operator.
21506 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
21507 Do not enable for non-sse modes before reload.
21508 (CSGNMODE): Remove.
21509 (CSGNVMODE): Ditto.
21510 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
21511 ssevecmodef mode attribute instaed of CSGNVMODE.
21512 (copysign<mode>3_const): Ditto.
21513 (copysign<mode>3_var): Ditto.
21514 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
21515 Use absneg code iterator. Simplify code using std::swap.
21516 * config/i386/predicates.md (absneg_operator): Remove.
21517
21518 2019-06-10 Martin Sebor <msebor@redhat.com>
21519
21520 * gimple-fold.c (get_range_strlen): Update comment that didn't
21521 make it into r267503 or related commits.
21522
21523 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
21524
21525 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
21526 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
21527
21528 2019-06-10 Jakub Jelinek <jakub@redhat.com>
21529
21530 * tree.def (OMP_SCAN): New tree code.
21531 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
21532 OMP_CLAUSE_EXCLUSIVE.
21533 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
21534 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
21535 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
21536 OMP_CLAUSE_{IN,EX}CLUSIVE.
21537 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21538 * tree-nested.c (convert_nonlocal_reference_stmt,
21539 convert_local_reference_stmt, convert_gimple_call): Handle
21540 GIMPLE_OMP_SCAN.
21541 * tree-pretty-print.c (dump_omp_clause): Handle
21542 OMP_CLAUSE_{IN,EX}CLUSIVE.
21543 (dump_generic_node): Handle OMP_SCAN.
21544 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
21545 * gimple.h (gomp_scan): New type.
21546 (is_a_helper <gomp_scan *>::test,
21547 is_a_helper <const gomp_scan *>::test): New templates.
21548 (gimple_build_omp_scan): Declare.
21549 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
21550 gimple_omp_scan_set_clauses): New inline functions.
21551 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
21552 * gimple.c (gimple_build_omp_scan): New function.
21553 (gimple_copy): Handle GIMPLE_OMP_SCAN.
21554 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
21555 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
21556 GIMPLE_OMP_TASKGROUP.
21557 (dump_gimple_omp_scan): New function.
21558 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
21559 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
21560 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
21561 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
21562 (is_gimple_stmt): Handle OMP_SCAN.
21563 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
21564 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
21565 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
21566 mentioned in nested #pragma omp scan. Handle
21567 OMP_CLAUSE_{IN,EX}CLUSIVE.
21568 (gimplify_expr): Handle OMP_SCAN.
21569 * omp-low.c (check_omp_nesting_restrictions): For parent context,
21570 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
21571 simd constructs.
21572 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
21573 GIMPLE_OMP_SCAN.
21574
21575 2019-06-10 Martin Liska <mliska@suse.cz>
21576
21577 * ipa-cp.c (ignore_edge_p): New function.
21578 (build_toporder_info): Use it.
21579 * ipa-inline.c (ignore_edge_p): New function.
21580 (inline_small_functions): Use it.
21581 * ipa-pure-const.c (ignore_edge_for_nothrow):
21582 Verify opt_for_fn for caller and callee.
21583 (ignore_edge_for_pure_const): Likewise.
21584 * ipa-reference.c (ignore_edge_p): Extend to check
21585 for opt_for_fn.
21586 * ipa-utils.c (searchc): Refactor.
21587 * ipa-utils.h: Fix coding style.
21588
21589 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21590
21591 * config/arc/arc.c (arc_rtx_costs): Update costs.
21592
21593 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
21594
21595 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
21596 (arc_split_ior): Likewise.
21597 (arc_check_mov_const): Likewise.
21598 (arc_split_mov_const): Likewise.
21599 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
21600 (arc_rtx_costs): Replace check Crr with Cax constraint.
21601 (prepare_move_operands): Cleanup, remove unused code.
21602 (arc_split_ior): New function.
21603 (arc_check_ior_const): Likewise.
21604 (arc_split_mov_const): Likewise.
21605 (arc_check_mov_const): Likewise.
21606 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
21607 in define_insn_and_split pattern.
21608 (iorsi3): Likewise.
21609 (mulsi3_v2): Add new matching variant.
21610 (andsi3_i): Cleanup pattern.
21611 (rotrsi3_cnt1): Update pattern.
21612 (rotrsi3_cnt8): New pattern.
21613 (ashlsi2_cnt8): Likewise.
21614 (ashlsi2_cnt16): Likewise.
21615 * config/arc/constraints.md (C0p): Update constraint.
21616 (Crr): Remove it.
21617 (C0x): New pattern.
21618 (Cax): New pattern.
21619
21620 2019-06-10 Martin Liska <mliska@suse.cz>
21621
21622 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
21623 Update coding style.
21624 (sem_item_optimizer::dump_cong_classes):
21625 Print how many items are in a non-singular class. Improve
21626 coding style.
21627
21628 2019-06-10 Martin Liska <mliska@suse.cz>
21629
21630 * value-prof.c (dump_histogram_value): Change dump format.
21631 (gimple_mod_subtract_transform): Remove legacy comment.
21632
21633 2019-06-10 Martin Liska <mliska@suse.cz>
21634
21635 * value-prof.c (dump_histogram_value): Print histogram values
21636 only if present.
21637
21638 2019-06-10 Martin Liska <mliska@suse.cz>
21639
21640 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
21641 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
21642 * ipa-profile.c (ipa_profile_generate_summary):
21643 Use get_most_common_single_value.
21644 * tree-profile.c (gimple_init_gcov_profiler):
21645 Instrument with __gcov_one_value_profiler_v2
21646 and __gcov_indirect_call_profiler_v4.
21647 * value-prof.c (dump_histogram_value):
21648 Print all values for HIST_TYPE_SINGLE_VALUE.
21649 (stream_out_histogram_value): Update assert for
21650 N values.
21651 (stream_in_histogram_value): Set number of
21652 counters for HIST_TYPE_SINGLE_VALUE.
21653 (get_most_common_single_value): New.
21654 (gimple_divmod_fixed_value_transform):
21655 Use get_most_common_single_value.
21656 (gimple_ic_transform): Likewise.
21657 (gimple_stringops_transform): Likewise.
21658 (gimple_find_values_to_profile): Set number
21659 of counters for HIST_TYPE_SINGLE_VALUE.
21660 * value-prof.h (get_most_common_single_value): New.
21661
21662 2019-06-10 Martin Liska <mliska@suse.cz>
21663
21664 * hash-map.h: Pass default value to hash_table ctor.
21665 * hash-table.h: Add default value to call of a ctor.
21666
21667 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
21668
21669 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
21670 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
21671
21672 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
21673
21674 PR target/90751
21675 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
21676 Call pa_output_function_label.
21677 (TARGET_ASM_FUNCTION_PROLOGUE): define.
21678 * config/pa/pa-protos.h (pa_output_function_label): Declare.
21679 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
21680 to declaration.
21681 (pa_linux_output_function_prologue): Declare.
21682 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
21683 (pa_output_function_label): New.
21684 (pa_output_function_prologue): Revise to use pa_output_function_label.
21685 (pa_linux_output_function_prologue): New.
21686 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
21687
21688 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
21689
21690 * tree-vrp.h (value_range_base::intersect): New.
21691 (value_range::intersect_helper): Move from here...
21692 (value_range_base::intersect_helper): ...to here.
21693 * tree-vrp.c (value_range::intersect_helper): Rename to...
21694 (value_range_base::intersect_helper): ...this, and rewrite to
21695 return a value instead of modifying THIS in place.
21696 Also, move equivalence handling...
21697 (value_range::intersect): ...here, while calling intersect_helper.
21698 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
21699 calling intersect.
21700 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
21701 Same.
21702 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
21703
21704 2019-06-07 Jakub Jelinek <jakub@redhat.com>
21705
21706 * Makefile.in (genprogerr): Add condmd.
21707 (genprog): Remove it here.
21708
21709 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
21710
21711 * doc/invoke.texi (AMD GCN Options): Add gfx906.
21712
21713 2019-06-07 Richard Biener <rguenther@suse.de>
21714
21715 PR debug/90574
21716 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
21717 that appear after user labels.
21718
21719 2019-06-07 Martin Liska <mliska@suse.cz>
21720
21721 * cselib.c (cselib_init): Disable hash table
21722 sanitization.
21723 * hash-set.h: Pass new default argument to m_table.
21724 * hash-table.c: Add global variable with hash table
21725 sanitization limit.
21726 * hash-table.h (Allocator>::hash_table): Add new argument
21727 to ctor.
21728 (hashtab_chk_error): New.
21729 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
21730 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
21731 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
21732
21733 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21734
21735 * common.opt (flto-odr-type-merging): Ignore.
21736 * invoke.texi (-flto-odr-type-merging): Remove.
21737 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
21738 (can_be_vtable_hashed_p): Remove.
21739 (hash_odr_vtable): Remove.
21740 (odr_vtable_hasher::hash): Remove.
21741 (types_same_for_odr): Remove.
21742 (types_odr_comparable): Remove.
21743 (odr_vtable_hasher::equal): Remove.
21744 (odr_vtable_hash_type, odr_vtable_hash): Remove.
21745 (add_type_duplicate): Do not synchronize vtable and name hashtables.
21746 (get_odr_type): Do not use vtable hash.
21747 (dump_odr_type): Remove commented out code.
21748 (build_type_inheritance_graph): Do not allocate vtable hash.
21749 (rebuild_type_inheritance_graph): Do not delete vtable hash.
21750 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
21751 (odr_type_p): Likewise.
21752 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
21753 test.
21754
21755 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
21756
21757 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
21758 immediately after same_types_for_tbaa_p returns -1 and continue
21759 looking for possible exact match; if matching types are arrays
21760 watch for partial overlaps.
21761 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
21762 (indirect_refs_may_alias_p): Do type based disambiguation first;
21763 update comment.
21764
21765 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
21766
21767 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
21768
21769 2019-06-07 Martin Liska <mliska@suse.cz>
21770
21771 * doc/invoke.texi: Remove param.
21772 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
21773 Remove.
21774 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
21775 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
21776 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
21777 * profile.c (instrument_values): Remove
21778 HIST_TYPE_INDIR_CALL_TOPN.
21779 * tree-profile.c (init_ic_make_global_vars):
21780 Always build __gcov_indirect_call only.
21781 (gimple_init_gcov_profiler): Remove usage
21782 of PARAM_INDIR_CALL_TOPN_PROFILE.
21783 (gimple_gen_ic_profiler): Likewise.
21784 * value-prof.c (dump_histogram_value): Likewise.
21785 (stream_in_histogram_value): Likewise.
21786 (gimple_indirect_call_to_profile): Likewise.
21787 (gimple_find_values_to_profile): Likewise.
21788 * value-prof.h (enum hist_type): Likewise.
21789
21790 2019-06-07 Martin Liska <mliska@suse.cz>
21791
21792 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
21793 function.
21794
21795 2019-06-07 Martin Liska <mliska@suse.cz>
21796
21797 PR tree-optimization/78902
21798 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
21799 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
21800 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21801 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
21802 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
21803 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21804 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
21805 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
21806 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21807 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
21808 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
21809 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
21810 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
21811 New.
21812 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
21813 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
21814 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
21815 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21816 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
21817 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
21818 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21819 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
21820 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
21821 warn_unused_result attribute.
21822 (BUILT_IN_STRDUP): Likewise.
21823 (BUILT_IN_STRNDUP): Likewise.
21824 (BUILT_IN_ALLOCA): Likewise.
21825 (BUILT_IN_CALLOC): Likewise.
21826 (BUILT_IN_MALLOC): Likewise.
21827 (BUILT_IN_REALLOC): Likewise.
21828
21829 2019-06-06 Jim Wilson <jimw@sifive.com>
21830
21831 PR target/89955
21832 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
21833 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
21834 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
21835
21836 2019-06-06 Martin Sebor <msebor@redhat.com>
21837
21838 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
21839 (handle_builtin_malloc): Remove trailing spaces.
21840 (handle_builtin_memset): Same.
21841 (handle_builtin_memcmp): Same.
21842 (compute_string_length): Same.
21843 (determine_min_objsize): Same.
21844 (handle_builtin_string_cmp): Same.
21845 (handle_char_store): Same. Break up excessively long line.
21846
21847 2019-06-06 Martin Jambor <mjambor@suse.cz>
21848
21849 * tree-sra.c (build_reconstructed_reference): Drop the alignment
21850 check.
21851
21852 2019-06-06 Martin Jambor <mjambor@suse.cz>
21853
21854 * tree-sra.c (struct access): New field grp_same_access_path.
21855 (dump_access): Dump it.
21856 (build_reconstructed_reference): New function.
21857 (build_ref_for_model): Use it if possible.
21858 (path_comparable_for_same_access): New function.
21859 (same_access_path_p): Likewise.
21860 (sort_and_splice_var_accesses): Set the new flag.
21861 (analyze_access_subtree): Likewise.
21862 (propagate_subaccesses_across_link): Propagate zero value of the new
21863 flag down the access tree.
21864
21865 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
21866
21867 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
21868 * config/gcn/gcn.opt (gpu_type): Add gfx906.
21869 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
21870 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
21871 Add gfx906.
21872
21873 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21874
21875 PR tree-optimization/90332
21876 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
21877 Handle VALS containing two vectors.
21878 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
21879 to...
21880 (@aarch64_combinez<mode>): ... This.
21881 (*aarch64_combinez_be<mode>): Rename to...
21882 (@aarch64_combinez_be<mode>): ... This.
21883 (vec_init<mode><Vhalf>): New define_expand.
21884 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
21885
21886 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21887
21888 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
21889 library functions only when not optimizing for size.
21890 (ashlsi3): Likewise.
21891 (ashrhi3): Likewise.
21892 (ashrsi3): Likewise.
21893 (lshrhi3): Likewise.
21894 (lshrsi3): Likewise.
21895
21896 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
21897
21898 PR rtl-optimization/88751
21899 * ira.c (ira): Use the number of the actually referenced registers
21900 when calculating the threshold.
21901
21902 2019-06-06 Jakub Jelinek <jakub@redhat.com>
21903
21904 * configure: Regenerate.
21905
21906 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21907
21908 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
21909 register if it is in memory, so the shift can be emulated with a rotate
21910 instruction.
21911 (ashrhi3): Likewise.
21912 (lshrhi3): Likewise.
21913
21914 2019-06-06 Martin Liska <mliska@suse.cz>
21915
21916 PR tree-optimization/87954
21917 * match.pd: Simplify mult where both arguments are 0 or 1.
21918
21919 2019-06-06 Richard Biener <rguenther@suse.de>
21920
21921 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
21922 put equivalences on UNDEFINED ranges.
21923 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
21924 Make sure to drop defs of stmts added during simplification
21925 to VARYING.
21926
21927 2019-06-06 Richard Biener <rguenther@suse.de>
21928
21929 * tree-ssa-structalias.c: Include tree-cfg.h.
21930 (make_heapvar): Do not make heap vars artificial.
21931 (find_func_aliases_for_builtin_call): Handle stack allocation
21932 functions.
21933 (find_func_aliases): Delay processing of simple enough returns
21934 in non-IPA mode.
21935 (set_uids_in_ptset): Adjust.
21936 (find_what_var_points_to): Likewise.
21937 (solve_constraints): Do not dump points-to sets here.
21938 (compute_points_to_sets): Post-process return statements,
21939 amending the escaped solution. Dump points-to sets afterwards.
21940 (ipa_pta_execute): Dump points-to sets.
21941
21942 2019-06-06 Martin Liska <mliska@suse.cz>
21943
21944 PR web/87933
21945 * doc/install.texi: Fix HTML headers and
21946 titles for 'Installing GCC' pages.
21947
21948 2019-06-06 Martin Liska <mliska@suse.cz>
21949
21950 * ipa-icf-gimple.h (dump_message_1): Remove.
21951 (dump_message): Likewise.
21952 (return_false_with_message_1): Print also file.
21953 (return_false_with_msg): Likewise.
21954 (return_with_result): Likewise.
21955 (return_with_debug): Likewise.
21956 * ipa-icf.c (sem_function::equals_private): Remove call
21957 to dump_message.
21958
21959 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
21960
21961 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
21962 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
21963 memory operand for it.
21964 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
21965
21966 2019-06-05 Martin Sebor <msebor@redhat.com>
21967
21968 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
21969 Adjust quoting and hyphenation.
21970 * convert.c (convert_to_real_1): Same.
21971 * gcc.c (driver_wrong_lang_callback): Same.
21972 (driver::handle_unrecognized_options): Same.
21973 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
21974 * opts-common.c (cmdline_handle_error): Same.
21975 (read_cmdline_option): Same.
21976 * opts-global.c (complain_wrong_lang): Same.
21977 (print_ignored_options): Same.
21978 (handle_common_deferred_options): Same.
21979 * pretty-print.h: Same.
21980 * print-rtl.c (debug_bb_n_slim): Same.
21981 * sched-rgn.c (make_pass_sched_fusion): Same.
21982 * tree-cfg.c (verify_gimple_assign_unary): Same.
21983 (verify_gimple_label): Same.
21984 * tree-ssa-operands.c (verify_ssa_operands): Same.
21985 * varasm.c (do_assemble_alias): Same.
21986 (assemble_alias): Same.
21987
21988 2019-06-05 Richard Henderson <rth@twiddle.net>
21989
21990 * config/alpha/alpha.c (direct_return): Move down after
21991 struct machine_function definition; use saved frame_size;
21992 return bool.
21993 (struct machine_function): Add sa_mask, sa_size, frame_size.
21994 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
21995 (alpha_compute_frame_layout): ... new function.
21996 (TARGET_COMPUTE_FRAME_LAYOUT): New.
21997 (alpha_initial_elimination_offset): Use saved sa_size.
21998 (alpha_vms_initial_elimination_offset): Likewise.
21999 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22000 (alpha_expand_prologue): Use saved frame data. Merge integer
22001 and fp register save loops.
22002 (alpha_expand_epilogue): Likewise.
22003 (alpha_start_function): Use saved frame data.
22004 * config/alpha/alpha-protos.h (direct_return): Update.
22005 (alpha_sa_size): Remove.
22006
22007 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22008
22009 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22010 multiplication by a power-of-two value.
22011 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22012 and turn the modulo operation into a masking operation.
22013
22014 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22015
22016 PR debug/90733
22017 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
22018 with VOIDmode inner operands.
22019
22020 2019-06-05 Richard Biener <rguenther@suse.de>
22021
22022 PR middle-end/90726
22023 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22024 turn an expression graph into a tree.
22025
22026 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22027
22028 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
22029 member.
22030 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
22031 treat it like explicit monotonic schedule modifier.
22032 (expand_omp_for): Initialize has_lastprivate_conditional.
22033 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
22034 schedule modifier.
22035
22036 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
22037 references, lookup in in hash map MEM_REF operand instead of the
22038 MEM_REF itself.
22039 (lower_omp_1): When looking for lastprivate conditional assignments,
22040 handle MEM_REFs with REFERENCE_TYPE operands.
22041
22042 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
22043 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
22044 and references a VLA. Handle references to non-VLAs if is_simd
22045 all privatization clauses like reductions.
22046 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22047 If omp_is_reference, use always omp simd arrays and set
22048 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
22049 fails, emit reference initialization.
22050
22051 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22052
22053 PR target/89803
22054 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22055 _mm_mask_fpclass_sd_mask): New intrinsics.
22056 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
22057 * config/i386/i386-builtin.def
22058 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
22059 New builtins.
22060 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
22061 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
22062 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
22063 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
22064 case QI_FTYPE_V2SF_INT): Ditto.
22065 * config/i386/sse.md
22066 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
22067 Extended to insnstructions with mask operands.
22068
22069 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22070
22071 * config/rs6000/constraints.md (define_register_constraint "wp"):
22072 Delete.
22073 (define_register_constraint "wq"): Delete.
22074 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22075 (rs6000_init_hard_regno_mode_ok): Adjust.
22076 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22077 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
22078 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
22079 (define_mode_attr VSa): Delete.
22080 (define_mode_attr VSisa): New.
22081 (rest of file): Adjust.
22082 * doc/md.texi (Machine Constraints): Adjust.
22083
22084 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22085
22086 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
22087 (define_attr "enabled"): Handle those new isa values.
22088
22089 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22090
22091 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
22092 (define_mode_attr VSr5): Delete.
22093 (define_mode_attr VStype_sqrt): Delete.
22094 (define_mode_iterator VSX_SPDP): Delete.
22095 (define_mode_attr VS_spdp_res): Delete.
22096 (define_mode_attr VS_spdp_insn): Delete.
22097 (define_mode_attr VS_spdp_type): Delete.
22098 (*vsx_sqrt<mode>2): Adjust.
22099 (vsx_<VS_spdp_insn>): Delete, split to...
22100 (vsx_xscvdpsp): ... this. New. And...
22101 (vsx_xvcvspdp): ... this. New. And...
22102 (vsx_xvcvdpsp): ... this. New.
22103
22104 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22105
22106 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
22107 and V2DF.
22108 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
22109 (rest of file): Adjust.
22110
22111 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22112
22113 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
22114 (vsx_extract_<mode>_var): Ditto.
22115
22116 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22117
22118 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
22119 with just "wa".
22120
22121 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22122
22123 * config/rs6000/constraints.md (define_register_constraint "ww"):
22124 Delete.
22125 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22126 (rs6000_init_hard_regno_mode_ok): Adjust.
22127 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22128 RS6000_CONSTRAINT_ww.
22129 * config/rs6000/rs6000.md: Adjust.
22130 * config/rs6000/vsx.md: Adjust.
22131 * doc/md.texi (Machine Constraints): Adjust.
22132
22133 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22134
22135 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
22136 (define_mode_attr sd): New.
22137 (define_mode_attr s): New.
22138 (define_mode_attr Ftrad): Delete.
22139 (define_mode_attr Fvsx): Delete.
22140 (define_mode_attr Fs): Delete.
22141 (rest of file): Use the new mode attributes.
22142 * config.rs6000/vsx.md: Use the new mode attributes.
22143
22144 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22145
22146 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
22147 with just "wa".
22148
22149 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22150
22151 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
22152 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
22153 used with VSX_B, VSX_D, or VSX_F, with just "wa".
22154
22155 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
22156
22157 PR target/78263
22158 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
22159 C++ with strict ANSI requirements.
22160
22161 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
22162
22163 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
22164 computations when step is 1.
22165
22166 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22167
22168 * config/rs6000/constraints.md (define_register_constraint "wf"):
22169 Delete.
22170 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22171 (rs6000_init_hard_regno_mode_ok): Adjust.
22172 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22173 RS6000_CONSTRAINT_wf.
22174 * config/rs6000/rs6000.md: Adjust.
22175 * config/rs6000/vsx.md: Adjust.
22176 * doc/md.texi (Machine Constraints): Adjust.
22177
22178 2019-06-04 Andrew Pinski <apinski@marvell.com>
22179
22180 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
22181 Fix ILP32 value.
22182
22183 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22184
22185 * config/rs6000/constraints.md (define_register_constraint "wd"):
22186 Delete.
22187 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22188 (rs6000_init_hard_regno_mode_ok): Adjust.
22189 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22190 RS6000_CONSTRAINT_wd.
22191 * config/rs6000/rs6000.md: Adjust.
22192 * config/rs6000/vsx.md: Adjust.
22193 * doc/md.texi (Machine Constraints): Adjust.
22194
22195 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22196
22197 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22198 (rest of file): Adjust.
22199
22200 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22201
22202 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22203 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22204 (vsx_splat_<mode>_reg): Adjust.
22205
22206 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22207
22208 * config/rs6000/constraints.md (define_register_constraint "ws"):
22209 Delete.
22210 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22211 (rs6000_init_hard_regno_mode_ok): Adjust.
22212 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22213 RS6000_CONSTRAINT_ws.
22214 * config/rs6000/rs6000.md: Adjust.
22215 * config/rs6000/vsx.md: Adjust.
22216 * doc/md.texi (Machine Constraints): Adjust.
22217
22218 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22219
22220 * config/rs6000/constraints.md (define_register_constraint "wv"):
22221 Delete.
22222 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22223 (rs6000_init_hard_regno_mode_ok): Adjust.
22224 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22225 RS6000_CONSTRAINT_wv.
22226 * config/rs6000/rs6000.md: Adjust.
22227 * config/rs6000/vsx.md: Adjust.
22228 * doc/md.texi (Machine Constraints): Adjust.
22229
22230 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22231
22232 * config/rs6000/constraints.md (define_register_constraint "wi"):
22233 Delete.
22234 (define_register_constraint "wt"): Delete.
22235 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22236 (rs6000_init_hard_regno_mode_ok): Adjust.
22237 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22238 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
22239 * config/rs6000/rs6000.md: Adjust.
22240 * config/rs6000/vsx.md: Adjust.
22241 * doc/md.texi (Machine Constraints): Adjust.
22242
22243 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
22244
22245 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
22246 const.
22247 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
22248 default_elf_asm_output_external.
22249
22250 2019-06-04 Martin Liska <mliska@suse.cz>
22251
22252 * ipa-icf.c (INCLUDE_LIST): Remove.
22253 (sem_item_optimizer::execute): Remove call to init_wpa.
22254 * ipa-icf.h (init_wpa): Remove.
22255
22256 2019-06-04 Jakub Jelinek <jakub@redhat.com>
22257
22258 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
22259 conditional on combined for simd.
22260 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
22261 member.
22262 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
22263 constructs, don't remove lastprivate_conditional_map, but instead set
22264 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
22265 to parent construct temporaries.
22266 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
22267 like !ctx->lastprivate_conditional_map.
22268 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
22269 use up->outer context instead of up.
22270 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
22271 gimple_omp_for_combined_p.
22272 (expand_omp_for_static_nochunk): Likewise.
22273 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
22274 probably moved over into expand_omp_for_generic rather than being copied
22275 there.
22276
22277 2019-06-04 Martin Liska <mliska@suse.cz>
22278
22279 * value-prof.c (dump_histogram_value): Fix typo.
22280 (gimple_mod_subtract_transform): Likewise.
22281
22282 2019-06-04 Richard Biener <rguenther@suse.de>
22283
22284 PR middle-end/90726
22285 * tree-chrec.c (chrec_contains_symbols): Add to visited.
22286 (tree_contains_chrecs): Likewise.
22287 (chrec_contains_symbols_defined_in_loop): Move here and avoid
22288 exponential behaivor from ...
22289 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
22290 ... here.
22291 (expression_expensive_p): Avoid exponential behavior and compute
22292 expanded size, rejecting any expansion.
22293 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
22294 (idx_contains_abnormal_ssa_name_p): Likewise.
22295 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
22296 (contains_abnormal_ssa_name_p): Simplify and use
22297 walk_tree_without_duplicates.
22298
22299 2019-06-04 Richard Biener <rguenther@suse.de>
22300
22301 PR tree-optimization/90738
22302 Revert
22303 2019-06-03 Richard Biener <rguenther@suse.de>
22304
22305 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22306 full reference tree and record in ref->ref.
22307 (vn_reference_lookup_3): Pass in original ref to
22308 ao_ref_init_from_vn_reference.
22309 (vn_reference_lookup): Likewise.
22310 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22311 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22312 Handle non-decl bases in the original reference.
22313
22314 2019-06-04 Martin Liska <mliska@suse.cz>
22315
22316 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
22317 number of references.
22318 (sem_item_optimizer::do_congruence_step):
22319 (sem_item_optimizer::worklist_push): Dump how references
22320 a class has.
22321 (sem_item_optimizer::worklist_pop): Use heap.
22322 (sem_item_optimizer::process_cong_reduction): Likewise.
22323 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
22324
22325 2019-06-04 Martin Liska <mliska@suse.cz>
22326
22327 * ipa-icf.h (struct sem_usage_pair_hash): New.
22328 (sem_usage_pair_hash::hash): Likewise.
22329 (sem_usage_pair_hash::equal): Likewise.
22330 (struct sem_usage_hash): Likewise.
22331 * ipa-icf.c (sem_item::sem_item): Initialize
22332 referenced_by_count.
22333 (sem_item::add_reference): Register a reference
22334 in ref_map and not in target->usages.
22335 (sem_item::setup): Remove initialization of
22336 dead vectors.
22337 (sem_item::~sem_item): Remove usage of dead vectors.
22338 (sem_item::dump): Remove dump of references.
22339 (sem_item_optimizer::sem_item_optimizer): Initialize
22340 m_references.
22341 (sem_item_optimizer::read_section): Remove useless
22342 dump.
22343 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
22344 (sem_item_optimizer::build_graph): Pass m_references
22345 to ::add_reference.
22346 (sem_item_optimizer::verify_classes): Remove usage of dead
22347 vectors.
22348 (sem_item_optimizer::traverse_congruence_split): Return true
22349 when a class is split.
22350 (sem_item_optimizer::do_congruence_step_for_index): Use
22351 hash_map for look up of (sem_item *, index). That brings
22352 significant speed up.
22353 (sem_item_optimizer::do_congruence_step): Return true
22354 when a split is done.
22355 (congruence_class::is_class_used): Use referenced_by_count.
22356
22357 2019-06-04 Alan Modra <amodra@gmail.com>
22358
22359 PR target/90689
22360 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
22361 error.
22362
22363 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22364
22365 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
22366 * config/rs6000/rs6000.c (direct_move_p): Adjust.
22367 (rs6000_secondary_reload_simple_move): Adjust.
22368 (rs6000_opt_masks): Neuter the "mfpgpr" option.
22369 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
22370 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
22371 comment.
22372 (power6x): Adjust.
22373 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
22374 (floatunssi<mode>2_lfiwzx): Adjust.
22375 (fix_trunc<mode>si2_stfiwx): Adjust.
22376 (fixuns_trunc<mode>si2_stfiwx): Adjust.
22377 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
22378 (mfpgpr): Mark as deprecated.
22379 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
22380 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
22381 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
22382
22383 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
22384
22385 * config/rs6000/constraints.md (define_register_constraint "wg"):
22386 Delete.
22387 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22388 RS6000_CONSTRAINT_wg.
22389 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22390 (rs6000_init_hard_regno_mode_ok): Adjust.
22391 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
22392 Delete "wg" alternatives.
22393 * doc/md.texi (Machine Constraints): Adjust.
22394
22395 2019-06-03 Alan Modra <amodra@gmail.com>
22396
22397 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
22398 (get_uncond_jump_length): Assert length less than INT_MAX and
22399 non-negative.
22400
22401 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22402
22403 PR middle-end/64242
22404 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
22405 block.
22406 (expand_builtin_nonlocal_goto): Likewise.
22407
22408 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
22409
22410 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
22411 (aarch64_asm_output_external): Declare.
22412 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
22413 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
22414 (aarch64_asm_output_alias): New.
22415 (aarch64_asm_output_external): New.
22416 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
22417 (ASM_OUTPUT_EXTERNAL): Define.
22418
22419 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
22420 * tree-vrp.h (value_range_base::nonzero_p): New.
22421 (value_range_base::set_nonnull): Rename to...
22422 (value_range_base::set_nonzero): ...this.
22423 (value_range_base::set_null): Rename to...
22424 (value_range_base::set_zero): ...this.
22425 (value_range::set_nonnull): Remove.
22426 (value_range::set_null): Remove.
22427 * tree-vrp.c (range_is_null): Remove.
22428 (range_is_nonnull): Remove.
22429 (extract_range_from_binary_expr): Use value_range_base::*zero_p
22430 instead of range_is_*null.
22431 (extract_range_from_unary_expr): Same.
22432 (value_range_base::set_nonnull): Rename to...
22433 (value_range_base::set_nonzero): ...this.
22434 (value_range::set_nonnull): Remove.
22435 (value_range_base::set_null): Rename to...
22436 (value_range_base::set_zero): ...this.
22437 (value_range::set_null): Remove.
22438 (extract_range_from_binary_expr): Rename set_*null uses to
22439 set_*zero.
22440 (extract_range_from_unary_expr): Same.
22441 (union_helper): Same.
22442 * vr-values.c (get_value_range): Use set_*zero instead of
22443 set_*null.
22444 (vr_values::extract_range_from_binary_expr): Same.
22445 (vr_values::extract_range_basic): Same.
22446
22447 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
22448
22449 PR driver/90684
22450 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
22451
22452 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22453
22454 * config/aarch64/iterators.md (MAX_OPP): New code attr.
22455 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
22456 Rename to...
22457 (aarch64_<su>abd<mode>_3): ... This.
22458 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
22459
22460 2019-06-03 Richard Biener <rguenther@suse.de>
22461
22462 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
22463 full reference tree and record in ref->ref.
22464 (vn_reference_lookup_3): Pass in original ref to
22465 ao_ref_init_from_vn_reference.
22466 (vn_reference_lookup): Likewise.
22467 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
22468 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
22469 Handle non-decl bases in the original reference.
22470
22471 2019-06-03 Martin Liska <mliska@suse.cz>
22472
22473 * doc/generic.texi: Remove Java Trees.
22474
22475 2019-06-03 Martin Liska <mliska@suse.cz>
22476
22477 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
22478 returns 0 when operands are equal.
22479
22480 2019-06-03 Richard Biener <rguenther@suse.de>
22481
22482 PR tree-optimization/90716
22483 * tree-loop-distribution.c (destroy_loop): Process blocks in
22484 correct order.
22485
22486 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22487
22488 PR target/88837
22489 * vector-builder.h (vector_builder::count_dups): New method.
22490 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
22491 Declare prototype.
22492 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
22493 (vec_init<mode><Vel>): New pattern.
22494 * config/aarch64/aarch64.c (emit_insr): New function.
22495 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
22496 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
22497 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
22498 (aarch64_sve_expand_vector_init): Define two overloaded functions.
22499
22500 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22501
22502 PR tree-optimization/90681
22503 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
22504 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
22505 special case for SLP, but fail on non-groupped loads.
22506
22507 2019-06-03 Martin Liska <mliska@suse.cz>
22508
22509 * cfg.c (debug): Use TDF_DETAILS for debug and
22510 print edge info only once.
22511
22512 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
22513
22514 PR fortran/90539
22515 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
22516
22517 2019-06-01 Martin Sebor <msebor@redhat.com>
22518
22519 PR middle-end/90694
22520 * tree-pretty-print.c (dump_generic_node): Add parentheses.
22521
22522 2019-05-31 Jan Hubicka <jh@suse.cz>
22523
22524 * alias.c: Include ipa-utils.h.
22525 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
22526 * ipa-devirt.c (prevailing_odr_type): New.
22527 * ipa-utils.h (previaling_odr_type): Declare.
22528
22529 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
22530 Hongtao Liu <hongtao.liu@intel.com>
22531
22532 PR target/89355
22533 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
22534 NOTE_INSN_DELETED_LABEL check.
22535
22536 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
22537 Robert Suchanek <robert.suchanek@mips.com>
22538
22539 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
22540 and 3rd operands of the fmadd/fmsub/maddv builtin.
22541
22542 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22543
22544 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
22545 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22546 on OMP_SIMD if not nested inside of worksharing loop that also has
22547 lastprivate conditional clause for the same decl.
22548 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
22549 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
22550 on simd.
22551 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
22552 on simd construct.
22553 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
22554 on simd construct.
22555 (lower_lastprivate_clauses): Likewise.
22556 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
22557 calling lower_rec_input_clauses.
22558 (lower_omp_for): Likewise.
22559 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
22560 clause on simd construct.
22561 * omp-expand.c (expand_omp_simd): Initialize cond_var if
22562 OMP_CLAUSE__CONDTEMP_ clause is present.
22563
22564 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
22565 ivar and lvar.
22566
22567 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
22568
22569 PR c/43673
22570 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
22571 TEX_D32, TEX_D64 or TEX_D128.
22572
22573 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22574
22575 * match.pd (~(vec?cst1:cst2)): New transformation.
22576
22577 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
22578
22579 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
22580 ((size_t)(A /[ex] B) CMP C): New transformation.
22581
22582 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
22583
22584 * doc/md.texi: Document define_insn_and_rewrite.
22585 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
22586 * gensupport.c (queue_elem): Update comment.
22587 (replace_operands_with_dups): New function.
22588 (gen_rewrite_sequence): Likewise.
22589 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
22590 * read-rtl.c (apply_subst_iterator): Likewise.
22591 (add_condition_to_rtx, named_rtx_p): Likewise.
22592 (rtx_reader::read_rtx_operand): Likewise.
22593 * config/aarch64/aarch64-sve.md
22594 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
22595 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
22596 define_insn_and_rewrite.
22597 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
22598 Remove separate define_split.
22599
22600 2019-05-31 Jan Hubicka <jh@suse.cz>
22601
22602 * tree-ssa-alias.c (type_has_components_p): New function.
22603 (aliasing_component_refs_p): Use it.
22604
22605 2019-05-31 Martin Liska <mliska@suse.cz>
22606
22607 * gdbhooks.py: Add const_tree to TreePrinter.
22608
22609 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
22610
22611 PR debug/86964
22612 * common.opt (feliminate-unused-debug-symbols): Enable by default.
22613 * doc/invoke.texi (Debugging Options): Document new default of
22614 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
22615
22616 2019-05-31 Jakub Jelinek <jakub@redhat.com>
22617
22618 PR tree-optimization/90671
22619 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
22620 template_block used to be empty on the first call, don't use
22621 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
22622 seq with bb_seq and set it with set_bb_seq.
22623
22624 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
22625
22626 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
22627
22628 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22629 Michael Meissner <meissner@linux.ibm.com>
22630
22631 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
22632 (prefixed_mem_operand): Likewise.
22633 (non_prefixed_mem_operand): Likewise.
22634 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
22635 prototype.
22636 * config/rs6000/rs6000.c (print_operand_address): Handle
22637 PC-relative addresses.
22638 (mode_supports_prefixed_address_p): New function.
22639 (rs6000_prefixed_address): New function.
22640 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
22641 (SYMBOL_REF_PCREL_P): Likewise.
22642
22643 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22644
22645 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
22646 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
22647 (gimplify_omp_for): If worksharing loop with lastprivate conditional
22648 is nested inside of parallel region, add _condtemp_ clause to both.
22649 * tree-nested.c (convert_nonlocal_omp_clauses,
22650 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
22651 assertion failure.
22652 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
22653 member.
22654 * omp-general.c (omp_extract_for_data): Compute it.
22655 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
22656 (lower_rec_input_clauses): Likewise.
22657 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
22658 clause is already present, just add one further one after it.
22659 (lower_lastprivate_clauses): Handle cond_ptr with array type.
22660 (lower_send_shared_vars): Clear _condtemp_ vars.
22661 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
22662 or section or taskgroup.
22663 * omp-expand.c (determine_parallel_type): Disallow combining only if
22664 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
22665 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
22666 (expand_omp_for_generic, expand_omp_for_static_nochunk,
22667 expand_omp_for_static_chunk, expand_omp_for): Use
22668 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
22669 determine if a special set of API routines are needed and if condtemp
22670 needs to be initialized, while always initialize cond_var if
22671 fd->lastprivate_conditional is non-zero.
22672
22673 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22674 Michael Meissner <meissner@linux.ibm.com>
22675
22676 * config/rs6000/constraints.md (eI): New constraint.
22677 * config/rs6000/predicates.md (cint34_operand): New predicate.
22678 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
22679 (SIGNED_34BIT_OFFSET_P): Likewise.
22680 * doc/md.texi (eI): Document constraint.
22681
22682 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
22683
22684 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
22685
22686 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
22687 Michael Meissner <meissner@linux.ibm.com>
22688
22689 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
22690 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
22691 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
22692 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
22693 (OTHER_FUTURE_MASKS): Likewise.
22694 (POWERPC_MASKS): Likewise.
22695 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
22696 specified without -mprefixed-addr or -mcpu=future. Error if
22697 -mprefixed-addr is specified without -mcpu=future.
22698 (rs6000_opt_masks): Add entry for prefixed-addr.
22699 * rs6000.opt (mprefixed-addr): New option.
22700
22701 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
22702
22703 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
22704 cfun->is_thunk check.
22705
22706 2019-05-30 Jakub Jelinek <jakub@redhat.com>
22707
22708 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
22709 to length.
22710
22711 2019-05-30 Martin Liska <mliska@suse.cz>
22712
22713 * gdbinit.in: Fix 'ptc' command. Add trt
22714 that prints TREE_TYPE($).
22715
22716 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
22717 Alan Modra <amodra@gmail.com>
22718
22719 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
22720 calls here...
22721 (rs6000_indirect_call_template_1): ...and here.
22722 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
22723 plt16_ha, plt16_lo, mtctr indirect calls. Use
22724 rs6000_pltseq_enum.
22725 (rs6000_decl_ok_for_sibcall): New function.
22726 (rs6000_function_ok_for_sibcall): Refactor.
22727 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
22728 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
22729 when pcrel. Reorganize.
22730 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
22731 * rs6000.h (rs6000_pltseq_enum): New enum.
22732 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
22733 (*pltseq_tocsave): Use rs6000_pltseq_enum.
22734 (*pltseq_plt16_ha): Likewise.
22735 (*pltseq_plt16_lo): Likewise.
22736 (*pltseq_mtctr): Likewise.
22737 (*pltseq_plt_pcrel): New insn.
22738 (*call_local_aix): Handle @notoc calls.
22739 (*call_value_local_aix): Likewise.
22740 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
22741 (*call_value_nonlocal_aix): Likewise.
22742 (*call_indirect_pcrel): New insn.
22743 (*call_value_indirect_pcrel): Likewise.
22744
22745 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
22746
22747 * config/i386/sse.md (*save_multiple<mode>): Rename from
22748 save_multiple<mode>.
22749 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
22750 (*restore_multiple_and_return<mode>): Rename from
22751 restore_multiple_and_return<mode>.
22752 (*restore_multiple_leave_return<mode>): Rename from
22753 restore_multiple_leave_return<mode>.
22754
22755 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
22756
22757 * config.gcc (rx-*-linux*): New target.
22758 * config/rx/elf.opt: New file.
22759 * config/rx/linux.h: Likewise.
22760 * config/rx/t-linux: Likewise.
22761 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
22762 make it zero.
22763 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
22764 (ASM_APP_OFF): Likewise.
22765 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
22766 moved elsewhere.
22767
22768 2019-05-29 Jan Hubicka <jh@suse.cz>
22769
22770 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
22771 variants are pointer equivalent.
22772
22773 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22774
22775 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
22776 * config/aarch64/aarch64-sve2.md: New file.
22777 (<u>avg<mode>3_floor): New pattern.
22778 (<u>avg<mode>3_ceil): Likewise.
22779 (*<sur>h<addsub><mode>): Likewise.
22780 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
22781 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
22782
22783 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22784
22785 PR bootstrap/90543
22786 * optc-save-gen.awk: In cl_optimization_print, use correct condition
22787 for var_opt_string printing. In cl_optimization_print_diff, print
22788 (null) instead of invoking undefined behavior if one of the
22789 var_opt_string pointers is NULL and use && instead of first || in the
22790 guarding condition. For var_target_other options, handle const char *
22791 target variables similarly to const char * optimize node variables.
22792
22793 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
22794
22795 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
22796 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
22797 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
22798 Add autib1716 and pacib1716 initialisation.
22799 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
22800 for autib1716 and pacib1716.
22801 * config/aarch64/aarch64-protos.h (aarch64_key_type,
22802 aarch64_post_cfi_startproc): Define.
22803 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
22804 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
22805 aarch64_handle_pac_ret_protection): Set default sign key to A.
22806 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
22807 aarch64_expand_prologue): Add check for b-key.
22808 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
22809 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
22810 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
22811 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
22812 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
22813 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
22814 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22815 * config/aarch64/aarch64.md (do_return): Add check for b-key.
22816 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
22817 pauth_hint_num_a with pauth_hint_num.
22818 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
22819 pauth_hint_num_a with pauth_hint_num.
22820 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
22821 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
22822 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22823 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
22824 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
22825 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
22826 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
22827 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
22828 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
22829 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
22830 UNSPEC_AUTIA1716 respectively.
22831 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
22832 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
22833 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
22834 * doc/invoke.texi (-mbranch-protection): Add b-key type.
22835 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
22836 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
22837
22838 2019-05-29 Jakub Jelinek <jakub@redhat.com>
22839
22840 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
22841 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
22842 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
22843 explicit clause on combined parallel into implicit shared clause.
22844 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
22845 and firstprivate if the decl has one too from combined parallel to
22846 the worksharing construct.
22847
22848 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
22849 Michael Meissner <meissner@linux.ibm.com>
22850
22851 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
22852
22853 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
22854
22855 * rtl.h (LABEL_REF_P): New #define.
22856
22857 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
22858
22859 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
22860
22861 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
22862
22863 * internal-fn.c: Marked mask_load_direct as vectorizable.
22864 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
22865 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
22866 combined even if masks different with allow_slp_p param.
22867 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
22868 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
22869 dissolve SLP-only vectorizable groups when SLP has been discarded.
22870 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
22871 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
22872 masks.
22873 (vect_build_slp_tree_1): Fixed comment typo.
22874 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
22875 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
22876 loads for SLP only.
22877 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
22878 vectorizable.
22879 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
22880
22881 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22882
22883 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
22884 Remove obsolete use_thunk reference.
22885 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
22886 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
22887 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
22888 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
22889 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
22890 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
22891 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
22892 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
22893 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
22894
22895 2019-05-28 Nathan Sidwell <nathan@acm.org>
22896
22897 * tree.h (IDENTIFIER_ANON_P): New.
22898 (anon_aggrname_format, anon_aggname_p): Don't declare.
22899 (make_anon_name): Declare.
22900 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
22901 (hash_tree): Likewise.
22902 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
22903 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
22904 (anon_cnt, make_anon_name): New.
22905
22906 2019-05-28 Martin Liska <mliska@suse.cz>
22907
22908 PR other/90315
22909 * opts-global.c (decode_options): Print help for all
22910 help_option_arguments.
22911 * opts.c (print_help): Add new argument.
22912 (common_handle_option): Remember all values into
22913 help_option_arguments.
22914 * opts.h (print_help): Add new argument.
22915
22916 2019-05-28 Martin Liska <mliska@suse.cz>
22917
22918 PR ipa/90555
22919 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
22920 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
22921 (func_checker::compare_bb): Call compare_loops.
22922
22923 2019-05-27 Jakub Jelinek <jakub@redhat.com>
22924
22925 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
22926 on sections construct.
22927 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
22928 construct.
22929 (lower_omp_sections): Handle lastprivate conditional.
22930 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
22931 lastprivate_conditional_map.
22932 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
22933
22934 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
22935 critical, taskgroup and section regions when looking for a region
22936 with non-NULL lastprivate_conditional_map.
22937
22938 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22939
22940 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
22941 (*ix86_gen_sub3): Ditto.
22942 (*ix86_gen_sub3_carry): Ditto.
22943 (*ix86_gen_one_cmpl2): Ditto.
22944 (*ix86_gen_andsp): Ditto.
22945 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
22946 (gen_and2_insn): New static function.
22947 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
22948 Use gen_add3_insn instead of ix86_gen_add3.
22949 (ix86_expand_split_stack_prologue): Use gen_add2_insn
22950 instead of ix86_gen_add3.
22951 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
22952 Use gen_sub3_insn instead of ix86_gen_sub3.
22953 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
22954 instead of ix86_gen_add3.
22955 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
22956 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
22957 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
22958 * config/i386/i386-options.c (ix86_option_override_internal):
22959 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
22960 ix86_gen_one_cmpl2 and ix86_gen_andsp.
22961
22962 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
22963
22964 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
22965 and DW_OP_GNU_const_index opcodes.
22966
22967 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
22968
22969 * config/i386/i386.h (STACK_SIZE_MODE): Define.
22970
22971 2019-05-27 Richard Biener <rguenther@suse.de>
22972
22973 PR tree-optimization/90637
22974 * tree-ssa-sink.c (statement_sink_location): Honor the
22975 computed sink location for single-uses.
22976
22977 2019-05-27 Richard Biener <rguenther@suse.de>
22978
22979 PR middle-end/90610
22980 * match.pd (vec_perm): Avoid clobbering op0 when not generating
22981 a bit-insert.
22982
22983 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
22984
22985 * config/i386/i386.md (@sub<mode>3_carry): Rename
22986 from sub<mode>3_carry.
22987 (@leave_<mode>): New expander.
22988 (*leave): Rename from leave.
22989 (*leave_rex64): Rename from leave_rex64.
22990 (@monitorx_<mode>): Rename from monitorx_<mode>.
22991 (@clzero_<mode>): Rename from clzero_<mode>.
22992 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
22993 from sse3_monitor_<mode>.
22994 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
22995 (*ix86_gen_leave): Ditto.
22996 (*ix86_gen_monitor): Ditto.
22997 (*ix86_gen_monitorx): Ditto.
22998 (*ix86_gen_clzero): Ditto.
22999 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23000 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23001 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23002 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23003 Use gen_sse3_monitor instead of ix86_gen_monitor.
23004 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23005 instead of ix86_gen_monitorx.
23006 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23007 instead of ix86_gen_clzero.
23008 * config/i386/i386-options.c (ix86_option_override_internal):
23009 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23010 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23011
23012 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23013
23014 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
23015 Rename from tls_global_dynamic_64_<mode>.
23016 (@tls_local_dynamic_base_64_<mode>): Rename from
23017 tls_local_dynamic_base_64_<mode>.
23018 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
23019 Remove indirect function.
23020 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
23021 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
23022 instead of ix86_gen_tls_global_dynamic_64.
23023 Use gen_tls_local_dynamic_base_64 instead of
23024 ix86_gen_tls_local_dynamic_base_64.
23025 * config/i386/i386-options.c (ix86_option_override_internal):
23026 Do not initialize ix86_gen_tls_global_dynamic_64 and
23027 ix86_gen_tls_local_dynamic_base_64.
23028
23029 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23030
23031 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
23032 Rename from pro_epilogue_adjust_stack_<mode>_add.
23033 (@pro_epilogue_adjust_stack_sub_<mode>)
23034 Rename from pro_epilogue_adjust_stack_<mode>_sub.
23035 (@allocate_stack_worker_probe_<mode>):
23036 Rename from allocate_stack_worker_probe_<mode>.
23037 (allocate_stack): Use gen_allocate_stack_worker_probe.
23038 (probe_stack): Use gen_probe_stack_1.
23039 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
23040 (@adjust_stack_and_probe_<mode>): Rename from
23041 adjust_stack_and_probe<mode>.
23042 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
23043 (stack_protect_set): Use gen_stack_protect_set_1.
23044 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
23045 (stack_protect_test): Use gen_stack_protect_test_1.
23046 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
23047 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
23048 Remove indirect function.
23049 (*ix86_gen_adjust_stack_and_probe): Ditto.
23050 (*ix86_gen_probe_stack_range): Ditto.
23051 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
23052 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
23053 (ix86_adjust_stack_and_probe_stack_clash): Use
23054 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
23055 (ix86_adjust_stack_and_probe): Ditto.
23056 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
23057 of ix86_gen_probe_stack_range.
23058 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
23059 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
23060 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
23061 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
23062 CODE_FOR_stack_protect_test_{si,di}.
23063 * config/i386/i386-options.c (ix86_option_override_internal):
23064 Do not initialize ix86_gen_allocate_stack_worker,
23065 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
23066
23067 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
23068
23069 * doc/invoke.texi (Link Options): Many editorial changes around
23070 -flinker-output.
23071
23072 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23073
23074 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
23075 pre-Solaris 11 referene and most Studio compiler details.
23076
23077 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
23078
23079 PR target/90530
23080 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
23081 DImode to SImode in floating-point registers on 64-bit target.
23082 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
23083 register_operand in xmpyu patterns.
23084
23085 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23086
23087 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
23088 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
23089 OMP_CLAUSE__REDUCTEMP_.
23090 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23091 OMP_CLAUSE__CONDTEMP_.
23092 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
23093 * tree-pretty-print.c (dump_omp_clause): Likewise.
23094 * tree-nested.c (convert_nonlocal_omp_clauses,
23095 convert_local_omp_clauses): Likewise.
23096 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
23097 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
23098 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
23099 on OMP_FOR.
23100 (gimplify_omp_for): Warn and disable conditional modifier from
23101 lastprivate on loop iterators.
23102 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
23103 member.
23104 * omp-general.c (omp_extract_for_data): Initialize it.
23105 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
23106 member.
23107 (delete_omp_context): Delete it.
23108 (lower_lastprivate_conditional_clauses): New function.
23109 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
23110 handle lastprivate conditional clauses.
23111 (lower_reduction_clauses): Add CLIST argument, emit it into
23112 the critical section if any.
23113 (lower_omp_sections): Adjust lower_lastprivate_clauses and
23114 lower_reduction_clauses callers.
23115 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
23116 to lower_lastprivate_clauses.
23117 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
23118 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
23119 clist into a critical section if not emitted there already by
23120 lower_reduction_clauses.
23121 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
23122 callers.
23123 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
23124 conditional variables.
23125 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
23126 clause is present.
23127 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23128 expand_omp_for_static_chunk): Handle lastprivate conditional.
23129 (expand_omp_for): Handle fd.lastprivate_conditional like
23130 fd.have_reductemp.
23131
23132 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23133
23134 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
23135 kernel does not exit cleanly.
23136 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
23137
23138 2019-05-24 Jason Merrill <jason@redhat.com>
23139
23140 Revert:
23141 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23142
23143 2019-05-24 Richard Biener <rguenther@suse.de>
23144
23145 PR testsuite/90607
23146 * tree-loop-distribution.c (struct partition): Add location
23147 member.
23148 (partition_alloc): Initialize all fields.
23149 (generate_memset_builtin): Use the location recorded in the
23150 partition for the generated call.
23151 (generate_memcpy_builtin): Likewise.
23152 (classify_partition): Record the location of a single store
23153 as location for the partition.
23154
23155 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23156
23157 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
23158 for lo-part.
23159
23160 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
23161
23162 PR target/90588
23163 * common/config/aarch64/aarch64-common.c
23164 (aarch64_rewrite_selected_cpu): Change local temporary variable
23165 type from unsigned long to uint64_t.
23166 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
23167 aarch64_get_extension_string_for_isa_flags): Change declaration to
23168 match new definition by replacing unsigned long with uint64_t.
23169
23170 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23171
23172 PR target/90568
23173 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
23174 gen_attr_type just once instead of 4-7 times. Formatting fixes.
23175 Handle stack_protect_test_<mode> codegen similarly to corresponding
23176 sub instruction.
23177
23178 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
23179
23180 * config/i386/darwin.h: Reject -mfentry*.
23181 * doc/sourcebuild.texi: Document mfentry target support.
23182
23183 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23184
23185 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23186 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23187 false for PC-relative functions.
23188 (rs6000_output_function_prologue): Change called function name to
23189 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23190 name,1" for PC-relative functions.
23191 (rs6000_elf_declare_function_name): Change called function name to
23192 rs6000_global_entry_point_prologue_needed_p.
23193
23194 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23195
23196 PR target/90552
23197 * config/i386/i386.c (gen_rtx_cost):
23198 Use ix86_tune_cost instead of ix86_cost.
23199
23200 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23201 Michael Meissner <meissner@linux.ibm.com>
23202 Segher Boessenkool <segher@kernel.crashing.org>
23203
23204 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23205 OPTION_MASK_PCREL.
23206 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23207 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23208 (rs6000_fndecl_pcrel_p): Likewise.
23209 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23210 error if -mpcrel is requested without -mcpu=future.
23211 (rs6000_opt_masks): Add entry for pcrel.
23212 (rs6000_fndecl_pcrel_p): New function.
23213 (rs6000_pcrel_p): Likewise.
23214 * config/rs6000/rs6000.opt (mpcrel): New option.
23215 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23216
23217 2019-05-23 Jan Hubicka <jh@suse.cz>
23218 Martin Liska <mliska@suse.cz>
23219
23220 PR tree-optimization/90576
23221 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23222 poly_int_tree_p.
23223 (aliasing_component_refs_p): Fix three way size compare conditional;
23224 give up earlier in case we can not decide on equivalence.
23225
23226 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23227 Michael Meissner <meissner@linux.ibm.com>
23228 Segher Boessenkool <segher@kernel.crashing.org>
23229
23230 * config.gcc: Add future cpu.
23231 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
23232 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
23233 #define.
23234 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
23235 (RS6000_CPU): New instantiation for future cpu.
23236 * config/rs6000/rs6000-opts.h (enum processor_type): Add
23237 PROCESSOR_FUTURE.
23238 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
23239 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
23240 * config/rs6000/rs6000-tables.opt: Regenerate.
23241 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
23242 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
23243 (rs6000_machine_from_flags): Handle future cpu.
23244 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
23245 PROCESSOR_POWER9 for now.
23246 (rs6000_adjust_cost): Likewise.
23247 (rs6000_issue_rate): Likewise.
23248 (rs6000_register_move_cost): Likewise.
23249 (rs6000_opt_masks): Add entry for future.
23250 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
23251 (MASK_FUTURE): New #define.
23252 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
23253 * config/rs6000/rs6000.opt (mfuture): New target option.
23254 * doc/invoke.texi (mcpu): Add future cpu.
23255
23256 2019-05-23 Martin Liska <mliska@suse.cz>
23257
23258 PR c++/90587
23259 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
23260 operation points to a temporary (pointed via tree_to_wide_ref)
23261 that is out of scope after the &.
23262
23263 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
23264
23265 PR c++/90592
23266 * doc/extend.texi (Function Names): Add missing word.
23267
23268 2019-05-23 Richard Biener <rguenther@suse.de>
23269
23270 PR tree-optimization/88440
23271 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
23272 at -O[2s]+.
23273 * tree-loop-distribution.c (generate_memset_builtin): Fold the
23274 generated call.
23275 (generate_memcpy_builtin): Likewise.
23276 (distribute_loop): Pass in whether to only distribute patterns.
23277 (prepare_perfect_loop_nest): Also allow size optimization.
23278 (pass_loop_distribution::execute): When optimizing a loop
23279 nest for size allow pattern replacement.
23280
23281 2019-05-23 Jakub Jelinek <jakub@redhat.com>
23282
23283 PR target/90568
23284 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
23285 of xor.
23286
23287 2019-05-23 Martin Liska <mliska@suse.cz>
23288
23289 PR sanitizer/90570
23290 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
23291 expression similarly to gimplify_decl_expr.
23292
23293 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23294
23295 * cse.c (cse_dump_path): s/dump_file/f.
23296
23297 2019-05-22 David Malcolm <dmalcolm@redhat.com>
23298
23299 PR c++/90462
23300 * diagnostic-format-json.cc: Include "selftest.h".
23301 (json_from_expanded_location): Only add "file" key for non-NULL
23302 file strings.
23303 (json_from_location_range): Don't add "start" and "finish"
23304 children if they are UNKNOWN_LOCATION.
23305 (selftest::test_unknown_location): New selftest.
23306 (selftest::test_bad_endpoints): New selftest.
23307 (selftest::diagnostic_format_json_cc_tests): New function.
23308 * json.cc (json::object::get): New function.
23309 (selftest::test_object_get): New selftest.
23310 (selftest::json_cc_tests): Call it.
23311 * json.h (json::object::get): New decl.
23312 * selftest-run-tests.c (selftest::run_tests): Call
23313 selftest::diagnostic_format_json_cc_tests.
23314 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
23315 decl.
23316
23317 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
23318 Andrew Stubbs <amd@codesourcery.com>
23319
23320 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
23321 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
23322 (kernel): Rename to...
23323 (main_kernel): ... this.
23324 (load_image): Load _init_array and _fini_array kernels.
23325 (run): Add argument for kernel to run.
23326 (main): Run init_array_kernel before main_kernel, and
23327 fini_array_kernel after.
23328 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
23329 amdgpu_hsa_kernel attribute on functions.
23330 (gcn_disable_constructors): Delete.
23331 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
23332 * config/gcn/crt0.c (size_t): Define.
23333 (_init_array, _fini_array): New.
23334 (__preinit_array_start, __preinit_array_end,
23335 __init_array_start, __init_array_end,
23336 __fini_array_start, __fini_array_end): Declare weak references.
23337
23338 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
23339
23340 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
23341
23342 2019-05-22 Jason Merrill <jason@redhat.com>
23343
23344 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23345
23346 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
23347
23348 PR target/88483
23349 * config/i386/i386-options.c (ix86_init_machine_status): Set
23350 stack_frame_required to true.
23351 * config/i386/i386.c (ix86_get_frame_size): New function.
23352 (ix86_frame_pointer_required): Replace get_frame_size with
23353 ix86_get_frame_size.
23354 (ix86_compute_frame_layout): Likewise.
23355 (ix86_find_max_used_stack_alignment): Changed to void. Set
23356 stack_frame_required.
23357 (ix86_finalize_stack_frame_flags): Always call
23358 ix86_find_max_used_stack_alignment. Replace get_frame_size with
23359 ix86_get_frame_size.
23360 * config/i386/i386.h (machine_function): Add stack_frame_required.
23361
23362 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
23363
23364 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
23365
23366 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
23367
23368 * common/config/aarch64/aarch64-common.c
23369 (struct aarch64_option_extension, struct processor_name_to_arch,
23370 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
23371 aarch64_contains_opt,
23372 aarch64_get_extension_string_for_isa_flags): Change type of
23373 variables storing flags to uint64_t.
23374 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
23375 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
23376 * config/aarch64/aarch64.c (struct processor,
23377 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
23378 aarch64_validate_march, aarch64_override_options,
23379 aarch64_option_print, aarch64_handle_attr_isa_flags,
23380 aarch64_declare_function_name, aarch64_start_file): Make flag
23381 variables uint64_t.
23382 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
23383 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
23384 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
23385 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
23386 * config/aarch64/driver-aarch64.c
23387 (struct aarch64_arch_extension, struct aarch64_core_data,
23388 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
23389 flag variables uint64_t.
23390 * doc/invoke.texi: Add documentation for new arguments.
23391
23392 2019-05-22 Richard Biener <rguenther@suse.de>
23393
23394 * alias.c (ao_ref_from_mem): Move stack-slot sharing
23395 rewrite ...
23396 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
23397
23398 2019-05-22 Martin Liska <mliska@suse.cz>
23399
23400 PR lto/90500
23401 * doc/extend.texi: Document the change.
23402
23403 2019-05-22 Richard Biener <rguenther@suse.de>
23404
23405 PR tree-optimization/90450
23406 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
23407 (mem_ref_hasher::equal): Check it.
23408 (mem_ref_alloc): Initialize it.
23409 (gather_mem_refs_stmt): Set it.
23410
23411 2019-05-22 Richard Biener <rguenther@suse.de>
23412
23413 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
23414 Add ABS_EXPR.
23415 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
23416 as ABSU_EXPR.
23417
23418 2019-05-22 Alan Modra <amodra@gmail.com>
23419
23420 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
23421 (ASM_CPU_SPEC): Conditionally add -many.
23422 * config/rs6000/rs6000.c (rs6000_machine): New static var.
23423 (rs6000_machine_from_flags, emit_asm_machine): New functions..
23424 (rs6000_file_start): ..extracted from here, and modified to
23425 test all ISA bits.
23426 (rs6000_output_function_prologue): Emit .machine as necessary.
23427
23428 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
23429
23430 PR middle-end/90553
23431 * ira-lives.c (process_bb_node_lives): Consider defs
23432 for a call insn to be die before the call, not after.
23433
23434 * function.c (assign_parm_setup_block): Raise alignment of
23435 stacked parameter only for STRICT_ALIGNMENT targets.
23436
23437 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23438
23439 * config/rs6000/constraints.md (define_register_constraint "wz"):
23440 Delete.
23441 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23442 RS6000_CONSTRAINT_wz.
23443 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23444 (rs6000_init_hard_regno_mode_ok): Adjust.
23445 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
23446 * doc/md.texi (Machine Constraints): Adjust.
23447
23448 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23449
23450 * config/rs6000/constraints.md (define_register_constraint "wl"):
23451 Delete.
23452 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23453 RS6000_CONSTRAINT_wl.
23454 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23455 (rs6000_init_hard_regno_mode_ok): Adjust.
23456 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
23457 * doc/md.texi (Machine Constraints): Adjust.
23458
23459 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23460
23461 * config/rs6000/constraints.md (define_register_constraint "wm"):
23462 Delete.
23463 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23464 RS6000_CONSTRAINT_wm.
23465 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23466 (rs6000_init_hard_regno_mode_ok): Adjust.
23467 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
23468 * doc/md.texi (Machine Constraints): Adjust.
23469
23470 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23471
23472 * config/rs6000/constraints.md (define_register_constraint "wk"):
23473 Delete.
23474 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23475 RS6000_CONSTRAINT_wk.
23476 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23477 (rs6000_init_hard_regno_mode_ok): Adjust.
23478 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
23479 * doc/md.texi (Machine Constraints): Adjust.
23480
23481 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23482
23483 * config/rs6000/constraints.md (define_register_constraint "wj"):
23484 Delete.
23485 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23486 RS6000_CONSTRAINT_wj.
23487 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23488 (rs6000_init_hard_regno_mode_ok): Adjust.
23489 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
23490 (VS_64dm): Delete.
23491 * config/rs6000/vsx.md: Ditto.
23492 * doc/md.texi (Machine Constraints): Adjust.
23493
23494 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
23495
23496 * config/rs6000/constraints.md (define_register_constraint "wh"):
23497 Delete.
23498 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23499 RS6000_CONSTRAINT_wh.
23500 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23501 (rs6000_init_hard_regno_mode_ok): Adjust.
23502 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
23503 * doc/md.texi (Machine Constraints): Adjust.
23504
23505 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23506
23507 PR target/90547
23508 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
23509 Avoid calling gen_lowpart with CONST operand.
23510
23511 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
23512
23513 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
23514 field template_last_to_copy.
23515 (ssa_create_duplicates): Set it, and use it. Attempt to
23516 preserve more debug stmts.
23517
23518 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23519
23520 * config/i386/sse.md (VF1_AVX2): New mode iterator.
23521 (signbit<mode>2): New expander
23522
23523 2019-05-21 James Clarke <jrtc27@jrtc27.com>
23524
23525 PR bootstrap/87338
23526 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
23527 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
23528
23529 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
23530
23531 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
23532 %ebx and %ecx bafore calling cpuid with leaf 1 or
23533 non-constant leaf argument.
23534
23535 2019-05-21 Alan Modra <amodra@gmail.com>
23536
23537 PR target/90545
23538 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
23539 power9 direct move cost.
23540
23541 2019-05-21 Richard Biener <rguenther@suse.de>
23542
23543 PR middle-end/90510
23544 * fold-const.c (fold_read_from_vector): New function.
23545 * fold-const.h (fold_read_from_vector): Declare.
23546 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
23547 single-element insert permutations. Canonicalize selector
23548 further and fix issue with last commit.
23549
23550 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23551
23552 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
23553 parameter with default value false to declaration.
23554 (split_edges_for_insertion): New inline function. Wrapper for
23555 split_critical_edges with for_edge_insertion_p = true.
23556 * tree-cfg.c (split_critical_edges): Don't split non-critical
23557 edges if for_edge_insertion_p is false. Fix whitespace.
23558 * tree-ssa-pre.c (pass_pre::execute): Call
23559 split_edges_for_insertion instead of split_critical_edges.
23560 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
23561 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
23562 (pass_data_sink_code): Update function name in the comment.
23563
23564 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
23565
23566 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
23567 around is_value_included_in that knows how to handle BIT_AND_EXPR.
23568 (is_pred_expr_subset_of): Use the new function. Handle more cases where
23569 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
23570 positives.
23571
23572 2019-05-21 Martin Liska <mliska@suse.cz>
23573
23574 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
23575 an extra newline.
23576 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
23577 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
23578 vec_lvsr.
23579 * config/rs6000/rs6000.c (rs6000_option_override_internal):
23580 Quote a C type.
23581 (rs6000_function_arg): Likewise.
23582 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
23583 (rs6000_expand_ternop_builtin): Use interval syntax.
23584 (get_element_number): Likewise.
23585 (altivec_expand_builtin): Likewise.
23586 (rs6000_get_function_versions_dispatcher): Quote target_clones.
23587
23588 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23589
23590 PR c++/59813
23591 PR target/90418
23592 * function.h (struct function): Add calls_eh_return member.
23593 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
23594 gimplifying __builtin_eh_return call.
23595 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
23596 to cfun.
23597 (expand_call_inline): Or in src_cfun->calls_eh_return into
23598 dst_cfun->calls_eh_return.
23599 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
23600 cfun->calls_eh_return.
23601 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
23602 * lto-streamer-out.c (output_struct_function_base): Write
23603 calls_eh_return.
23604
23605 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
23606
23607 PR rtl-optimization/43147
23608 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
23609 IX86_BUILTIN_SHUFPD.
23610
23611 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23612
23613 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
23614 (refs_may_alias_p_1): ... here; update stats.
23615 (refs_may_alias_p): Do not update stats here.
23616
23617 2019-05-20 Richard Biener <rguenther@suse.de>
23618
23619 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
23620 doesn't produce pointers.
23621 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
23622 the first operand points to.
23623
23624 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
23625
23626 * tree-ssa-alias.c (compare_sizes): New function.
23627 (sompare_type_sizes): New function
23628 (aliasing_component_refs_p): Use it.
23629 (indirect_ref_may_alias_decl_p): Likewise.
23630
23631 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23632
23633 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
23634
23635 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23636
23637 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
23638 (LIBLSAN_EARLY_SPEC): Likewise.
23639 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
23640
23641 2019-05-20 Martin Liska <mliska@suse.cz>
23642
23643 * config/i386/i386.c (ix86_libc_has_fast_function):
23644 Add ATTRIBUTE_UNUSED for the argument.
23645
23646 2019-05-20 Richard Biener <rguenther@suse.de>
23647
23648 * gimple-match-head.c: Include vec-perm-indices.h.
23649 * generic-match-head.c: Likewise.
23650 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
23651 is included.
23652 * fold-const.c (fold_vec_perm): Export.
23653 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
23654 (match.pd): ...here.
23655
23656 2019-05-20 Jakub Jelinek <jakub@redhat.com>
23657
23658 * cfgloop.h (struct loop): Add simdlen member.
23659 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
23660 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
23661 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
23662 as new argument to autovectorize_vector_sizes target hook. If
23663 loop->simdlen, pick up vector size where the vectorization factor
23664 is equal to loop->simd, and if there is none, fall back to the first
23665 successful one.
23666 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
23667 caller.
23668 * omp-low.c (omp_clause_aligned_alignment): Likewise.
23669 * omp-general.c (omp_max_vf): Likewise.
23670 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
23671 * tree-vect-slp.c (vect_slp_bb): Likewise.
23672 * target.def (autovectorize_vector_sizes): Add ALL argument and
23673 document it.
23674 * doc/tm.texi: Adjust documentation.
23675 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
23676 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
23677 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
23678 bool argument.
23679 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
23680 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
23681 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
23682 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
23683 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
23684 preferred vector size is not 512-bit or 256-bit, just put those
23685 unpreferred ones last.
23686
23687 2019-05-20 Martin Liska <mliska@suse.cz>
23688
23689 * targhooks.c (default_libc_has_fast_function): New function.
23690 * targhooks.h (default_libc_has_fast_function): Likewise.
23691
23692 2019-05-20 Martin Liska <mliska@suse.cz>
23693
23694 PR middle-end/90263
23695 * builtins.c (expand_builtin_memory_copy_args): When having a
23696 target with fast mempcpy implementation do now use memcpy.
23697 * config/i386/i386.c (ix86_libc_has_fast_function): New.
23698 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
23699 * doc/tm.texi: Likewise.
23700 * doc/tm.texi.in: Likewise.
23701 * target.def:
23702 * expr.c (emit_block_move_hints): Add 2 new arguments.
23703 * expr.h (emit_block_move_hints): Bail out when libcall
23704 to memcpy would be used.
23705
23706 2019-05-20 Martin Liska <mliska@suse.cz>
23707
23708 * profile-count.c: Add vertical spacing in order
23709 to separate functions.
23710 * profile-count.h: Likewise.
23711
23712 2019-05-20 Martin Liska <mliska@suse.cz>
23713
23714 * profile-count.h: Do not use full qualified
23715 names if possible.
23716 * profile-count.c (profile_count::to_frequency): Likewise.
23717
23718 2019-05-20 Martin Liska <mliska@suse.cz>
23719
23720 * profile-count.h (enum profile_quality): Use capital letters
23721 for enum value names. Use the adjusted names.
23722 * profile-count.c: Use the adjusted names.
23723
23724 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23725
23726 * config/rs6000/constraints.md (define_register_constraint "wH"):
23727 Delete.
23728 (define_register_constraint "wI"): Delete.
23729 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23730 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
23731 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23732 (rs6000_init_hard_regno_mode_ok): Adjust.
23733 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
23734 resp. "d", or with "wa" as appropriate, all with "p8v".
23735 * config/rs6000/vsx.md: Ditto.
23736 * doc/md.texi (Machine Constraints): Adjust.
23737
23738 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23739
23740 * config/rs6000/constraints.md (define_register_constraint "wy"):
23741 Delete.
23742 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23743 RS6000_CONSTRAINT_wy.
23744 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23745 (rs6000_init_hard_regno_mode_ok): Adjust.
23746 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
23747 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
23748 (define_mode_attr Fisa): New.
23749 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
23750 * doc/md.texi (Machine Constraints): Adjust.
23751
23752 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23753
23754 * config/rs6000/constraints.md (define_register_constraint "wu"):
23755 Delete.
23756 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23757 RS6000_CONSTRAINT_wu.
23758 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23759 (rs6000_init_hard_regno_mode_ok): Adjust.
23760 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
23761 both with "p8v".
23762 (define_mode_attr Fa): Delete.
23763 * config/rs6000/vsx.md: Ditto.
23764 * doc/md.texi (Machine Constraints): Adjust.
23765
23766 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23767
23768 * config/rs6000/constraints.md (define_register_constraint "wJ"):
23769 Delete.
23770 (define_register_constraint "wK"): Delete.
23771 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23772 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
23773 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23774 (rs6000_init_hard_regno_mode_ok): Adjust.
23775 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
23776 Replace "wK" constraint by "wH" with "p9v".
23777 * config/rs6000/vsx.md: Ditto.
23778 * doc/md.texi (Machine Constraints): Adjust.
23779
23780 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23781
23782 * config/rs6000/constraints.md (define_register_constraint "wb"):
23783 Delete.
23784 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23785 RS6000_CONSTRAINT_wb.
23786 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23787 (rs6000_init_hard_regno_mode_ok): Adjust.
23788 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
23789 * config/rs6000/vsx.md: Ditto.
23790 * doc/md.texi (Machine Constraints): Adjust.
23791
23792 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
23793
23794 * config/rs6000/constraints.md (define_register_constraint "wo"):
23795 Delete.
23796 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23797 RS6000_CONSTRAINT_wo.
23798 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23799 (rs6000_init_hard_regno_mode_ok): Adjust.
23800 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
23801 * config/rs6000/altivec.md: Ditto.
23802 * doc/md.texi (Machine Constraints): Adjust.
23803
23804 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23805
23806 * config/darwin-c.c (darwin_register_objc_includes): Do not
23807 prepend the sysroot when building gnu-runtime header search
23808 paths.
23809
23810 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
23811
23812 * config/darwin.c (darwin_file_end): Use switch_to_section ()
23813 instead of direct output of the asm.
23814
23815 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23816
23817 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
23818 argument to be type bool (was int before).
23819 (rs6000_emit_epilogue): Simplify some code. Declare some variables
23820 at first use. Use type bool for some variables. Fix a theoretical
23821 eh_return bug for svr4.
23822
23823 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
23824
23825 * config/rs6000/rs6000.md (isa): New attribute.
23826 (enabled): New attribute.
23827
23828 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
23829
23830 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
23831 assemble_start_function and assemble_end_function.
23832
23833 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
23834
23835 PR middle-end/89433
23836 * omp-general.c (oacc_verify_routine_clauses): Change formal
23837 parameters. Add checking if already marked with an OpenACC
23838 'routine' directive. Adjust all users.
23839
23840 PR middle-end/89433
23841 * omp-general.c (oacc_build_routine_dims): Move some of its
23842 processing into...
23843 (oacc_verify_routine_clauses): ... this new function.
23844 * omp-general.h (oacc_verify_routine_clauses): New prototype.
23845
23846 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23847
23848 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
23849 formating of picbase labels to match other ports.
23850
23851 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
23852
23853 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
23854 in the generated code.
23855
23856 2019-05-16 Martin Sebor <msebor@redhat.com>
23857
23858 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
23859 identifiers, keywords, operators, and types in diagnostics. Correct
23860 quoting, spelling, and sentence capitalization issues.
23861 (expand_builtin_atomic_is_lock_free): Same.
23862 (fold_builtin_next_arg): Same.
23863 * cfgexpand.c (expand_one_var): Same.
23864 (tree_conflicts_with_clobbers_p): Same.
23865 (expand_asm_stmt): Same.
23866 (verify_loop_structure): Same.
23867 * cgraphunit.c (process_function_and_variable_attributes): Same.
23868 * collect-utils.c (collect_execute): Same.
23869 * collect2.c (maybe_run_lto_and_relink): Same.
23870 (is_lto_object_file): Same.
23871 (scan_prog_file): Same.
23872 * convert.c (convert_to_real_1): Same.
23873 * dwarf2out.c (dwarf2out_begin_prologue): Same.
23874 * except.c (verify_eh_tree): Same.
23875 * gcc.c (execute): Same.
23876 (eval_spec_function): Same.
23877 (run_attempt): Same.
23878 (driver::set_up_specs): Same.
23879 (compare_debug_auxbase_opt_spec_function): Same.
23880 * gcov-tool.c (unlink_gcda_file): Same.
23881 (do_merge): Same.
23882 (do_rewrite): Same.
23883 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
23884 * gimplify.c (gimplify_asm_expr): Same.
23885 (gimplify_adjust_omp_clauses): Same.
23886 * hsa-gen.c (gen_hsa_addr_insns): Same.
23887 (gen_hsa_insns_for_load): Same.
23888 (gen_hsa_cmp_insn_from_gimple): Same.
23889 (gen_hsa_insns_for_operation_assignment): Same.
23890 (gen_get_level): Same.
23891 (gen_hsa_alloca): Same.
23892 (omp_simple_builtin::generate): Same.
23893 (gen_hsa_atomic_for_builtin): Same.
23894 (gen_hsa_insns_for_call): Same.
23895 * input.c (dump_location_info): Same.
23896 * ipa-devirt.c (compare_virtual_tables): Same.
23897 * ira.c (ira_setup_eliminable_regset): Same.
23898 * lra-assigns.c (lra_assign): Same.
23899 * lra-constraints.c (lra_constraints): Same.
23900 * lto-streamer-in.c (lto_input_mode_table): Same.
23901 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
23902 (merge_and_complain): Same.
23903 (compile_offload_image): Same.
23904 (compile_images_for_offload_targets): Same.
23905 (debug_objcopy): Same.
23906 (run_gcc): Same.
23907 (main): Same.
23908 * opts.c (print_specific_help): Same.
23909 (parse_no_sanitize_attribute): Same.
23910 (print_help): Same.
23911 (handle_param): Same.
23912 * plugin.c (add_new_plugin): Same.
23913 (parse_plugin_arg_opt): Same.
23914 (try_init_one_plugin): Same.
23915 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
23916 operators, and types in diagnostics. Correct quoting and spelling
23917 issues.
23918 * read-rtl-function.c (parse_edge_flag_token): Same.
23919 (function_reader::parse_enum_value): Same.
23920 * reg-stack.c (check_asm_stack_operands): Same.
23921 * regcprop.c (validate_value_data): Same.
23922 * sched-rgn.c (make_pass_sched_fusion): Same.
23923 * stmt.c (check_unique_operand_names): Same.
23924 * targhooks.c (default_target_option_pragma_parse): Same.
23925 * tlink.c (recompile_files): Same.
23926 * toplev.c (process_options): Same.
23927 (do_compile): Same.
23928 * trans-mem.c (diagnose_tm_1): Same.
23929 (ipa_tm_scan_irr_block): Same.
23930 (ipa_tm_diagnose_transaction): Same.
23931 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
23932 format a tree code name in a diagnostic.
23933 (verify_types_in_gimple_min_lval): Same.
23934 (verify_types_in_gimple_reference): Same.
23935 (verify_gimple_call): Same.
23936 (verify_gimple_assign_unary): Same.
23937 (verify_gimple_assign_binary): Same.
23938 (verify_gimple_assign_ternary): Same.
23939 (verify_gimple_assign_single): Same.
23940 (verify_gimple_switch): Same.
23941 (verify_gimple_label): Same.
23942 (verify_gimple_phi): Same.
23943 (verify_gimple_in_seq): Same.
23944 (verify_eh_throw_stmt_node): Same.
23945 (collect_subblocks): Same.
23946 (gimple_verify_flow_info): Same.
23947 (do_warn_unused_result): Same.
23948 * tree-inline.c (expand_call_inline): Same.
23949 * tree-into-ssa.c (update_ssa): Same.
23950 * tree.c (tree_int_cst_elt_check_failed): Same.
23951 (tree_vec_elt_check_failed): Same.
23952 (omp_clause_operand_check_failed): Same.
23953 (verify_type_variant): Same.
23954 (verify_type): Same.
23955 * value-prof.c (verify_histograms): Same.
23956 * varasm.c (assemble_start_function): Same.
23957
23958 2019-05-16 Martin Sebor <msebor@redhat.com>
23959
23960 * config/i386/i386-expand.c (get_element_number): Quote keywords
23961 and other internal names in diagnostics. Adjust other diagnostic
23962 formatting issues noted by -Wformat-diag.
23963 * config/i386/i386-features.c
23964 (ix86_mangle_function_version_assembler_name): Same.
23965 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
23966 * config/i386/i386.c (ix86_function_type_abi): Same.
23967 (ix86_function_ms_hook_prologue): Same.
23968 (classify_argument): Same.
23969 (ix86_expand_prologue): Same.
23970 (ix86_md_asm_adjust): Same.
23971 (ix86_memmodel_check): Same.
23972
23973 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
23974
23975 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
23976 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
23977 and fpxx modes.
23978
23979 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
23980
23981 PR target/90497
23982 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
23983 intrinsics without SSE/SSE2/SSSE3.
23984 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
23985 check.
23986 (*mmx_uavgv8qi3): Likewise.
23987
23988 2019-05-17 Richard Biener <rguenther@suse.de>
23989
23990 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
23991 VEC_PERM_EXPR as __VEC_PERM with -gimple.
23992
23993 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
23994
23995 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
23996 vec_sldw insn pattern.
23997
23998 2019-05-17 Richard Biener <rguenther@suse.de>
23999
24000 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24001
24002 2019-05-17 Martin Liska <mliska@suse.cz>
24003
24004 PR driver/90496
24005 * toplev.c (output_stack_usage): With LTO and sanitizer it
24006 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24007 has no file location.
24008
24009 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24010
24011 PR c++/90484
24012 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24013 sz0 is equal to sz1, instead return false in that case.
24014
24015 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
24016 has non-constant expression, force sctx.lane and use two
24017 argument IFN_GOMP_SIMD_LANE instead of single argument.
24018 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
24019 two argument IFN_GOMP_SIMD_LANE without lhs.
24020 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
24021 member.
24022 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
24023 Define.
24024 (LOOP_REQUIRES_VERSIONING): Or in
24025 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
24026 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24027 simd_if_cond.
24028 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
24029 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
24030 from simd if clause if needed.
24031
24032 2019-05-16 Richard Biener <rguenther@suse.de>
24033
24034 * tree-affine.c (expr_to_aff_combination): New function split
24035 out from...
24036 (tree_to_aff_combination): ... here.
24037 (aff_combination_expand): Avoid building a GENERIC tree.
24038
24039 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
24040
24041 * cgraphunit.c (cgraph_node::expand_thunk): Remove
24042 assemble_start_function and assemble_end_function calls.
24043 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
24044 assemble_start_function and assemble_end_function.
24045 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
24046 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
24047 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
24048 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
24049 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
24050 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
24051 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
24052 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
24053 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24054 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24055 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
24056 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
24057 Likewise.
24058 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
24059 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
24060 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
24061 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
24062 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24063 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24064 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
24065 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
24066 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24067 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24068 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24069 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24070 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
24071 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
24072 Likewise.
24073 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24074 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24075 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
24076
24077 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
24078
24079 * tree-ssa-alias.c (alias_stats): Add
24080 aliasing_component_refs_p_may_alias and
24081 aliasing_component_refs_p_no_alias.
24082 (dump_alias_stats): Print aliasing_component_refs_p stats.
24083 (aliasing_component_refs_p): Update stats.
24084
24085 2019-05-16 Martin Liska <mliska@suse.cz>
24086
24087 PR lto/90500
24088 * multiple_target.c (expand_target_clones): Do not allow
24089 target_clones being used with a symbol that is an alias.
24090
24091 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
24092
24093 PR tree-optimization/90394
24094 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
24095 positives rather than ICE for cases where (code2 == NE_EXPR
24096 && code1 == BIT_AND_EXPR).
24097
24098 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24099
24100 PR fortran/90329
24101 * tree-core.h (struct tree_decl_common): Document
24102 decl_nonshareable_flag for PARM_DECLs.
24103 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
24104 * calls.c (expand_call): Don't try tail call if caller
24105 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
24106 passed on the stack and callee needs to pass any arguments on the
24107 stack.
24108 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24109 else if instead of series of mutually exclusive ifs. Handle
24110 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
24111 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24112
24113 * lto-streamer.h (LTO_major_version): Bump to 9.
24114
24115 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
24116
24117 PR tree-optimization/90106
24118 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
24119 new parameter as new internal function call, also move it to new
24120 basic block.
24121 (use_internal_fn): Pass internal function call to
24122 shrink_wrap_one_built_in_call_with_conds.
24123
24124 2019-05-15 Jakub Jelinek <jakub@redhat.com>
24125
24126 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
24127 max_vf to 1.
24128 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
24129 safelen_int and set loop->dont_vectorize.
24130
24131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24132
24133 PR target/89021
24134 * config/i386/i386-builtin.def: Enable MMX intrinsics with
24135 SSE/SSE2/SSSE3.
24136 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24137 Likewise.
24138 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
24139 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
24140 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
24141 is defined.
24142
24143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24144
24145 PR target/89021
24146 * config/i386/mmx.md (*vec_dupv2sf): Changed to
24147 define_insn_and_split to support SSE emulation.
24148 (*vec_extractv2sf_0): Likewise.
24149 (*vec_extractv2sf_1): Likewise.
24150 (*vec_extractv2si_0): Likewise.
24151 (*vec_extractv2si_1): Likewise.
24152 (*vec_extractv2si_zext_mem): Likewise.
24153 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
24154 (vec_extractv2sf_1 splitter): Likewise.
24155 (vec_extractv2sfsf): Likewise.
24156 (vec_setv2si): Likewise.
24157 (vec_extractv2si_1 splitter): Likewise.
24158 (vec_extractv2sisi): Likewise.
24159 (vec_setv4hi): Likewise.
24160 (vec_extractv4hihi): Likewise.
24161 (vec_setv8qi): Likewise.
24162 (vec_extractv8qiqi): Likewise.
24163 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24164 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
24165 (vec_extractv2sisi): Likewise.
24166 (vec_extractv4hihi): Likewise.
24167 (vec_extractv8qiqi): Likewise.
24168 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24169 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
24170 (vec_initv2sisi): Likewise.
24171 (vec_initv4hihi): Likewise.
24172 (vec_initv8qiqi): Likewise.
24173 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
24174 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
24175 (vec_setv4hi): Likewise.
24176 (vec_setv8qi): Likewise.
24177
24178 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24179
24180 PR target/89021
24181 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
24182 TARGET_MMX_WITH_SSE.
24183 (MMXMODE:*mov<mode>_internal): Likewise.
24184 (MMXMODE:movmisalign<mode>): Likewise.
24185
24186 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24187
24188 PR target/89021
24189 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24190 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24191 (sse2_cvtpd2pi): Ditto.
24192 (sse2_cvttpd2pi): Ditto.
24193 (*vec_concatv2sf_sse4_1): Ditto.
24194 (*vec_concatv2sf_sse): Ditto.
24195 (*vec_concatv2si_sse4_1): Ditto.
24196 (*vec_concatv2si): Ditto.
24197 (*vec_concatv4si_0): Ditto.
24198 (*vec_concatv2di_0): Ditto.
24199
24200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24201
24202 PR target/89021
24203 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24204
24205 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24206
24207 PR target/89021
24208 * config/i386/sse.md (ssse3_palignrdi): Changed to
24209 define_insn_and_split to support SSE emulation.
24210
24211 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24212
24213 PR target/89021
24214 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24215
24216 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24217
24218 PR target/89021
24219 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24220 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24221 SSE emulation.
24222
24223 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24224
24225 PR target/89021
24226 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24227 or TARGET_MMX_WITH_SSE.
24228 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
24229
24230 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24231
24232 PR target/89021
24233 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
24234
24235 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24236
24237 PR target/89021
24238 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
24239 Changed to define_insn_and_split to support SSE emulation.
24240
24241 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24242
24243 PR target/89021
24244 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
24245 Changed to define_insn_and_split to support SSE emulation.
24246
24247 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24248
24249 PR target/89021
24250 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
24251 (*mmx_<emms>): This.
24252 (mmx_<emms>): New expander.
24253
24254 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24255
24256 PR target/89021
24257 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
24258 support.
24259 (*sse2_umulv1siv1di3): Add SSE2 emulation.
24260
24261 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24262
24263 PR target/89021
24264 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
24265
24266 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24267
24268 PR target/89021
24269 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
24270
24271 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24272
24273 PR target/89021
24274 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
24275 TARGET_MMX_WITH_SSE.
24276 (*mmx_uavgv4hi3): Add SSE emulation.
24277
24278 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24279
24280 PR target/89021
24281 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
24282 and TARGET_MMX_WITH_SSE.
24283 (*mmx_uavgv8qi3): Add SSE emulation.
24284
24285 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24286
24287 PR target/89021
24288 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
24289 maskmovdqu for __MMX_WITH_SSE__.
24290
24291 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24292
24293 PR target/89021
24294 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
24295 TARGET_MMX and TARGET_MMX_WITH_SSE.
24296 (*mmx_umulv4hi3_highpart): Add SSE emulation.
24297
24298 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24299
24300 PR target/89021
24301 * config/i386/mmx.md (mmx_pmovmskb): Changed to
24302 define_insn_and_split to support SSE emulation.
24303
24304 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24305
24306 PR target/89021
24307 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
24308 and TARGET_MMX_WITH_SSE.
24309 (mmx_<code>v8qi3): Likewise.
24310 (smaxmin:<code>v4hi3): New.
24311 (umaxmin:<code>v8qi3): Likewise.
24312 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
24313 (umaxmin:*mmx_<code>v8qi3): Likewise.
24314
24315 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24316
24317 PR target/89021
24318 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
24319 TARGET_MMX_WITH_SSE.
24320 (*mmx_pinsrw): Add SSE emulation.
24321
24322 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24323
24324 PR target/89021
24325 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
24326
24327 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24328
24329 PR target/89021
24330 * config/i386/sse.md (sse_cvtpi2ps): Changed to
24331 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24332 SSE emulation.
24333
24334 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24335
24336 PR target/89021
24337 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
24338 (sse_cvttps2pi): Likewise.
24339
24340 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24341
24342 PR target/89021
24343 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
24344 TARGET_MMX_WITH_SSE.
24345 (mmx_pshufw_1): Add SSE emulation.
24346 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
24347 TARGET_MMX_WITH_SSE to support SSE emulation.
24348
24349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24350
24351 PR target/89021
24352 * config/i386/constraints.md (Yw): New constraint.
24353 * config/i386/mmx.md (*vec_dupv2si): Changed to
24354 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
24355 support SSE emulation.
24356
24357 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24358
24359 PR target/89021
24360 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
24361 TARGET_MMX_WITH_SSE.
24362 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24363 support.
24364 (mmx_gt<mode>3): Likewise.
24365
24366 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24367
24368 PR target/89021
24369 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
24370 TARGET_MMX_WITH_SSE. Add SSE support.
24371
24372 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24373
24374 PR target/89021
24375 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
24376 TARGET_MMX_WITH_SSE.
24377 (any_logic:<code><mode>3): New.
24378 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
24379 Add SSE support.
24380
24381 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24382
24383 PR target/89021
24384 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
24385 TARGET_MMX_WITH_SSE. Add SSE emulation.
24386 (mmx_<shift_insn><mode>3): Likewise.
24387 (ashr<mode>3): New.
24388 (<shift_insn><mode>3): Likewise.
24389
24390 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24391
24392 PR target/89021
24393 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
24394 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
24395
24396 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24397
24398 PR target/89021
24399 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
24400 TARGET_MMX_WITH_SSE.
24401 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
24402 SSE support.
24403
24404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24405
24406 PR target/89021
24407 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
24408 TARGET_MMX_WITH_SSE.
24409 (mulv4hi3): New.
24410 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
24411 support.
24412
24413 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24414
24415 PR target/89021
24416 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
24417 (plusminus:mmx_<plusminus_insn><mode>3): Check
24418 TARGET_MMX_WITH_SSE.
24419 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
24420 (<plusminus_insn><mode>3): New.
24421 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
24422 (*mmx_<plusminus_insn><mode>3): Likewise.
24423
24424 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24425
24426 PR target/89021
24427 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
24428 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
24429 prototype.
24430 * config/i386/mmx.m (mmx_punpckhbw): Changed to
24431 define_insn_and_split to support SSE emulation.
24432 (mmx_punpcklbw): Likewise.
24433 (mmx_punpckhwd): Likewise.
24434 (mmx_punpcklwd): Likewise.
24435 (mmx_punpckhdq): Likewise.
24436 (mmx_punpckldq): Likewise.
24437
24438 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24439 Uros Bizjak <ubizjak@gmail.com>
24440
24441 PR target/89021
24442 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
24443 New function.
24444 (ix86_split_mmx_pack): Likewise.
24445 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
24446 New prototype.
24447 (ix86_split_mmx_pack): Likewise.
24448 * config/i386/i386.md (mmx_isa): New.
24449 (enabled): Also check mmx_isa.
24450 * config/i386/mmx.md (any_s_truncate): New code iterator.
24451 (s_trunsuffix): New code attr.
24452 (mmx_packsswb): Removed.
24453 (mmx_packssdw): Likewise.
24454 (mmx_packuswb): Likewise.
24455 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
24456 MMX packsswb/packuswb with SSE2.
24457 (mmx_packssdw): Likewise.
24458 * config/i386/predicates.md (register_mmxmem_operand): New.
24459
24460 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24461
24462 PR target/89021
24463 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24464 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
24465 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
24466 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
24467 (ix86_vector_mode_supported_p): Likewise.
24468 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
24469
24470 2019-05-15 Martin Liska <mliska@suse.cz>
24471
24472 PR middle-end/90478
24473 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24474 Check for overflow.
24475
24476 2019-05-15 Richard Biener <rguenther@suse.de>
24477
24478 * tree-into-ssa.c (pass_build_ssa::execute): Run
24479 update_address_taken before going into SSA.
24480
24481 2019-05-15 Richard Biener <rguenther@suse.de>
24482
24483 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
24484 as __BIT_FIELD_REF with type with -gimple.
24485
24486 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
24487
24488 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
24489 semantically equivalent branches (left over after prior refactorings).
24490
24491 2019-05-15 Richard Biener <rguenther@suse.de>
24492
24493 PR tree-optimization/88828
24494 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
24495 bogus check.
24496
24497 2019-05-14 Richard Biener <rguenther@suse.de>
24498
24499 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
24500 as __VIEW_CONVERT with -gimple.
24501
24502 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24503
24504 PR target/82920
24505 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
24506 Darwin.
24507
24508 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24509
24510 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
24511 define_split to become a define_insn_and_split.
24512
24513 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
24514
24515 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
24516 arguments.
24517 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
24518 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
24519 (sibcall_epilogue): Adjust.
24520 (epilogue): Adjust.
24521
24522 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24523
24524 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
24525 to unsupported ones.
24526 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
24527 * config.host: Likewise.
24528 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
24529 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
24530 __svr4__]: Remove "brand" fallback.
24531 [!KSTAT_DATA_STRING]: Remove.
24532 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
24533 to *-*-solaris2*.
24534 (comdat_group): Likewise.
24535 (set_have_as_tls): Likewise.
24536 (gcc_cv_target_dl_iterate_phdr): Likewise.
24537 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
24538 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
24539 * configure: Regenerate.
24540 * doc/install.texi: Simplify Solaris target triplets.
24541 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
24542 (Specific, *-*-solaris2*): Document Solaris 10 removal.
24543 Remove Solaris 10 references.
24544 Remove obsolete Solaris bug reference.
24545 (Specific, sparc-sun-solaris2.10): Remove.
24546
24547 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
24548
24549 * config/i386/i386.md (any_div): New code iterator.
24550 (paired_mod): New code attribute.
24551 (sgnprefix): Handle DIV and UDIV RTXes.
24552 (u): Ditto.
24553 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
24554 and udivmod<mode>4 patterns using any_div code iterator.
24555 (divmod splitters): Macroize splitters using any_div code iterator.
24556 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
24557 (*udivmodsi4_pow2_zext_2): Ditto.
24558 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
24559 and *udivmod<mode>4_noext patterns using any_div code iterator.
24560 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
24561 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
24562 patterns using any_div code iterator.
24563 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
24564 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
24565 patterns using any_div code iterator.
24566 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
24567 udivmodhiqi3 patterns using any_extend code iterator.
24568
24569 2019-05-14 Richard Biener <rguenther@suse.de>
24570 H.J. Lu <hongjiu.lu@intel.com>
24571
24572 PR tree-optimization/88828
24573 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
24574 permuting in a single non-constant element not extracted
24575 from a vector.
24576
24577 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
24578
24579 * internal-fn.def (SIGNBIT): New.
24580 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
24581 defined.
24582 (signbitv4sf2): Likewise.
24583
24584 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
24585
24586 PR target/90357
24587 * config/mips/mips.c (mips_split_move): Skip forward SRC into
24588 next insn when the SRC reg is dead.
24589
24590 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
24591
24592 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
24593 (alloc_cand_and_find_basis): Ditto.
24594 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
24595 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
24596 (create_add_imm_cand, slsr_process_cast): Ditto.
24597 (slsr_process_copy, replace_mult_candidate): Ditto.
24598 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
24599 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
24600 (pass_strength_reduction::execute): Init the first NULL element.
24601
24602 2019-05-13 Nathan Sidwell <nathan@acm.org>
24603
24604 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
24605 (run_attempt): Reformat line break.
24606
24607 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
24608
24609 PR target/90418
24610 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
24611 data registers in sibcall epilogues.
24612 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24613
24614 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
24615
24616 PR target/89221
24617 * configure.ac (--enable-frame-pointer):
24618 Disable by default for cygwin and mingw.
24619 * configure: Regenerate.
24620
24621 2019-05-13 Nathan Sidwell <nathan@acm.org>
24622
24623 * dwarf2out.c (breakout_comdat_types): Move comment to correct
24624 piece of code.
24625 (const_ok_for_output_1): Balance parens around #if/#else/#endif
24626 (gen_member_die): Move abstract origin check earlier. Only VARs
24627 can be static_inline_p. Simplify splicing control flow.
24628
24629 2019-05-13 Richard Biener <rguenther@suse.de>
24630
24631 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
24632 VIEW_CONVERT_EXPR.
24633 (vect_build_slp_tree_1): Likewise.
24634
24635 2019-05-13 Richard Biener <rguenther@suse.de>
24636
24637 PR tree-optimization/90402
24638 * tree-if-conv.c (tree_if_conversion): Value number only
24639 the loop body by making the latch an exit of the region
24640 as well.
24641 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
24642 processing PHIs.
24643 (do_rpo_vn): Deal with multiple edges into the entry block
24644 that are not backedges inside the region by skipping PHIs
24645 of the entry block.
24646
24647 2019-05-13 Richard Biener <rguenther@suse.de>
24648
24649 PR tree-optimization/90316
24650 * tree-ssa-pre.c (insert_aux): Fold into ...
24651 (insert): ... this function. Use a RPO walk to reduce the
24652 number of required iterations.
24653
24654 2019-05-13 Martin Liska <mliska@suse.cz>
24655
24656 PR tree-optimization/90416
24657 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
24658 string instead of passing the second part as va_arg argument.
24659
24660 2019-05-13 Martin Liska <mliska@suse.cz>
24661
24662 PR gcov-profile/90380
24663 * gcov.c (handle_cycle): Do not support zero cycle count,
24664 it should not be possible.
24665 (path_contains_zero_cycle_arc): New function.
24666 (circuit): Ignore zero cycle arc counts.
24667
24668 2019-05-13 Martin Liska <mliska@suse.cz>
24669
24670 PR gcov-profile/90380
24671 * gcov.c (enum loop_type): Remove the enum and
24672 the operator.
24673 (handle_cycle): Assert that we should not reach
24674 a negative count.
24675 (circuit): Use loop_found instead of a tri-state loop_type.
24676 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
24677 happen.
24678
24679 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24680
24681 PR target/82920
24682 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
24683 (ix86_output_indirect_branch_via_reg): Use output mechanism
24684 accounting for __USER_LABEL_PREFIX__.
24685 (ix86_output_indirect_branch_via_push): Likewise.
24686 (ix86_output_function_return): Likewise.
24687 (ix86_output_indirect_function_return): Likewise.
24688
24689 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
24690
24691 * doc/md.texi: Document use of code attributes in rtx patterns.
24692 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
24693 * read-rtl.c (find_code): Split out search loops into...
24694 (maybe_find_code): ...this new function.
24695 (check_code_iterator): Make the error message more informative.
24696 (check_code_attribute): New function.
24697 (rtx_reader::rtx_alloc_for_name): Likewise.
24698 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
24699 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
24700 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
24701 <max_opp> directly as an rtx code instead of via a match_operator.
24702 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
24703 (<su>abd<mode>_3): Update accordingly.
24704
24705 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
24706
24707 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
24708 is given, print the state of the EH "save world" computation for
24709 Darwin.
24710
24711 2019-05-11 Jakub Jelinek <jakub@redhat.com>
24712
24713 PR c++/59813
24714 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
24715 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
24716
24717 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
24718
24719 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
24720 Use pinsrd for TARGET_SSE4_1.
24721 * config/i386/sse.md (movdi_to_sse): Ditto.
24722
24723 2019-05-10 Richard Biener <rguenther@suse.de>
24724
24725 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
24726 (do_rpo_vn): Initialize next_value_id.
24727
24728 2019-05-10 Martin Liska <mliska@suse.cz>
24729
24730 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24731 Fix plural form.
24732
24733 2019-05-10 Jakub Jelinek <jakub@redhat.com>
24734
24735 PR tree-optimization/90385
24736 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
24737 arguments of the exit phis.
24738
24739 PR c++/90383
24740 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
24741 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
24742 id->do_not_fold.
24743 (copy_tree_body_r): Likewise.
24744 (copy_fn): Set id.do_not_fold to true.
24745
24746 2019-05-10 Martin Liska <mliska@suse.cz>
24747
24748 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
24749 Reapply changes from r269790.
24750
24751 2019-05-10 Martin Liska <mliska@suse.cz>
24752
24753 PR middle-end/90340
24754 * doc/invoke.texi: New params.
24755 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
24756 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
24757 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
24758 Use it.
24759 * tree-switch-conversion.h (struct jump_table_cluster):
24760 Likewise.
24761
24762 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
24763
24764 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
24765
24766 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
24767
24768 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
24769
24770 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
24771
24772 PR rtl-optimization/88879
24773 * sel-sched.c (sel_target_adjust_priority): Remove assert.
24774
24775 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
24776
24777 PR target/90405
24778 * config/arm/arm.c (callee_saved_reg_p): Move before
24779 thumb_find_work_register.
24780 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
24781 thumb_find_work_register. Only call df_get_live_out once.
24782 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
24783 (thumb_find_work_register): Use
24784 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
24785 algorithms to locate a spare call clobbered reg.
24786
24787 2019-05-09 Martin Liska <mliska@suse.cz>
24788
24789 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
24790 and MAX_EXPR in GIMPLE FE format.
24791
24792 2019-05-09 Martin Liska <mliska@suse.cz>
24793
24794 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
24795 * gimple-pretty-print.c (dump_gimple_bb_header):
24796 Dump BB count.
24797 (pp_cfg_jump): Dump edge probability.
24798 * profile-count.c (profile_quality_as_string): Simplify
24799 with a static array.
24800 (parse_profile_quality): New function.
24801 (profile_count::dump): Simplify with a static array.
24802 (profile_count::from_gcov_type): Add new argument.
24803 * profile-count.h (parse_profile_quality): Likewise.
24804 * predict.h (set_hot_bb_threshold): New.
24805 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
24806 New param.
24807 * predict.c (get_hot_bb_threshold): Set from the new param.
24808 (set_hot_bb_threshold): New.
24809
24810 2019-05-09 Richard Biener <rguenther@suse.de>
24811
24812 PR tree-optimization/90395
24813 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
24814 rewrite vector stores that throw internally.
24815
24816 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
24817
24818 * cif-code.def (CHKP): Remove.
24819
24820 PR target/89221
24821 * configure.ac (--enable-frame-pointer): Disable by default for
24822 GNU systems.
24823 * configure: Regenerate.
24824
24825 2019-05-09 Alan Modra <amodra@gmail.com>
24826
24827 PR target/89271
24828 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
24829 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
24830 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
24831 cost for general <-> vsx when direct moves are available.
24832 Cost union classes at minimal cost for any reg in the class.
24833 Correct calculation for moves between vsx, float, and altivec.
24834 Don't return a low cost for moves between special regs. Don't
24835 use hard coded register numbers.
24836 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
24837 (rs6000_ira_change_pseudo_allocno_class): New function.
24838 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
24839 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
24840 alternatives.
24841 (movsi_internal1): Don't disparage vector alternatives.
24842 (mov<mode>_internal): Likewise, excepting alternative that
24843 will be split.
24844 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
24845 we <- b alternative.
24846
24847 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24848
24849 PR c++/59813
24850 PR tree-optimization/89060
24851 * tree-ssa-live.h (live_vars_map): New typedef.
24852 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
24853 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
24854 (struct compute_live_vars_data): New type.
24855 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
24856 live_vars_at_stmt, destroy_live_vars): New functions.
24857 * tree-tailcall.c: Include tree-ssa-live.h.
24858 (live_vars, live_vars_vec): New global variables.
24859 (find_tail_calls): Perform variable life analysis before punting.
24860 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
24861 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
24862 member.
24863 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
24864 Perform variable life analysis to select variables that really need
24865 clobbers added.
24866 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
24867 instead set id->eh_landing_pad_dest and assert it is the same.
24868 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
24869
24870 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
24871 Richard Earnshaw <rearnsha@arm.com>
24872
24873 PR target/88167
24874 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
24875 function.
24876 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
24877 (thumb1_compute_save_core_reg_mask): Don't force a spare work
24878 register if both the epilogue and prologue can use call-clobbered
24879 regs.
24880 (thumb1_unexpanded_epilogue): Use
24881 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
24882 picking temporaries for restoring high regs to match that of the
24883 prologue where possible.
24884 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
24885 the list of work registers. Detect if the return address is still live
24886 at the end of the prologue and avoid using it for a work register if so.
24887 If the return address is not live, add LR to the list of pushable regs
24888 after the first pass.
24889
24890 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24891
24892 PR tree-optimization/90078
24893 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
24894 (INFTY): Increase the value for infinite cost.
24895 (struct comp_cost): Promote type of members to int64_t.
24896 (infinite_cost): Don't set complexity in initialization.
24897 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
24898 overflows to infinite_cost.
24899 (adjust_setup_cost): Promote type of parameter and cost computation
24900 to int64_t.
24901 (struct ainc_cost_data, struct iv_ca): Promote type of member to
24902 int64_t.
24903 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
24904 cost computation to int64_t.
24905 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
24906 int64_t's format specifier in dump.
24907
24908 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
24909
24910 PR tree-optimization/90240
24911 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
24912 with respect to scaling factor pre-computed for each basic block.
24913 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
24914 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
24915 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
24916 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
24917 live range for array of loop's basic blocks. Cleanup aux field of
24918 loop's basic blocks.
24919
24920 2019-05-08 Jakub Jelinek <jakub@redhat.com>
24921
24922 PR tree-optimization/90356
24923 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
24924
24925 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
24926
24927 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
24928 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
24929 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
24930 (ix86_handle_option): Handle -mavx512bf16.
24931 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
24932 to extra_headers.
24933 * config/i386/avx512bf16vlintrin.h: New.
24934 * config/i386/avx512bf16intrin.h: New.
24935 * config/i386/cpuid.h (bit_AVX512BF16): New.
24936 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
24937 * config/i386/i386-builtin-types.def: Add new types.
24938 * config/i386/i386-builtin.def: Add new builtins.
24939 * config/i386/i386-c.c (ix86_target_macros_internal): Define
24940 __AVX512BF16__.
24941 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
24942 (ix86_option_override_internal): Handle BF16.
24943 (ix86_valid_target_attribute_inner_p): Ditto.
24944 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
24945 * config/i386/i386-builtin.c (enum processor_features): Add
24946 F_AVX512BF16.
24947 (static const _isa_names_table isa_names_table): Ditto.
24948 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
24949 (PTA_AVX512BF16): Ditto.
24950 * config/i386/i386.opt: Add -mavx512bf16.
24951 * config/i386/immintrin.h: Include avx512bf16intrin.h
24952 and avx512bf16vlintrin.h.
24953 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
24954 avx512f_cvtneps2bf16_<mode><mask_name>,
24955 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
24956 * config/i386/subst.md (mask_half): Add new subst.
24957 * doc/invoke.texi: Document -mavx512bf16.
24958
24959 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
24960
24961 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
24962 Delete declaration.
24963 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
24964 (rs6000_debug_legitimize_reload_address): Delete.
24965 (rs6000_legitimize_reload_address_ptr): Delete.
24966 (rs6000_option_override_internal): Adjust.
24967 (mem_operand_gpr): Adjust comment.
24968 (legitimate_lo_sum_address_p): Ditto.
24969 (rs6000_legitimize_reload_address): Delete.
24970 (rs6000_debug_legitimize_reload_address): Delete.
24971 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
24972
24973 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
24974
24975 PR target/89765
24976 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
24977 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
24978 to compute vector element selector for both constant and variable
24979 operands.
24980
24981 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24982
24983 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
24984 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
24985 ashrdi3_cvt using SWI48 mode iterator.
24986
24987 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
24988
24989 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
24990 (aarch64_<su>abd<mode>_3): Likewise.
24991 (*aarch64_<su>abd<mode>_3): New define_insn.
24992 (<sur>sad<vsi2qi>): New define_expand.
24993 * config/aarch64/iterators.md: Added MAX_OPP attribute.
24994 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
24995 (build_vect_cond_expr): Likewise.
24996
24997 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
24998
24999 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25000 clobbers outside of accessible_reg_set.
25001 * config/i386/i386.c (ix86_conditional_register_usage):
25002 Disable register sets by clearing corresponding bits in
25003 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25004 call_used_regs and don't clear corresponding reg_names array members.
25005
25006 2019-05-07 Richard Biener <rguenther@suse.de>
25007
25008 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25009 not specified still compute a comp_vectype for invariant
25010 compares.
25011
25012 2019-05-07 Richard Biener <rguenther@suse.de>
25013
25014 PR tree-optimization/90316
25015 * tree-ssa-pre.c (translate_vuse_through_block): When
25016 same_valid is NULL do not bother to search for a virtual
25017 PHI continuation.
25018 (phi_translate_1): When operands changed we cannot keep
25019 the same value-number so do not bother to ask whether
25020 that's possible from translate_vuse_through_block.
25021
25022 2019-05-07 Martin Liska <mliska@suse.cz>
25023
25024 * bitmap.c (bitmap_register): Come up with
25025 alloc_descriptor_max_uid and assign it for
25026 a new bitmap.
25027 (register_overhead): Use get_descriptor as
25028 a descriptor.
25029 (release_overhead): New.
25030 (bitmap_elem_to_freelist): Call it.
25031 (bitmap_elt_clear_from): Likewise.
25032 (bitmap_obstack_free): Likewise.
25033 (bitmap_move): Sensitively release memory.
25034 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
25035 (bitmap_initialize): Initialize alloc_descriptor to zero.
25036 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
25037
25038 2019-05-07 Richard Biener <rguenther@suse.de>
25039
25040 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
25041 we build a SLP node. Remove max_size and limiting.
25042 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
25043
25044 2019-05-07 Richard Biener <rguenther@suse.de>
25045
25046 PR tree-optimization/90316
25047 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
25048 limit by reference.
25049 (walk_non_aliased_vuses): Take walking limit argument.
25050 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
25051 walking if it is reached instead of just counting.
25052 (get_continuation_for_phi): Likewise.
25053 (walk_non_aliased_vuses): Likewise, instead of leaving counter
25054 limiting to the callback.
25055 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
25056 (vn_reference_lookup_3): Likewise.
25057 (vn_reference_lookup_pieces): Likewise.
25058 (vn_reference_lookup): Likewise.
25059 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
25060 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
25061 (avail_exprs_stack::lookup_avail_expr): Likewise.
25062
25063 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
25064
25065 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
25066 for comparaible types in the second direction even if first one
25067 hits incomparable type.
25068
25069 2019-05-07 Richard Biener <rguenther@suse.de>
25070
25071 PR lto/90369
25072 * lto-wrapper.c (debug_objcopy): Use the original filename
25073 including archive offset for the filename used for -save-temps.
25074
25075 2019-05-07 Li Jia He <helijia@linux.ibm.com>
25076
25077 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
25078 detection.
25079
25080 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
25081 Hongtao Liu <hongtao.liu@intel.com>
25082
25083 PR target/89750
25084 PR target/86444
25085 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
25086 Modified, original implementation isn't correct.
25087
25088 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25089
25090 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
25091 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
25092 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
25093 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
25094 (FRAME_POINTER_REGNUM): Change numbering.
25095 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
25096 (alt_reg_names): Adjust.
25097 (rs6000_conditional_register_usage): Don't mark hard register 64 as
25098 fixed.
25099 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25100 (DWARF_FRAME_REGISTERS): Delete.
25101 (DWARF2_FRAME_REG_OUT): Fix whitespace.
25102 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25103 Adjust.
25104 (REG_ALLOC_ORDER): Adjust.
25105 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
25106 (REG_CLASS_CONTENTS): Adjust.
25107 (RETURN_ADDR_RTX): Change comment.
25108 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
25109 instead of 67.
25110 (REGISTER_NAMES): Adjust.
25111 (ADDITIONAL_REGISTER_NAMES): Adjust.
25112 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25113
25114 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25115
25116 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
25117 Delete.
25118 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25119 (DWARF_FRAME_REGISTERS): Adjust.
25120 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25121 Adjust.
25122 (REG_ALLOC_ORDER): Adjust.
25123 (enum reg_class): Delete SPR_REGS.
25124 (REG_CLASS_NAMES): Delete SPR_REGS.
25125 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
25126 (REGISTER_NAMES): Adjust.
25127 (ADDITIONAL_REGISTER_NAMES): Adjust.
25128 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25129 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
25130 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
25131 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
25132 (htm_spr_regno): Delete.
25133 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
25134 argument.
25135 (rs6000_dbx_register_number): Adjust.
25136
25137 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25138
25139 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
25140
25141 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25142
25143 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
25144 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
25145
25146 2019-05-06 Jakub Jelinek <jakub@redhat.com>
25147
25148 PR tree-optimization/88709
25149 PR tree-optimization/90271
25150 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
25151 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
25152 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
25153 variable.
25154 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
25155 of the store merging group is larger than
25156 PARAM_STORE_MERGING_MAX_SIZE parameter.
25157 (split_group): Add bzero_first argument. If set, always emit first
25158 the first store which must be = {} of the whole area and then for the
25159 rest of the stores consider all zero bytes as paddings.
25160 (imm_store_chain_info::output_merged_store): Check if first store
25161 is = {} of the whole area and if yes, determine which setting of
25162 bzero_first for split_group gives smaller number of stores. Adjust
25163 split_group callers.
25164 (lhs_valid_for_store_merging_p): Allow decls.
25165 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
25166 no elts.
25167 (pass_store_merging::process_store): Likewise.
25168
25169 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
25170
25171 PR target/89424
25172 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25173 handling of V1TImode.
25174
25175 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
25176
25177 PR target/89221
25178 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
25179 and enable_frame_pointer ...
25180 * configure.ac: ... here. Update help strings for
25181 --enable-frame-pointer.
25182 * configure: Regenerate.
25183 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25184 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25185 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25186 (USE_X86_64_FRAME_POINTER): Ditto.
25187
25188 2019-05-06 Martin Liska <mliska@suse.cz>
25189
25190 * config.gcc: Append to target_gtfiles and fix indentation.
25191
25192 2019-05-06 Richard Biener <rguenther@suse.de>
25193
25194 PR tree-optimization/90358
25195 * tree-vect-stmts.c (get_group_load_store_type): Properly
25196 detect unused upper half of load.
25197 (vectorizable_load): Likewise.
25198
25199 2019-05-06 Richard Biener <rguenther@suse.de>
25200
25201 PR tree-optimization/88828
25202 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25203 (simplify_vector_constructor): ...here. Handle constants in
25204 the constructor.
25205
25206 2019-05-06 Richard Biener <rguenther@suse.de>
25207
25208 PR tree-optimization/90328
25209 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25210 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25211 is valid in the loop nest before using it.
25212 (initialize_data_dependence_relation): Adjust.
25213 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25214 loop as loop-nest to dr_may_alias_p.
25215
25216 2019-05-06 Richard Biener <rguenther@suse.de>
25217
25218 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25219
25220 2019-05-06 Richard Biener <rguenther@suse.de>
25221
25222 PR tree-optimization/90316
25223 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25224 compute target on demand.
25225 (get_continuation_for_phi): Remove code walking stmts to
25226 get to a target virtual operand which could end up being
25227 quadratic.
25228
25229 2019-05-06 Martin Liska <mliska@suse.cz>
25230
25231 PR sanitizer/90312
25232 * config/i386/i386-options.c (ix86_option_override_internal): Error only
25233 when -mabi is selected to a non-default version.
25234
25235 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
25236 Martin Liska <mliska@suse.cz>
25237
25238 * Makefile.in: Add lto-dump.texi.
25239 * cgraph.h: Add new functions get_visibility_string and
25240 get_symtab_type_string.
25241 * doc/gcc.texi: Include lto-dump section.
25242 * doc/lto-dump.texi: New file.
25243 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
25244 (parse_dump_option): Factor out this function.
25245 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
25246 (parse_dump_option): Export the function.
25247 * symtab.c (symtab_node::get_visibility_string): New function.
25248 (symtab_node::get_symtab_type_string): Likewise.
25249
25250 2019-05-06 Martin Liska <mliska@suse.cz>
25251
25252 * config/i386/i386-builtins.c: New file.
25253 * config/i386/i386-builtins.h: New file.
25254 * config/i386/i386-expand.c: New file.
25255 * config/i386/i386-expand.h: New file.
25256 * config/i386/i386-features.c: New file.
25257 * config/i386/i386-features.h: New file.
25258 * config/i386/i386-options.c: New file.
25259 * config/i386/i386-options.h: New file.
25260 * config.gcc: Add new files into extra_objs and
25261 target_gtfiles.
25262 * config/i386/i386.c: Split content of the file
25263 into newly introduced files.
25264 * config/i386/i386.h: Declare common variables
25265 and macros.
25266 * config/i386/t-i386: Define dependencies for new files.
25267
25268 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
25269
25270 PR target/89400
25271 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
25272 Restrict 'all' variant to 32-bit configurations.
25273 (unaligned_loadhiu): Likewise.
25274 (unaligned_storehi): Likewise.
25275 (unaligned_storesi): Likewise.
25276 (unaligned_loadhis): Disable when compiling for thumb1.
25277
25278 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
25279
25280 PR tree-optimization/90269
25281 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
25282 Ignore clobbers.
25283
25284 2019-05-03 Martin Liska <mliska@suse.cz>
25285
25286 * hash-map.h: Add is_empty function.
25287 * hash-set.h: Likewise.
25288 * hash-table.h: Likewise.
25289 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
25290 elements () == 0 (and similar usages).
25291 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
25292 * gimplify.c (gimplify_bind_expr): Likewise.
25293 (gimplify_switch_expr): Likewise.
25294 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
25295 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
25296 * postreload-gcse.c (dump_hash_table): Likewise.
25297 (gcse_after_reload_main): Likewise.
25298 * predict.c (combine_predictions_for_bb): Likewise.
25299 * tree-parloops.c (reduction_phi): Likewise.
25300 (separate_decls_in_region): Likewise.
25301 (transform_to_exit_first_loop): Likewise.
25302 (gen_parallel_loop): Likewise.
25303 (gather_scalar_reductions): Likewise.
25304 (try_create_reduction_list): Likewise.
25305 * var-tracking.c (dump_vars): Likewise.
25306 (emit_notes_for_changes): Likewise.
25307 (vt_emit_notes): Likewise.
25308
25309 2019-05-03 Richard Biener <rguenther@suse.de>
25310
25311 PR tree-optimization/90316
25312 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
25313 before running VN.
25314
25315 2019-05-03 Richard Biener <rguenther@suse.de>
25316
25317 * tree-vect-stmts.c (get_group_load_store_type): Avoid
25318 peeling for gaps by loading only lower halves of vectors
25319 if possible.
25320 (vectorizable_load): Likewise.
25321
25322 2019-05-03 Richard Biener <rguenther@suse.de>
25323
25324 PR middle-end/89518
25325 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
25326
25327 2019-05-03 Richard Biener <rguenther@suse.de>
25328
25329 PR middle-end/87314
25330 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
25331 Handle STRING_CST vs DECL or STRING_CST.
25332
25333 2019-05-03 Richard Biener <rguenther@suse.de>
25334
25335 PR tree-optimization/88963
25336 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
25337 vector loads feeding only BIT_FIELD_REFs to component
25338 loads. Rewrite stores fed by CONSTRUCTORs to component
25339 stores.
25340
25341 2019-05-03 Jakub Jelinek <jakub@redhat.com>
25342
25343 * opts.h (finish_options): Remove lang_mask argument.
25344 (print_help, help_option_argument): Declare.
25345 * opts.c (print_help): Remove forward declaration, no longer static.
25346 (finish_options): Remove lang_mask argument, don't call print_help
25347 here.
25348 * opts-global.c (decode_options): Adjust finish_option caller, call
25349 print_help here.
25350
25351 PR tree-optimization/90303
25352 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
25353 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
25354
25355 2019-05-03 Richard Biener <rguenther@suse.de>
25356
25357 PR tree-optimization/89698
25358 * gimple-fold.c (canonicalize_constructor_val): Early out
25359 for constants, handle unfolded INTEGER_CSTs as they appear in
25360 C++ virtual table ctors.
25361
25362 2019-05-03 Richard Biener <rguenther@suse.de>
25363
25364 * passes.c (execute_function_todo): Remove dead code.
25365
25366 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25367
25368 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
25369 the internal register number, for any "real" register.
25370
25371 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
25372
25373 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
25374 correct numbers for TFHAR, TFIAR, TEXASR.
25375
25376 2019-05-02 Richard Biener <rguenther@suse.de>
25377
25378 PR tree-optimization/89653
25379 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
25380 update-address-taken before the pass.
25381 * passes.def (pass_tree_loop_init): Put comment before it.
25382
25383 2019-05-02 Richard Biener <rguenther@suse.de>
25384
25385 PR tree-optimization/89509
25386 * tree-ssa-structalias.c (compute_dependence_clique): Look
25387 at the first subvar when determining whether it is restrict.
25388
25389 2019-05-02 Richard Biener <rguenther@suse.de>
25390
25391 PR tree-optimization/90273
25392 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
25393 useless debug stmts.
25394
25395 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25396
25397 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
25398 ACLE branch.
25399 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
25400 SVE ACLE branch.
25401 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
25402 VEC_COND_EXPR be inserted to emulate a conditional internal function.
25403 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
25404 (vectorizable_reduction): Use the functions above to vectorize in a
25405 fully masked loop codes that don't have a conditional internal
25406 function.
25407
25408 2019-05-02 Martin Liska <mliska@suse.cz>
25409
25410 * cgraphclones.c: Call valid_attribute_p with 1 for
25411 target_clone.
25412 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
25413 it's for target attribute.
25414 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
25415 Add new boolean argument.
25416 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
25417 Likewise.
25418 (ix86_valid_target_attribute_tree): Pass target_clone_attr
25419 to ix86_valid_target_attribute_inner_p.
25420 (ix86_valid_target_attribute_p): Pass flags argument to
25421 ix86_valid_target_attribute_inner_p.
25422 (get_builtin_code_for_version): Use 0 as it's target attribute.
25423
25424 2019-05-02 Martin Liska <mliska@suse.cz>
25425
25426 * gcc.c (process_command): Add dummy file only
25427 if n_infiles == 0.
25428 * opts-global.c (decode_options): Pass lang_mask.
25429 * opts.c (print_help): New function.
25430 (finish_options): Print --help if help_option_argument
25431 is set.
25432 (common_handle_option): Factor out content of OPT__help_
25433 into print_help.
25434 * opts.h (finish_options): Add new argument.
25435
25436 2019-05-02 Martin Liska <mliska@suse.cz>
25437
25438 PR target/88809
25439 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
25440 With -minline-all-stringops use inline expansion using 4B loop.
25441 * doc/invoke.texi: Document the change of
25442 -minline-all-stringops.
25443
25444 2019-05-01 Jeff Law <law@redhat.com>
25445
25446 PR tree-optimization/88797
25447 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
25448 PHI feeds a conditional on the RHS of an assignment.
25449
25450 2019-04-30 Andrew Waterman <andrew@sifive.com>
25451 Jim Wilson <jimw@sifive.com>
25452
25453 * config/riscv/constraints.md (L): New.
25454 * config/riscv/predicates.md (lui_operand): New.
25455 (sfb_alu_operand): New.
25456 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
25457 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
25458 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
25459 * config/riscv/risc.md (type): Add sfb_alu.
25460 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
25461 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
25462 (branch_zero<mode>): Delete.
25463 (mov<mode>cc): New.
25464 (mov<GPR:mode><X:mode>cc): Likewise.
25465 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
25466
25467 2019-04-30 Nathan Sidwell <nathan@acm.org>
25468
25469 * tree.h (MARK_TS_EXP): New.
25470
25471 2019-04-30 Martin Liska <mliska@suse.cz>
25472
25473 * opts.c (enable_warning_as_error): Provide hints
25474 for unknown options.
25475
25476 2019-04-30 Martin Liska <mliska@suse.cz>
25477
25478 PR debug/90288
25479 * doc/invoke.texi: Add missing dash for gas-locview-support
25480 and gno-as-locview-support.
25481
25482 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25483
25484 PR target/89093
25485 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
25486 whitespace at the start of target attribute string.
25487
25488 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25489
25490 PR target/86538
25491 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25492 Define __ARM_FEATURE_ATOMICS.
25493
25494 2019-04-30 Martin Liska <mliska@suse.cz>
25495
25496 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
25497 into built_in_function enum. Remove code for endp == 2 and
25498 use BUILT_IN_* constants.
25499 (gimple_fold_builtin): Call the function with fcode.
25500
25501 2019-04-30 Martin Liska <mliska@suse.cz>
25502
25503 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
25504 DECL_FUNCTION_CODE into ix86_builtins enum before
25505 the switch statement.
25506
25507 2019-04-30 Jakub Jelinek <jakub@redhat.com>
25508
25509 PR tree-optimization/89475
25510 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
25511 calls.
25512
25513 2019-04-30 Martin Liska <mliska@suse.cz>
25514
25515 PR translation/90274
25516 * opts.c (print_filtered_help): Wrap string in _(...).
25517
25518 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
25519
25520 PR tree-optimization/90240
25521 Revert:
25522 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25523
25524 PR tree-optimization/90078
25525 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25526 checks for infinite_cost overflow.
25527
25528 2019-04-29 Jeff Law <law@redhat.com>
25529
25530 * passes.def: Move -Wrestrict pass after copy propagation.
25531
25532 2019-04-29 Maya Rashish <coypu@sdf.org>
25533
25534 * config.gcc (default_gnu_indirect_function): Default to yes
25535 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
25536 sparc*-*-netbsd*, x86_64-*-netbsd*.
25537
25538 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
25539
25540 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
25541 where cond2 is NE_EXPR.
25542 (is_value_included_in): Update comment.
25543
25544 2019-04-29 Richard Biener <rguenther@suse.de>
25545
25546 PR tree-optimization/90278
25547 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
25548 EH on comparison simplification.
25549
25550 2019-04-29 Jason Merrill <jason@redhat.com>
25551
25552 PR c++/82081 - tail call optimization breaks noexcept
25553 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
25554 nothrow function to a might-throw function into a tail call.
25555
25556 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
25557
25558 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
25559 (DDR_INNER_LOOP): Likewise.
25560 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
25561 (initialize_data_dependence_relation): Likewise.
25562 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
25563
25564 2019-04-29 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR rtl-optimization/90257
25567 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
25568 return value.
25569
25570 Revert the revert:
25571 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25572
25573 PR target/90178
25574 Revert:
25575 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25576
25577 Revert the revert:
25578 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25579
25580 Revert:
25581 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25582
25583 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25584
25585 2019-04-29 Richard Biener <rguenther@suse.de>
25586
25587 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
25588 rhs issue a reset.
25589
25590 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
25591
25592 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
25593 varasm.h, and netbsd-protos.h.
25594
25595 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
25596
25597 PR target/89261
25598 * config/i386/i386-protos.h (ix86_data_alignment): Change
25599 the second argument type to unsigned int.
25600 * config/i386/i386.c (ix86_data_alignment): Change "align"
25601 argument type to unsigned int.
25602
25603 2019-04-27 Martin Liska <mliska@suse.cz>
25604
25605 PR middle-end/90258
25606 * opt-suggestions.c (option_proposer::build_option_suggestions):
25607 When get_valid_option_values returns empty values, add the
25608 misspelling candidate.
25609
25610 2019-04-26 Jim Wilson <jimw@sifive.com>
25611
25612 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
25613 parameter.
25614 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
25615 Pass orig_mode to riscv_build_integer.
25616 (riscv_split_integer): Pass mode to riscv_move_integer.
25617 (riscv_legitimize_const_move): Likewise.
25618 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
25619 promoted_mode. Replace force_reg call with code to load constant into
25620 promoted reg and then subreg it for the store.
25621 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
25622 riscv_move_integer.
25623
25624 2018-04-26 Eugene Sharygin <eush@ispras.ru>
25625
25626 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
25627 corrupt codes.
25628
25629 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
25630
25631 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
25632 commentary about the encoding of precision.
25633
25634 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
25635
25636 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
25637 * config/i386/t-freebsd64: New file.
25638 * config.gcc: Add the t-freebsd64 for multilib support.
25639
25640 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
25641
25642 * doc/extend.texi (vector_size): Add missing comma after @xref.
25643
25644 2019-04-25 Jakub Jelinek <jakub@redhat.com>
25645
25646 * BASE-VER: Set to 10.0.0.
25647
25648 2019-04-25 Richard Biener <rguenther@suse.de>
25649
25650 PR middle-end/89765
25651 * gimplify.c (gimplify_expr): Avoid turning a lvalue
25652 VIEW_CONVERT_EXPR into one operating on an rvalue.
25653
25654 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
25655
25656 PR target/89929
25657 * config/i386/i386.c (feature_priority): Moved to file scope.
25658 (processor_features): Likewise.
25659 (processor_model): Likewise.
25660 (_arch_names_table): Likewise.
25661 (arch_names_table): Likewise.
25662 (_feature_list): Removed.
25663 (feature_list): Likewise.
25664 (_isa_names_table): Moved to file scope. Add priority.
25665 (isa_names_table): Likewise.
25666 (get_builtin_code_for_version): Replace feature_list with
25667 isa_names_table. Update error message for P_ZERO priority.
25668
25669 2019-04-25 Richard Biener <rguenther@suse.de>
25670
25671 * tree-pass.h (make_pass_phi_only_cprop): Remove.
25672 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
25673
25674 2019-04-24 Jeff Law <law@redhat.com>
25675
25676 PR tree-optimization/90037
25677 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
25678 * passes.def: Replace all instance of phi-only cprop with the
25679 lattice propagator. Move propagation pass from after erroneous
25680 path isolation to before erroneous path isolation.
25681 * tree-ssa-phionlycprop.c: Remove.
25682
25683 2019-04-24 Richard Biener <rguenther@suse.de>
25684
25685 PR middle-end/90213
25686 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
25687 by size and BITS_PER_UNIT on poly-wide-ints.
25688
25689 2019-04-25 Richard Biener <rguenther@suse.de>
25690
25691 PR middle-end/90194
25692 * match.pd: Add pattern to simplify view-conversion of an
25693 empty constructor.
25694
25695 2019-04-24 Clement Chigot <clement.chigot@atos.net>
25696
25697 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
25698 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
25699 for Go on 32 bit AIX.
25700 * config/rs6000/aix72.h: Likewise.
25701
25702 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25703
25704 PR target/90193
25705 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
25706 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
25707
25708 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
25709
25710 PR target/89952
25711 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
25712 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
25713 for restored hard frame pointer.
25714 (s390_sched_dependencies_evaluation): Implement new target hook.
25715 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
25716
25717 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
25718
25719 * config/arc/arc-options.def: Fix typos and spelling mistakes.
25720 * config/arc/arc.c (arc_init): Cleanup warning message.
25721 (arc_override_options): Likewise.
25722
25723 2019-04-24 Jakub Jelinek <jakub@redhat.com>
25724
25725 PR target/90187
25726 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
25727 a register if both if_true and if_false are MEMs.
25728
25729 PR tree-optimization/90208
25730 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
25731 after labels of new_bb, not before them.
25732
25733 PR tree-optimization/90211
25734 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
25735 which are not SSA_NAMEs.
25736
25737 2018-04-23 Sudakshina Das <sudi.das@arm.com>
25738
25739 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
25740 AArch64.
25741 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
25742
25743 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25744
25745 PR rtl-optimization/87979
25746 * modulo-sched.c (sms_schedule): Start ii value "mii" should
25747 not equal zero.
25748
25749 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
25750
25751 PR rtl-optimization/84032
25752 * modulo-sched.c (ps_insn_find_column): Change condition so that
25753 branch will always be the last insn in a row inside partial
25754 schedule.
25755
25756 2019-04-23 Richard Biener <rguenther@suse.de>
25757
25758 PR debug/90131
25759 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
25760 dest_single_pred_p argument.
25761 (remove_forwarder_block): Adjust.
25762 (remove_forwarder_block_with_phi): Likewise.
25763
25764 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25765 Bernd Edlinger <bernd.edlinger@hotmail.de>
25766 Jakub Jelinek <jakub@redhat.com>
25767
25768 PR target/89093
25769 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
25770 if used with general-regs-only.
25771 (arm_conditional_register_usage): Don't add non-general regs if
25772 general-regs-only.
25773 (arm_valid_target_attribute_rec): Handle general-regs-only.
25774 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
25775 general-regs-only.
25776 (TARGET_HARD_FLOAT_SUB): Define.
25777 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
25778 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
25779 (TARGET_REALLY_IWMMXT2): Likewise.
25780 * config/arm/arm.opt: Add -mgeneral-regs-only.
25781 * doc/extend.texi: Document ARM general-regs-only target.
25782 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
25783
25784 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25785
25786 PR tree-optimization/90078
25787 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
25788 checks for infinite_cost overflow.
25789
25790 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
25791
25792 PR tree-optimization/90021
25793 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
25794 and check univariate against it.
25795 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
25796 * tree-data-ref.c (add_other_self_distances): Pass new argument.
25797
25798 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
25799
25800 PR target/90178
25801 Revert:
25802 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
25803
25804 Revert the revert:
25805 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
25806
25807 Revert:
25808 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
25809
25810 * lra-spills.c (lra_final_code_change): Remove useless move insns.
25811
25812 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
25813
25814 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
25815 names using operand format, rather than hard-wired.
25816 (speculation_barrier): Likewise.
25817
25818 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
25819
25820 PR tree-optimization/88055
25821 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
25822 (gen_one_condition): Use it if !HONOR_NANS.
25823
25824 2019-04-19 Jakub Jelinek <jakub@redhat.com>
25825
25826 PR middle-end/90139
25827 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
25828 assign_temp instead of gen_reg_rtx.
25829
25830 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
25831
25832 PR translation/90118
25833 * config/aarch64/aarch64.c (aarch64_override_options_internal):
25834 Add missing space before %<.
25835
25836 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
25837
25838 PR rtl-optimization/87871
25839 * ira-lives.c (make_object_dead): Don't add conflicts to
25840 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
25841
25842 2019-04-18 Martin Sebor <msebor@redhat.com>
25843
25844 PR middle-end/89797
25845 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
25846 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
25847 assuming type size fits in SHWI.
25848
25849 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
25850
25851 PR ipa/85051
25852 * ipa-inline.c (flatten_function): New parameter UPDATE.
25853 (ipa_inline, early_inliner): Use it.
25854
25855 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25856
25857 * fold-const.c (int_const_binop): Return early on failure.
25858
25859 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
25860
25861 PR middle-end/85164
25862 * combine.c (force_int_to_mode): Cast the argument rather than
25863 the result of known_alignment.
25864 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
25865
25866 2019-04-18 Richard Biener <rguenther@suse.de>
25867
25868 PR debug/90131
25869 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
25870 out from ...
25871 (remove_forwarder_block): ... here.
25872 (remove_forwarder_block_with_phi): Also move debug stmts here.
25873
25874 2019-04-18 Jakub Jelinek <jakub@redhat.com>
25875
25876 PR translation/79183
25877 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
25878 inform where appropriate.
25879
25880 2019-04-18 Richard Biener <rguenther@suse.de>
25881
25882 * tree.c (get_qualified_type): Put found type variants at the
25883 head of the variant list.
25884
25885 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25886
25887 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
25888
25889 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
25890
25891 PR target/90125
25892 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
25893 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
25894 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
25895 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
25896 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
25897
25898 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
25899
25900 * ira-conflicts.c (print_allocno_conflicts): Always print something,
25901 even for allocno's with no conflicts.
25902 (print_conflicts): Print an extra newline.
25903
25904 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25905
25906 * auto-inc-dec.c (attempt_change): Set the alignment of the
25907 temporary memory to that of the original.
25908
25909 2019-04-17 Joao Moreira <jmoreira@suse.de>
25910
25911 * targhooks.c (default_print_patchable_function_entry): Emit
25912 __patchable_function_entries section with writable flags to allow
25913 relocation resolution.
25914
25915 2019-04-17 Jonny Grant <jg@jguk.org>
25916
25917 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
25918
25919 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25920
25921 PR middle-end/90095
25922 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
25923 on lowpart SUBREGs.
25924
25925 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
25926
25927 * config/arc/arc.c (arc_init): Format diagnostic string.
25928 (arc_override_options): Likewise.
25929 (check_if_valid_regno_const): Likewise.
25930 (arc_reorg): Likewise.
25931
25932 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
25933
25934 PR target/17108
25935 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
25936 name.
25937 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
25938 name.
25939 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
25940 (*movdi_update1): Use Pmode.
25941 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
25942 (movdi_<mode>_update_stack): Rename to ...
25943 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
25944 use Pmode.
25945 (*movsi_update1): Use Pmode.
25946 (*movsi_update2): Use Pmode.
25947 (movsi_update): Rename to ...
25948 (movsi_<mode>_update): ... this. Use Pmode.
25949 (movsi_update_stack): Fix condition.
25950 (*movhi_update1): Use Pmode. Fix argument to
25951 avoiding_indexed_address_p.
25952 (*movhi_update2): Ditto.
25953 (*movhi_update3): Ditto.
25954 (*movhi_update4): Ditto.
25955 (*movqi_update1): Ditto.
25956 (*movqi_update2): Ditto.
25957 (*movqi_update3): Ditto.
25958 (*movsf_update1, *movdf_update1): Merge, rename to...
25959 (*mov<mode>_update1): This. Use Pmode. Fix argument to
25960 avoiding_indexed_address_p. Add "size" attribute.
25961 (*movsf_update2, *movdf_update2): Merge, rename to...
25962 (*mov<mode>_update2): This. Ditto.
25963 (*movsf_update3): Use Pmode. Fix argument to
25964 avoiding_indexed_address_p.
25965 (*movsf_update4): Ditto.
25966 (allocate_stack): Simplify condition. Adjust pattern names.
25967
25968 2019-04-17 Jakub Jelinek <jakub@redhat.com>
25969
25970 PR target/89093
25971 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
25972 whitespace at the start of target attribute string.
25973
25974 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
25975
25976 PR target/84369
25977 * config/rs6000/power9.md: Add store forwarding bypass.
25978
25979 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
25980
25981 PR debug/89528
25982 * valtrack.c (dead_debug_insert_temp): Reset debug references
25983 to the return value of a call being removed.
25984
25985 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25986
25987 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
25988 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
25989 implement target hook.
25990 (arc_memory_move_cost): New function.
25991 (TARGET_REGISTER_MOVE_COST): Define.
25992 (TARGET_MEMORY_MOVE_COST): Likewise.
25993 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
25994 (MEMORY_MOVE_COST): Likewise.
25995
25996 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
25997
25998 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
25999 (sibcall_value_insn): Likewise.
26000 * config/arc/constraints.md (Rs5): Remove.
26001
26002 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26003
26004 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26005 for last two fake registers.
26006 (arc_conditional_register_usage): Make sure fake frame and arg
26007 pointer regs are in general regs class.
26008 (FRAME_POINTER_MASK): Remove.
26009 (RETURN_ADDR_MASK): Remove.
26010 (arc_must_save_register): Use hard frame regnum.
26011 (frame_restore_reg): Use hard_frame_pointer_rtx.
26012 (arc_save_callee_saves): Likewise.
26013 (arc_restore_callee_saves): Likewise.
26014 (arc_save_callee_enter): Likewise.
26015 (arc_restore_callee_leave): Likewise.
26016 (arc_save_callee_milli): Likewise.
26017 (arc_eh_return_address_location): Likewise.
26018 (arc_check_multi): Use hard frame regnum.
26019 (arc_can_eliminate): Likewise.
26020 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
26021 for register allocator.
26022 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
26023 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
26024 (FRAME_POINTER_REGNUM): Change it to a fake register.
26025 (HARD_FRAME_POINTER_REGNUM): Defined.
26026 (ARG_POINTER_REGNUM): Change it to a new fake register.
26027 (ELIMINABLE_REGS): Update.
26028 (REGISTER_NAMES): Update names.
26029 * config/arc/arc.md (LP_START): Remove.
26030 (LP_END): Likewise.
26031 (shift_si3_loop): Update pattern.
26032
26033 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26034
26035 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
26036 to avoid delay slot scheduling.
26037 (arc_must_save_register): Don't save SP.
26038 * config/arc/arc.md (stack_tie): Remove.
26039 (UNSPEC_ARC_STKTIE): Likewise.
26040
26041 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
26042 Shiva Chen <shiva0217@gmail.com>
26043
26044 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
26045 code gen with large shift amount.
26046
26047 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
26048
26049 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
26050 subreg.
26051
26052 2019-04-16 Jakub Jelinek <jakub@redhat.com>
26053
26054 PR target/90096
26055 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
26056 print -m64/-mx32/-m32 if it is true.
26057 (ix86_debug_options, ix86_function_specific_print): Pass true as
26058 ADD_ABI_P to ix86_target_string.
26059 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
26060 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
26061 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
26062
26063 PR rtl-optimization/90082
26064 * dce.c (can_delete_call): New function.
26065 (deletable_insn_p, mark_insn): Use it.
26066
26067 PR tree-optimization/90090
26068 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
26069 throw internally.
26070 (is_division_by_square): Likewise. Formatting fix.
26071
26072 2019-04-16 Richard Biener <rguenther@suse.de>
26073
26074 PR tree-optimization/56049
26075 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
26076 equality check if alias-set zero will prevail.
26077
26078 2019-04-15 Jeff Law <law@redhat.com>
26079
26080 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
26081 size and alignment as unsigned.
26082
26083 2019-04-15 Richard Biener <rguenther@suse.de>
26084
26085 PR debug/90074
26086 * tree-loop-distribution.c (destroy_loop): Preserve correct
26087 debug info.
26088
26089 2019-04-15 Richard Biener <rguenther@suse.de>
26090
26091 PR tree-optimization/90071
26092 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
26093 abnormal operands from def stmts.
26094
26095 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
26096
26097 PR rtl-optimization/89794
26098 * combine.c (count_auto_inc): New function.
26099 (try_combine): Count how many auto_inc expressions there were in the
26100 original instructions. Ensure we have the same number in the new
26101 instructions. Remove the code that tried to ensure auto_inc side
26102 effects on i1 and i0 are not lost.
26103
26104 2019-04-15 Richard Biener <rguenther@suse.de>
26105
26106 PR ipa/88936
26107 * tree.h (auto_var_p): Declare.
26108 * tree.c (auto_var_p): New function, split out from ...
26109 (auto_var_in_fn_p): ... here.
26110 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
26111 member.
26112 (new_var_info): Initialize it.
26113 (set_uids_in_ptset): Also set the shadow variable uid if required.
26114 (ipa_pta_execute): Postprocess points-to solutions assigning
26115 shadow variable uids for locals that may reach their containing
26116 function recursively.
26117 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
26118 assert but instead check whether the points-to solution is
26119 a singleton.
26120
26121 2019-04-15 Martin Jambor <mjambor@suse.cz>
26122
26123 PR ipa/pr89693
26124 * cgraph.c (clone_of_p): Loop over clone chain for each step in
26125 the thunk chain.
26126
26127 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26128
26129 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
26130
26131 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26132 Kito Cheng <kito.cheng@gmail.com>
26133 Shiva Chen <shiva0217@gmail.com>
26134
26135 * config/nds32/nds32-md-auxiliary.c
26136 (nds32_legitimize_pic_address): Use new PIC pattern.
26137 (nds32_legitimize_tls_address): Use new TLS pattern.
26138 (nds32_output_symrel): New.
26139 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
26140 (nds32_alloc_relax_group_id): Ditto.
26141 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
26142 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
26143 relax_group_id.
26144 (nds32_group_tls_insn): Ditto.
26145 (nds32_group_float_insns): Ditto.
26146 * config/nds32/nds32.md (tls_le): New.
26147 (sym_got): Ditto.
26148
26149 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
26150
26151 * configure: Add nds32 target for dwarf2 debug_line checking.
26152 * configure.ac: Regenerated.
26153
26154 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
26155
26156 PR lto/89358
26157 * ipa-devirt.c (skip_in_fields_list_p): New.
26158 (odr_types_equivalent_p): Use it.
26159
26160 2019-04-13 Jakub Jelinek <jakub@redhat.com>
26161
26162 PR target/89093
26163 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
26164 instead of strncmp when checking for thumb and arm. Formatting fixes.
26165
26166 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
26167
26168 * doc/install.texi: Document --with-target-system-zlib.
26169
26170 2019-04-12 Martin Sebor <msebor@redhat.com>
26171
26172 PR c/88383
26173 PR c/89288
26174 PR c/89798
26175 PR c/89797
26176 * targhooks.c (default_vector_alignment): Avoid assuming
26177 argument fits in SHWI.
26178 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
26179 a shift expression.
26180 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
26181
26182 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26183
26184 PR rtl-optimization/89965
26185 * dce.c: Include rtl-iter.h.
26186 (struct check_argument_load_data): New type.
26187 (check_argument_load): New function.
26188 (find_call_stack_args): Check for loads from stack slots still tracked
26189 in sp_bytes and punt if any is found.
26190
26191 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26192
26193 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26194
26195 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26196 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26197
26198 2019-04-12 Martin Liska <mliska@suse.cz>
26199
26200 PR middle-end/89970
26201 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26202 in error message.
26203 (separate_attrs): Handle multiple 'default's.
26204 (expand_target_clones): Rework error handling code.
26205
26206 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26207
26208 PR target/87532
26209 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26210 mode of vector rather than mode of destination for move instruction.
26211 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26212 Use QI inner mode with V16QI vector mode.
26213
26214 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26215
26216 PR target/52726
26217 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26218 "invalid %%t operand" in output_operand_lossage message.
26219
26220 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26221
26222 * config/s390/predicates.md (permute_pattern_operand): New
26223 predicate.
26224 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26225 operand for the permute pattern.
26226 ("*vec_perm<mode>"): New insn definition.
26227 ("bswap<mode>"): Generate the permute pattern operand in the
26228 expander and perform the operand reloads for pre arch13 level
26229 already.
26230 ("*bswap<mode>_emu"): Rename to ...
26231 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
26232 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
26233 Add the USE operand for the permute pattern.
26234 ("*vec_set_bswap_vec<mode>"): Likewise.
26235
26236 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26237
26238 PR c/89946
26239 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
26240 and gcc_unreachable if it fails, just call tree_to_uhwi which
26241 verifies that too. Test TREE_CHAIN instead of list_length > 1.
26242 Start warning message with a lower-case letter. Formatting fixes.
26243
26244 PR rtl-optimization/90026
26245 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
26246 successors, look for BARRIERs inside of the whole BB_FOOTER chain
26247 rather than just at the start of it. If e->src BB_FOOTER is not NULL
26248 in cfglayout mode, use emit_barrier_after_bb.
26249
26250 2018-04-11 Steve Ellcey <sellcey@marvell.com>
26251
26252 PR rtl-optimization/87763
26253 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
26254 New Instruction.
26255
26256 2019-04-11 Tom de Vries <tdevries@suse.de>
26257
26258 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
26259 max macro using statement expression.
26260
26261 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
26262
26263 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
26264 * xcoffout.c (xcoff_private_rodata_section_name): Define.
26265 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
26266 read_only_private_data_section using xcoff_private_rodata_section_name.
26267 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
26268
26269 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
26270
26271 PR target/90016
26272 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
26273
26274 2019-04-11 Jakub Jelinek <jakub@redhat.com>
26275
26276 PR rtl-optimization/89965
26277 * dce.c (sp_based_mem_offset): New function.
26278 (find_call_stack_args): Use sp_based_mem_offset.
26279
26280 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
26281
26282 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
26283
26284 2019-04-11 Richard Biener <rguenther@suse.de>
26285
26286 PR tree-optimization/90020
26287 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
26288 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
26289 * tree-ssa-pre.c (compute_avail): Use it to not put
26290 possibly trapping references after a call that might not
26291 return into EXP_GEN.
26292 * gcse.c (compute_hash_table_work): Do not elide
26293 marking a block containing a call if the call might not
26294 return.
26295
26296 2019-04-11 Richard Biener <rguenther@suse.de>
26297
26298 PR tree-optimization/90018
26299 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
26300 Test both SLP and interleaving variants.
26301
26302 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
26303
26304 * config/s390/8561.md: New file.
26305 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26306 Add arch13 cpu model.
26307 * config/s390/s390-opts.h (enum processor_type): Likewise.
26308 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
26309 (s390_get_unit_mask): Likewise.
26310 (s390_is_fpd): Likewise.
26311 (s390_is_fxd): Likewise.
26312 * config/s390/s390.h (s390_tune_attr): Likewise.
26313 * config/s390/s390.md: Include arch13 pipeline description.
26314 * config/s390/s390.opt: Add arch13.
26315
26316 2018-04-10 Steve Ellcey <sellcey@marvell.com>
26317
26318 PR rtl-optimization/87763
26319 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
26320 New prototype.
26321 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
26322 New function.
26323 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
26324 New instruction.
26325 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
26326 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
26327 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
26328 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
26329
26330 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
26331
26332 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
26333 "Although" in -fipa-icf documentation.
26334
26335 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
26336 of using multiple -g options.
26337
26338 2019-04-10 Martin Liska <mliska@suse.cz>
26339
26340 PR gcov-profile/89959
26341 * doc/gcov.texi: Make documentation of -x option
26342 more precise.
26343
26344 2019-04-10 Richard Biener <rguenther@suse.de>
26345
26346 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
26347 member.
26348 (DR_GROUP_SAME_DR_STMT): Remove.
26349 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
26350 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
26351 replace with assert.
26352 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
26353 (vect_record_grouped_load_vectors): Remove unreachable code.
26354
26355 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
26356
26357 PR target/90016
26358 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
26359 obsolete reference to N.
26360
26361 2019-04-10 Jakub Jelinek <jakub@redhat.com>
26362
26363 PR middle-end/90025
26364 * expr.c (store_expr): Set properly size on the MEM passed to
26365 clear_storage.
26366
26367 PR c++/90010
26368 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
26369 with strlen in between hostsz-3 and hostsz-1 inclusive when no
26370 translation is needed, and when translation is needed, only append
26371 ... if the string length is hostsz or more bytes long. Avoid using
26372 strncpy or strcat.
26373
26374 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
26375
26376 PR target/90024
26377 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
26378 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
26379 into three.
26380 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
26381 differences directly.
26382 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
26383
26384 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26385
26386 PR translation/90011
26387 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
26388 from diagnostics.
26389 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
26390 diagnostics.
26391 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
26392 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
26393 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
26394 trailing space from -gsplit-dwarf diagnostics.
26395
26396 PR tree-optimization/89998
26397 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
26398 instead of integer_type_node if possible, don't add ranges if return
26399 type is not compatible with int.
26400 * gimple-fold.c (gimple_fold_builtin_sprintf,
26401 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
26402 integer_type_node.
26403
26404 2019-04-09 Martin Liska <mliska@suse.cz>
26405
26406 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
26407 * doc/install.texi: Document the new config.
26408
26409 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
26410
26411 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
26412 use gimple_expr_type for load and store calls. Skip over the
26413 condition argument in a conditional internal function.
26414 Protect use of TREE_INT_CST_LOW.
26415
26416 2019-04-09 Jakub Jelinek <jakub@redhat.com>
26417
26418 PR target/90015
26419 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
26420 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
26421 trailing period from it too.
26422
26423 2019-04-08 wu yuan <wuyuan5@huawei.com>
26424
26425 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
26426 * config/aarch64/aarch64.md: Add "tsv110.md".
26427 * config/aarch64/tsv110.md: New file.
26428
26429 2019-04-08 Richard Biener <rguenther@suse.de>
26430
26431 PR tree-optimization/90006
26432 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
26433 calls like lrint.
26434
26435 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
26436
26437 PR target/83033
26438 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
26439 construction.
26440 (fma_root_node): Likewise.
26441 (func_fma_steering): Likewise.
26442
26443 2019-04-08 Jakub Jelinek <jakub@redhat.com>
26444
26445 PR rtl-optimization/89865
26446 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
26447
26448 PR rtl-optimization/89865
26449 * config/i386/i386.md
26450 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
26451 numbers not to clash with the additional operands[4].
26452 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
26453 with extra register copy in the middle.
26454
26455 2019-04-08 Martin Liska <mliska@suse.cz>
26456
26457 PR gcov-profile/89961
26458 * doc/gcov.texi: Document data_file.
26459 * gcov.c (generate_results): Add data_info into JSON output.
26460
26461 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
26462
26463 PR tree-optimization/89725
26464 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
26465 loop's chrec as invariant symbol.
26466 * tree-chrec.h (chrec_contains_symbols): New parameter.
26467 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
26468 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
26469 function of loops not in DDR's loop_nest.
26470 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
26471
26472 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
26473
26474 PR target/89623
26475 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
26476 Mask.
26477
26478 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
26479
26480 PR target/89945
26481 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
26482 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
26483
26484 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
26485
26486 * sched-deps.c (sched_macro_fuse_insns): Check return value of
26487 targetm.fixed_condition_code_regs.
26488
26489 2019-04-05 Richard Biener <rguenther@suse.de>
26490
26491 PR debug/89892
26492 PR debug/89905
26493 * tree-cfgcleanup.c (remove_forwarder_block): Always move
26494 debug bind stmts but reset them if they are not valid at the
26495 destination.
26496
26497 2019-04-05 Martin Liska <mliska@suse.cz>
26498
26499 PR translation/89936
26500 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
26501 order to wrap keywords or arguments.
26502 * collect2.c (main): Likewise.
26503 (scan_prog_file): Likewise.
26504 (scan_libraries): Likewise.
26505 * common/config/riscv/riscv-common.c
26506 (riscv_subset_list::parsing_subset_version): Likewise.
26507 (riscv_subset_list::parse_std_ext): Likewise.
26508 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26509 Likewise.
26510 * config/arm/arm.c (arm_option_override): Likewise.
26511 * config/cris/cris.c (cris_print_operand): Likewise.
26512 * config/darwin-c.c (darwin_pragma_options): Likewise.
26513 (darwin_pragma_unused): Likewise.
26514 (darwin_pragma_ms_struct): Likewise.
26515 * config/ft32/ft32.c (ft32_print_operand): Likewise.
26516 * config/i386/i386.c (print_reg): Likewise.
26517 (ix86_print_operand): Likewise.
26518 * config/i386/xm-djgpp.h: Likewise.
26519 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
26520 * config/m32c/m32c.c (m32c_option_override): Likewise.
26521 * config/msp430/msp430.c (msp430_option_override): Likewise.
26522 * config/nds32/nds32.c (nds32_option_override): Likewise.
26523 * config/nvptx/mkoffload.c (main): Likewise.
26524 * config/rx/rx.c (rx_print_operand): Likewise.
26525 (valid_psw_flag): Likewise.
26526 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
26527 (vms_pragma_nomember_alignment): Likewise.
26528 (vms_pragma_extern_model): Likewise.
26529 * lto-wrapper.c (compile_offload_image): Likewise.
26530 * omp-offload.c (oacc_parse_default_dims): Likewise.
26531 * symtab.c (symtab_node::verify_base): Likewise.
26532 * tlink.c (recompile_files): Likewise.
26533 (start_tweaking): Likewise.
26534 * tree-profile.c (parse_profile_filter): Likewise.
26535
26536 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
26537
26538 PR tree-optimization/89956
26539 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
26540 multiple negates of the same value.
26541
26542 2019-04-04 Martin Sebor <msebor@redhat.com>
26543
26544 PR middle-end/89957
26545 PR middle-end/89911
26546 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
26547 have the same precision since the function crashes otherwise.
26548 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
26549 has non-zero arguments.
26550
26551 2019-04-04 Martin Sebor <msebor@redhat.com>
26552
26553 PR middle-end/89934
26554 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
26555 out if the number of arguments is less than expected.
26556
26557 2019-04-04 Jeff Law <law@redhat.com>
26558
26559 PR rtl-optimization/89399
26560 * ree.c (combine_set_extension): Use single_set rather than
26561 digging into PATTERN for items on the candidate list.
26562 (combine_reaching_defs): Likewise.
26563
26564 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
26565
26566 PR rtl-optimization/46590
26567 * loop-invariant.c (find_defs): Move df_remove_problem and
26568 df_process_deferred_rescans to move_invariants.
26569 Move df_live_add_problem and df_live_set_all_dirty calls
26570 to move_invariants.
26571 (move_invariants): Likewise.
26572 (move_loop_invariants): Likewise, making the df_live calls
26573 conditional on -O. Remove the problem again if we added it
26574 locally.
26575
26576 2019-04-03 qing zhao <qing.zhao@oracle.com>
26577
26578 PR tree-optimization/89730
26579 * ipa-inline.c (can_inline_edge_p): Delete the checking for
26580 -flive-patching=inline-only-static.
26581 (can_inline_edge_by_limits_p): Add the checking for
26582 -flive-patching=inline-only-static and grant always_inline
26583 even when -flive-patching=inline-only-static is specified.
26584
26585 2019-04-03 Jeff Law <law@redhat.com>
26586
26587 PR rtl-optimization/81025
26588 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
26589
26590 2019-04-03 Richard Biener <rguenther@suse.de>
26591
26592 PR tree-optimization/84101
26593 * tree-vect-stmts.c: Include explow.h for hard_function_value,
26594 regs.h for hard_regno_nregs.
26595 (cfun_returns): New helper.
26596 (vect_model_store_cost): When vectorizing a store to a decl
26597 we return and the function ABI returns in a multi-reg location
26598 account for the possible spilling that will happen.
26599
26600 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
26601
26602 * config/s390/s390.c (s390_legitimate_address_p): Reject long
26603 displacement addresses for vector mode operands.
26604
26605 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
26606
26607 * config/arc/arc.c (GMASK_LEN): Define.
26608 (arc_restore_callee_saves): Restore first blink when
26609 !optimize_size.
26610
26611 2019-04-03 Sudakshina Das <sudi.das@arm.com>
26612
26613 * doc/extend.texi: Add deprecated comment on sign-return-address
26614 function attribute and add mbranch-protection.
26615 * doc/invoke.texi: Add bti to the options for mbranch-protection.
26616
26617 2019-04-03 Richard Biener <rguenther@suse.de>
26618
26619 PR lto/89896
26620 * lto-wrapper.c (run_gcc): Avoid implicit rules making
26621 the all target phony.
26622
26623 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
26624
26625 PR target/89902
26626 PR target/89903
26627 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
26628 Return false for variable DImode shifts.
26629 (dimode_scalar_chain::compute_convert_gain): Do not handle
26630 register count operand in variable DImode shifts.
26631 (dimode_scalar_chain::make_vector_copies): Remove support to copy
26632 count argument of a variable shift instruction to a vector register.
26633 (dimode_scalar_chain::convert_reg): Remove support to convert
26634 count argument of a variable shift instruction.
26635
26636 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26637
26638 PR rtl-optimization/84206
26639 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
26640 iterating over loop headers.
26641
26642 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
26643
26644 PR rtl-optimization/85876
26645 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
26646 beyond the original fence.
26647
26648 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
26649
26650 * config.gcc: Mark spu* targets as deprecated/obsolete.
26651
26652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26653
26654 * config/s390/s390-builtin-types.def: New builtin function type
26655 definitions. Remove unused types.
26656 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
26657 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
26658 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
26659 overloaded builtins.
26660 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
26661 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
26662 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
26663 (vec_double, vec_signed, vec_unsigned): Define to use the new
26664 overloaded builtins.
26665 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
26666 Remove expanders.
26667
26668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26669
26670 * config/s390/s390-builtin-types.def: New builtin function type
26671 definitions.
26672 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
26673 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
26674 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
26675 (s390_vstrszh, s390_vstrszf): New low-level builtins.
26676 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
26677 constant definitions.
26678 * config/s390/vecintrin.h (vec_search_string_cc)
26679 (vec_search_string_until_zero_cc): New builtin name definitions.
26680 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
26681 expanders.
26682 ("vec_vstrs<mode>"): New insn definition.
26683
26684 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26685
26686 * config/s390/s390-builtin-types.def: Add new builtin function
26687 types.
26688 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
26689 New overloaded builtins.
26690 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
26691 s390_vsrd.
26692 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
26693 (UNSPEC_VEC_SLDBYTE): ... this.
26694 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
26695 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
26696 definitions.
26697 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
26698 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
26699 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
26700
26701 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26702
26703 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
26704 New insn definition.
26705 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
26706 * config/s390/vector.md (V_HW_HSD): ... here.
26707
26708 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26709
26710 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
26711 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
26712 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
26713 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
26714 New insn definitions.
26715
26716 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26717
26718 * config/s390/s390-builtin-types.def: Add new builtin function type.
26719 * config/s390/s390-builtins.def: Add overloaded builtin
26720 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
26721 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
26722 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
26723 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
26724 ("eltswap<mode>"): New expander.
26725 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
26726 insn definitions.
26727
26728 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26729
26730 * config/s390/s390-builtin-types.def: Add new builtin function types.
26731 * config/s390/s390-builtins.def: Add overloaded builtin
26732 s390_vec_revb. Add low-level builtins for vlbr and vstbr
26733 instructions.
26734 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
26735 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
26736 ("bswap<mode>"): New expander.
26737 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
26738
26739 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26740
26741 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
26742 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
26743 vector builtin version number in __VEC__.
26744
26745 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26746
26747 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
26748 iterators.
26749 (SFSI): New mode attribute.
26750 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
26751 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
26752 rename to ...
26753 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
26754 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
26755 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
26756 ("floatsi<mode>2"): Add wcefb instruction.
26757
26758 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26759
26760 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
26761 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
26762 mode iterators.
26763 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
26764 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
26765 support 32 bit fp-int conversions. Rename to ...
26766 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26767 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
26768 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
26769 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
26770 ... to these.
26771
26772 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26773
26774 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
26775 if-then-else constructs if we can use the select instruction.
26776 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
26777
26778 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26779
26780 * config/s390/s390.md ("*popcountdi_arch13_cc")
26781 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
26782 definition.
26783 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
26784 Append _z196 to make it ...
26785 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
26786 ("popcounthi2_z196"): ... this.
26787 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
26788 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
26789
26790 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26791
26792 * config/s390/s390.c (s390_canonicalize_comparison): Convert
26793 certain compares for arch13 in order to make use of the condition
26794 code result produced by the new instructions.
26795 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
26796 nxrk, and nxgrk instruction patterns.
26797 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
26798 (inv_no): Add new code iterator together with some attributes.
26799 ("*andc_split_<mode>"): Disable splitter for arch13.
26800 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
26801 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
26802 ("*<ANDOR:bitops_name>c<GPR:mode>")
26803 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
26804 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
26805 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
26806 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
26807
26808 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
26809
26810 * common/config/s390/s390-common.c (processor_flags_table): New
26811 entry for arch13.
26812 * config.gcc: Support arch13 with the --with-arch= configure flag.
26813 * config/s390/driver-native.c (s390_host_detect_local_cpu):
26814 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
26815 * config/s390/s390.c (s390_get_sched_attrmask)
26816 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
26817 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
26818 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
26819 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
26820 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
26821 definitions.
26822 * config/s390/s390.opt: Support arch13 as processor type in
26823 command line options.
26824
26825 2019-04-02 Martin Liska <mliska@suse.cz>
26826
26827 PR translation/89912
26828 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
26829 Fix param description of graphite-max-arrays-per-scop.
26830
26831 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
26832
26833 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
26834 (ASAN_CC1_SPEC): Use it in 64-bit mode.
26835 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
26836
26837 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26838
26839 PR rtl-optimization/85412
26840 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
26841 sel_sched_region_1, not after.
26842
26843 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26844
26845 PR rtl-optimization/86928
26846 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
26847 compute_live if necessary.
26848 (sel_redirect_edge_and_branch): Likewise.
26849
26850 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
26851
26852 PR rtl-optimization/89865
26853 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
26854 register if it is a part of small class.
26855
26856 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
26857
26858 PR rtl-optimization/87273
26859 * sel-sched-ir.c (merge_fences): Remove assert.
26860
26861 2019-04-01 Richard Biener <rguenther@suse.de>
26862
26863 PR tree-optimization/46590
26864 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
26865 (dom_walker::m_reachability): Add in place of...
26866 (dom_walker::m_skip_unreachable_blocks): ...this.
26867 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
26868 Move complex initialization ...
26869 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
26870 lazily and initialize edge flags on each invocation.
26871 (dom_walker::bb_reachable): Use m_reachability.
26872
26873 2019-04-01 Martin Liska <mliska@suse.cz>
26874
26875 PR driver/89861
26876 * opt-suggestions.c (option_proposer::build_option_suggestions):
26877 Add variant without any argument in order to provide better
26878 hints.
26879
26880 2019-04-01 Richard Biener <rguenther@suse.de>
26881
26882 PR c/71598
26883 * gimple.c: Include langhooks.h.
26884 (gimple_get_alias_set): Treat enumeral types as the underlying
26885 integer type.
26886
26887 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
26888 Eric Botcazou <ebotcazou@adacore.com>
26889
26890 PR rtl-optimization/89862
26891 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
26892 that operates on the full registers for WORD_REGISTER_OPERATIONS
26893 architectures.
26894
26895 2019-03-29 Jim Wilson <jimw@sifive.com>
26896
26897 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
26898 Clear MASK_RVC and then set if C subset supported.
26899
26900 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26901
26902 PR c/89872
26903 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
26904 non-addressable complit into its initializer if it is volatile.
26905
26906 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
26907
26908 * opts-common.c (integral_argument): Set errno properly in one case.
26909
26910 2019-03-29 Martin Liska <mliska@suse.cz>
26911
26912 * doc/invoke.texi: Remove -Wchkp from documentation.
26913
26914 2019-03-29 Martin Liska <mliska@suse.cz>
26915
26916 * dbgcnt.c (print_limit_reach): New function.
26917 (dbg_cnt): Use it.
26918
26919 2019-03-29 Martin Liska <mliska@suse.cz>
26920
26921 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
26922 (dbg_cnt_process_opt): Parse first tokens aas
26923 dbg_cnt_process_single_pair is also using strtok.
26924
26925 2019-03-29 Jakub Jelinek <jakub@redhat.com>
26926
26927 PR rtl-optimization/87485
26928 * function.c (expand_function_end): Move stack_protect_epilogue
26929 before loading of return value into hard register(s).
26930
26931 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26932
26933 PR middle-end/89621
26934 * tree-inline.h (struct copy_body_data): Add
26935 dont_remap_vla_if_no_change flag.
26936 * tree-inline.c (remap_type_3, remap_type_2): New functions.
26937 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
26938 and remap_type_2 returns false.
26939 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
26940 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
26941 only from where it is copied to nested contexts.
26942
26943 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26944
26945 PR target/89865
26946 * config/i386/i386.md (RMW operation with LEA peephole):
26947 Use LEAMODE mode attribute instead of SWI mode iterator for
26948 LEA pattern.
26949
26950 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
26951
26952 PR target/89848
26953 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
26954 Also process XEXP (src, 0) of a shift insn.
26955
26956 2019-03-28 David Malcolm <dmalcolm@redhat.com>
26957
26958 PR middle-end/89725
26959 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
26960 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
26961
26962 2019-03-28 Jakub Jelinek <jakub@redhat.com>
26963
26964 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
26965 test.
26966 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
26967 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
26968 immediately after first one with df_analyze in between, but rather
26969 process all bbs, queueing ones that need second pass in a worklist,
26970 df_analyze, process queued debug insn changes and if second pass is
26971 needed, process bbs from worklist, df_analyze, process queued debug
26972 insns again.
26973
26974 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
26975 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
26976 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
26977
26978 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
26979
26980 PR c/79022
26981 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
26982 definition.
26983
26984 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
26985
26986 PR target/85667
26987 * config/i386/i386.c (ix86_function_value_1): Call the newly added
26988 function for 32-bit MS_ABI.
26989 (function_value_ms_32): New function.
26990
26991 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
26992
26993 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
26994 (movdi): Call gen_movdi_symbol_save_scc.
26995 (gen_movdi_symbol_save_scc): New insn and split.
26996
26997 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
26998
26999 PR rtl-optimization/89313
27000 * function.c (matching_constraint_num): New static function.
27001 (match_asm_constraints_1): Use it. Fixup white space and comment.
27002 Don't replace inputs with non-matching constraints which conflict
27003 with early clobber outputs.
27004
27005 2019-03-27 Jeff Law <law@redhat.com>
27006
27007 PR rtl-optimization/87761
27008 PR rtl-optimization/89826
27009 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27010 slightly later.
27011 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27012 note problem to get REG_DEAD/REG_UNUSED notes updated.
27013
27014 2019-03-27 Richard Biener <rguenther@suse.de>
27015
27016 PR tree-optimization/89463
27017 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
27018 queue edges to remove.
27019 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
27020 dead stmts. Delay edge removal until PHIs are removed to
27021 make debug-stmt creation not confused by seemingly degenerate
27022 PHIs.
27023
27024 2019-03-27 Alan Modra <amodra@gmail.com>
27025
27026 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
27027 throughout file.
27028 * config/rs6000/darwin.h: Likewise.
27029 * config/rs6000/rs6000.c: Likewise.
27030
27031 2019-03-27 Alan Modra <amodra@gmail.com>
27032
27033 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
27034 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
27035
27036 2019-03-26 Andrew Waterman <andrew@sifive.com>
27037 Jim Wilson <jimw@sifive.com>
27038
27039 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
27040 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
27041 (generic_idivdi, generic_fmul_single, generic_fmul_double)
27042 (generic_fdiv, generic_fsqrt): Add check for generic tune.
27043 (generic_alu): Add auipc to type list.
27044 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
27045 (riscv_microarchitecture): Declare.
27046 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
27047 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
27048 field.
27049 (riscv_microarchitecture): New.
27050 (sifive_7_tune_info): New.
27051 (riscv_cpu_info_table): Add microarchitecture value for rocket and
27052 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
27053 entries.
27054 (riscv_store_data_bypass_p): New.
27055 (riscv_option_override): Set riscv_microarchitecture from
27056 cpu->microarchitecture.
27057 * config/riscv/riscv.md: Include sifive-7.md.
27058 (type): Add auipc.
27059 (tune): New.
27060 (auipc<mode>): Change type to auipc.
27061 (restore_stack_nonlocal): New.
27062 * config/riscv/sifive-7.md: New.
27063 * doc/invoke.texi (RISC-V Options): Update mtune docs.
27064
27065 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
27066
27067 PR target/89827
27068 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
27069 Also process XEXP (src, 0) of a shift insn.
27070
27071 2019-03-26 Richard Biener <rguenther@suse.de>
27072
27073 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
27074 (copy_debug_stmt): Likewise.
27075 (expand_call_inline): Likewise.
27076 (copy_bb): Avoid redundant lookup & set of gimple_block.
27077 * gimple-low.c (lower_gimple_return): Likewise.
27078 (lower_builtin_setjmp): Likewise.
27079
27080 2019-03-26 Jakub Jelinek <jakub@redhat.com>
27081
27082 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
27083 is constant 0, turn into static const data member initialized to false.
27084 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
27085 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
27086
27087 2019-03-26 Jason Merrill <jason@redhat.com>
27088 Jakub Jelinek <jakub@redhat.com>
27089
27090 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
27091 method.
27092 (mem_alloc_description::release_object_overhead): Fix comment typos.
27093 * hash-table.h (hash_table::~hash_table): Call
27094 release_instance_overhead only if m_entries is non-NULL, otherwise
27095 call unregister_descriptor.
27096
27097 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
27098
27099 PR tree-optimization/81740
27100 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27101 In case of outer loop vectorization, check for backward dependence
27102 at the inner loop if outer loop dependence is reversed.
27103
27104 2019-03-26 Alan Modra <amodra@gmail.com>
27105
27106 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
27107 rs6000_vector_mem init. Correct wI and wJ comment.
27108
27109 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
27110
27111 PR rtl-optimization/88347
27112 PR rtl-optimization/88423
27113 * sched-deps.c (sched_analyze_insn): Take into account that for
27114 tablejumps the barrier appears after a label and a jump_table_data.
27115
27116 2019-03-25 Martin Sebor <msebor@redhat.com>
27117
27118 PR c/89812
27119 * c-common.c (check_user_alignment): Rename local. Correct maximum
27120 alignment in diagnostic. Avoid assuming argument fits in SHWI,
27121 convert it to UHWI when it fits.
27122
27123 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
27124
27125 PR debug/86964
27126 * dwarf2out.c (premark_used_variables): New function.
27127 (prune_unused_types_walk): Do not mark not premarked external
27128 variables.
27129 (prune_unused_types): Call premark_used_variables.
27130
27131 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
27132
27133 PR rtl-optimization/89676
27134 * lra-constraints.c (curr_insn_transform): Do match reload for
27135 early clobbers when the match was successful only for different
27136 registers.
27137
27138 2019-03-25 Martin Sebor <msebor@redhat.com>
27139
27140 * doc/extend.texi (Common Type Attributes): Document vector_size.
27141 (Common Variable Attributes): Mention size constraint. Correct
27142 quoting and typos.
27143 (Vector Extensions): Use @dfn when defining bas type. Clarify
27144 base type and size constraints.
27145
27146 2019-03-25 Richard Biener <rguenther@suse.de>
27147
27148 PR tree-optimization/89789
27149 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
27150 changes from non-undefined back to undefined.
27151
27152 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
27153
27154 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
27155 heap string and a gc string, but since this variable is unknown to
27156 ggc the gc string might get reused and corrupted. Fixed by always
27157 using a heap string.
27158
27159 2019-03-25 Richard Biener <rguenther@suse.de>
27160
27161 PR tree-optimization/89779
27162 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
27163 to remove IV defs, delay actual removal.
27164 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
27165 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
27166 very end, properly also reset loop control IV information.
27167
27168 2019-03-25 Richard Biener <rguenther@suse.de>
27169
27170 PR tree-optimization/89802
27171 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
27172 move EH data to folded stmt.
27173
27174 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27175
27176 * config/s390/s390-builtin-types.def: Remove few unused types and
27177 fix sort order for others.
27178
27179 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27180
27181 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
27182 expected and found types with -mdebug during builtin matching.
27183
27184 2019-03-25 Richard Biener <rguenther@suse.de>
27185
27186 PR middle-end/89790
27187 * fold-const.c (operand_equal_p): Revert last change with
27188 updated comment.
27189
27190 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27191
27192 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27193 notes for the result of the __tls_get_addr calls.
27194 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27195
27196 2019-03-24 Jeff Law <law@redhat.com>
27197
27198 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27199
27200 PR rtl-optimization/87761
27201 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27202 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27203 as needed.
27204 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27205 rescans. Reprocess blocks as needed, calling df_analyze before
27206 reprocessing. Always call df_analyze before fixing up debug bind
27207 insns.
27208
27209 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27210
27211 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27212 big endian.
27213
27214 2019-03-22 Andrew Pinski <apinski@marvell.com>
27215
27216 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27217 attrribute for uxtw.
27218
27219 2019-03-26 Jeff Law <law@redhat.com>
27220
27221 PR rtl-optimization/87761
27222 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27223 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27224 (mips_split_move): Accept new INSN argument. Try to forward SRC
27225 into the next instruction.
27226 (mips_split_move_insn): Pass INSN through to mips_split_move.
27227
27228 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
27229
27230 PR rtl-optimization/89676
27231 * lra-constraints.c (curr_insn_transform): Do match reload for
27232 early clobbers even if the match was successful.
27233
27234 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27235
27236 PR c++/87481
27237 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
27238
27239 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
27240
27241 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
27242
27243 2019-03-22 Jakub Jelinek <jakub@redhat.com>
27244
27245 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
27246 <avx512>_fmsub_<mode>_mask3<round_name>,
27247 <avx512>_fnmadd_<mode>_mask3<round_name>,
27248 <avx512>_fnmsub_<mode>_mask3<round_name>,
27249 avx512f_vmfmadd_<mode>_mask3<round_name>,
27250 avx512f_vmfmsub_<mode>_mask3<round_name>,
27251 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
27252 instead of register_operand and %v instead of v for match_operand 1.
27253 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
27254 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
27255 <round_nimm_predicate> instead of register_operand and %v instead of v
27256 for match_operand 1.
27257
27258 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
27259 <avx512>_fmadd_<mode>_mask3<round_name>,
27260 <avx512>_fmsub_<mode>_mask<round_name>,
27261 <avx512>_fmsub_<mode>_mask3<round_name>,
27262 <avx512>_fnmadd_<mode>_mask<round_name>,
27263 <avx512>_fnmadd_<mode>_mask3<round_name>,
27264 <avx512>_fnmsub_<mode>_mask<round_name>,
27265 <avx512>_fnmsub_<mode>_mask3<round_name>,
27266 <avx512>_fmaddsub_<mode>_mask<round_name>,
27267 <avx512>_fmaddsub_<mode>_mask3<round_name>,
27268 <avx512>_fmsubadd_<mode>_mask<round_name>,
27269 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
27270 <round_nimm_predicate> instead of nonimmediate_operand.
27271 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
27272 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
27273 Use register_operand instead of <round_nimm_predicate> for the
27274 operand that needs to match output.
27275 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
27276 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
27277 Likewise. Formatting fixes.
27278
27279 PR target/89784
27280 * config/i386/i386.c (enum ix86_builtins): Remove
27281 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
27282 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
27283 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
27284 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
27285 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
27286 __builtin_ia32_vfmsubss3_mask3): New builtins.
27287 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
27288 avx512f_vmfmadd_<mode>_mask3<round_name>,
27289 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
27290 *avx512f_vmfmsub_<mode>_mask<round_name>,
27291 avx512f_vmfmsub_<mode>_mask3<round_name>,
27292 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
27293 *avx512f_vmfnmadd_<mode>_mask<round_name>,
27294 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
27295 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
27296 *avx512f_vmfnmsub_<mode>_mask<round_name>,
27297 avx512f_vmfnmsub_<mode>_mask3<round_name>,
27298 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
27299 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
27300 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
27301 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
27302 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
27303 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
27304 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
27305 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
27306 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
27307 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
27308 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
27309 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
27310 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
27311 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
27312 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
27313 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
27314 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
27315 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
27316 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
27317 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
27318 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
27319 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
27320
27321 2019-03-21 Martin Sebor <msebor@redhat.com>
27322
27323 PR tree-optimization/89350
27324 * builtins.c (compute_objsize): Also ignore offsets whose upper
27325 bound is negative.
27326 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
27327 (builtin_memref::builtin_memref): Initialize new member.
27328 Allow EXPR to be null.
27329 (builtin_memref::extend_offset_range): Replace local with a member.
27330 Avoid assuming pointer offsets are unsigned.
27331 (builtin_memref::set_base_and_offset): Determine base object
27332 before computing offset range.
27333 (builtin_access::builtin_access): Handle memset.
27334 (builtin_access::generic_overlap): Replace local with a member.
27335 (builtin_access::strcat_overlap): Same.
27336 (builtin_access::overlap): Same.
27337 (maybe_diag_overlap): Same.
27338 (maybe_diag_access_bounds): Same.
27339 (wrestrict_dom_walker::check_call): Handle memset.
27340 (check_bounds_or_overlap): Same.
27341
27342 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
27343 Jakub Jelinek <jakub@redhat.com>
27344
27345 PR lto/89692
27346 * tree.c (fld_type_variant, fld_incomplete_type_of,
27347 fld_process_array_type): Call fld->pset.add and don't call
27348 add_tree_to_fld_list if it returns true.
27349 (free_lang_data_in_type): Similarly with self-recursive call. Purge
27350 non-marked types from TYPE_NEXT_VARIANT list.
27351 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
27352
27353 2019-03-21 Jakub Jelinek <jakub@redhat.com>
27354
27355 * hash-table.h (hash_table): Add Lazy template parameter defaulted
27356 to false, if true, don't alloc_entries during construction, but defer
27357 it to the first method that needs m_entries allocated.
27358 (hash_table::hash_table, hash_table::~hash_table,
27359 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
27360 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
27361 hash_table::clear_slot, hash_table::traverse_noresize,
27362 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
27363 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
27364 false.
27365 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
27366 NO_INSERT instead of find_with_hash.
27367 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
27368 hash_set::m_table): Add Lazy to template params of hash_table.
27369 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
27370 * attribs.c (test_attribute_exclusions): Likewise.
27371 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
27372 hash_set. Add tests for hash_set with Lazy = true.
27373
27374 2019-03-21 Richard Biener <rguenther@suse.de>
27375
27376 PR tree-optimization/89779
27377 * tree.c (tree_nop_conversion): Consolidate and fix defensive
27378 checks with respect to released SSA names now having error_mark_node
27379 type.
27380 * fold-const.c (operand_equal_p): Likewise.
27381
27382 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
27383
27384 PR target/89775
27385 * config/s390/s390.c (global_not_special_regno_p): Move to make it
27386 available to ...
27387 (s390_optimize_register_info): Use global_not_special_regno_p to
27388 check for global regs.
27389
27390 2019-03-20 Jakub Jelinek <jakub@redhat.com>
27391
27392 PR target/89752
27393 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
27394 update this_alternative nor this_alternative_set.
27395
27396 2019-03-19 Jim Wilson <jimw@sifive.com>
27397
27398 PR target/89411
27399 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
27400 align, size, offset. Use them to handle a BLKmode reference. Update
27401 comment.
27402 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
27403
27404 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27405
27406 PR rtl-optimization/89768
27407 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
27408 instead of GEN_INT.
27409 (unroll_loop_runtime_iterations): Likewise.
27410
27411 2019-03-19 Martin Sebor <msebor@redhat.com>
27412
27413 PR tree-optimization/89644
27414 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
27415 rather than endptr as an indicator of nul-termination.
27416
27417 PR tree-optimization/89644
27418 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
27419 arrays in determining sequence sizes in strncpy and stpncpy.
27420
27421 2019-03-19 Martin Liska <mliska@suse.cz>
27422
27423 PR middle-end/89737
27424 * predict.c (combine_predictions_for_bb): Empty likely_edges and
27425 unlikely_edges if there's an edge that belongs to both these sets.
27426
27427 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
27428
27429 PR target/89746
27430 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
27431 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
27432 go via a stack temporary.
27433
27434 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27435
27436 PR target/89378
27437 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
27438 instead of gen_rtx_SUBREG.
27439 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
27440
27441 2019-03-19 Richard Biener <rguenther@suse.de>
27442
27443 PR debug/88389
27444 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
27445
27446 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
27447
27448 PR lto/87809
27449 PR lto/89335
27450 * tree.c (free_lang_data_in_decl): Do not free context of C++
27451 destrutors.
27452
27453 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27454
27455 PR target/89506
27456 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
27457 subs for the first alternative except when operands[3] is 1.
27458
27459 PR target/89752
27460 * gimplify.c (gimplify_asm_expr): For output argument with
27461 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
27462 diagnose error.
27463
27464 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
27465
27466 PR rtl-optimization/89753
27467 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
27468 explicit unrolling factor even more robust.
27469
27470 2019-03-19 Jakub Jelinek <jakub@redhat.com>
27471
27472 PR target/89726
27473 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
27474 compensation use x2 += 1 instead of x2 -= -1 and when honoring
27475 signed zeros, do another copysign after the compensation.
27476
27477 2019-03-18 Martin Sebor <msebor@redhat.com>
27478
27479 PR tree-optimization/89720
27480 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
27481 more conservatively, the same as anti-range.
27482
27483 2019-03-18 Richard Biener <rguenther@suse.de>
27484
27485 PR middle-end/88945
27486 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
27487 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
27488 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
27489 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
27490
27491 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
27492
27493 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
27494 Extend queue to 1024 entries.
27495 Add "consumed" field.
27496 (gomp_print_output): Remove print_index parameter.
27497 Add final parameter.
27498 Change limit to unsigned.
27499 Use consumed field to implement circular buffer.
27500 Detect interrupted print in final pass.
27501 Flush output at the end.
27502 (run): Update gomp_print_output usage.
27503 (main): Initialize kernargs->output_data.consumed.
27504
27505 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
27506
27507 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
27508 calculation of the minimum number of scalar iterations for
27509 fully-predicated loops.
27510
27511 2019-03-18 Martin Jambor <mjambor@suse.cz>
27512
27513 PR tree-optimization/89546
27514 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
27515 any propagation to its children took place.
27516
27517 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
27518
27519 PR target/89627
27520 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
27521 parameter, and make use of it.
27522 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
27523
27524 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27525
27526 * config/arc/arc.opt (mcode-density-frame): Get the inital value
27527 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
27528 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27529 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
27530 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
27531 match what the ops is doing.
27532 (push_multi_fp_blink): Likewise.
27533 * config/arc/arc.c (arc_override_options): Enable enter/leave when
27534 compiling for size and elf target.
27535 (arc_save_callee_enter): Adjust note to match what enter/leave
27536 operation does.
27537
27538 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27539
27540 * config/arc/arc.md (tst_movb): Fix constraint.
27541
27542 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27543
27544 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
27545
27546 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
27547
27548 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
27549 * config/arc/arc.c (arc_conditional_register_usage): Remove all
27550 reg_alloc_order references.
27551 (size_alloc_order): Define.
27552 (arc_adjust_reg_alloc_order): New function.
27553 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
27554 order.
27555 (ADJUST_REG_ALLOC_ORDER): Define.
27556 (HONOR_REG_ALLOC_ORDER): Likewise.
27557
27558 2019-03-18 Richard Biener <rguenther@suse.de>
27559
27560 PR target/87561
27561 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
27562 loads and stores a bit more.
27563
27564 2019-03-18 Richard Biener <rguenther@suse.de>
27565
27566 PR target/87561
27567 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
27568 load pessimization to stores as well.
27569
27570 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
27571
27572 PR middle-end/86979
27573 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
27574 successor, use NULL as its av set.
27575
27576 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
27577
27578 PR rtl-optimization/89721
27579 * lra-constraints (invariant_p): Return false if side_effects_p holds.
27580
27581 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
27582
27583 PR target/87532
27584 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
27585 When handling vec_extract, use modular arithmetic to allow
27586 constant selectors greater than vector length.
27587 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
27588 V1TImode vectors to have constant selector values greater than 0.
27589 Use modular arithmetic to compute vector index.
27590 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
27591 index for in-memory vectors. Correct code generation for
27592 in-register vectors.
27593 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
27594 compute index.
27595
27596 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
27597
27598 PR c++/88534
27599 PR c++/88537
27600 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
27601 VAR_DECL args.
27602
27603 2019-03-15 Jakub Jelinek <jakub@redhat.com>
27604
27605 PR c++/89709
27606 * tree.c (inchash::add_expr): Strip any location wrappers.
27607 * fold-const.c (operand_equal_p): Move stripping of location wrapper
27608 after hash verification.
27609
27610 PR debug/89704
27611 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
27612 SIGN_EXTEND and ZERO_EXTEND.
27613
27614 2019-03-14 Jason Merrill <jason@redhat.com>
27615 Jakub Jelinek <jakub@redhat.com>
27616
27617 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
27618 than if is_empty (*slot).
27619 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
27620 existing elt and for elt removal.
27621 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
27622 of already removed elt.
27623
27624 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
27625
27626 PR target/89650
27627 * config/i386/i386.c (remove_partial_avx_dependency): Handle
27628 REG_EH_REGION note.
27629
27630 2019-03-14 Martin Liska <mliska@suse.cz>
27631
27632 PR other/89712
27633 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
27634
27635 2019-03-14 Richard Biener <rguenther@suse.de>
27636
27637 PR target/89711
27638 * config/i386/i386.c (make_resolver_func): Properly set
27639 DECL_CONTEXT on the RESULT_DECL.
27640 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
27641
27642 2019-03-14 Richard Biener <rguenther@suse.de>
27643
27644 * gimple-pretty-print.c: Include cfgloop.h.
27645 (dump_gimple_phi): Adjust.
27646 (dump_gimple_bb_header): Dump loop header for GIMPLE.
27647 (pp_cfg_jump): Adjust.
27648 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
27649 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
27650 (lower_phi_internal_fn): Remove.
27651 (verify_gimple_call): Remove IFN_PHI special-casing.
27652 (dump_function_to_file): Dump IL state.
27653 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
27654 done to deal with PHI nodes being present in non-SSA state.
27655
27656 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27657
27658 PR ipa/89684
27659 * multiple_target.c (create_dispatcher_calls): Change
27660 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
27661 In the node->iterate_referring loop, push *ref rather than ref, call
27662 ref->remove_reference () and always pass 0 to iterate_referring.
27663
27664 PR rtl-optimization/89679
27665 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
27666 would contain a paradoxical SUBREG.
27667
27668 2019-03-14 Richard Biener <rguenther@suse.de>
27669
27670 PR tree-optimization/89710
27671 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
27672 safe_dyn_cast.
27673
27674 2019-03-14 Martin Liska <mliska@suse.cz>
27675
27676 * coverage.c (coverage_begin_function): Stream also
27677 end_column.
27678 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
27679 documentation about function declaration location.
27680 * gcov-dump.c (tag_function): Print whole range
27681 of function declaration.
27682 * gcov.c (struct function_info): Add end_column field.
27683 (function_info::function_info): Initialize it.
27684 (output_json_intermediate_file): Output {start,end}_column
27685 fields.
27686 (read_graph_file): Read end_column.
27687
27688 2019-03-14 Richard Biener <rguenther@suse.de>
27689
27690 PR middle-end/89698
27691 * fold-const.c (operand_equal_p): For INDIRECT_REF check
27692 that the access types are similar.
27693
27694 2019-03-14 Jakub Jelinek <jakub@redhat.com>
27695
27696 PR tree-optimization/89703
27697 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
27698 aren't compatible also with builtin_decl_explicit. Check pure
27699 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
27700 and BUILT_IN_STPNCPY{,_CHK}.
27701
27702 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
27703
27704 PR target/89523
27705 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
27706 addr32 prefix to VSIB address for X32.
27707 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
27708 "%M2" to opcode.
27709 (*avx512pf_gatherpf<mode>df_mask): Likewise.
27710 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
27711 (*avx512pf_scatterpf<mode>df_mask): Likewise.
27712 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
27713 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
27714 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
27715 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
27716 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
27717 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
27718 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
27719 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
27720 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
27721 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
27722 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
27723 (*avx512f_scatterdi<mode>): Likewise.
27724
27725 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
27726
27727 PR target/85860
27728 * lra-constraints.c (inherit_in_ebb): Update
27729 potential_reload_hard_regs along with live_hard_regs.
27730
27731 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27732
27733 PR debug/89498
27734 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
27735 DWARF_OFFSET_SIZE.
27736 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
27737
27738 2019-03-13 Martin Sebor <msebor@redhat.com>
27739
27740 PR tree-optimization/89662
27741 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
27742 has a size.
27743
27744 2019-03-13 Richard Biener <rguenther@suse.de>
27745
27746 PR middle-end/89677
27747 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
27748 throw FP expressions at tree-affine.
27749
27750 2019-03-14 Richard Biener <rguenther@suse.de>
27751
27752 * tree-pretty-print.c (dump_generic_node): For -gimple properly
27753 dump negative integer constants using _Literal (type) -num.
27754
27755 2019-03-13 Jakub Jelinek <jakub@redhat.com>
27756
27757 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
27758 nonlocal_value member.
27759
27760 PR middle-end/88588
27761 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
27762 (ipa_simd_modify_function_body): Handle PHIs.
27763
27764 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27765
27766 * config/s390/s390.c (s390_option_override_internal): Use more
27767 aggressive inlining parameters.
27768
27769 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27770
27771 * config/s390/3906.md: New file.
27772 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27773 (LONGRUNNING_THRESHOLD): Remove.
27774 (MAX_SCHED_MIX_SCORE): Decrease.
27775 (MAX_SCHED_MIX_DISTANCE): Decrease.
27776 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
27777 (struct s390_sched_state): New struct to hold scheduling state.
27778 (S390_SCHED_STATE_NORMAL): Remove.
27779 (S390_SCHED_STATE_CRACKED): Remove.
27780 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
27781 (s390_get_sched_attrmask): Use new attribute.
27782 (s390_get_unit_mask): Use new units.
27783 (s390_is_fpd): New function.
27784 (s390_is_fxd): New function.
27785 (s390_is_longrunning): New function.
27786 (s390_sched_score): Use new functions.
27787 (s390_sched_reorder): Likewise.
27788 (s390_sched_variable_issue): Rework and use new functions.
27789 (s390_sched_init): Use new functions.
27790 * config/s390/s390.h (s390_tune_attr): Add z14.
27791 * config/s390/s390.md: Add z14.
27792
27793 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
27794
27795 * config/s390/2964.md: Update pipeline description.
27796 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
27797 (LONGRUNNING_THRESHOLD): Remove.
27798 (LATENCY_FACTOR): Remove.
27799 (s390_get_unit_mask): Add unit.
27800 (s390_sched_score): Use fxd/fpd.
27801 (s390_sched_variable_issue): Use fxd/fpd.
27802
27803 2019-03-12 Martin Liska <mliska@suse.cz>
27804
27805 * config/i386/i386.c: Reword an error message.
27806
27807 2019-03-12 Martin Jambor <mjambor@suse.cz>
27808
27809 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
27810 terminate with newline.
27811
27812 2019-03-12 Jakub Jelinek <jakub@redhat.com>
27813
27814 PR target/52726
27815 * config/s390/s390.md (tabort): Use %wd instead of
27816 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
27817 letters and periods.
27818 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
27819 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
27820 's with %< and %>.
27821
27822 PR middle-end/89663
27823 * builtins.c (expand_builtin_int_roundingfn,
27824 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
27825 gcc_unreachable if validate_arglist fails.
27826
27827 2019-03-12 Richard Biener <rguenther@suse.de>
27828
27829 PR tree-optimization/89664
27830 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
27831 free the occurance tree after the early out.
27832
27833 2019-03-11 Jakub Jelinek <jakub@redhat.com>
27834
27835 PR middle-end/89655
27836 PR bootstrap/89656
27837 * vr-values.c (vr_values::update_value_range): If
27838 old_vr->varying_p (), don't update it, make new_vr also VARYING
27839 and return false.
27840
27841 2019-03-11 Martin Liska <mliska@suse.cz>
27842
27843 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27844 Fix double string quoting.
27845
27846 2019-03-11 Martin Liska <mliska@suse.cz>
27847
27848 * collect-utils.c (collect_wait): Wrap apostrophes
27849 in gcc internal format with %'.
27850 * collect2.c (main): Likewise.
27851 (scan_prog_file): Likewise.
27852 (scan_libraries): Likewise.
27853 * config/i386/i386.c (ix86_expand_call): Likewise.
27854 (ix86_handle_interrupt_attribute): Likewise.
27855 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
27856 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
27857 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
27858 * lto-wrapper.c (find_crtoffloadtable): Likewise.
27859 * symtab.c (symtab_node::verify_base): Likewise.
27860 * tree-cfg.c (verify_gimple_label): Likewise.
27861 * tree.c (verify_type_variant): Likewise.
27862
27863 2019-03-11 Martin Liska <mliska@suse.cz>
27864
27865 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
27866 in a string format message and fix GNU coding style.
27867 (expand_builtin_set_thread_pointer): Likewise.
27868 * common/config/aarch64/aarch64-common.c
27869 (aarch64_rewrite_selected_cpu): Likewise.
27870 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
27871 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
27872 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
27873 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
27874 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
27875 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
27876 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
27877 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
27878 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
27879 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
27880 Likewise.
27881 * common/config/riscv/riscv-common.c
27882 (riscv_subset_list::parsing_subset_version): Likewise.
27883 (riscv_subset_list::parse_std_ext): Likewise.
27884 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
27885 (riscv_subset_list::parse): Likewise.
27886 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
27887 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
27888 (aarch64_override_options_internal): Likewise.
27889 (aarch64_validate_mcpu): Likewise.
27890 (aarch64_validate_march): Likewise.
27891 (aarch64_validate_mtune): Likewise.
27892 (aarch64_override_options): Likewise.
27893 * config/alpha/alpha.c (alpha_option_override): Likewise.
27894 * config/arc/arc.c (arc_init): Likewise.
27895 (parse_mrgf_banked_regs_option): Likewise.
27896 (arc_override_options): Likewise.
27897 (arc_expand_builtin_aligned): Likewise.
27898 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
27899 (arm_expand_builtin): Likewise.
27900 * config/arm/arm.c (arm_option_check_internal): Likewise.
27901 (arm_configure_build_target): Likewise.
27902 (arm_option_override): Likewise.
27903 (arm_options_perform_arch_sanity_checks): Likewise.
27904 (arm_handle_cmse_nonsecure_entry): Likewise.
27905 (arm_handle_cmse_nonsecure_call): Likewise.
27906 (arm_tls_referenced_p): Likewise.
27907 (thumb1_expand_prologue): Likewise.
27908 * config/avr/avr.c (avr_option_override): Likewise.
27909 * config/bfin/bfin.c (bfin_option_override): Likewise.
27910 * config/c6x/c6x.c (c6x_option_override): Likewise.
27911 * config/cr16/cr16.c (cr16_override_options): Likewise.
27912 * config/cris/cris.c (cris_option_override): Likewise.
27913 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
27914 * config/darwin-c.c (macosx_version_as_macro): Likewise.
27915 * config/darwin.c (darwin_override_options): Likewise.
27916 * config/frv/frv.c (frv_expand_builtin): Likewise.
27917 * config/h8300/h8300.c (h8300_option_override): Likewise.
27918 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
27919 (ix86_option_override_internal): Likewise.
27920 (warn_once_call_ms2sysv_xlogues): Likewise.
27921 (ix86_expand_prologue): Likewise.
27922 (split_stack_prologue_scratch_regno): Likewise.
27923 (ix86_warn_parameter_passing_abi): Likewise.
27924 * config/ia64/ia64.c (fix_range): Likewise.
27925 * config/m68k/m68k.c (m68k_option_override): Likewise.
27926 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
27927 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
27928 (mips_set_compression_mode): Likewise.
27929 * config/mmix/mmix.c (mmix_option_override): Likewise.
27930 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
27931 * config/msp430/msp430.c (msp430_option_override): Likewise.
27932 * config/nds32/nds32.c (nds32_option_override): Likewise.
27933 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
27934 (nios2_option_override): Likewise.
27935 (nios2_expand_custom_builtin): Likewise.
27936 * config/nvptx/mkoffload.c (main): Likewise.
27937 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
27938 * config/pa/pa.c (fix_range): Likewise.
27939 (pa_option_override): Likewise.
27940 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
27941 (riscv_option_override): Likewise.
27942 * config/rl78/rl78.c (rl78_option_override): Likewise.
27943 * config/rs6000/aix61.h: Likewise.
27944 * config/rs6000/aix71.h: Likewise.
27945 * config/rs6000/aix72.h: Likewise.
27946 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
27947 * config/rs6000/freebsd64.h: Likewise.
27948 * config/rs6000/linux64.h: Likewise.
27949 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
27950 (rs6000_expand_zeroop_builtin): Likewise.
27951 (rs6000_expand_mtfsb_builtin): Likewise.
27952 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
27953 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
27954 (rs6000_invalid_builtin): Likewise.
27955 (rs6000_expand_split_stack_prologue): Likewise.
27956 * config/rs6000/rtems.h: Likewise.
27957 * config/rx/rx.c (valid_psw_flag): Likewise.
27958 (rx_expand_builtin): Likewise.
27959 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
27960 * config/s390/s390.c (s390_expand_builtin): Likewise.
27961 (s390_function_profiler): Likewise.
27962 (s390_option_override_internal): Likewise.
27963 (s390_option_override): Likewise.
27964 * config/sh/sh.c (sh_option_override): Likewise.
27965 (sh_builtin_saveregs): Likewise.
27966 (sh_fix_range): Likewise.
27967 * config/sh/vxworks.h: Likewise.
27968 * config/sparc/sparc.c (sparc_option_override): Likewise.
27969 * config/spu/spu.c (spu_option_override): Likewise.
27970 (fix_range): Likewise.
27971 * config/visium/visium.c (visium_option_override): Likewise.
27972 (visium_handle_interrupt_attr): Likewise.
27973 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
27974 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
27975 (dbg_cnt_process_opt): Likewise.
27976 * dwarf2out.c (output_dwarf_version): Likewise.
27977 * except.c (expand_eh_return): Likewise.
27978 * gcc.c (defined): Likewise.
27979 (driver_handle_option): Likewise.
27980 (process_command): Likewise.
27981 (compare_files): Likewise.
27982 (driver::prepare_infiles): Likewise.
27983 (driver::do_spec_on_infiles): Likewise.
27984 (driver::maybe_run_linker): Likewise.
27985 * omp-offload.c (oacc_parse_default_dims): Likewise.
27986 * opts-global.c (handle_common_deferred_options): Likewise.
27987 * opts.c (parse_sanitizer_options): Likewise.
27988 (common_handle_option): Likewise.
27989 (enable_warning_as_error): Likewise.
27990 * passes.c (enable_disable_pass): Likewise.
27991 * plugin.c (parse_plugin_arg_opt): Likewise.
27992 (default_plugin_dir_name): Likewise.
27993 * targhooks.c (default_expand_builtin_saveregs): Likewise.
27994 (default_pch_valid_p): Likewise.
27995 * toplev.c (init_asm_output): Likewise.
27996 (process_options): Likewise.
27997 (toplev::run_self_tests): Likewise.
27998 * tree-cfg.c (verify_gimple_call): Likewise.
27999 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28000 (tree_inlinable_function_p): Likewise.
28001 * var-tracking.c (vt_find_locations): Likewise.
28002
28003 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28004
28005 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28006 only on the else branch.
28007
28008 2019-03-11 Martin Liska <mliska@suse.cz>
28009
28010 * gcov.c (output_intermediate_json_line): Print function
28011 name of each line.
28012 (output_json_intermediate_file): Add new argument.
28013 * doc/gcov.texi: Document the change.
28014
28015 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
28016
28017 PR rtl-optimization/89588
28018 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28019 explicit unrolling factor more robust.
28020
28021 2019-03-11 Richard Biener <rguenther@suse.de>
28022
28023 PR tree-optimization/89649
28024 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
28025 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
28026 on the prolog and epilog loops.
28027 (vect_loop_versioning): Return copy of loop.
28028 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
28029 on the non-vectorized version of the loop.
28030
28031 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
28032
28033 PR target/68924
28034 * config/i386/sse.md (*vec_extractv2di_0_sse):
28035 Add (=r,x) alternative and corresponding splitter.
28036
28037 2019-03-10 Martin Jambor <mjambor@suse.cz>
28038
28039 PR tree-optimization/85762
28040 PR tree-optimization/87008
28041 PR tree-optimization/85459
28042 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
28043 it points to if there is a type changing MEM_REF. Adjust all callers.
28044 (build_accesses_from_assign): Disable total scalarization if
28045 contains_vce_or_bfcref_p returns true through the new parameter, for
28046 both rhs and lhs.
28047
28048 2019-03-09 Jakub Jelinek <jakub@redhat.com>
28049
28050 PR c/88568
28051 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
28052 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
28053
28054 PR target/79645
28055 * common.opt (fdiagnostics-show-labels,
28056 fdiagnostics-show-line-numbers, fdiagnostics-format=,
28057 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
28058 gas-locview-support, ginline-points, ginternal-reset-location-views):
28059 Terminate description text with a dot.
28060 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
28061 * config/mcore/mcore.opt (m210, m340): Likewise.
28062 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
28063 mnops=): Start description text with a capital letter.
28064 * config/arc/arc.opt (msize-level=): Likewise.
28065 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
28066 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
28067 mnewlib): Likewise.
28068 * config/ft32/ft32.opt (msim): Likewise.
28069 (mft32b, mcompress): Likewise. Terminate description text with a dot.
28070 (mnodiv, mnopm): Terminate description text with a dot.
28071 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
28072 a colon.
28073 * config/i386/i386.opt (prefer_vector_width, instrument_return):
28074 Likewise.
28075 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
28076 text.
28077
28078 PR rtl-optimization/89634
28079 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
28080 are modified in BB_END (e->src) instruction.
28081
28082 2019-03-08 David Malcolm <dmalcolm@redhat.com>
28083
28084 PR target/79926
28085 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
28086 messages more amenable to translation, and improve wording.
28087
28088 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
28089
28090 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
28091 ud- and du-chains between phases.
28092
28093 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
28094
28095 PR debug/89631
28096 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
28097 instead of POLY_INT_CST.
28098
28099 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
28100
28101 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
28102 requirement.
28103
28104 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
28105
28106 PR target/68924
28107 PR target/78782
28108 PR target/87558
28109 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
28110 (_mm_storeu_si64): Ditto.
28111
28112 2019-03-08 Martin Liska <mliska@suse.cz>
28113
28114 PR target/86952
28115 * config/i386/i386.c (ix86_option_override_internal): Disable
28116 jump tables when retpolines are used.
28117
28118 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
28119
28120 PR go/63560
28121 * ipa-split.c (execute_split_functions): Do not split
28122 'noinline' or 'section' function.
28123
28124 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28125
28126 PR target/79846
28127 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
28128 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
28129 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
28130
28131 PR ipa/80000
28132 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28133 from diagnostics. Formatting fixes.
28134
28135 PR target/85665
28136 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
28137 warn_odr diagnostics.
28138
28139 PR other/80058
28140 * lra-constraints.c (process_alt_operands): Avoid one space before
28141 " at the end of line and another after " on another line in a string
28142 literal.
28143 * attribs.c (handle_dll_attribute): Likewise.
28144 * config/avr/avr-devices.c (avr_texinfo): Likewise.
28145
28146 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
28147 warning_at or inform messages in G_() if there is no ?:.
28148
28149 PR tree-optimization/89550
28150 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
28151 returned true. Formatting fixes.
28152 (expand_builtin_strnlen): Formatting fixes.
28153 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
28154 if warning_at returned true.
28155 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
28156
28157 2019-03-08 Richard Biener <rguenther@suse.de>
28158
28159 PR middle-end/89578
28160 * cfgloop.h (struct loop): Add owned_clique field.
28161 * cfgloopmanip.c (copy_loop_info): Copy it.
28162 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
28163 cliques.
28164 * tree-inline.c (copy_loops): Remap owned_clique.
28165 * lto-streamer-in.c (input_cfg): Stream owned_clique.
28166 * lto-streamer-out.c (output_cfg): Likewise.
28167
28168 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28169
28170 PR target/80190
28171 * config/darwin.c: Include intl.h.
28172 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
28173 composing the message out of two separate parts.
28174
28175 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28176
28177 PR target/80003
28178 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
28179 doesn't start with a capital letter and doesn't end with a dot.
28180 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
28181 with a capital letter.
28182 (ix86_mangle_function_version_assembler_name): Likewise.
28183 (ix86_generate_version_dispatcher_body): Likewise.
28184 (fold_builtin_cpu): Likewise.
28185 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28186 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28187 translators, wrap full type name in %qs.
28188
28189 PR translation/79999
28190 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28191 depend clause with source (or sink) modifier.
28192 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28193
28194 PR target/89602
28195 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28196 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28197 (avx512f_load<mode>_mask): New define_expand.
28198 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28199 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28200 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28201 __builtin_ia32_movess_mask): New builtins.
28202 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28203 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28204 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28205 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28206
28207 2019-03-07 Martin Jambor <mjambor@suse.cz>
28208
28209 PR lto/87525
28210 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28211 for extern inline functions.
28212
28213 2019-03-07 Martin Jambor <mjambor@suse.cz>
28214
28215 PR ipa/88235
28216 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28217 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28218 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28219 have multiple callees. At the end check if declarations match as
28220 opposed to cgraph_nodes.
28221
28222 2019-03-07 Martin Liska <mliska@suse.cz>
28223
28224 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28225 which is equivalent to searching for this in clones chain.
28226 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28227 names with a neighbour and special case first node in a chain.
28228
28229 2019-01-25 Jason Merrill <jason@redhat.com>
28230
28231 PR c++/80916 - spurious "static but not defined" warning.
28232 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
28233 for an internal symbol with DECL_EXTERNAL.
28234
28235 2019-04-07 Richard Biener <rguenther@suse.de>
28236
28237 PR middle-end/89618
28238 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
28239 * tree-inline.c (copy_loops): Simplify.
28240
28241 2019-03-07 Martin Liska <mliska@suse.cz>
28242
28243 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
28244
28245 2019-03-07 Richard Biener <rguenther@suse.de>
28246
28247 PR tree-optimization/89595
28248 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
28249 stmt iterator as reference, take boolean output parameter to
28250 indicate whether the stmt was removed and thus the iterator
28251 already advanced.
28252 (dom_opt_dom_walker::before_dom_children): Re-iterate over
28253 stmts created by folding.
28254
28255 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28256
28257 PR c++/89585
28258 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
28259 at toplevel.
28260
28261 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
28262
28263 PR rtl-optimization/88845
28264 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
28265 LRA.
28266 * lra.c (remove_scratches_1): New function.
28267 (remove_scratches): Use it.
28268 (lra_emit_move): Likewise.
28269
28270 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
28271
28272 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
28273 unaligned_access variable.
28274 * config/arc/arc.c (arc_override_options): Set unaligned access
28275 default on for HS CPUs.
28276 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
28277
28278 2019-03-06 Martin Liska <mliska@suse.cz>
28279
28280 PR gcov-profile/89577
28281 * doc/gcov.texi: Prefer to use --coverage.
28282 * doc/sourcebuild.texi: Likewise.
28283
28284 2019-03-02 Jason Merrill <jason@redhat.com>
28285
28286 PR c++/86485 - -Wmaybe-unused with empty class ?:
28287 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
28288
28289 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28290
28291 PR target/89587
28292 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
28293 if_multiarch.
28294
28295 PR middle-end/89590
28296 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
28297 exactly one argument.
28298
28299 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28300 Richard Sandiford <richard.sandiford@arm.com>
28301
28302 PR tree-optimization/89570
28303 * match.pd (vec_cond into cond_op simplification): Don't use
28304 get_conditional_internal_fn, use as_internal_fn (cond_op).
28305
28306 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
28307
28308 PR target/89222
28309 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
28310 to decide when to split off a non-zero offset from a symbol.
28311 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
28312 in function symbols.
28313
28314 2019-03-05 Richard Biener <rguenther@suse.de>
28315
28316 PR tree-optimization/89594
28317 * tree-if-conv.c (pass_if_conversion::execute): Handle
28318 case where .LOOP_VECTORIZED_FUNCTION was removed.
28319
28320 2019-03-05 Jakub Jelinek <jakub@redhat.com>
28321
28322 PR bootstrap/89560
28323 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
28324 instead alloca it only when needed with the needed size.
28325
28326 PR tree-optimization/89570
28327 * match.pd (vec_cond into cond_op simplification): Guard with
28328 vectorized_internal_fn_supported_p test and #if GIMPLE.
28329
28330 PR tree-optimization/89566
28331 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
28332 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
28333 Punt if get_user_idx_format succeeds, but idx_format argument is
28334 not provided or doesn't have pointer type, or if idx_args is above
28335 number of provided arguments.
28336
28337 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
28338
28339 PR tree-optimization/89437
28340 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
28341
28342 2019-03-04 Richard Biener <rguenther@suse.de>
28343
28344 PR middle-end/89572
28345 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
28346 safe_dyn_cast.
28347
28348 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
28349
28350 PR tree-optimization/89487
28351 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
28352 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
28353 (distribute_loop): Don't do runtime alias check if there is non-
28354 addressable data reference.
28355 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
28356 is a register variable.
28357
28358 2019-03-02 Jakub Jelinek <jakub@redhat.com>
28359
28360 PR target/89506
28361 * config/arm/arm.md (cmpsi2_addneg): Use
28362 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
28363 If operands[2] is 0 or INT_MIN, force use of subs.
28364 (*compare_scc splitter): Use gen_int_mode.
28365 (*negscc): Likewise.
28366 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
28367
28368 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
28369 Monk Chiang <sh.chiang04@gmail.com>
28370
28371 * common/config/riscv/riscv-common.c: Include sstream.
28372 (riscv_subset_list::to_string): New.
28373 (riscv_arch_str): Likewise.
28374 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
28375 * config.in: Regen.
28376 * config/riscv/riscv-protos.h (riscv_arch_str): New.
28377 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
28378 (riscv_emit_attribute): New.
28379 (riscv_file_start): Emit attribute if needed.
28380 (riscv_option_override): Init riscv_emit_attribute_p.
28381 * config/riscv/riscv.opt (mriscv-attribute): New option.
28382 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
28383 * configure: Regen.
28384 * doc/install.texi: Document --with-riscv-attribute.
28385 * doc/invoke.texi: Document -mriscv-attribute.
28386
28387 * common/config/riscv/riscv-common.c:
28388 Include config/riscv/riscv-protos.h.
28389 (INCLUDE_STRING): Defined.
28390 (RISCV_DONT_CARE_VERSION): Defined.
28391 (riscv_subset_t): Declare.
28392 (riscv_subset_t::riscv_subset_t): New.
28393 (riscv_subset_list): Declare.
28394 (riscv_subset_list::riscv_subset_list): New.
28395 (riscv_subset_list::~riscv_subset_list): Likewise.
28396 (riscv_subset_list::parsing_subset_version): Likewise.
28397 (riscv_subset_list::parse_std_ext): Likewise.
28398 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28399 (riscv_subset_list::add): Likewise.
28400 (riscv_subset_list::lookup): Likewise.
28401 (riscv_subset_list::xlen): Likewise.
28402 (riscv_subset_list::parse): Likewise.
28403 (riscv_supported_std_ext): Likewise.
28404 (current_subset_list): Likewise.
28405 (riscv_parse_arch_string): Using riscv_subset_list::parse to
28406 parse.
28407
28408 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
28409
28410 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28411 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
28412 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
28413
28414 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
28415
28416 PR rtl-optimization/85899
28417 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
28418 fallthru edges leading to the exit block.
28419
28420 2019-03-01 Tamar Christina <tamar.christina@arm.com>
28421
28422 PR target/89517
28423 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
28424 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
28425
28426 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
28427
28428 PR tree-optimization/89535
28429 * tree-vect-stmts.c (vectorizable_call): Record the vector types
28430 for each operand. Calculate the fallback choice for mask operands
28431 and pass it to vect_get_vec_def_for_operand.
28432
28433 2019-03-01 Richard Biener <rguenther@suse.de>
28434
28435 PR middle-end/89541
28436 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
28437 get virtual operands.
28438 (get_expr_operands): Handle CONST_DECL like other decls.
28439
28440 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28441
28442 PR middle-end/89503
28443 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
28444 on DECL_P and EXPR_P.
28445
28446 2019-03-01 Richard Biener <rguenther@suse.de>
28447
28448 PR middle-end/89497
28449 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
28450 argument, defaulted to zero.
28451 * passes.c (execute_function_todo): Pass down SSA update flags
28452 to cleanup_tree_cfg.
28453 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
28454 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
28455 form if requested.
28456 (cleanup_tree_cfg): Get and pass down SSA update flags.
28457
28458 2019-03-01 Jakub Jelinek <jakub@redhat.com>
28459
28460 PR bootstrap/89539
28461 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
28462 early_lto_debug argument.
28463
28464 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
28465
28466 PR tree-optimization/89536
28467 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
28468 only whether bit #0 of the value is 0 instead of the entire value.
28469
28470 2019-02-28 Marek Polacek <polacek@redhat.com>
28471
28472 PR c++/87068 - missing diagnostic with fallthrough statement.
28473 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
28474 at the end of a seq, save its location to walk_stmt_info.
28475 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
28476 a switch.
28477
28478 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
28479
28480 PR lto/88585
28481 * tree.c (find_atomic_core_type): Move ahead in file.
28482 (check_base_type): Correctly compare alignments of atomic types.
28483
28484 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
28485
28486 PR target/89455
28487 * config/i386/i386.c (get_builtin_code_for_version): Identify
28488 Westmere from PCLMUL, instead of AES.
28489
28490 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28491
28492 PR target/89434
28493 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
28494 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
28495 -UINTVAL (...).
28496
28497 2019-02-28 Tamar Christina <tamar.christina@arm.com>
28498
28499 PR target/88530
28500 * config/aarch64/aarch64-option-extensions.def: Document it.
28501 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
28502 if empty hwcaps.
28503
28504 2019-02-28 Jakub Jelinek <jakub@redhat.com>
28505
28506 PR c/89520
28507 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
28508 builtins if they don't have a single scalar floating point argument.
28509 Formatting fixes.
28510
28511 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
28512
28513 PR rtl-optimization/89490
28514 * varasm.c (get_block_for_section): Bail out for mergeable sections.
28515 (default_use_anchors_for_symbol_p, output_object_block): Assert the
28516 block section is not mergeable.
28517
28518 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28519
28520 PR target/70341
28521 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
28522 old define_insn to ...
28523 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
28524 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
28525 Rename old define_insn to ...
28526 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
28527 (thumb2_casesi_internal_pic): New define_expand. Rename old
28528 define_insn to ...
28529 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
28530 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
28531 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
28532
28533 2019-02-27 Richard Biener <rguenther@suse.de>
28534
28535 PR debug/88878
28536 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
28537
28538 2019-02-27 Richard Biener <rguenther@suse.de>
28539
28540 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
28541 building.
28542
28543 2019-02-27 Richard Biener <rguenther@suse.de>
28544
28545 PR debug/88878
28546 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
28547 parameter, prefix section name with .gnu.debuglto_ if true.
28548 (dwarf2out_finish): Pass false to output_comdat_type_unit.
28549 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
28550
28551 2019-02-27 Richard Biener <rguenther@suse.de>
28552
28553 PR debug/89514
28554 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
28555 rather than on use_debug_types, doing what output_die does.
28556 (value_format): Likewise.
28557
28558 2019-02-27 Martin Jambor <mjambor@suse.cz>
28559 Martin Sebor <msebor@redhat.com>
28560
28561 * doc/invoke.texi (Warning Options): Reword description of
28562 -Wno-absolute-value.
28563
28564 2019-02-27 Jakub Jelinek <jakub@redhat.com>
28565
28566 PR tree-optimization/89280
28567 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
28568 builtin_setjmp_setup_bb): New functions.
28569 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
28570 When visiting __builtin_setjmp_setup block, queue in special
28571 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
28572 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
28573 from visited after the loop if they don't have any visited successor
28574 blocks.
28575
28576 2018-02-26 Steve Ellcey <sellcey@marvell.com>
28577
28578 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
28579 New function.
28580 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
28581
28582 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28583
28584 PR c++/89507
28585 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
28586 with types other than sizetype/ssizetype.
28587
28588 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28589
28590 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
28591 (enum sparc_processor_type): ...this.
28592 (enum sparc_code_model_type): New enumeration type.
28593 (enum sparc_memory_model_type): Tweak comments.
28594 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
28595 (mtune): Likewise.
28596 (mcmodel): Use sparc_code_model enumeration and variable.
28597 (sparc_code_model): New enumeration.
28598 (mdebug): Add Undocumented marker.
28599 * config/sparc/sparc.h (enum cmodel): Delete.
28600 (sparc_cmodel): Likewise.
28601 (TARGET_CM_MEDLOW): Adjust to above renaming.
28602 (TARGET_CM_MEDMID): Likewise.
28603 (TARGET_CM_MEDANY): Likewise.
28604 (TARGET_CM_EMBMEDANY): Likewise.
28605 * config/sparc/sparc.c (sparc_cmodel): Delete.
28606 (sparc_option_override): Remove string/value mapping support for the
28607 code model. Move code and memory model support to after the handling
28608 of target flags. Do private machine setup last.
28609 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
28610 (sparc_legitimize_reload_address): Likewise.
28611 (sparc_output_mi_thunk): Likewise.
28612 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
28613
28614 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28615
28616 PR tree-optimization/89500
28617 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
28618 (handle_builtin_strlen): Remove noncst_bound variable. Always
28619 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
28620 cst if the first cst bytes starting at x are known to be non-zero,
28621 even if the string is not zero terminated. Don't try to modify
28622 *si for strnlen. Update strlen_to_stridx only for strlen or if
28623 we can prove strnlen returns the same value as strlen would.
28624
28625 2019-02-26 Martin Liska <mliska@suse.cz>
28626
28627 * alloc-pool.h (struct pool_usage): Remove extra
28628 print_dash_line.
28629 * bitmap.h (struct bitmap_usage): Likewise.
28630 * ggc-common.c (struct ggc_usage): Likewise.
28631 * mem-stats.h (struct mem_usage): Likewise.
28632 (mem_alloc_description::dump): Print dash lines
28633 here and repeat header at the end of a table report.
28634 It's then more readable.
28635 * tree-phinodes.c (phinodes_print_statistics): Make
28636 horizontal alignment.
28637 * tree-ssanames.c (ssanames_print_statistics): Likewise.
28638 * vec.c (struct vec_usage): Remove extra print_dash_line.
28639 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
28640
28641 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
28642
28643 * doc/extend.texi (__builtin_object_size):
28644 Use @pxref instead of @xref inside parenthesis.
28645 (__builtin_has_attribute): Add missing comma after @xref.
28646 (__builtin_object_size): Ditto.
28647 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
28648
28649 2019-02-26 Jeff Law <law@redhat.com>
28650
28651 PR rtl-optimization/87761
28652 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
28653 detect obviously dead insns and delete them.
28654
28655 2019-02-26 Richard Biener <rguenther@suse.de>
28656
28657 PR tree-optimization/89505
28658 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
28659 to handle restrict pointed-to vars with multiple subvars
28660 correctly.
28661
28662 2019-02-26 Richard Biener <rguenther@suse.de>
28663
28664 PR tree-optimization/89489
28665 * tree-parloops.c (create_loop_fn): Copy over last_clique.
28666
28667 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
28668
28669 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
28670 and move around comment.
28671 <BIT_AND_EXPR>: Likewise.
28672 <BIT_NOT_EXPR>: Add specific handling for boolean types.
28673
28674 2019-02-26 Jakub Jelinek <jakub@redhat.com>
28675
28676 PR target/89474
28677 * config/i386/i386.c (remove_partial_avx_dependency): Call
28678 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
28679 after changing possibly many instructions to use that pseudo. Fix up
28680 insertion of v4sf_const0 setter at the start of bb.
28681
28682 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28683
28684 PR c/80409
28685 * doc/extend.texi (Variadic Pointer Args): New section.
28686
28687 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
28688 Martin Sebor <msebor@gmail.com>
28689
28690 * common.opt (Wattribute-alias): Likewise.
28691 * doc/invoke.texi (Option Summary): List general form of
28692 -Wattribute-alias=. List positive form of -Wmissing-attributes.
28693 (-Wmissing-attributes): Invert entry, rewrite and correct default.
28694 Add cross-references.
28695 (-Wattribute-alias): Rewrite and correct default. Mention
28696 considered attributes (same as for -Wmissing-attributes).
28697
28698 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
28699
28700 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
28701 (_mm_cvtpd_ps): Likewise.
28702 (_mm_cvttpd_epi32): Likewise.
28703
28704 PR target/89338
28705 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
28706 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
28707
28708 PR target/89339
28709 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
28710
28711 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28712
28713 PR target/88530
28714 * common/config/aarch64/aarch64-common.c
28715 (struct aarch64_option_extension): Add is_synthetic.
28716 (all_extensions): Use it.
28717 (TARGET_OPTION_INIT_STRUCT): Define hook.
28718 (struct gcc_targetm_common): Moved to end.
28719 (all_extensions_by_on): New.
28720 (opt_ext_cmp, typedef opt_ext): New.
28721 (aarch64_option_init_struct): New.
28722 (aarch64_contains_opt): New.
28723 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
28724 * config/aarch64/aarch64-option-extensions.def
28725 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
28726 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
28727 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
28728 Set is_synthetic to false.
28729 (crypto): Set is_synthetic to true.
28730 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
28731 SYNTHETIC.
28732
28733 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28734
28735 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28736 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
28737 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28738 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
28739 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
28740 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
28741 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
28742 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
28743 Rename ...
28744 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
28745 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28746 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
28747 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
28748 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
28749 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
28750 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
28751 vfmlsl_laneq_high_f16): ... To this.
28752 * config/arm/neon.md: Update comments.
28753
28754 2019-02-25 Tamar Christina <tamar.christina@arm.com>
28755
28756 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
28757 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
28758 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
28759 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
28760 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
28761 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
28762 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
28763 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
28764 Rename ...
28765 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
28766 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
28767 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
28768 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
28769 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
28770 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
28771 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
28772 vfmlslq_laneq_high_f16): ... To this.
28773
28774 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
28775
28776 PR rtl-optimization/86096
28777 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
28778 comparing mw_order values.
28779
28780 2019-02-25 Jakub Jelinek <jakub@redhat.com>
28781
28782 PR target/89434
28783 * config/arm/arm.md (*subsi3_carryin_const): Use
28784 arm_neg_immediate_operand predicate instead of
28785 arm_not_immediate_operand, "L" constraint instead of "K" and
28786 print it using %n2 instead of %B2.
28787 (*subsi3_carryin_const0): New define_insn.
28788 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
28789 instead of arm_not_operand and "I" constraint instead of "K" and
28790 print it using %n3 instead of %B2. Instead of using match_dup 2 add
28791 another match_operand and in the condition check that it is negation
28792 of operands[2].
28793 (*subsi3_carryin_compare_const0): New define_ins.
28794 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
28795 *subsi3_carryin_const.
28796 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
28797 split into *subsi3_carryin_compare_const0 if the highpart is zero.
28798
28799 PR target/89438
28800 * config/arm.vfp.md (*negdf2_vfp): Use
28801 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
28802 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
28803
28804 2019-02-24 Jakub Jelinek <jakub@redhat.com>
28805
28806 PR rtl-optimization/89445
28807 * simplify-rtx.c (simplify_ternary_operation): Don't use
28808 simplify_merge_mask on operands that may trap.
28809 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
28810 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
28811 second operand is CONST_VECTOR, check if any element could be zero.
28812 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
28813 their operands can trap.
28814
28815 2019-02-23 Martin Sebor <msebor@redhat.com>
28816
28817 * gimple-ssa-sprintf.c (target_strtol): Rename...
28818 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
28819 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
28820 check for range error.
28821
28822 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
28823
28824 PR driver/69471
28825 * opts-common.c (prune_options): Also prune joined switches
28826 with Negative and RejectNegative.
28827 * config/i386/i386.opt (march=): Add Negative(march=).
28828 (mtune=): Add Negative(mtune=).
28829 * doc/options.texi: Document Negative used together with Joined
28830 and RejectNegative.
28831
28832 2019-02-22 Martin Sebor <msebor@redhat.com>
28833
28834 * doc/extend.texi (Other Builtins): Add
28835 __builtin_is_constant_evaluated.
28836
28837 2019-02-22 Richard Biener <rguenther@suse.de>
28838
28839 PR tree-optimization/87609
28840 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
28841
28842 2019-02-22 Jeff Law <law@redhat.com>
28843
28844 PR rtl-optimization/87761
28845 * config/mips/mips.md: Add new combiner pattern to recognize
28846 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
28847
28848 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
28849
28850 PR target/89324
28851 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
28852 destination register in peepholes generating patterns for ADDS/SUBS.
28853 (add<mode>3_compare0,
28854 *addsi3_compare0_uxtw, add<mode>3_compareC,
28855 add<mode>3_compareV_imm, add<mode>3_compareV,
28856 *adds_<optab><ALLX:mode>_<GPI:mode>,
28857 *subs_<optab><ALLX:mode>_<GPI:mode>,
28858 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
28859 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
28860 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
28861 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
28862 sub<mode>3_compare1): Allow stack pointer for source register.
28863 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
28864
28865 2019-02-22 Martin Sebor <msebor@redhat.com>
28866
28867 PR tree-optimization/88993
28868 PR tree-optimization/88853
28869 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
28870 New helper.
28871 (sprintf_dom_walker::call_info::is_string_func): New helper.
28872 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
28873 for formatted string functions.
28874 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
28875
28876 2019-02-22 Martin Sebor <msebor@redhat.com>
28877
28878 PR c/89425
28879 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
28880 unreachable subexpressions.
28881
28882 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
28883 Hongtao Liu <hongtao.liu@intel.com>
28884 Sunil K Pandey <sunil.k.pandey@intel.com>
28885
28886 PR target/87007
28887 * config/i386/i386-passes.def: Add
28888 pass_remove_partial_avx_dependency.
28889 * config/i386/i386-protos.h
28890 (make_pass_remove_partial_avx_dependency): New.
28891 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
28892 New function.
28893 (pass_data_remove_partial_avx_dependency): New.
28894 (pass_remove_partial_avx_dependency): Likewise.
28895 (make_pass_remove_partial_avx_dependency): Likewise.
28896 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
28897 (*extendsfdf2): Add avx_partial_xmm_update.
28898 (truncdfsf2): Likewise.
28899 (*float<SWI48:mode><MODEF:mode>2): Likewise.
28900 (SF/DF conversion splitters): Disabled for TARGET_AVX.
28901
28902 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
28903
28904 PR middle-end/85598
28905 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
28906 analysis for pass.
28907
28908 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
28909
28910 PR target/89444
28911 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
28912 (PTA_SKYLAKE): Add PTA_AES.
28913 (PTA_GOLDMONT): Likewise.
28914
28915 2019-02-22 Sudakshina Das <sudi.das@arm.com>
28916
28917 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
28918 instruction if enabled.
28919 (aarch64_override_options): Remove reference to return address key.
28920
28921 2019-02-22 Richard Biener <rguenther@suse.de>
28922
28923 PR tree-optimization/89440
28924 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
28925 not necessary assert.
28926
28927 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
28928
28929 PR fortran/72741
28930 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
28931 (oacc_replace_fn_attrib_attr): ... this new function.
28932 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
28933 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
28934
28935 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28936
28937 * config/arm/arm-cpus.in (ares): Rename to...
28938 (neoverse-n1): ... This. Add ares as alias.
28939 * config/arm/arm-tables.opt: Regenerate.
28940 * config/arm/arm-tune.md: Likewise.
28941 * doc/invoke.txt (ARM Options): Document neoverse-n1.
28942
28943 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28944
28945 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
28946 * config/aarch64/aarch64-tune.md: Regenerate.
28947 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
28948
28949 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28950
28951 * config/aarch64/aarch64.c (ares_tunings): Rename to...
28952 (neoversen1_tunings): ... This.
28953 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
28954 (neoverse-n1): New CPU.
28955 * config/aarch64/aarch64-tune.md: Regenerate.
28956 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
28957
28958 2019-02-22 Richard Biener <rguenther@suse.de>
28959
28960 PR middle-end/87609
28961 * cfghooks.h (dependence_hash): New typedef.
28962 (struct copy_bb_data): New type.
28963 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
28964 (duplicate_block): Likewise.
28965 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
28966 (copy_bbs): Create and pass down copy_bb_data.
28967 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
28968 (rtl_duplicate_bb): Likewise.
28969 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
28970 remap dependence info.
28971
28972 2019-02-22 Richard Biener <rguenther@suse.de>
28973
28974 PR tree-optimization/87609
28975 * tree-core.h (tree_base): Document special clique values.
28976 * tree-inline.c (remap_dependence_clique): Do not use the
28977 special clique value of one.
28978 (maybe_set_dependence_info): Use clique one.
28979 (clear_dependence_clique): New callback.
28980 (compute_dependence_clique): Clear clique one from all refs
28981 before assigning it (again).
28982
28983 2019-02-21 Martin Sebor <msebor@redhat.com>
28984
28985 * doc/extend.texi (__clear_cache): Correct signature.
28986
28987 2019-02-21 Ian Lance Taylor <iant@golang.org>
28988
28989 PR go/89170
28990 * varasm.c (decode_addr_const): Call lookup_constant_def rather
28991 than output_constant_def.
28992 (add_constant_to_table): New static function.
28993 (output_constant_def): Call add_constant_to_table.
28994 (tree_output_constant_def): Likewise.
28995
28996 2019-02-21 Jakub Jelinek <jakub@redhat.com>
28997
28998 PR c++/89285
28999 * builtins.c (fold_builtin_arith_overflow): If first two args are
29000 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29001 to ifn.
29002
29003 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29004
29005 PR target/87412
29006 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29007 error for -mindirect-branch/-mfunction-return with incompatible
29008 -fcf-protection.
29009
29010 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29011
29012 PR bootstrap/88714
29013 * constraints.md (q): Remove.
29014 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
29015 instead of q.
29016
29017 2019-02-21 Martin Jambor <mjambor@suse.cz>
29018
29019 PR hsa/89302
29020 * omp-general.c (omp_extract_for_data): Removed a duplicate call
29021 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
29022 (omp_adjust_for_condition): ...here. Added necessary parameters.
29023 * omp-general.h (omp_adjust_for_condition): Updated declaration.
29024 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
29025 proper values to new parameters of omp_adjust_for_condition.
29026
29027 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29028
29029 PR middle-end/89412
29030 * expr.c (expand_assignment): If result is a MEM, use change_address
29031 instead of simplify_gen_subreg.
29032
29033 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29034 David Malcolm <dmalcolm@redhat.com>
29035
29036 PR middle-end/89091
29037 * fold-const.c (decode_field_reference): Return NULL_TREE if
29038 lang_hooks.types.type_for_size returns NULL. Check it before
29039 overwriting *exp_. Use return NULL_TREE instead of return 0.
29040
29041 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29042
29043 PR middle-end/88074
29044 PR middle-end/89415
29045 * toplev.c (do_compile): Double the emin/emax exponents to workaround
29046 buggy mpc_norm.
29047
29048 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
29049
29050 PR target/89397
29051 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
29052 TARGET_SSE in addition to TARGET_SSE_MATH.
29053
29054 (ix86_excess_precision): Ditto.
29055 (ix86_float_exceptions_rounding_supported_p): Ditto.
29056 (use_rsqrt_p): Ditto.
29057 * config/i386/sse.md (rsqrt<mode>2): Ditto.
29058
29059 2019-02-20 David Malcolm <dmalcolm@redhat.com>
29060
29061 PR c/89410
29062 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
29063 linenum_arith_t when determining if two adjacent line spans are
29064 close enough to merge.
29065 (diagnostic_show_locus): Use linenum_arith_t when iterating over
29066 lines within each line_span.
29067
29068 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
29069
29070 PR target/86487
29071 * lra-constraints.c(uses_hard_regs_p): Fix handling of
29072 paradoxical SUBREGS.
29073
29074 2019-02-20 Li Jia He <helijia@linux.ibm.com>
29075
29076 PR target/88100
29077 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
29078 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
29079 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
29080 range checking it.
29081
29082 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
29083
29084 * config/gcn/gcn.c (print_operand): Fix typo.
29085
29086 2019-02-19 Richard Biener <rguenther@suse.de>
29087
29088 PR middle-end/88074
29089 * toplev.c (do_compile): Initialize mpfr's exponent range
29090 based on available float modes.
29091
29092 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
29093
29094 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
29095 as long as the epilogue isn't completed.
29096
29097 2019-02-18 Martin Sebor <msebor@redhat.com>
29098
29099 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
29100 __has_cpp_attribute, and __has_include.
29101
29102 2019-02-18 Martin Sebor <msebor@redhat.com>
29103
29104 * doc/invoke.texi (-Wreturn-type): Correct and expand.
29105
29106 2019-02-18 Martin Sebor <msebor@redhat.com>
29107
29108 PR middle-end/89294
29109 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
29110 expression.
29111 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
29112
29113 2019-02-18 Richard Biener <rguenther@suse.de>
29114
29115 PR tree-optimization/89296
29116 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
29117 of no-warning flag to cases that might emit the bogus warning.
29118
29119 2019-02-18 Jakub Jelinek <jakub@redhat.com>
29120
29121 PR bootstrap/88714
29122 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
29123 "q" constraint.
29124 * config/arm/vfp.md (*movdi_vfp): Likewise.
29125 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
29126 "q" constraint for operands[0].
29127
29128 PR target/89369
29129 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
29130 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
29131 pattern in a temporary buffer.
29132 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
29133 than 64-operands[2].
29134
29135 PR target/89361
29136 * config/s390/s390.c (s390_indirect_branch_attrvalue,
29137 s390_indirect_branch_settings): Define unconditionally.
29138 (s390_set_current_function): Likewise, but guard the whole body except
29139 the s390_indirect_branch_settings call with
29140 #if S390_USE_TARGET_ATTRIBUTE.
29141 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
29142
29143 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
29144 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
29145 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
29146 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
29147 HOST_WIDE_INT_1U instead of 1ULL.
29148 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
29149 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
29150 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
29151 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
29152 instead of 1UL.
29153 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
29154 instead of 1ul.
29155
29156 2019-02-18 Martin Jambor <mjambor@suse.cz>
29157
29158 PR tree-optimization/89209
29159 * tree-sra.c (create_access_replacement): New optional parameter
29160 reg_tree. Use it as a type if non-NULL and access type is not of
29161 a register type.
29162 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
29163 to create_access_replacement.
29164 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
29165 Check lacc is non-NULL before attempting to re-create it on the RHS.
29166
29167 2019-02-18 Martin Liska <mliska@suse.cz>
29168
29169 PR ipa/89306
29170 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
29171 by default.
29172 (symbol_table::free_edge): Recycle m_summary_id.
29173 * cgraph.h (get_summary_id): New.
29174 (symbol_table::release_symbol): Set m_summary_id to -1
29175 by default.
29176 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
29177 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
29178 function_summary to fast_function_summary.
29179 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
29180 * ipa-pure-const.c (class funct_state_summary_t):
29181 Switch from function_summary to fast_function_summary.
29182 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29183 (class ipa_ref_opt_summary_t): Switch from function_summary
29184 to fast_function_summary.
29185 * symbol-summary.h (class function_summary_base): New class
29186 that is created from base of former function_summary.
29187 (function_summary_base::unregister_hooks): New.
29188 (class function_summary): Inherit from function_summary_base.
29189 (class call_summary_base): New class
29190 that is created from base of former call_summary.
29191 (class call_summary): Inherit from call_summary_base.
29192 (struct is_same): New.
29193 (class fast_function_summary): New summary class.
29194 (class fast_call_summary): New summary class.
29195 * vec.h (vec_safe_grow_cleared): New function.
29196
29197 2019-02-18 Martin Liska <mliska@suse.cz>
29198
29199 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29200 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29201 * doc/tm.texi: Document new target hook.
29202 * doc/tm.texi.in: Likewise.
29203 * target.def: Add new target macro.
29204 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29205 suffixes.
29206
29207 2019-02-17 Alan Modra <amodra@gmail.com>
29208
29209 PR target/89271
29210 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29211 output reg on add insn.
29212 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29213
29214 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29215
29216 PR target/89372
29217 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29218 (PMULHRSW): Likewise.
29219 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29220 TARGET_AVX2.
29221 (ssse3_pmulhrswv4hi3): New expander.
29222
29223 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29224
29225 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29226 MMX. Add isa attribute.
29227
29228 2019-02-16 Jakub Jelinek <jakub@redhat.com>
29229
29230 PR rtl-optimization/66152
29231 * builtins.h (c_readstr): Declare.
29232 * builtins.c (c_readstr): Remove forward declaration. Add
29233 null_terminated_p argument, if false, read all bytes from the
29234 string instead of stopping after '\0'.
29235 * expr.c (string_cst_read_str): New function.
29236 (store_expr): Use string_cst_read_str instead of
29237 builtin_strncpy_read_str. Try to store by pieces the whole
29238 exp_len first, and only if that fails, split it up into
29239 store by pieces followed by clear_storage. Formatting fix.
29240
29241 * config/i386/i386.md (*movqi_internal): Remove static from
29242 buf variable. Use output_asm_insn (buf, operands); return "";
29243 instead of return buf;.
29244 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
29245 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
29246 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
29247
29248 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29249
29250 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
29251 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
29252 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
29253 (CC1_SPEC): Likewise.
29254 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
29255
29256 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29257
29258 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
29259 the base address on 64-bit strict-alignment platforms.
29260
29261 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
29262
29263 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
29264
29265 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29266
29267 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
29268
29269 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
29270
29271 PR rtl-optimization/88308
29272 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
29273 on copied instruction.
29274
29275 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
29276
29277 * final.c (insn_current_reference_address): Replace test on JUMP_P
29278 with test on jump_to_label_p.
29279 * config/visium/visium-passes.def: New file.
29280 * config/visium/t-visium (PASSES_EXTRA): Define.
29281 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
29282 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
29283 (TRAMPOLINE_ALIGNMENT): Define.
29284 * config/visium/visium.c (visium_option_override): Do not register
29285 the machine-specific reorg pass here.
29286 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
29287 for the GR6.
29288 (output_branch): Adjust threshold for long branch instruction.
29289 * config/visium/visium.md (cpu): Move around.
29290 (length): Adjust for the GR6.
29291
29292 2019-02-15 Richard Biener <rguenther@suse.de>
29293 Jakub Jelinek <jakub@redhat.com>
29294
29295 PR tree-optimization/89278
29296 * tree-loop-distribution.c: Include tree-eh.h.
29297 (generate_memset_builtin, generate_memcpy_builtin): Call
29298 rewrite_to_non_trapping_overflow on builtin->size before passing it
29299 to force_gimple_operand_gsi.
29300
29301 2019-02-15 Jakub Jelinek <jakub@redhat.com>
29302
29303 PR other/89342
29304 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
29305 optimize_debug.
29306 * opth-gen.awk: Likewise.
29307
29308 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
29309
29310 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
29311 Enable MMX, SSE and SSE2 by default.
29312 * config/i386/i386.c (ix86_option_override_internal): Do not
29313 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
29314
29315 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29316
29317 PR rtl-optimization/89354
29318 * combine.c (make_extraction): Punt if extraction_mode is narrower
29319 than len bits.
29320
29321 2019-02-14 Maya Rashish <coypu@sdf.org>
29322
29323 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
29324 * config/netbsd-d.c: New file.
29325 * config/t-netbsd: Add netbsd-d.o
29326
29327 2018-02-14 Steve Ellcey <sellcey@marvell.com>
29328
29329 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
29330 affects_type_identity to true for aarch64_vector_pcs.
29331 (aarch64_comp_type_attributes): New function.
29332 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
29333
29334 2019-02-14 Tamar Christina <tamar.christina@arm.com>
29335
29336 PR target/88850
29337 * config/arm/iterators.md (ANY64): Add V4HF.
29338
29339 2019-02-14 Martin Liska <mliska@suse.cz>
29340
29341 PR rtl-optimization/89242
29342 * dce.c (delete_unmarked_insns): Call free_dominance_info we
29343 process a transformation.
29344
29345 2019-02-14 Jakub Jelinek <jakub@redhat.com>
29346
29347 PR tree-optimization/89314
29348 * fold-const.c (fold_binary_loc): Cast strlen argument to
29349 const char * before dereferencing it. Formatting fixes.
29350
29351 PR middle-end/89284
29352 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
29353
29354 2019-02-13 Ian Lance Taylor <iant@golang.org>
29355
29356 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
29357 and set current index for other optimizations.
29358
29359 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
29360
29361 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
29362 nonimmediate_operand as operand 2 predicate.
29363 (vec_set<VF2_512_256:mode>_0): Ditto.
29364 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
29365 (*vec_concatv2si): Remove alternative 2.
29366 (*vec_concatv4si_0): Use vm constraint for alternative 0.
29367 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
29368 (vec_concatv2di): Split alternatives 4,5,6 to ...
29369 (*vec_concatv2di_0) ... new pattern.
29370
29371 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
29372
29373 PR target/89190
29374 * config/arm/arm.c (ldm_stm_operation_p) Set
29375 addr_reg_in_reglist correctly for first register.
29376 (load_multiple_sequence): Remove dead base check.
29377 (gen_ldm_seq): Correctly set write_back for Thumb-1.
29378
29379 2019-02-13 Tamar Christina <tamar.christina@arm.com>
29380
29381 PR target/88847
29382 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
29383 Expose as @aarch64_pred_mov.
29384 * config/aarch64/aarch64.c (aarch64_classify_address):
29385 Use expand_insn which legitimizes operands.
29386
29387 2019-02-13 Martin Liska <mliska@suse.cz>
29388
29389 * builtins.h (expand_builtin_with_bounds): Remove declaration.
29390 * calls.c (struct arg_data): Remove special_slot, pointer_arg
29391 and pointer_offset fields.
29392 (initialize_argument_information): Remove usage of dead
29393 fields.
29394 * cgraph.h (struct cgraph_thunk_info): Remove
29395 add_pointer_bounds_args.
29396 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
29397 fields.
29398 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
29399 fields.
29400 * config/i386/i386.c (ix86_function_arg_advance): Remove
29401 unrelated comment.
29402 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
29403 (def_builtin): Remove usage of dead fields.
29404 (ix86_add_new_builtins): Likewise.
29405 * ipa-fnsummary.c (compute_fn_summary): Likewise.
29406 * ipa-icf.c (sem_function::equals_wpa): Likewise.
29407 (sem_function::init): Likewise.
29408 (sem_variable::merge): Likewise.
29409 * ipa-visibility.c (function_and_variable_visibility): Likewise.
29410 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
29411 * lto-cgraph.c (lto_output_node): Likewise.
29412 (lto_output_varpool_node): Likewise.
29413 (input_node): Likewise.
29414 (input_varpool_node): Likewise.
29415 * lto-streamer-out.c (lto_output): Likewise.
29416 * tree-inline.c (expand_call_inline): Remove usage of
29417 assign_stmts.
29418 * tree-inline.h (struct copy_body_data): Likewise.
29419 * varpool.c (varpool_node::dump): Likewise.
29420
29421 2019-02-13 Jakub Jelinek <jakub@redhat.com>
29422
29423 PR middle-end/89303
29424 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
29425 into pt->vars_contains_escaped_heap instead of setting
29426 pt->vars_contains_escaped_heap to it.
29427
29428 PR middle-end/89281
29429 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
29430 INTVAL (size), compare it to GET_MODE_MASK instead of
29431 1 << GET_MODE_BITSIZE.
29432
29433 PR target/89290
29434 * config/i386/predicates.md (x86_64_immediate_operand): Allow
29435 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
29436 -mcmodel=large.
29437
29438 2019-02-13 Martin Liska <mliska@suse.cz>
29439
29440 PR lto/88858
29441 * cfgrtl.c (remove_barriers_from_footer): New function.
29442 (try_redirect_by_replacing_jump): Use it.
29443 (cfg_layout_redirect_edge_and_branch): Likewise.
29444
29445 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
29446
29447 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
29448 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
29449 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
29450 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
29451 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
29452 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
29453 New BU_CRYPTO_2.
29454 * config/rs6000/rs6000.c (builtin_function_type)
29455 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
29456 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
29457 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
29458 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
29459 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
29460
29461 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
29462
29463 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
29464 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
29465
29466 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
29467
29468 PR target/89229
29469 * config/i386/i386.md (*movoi_internal_avx): Revert revision
29470 268678 and revision 268657.
29471 (*movti_internal): Likewise.
29472
29473 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
29474
29475 PR target/89233
29476 * config/s390/s390.c (s390_decompose_address): Update comment.
29477 (s390_check_qrst_address): Reject invalid address forms after
29478 LRA.
29479
29480 2019-02-12 Martin Liska <mliska@suse.cz>
29481
29482 PR lto/88876
29483 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
29484 we need default values of funct_state for a function that
29485 is not optimized.
29486
29487 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
29488
29489 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
29490 the object to pick the size of stores on strict-alignment platforms.
29491
29492 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
29493 (*movdi_insn_sp32): Likewise.
29494 (*movdi_insn_sp64): Likewise.
29495
29496 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
29497
29498 PR lto/88677
29499 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
29500 types that needs constructiong.
29501 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
29502
29503 2019-02-12 Richard Biener <rguenther@suse.de>
29504
29505 PR tree-optimization/89253
29506 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
29507 duplicate the loop.
29508
29509 2019-02-11 David Malcolm <dmalcolm@redhat.com>
29510
29511 PR lto/88147
29512 * input.c (selftest::test_line_offset_overflow): New selftest.
29513 (selftest::input_c_tests): Call it.
29514
29515 2019-02-11 Martin Sebor <msebor@redhat.com>
29516
29517 PR tree-optimization/88771
29518 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
29519 when -Wstringop-overflow is set.
29520 (builtin_memref::builtin_memref): Adjust excessive upper bound
29521 only when lower bound is not excessive.
29522 (maybe_diag_overlap): Detect and diagnose excessive bounds via
29523 -Wstringop-ovefflow.
29524 (maybe_diag_offset_bounds): Rename...
29525 (maybe_diag_access_bounds): ...to this.
29526 (check_bounds_or_overlap): Adjust for name change above.
29527
29528 2019-02-11 Martin Sebor <msebor@redhat.com>
29529
29530 PR c++/87996
29531 * builtins.c (max_object_size): Move from here...
29532 * builtins.h (max_object_size): ...and here...
29533 * tree.c (max_object_size): ...to here...
29534 * tree.h (max_object_size): ...and here.
29535
29536 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
29537
29538 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
29539 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
29540 for correct semantics.
29541
29542 2019-02-11 Alan Modra <amodra@gmail.com>
29543
29544 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
29545 -mlongcall and -mpltseq.
29546 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
29547 (RS/6000 and PowerPC Options <-mpltseq>): Document.
29548 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
29549 * config/rs6000/sysv4.opt (mpltseq): New option.
29550 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
29551 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
29552 support is lacking. Don't allow -mpltseq with -mbss-plt.
29553 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
29554 -mpltseq given for ELFv1.
29555 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
29556 Only use UNSPEC_PLTSEQ for inline PLT calls.
29557 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
29558 use UNSPEC_PLTSEQ for inline PLT calls.
29559 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
29560 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
29561 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
29562 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29563 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29564 (pltseq_mtctr_<mode>): Likewise.
29565
29566 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29567
29568 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
29569 Solaris ld.
29570 * configure: Regenerate.
29571
29572 2019-02-11 Jakub Jelinek <jakub@redhat.com>
29573
29574 PR bootstrap/88714
29575 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
29576 instead of r.
29577
29578 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29579
29580 * function.c (assign_parm_setup_block): Use the stored
29581 size, not the passed size, when allocating stack-space,
29582 also for a parameter with alignment larger than
29583 MAX_SUPPORTED_STACK_ALIGNMENT.
29584
29585 2019-02-11 Martin Liska <mliska@suse.cz>
29586
29587 PR ipa/89009
29588 * ipa-cp.c (build_toporder_info): Remove usage of a param.
29589 * ipa-inline.c (inline_small_functions): Likewise.
29590 * ipa-pure-const.c (propagate_pure_const): Likewise.
29591 (propagate_nothrow): Likewise.
29592 * ipa-reference.c (propagate): Likewise.
29593 * ipa-utils.c (struct searchc_env): Remove unused field.
29594 (searchc): Always search across AVAIL_INTERPOSABLE.
29595 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
29596 the only called IPA pure const can properly not propagate
29597 across interposable boundary.
29598 * ipa-utils.h (ipa_reduced_postorder): Remove param.
29599
29600 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
29601
29602 * config/nds32/nds32.md (call_internal, call_value_internal,
29603 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
29604
29605 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
29606
29607 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
29608 typo.
29609
29610 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
29611
29612 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
29613 in comments
29614
29615 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29616
29617 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
29618
29619 2019-02-10 Jakub Jelinek <jakub@redhat.com>
29620
29621 PR tree-optimization/89268
29622 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
29623 if preds is non-NULL.
29624
29625 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29626
29627 PR lto/89272
29628 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
29629 polymorphic types.
29630
29631 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29632
29633 * config/nds32/nds32.md (trap): New pattern.
29634
29635 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
29636
29637 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
29638 dwarf span.
29639
29640 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
29641
29642 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
29643 to split POST_INC.
29644
29645 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29646
29647 * ipa-visibility.c (localize_node): Also do not localize
29648 LDPR_PREVAILING_DEF_IRONLY_EXP.
29649
29650 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29651
29652 PR lto/87957
29653 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
29654 instead of type_with_linkage.
29655
29656 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
29657
29658 PR ipa/88755
29659 * params.def (uninlined-function-insns, uninlined-function-time,
29660 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
29661 bound so we don't get overflows.
29662
29663 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
29664
29665 * config/rs6000/rs6000-string.c (expand_compare_loop,
29666 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
29667 memcmp/strncmp.
29668
29669 2019-02-09 Jakub Jelinek <jakub@redhat.com>
29670
29671 PR middle-end/89246
29672 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29673 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
29674 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
29675
29676 2019-02-09 Alan Modra <amodra@gmail.com>
29677
29678 PR target/88343
29679 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
29680 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
29681 setup.
29682
29683 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
29684
29685 PR middle-end/88560
29686 * lra-constraints.c (process_alt_operands): Don't increase reject
29687 for memory when offset memory is required.
29688
29689 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
29690
29691 * config/s390/vector.md: Implement vector copysign.
29692
29693 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29694
29695 * expr.c (expand_constructor): Correct indentations.
29696
29697 2019-02-08 Richard Biener <rguenther@suse.de>
29698
29699 PR tree-optimization/89247
29700 * tree-if-conv.c: Include tree-cfgcleanup.h.
29701 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
29702 (tree_if_conversion): Pass through predicate vector.
29703 (pass_if_conversion::execute): Do CFG cleanup and SSA update
29704 inline, see if any if-converted loops we refrece in
29705 LOOP_VECTORIZED calls vanished and fixup.
29706 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
29707
29708 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
29709
29710 * config/s390/constraints.md (jdd): New constraint.
29711
29712 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
29713
29714 PR target/89229
29715 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
29716 upper 16 vector registers without TARGET_AVX512VL.
29717 (*movti_internal): Likewise.
29718
29719 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29720
29721 PR rtl-optimization/89234
29722 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
29723 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
29724 (copy_reg_eh_region_note_backward): Likewise.
29725
29726 2019-02-08 Richard Biener <rguenther@suse.de>
29727
29728 PR middle-end/89223
29729 * tree-data-ref.c (initialize_matrix_A): Fail if constant
29730 doesn't fit in HWI.
29731 (analyze_subscript_affine_affine): Handle failure from
29732 initialize_matrix_A.
29733
29734 2019-02-08 Jakub Jelinek <jakub@redhat.com>
29735
29736 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
29737 cfun everywhere.
29738
29739 2019-02-07 David Malcolm <dmalcolm@redhat.com>
29740
29741 PR tree-optimization/86637
29742 PR tree-optimization/89235
29743 * tree-vect-loop.c (optimize_mask_stores): Add an
29744 auto_purge_vect_location sentinel to ensure that vect_location is
29745 purged on exit.
29746 * tree-vectorizer.c
29747 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
29748 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
29749 to ensure that vect_location is purged on exit.
29750 (pass_slp_vectorize::execute): Likewise, replacing the manual
29751 reset.
29752 * tree-vectorizer.h (class auto_purge_vect_location): New class.
29753
29754 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29755
29756 * config/aarch64/iterators.md (max_opp): New code_attr.
29757 (USMAX): New code iterator.
29758 * config/aarch64/predicates.md (aarch64_smin): New predicate.
29759 (aarch64_smax): Likewise.
29760 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
29761 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
29762 MINUS (MAX MIN).
29763
29764 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
29765
29766 PR target/89229
29767 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
29768 for TARGET_AVX512VL.
29769 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
29770
29771 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
29772
29773 * config/s390/s390-builtin-types.def: Add new types.
29774 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
29775 (s390_vec_xlw4): Make the memory operand into a const pointer.
29776 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
29777 float.
29778 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
29779 a new vector type with the alignment of the scalar memory operand.
29780
29781 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
29782 Jakub Jelinek <jakub@redhat.com>
29783
29784 PR bootstrap/88714
29785 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
29786 arm_count_ldrdstrd_insns): New declarations.
29787 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
29788 MINUS.
29789 (valid_operands_ldrd_strd): New function.
29790 (arm_count_ldrdstrd_insns): New function.
29791 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
29792 sets instead of single DImode set and define new insns to match this.
29793
29794 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29795
29796 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
29797 Make it a C initializer.
29798
29799 2019-02-07 Tamar Christina <tamar.christina@arm.com>
29800
29801 PR/target 88850
29802 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
29803
29804 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29805
29806 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
29807 Use neon_dot<q> for type.
29808 (neon_<sup>dot_lane<vsi2qi>): Likewise.
29809
29810 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29811
29812 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
29813 Use neon_dot<q> for type.
29814 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
29815 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
29816
29817 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
29818
29819 PR rtl-optimization/89225
29820 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
29821 sizes check.
29822
29823 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
29824
29825 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
29826 after restoring registers saved to allocate the frame on Windows.
29827
29828 2019-02-06 Richard Biener <rguenther@suse.de>
29829
29830 PR tree-optimization/89182
29831 * graphite.h (cached_scalar_evolution_in_region): Declare.
29832 * graphite.c (struct seir_cache_key): New.
29833 (struct sese_scev_hash): Likewise.
29834 (seir_cache): New global.
29835 (cached_scalar_evolution_in_region): New function.
29836 (graphite_transform_loops): Allocate and release seir_cache.
29837 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
29838 cached_scalar_evolution_in_region.
29839 * graphite-scop-detection.c (scop_detection::can_represent_loop):
29840 Simplify.
29841 (scop_detection::graphite_can_represent_expr: Use
29842 cached_scalar_evolution_in_region.
29843 (scop_detection::stmt_simple_for_scop_p): Likewise.
29844 (find_params_in_bb): Likewise.
29845 (gather_bbs::before_dom_children): Likewise.
29846 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
29847 (add_loop_constraints): Likewise.
29848
29849 2019-02-06 Jakub Jelinek <jakub@redhat.com>
29850
29851 PR middle-end/89210
29852 * fold-const-call.c (fold_const_vec_convert): Pass true as last
29853 operand to new_unary_operation only if both element types are integral
29854 and it isn't a widening conversion. Return NULL_TREE if
29855 new_unary_operation failed.
29856
29857 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
29858
29859 PR target/88856
29860 * config/s390/s390.md: Remove load and test FP splitter.
29861
29862 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29863
29864 PR target/89112
29865 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
29866 expand_compare_loop, expand_block_compare_gpr,
29867 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
29868 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
29869 #include "profile-count.h" and "predict.h" for types and functions
29870 needed to work with REG_BR_PROB notes.
29871
29872 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
29873
29874 PR target/89112
29875 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
29876 for the long branch case.
29877
29878 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29879
29880 PR target/89188
29881 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
29882 can throw, non-call exceptions are enabled and we can't delete
29883 dead exceptions or alter cfg. Set must_clean if
29884 delete_insn_and_edges returns true, don't set it blindly for calls.
29885 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
29886
29887 PR rtl-optimization/89195
29888 * combine.c (make_extraction): For MEMs, don't extract bytes outside
29889 of the original MEM.
29890
29891 2019-02-05 Martin Liska <mliska@suse.cz>
29892
29893 PR gcov-profile/89000
29894 * gcov.c (function_summary): Remove argument.
29895 (file_summary): New function.
29896 (print_usage): Replace tabs with spaces.
29897 (generate_results): Use new function file_summary.
29898
29899 2019-02-05 Jakub Jelinek <jakub@redhat.com>
29900
29901 PR target/89186
29902 * optabs.c (prepare_cmp_insn): Pass x and y to
29903 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
29904
29905 2019-02-05 Richard Biener <rguenther@suse.de>
29906
29907 PR middle-end/89150
29908 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
29909 (struct bitmap_element): Drop chain_prev so we properly recurse on
29910 the prev member, supporting tree views.
29911 (struct bitmap_head): GTY skip the obstack member.
29912
29913 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
29914
29915 PR c/88698
29916 * doc/extend.texi (Vector Extensions): Add an example of using vector
29917 types together with x86 intrinsics.
29918
29919 2019-02-04 Alan Modra <amodra@gmail.com>
29920
29921 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
29922 str[] size to 160, and comment.
29923
29924 2019-02-04 Alan Modra <amodra@gmail.com>
29925
29926 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
29927 (rs6000_pltseq_template): Guard output of TLS markers with
29928 TARGET_TLS_MARKERS.
29929 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
29930 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
29931 to use inline PLT sequences.
29932 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
29933 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
29934 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
29935
29936 2019-02-04 Martin Liska <mliska@suse.cz>
29937
29938 PR ipa/88985
29939 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
29940 out when ipa_fn_summaries does not contain entry for callee.
29941
29942 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
29943
29944 * config/sparc/sparc.h: Remove superfluous blank lines.
29945 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
29946 (got_register_rtx): ...this.
29947 (sparc_got): Adjust to above renaming.
29948 (sparc_tls_got): Likewise.
29949 (sparc_delegitimize_address): Likewise.
29950 (sparc_output_mi_thunk): Likewise.
29951 (sparc_init_pic_reg): Likewise.
29952 (save_local_or_in_reg_p): Fix test on the GOT register.
29953 (USE_HIDDEN_LINKONCE): Move around.
29954 (get_pc_thunk_name): Likewise.
29955 (gen_load_pcrel_sym): Likewise.
29956 (load_got_register): Likewise.
29957
29958 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
29959
29960 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
29961 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
29962
29963 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29964
29965 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
29966 into consideration.
29967
29968 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
29969
29970 * config.gcc (with_nds32_lib, glibc):
29971 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
29972 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
29973 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
29974
29975 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
29976
29977 PR target/89071
29978 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
29979 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
29980 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
29981 (*rcpsf2_sse): Ditto.
29982 (*rsqrtsf2_sse): Ditto.
29983 (sse4_1_round<mode<2): Ditto.
29984
29985 2019-02-03 Richard Biener <rguenther@suse.de>
29986
29987 PR debug/87295
29988 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
29989 orig.
29990
29991 2019-02-02 Jakub Jelinek <jakub@redhat.com>
29992
29993 PR middle-end/87887
29994 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
29995 Punt with warning on aggregate return or argument types. Ignore
29996 type/mode checking for uniform arguments.
29997
29998 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
29999
30000 * combine.c (try_combine): Do not print "Can't combine" messages unless
30001 printing failed combination attempts.
30002
30003 2019-02-01 Martin Jambor <mjambor@suse.cz>
30004
30005 PR hsa/87863
30006 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30007 segment and global segment variables before making them static.
30008
30009 2019-02-01 Martin Jambor <mjambor@suse.cz>
30010
30011 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30012 missed optimization dump with dump_enabled_p.
30013
30014 2019-02-01 Richard Biener <rguenther@suse.de>
30015
30016 PR middle-end/88597
30017 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
30018 the instantiate cache.
30019 (instantiate_scev_binary): Elide second operand procesing
30020 if equal to the first.
30021 * tree-chrec.c (chrec_contains_symbols): Add visited set.
30022 (chrec_contains_undetermined): Likewise.
30023 (tree_contains_chrecs): Likewise.
30024
30025 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
30026
30027 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
30028
30029 2019-02-01 Jakub Jelinek <jakub@redhat.com>
30030
30031 PR tree-optimization/89143
30032 * wide-int-range.h (wide_int_range_absu): Declare.
30033 * wide-int-range.cc (wide_int_range_absu): New function.
30034 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
30035
30036 PR tree-optimization/88107
30037 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
30038 instead of assertion that eh_region_outermost is non-NULL, if it
30039 is NULL, set *ALL to true and return NULL.
30040 (move_sese_region_to_fn): Adjust caller, if all is set, call
30041 duplicate_eh_regions with NULL region.
30042
30043 2019-02-01 Richard Biener <rguenth@suse.de>
30044
30045 PR rtl-optimization/88593
30046 * mode-switching.c (optimize_mode_switching): Free dominators before
30047 calling cleanup_cfg.
30048
30049 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30050
30051 PR tree-optimization/88932
30052 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
30053
30054 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30055
30056 PR middle-end/89137
30057 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
30058 bogus clang warning.
30059
30060 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
30061
30062 PR target/89071
30063 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
30064 alternative to avoid partial SSE register stall for TARGET_AVX.
30065 (truncdfsf2): Ditto.
30066 (sse4_1_round<mode>2): Ditto.
30067
30068 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
30069
30070 PR tree-optimization/89008
30071 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
30072 process anything of the form X * 0.
30073
30074 2019-01-31 Richard Biener <rguenther@suse.de>
30075
30076 PR tree-optimization/89135
30077 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
30078 with abnormal preds.
30079
30080 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30081
30082 PR sanitizer/89124
30083 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
30084 always_inline callees into no_sanitize_address callers.
30085
30086 2019-01-31 Richard Biener <rguenther@suse.de>
30087
30088 PR rtl-optimization/89115
30089 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
30090
30091 2019-01-30 Martin Sebor <msebor@redhat.com>
30092
30093 PR other/89106
30094 * doc/extend.texi (cast to a union): Correct and expand.
30095
30096 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
30097
30098 PR rtl-optimization/87246
30099 * lra-constraints.c (simplify_operand_subreg): Reload memory
30100 in subreg if the address became invalid.
30101
30102 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
30103
30104 PR target/87064
30105 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
30106 Disable for little-endian.
30107
30108 2019-01-30 Richard Biener <rguenther@suse.de>
30109
30110 PR rtl-optimization/89115
30111 * opts.c (default_options_optimization): Reduce
30112 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
30113 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
30114 to the default.
30115
30116 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
30117
30118 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
30119 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
30120 type of vector element when vec_extract is implemented by direct
30121 move.
30122
30123 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
30124
30125 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
30126
30127 2019-01-30 Richard Biener <rguenther@suse.de>
30128
30129 PR tree-optimization/89111
30130 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
30131 canonicalization to appropriately sized access types.
30132
30133 2019-01-30 Jakub Jelinek <jakub@redhat.com>
30134
30135 PR c++/89105
30136 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
30137 for arguments to functions that are TU-local and shouldn't be
30138 referenced by assembly.
30139
30140 2019-01-30 Ulrich Drepper <drepper@redhat.com>
30141
30142 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
30143 after '='.
30144
30145 2019-01-29 Martin Sebor <msebor@redhat.com>
30146
30147 PR c/88956
30148 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
30149
30150 2019-01-29 Jakub Jelinek <jakub@redhat.com>
30151
30152 PR c++/66676
30153 PR ipa/89104
30154 * omp-simd-clone.c (simd_clone_clauses_extract)
30155 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
30156 OMP_CLAUSE_ALIGNED_ALIGNMENT.
30157
30158 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
30159
30160 * config.gcc: Force .init_array for ARC.
30161
30162 2019-01-29 Richard Biener <rguenther@suse.de>
30163
30164 PR debug/87295
30165 * dwarf2out.c (collect_skeleton_dies): New helper.
30166 (copy_decls_for_unworthy_types): Call it.
30167 (build_abbrev_table): Assert we do not try to replace
30168 DW_AT_signature refs with local refs.
30169
30170 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30171
30172 PR middle-end/89002
30173 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
30174 for lastprivate/linear IV, push gimplify context around gimplify_assign
30175 and, if it needed any temporaries, pop it into a gimple bind around the
30176 sequence.
30177
30178 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
30179
30180 * common.opt (-Wattribute-alias): Remove "no-" from name.
30181 Make -Wattribute-alias command line option and
30182 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30183
30184 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30185
30186 PR target/89073
30187 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30188 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30189 x86 ISA options.
30190 (bmi2): Add missing @opindex.
30191 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30192 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30193 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30194 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30195 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30196 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30197 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30198 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30199 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30200 xsavec, xsaveopt and xsaves options.
30201
30202 2019-01-28 Richard Biener <rguenther@suse.de>
30203
30204 PR debug/89076
30205 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30206 support removal.
30207
30208 2019-01-28 Richard Biener <rguenther@suse.de>
30209
30210 PR tree-optimization/88739
30211 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30212 BIT_FIELD_REFs only are applied to mode-precision operands
30213 when they are integral.
30214 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30215 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30216 BIT_FIELD_REFs of non-mode-precision integral operands.
30217
30218 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30219
30220 PR target/87214
30221 * config/i386/sse.md
30222 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30223 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30224 first constants in pairs are multiples of 2. Formatting fixes.
30225 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30226 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30227 first constants in each quadruple are multiples of 4. Formatting fixes.
30228
30229 2019-01-26 Martin Jambor <mjambor@suse.cz>
30230
30231 PR ipa/88933
30232 * tree-inline.c: Include tree-cfgcleanup.h.
30233 (delete_unreachable_blocks_update_callgraph): Move...
30234 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
30235 ...here, make externally visible, make second argument bool, adjust
30236 all callers.
30237 * tree-cfgcleanup.c: Include cgraph.h.
30238 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
30239 Declare.
30240 * ipa-prop.c: Include tree-cfgcleanup.h.
30241 (ipcp_transform_function): Call
30242 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
30243
30244 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
30245
30246 PR rtl-optimization/88846
30247 * ira.c (process_set_for_memref_referenced_p): New.
30248 (memref_referenced_p): Add new param. Use
30249 process_set_for_memref_referenced_p. Add new switch cases.
30250 (memref_used_between_p): Pass new arg to memref_referenced_p.
30251
30252 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
30253
30254 PR target/88469
30255 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
30256 argument ABI_BREAK. Set to true if the calculated alignment has
30257 changed in gcc-9. Check bit-fields for their base type alignment.
30258 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
30259 (aarch64_function_arg_boundary): Likewise.
30260 (aarch64_gimplify_va_arg_expr): Likewise.
30261
30262 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30263
30264 PR middle-end/89037
30265 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
30266 instead of accessing TREE_INT_CST_ELT directly.
30267
30268 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
30269
30270 * doc/sourcebuild.texi (Environment attributes): Add fenv and
30271 fenv_exceptions description.
30272
30273 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
30274
30275 PR rtl-optimization/87763
30276 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
30277 Allow SUBREG when matching CC_NZmode compare.
30278
30279 2019-01-25 Richard Biener <rguenther@suse.de>
30280
30281 PR tree-optimization/89049
30282 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
30283 Look at the pattern stmt to determine if the stmt is vectorized.
30284
30285 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
30286
30287 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
30288 (pred_mov<mode>): Handle all-register forms using both a new
30289 alternative and a split.
30290
30291 2019-01-25 Richard Biener <rguenther@suse.de>
30292
30293 PR tree-optimization/86865
30294 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30295 Reject non-do-while loops.
30296
30297 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
30298
30299 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
30300 * config/rs6000/constraints.md (Q constraint): Use REG_P.
30301 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
30302 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30303 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
30304 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30305 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
30306 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
30307 vlogical_operand, gpc_reg_operand, int_reg_operand,
30308 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
30309 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
30310 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
30311 (save_world_operation, restore_world_operation, lmw_operation,
30312 stmw_operation): Use MEM_P and REG_P.
30313 (tie_operand): Use MEM_P.
30314 (vrsave_operation, crsave_operation): Use REG_P.
30315 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
30316 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
30317 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
30318 (call_operand): Use HARD_REGISTER_P.
30319 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
30320 Use CONST_INT_P.
30321 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
30322 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
30323 quad_aligned_load_p, replace_swapped_aligned_store,
30324 recombine_lvx_pattern, replace_swapped_aligned_load,
30325 recombine_stvx_pattern): Use MEM_P.
30326 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
30327 Use MEM_P and SYMBOL_REF_P.
30328 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
30329 (insn_is_swappable_p): Use REG_P and MEM_P.
30330 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
30331 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
30332 Use CONST_INT_P.
30333 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
30334 Use CONST_DOUBLE_P.
30335 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
30336 CONST_WIDE_INT_P.
30337 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
30338 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
30339 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
30340 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
30341 reg_or_subregno:
30342 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30343 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
30344 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
30345 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
30346 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
30347 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
30348 rs6000_split_logical_di): Use CONST_INT_P.
30349 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
30350 REG_P and SYMBOL_REF_P.
30351 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
30352 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
30353 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
30354 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
30355 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
30356 (small_data_operand, print_operand_address): Use CONST_INT_P and
30357 SYMBOL_REF_P.
30358 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
30359 (rs6000_init_hard_regno_mode_ok, direct_move_p):
30360 Use HARD_REGISTER_NUM_P.
30361 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
30362 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
30363 SUBREG_P and SYMBOL_REF_P.
30364 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
30365 and HARD_REGISTER_NUM_P.
30366 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
30367 reg_or_subregno.
30368 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
30369 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
30370 MEM_P and REG_P.
30371 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
30372 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
30373 find_addr_reg): Use REG_P.
30374 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
30375 (rs6000_emit_le_vsx_move): Use SUBREG_P.
30376 (offsettable_ok_by_alignment, constant_pool_expr_p,
30377 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
30378 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
30379 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
30380 rs6000_assemble_integer, create_TOC_reference,
30381 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
30382 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
30383 (rs6000_split_vec_extract_var): Use reg_or_subregno.
30384 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
30385 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
30386 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30387 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
30388 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
30389 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
30390 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
30391 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
30392 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
30393 and cbranch<mode>4): Use CONST_INT_P.
30394 (multiple define_splits): Use REG_P and SUBREG_P.
30395 (define_expands call, call_value): Use MEM_P.
30396 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
30397 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
30398 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
30399 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
30400 and HARD_REGISTER_NUM_P.
30401 (multiple define_splits): Use HARD_REGISTER_NUM_P.
30402
30403 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
30404
30405 PR rtl-optimization/88948
30406 * rtl.h (prepare_copy_insn): New prototype.
30407 * gcse.c (prepare_copy_insn): New function, split out from
30408 process_insert_insn.
30409 (process_insert_insn): Use prepare_copy_insn.
30410 * store-motion.c (replace_store_insn): Use prepare_copy_insn
30411 instead of gen_move_insn.
30412
30413 2019-01-24 Jakub Jelinek <jakub@redhat.com>
30414
30415 PR debug/89006
30416 * config/i386/i386.c (ix86_pic_register_p): Return true for
30417 UNSPEC_SET_GOT too.
30418
30419 PR tree-optimization/88964
30420 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
30421 punt if HONOR_SNANS (chrec).
30422
30423 PR middle-end/89015
30424 * tree-nested.c (convert_nonlocal_reference_stmt,
30425 convert_local_reference_stmt, convert_tramp_reference_stmt,
30426 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
30427 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
30428 or GIMPLE_OMP_TASK.
30429
30430 PR tree-optimization/89027
30431 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
30432 for "omp simd array" variables.
30433
30434 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
30435
30436 PR target/88469
30437 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
30438 force the alignment of m_val.
30439
30440 2019-01-24 Richard Biener <rguenther@suse.de>
30441
30442 PR lto/87187
30443 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
30444 When in "legacy" debug mode make sure to reset self-origins.
30445
30446 2019-01-24 Martin Liska <mliska@suse.cz>
30447
30448 PR gcov-profile/88994
30449 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
30450 result will be always smaller or equal to the original.
30451 * gcov.c (mangle_name): Fix else branch where we should
30452 also copy to PTR and shift the pointer.
30453
30454 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30455
30456 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
30457 * vr-values.c (find_case_label_ranges): Fix a comment typo.
30458
30459 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
30460
30461 * common/config/i386/i386-common.c
30462 (OPTION_MASK_ISA_ENQCMD_SET,
30463 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
30464 (ix86_handle_option): Handle -menqcmd.
30465 * config.gcc (enqcmdintrin.h): New header file.
30466 * config/i386/cpuid.h (bit_ENQCMD): New bit.
30467 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
30468 -menqcmd.
30469 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
30470 function type.
30471 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
30472 __builtin_ia32_enqcmds): New builtins.
30473 * config/i386/i386-c.c (__ENQCMD__): New macro.
30474 * config/i386/i386-option.c (ix86_target_string): Add
30475 -menqcmd.
30476 (ix86_valid_target_attribute_inner_p): Likewise.
30477 * config/i386/i386-expand.c
30478 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
30479 IX86_BUILTIN_ENQCMDS.
30480 * config/i386/i386.h (TARGET_ENQCMD): New.
30481 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
30482 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
30483 (movdir64b_<mode>): Parameterize to enable share expansion code
30484 with ENQCMD in function ix86_expand_builtin.
30485 * config/i386/i386.opt: Add -menqcmd.
30486 * config/i386/immintrin.h: Include enqcmdintrin.h.
30487 * config/i386/enqcmdintrin.h: New intrinsic file.
30488 * doc/invoke.texi: Add -menqcmd.
30489
30490 2019-01-23 Bin Cheng <bin.cheng@arm.com>
30491 Steve Ellcey <sellcey@marvell.com>
30492
30493 PR target/85711
30494 * recog.c (address_operand): Return false on wrong mode for address.
30495 (constrain_operands): Check for mode with 'p' constraint.
30496
30497 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
30498
30499 PR target/88998
30500 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
30501 Disparage MMX alternative.
30502 (sse2_cvtpd2pi): Ditto.
30503 (sse2_cvttpd2pi): Ditto.
30504
30505 2019-01-23 David Malcolm <dmalcolm@redhat.com>
30506
30507 PR driver/89014
30508 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
30509 use-after-free of the result of
30510 aarch64_get_extension_string_for_isa_flags.
30511
30512 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30513
30514 PR c/44715
30515 * doc/extend.texi: Document break and continue behavior in
30516 statement expressions.
30517
30518 2019-01-23 Richard Biener <rguenther@suse.de>
30519
30520 PR tree-optimization/89008
30521 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
30522 not leave another stray operand.
30523
30524 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30525
30526 * BASE-VER: Bump to 9.0.1.
30527
30528 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
30529
30530 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
30531 thunk that returns by reference, use the type of the return object
30532 of the thunk instead of that of the alias to build the dereference.
30533
30534 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
30535
30536 * config/arc/atomic.md: Add operand to DMB instruction.
30537
30538 2019-01-23 Jakub Jelinek <jakub@redhat.com>
30539
30540 PR tree-optimization/88964
30541 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
30542 build_zero_cst instead of build_int_cst. Return false for loop
30543 invariants which honor signed zeros.
30544
30545 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
30546
30547 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
30548
30549 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30550
30551 PR target/88965
30552 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
30553 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
30554 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
30555
30556 PR middle-end/88968
30557 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
30558 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
30559
30560 PR target/87064
30561 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
30562 Disable for little endian.
30563
30564 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30565
30566 PR target/88469
30567 * config/arm/arm.c (arm_needs_double_word_align): Check
30568 DECL_BIT_FIELD_TYPE.
30569
30570 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
30571 H.J. Lu <hongjiu.lu@intel.com>
30572
30573 PR target/88909
30574 * config/i386/i386-builtin.def: Add mask2 to all builtin
30575 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
30576 SPECIAL_ARGS.
30577 * config/i386/i386.c (BDESC): Add mask2 to the definition.
30578 (BDESC_FIRST): Likewise.
30579 (define_builtin): Add an argument for mask2. Updated to handle
30580 both ix86_isa_flags and ix86_isa_flags2.
30581 (define_builtin_const): Likewise.
30582 (define_builtin_pure): Likewise.
30583 (define_builtin2): Deleted.
30584 (define_builtin_const2): Likewise.
30585 (builtin_description): Add a member, mask2.
30586 (bdesc_*): Add mask2 to builtin initializations.
30587 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
30588 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
30589 support.
30590 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
30591
30592 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
30593
30594 PR target/88954
30595 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
30596 noplt attribute.
30597
30598 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
30599
30600 PR target/88469
30601 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
30602 alignment is dominated by a bitfield with 64-bit aligned base type.
30603 (arm_function_arg): Emit a warning if the alignment has changed since
30604 earlier GCC releases.
30605 (arm_function_arg_boundary): Likewise.
30606 (arm_setup_incoming_varargs): Likewise.
30607
30608 2019-01-22 Richard Biener <rguenther@suse.de>
30609
30610 PR tree-optimization/88862
30611 * graphite-scop-detection.c
30612 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
30613
30614 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
30615
30616 * doc/extend.tex (AMD GCN Function Attributes): New section.
30617 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
30618 * doc/invoke.texi (AMD GCN Options): New section.
30619 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
30620
30621 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
30622
30623 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
30624 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
30625
30626 2019-01-22 Jakub Jelinek <jakub@redhat.com>
30627
30628 PR tree-optimization/88044
30629 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
30630 is false in the first iteration, but !every_iteration, return false
30631 instead of true with niter->niter zero.
30632
30633 PR rtl-optimization/88904
30634 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
30635 any nonequal registers before processing BB_END (b).
30636
30637 PR target/88905
30638 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
30639 GET_MODE (op0).
30640 (expand_binop_directly, expand_doubleword_clz,
30641 expand_doubleword_popcount, expand_ctz, expand_ffs,
30642 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
30643
30644 PR rtl-optimization/49429
30645 PR target/49454
30646 PR rtl-optimization/86334
30647 PR target/88906
30648 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
30649 addressable from here...
30650 (emit_block_op_via_libcall): ... to here.
30651
30652 2019-01-22 Richard Biener <rguenther@suse.de>
30653
30654 * tree-vect-loop.c (vect_analyze_loop_operations): Use
30655 auto_vec for cost vector to fix memleak.
30656 (vectorize_fold_left_reduction): Properly gather SLP defs.
30657 (vectorizable_comparison): Do not swap operands to properly
30658 gather SLP defs.
30659
30660 2019-01-22 Alan Modra <amodra@gmail.com>
30661
30662 PR target/88614
30663 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
30664 stays a reg. Allow a const_int.
30665 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
30666 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
30667 (IS_NOMARK_TLSGETADDR): Define.
30668 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
30669 (rs6000_output_tlsargs): New function.
30670 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
30671 __tls_get_addr call takes an arg.
30672 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
30673 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
30674 delete split..
30675 (call_value_nonlocal_sysv): ..or here, delete split.
30676 (tls_gdld_nomark): Delete.
30677 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
30678 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
30679 (call_value_nonlocal_sysv): Likewise.
30680 (call_value_nonlocal_sysv_secure): Likewise.
30681 (call_value_nonlocal_aix): Likewise.
30682 (call_value_indirect_aix): Likewise.
30683 (call_value_indirect_elfv2): Likewise.
30684 (call_value_local32, call_value_local64): Disable for no-mark tls.
30685 (call_value_local_aix): Likewise.
30686
30687 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
30688
30689 PR target/88938
30690 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
30691 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
30692
30693 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
30694
30695 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
30696 string contents as hash_map keys.
30697
30698 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
30699
30700 PR c/88928
30701 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
30702 for rvalue context. Handle rvalues correctly. Use min_align_of_type
30703 instead of TYPE_ALIGN.
30704 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
30705 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
30706 pointer from TYPE_STUB_DECL.
30707
30708 2019-01-21 Richard Biener <rguenther@suse.de>
30709
30710 PR tree-optimization/88934
30711 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
30712 at the possibly non-constant operand.
30713 (vect_get_constant_vectors): Adjust.
30714
30715 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
30716
30717 PR target/71659
30718 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
30719 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
30720 instead of _X86INTRIN_H_INCLUDED.
30721 * onfig/i386/clwbintrin.h: Likewise.
30722 * config/i386/pkuintrin.h: Likewise.
30723 * config/i386/prfchwintrin.h: Likewise.
30724 * config/i386/rdseedintrin.h: Likewise.
30725 * config/i386/wbnoinvdintrin.h: Likewise.
30726 * config/i386/xsavecintrin.h: Likewise.
30727 * config/i386/xsavesintrin.h: Likewise.
30728 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
30729 * config/i386/xsaveintrin.h: Likewise.
30730 * config/i386/xsaveoptintrin.h: Likewise.
30731 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
30732 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
30733 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
30734 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
30735 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
30736 * config/i386/immintrin.h: Here.
30737
30738 2019-01-20 Martin Jambor <mjambor@suse.cz>
30739
30740 PR ipa/87615
30741 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
30742 with aa_walk_budget.
30743 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
30744 aa_walk_budget_p parameter.
30745 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
30746 walk. Updated all callers.
30747 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
30748 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
30749 unmodified_parm.
30750 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
30751 parameter info. Extract info from fbi. Pass fbi to recursive calls
30752 and to unmodified_parm.
30753 (phi_result_unknown_predicate): New parameter fbi, removed parameter
30754 info, updated call to will_be_nonconstant_expr_predicate.
30755 (param_change_prob): New parameter fbi, limit AA walking.
30756 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
30757 calls to various above functions.
30758 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
30759 parameter. Use it to limit AA walking.
30760 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
30761 fbi, limit AA walk.
30762 (detect_type_change): New parameter fbi, pass it on to
30763 detect_type_change_from_memory_writes.
30764 (detect_type_change_ssa): Likewise.
30765 (aa_overwalked): Removed.
30766 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
30767 accordingly, adjust to the neew AA limiting scheme.
30768 (parm_ref_data_preserved_p): Likewise.
30769 (ipa_compute_jump_functions_for_edge): Adjust call to
30770 get_dynamic_type.
30771 (ipa_analyze_call_uses): Likewise.
30772 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
30773 (ipa_analyze_node): Initialize aa_walk_budget.
30774 (ipcp_transform_function): Likewise.
30775 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
30776 to get_dynamic_type.
30777
30778 2019-01-19 Jakub Jelinek <jakub@redhat.com>
30779
30780 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
30781 outside of #if CHECKING_P code.
30782
30783 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
30784
30785 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
30786 New function, split out from...
30787 (loop_versioning::analyze_stride): ...here.
30788 (loop_versioning::find_per_loop_multiplication): Use gassign.
30789 (loop_versioning::analyze_term_using_scevs): Return a success code.
30790 (loop_versioning::analyze_arbitrary_term): New function.
30791 (loop_versioning::analyze_address_fragment): Use
30792 analyze_arbitrary_term if all else fails.
30793
30794 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
30795
30796 PR target/88892
30797 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
30798 operands.
30799
30800 2019-01-18 Richard Biener <rguenther@suse.de>
30801
30802 PR tree-optimization/88903
30803 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
30804 scalar stmts a SLP shift amount is composed of when detecting
30805 shifts by scalars.
30806
30807 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
30808
30809 PR target/88799
30810 * config/arm/arm-cpus.in (mp): New feature.
30811 (sec): New feature.
30812 (fgroup ARMv7ve): Add mp and sec features.
30813 (arch armv7-a): Add options to allow mp and sec extensions.
30814 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
30815 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
30816 extenstions to the base architecture.
30817 (cpu cortex-a8): Add sec extension to the base architecture.
30818 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
30819 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
30820 variants down to the base v7-a varaint.
30821 * config/arm/t-multilib (v7_a_arch_variants): New variable.
30822 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
30823 of permitted extensions for -march=armv7-a and for
30824 -mcpu=generic-armv7-a.
30825
30826 2019-01-18 Martin Liska <mliska@suse.cz>
30827
30828 * params.def: Fix comment.
30829 * tree-profile.c (gimple_init_gcov_profiler): Bump function
30830 name.
30831 (gimple_gen_ic_func_profiler): Likewise.
30832
30833 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30834
30835 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
30836 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
30837 and put in error checks for stack protector guard options.
30838 (aarch64_stack_protect_guard): New.
30839 (TARGET_STACK_PROTECT_GUARD): Define.
30840 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
30841 (reg_stack_protect_address<mode>): New.
30842 (stack_protect_set): Adjust for SSP_GLOBAL.
30843 (stack_protect_test): Likewise.
30844 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
30845 (-mstack-protector-guard): Likewise.
30846 (-mstack-protector-guard-offset): Likewise.
30847
30848 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30849
30850 PR tree-optimization/86214
30851 * tree-inline.h (struct copy_body_data): Add
30852 add_clobbers_to_eh_landing_pads member.
30853 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
30854 (copy_edges_for_bb): Call it if EH edge destination is <
30855 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
30856 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
30857 if flag_stack_reuse != SR_NONE and clear it afterwards.
30858
30859 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
30860
30861 PR target/85596
30862 * doc/install.texi (with-multilib-list): Document for aarch64.
30863
30864 2019-01-18 Jakub Jelinek <jakub@redhat.com>
30865
30866 PR target/88734
30867 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
30868 (("..."))) with ("...").
30869
30870 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
30871
30872 * doc/extend.texi (Built-in Functions for Memory Model Aware
30873 Atomic Operations): Document atomic fetch and nand.
30874
30875 2019-01-18 Martin Liska <mliska@suse.cz>
30876 Richard Biener <rguenther@suse.de>
30877
30878 PR middle-end/88587
30879 * cgraph.h (create_version_clone_with_body): Add new argument
30880 with attributes.
30881 * cgraphclones.c (cgraph_node::create_version_clone): Add
30882 DECL_ATTRIBUTES to a newly created decl. And call
30883 valid_attribute_p so that proper cl_target_optimization_node
30884 is set for the newly created declaration.
30885 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
30886 for declaration.
30887 (expand_target_clones): Do not call valid_attribute_p, it must
30888 be already done.
30889 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
30890 vector types.
30891
30892 2019-01-17 Jakub Jelinek <jakub@redhat.com>
30893
30894 PR target/88734
30895 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
30896 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
30897 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
30898
30899 2019-01-17 Martin Sebor <msebor@redhat.com>
30900
30901 PR middle-end/88273
30902 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
30903 Handle anti-ranges the same as no range at all.
30904
30905 2018-01-17 Steve Ellcey <sellcey@cavium.com>
30906
30907 * config/aarch64/aarch64.c (cgraph.h): New include.
30908 (intl.h): New include.
30909 (supported_simd_type): New function.
30910 (currently_supported_simd_type): Ditto.
30911 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
30912 (aarch64_simd_clone_adjust): Ditto.
30913 (aarch64_simd_clone_usable): Ditto.
30914 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
30915 (TARGET_SIMD_CLONE_ADJUST): Ditto.
30916 (TARGET_SIMD_CLONE_USABLE): Ditto.
30917 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
30918 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
30919 call.
30920
30921 2019-01-17 Martin Sebor <msebor@redhat.com>
30922
30923 PR tree-optimization/88800
30924 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
30925 NO_WARNING bit here. Avoid folding out-of-bounds calls.
30926 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
30927 redundant argument. Add new argument and issue diagnostics under
30928 its control. Detect out-of-bounds access even with warnings
30929 disabled.
30930 (check_bounds_or_overlap): Change return type. Add argument.
30931 (wrestrict_dom_walker::check_call): Adjust.
30932 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
30933 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
30934 check_bounds_or_overlap's return value.
30935 (handle_builtin_stxncpy): Same.
30936 (handle_builtin_strcat): Same.
30937
30938 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30939 Kwok Cheung Yeung <kcy@codesourcery.com>
30940 Julian Brown <julian@codesourcery.com>
30941 Tom de Vries <tom@codesourcery.com>
30942
30943 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
30944
30945 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30946
30947 * doc/sourcebuild.texi: Document dg-require-effective-target
30948 llvm_binutils and offload_gcn.
30949
30950 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30951 Kwok Cheung Yeung <kcy@codesourcery.com>
30952 Julian Brown <julian@codesourcery.com>
30953 Tom de Vries <tom@codesourcery.com>
30954
30955 * doc/sourcebuild.texi: Document dg-required-effective-target
30956 exceptions.
30957
30958 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30959 Kwok Cheung Yeung <kcy@codesourcery.com>
30960 Julian Brown <julian@codesourcery.com>
30961 Tom de Vries <tom@codesourcery.com>
30962 Jan Hubicka <hubicka@ucw.cz>
30963 Martin Jambor <mjambor@suse.cz>
30964
30965 * config.gcc: Add amdgcn*-*-amdhsa configuration.
30966 * configure.ac: Check for dlopen.
30967 * configure: Regenerate.
30968
30969 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30970 Kwok Cheung Yeung <kcy@codesourcery.com>
30971 Julian Brown <julian@codesourcery.com>
30972 Tom de Vries <tom@codesourcery.com>
30973 Jan Hubicka <hubicka@ucw.cz>
30974 Martin Jambor <mjambor@suse.cz>
30975
30976 * common/config/gcn/gcn-common.c: New file.
30977 * config/gcn/driver-gcn.c: New file.
30978 * config/gcn/gcn-builtins.def: New file.
30979 * config/gcn/gcn-hsa.h: New file.
30980 * config/gcn/gcn-modes.def: New file.
30981 * config/gcn/gcn-opts.h: New file.
30982 * config/gcn/gcn-passes.def: New file.
30983 * config/gcn/gcn-protos.h: New file.
30984 * config/gcn/gcn-run.c: New file.
30985 * config/gcn/gcn-tree.c: New file.
30986 * config/gcn/gcn.c: New file.
30987 * config/gcn/gcn.h: New file.
30988 * config/gcn/gcn.opt: New file.
30989 * config/gcn/t-gcn-hsa: New file.
30990
30991 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
30992 Kwok Cheung Yeung <kcy@codesourcery.com>
30993 Julian Brown <julian@codesourcery.com>
30994 Tom de Vries <tom@codesourcery.com>
30995 Jan Hubicka <hubicka@ucw.cz>
30996 Martin Jambor <mjambor@suse.cz>
30997
30998 * config/gcn/constraints.md: New file.
30999 * config/gcn/gcn-valu.md: New file.
31000 * config/gcn/gcn.md: New file.
31001 * config/gcn/predicates.md: New file.
31002
31003 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31004
31005 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31006 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31007 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31008 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31009
31010 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31011
31012 PR target/88851
31013 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
31014 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
31015 it and document registers.
31016
31017 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31018
31019 * config/aarch64/aarch64.c (ares_tunings): Define.
31020 * config/aarch64/aarch64-cores.def (ares): Use the above.
31021
31022 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31023
31024 PR target/88794
31025 Revert:
31026 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
31027
31028 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
31029 (_mm512_fixupimm_round_pd): Update parameters and builtin.
31030 (_mm512_maskz_fixupimm_round_pd): Ditto.
31031 (_mm512_fixupimm_round_ps): Ditto.
31032 (_mm512_maskz_fixupimm_round_ps): Ditto.
31033 (_mm_fixupimm_round_sd): Ditto.
31034 (_mm_maskz_fixupimm_round_sd): Ditto.
31035 (_mm_fixupimm_round_ss): Ditto.
31036 (_mm_maskz_fixupimm_round_ss): Ditto.
31037 (_mm512_fixupimm_pd): Ditto.
31038 (_mm512_maskz_fixupimm_pd): Ditto.
31039 (_mm512_fixupimm_ps): Ditto.
31040 (_mm512_maskz_fixupimm_ps): Ditto.
31041 (_mm_fixupimm_sd): Ditto.
31042 (_mm_maskz_fixupimm_sd): Ditto.
31043 (_mm_fixupimm_ss): Ditto.
31044 (_mm_maskz_fixupimm_ss): Ditto.
31045 (_mm512_mask_fixupimm_round_pd): Update builtin.
31046 (_mm512_mask_fixupimm_round_ps): Ditto.
31047 (_mm_mask_fixupimm_round_sd): Ditto.
31048 (_mm_mask_fixupimm_round_ss): Ditto.
31049 (_mm512_mask_fixupimm_pd): Ditto.
31050 (_mm512_mask_fixupimm_ps): Ditto.
31051 (_mm_mask_fixupimm_sd): Ditto.
31052 (_mm_mask_fixupimm_ss): Ditto.
31053 * config/i386/avx512vlintrin.h:
31054 (_mm256_fixupimm_pd): Update parameters and builtin.
31055 (_mm256_maskz_fixupimm_pd): Ditto.
31056 (_mm256_fixupimm_ps): Ditto.
31057 (_mm256_maskz_fixupimm_ps): Ditto.
31058 (_mm_fixupimm_pd): Ditto.
31059 (_mm_maskz_fixupimm_pd): Ditto.
31060 (_mm_fixupimm_ps): Ditto.
31061 (_mm_maskz_fixupimm_ps): Ditto.
31062 (_mm256_mask_fixupimm_pd): Update builtin.
31063 (_mm256_mask_fixupimm_ps): Ditto.
31064 (_mm_mask_fixupimm_pd): Ditto.
31065 (_mm_mask_fixupimm_ps): Ditto.
31066 * config/i386/i386-builtin-types.def: Add new types and remove
31067 useless ones.
31068 * config/i386/i386-builtin.def: Update builtin definitions.
31069 * config/i386/i386.c: Handle new builtin types and remove useless ones.
31070 * config/i386/sse.md: Update VFIXUPIMM* patterns.
31071 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31072 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31073 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
31074 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31075 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31076 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
31077 * config/i386/subst.md:
31078 (round_saeonly_sd_mask_operand4): Add new subst_attr.
31079 (round_saeonly_sd_mask_op4): Ditto.
31080 (round_saeonly_expand_operand5): Ditto.
31081 (round_saeonly_expand): Update.
31082
31083 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31084
31085 PR target/88794
31086 Revert:
31087 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
31088
31089 * config/i386/sse.md: Combine VFIXUPIMM* patterns
31090 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31091 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31092 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
31093 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31094 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31095 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
31096
31097 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31098
31099 PR target/88794
31100 Revert:
31101 2018-12-15 Jakub Jelinek <jakub@redhat.com>
31102
31103 PR target/88489
31104 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
31105 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
31106 instead of UNSPEC_FIXUPIMM.
31107
31108 2019-01-17 Richard Biener <rguenther@suse.de>
31109
31110 PR lto/86736
31111 * dwarf2out.c (want_pubnames): Never generate pubnames sections
31112 and friends for the LTO part of debug info.
31113
31114 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31115
31116 PR tree-optimization/86214
31117 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
31118 if x == y.
31119
31120 PR rtl-optimization/88870
31121 * dce.c (deletable_insn_p): Never delete const/pure calls that can
31122 throw if we can't alter the cfg or delete dead exceptions.
31123 (mark_insn): Don't call find_call_stack_args for such calls.
31124
31125 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
31126
31127 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
31128 prototypes for vec_st.
31129 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
31130 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
31131 mainly on signed/unsigned long long and double.
31132
31133 2019-01-16 David Malcolm <dmalcolm@redhat.com>
31134
31135 PR target/88861
31136 * combine.c (delete_noop_moves): Convert to "bool" return,
31137 returning true if any edges are eliminated.
31138 (combine_instructions): Also return true if delete_noop_moves
31139 returns true.
31140
31141 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31142
31143 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
31144 correct max nunits for endian swap.
31145 (aarch64_expand_fcmla_builtin): Correct subreg code.
31146 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31147 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
31148 lane endianness.
31149
31150 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
31151
31152 * config/alpha/alpha.c (alpha_gimplify_va_arg):
31153 Handle split indirect COMPLEX_TYPE arguments.
31154
31155 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
31156
31157 PR target/86891
31158 * config/aarch64/aarch64-modes.def: Add comment about how the carry
31159 bit is set by add and compare.
31160 (CC_ADC): New CC_MODE.
31161 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
31162 to cache the code and mode of X. Adjust the shape of a CC_Cmode
31163 comparison. Add detection for CC_ADCmode.
31164 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
31165 CC_ADCmode.
31166 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
31167 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
31168 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
31169 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
31170 to eliminate the need for zero-extending the operands.
31171 (add<mode>3_compareC_imm): Delete. Merge into ...
31172 (add<mode>3_compareC): ... this. Restructure the comparison to
31173 eliminate the need for zero-extending the operands.
31174 (add<mode>3_carryin): Use LTU for the overflow detection.
31175 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
31176 Reexpress comparison for overflow.
31177 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
31178 (add<mode>3_carryinC): Likewise.
31179 (add<mode>3_carryinV): Use LTU for carry between partials.
31180 * config/aarch64/predicates.md (aarch64_carry_operation): Update
31181 handling of CC_Cmode and add CC_ADCmode.
31182 (aarch64_borrow_operation): Likewise.
31183
31184 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31185
31186 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31187 Remove patternmode.
31188 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31189 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31190 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31191 Remove endianness conversion.
31192
31193 2019-01-16 Martin Liska <mliska@suse.cz>
31194
31195 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31196 for GCC driver.
31197 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31198 a new argument.
31199 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31200 (path_prefix_reset): Move up in the source file.
31201 (find_fortran_preinclude_file): Make complex search for the
31202 fortran header files.
31203
31204 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31205
31206 * godump.c (go_output_typedef): When outputting a typedef, refer
31207 to the underlying type by its name and not its structure.
31208
31209 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31210
31211 PR c++/88795
31212 * tree.c (build_function_type): Assert that arg_types is not
31213 error_mark_node.
31214
31215 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31216
31217 PR inline-asm/52813
31218 * doc/extend.texi: Document that listing the stack pointer in the
31219 clobber list of an asm is a deprecated feature.
31220 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31221 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31222 warning instead of an error for clobbers of the stack pointer.
31223 Add a note explaining why.
31224
31225 2019-01-15 Richard Biener <rguenther@suse.de>
31226
31227 PR debug/88046
31228 * dwarf2out.c (gen_member_die): Do not generate inheritance
31229 DIEs late.
31230
31231 2019-01-15 Richard Biener <rguenther@suse.de>
31232
31233 PR tree-optimization/88855
31234 * tree-if-conv.c (combine_blocks): Collect
31235 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
31236
31237 2019-01-15 Tom de Vries <tdevries@suse.de>
31238
31239 PR target/80547
31240 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
31241 lhs == NULL_TREE for gang-level reduction.
31242
31243 2019-01-15 Richard Biener <rguenther@suse.de>
31244 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31245
31246 PR ipa/88788
31247 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
31248 return true if SSA_NAME is already marked in visited bitmap.
31249 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
31250
31251 2019-01-15 Jakub Jelinek <jakub@redhat.com>
31252
31253 PR tree-optimization/88775
31254 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
31255 equal == 0 equality pointer comparisons some more if compared in
31256 integral types and either one points to an automatic var and the
31257 other to a global, or we can prove at least one points to the middle
31258 or both point to start or both point to end.
31259
31260 2019-01-14 Andi Kleen <ak@linux.intel.com>
31261
31262 * Makefile.in: Lower autofdo sampling rate by 10x.
31263 * Makefile.tpl: Dito.
31264
31265 2019-01-14 Tom Honermann <tom@honermann.net>
31266
31267 * defaults.h: Define CHAR8_TYPE.
31268
31269 2019-01-14 Martin Sebor <msebor@redhat.com>
31270
31271 PR target/88638
31272 * doc/extend.texi (Darwin Format Checks): Clarify.
31273
31274 2019-01-14 Richard Biener <rguenther@suse.de>
31275
31276 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
31277 whether we are in (simplify ...) or (match ...) context.
31278
31279 2019-01-14 Jakub Jelinek <jakub@redhat.com>
31280
31281 PR rtl-optimization/88796
31282 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
31283 * cfgexpand.c (stack_protect_prologue): Initialize
31284 crtl->stack_protect_guard_decl.
31285 * function.c (stack_protect_epilogue): Use it instead of calling
31286 targetm.stack_protect_guard again.
31287 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
31288 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
31289 crtl->stack_protect_guard_decl.
31290 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
31291 on the returned MEM_EXPR.
31292
31293 2019-01-12 Tom de Vries <tdevries@suse.de>
31294
31295 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
31296 vector length using -fopenacc-dim.
31297
31298 2019-01-12 Tom de Vries <tdevries@suse.de>
31299
31300 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
31301 lengths into account.
31302
31303 2019-01-12 Svante Signell <svante.signell@gmail.com>
31304
31305 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
31306 (TARGET_CAN_SPLIT_STACK): Define.
31307 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
31308
31309 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
31310
31311 * params.def (inline-unit-growth): Set to 40.
31312
31313 2019-01-12 Jakub Jelinek <jakub@redhat.com>
31314
31315 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
31316
31317 2019-01-12 Tom de Vries <tdevries@suse.de>
31318
31319 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
31320 region calling vector-partitionable routine, set default_vector_length
31321 to WARP_SIZE.
31322
31323 2019-01-12 Tom de Vries <tdevries@suse.de>
31324
31325 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
31326 variable default_vector_length.
31327
31328 2019-01-12 Tom de Vries <tdevries@suse.de>
31329
31330 PR middle-end/88703
31331 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
31332 from oacc_default_dims, as oacc_validate_dims would do it, and apply
31333 dimensions limits.
31334
31335 2019-01-12 Tom de Vries <tdevries@suse.de>
31336
31337 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
31338 (nvptx_goacc_validate_dims): Add used parameter.
31339 * doc/tm.texi: Regenerate.
31340 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
31341 argument to call to targetm.goacc.validate_dims.
31342 (default_goacc_validate_dims): Add used
31343 parameter.
31344 * target.def (validate_dims): Add used parameter in DEFHOOK.
31345 * targhooks.h (default_goacc_validate_dims): Add used parameter.
31346
31347 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31348
31349 PR middle-end/85956
31350 PR lto/88733
31351 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
31352 field.
31353 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
31354 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
31355 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
31356 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
31357
31358 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
31359
31360 PR rtl-optimization/87305
31361 * lra-assigns.c
31362 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
31363 for little endian pseudos used as paradoxical subreg.
31364
31365 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31366
31367 PR tree-optimization/88693
31368 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
31369 for STRING_CSTs that don't contain any NUL characters in the first
31370 TREE_STRING_LENGTH bytes.
31371
31372 2019-01-11 Alan Modra <amodra@gmail.com>
31373
31374 PR 88777
31375 PR 88614
31376 * genattrtab.c (min_fn): Don't translate values.
31377 (min_attr_value): Return INT_MAX when the value can't be calculated.
31378 Return minimum among any values that can be calculated.
31379 (max_attr_value): Adjust.
31380
31381 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31382
31383 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
31384
31385 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31386
31387 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31388 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
31389 (aarch64_return_call_with_max_clobbers): New function.
31390 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
31391 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
31392 argument.
31393 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
31394 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
31395 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
31396 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
31397 * cselib.c (cselib_process_insn): Add argument to
31398 targetm.hard_regno_call_part_clobbered call.
31399 * ira-conflicts.c (ira_build_conflicts): Ditto.
31400 * ira-costs.c (ira_tune_allocno_costs): Ditto.
31401 * lra-constraints.c (inherit_reload_reg): Ditto.
31402 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
31403 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
31404 argument. Call targetm.return_call_with_max_clobbers.
31405 Add argument to targetm.hard_regno_call_part_clobbered call.
31406 (calls_have_same_clobbers_p): New function.
31407 (process_bb_lives): Add call_insn and last_call_insn variables.
31408 Pass call_insn to check_pseudos_live_through_calls.
31409 Modify if stmt to check targetm.return_call_with_max_clobbers.
31410 Update setting of flush variable.
31411 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
31412 to false.
31413 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
31414 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
31415 targetm.hard_regno_call_part_clobbered call.
31416 * reginfo.c (choose_hard_reg_mode): Ditto.
31417 * regrename.c (check_new_reg_p): Ditto.
31418 * reload.c (find_equiv_reg): Ditto.
31419 * reload1.c (emit_reload_insns): Ditto.
31420 * sched-deps.c (deps_analyze_insn): Ditto.
31421 * sel-sched.c (init_regs_for_mode): Ditto.
31422 (mark_unavailable_hard_regs): Ditto.
31423 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
31424 * target.def (hard_regno_call_part_clobbered): Add insn argument.
31425 (return_call_with_max_clobbers): New target function.
31426 * doc/tm.texi: Regenerate.
31427 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
31428 * hooks.c (hook_bool_uint_mode_false): Change to
31429 hook_bool_insn_uint_mode_false.
31430 * hooks.h (hook_bool_uint_mode_false): Ditto.
31431
31432 2019-01-11 Steve Ellcey <sellcey@marvell.com>
31433
31434 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
31435 (aarch64_remove_extra_call_preserved_regs): New function.
31436 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
31437 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
31438 * doc/tm.texi: Regenerate.
31439 * final.c (get_call_reg_set_usage): Call new hook.
31440 * target.def (remove_extra_call_preserved_regs): New hook.
31441 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
31442 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
31443
31444 2019-01-11 Jakub Jelinek <jakub@redhat.com>
31445
31446 PR bootstrap/88714
31447 * passes.c (finish_optimization_passes): Call print_combine_total_stats
31448 inside of pass_combine_1 dump rather than pass_profile_1.
31449
31450 2019-01-11 Tom de Vries <tdevries@suse.de>
31451
31452 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
31453 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
31454 (PTX_NUM_PER_WORKER_BARRIERS): Define.
31455 (nvptx_apply_dim_limits): Prevent vector_length 64 and
31456 num_workers 16.
31457
31458 2019-01-11 Tom de Vries <tdevries@suse.de>
31459
31460 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
31461
31462 2019-01-11 Jan Beulich <jbeulich@suse.com>
31463
31464 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
31465 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
31466 sse2_cvtsi2sd): Add {l}.
31467 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
31468 syntax.
31469
31470 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31471
31472 PR target/88785
31473 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
31474 define_expand.
31475 (*float<floatunssuffix>v2div2sf2): New define_insn.
31476 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
31477 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
31478 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
31479 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
31480 match_operands with "const0_operand" "C".
31481
31482 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31483
31484 * config/aarch64/aarch64-builtins.c
31485 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
31486 (aarch64_init_simd_builtins): ...Here
31487
31488 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
31489
31490 PR rtl-optimization/87305
31491 * lra-assigns.c
31492 (setup_live_pseudos_and_spill_after_risky_transforms): Check
31493 allocation for big endian pseudos used as paradoxical subregs and
31494 spill them if it is wrong.
31495 * lra-constraints.c (lra_constraints): Add a comment.
31496
31497 2019-01-10 Richard Biener <rguenther@suse.de>
31498
31499 PR tree-optimization/88792
31500 * tree-ssa-pre.c (get_representative_for): Do not return a
31501 value-number here.
31502
31503 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31504
31505 PR middle-end/84877
31506 PR bootstrap/88450
31507 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
31508 (assign_parm_setup_block): Do the argument slot realignment here
31509 instead.
31510
31511 2019-01-10 Stefan Agner <stefan@agner.ch>
31512
31513 PR target/88648
31514 * config/arm/arm.c (arm_option_override_internal): Force
31515 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
31516
31517 2019-01-10 Jakub Jelinek <jakub@redhat.com>
31518
31519 PR c/88568
31520 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
31521 DECL_EXTERNAL.
31522
31523 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31524
31525 * config/arm/arm-builtins.c
31526 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
31527 (MAC_LANE_PAIR_QUALIFIERS): New.
31528 (arm_expand_builtin_args): Use it.
31529 (arm_expand_builtin_1): Likewise.
31530 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
31531 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
31532 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
31533 * config/arm/arm_neon.h:
31534 (vcadd_rot90_f16): New.
31535 (vcaddq_rot90_f16): New.
31536 (vcadd_rot270_f16): New.
31537 (vcaddq_rot270_f16): New.
31538 (vcmla_f16): New.
31539 (vcmlaq_f16): New.
31540 (vcmla_lane_f16): New.
31541 (vcmla_laneq_f16): New.
31542 (vcmlaq_lane_f16): New.
31543 (vcmlaq_laneq_f16): New.
31544 (vcmla_rot90_f16): New.
31545 (vcmlaq_rot90_f16): New.
31546 (vcmla_rot90_lane_f16): New.
31547 (vcmla_rot90_laneq_f16): New.
31548 (vcmlaq_rot90_lane_f16): New.
31549 (vcmlaq_rot90_laneq_f16): New.
31550 (vcmla_rot180_f16): New.
31551 (vcmlaq_rot180_f16): New.
31552 (vcmla_rot180_lane_f16): New.
31553 (vcmla_rot180_laneq_f16): New.
31554 (vcmlaq_rot180_lane_f16): New.
31555 (vcmlaq_rot180_laneq_f16): New.
31556 (vcmla_rot270_f16): New.
31557 (vcmlaq_rot270_f16): New.
31558 (vcmla_rot270_lane_f16): New.
31559 (vcmla_rot270_laneq_f16): New.
31560 (vcmlaq_rot270_lane_f16): New.
31561 (vcmlaq_rot270_laneq_f16): New.
31562 (vcadd_rot90_f32): New.
31563 (vcaddq_rot90_f32): New.
31564 (vcadd_rot270_f32): New.
31565 (vcaddq_rot270_f32): New.
31566 (vcmla_f32): New.
31567 (vcmlaq_f32): New.
31568 (vcmla_lane_f32): New.
31569 (vcmla_laneq_f32): New.
31570 (vcmlaq_lane_f32): New.
31571 (vcmlaq_laneq_f32): New.
31572 (vcmla_rot90_f32): New.
31573 (vcmlaq_rot90_f32): New.
31574 (vcmla_rot90_lane_f32): New.
31575 (vcmla_rot90_laneq_f32): New.
31576 (vcmlaq_rot90_lane_f32): New.
31577 (vcmlaq_rot90_laneq_f32): New.
31578 (vcmla_rot180_f32): New.
31579 (vcmlaq_rot180_f32): New.
31580 (vcmla_rot180_lane_f32): New.
31581 (vcmla_rot180_laneq_f32): New.
31582 (vcmlaq_rot180_lane_f32): New.
31583 (vcmlaq_rot180_laneq_f32): New.
31584 (vcmla_rot270_f32): New.
31585 (vcmlaq_rot270_f32): New.
31586 (vcmla_rot270_lane_f32): New.
31587 (vcmla_rot270_laneq_f32): New.
31588 (vcmlaq_rot270_lane_f32): New.
31589 (vcmlaq_rot270_laneq_f32): New.
31590 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
31591 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
31592 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
31593 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
31594 vcmlaq_lane270): New.
31595 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31596 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
31597 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
31598 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
31599 (arm_option_reconfigure_globals): Use them.
31600 * config/arm/iterators.md (VDF, VQ_HSF): New.
31601 (VCADD, VCMLA): New.
31602 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
31603 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
31604 New.
31605 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
31606 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
31607
31608 2019-01-10 Tamar Christina <tamar.christina@arm.com>
31609
31610 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
31611 Add qualifier_lane_pair_index.
31612 (emit-rtl.h): Include.
31613 (TYPES_QUADOP_LANE_PAIR): New.
31614 (aarch64_simd_expand_args): Use it.
31615 (aarch64_simd_expand_builtin): Likewise.
31616 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
31617 New.
31618 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
31619 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
31620 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
31621 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
31622 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
31623 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
31624 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
31625 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
31626 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
31627 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
31628 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
31629 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
31630 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
31631 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
31632 Add __ARM_FEATURE_COMPLEX.
31633 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
31634 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
31635 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
31636 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
31637 fcmlaq_lane270): New.
31638 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31639 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
31640 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
31641 * config/aarch64/arm_neon.h:
31642 (vcadd_rot90_f16): New.
31643 (vcaddq_rot90_f16): New.
31644 (vcadd_rot270_f16): New.
31645 (vcaddq_rot270_f16): New.
31646 (vcmla_f16): New.
31647 (vcmlaq_f16): New.
31648 (vcmla_lane_f16): New.
31649 (vcmla_laneq_f16): New.
31650 (vcmlaq_lane_f16): New.
31651 (vcmlaq_rot90_lane_f16): New.
31652 (vcmla_rot90_laneq_f16): New.
31653 (vcmla_rot90_lane_f16): New.
31654 (vcmlaq_rot90_f16): New.
31655 (vcmla_rot90_f16): New.
31656 (vcmlaq_laneq_f16): New.
31657 (vcmla_rot180_laneq_f16): New.
31658 (vcmla_rot180_lane_f16): New.
31659 (vcmlaq_rot180_f16): New.
31660 (vcmla_rot180_f16): New.
31661 (vcmlaq_rot90_laneq_f16): New.
31662 (vcmlaq_rot270_laneq_f16): New.
31663 (vcmlaq_rot270_lane_f16): New.
31664 (vcmla_rot270_laneq_f16): New.
31665 (vcmlaq_rot270_f16): New.
31666 (vcmla_rot270_f16): New.
31667 (vcmlaq_rot180_laneq_f16): New.
31668 (vcmlaq_rot180_lane_f16): New.
31669 (vcmla_rot270_lane_f16): New.
31670 (vcadd_rot90_f32): New.
31671 (vcaddq_rot90_f32): New.
31672 (vcaddq_rot90_f64): New.
31673 (vcadd_rot270_f32): New.
31674 (vcaddq_rot270_f32): New.
31675 (vcaddq_rot270_f64): New.
31676 (vcmla_f32): New.
31677 (vcmlaq_f32): New.
31678 (vcmlaq_f64): New.
31679 (vcmla_lane_f32): New.
31680 (vcmla_laneq_f32): New.
31681 (vcmlaq_lane_f32): New.
31682 (vcmlaq_laneq_f32): New.
31683 (vcmla_rot90_f32): New.
31684 (vcmlaq_rot90_f32): New.
31685 (vcmlaq_rot90_f64): New.
31686 (vcmla_rot90_lane_f32): New.
31687 (vcmla_rot90_laneq_f32): New.
31688 (vcmlaq_rot90_lane_f32): New.
31689 (vcmlaq_rot90_laneq_f32): New.
31690 (vcmla_rot180_f32): New.
31691 (vcmlaq_rot180_f32): New.
31692 (vcmlaq_rot180_f64): New.
31693 (vcmla_rot180_lane_f32): New.
31694 (vcmla_rot180_laneq_f32): New.
31695 (vcmlaq_rot180_lane_f32): New.
31696 (vcmlaq_rot180_laneq_f32): New.
31697 (vcmla_rot270_f32): New.
31698 (vcmlaq_rot270_f32): New.
31699 (vcmlaq_rot270_f64): New.
31700 (vcmla_rot270_lane_f32): New.
31701 (vcmla_rot270_laneq_f32): New.
31702 (vcmlaq_rot270_lane_f32): New.
31703 (vcmlaq_rot270_laneq_f32): New.
31704 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
31705 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
31706 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
31707 (FCADD, FCMLA): New.
31708 (rot): New.
31709 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
31710
31711 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31712
31713 PR other/16615
31714
31715 * config/pa/pa.c: Change "can not" to "cannot".
31716 * gimple-ssa-evrp-analyze.c: Likewise.
31717 * ipa-icf.c: Likewise.
31718 * ipa-polymorphic-call.c: Likewise.
31719 * ipa-pure-const.c: Likewise.
31720 * lra-constraints.c: Likewise.
31721 * lra-remat.c: Likewise.
31722 * reload1.c: Likewise.
31723 * reorg.c: Likewise.
31724 * tree-ssa-uninit.c: Likewise.
31725
31726 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
31727
31728 PR other/16615
31729
31730 * Makefile.in: Mechanically replace "can not" with "cannot".
31731 * alias.c: Likewise.
31732 * builtins.c: Likewise.
31733 * calls.c: Likewise.
31734 * cgraph.c: Likewise.
31735 * cgraph.h: Likewise.
31736 * cgraphclones.c: Likewise.
31737 * cgraphunit.c: Likewise.
31738 * combine-stack-adj.c: Likewise.
31739 * combine.c: Likewise.
31740 * common/config/i386/i386-common.c: Likewise.
31741 * config/aarch64/aarch64.c: Likewise.
31742 * config/alpha/sync.md: Likewise.
31743 * config/arc/arc.c: Likewise.
31744 * config/arc/predicates.md: Likewise.
31745 * config/arm/arm-c.c: Likewise.
31746 * config/arm/arm.c: Likewise.
31747 * config/arm/arm.h: Likewise.
31748 * config/arm/arm.md: Likewise.
31749 * config/arm/cortex-r4f.md: Likewise.
31750 * config/csky/csky.c: Likewise.
31751 * config/csky/csky.h: Likewise.
31752 * config/darwin-f.c: Likewise.
31753 * config/epiphany/epiphany.md: Likewise.
31754 * config/i386/i386.c: Likewise.
31755 * config/i386/sol2.h: Likewise.
31756 * config/m68k/m68k.c: Likewise.
31757 * config/mcore/mcore.h: Likewise.
31758 * config/microblaze/microblaze.md: Likewise.
31759 * config/mips/20kc.md: Likewise.
31760 * config/mips/sb1.md: Likewise.
31761 * config/nds32/nds32.c: Likewise.
31762 * config/nds32/predicates.md: Likewise.
31763 * config/pa/pa.c: Likewise.
31764 * config/rs6000/e300c2c3.md: Likewise.
31765 * config/rs6000/rs6000.c: Likewise.
31766 * config/s390/s390.h: Likewise.
31767 * config/sh/sh.c: Likewise.
31768 * config/sh/sh.md: Likewise.
31769 * config/spu/vmx2spu.h: Likewise.
31770 * cprop.c: Likewise.
31771 * dbxout.c: Likewise.
31772 * df-scan.c: Likewise.
31773 * doc/cfg.texi: Likewise.
31774 * doc/extend.texi: Likewise.
31775 * doc/fragments.texi: Likewise.
31776 * doc/gty.texi: Likewise.
31777 * doc/invoke.texi: Likewise.
31778 * doc/lto.texi: Likewise.
31779 * doc/md.texi: Likewise.
31780 * doc/objc.texi: Likewise.
31781 * doc/rtl.texi: Likewise.
31782 * doc/tm.texi: Likewise.
31783 * dse.c: Likewise.
31784 * emit-rtl.c: Likewise.
31785 * emit-rtl.h: Likewise.
31786 * except.c: Likewise.
31787 * expmed.c: Likewise.
31788 * expr.c: Likewise.
31789 * fold-const.c: Likewise.
31790 * genautomata.c: Likewise.
31791 * gimple-fold.c: Likewise.
31792 * hard-reg-set.h: Likewise.
31793 * ifcvt.c: Likewise.
31794 * ipa-comdats.c: Likewise.
31795 * ipa-cp.c: Likewise.
31796 * ipa-devirt.c: Likewise.
31797 * ipa-fnsummary.c: Likewise.
31798 * ipa-icf.c: Likewise.
31799 * ipa-inline-transform.c: Likewise.
31800 * ipa-inline.c: Likewise.
31801 * ipa-polymorphic-call.c: Likewise.
31802 * ipa-profile.c: Likewise.
31803 * ipa-prop.c: Likewise.
31804 * ipa-pure-const.c: Likewise.
31805 * ipa-reference.c: Likewise.
31806 * ipa-split.c: Likewise.
31807 * ipa-visibility.c: Likewise.
31808 * ipa.c: Likewise.
31809 * ira-build.c: Likewise.
31810 * ira-color.c: Likewise.
31811 * ira-conflicts.c: Likewise.
31812 * ira-costs.c: Likewise.
31813 * ira-int.h: Likewise.
31814 * ira-lives.c: Likewise.
31815 * ira.c: Likewise.
31816 * ira.h: Likewise.
31817 * loop-invariant.c: Likewise.
31818 * loop-unroll.c: Likewise.
31819 * lower-subreg.c: Likewise.
31820 * lra-assigns.c: Likewise.
31821 * lra-constraints.c: Likewise.
31822 * lra-eliminations.c: Likewise.
31823 * lra-lives.c: Likewise.
31824 * lra-remat.c: Likewise.
31825 * lra-spills.c: Likewise.
31826 * lra.c: Likewise.
31827 * lto-cgraph.c: Likewise.
31828 * lto-streamer-out.c: Likewise.
31829 * postreload-gcse.c: Likewise.
31830 * predict.c: Likewise.
31831 * profile-count.h: Likewise.
31832 * profile.c: Likewise.
31833 * recog.c: Likewise.
31834 * ree.c: Likewise.
31835 * reload.c: Likewise.
31836 * reload1.c: Likewise.
31837 * reorg.c: Likewise.
31838 * resource.c: Likewise.
31839 * rtl.def: Likewise.
31840 * rtl.h: Likewise.
31841 * rtlanal.c: Likewise.
31842 * sched-deps.c: Likewise.
31843 * sched-ebb.c: Likewise.
31844 * sched-rgn.c: Likewise.
31845 * sel-sched-ir.c: Likewise.
31846 * sel-sched.c: Likewise.
31847 * shrink-wrap.c: Likewise.
31848 * simplify-rtx.c: Likewise.
31849 * symtab.c: Likewise.
31850 * target.def: Likewise.
31851 * toplev.c: Likewise.
31852 * tree-call-cdce.c: Likewise.
31853 * tree-cfg.c: Likewise.
31854 * tree-complex.c: Likewise.
31855 * tree-core.h: Likewise.
31856 * tree-eh.c: Likewise.
31857 * tree-inline.c: Likewise.
31858 * tree-loop-distribution.c: Likewise.
31859 * tree-nrv.c: Likewise.
31860 * tree-profile.c: Likewise.
31861 * tree-sra.c: Likewise.
31862 * tree-ssa-alias.c: Likewise.
31863 * tree-ssa-dce.c: Likewise.
31864 * tree-ssa-dom.c: Likewise.
31865 * tree-ssa-forwprop.c: Likewise.
31866 * tree-ssa-loop-im.c: Likewise.
31867 * tree-ssa-loop-ivcanon.c: Likewise.
31868 * tree-ssa-loop-ivopts.c: Likewise.
31869 * tree-ssa-loop-niter.c: Likewise.
31870 * tree-ssa-phionlycprop.c: Likewise.
31871 * tree-ssa-phiopt.c: Likewise.
31872 * tree-ssa-propagate.c: Likewise.
31873 * tree-ssa-threadedge.c: Likewise.
31874 * tree-ssa-threadupdate.c: Likewise.
31875 * tree-ssa-uninit.c: Likewise.
31876 * tree-ssanames.c: Likewise.
31877 * tree-streamer-out.c: Likewise.
31878 * tree.c: Likewise.
31879 * tree.h: Likewise.
31880 * vr-values.c: Likewise.
31881
31882 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
31883
31884 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
31885 (ix86_split_xorsign): Ditto.
31886 * config/i386/i386.c (ix86_expand_xorsign): New function.
31887 (ix86_split_xorsign): Ditto.
31888 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
31889 (xorsign<mode>3): New expander.
31890 (xorsign<mode>3_1): New insn_and_split pattern.
31891 * config/i386/sse.md (xorsign<mode>3): New expander.
31892
31893 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31894
31895 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
31896 (*tablejump_sp64): Likewise.
31897 (*tablejump<P:mode>): ...this.
31898 (*call_address_sp32): Merge into...
31899 (*call_address_sp64): Likewise.
31900 (*call_address<P:mode>): ...this.
31901 (*call_symbolic_sp32): Merge into...
31902 (*call_symbolic_sp64): Likewise.
31903 (*call_symbolic<P:mode>): ...this.
31904 (call_value): Remove constraint and add predicate.
31905 (*call_value_address_sp32): Merge into...
31906 (*call_value_address_sp64): Likewise.
31907 (*call_value_address<P:mode>): ...this.
31908 (*call_value_symbolic_sp32): Merge into...
31909 (*call_value_symbolic_sp64): Likewise.
31910 (*call_value_symbolic<P:mode>): ...this.
31911 (*sibcall_symbolic_sp32): Merge into...
31912 (*sibcall_symbolic_sp64): Likewise.
31913 (*sibcall_symbolic<P:mode>): ...this.
31914 (sibcall_value): Remove constraint and add predicate.
31915 (*sibcall_value_symbolic_sp32): Merge into...
31916 (*sibcall_value_symbolic_sp64): Likewise.
31917 (*sibcall_value_symbolic<P:mode>): ...this.
31918 (window_save): Minor tweak.
31919 (*branch_sp32): Merge into...
31920 (*branch_sp64): Likewise.
31921 (*branch<P:mode>): ...this.
31922
31923 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
31924 James Clarke <jrtc27@jrtc27.com>
31925
31926 PR target/84010
31927 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
31928 consistently in TLS address generation and adjust code to the renaming
31929 of patterns. Mark calls to __tls_get_addr as const.
31930 * config/sparc/sparc.md (tgd_hi22): Turn into...
31931 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
31932 (tgd_lo10): Turn into...
31933 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
31934 (tgd_add32): Merge into...
31935 (tgd_add64): Likewise.
31936 (tgd_add<P:mode>): ...this and use Pmode throughout.
31937 (tldm_hi22): Turn into...
31938 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
31939 (tldm_lo10): Turn into...
31940 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
31941 (tldm_add32): Merge into...
31942 (tldm_add64): Likewise.
31943 (tldm_add<P:mode>): ...this and use Pmode throughout.
31944 (tldm_call32): Merge into...
31945 (tldm_call64): Likewise.
31946 (tldm_call<P:mode>): ...this and use Pmode throughout.
31947 (tldo_hix22): Turn into...
31948 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
31949 (tldo_lox10): Turn into...
31950 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
31951 (tldo_add32): Merge into...
31952 (tldo_add64): Likewise.
31953 (tldo_add<P:mode>): ...this and use Pmode throughout.
31954 (tie_hi22): Turn into...
31955 (tie_hi22<P:mode>): ...this and use Pmode throughout.
31956 (tie_lo10): Turn into...
31957 (tie_lo10<P:mode>): ...this and use Pmode throughout.
31958 (tie_ld64): Use DImode throughout.
31959 (tie_add32): Merge into...
31960 (tie_add64): Likewise.
31961 (tie_add<P:mode>): ...this and use Pmode throughout.
31962 (tle_hix22_sp32): Merge into...
31963 (tle_hix22_sp64): Likewise.
31964 (tle_hix22<P:mode>): ...this and use Pmode throughout.
31965 (tle_lox22_sp32): Merge into...
31966 (tle_lox22_sp64): Likewise.
31967 (tle_lox22<P:mode>): ...this and use Pmode throughout.
31968 (*tldo_ldub_sp32): Merge into...
31969 (*tldo_ldub_sp64): Likewise.
31970 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
31971 (*tldo_ldub1_sp32): Merge into...
31972 (*tldo_ldub1_sp64): Likewise.
31973 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
31974 (*tldo_ldub2_sp32): Merge into...
31975 (*tldo_ldub2_sp64): Likewise.
31976 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
31977 (*tldo_ldsb1_sp32): Merge into...
31978 (*tldo_ldsb1_sp64): Likewise.
31979 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
31980 (*tldo_ldsb2_sp32): Merge into...
31981 (*tldo_ldsb2_sp64): Likewise.
31982 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
31983 (*tldo_ldub3_sp64): Use DImode throughout.
31984 (*tldo_ldsb3_sp64): Likewise.
31985 (*tldo_lduh_sp32): Merge into...
31986 (*tldo_lduh_sp64): Likewise.
31987 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
31988 (*tldo_lduh1_sp32): Merge into...
31989 (*tldo_lduh1_sp64): Likewise.
31990 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
31991 (*tldo_ldsh1_sp32): Merge into...
31992 (*tldo_ldsh1_sp64): Likewise.
31993 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
31994 (*tldo_lduh2_sp64): Use DImode throughout.
31995 (*tldo_ldsh2_sp64): Likewise.
31996 (*tldo_lduw_sp32): Merge into...
31997 (*tldo_lduw_sp64): Likewise.
31998 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
31999 (*tldo_lduw1_sp64): Use DImode throughout.
32000 (*tldo_ldsw1_sp64): Likewise.
32001 (*tldo_ldx_sp64): Likewise.
32002 (*tldo_stb_sp32): Merge into...
32003 (*tldo_stb_sp64): Likewise.
32004 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32005 (*tldo_sth_sp32): Merge into...
32006 (*tldo_sth_sp64): Likewise.
32007 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32008 (*tldo_stw_sp32): Merge into...
32009 (*tldo_stw_sp64): Likewise.
32010 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32011 (*tldo_stx_sp64): Use DImode throughout.
32012
32013 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32014
32015 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
32016 check configure option to set BTI and Return Address Signing.
32017 * configure.ac: Add --enable-standard-branch-protection and
32018 --disable-standard-branch-protection.
32019 * configure: Regenerated.
32020 * doc/install.texi: Document the same.
32021
32022 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32023 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32024
32025 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
32026 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
32027 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
32028 if bti is enabled.
32029 * config/aarch64/aarch64-bti-insert.c: New file.
32030 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
32031 pass.
32032 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
32033 new bti pass.
32034 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
32035 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
32036 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
32037 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
32038
32039 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32040
32041 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
32042 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
32043 Disable bti for -mbranch-protection=none.
32044 (aarch64_handle_standard_branch_protection): Enable bti for
32045 -mbranch-protection=standard.
32046 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
32047 -mbranch-protection.
32048 (aarch64_bti_enabled): Check if bti is enabled.
32049 * config/aarch64/aarch64.opt: Declare target variable.
32050 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
32051
32052 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32053
32054 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
32055 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
32056 (aarch64_expand_epilogue): Likewise.
32057 (aarch64_output_mi_thunk): Likewise.
32058 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
32059 TAILCALL_ADDR_REGS to x16 and x17.
32060 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
32061
32062 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32063
32064 * config/aarch64/aarch64-option-extensions.def: Define
32065 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
32066 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
32067 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
32068 (AARCH64_FL_PREDRES): New.
32069 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
32070 AARCH64_FL_PREDRES by default.
32071 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
32072
32073 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32074
32075 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
32076 ARMv8.5-A.
32077 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
32078 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
32079 * doc/invoke.texi: Document ARMv8.5-A.
32080
32081 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
32082
32083 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
32084 (xorsign<mode>3): Likewise.
32085
32086 2019-01-09 Jelinek <jakub@redhat.com>
32087
32088 PR middle-end/88758
32089 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
32090 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
32091
32092 PR rtl-optimization/88331
32093 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
32094 not currently_expanding_to_rtl.
32095
32096 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32097
32098 * doc/invoke.texi (-Os): Remove trailing spaces.
32099 (-finline-functions): Remove reference to -O2.
32100
32101 2019-01-08 Jakub Jelinek <jakub@redhat.com>
32102
32103 PR rtl-optimization/79593
32104 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
32105
32106 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
32107 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
32108
32109 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
32110
32111 PR bootstrap/88721
32112 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
32113 to -1 on entry.
32114
32115 PR debug/88723
32116 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
32117 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
32118
32119 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
32120
32121 PR target/88717
32122 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
32123 ix86_avx_u128_mode_entry.
32124
32125 2019-01-08 Martin Liska <mliska@suse.cz>
32126
32127 PR tree-optimization/88753
32128 * tree-switch-conversion.c (switch_conversion::build_one_array):
32129 Come up with local variable constructor. Convert first to
32130 type of constructor values.
32131
32132 2019-01-08 Richard Biener <rguenther@suse.de>
32133
32134 PR tree-optimization/86554
32135 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
32136 rpo_avail): Move earlier.
32137 (visit_nary_op): When value-numbering to expressions
32138 with different overflow behavior make sure there's an
32139 available expression on the path.
32140
32141 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
32142
32143 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
32144 aarch64_parse_branch_protection,
32145 struct aarch64_branch_protect_type,
32146 aarch64_handle_no_branch_protection,
32147 aarch64_handle_standard_branch_protection,
32148 aarch64_validate_mbranch_protection,
32149 aarch64_handle_pac_ret_protection,
32150 aarch64_handle_attr_branch_protection,
32151 accepted_branch_protection_string,
32152 aarch64_pac_ret_subtypes,
32153 aarch64_branch_protect_types,
32154 aarch64_handle_pac_ret_leaf): Define.
32155 (aarch64_override_options_after_change_1, aarch64_override_options):
32156 Add check for accepted_branch_protection_string.
32157 (aarch64_option_save): Save accepted_branch_protection_string.
32158 (aarch64_option_restore): Save accepted_branch_protection_string.
32159 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
32160 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
32161 msign-return-address.
32162 * doc/invoke.texi: Add mbranch-protection.
32163
32164 2019-01-08 Alan Modra <amodra@gmail.com>
32165
32166 PR target/88614
32167 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
32168 Delete "unknownp" parameter. Adjust callers. Handle
32169 CONST_INT, PLUS, MINUS, and MULT.
32170 (attr_value_aligned): Renamed from or_attr_value.
32171 (min_attr_value): Return INT_MIN for unhandled rtl case..
32172 (min_fn): ..and translate to INT_MAX here.
32173 (write_length_unit_log): Modify to cope without "unknown".
32174 (write_attr_value): Handle IF_THEN_ELSE.
32175
32176 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32177
32178 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
32179 optimization for masked stores.
32180
32181 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32182
32183 PR middle-end/88567
32184 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32185 output vector directly to duplicate_and_interleave instead of
32186 going through a temporary. Postpone insertion of ctor_seq to
32187 the end of the loop.
32188
32189 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32190
32191 PR target/86891
32192 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32193 unsigned_p. Handle signed and unsigned overflow correction as
32194 required.
32195 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32196 prototype.
32197 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32198 for operand 2.
32199 (add<mode>3_compareV_imm): Make this callable for expanding.
32200 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32201 aarch64_plus_operand for operand 2.
32202 (subv<GPI:mode>_insn): New insn pattern.
32203 (subv<GPI:mode>_imm): Likewise.
32204 (negv<GPI:mode>3): New expand pattern.
32205 (negv<GPI:mode>_insn): New insn pattern.
32206 (negv<GPI:mode>_cmp_only): Likewise.
32207 (cmpv<GPI:mode>_insn): Likewise.
32208 (subvti4): Use register_operand for operand 1. Update call to
32209 aarch64_expand_subvti.
32210 (usubvti4): Likewise.
32211 (negvti3): New expand pattern.
32212 (negdi_carryout): New insn pattern.
32213 (negvdi_carryinV): New insn pattern.
32214 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32215 version the named version.
32216 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32217 operands.
32218 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32219 patterns.
32220 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32221 patterns.
32222 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32223 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32224 (sub<mode>3_carryinCV): Delete.
32225 (sub<GPI:mode>3_carryinV): New expand pattern.
32226 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32227
32228 2019-01-07 Richard Biener <rguenther@suse.de>
32229
32230 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
32231 of tree_operand_hash.
32232
32233 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32234
32235 PR tree-optimization/88598
32236 * tree.h (single_nonzero_element): Declare.
32237 * tree.c (single_nonzero_element): New function.
32238 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
32239 if I is the only nonzero element of CST.
32240
32241 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32242
32243 PR tree-optimization/88598
32244 * tree.h (initializer_each_zero_or_onep): Declare.
32245 * tree.c (initializer_each_zero_or_onep): New function.
32246 (signed_or_unsigned_type_for): Handle float types too.
32247 (unsigned_type_for, signed_type_for): Update comments accordingly.
32248 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
32249 x & { 0 or -1, 0 or -1, ... }.
32250
32251 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
32252
32253 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
32254 with x86_64-pc-linux-gnu.
32255
32256 2019-01-07 Tom de Vries <tdevries@suse.de>
32257
32258 PR target/85486
32259 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
32260 function.
32261 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
32262 routines.
32263
32264 2019-01-07 Jakub Jelinek <jakub@redhat.com>
32265
32266 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
32267 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
32268 TARGET_AVX512F as condition.
32269
32270 PR debug/88723
32271 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
32272 const_not_ok_for_debug_p target hook.
32273 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
32274 on UNSPEC and subexpressions thereof if all subexpressions of the
32275 UNSPEC are CONSTANT_P.
32276
32277 PR tree-optimization/88676
32278 * tree-ssa-phiopt.c (two_value_replacement): New function.
32279 (tree_ssa_phiopt_worker): Call it.
32280
32281 PR sanitizer/88619
32282 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
32283 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
32284
32285 PR c++/85052
32286 * tree-vect-generic.c: Include insn-config.h and recog.h.
32287 (expand_vector_piecewise): Add defaulted ret_type argument,
32288 if non-NULL, use that in preference to type for the result type.
32289 (expand_vector_parallel): Formatting fix.
32290 (do_vec_conversion, do_vec_narrowing_conversion,
32291 expand_vector_conversion): New functions.
32292 (expand_vector_operations_1): Call expand_vector_conversion
32293 for VEC_CONVERT ifn calls.
32294 * internal-fn.def (VEC_CONVERT): New internal function.
32295 * internal-fn.c (expand_VEC_CONVERT): New function.
32296 * fold-const-call.c (fold_const_vec_convert): New function.
32297 (fold_const_call): Use it for CFN_VEC_CONVERT.
32298 * doc/extend.texi (__builtin_convertvector): Document.
32299
32300 2019-01-07 Tom de Vries <tdevries@suse.de>
32301
32302 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
32303 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
32304 vector_red_partition, vector_red_sym): New global variables.
32305 (nvptx_option_override): Initialize vector_red_sym.
32306 (nvptx_declare_function_name): Restore red_partition register.
32307 (nvptx_file_end): Emit code to declare the vector reduction variables.
32308 (nvptx_output_red_partition): New function.
32309 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
32310 large vector reductions.
32311 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
32312 (nvptx_init_builtins): Add VECTOR_ADDR.
32313 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
32314 Handle nvptx_expand_shared_addr.
32315 (nvptx_get_shared_red_addr): Add vector argument and handle large
32316 vectors.
32317 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
32318 large vectors.
32319 (nvptx_goacc_reduction_init): Likewise.
32320 (nvptx_goacc_reduction_fini): Likewise.
32321 (nvptx_goacc_reduction_teardown): Likewise.
32322 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
32323 init,fini,teardown}.
32324 (nvptx_init_axis_predicate): Initialize vector_red_partition.
32325 (nvptx_set_current_function): Init vector_red_partition.
32326 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
32327 (nvptx_red_partition): New insn.
32328 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
32329
32330 2019-01-07 Tom de Vries <tdevries@suse.de>
32331
32332 PR target/85381
32333 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
32334 empty loops.
32335
32336 2019-01-07 Tom de Vries <tdevries@suse.de>
32337
32338 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
32339 (nvptx_option_override): Init oacc_bcast_partition.
32340 (nvptx_init_oacc_workers): New function.
32341 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
32342 (nvptx_needs_shared_bcast): New function.
32343 (nvptx_find_par): Generalize to enable vectors to use shared-memory
32344 to propagate state.
32345 (nvptx_shared_propagate): Initialize vector bcast partition and
32346 synchronization state.
32347 (nvptx_single): Generalize to enable vectors to use shared-memory
32348 to propagate state.
32349 (nvptx_process_pars): Likewise.
32350 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
32351 * config/nvptx/nvptx.h (struct machine_function): Add
32352 bcast_partition and sync_bar members.
32353
32354 2019-01-07 Tom de Vries <tdevries@suse.de>
32355
32356 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
32357 (nvptx_apply_dim_limits): New function.
32358 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
32359 PTX_WARP_SIZE.
32360
32361 2019-01-07 Tom de Vries <tdevries@suse.de>
32362
32363 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
32364 as late as possible.
32365
32366 2019-01-07 Tom de Vries <tdevries@suse.de>
32367
32368 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
32369 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
32370 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
32371 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
32372 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
32373
32374 2019-01-07 Tom de Vries <tdevries@suse.de>
32375
32376 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
32377
32378 2019-01-07 Tom de Vries <tdevries@suse.de>
32379
32380 * omp-offload.c (oacc_get_min_dim): New function.
32381 * omp-offload.h (oacc_get_min_dim): Declare.
32382
32383 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
32384
32385 PR target/88521
32386 * config/i386/i386.c (function_value_ms_64): Return small sturct in
32387 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
32388
32389 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32390
32391 PR tree-opt/86020
32392 Revert:
32393 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
32394
32395 * ipa-inline.c (edge_badness): Use inlined_time instead of
32396 inline_summaries->get.
32397
32398 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32399
32400 * opts.c (enable_fdo_optimizations): Enable
32401 version-loops-for-strides, loop-interchange, unrol-and-jam
32402 and tree-loop-distribution.
32403 * invoke.texi: Document newly enabled options.
32404
32405 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32406
32407 * doc/invoke.texi (max-inline-insns-small): New parameters.
32408 * ipa-inline.c (want_early_inline_function_p): simplify.
32409 (want_inline_small_function_p): Fix pasto from previous patch;
32410 use max-inline-insns-small bound.
32411 * params.def (max-inline-insns-small): New param.
32412 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
32413 variables correctly.
32414
32415 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32416
32417 * doc/invoke.texi: Document max-inline-insns-size,
32418 uninlined-function-insns, uninlined-function-time,
32419 uninlined-thunk-insns and uninlined-thunk-time.
32420 * params.def: Add max-inline-insns-size,
32421 uninlined-function-insns, uninlined-function-time,
32422 uninlined-thunk-insns and uninlined-thunk-time.
32423 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
32424 new parameters.
32425 * ipa-inline.c (can_inline_edge_by_limits_p,
32426 want_inline_small_function_p): Use new parameters.
32427
32428 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32429
32430 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
32431
32432 2019-01-05 Jakub Jelinek <jakub@redhat.com>
32433
32434 PR middle-end/82564
32435 PR target/88620
32436 * expr.c (expand_assignment): For calls returning VLA structures
32437 if to_rtx is not a MEM, force it into a stack temporary.
32438
32439 PR debug/88635
32440 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
32441 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
32442 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
32443 subexpressions of both operands.
32444 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
32445 subrtxes are CONSTANT_P.
32446 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
32447 2018-11-09 changes.
32448
32449 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
32450
32451 * params.def (hot-bb-count-ws-permille): Set to 990.
32452
32453 2019-01-04 Martin Sebor <msebor@redhat.com>
32454
32455 PR c/88546
32456 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
32457 leaf.
32458
32459 2019-01-04 Martin Sebor <msebor@redhat.com>
32460
32461 PR c/88363
32462 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
32463
32464 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32465
32466 * gdbinit.in: Turn off pagination for the skip commands, restore
32467 it to previous state afterwards.
32468
32469 2019-01-04 Jakub Jelinek <jakub@redhat.com>
32470
32471 PR target/88594
32472 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
32473 of GET_MODE (opN) as modes of the libcall arguments.
32474
32475 2019-01-04 Jan Beulich <jbeulich@suse.com>
32476
32477 * config/i386/sse.md
32478 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
32479 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
32480 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32481 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
32482 avx512f_vmcmp<mode>3<round_saeonly_name>,
32483 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
32484 avx512f_maskcmp<mode>3,
32485 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32486 <avx512>_cvt<ssemodesuffix>2mask<mode>,
32487 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32488 *<avx512>_cvtmask2<ssemodesuffix><mode>,
32489 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32490 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
32491 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32492 <avx512>_gt<mode>3<mask_scalar_merge_name>,
32493 <avx512>_testm<mode>3<mask_scalar_merge_name>,
32494 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
32495 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
32496 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
32497 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
32498 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
32499 avx512cd_maskb_vec_dup<mode>,
32500 avx512cd_maskw_vec_dup<mode>,
32501 avx512dq_fpclass<mode><mask_scalar_merge_name>,
32502 avx512dq_vmfpclass<mode>,
32503 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
32504 instead of =Yk.
32505
32506 2019-01-03 Martin Sebor <msebor@redhat.com>
32507
32508 PR tree-optimization/88659
32509 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
32510
32511 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
32512
32513 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
32514 unaligned vsx and avoid lxvd2x/stxvd2x.
32515 (gen_lvx_v4si_move): New function.
32516
32517 2019-01-03 Tom de Vries <tdevries@suse.de>
32518
32519 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
32520 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
32521 function.
32522 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
32523
32524 2019-01-03 Tom de Vries <tdevries@suse.de>
32525
32526 * config/nvptx/nvptx.c (struct offload_attrs): New.
32527 (populate_offload_attrs): New function. Factor mask extraction out of
32528 nvptx_reorg. Add extraction of dimensions.
32529 (nvptx_reorg): Use populate_offload_attrs.
32530
32531 2019-01-03 Tom de Vries <tdevries@suse.de>
32532
32533 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
32534 cases for oacc_min_dims_p and routine_p. Add asserts for
32535 oacc_default_dims_p and offload_region_p.
32536
32537 2019-01-03 Tom de Vries <tdevries@suse.de>
32538
32539 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
32540 factored out of ...
32541 (nvptx_goacc_validate_dims): ... here.
32542
32543 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32544
32545 PR tree-optimization/85574
32546 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
32547 structure.
32548 (struct ssa_equip_hash_traits): Declare.
32549 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
32550
32551 2019-01-03 Jakub Jelinek <jakub@redhat.com>
32552
32553 PR debug/88644
32554 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
32555 change it to qualified_type.
32556
32557 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
32558
32559 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
32560 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
32561
32562 2019-01-02 Martin Sebor <msebor@redhat.com>
32563 Jeff Law <law@redhat.com>
32564
32565 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
32566 (get_range_strlen_tree): Update appropriately.
32567 (get_range_strlen)
32568 * gimple-fold.h (get_range_strlen): Drop unused last argument.
32569
32570 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
32571 rather than set_range_info.
32572 * tree-ssa-strlen.c (set_strlen_range): Extracted from
32573 maybe_set_strlen_range. Handle potentially boundary crossing
32574 cases more conservatively.
32575 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
32576 Call set_strlen_range.
32577 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
32578
32579 PR middle-end/88663
32580 * gimple-fold.c (get_range_strlen): Update prototype to no longer
32581 need the flexp argument.
32582 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
32583 from calls to get_range_strlen. Update comments. Just update
32584 VAL for an unterminated const char array and let the reset of the
32585 code handle it normally. No longer try to set *flexp. Adjust
32586 return value.
32587 (get_range_strlen): Update for the new get_range_strlen API.
32588 (get_maxval_strlen): Similarly.
32589 (gimple_fold_builtin_strlen): Handle update meaning of return value
32590 from get_range_strlen.
32591 * gimple-ssa-sprintf.c (get_string_length): Update for the new
32592 get_range_strlen API.
32593
32594 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
32595
32596 PR lto/88130
32597 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
32598 false at WPA time when body was removed.
32599
32600 2019-01-02 Martin Liska <mliska@suse.cz>
32601
32602 PR tree-optimization/88650
32603 * predict.c (set_even_probabilities): Calculate probability
32604 remainer only when really used.
32605
32606 2019-01-02 Richard Biener <rguenther@suse.de>
32607
32608 PR middle-end/88651
32609 * tree-data-ref.c (analyze_subscript_affine_affine): Use
32610 widest_ints when mangling max_stmt_execution results.
32611
32612 2019-01-02 Richard Biener <rguenther@suse.de>
32613
32614 PR tree-optimization/88621
32615 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
32616 bitfields when canoncalizing.
32617
32618 2019-01-02 Richard Biener <rguenther@suse.de>
32619
32620 PR target/87545
32621 * config/i386/x86-tune-costs.h (intel_cost): Adjust
32622 cost of cheap SSE instruction.
32623
32624 2019-01-02 Richard Biener <rguenther@suse.de>
32625
32626 PR ipa/85574
32627 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
32628 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
32629 function.
32630 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
32631 set after UIDs before splitting them.
32632
32633 2019-01-01 Martin Sebor <msebor@redhat.com>
32634 Jeff Law <law@redhat.com>
32635
32636 * gimple-fold.c (get_range_strlen_tree): Record if the computed
32637 length is optimistic. If it is, then arrange to compute the
32638 conservative length as well.
32639
32640 * gimple-fold.h (get_range_strlen): Update prototype.
32641 * builtins.c (check_access): Update call to get_range_strlen to use
32642 c_strlen_data pointer. Change various variable accesses to instead
32643 pull data from the c_strlen_data structure.
32644 (check_strncat_sizes, expand_builtin_strncat): Likewise.
32645 * calls.c (maybe_warn_nonstring_arg): Likewise.
32646 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
32647 minimum length if maximum lengh is unknown.
32648 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
32649 that used c_strlen, it's no longer needed. Restructure slightly.
32650 (format_string): Set unlikely range appropriately.
32651 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
32652 formatting issues.
32653 (get_range_strlen): Accept c_strlen_data pointer for external
32654 call sites as well. Pass through to call to internal get_range_strlen.
32655 Adjust minlen, maxlen and maxbound as needed.
32656 (get_maxval_strlen): Update comments.
32657 (gimple_fold_builtin_strlen): Update call to get_range_strlen
32658 to use c_strlen_data pointer. Change variable accesses to instead
32659 use c_strlen_data data members.
32660
32661 * gimple-fold.c (get_range_strlen): Update prototype.
32662 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
32663 local variables. Use pdata to return information to caller.
32664 Update calls to get_range_strlen. Update pdata->maxbound.
32665 (get_range_strlen -- static version): Similarly.
32666 (get_range_strlen -- extern version): Update for internal
32667 get_range_strlen API change. Convert to external data format.
32668 (get_maxval_strlen): Similarly.
32669
32670 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
32671
32672 * coverage.c (get_coverage_counts): Use current_function_decl.
32673 * profile.c (read_thunk_profile): New function.
32674 (branch_prob): Add THUNK parameter.
32675 * tree-profile.c (tree_profiling): Handle thunks.
32676 * value-prof.c (init_node_map): Handle thunks.
32677 * value-prof.h (branch_prob): Upate prototype.
32678 (read_thunk_profile): Declare.
32679
32680 2019-01-01 Jakub Jelinek <jakub@redhat.com>
32681
32682 Update copyright years.
32683
32684 * gcc.c (process_command): Update copyright notice dates.
32685 * gcov-dump.c (print_version): Ditto.
32686 * gcov.c (print_version): Ditto.
32687 * gcov-tool.c (print_version): Ditto.
32688 * gengtype.c (create_file): Ditto.
32689 * doc/cpp.texi: Bump @copying's copyright year.
32690 * doc/cppinternals.texi: Ditto.
32691 * doc/gcc.texi: Ditto.
32692 * doc/gccint.texi: Ditto.
32693 * doc/gcov.texi: Ditto.
32694 * doc/install.texi: Ditto.
32695 * doc/invoke.texi: Ditto.
32696 \f
32697 Copyright (C) 2019 Free Software Foundation, Inc.
32698
32699 Copying and distribution of this file, with or without modification,
32700 are permitted in any medium without royalty provided the copyright
32701 notice and this notice are preserved.