1 2019-06-05 Jakub Jelinek <jakub@redhat.com>
3 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
5 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
6 treat it like explicit monotonic schedule modifier.
7 (expand_omp_for): Initialize has_lastprivate_conditional.
8 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
11 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
12 references, lookup in in hash map MEM_REF operand instead of the
14 (lower_omp_1): When looking for lastprivate conditional assignments,
15 handle MEM_REFs with REFERENCE_TYPE operands.
17 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
18 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
19 and references a VLA. Handle references to non-VLAs if is_simd
20 all privatization clauses like reductions.
21 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22 If omp_is_reference, use always omp simd arrays and set
23 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
24 fails, emit reference initialization.
26 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
29 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
30 _mm_mask_fpclass_sd_mask): New intrinsics.
31 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
32 * config/i386/i386-builtin.def
33 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
35 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
36 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
37 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
38 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
39 case QI_FTYPE_V2SF_INT): Ditto.
41 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
42 Extended to insnstructions with mask operands.
44 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
46 * config/rs6000/constraints.md (define_register_constraint "wp"):
48 (define_register_constraint "wq"): Delete.
49 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
50 (rs6000_init_hard_regno_mode_ok): Adjust.
51 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
52 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
53 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
54 (define_mode_attr VSa): Delete.
55 (define_mode_attr VSisa): New.
56 (rest of file): Adjust.
57 * doc/md.texi (Machine Constraints): Adjust.
59 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
61 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
62 (define_attr "enabled"): Handle those new isa values.
64 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
66 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
67 (define_mode_attr VSr5): Delete.
68 (define_mode_attr VStype_sqrt): Delete.
69 (define_mode_iterator VSX_SPDP): Delete.
70 (define_mode_attr VS_spdp_res): Delete.
71 (define_mode_attr VS_spdp_insn): Delete.
72 (define_mode_attr VS_spdp_type): Delete.
73 (*vsx_sqrt<mode>2): Adjust.
74 (vsx_<VS_spdp_insn>): Delete, split to...
75 (vsx_xscvdpsp): ... this. New. And...
76 (vsx_xvcvspdp): ... this. New. And...
77 (vsx_xvcvdpsp): ... this. New.
79 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
81 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
83 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
84 (rest of file): Adjust.
86 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
88 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
89 (vsx_extract_<mode>_var): Ditto.
91 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
93 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
96 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
98 * config/rs6000/constraints.md (define_register_constraint "ww"):
100 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
101 (rs6000_init_hard_regno_mode_ok): Adjust.
102 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
103 RS6000_CONSTRAINT_ww.
104 * config/rs6000/rs6000.md: Adjust.
105 * config/rs6000/vsx.md: Adjust.
106 * doc/md.texi (Machine Constraints): Adjust.
108 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
110 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
111 (define_mode_attr sd): New.
112 (define_mode_attr s): New.
113 (define_mode_attr Ftrad): Delete.
114 (define_mode_attr Fvsx): Delete.
115 (define_mode_attr Fs): Delete.
116 (rest of file): Use the new mode attributes.
117 * config.rs6000/vsx.md: Use the new mode attributes.
119 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
121 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
124 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
126 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
127 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
128 used with VSX_B, VSX_D, or VSX_F, with just "wa".
130 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
133 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
134 C++ with strict ANSI requirements.
136 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
138 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
139 computations when step is 1.
141 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
143 * config/rs6000/constraints.md (define_register_constraint "wf"):
145 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
146 (rs6000_init_hard_regno_mode_ok): Adjust.
147 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
148 RS6000_CONSTRAINT_wf.
149 * config/rs6000/rs6000.md: Adjust.
150 * config/rs6000/vsx.md: Adjust.
151 * doc/md.texi (Machine Constraints): Adjust.
153 2019-06-04 Andrew Pinski <apinski@marvell.com>
155 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
158 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
160 * config/rs6000/constraints.md (define_register_constraint "wd"):
162 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
163 (rs6000_init_hard_regno_mode_ok): Adjust.
164 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
165 RS6000_CONSTRAINT_wd.
166 * config/rs6000/rs6000.md: Adjust.
167 * config/rs6000/vsx.md: Adjust.
168 * doc/md.texi (Machine Constraints): Adjust.
170 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
172 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
173 (rest of file): Adjust.
175 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
177 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
178 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
179 (vsx_splat_<mode>_reg): Adjust.
181 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
183 * config/rs6000/constraints.md (define_register_constraint "ws"):
185 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
186 (rs6000_init_hard_regno_mode_ok): Adjust.
187 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
188 RS6000_CONSTRAINT_ws.
189 * config/rs6000/rs6000.md: Adjust.
190 * config/rs6000/vsx.md: Adjust.
191 * doc/md.texi (Machine Constraints): Adjust.
193 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
195 * config/rs6000/constraints.md (define_register_constraint "wv"):
197 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
198 (rs6000_init_hard_regno_mode_ok): Adjust.
199 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
200 RS6000_CONSTRAINT_wv.
201 * config/rs6000/rs6000.md: Adjust.
202 * config/rs6000/vsx.md: Adjust.
203 * doc/md.texi (Machine Constraints): Adjust.
205 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
207 * config/rs6000/constraints.md (define_register_constraint "wi"):
209 (define_register_constraint "wt"): Delete.
210 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
211 (rs6000_init_hard_regno_mode_ok): Adjust.
212 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
213 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
214 * config/rs6000/rs6000.md: Adjust.
215 * config/rs6000/vsx.md: Adjust.
216 * doc/md.texi (Machine Constraints): Adjust.
218 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
220 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
222 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
223 default_elf_asm_output_external.
225 2019-06-04 Martin Liska <mliska@suse.cz>
227 * ipa-icf.c (INCLUDE_LIST): Remove.
228 (sem_item_optimizer::execute): Remove call to init_wpa.
229 * ipa-icf.h (init_wpa): Remove.
231 2019-06-04 Jakub Jelinek <jakub@redhat.com>
233 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
234 conditional on combined for simd.
235 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
237 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
238 constructs, don't remove lastprivate_conditional_map, but instead set
239 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
240 to parent construct temporaries.
241 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
242 like !ctx->lastprivate_conditional_map.
243 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
244 use up->outer context instead of up.
245 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
246 gimple_omp_for_combined_p.
247 (expand_omp_for_static_nochunk): Likewise.
248 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
249 probably moved over into expand_omp_for_generic rather than being copied
252 2019-06-04 Martin Liska <mliska@suse.cz>
254 * value-prof.c (dump_histogram_value): Fix typo.
255 (gimple_mod_subtract_transform): Likewise.
257 2019-06-04 Richard Biener <rguenther@suse.de>
260 * tree-chrec.c (chrec_contains_symbols): Add to visited.
261 (tree_contains_chrecs): Likewise.
262 (chrec_contains_symbols_defined_in_loop): Move here and avoid
263 exponential behaivor from ...
264 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
266 (expression_expensive_p): Avoid exponential behavior and compute
267 expanded size, rejecting any expansion.
268 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
269 (idx_contains_abnormal_ssa_name_p): Likewise.
270 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
271 (contains_abnormal_ssa_name_p): Simplify and use
272 walk_tree_without_duplicates.
274 2019-06-04 Richard Biener <rguenther@suse.de>
276 PR tree-optimization/90738
278 2019-06-03 Richard Biener <rguenther@suse.de>
280 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
281 full reference tree and record in ref->ref.
282 (vn_reference_lookup_3): Pass in original ref to
283 ao_ref_init_from_vn_reference.
284 (vn_reference_lookup): Likewise.
285 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
286 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
287 Handle non-decl bases in the original reference.
289 2019-06-04 Martin Liska <mliska@suse.cz>
291 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
292 number of references.
293 (sem_item_optimizer::do_congruence_step):
294 (sem_item_optimizer::worklist_push): Dump how references
296 (sem_item_optimizer::worklist_pop): Use heap.
297 (sem_item_optimizer::process_cong_reduction): Likewise.
298 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
300 2019-06-04 Martin Liska <mliska@suse.cz>
302 * ipa-icf.h (struct sem_usage_pair_hash): New.
303 (sem_usage_pair_hash::hash): Likewise.
304 (sem_usage_pair_hash::equal): Likewise.
305 (struct sem_usage_hash): Likewise.
306 * ipa-icf.c (sem_item::sem_item): Initialize
308 (sem_item::add_reference): Register a reference
309 in ref_map and not in target->usages.
310 (sem_item::setup): Remove initialization of
312 (sem_item::~sem_item): Remove usage of dead vectors.
313 (sem_item::dump): Remove dump of references.
314 (sem_item_optimizer::sem_item_optimizer): Initialize
316 (sem_item_optimizer::read_section): Remove useless
318 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
319 (sem_item_optimizer::build_graph): Pass m_references
321 (sem_item_optimizer::verify_classes): Remove usage of dead
323 (sem_item_optimizer::traverse_congruence_split): Return true
324 when a class is split.
325 (sem_item_optimizer::do_congruence_step_for_index): Use
326 hash_map for look up of (sem_item *, index). That brings
327 significant speed up.
328 (sem_item_optimizer::do_congruence_step): Return true
329 when a split is done.
330 (congruence_class::is_class_used): Use referenced_by_count.
332 2019-06-04 Alan Modra <amodra@gmail.com>
335 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
338 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
340 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
341 * config/rs6000/rs6000.c (direct_move_p): Adjust.
342 (rs6000_secondary_reload_simple_move): Adjust.
343 (rs6000_opt_masks): Neuter the "mfpgpr" option.
344 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
345 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
348 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
349 (floatunssi<mode>2_lfiwzx): Adjust.
350 (fix_trunc<mode>si2_stfiwx): Adjust.
351 (fixuns_trunc<mode>si2_stfiwx): Adjust.
352 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
353 (mfpgpr): Mark as deprecated.
354 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
355 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
356 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
358 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
360 * config/rs6000/constraints.md (define_register_constraint "wg"):
362 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
363 RS6000_CONSTRAINT_wg.
364 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
365 (rs6000_init_hard_regno_mode_ok): Adjust.
366 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
367 Delete "wg" alternatives.
368 * doc/md.texi (Machine Constraints): Adjust.
370 2019-06-03 Alan Modra <amodra@gmail.com>
372 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
373 (get_uncond_jump_length): Assert length less than INT_MAX and
376 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
379 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
381 (expand_builtin_nonlocal_goto): Likewise.
383 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
385 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
386 (aarch64_asm_output_external): Declare.
387 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
388 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
389 (aarch64_asm_output_alias): New.
390 (aarch64_asm_output_external): New.
391 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
392 (ASM_OUTPUT_EXTERNAL): Define.
394 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
395 * tree-vrp.h (value_range_base::nonzero_p): New.
396 (value_range_base::set_nonnull): Rename to...
397 (value_range_base::set_nonzero): ...this.
398 (value_range_base::set_null): Rename to...
399 (value_range_base::set_zero): ...this.
400 (value_range::set_nonnull): Remove.
401 (value_range::set_null): Remove.
402 * tree-vrp.c (range_is_null): Remove.
403 (range_is_nonnull): Remove.
404 (extract_range_from_binary_expr): Use value_range_base::*zero_p
405 instead of range_is_*null.
406 (extract_range_from_unary_expr): Same.
407 (value_range_base::set_nonnull): Rename to...
408 (value_range_base::set_nonzero): ...this.
409 (value_range::set_nonnull): Remove.
410 (value_range_base::set_null): Rename to...
411 (value_range_base::set_zero): ...this.
412 (value_range::set_null): Remove.
413 (extract_range_from_binary_expr): Rename set_*null uses to
415 (extract_range_from_unary_expr): Same.
416 (union_helper): Same.
417 * vr-values.c (get_value_range): Use set_*zero instead of
419 (vr_values::extract_range_from_binary_expr): Same.
420 (vr_values::extract_range_basic): Same.
422 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
425 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
427 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
429 * config/aarch64/iterators.md (MAX_OPP): New code attr.
430 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
431 (aarch64_<su>abd<mode>_3): ... This.
432 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
434 2019-06-03 Richard Biener <rguenther@suse.de>
436 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
437 full reference tree and record in ref->ref.
438 (vn_reference_lookup_3): Pass in original ref to
439 ao_ref_init_from_vn_reference.
440 (vn_reference_lookup): Likewise.
441 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
442 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
443 Handle non-decl bases in the original reference.
445 2019-06-03 Martin Liska <mliska@suse.cz>
447 * doc/generic.texi: Remove Java Trees.
449 2019-06-03 Martin Liska <mliska@suse.cz>
451 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
452 returns 0 when operands are equal.
454 2019-06-03 Richard Biener <rguenther@suse.de>
456 PR tree-optimization/90716
457 * tree-loop-distribution.c (destroy_loop): Process blocks in
460 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
463 * vector-builder.h (vector_builder::count_dups): New method.
464 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
466 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
467 (vec_init<mode><Vel>): New pattern.
468 * config/aarch64/aarch64.c (emit_insr): New function.
469 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
470 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
471 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
472 (aarch64_sve_expand_vector_init): Define two overloaded functions.
474 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
476 PR tree-optimization/90681
477 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
478 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
479 special case for SLP, but fail on non-groupped loads.
481 2019-06-03 Martin Liska <mliska@suse.cz>
483 * cfg.c (debug): Use TDF_DETAILS for debug and
484 print edge info only once.
486 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
489 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
491 2019-06-01 Martin Sebor <msebor@redhat.com>
494 * tree-pretty-print.c (dump_generic_node): Add parentheses.
496 2019-05-31 Jan Hubicka <jh@suse.cz>
498 * alias.c: Include ipa-utils.h.
499 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
500 * ipa-devirt.c (prevailing_odr_type): New.
501 * ipa-utils.h (previaling_odr_type): Declare.
503 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
504 Hongtao Liu <hongtao.liu@intel.com>
507 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
508 NOTE_INSN_DELETED_LABEL check.
510 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
511 Robert Suchanek <robert.suchanek@mips.com>
513 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
514 and 3rd operands of the fmadd/fmsub/maddv builtin.
516 2019-05-31 Jakub Jelinek <jakub@redhat.com>
518 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
519 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
520 on OMP_SIMD if not nested inside of worksharing loop that also has
521 lastprivate conditional clause for the same decl.
522 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
523 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
525 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
527 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
529 (lower_lastprivate_clauses): Likewise.
530 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
531 calling lower_rec_input_clauses.
532 (lower_omp_for): Likewise.
533 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
534 clause on simd construct.
535 * omp-expand.c (expand_omp_simd): Initialize cond_var if
536 OMP_CLAUSE__CONDTEMP_ clause is present.
538 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
541 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
544 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
545 TEX_D32, TEX_D64 or TEX_D128.
547 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
549 * match.pd (~(vec?cst1:cst2)): New transformation.
551 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
553 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
554 ((size_t)(A /[ex] B) CMP C): New transformation.
556 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
558 * doc/md.texi: Document define_insn_and_rewrite.
559 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
560 * gensupport.c (queue_elem): Update comment.
561 (replace_operands_with_dups): New function.
562 (gen_rewrite_sequence): Likewise.
563 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
564 * read-rtl.c (apply_subst_iterator): Likewise.
565 (add_condition_to_rtx, named_rtx_p): Likewise.
566 (rtx_reader::read_rtx_operand): Likewise.
567 * config/aarch64/aarch64-sve.md
568 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
569 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
570 define_insn_and_rewrite.
571 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
572 Remove separate define_split.
574 2019-05-31 Jan Hubicka <jh@suse.cz>
576 * tree-ssa-alias.c (type_has_components_p): New function.
577 (aliasing_component_refs_p): Use it.
579 2019-05-31 Martin Liska <mliska@suse.cz>
581 * gdbhooks.py: Add const_tree to TreePrinter.
583 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
586 * common.opt (feliminate-unused-debug-symbols): Enable by default.
587 * doc/invoke.texi (Debugging Options): Document new default of
588 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
590 2019-05-31 Jakub Jelinek <jakub@redhat.com>
592 PR tree-optimization/90671
593 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
594 template_block used to be empty on the first call, don't use
595 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
596 seq with bb_seq and set it with set_bb_seq.
598 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
600 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
602 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
603 Michael Meissner <meissner@linux.ibm.com>
605 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
606 (prefixed_mem_operand): Likewise.
607 (non_prefixed_mem_operand): Likewise.
608 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
610 * config/rs6000/rs6000.c (print_operand_address): Handle
611 PC-relative addresses.
612 (mode_supports_prefixed_address_p): New function.
613 (rs6000_prefixed_address): New function.
614 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
615 (SYMBOL_REF_PCREL_P): Likewise.
617 2019-05-30 Jakub Jelinek <jakub@redhat.com>
619 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
620 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
621 (gimplify_omp_for): If worksharing loop with lastprivate conditional
622 is nested inside of parallel region, add _condtemp_ clause to both.
623 * tree-nested.c (convert_nonlocal_omp_clauses,
624 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
626 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
628 * omp-general.c (omp_extract_for_data): Compute it.
629 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
630 (lower_rec_input_clauses): Likewise.
631 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
632 clause is already present, just add one further one after it.
633 (lower_lastprivate_clauses): Handle cond_ptr with array type.
634 (lower_send_shared_vars): Clear _condtemp_ vars.
635 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
636 or section or taskgroup.
637 * omp-expand.c (determine_parallel_type): Disallow combining only if
638 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
639 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
640 (expand_omp_for_generic, expand_omp_for_static_nochunk,
641 expand_omp_for_static_chunk, expand_omp_for): Use
642 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
643 determine if a special set of API routines are needed and if condtemp
644 needs to be initialized, while always initialize cond_var if
645 fd->lastprivate_conditional is non-zero.
647 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
648 Michael Meissner <meissner@linux.ibm.com>
650 * config/rs6000/constraints.md (eI): New constraint.
651 * config/rs6000/predicates.md (cint34_operand): New predicate.
652 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
653 (SIGNED_34BIT_OFFSET_P): Likewise.
654 * doc/md.texi (eI): Document constraint.
656 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
658 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
660 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
661 Michael Meissner <meissner@linux.ibm.com>
663 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
664 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
665 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
666 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
667 (OTHER_FUTURE_MASKS): Likewise.
668 (POWERPC_MASKS): Likewise.
669 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
670 specified without -mprefixed-addr or -mcpu=future. Error if
671 -mprefixed-addr is specified without -mcpu=future.
672 (rs6000_opt_masks): Add entry for prefixed-addr.
673 * rs6000.opt (mprefixed-addr): New option.
675 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
677 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
678 cfun->is_thunk check.
680 2019-05-30 Jakub Jelinek <jakub@redhat.com>
682 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
685 2019-05-30 Martin Liska <mliska@suse.cz>
687 * gdbinit.in: Fix 'ptc' command. Add trt
688 that prints TREE_TYPE($).
690 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
691 Alan Modra <amodra@gmail.com>
693 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
695 (rs6000_indirect_call_template_1): ...and here.
696 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
697 plt16_ha, plt16_lo, mtctr indirect calls. Use
699 (rs6000_decl_ok_for_sibcall): New function.
700 (rs6000_function_ok_for_sibcall): Refactor.
701 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
702 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
703 when pcrel. Reorganize.
704 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
705 * rs6000.h (rs6000_pltseq_enum): New enum.
706 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
707 (*pltseq_tocsave): Use rs6000_pltseq_enum.
708 (*pltseq_plt16_ha): Likewise.
709 (*pltseq_plt16_lo): Likewise.
710 (*pltseq_mtctr): Likewise.
711 (*pltseq_plt_pcrel): New insn.
712 (*call_local_aix): Handle @notoc calls.
713 (*call_value_local_aix): Likewise.
714 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
715 (*call_value_nonlocal_aix): Likewise.
716 (*call_indirect_pcrel): New insn.
717 (*call_value_indirect_pcrel): Likewise.
720 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
722 * config/i386/sse.md (*save_multiple<mode>): Rename from
724 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
725 (*restore_multiple_and_return<mode>): Rename from
726 restore_multiple_and_return<mode>.
727 (*restore_multiple_leave_return<mode>): Rename from
728 restore_multiple_leave_return<mode>.
730 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
732 * config.gcc (rx-*-linux*): New target.
733 * config/rx/elf.opt: New file.
734 * config/rx/linux.h: Likewise.
735 * config/rx/t-linux: Likewise.
736 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
738 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
739 (ASM_APP_OFF): Likewise.
740 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
743 2019-05-29 Jan Hubicka <jh@suse.cz>
745 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
746 variants are pointer equivalent.
748 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
750 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
751 * config/aarch64/aarch64-sve2.md: New file.
752 (<u>avg<mode>3_floor): New pattern.
753 (<u>avg<mode>3_ceil): Likewise.
754 (*<sur>h<addsub><mode>): Likewise.
755 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
756 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
758 2019-05-29 Jakub Jelinek <jakub@redhat.com>
761 * optc-save-gen.awk: In cl_optimization_print, use correct condition
762 for var_opt_string printing. In cl_optimization_print_diff, print
763 (null) instead of invoking undefined behavior if one of the
764 var_opt_string pointers is NULL and use && instead of first || in the
765 guarding condition. For var_target_other options, handle const char *
766 target variables similarly to const char * optimize node variables.
768 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
770 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
771 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
772 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
773 Add autib1716 and pacib1716 initialisation.
774 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
775 for autib1716 and pacib1716.
776 * config/aarch64/aarch64-protos.h (aarch64_key_type,
777 aarch64_post_cfi_startproc): Define.
778 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
779 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
780 aarch64_handle_pac_ret_protection): Set default sign key to A.
781 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
782 aarch64_expand_prologue): Add check for b-key.
783 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
784 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
785 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
786 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
787 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
788 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
789 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
790 * config/aarch64/aarch64.md (do_return): Add check for b-key.
791 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
792 pauth_hint_num_a with pauth_hint_num.
793 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
794 pauth_hint_num_a with pauth_hint_num.
795 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
796 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
797 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
798 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
799 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
800 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
801 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
802 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
803 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
804 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
805 UNSPEC_AUTIA1716 respectively.
806 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
807 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
808 * doc/invoke.texi (-mbranch-protection): Add b-key type.
809 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
810 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
812 2019-05-29 Jakub Jelinek <jakub@redhat.com>
814 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
815 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
816 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
817 explicit clause on combined parallel into implicit shared clause.
818 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
819 and firstprivate if the decl has one too from combined parallel to
820 the worksharing construct.
822 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
823 Michael Meissner <meissner@linux.ibm.com>
825 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
827 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
829 * rtl.h (LABEL_REF_P): New #define.
831 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
833 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
835 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
837 * internal-fn.c: Marked mask_load_direct as vectorizable.
838 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
839 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
840 combined even if masks different with allow_slp_p param.
841 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
842 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
843 dissolve SLP-only vectorizable groups when SLP has been discarded.
844 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
845 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
847 (vect_build_slp_tree_1): Fixed comment typo.
848 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
849 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
851 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
853 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
855 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
857 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
858 Remove obsolete use_thunk reference.
859 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
860 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
861 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
862 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
863 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
864 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
865 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
866 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
867 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
869 2019-05-28 Nathan Sidwell <nathan@acm.org>
871 * tree.h (IDENTIFIER_ANON_P): New.
872 (anon_aggrname_format, anon_aggname_p): Don't declare.
873 (make_anon_name): Declare.
874 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
875 (hash_tree): Likewise.
876 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
877 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
878 (anon_cnt, make_anon_name): New.
880 2019-05-28 Martin Liska <mliska@suse.cz>
883 * opts-global.c (decode_options): Print help for all
884 help_option_arguments.
885 * opts.c (print_help): Add new argument.
886 (common_handle_option): Remember all values into
887 help_option_arguments.
888 * opts.h (print_help): Add new argument.
890 2019-05-28 Martin Liska <mliska@suse.cz>
893 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
894 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
895 (func_checker::compare_bb): Call compare_loops.
897 2019-05-27 Jakub Jelinek <jakub@redhat.com>
899 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
900 on sections construct.
901 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
903 (lower_omp_sections): Handle lastprivate conditional.
904 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
905 lastprivate_conditional_map.
906 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
908 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
909 critical, taskgroup and section regions when looking for a region
910 with non-NULL lastprivate_conditional_map.
912 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
914 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
915 (*ix86_gen_sub3): Ditto.
916 (*ix86_gen_sub3_carry): Ditto.
917 (*ix86_gen_one_cmpl2): Ditto.
918 (*ix86_gen_andsp): Ditto.
919 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
920 (gen_and2_insn): New static function.
921 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
922 Use gen_add3_insn instead of ix86_gen_add3.
923 (ix86_expand_split_stack_prologue): Use gen_add2_insn
924 instead of ix86_gen_add3.
925 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
926 Use gen_sub3_insn instead of ix86_gen_sub3.
927 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
928 instead of ix86_gen_add3.
929 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
930 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
931 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
932 * config/i386/i386-options.c (ix86_option_override_internal):
933 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
934 ix86_gen_one_cmpl2 and ix86_gen_andsp.
936 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
938 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
939 and DW_OP_GNU_const_index opcodes.
941 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
943 * config/i386/i386.h (STACK_SIZE_MODE): Define.
945 2019-05-27 Richard Biener <rguenther@suse.de>
947 PR tree-optimization/90637
948 * tree-ssa-sink.c (statement_sink_location): Honor the
949 computed sink location for single-uses.
951 2019-05-27 Richard Biener <rguenther@suse.de>
954 * match.pd (vec_perm): Avoid clobbering op0 when not generating
957 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
959 * config/i386/i386.md (@sub<mode>3_carry): Rename
960 from sub<mode>3_carry.
961 (@leave_<mode>): New expander.
962 (*leave): Rename from leave.
963 (*leave_rex64): Rename from leave_rex64.
964 (@monitorx_<mode>): Rename from monitorx_<mode>.
965 (@clzero_<mode>): Rename from clzero_<mode>.
966 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
967 from sse3_monitor_<mode>.
968 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
969 (*ix86_gen_leave): Ditto.
970 (*ix86_gen_monitor): Ditto.
971 (*ix86_gen_monitorx): Ditto.
972 (*ix86_gen_clzero): Ditto.
973 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
974 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
975 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
976 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
977 Use gen_sse3_monitor instead of ix86_gen_monitor.
978 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
979 instead of ix86_gen_monitorx.
980 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
981 instead of ix86_gen_clzero.
982 * config/i386/i386-options.c (ix86_option_override_internal):
983 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
984 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
986 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
988 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
989 Rename from tls_global_dynamic_64_<mode>.
990 (@tls_local_dynamic_base_64_<mode>): Rename from
991 tls_local_dynamic_base_64_<mode>.
992 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
993 Remove indirect function.
994 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
995 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
996 instead of ix86_gen_tls_global_dynamic_64.
997 Use gen_tls_local_dynamic_base_64 instead of
998 ix86_gen_tls_local_dynamic_base_64.
999 * config/i386/i386-options.c (ix86_option_override_internal):
1000 Do not initialize ix86_gen_tls_global_dynamic_64 and
1001 ix86_gen_tls_local_dynamic_base_64.
1003 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1005 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1006 Rename from pro_epilogue_adjust_stack_<mode>_add.
1007 (@pro_epilogue_adjust_stack_sub_<mode>)
1008 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1009 (@allocate_stack_worker_probe_<mode>):
1010 Rename from allocate_stack_worker_probe_<mode>.
1011 (allocate_stack): Use gen_allocate_stack_worker_probe.
1012 (probe_stack): Use gen_probe_stack_1.
1013 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1014 (@adjust_stack_and_probe_<mode>): Rename from
1015 adjust_stack_and_probe<mode>.
1016 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1017 (stack_protect_set): Use gen_stack_protect_set_1.
1018 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1019 (stack_protect_test): Use gen_stack_protect_test_1.
1020 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1021 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1022 Remove indirect function.
1023 (*ix86_gen_adjust_stack_and_probe): Ditto.
1024 (*ix86_gen_probe_stack_range): Ditto.
1025 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1026 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1027 (ix86_adjust_stack_and_probe_stack_clash): Use
1028 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1029 (ix86_adjust_stack_and_probe): Ditto.
1030 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1031 of ix86_gen_probe_stack_range.
1032 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1033 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1034 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1035 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1036 CODE_FOR_stack_protect_test_{si,di}.
1037 * config/i386/i386-options.c (ix86_option_override_internal):
1038 Do not initialize ix86_gen_allocate_stack_worker,
1039 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1041 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1043 * doc/invoke.texi (Link Options): Many editorial changes around
1046 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1048 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1049 pre-Solaris 11 referene and most Studio compiler details.
1051 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1054 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1055 DImode to SImode in floating-point registers on 64-bit target.
1056 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1057 register_operand in xmpyu patterns.
1059 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1061 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1062 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1063 OMP_CLAUSE__REDUCTEMP_.
1064 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1065 OMP_CLAUSE__CONDTEMP_.
1066 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1067 * tree-pretty-print.c (dump_omp_clause): Likewise.
1068 * tree-nested.c (convert_nonlocal_omp_clauses,
1069 convert_local_omp_clauses): Likewise.
1070 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1071 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1072 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1074 (gimplify_omp_for): Warn and disable conditional modifier from
1075 lastprivate on loop iterators.
1076 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1078 * omp-general.c (omp_extract_for_data): Initialize it.
1079 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1081 (delete_omp_context): Delete it.
1082 (lower_lastprivate_conditional_clauses): New function.
1083 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1084 handle lastprivate conditional clauses.
1085 (lower_reduction_clauses): Add CLIST argument, emit it into
1086 the critical section if any.
1087 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1088 lower_reduction_clauses callers.
1089 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1090 to lower_lastprivate_clauses.
1091 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1092 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1093 clist into a critical section if not emitted there already by
1094 lower_reduction_clauses.
1095 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1097 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1098 conditional variables.
1099 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1101 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1102 expand_omp_for_static_chunk): Handle lastprivate conditional.
1103 (expand_omp_for): Handle fd.lastprivate_conditional like
1106 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1108 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1109 kernel does not exit cleanly.
1110 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1112 2019-05-24 Jason Merrill <jason@redhat.com>
1115 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1117 2019-05-24 Richard Biener <rguenther@suse.de>
1120 * tree-loop-distribution.c (struct partition): Add location
1122 (partition_alloc): Initialize all fields.
1123 (generate_memset_builtin): Use the location recorded in the
1124 partition for the generated call.
1125 (generate_memcpy_builtin): Likewise.
1126 (classify_partition): Record the location of a single store
1127 as location for the partition.
1129 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1131 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1134 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1137 * common/config/aarch64/aarch64-common.c
1138 (aarch64_rewrite_selected_cpu): Change local temporary variable
1139 type from unsigned long to uint64_t.
1140 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1141 aarch64_get_extension_string_for_isa_flags): Change declaration to
1142 match new definition by replacing unsigned long with uint64_t.
1144 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1147 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1148 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1149 Handle stack_protect_test_<mode> codegen similarly to corresponding
1152 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1154 * config/i386/darwin.h: Reject -mfentry*.
1155 * doc/sourcebuild.texi: Document mfentry target support.
1157 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1159 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1160 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1161 false for PC-relative functions.
1162 (rs6000_output_function_prologue): Change called function name to
1163 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1164 name,1" for PC-relative functions.
1165 (rs6000_elf_declare_function_name): Change called function name to
1166 rs6000_global_entry_point_prologue_needed_p.
1168 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1171 * config/i386/i386.c (gen_rtx_cost):
1172 Use ix86_tune_cost instead of ix86_cost.
1174 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1175 Michael Meissner <meissner@linux.ibm.com>
1176 Segher Boessenkool <segher@kernel.crashing.org>
1178 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1180 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1181 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1182 (rs6000_fndecl_pcrel_p): Likewise.
1183 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1184 error if -mpcrel is requested without -mcpu=future.
1185 (rs6000_opt_masks): Add entry for pcrel.
1186 (rs6000_fndecl_pcrel_p): New function.
1187 (rs6000_pcrel_p): Likewise.
1188 * config/rs6000/rs6000.opt (mpcrel): New option.
1189 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1191 2019-05-23 Jan Hubicka <jh@suse.cz>
1192 Martin Liska <mliska@suse.cz>
1194 PR tree-optimization/90576
1195 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1197 (aliasing_component_refs_p): Fix three way size compare conditional;
1198 give up earlier in case we can not decide on equivalence.
1200 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1201 Michael Meissner <meissner@linux.ibm.com>
1202 Segher Boessenkool <segher@kernel.crashing.org>
1204 * config.gcc: Add future cpu.
1205 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1206 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1208 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1209 (RS6000_CPU): New instantiation for future cpu.
1210 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1212 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1213 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1214 * config/rs6000/rs6000-tables.opt: Regenerate.
1215 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1216 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1217 (rs6000_machine_from_flags): Handle future cpu.
1218 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1219 PROCESSOR_POWER9 for now.
1220 (rs6000_adjust_cost): Likewise.
1221 (rs6000_issue_rate): Likewise.
1222 (rs6000_register_move_cost): Likewise.
1223 (rs6000_opt_masks): Add entry for future.
1224 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1225 (MASK_FUTURE): New #define.
1226 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1227 * config/rs6000/rs6000.opt (mfuture): New target option.
1228 * doc/invoke.texi (mcpu): Add future cpu.
1230 2019-05-23 Martin Liska <mliska@suse.cz>
1233 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1234 operation points to a temporary (pointed via tree_to_wide_ref)
1235 that is out of scope after the &.
1237 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1240 * doc/extend.texi (Function Names): Add missing word.
1242 2019-05-23 Richard Biener <rguenther@suse.de>
1244 PR tree-optimization/88440
1245 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1247 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1249 (generate_memcpy_builtin): Likewise.
1250 (distribute_loop): Pass in whether to only distribute patterns.
1251 (prepare_perfect_loop_nest): Also allow size optimization.
1252 (pass_loop_distribution::execute): When optimizing a loop
1253 nest for size allow pattern replacement.
1255 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1258 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1261 2019-05-23 Martin Liska <mliska@suse.cz>
1264 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1265 expression similarly to gimplify_decl_expr.
1267 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1269 * cse.c (cse_dump_path): s/dump_file/f.
1271 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1274 * diagnostic-format-json.cc: Include "selftest.h".
1275 (json_from_expanded_location): Only add "file" key for non-NULL
1277 (json_from_location_range): Don't add "start" and "finish"
1278 children if they are UNKNOWN_LOCATION.
1279 (selftest::test_unknown_location): New selftest.
1280 (selftest::test_bad_endpoints): New selftest.
1281 (selftest::diagnostic_format_json_cc_tests): New function.
1282 * json.cc (json::object::get): New function.
1283 (selftest::test_object_get): New selftest.
1284 (selftest::json_cc_tests): Call it.
1285 * json.h (json::object::get): New decl.
1286 * selftest-run-tests.c (selftest::run_tests): Call
1287 selftest::diagnostic_format_json_cc_tests.
1288 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1291 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1292 Andrew Stubbs <amd@codesourcery.com>
1294 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1295 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1296 (kernel): Rename to...
1297 (main_kernel): ... this.
1298 (load_image): Load _init_array and _fini_array kernels.
1299 (run): Add argument for kernel to run.
1300 (main): Run init_array_kernel before main_kernel, and
1301 fini_array_kernel after.
1302 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1303 amdgpu_hsa_kernel attribute on functions.
1304 (gcn_disable_constructors): Delete.
1305 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1306 * config/gcn/crt0.c (size_t): Define.
1307 (_init_array, _fini_array): New.
1308 (__preinit_array_start, __preinit_array_end,
1309 __init_array_start, __init_array_end,
1310 __fini_array_start, __fini_array_end): Declare weak references.
1312 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1314 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1316 2019-05-22 Jason Merrill <jason@redhat.com>
1318 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1320 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1323 * config/i386/i386-options.c (ix86_init_machine_status): Set
1324 stack_frame_required to true.
1325 * config/i386/i386.c (ix86_get_frame_size): New function.
1326 (ix86_frame_pointer_required): Replace get_frame_size with
1327 ix86_get_frame_size.
1328 (ix86_compute_frame_layout): Likewise.
1329 (ix86_find_max_used_stack_alignment): Changed to void. Set
1330 stack_frame_required.
1331 (ix86_finalize_stack_frame_flags): Always call
1332 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1333 ix86_get_frame_size.
1334 * config/i386/i386.h (machine_function): Add stack_frame_required.
1336 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1338 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1340 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1342 * common/config/aarch64/aarch64-common.c
1343 (struct aarch64_option_extension, struct processor_name_to_arch,
1344 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1345 aarch64_contains_opt,
1346 aarch64_get_extension_string_for_isa_flags): Change type of
1347 variables storing flags to uint64_t.
1348 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1349 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1350 * config/aarch64/aarch64.c (struct processor,
1351 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1352 aarch64_validate_march, aarch64_override_options,
1353 aarch64_option_print, aarch64_handle_attr_isa_flags,
1354 aarch64_declare_function_name, aarch64_start_file): Make flag
1356 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1357 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1358 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1359 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1360 * config/aarch64/driver-aarch64.c
1361 (struct aarch64_arch_extension, struct aarch64_core_data,
1362 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1363 flag variables uint64_t.
1364 * doc/invoke.texi: Add documentation for new arguments.
1366 2019-05-22 Richard Biener <rguenther@suse.de>
1368 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1370 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1372 2019-05-22 Martin Liska <mliska@suse.cz>
1375 * doc/extend.texi: Document the change.
1377 2019-05-22 Richard Biener <rguenther@suse.de>
1379 PR tree-optimization/90450
1380 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1381 (mem_ref_hasher::equal): Check it.
1382 (mem_ref_alloc): Initialize it.
1383 (gather_mem_refs_stmt): Set it.
1385 2019-05-22 Richard Biener <rguenther@suse.de>
1387 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1389 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1392 2019-05-22 Alan Modra <amodra@gmail.com>
1394 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1395 (ASM_CPU_SPEC): Conditionally add -many.
1396 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1397 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1398 (rs6000_file_start): ..extracted from here, and modified to
1400 (rs6000_output_function_prologue): Emit .machine as necessary.
1401 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1403 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1404 added by check_vect_support_and_set_flags.
1405 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1406 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1408 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1411 * ira-lives.c (process_bb_node_lives): Consider defs
1412 for a call insn to be die before the call, not after.
1414 * function.c (assign_parm_setup_block): Raise alignment of
1415 stacked parameter only for STRICT_ALIGNMENT targets.
1417 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1419 * config/rs6000/constraints.md (define_register_constraint "wz"):
1421 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1422 RS6000_CONSTRAINT_wz.
1423 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1424 (rs6000_init_hard_regno_mode_ok): Adjust.
1425 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1426 * doc/md.texi (Machine Constraints): Adjust.
1428 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1430 * config/rs6000/constraints.md (define_register_constraint "wl"):
1432 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1433 RS6000_CONSTRAINT_wl.
1434 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1435 (rs6000_init_hard_regno_mode_ok): Adjust.
1436 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1437 * doc/md.texi (Machine Constraints): Adjust.
1439 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1441 * config/rs6000/constraints.md (define_register_constraint "wm"):
1443 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1444 RS6000_CONSTRAINT_wm.
1445 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1446 (rs6000_init_hard_regno_mode_ok): Adjust.
1447 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1448 * doc/md.texi (Machine Constraints): Adjust.
1450 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1452 * config/rs6000/constraints.md (define_register_constraint "wk"):
1454 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1455 RS6000_CONSTRAINT_wk.
1456 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1457 (rs6000_init_hard_regno_mode_ok): Adjust.
1458 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1459 * doc/md.texi (Machine Constraints): Adjust.
1461 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1463 * config/rs6000/constraints.md (define_register_constraint "wj"):
1465 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1466 RS6000_CONSTRAINT_wj.
1467 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1468 (rs6000_init_hard_regno_mode_ok): Adjust.
1469 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1471 * config/rs6000/vsx.md: Ditto.
1472 * doc/md.texi (Machine Constraints): Adjust.
1474 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1476 * config/rs6000/constraints.md (define_register_constraint "wh"):
1478 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1479 RS6000_CONSTRAINT_wh.
1480 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1481 (rs6000_init_hard_regno_mode_ok): Adjust.
1482 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1483 * doc/md.texi (Machine Constraints): Adjust.
1485 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1488 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1489 Avoid calling gen_lowpart with CONST operand.
1491 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1493 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1494 field template_last_to_copy.
1495 (ssa_create_duplicates): Set it, and use it. Attempt to
1496 preserve more debug stmts.
1498 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1500 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1501 (signbit<mode>2): New expander
1503 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1506 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1507 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1509 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1511 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1512 %ebx and %ecx bafore calling cpuid with leaf 1 or
1513 non-constant leaf argument.
1515 2019-05-21 Alan Modra <amodra@gmail.com>
1518 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1519 power9 direct move cost.
1520 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1521 Correct comments and rename functions to suit parameters.
1523 2019-05-21 Richard Biener <rguenther@suse.de>
1526 * fold-const.c (fold_read_from_vector): New function.
1527 * fold-const.h (fold_read_from_vector): Declare.
1528 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1529 single-element insert permutations. Canonicalize selector
1530 further and fix issue with last commit.
1532 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1534 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1535 parameter with default value false to declaration.
1536 (split_edges_for_insertion): New inline function. Wrapper for
1537 split_critical_edges with for_edge_insertion_p = true.
1538 * tree-cfg.c (split_critical_edges): Don't split non-critical
1539 edges if for_edge_insertion_p is false. Fix whitespace.
1540 * tree-ssa-pre.c (pass_pre::execute): Call
1541 split_edges_for_insertion instead of split_critical_edges.
1542 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1543 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1544 (pass_data_sink_code): Update function name in the comment.
1546 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1548 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1549 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1550 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1551 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1554 2019-05-21 Martin Liska <mliska@suse.cz>
1556 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1558 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1559 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1561 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1563 (rs6000_function_arg): Likewise.
1564 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1565 (rs6000_expand_ternop_builtin): Use interval syntax.
1566 (get_element_number): Likewise.
1567 (altivec_expand_builtin): Likewise.
1568 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1572 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1576 * function.h (struct function): Add calls_eh_return member.
1577 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1578 gimplifying __builtin_eh_return call.
1579 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1581 (expand_call_inline): Or in src_cfun->calls_eh_return into
1582 dst_cfun->calls_eh_return.
1583 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1584 cfun->calls_eh_return.
1585 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1586 * lto-streamer-out.c (output_struct_function_base): Write
1589 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1591 PR rtl-optimization/43147
1592 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1593 IX86_BUILTIN_SHUFPD.
1595 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1597 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1598 (refs_may_alias_p_1): ... here; update stats.
1599 (refs_may_alias_p): Do not update stats here.
1601 2019-05-20 Richard Biener <rguenther@suse.de>
1603 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1604 doesn't produce pointers.
1605 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1606 the first operand points to.
1608 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1610 * tree-ssa-alias.c (compare_sizes): New function.
1611 (sompare_type_sizes): New function
1612 (aliasing_component_refs_p): Use it.
1613 (indirect_ref_may_alias_decl_p): Likewise.
1615 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1617 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1619 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1621 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1622 (LIBLSAN_EARLY_SPEC): Likewise.
1623 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1625 2019-05-20 Martin Liska <mliska@suse.cz>
1627 * config/i386/i386.c (ix86_libc_has_fast_function):
1628 Add ATTRIBUTE_UNUSED for the argument.
1630 2019-05-20 Richard Biener <rguenther@suse.de>
1632 * gimple-match-head.c: Include vec-perm-indices.h.
1633 * generic-match-head.c: Likewise.
1634 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1636 * fold-const.c (fold_vec_perm): Export.
1637 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1638 (match.pd): ...here.
1640 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1642 * cfgloop.h (struct loop): Add simdlen member.
1643 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1644 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1645 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1646 as new argument to autovectorize_vector_sizes target hook. If
1647 loop->simdlen, pick up vector size where the vectorization factor
1648 is equal to loop->simd, and if there is none, fall back to the first
1650 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1652 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1653 * omp-general.c (omp_max_vf): Likewise.
1654 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1655 * tree-vect-slp.c (vect_slp_bb): Likewise.
1656 * target.def (autovectorize_vector_sizes): Add ALL argument and
1658 * doc/tm.texi: Adjust documentation.
1659 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1660 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1661 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1663 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1664 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1665 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1666 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1667 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1668 preferred vector size is not 512-bit or 256-bit, just put those
1669 unpreferred ones last.
1671 2019-05-20 Martin Liska <mliska@suse.cz>
1673 * targhooks.c (default_libc_has_fast_function): New function.
1674 * targhooks.h (default_libc_has_fast_function): Likewise.
1676 2019-05-20 Martin Liska <mliska@suse.cz>
1679 * builtins.c (expand_builtin_memory_copy_args): When having a
1680 target with fast mempcpy implementation do now use memcpy.
1681 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1682 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1683 * doc/tm.texi: Likewise.
1684 * doc/tm.texi.in: Likewise.
1686 * expr.c (emit_block_move_hints): Add 2 new arguments.
1687 * expr.h (emit_block_move_hints): Bail out when libcall
1688 to memcpy would be used.
1690 2019-05-20 Martin Liska <mliska@suse.cz>
1692 * profile-count.c: Add vertical spacing in order
1693 to separate functions.
1694 * profile-count.h: Likewise.
1696 2019-05-20 Martin Liska <mliska@suse.cz>
1698 * profile-count.h: Do not use full qualified
1700 * profile-count.c (profile_count::to_frequency): Likewise.
1702 2019-05-20 Martin Liska <mliska@suse.cz>
1704 * profile-count.h (enum profile_quality): Use capital letters
1705 for enum value names. Use the adjusted names.
1706 * profile-count.c: Use the adjusted names.
1708 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1710 * config/rs6000/constraints.md (define_register_constraint "wH"):
1712 (define_register_constraint "wI"): Delete.
1713 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1714 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1715 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1716 (rs6000_init_hard_regno_mode_ok): Adjust.
1717 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1718 resp. "d", or with "wa" as appropriate, all with "p8v".
1719 * config/rs6000/vsx.md: Ditto.
1720 * doc/md.texi (Machine Constraints): Adjust.
1722 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1724 * config/rs6000/constraints.md (define_register_constraint "wy"):
1726 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1727 RS6000_CONSTRAINT_wy.
1728 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1729 (rs6000_init_hard_regno_mode_ok): Adjust.
1730 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1731 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1732 (define_mode_attr Fisa): New.
1733 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1734 * doc/md.texi (Machine Constraints): Adjust.
1736 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1738 * config/rs6000/constraints.md (define_register_constraint "wu"):
1740 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1741 RS6000_CONSTRAINT_wu.
1742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1743 (rs6000_init_hard_regno_mode_ok): Adjust.
1744 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1746 (define_mode_attr Fa): Delete.
1747 * config/rs6000/vsx.md: Ditto.
1748 * doc/md.texi (Machine Constraints): Adjust.
1750 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1752 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1754 (define_register_constraint "wK"): Delete.
1755 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1756 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1757 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1758 (rs6000_init_hard_regno_mode_ok): Adjust.
1759 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1760 Replace "wK" constraint by "wH" with "p9v".
1761 * config/rs6000/vsx.md: Ditto.
1762 * doc/md.texi (Machine Constraints): Adjust.
1764 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1766 * config/rs6000/constraints.md (define_register_constraint "wb"):
1768 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1769 RS6000_CONSTRAINT_wb.
1770 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1771 (rs6000_init_hard_regno_mode_ok): Adjust.
1772 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1773 * config/rs6000/vsx.md: Ditto.
1774 * doc/md.texi (Machine Constraints): Adjust.
1776 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1778 * config/rs6000/constraints.md (define_register_constraint "wo"):
1780 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1781 RS6000_CONSTRAINT_wo.
1782 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1783 (rs6000_init_hard_regno_mode_ok): Adjust.
1784 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1785 * config/rs6000/altivec.md: Ditto.
1786 * doc/md.texi (Machine Constraints): Adjust.
1788 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1790 * config/darwin-c.c (darwin_register_objc_includes): Do not
1791 prepend the sysroot when building gnu-runtime header search
1794 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1796 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1797 instead of direct output of the asm.
1799 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1801 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1802 argument to be type bool (was int before).
1803 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1804 at first use. Use type bool for some variables. Fix a theoretical
1805 eh_return bug for svr4.
1807 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1809 * config/rs6000/rs6000.md (isa): New attribute.
1810 (enabled): New attribute.
1812 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1814 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1815 assemble_start_function and assemble_end_function.
1817 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1820 * omp-general.c (oacc_verify_routine_clauses): Change formal
1821 parameters. Add checking if already marked with an OpenACC
1822 'routine' directive. Adjust all users.
1825 * omp-general.c (oacc_build_routine_dims): Move some of its
1827 (oacc_verify_routine_clauses): ... this new function.
1828 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1830 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1832 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1833 formating of picbase labels to match other ports.
1835 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1837 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1838 in the generated code.
1840 2019-05-16 Martin Sebor <msebor@redhat.com>
1842 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1843 identifiers, keywords, operators, and types in diagnostics. Correct
1844 quoting, spelling, and sentence capitalization issues.
1845 (expand_builtin_atomic_is_lock_free): Same.
1846 (fold_builtin_next_arg): Same.
1847 * cfgexpand.c (expand_one_var): Same.
1848 (tree_conflicts_with_clobbers_p): Same.
1849 (expand_asm_stmt): Same.
1850 (verify_loop_structure): Same.
1851 * cgraphunit.c (process_function_and_variable_attributes): Same.
1852 * collect-utils.c (collect_execute): Same.
1853 * collect2.c (maybe_run_lto_and_relink): Same.
1854 (is_lto_object_file): Same.
1855 (scan_prog_file): Same.
1856 * convert.c (convert_to_real_1): Same.
1857 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1858 * except.c (verify_eh_tree): Same.
1859 * gcc.c (execute): Same.
1860 (eval_spec_function): Same.
1861 (run_attempt): Same.
1862 (driver::set_up_specs): Same.
1863 (compare_debug_auxbase_opt_spec_function): Same.
1864 * gcov-tool.c (unlink_gcda_file): Same.
1867 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1868 * gimplify.c (gimplify_asm_expr): Same.
1869 (gimplify_adjust_omp_clauses): Same.
1870 * hsa-gen.c (gen_hsa_addr_insns): Same.
1871 (gen_hsa_insns_for_load): Same.
1872 (gen_hsa_cmp_insn_from_gimple): Same.
1873 (gen_hsa_insns_for_operation_assignment): Same.
1874 (gen_get_level): Same.
1875 (gen_hsa_alloca): Same.
1876 (omp_simple_builtin::generate): Same.
1877 (gen_hsa_atomic_for_builtin): Same.
1878 (gen_hsa_insns_for_call): Same.
1879 * input.c (dump_location_info): Same.
1880 * ipa-devirt.c (compare_virtual_tables): Same.
1881 * ira.c (ira_setup_eliminable_regset): Same.
1882 * lra-assigns.c (lra_assign): Same.
1883 * lra-constraints.c (lra_constraints): Same.
1884 * lto-streamer-in.c (lto_input_mode_table): Same.
1885 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1886 (merge_and_complain): Same.
1887 (compile_offload_image): Same.
1888 (compile_images_for_offload_targets): Same.
1889 (debug_objcopy): Same.
1892 * opts.c (print_specific_help): Same.
1893 (parse_no_sanitize_attribute): Same.
1895 (handle_param): Same.
1896 * plugin.c (add_new_plugin): Same.
1897 (parse_plugin_arg_opt): Same.
1898 (try_init_one_plugin): Same.
1899 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1900 operators, and types in diagnostics. Correct quoting and spelling
1902 * read-rtl-function.c (parse_edge_flag_token): Same.
1903 (function_reader::parse_enum_value): Same.
1904 * reg-stack.c (check_asm_stack_operands): Same.
1905 * regcprop.c (validate_value_data): Same.
1906 * sched-rgn.c (make_pass_sched_fusion): Same.
1907 * stmt.c (check_unique_operand_names): Same.
1908 * targhooks.c (default_target_option_pragma_parse): Same.
1909 * tlink.c (recompile_files): Same.
1910 * toplev.c (process_options): Same.
1912 * trans-mem.c (diagnose_tm_1): Same.
1913 (ipa_tm_scan_irr_block): Same.
1914 (ipa_tm_diagnose_transaction): Same.
1915 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1916 format a tree code name in a diagnostic.
1917 (verify_types_in_gimple_min_lval): Same.
1918 (verify_types_in_gimple_reference): Same.
1919 (verify_gimple_call): Same.
1920 (verify_gimple_assign_unary): Same.
1921 (verify_gimple_assign_binary): Same.
1922 (verify_gimple_assign_ternary): Same.
1923 (verify_gimple_assign_single): Same.
1924 (verify_gimple_switch): Same.
1925 (verify_gimple_label): Same.
1926 (verify_gimple_phi): Same.
1927 (verify_gimple_in_seq): Same.
1928 (verify_eh_throw_stmt_node): Same.
1929 (collect_subblocks): Same.
1930 (gimple_verify_flow_info): Same.
1931 (do_warn_unused_result): Same.
1932 * tree-inline.c (expand_call_inline): Same.
1933 * tree-into-ssa.c (update_ssa): Same.
1934 * tree.c (tree_int_cst_elt_check_failed): Same.
1935 (tree_vec_elt_check_failed): Same.
1936 (omp_clause_operand_check_failed): Same.
1937 (verify_type_variant): Same.
1938 (verify_type): Same.
1939 * value-prof.c (verify_histograms): Same.
1940 * varasm.c (assemble_start_function): Same.
1942 2019-05-16 Martin Sebor <msebor@redhat.com>
1944 * config/i386/i386-expand.c (get_element_number): Quote keywords
1945 and other internal names in diagnostics. Adjust other diagnostic
1946 formatting issues noted by -Wformat-diag.
1947 * config/i386/i386-features.c
1948 (ix86_mangle_function_version_assembler_name): Same.
1949 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1950 * config/i386/i386.c (ix86_function_type_abi): Same.
1951 (ix86_function_ms_hook_prologue): Same.
1952 (classify_argument): Same.
1953 (ix86_expand_prologue): Same.
1954 (ix86_md_asm_adjust): Same.
1955 (ix86_memmodel_check): Same.
1957 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1959 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1960 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1963 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
1966 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1967 intrinsics without SSE/SSE2/SSSE3.
1968 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1970 (*mmx_uavgv8qi3): Likewise.
1972 2019-05-17 Richard Biener <rguenther@suse.de>
1974 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1975 VEC_PERM_EXPR as __VEC_PERM with -gimple.
1977 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
1979 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1980 vec_sldw insn pattern.
1982 2019-05-17 Richard Biener <rguenther@suse.de>
1984 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1986 2019-05-17 Martin Liska <mliska@suse.cz>
1989 * toplev.c (output_stack_usage): With LTO and sanitizer it
1990 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1991 has no file location.
1993 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1996 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1997 sz0 is equal to sz1, instead return false in that case.
1999 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2000 has non-constant expression, force sctx.lane and use two
2001 argument IFN_GOMP_SIMD_LANE instead of single argument.
2002 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2003 two argument IFN_GOMP_SIMD_LANE without lhs.
2004 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2006 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2008 (LOOP_REQUIRES_VERSIONING): Or in
2009 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2010 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2012 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2013 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2014 from simd if clause if needed.
2016 2019-05-16 Richard Biener <rguenther@suse.de>
2018 * tree-affine.c (expr_to_aff_combination): New function split
2020 (tree_to_aff_combination): ... here.
2021 (aff_combination_expand): Avoid building a GENERIC tree.
2023 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2025 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2026 assemble_start_function and assemble_end_function calls.
2027 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2028 assemble_start_function and assemble_end_function.
2029 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2030 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2031 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2032 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2033 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2034 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2035 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2036 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2037 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2038 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2039 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2040 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2042 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2043 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2044 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2045 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2046 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2047 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2048 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2049 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2050 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2051 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2052 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2053 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2054 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2055 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2057 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2058 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2059 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2061 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2063 * tree-ssa-alias.c (alias_stats): Add
2064 aliasing_component_refs_p_may_alias and
2065 aliasing_component_refs_p_no_alias.
2066 (dump_alias_stats): Print aliasing_component_refs_p stats.
2067 (aliasing_component_refs_p): Update stats.
2069 2019-05-16 Martin Liska <mliska@suse.cz>
2072 * multiple_target.c (expand_target_clones): Do not allow
2073 target_clones being used with a symbol that is an alias.
2075 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2077 PR tree-optimization/90394
2078 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2079 positives rather than ICE for cases where (code2 == NE_EXPR
2080 && code1 == BIT_AND_EXPR).
2082 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2085 * tree-core.h (struct tree_decl_common): Document
2086 decl_nonshareable_flag for PARM_DECLs.
2087 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2088 * calls.c (expand_call): Don't try tail call if caller
2089 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2090 passed on the stack and callee needs to pass any arguments on the
2092 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2093 else if instead of series of mutually exclusive ifs. Handle
2094 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2095 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2097 * lto-streamer.h (LTO_major_version): Bump to 9.
2099 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2101 PR tree-optimization/90106
2102 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2103 new parameter as new internal function call, also move it to new
2105 (use_internal_fn): Pass internal function call to
2106 shrink_wrap_one_built_in_call_with_conds.
2108 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2110 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2112 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2113 safelen_int and set loop->dont_vectorize.
2115 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2118 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2120 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2122 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2123 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2124 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2127 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2130 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2131 define_insn_and_split to support SSE emulation.
2132 (*vec_extractv2sf_0): Likewise.
2133 (*vec_extractv2sf_1): Likewise.
2134 (*vec_extractv2si_0): Likewise.
2135 (*vec_extractv2si_1): Likewise.
2136 (*vec_extractv2si_zext_mem): Likewise.
2137 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2138 (vec_extractv2sf_1 splitter): Likewise.
2139 (vec_extractv2sfsf): Likewise.
2140 (vec_setv2si): Likewise.
2141 (vec_extractv2si_1 splitter): Likewise.
2142 (vec_extractv2sisi): Likewise.
2143 (vec_setv4hi): Likewise.
2144 (vec_extractv4hihi): Likewise.
2145 (vec_setv8qi): Likewise.
2146 (vec_extractv8qiqi): Likewise.
2147 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2148 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2149 (vec_extractv2sisi): Likewise.
2150 (vec_extractv4hihi): Likewise.
2151 (vec_extractv8qiqi): Likewise.
2152 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2153 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2154 (vec_initv2sisi): Likewise.
2155 (vec_initv4hihi): Likewise.
2156 (vec_initv8qiqi): Likewise.
2157 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2158 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2159 (vec_setv4hi): Likewise.
2160 (vec_setv8qi): Likewise.
2162 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2165 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2166 TARGET_MMX_WITH_SSE.
2167 (MMXMODE:*mov<mode>_internal): Likewise.
2168 (MMXMODE:movmisalign<mode>): Likewise.
2170 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2173 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2174 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2175 (sse2_cvtpd2pi): Ditto.
2176 (sse2_cvttpd2pi): Ditto.
2177 (*vec_concatv2sf_sse4_1): Ditto.
2178 (*vec_concatv2sf_sse): Ditto.
2179 (*vec_concatv2si_sse4_1): Ditto.
2180 (*vec_concatv2si): Ditto.
2181 (*vec_concatv4si_0): Ditto.
2182 (*vec_concatv2di_0): Ditto.
2184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2187 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2189 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2192 * config/i386/sse.md (ssse3_palignrdi): Changed to
2193 define_insn_and_split to support SSE emulation.
2195 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2198 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2200 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2203 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2204 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2207 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2210 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2211 or TARGET_MMX_WITH_SSE.
2212 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2217 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2219 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2222 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2223 Changed to define_insn_and_split to support SSE emulation.
2225 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2228 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2229 Changed to define_insn_and_split to support SSE emulation.
2231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2234 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2235 (*mmx_<emms>): This.
2236 (mmx_<emms>): New expander.
2238 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2241 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2243 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2248 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2250 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2253 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2255 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2258 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2259 TARGET_MMX_WITH_SSE.
2260 (*mmx_uavgv4hi3): Add SSE emulation.
2262 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2265 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2266 and TARGET_MMX_WITH_SSE.
2267 (*mmx_uavgv8qi3): Add SSE emulation.
2269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2272 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2273 maskmovdqu for __MMX_WITH_SSE__.
2275 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2278 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2279 TARGET_MMX and TARGET_MMX_WITH_SSE.
2280 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2282 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2285 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2286 define_insn_and_split to support SSE emulation.
2288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2291 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2292 and TARGET_MMX_WITH_SSE.
2293 (mmx_<code>v8qi3): Likewise.
2294 (smaxmin:<code>v4hi3): New.
2295 (umaxmin:<code>v8qi3): Likewise.
2296 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2297 (umaxmin:*mmx_<code>v8qi3): Likewise.
2299 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2302 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2303 TARGET_MMX_WITH_SSE.
2304 (*mmx_pinsrw): Add SSE emulation.
2306 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2309 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2311 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2314 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2315 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2318 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2321 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2322 (sse_cvttps2pi): Likewise.
2324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2327 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2328 TARGET_MMX_WITH_SSE.
2329 (mmx_pshufw_1): Add SSE emulation.
2330 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2331 TARGET_MMX_WITH_SSE to support SSE emulation.
2333 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2336 * config/i386/constraints.md (Yw): New constraint.
2337 * config/i386/mmx.md (*vec_dupv2si): Changed to
2338 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2339 support SSE emulation.
2341 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2344 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2345 TARGET_MMX_WITH_SSE.
2346 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2348 (mmx_gt<mode>3): Likewise.
2350 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2353 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2354 TARGET_MMX_WITH_SSE. Add SSE support.
2356 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2359 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2360 TARGET_MMX_WITH_SSE.
2361 (any_logic:<code><mode>3): New.
2362 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2365 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2368 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2369 TARGET_MMX_WITH_SSE. Add SSE emulation.
2370 (mmx_<shift_insn><mode>3): Likewise.
2372 (<shift_insn><mode>3): Likewise.
2374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2377 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2378 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2380 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2383 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2384 TARGET_MMX_WITH_SSE.
2385 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2391 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2392 TARGET_MMX_WITH_SSE.
2394 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2400 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2401 (plusminus:mmx_<plusminus_insn><mode>3): Check
2402 TARGET_MMX_WITH_SSE.
2403 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2404 (<plusminus_insn><mode>3): New.
2405 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2406 (*mmx_<plusminus_insn><mode>3): Likewise.
2408 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2411 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2412 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2414 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2415 define_insn_and_split to support SSE emulation.
2416 (mmx_punpcklbw): Likewise.
2417 (mmx_punpckhwd): Likewise.
2418 (mmx_punpcklwd): Likewise.
2419 (mmx_punpckhdq): Likewise.
2420 (mmx_punpckldq): Likewise.
2422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2423 Uros Bizjak <ubizjak@gmail.com>
2426 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2428 (ix86_split_mmx_pack): Likewise.
2429 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2431 (ix86_split_mmx_pack): Likewise.
2432 * config/i386/i386.md (mmx_isa): New.
2433 (enabled): Also check mmx_isa.
2434 * config/i386/mmx.md (any_s_truncate): New code iterator.
2435 (s_trunsuffix): New code attr.
2436 (mmx_packsswb): Removed.
2437 (mmx_packssdw): Likewise.
2438 (mmx_packuswb): Likewise.
2439 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2440 MMX packsswb/packuswb with SSE2.
2441 (mmx_packssdw): Likewise.
2442 * config/i386/predicates.md (register_mmxmem_operand): New.
2444 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2447 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2448 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2449 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2450 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2451 (ix86_vector_mode_supported_p): Likewise.
2452 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2454 2019-05-15 Martin Liska <mliska@suse.cz>
2457 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2460 2019-05-15 Richard Biener <rguenther@suse.de>
2462 * tree-into-ssa.c (pass_build_ssa::execute): Run
2463 update_address_taken before going into SSA.
2465 2019-05-15 Richard Biener <rguenther@suse.de>
2467 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2468 as __BIT_FIELD_REF with type with -gimple.
2470 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2472 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2473 semantically equivalent branches (left over after prior refactorings).
2475 2019-05-15 Richard Biener <rguenther@suse.de>
2477 PR tree-optimization/88828
2478 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2481 2019-05-14 Richard Biener <rguenther@suse.de>
2483 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2484 as __VIEW_CONVERT with -gimple.
2486 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2489 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2492 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2494 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2495 define_split to become a define_insn_and_split.
2497 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2499 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2501 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2502 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2503 (sibcall_epilogue): Adjust.
2506 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2508 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2509 to unsupported ones.
2510 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2511 * config.host: Likewise.
2512 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2513 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2514 __svr4__]: Remove "brand" fallback.
2515 [!KSTAT_DATA_STRING]: Remove.
2516 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2518 (comdat_group): Likewise.
2519 (set_have_as_tls): Likewise.
2520 (gcc_cv_target_dl_iterate_phdr): Likewise.
2521 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2522 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2523 * configure: Regenerate.
2524 * doc/install.texi: Simplify Solaris target triplets.
2525 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2526 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2527 Remove Solaris 10 references.
2528 Remove obsolete Solaris bug reference.
2529 (Specific, sparc-sun-solaris2.10): Remove.
2531 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2533 * config/i386/i386.md (any_div): New code iterator.
2534 (paired_mod): New code attribute.
2535 (sgnprefix): Handle DIV and UDIV RTXes.
2537 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2538 and udivmod<mode>4 patterns using any_div code iterator.
2539 (divmod splitters): Macroize splitters using any_div code iterator.
2540 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2541 (*udivmodsi4_pow2_zext_2): Ditto.
2542 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2543 and *udivmod<mode>4_noext patterns using any_div code iterator.
2544 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2545 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2546 patterns using any_div code iterator.
2547 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2548 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2549 patterns using any_div code iterator.
2550 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2551 udivmodhiqi3 patterns using any_extend code iterator.
2553 2019-05-14 Richard Biener <rguenther@suse.de>
2554 H.J. Lu <hongjiu.lu@intel.com>
2556 PR tree-optimization/88828
2557 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2558 permuting in a single non-constant element not extracted
2561 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2563 * internal-fn.def (SIGNBIT): New.
2564 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2566 (signbitv4sf2): Likewise.
2568 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2571 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2572 next insn when the SRC reg is dead.
2574 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2576 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2577 (alloc_cand_and_find_basis): Ditto.
2578 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2579 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2580 (create_add_imm_cand, slsr_process_cast): Ditto.
2581 (slsr_process_copy, replace_mult_candidate): Ditto.
2582 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2583 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2584 (pass_strength_reduction::execute): Init the first NULL element.
2586 2019-05-13 Nathan Sidwell <nathan@acm.org>
2588 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2589 (run_attempt): Reformat line break.
2591 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2594 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2595 data registers in sibcall epilogues.
2596 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2598 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2601 * configure.ac (--enable-frame-pointer):
2602 Disable by default for cygwin and mingw.
2603 * configure: Regenerate.
2605 2019-05-13 Nathan Sidwell <nathan@acm.org>
2607 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2609 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2610 (gen_member_die): Move abstract origin check earlier. Only VARs
2611 can be static_inline_p. Simplify splicing control flow.
2613 2019-05-13 Richard Biener <rguenther@suse.de>
2615 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2617 (vect_build_slp_tree_1): Likewise.
2619 2019-05-13 Richard Biener <rguenther@suse.de>
2621 PR tree-optimization/90402
2622 * tree-if-conv.c (tree_if_conversion): Value number only
2623 the loop body by making the latch an exit of the region
2625 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2627 (do_rpo_vn): Deal with multiple edges into the entry block
2628 that are not backedges inside the region by skipping PHIs
2631 2019-05-13 Richard Biener <rguenther@suse.de>
2633 PR tree-optimization/90316
2634 * tree-ssa-pre.c (insert_aux): Fold into ...
2635 (insert): ... this function. Use a RPO walk to reduce the
2636 number of required iterations.
2638 2019-05-13 Martin Liska <mliska@suse.cz>
2640 PR tree-optimization/90416
2641 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2642 string instead of passing the second part as va_arg argument.
2644 2019-05-13 Martin Liska <mliska@suse.cz>
2646 PR gcov-profile/90380
2647 * gcov.c (handle_cycle): Do not support zero cycle count,
2648 it should not be possible.
2649 (path_contains_zero_cycle_arc): New function.
2650 (circuit): Ignore zero cycle arc counts.
2652 2019-05-13 Martin Liska <mliska@suse.cz>
2654 PR gcov-profile/90380
2655 * gcov.c (enum loop_type): Remove the enum and
2657 (handle_cycle): Assert that we should not reach
2659 (circuit): Use loop_found instead of a tri-state loop_type.
2660 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2663 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2666 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2667 (ix86_output_indirect_branch_via_reg): Use output mechanism
2668 accounting for __USER_LABEL_PREFIX__.
2669 (ix86_output_indirect_branch_via_push): Likewise.
2670 (ix86_output_function_return): Likewise.
2671 (ix86_output_indirect_function_return): Likewise.
2673 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2675 * doc/md.texi: Document use of code attributes in rtx patterns.
2676 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2677 * read-rtl.c (find_code): Split out search loops into...
2678 (maybe_find_code): ...this new function.
2679 (check_code_iterator): Make the error message more informative.
2680 (check_code_attribute): New function.
2681 (rtx_reader::rtx_alloc_for_name): Likewise.
2682 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2683 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2684 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2685 <max_opp> directly as an rtx code instead of via a match_operator.
2686 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2687 (<su>abd<mode>_3): Update accordingly.
2689 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2691 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2692 is given, print the state of the EH "save world" computation for
2695 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2698 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2699 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2701 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2703 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2704 Use pinsrd for TARGET_SSE4_1.
2705 * config/i386/sse.md (movdi_to_sse): Ditto.
2707 2019-05-10 Richard Biener <rguenther@suse.de>
2709 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2710 (do_rpo_vn): Initialize next_value_id.
2712 2019-05-10 Martin Liska <mliska@suse.cz>
2714 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2717 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2719 PR tree-optimization/90385
2720 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2721 arguments of the exit phis.
2724 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2725 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2727 (copy_tree_body_r): Likewise.
2728 (copy_fn): Set id.do_not_fold to true.
2730 2019-05-10 Martin Liska <mliska@suse.cz>
2732 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2733 Reapply changes from r269790.
2735 2019-05-10 Martin Liska <mliska@suse.cz>
2738 * doc/invoke.texi: New params.
2739 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2740 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2741 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2743 * tree-switch-conversion.h (struct jump_table_cluster):
2746 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2748 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2750 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2752 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2754 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2756 PR rtl-optimization/88879
2757 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2759 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2762 * config/arm/arm.c (callee_saved_reg_p): Move before
2763 thumb_find_work_register.
2764 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2765 thumb_find_work_register. Only call df_get_live_out once.
2766 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2767 (thumb_find_work_register): Use
2768 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2769 algorithms to locate a spare call clobbered reg.
2771 2019-05-09 Martin Liska <mliska@suse.cz>
2773 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2774 and MAX_EXPR in GIMPLE FE format.
2776 2019-05-09 Martin Liska <mliska@suse.cz>
2778 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2779 * gimple-pretty-print.c (dump_gimple_bb_header):
2781 (pp_cfg_jump): Dump edge probability.
2782 * profile-count.c (profile_quality_as_string): Simplify
2783 with a static array.
2784 (parse_profile_quality): New function.
2785 (profile_count::dump): Simplify with a static array.
2786 (profile_count::from_gcov_type): Add new argument.
2787 * profile-count.h (parse_profile_quality): Likewise.
2788 * predict.h (set_hot_bb_threshold): New.
2789 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2791 * predict.c (get_hot_bb_threshold): Set from the new param.
2792 (set_hot_bb_threshold): New.
2794 2019-05-09 Richard Biener <rguenther@suse.de>
2796 PR tree-optimization/90395
2797 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2798 rewrite vector stores that throw internally.
2800 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2802 * cif-code.def (CHKP): Remove.
2805 * configure.ac (--enable-frame-pointer): Disable by default for
2807 * configure: Regenerate.
2809 2019-05-09 Alan Modra <amodra@gmail.com>
2812 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2813 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2814 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2815 cost for general <-> vsx when direct moves are available.
2816 Cost union classes at minimal cost for any reg in the class.
2817 Correct calculation for moves between vsx, float, and altivec.
2818 Don't return a low cost for moves between special regs. Don't
2819 use hard coded register numbers.
2820 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2821 (rs6000_ira_change_pseudo_allocno_class): New function.
2822 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2823 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2825 (movsi_internal1): Don't disparage vector alternatives.
2826 (mov<mode>_internal): Likewise, excepting alternative that
2828 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2829 we <- b alternative.
2831 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2834 PR tree-optimization/89060
2835 * tree-ssa-live.h (live_vars_map): New typedef.
2836 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2837 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2838 (struct compute_live_vars_data): New type.
2839 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2840 live_vars_at_stmt, destroy_live_vars): New functions.
2841 * tree-tailcall.c: Include tree-ssa-live.h.
2842 (live_vars, live_vars_vec): New global variables.
2843 (find_tail_calls): Perform variable life analysis before punting.
2844 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2845 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2847 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2848 Perform variable life analysis to select variables that really need
2850 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2851 instead set id->eh_landing_pad_dest and assert it is the same.
2852 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2854 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2855 Richard Earnshaw <rearnsha@arm.com>
2858 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2860 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2861 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2862 register if both the epilogue and prologue can use call-clobbered
2864 (thumb1_unexpanded_epilogue): Use
2865 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2866 picking temporaries for restoring high regs to match that of the
2867 prologue where possible.
2868 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2869 the list of work registers. Detect if the return address is still live
2870 at the end of the prologue and avoid using it for a work register if so.
2871 If the return address is not live, add LR to the list of pushable regs
2872 after the first pass.
2874 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2876 PR tree-optimization/90078
2877 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2878 (INFTY): Increase the value for infinite cost.
2879 (struct comp_cost): Promote type of members to int64_t.
2880 (infinite_cost): Don't set complexity in initialization.
2881 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2882 overflows to infinite_cost.
2883 (adjust_setup_cost): Promote type of parameter and cost computation
2885 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2887 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2888 cost computation to int64_t.
2889 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2890 int64_t's format specifier in dump.
2892 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2894 PR tree-optimization/90240
2895 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2896 with respect to scaling factor pre-computed for each basic block.
2897 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2898 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2899 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2900 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2901 live range for array of loop's basic blocks. Cleanup aux field of
2902 loop's basic blocks.
2904 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2906 PR tree-optimization/90356
2907 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2909 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2911 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2912 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2913 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2914 (ix86_handle_option): Handle -mavx512bf16.
2915 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2917 * config/i386/avx512bf16vlintrin.h: New.
2918 * config/i386/avx512bf16intrin.h: New.
2919 * config/i386/cpuid.h (bit_AVX512BF16): New.
2920 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2921 * config/i386/i386-builtin-types.def: Add new types.
2922 * config/i386/i386-builtin.def: Add new builtins.
2923 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2925 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2926 (ix86_option_override_internal): Handle BF16.
2927 (ix86_valid_target_attribute_inner_p): Ditto.
2928 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2929 * config/i386/i386-builtin.c (enum processor_features): Add
2931 (static const _isa_names_table isa_names_table): Ditto.
2932 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2933 (PTA_AVX512BF16): Ditto.
2934 * config/i386/i386.opt: Add -mavx512bf16.
2935 * config/i386/immintrin.h: Include avx512bf16intrin.h
2936 and avx512bf16vlintrin.h.
2937 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2938 avx512f_cvtneps2bf16_<mode><mask_name>,
2939 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2940 * config/i386/subst.md (mask_half): Add new subst.
2941 * doc/invoke.texi: Document -mavx512bf16.
2943 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2945 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2947 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2948 (rs6000_debug_legitimize_reload_address): Delete.
2949 (rs6000_legitimize_reload_address_ptr): Delete.
2950 (rs6000_option_override_internal): Adjust.
2951 (mem_operand_gpr): Adjust comment.
2952 (legitimate_lo_sum_address_p): Ditto.
2953 (rs6000_legitimize_reload_address): Delete.
2954 (rs6000_debug_legitimize_reload_address): Delete.
2955 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2957 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
2960 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2961 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2962 to compute vector element selector for both constant and variable
2965 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2967 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2968 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2969 ashrdi3_cvt using SWI48 mode iterator.
2971 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2973 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2974 (aarch64_<su>abd<mode>_3): Likewise.
2975 (*aarch64_<su>abd<mode>_3): New define_insn.
2976 (<sur>sad<vsi2qi>): New define_expand.
2977 * config/aarch64/iterators.md: Added MAX_OPP attribute.
2978 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2979 (build_vect_cond_expr): Likewise.
2981 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2983 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2984 clobbers outside of accessible_reg_set.
2985 * config/i386/i386.c (ix86_conditional_register_usage):
2986 Disable register sets by clearing corresponding bits in
2987 accessible_reg_set. Do not set corresponding bits in fixed_regs,
2988 call_used_regs and don't clear corresponding reg_names array members.
2990 2019-05-07 Richard Biener <rguenther@suse.de>
2992 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2993 not specified still compute a comp_vectype for invariant
2996 2019-05-07 Richard Biener <rguenther@suse.de>
2998 PR tree-optimization/90316
2999 * tree-ssa-pre.c (translate_vuse_through_block): When
3000 same_valid is NULL do not bother to search for a virtual
3002 (phi_translate_1): When operands changed we cannot keep
3003 the same value-number so do not bother to ask whether
3004 that's possible from translate_vuse_through_block.
3006 2019-05-07 Martin Liska <mliska@suse.cz>
3008 * bitmap.c (bitmap_register): Come up with
3009 alloc_descriptor_max_uid and assign it for
3011 (register_overhead): Use get_descriptor as
3013 (release_overhead): New.
3014 (bitmap_elem_to_freelist): Call it.
3015 (bitmap_elt_clear_from): Likewise.
3016 (bitmap_obstack_free): Likewise.
3017 (bitmap_move): Sensitively release memory.
3018 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3019 (bitmap_initialize): Initialize alloc_descriptor to zero.
3020 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3022 2019-05-07 Richard Biener <rguenther@suse.de>
3024 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3025 we build a SLP node. Remove max_size and limiting.
3026 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3028 2019-05-07 Richard Biener <rguenther@suse.de>
3030 PR tree-optimization/90316
3031 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3033 (walk_non_aliased_vuses): Take walking limit argument.
3034 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3035 walking if it is reached instead of just counting.
3036 (get_continuation_for_phi): Likewise.
3037 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3038 limiting to the callback.
3039 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3040 (vn_reference_lookup_3): Likewise.
3041 (vn_reference_lookup_pieces): Likewise.
3042 (vn_reference_lookup): Likewise.
3043 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3044 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3045 (avail_exprs_stack::lookup_avail_expr): Likewise.
3047 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3049 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3050 for comparaible types in the second direction even if first one
3051 hits incomparable type.
3053 2019-05-07 Richard Biener <rguenther@suse.de>
3056 * lto-wrapper.c (debug_objcopy): Use the original filename
3057 including archive offset for the filename used for -save-temps.
3059 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3061 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3064 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3065 Hongtao Liu <hongtao.liu@intel.com>
3069 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3070 Modified, original implementation isn't correct.
3072 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3074 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3075 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3076 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3077 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3078 (FRAME_POINTER_REGNUM): Change numbering.
3079 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3080 (alt_reg_names): Adjust.
3081 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3083 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3084 (DWARF_FRAME_REGISTERS): Delete.
3085 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3086 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3088 (REG_ALLOC_ORDER): Adjust.
3089 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3090 (REG_CLASS_CONTENTS): Adjust.
3091 (RETURN_ADDR_RTX): Change comment.
3092 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3094 (REGISTER_NAMES): Adjust.
3095 (ADDITIONAL_REGISTER_NAMES): Adjust.
3096 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3098 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3100 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3102 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3103 (DWARF_FRAME_REGISTERS): Adjust.
3104 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3106 (REG_ALLOC_ORDER): Adjust.
3107 (enum reg_class): Delete SPR_REGS.
3108 (REG_CLASS_NAMES): Delete SPR_REGS.
3109 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3110 (REGISTER_NAMES): Adjust.
3111 (ADDITIONAL_REGISTER_NAMES): Adjust.
3112 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3113 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3114 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3115 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3116 (htm_spr_regno): Delete.
3117 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3119 (rs6000_dbx_register_number): Adjust.
3121 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3123 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3125 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3127 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3128 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3130 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3132 PR tree-optimization/88709
3133 PR tree-optimization/90271
3134 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3135 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3136 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3138 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3139 of the store merging group is larger than
3140 PARAM_STORE_MERGING_MAX_SIZE parameter.
3141 (split_group): Add bzero_first argument. If set, always emit first
3142 the first store which must be = {} of the whole area and then for the
3143 rest of the stores consider all zero bytes as paddings.
3144 (imm_store_chain_info::output_merged_store): Check if first store
3145 is = {} of the whole area and if yes, determine which setting of
3146 bzero_first for split_group gives smaller number of stores. Adjust
3147 split_group callers.
3148 (lhs_valid_for_store_merging_p): Allow decls.
3149 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3151 (pass_store_merging::process_store): Likewise.
3153 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3156 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3157 handling of V1TImode.
3159 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3162 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3163 and enable_frame_pointer ...
3164 * configure.ac: ... here. Update help strings for
3165 --enable-frame-pointer.
3166 * configure: Regenerate.
3167 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3168 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3169 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3170 (USE_X86_64_FRAME_POINTER): Ditto.
3172 2019-05-06 Martin Liska <mliska@suse.cz>
3174 * config.gcc: Append to target_gtfiles and fix indentation.
3176 2019-05-06 Richard Biener <rguenther@suse.de>
3178 PR tree-optimization/90358
3179 * tree-vect-stmts.c (get_group_load_store_type): Properly
3180 detect unused upper half of load.
3181 (vectorizable_load): Likewise.
3183 2019-05-06 Richard Biener <rguenther@suse.de>
3185 PR tree-optimization/88828
3186 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3187 (simplify_vector_constructor): ...here. Handle constants in
3190 2019-05-06 Richard Biener <rguenther@suse.de>
3192 PR tree-optimization/90328
3193 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3194 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3195 is valid in the loop nest before using it.
3196 (initialize_data_dependence_relation): Adjust.
3197 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3198 loop as loop-nest to dr_may_alias_p.
3200 2019-05-06 Richard Biener <rguenther@suse.de>
3202 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3204 2019-05-06 Richard Biener <rguenther@suse.de>
3206 PR tree-optimization/90316
3207 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3208 compute target on demand.
3209 (get_continuation_for_phi): Remove code walking stmts to
3210 get to a target virtual operand which could end up being
3213 2019-05-06 Martin Liska <mliska@suse.cz>
3216 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3217 when -mabi is selected to a non-default version.
3219 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3220 Martin Liska <mliska@suse.cz>
3222 * Makefile.in: Add lto-dump.texi.
3223 * cgraph.h: Add new functions get_visibility_string and
3224 get_symtab_type_string.
3225 * doc/gcc.texi: Include lto-dump section.
3226 * doc/lto-dump.texi: New file.
3227 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3228 (parse_dump_option): Factor out this function.
3229 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3230 (parse_dump_option): Export the function.
3231 * symtab.c (symtab_node::get_visibility_string): New function.
3232 (symtab_node::get_symtab_type_string): Likewise.
3234 2019-05-06 Martin Liska <mliska@suse.cz>
3236 * config/i386/i386-builtins.c: New file.
3237 * config/i386/i386-builtins.h: New file.
3238 * config/i386/i386-expand.c: New file.
3239 * config/i386/i386-expand.h: New file.
3240 * config/i386/i386-features.c: New file.
3241 * config/i386/i386-features.h: New file.
3242 * config/i386/i386-options.c: New file.
3243 * config/i386/i386-options.h: New file.
3244 * config.gcc: Add new files into extra_objs and
3246 * config/i386/i386.c: Split content of the file
3247 into newly introduced files.
3248 * config/i386/i386.h: Declare common variables
3250 * config/i386/t-i386: Define dependencies for new files.
3252 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3255 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3256 Restrict 'all' variant to 32-bit configurations.
3257 (unaligned_loadhiu): Likewise.
3258 (unaligned_storehi): Likewise.
3259 (unaligned_storesi): Likewise.
3260 (unaligned_loadhis): Disable when compiling for thumb1.
3262 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3264 PR tree-optimization/90269
3265 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3268 2019-05-03 Martin Liska <mliska@suse.cz>
3270 * hash-map.h: Add is_empty function.
3271 * hash-set.h: Likewise.
3272 * hash-table.h: Likewise.
3273 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3274 elements () == 0 (and similar usages).
3275 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3276 * gimplify.c (gimplify_bind_expr): Likewise.
3277 (gimplify_switch_expr): Likewise.
3278 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3279 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3280 * postreload-gcse.c (dump_hash_table): Likewise.
3281 (gcse_after_reload_main): Likewise.
3282 * predict.c (combine_predictions_for_bb): Likewise.
3283 * tree-parloops.c (reduction_phi): Likewise.
3284 (separate_decls_in_region): Likewise.
3285 (transform_to_exit_first_loop): Likewise.
3286 (gen_parallel_loop): Likewise.
3287 (gather_scalar_reductions): Likewise.
3288 (try_create_reduction_list): Likewise.
3289 * var-tracking.c (dump_vars): Likewise.
3290 (emit_notes_for_changes): Likewise.
3291 (vt_emit_notes): Likewise.
3293 2019-05-03 Richard Biener <rguenther@suse.de>
3295 PR tree-optimization/90316
3296 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3299 2019-05-03 Richard Biener <rguenther@suse.de>
3301 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3302 peeling for gaps by loading only lower halves of vectors
3304 (vectorizable_load): Likewise.
3306 2019-05-03 Richard Biener <rguenther@suse.de>
3309 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3311 2019-05-03 Richard Biener <rguenther@suse.de>
3314 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3315 Handle STRING_CST vs DECL or STRING_CST.
3317 2019-05-03 Richard Biener <rguenther@suse.de>
3319 PR tree-optimization/88963
3320 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3321 vector loads feeding only BIT_FIELD_REFs to component
3322 loads. Rewrite stores fed by CONSTRUCTORs to component
3325 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3327 * opts.h (finish_options): Remove lang_mask argument.
3328 (print_help, help_option_argument): Declare.
3329 * opts.c (print_help): Remove forward declaration, no longer static.
3330 (finish_options): Remove lang_mask argument, don't call print_help
3332 * opts-global.c (decode_options): Adjust finish_option caller, call
3335 PR tree-optimization/90303
3336 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3337 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3339 2019-05-03 Richard Biener <rguenther@suse.de>
3341 PR tree-optimization/89698
3342 * gimple-fold.c (canonicalize_constructor_val): Early out
3343 for constants, handle unfolded INTEGER_CSTs as they appear in
3344 C++ virtual table ctors.
3346 2019-05-03 Richard Biener <rguenther@suse.de>
3348 * passes.c (execute_function_todo): Remove dead code.
3350 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3352 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3353 the internal register number, for any "real" register.
3355 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3357 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3358 correct numbers for TFHAR, TFIAR, TEXASR.
3360 2019-05-02 Richard Biener <rguenther@suse.de>
3362 PR tree-optimization/89653
3363 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3364 update-address-taken before the pass.
3365 * passes.def (pass_tree_loop_init): Put comment before it.
3367 2019-05-02 Richard Biener <rguenther@suse.de>
3369 PR tree-optimization/89509
3370 * tree-ssa-structalias.c (compute_dependence_clique): Look
3371 at the first subvar when determining whether it is restrict.
3373 2019-05-02 Richard Biener <rguenther@suse.de>
3375 PR tree-optimization/90273
3376 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3377 useless debug stmts.
3379 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3381 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3383 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3385 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3386 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3387 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3388 (vectorizable_reduction): Use the functions above to vectorize in a
3389 fully masked loop codes that don't have a conditional internal
3392 2019-05-02 Martin Liska <mliska@suse.cz>
3394 * cgraphclones.c: Call valid_attribute_p with 1 for
3396 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3397 it's for target attribute.
3398 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3399 Add new boolean argument.
3400 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3402 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3403 to ix86_valid_target_attribute_inner_p.
3404 (ix86_valid_target_attribute_p): Pass flags argument to
3405 ix86_valid_target_attribute_inner_p.
3406 (get_builtin_code_for_version): Use 0 as it's target attribute.
3408 2019-05-02 Martin Liska <mliska@suse.cz>
3410 * gcc.c (process_command): Add dummy file only
3412 * opts-global.c (decode_options): Pass lang_mask.
3413 * opts.c (print_help): New function.
3414 (finish_options): Print --help if help_option_argument
3416 (common_handle_option): Factor out content of OPT__help_
3418 * opts.h (finish_options): Add new argument.
3420 2019-05-02 Martin Liska <mliska@suse.cz>
3423 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3424 With -minline-all-stringops use inline expansion using 4B loop.
3425 * doc/invoke.texi: Document the change of
3426 -minline-all-stringops.
3428 2019-05-01 Jeff Law <law@redhat.com>
3430 PR tree-optimization/88797
3431 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3432 PHI feeds a conditional on the RHS of an assignment.
3434 2019-04-30 Andrew Waterman <andrew@sifive.com>
3435 Jim Wilson <jimw@sifive.com>
3437 * config/riscv/constraints.md (L): New.
3438 * config/riscv/predicates.md (lui_operand): New.
3439 (sfb_alu_operand): New.
3440 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3441 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3442 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3443 * config/riscv/risc.md (type): Add sfb_alu.
3444 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3445 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3446 (branch_zero<mode>): Delete.
3448 (mov<GPR:mode><X:mode>cc): Likewise.
3449 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3451 2019-04-30 Nathan Sidwell <nathan@acm.org>
3453 * tree.h (MARK_TS_EXP): New.
3455 2019-04-30 Martin Liska <mliska@suse.cz>
3457 * opts.c (enable_warning_as_error): Provide hints
3458 for unknown options.
3460 2019-04-30 Martin Liska <mliska@suse.cz>
3463 * doc/invoke.texi: Add missing dash for gas-locview-support
3464 and gno-as-locview-support.
3466 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3469 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3470 whitespace at the start of target attribute string.
3472 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3475 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3476 Define __ARM_FEATURE_ATOMICS.
3478 2019-04-30 Martin Liska <mliska@suse.cz>
3480 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3481 into built_in_function enum. Remove code for endp == 2 and
3482 use BUILT_IN_* constants.
3483 (gimple_fold_builtin): Call the function with fcode.
3485 2019-04-30 Martin Liska <mliska@suse.cz>
3487 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3488 DECL_FUNCTION_CODE into ix86_builtins enum before
3489 the switch statement.
3491 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3493 PR tree-optimization/89475
3494 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3497 2019-04-30 Martin Liska <mliska@suse.cz>
3499 PR translation/90274
3500 * opts.c (print_filtered_help): Wrap string in _(...).
3502 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3504 PR tree-optimization/90240
3506 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3508 PR tree-optimization/90078
3509 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3510 checks for infinite_cost overflow.
3512 2019-04-29 Jeff Law <law@redhat.com>
3514 * passes.def: Move -Wrestrict pass after copy propagation.
3516 2019-04-29 Maya Rashish <coypu@sdf.org>
3518 * config.gcc (default_gnu_indirect_function): Default to yes
3519 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3520 sparc*-*-netbsd*, x86_64-*-netbsd*.
3522 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3524 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3525 where cond2 is NE_EXPR.
3526 (is_value_included_in): Update comment.
3528 2019-04-29 Richard Biener <rguenther@suse.de>
3530 PR tree-optimization/90278
3531 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3532 EH on comparison simplification.
3534 2019-04-29 Jason Merrill <jason@redhat.com>
3536 PR c++/82081 - tail call optimization breaks noexcept
3537 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3538 nothrow function to a might-throw function into a tail call.
3540 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3542 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3543 (DDR_INNER_LOOP): Likewise.
3544 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3545 (initialize_data_dependence_relation): Likewise.
3546 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3548 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3550 PR rtl-optimization/90257
3551 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3555 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3559 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3562 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3565 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3567 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3569 2019-04-29 Richard Biener <rguenther@suse.de>
3571 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3574 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3576 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3577 varasm.h, and netbsd-protos.h.
3579 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3582 * config/i386/i386-protos.h (ix86_data_alignment): Change
3583 the second argument type to unsigned int.
3584 * config/i386/i386.c (ix86_data_alignment): Change "align"
3585 argument type to unsigned int.
3587 2019-04-27 Martin Liska <mliska@suse.cz>
3590 * opt-suggestions.c (option_proposer::build_option_suggestions):
3591 When get_valid_option_values returns empty values, add the
3592 misspelling candidate.
3594 2019-04-26 Jim Wilson <jimw@sifive.com>
3596 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3598 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3599 Pass orig_mode to riscv_build_integer.
3600 (riscv_split_integer): Pass mode to riscv_move_integer.
3601 (riscv_legitimize_const_move): Likewise.
3602 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3603 promoted_mode. Replace force_reg call with code to load constant into
3604 promoted reg and then subreg it for the store.
3605 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3608 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3610 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3613 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3615 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3616 commentary about the encoding of precision.
3618 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3620 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3621 * config/i386/t-freebsd64: New file.
3622 * config.gcc: Add the t-freebsd64 for multilib support.
3624 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3626 * doc/extend.texi (vector_size): Add missing comma after @xref.
3628 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3630 * BASE-VER: Set to 10.0.0.
3632 2019-04-25 Richard Biener <rguenther@suse.de>
3635 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3636 VIEW_CONVERT_EXPR into one operating on an rvalue.
3638 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3641 * config/i386/i386.c (feature_priority): Moved to file scope.
3642 (processor_features): Likewise.
3643 (processor_model): Likewise.
3644 (_arch_names_table): Likewise.
3645 (arch_names_table): Likewise.
3646 (_feature_list): Removed.
3647 (feature_list): Likewise.
3648 (_isa_names_table): Moved to file scope. Add priority.
3649 (isa_names_table): Likewise.
3650 (get_builtin_code_for_version): Replace feature_list with
3651 isa_names_table. Update error message for P_ZERO priority.
3653 2019-04-25 Richard Biener <rguenther@suse.de>
3655 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3656 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3658 2019-04-24 Jeff Law <law@redhat.com>
3660 PR tree-optimization/90037
3661 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3662 * passes.def: Replace all instance of phi-only cprop with the
3663 lattice propagator. Move propagation pass from after erroneous
3664 path isolation to before erroneous path isolation.
3665 * tree-ssa-phionlycprop.c: Remove.
3667 2019-04-24 Richard Biener <rguenther@suse.de>
3670 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3671 by size and BITS_PER_UNIT on poly-wide-ints.
3673 2019-04-25 Richard Biener <rguenther@suse.de>
3676 * match.pd: Add pattern to simplify view-conversion of an
3679 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3681 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3682 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3683 for Go on 32 bit AIX.
3684 * config/rs6000/aix72.h: Likewise.
3686 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3689 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3690 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3692 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3695 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3696 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3697 for restored hard frame pointer.
3698 (s390_sched_dependencies_evaluation): Implement new target hook.
3699 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3701 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3703 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3704 * config/arc/arc.c (arc_init): Cleanup warning message.
3705 (arc_override_options): Likewise.
3707 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3710 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3711 a register if both if_true and if_false are MEMs.
3713 PR tree-optimization/90208
3714 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3715 after labels of new_bb, not before them.
3717 PR tree-optimization/90211
3718 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3719 which are not SSA_NAMEs.
3721 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3723 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3725 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3727 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3729 PR rtl-optimization/87979
3730 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3733 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3735 PR rtl-optimization/84032
3736 * modulo-sched.c (ps_insn_find_column): Change condition so that
3737 branch will always be the last insn in a row inside partial
3740 2019-04-23 Richard Biener <rguenther@suse.de>
3743 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3744 dest_single_pred_p argument.
3745 (remove_forwarder_block): Adjust.
3746 (remove_forwarder_block_with_phi): Likewise.
3748 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3749 Bernd Edlinger <bernd.edlinger@hotmail.de>
3750 Jakub Jelinek <jakub@redhat.com>
3753 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3754 if used with general-regs-only.
3755 (arm_conditional_register_usage): Don't add non-general regs if
3757 (arm_valid_target_attribute_rec): Handle general-regs-only.
3758 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3760 (TARGET_HARD_FLOAT_SUB): Define.
3761 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3762 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3763 (TARGET_REALLY_IWMMXT2): Likewise.
3764 * config/arm/arm.opt: Add -mgeneral-regs-only.
3765 * doc/extend.texi: Document ARM general-regs-only target.
3766 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3768 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3770 PR tree-optimization/90078
3771 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3772 checks for infinite_cost overflow.
3774 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3776 PR tree-optimization/90021
3777 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3778 and check univariate against it.
3779 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3780 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3782 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3786 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3789 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3792 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3794 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3796 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3798 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3799 names using operand format, rather than hard-wired.
3800 (speculation_barrier): Likewise.
3802 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3804 PR tree-optimization/88055
3805 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3806 (gen_one_condition): Use it if !HONOR_NANS.
3808 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3811 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3812 assign_temp instead of gen_reg_rtx.
3814 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3816 PR translation/90118
3817 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3818 Add missing space before %<.
3820 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3822 PR rtl-optimization/87871
3823 * ira-lives.c (make_object_dead): Don't add conflicts to
3824 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3826 2019-04-18 Martin Sebor <msebor@redhat.com>
3829 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3830 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3831 assuming type size fits in SHWI.
3833 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3836 * ipa-inline.c (flatten_function): New parameter UPDATE.
3837 (ipa_inline, early_inliner): Use it.
3839 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3841 * fold-const.c (int_const_binop): Return early on failure.
3843 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3846 * combine.c (force_int_to_mode): Cast the argument rather than
3847 the result of known_alignment.
3848 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3850 2019-04-18 Richard Biener <rguenther@suse.de>
3853 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3855 (remove_forwarder_block): ... here.
3856 (remove_forwarder_block_with_phi): Also move debug stmts here.
3858 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3860 PR translation/79183
3861 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3862 inform where appropriate.
3864 2019-04-18 Richard Biener <rguenther@suse.de>
3866 * tree.c (get_qualified_type): Put found type variants at the
3867 head of the variant list.
3869 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3871 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3873 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3876 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3877 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3878 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3879 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3880 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3882 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3884 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3885 even for allocno's with no conflicts.
3886 (print_conflicts): Print an extra newline.
3888 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3890 * auto-inc-dec.c (attempt_change): Set the alignment of the
3891 temporary memory to that of the original.
3893 2019-04-17 Joao Moreira <jmoreira@suse.de>
3895 * targhooks.c (default_print_patchable_function_entry): Emit
3896 __patchable_function_entries section with writable flags to allow
3897 relocation resolution.
3899 2019-04-17 Jonny Grant <jg@jguk.org>
3901 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3903 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3906 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3909 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3911 * config/arc/arc.c (arc_init): Format diagnostic string.
3912 (arc_override_options): Likewise.
3913 (check_if_valid_regno_const): Likewise.
3914 (arc_reorg): Likewise.
3916 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3919 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3921 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3923 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3924 (*movdi_update1): Use Pmode.
3925 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3926 (movdi_<mode>_update_stack): Rename to ...
3927 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3929 (*movsi_update1): Use Pmode.
3930 (*movsi_update2): Use Pmode.
3931 (movsi_update): Rename to ...
3932 (movsi_<mode>_update): ... this. Use Pmode.
3933 (movsi_update_stack): Fix condition.
3934 (*movhi_update1): Use Pmode. Fix argument to
3935 avoiding_indexed_address_p.
3936 (*movhi_update2): Ditto.
3937 (*movhi_update3): Ditto.
3938 (*movhi_update4): Ditto.
3939 (*movqi_update1): Ditto.
3940 (*movqi_update2): Ditto.
3941 (*movqi_update3): Ditto.
3942 (*movsf_update1, *movdf_update1): Merge, rename to...
3943 (*mov<mode>_update1): This. Use Pmode. Fix argument to
3944 avoiding_indexed_address_p. Add "size" attribute.
3945 (*movsf_update2, *movdf_update2): Merge, rename to...
3946 (*mov<mode>_update2): This. Ditto.
3947 (*movsf_update3): Use Pmode. Fix argument to
3948 avoiding_indexed_address_p.
3949 (*movsf_update4): Ditto.
3950 (allocate_stack): Simplify condition. Adjust pattern names.
3952 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3955 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3956 whitespace at the start of target attribute string.
3958 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
3961 * config/rs6000/power9.md: Add store forwarding bypass.
3963 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
3966 * valtrack.c (dead_debug_insert_temp): Reset debug references
3967 to the return value of a call being removed.
3969 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3971 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3972 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3973 implement target hook.
3974 (arc_memory_move_cost): New function.
3975 (TARGET_REGISTER_MOVE_COST): Define.
3976 (TARGET_MEMORY_MOVE_COST): Likewise.
3977 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3978 (MEMORY_MOVE_COST): Likewise.
3980 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3982 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3983 (sibcall_value_insn): Likewise.
3984 * config/arc/constraints.md (Rs5): Remove.
3986 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3988 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3989 for last two fake registers.
3990 (arc_conditional_register_usage): Make sure fake frame and arg
3991 pointer regs are in general regs class.
3992 (FRAME_POINTER_MASK): Remove.
3993 (RETURN_ADDR_MASK): Remove.
3994 (arc_must_save_register): Use hard frame regnum.
3995 (frame_restore_reg): Use hard_frame_pointer_rtx.
3996 (arc_save_callee_saves): Likewise.
3997 (arc_restore_callee_saves): Likewise.
3998 (arc_save_callee_enter): Likewise.
3999 (arc_restore_callee_leave): Likewise.
4000 (arc_save_callee_milli): Likewise.
4001 (arc_eh_return_address_location): Likewise.
4002 (arc_check_multi): Use hard frame regnum.
4003 (arc_can_eliminate): Likewise.
4004 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4005 for register allocator.
4006 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4007 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4008 (FRAME_POINTER_REGNUM): Change it to a fake register.
4009 (HARD_FRAME_POINTER_REGNUM): Defined.
4010 (ARG_POINTER_REGNUM): Change it to a new fake register.
4011 (ELIMINABLE_REGS): Update.
4012 (REGISTER_NAMES): Update names.
4013 * config/arc/arc.md (LP_START): Remove.
4015 (shift_si3_loop): Update pattern.
4017 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4019 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4020 to avoid delay slot scheduling.
4021 (arc_must_save_register): Don't save SP.
4022 * config/arc/arc.md (stack_tie): Remove.
4023 (UNSPEC_ARC_STKTIE): Likewise.
4025 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4026 Shiva Chen <shiva0217@gmail.com>
4028 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4029 code gen with large shift amount.
4031 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4033 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4036 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4039 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4040 print -m64/-mx32/-m32 if it is true.
4041 (ix86_debug_options, ix86_function_specific_print): Pass true as
4042 ADD_ABI_P to ix86_target_string.
4043 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4044 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4045 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4047 PR rtl-optimization/90082
4048 * dce.c (can_delete_call): New function.
4049 (deletable_insn_p, mark_insn): Use it.
4051 PR tree-optimization/90090
4052 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4054 (is_division_by_square): Likewise. Formatting fix.
4056 2019-04-16 Richard Biener <rguenther@suse.de>
4058 PR tree-optimization/56049
4059 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4060 equality check if alias-set zero will prevail.
4062 2019-04-15 Jeff Law <law@redhat.com>
4064 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4065 size and alignment as unsigned.
4067 2019-04-15 Richard Biener <rguenther@suse.de>
4070 * tree-loop-distribution.c (destroy_loop): Preserve correct
4073 2019-04-15 Richard Biener <rguenther@suse.de>
4075 PR tree-optimization/90071
4076 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4077 abnormal operands from def stmts.
4079 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4081 PR rtl-optimization/89794
4082 * combine.c (count_auto_inc): New function.
4083 (try_combine): Count how many auto_inc expressions there were in the
4084 original instructions. Ensure we have the same number in the new
4085 instructions. Remove the code that tried to ensure auto_inc side
4086 effects on i1 and i0 are not lost.
4088 2019-04-15 Richard Biener <rguenther@suse.de>
4091 * tree.h (auto_var_p): Declare.
4092 * tree.c (auto_var_p): New function, split out from ...
4093 (auto_var_in_fn_p): ... here.
4094 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4096 (new_var_info): Initialize it.
4097 (set_uids_in_ptset): Also set the shadow variable uid if required.
4098 (ipa_pta_execute): Postprocess points-to solutions assigning
4099 shadow variable uids for locals that may reach their containing
4100 function recursively.
4101 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4102 assert but instead check whether the points-to solution is
4105 2019-04-15 Martin Jambor <mjambor@suse.cz>
4108 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4111 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4113 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4115 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4116 Kito Cheng <kito.cheng@gmail.com>
4117 Shiva Chen <shiva0217@gmail.com>
4119 * config/nds32/nds32-md-auxiliary.c
4120 (nds32_legitimize_pic_address): Use new PIC pattern.
4121 (nds32_legitimize_tls_address): Use new TLS pattern.
4122 (nds32_output_symrel): New.
4123 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4124 (nds32_alloc_relax_group_id): Ditto.
4125 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4126 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4128 (nds32_group_tls_insn): Ditto.
4129 (nds32_group_float_insns): Ditto.
4130 * config/nds32/nds32.md (tls_le): New.
4133 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4135 * configure: Add nds32 target for dwarf2 debug_line checking.
4136 * configure.ac: Regenerated.
4138 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4141 * ipa-devirt.c (skip_in_fields_list_p): New.
4142 (odr_types_equivalent_p): Use it.
4144 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4147 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4148 instead of strncmp when checking for thumb and arm. Formatting fixes.
4150 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4152 * doc/install.texi: Document --with-target-system-zlib.
4154 2019-04-12 Martin Sebor <msebor@redhat.com>
4160 * targhooks.c (default_vector_alignment): Avoid assuming
4161 argument fits in SHWI.
4162 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4164 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4166 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4168 PR rtl-optimization/89965
4169 * dce.c: Include rtl-iter.h.
4170 (struct check_argument_load_data): New type.
4171 (check_argument_load): New function.
4172 (find_call_stack_args): Check for loads from stack slots still tracked
4173 in sp_bytes and punt if any is found.
4175 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4177 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4179 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4180 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4182 2019-04-12 Martin Liska <mliska@suse.cz>
4185 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4187 (separate_attrs): Handle multiple 'default's.
4188 (expand_target_clones): Rework error handling code.
4190 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4193 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4194 mode of vector rather than mode of destination for move instruction.
4195 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4196 Use QI inner mode with V16QI vector mode.
4198 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4201 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4202 "invalid %%t operand" in output_operand_lossage message.
4204 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4206 * config/s390/predicates.md (permute_pattern_operand): New
4208 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4209 operand for the permute pattern.
4210 ("*vec_perm<mode>"): New insn definition.
4211 ("bswap<mode>"): Generate the permute pattern operand in the
4212 expander and perform the operand reloads for pre arch13 level
4214 ("*bswap<mode>_emu"): Rename to ...
4215 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4216 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4217 Add the USE operand for the permute pattern.
4218 ("*vec_set_bswap_vec<mode>"): Likewise.
4220 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4223 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4224 and gcc_unreachable if it fails, just call tree_to_uhwi which
4225 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4226 Start warning message with a lower-case letter. Formatting fixes.
4228 PR rtl-optimization/90026
4229 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4230 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4231 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4232 in cfglayout mode, use emit_barrier_after_bb.
4234 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4236 PR rtl-optimization/87763
4237 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4240 2019-04-11 Tom de Vries <tdevries@suse.de>
4242 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4243 max macro using statement expression.
4245 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4247 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4248 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4249 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4250 read_only_private_data_section using xcoff_private_rodata_section_name.
4251 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4253 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4256 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4258 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4260 PR rtl-optimization/89965
4261 * dce.c (sp_based_mem_offset): New function.
4262 (find_call_stack_args): Use sp_based_mem_offset.
4264 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4266 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4268 2019-04-11 Richard Biener <rguenther@suse.de>
4270 PR tree-optimization/90020
4271 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4272 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4273 * tree-ssa-pre.c (compute_avail): Use it to not put
4274 possibly trapping references after a call that might not
4275 return into EXP_GEN.
4276 * gcse.c (compute_hash_table_work): Do not elide
4277 marking a block containing a call if the call might not
4280 2019-04-11 Richard Biener <rguenther@suse.de>
4282 PR tree-optimization/90018
4283 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4284 Test both SLP and interleaving variants.
4286 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4288 * config/s390/8561.md: New file.
4289 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4290 Add arch13 cpu model.
4291 * config/s390/s390-opts.h (enum processor_type): Likewise.
4292 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4293 (s390_get_unit_mask): Likewise.
4294 (s390_is_fpd): Likewise.
4295 (s390_is_fxd): Likewise.
4296 * config/s390/s390.h (s390_tune_attr): Likewise.
4297 * config/s390/s390.md: Include arch13 pipeline description.
4298 * config/s390/s390.opt: Add arch13.
4300 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4302 PR rtl-optimization/87763
4303 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4305 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4307 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4309 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4310 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4311 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4312 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4314 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4316 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4317 "Although" in -fipa-icf documentation.
4319 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4320 of using multiple -g options.
4322 2019-04-10 Martin Liska <mliska@suse.cz>
4324 PR gcov-profile/89959
4325 * doc/gcov.texi: Make documentation of -x option
4328 2019-04-10 Richard Biener <rguenther@suse.de>
4330 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4332 (DR_GROUP_SAME_DR_STMT): Remove.
4333 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4334 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4335 replace with assert.
4336 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4337 (vect_record_grouped_load_vectors): Remove unreachable code.
4339 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4342 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4343 obsolete reference to N.
4345 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4348 * expr.c (store_expr): Set properly size on the MEM passed to
4352 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4353 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4354 translation is needed, and when translation is needed, only append
4355 ... if the string length is hostsz or more bytes long. Avoid using
4358 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4361 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4362 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4364 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4365 differences directly.
4366 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4368 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4370 PR translation/90011
4371 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4373 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4375 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4376 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4377 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4378 trailing space from -gsplit-dwarf diagnostics.
4380 PR tree-optimization/89998
4381 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4382 instead of integer_type_node if possible, don't add ranges if return
4383 type is not compatible with int.
4384 * gimple-fold.c (gimple_fold_builtin_sprintf,
4385 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4388 2019-04-09 Martin Liska <mliska@suse.cz>
4390 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4391 * doc/install.texi: Document the new config.
4393 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4395 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4396 use gimple_expr_type for load and store calls. Skip over the
4397 condition argument in a conditional internal function.
4398 Protect use of TREE_INT_CST_LOW.
4400 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4403 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4404 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4405 trailing period from it too.
4407 2019-04-08 wu yuan <wuyuan5@huawei.com>
4409 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4410 * config/aarch64/aarch64.md : Add "tsv110.md"
4411 * config/aarch64/tsv110.md: New file.
4413 2019-04-08 Richard Biener <rguenther@suse.de>
4415 PR tree-optimization/90006
4416 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4419 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4422 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4424 (fma_root_node): Likewise.
4425 (func_fma_steering): Likewise.
4427 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4429 PR rtl-optimization/89865
4430 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4432 PR rtl-optimization/89865
4433 * config/i386/i386.md
4434 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4435 numbers not to clash with the additional operands[4].
4436 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4437 with extra register copy in the middle.
4439 2019-04-08 Martin Liska <mliska@suse.cz>
4441 PR gcov-profile/89961
4442 * doc/gcov.texi: Document data_file.
4443 * gcov.c (generate_results): Add data_info into JSON output.
4445 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4447 PR tree-optimization/89725
4448 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4449 loop's chrec as invariant symbol.
4450 * tree-chrec.h (chrec_contains_symbols): New parameter.
4451 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4452 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4453 function of loops not in DDR's loop_nest.
4454 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4456 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4459 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4462 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4465 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4466 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4468 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4470 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4471 targetm.fixed_condition_code_regs.
4473 2019-04-05 Richard Biener <rguenther@suse.de>
4477 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4478 debug bind stmts but reset them if they are not valid at the
4481 2019-04-05 Martin Liska <mliska@suse.cz>
4483 PR translation/89936
4484 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4485 order to wrap keywords or arguments.
4486 * collect2.c (main): Likewise.
4487 (scan_prog_file): Likewise.
4488 (scan_libraries): Likewise.
4489 * common/config/riscv/riscv-common.c
4490 (riscv_subset_list::parsing_subset_version): Likewise.
4491 (riscv_subset_list::parse_std_ext): Likewise.
4492 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4494 * config/arm/arm.c (arm_option_override): Likewise.
4495 * config/cris/cris.c (cris_print_operand): Likewise.
4496 * config/darwin-c.c (darwin_pragma_options): Likewise.
4497 (darwin_pragma_unused): Likewise.
4498 (darwin_pragma_ms_struct): Likewise.
4499 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4500 * config/i386/i386.c (print_reg): Likewise.
4501 (ix86_print_operand): Likewise.
4502 * config/i386/xm-djgpp.h: Likewise.
4503 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4504 * config/m32c/m32c.c (m32c_option_override): Likewise.
4505 * config/msp430/msp430.c (msp430_option_override): Likewise.
4506 * config/nds32/nds32.c (nds32_option_override): Likewise.
4507 * config/nvptx/mkoffload.c (main): Likewise.
4508 * config/rx/rx.c (rx_print_operand): Likewise.
4509 (valid_psw_flag): Likewise.
4510 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4511 (vms_pragma_nomember_alignment): Likewise.
4512 (vms_pragma_extern_model): Likewise.
4513 * lto-wrapper.c (compile_offload_image): Likewise.
4514 * omp-offload.c (oacc_parse_default_dims): Likewise.
4515 * symtab.c (symtab_node::verify_base): Likewise.
4516 * tlink.c (recompile_files): Likewise.
4517 (start_tweaking): Likewise.
4518 * tree-profile.c (parse_profile_filter): Likewise.
4520 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4522 PR tree-optimization/89956
4523 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4524 multiple negates of the same value.
4526 2019-04-04 Martin Sebor <msebor@redhat.com>
4530 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4531 have the same precision since the function crashes otherwise.
4532 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4533 has non-zero arguments.
4535 2019-04-04 Martin Sebor <msebor@redhat.com>
4538 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4539 out if the number of arguments is less than expected.
4541 2019-04-04 Jeff Law <law@redhat.com>
4543 PR rtl-optimization/89399
4544 * ree.c (combine_set_extension): Use single_set rather than
4545 digging into PATTERN for items on the candidate list.
4546 (combine_reaching_defs): Likewise.
4548 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4550 PR rtl-optimization/46590
4551 * loop-invariant.c (find_defs): Move df_remove_problem and
4552 df_process_deferred_rescans to move_invariants.
4553 Move df_live_add_problem and df_live_set_all_dirty calls
4555 (move_invariants): Likewise.
4556 (move_loop_invariants): Likewise, making the df_live calls
4557 conditional on -O. Remove the problem again if we added it
4560 2019-04-03 qing zhao <qing.zhao@oracle.com>
4562 PR tree-optimization/89730
4563 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4564 -flive-patching=inline-only-static.
4565 (can_inline_edge_by_limits_p): Add the checking for
4566 -flive-patching=inline-only-static and grant always_inline
4567 even when -flive-patching=inline-only-static is specified.
4569 2019-04-03 Jeff Law <law@redhat.com>
4571 PR rtl-optimization/81025
4572 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4574 2019-04-03 Richard Biener <rguenther@suse.de>
4576 PR tree-optimization/84101
4577 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4578 regs.h for hard_regno_nregs.
4579 (cfun_returns): New helper.
4580 (vect_model_store_cost): When vectorizing a store to a decl
4581 we return and the function ABI returns in a multi-reg location
4582 account for the possible spilling that will happen.
4584 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4586 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4587 displacement addresses for vector mode operands.
4589 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4591 * config/arc/arc.c (GMASK_LEN): Define.
4592 (arc_restore_callee_saves): Restore first blink when
4595 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4597 * doc/extend.texi: Add deprecated comment on sign-return-address
4598 function attribute and add mbranch-protection.
4599 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4601 2019-04-03 Richard Biener <rguenther@suse.de>
4604 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4605 the all target phony.
4607 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4611 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4612 Return false for variable DImode shifts.
4613 (dimode_scalar_chain::compute_convert_gain): Do not handle
4614 register count operand in variable DImode shifts.
4615 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4616 count argument of a variable shift instruction to a vector register.
4617 (dimode_scalar_chain::convert_reg): Remove support to convert
4618 count argument of a variable shift instruction.
4620 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4622 PR rtl-optimization/84206
4623 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4624 iterating over loop headers.
4626 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4628 PR rtl-optimization/85876
4629 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4630 beyond the original fence.
4632 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4634 * config.gcc: Mark spu* targets as deprecated/obsolete.
4636 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4638 * config/s390/s390-builtin-types.def: New builtin function type
4639 definitions. Remove unused types.
4640 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4641 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4642 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4643 overloaded builtins.
4644 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4645 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4646 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4647 (vec_double, vec_signed, vec_unsigned): Define to use the new
4648 overloaded builtins.
4649 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4652 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4654 * config/s390/s390-builtin-types.def: New builtin function type
4656 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4657 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4658 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4659 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4660 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4661 constant definitions.
4662 * config/s390/vecintrin.h (vec_search_string_cc)
4663 (vec_search_string_until_zero_cc): New builtin name definitions.
4664 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4666 ("vec_vstrs<mode>"): New insn definition.
4668 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4670 * config/s390/s390-builtin-types.def: Add new builtin function
4672 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4673 New overloaded builtins.
4674 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4676 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4677 (UNSPEC_VEC_SLDBYTE): ... this.
4678 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4679 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4681 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4682 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4683 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4685 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4687 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4688 New insn definition.
4689 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4690 * config/s390/vector.md (V_HW_HSD): ... here.
4692 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4694 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4695 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4696 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4697 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4698 New insn definitions.
4700 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4702 * config/s390/s390-builtin-types.def: Add new builtin function type.
4703 * config/s390/s390-builtins.def: Add overloaded builtin
4704 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4705 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4706 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4707 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4708 ("eltswap<mode>"): New expander.
4709 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4712 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4714 * config/s390/s390-builtin-types.def: Add new builtin function types.
4715 * config/s390/s390-builtins.def: Add overloaded builtin
4716 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4718 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4719 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4720 ("bswap<mode>"): New expander.
4721 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4723 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4725 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4726 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4727 vector builtin version number in __VEC__.
4729 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4731 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4733 (SFSI): New mode attribute.
4734 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4735 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4737 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4738 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4739 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4740 ("floatsi<mode>2"): Add wcefb instruction.
4742 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4744 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4745 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4747 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4748 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4749 support 32 bit fp-int conversions. Rename to ...
4750 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4751 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4752 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4753 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4756 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4758 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4759 if-then-else constructs if we can use the select instruction.
4760 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4762 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4764 * config/s390/s390.md ("*popcountdi_arch13_cc")
4765 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4767 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4768 Append _z196 to make it ...
4769 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4770 ("popcounthi2_z196"): ... this.
4771 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4772 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4774 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4776 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4777 certain compares for arch13 in order to make use of the condition
4778 code result produced by the new instructions.
4779 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4780 nxrk, and nxgrk instruction patterns.
4781 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4782 (inv_no): Add new code iterator together with some attributes.
4783 ("*andc_split_<mode>"): Disable splitter for arch13.
4784 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4785 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4786 ("*<ANDOR:bitops_name>c<GPR:mode>")
4787 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4788 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4789 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4790 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4792 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4794 * common/config/s390/s390-common.c (processor_flags_table): New
4796 * config.gcc: Support arch13 with the --with-arch= configure flag.
4797 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4798 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4799 * config/s390/s390.c (s390_get_sched_attrmask)
4800 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4801 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4802 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4803 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4804 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4806 * config/s390/s390.opt: Support arch13 as processor type in
4807 command line options.
4809 2019-04-02 Martin Liska <mliska@suse.cz>
4811 PR translation/89912
4812 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4813 Fix param description of graphite-max-arrays-per-scop.
4815 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4817 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4818 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4819 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4821 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4823 PR rtl-optimization/85412
4824 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4825 sel_sched_region_1, not after.
4827 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4829 PR rtl-optimization/86928
4830 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4831 compute_live if necessary.
4832 (sel_redirect_edge_and_branch): Likewise.
4834 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4836 PR rtl-optimization/89865
4837 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4838 register if it is a part of small class.
4840 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4842 PR rtl-optimization/87273
4843 * sel-sched-ir.c (merge_fences): Remove assert.
4845 2019-04-01 Richard Biener <rguenther@suse.de>
4847 PR tree-optimization/46590
4848 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4849 (dom_walker::m_reachability): Add in place of...
4850 (dom_walker::m_skip_unreachable_blocks): ...this.
4851 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4852 Move complex initialization ...
4853 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4854 lazily and initialize edge flags on each invocation.
4855 (dom_walker::bb_reachable): Use m_reachability.
4857 2019-04-01 Martin Liska <mliska@suse.cz>
4860 * opt-suggestions.c (option_proposer::build_option_suggestions):
4861 Add variant without any argument in order to provide better
4864 2019-04-01 Richard Biener <rguenther@suse.de>
4867 * gimple.c: Include langhooks.h.
4868 (gimple_get_alias_set): Treat enumeral types as the underlying
4871 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4872 Eric Botcazou <ebotcazou@adacore.com>
4874 PR rtl-optimization/89862
4875 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4876 that operates on the full registers for WORD_REGISTER_OPERATIONS
4879 2019-03-29 Jim Wilson <jimw@sifive.com>
4881 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4882 Clear MASK_RVC and then set if C subset supported.
4884 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4887 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4888 non-addressable complit into its initializer if it is volatile.
4890 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4892 * opts-common.c (integral_argument): Set errno properly in one case.
4894 2019-03-29 Martin Liska <mliska@suse.cz>
4896 * doc/invoke.texi: Remove -Wchkp from documentation.
4898 2019-03-29 Martin Liska <mliska@suse.cz>
4900 * dbgcnt.c (print_limit_reach): New function.
4903 2019-03-29 Martin Liska <mliska@suse.cz>
4905 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4906 (dbg_cnt_process_opt): Parse first tokens aas
4907 dbg_cnt_process_single_pair is also using strtok.
4909 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4911 PR rtl-optimization/87485
4912 * function.c (expand_function_end): Move stack_protect_epilogue
4913 before loading of return value into hard register(s).
4915 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4918 * tree-inline.h (struct copy_body_data): Add
4919 dont_remap_vla_if_no_change flag.
4920 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4921 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4922 and remap_type_2 returns false.
4923 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4924 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4925 only from where it is copied to nested contexts.
4927 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4930 * config/i386/i386.md (RMW operation with LEA peephole):
4931 Use LEAMODE mode attribute instead of SWI mode iterator for
4934 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4937 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4938 Also process XEXP (src, 0) of a shift insn.
4940 2019-03-28 David Malcolm <dmalcolm@redhat.com>
4943 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4944 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4946 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4948 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4950 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4951 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
4952 immediately after first one with df_analyze in between, but rather
4953 process all bbs, queueing ones that need second pass in a worklist,
4954 df_analyze, process queued debug insn changes and if second pass is
4955 needed, process bbs from worklist, df_analyze, process queued debug
4958 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4959 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4960 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4962 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
4965 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4968 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
4971 * config/i386/i386.c (ix86_function_value_1): Call the newly added
4972 function for 32-bit MS_ABI.
4973 (function_value_ms_32): New function.
4975 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
4977 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4978 (movdi): Call gen_movdi_symbol_save_scc.
4979 (gen_movdi_symbol_save_scc): New insn and split.
4981 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
4983 PR rtl-optimization/89313
4984 * function.c (matching_constraint_num): New static function.
4985 (match_asm_constraints_1): Use it. Fixup white space and comment.
4986 Don't replace inputs with non-matching constraints which conflict
4987 with early clobber outputs.
4989 2019-03-27 Jeff Law <law@redhat.com>
4992 PR rtl-optimization/87761
4993 PR rtl-optimization/89826
4994 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4996 (pass_cprop_hardreg::execute): Call df_analyze after adding the
4997 note problem to get REG_DEAD/REG_UNUSED notes updated.
4999 2019-03-27 Richard Biener <rguenther@suse.de>
5001 PR tree-optimization/89463
5002 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5003 queue edges to remove.
5004 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5005 dead stmts. Delay edge removal until PHIs are removed to
5006 make debug-stmt creation not confused by seemingly degenerate
5009 2019-03-27 Alan Modra <amodra@gmail.com>
5011 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5013 * config/rs6000/darwin.h: Likewise.
5014 * config/rs6000/rs6000.c: Likewise.
5016 2019-03-27 Alan Modra <amodra@gmail.com>
5018 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5019 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5021 2019-03-26 Andrew Waterman <andrew@sifive.com>
5022 Jim Wilson <jimw@sifive.com>
5024 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5025 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5026 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5027 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5028 (generic_alu): Add auipc to type list.
5029 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5030 (riscv_microarchitecture): Declare.
5031 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5032 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5034 (riscv_microarchitecture): New.
5035 (sifive_7_tune_info): New.
5036 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5037 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5039 (riscv_store_data_bypass_p): New.
5040 (riscv_option_override): Set riscv_microarchitecture from
5041 cpu->microarchitecture.
5042 * config/riscv/riscv.md: Include sifive-7.md.
5045 (auipc<mode>): Change type to auipc.
5046 (restore_stack_nonlocal): New.
5047 * config/riscv/sifive-7.md: New.
5048 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5050 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5053 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5054 Also process XEXP (src, 0) of a shift insn.
5056 2019-03-26 Richard Biener <rguenther@suse.de>
5058 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5059 (copy_debug_stmt): Likewise.
5060 (expand_call_inline): Likewise.
5061 (copy_bb): Avoid redundant lookup & set of gimple_block.
5062 * gimple-low.c (lower_gimple_return): Likewise.
5063 (lower_builtin_setjmp): Likewise.
5065 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5067 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5068 is constant 0, turn into static const data member initialized to false.
5069 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5070 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5072 2019-03-26 Jason Merrill <jason@redhat.com>
5073 Jakub Jelinek <jakub@redhat.com>
5075 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5077 (mem_alloc_description::release_object_overhead): Fix comment typos.
5078 * hash-table.h (hash_table::~hash_table): Call
5079 release_instance_overhead only if m_entries is non-NULL, otherwise
5080 call unregister_descriptor.
5082 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5084 PR tree-optimization/81740
5085 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5086 In case of outer loop vectorization, check for backward dependence
5087 at the inner loop if outer loop dependence is reversed.
5089 2019-03-26 Alan Modra <amodra@gmail.com>
5091 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5092 rs6000_vector_mem init. Correct wI and wJ comment.
5094 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5096 PR rtl-optimization/88347
5097 PR rtl-optimization/88423
5098 * sched-deps.c (sched_analyze_insn): Take into account that for
5099 tablejumps the barrier appears after a label and a jump_table_data.
5101 2019-03-25 Martin Sebor <msebor@redhat.com>
5104 * c-common.c (check_user_alignment): Rename local. Correct maximum
5105 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5106 convert it to UHWI when it fits.
5108 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5111 * dwarf2out.c (premark_used_variables): New function.
5112 (prune_unused_types_walk): Do not mark not premarked external
5114 (prune_unused_types): Call premark_used_variables.
5116 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5118 PR rtl-optimization/89676
5119 * lra-constraints.c (curr_insn_transform): Do match reload for
5120 early clobbers when the match was successful only for different
5123 2019-03-25 Martin Sebor <msebor@redhat.com>
5125 * doc/extend.texi (Common Type Attributes): Document vector_size.
5126 (Common Variable Attributes): Mention size constraint. Correct
5128 (Vector Extensions): Use @dfn when defining bas type. Clarify
5129 base type and size constraints.
5131 2019-03-25 Richard Biener <rguenther@suse.de>
5133 PR tree-optimization/89789
5134 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5135 changes from non-undefined back to undefined.
5137 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5139 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5140 heap string and a gc string, but since this variable is unknown to
5141 ggc the gc string might get reused and corrupted. Fixed by always
5142 using a heap string.
5144 2019-03-25 Richard Biener <rguenther@suse.de>
5146 PR tree-optimization/89779
5147 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5148 to remove IV defs, delay actual removal.
5149 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5150 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5151 very end, properly also reset loop control IV information.
5153 2019-03-25 Richard Biener <rguenther@suse.de>
5155 PR tree-optimization/89802
5156 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5157 move EH data to folded stmt.
5159 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5161 * config/s390/s390-builtin-types.def: Remove few unused types and
5162 fix sort order for others.
5164 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5166 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5167 expected and found types with -mdebug during builtin matching.
5169 2019-03-25 Richard Biener <rguenther@suse.de>
5172 * fold-const.c (operand_equal_p): Revert last change with
5175 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5177 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5178 notes for the result of the __tls_get_addr calls.
5179 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5181 2019-03-24 Jeff Law <law@redhat.com>
5183 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5185 PR rtl-optimization/87761
5186 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5187 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5189 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5190 rescans. Reprocess blocks as needed, calling df_analyze before
5191 reprocessing. Always call df_analyze before fixing up debug bind
5194 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5196 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5199 2019-03-22 Andrew Pinski <apinski@marvell.com>
5201 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5202 attrribute for uxtw.
5204 2019-03-26 Jeff Law <law@redhat.com>
5206 PR rtl-optimization/87761
5207 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5208 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5209 (mips_split_move): Accept new INSN argument. Try to forward SRC
5210 into the next instruction.
5211 (mips_split_move_insn): Pass INSN through to mips_split_move.
5213 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5215 PR rtl-optimization/89676
5216 * lra-constraints.c (curr_insn_transform): Do match reload for
5217 early clobbers even if the match was successful.
5219 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5222 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5224 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5226 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5228 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5230 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5231 <avx512>_fmsub_<mode>_mask3<round_name>,
5232 <avx512>_fnmadd_<mode>_mask3<round_name>,
5233 <avx512>_fnmsub_<mode>_mask3<round_name>,
5234 avx512f_vmfmadd_<mode>_mask3<round_name>,
5235 avx512f_vmfmsub_<mode>_mask3<round_name>,
5236 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5237 instead of register_operand and %v instead of v for match_operand 1.
5238 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5239 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5240 <round_nimm_predicate> instead of register_operand and %v instead of v
5241 for match_operand 1.
5243 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5244 <avx512>_fmadd_<mode>_mask3<round_name>,
5245 <avx512>_fmsub_<mode>_mask<round_name>,
5246 <avx512>_fmsub_<mode>_mask3<round_name>,
5247 <avx512>_fnmadd_<mode>_mask<round_name>,
5248 <avx512>_fnmadd_<mode>_mask3<round_name>,
5249 <avx512>_fnmsub_<mode>_mask<round_name>,
5250 <avx512>_fnmsub_<mode>_mask3<round_name>,
5251 <avx512>_fmaddsub_<mode>_mask<round_name>,
5252 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5253 <avx512>_fmsubadd_<mode>_mask<round_name>,
5254 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5255 <round_nimm_predicate> instead of nonimmediate_operand.
5256 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5257 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5258 Use register_operand instead of <round_nimm_predicate> for the
5259 operand that needs to match output.
5260 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5261 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5262 Likewise. Formatting fixes.
5265 * config/i386/i386.c (enum ix86_builtins): Remove
5266 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5267 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5268 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5269 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5270 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5271 __builtin_ia32_vfmsubss3_mask3): New builtins.
5272 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5273 avx512f_vmfmadd_<mode>_mask3<round_name>,
5274 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5275 *avx512f_vmfmsub_<mode>_mask<round_name>,
5276 avx512f_vmfmsub_<mode>_mask3<round_name>,
5277 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5278 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5279 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5280 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5281 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5282 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5283 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5284 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5285 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5286 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5287 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5288 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5289 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5290 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5291 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5292 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5293 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5294 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5295 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5296 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5297 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5298 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5299 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5300 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5301 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5302 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5303 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5304 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5306 2019-03-21 Martin Sebor <msebor@redhat.com>
5308 PR tree-optimization/89350
5309 * builtins.c (compute_objsize): Also ignore offsets whose upper
5311 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5312 (builtin_memref::builtin_memref): Initialize new member.
5313 Allow EXPR to be null.
5314 (builtin_memref::extend_offset_range): Replace local with a member.
5315 Avoid assuming pointer offsets are unsigned.
5316 (builtin_memref::set_base_and_offset): Determine base object
5317 before computing offset range.
5318 (builtin_access::builtin_access): Handle memset.
5319 (builtin_access::generic_overlap): Replace local with a member.
5320 (builtin_access::strcat_overlap): Same.
5321 (builtin_access::overlap): Same.
5322 (maybe_diag_overlap): Same.
5323 (maybe_diag_access_bounds): Same.
5324 (wrestrict_dom_walker::check_call): Handle memset.
5325 (check_bounds_or_overlap): Same.
5327 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5328 Jakub Jelinek <jakub@redhat.com>
5331 * tree.c (fld_type_variant, fld_incomplete_type_of,
5332 fld_process_array_type): Call fld->pset.add and don't call
5333 add_tree_to_fld_list if it returns true.
5334 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5335 non-marked types from TYPE_NEXT_VARIANT list.
5336 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5338 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5340 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5341 to false, if true, don't alloc_entries during construction, but defer
5342 it to the first method that needs m_entries allocated.
5343 (hash_table::hash_table, hash_table::~hash_table,
5344 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5345 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5346 hash_table::clear_slot, hash_table::traverse_noresize,
5347 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5348 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5350 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5351 NO_INSERT instead of find_with_hash.
5352 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5353 hash_set::m_table): Add Lazy to template params of hash_table.
5354 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5355 * attribs.c (test_attribute_exclusions): Likewise.
5356 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5357 hash_set. Add tests for hash_set with Lazy = true.
5359 2019-03-21 Richard Biener <rguenther@suse.de>
5361 PR tree-optimization/89779
5362 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5363 checks with respect to released SSA names now having error_mark_node
5365 * fold-const.c (operand_equal_p): Likewise.
5367 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5370 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5372 (s390_optimize_register_info): Use global_not_special_regno_p to
5373 check for global regs.
5375 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5378 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5379 update this_alternative nor this_alternative_set.
5381 2019-03-19 Jim Wilson <jimw@sifive.com>
5384 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5385 align, size, offset. Use them to handle a BLKmode reference. Update
5387 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5389 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5391 PR rtl-optimization/89768
5392 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5394 (unroll_loop_runtime_iterations): Likewise.
5396 2019-03-19 Martin Sebor <msebor@redhat.com>
5398 PR tree-optimization/89644
5399 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5400 rather than endptr as an indicator of nul-termination.
5402 PR tree-optimization/89644
5403 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5404 arrays in determining sequence sizes in strncpy and stpncpy.
5406 2019-03-19 Martin Liska <mliska@suse.cz>
5409 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5410 unlikely_edges if there's an edge that belongs to both these sets.
5412 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5415 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5416 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5417 go via a stack temporary.
5419 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5422 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5423 instead of gen_rtx_SUBREG.
5424 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5426 2019-03-19 Richard Biener <rguenther@suse.de>
5429 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5431 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5435 * tree.c (free_lang_data_in_decl): Do not free context of C++
5438 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5441 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5442 subs for the first alternative except when operands[3] is 1.
5445 * gimplify.c (gimplify_asm_expr): For output argument with
5446 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5449 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5451 PR rtl-optimization/89753
5452 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5453 explicit unrolling factor even more robust.
5455 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5458 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5459 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5460 signed zeros, do another copysign after the compensation.
5462 2019-03-18 Martin Sebor <msebor@redhat.com>
5464 PR tree-optimization/89720
5465 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5466 more conservatively, the same as anti-range.
5468 2019-03-18 Richard Biener <rguenther@suse.de>
5471 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5472 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5473 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5474 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5476 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5478 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5479 Extend queue to 1024 entries.
5480 Add "consumed" field.
5481 (gomp_print_output): Remove print_index parameter.
5482 Add final parameter.
5483 Change limit to unsigned.
5484 Use consumed field to implement circular buffer.
5485 Detect interrupted print in final pass.
5486 Flush output at the end.
5487 (run): Update gomp_print_output usage.
5488 (main): Initialize kernargs->output_data.consumed.
5490 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5492 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5493 calculation of the minimum number of scalar iterations for
5494 fully-predicated loops.
5496 2019-03-18 Martin Jambor <mjambor@suse.cz>
5498 PR tree-optimization/89546
5499 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5500 any propagation to its children took place.
5502 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5505 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5506 parameter, and make use of it.
5507 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5509 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5511 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5512 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5513 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5514 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5515 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5516 match what the ops is doing.
5517 (push_multi_fp_blink): Likewise.
5518 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5519 compiling for size and elf target.
5520 (arc_save_callee_enter): Adjust note to match what enter/leave
5523 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5525 * config/arc/arc.md (tst_movb): Fix constraint.
5527 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5529 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5531 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5533 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5534 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5535 reg_alloc_order references.
5536 (size_alloc_order): Define.
5537 (arc_adjust_reg_alloc_order): New function.
5538 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5540 (ADJUST_REG_ALLOC_ORDER): Define.
5541 (HONOR_REG_ALLOC_ORDER): Likewise.
5543 2019-03-18 Richard Biener <rguenther@suse.de>
5546 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5547 loads and stores a bit more.
5549 2019-03-18 Richard Biener <rguenther@suse.de>
5552 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5553 load pessimization to stores as well.
5555 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5558 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5559 successor, use NULL as its av set.
5561 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5563 PR rtl-optimization/89721
5564 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5566 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5569 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5570 When handling vec_extract, use modular arithmetic to allow
5571 constant selectors greater than vector length.
5572 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5573 V1TImode vectors to have constant selector values greater than 0.
5574 Use modular arithmetic to compute vector index.
5575 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5576 index for in-memory vectors. Correct code generation for
5577 in-register vectors.
5578 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5581 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5585 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5588 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5591 * tree.c (inchash::add_expr): Strip any location wrappers.
5592 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5593 after hash verification.
5596 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5597 SIGN_EXTEND and ZERO_EXTEND.
5599 2019-03-14 Jason Merrill <jason@redhat.com>
5600 Jakub Jelinek <jakub@redhat.com>
5602 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5603 than if is_empty (*slot).
5604 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5605 existing elt and for elt removal.
5606 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5607 of already removed elt.
5609 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5612 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5615 2019-03-14 Martin Liska <mliska@suse.cz>
5618 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5620 2019-03-14 Richard Biener <rguenther@suse.de>
5623 * config/i386/i386.c (make_resolver_func): Properly set
5624 DECL_CONTEXT on the RESULT_DECL.
5625 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5627 2019-03-14 Richard Biener <rguenther@suse.de>
5629 * gimple-pretty-print.c: Include cfgloop.h.
5630 (dump_gimple_phi): Adjust.
5631 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5632 (pp_cfg_jump): Adjust.
5633 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5634 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5635 (lower_phi_internal_fn): Remove.
5636 (verify_gimple_call): Remove IFN_PHI special-casing.
5637 (dump_function_to_file): Dump IL state.
5638 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5639 done to deal with PHI nodes being present in non-SSA state.
5641 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5644 * multiple_target.c (create_dispatcher_calls): Change
5645 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5646 In the node->iterate_referring loop, push *ref rather than ref, call
5647 ref->remove_reference () and always pass 0 to iterate_referring.
5649 PR rtl-optimization/89679
5650 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5651 would contain a paradoxical SUBREG.
5653 2019-03-14 Richard Biener <rguenther@suse.de>
5655 PR tree-optimization/89710
5656 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5659 2019-03-14 Martin Liska <mliska@suse.cz>
5661 * coverage.c (coverage_begin_function): Stream also
5663 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5664 documentation about function declaration location.
5665 * gcov-dump.c (tag_function): Print whole range
5666 of function declaration.
5667 * gcov.c (struct function_info): Add end_column field.
5668 (function_info::function_info): Initialize it.
5669 (output_json_intermediate_file): Output {start,end}_column
5671 (read_graph_file): Read end_column.
5673 2019-03-14 Richard Biener <rguenther@suse.de>
5676 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5677 that the access types are similar.
5679 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5681 PR tree-optimization/89703
5682 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5683 aren't compatible also with builtin_decl_explicit. Check pure
5684 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5685 and BUILT_IN_STPNCPY{,_CHK}.
5687 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5690 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5691 addr32 prefix to VSIB address for X32.
5692 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5694 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5695 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5696 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5697 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5698 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5699 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5700 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5701 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5702 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5703 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5704 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5705 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5706 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5707 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5708 (*avx512f_scatterdi<mode>): Likewise.
5710 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5713 * lra-constraints.c (inherit_in_ebb): Update
5714 potential_reload_hard_regs along with live_hard_regs.
5716 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5719 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5721 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5723 2019-03-13 Martin Sebor <msebor@redhat.com>
5725 PR tree-optimization/89662
5726 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5729 2019-03-13 Richard Biener <rguenther@suse.de>
5732 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5733 throw FP expressions at tree-affine.
5735 2019-03-14 Richard Biener <rguenther@suse.de>
5737 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5738 dump negative integer constants using _Literal (type) -num.
5740 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5742 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5743 nonlocal_value member.
5746 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5747 (ipa_simd_modify_function_body): Handle PHIs.
5749 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5751 * config/s390/s390.c (s390_option_override_internal): Use more
5752 aggressive inlining parameters.
5754 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5756 * config/s390/3906.md: New file.
5757 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5758 (LONGRUNNING_THRESHOLD): Remove.
5759 (MAX_SCHED_MIX_SCORE): Decrease.
5760 (MAX_SCHED_MIX_DISTANCE): Decrease.
5761 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5762 (struct s390_sched_state): New struct to hold scheduling state.
5763 (S390_SCHED_STATE_NORMAL): Remove.
5764 (S390_SCHED_STATE_CRACKED): Remove.
5765 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5766 (s390_get_sched_attrmask): Use new attribute.
5767 (s390_get_unit_mask): Use new units.
5768 (s390_is_fpd): New function.
5769 (s390_is_fxd): New function.
5770 (s390_is_longrunning): New function.
5771 (s390_sched_score): Use new functions.
5772 (s390_sched_reorder): Likewise.
5773 (s390_sched_variable_issue): Rework and use new functions.
5774 (s390_sched_init): Use new functions.
5775 * config/s390/s390.h (s390_tune_attr): Add z14.
5776 * config/s390/s390.md: Add z14.
5778 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5780 * config/s390/2964.md: Update pipeline description.
5781 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5782 (LONGRUNNING_THRESHOLD): Remove.
5783 (LATENCY_FACTOR): Remove.
5784 (s390_get_unit_mask): Add unit.
5785 (s390_sched_score): Use fxd/fpd.
5786 (s390_sched_variable_issue): Use fxd/fpd.
5788 2019-03-12 Martin Liska <mliska@suse.cz>
5790 * config/i386/i386.c: Reword an error message.
5792 2019-03-12 Martin Jambor <mjambor@suse.cz>
5794 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5795 terminate with newline.
5797 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5800 * config/s390/s390.md (tabort): Use %wd instead of
5801 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5802 letters and periods.
5803 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5804 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5808 * builtins.c (expand_builtin_int_roundingfn,
5809 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5810 gcc_unreachable if validate_arglist fails.
5812 2019-03-12 Richard Biener <rguenther@suse.de>
5814 PR tree-optimization/89664
5815 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5816 free the occurance tree after the early out.
5818 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5822 * vr-values.c (vr_values::update_value_range): If
5823 old_vr->varying_p (), don't update it, make new_vr also VARYING
5826 2019-03-11 Martin Liska <mliska@suse.cz>
5828 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5829 Fix double string quoting.
5831 2019-03-11 Martin Liska <mliska@suse.cz>
5833 * collect-utils.c (collect_wait): Wrap apostrophes
5834 in gcc internal format with %'.
5835 * collect2.c (main): Likewise.
5836 (scan_prog_file): Likewise.
5837 (scan_libraries): Likewise.
5838 * config/i386/i386.c (ix86_expand_call): Likewise.
5839 (ix86_handle_interrupt_attribute): Likewise.
5840 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5841 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5842 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5843 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5844 * symtab.c (symtab_node::verify_base): Likewise.
5845 * tree-cfg.c (verify_gimple_label): Likewise.
5846 * tree.c (verify_type_variant): Likewise.
5848 2019-03-11 Martin Liska <mliska@suse.cz>
5850 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5851 in a string format message and fix GNU coding style.
5852 (expand_builtin_set_thread_pointer): Likewise.
5853 * common/config/aarch64/aarch64-common.c
5854 (aarch64_rewrite_selected_cpu): Likewise.
5855 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5856 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5857 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5858 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5859 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5860 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5861 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5862 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5863 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5864 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5866 * common/config/riscv/riscv-common.c
5867 (riscv_subset_list::parsing_subset_version): Likewise.
5868 (riscv_subset_list::parse_std_ext): Likewise.
5869 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5870 (riscv_subset_list::parse): Likewise.
5871 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5872 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5873 (aarch64_override_options_internal): Likewise.
5874 (aarch64_validate_mcpu): Likewise.
5875 (aarch64_validate_march): Likewise.
5876 (aarch64_validate_mtune): Likewise.
5877 (aarch64_override_options): Likewise.
5878 * config/alpha/alpha.c (alpha_option_override): Likewise.
5879 * config/arc/arc.c (arc_init): Likewise.
5880 (parse_mrgf_banked_regs_option): Likewise.
5881 (arc_override_options): Likewise.
5882 (arc_expand_builtin_aligned): Likewise.
5883 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5884 (arm_expand_builtin): Likewise.
5885 * config/arm/arm.c (arm_option_check_internal): Likewise.
5886 (arm_configure_build_target): Likewise.
5887 (arm_option_override): Likewise.
5888 (arm_options_perform_arch_sanity_checks): Likewise.
5889 (arm_handle_cmse_nonsecure_entry): Likewise.
5890 (arm_handle_cmse_nonsecure_call): Likewise.
5891 (arm_tls_referenced_p): Likewise.
5892 (thumb1_expand_prologue): Likewise.
5893 * config/avr/avr.c (avr_option_override): Likewise.
5894 * config/bfin/bfin.c (bfin_option_override): Likewise.
5895 * config/c6x/c6x.c (c6x_option_override): Likewise.
5896 * config/cr16/cr16.c (cr16_override_options): Likewise.
5897 * config/cris/cris.c (cris_option_override): Likewise.
5898 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5899 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5900 * config/darwin.c (darwin_override_options): Likewise.
5901 * config/frv/frv.c (frv_expand_builtin): Likewise.
5902 * config/h8300/h8300.c (h8300_option_override): Likewise.
5903 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5904 (ix86_option_override_internal): Likewise.
5905 (warn_once_call_ms2sysv_xlogues): Likewise.
5906 (ix86_expand_prologue): Likewise.
5907 (split_stack_prologue_scratch_regno): Likewise.
5908 (ix86_warn_parameter_passing_abi): Likewise.
5909 * config/ia64/ia64.c (fix_range): Likewise.
5910 * config/m68k/m68k.c (m68k_option_override): Likewise.
5911 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5912 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5913 (mips_set_compression_mode): Likewise.
5914 * config/mmix/mmix.c (mmix_option_override): Likewise.
5915 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5916 * config/msp430/msp430.c (msp430_option_override): Likewise.
5917 * config/nds32/nds32.c (nds32_option_override): Likewise.
5918 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5919 (nios2_option_override): Likewise.
5920 (nios2_expand_custom_builtin): Likewise.
5921 * config/nvptx/mkoffload.c (main): Likewise.
5922 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5923 * config/pa/pa.c (fix_range): Likewise.
5924 (pa_option_override): Likewise.
5925 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5926 (riscv_option_override): Likewise.
5927 * config/rl78/rl78.c (rl78_option_override): Likewise.
5928 * config/rs6000/aix61.h: Likewise.
5929 * config/rs6000/aix71.h: Likewise.
5930 * config/rs6000/aix72.h: Likewise.
5931 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5932 * config/rs6000/freebsd64.h: Likewise.
5933 * config/rs6000/linux64.h: Likewise.
5934 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5935 (rs6000_expand_zeroop_builtin): Likewise.
5936 (rs6000_expand_mtfsb_builtin): Likewise.
5937 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5938 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5939 (rs6000_invalid_builtin): Likewise.
5940 (rs6000_expand_split_stack_prologue): Likewise.
5941 * config/rs6000/rtems.h: Likewise.
5942 * config/rx/rx.c (valid_psw_flag): Likewise.
5943 (rx_expand_builtin): Likewise.
5944 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5945 * config/s390/s390.c (s390_expand_builtin): Likewise.
5946 (s390_function_profiler): Likewise.
5947 (s390_option_override_internal): Likewise.
5948 (s390_option_override): Likewise.
5949 * config/sh/sh.c (sh_option_override): Likewise.
5950 (sh_builtin_saveregs): Likewise.
5951 (sh_fix_range): Likewise.
5952 * config/sh/vxworks.h: Likewise.
5953 * config/sparc/sparc.c (sparc_option_override): Likewise.
5954 * config/spu/spu.c (spu_option_override): Likewise.
5955 (fix_range): Likewise.
5956 * config/visium/visium.c (visium_option_override): Likewise.
5957 (visium_handle_interrupt_attr): Likewise.
5958 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5959 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5960 (dbg_cnt_process_opt): Likewise.
5961 * dwarf2out.c (output_dwarf_version): Likewise.
5962 * except.c (expand_eh_return): Likewise.
5963 * gcc.c (defined): Likewise.
5964 (driver_handle_option): Likewise.
5965 (process_command): Likewise.
5966 (compare_files): Likewise.
5967 (driver::prepare_infiles): Likewise.
5968 (driver::do_spec_on_infiles): Likewise.
5969 (driver::maybe_run_linker): Likewise.
5970 * omp-offload.c (oacc_parse_default_dims): Likewise.
5971 * opts-global.c (handle_common_deferred_options): Likewise.
5972 * opts.c (parse_sanitizer_options): Likewise.
5973 (common_handle_option): Likewise.
5974 (enable_warning_as_error): Likewise.
5975 * passes.c (enable_disable_pass): Likewise.
5976 * plugin.c (parse_plugin_arg_opt): Likewise.
5977 (default_plugin_dir_name): Likewise.
5978 * targhooks.c (default_expand_builtin_saveregs): Likewise.
5979 (default_pch_valid_p): Likewise.
5980 * toplev.c (init_asm_output): Likewise.
5981 (process_options): Likewise.
5982 (toplev::run_self_tests): Likewise.
5983 * tree-cfg.c (verify_gimple_call): Likewise.
5984 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5985 (tree_inlinable_function_p): Likewise.
5986 * var-tracking.c (vt_find_locations): Likewise.
5988 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
5990 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5991 only on the else branch.
5993 2019-03-11 Martin Liska <mliska@suse.cz>
5995 * gcov.c (output_intermediate_json_line): Print function
5997 (output_json_intermediate_file): Add new argument.
5998 * doc/gcov.texi: Document the change.
6000 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6002 PR rtl-optimization/89588
6003 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6004 explicit unrolling factor more robust.
6006 2019-03-11 Richard Biener <rguenther@suse.de>
6008 PR tree-optimization/89649
6009 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6010 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6011 on the prolog and epilog loops.
6012 (vect_loop_versioning): Return copy of loop.
6013 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6014 on the non-vectorized version of the loop.
6016 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6019 * config/i386/sse.md (*vec_extractv2di_0_sse):
6020 Add (=r,x) alternative and corresponding splitter.
6022 2019-03-10 Martin Jambor <mjambor@suse.cz>
6024 PR tree-optimization/85762
6025 PR tree-optimization/87008
6026 PR tree-optimization/85459
6027 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6028 it points to if there is a type changing MEM_REF. Adjust all callers.
6029 (build_accesses_from_assign): Disable total scalarization if
6030 contains_vce_or_bfcref_p returns true through the new parameter, for
6033 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6036 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6037 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6040 * common.opt (fdiagnostics-show-labels,
6041 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6042 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6043 gas-locview-support, ginline-points, ginternal-reset-location-views):
6044 Terminate description text with a dot.
6045 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6046 * config/mcore/mcore.opt (m210, m340): Likewise.
6047 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6048 mnops=): Start description text with a capital letter.
6049 * config/arc/arc.opt (msize-level=): Likewise.
6050 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6051 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6053 * config/ft32/ft32.opt (msim): Likewise.
6054 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6055 (mnodiv, mnopm): Terminate description text with a dot.
6056 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6058 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6060 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6063 PR rtl-optimization/89634
6064 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6065 are modified in BB_END (e->src) instruction.
6067 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6070 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6071 messages more amenable to translation, and improve wording.
6073 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6075 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6076 ud- and du-chains between phases.
6078 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6081 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6082 instead of POLY_INT_CST.
6084 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6086 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6089 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6094 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6095 (_mm_storeu_si64): Ditto.
6097 2019-03-08 Martin Liska <mliska@suse.cz>
6100 * config/i386/i386.c (ix86_option_override_internal): Disable
6101 jump tables when retpolines are used.
6103 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6106 * ipa-split.c (execute_split_functions): Do not split
6107 'noinline' or 'section' function.
6109 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6112 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6113 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6114 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6117 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6118 from diagnostics. Formatting fixes.
6121 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6122 warn_odr diagnostics.
6125 * lra-constraints.c (process_alt_operands): Avoid one space before
6126 " at the end of line and another after " on another line in a string
6128 * attribs.c (handle_dll_attribute): Likewise.
6129 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6131 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6132 warning_at or inform messages in G_() if there is no ?:.
6134 PR tree-optimization/89550
6135 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6136 returned true. Formatting fixes.
6137 (expand_builtin_strnlen): Formatting fixes.
6138 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6139 if warning_at returned true.
6140 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6142 2019-03-08 Richard Biener <rguenther@suse.de>
6145 * cfgloop.h (struct loop): Add owned_clique field.
6146 * cfgloopmanip.c (copy_loop_info): Copy it.
6147 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6149 * tree-inline.c (copy_loops): Remap owned_clique.
6150 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6151 * lto-streamer-out.c (output_cfg): Likewise.
6153 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6156 * config/darwin.c: Include intl.h.
6157 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6158 composing the message out of two separate parts.
6160 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6163 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6164 doesn't start with a capital letter and doesn't end with a dot.
6165 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6166 with a capital letter.
6167 (ix86_mangle_function_version_assembler_name): Likewise.
6168 (ix86_generate_version_dispatcher_body): Likewise.
6169 (fold_builtin_cpu): Likewise.
6170 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6171 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6172 translators, wrap full type name in %qs.
6174 PR translation/79999
6175 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6176 depend clause with source (or sink) modifier.
6177 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6180 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6181 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6182 (avx512f_load<mode>_mask): New define_expand.
6183 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6184 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6185 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6186 __builtin_ia32_movess_mask): New builtins.
6187 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6188 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6189 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6190 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6192 2019-03-07 Martin Jambor <mjambor@suse.cz>
6195 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6196 for extern inline functions.
6198 2019-03-07 Martin Jambor <mjambor@suse.cz>
6201 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6202 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6203 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6204 have multiple callees. At the end check if declarations match as
6205 opposed to cgraph_nodes.
6207 2019-03-07 Martin Liska <mliska@suse.cz>
6209 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6210 which is equivalent to searching for this in clones chain.
6211 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6212 names with a neighbour and special case first node in a chain.
6214 2019-01-25 Jason Merrill <jason@redhat.com>
6216 PR c++/80916 - spurious "static but not defined" warning.
6217 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6218 for an internal symbol with DECL_EXTERNAL.
6220 2019-04-07 Richard Biener <rguenther@suse.de>
6223 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6224 * tree-inline.c (copy_loops): Simplify.
6226 2019-03-07 Martin Liska <mliska@suse.cz>
6228 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6230 2019-03-07 Richard Biener <rguenther@suse.de>
6232 PR tree-optimization/89595
6233 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6234 stmt iterator as reference, take boolean output parameter to
6235 indicate whether the stmt was removed and thus the iterator
6237 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6238 stmts created by folding.
6240 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6243 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6246 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6248 PR rtl-optimization/88845
6249 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6251 * lra.c (remove_scratches_1): New function.
6252 (remove_scratches): Use it.
6253 (lra_emit_move): Likewise.
6255 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6257 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6258 unaligned_access variable.
6259 * config/arc/arc.c (arc_override_options): Set unaligned access
6260 default on for HS CPUs.
6261 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6263 2019-03-06 Martin Liska <mliska@suse.cz>
6265 PR gcov-profile/89577
6266 * doc/gcov.texi: Prefer to use --coverage.
6267 * doc/sourcebuild.texi: Likewise.
6269 2019-03-02 Jason Merrill <jason@redhat.com>
6271 PR c++/86485 - -Wmaybe-unused with empty class ?:
6272 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6274 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6277 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6281 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6282 exactly one argument.
6284 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6285 Richard Sandiford <richard.sandiford@arm.com>
6287 PR tree-optimization/89570
6288 * match.pd (vec_cond into cond_op simplification): Don't use
6289 get_conditional_internal_fn, use as_internal_fn (cond_op).
6291 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6294 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6295 to decide when to split off a non-zero offset from a symbol.
6296 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6297 in function symbols.
6299 2019-03-05 Richard Biener <rguenther@suse.de>
6301 PR tree-optimization/89594
6302 * tree-if-conv.c (pass_if_conversion::execute): Handle
6303 case where .LOOP_VECTORIZED_FUNCTION was removed.
6305 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6308 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6309 instead alloca it only when needed with the needed size.
6311 PR tree-optimization/89570
6312 * match.pd (vec_cond into cond_op simplification): Guard with
6313 vectorized_internal_fn_supported_p test and #if GIMPLE.
6315 PR tree-optimization/89566
6316 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6317 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6318 Punt if get_user_idx_format succeeds, but idx_format argument is
6319 not provided or doesn't have pointer type, or if idx_args is above
6320 number of provided arguments.
6322 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6324 PR tree-optimization/89437
6325 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6327 2019-03-04 Richard Biener <rguenther@suse.de>
6330 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6333 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6335 PR tree-optimization/89487
6336 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6337 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6338 (distribute_loop): Don't do runtime alias check if there is non-
6339 addressable data reference.
6340 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6341 is a register variable.
6343 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6346 * config/arm/arm.md (cmpsi2_addneg): Use
6347 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6348 If operands[2] is 0 or INT_MIN, force use of subs.
6349 (*compare_scc splitter): Use gen_int_mode.
6350 (*negscc): Likewise.
6351 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6353 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6354 Monk Chiang <sh.chiang04@gmail.com>
6356 * common/config/riscv/riscv-common.c: Include sstream.
6357 (riscv_subset_list::to_string): New.
6358 (riscv_arch_str): Likewise.
6359 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6361 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6362 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6363 (riscv_emit_attribute): New.
6364 (riscv_file_start): Emit attribute if needed.
6365 (riscv_option_override): Init riscv_emit_attribute_p.
6366 * config/riscv/riscv.opt (mriscv-attribute): New option.
6367 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6369 * doc/install.texi: Document --with-riscv-attribute.
6370 * doc/invoke.texi: Document -mriscv-attribute.
6372 * common/config/riscv/riscv-common.c:
6373 Include config/riscv/riscv-protos.h.
6374 (INCLUDE_STRING): Defined.
6375 (RISCV_DONT_CARE_VERSION): Defined.
6376 (riscv_subset_t): Declare.
6377 (riscv_subset_t::riscv_subset_t): New.
6378 (riscv_subset_list): Declare.
6379 (riscv_subset_list::riscv_subset_list): New.
6380 (riscv_subset_list::~riscv_subset_list): Likewise.
6381 (riscv_subset_list::parsing_subset_version): Likewise.
6382 (riscv_subset_list::parse_std_ext): Likewise.
6383 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6384 (riscv_subset_list::add): Likewise.
6385 (riscv_subset_list::lookup): Likewise.
6386 (riscv_subset_list::xlen): Likewise.
6387 (riscv_subset_list::parse): Likewise.
6388 (riscv_supported_std_ext): Likewise.
6389 (current_subset_list): Likewise.
6390 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6393 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6395 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6396 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6397 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6399 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6401 PR rtl-optimization/85899
6402 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6403 fallthru edges leading to the exit block.
6405 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6408 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6409 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6411 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6413 PR tree-optimization/89535
6414 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6415 for each operand. Calculate the fallback choice for mask operands
6416 and pass it to vect_get_vec_def_for_operand.
6418 2019-03-01 Richard Biener <rguenther@suse.de>
6421 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6422 get virtual operands.
6423 (get_expr_operands): Handle CONST_DECL like other decls.
6425 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6428 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6429 on DECL_P and EXPR_P.
6431 2019-03-01 Richard Biener <rguenther@suse.de>
6434 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6435 argument, defaulted to zero.
6436 * passes.c (execute_function_todo): Pass down SSA update flags
6437 to cleanup_tree_cfg.
6438 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6439 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6441 (cleanup_tree_cfg): Get and pass down SSA update flags.
6443 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6446 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6447 early_lto_debug argument.
6449 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6451 PR tree-optimization/89536
6452 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6453 only whether bit #0 of the value is 0 instead of the entire value.
6455 2019-02-28 Marek Polacek <polacek@redhat.com>
6457 PR c++/87068 - missing diagnostic with fallthrough statement.
6458 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6459 at the end of a seq, save its location to walk_stmt_info.
6460 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6463 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6466 * tree.c (find_atomic_core_type): Move ahead in file.
6467 (check_base_type): Correctly compare alignments of atomic types.
6469 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6472 * config/i386/i386.c (get_builtin_code_for_version): Identify
6473 Westmere from PCLMUL, instead of AES.
6475 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6478 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6479 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6482 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6485 * config/aarch64/aarch64-option-extensions.def: Document it.
6486 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6489 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6492 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6493 builtins if they don't have a single scalar floating point argument.
6496 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6498 PR rtl-optimization/89490
6499 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6500 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6501 block section is not mergeable.
6503 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6506 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6507 old define_insn to ...
6508 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6509 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6510 Rename old define_insn to ...
6511 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6512 (thumb2_casesi_internal_pic): New define_expand. Rename old
6514 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6515 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6516 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6518 2019-02-27 Richard Biener <rguenther@suse.de>
6521 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6523 2019-02-27 Richard Biener <rguenther@suse.de>
6525 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6528 2019-02-27 Richard Biener <rguenther@suse.de>
6531 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6532 parameter, prefix section name with .gnu.debuglto_ if true.
6533 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6534 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6536 2019-02-27 Richard Biener <rguenther@suse.de>
6539 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6540 rather than on use_debug_types, doing what output_die does.
6541 (value_format): Likewise.
6543 2019-02-27 Martin Jambor <mjambor@suse.cz>
6544 Martin Sebor <msebor@redhat.com>
6546 * doc/invoke.texi (Warning Options): Reword description of
6547 -Wno-absolute-value.
6549 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6551 PR tree-optimization/89280
6552 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6553 builtin_setjmp_setup_bb): New functions.
6554 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6555 When visiting __builtin_setjmp_setup block, queue in special
6556 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6557 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6558 from visited after the loop if they don't have any visited successor
6561 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6563 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6565 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6567 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6570 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6571 with types other than sizetype/ssizetype.
6573 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6575 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6576 (enum sparc_processor_type): ...this.
6577 (enum sparc_code_model_type): New enumeration type.
6578 (enum sparc_memory_model_type): Tweak comments.
6579 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6581 (mcmodel): Use sparc_code_model enumeration and variable.
6582 (sparc_code_model): New enumeration.
6583 (mdebug): Add Undocumented marker.
6584 * config/sparc/sparc.h (enum cmodel): Delete.
6585 (sparc_cmodel): Likewise.
6586 (TARGET_CM_MEDLOW): Adjust to above renaming.
6587 (TARGET_CM_MEDMID): Likewise.
6588 (TARGET_CM_MEDANY): Likewise.
6589 (TARGET_CM_EMBMEDANY): Likewise.
6590 * config/sparc/sparc.c (sparc_cmodel): Delete.
6591 (sparc_option_override): Remove string/value mapping support for the
6592 code model. Move code and memory model support to after the handling
6593 of target flags. Do private machine setup last.
6594 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6595 (sparc_legitimize_reload_address): Likewise.
6596 (sparc_output_mi_thunk): Likewise.
6597 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6599 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6601 PR tree-optimization/89500
6602 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6603 (handle_builtin_strlen): Remove noncst_bound variable. Always
6604 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6605 cst if the first cst bytes starting at x are known to be non-zero,
6606 even if the string is not zero terminated. Don't try to modify
6607 *si for strnlen. Update strlen_to_stridx only for strlen or if
6608 we can prove strnlen returns the same value as strlen would.
6610 2019-02-26 Martin Liska <mliska@suse.cz>
6612 * alloc-pool.h (struct pool_usage): Remove extra
6614 * bitmap.h (struct bitmap_usage): Likewise.
6615 * ggc-common.c (struct ggc_usage): Likewise.
6616 * mem-stats.h (struct mem_usage): Likewise.
6617 (mem_alloc_description::dump): Print dash lines
6618 here and repeat header at the end of a table report.
6619 It's then more readable.
6620 * tree-phinodes.c (phinodes_print_statistics): Make
6621 horizontal alignment.
6622 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6623 * vec.c (struct vec_usage): Remove extra print_dash_line.
6624 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6626 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6628 * doc/extend.texi (__builtin_object_size):
6629 Use @pxref instead of @xref inside parenthesis.
6630 (__builtin_has_attribute): Add missing comma after @xref.
6631 (__builtin_object_size): Ditto.
6632 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6633 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6636 2019-02-26 Jeff Law <law@redhat.com>
6638 PR rtl-optimization/87761
6639 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6640 detect obviously dead insns and delete them.
6642 2019-02-26 Richard Biener <rguenther@suse.de>
6644 PR tree-optimization/89505
6645 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6646 to handle restrict pointed-to vars with multiple subvars
6649 2019-02-26 Richard Biener <rguenther@suse.de>
6651 PR tree-optimization/89489
6652 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6654 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6656 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6657 and move around comment.
6658 <BIT_AND_EXPR>: Likewise.
6659 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6661 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6664 * config/i386/i386.c (remove_partial_avx_dependency): Call
6665 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6666 after changing possibly many instructions to use that pseudo. Fix up
6667 insertion of v4sf_const0 setter at the start of bb.
6669 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6672 * doc/extend.texi (Variadic Pointer Args): New section.
6674 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6675 Martin Sebor <msebor@gmail.com>
6677 * common.opt (Wattribute-alias): Likewise.
6678 * doc/invoke.texi (Option Summary): List general form of
6679 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6680 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6681 Add cross-references.
6682 (-Wattribute-alias): Rewrite and correct default. Mention
6683 considered attributes (same as for -Wmissing-attributes).
6685 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6687 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6688 (_mm_cvtpd_ps): Likewise.
6689 (_mm_cvttpd_epi32): Likewise.
6692 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6693 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6696 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6698 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6701 * common/config/aarch64/aarch64-common.c
6702 (struct aarch64_option_extension): Add is_synthetic.
6703 (all_extensions): Use it.
6704 (TARGET_OPTION_INIT_STRUCT): Define hook.
6705 (struct gcc_targetm_common): Moved to end.
6706 (all_extensions_by_on): New.
6707 (opt_ext_cmp, typedef opt_ext): New.
6708 (aarch64_option_init_struct): New.
6709 (aarch64_contains_opt): New.
6710 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6711 * config/aarch64/aarch64-option-extensions.def
6712 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6713 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6714 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6715 Set is_synthetic to false.
6716 (crypto): Set is_synthetic to true.
6717 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6720 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6722 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6723 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6724 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6725 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6726 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6727 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6728 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6729 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6731 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6732 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6733 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6734 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6735 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6736 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6737 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6738 vfmlsl_laneq_high_f16): ... To this.
6739 * config/arm/neon.md: Update comments.
6741 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6743 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6744 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6745 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6746 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6747 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6748 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6749 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6750 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6752 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6753 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6754 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6755 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6756 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6757 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6758 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6759 vfmlslq_laneq_high_f16): ... To this.
6761 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6763 PR rtl-optimization/86096
6764 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6765 comparing mw_order values.
6767 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6770 * config/arm/arm.md (*subsi3_carryin_const): Use
6771 arm_neg_immediate_operand predicate instead of
6772 arm_not_immediate_operand, "L" constraint instead of "K" and
6773 print it using %n2 instead of %B2.
6774 (*subsi3_carryin_const0): New define_insn.
6775 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6776 instead of arm_not_operand and "I" constraint instead of "K" and
6777 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6778 another match_operand and in the condition check that it is negation
6780 (*subsi3_carryin_compare_const0): New define_ins.
6781 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6782 *subsi3_carryin_const.
6783 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6784 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6787 * config/arm.vfp.md (*negdf2_vfp): Use
6788 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6789 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6791 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6793 PR rtl-optimization/89445
6794 * simplify-rtx.c (simplify_ternary_operation): Don't use
6795 simplify_merge_mask on operands that may trap.
6796 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6797 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6798 second operand is CONST_VECTOR, check if any element could be zero.
6799 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6800 their operands can trap.
6802 2019-02-23 Martin Sebor <msebor@redhat.com>
6804 * gimple-ssa-sprintf.c (target_strtol): Rename...
6805 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6806 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6807 check for range error.
6809 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6812 * opts-common.c (prune_options): Also prune joined switches
6813 with Negative and RejectNegative.
6814 * config/i386/i386.opt (march=): Add Negative(march=).
6815 (mtune=): Add Negative(mtune=).
6816 * doc/options.texi: Document Negative used together with Joined
6819 2019-02-22 Martin Sebor <msebor@redhat.com>
6821 * doc/extend.texi (Other Builtins): Add
6822 __builtin_is_constant_evaluated.
6824 2019-02-22 Richard Biener <rguenther@suse.de>
6826 PR tree-optimization/87609
6827 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6829 2019-02-22 Jeff Law <law@redhat.com>
6831 PR rtl-optimization/87761
6832 * config/mips/mips.md: Add new combiner pattern to recognize
6833 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6835 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6838 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6839 destination register in peepholes generating patterns for ADDS/SUBS.
6840 (add<mode>3_compare0,
6841 *addsi3_compare0_uxtw, add<mode>3_compareC,
6842 add<mode>3_compareV_imm, add<mode>3_compareV,
6843 *adds_<optab><ALLX:mode>_<GPI:mode>,
6844 *subs_<optab><ALLX:mode>_<GPI:mode>,
6845 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6846 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6847 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6848 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6849 sub<mode>3_compare1): Allow stack pointer for source register.
6850 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6852 2019-02-22 Martin Sebor <msebor@redhat.com>
6854 PR tree-optimization/88993
6855 PR tree-optimization/88853
6856 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6858 (sprintf_dom_walker::call_info::is_string_func): New helper.
6859 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6860 for formatted string functions.
6861 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6863 2019-02-22 Martin Sebor <msebor@redhat.com>
6866 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6867 unreachable subexpressions.
6869 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6870 Hongtao Liu <hongtao.liu@intel.com>
6871 Sunil K Pandey <sunil.k.pandey@intel.com>
6874 * config/i386/i386-passes.def: Add
6875 pass_remove_partial_avx_dependency.
6876 * config/i386/i386-protos.h
6877 (make_pass_remove_partial_avx_dependency): New.
6878 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6880 (pass_data_remove_partial_avx_dependency): New.
6881 (pass_remove_partial_avx_dependency): Likewise.
6882 (make_pass_remove_partial_avx_dependency): Likewise.
6883 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6884 (*extendsfdf2): Add avx_partial_xmm_update.
6885 (truncdfsf2): Likewise.
6886 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6887 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6889 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6892 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6895 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6898 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6899 (PTA_SKYLAKE): Add PTA_AES.
6900 (PTA_GOLDMONT): Likewise.
6902 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6904 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6905 instruction if enabled.
6906 (aarch64_override_options): Remove reference to return address key.
6908 2019-02-22 Richard Biener <rguenther@suse.de>
6910 PR tree-optimization/89440
6911 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6912 not necessary assert.
6914 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6917 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6918 (oacc_replace_fn_attrib_attr): ... this new function.
6919 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6920 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6922 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6924 * config/arm/arm-cpus.in (ares): Rename to...
6925 (neoverse-n1): ... This. Add ares as alias.
6926 * config/arm/arm-tables.opt: Regenerate.
6927 * config/arm/arm-tune.md: Likewise.
6928 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6930 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6932 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6933 * config/aarch64/aarch64-tune.md: Regenerate.
6934 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6936 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6938 * config/aarch64/aarch64.c (ares_tunings): Rename to...
6939 (neoversen1_tunings): ... This.
6940 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6941 (neoverse-n1): New CPU.
6942 * config/aarch64/aarch64-tune.md: Regenerate.
6943 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6945 2019-02-22 Richard Biener <rguenther@suse.de>
6948 * cfghooks.h (dependence_hash): New typedef.
6949 (struct copy_bb_data): New type.
6950 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6951 (duplicate_block): Likewise.
6952 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6953 (copy_bbs): Create and pass down copy_bb_data.
6954 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6955 (rtl_duplicate_bb): Likewise.
6956 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6957 remap dependence info.
6959 2019-02-22 Richard Biener <rguenther@suse.de>
6961 PR tree-optimization/87609
6962 * tree-core.h (tree_base): Document special clique values.
6963 * tree-inline.c (remap_dependence_clique): Do not use the
6964 special clique value of one.
6965 (maybe_set_dependence_info): Use clique one.
6966 (clear_dependence_clique): New callback.
6967 (compute_dependence_clique): Clear clique one from all refs
6968 before assigning it (again).
6970 2019-02-21 Martin Sebor <msebor@redhat.com>
6972 * doc/extend.texi (__clear_cache): Correct signature.
6974 2019-02-21 Ian Lance Taylor <iant@golang.org>
6977 * varasm.c (decode_addr_const): Call lookup_constant_def rather
6978 than output_constant_def.
6979 (add_constant_to_table): New static function.
6980 (output_constant_def): Call add_constant_to_table.
6981 (tree_output_constant_def): Likewise.
6983 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6986 * builtins.c (fold_builtin_arith_overflow): If first two args are
6987 INTEGER_CSTs, set intres and ovfres to constants rather than calls
6990 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
6993 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6994 error for -mindirect-branch/-mfunction-return with incompatible
6997 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7000 * constraints.md (q): Remove.
7001 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7004 2019-02-21 Martin Jambor <mjambor@suse.cz>
7007 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7008 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7009 (omp_adjust_for_condition): ...here. Added necessary parameters.
7010 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7011 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7012 proper values to new parameters of omp_adjust_for_condition.
7014 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7017 * expr.c (expand_assignment): If result is a MEM, use change_address
7018 instead of simplify_gen_subreg.
7020 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7021 David Malcolm <dmalcolm@redhat.com>
7024 * fold-const.c (decode_field_reference): Return NULL_TREE if
7025 lang_hooks.types.type_for_size returns NULL. Check it before
7026 overwriting *exp_. Use return NULL_TREE instead of return 0.
7028 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7032 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7035 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7038 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7039 TARGET_SSE in addition to TARGET_SSE_MATH.
7041 (ix86_excess_precision): Ditto.
7042 (ix86_float_exceptions_rounding_supported_p): Ditto.
7043 (use_rsqrt_p): Ditto.
7044 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7046 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7049 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7050 linenum_arith_t when determining if two adjacent line spans are
7051 close enough to merge.
7052 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7053 lines within each line_span.
7055 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7058 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7059 paradoxical SUBREGS.
7061 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7064 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7065 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7066 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7069 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7071 * config/gcn/gcn.c (print_operand): Fix typo.
7073 2019-02-19 Richard Biener <rguenther@suse.de>
7076 * toplev.c (do_compile): Initialize mpfr's exponent range
7077 based on available float modes.
7079 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7081 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7082 as long as the epilogue isn't completed.
7084 2019-02-18 Martin Sebor <msebor@redhat.com>
7086 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7087 __has_cpp_attribute, and __has_include.
7089 2019-02-18 Martin Sebor <msebor@redhat.com>
7091 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7093 2019-02-18 Martin Sebor <msebor@redhat.com>
7096 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7098 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7100 2019-02-18 Richard Biener <rguenther@suse.de>
7102 PR tree-optimization/89296
7103 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7104 of no-warning flag to cases that might emit the bogus warning.
7106 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7109 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7111 * config/arm/vfp.md (*movdi_vfp): Likewise.
7112 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7113 "q" constraint for operands[0].
7116 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7117 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7118 pattern in a temporary buffer.
7119 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7120 than 64-operands[2].
7123 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7124 s390_indirect_branch_settings): Define unconditionally.
7125 (s390_set_current_function): Likewise, but guard the whole body except
7126 the s390_indirect_branch_settings call with
7127 #if S390_USE_TARGET_ATTRIBUTE.
7128 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7130 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7131 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7132 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7133 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7134 HOST_WIDE_INT_1U instead of 1ULL.
7135 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7136 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7137 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7138 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7140 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7143 2019-02-18 Martin Jambor <mjambor@suse.cz>
7145 PR tree-optimization/89209
7146 * tree-sra.c (create_access_replacement): New optional parameter
7147 reg_tree. Use it as a type if non-NULL and access type is not of
7149 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7150 to create_access_replacement.
7151 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7152 Check lacc is non-NULL before attempting to re-create it on the RHS.
7154 2019-02-18 Martin Liska <mliska@suse.cz>
7157 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7159 (symbol_table::free_edge): Recycle m_summary_id.
7160 * cgraph.h (get_summary_id): New.
7161 (symbol_table::release_symbol): Set m_summary_id to -1
7163 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7164 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7165 function_summary to fast_function_summary.
7166 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7167 * ipa-pure-const.c (class funct_state_summary_t):
7168 Switch from function_summary to fast_function_summary.
7169 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7170 (class ipa_ref_opt_summary_t): Switch from function_summary
7171 to fast_function_summary.
7172 * symbol-summary.h (class function_summary_base): New class
7173 that is created from base of former function_summary.
7174 (function_summary_base::unregister_hooks): New.
7175 (class function_summary): Inherit from function_summary_base.
7176 (class call_summary_base): New class
7177 that is created from base of former call_summary.
7178 (class call_summary): Inherit from call_summary_base.
7179 (struct is_same): New.
7180 (class fast_function_summary): New summary class.
7181 (class fast_call_summary): New summary class.
7182 * vec.h (vec_safe_grow_cleared): New function.
7184 2019-02-18 Martin Liska <mliska@suse.cz>
7186 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7187 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7188 * doc/tm.texi: Document new target hook.
7189 * doc/tm.texi.in: Likewise.
7190 * target.def: Add new target macro.
7191 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7194 2019-02-17 Alan Modra <amodra@gmail.com>
7197 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7198 output reg on add insn.
7199 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7201 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7204 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7205 (PMULHRSW): Likewise.
7206 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7208 (ssse3_pmulhrswv4hi3): New expander.
7210 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7212 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7213 MMX. Add isa attribute.
7215 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7217 PR rtl-optimization/66152
7218 * builtins.h (c_readstr): Declare.
7219 * builtins.c (c_readstr): Remove forward declaration. Add
7220 null_terminated_p argument, if false, read all bytes from the
7221 string instead of stopping after '\0'.
7222 * expr.c (string_cst_read_str): New function.
7223 (store_expr): Use string_cst_read_str instead of
7224 builtin_strncpy_read_str. Try to store by pieces the whole
7225 exp_len first, and only if that fails, split it up into
7226 store by pieces followed by clear_storage. Formatting fix.
7228 * config/i386/i386.md (*movqi_internal): Remove static from
7229 buf variable. Use output_asm_insn (buf, operands); return "";
7230 instead of return buf;.
7231 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7232 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7233 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7235 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7237 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7238 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7239 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7240 (CC1_SPEC): Likewise.
7241 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7243 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7245 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7246 the base address on 64-bit strict-alignment platforms.
7248 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7250 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7252 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7254 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7256 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7258 PR rtl-optimization/88308
7259 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7260 on copied instruction.
7262 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7264 * final.c (insn_current_reference_address): Replace test on JUMP_P
7265 with test on jump_to_label_p.
7266 * config/visium/visium-passes.def: New file.
7267 * config/visium/t-visium (PASSES_EXTRA): Define.
7268 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7269 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7270 (TRAMPOLINE_ALIGNMENT): Define.
7271 * config/visium/visium.c (visium_option_override): Do not register
7272 the machine-specific reorg pass here.
7273 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7275 (output_branch): Adjust threshold for long branch instruction.
7276 * config/visium/visium.md (cpu): Move around.
7277 (length): Adjust for the GR6.
7279 2019-02-15 Richard Biener <rguenther@suse.de>
7280 Jakub Jelinek <jakub@redhat.com>
7282 PR tree-optimization/89278
7283 * tree-loop-distribution.c: Include tree-eh.h.
7284 (generate_memset_builtin, generate_memcpy_builtin): Call
7285 rewrite_to_non_trapping_overflow on builtin->size before passing it
7286 to force_gimple_operand_gsi.
7288 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7291 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7293 * opth-gen.awk: Likewise.
7295 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7297 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7298 Enable MMX, SSE and SSE2 by default.
7299 * config/i386/i386.c (ix86_option_override_internal): Do not
7300 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7302 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7304 PR rtl-optimization/89354
7305 * combine.c (make_extraction): Punt if extraction_mode is narrower
7308 2019-02-14 Maya Rashish <coypu@sdf.org>
7310 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7311 * config/netbsd-d.c: New file.
7312 * config/t-netbsd: Add netbsd-d.o
7314 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7316 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7317 affects_type_identity to true for aarch64_vector_pcs.
7318 (aarch64_comp_type_attributes): New function.
7319 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7321 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7324 * config/arm/iterators.md (ANY64): Add V4HF.
7326 2019-02-14 Martin Liska <mliska@suse.cz>
7328 PR rtl-optimization/89242
7329 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7330 process a transformation.
7332 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7334 PR tree-optimization/89314
7335 * fold-const.c (fold_binary_loc): Cast strlen argument to
7336 const char * before dereferencing it. Formatting fixes.
7339 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7341 2019-02-13 Ian Lance Taylor <iant@golang.org>
7343 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7344 and set current index for other optimizations.
7346 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7348 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7349 nonimmediate_operand as operand 2 predicate.
7350 (vec_set<VF2_512_256:mode>_0): Ditto.
7351 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7352 (*vec_concatv2si): Remove alternative 2.
7353 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7354 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7355 (vec_concatv2di): Split alternatives 4,5,6 to ...
7356 (*vec_concatv2di_0) ... new pattern.
7358 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7361 * config/arm/arm.c (ldm_stm_operation_p) Set
7362 addr_reg_in_reglist correctly for first register.
7363 (load_multiple_sequence): Remove dead base check.
7364 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7366 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7369 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7370 Expose as @aarch64_pred_mov.
7371 * config/aarch64/aarch64.c (aarch64_classify_address):
7372 Use expand_insn which legitimizes operands.
7374 2019-02-13 Martin Liska <mliska@suse.cz>
7376 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7377 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7378 and pointer_offset fields.
7379 (initialize_argument_information): Remove usage of dead
7381 * cgraph.h (struct cgraph_thunk_info): Remove
7382 add_pointer_bounds_args.
7383 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7385 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7387 * config/i386/i386.c (ix86_function_arg_advance): Remove
7389 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7390 (def_builtin): Remove usage of dead
7392 (ix86_add_new_builtins): Likewise.
7393 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7394 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7395 (sem_function::init): Likewise.
7396 (sem_variable::merge): Likewise.
7397 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7398 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7399 * lto-cgraph.c (lto_output_node): Likewise.
7400 (lto_output_varpool_node): Likewise.
7401 (input_node): Likewise.
7402 (input_varpool_node): Likewise.
7403 * lto-streamer-out.c (lto_output): Likewise.
7404 * tree-inline.c (expand_call_inline): Remove usage of
7406 * tree-inline.h (struct copy_body_data): Likewise.
7407 * varpool.c (varpool_node::dump): Likewise.
7409 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7412 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7413 into pt->vars_contains_escaped_heap instead of setting
7414 pt->vars_contains_escaped_heap to it.
7417 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7418 INTVAL (size), compare it to GET_MODE_MASK instead of
7419 1 << GET_MODE_BITSIZE.
7422 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7423 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7426 2019-02-13 Martin Liska <mliska@suse.cz>
7429 * cfgrtl.c (remove_barriers_from_footer): New function.
7430 (try_redirect_by_replacing_jump): Use it.
7431 (cfg_layout_redirect_edge_and_branch): Likewise.
7433 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7435 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7436 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7437 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7438 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7439 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7440 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7442 * config/rs6000/rs6000.c (builtin_function_type)
7443 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7444 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7445 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7446 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7447 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7449 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7451 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7452 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7454 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7457 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7458 268678 and revision 268657.
7459 (*movti_internal): Likewise.
7461 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7464 * config/s390/s390.c (s390_decompose_address): Update comment.
7465 (s390_check_qrst_address): Reject invalid address forms after
7468 2019-02-12 Martin Liska <mliska@suse.cz>
7471 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7472 we need default values of funct_state for a function that
7475 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7477 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7478 the object to pick the size of stores on strict-alignment platforms.
7480 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7481 (*movdi_insn_sp32): Likewise.
7482 (*movdi_insn_sp64): Likewise.
7484 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7487 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7488 types that needs constructiong.
7489 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7491 2019-02-12 Richard Biener <rguenther@suse.de>
7493 PR tree-optimization/89253
7494 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7497 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7500 * input.c (selftest::test_line_offset_overflow): New selftest.
7501 (selftest::input_c_tests): Call it.
7503 2019-02-11 Martin Sebor <msebor@redhat.com>
7505 PR tree-optimization/88771
7506 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7507 when -Wstringop-overflow is set.
7508 (builtin_memref::builtin_memref): Adjust excessive upper bound
7509 only when lower bound is not excessive.
7510 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7511 -Wstringop-ovefflow.
7512 (maybe_diag_offset_bounds): Rename...
7513 (maybe_diag_access_bounds): ...to this.
7514 (check_bounds_or_overlap): Adjust for name change above.
7516 2019-02-11 Martin Sebor <msebor@redhat.com>
7519 * builtins.c (max_object_size): Move from here...
7520 * builtins.h (max_object_size): ...and here...
7521 * tree.c (max_object_size): ...to here...
7522 * tree.h (max_object_size): ...and here.
7524 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7526 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7527 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7528 for correct semantics.
7530 2019-02-11 Alan Modra <amodra@gmail.com>
7532 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7533 -mlongcall and -mpltseq.
7534 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7535 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7536 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7537 * config/rs6000/sysv4.opt (mpltseq): New option.
7538 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7539 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7540 support is lacking. Don't allow -mpltseq with -mbss-plt.
7541 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7542 -mpltseq given for ELFv1.
7543 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7544 Only use UNSPEC_PLTSEQ for inline PLT calls.
7545 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7546 use UNSPEC_PLTSEQ for inline PLT calls.
7547 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7548 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7549 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7550 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7551 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7552 (pltseq_mtctr_<mode>): Likewise.
7554 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7556 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7558 * configure: Regenerate.
7560 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7563 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7566 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7568 * function.c (assign_parm_setup_block): Use the stored
7569 size, not the passed size, when allocating stack-space,
7570 also for a parameter with alignment larger than
7571 MAX_SUPPORTED_STACK_ALIGNMENT.
7573 2019-02-11 Martin Liska <mliska@suse.cz>
7576 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7577 * ipa-inline.c (inline_small_functions): Likewise.
7578 * ipa-pure-const.c (propagate_pure_const): Likewise.
7579 (propagate_nothrow): Likewise.
7580 * ipa-reference.c (propagate): Likewise.
7581 * ipa-utils.c (struct searchc_env): Remove unused field.
7582 (searchc): Always search across AVAIL_INTERPOSABLE.
7583 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7584 the only called IPA pure const can properly not propagate
7585 across interposable boundary.
7586 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7588 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7590 * config/nds32/nds32.md (call_internal, call_value_internal,
7591 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7593 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7595 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7598 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7600 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7603 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7605 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7607 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7609 PR tree-optimization/89268
7610 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7611 if preds is non-NULL.
7613 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7616 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7619 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7621 * config/nds32/nds32.md (trap): New pattern.
7623 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7625 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7628 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7630 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7633 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7635 * ipa-visibility.c (localize_node): Also do not localize
7636 LDPR_PREVAILING_DEF_IRONLY_EXP.
7638 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7641 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7642 instead of type_with_linkage.
7644 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7647 * params.def (uninlined-function-insns, uninlined-function-time,
7648 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7649 bound so we don't get overflows.
7651 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7653 * config/rs6000/rs6000-string.c (expand_compare_loop,
7654 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7657 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7660 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7661 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7662 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7664 2019-02-09 Alan Modra <amodra@gmail.com>
7667 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7668 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7671 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7674 * lra-constraints.c (process_alt_operands): Don't increase reject
7675 for memory when offset memory is required.
7677 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7679 * config/s390/vector.md: Implement vector copysign.
7681 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7683 * expr.c (expand_constructor): Correct indentations.
7685 2019-02-08 Richard Biener <rguenther@suse.de>
7687 PR tree-optimization/89247
7688 * tree-if-conv.c: Include tree-cfgcleanup.h.
7689 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7690 (tree_if_conversion): Pass through predicate vector.
7691 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7692 inline, see if any if-converted loops we refrece in
7693 LOOP_VECTORIZED calls vanished and fixup.
7694 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7696 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7698 * config/s390/constraints.md (jdd): New constraint.
7700 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7703 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7704 upper 16 vector registers without TARGET_AVX512VL.
7705 (*movti_internal): Likewise.
7707 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7709 PR rtl-optimization/89234
7710 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7711 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7712 (copy_reg_eh_region_note_backward): Likewise.
7714 2019-02-08 Richard Biener <rguenther@suse.de>
7717 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7719 (analyze_subscript_affine_affine): Handle failure from
7720 initialize_matrix_A.
7722 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7724 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7727 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7729 PR tree-optimization/86637
7730 PR tree-optimization/89235
7731 * tree-vect-loop.c (optimize_mask_stores): Add an
7732 auto_purge_vect_location sentinel to ensure that vect_location is
7735 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7736 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7737 to ensure that vect_location is purged on exit.
7738 (pass_slp_vectorize::execute): Likewise, replacing the manual
7740 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7742 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7744 * config/aarch64/iterators.md (max_opp): New code_attr.
7745 (USMAX): New code iterator.
7746 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7747 (aarch64_smax): Likewise.
7748 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7749 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7752 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7755 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7756 for TARGET_AVX512VL.
7757 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7759 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7761 * config/s390/s390-builtin-types.def: Add new types.
7762 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7763 (s390_vec_xlw4): Make the memory operand into a const pointer.
7764 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7766 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7767 a new vector type with the alignment of the scalar memory operand.
7769 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7770 Jakub Jelinek <jakub@redhat.com>
7773 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7774 arm_count_ldrdstrd_insns): New declarations.
7775 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7777 (valid_operands_ldrd_strd): New function.
7778 (arm_count_ldrdstrd_insns): New function.
7779 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7780 sets instead of single DImode set and define new insns to match this.
7782 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7784 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7785 Make it a C initializer.
7787 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7790 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7792 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7794 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7795 Use neon_dot<q> for type.
7796 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7798 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7800 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7801 Use neon_dot<q> for type.
7802 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7803 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7805 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7807 PR rtl-optimization/89225
7808 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7811 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7813 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7814 after restoring registers saved to allocate the frame on Windows.
7816 2019-02-06 Richard Biener <rguenther@suse.de>
7818 PR tree-optimization/89182
7819 * graphite.h (cached_scalar_evolution_in_region): Declare.
7820 * graphite.c (struct seir_cache_key): New.
7821 (struct sese_scev_hash): Likewise.
7822 (seir_cache): New global.
7823 (cached_scalar_evolution_in_region): New function.
7824 (graphite_transform_loops): Allocate and release seir_cache.
7825 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7826 cached_scalar_evolution_in_region.
7827 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7829 (scop_detection::graphite_can_represent_expr: Use
7830 cached_scalar_evolution_in_region.
7831 (scop_detection::stmt_simple_for_scop_p): Likewise.
7832 (find_params_in_bb): Likewise.
7833 (gather_bbs::before_dom_children): Likewise.
7834 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7835 (add_loop_constraints): Likewise.
7837 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7840 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7841 operand to new_unary_operation only if both element types are integral
7842 and it isn't a widening conversion. Return NULL_TREE if
7843 new_unary_operation failed.
7845 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7848 * config/s390/s390.md: Remove load and test FP splitter.
7850 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7853 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7854 expand_compare_loop, expand_block_compare_gpr,
7855 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7856 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7857 #include "profile-count.h" and "predict.h" for types and functions
7858 needed to work with REG_BR_PROB notes.
7860 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7863 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7864 for the long branch case.
7866 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7869 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7870 can throw, non-call exceptions are enabled and we can't delete
7871 dead exceptions or alter cfg. Set must_clean if
7872 delete_insn_and_edges returns true, don't set it blindly for calls.
7873 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7875 PR rtl-optimization/89195
7876 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7877 of the original MEM.
7879 2019-02-05 Martin Liska <mliska@suse.cz>
7881 PR gcov-profile/89000
7882 * gcov.c (function_summary): Remove argument.
7883 (file_summary): New function.
7884 (print_usage): Replace tabs with spaces.
7885 (generate_results): Use new function file_summary.
7887 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7890 * optabs.c (prepare_cmp_insn): Pass x and y to
7891 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7893 2019-02-05 Richard Biener <rguenther@suse.de>
7896 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7897 (struct bitmap_element): Drop chain_prev so we properly recurse on
7898 the prev member, supporting tree views.
7899 (struct bitmap_head): GTY skip the obstack member.
7901 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7904 * doc/extend.texi (Vector Extensions): Add an example of using vector
7905 types together with x86 intrinsics.
7907 2019-02-04 Alan Modra <amodra@gmail.com>
7909 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7910 str[] size to 160, and comment.
7912 2019-02-04 Alan Modra <amodra@gmail.com>
7914 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7915 (rs6000_pltseq_template): Guard output of TLS markers with
7917 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7918 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7919 to use inline PLT sequences.
7920 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7921 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7922 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7924 2019-02-04 Martin Liska <mliska@suse.cz>
7927 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7928 out when ipa_fn_summaries does not contain entry for callee.
7930 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7932 * config/sparc/sparc.h: Remove superfluous blank lines.
7933 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7934 (got_register_rtx): ...this.
7935 (sparc_got): Adjust to above renaming.
7936 (sparc_tls_got): Likewise.
7937 (sparc_delegitimize_address): Likewise.
7938 (sparc_output_mi_thunk): Likewise.
7939 (sparc_init_pic_reg): Likewise.
7940 (save_local_or_in_reg_p): Fix test on the GOT register.
7941 (USE_HIDDEN_LINKONCE): Move around.
7942 (get_pc_thunk_name): Likewise.
7943 (gen_load_pcrel_sym): Likewise.
7944 (load_got_register): Likewise.
7946 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
7948 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7949 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7951 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7953 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7956 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7958 * config.gcc (with_nds32_lib, glibc):
7959 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7960 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7961 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7963 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
7966 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7967 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7968 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7969 (*rcpsf2_sse): Ditto.
7970 (*rsqrtsf2_sse): Ditto.
7971 (sse4_1_round<mode<2): Ditto.
7973 2019-02-03 Richard Biener <rguenther@suse.de>
7976 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7979 2019-02-02 Jakub Jelinek <jakub@redhat.com>
7982 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7983 Punt with warning on aggregate return or argument types. Ignore
7984 type/mode checking for uniform arguments.
7986 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
7988 * combine.c (try_combine): Do not print "Can't combine" messages unless
7989 printing failed combination attempts.
7991 2019-02-01 Martin Jambor <mjambor@suse.cz>
7994 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7995 segment and global segment variables before making them static.
7997 2019-02-01 Martin Jambor <mjambor@suse.cz>
7999 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8000 missed optimization dump with dump_enabled_p.
8002 2019-02-01 Richard Biener <rguenther@suse.de>
8005 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8006 the instantiate cache.
8007 (instantiate_scev_binary): Elide second operand procesing
8008 if equal to the first.
8009 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8010 (chrec_contains_undetermined): Likewise.
8011 (tree_contains_chrecs): Likewise.
8013 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8015 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8017 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8019 PR tree-optimization/89143
8020 * wide-int-range.h (wide_int_range_absu): Declare.
8021 * wide-int-range.cc (wide_int_range_absu): New function.
8022 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8024 PR tree-optimization/88107
8025 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8026 instead of assertion that eh_region_outermost is non-NULL, if it
8027 is NULL, set *ALL to true and return NULL.
8028 (move_sese_region_to_fn): Adjust caller, if all is set, call
8029 duplicate_eh_regions with NULL region.
8031 2019-02-01 Richard Biener <rguenth@suse.de>
8033 PR rtl-optimization/88593
8034 * mode-switching.c (optimize_mode_switching): Free dominators before
8035 calling cleanup_cfg.
8037 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8039 PR tree-optimization/88932
8040 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8042 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8045 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8046 bogus clang warning.
8048 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8051 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8052 alternative to avoid partial SSE register stall for TARGET_AVX.
8053 (truncdfsf2): Ditto.
8054 (sse4_1_round<mode>2): Ditto.
8056 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8058 PR tree-optimization/89008
8059 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8060 process anything of the form X * 0.
8062 2019-01-31 Richard Biener <rguenther@suse.de>
8064 PR tree-optimization/89135
8065 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8066 with abnormal preds.
8068 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8071 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8072 always_inline callees into no_sanitize_address callers.
8074 2019-01-31 Richard Biener <rguenther@suse.de>
8076 PR rtl-optimization/89115
8077 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8079 2019-01-30 Martin Sebor <msebor@redhat.com>
8082 * doc/extend.texi (cast to a union): Correct and expand.
8084 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8086 PR rtl-optimization/87246
8087 * lra-constraints.c (simplify_operand_subreg): Reload memory
8088 in subreg if the address became invalid.
8090 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8093 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8094 Disable for little-endian.
8096 2019-01-30 Richard Biener <rguenther@suse.de>
8098 PR rtl-optimization/89115
8099 * opts.c (default_options_optimization): Reduce
8100 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8101 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8104 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8106 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8107 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8108 type of vector element when vec_extract is implemented by direct
8111 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8113 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8115 2019-01-30 Richard Biener <rguenther@suse.de>
8117 PR tree-optimization/89111
8118 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8119 canonicalization to appropriately sized access types.
8121 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8124 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8125 for arguments to functions that are TU-local and shouldn't be
8126 referenced by assembly.
8128 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8130 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8133 2019-01-29 Martin Sebor <msebor@redhat.com>
8136 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8138 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8142 * omp-simd-clone.c (simd_clone_clauses_extract)
8143 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8144 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8146 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8148 * config.gcc: Force .init_array for ARC.
8150 2019-01-29 Richard Biener <rguenther@suse.de>
8153 * dwarf2out.c (collect_skeleton_dies): New helper.
8154 (copy_decls_for_unworthy_types): Call it.
8155 (build_abbrev_table): Assert we do not try to replace
8156 DW_AT_signature refs with local refs.
8158 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8161 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8162 for lastprivate/linear IV, push gimplify context around gimplify_assign
8163 and, if it needed any temporaries, pop it into a gimple bind around the
8166 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8168 * common.opt (-Wattribute-alias): Remove "no-" from name.
8169 Make -Wattribute-alias command line option and
8170 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8172 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8175 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8176 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8178 (bmi2): Add missing @opindex.
8179 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8180 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8181 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8182 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8183 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8184 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8185 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8186 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8187 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8188 xsavec, xsaveopt and xsaves options.
8190 2019-01-28 Richard Biener <rguenther@suse.de>
8193 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8196 2019-01-28 Richard Biener <rguenther@suse.de>
8198 PR tree-optimization/88739
8199 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8200 BIT_FIELD_REFs only are applied to mode-precision operands
8201 when they are integral.
8202 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8203 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8204 BIT_FIELD_REFs of non-mode-precision integral operands.
8206 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8209 * config/i386/sse.md
8210 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8211 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8212 first constants in pairs are multiples of 2. Formatting fixes.
8213 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8214 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8215 first constants in each quadruple are multiples of 4. Formatting fixes.
8217 2019-01-26 Martin Jambor <mjambor@suse.cz>
8220 * tree-inline.c: Include tree-cfgcleanup.h.
8221 (delete_unreachable_blocks_update_callgraph): Move...
8222 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8223 ...here, make externally visible, make second argument bool, adjust
8225 * tree-cfgcleanup.c: Include cgraph.h.
8226 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8228 * ipa-prop.c: Include tree-cfgcleanup.h.
8229 (ipcp_transform_function): Call
8230 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8232 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8234 PR rtl-optimization/88846
8235 * ira.c (process_set_for_memref_referenced_p): New.
8236 (memref_referenced_p): Add new param. Use
8237 process_set_for_memref_referenced_p. Add new switch cases.
8238 (memref_used_between_p): Pass new arg to memref_referenced_p.
8240 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8243 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8244 argument ABI_BREAK. Set to true if the calculated alignment has
8245 changed in gcc-9. Check bit-fields for their base type alignment.
8246 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8247 (aarch64_function_arg_boundary): Likewise.
8248 (aarch64_gimplify_va_arg_expr): Likewise.
8250 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8253 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8254 instead of accessing TREE_INT_CST_ELT directly.
8256 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8258 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8259 fenv_exceptions description.
8261 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8263 PR rtl-optimization/87763
8264 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8265 Allow SUBREG when matching CC_NZmode compare.
8267 2019-01-25 Richard Biener <rguenther@suse.de>
8269 PR tree-optimization/89049
8270 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8271 Look at the pattern stmt to determine if the stmt is vectorized.
8273 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8275 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8276 (pred_mov<mode>): Handle all-register forms using both a new
8277 alternative and a split.
8279 2019-01-25 Richard Biener <rguenther@suse.de>
8281 PR tree-optimization/86865
8282 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8283 Reject non-do-while loops.
8285 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8287 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8288 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8289 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8290 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8291 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8292 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8293 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8294 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8295 vlogical_operand, gpc_reg_operand, int_reg_operand,
8296 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8297 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8298 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8299 (save_world_operation, restore_world_operation, lmw_operation,
8300 stmw_operation): Use MEM_P and REG_P.
8301 (tie_operand): Use MEM_P.
8302 (vrsave_operation, crsave_operation): Use REG_P.
8303 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8304 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8305 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8306 (call_operand): Use HARD_REGISTER_P.
8307 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8309 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8310 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8311 quad_aligned_load_p, replace_swapped_aligned_store,
8312 recombine_lvx_pattern, replace_swapped_aligned_load,
8313 recombine_stvx_pattern): Use MEM_P.
8314 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8315 Use MEM_P and SYMBOL_REF_P.
8316 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8317 (insn_is_swappable_p): Use REG_P and MEM_P.
8318 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8319 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8321 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8323 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8325 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8326 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8327 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8328 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8330 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8331 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8332 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8333 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8334 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8335 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8336 rs6000_split_logical_di): Use CONST_INT_P.
8337 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8338 REG_P and SYMBOL_REF_P.
8339 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8340 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8341 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8342 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8343 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8344 (small_data_operand, print_operand_address): Use CONST_INT_P and
8346 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8347 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8348 Use HARD_REGISTER_NUM_P.
8349 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8350 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8351 SUBREG_P and SYMBOL_REF_P.
8352 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8353 and HARD_REGISTER_NUM_P.
8354 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8356 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8357 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8359 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8360 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8361 find_addr_reg): Use REG_P.
8362 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8363 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8364 (offsettable_ok_by_alignment, constant_pool_expr_p,
8365 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8366 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8367 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8368 rs6000_assemble_integer, create_TOC_reference,
8369 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8370 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8371 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8372 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8373 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8374 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8375 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8376 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8377 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8378 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8379 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8380 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8381 and cbranch<mode>4): Use CONST_INT_P.
8382 (multiple define_splits): Use REG_P and SUBREG_P.
8383 (define_expands call, call_value): Use MEM_P.
8384 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8385 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8386 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8387 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8388 and HARD_REGISTER_NUM_P.
8389 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8391 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8393 PR rtl-optimization/88948
8394 * rtl.h (prepare_copy_insn): New prototype.
8395 * gcse.c (prepare_copy_insn): New function, split out from
8396 process_insert_insn.
8397 (process_insert_insn): Use prepare_copy_insn.
8398 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8399 instead of gen_move_insn.
8401 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8404 * config/i386/i386.c (ix86_pic_register_p): Return true for
8407 PR tree-optimization/88964
8408 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8409 punt if HONOR_SNANS (chrec).
8412 * tree-nested.c (convert_nonlocal_reference_stmt,
8413 convert_local_reference_stmt, convert_tramp_reference_stmt,
8414 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8415 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8418 PR tree-optimization/89027
8419 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8420 for "omp simd array" variables.
8422 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8425 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8426 force the alignment of m_val.
8428 2019-01-24 Richard Biener <rguenther@suse.de>
8431 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8432 When in "legacy" debug mode make sure to reset self-origins.
8434 2019-01-24 Martin Liska <mliska@suse.cz>
8436 PR gcov-profile/88994
8437 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8438 result will be always smaller or equal to the original.
8439 * gcov.c (mangle_name): Fix else branch where we should
8440 also copy to PTR and shift the pointer.
8442 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8444 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8445 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8447 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8449 * common/config/i386/i386-common.c
8450 (OPTION_MASK_ISA_ENQCMD_SET,
8451 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8452 (ix86_handle_option): Handle -menqcmd.
8453 * config.gcc (enqcmdintrin.h): New header file.
8454 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8455 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8457 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8459 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8460 __builtin_ia32_enqcmds): New builtins.
8461 * config/i386/i386-c.c (__ENQCMD__): New macro.
8462 * config/i386/i386-option.c (ix86_target_string): Add
8464 (ix86_valid_target_attribute_inner_p): Likewise.
8465 * config/i386/i386-expand.c
8466 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8467 IX86_BUILTIN_ENQCMDS.
8468 * config/i386/i386.h (TARGET_ENQCMD): New.
8469 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8470 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8471 (movdir64b_<mode>): Parameterize to enable share expansion code
8472 with ENQCMD in function ix86_expand_builtin.
8473 * config/i386/i386.opt: Add -menqcmd.
8474 * config/i386/immintrin.h: Include enqcmdintrin.h.
8475 * config/i386/enqcmdintrin.h: New intrinsic file.
8476 * doc/invoke.texi: Add -menqcmd.
8478 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8479 Steve Ellcey <sellcey@marvell.com>
8482 * recog.c (address_operand): Return false on wrong mode for address.
8483 (constrain_operands): Check for mode with 'p' constraint.
8485 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8488 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8489 Disparage MMX alternative.
8490 (sse2_cvtpd2pi): Ditto.
8491 (sse2_cvttpd2pi): Ditto.
8493 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8496 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8497 use-after-free of the result of
8498 aarch64_get_extension_string_for_isa_flags.
8500 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8503 * doc/extend.texi: Document break and continue behavior in
8504 statement expressions.
8506 2019-01-23 Richard Biener <rguenther@suse.de>
8508 PR tree-optimization/89008
8509 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8510 not leave another stray operand.
8512 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8514 * BASE-VER: Bump to 9.0.1.
8516 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8518 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8519 thunk that returns by reference, use the type of the return object
8520 of the thunk instead of that of the alias to build the dereference.
8522 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8524 * config/arc/atomic.md: Add operand to DMB instruction.
8526 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8528 PR tree-optimization/88964
8529 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8530 build_zero_cst instead of build_int_cst. Return false for loop
8531 invariants which honor signed zeros.
8533 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8535 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8537 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8540 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8541 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8542 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8545 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8546 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8549 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8550 Disable for little endian.
8552 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8555 * config/arm/arm.c (arm_needs_double_word_align): Check
8556 DECL_BIT_FIELD_TYPE.
8558 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8559 H.J. Lu <hongjiu.lu@intel.com>
8562 * config/i386/i386-builtin.def: Add mask2 to all builtin
8563 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8565 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8566 (BDESC_FIRST): Likewise.
8567 (define_builtin): Add an argument for mask2. Updated to handle
8568 both ix86_isa_flags and ix86_isa_flags2.
8569 (define_builtin_const): Likewise.
8570 (define_builtin_pure): Likewise.
8571 (define_builtin2): Deleted.
8572 (define_builtin_const2): Likewise.
8573 (builtin_description): Add a member, mask2.
8574 (bdesc_*): Add mask2 to builtin initializations.
8575 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8576 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8578 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8580 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8583 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8586 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8589 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8590 alignment is dominated by a bitfield with 64-bit aligned base type.
8591 (arm_function_arg): Emit a warning if the alignment has changed since
8592 earlier GCC releases.
8593 (arm_function_arg_boundary): Likewise.
8594 (arm_setup_incoming_varargs): Likewise.
8596 2019-01-22 Richard Biener <rguenther@suse.de>
8598 PR tree-optimization/88862
8599 * graphite-scop-detection.c
8600 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8602 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8604 * doc/extend.tex (AMD GCN Function Attributes): New section.
8605 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8606 * doc/invoke.texi (AMD GCN Options): New section.
8607 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8609 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8611 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8612 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8614 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8616 PR tree-optimization/88044
8617 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8618 is false in the first iteration, but !every_iteration, return false
8619 instead of true with niter->niter zero.
8621 PR rtl-optimization/88904
8622 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8623 any nonequal registers before processing BB_END (b).
8626 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8628 (expand_binop_directly, expand_doubleword_clz,
8629 expand_doubleword_popcount, expand_ctz, expand_ffs,
8630 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8632 PR rtl-optimization/49429
8634 PR rtl-optimization/86334
8636 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8637 addressable from here...
8638 (emit_block_op_via_libcall): ... to here.
8640 2019-01-22 Richard Biener <rguenther@suse.de>
8642 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8643 auto_vec for cost vector to fix memleak.
8644 (vectorize_fold_left_reduction): Properly gather SLP defs.
8645 (vectorizable_comparison): Do not swap operands to properly
8648 2019-01-22 Alan Modra <amodra@gmail.com>
8651 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8652 stays a reg. Allow a const_int.
8653 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8654 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8655 (IS_NOMARK_TLSGETADDR): Define.
8656 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8657 (rs6000_output_tlsargs): New function.
8658 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8659 __tls_get_addr call takes an arg.
8660 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8661 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8663 (call_value_nonlocal_sysv): ..or here, delete split.
8664 (tls_gdld_nomark): Delete.
8665 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8666 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8667 (call_value_nonlocal_sysv): Likewise.
8668 (call_value_nonlocal_sysv_secure): Likewise.
8669 (call_value_nonlocal_aix): Likewise.
8670 (call_value_indirect_aix): Likewise.
8671 (call_value_indirect_elfv2): Likewise.
8672 (call_value_local32, call_value_local64): Disable for no-mark tls.
8673 (call_value_local_aix): Likewise.
8675 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8678 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8679 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8681 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8683 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8684 string contents as hash_map keys.
8686 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8689 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8690 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8691 instead of TYPE_ALIGN.
8692 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8693 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8694 pointer from TYPE_STUB_DECL.
8696 2019-01-21 Richard Biener <rguenther@suse.de>
8698 PR tree-optimization/88934
8699 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8700 at the possibly non-constant operand.
8701 (vect_get_constant_vectors): Adjust.
8703 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8706 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8707 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8708 instead of _X86INTRIN_H_INCLUDED.
8709 * onfig/i386/clwbintrin.h: Likewise.
8710 * config/i386/pkuintrin.h: Likewise.
8711 * config/i386/prfchwintrin.h: Likewise.
8712 * config/i386/rdseedintrin.h: Likewise.
8713 * config/i386/wbnoinvdintrin.h: Likewise.
8714 * config/i386/xsavecintrin.h: Likewise.
8715 * config/i386/xsavesintrin.h: Likewise.
8716 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8717 * config/i386/xsaveintrin.h: Likewise.
8718 * config/i386/xsaveoptintrin.h: Likewise.
8719 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8720 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8721 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8722 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8723 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8724 * config/i386/immintrin.h: Here.
8726 2019-01-20 Martin Jambor <mjambor@suse.cz>
8729 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8730 with aa_walk_budget.
8731 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8732 aa_walk_budget_p parameter.
8733 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8734 walk. Updated all callers.
8735 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8736 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8738 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8739 parameter info. Extract info from fbi. Pass fbi to recursive calls
8740 and to unmodified_parm.
8741 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8742 info, updated call to will_be_nonconstant_expr_predicate.
8743 (param_change_prob): New parameter fbi, limit AA walking.
8744 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8745 calls to various above functions.
8746 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8747 parameter. Use it to limit AA walking.
8748 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8750 (detect_type_change): New parameter fbi, pass it on to
8751 detect_type_change_from_memory_writes.
8752 (detect_type_change_ssa): Likewise.
8753 (aa_overwalked): Removed.
8754 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8755 accordingly, adjust to the neew AA limiting scheme.
8756 (parm_ref_data_preserved_p): Likewise.
8757 (ipa_compute_jump_functions_for_edge): Adjust call to
8759 (ipa_analyze_call_uses): Likewise.
8760 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8761 (ipa_analyze_node): Initialize aa_walk_budget.
8762 (ipcp_transform_function): Likewise.
8763 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8764 to get_dynamic_type.
8766 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8768 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8769 outside of #if CHECKING_P code.
8771 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8773 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8774 New function, split out from...
8775 (loop_versioning::analyze_stride): ...here.
8776 (loop_versioning::find_per_loop_multiplication): Use gassign.
8777 (loop_versioning::analyze_term_using_scevs): Return a success code.
8778 (loop_versioning::analyze_arbitrary_term): New function.
8779 (loop_versioning::analyze_address_fragment): Use
8780 analyze_arbitrary_term if all else fails.
8782 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8785 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8788 2019-01-18 Richard Biener <rguenther@suse.de>
8790 PR tree-optimization/88903
8791 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8792 scalar stmts a SLP shift amount is composed of when detecting
8795 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8798 * config/arm/arm-cpus.in (mp): New feature.
8800 (fgroup ARMv7ve): Add mp and sec features.
8801 (arch armv7-a): Add options to allow mp and sec extensions.
8802 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8803 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8804 extenstions to the base architecture.
8805 (cpu cortex-a8): Add sec extension to the base architecture.
8806 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8807 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8808 variants down to the base v7-a varaint.
8809 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8810 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8811 of permitted extensions for -march=armv7-a and for
8812 -mcpu=generic-armv7-a.
8814 2019-01-18 Martin Liska <mliska@suse.cz>
8816 * params.def: Fix comment.
8817 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8819 (gimple_gen_ic_func_profiler): Likewise.
8821 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8823 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8824 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8825 and put in error checks for stack protector guard options.
8826 (aarch64_stack_protect_guard): New.
8827 (TARGET_STACK_PROTECT_GUARD): Define.
8828 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8829 (reg_stack_protect_address<mode>): New.
8830 (stack_protect_set): Adjust for SSP_GLOBAL.
8831 (stack_protect_test): Likewise.
8832 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8833 (-mstack-protector-guard): Likewise.
8834 (-mstack-protector-guard-offset): Likewise.
8836 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8838 PR tree-optimization/86214
8839 * tree-inline.h (struct copy_body_data): Add
8840 add_clobbers_to_eh_landing_pads member.
8841 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8842 (copy_edges_for_bb): Call it if EH edge destination is <
8843 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8844 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8845 if flag_stack_reuse != SR_NONE and clear it afterwards.
8847 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8850 * doc/install.texi (with-multilib-list): Document for aarch64.
8852 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8855 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8856 (("..."))) with ("...").
8858 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8860 * doc/extend.texi (Built-in Functions for Memory Model Aware
8861 Atomic Operations): Document atomic fetch and nand.
8863 2019-01-18 Martin Liska <mliska@suse.cz>
8864 Richard Biener <rguenther@suse.de>
8867 * cgraph.h (create_version_clone_with_body): Add new argument
8869 * cgraphclones.c (cgraph_node::create_version_clone): Add
8870 DECL_ATTRIBUTES to a newly created decl. And call
8871 valid_attribute_p so that proper cl_target_optimization_node
8872 is set for the newly created declaration.
8873 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8875 (expand_target_clones): Do not call valid_attribute_p, it must
8877 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8880 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8883 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8884 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8885 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8887 2019-01-17 Martin Sebor <msebor@redhat.com>
8890 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8891 Handle anti-ranges the same as no range at all.
8893 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8895 * config/aarch64/aarch64.c (cgraph.h): New include.
8896 (intl.h): New include.
8897 (supported_simd_type): New function.
8898 (currently_supported_simd_type): Ditto.
8899 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8900 (aarch64_simd_clone_adjust): Ditto.
8901 (aarch64_simd_clone_usable): Ditto.
8902 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8903 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8904 (TARGET_SIMD_CLONE_USABLE): Ditto.
8905 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8906 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8909 2019-01-17 Martin Sebor <msebor@redhat.com>
8911 PR tree-optimization/88800
8912 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8913 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8914 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8915 redundant argument. Add new argument and issue diagnostics under
8916 its control. Detect out-of-bounds access even with warnings
8918 (check_bounds_or_overlap): Change return type. Add argument.
8919 (wrestrict_dom_walker::check_call): Adjust.
8920 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8921 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8922 check_bounds_or_overlap's return value.
8923 (handle_builtin_stxncpy): Same.
8924 (handle_builtin_strcat): Same.
8926 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8927 Kwok Cheung Yeung <kcy@codesourcery.com>
8928 Julian Brown <julian@codesourcery.com>
8929 Tom de Vries <tom@codesourcery.com>
8931 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8933 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8935 * doc/sourcebuild.texi: Document dg-require-effective-target
8936 llvm_binutils and offload_gcn.
8938 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8939 Kwok Cheung Yeung <kcy@codesourcery.com>
8940 Julian Brown <julian@codesourcery.com>
8941 Tom de Vries <tom@codesourcery.com>
8943 * doc/sourcebuild.texi: Document dg-required-effective-target
8946 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8947 Kwok Cheung Yeung <kcy@codesourcery.com>
8948 Julian Brown <julian@codesourcery.com>
8949 Tom de Vries <tom@codesourcery.com>
8950 Jan Hubicka <hubicka@ucw.cz>
8951 Martin Jambor <mjambor@suse.cz>
8953 * config.gcc: Add amdgcn*-*-amdhsa configuration.
8954 * configure.ac: Check for dlopen.
8955 * configure: Regenerate.
8957 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8958 Kwok Cheung Yeung <kcy@codesourcery.com>
8959 Julian Brown <julian@codesourcery.com>
8960 Tom de Vries <tom@codesourcery.com>
8961 Jan Hubicka <hubicka@ucw.cz>
8962 Martin Jambor <mjambor@suse.cz>
8964 * common/config/gcn/gcn-common.c: New file.
8965 * config/gcn/driver-gcn.c: New file.
8966 * config/gcn/gcn-builtins.def: New file.
8967 * config/gcn/gcn-hsa.h: New file.
8968 * config/gcn/gcn-modes.def: New file.
8969 * config/gcn/gcn-opts.h: New file.
8970 * config/gcn/gcn-passes.def: New file.
8971 * config/gcn/gcn-protos.h: New file.
8972 * config/gcn/gcn-run.c: New file.
8973 * config/gcn/gcn-tree.c: New file.
8974 * config/gcn/gcn.c: New file.
8975 * config/gcn/gcn.h: New file.
8976 * config/gcn/gcn.opt: New file.
8977 * config/gcn/t-gcn-hsa: New file.
8979 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8980 Kwok Cheung Yeung <kcy@codesourcery.com>
8981 Julian Brown <julian@codesourcery.com>
8982 Tom de Vries <tom@codesourcery.com>
8983 Jan Hubicka <hubicka@ucw.cz>
8984 Martin Jambor <mjambor@suse.cz>
8986 * config/gcn/constraints.md: New file.
8987 * config/gcn/gcn-valu.md: New file.
8988 * config/gcn/gcn.md: New file.
8989 * config/gcn/predicates.md: New file.
8991 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
8993 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8994 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8995 (stmt_uses_0_or_null_in_undefined_way): Likewise.
8996 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8998 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9001 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9002 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9003 it and document registers.
9005 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9007 * config/aarch64/aarch64.c (ares_tunings): Define.
9008 * config/aarch64/aarch64-cores.def (ares): Use the above.
9010 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9014 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9016 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9017 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9018 (_mm512_maskz_fixupimm_round_pd): Ditto.
9019 (_mm512_fixupimm_round_ps): Ditto.
9020 (_mm512_maskz_fixupimm_round_ps): Ditto.
9021 (_mm_fixupimm_round_sd): Ditto.
9022 (_mm_maskz_fixupimm_round_sd): Ditto.
9023 (_mm_fixupimm_round_ss): Ditto.
9024 (_mm_maskz_fixupimm_round_ss): Ditto.
9025 (_mm512_fixupimm_pd): Ditto.
9026 (_mm512_maskz_fixupimm_pd): Ditto.
9027 (_mm512_fixupimm_ps): Ditto.
9028 (_mm512_maskz_fixupimm_ps): Ditto.
9029 (_mm_fixupimm_sd): Ditto.
9030 (_mm_maskz_fixupimm_sd): Ditto.
9031 (_mm_fixupimm_ss): Ditto.
9032 (_mm_maskz_fixupimm_ss): Ditto.
9033 (_mm512_mask_fixupimm_round_pd): Update builtin.
9034 (_mm512_mask_fixupimm_round_ps): Ditto.
9035 (_mm_mask_fixupimm_round_sd): Ditto.
9036 (_mm_mask_fixupimm_round_ss): Ditto.
9037 (_mm512_mask_fixupimm_pd): Ditto.
9038 (_mm512_mask_fixupimm_ps): Ditto.
9039 (_mm_mask_fixupimm_sd): Ditto.
9040 (_mm_mask_fixupimm_ss): Ditto.
9041 * config/i386/avx512vlintrin.h:
9042 (_mm256_fixupimm_pd): Update parameters and builtin.
9043 (_mm256_maskz_fixupimm_pd): Ditto.
9044 (_mm256_fixupimm_ps): Ditto.
9045 (_mm256_maskz_fixupimm_ps): Ditto.
9046 (_mm_fixupimm_pd): Ditto.
9047 (_mm_maskz_fixupimm_pd): Ditto.
9048 (_mm_fixupimm_ps): Ditto.
9049 (_mm_maskz_fixupimm_ps): Ditto.
9050 (_mm256_mask_fixupimm_pd): Update builtin.
9051 (_mm256_mask_fixupimm_ps): Ditto.
9052 (_mm_mask_fixupimm_pd): Ditto.
9053 (_mm_mask_fixupimm_ps): Ditto.
9054 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9055 * config/i386/i386-builtin.def: Update builtin definitions.
9056 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9057 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9058 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9059 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9060 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9061 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9062 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9063 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9064 * config/i386/subst.md:
9065 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9066 (round_saeonly_sd_mask_op4): Ditto.
9067 (round_saeonly_expand_operand5): Ditto.
9068 (round_saeonly_expand): Update.
9070 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9074 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9076 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9077 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9078 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9079 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9080 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9081 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9082 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9084 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9088 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9091 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9092 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9093 instead of UNSPEC_FIXUPIMM.
9095 2019-01-17 Richard Biener <rguenther@suse.de>
9098 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9099 and friends for the LTO part of debug info.
9101 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9103 PR tree-optimization/86214
9104 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9107 PR rtl-optimization/88870
9108 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9109 throw if we can't alter the cfg or delete dead exceptions.
9110 (mark_insn): Don't call find_call_stack_args for such calls.
9112 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9114 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9115 prototypes for vec_st.
9116 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9117 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9118 mainly on signed/unsigned long long and double.
9120 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9123 * combine.c (delete_noop_moves): Convert to "bool" return,
9124 returning true if any edges are eliminated.
9125 (combine_instructions): Also return true if delete_noop_moves
9128 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9130 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9131 correct max nunits for endian swap.
9132 (aarch64_expand_fcmla_builtin): Correct subreg code.
9133 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9134 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9137 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9139 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9140 Handle split indirect COMPLEX_TYPE arguments.
9142 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9145 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9146 bit is set by add and compare.
9147 (CC_ADC): New CC_MODE.
9148 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9149 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9150 comparison. Add detection for CC_ADCmode.
9151 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9153 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9154 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9155 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9156 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9157 to eliminate the need for zero-extending the operands.
9158 (add<mode>3_compareC_imm): Delete. Merge into ...
9159 (add<mode>3_compareC): ... this. Restructure the comparison to
9160 eliminate the need for zero-extending the operands.
9161 (add<mode>3_carryin): Use LTU for the overflow detection.
9162 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9163 Reexpress comparison for overflow.
9164 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9165 (add<mode>3_carryinC): Likewise.
9166 (add<mode>3_carryinV): Use LTU for carry between partials.
9167 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9168 handling of CC_Cmode and add CC_ADCmode.
9169 (aarch64_borrow_operation): Likewise.
9171 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9173 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9174 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9175 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9176 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9178 2019-01-16 Martin Liska <mliska@suse.cz>
9180 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9182 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9184 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9185 (path_prefix_reset): Move up in the source file.
9186 (find_fortran_preinclude_file): Make complex search for the
9187 fortran header files.
9189 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9191 * godump.c (go_output_typedef): When outputting a typedef, refer
9192 to the underlying type by its name and not its structure.
9194 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9197 * tree.c (build_function_type): Assert that arg_types is not
9200 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9203 * doc/extend.texi: Document that listing the stack pointer in the
9204 clobber list of an asm is a deprecated feature.
9205 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9206 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9207 warning instead of an error for clobbers of the stack pointer.
9208 Add a note explaining why.
9210 2019-01-15 Richard Biener <rguenther@suse.de>
9213 * dwarf2out.c (gen_member_die): Do not generate inheritance
9216 2019-01-15 Richard Biener <rguenther@suse.de>
9218 PR tree-optimization/88855
9219 * tree-if-conv.c (combine_blocks): Collect
9220 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9222 2019-01-15 Tom de Vries <tdevries@suse.de>
9225 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9226 lhs == NULL_TREE for gang-level reduction.
9228 2019-01-15 Richard Biener <rguenther@suse.de>
9229 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9232 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9233 return true if SSA_NAME is already marked in visited bitmap.
9234 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9236 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9238 PR tree-optimization/88775
9239 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9240 equal == 0 equality pointer comparisons some more if compared in
9241 integral types and either one points to an automatic var and the
9242 other to a global, or we can prove at least one points to the middle
9243 or both point to start or both point to end.
9245 2019-01-14 Andi Kleen <ak@linux.intel.com>
9247 * Makefile.in: Lower autofdo sampling rate by 10x.
9248 * Makefile.tpl: Dito.
9250 2019-01-14 Tom Honermann <tom@honermann.net>
9252 * defaults.h: Define CHAR8_TYPE.
9254 2019-01-14 Martin Sebor <msebor@redhat.com>
9257 * doc/extend.texi (Darwin Format Checks): Clarify.
9259 2019-01-14 Richard Biener <rguenther@suse.de>
9261 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9262 whether we are in (simplify ...) or (match ...) context.
9264 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9266 PR rtl-optimization/88796
9267 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9268 * cfgexpand.c (stack_protect_prologue): Initialize
9269 crtl->stack_protect_guard_decl.
9270 * function.c (stack_protect_epilogue): Use it instead of calling
9271 targetm.stack_protect_guard again.
9272 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9273 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9274 crtl->stack_protect_guard_decl.
9275 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9276 on the returned MEM_EXPR.
9278 2019-01-12 Tom de Vries <tdevries@suse.de>
9280 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9281 vector length using -fopenacc-dim.
9283 2019-01-12 Tom de Vries <tdevries@suse.de>
9285 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9286 lengths into account.
9288 2019-01-12 Svante Signell <svante.signell@gmail.com>
9290 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9291 (TARGET_CAN_SPLIT_STACK): Define.
9292 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9294 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9296 * params.def (inline-unit-growth): Set to 40.
9298 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9300 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9302 2019-01-12 Tom de Vries <tdevries@suse.de>
9304 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9305 region calling vector-partitionable routine, set default_vector_length
9308 2019-01-12 Tom de Vries <tdevries@suse.de>
9310 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9311 variable default_vector_length.
9313 2019-01-12 Tom de Vries <tdevries@suse.de>
9316 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9317 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9320 2019-01-12 Tom de Vries <tdevries@suse.de>
9322 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9323 (nvptx_goacc_validate_dims): Add used parameter.
9324 * doc/tm.texi: Regenerate.
9325 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9326 argument to call to targetm.goacc.validate_dims.
9327 (default_goacc_validate_dims): Add used
9329 * target.def (validate_dims): Add used parameter in DEFHOOK.
9330 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9332 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9336 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9338 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9339 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9340 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9341 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9343 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9345 PR rtl-optimization/87305
9347 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9348 for little endian pseudos used as paradoxical subreg.
9350 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9352 PR tree-optimization/88693
9353 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9354 for STRING_CSTs that don't contain any NUL characters in the first
9355 TREE_STRING_LENGTH bytes.
9357 2019-01-11 Alan Modra <amodra@gmail.com>
9361 * genattrtab.c (min_fn): Don't translate values.
9362 (min_attr_value): Return INT_MAX when the value can't be calculated.
9363 Return minimum among any values that can be calculated.
9364 (max_attr_value): Adjust.
9366 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9368 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9370 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9372 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9373 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9374 (aarch64_return_call_with_max_clobbers): New function.
9375 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9376 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9378 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9379 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9380 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9381 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9382 * cselib.c (cselib_process_insn): Add argument to
9383 targetm.hard_regno_call_part_clobbered call.
9384 * ira-conflicts.c (ira_build_conflicts): Ditto.
9385 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9386 * lra-constraints.c (inherit_reload_reg): Ditto.
9387 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9388 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9389 argument. Call targetm.return_call_with_max_clobbers.
9390 Add argument to targetm.hard_regno_call_part_clobbered call.
9391 (calls_have_same_clobbers_p): New function.
9392 (process_bb_lives): Add call_insn and last_call_insn variables.
9393 Pass call_insn to check_pseudos_live_through_calls.
9394 Modify if stmt to check targetm.return_call_with_max_clobbers.
9395 Update setting of flush variable.
9396 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9398 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9399 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9400 targetm.hard_regno_call_part_clobbered call.
9401 * reginfo.c (choose_hard_reg_mode): Ditto.
9402 * regrename.c (check_new_reg_p): Ditto.
9403 * reload.c (find_equiv_reg): Ditto.
9404 * reload1.c (emit_reload_insns): Ditto.
9405 * sched-deps.c (deps_analyze_insn): Ditto.
9406 * sel-sched.c (init_regs_for_mode): Ditto.
9407 (mark_unavailable_hard_regs): Ditto.
9408 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9409 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9410 (return_call_with_max_clobbers): New target function.
9411 * doc/tm.texi: Regenerate.
9412 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9413 * hooks.c (hook_bool_uint_mode_false): Change to
9414 hook_bool_insn_uint_mode_false.
9415 * hooks.h (hook_bool_uint_mode_false): Ditto.
9417 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9419 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9420 (aarch64_remove_extra_call_preserved_regs): New function.
9421 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9422 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9423 * doc/tm.texi: Regenerate.
9424 * final.c (get_call_reg_set_usage): Call new hook.
9425 * target.def (remove_extra_call_preserved_regs): New hook.
9426 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9427 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9429 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9432 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9433 inside of pass_combine_1 dump rather than pass_profile_1.
9435 2019-01-11 Tom de Vries <tdevries@suse.de>
9437 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9438 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9439 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9440 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9443 2019-01-11 Tom de Vries <tdevries@suse.de>
9445 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9447 2019-01-11 Jan Beulich <jbeulich@suse.com>
9449 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9450 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9451 sse2_cvtsi2sd): Add {l}.
9452 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9455 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9458 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9460 (*float<floatunssuffix>v2div2sf2): New define_insn.
9461 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9462 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9463 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9464 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9465 match_operands with "const0_operand" "C".
9467 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9469 * config/aarch64/aarch64-builtins.c
9470 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9471 (aarch64_init_simd_builtins): ...Here
9473 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9475 PR rtl-optimization/87305
9477 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9478 allocation for big endian pseudos used as paradoxical subregs and
9479 spill them if it is wrong.
9480 * lra-constraints.c (lra_constraints): Add a comment.
9482 2019-01-10 Richard Biener <rguenther@suse.de>
9484 PR tree-optimization/88792
9485 * tree-ssa-pre.c (get_representative_for): Do not return a
9488 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9492 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9493 (assign_parm_setup_block): Do the argument slot realignment here
9496 2019-01-10 Stefan Agner <stefan@agner.ch>
9499 * config/arm/arm.c (arm_option_override_internal): Force
9500 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9502 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9505 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9508 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9510 * config/arm/arm-builtins.c
9511 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9512 (MAC_LANE_PAIR_QUALIFIERS): New.
9513 (arm_expand_builtin_args): Use it.
9514 (arm_expand_builtin_1): Likewise.
9515 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9516 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9517 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9518 * config/arm/arm_neon.h:
9519 (vcadd_rot90_f16): New.
9520 (vcaddq_rot90_f16): New.
9521 (vcadd_rot270_f16): New.
9522 (vcaddq_rot270_f16): New.
9525 (vcmla_lane_f16): New.
9526 (vcmla_laneq_f16): New.
9527 (vcmlaq_lane_f16): New.
9528 (vcmlaq_laneq_f16): New.
9529 (vcmla_rot90_f16): New.
9530 (vcmlaq_rot90_f16): New.
9531 (vcmla_rot90_lane_f16): New.
9532 (vcmla_rot90_laneq_f16): New.
9533 (vcmlaq_rot90_lane_f16): New.
9534 (vcmlaq_rot90_laneq_f16): New.
9535 (vcmla_rot180_f16): New.
9536 (vcmlaq_rot180_f16): New.
9537 (vcmla_rot180_lane_f16): New.
9538 (vcmla_rot180_laneq_f16): New.
9539 (vcmlaq_rot180_lane_f16): New.
9540 (vcmlaq_rot180_laneq_f16): New.
9541 (vcmla_rot270_f16): New.
9542 (vcmlaq_rot270_f16): New.
9543 (vcmla_rot270_lane_f16): New.
9544 (vcmla_rot270_laneq_f16): New.
9545 (vcmlaq_rot270_lane_f16): New.
9546 (vcmlaq_rot270_laneq_f16): New.
9547 (vcadd_rot90_f32): New.
9548 (vcaddq_rot90_f32): New.
9549 (vcadd_rot270_f32): New.
9550 (vcaddq_rot270_f32): New.
9553 (vcmla_lane_f32): New.
9554 (vcmla_laneq_f32): New.
9555 (vcmlaq_lane_f32): New.
9556 (vcmlaq_laneq_f32): New.
9557 (vcmla_rot90_f32): New.
9558 (vcmlaq_rot90_f32): New.
9559 (vcmla_rot90_lane_f32): New.
9560 (vcmla_rot90_laneq_f32): New.
9561 (vcmlaq_rot90_lane_f32): New.
9562 (vcmlaq_rot90_laneq_f32): New.
9563 (vcmla_rot180_f32): New.
9564 (vcmlaq_rot180_f32): New.
9565 (vcmla_rot180_lane_f32): New.
9566 (vcmla_rot180_laneq_f32): New.
9567 (vcmlaq_rot180_lane_f32): New.
9568 (vcmlaq_rot180_laneq_f32): New.
9569 (vcmla_rot270_f32): New.
9570 (vcmlaq_rot270_f32): New.
9571 (vcmla_rot270_lane_f32): New.
9572 (vcmla_rot270_laneq_f32): New.
9573 (vcmlaq_rot270_lane_f32): New.
9574 (vcmlaq_rot270_laneq_f32): New.
9575 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9576 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9577 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9578 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9579 vcmlaq_lane270): New.
9580 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9581 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9582 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9583 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9584 (arm_option_reconfigure_globals): Use them.
9585 * config/arm/iterators.md (VDF, VQ_HSF): New.
9586 (VCADD, VCMLA): New.
9587 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9588 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9590 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9591 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9593 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9595 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9596 Add qualifier_lane_pair_index.
9597 (emit-rtl.h): Include.
9598 (TYPES_QUADOP_LANE_PAIR): New.
9599 (aarch64_simd_expand_args): Use it.
9600 (aarch64_simd_expand_builtin): Likewise.
9601 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9603 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9604 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9605 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9606 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9607 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9608 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9609 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9610 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9611 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9612 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9613 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9614 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9615 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9616 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9617 Add __ARM_FEATURE_COMPLEX.
9618 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9619 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9620 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9621 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9622 fcmlaq_lane270): New.
9623 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9624 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9625 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9626 * config/aarch64/arm_neon.h:
9627 (vcadd_rot90_f16): New.
9628 (vcaddq_rot90_f16): New.
9629 (vcadd_rot270_f16): New.
9630 (vcaddq_rot270_f16): New.
9633 (vcmla_lane_f16): New.
9634 (vcmla_laneq_f16): New.
9635 (vcmlaq_lane_f16): New.
9636 (vcmlaq_rot90_lane_f16): New.
9637 (vcmla_rot90_laneq_f16): New.
9638 (vcmla_rot90_lane_f16): New.
9639 (vcmlaq_rot90_f16): New.
9640 (vcmla_rot90_f16): New.
9641 (vcmlaq_laneq_f16): New.
9642 (vcmla_rot180_laneq_f16): New.
9643 (vcmla_rot180_lane_f16): New.
9644 (vcmlaq_rot180_f16): New.
9645 (vcmla_rot180_f16): New.
9646 (vcmlaq_rot90_laneq_f16): New.
9647 (vcmlaq_rot270_laneq_f16): New.
9648 (vcmlaq_rot270_lane_f16): New.
9649 (vcmla_rot270_laneq_f16): New.
9650 (vcmlaq_rot270_f16): New.
9651 (vcmla_rot270_f16): New.
9652 (vcmlaq_rot180_laneq_f16): New.
9653 (vcmlaq_rot180_lane_f16): New.
9654 (vcmla_rot270_lane_f16): New.
9655 (vcadd_rot90_f32): New.
9656 (vcaddq_rot90_f32): New.
9657 (vcaddq_rot90_f64): New.
9658 (vcadd_rot270_f32): New.
9659 (vcaddq_rot270_f32): New.
9660 (vcaddq_rot270_f64): New.
9664 (vcmla_lane_f32): New.
9665 (vcmla_laneq_f32): New.
9666 (vcmlaq_lane_f32): New.
9667 (vcmlaq_laneq_f32): New.
9668 (vcmla_rot90_f32): New.
9669 (vcmlaq_rot90_f32): New.
9670 (vcmlaq_rot90_f64): New.
9671 (vcmla_rot90_lane_f32): New.
9672 (vcmla_rot90_laneq_f32): New.
9673 (vcmlaq_rot90_lane_f32): New.
9674 (vcmlaq_rot90_laneq_f32): New.
9675 (vcmla_rot180_f32): New.
9676 (vcmlaq_rot180_f32): New.
9677 (vcmlaq_rot180_f64): New.
9678 (vcmla_rot180_lane_f32): New.
9679 (vcmla_rot180_laneq_f32): New.
9680 (vcmlaq_rot180_lane_f32): New.
9681 (vcmlaq_rot180_laneq_f32): New.
9682 (vcmla_rot270_f32): New.
9683 (vcmlaq_rot270_f32): New.
9684 (vcmlaq_rot270_f64): New.
9685 (vcmla_rot270_lane_f32): New.
9686 (vcmla_rot270_laneq_f32): New.
9687 (vcmlaq_rot270_lane_f32): New.
9688 (vcmlaq_rot270_laneq_f32): New.
9689 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9690 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9691 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9692 (FCADD, FCMLA): New.
9694 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9696 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9700 * config/pa/pa.c: Change "can not" to "cannot".
9701 * gimple-ssa-evrp-analyze.c: Likewise.
9702 * ipa-icf.c: Likewise.
9703 * ipa-polymorphic-call.c: Likewise.
9704 * ipa-pure-const.c: Likewise.
9705 * lra-constraints.c: Likewise.
9706 * lra-remat.c: Likewise.
9707 * reload1.c: Likewise.
9708 * reorg.c: Likewise.
9709 * tree-ssa-uninit.c: Likewise.
9711 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9715 * Makefile.in: Mechanically replace "can not" with "cannot".
9716 * alias.c: Likewise.
9717 * builtins.c: Likewise.
9718 * calls.c: Likewise.
9719 * cgraph.c: Likewise.
9720 * cgraph.h: Likewise.
9721 * cgraphclones.c: Likewise.
9722 * cgraphunit.c: Likewise.
9723 * combine-stack-adj.c: Likewise.
9724 * combine.c: Likewise.
9725 * common/config/i386/i386-common.c: Likewise.
9726 * config/aarch64/aarch64.c: Likewise.
9727 * config/alpha/sync.md: Likewise.
9728 * config/arc/arc.c: Likewise.
9729 * config/arc/predicates.md: Likewise.
9730 * config/arm/arm-c.c: Likewise.
9731 * config/arm/arm.c: Likewise.
9732 * config/arm/arm.h: Likewise.
9733 * config/arm/arm.md: Likewise.
9734 * config/arm/cortex-r4f.md: Likewise.
9735 * config/csky/csky.c: Likewise.
9736 * config/csky/csky.h: Likewise.
9737 * config/darwin-f.c: Likewise.
9738 * config/epiphany/epiphany.md: Likewise.
9739 * config/i386/i386.c: Likewise.
9740 * config/i386/sol2.h: Likewise.
9741 * config/m68k/m68k.c: Likewise.
9742 * config/mcore/mcore.h: Likewise.
9743 * config/microblaze/microblaze.md: Likewise.
9744 * config/mips/20kc.md: Likewise.
9745 * config/mips/sb1.md: Likewise.
9746 * config/nds32/nds32.c: Likewise.
9747 * config/nds32/predicates.md: Likewise.
9748 * config/pa/pa.c: Likewise.
9749 * config/rs6000/e300c2c3.md: Likewise.
9750 * config/rs6000/rs6000.c: Likewise.
9751 * config/s390/s390.h: Likewise.
9752 * config/sh/sh.c: Likewise.
9753 * config/sh/sh.md: Likewise.
9754 * config/spu/vmx2spu.h: Likewise.
9755 * cprop.c: Likewise.
9756 * dbxout.c: Likewise.
9757 * df-scan.c: Likewise.
9758 * doc/cfg.texi: Likewise.
9759 * doc/extend.texi: Likewise.
9760 * doc/fragments.texi: Likewise.
9761 * doc/gty.texi: Likewise.
9762 * doc/invoke.texi: Likewise.
9763 * doc/lto.texi: Likewise.
9764 * doc/md.texi: Likewise.
9765 * doc/objc.texi: Likewise.
9766 * doc/rtl.texi: Likewise.
9767 * doc/tm.texi: Likewise.
9769 * emit-rtl.c: Likewise.
9770 * emit-rtl.h: Likewise.
9771 * except.c: Likewise.
9772 * expmed.c: Likewise.
9774 * fold-const.c: Likewise.
9775 * genautomata.c: Likewise.
9776 * gimple-fold.c: Likewise.
9777 * hard-reg-set.h: Likewise.
9778 * ifcvt.c: Likewise.
9779 * ipa-comdats.c: Likewise.
9780 * ipa-cp.c: Likewise.
9781 * ipa-devirt.c: Likewise.
9782 * ipa-fnsummary.c: Likewise.
9783 * ipa-icf.c: Likewise.
9784 * ipa-inline-transform.c: Likewise.
9785 * ipa-inline.c: Likewise.
9786 * ipa-polymorphic-call.c: Likewise.
9787 * ipa-profile.c: Likewise.
9788 * ipa-prop.c: Likewise.
9789 * ipa-pure-const.c: Likewise.
9790 * ipa-reference.c: Likewise.
9791 * ipa-split.c: Likewise.
9792 * ipa-visibility.c: Likewise.
9794 * ira-build.c: Likewise.
9795 * ira-color.c: Likewise.
9796 * ira-conflicts.c: Likewise.
9797 * ira-costs.c: Likewise.
9798 * ira-int.h: Likewise.
9799 * ira-lives.c: Likewise.
9802 * loop-invariant.c: Likewise.
9803 * loop-unroll.c: Likewise.
9804 * lower-subreg.c: Likewise.
9805 * lra-assigns.c: Likewise.
9806 * lra-constraints.c: Likewise.
9807 * lra-eliminations.c: Likewise.
9808 * lra-lives.c: Likewise.
9809 * lra-remat.c: Likewise.
9810 * lra-spills.c: Likewise.
9812 * lto-cgraph.c: Likewise.
9813 * lto-streamer-out.c: Likewise.
9814 * postreload-gcse.c: Likewise.
9815 * predict.c: Likewise.
9816 * profile-count.h: Likewise.
9817 * profile.c: Likewise.
9818 * recog.c: Likewise.
9820 * reload.c: Likewise.
9821 * reload1.c: Likewise.
9822 * reorg.c: Likewise.
9823 * resource.c: Likewise.
9824 * rtl.def: Likewise.
9826 * rtlanal.c: Likewise.
9827 * sched-deps.c: Likewise.
9828 * sched-ebb.c: Likewise.
9829 * sched-rgn.c: Likewise.
9830 * sel-sched-ir.c: Likewise.
9831 * sel-sched.c: Likewise.
9832 * shrink-wrap.c: Likewise.
9833 * simplify-rtx.c: Likewise.
9834 * symtab.c: Likewise.
9835 * target.def: Likewise.
9836 * toplev.c: Likewise.
9837 * tree-call-cdce.c: Likewise.
9838 * tree-cfg.c: Likewise.
9839 * tree-complex.c: Likewise.
9840 * tree-core.h: Likewise.
9841 * tree-eh.c: Likewise.
9842 * tree-inline.c: Likewise.
9843 * tree-loop-distribution.c: Likewise.
9844 * tree-nrv.c: Likewise.
9845 * tree-profile.c: Likewise.
9846 * tree-sra.c: Likewise.
9847 * tree-ssa-alias.c: Likewise.
9848 * tree-ssa-dce.c: Likewise.
9849 * tree-ssa-dom.c: Likewise.
9850 * tree-ssa-forwprop.c: Likewise.
9851 * tree-ssa-loop-im.c: Likewise.
9852 * tree-ssa-loop-ivcanon.c: Likewise.
9853 * tree-ssa-loop-ivopts.c: Likewise.
9854 * tree-ssa-loop-niter.c: Likewise.
9855 * tree-ssa-phionlycprop.c: Likewise.
9856 * tree-ssa-phiopt.c: Likewise.
9857 * tree-ssa-propagate.c: Likewise.
9858 * tree-ssa-threadedge.c: Likewise.
9859 * tree-ssa-threadupdate.c: Likewise.
9860 * tree-ssa-uninit.c: Likewise.
9861 * tree-ssanames.c: Likewise.
9862 * tree-streamer-out.c: Likewise.
9865 * vr-values.c: Likewise.
9867 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9869 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9870 (ix86_split_xorsign): Ditto.
9871 * config/i386/i386.c (ix86_expand_xorsign): New function.
9872 (ix86_split_xorsign): Ditto.
9873 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9874 (xorsign<mode>3): New expander.
9875 (xorsign<mode>3_1): New insn_and_split pattern.
9876 * config/i386/sse.md (xorsign<mode>3): New expander.
9878 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9880 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9881 (*tablejump_sp64): Likewise.
9882 (*tablejump<P:mode>): ...this.
9883 (*call_address_sp32): Merge into...
9884 (*call_address_sp64): Likewise.
9885 (*call_address<P:mode>): ...this.
9886 (*call_symbolic_sp32): Merge into...
9887 (*call_symbolic_sp64): Likewise.
9888 (*call_symbolic<P:mode>): ...this.
9889 (call_value): Remove constraint and add predicate.
9890 (*call_value_address_sp32): Merge into...
9891 (*call_value_address_sp64): Likewise.
9892 (*call_value_address<P:mode>): ...this.
9893 (*call_value_symbolic_sp32): Merge into...
9894 (*call_value_symbolic_sp64): Likewise.
9895 (*call_value_symbolic<P:mode>): ...this.
9896 (*sibcall_symbolic_sp32): Merge into...
9897 (*sibcall_symbolic_sp64): Likewise.
9898 (*sibcall_symbolic<P:mode>): ...this.
9899 (sibcall_value): Remove constraint and add predicate.
9900 (*sibcall_value_symbolic_sp32): Merge into...
9901 (*sibcall_value_symbolic_sp64): Likewise.
9902 (*sibcall_value_symbolic<P:mode>): ...this.
9903 (window_save): Minor tweak.
9904 (*branch_sp32): Merge into...
9905 (*branch_sp64): Likewise.
9906 (*branch<P:mode>): ...this.
9908 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9909 James Clarke <jrtc27@jrtc27.com>
9912 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9913 consistently in TLS address generation and adjust code to the renaming
9914 of patterns. Mark calls to __tls_get_addr as const.
9915 * config/sparc/sparc.md (tgd_hi22): Turn into...
9916 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9917 (tgd_lo10): Turn into...
9918 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9919 (tgd_add32): Merge into...
9920 (tgd_add64): Likewise.
9921 (tgd_add<P:mode>): ...this and use Pmode throughout.
9922 (tldm_hi22): Turn into...
9923 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9924 (tldm_lo10): Turn into...
9925 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9926 (tldm_add32): Merge into...
9927 (tldm_add64): Likewise.
9928 (tldm_add<P:mode>): ...this and use Pmode throughout.
9929 (tldm_call32): Merge into...
9930 (tldm_call64): Likewise.
9931 (tldm_call<P:mode>): ...this and use Pmode throughout.
9932 (tldo_hix22): Turn into...
9933 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9934 (tldo_lox10): Turn into...
9935 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9936 (tldo_add32): Merge into...
9937 (tldo_add64): Likewise.
9938 (tldo_add<P:mode>): ...this and use Pmode throughout.
9939 (tie_hi22): Turn into...
9940 (tie_hi22<P:mode>): ...this and use Pmode throughout.
9941 (tie_lo10): Turn into...
9942 (tie_lo10<P:mode>): ...this and use Pmode throughout.
9943 (tie_ld64): Use DImode throughout.
9944 (tie_add32): Merge into...
9945 (tie_add64): Likewise.
9946 (tie_add<P:mode>): ...this and use Pmode throughout.
9947 (tle_hix22_sp32): Merge into...
9948 (tle_hix22_sp64): Likewise.
9949 (tle_hix22<P:mode>): ...this and use Pmode throughout.
9950 (tle_lox22_sp32): Merge into...
9951 (tle_lox22_sp64): Likewise.
9952 (tle_lox22<P:mode>): ...this and use Pmode throughout.
9953 (*tldo_ldub_sp32): Merge into...
9954 (*tldo_ldub_sp64): Likewise.
9955 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9956 (*tldo_ldub1_sp32): Merge into...
9957 (*tldo_ldub1_sp64): Likewise.
9958 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9959 (*tldo_ldub2_sp32): Merge into...
9960 (*tldo_ldub2_sp64): Likewise.
9961 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9962 (*tldo_ldsb1_sp32): Merge into...
9963 (*tldo_ldsb1_sp64): Likewise.
9964 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9965 (*tldo_ldsb2_sp32): Merge into...
9966 (*tldo_ldsb2_sp64): Likewise.
9967 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9968 (*tldo_ldub3_sp64): Use DImode throughout.
9969 (*tldo_ldsb3_sp64): Likewise.
9970 (*tldo_lduh_sp32): Merge into...
9971 (*tldo_lduh_sp64): Likewise.
9972 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9973 (*tldo_lduh1_sp32): Merge into...
9974 (*tldo_lduh1_sp64): Likewise.
9975 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9976 (*tldo_ldsh1_sp32): Merge into...
9977 (*tldo_ldsh1_sp64): Likewise.
9978 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9979 (*tldo_lduh2_sp64): Use DImode throughout.
9980 (*tldo_ldsh2_sp64): Likewise.
9981 (*tldo_lduw_sp32): Merge into...
9982 (*tldo_lduw_sp64): Likewise.
9983 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9984 (*tldo_lduw1_sp64): Use DImode throughout.
9985 (*tldo_ldsw1_sp64): Likewise.
9986 (*tldo_ldx_sp64): Likewise.
9987 (*tldo_stb_sp32): Merge into...
9988 (*tldo_stb_sp64): Likewise.
9989 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9990 (*tldo_sth_sp32): Merge into...
9991 (*tldo_sth_sp64): Likewise.
9992 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9993 (*tldo_stw_sp32): Merge into...
9994 (*tldo_stw_sp64): Likewise.
9995 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9996 (*tldo_stx_sp64): Use DImode throughout.
9998 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10000 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10001 check configure option to set BTI and Return Address Signing.
10002 * configure.ac: Add --enable-standard-branch-protection and
10003 --disable-standard-branch-protection.
10004 * configure: Regenerated.
10005 * doc/install.texi: Document the same.
10007 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10008 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10010 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10011 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10012 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10014 * config/aarch64/aarch64-bti-insert.c: New file.
10015 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10017 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10019 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10020 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10021 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10022 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10024 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10026 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10027 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10028 Disable bti for -mbranch-protection=none.
10029 (aarch64_handle_standard_branch_protection): Enable bti for
10030 -mbranch-protection=standard.
10031 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10032 -mbranch-protection.
10033 (aarch64_bti_enabled): Check if bti is enabled.
10034 * config/aarch64/aarch64.opt: Declare target variable.
10035 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10037 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10039 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10040 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10041 (aarch64_expand_epilogue): Likewise.
10042 (aarch64_output_mi_thunk): Likewise
10043 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10044 TAILCALL_ADDR_REGS to x16 and x17.
10045 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10047 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10049 * config/aarch64/aarch64-option-extensions.def: Define
10050 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10051 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10052 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10053 (AARCH64_FL_PREDRES): New.
10054 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10055 AARCH64_FL_PREDRES by default.
10056 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10058 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10060 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10062 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10063 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10064 * doc/invoke.texi: Document ARMv8.5-A.
10066 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10068 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10069 (xorsign<mode>3): Likewise.
10071 2019-01-09 Jelinek <jakub@redhat.com>
10073 PR middle-end/88758
10074 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10075 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10077 PR rtl-optimization/88331
10078 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10079 not currently_expanding_to_rtl.
10081 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10083 * doc/invoke.texi (-Os): Remove trailing spaces.
10084 (-finline-functions): Remove reference to -O2.
10086 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10088 PR rtl-optimization/79593
10089 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10091 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10092 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10094 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10097 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10101 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10102 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10104 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10107 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10108 ix86_avx_u128_mode_entry.
10110 2019-01-08 Martin Liska <mliska@suse.cz>
10112 PR tree-optimization/88753
10113 * tree-switch-conversion.c (switch_conversion::build_one_array):
10114 Come up with local variable constructor. Convert first to
10115 type of constructor values.
10117 2019-01-08 Richard Biener <rguenther@suse.de>
10119 PR tree-optimization/86554
10120 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10121 rpo_avail): Move earlier.
10122 (visit_nary_op): When value-numbering to expressions
10123 with different overflow behavior make sure there's an
10124 available expression on the path.
10126 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10128 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10129 aarch64_parse_branch_protection,
10130 struct aarch64_branch_protect_type,
10131 aarch64_handle_no_branch_protection,
10132 aarch64_handle_standard_branch_protection,
10133 aarch64_validate_mbranch_protection,
10134 aarch64_handle_pac_ret_protection,
10135 aarch64_handle_attr_branch_protection,
10136 accepted_branch_protection_string,
10137 aarch64_pac_ret_subtypes,
10138 aarch64_branch_protect_types,
10139 aarch64_handle_pac_ret_leaf): Define.
10140 (aarch64_override_options_after_change_1, aarch64_override_options):
10141 Add check for accepted_branch_protection_string.
10142 (aarch64_option_save): Save accepted_branch_protection_string.
10143 (aarch64_option_restore): Save accepted_branch_protection_string.
10144 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10145 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10146 msign-return-address.
10147 * doc/invoke.texi: Add mbranch-protection.
10149 2019-01-08 Alan Modra <amodra@gmail.com>
10152 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10153 Delete "unknownp" parameter. Adjust callers. Handle
10154 CONST_INT, PLUS, MINUS, and MULT.
10155 (attr_value_aligned): Renamed from or_attr_value.
10156 (min_attr_value): Return INT_MIN for unhandled rtl case..
10157 (min_fn): ..and translate to INT_MAX here.
10158 (write_length_unit_log): Modify to cope without "unknown".
10159 (write_attr_value): Handle IF_THEN_ELSE.
10161 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10163 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10164 optimization for masked stores.
10166 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10168 PR middle-end/88567
10169 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10170 output vector directly to duplicate_and_interleave instead of
10171 going through a temporary. Postpone insertion of ctor_seq to
10172 the end of the loop.
10174 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10177 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10178 unsigned_p. Handle signed and unsigned overflow correction as
10180 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10182 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10184 (add<mode>3_compareV_imm): Make this callable for expanding.
10185 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10186 aarch64_plus_operand for operand 2.
10187 (subv<GPI:mode>_insn): New insn pattern.
10188 (subv<GPI:mode>_imm): Likewise.
10189 (negv<GPI:mode>3): New expand pattern.
10190 (negv<GPI:mode>_insn): New insn pattern.
10191 (negv<GPI:mode>_cmp_only): Likewise.
10192 (cmpv<GPI:mode>_insn): Likewise.
10193 (subvti4): Use register_operand for operand 1. Update call to
10194 aarch64_expand_subvti.
10195 (usubvti4): Likewise.
10196 (negvti3): New expand pattern.
10197 (negdi_carryout): New insn pattern.
10198 (negvdi_carryinV): New insn pattern.
10199 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10200 version the named version.
10201 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10203 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10205 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10207 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10208 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10209 (sub<mode>3_carryinCV): Delete.
10210 (sub<GPI:mode>3_carryinV): New expand pattern.
10211 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10213 2019-01-07 Richard Biener <rguenther@suse.de>
10215 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10216 of tree_operand_hash.
10218 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10220 PR tree-optimization/88598
10221 * tree.h (single_nonzero_element): Declare.
10222 * tree.c (single_nonzero_element): New function.
10223 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10224 if I is the only nonzero element of CST.
10226 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10228 PR tree-optimization/88598
10229 * tree.h (initializer_each_zero_or_onep): Declare.
10230 * tree.c (initializer_each_zero_or_onep): New function.
10231 (signed_or_unsigned_type_for): Handle float types too.
10232 (unsigned_type_for, signed_type_for): Update comments accordingly.
10233 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10234 x & { 0 or -1, 0 or -1, ... }.
10236 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10238 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10239 with x86_64-pc-linux-gnu.
10241 2019-01-07 Tom de Vries <tdevries@suse.de>
10244 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10246 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10249 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10251 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10252 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10253 TARGET_AVX512F as condition.
10256 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10257 const_not_ok_for_debug_p target hook.
10258 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10259 on UNSPEC and subexpressions thereof if all subexpressions of the
10260 UNSPEC are CONSTANT_P.
10262 PR tree-optimization/88676
10263 * tree-ssa-phiopt.c (two_value_replacement): New function.
10264 (tree_ssa_phiopt_worker): Call it.
10267 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10268 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10271 * tree-vect-generic.c: Include insn-config.h and recog.h.
10272 (expand_vector_piecewise): Add defaulted ret_type argument,
10273 if non-NULL, use that in preference to type for the result type.
10274 (expand_vector_parallel): Formatting fix.
10275 (do_vec_conversion, do_vec_narrowing_conversion,
10276 expand_vector_conversion): New functions.
10277 (expand_vector_operations_1): Call expand_vector_conversion
10278 for VEC_CONVERT ifn calls.
10279 * internal-fn.def (VEC_CONVERT): New internal function.
10280 * internal-fn.c (expand_VEC_CONVERT): New function.
10281 * fold-const-call.c (fold_const_vec_convert): New function.
10282 (fold_const_call): Use it for CFN_VEC_CONVERT.
10283 * doc/extend.texi (__builtin_convertvector): Document.
10285 2019-01-07 Tom de Vries <tdevries@suse.de>
10287 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10288 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10289 vector_red_partition, vector_red_sym): New global variables.
10290 (nvptx_option_override): Initialize vector_red_sym.
10291 (nvptx_declare_function_name): Restore red_partition register.
10292 (nvptx_file_end): Emit code to declare the vector reduction variables.
10293 (nvptx_output_red_partition): New function.
10294 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10295 large vector reductions.
10296 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10297 (nvptx_init_builtins): Add VECTOR_ADDR.
10298 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10299 Handle nvptx_expand_shared_addr.
10300 (nvptx_get_shared_red_addr): Add vector argument and handle large
10302 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10304 (nvptx_goacc_reduction_init): Likewise.
10305 (nvptx_goacc_reduction_fini): Likewise.
10306 (nvptx_goacc_reduction_teardown): Likewise.
10307 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10308 init,fini,teardown}.
10309 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10310 (nvptx_set_current_function): Init vector_red_partition.
10311 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10312 (nvptx_red_partition): New insn.
10313 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10315 2019-01-07 Tom de Vries <tdevries@suse.de>
10318 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10321 2019-01-07 Tom de Vries <tdevries@suse.de>
10323 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10324 (nvptx_option_override): Init oacc_bcast_partition.
10325 (nvptx_init_oacc_workers): New function.
10326 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10327 (nvptx_needs_shared_bcast): New function.
10328 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10329 to propagate state.
10330 (nvptx_shared_propagate): Initialize vector bcast partition and
10331 synchronization state.
10332 (nvptx_single): Generalize to enable vectors to use shared-memory
10333 to propagate state.
10334 (nvptx_process_pars): Likewise.
10335 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10336 * config/nvptx/nvptx.h (struct machine_function): Add
10337 bcast_partition and sync_bar members.
10339 2019-01-07 Tom de Vries <tdevries@suse.de>
10341 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10342 (nvptx_apply_dim_limits): New function.
10343 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10346 2019-01-07 Tom de Vries <tdevries@suse.de>
10348 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10349 as late as possible.
10351 2019-01-07 Tom de Vries <tdevries@suse.de>
10353 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10354 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10355 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10356 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10357 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10359 2019-01-07 Tom de Vries <tdevries@suse.de>
10361 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10363 2019-01-07 Tom de Vries <tdevries@suse.de>
10365 * omp-offload.c (oacc_get_min_dim): New function.
10366 * omp-offload.h (oacc_get_min_dim): Declare.
10368 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10371 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10372 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10374 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10378 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10380 * ipa-inline.c (edge_badness): Use inlined_time instead of
10381 inline_summaries->get.
10383 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10385 * opts.c (enable_fdo_optimizations): Enable
10386 version-loops-for-strides, loop-interchange, unrol-and-jam
10387 and tree-loop-distribution.
10388 * invoke.texi: Document newly enabled options.
10390 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10392 * doc/invoke.texi (max-inline-insns-small): New parameters.
10393 * ipa-inline.c (want_early_inline_function_p): simplify.
10394 (want_inline_small_function_p): Fix pasto from previous patch;
10395 use max-inline-insns-small bound.
10396 * params.def (max-inline-insns-small): New param.
10397 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10398 variables correctly.
10400 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10402 * doc/invoke.texi: Document max-inline-insns-size,
10403 uninlined-function-insns, uninlined-function-time,
10404 uninlined-thunk-insns and uninlined-thunk-time.
10405 * params.def: Add max-inline-insns-size,
10406 uninlined-function-insns, uninlined-function-time,
10407 uninlined-thunk-insns and uninlined-thunk-time.
10408 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10410 * ipa-inline.c (can_inline_edge_by_limits_p,
10411 want_inline_small_function_p): Use new parameters.
10413 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10415 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10417 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10419 PR middle-end/82564
10421 * expr.c (expand_assignment): For calls returning VLA structures
10422 if to_rtx is not a MEM, force it into a stack temporary.
10425 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10426 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10427 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10428 subexpressions of both operands.
10429 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10430 subrtxes are CONSTANT_P.
10431 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10432 2018-11-09 changes.
10434 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10436 * params.def (hot-bb-count-ws-permille): Set to 990.
10438 2019-01-04 Martin Sebor <msebor@redhat.com>
10441 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10444 2019-01-04 Martin Sebor <msebor@redhat.com>
10447 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10449 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10451 * gdbinit.in: Turn off pagination for the skip commands, restore
10452 it to previous state afterwards.
10454 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10457 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10458 of GET_MODE (opN) as modes of the libcall arguments.
10460 2019-01-04 Jan Beulich <jbeulich@suse.com>
10462 * config/i386/sse.md
10463 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10464 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10465 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10466 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10467 avx512f_vmcmp<mode>3<round_saeonly_name>,
10468 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10469 avx512f_maskcmp<mode>3,
10470 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10471 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10472 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10473 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10474 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10475 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10476 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10477 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10478 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10479 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10480 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10481 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10482 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10483 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10484 avx512cd_maskb_vec_dup<mode>,
10485 avx512cd_maskw_vec_dup<mode>,
10486 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10487 avx512dq_vmfpclass<mode>,
10488 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10491 2019-01-03 Martin Sebor <msebor@redhat.com>
10493 PR tree-optimization/88659
10494 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10496 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10498 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10499 unaligned vsx and avoid lxvd2x/stxvd2x.
10500 (gen_lvx_v4si_move): New function.
10502 2019-01-03 Tom de Vries <tdevries@suse.de>
10504 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10505 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10507 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10509 2019-01-03 Tom de Vries <tdevries@suse.de>
10511 * config/nvptx/nvptx.c (struct offload_attrs): New.
10512 (populate_offload_attrs): New function. Factor mask extraction out of
10513 nvptx_reorg. Add extraction of dimensions.
10514 (nvptx_reorg): Use populate_offload_attrs.
10516 2019-01-03 Tom de Vries <tdevries@suse.de>
10518 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10519 cases for oacc_min_dims_p and routine_p. Add asserts for
10520 oacc_default_dims_p and offload_region_p.
10522 2019-01-03 Tom de Vries <tdevries@suse.de>
10524 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10525 factored out of ...
10526 (nvptx_goacc_validate_dims): ... here.
10528 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10530 PR tree-optimization/85574
10531 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10533 (struct ssa_equip_hash_traits): Declare.
10534 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10536 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10539 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10540 change it to qualified_type.
10542 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10544 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10545 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10547 2019-01-02 Martin Sebor <msebor@redhat.com>
10548 Jeff Law <law@redhat.com>
10550 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10551 (get_range_strlen_tree): Update appropriately.
10553 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10555 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10556 rather than set_range_info.
10557 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10558 maybe_set_strlen_range. Handle potentially boundary crossing
10559 cases more conservatively.
10560 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10561 Call set_strlen_range.
10562 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10564 PR middle-end/88663
10565 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10566 need the flexp argument.
10567 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10568 from calls to get_range_strlen. Update comments. Just update
10569 VAL for an unterminated const char array and let the reset of the
10570 code handle it normally. No longer try to set *flexp. Adjust
10572 (get_range_strlen): Update for the new get_range_strlen API.
10573 (get_maxval_strlen): Similarly.
10574 (gimple_fold_builtin_strlen): Handle update meaning of return value
10575 from get_range_strlen.
10576 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10577 get_range_strlen API.
10579 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10582 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10583 false at WPA time when body was removed.
10585 2019-01-02 Martin Liska <mliska@suse.cz>
10587 PR tree-optimization/88650
10588 * predict.c (set_even_probabilities): Calculate probability
10589 remainer only when really used.
10591 2019-01-02 Richard Biener <rguenther@suse.de>
10593 PR middle-end/88651
10594 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10595 widest_ints when mangling max_stmt_execution results.
10597 2019-01-02 Richard Biener <rguenther@suse.de>
10599 PR tree-optimization/88621
10600 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10601 bitfields when canoncalizing.
10603 2019-01-02 Richard Biener <rguenther@suse.de>
10606 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10607 cost of cheap SSE instruction.
10609 2019-01-02 Richard Biener <rguenther@suse.de>
10612 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10613 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10615 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10616 set after UIDs before splitting them.
10618 2019-01-01 Martin Sebor <msebor@redhat.com>
10619 Jeff Law <law@redhat.com>
10621 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10622 length is optimistic. If it is, then arrange to compute the
10623 conservative length as well.
10625 * gimple-fold.h (get_range_strlen): Update prototype.
10626 * builtins.c (check_access): Update call to get_range_strlen to use
10627 c_strlen_data pointer. Change various variable accesses to instead
10628 pull data from the c_strlen_data structure.
10629 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10630 * calls.c (maybe_warn_nonstring_arg): Likewise.
10631 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10632 minimum length if maximum lengh is unknown.
10633 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10634 that used c_strlen, it's no longer needed. Restructure slightly.
10635 (format_string): Set unlikely range appropriately.
10636 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10638 (get_range_strlen): Accept c_strlen_data pointer for external
10639 call sites as well. Pass through to call to internal get_range_strlen.
10640 Adjust minlen, maxlen and maxbound as needed.
10641 (get_maxval_strlen): Update comments.
10642 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10643 to use c_strlen_data pointer. Change variable accesses to instead
10644 use c_strlen_data data members.
10646 * gimple-fold.c (get_range_strlen): Update prototype.
10647 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10648 local variables. Use pdata to return information to caller.
10649 Update calls to get_range_strlen. Update pdata->maxbound.
10650 (get_range_strlen -- static version): Similarly.
10651 (get_range_strlen -- extern version): Update for internal
10652 get_range_strlen API change. Convert to external data format.
10653 (get_maxval_strlen): Similarly.
10655 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10657 * coverage.c (get_coverage_counts): Use current_function_decl.
10658 * profile.c (read_thunk_profile): New function.
10659 (branch_prob): Add THUNK parameter.
10660 * tree-profile.c (tree_profiling): Handle thunks.
10661 * value-prof.c (init_node_map): Handle thunks.
10662 * value-prof.h (branch_prob): Upate prototype.
10663 (read_thunk_profile): Declare.
10665 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10667 Update copyright years.
10669 * gcc.c (process_command): Update copyright notice dates.
10670 * gcov-dump.c (print_version): Ditto.
10671 * gcov.c (print_version): Ditto.
10672 * gcov-tool.c (print_version): Ditto.
10673 * gengtype.c (create_file): Ditto.
10674 * doc/cpp.texi: Bump @copying's copyright year.
10675 * doc/cppinternals.texi: Ditto.
10676 * doc/gcc.texi: Ditto.
10677 * doc/gccint.texi: Ditto.
10678 * doc/gcov.texi: Ditto.
10679 * doc/install.texi: Ditto.
10680 * doc/invoke.texi: Ditto.
10682 Copyright (C) 2019 Free Software Foundation, Inc.
10684 Copying and distribution of this file, with or without modification,
10685 are permitted in any medium without royalty provided the copyright
10686 notice and this notice are preserved.