1 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
3 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
4 (define_mode_attr sd): New.
5 (define_mode_attr s): New.
6 (define_mode_attr Ftrad): Delete.
7 (define_mode_attr Fvsx): Delete.
8 (define_mode_attr Fs): Delete.
9 (rest of file): Use the new mode attributes.
10 * config.rs6000/vsx.md: Use the new mode attributes.
12 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
14 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
17 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
19 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
20 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
21 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
26 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
27 C++ with strict ANSI requirements.
29 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
31 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
32 computations when step is 1.
34 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
36 * config/rs6000/constraints.md (define_register_constraint "wf"):
38 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
39 (rs6000_init_hard_regno_mode_ok): Adjust.
40 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
42 * config/rs6000/rs6000.md: Adjust.
43 * config/rs6000/vsx.md: Adjust.
44 * doc/md.texi (Machine Constraints): Adjust.
46 2019-06-04 Andrew Pinski <apinski@marvell.com>
48 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
51 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
53 * config/rs6000/constraints.md (define_register_constraint "wd"):
55 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
56 (rs6000_init_hard_regno_mode_ok): Adjust.
57 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
59 * config/rs6000/rs6000.md: Adjust.
60 * config/rs6000/vsx.md: Adjust.
61 * doc/md.texi (Machine Constraints): Adjust.
63 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
65 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
66 (rest of file): Adjust.
68 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
70 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
71 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
72 (vsx_splat_<mode>_reg): Adjust.
74 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
76 * config/rs6000/constraints.md (define_register_constraint "ws"):
78 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
79 (rs6000_init_hard_regno_mode_ok): Adjust.
80 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
82 * config/rs6000/rs6000.md: Adjust.
83 * config/rs6000/vsx.md: Adjust.
84 * doc/md.texi (Machine Constraints): Adjust.
86 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
88 * config/rs6000/constraints.md (define_register_constraint "wv"):
90 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
91 (rs6000_init_hard_regno_mode_ok): Adjust.
92 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
94 * config/rs6000/rs6000.md: Adjust.
95 * config/rs6000/vsx.md: Adjust.
96 * doc/md.texi (Machine Constraints): Adjust.
98 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
100 * config/rs6000/constraints.md (define_register_constraint "wi"):
102 (define_register_constraint "wt"): Delete.
103 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
104 (rs6000_init_hard_regno_mode_ok): Adjust.
105 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
106 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
107 * config/rs6000/rs6000.md: Adjust.
108 * config/rs6000/vsx.md: Adjust.
109 * doc/md.texi (Machine Constraints): Adjust.
111 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
113 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
115 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
116 default_elf_asm_output_external.
118 2019-06-04 Martin Liska <mliska@suse.cz>
120 * ipa-icf.c (INCLUDE_LIST): Remove.
121 (sem_item_optimizer::execute): Remove call to init_wpa.
122 * ipa-icf.h (init_wpa): Remove.
124 2019-06-04 Jakub Jelinek <jakub@redhat.com>
126 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
127 conditional on combined for simd.
128 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
130 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
131 constructs, don't remove lastprivate_conditional_map, but instead set
132 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
133 to parent construct temporaries.
134 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
135 like !ctx->lastprivate_conditional_map.
136 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
137 use up->outer context instead of up.
138 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
139 gimple_omp_for_combined_p.
140 (expand_omp_for_static_nochunk): Likewise.
141 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
142 probably moved over into expand_omp_for_generic rather than being copied
145 2019-06-04 Martin Liska <mliska@suse.cz>
147 * value-prof.c (dump_histogram_value): Fix typo.
148 (gimple_mod_subtract_transform): Likewise.
150 2019-06-04 Richard Biener <rguenther@suse.de>
153 * tree-chrec.c (chrec_contains_symbols): Add to visited.
154 (tree_contains_chrecs): Likewise.
155 (chrec_contains_symbols_defined_in_loop): Move here and avoid
156 exponential behaivor from ...
157 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
159 (expression_expensive_p): Avoid exponential behavior and compute
160 expanded size, rejecting any expansion.
161 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
162 (idx_contains_abnormal_ssa_name_p): Likewise.
163 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
164 (contains_abnormal_ssa_name_p): Simplify and use
165 walk_tree_without_duplicates.
167 2019-06-04 Richard Biener <rguenther@suse.de>
169 PR tree-optimization/90738
171 2019-06-03 Richard Biener <rguenther@suse.de>
173 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
174 full reference tree and record in ref->ref.
175 (vn_reference_lookup_3): Pass in original ref to
176 ao_ref_init_from_vn_reference.
177 (vn_reference_lookup): Likewise.
178 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
179 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
180 Handle non-decl bases in the original reference.
182 2019-06-04 Martin Liska <mliska@suse.cz>
184 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
185 number of references.
186 (sem_item_optimizer::do_congruence_step):
187 (sem_item_optimizer::worklist_push): Dump how references
189 (sem_item_optimizer::worklist_pop): Use heap.
190 (sem_item_optimizer::process_cong_reduction): Likewise.
191 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
193 2019-06-04 Martin Liska <mliska@suse.cz>
195 * ipa-icf.h (struct sem_usage_pair_hash): New.
196 (sem_usage_pair_hash::hash): Likewise.
197 (sem_usage_pair_hash::equal): Likewise.
198 (struct sem_usage_hash): Likewise.
199 * ipa-icf.c (sem_item::sem_item): Initialize
201 (sem_item::add_reference): Register a reference
202 in ref_map and not in target->usages.
203 (sem_item::setup): Remove initialization of
205 (sem_item::~sem_item): Remove usage of dead vectors.
206 (sem_item::dump): Remove dump of references.
207 (sem_item_optimizer::sem_item_optimizer): Initialize
209 (sem_item_optimizer::read_section): Remove useless
211 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
212 (sem_item_optimizer::build_graph): Pass m_references
214 (sem_item_optimizer::verify_classes): Remove usage of dead
216 (sem_item_optimizer::traverse_congruence_split): Return true
217 when a class is split.
218 (sem_item_optimizer::do_congruence_step_for_index): Use
219 hash_map for look up of (sem_item *, index). That brings
220 significant speed up.
221 (sem_item_optimizer::do_congruence_step): Return true
222 when a split is done.
223 (congruence_class::is_class_used): Use referenced_by_count.
225 2019-06-04 Alan Modra <amodra@gmail.com>
228 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
231 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
233 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
234 * config/rs6000/rs6000.c (direct_move_p): Adjust.
235 (rs6000_secondary_reload_simple_move): Adjust.
236 (rs6000_opt_masks): Neuter the "mfpgpr" option.
237 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
238 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
241 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
242 (floatunssi<mode>2_lfiwzx): Adjust.
243 (fix_trunc<mode>si2_stfiwx): Adjust.
244 (fixuns_trunc<mode>si2_stfiwx): Adjust.
245 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
246 (mfpgpr): Mark as deprecated.
247 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
248 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
249 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
251 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
253 * config/rs6000/constraints.md (define_register_constraint "wg"):
255 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
256 RS6000_CONSTRAINT_wg.
257 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
258 (rs6000_init_hard_regno_mode_ok): Adjust.
259 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
260 Delete "wg" alternatives.
261 * doc/md.texi (Machine Constraints): Adjust.
263 2019-06-03 Alan Modra <amodra@gmail.com>
265 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
266 (get_uncond_jump_length): Assert length less than INT_MAX and
269 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
272 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
274 (expand_builtin_nonlocal_goto): Likewise.
276 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
278 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
279 (aarch64_asm_output_external): Declare.
280 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
281 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
282 (aarch64_asm_output_alias): New.
283 (aarch64_asm_output_external): New.
284 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
285 (ASM_OUTPUT_EXTERNAL): Define.
287 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
288 * tree-vrp.h (value_range_base::nonzero_p): New.
289 (value_range_base::set_nonnull): Rename to...
290 (value_range_base::set_nonzero): ...this.
291 (value_range_base::set_null): Rename to...
292 (value_range_base::set_zero): ...this.
293 (value_range::set_nonnull): Remove.
294 (value_range::set_null): Remove.
295 * tree-vrp.c (range_is_null): Remove.
296 (range_is_nonnull): Remove.
297 (extract_range_from_binary_expr): Use value_range_base::*zero_p
298 instead of range_is_*null.
299 (extract_range_from_unary_expr): Same.
300 (value_range_base::set_nonnull): Rename to...
301 (value_range_base::set_nonzero): ...this.
302 (value_range::set_nonnull): Remove.
303 (value_range_base::set_null): Rename to...
304 (value_range_base::set_zero): ...this.
305 (value_range::set_null): Remove.
306 (extract_range_from_binary_expr): Rename set_*null uses to
308 (extract_range_from_unary_expr): Same.
309 (union_helper): Same.
310 * vr-values.c (get_value_range): Use set_*zero instead of
312 (vr_values::extract_range_from_binary_expr): Same.
313 (vr_values::extract_range_basic): Same.
315 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
318 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
320 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
322 * config/aarch64/iterators.md (MAX_OPP): New code attr.
323 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
324 (aarch64_<su>abd<mode>_3): ... This.
325 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
327 2019-06-03 Richard Biener <rguenther@suse.de>
329 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
330 full reference tree and record in ref->ref.
331 (vn_reference_lookup_3): Pass in original ref to
332 ao_ref_init_from_vn_reference.
333 (vn_reference_lookup): Likewise.
334 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
335 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
336 Handle non-decl bases in the original reference.
338 2019-06-03 Martin Liska <mliska@suse.cz>
340 * doc/generic.texi: Remove Java Trees.
342 2019-06-03 Martin Liska <mliska@suse.cz>
344 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
345 returns 0 when operands are equal.
347 2019-06-03 Richard Biener <rguenther@suse.de>
349 PR tree-optimization/90716
350 * tree-loop-distribution.c (destroy_loop): Process blocks in
353 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
356 * vector-builder.h (vector_builder::count_dups): New method.
357 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
359 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
360 (vec_init<mode><Vel>): New pattern.
361 * config/aarch64/aarch64.c (emit_insr): New function.
362 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
363 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
364 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
365 (aarch64_sve_expand_vector_init): Define two overloaded functions.
367 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
369 PR tree-optimization/90681
370 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
371 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
372 special case for SLP, but fail on non-groupped loads.
374 2019-06-03 Martin Liska <mliska@suse.cz>
376 * cfg.c (debug): Use TDF_DETAILS for debug and
377 print edge info only once.
379 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
382 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
384 2019-06-01 Martin Sebor <msebor@redhat.com>
387 * tree-pretty-print.c (dump_generic_node): Add parentheses.
389 2019-05-31 Jan Hubicka <jh@suse.cz>
391 * alias.c: Include ipa-utils.h.
392 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
393 * ipa-devirt.c (prevailing_odr_type): New.
394 * ipa-utils.h (previaling_odr_type): Declare.
396 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
397 Hongtao Liu <hongtao.liu@intel.com>
400 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
401 NOTE_INSN_DELETED_LABEL check.
403 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
404 Robert Suchanek <robert.suchanek@mips.com>
406 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
407 and 3rd operands of the fmadd/fmsub/maddv builtin.
409 2019-05-31 Jakub Jelinek <jakub@redhat.com>
411 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
412 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
413 on OMP_SIMD if not nested inside of worksharing loop that also has
414 lastprivate conditional clause for the same decl.
415 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
416 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
418 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
420 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
422 (lower_lastprivate_clauses): Likewise.
423 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
424 calling lower_rec_input_clauses.
425 (lower_omp_for): Likewise.
426 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
427 clause on simd construct.
428 * omp-expand.c (expand_omp_simd): Initialize cond_var if
429 OMP_CLAUSE__CONDTEMP_ clause is present.
431 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
434 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
437 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
438 TEX_D32, TEX_D64 or TEX_D128.
440 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
442 * match.pd (~(vec?cst1:cst2)): New transformation.
444 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
446 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
447 ((size_t)(A /[ex] B) CMP C): New transformation.
449 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
451 * doc/md.texi: Document define_insn_and_rewrite.
452 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
453 * gensupport.c (queue_elem): Update comment.
454 (replace_operands_with_dups): New function.
455 (gen_rewrite_sequence): Likewise.
456 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
457 * read-rtl.c (apply_subst_iterator): Likewise.
458 (add_condition_to_rtx, named_rtx_p): Likewise.
459 (rtx_reader::read_rtx_operand): Likewise.
460 * config/aarch64/aarch64-sve.md
461 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
462 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
463 define_insn_and_rewrite.
464 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
465 Remove separate define_split.
467 2019-05-31 Jan Hubicka <jh@suse.cz>
469 * tree-ssa-alias.c (type_has_components_p): New function.
470 (aliasing_component_refs_p): Use it.
472 2019-05-31 Martin Liska <mliska@suse.cz>
474 * gdbhooks.py: Add const_tree to TreePrinter.
476 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
479 * common.opt (feliminate-unused-debug-symbols): Enable by default.
480 * doc/invoke.texi (Debugging Options): Document new default of
481 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
483 2019-05-31 Jakub Jelinek <jakub@redhat.com>
485 PR tree-optimization/90671
486 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
487 template_block used to be empty on the first call, don't use
488 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
489 seq with bb_seq and set it with set_bb_seq.
491 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
493 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
495 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
496 Michael Meissner <meissner@linux.ibm.com>
498 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
499 (prefixed_mem_operand): Likewise.
500 (non_prefixed_mem_operand): Likewise.
501 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
503 * config/rs6000/rs6000.c (print_operand_address): Handle
504 PC-relative addresses.
505 (mode_supports_prefixed_address_p): New function.
506 (rs6000_prefixed_address): New function.
507 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
508 (SYMBOL_REF_PCREL_P): Likewise.
510 2019-05-30 Jakub Jelinek <jakub@redhat.com>
512 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
513 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
514 (gimplify_omp_for): If worksharing loop with lastprivate conditional
515 is nested inside of parallel region, add _condtemp_ clause to both.
516 * tree-nested.c (convert_nonlocal_omp_clauses,
517 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
519 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
521 * omp-general.c (omp_extract_for_data): Compute it.
522 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
523 (lower_rec_input_clauses): Likewise.
524 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
525 clause is already present, just add one further one after it.
526 (lower_lastprivate_clauses): Handle cond_ptr with array type.
527 (lower_send_shared_vars): Clear _condtemp_ vars.
528 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
529 or section or taskgroup.
530 * omp-expand.c (determine_parallel_type): Disallow combining only if
531 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
532 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
533 (expand_omp_for_generic, expand_omp_for_static_nochunk,
534 expand_omp_for_static_chunk, expand_omp_for): Use
535 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
536 determine if a special set of API routines are needed and if condtemp
537 needs to be initialized, while always initialize cond_var if
538 fd->lastprivate_conditional is non-zero.
540 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
541 Michael Meissner <meissner@linux.ibm.com>
543 * config/rs6000/constraints.md (eI): New constraint.
544 * config/rs6000/predicates.md (cint34_operand): New predicate.
545 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
546 (SIGNED_34BIT_OFFSET_P): Likewise.
547 * doc/md.texi (eI): Document constraint.
549 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
551 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
553 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
554 Michael Meissner <meissner@linux.ibm.com>
556 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
557 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
558 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
559 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
560 (OTHER_FUTURE_MASKS): Likewise.
561 (POWERPC_MASKS): Likewise.
562 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
563 specified without -mprefixed-addr or -mcpu=future. Error if
564 -mprefixed-addr is specified without -mcpu=future.
565 (rs6000_opt_masks): Add entry for prefixed-addr.
566 * rs6000.opt (mprefixed-addr): New option.
568 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
570 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
571 cfun->is_thunk check.
573 2019-05-30 Jakub Jelinek <jakub@redhat.com>
575 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
578 2019-05-30 Martin Liska <mliska@suse.cz>
580 * gdbinit.in: Fix 'ptc' command. Add trt
581 that prints TREE_TYPE($).
583 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
584 Alan Modra <amodra@gmail.com>
586 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
588 (rs6000_indirect_call_template_1): ...and here.
589 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
590 plt16_ha, plt16_lo, mtctr indirect calls. Use
592 (rs6000_decl_ok_for_sibcall): New function.
593 (rs6000_function_ok_for_sibcall): Refactor.
594 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
595 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
596 when pcrel. Reorganize.
597 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
598 * rs6000.h (rs6000_pltseq_enum): New enum.
599 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
600 (*pltseq_tocsave): Use rs6000_pltseq_enum.
601 (*pltseq_plt16_ha): Likewise.
602 (*pltseq_plt16_lo): Likewise.
603 (*pltseq_mtctr): Likewise.
604 (*pltseq_plt_pcrel): New insn.
605 (*call_local_aix): Handle @notoc calls.
606 (*call_value_local_aix): Likewise.
607 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
608 (*call_value_nonlocal_aix): Likewise.
609 (*call_indirect_pcrel): New insn.
610 (*call_value_indirect_pcrel): Likewise.
613 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
615 * config/i386/sse.md (*save_multiple<mode>): Rename from
617 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
618 (*restore_multiple_and_return<mode>): Rename from
619 restore_multiple_and_return<mode>.
620 (*restore_multiple_leave_return<mode>): Rename from
621 restore_multiple_leave_return<mode>.
623 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
625 * config.gcc (rx-*-linux*): New target.
626 * config/rx/elf.opt: New file.
627 * config/rx/linux.h: Likewise.
628 * config/rx/t-linux: Likewise.
629 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
631 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
632 (ASM_APP_OFF): Likewise.
633 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
636 2019-05-29 Jan Hubicka <jh@suse.cz>
638 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
639 variants are pointer equivalent.
641 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
643 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
644 * config/aarch64/aarch64-sve2.md: New file.
645 (<u>avg<mode>3_floor): New pattern.
646 (<u>avg<mode>3_ceil): Likewise.
647 (*<sur>h<addsub><mode>): Likewise.
648 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
649 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
651 2019-05-29 Jakub Jelinek <jakub@redhat.com>
654 * optc-save-gen.awk: In cl_optimization_print, use correct condition
655 for var_opt_string printing. In cl_optimization_print_diff, print
656 (null) instead of invoking undefined behavior if one of the
657 var_opt_string pointers is NULL and use && instead of first || in the
658 guarding condition. For var_target_other options, handle const char *
659 target variables similarly to const char * optimize node variables.
661 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
663 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
664 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
665 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
666 Add autib1716 and pacib1716 initialisation.
667 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
668 for autib1716 and pacib1716.
669 * config/aarch64/aarch64-protos.h (aarch64_key_type,
670 aarch64_post_cfi_startproc): Define.
671 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
672 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
673 aarch64_handle_pac_ret_protection): Set default sign key to A.
674 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
675 aarch64_expand_prologue): Add check for b-key.
676 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
677 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
678 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
679 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
680 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
681 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
682 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
683 * config/aarch64/aarch64.md (do_return): Add check for b-key.
684 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
685 pauth_hint_num_a with pauth_hint_num.
686 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
687 pauth_hint_num_a with pauth_hint_num.
688 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
689 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
690 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
691 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
692 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
693 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
694 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
695 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
696 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
697 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
698 UNSPEC_AUTIA1716 respectively.
699 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
700 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
701 * doc/invoke.texi (-mbranch-protection): Add b-key type.
702 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
703 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
705 2019-05-29 Jakub Jelinek <jakub@redhat.com>
707 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
708 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
709 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
710 explicit clause on combined parallel into implicit shared clause.
711 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
712 and firstprivate if the decl has one too from combined parallel to
713 the worksharing construct.
715 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
716 Michael Meissner <meissner@linux.ibm.com>
718 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
720 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
722 * rtl.h (LABEL_REF_P): New #define.
724 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
726 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
728 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
730 * internal-fn.c: Marked mask_load_direct as vectorizable.
731 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
732 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
733 combined even if masks different with allow_slp_p param.
734 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
735 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
736 dissolve SLP-only vectorizable groups when SLP has been discarded.
737 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
738 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
740 (vect_build_slp_tree_1): Fixed comment typo.
741 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
742 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
744 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
746 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
748 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
750 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
751 Remove obsolete use_thunk reference.
752 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
753 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
754 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
755 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
756 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
757 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
758 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
759 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
760 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
762 2019-05-28 Nathan Sidwell <nathan@acm.org>
764 * tree.h (IDENTIFIER_ANON_P): New.
765 (anon_aggrname_format, anon_aggname_p): Don't declare.
766 (make_anon_name): Declare.
767 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
768 (hash_tree): Likewise.
769 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
770 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
771 (anon_cnt, make_anon_name): New.
773 2019-05-28 Martin Liska <mliska@suse.cz>
776 * opts-global.c (decode_options): Print help for all
777 help_option_arguments.
778 * opts.c (print_help): Add new argument.
779 (common_handle_option): Remember all values into
780 help_option_arguments.
781 * opts.h (print_help): Add new argument.
783 2019-05-28 Martin Liska <mliska@suse.cz>
786 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
787 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
788 (func_checker::compare_bb): Call compare_loops.
790 2019-05-27 Jakub Jelinek <jakub@redhat.com>
792 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
793 on sections construct.
794 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
796 (lower_omp_sections): Handle lastprivate conditional.
797 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
798 lastprivate_conditional_map.
799 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
801 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
802 critical, taskgroup and section regions when looking for a region
803 with non-NULL lastprivate_conditional_map.
805 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
807 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
808 (*ix86_gen_sub3): Ditto.
809 (*ix86_gen_sub3_carry): Ditto.
810 (*ix86_gen_one_cmpl2): Ditto.
811 (*ix86_gen_andsp): Ditto.
812 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
813 (gen_and2_insn): New static function.
814 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
815 Use gen_add3_insn instead of ix86_gen_add3.
816 (ix86_expand_split_stack_prologue): Use gen_add2_insn
817 instead of ix86_gen_add3.
818 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
819 Use gen_sub3_insn instead of ix86_gen_sub3.
820 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
821 instead of ix86_gen_add3.
822 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
823 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
824 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
825 * config/i386/i386-options.c (ix86_option_override_internal):
826 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
827 ix86_gen_one_cmpl2 and ix86_gen_andsp.
829 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
831 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
832 and DW_OP_GNU_const_index opcodes.
834 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.h (STACK_SIZE_MODE): Define.
838 2019-05-27 Richard Biener <rguenther@suse.de>
840 PR tree-optimization/90637
841 * tree-ssa-sink.c (statement_sink_location): Honor the
842 computed sink location for single-uses.
844 2019-05-27 Richard Biener <rguenther@suse.de>
847 * match.pd (vec_perm): Avoid clobbering op0 when not generating
850 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
852 * config/i386/i386.md (@sub<mode>3_carry): Rename
853 from sub<mode>3_carry.
854 (@leave_<mode>): New expander.
855 (*leave): Rename from leave.
856 (*leave_rex64): Rename from leave_rex64.
857 (@monitorx_<mode>): Rename from monitorx_<mode>.
858 (@clzero_<mode>): Rename from clzero_<mode>.
859 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
860 from sse3_monitor_<mode>.
861 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
862 (*ix86_gen_leave): Ditto.
863 (*ix86_gen_monitor): Ditto.
864 (*ix86_gen_monitorx): Ditto.
865 (*ix86_gen_clzero): Ditto.
866 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
867 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
868 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
869 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
870 Use gen_sse3_monitor instead of ix86_gen_monitor.
871 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
872 instead of ix86_gen_monitorx.
873 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
874 instead of ix86_gen_clzero.
875 * config/i386/i386-options.c (ix86_option_override_internal):
876 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
877 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
879 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
881 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
882 Rename from tls_global_dynamic_64_<mode>.
883 (@tls_local_dynamic_base_64_<mode>): Rename from
884 tls_local_dynamic_base_64_<mode>.
885 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
886 Remove indirect function.
887 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
888 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
889 instead of ix86_gen_tls_global_dynamic_64.
890 Use gen_tls_local_dynamic_base_64 instead of
891 ix86_gen_tls_local_dynamic_base_64.
892 * config/i386/i386-options.c (ix86_option_override_internal):
893 Do not initialize ix86_gen_tls_global_dynamic_64 and
894 ix86_gen_tls_local_dynamic_base_64.
896 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
898 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
899 Rename from pro_epilogue_adjust_stack_<mode>_add.
900 (@pro_epilogue_adjust_stack_sub_<mode>)
901 Rename from pro_epilogue_adjust_stack_<mode>_sub.
902 (@allocate_stack_worker_probe_<mode>):
903 Rename from allocate_stack_worker_probe_<mode>.
904 (allocate_stack): Use gen_allocate_stack_worker_probe.
905 (probe_stack): Use gen_probe_stack_1.
906 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
907 (@adjust_stack_and_probe_<mode>): Rename from
908 adjust_stack_and_probe<mode>.
909 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
910 (stack_protect_set): Use gen_stack_protect_set_1.
911 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
912 (stack_protect_test): Use gen_stack_protect_test_1.
913 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
914 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
915 Remove indirect function.
916 (*ix86_gen_adjust_stack_and_probe): Ditto.
917 (*ix86_gen_probe_stack_range): Ditto.
918 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
919 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
920 (ix86_adjust_stack_and_probe_stack_clash): Use
921 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
922 (ix86_adjust_stack_and_probe): Ditto.
923 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
924 of ix86_gen_probe_stack_range.
925 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
926 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
927 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
928 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
929 CODE_FOR_stack_protect_test_{si,di}.
930 * config/i386/i386-options.c (ix86_option_override_internal):
931 Do not initialize ix86_gen_allocate_stack_worker,
932 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
934 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
936 * doc/invoke.texi (Link Options): Many editorial changes around
939 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
941 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
942 pre-Solaris 11 referene and most Studio compiler details.
944 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
947 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
948 DImode to SImode in floating-point registers on 64-bit target.
949 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
950 register_operand in xmpyu patterns.
952 2019-05-24 Jakub Jelinek <jakub@redhat.com>
954 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
955 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
956 OMP_CLAUSE__REDUCTEMP_.
957 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
958 OMP_CLAUSE__CONDTEMP_.
959 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
960 * tree-pretty-print.c (dump_omp_clause): Likewise.
961 * tree-nested.c (convert_nonlocal_omp_clauses,
962 convert_local_omp_clauses): Likewise.
963 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
964 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
965 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
967 (gimplify_omp_for): Warn and disable conditional modifier from
968 lastprivate on loop iterators.
969 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
971 * omp-general.c (omp_extract_for_data): Initialize it.
972 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
974 (delete_omp_context): Delete it.
975 (lower_lastprivate_conditional_clauses): New function.
976 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
977 handle lastprivate conditional clauses.
978 (lower_reduction_clauses): Add CLIST argument, emit it into
979 the critical section if any.
980 (lower_omp_sections): Adjust lower_lastprivate_clauses and
981 lower_reduction_clauses callers.
982 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
983 to lower_lastprivate_clauses.
984 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
985 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
986 clist into a critical section if not emitted there already by
987 lower_reduction_clauses.
988 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
990 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
991 conditional variables.
992 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
994 (expand_omp_for_generic, expand_omp_for_static_nochunk,
995 expand_omp_for_static_chunk): Handle lastprivate conditional.
996 (expand_omp_for): Handle fd.lastprivate_conditional like
999 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1001 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1002 kernel does not exit cleanly.
1003 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1005 2019-05-24 Jason Merrill <jason@redhat.com>
1008 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1010 2019-05-24 Richard Biener <rguenther@suse.de>
1013 * tree-loop-distribution.c (struct partition): Add location
1015 (partition_alloc): Initialize all fields.
1016 (generate_memset_builtin): Use the location recorded in the
1017 partition for the generated call.
1018 (generate_memcpy_builtin): Likewise.
1019 (classify_partition): Record the location of a single store
1020 as location for the partition.
1022 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1024 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1027 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1030 * common/config/aarch64/aarch64-common.c
1031 (aarch64_rewrite_selected_cpu): Change local temporary variable
1032 type from unsigned long to uint64_t.
1033 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1034 aarch64_get_extension_string_for_isa_flags): Change declaration to
1035 match new definition by replacing unsigned long with uint64_t.
1037 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1040 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1041 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1042 Handle stack_protect_test_<mode> codegen similarly to corresponding
1045 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1047 * config/i386/darwin.h: Reject -mfentry*.
1048 * doc/sourcebuild.texi: Document mfentry target support.
1050 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1052 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1053 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1054 false for PC-relative functions.
1055 (rs6000_output_function_prologue): Change called function name to
1056 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1057 name,1" for PC-relative functions.
1058 (rs6000_elf_declare_function_name): Change called function name to
1059 rs6000_global_entry_point_prologue_needed_p.
1061 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1064 * config/i386/i386.c (gen_rtx_cost):
1065 Use ix86_tune_cost instead of ix86_cost.
1067 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1068 Michael Meissner <meissner@linux.ibm.com>
1069 Segher Boessenkool <segher@kernel.crashing.org>
1071 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1073 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1074 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1075 (rs6000_fndecl_pcrel_p): Likewise.
1076 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1077 error if -mpcrel is requested without -mcpu=future.
1078 (rs6000_opt_masks): Add entry for pcrel.
1079 (rs6000_fndecl_pcrel_p): New function.
1080 (rs6000_pcrel_p): Likewise.
1081 * config/rs6000/rs6000.opt (mpcrel): New option.
1082 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1084 2019-05-23 Jan Hubicka <jh@suse.cz>
1085 Martin Liska <mliska@suse.cz>
1087 PR tree-optimization/90576
1088 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1090 (aliasing_component_refs_p): Fix three way size compare conditional;
1091 give up earlier in case we can not decide on equivalence.
1093 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1094 Michael Meissner <meissner@linux.ibm.com>
1095 Segher Boessenkool <segher@kernel.crashing.org>
1097 * config.gcc: Add future cpu.
1098 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1099 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1101 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1102 (RS6000_CPU): New instantiation for future cpu.
1103 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1105 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1106 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1107 * config/rs6000/rs6000-tables.opt: Regenerate.
1108 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1109 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1110 (rs6000_machine_from_flags): Handle future cpu.
1111 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1112 PROCESSOR_POWER9 for now.
1113 (rs6000_adjust_cost): Likewise.
1114 (rs6000_issue_rate): Likewise.
1115 (rs6000_register_move_cost): Likewise.
1116 (rs6000_opt_masks): Add entry for future.
1117 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1118 (MASK_FUTURE): New #define.
1119 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1120 * config/rs6000/rs6000.opt (mfuture): New target option.
1121 * doc/invoke.texi (mcpu): Add future cpu.
1123 2019-05-23 Martin Liska <mliska@suse.cz>
1126 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1127 operation points to a temporary (pointed via tree_to_wide_ref)
1128 that is out of scope after the &.
1130 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1133 * doc/extend.texi (Function Names): Add missing word.
1135 2019-05-23 Richard Biener <rguenther@suse.de>
1137 PR tree-optimization/88440
1138 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1140 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1142 (generate_memcpy_builtin): Likewise.
1143 (distribute_loop): Pass in whether to only distribute patterns.
1144 (prepare_perfect_loop_nest): Also allow size optimization.
1145 (pass_loop_distribution::execute): When optimizing a loop
1146 nest for size allow pattern replacement.
1148 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1151 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1154 2019-05-23 Martin Liska <mliska@suse.cz>
1157 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1158 expression similarly to gimplify_decl_expr.
1160 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1162 * cse.c (cse_dump_path): s/dump_file/f.
1164 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1167 * diagnostic-format-json.cc: Include "selftest.h".
1168 (json_from_expanded_location): Only add "file" key for non-NULL
1170 (json_from_location_range): Don't add "start" and "finish"
1171 children if they are UNKNOWN_LOCATION.
1172 (selftest::test_unknown_location): New selftest.
1173 (selftest::test_bad_endpoints): New selftest.
1174 (selftest::diagnostic_format_json_cc_tests): New function.
1175 * json.cc (json::object::get): New function.
1176 (selftest::test_object_get): New selftest.
1177 (selftest::json_cc_tests): Call it.
1178 * json.h (json::object::get): New decl.
1179 * selftest-run-tests.c (selftest::run_tests): Call
1180 selftest::diagnostic_format_json_cc_tests.
1181 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1184 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1185 Andrew Stubbs <amd@codesourcery.com>
1187 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1188 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1189 (kernel): Rename to...
1190 (main_kernel): ... this.
1191 (load_image): Load _init_array and _fini_array kernels.
1192 (run): Add argument for kernel to run.
1193 (main): Run init_array_kernel before main_kernel, and
1194 fini_array_kernel after.
1195 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1196 amdgpu_hsa_kernel attribute on functions.
1197 (gcn_disable_constructors): Delete.
1198 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1199 * config/gcn/crt0.c (size_t): Define.
1200 (_init_array, _fini_array): New.
1201 (__preinit_array_start, __preinit_array_end,
1202 __init_array_start, __init_array_end,
1203 __fini_array_start, __fini_array_end): Declare weak references.
1205 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1207 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1209 2019-05-22 Jason Merrill <jason@redhat.com>
1211 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1213 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1216 * config/i386/i386-options.c (ix86_init_machine_status): Set
1217 stack_frame_required to true.
1218 * config/i386/i386.c (ix86_get_frame_size): New function.
1219 (ix86_frame_pointer_required): Replace get_frame_size with
1220 ix86_get_frame_size.
1221 (ix86_compute_frame_layout): Likewise.
1222 (ix86_find_max_used_stack_alignment): Changed to void. Set
1223 stack_frame_required.
1224 (ix86_finalize_stack_frame_flags): Always call
1225 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1226 ix86_get_frame_size.
1227 * config/i386/i386.h (machine_function): Add stack_frame_required.
1229 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1231 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1233 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1235 * common/config/aarch64/aarch64-common.c
1236 (struct aarch64_option_extension, struct processor_name_to_arch,
1237 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1238 aarch64_contains_opt,
1239 aarch64_get_extension_string_for_isa_flags): Change type of
1240 variables storing flags to uint64_t.
1241 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1242 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1243 * config/aarch64/aarch64.c (struct processor,
1244 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1245 aarch64_validate_march, aarch64_override_options,
1246 aarch64_option_print, aarch64_handle_attr_isa_flags,
1247 aarch64_declare_function_name, aarch64_start_file): Make flag
1249 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1250 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1251 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1252 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1253 * config/aarch64/driver-aarch64.c
1254 (struct aarch64_arch_extension, struct aarch64_core_data,
1255 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1256 flag variables uint64_t.
1257 * doc/invoke.texi: Add documentation for new arguments.
1259 2019-05-22 Richard Biener <rguenther@suse.de>
1261 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1263 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1265 2019-05-22 Martin Liska <mliska@suse.cz>
1268 * doc/extend.texi: Document the change.
1270 2019-05-22 Richard Biener <rguenther@suse.de>
1272 PR tree-optimization/90450
1273 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1274 (mem_ref_hasher::equal): Check it.
1275 (mem_ref_alloc): Initialize it.
1276 (gather_mem_refs_stmt): Set it.
1278 2019-05-22 Richard Biener <rguenther@suse.de>
1280 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1282 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1285 2019-05-22 Alan Modra <amodra@gmail.com>
1287 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1288 (ASM_CPU_SPEC): Conditionally add -many.
1289 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1290 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1291 (rs6000_file_start): ..extracted from here, and modified to
1293 (rs6000_output_function_prologue): Emit .machine as necessary.
1294 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1296 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1297 added by check_vect_support_and_set_flags.
1298 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1299 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1301 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1304 * ira-lives.c (process_bb_node_lives): Consider defs
1305 for a call insn to be die before the call, not after.
1307 * function.c (assign_parm_setup_block): Raise alignment of
1308 stacked parameter only for STRICT_ALIGNMENT targets.
1310 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1312 * config/rs6000/constraints.md (define_register_constraint "wz"):
1314 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1315 RS6000_CONSTRAINT_wz.
1316 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1317 (rs6000_init_hard_regno_mode_ok): Adjust.
1318 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1319 * doc/md.texi (Machine Constraints): Adjust.
1321 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1323 * config/rs6000/constraints.md (define_register_constraint "wl"):
1325 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1326 RS6000_CONSTRAINT_wl.
1327 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1328 (rs6000_init_hard_regno_mode_ok): Adjust.
1329 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1330 * doc/md.texi (Machine Constraints): Adjust.
1332 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1334 * config/rs6000/constraints.md (define_register_constraint "wm"):
1336 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1337 RS6000_CONSTRAINT_wm.
1338 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1339 (rs6000_init_hard_regno_mode_ok): Adjust.
1340 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1341 * doc/md.texi (Machine Constraints): Adjust.
1343 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1345 * config/rs6000/constraints.md (define_register_constraint "wk"):
1347 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1348 RS6000_CONSTRAINT_wk.
1349 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1350 (rs6000_init_hard_regno_mode_ok): Adjust.
1351 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1352 * doc/md.texi (Machine Constraints): Adjust.
1354 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1356 * config/rs6000/constraints.md (define_register_constraint "wj"):
1358 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1359 RS6000_CONSTRAINT_wj.
1360 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1361 (rs6000_init_hard_regno_mode_ok): Adjust.
1362 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1364 * config/rs6000/vsx.md: Ditto.
1365 * doc/md.texi (Machine Constraints): Adjust.
1367 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1369 * config/rs6000/constraints.md (define_register_constraint "wh"):
1371 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1372 RS6000_CONSTRAINT_wh.
1373 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1374 (rs6000_init_hard_regno_mode_ok): Adjust.
1375 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1376 * doc/md.texi (Machine Constraints): Adjust.
1378 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1381 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1382 Avoid calling gen_lowpart with CONST operand.
1384 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1386 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1387 field template_last_to_copy.
1388 (ssa_create_duplicates): Set it, and use it. Attempt to
1389 preserve more debug stmts.
1391 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1393 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1394 (signbit<mode>2): New expander
1396 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1399 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1400 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1402 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1404 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1405 %ebx and %ecx bafore calling cpuid with leaf 1 or
1406 non-constant leaf argument.
1408 2019-05-21 Alan Modra <amodra@gmail.com>
1411 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1412 power9 direct move cost.
1413 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1414 Correct comments and rename functions to suit parameters.
1416 2019-05-21 Richard Biener <rguenther@suse.de>
1419 * fold-const.c (fold_read_from_vector): New function.
1420 * fold-const.h (fold_read_from_vector): Declare.
1421 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1422 single-element insert permutations. Canonicalize selector
1423 further and fix issue with last commit.
1425 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1427 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1428 parameter with default value false to declaration.
1429 (split_edges_for_insertion): New inline function. Wrapper for
1430 split_critical_edges with for_edge_insertion_p = true.
1431 * tree-cfg.c (split_critical_edges): Don't split non-critical
1432 edges if for_edge_insertion_p is false. Fix whitespace.
1433 * tree-ssa-pre.c (pass_pre::execute): Call
1434 split_edges_for_insertion instead of split_critical_edges.
1435 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1436 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1437 (pass_data_sink_code): Update function name in the comment.
1439 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1441 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1442 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1443 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1444 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1447 2019-05-21 Martin Liska <mliska@suse.cz>
1449 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1451 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1452 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1454 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1456 (rs6000_function_arg): Likewise.
1457 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1458 (rs6000_expand_ternop_builtin): Use interval syntax.
1459 (get_element_number): Likewise.
1460 (altivec_expand_builtin): Likewise.
1461 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1465 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1469 * function.h (struct function): Add calls_eh_return member.
1470 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1471 gimplifying __builtin_eh_return call.
1472 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1474 (expand_call_inline): Or in src_cfun->calls_eh_return into
1475 dst_cfun->calls_eh_return.
1476 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1477 cfun->calls_eh_return.
1478 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1479 * lto-streamer-out.c (output_struct_function_base): Write
1482 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1484 PR rtl-optimization/43147
1485 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1486 IX86_BUILTIN_SHUFPD.
1488 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1490 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1491 (refs_may_alias_p_1): ... here; update stats.
1492 (refs_may_alias_p): Do not update stats here.
1494 2019-05-20 Richard Biener <rguenther@suse.de>
1496 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1497 doesn't produce pointers.
1498 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1499 the first operand points to.
1501 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1503 * tree-ssa-alias.c (compare_sizes): New function.
1504 (sompare_type_sizes): New function
1505 (aliasing_component_refs_p): Use it.
1506 (indirect_ref_may_alias_decl_p): Likewise.
1508 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1510 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1512 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1514 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1515 (LIBLSAN_EARLY_SPEC): Likewise.
1516 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1518 2019-05-20 Martin Liska <mliska@suse.cz>
1520 * config/i386/i386.c (ix86_libc_has_fast_function):
1521 Add ATTRIBUTE_UNUSED for the argument.
1523 2019-05-20 Richard Biener <rguenther@suse.de>
1525 * gimple-match-head.c: Include vec-perm-indices.h.
1526 * generic-match-head.c: Likewise.
1527 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1529 * fold-const.c (fold_vec_perm): Export.
1530 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1531 (match.pd): ...here.
1533 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1535 * cfgloop.h (struct loop): Add simdlen member.
1536 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1537 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1538 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1539 as new argument to autovectorize_vector_sizes target hook. If
1540 loop->simdlen, pick up vector size where the vectorization factor
1541 is equal to loop->simd, and if there is none, fall back to the first
1543 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1545 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1546 * omp-general.c (omp_max_vf): Likewise.
1547 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1548 * tree-vect-slp.c (vect_slp_bb): Likewise.
1549 * target.def (autovectorize_vector_sizes): Add ALL argument and
1551 * doc/tm.texi: Adjust documentation.
1552 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1553 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1554 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1556 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1557 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1558 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1559 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1560 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1561 preferred vector size is not 512-bit or 256-bit, just put those
1562 unpreferred ones last.
1564 2019-05-20 Martin Liska <mliska@suse.cz>
1566 * targhooks.c (default_libc_has_fast_function): New function.
1567 * targhooks.h (default_libc_has_fast_function): Likewise.
1569 2019-05-20 Martin Liska <mliska@suse.cz>
1572 * builtins.c (expand_builtin_memory_copy_args): When having a
1573 target with fast mempcpy implementation do now use memcpy.
1574 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1575 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1576 * doc/tm.texi: Likewise.
1577 * doc/tm.texi.in: Likewise.
1579 * expr.c (emit_block_move_hints): Add 2 new arguments.
1580 * expr.h (emit_block_move_hints): Bail out when libcall
1581 to memcpy would be used.
1583 2019-05-20 Martin Liska <mliska@suse.cz>
1585 * profile-count.c: Add vertical spacing in order
1586 to separate functions.
1587 * profile-count.h: Likewise.
1589 2019-05-20 Martin Liska <mliska@suse.cz>
1591 * profile-count.h: Do not use full qualified
1593 * profile-count.c (profile_count::to_frequency): Likewise.
1595 2019-05-20 Martin Liska <mliska@suse.cz>
1597 * profile-count.h (enum profile_quality): Use capital letters
1598 for enum value names. Use the adjusted names.
1599 * profile-count.c: Use the adjusted names.
1601 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1603 * config/rs6000/constraints.md (define_register_constraint "wH"):
1605 (define_register_constraint "wI"): Delete.
1606 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1607 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1608 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1609 (rs6000_init_hard_regno_mode_ok): Adjust.
1610 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1611 resp. "d", or with "wa" as appropriate, all with "p8v".
1612 * config/rs6000/vsx.md: Ditto.
1613 * doc/md.texi (Machine Constraints): Adjust.
1615 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1617 * config/rs6000/constraints.md (define_register_constraint "wy"):
1619 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1620 RS6000_CONSTRAINT_wy.
1621 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1622 (rs6000_init_hard_regno_mode_ok): Adjust.
1623 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1624 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1625 (define_mode_attr Fisa): New.
1626 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1627 * doc/md.texi (Machine Constraints): Adjust.
1629 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1631 * config/rs6000/constraints.md (define_register_constraint "wu"):
1633 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1634 RS6000_CONSTRAINT_wu.
1635 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1636 (rs6000_init_hard_regno_mode_ok): Adjust.
1637 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1639 (define_mode_attr Fa): Delete.
1640 * config/rs6000/vsx.md: Ditto.
1641 * doc/md.texi (Machine Constraints): Adjust.
1643 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1645 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1647 (define_register_constraint "wK"): Delete.
1648 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1649 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1650 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1651 (rs6000_init_hard_regno_mode_ok): Adjust.
1652 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1653 Replace "wK" constraint by "wH" with "p9v".
1654 * config/rs6000/vsx.md: Ditto.
1655 * doc/md.texi (Machine Constraints): Adjust.
1657 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1659 * config/rs6000/constraints.md (define_register_constraint "wb"):
1661 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1662 RS6000_CONSTRAINT_wb.
1663 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1664 (rs6000_init_hard_regno_mode_ok): Adjust.
1665 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1666 * config/rs6000/vsx.md: Ditto.
1667 * doc/md.texi (Machine Constraints): Adjust.
1669 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1671 * config/rs6000/constraints.md (define_register_constraint "wo"):
1673 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1674 RS6000_CONSTRAINT_wo.
1675 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1676 (rs6000_init_hard_regno_mode_ok): Adjust.
1677 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1678 * config/rs6000/altivec.md: Ditto.
1679 * doc/md.texi (Machine Constraints): Adjust.
1681 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1683 * config/darwin-c.c (darwin_register_objc_includes): Do not
1684 prepend the sysroot when building gnu-runtime header search
1687 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1689 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1690 instead of direct output of the asm.
1692 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1694 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1695 argument to be type bool (was int before).
1696 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1697 at first use. Use type bool for some variables. Fix a theoretical
1698 eh_return bug for svr4.
1700 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1702 * config/rs6000/rs6000.md (isa): New attribute.
1703 (enabled): New attribute.
1705 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1707 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1708 assemble_start_function and assemble_end_function.
1710 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1713 * omp-general.c (oacc_verify_routine_clauses): Change formal
1714 parameters. Add checking if already marked with an OpenACC
1715 'routine' directive. Adjust all users.
1718 * omp-general.c (oacc_build_routine_dims): Move some of its
1720 (oacc_verify_routine_clauses): ... this new function.
1721 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1723 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1725 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1726 formating of picbase labels to match other ports.
1728 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1730 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1731 in the generated code.
1733 2019-05-16 Martin Sebor <msebor@redhat.com>
1735 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1736 identifiers, keywords, operators, and types in diagnostics. Correct
1737 quoting, spelling, and sentence capitalization issues.
1738 (expand_builtin_atomic_is_lock_free): Same.
1739 (fold_builtin_next_arg): Same.
1740 * cfgexpand.c (expand_one_var): Same.
1741 (tree_conflicts_with_clobbers_p): Same.
1742 (expand_asm_stmt): Same.
1743 (verify_loop_structure): Same.
1744 * cgraphunit.c (process_function_and_variable_attributes): Same.
1745 * collect-utils.c (collect_execute): Same.
1746 * collect2.c (maybe_run_lto_and_relink): Same.
1747 (is_lto_object_file): Same.
1748 (scan_prog_file): Same.
1749 * convert.c (convert_to_real_1): Same.
1750 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1751 * except.c (verify_eh_tree): Same.
1752 * gcc.c (execute): Same.
1753 (eval_spec_function): Same.
1754 (run_attempt): Same.
1755 (driver::set_up_specs): Same.
1756 (compare_debug_auxbase_opt_spec_function): Same.
1757 * gcov-tool.c (unlink_gcda_file): Same.
1760 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1761 * gimplify.c (gimplify_asm_expr): Same.
1762 (gimplify_adjust_omp_clauses): Same.
1763 * hsa-gen.c (gen_hsa_addr_insns): Same.
1764 (gen_hsa_insns_for_load): Same.
1765 (gen_hsa_cmp_insn_from_gimple): Same.
1766 (gen_hsa_insns_for_operation_assignment): Same.
1767 (gen_get_level): Same.
1768 (gen_hsa_alloca): Same.
1769 (omp_simple_builtin::generate): Same.
1770 (gen_hsa_atomic_for_builtin): Same.
1771 (gen_hsa_insns_for_call): Same.
1772 * input.c (dump_location_info): Same.
1773 * ipa-devirt.c (compare_virtual_tables): Same.
1774 * ira.c (ira_setup_eliminable_regset): Same.
1775 * lra-assigns.c (lra_assign): Same.
1776 * lra-constraints.c (lra_constraints): Same.
1777 * lto-streamer-in.c (lto_input_mode_table): Same.
1778 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1779 (merge_and_complain): Same.
1780 (compile_offload_image): Same.
1781 (compile_images_for_offload_targets): Same.
1782 (debug_objcopy): Same.
1785 * opts.c (print_specific_help): Same.
1786 (parse_no_sanitize_attribute): Same.
1788 (handle_param): Same.
1789 * plugin.c (add_new_plugin): Same.
1790 (parse_plugin_arg_opt): Same.
1791 (try_init_one_plugin): Same.
1792 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1793 operators, and types in diagnostics. Correct quoting and spelling
1795 * read-rtl-function.c (parse_edge_flag_token): Same.
1796 (function_reader::parse_enum_value): Same.
1797 * reg-stack.c (check_asm_stack_operands): Same.
1798 * regcprop.c (validate_value_data): Same.
1799 * sched-rgn.c (make_pass_sched_fusion): Same.
1800 * stmt.c (check_unique_operand_names): Same.
1801 * targhooks.c (default_target_option_pragma_parse): Same.
1802 * tlink.c (recompile_files): Same.
1803 * toplev.c (process_options): Same.
1805 * trans-mem.c (diagnose_tm_1): Same.
1806 (ipa_tm_scan_irr_block): Same.
1807 (ipa_tm_diagnose_transaction): Same.
1808 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
1809 format a tree code name in a diagnostic.
1810 (verify_types_in_gimple_min_lval): Same.
1811 (verify_types_in_gimple_reference): Same.
1812 (verify_gimple_call): Same.
1813 (verify_gimple_assign_unary): Same.
1814 (verify_gimple_assign_binary): Same.
1815 (verify_gimple_assign_ternary): Same.
1816 (verify_gimple_assign_single): Same.
1817 (verify_gimple_switch): Same.
1818 (verify_gimple_label): Same.
1819 (verify_gimple_phi): Same.
1820 (verify_gimple_in_seq): Same.
1821 (verify_eh_throw_stmt_node): Same.
1822 (collect_subblocks): Same.
1823 (gimple_verify_flow_info): Same.
1824 (do_warn_unused_result): Same.
1825 * tree-inline.c (expand_call_inline): Same.
1826 * tree-into-ssa.c (update_ssa): Same.
1827 * tree.c (tree_int_cst_elt_check_failed): Same.
1828 (tree_vec_elt_check_failed): Same.
1829 (omp_clause_operand_check_failed): Same.
1830 (verify_type_variant): Same.
1831 (verify_type): Same.
1832 * value-prof.c (verify_histograms): Same.
1833 * varasm.c (assemble_start_function): Same.
1835 2019-05-16 Martin Sebor <msebor@redhat.com>
1837 * config/i386/i386-expand.c (get_element_number): Quote keywords
1838 and other internal names in diagnostics. Adjust other diagnostic
1839 formatting issues noted by -Wformat-diag.
1840 * config/i386/i386-features.c
1841 (ix86_mangle_function_version_assembler_name): Same.
1842 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
1843 * config/i386/i386.c (ix86_function_type_abi): Same.
1844 (ix86_function_ms_hook_prologue): Same.
1845 (classify_argument): Same.
1846 (ix86_expand_prologue): Same.
1847 (ix86_md_asm_adjust): Same.
1848 (ix86_memmodel_check): Same.
1850 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1852 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
1853 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
1856 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
1859 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
1860 intrinsics without SSE/SSE2/SSSE3.
1861 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
1863 (*mmx_uavgv8qi3): Likewise.
1865 2019-05-17 Richard Biener <rguenther@suse.de>
1867 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
1868 VEC_PERM_EXPR as __VEC_PERM with -gimple.
1870 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
1872 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
1873 vec_sldw insn pattern.
1875 2019-05-17 Richard Biener <rguenther@suse.de>
1877 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
1879 2019-05-17 Martin Liska <mliska@suse.cz>
1882 * toplev.c (output_stack_usage): With LTO and sanitizer it
1883 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
1884 has no file location.
1886 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1889 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
1890 sz0 is equal to sz1, instead return false in that case.
1892 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
1893 has non-constant expression, force sctx.lane and use two
1894 argument IFN_GOMP_SIMD_LANE instead of single argument.
1895 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
1896 two argument IFN_GOMP_SIMD_LANE without lhs.
1897 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
1899 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
1901 (LOOP_REQUIRES_VERSIONING): Or in
1902 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
1903 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
1905 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
1906 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
1907 from simd if clause if needed.
1909 2019-05-16 Richard Biener <rguenther@suse.de>
1911 * tree-affine.c (expr_to_aff_combination): New function split
1913 (tree_to_aff_combination): ... here.
1914 (aff_combination_expand): Avoid building a GENERIC tree.
1916 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
1918 * cgraphunit.c (cgraph_node::expand_thunk): Remove
1919 assemble_start_function and assemble_end_function calls.
1920 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
1921 assemble_start_function and assemble_end_function.
1922 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
1923 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
1924 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
1925 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
1926 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
1927 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
1928 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
1929 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
1930 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1931 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1932 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
1933 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
1935 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
1936 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
1937 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
1938 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
1939 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1940 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1941 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
1942 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
1943 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1944 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
1945 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1946 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1947 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
1948 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
1950 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1951 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1952 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
1954 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
1956 * tree-ssa-alias.c (alias_stats): Add
1957 aliasing_component_refs_p_may_alias and
1958 aliasing_component_refs_p_no_alias.
1959 (dump_alias_stats): Print aliasing_component_refs_p stats.
1960 (aliasing_component_refs_p): Update stats.
1962 2019-05-16 Martin Liska <mliska@suse.cz>
1965 * multiple_target.c (expand_target_clones): Do not allow
1966 target_clones being used with a symbol that is an alias.
1968 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
1970 PR tree-optimization/90394
1971 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
1972 positives rather than ICE for cases where (code2 == NE_EXPR
1973 && code1 == BIT_AND_EXPR).
1975 2019-05-16 Jakub Jelinek <jakub@redhat.com>
1978 * tree-core.h (struct tree_decl_common): Document
1979 decl_nonshareable_flag for PARM_DECLs.
1980 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
1981 * calls.c (expand_call): Don't try tail call if caller
1982 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
1983 passed on the stack and callee needs to pass any arguments on the
1985 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1986 else if instead of series of mutually exclusive ifs. Handle
1987 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
1988 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
1990 * lto-streamer.h (LTO_major_version): Bump to 9.
1992 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
1994 PR tree-optimization/90106
1995 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
1996 new parameter as new internal function call, also move it to new
1998 (use_internal_fn): Pass internal function call to
1999 shrink_wrap_one_built_in_call_with_conds.
2001 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2003 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2005 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2006 safelen_int and set loop->dont_vectorize.
2008 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2011 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2013 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2015 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2016 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2017 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2020 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2023 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2024 define_insn_and_split to support SSE emulation.
2025 (*vec_extractv2sf_0): Likewise.
2026 (*vec_extractv2sf_1): Likewise.
2027 (*vec_extractv2si_0): Likewise.
2028 (*vec_extractv2si_1): Likewise.
2029 (*vec_extractv2si_zext_mem): Likewise.
2030 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2031 (vec_extractv2sf_1 splitter): Likewise.
2032 (vec_extractv2sfsf): Likewise.
2033 (vec_setv2si): Likewise.
2034 (vec_extractv2si_1 splitter): Likewise.
2035 (vec_extractv2sisi): Likewise.
2036 (vec_setv4hi): Likewise.
2037 (vec_extractv4hihi): Likewise.
2038 (vec_setv8qi): Likewise.
2039 (vec_extractv8qiqi): Likewise.
2040 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2041 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2042 (vec_extractv2sisi): Likewise.
2043 (vec_extractv4hihi): Likewise.
2044 (vec_extractv8qiqi): Likewise.
2045 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2046 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2047 (vec_initv2sisi): Likewise.
2048 (vec_initv4hihi): Likewise.
2049 (vec_initv8qiqi): Likewise.
2050 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2051 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2052 (vec_setv4hi): Likewise.
2053 (vec_setv8qi): Likewise.
2055 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2058 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2059 TARGET_MMX_WITH_SSE.
2060 (MMXMODE:*mov<mode>_internal): Likewise.
2061 (MMXMODE:movmisalign<mode>): Likewise.
2063 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2066 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2067 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2068 (sse2_cvtpd2pi): Ditto.
2069 (sse2_cvttpd2pi): Ditto.
2070 (*vec_concatv2sf_sse4_1): Ditto.
2071 (*vec_concatv2sf_sse): Ditto.
2072 (*vec_concatv2si_sse4_1): Ditto.
2073 (*vec_concatv2si): Ditto.
2074 (*vec_concatv4si_0): Ditto.
2075 (*vec_concatv2di_0): Ditto.
2077 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2080 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2082 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2085 * config/i386/sse.md (ssse3_palignrdi): Changed to
2086 define_insn_and_split to support SSE emulation.
2088 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2091 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2096 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2097 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2100 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2103 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2104 or TARGET_MMX_WITH_SSE.
2105 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2107 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2110 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2112 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2115 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2116 Changed to define_insn_and_split to support SSE emulation.
2118 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2121 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2122 Changed to define_insn_and_split to support SSE emulation.
2124 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2127 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2128 (*mmx_<emms>): This.
2129 (mmx_<emms>): New expander.
2131 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2134 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2136 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2138 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2141 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2146 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2148 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2151 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2152 TARGET_MMX_WITH_SSE.
2153 (*mmx_uavgv4hi3): Add SSE emulation.
2155 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2158 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2159 and TARGET_MMX_WITH_SSE.
2160 (*mmx_uavgv8qi3): Add SSE emulation.
2162 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2165 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2166 maskmovdqu for __MMX_WITH_SSE__.
2168 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2171 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2172 TARGET_MMX and TARGET_MMX_WITH_SSE.
2173 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2178 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2179 define_insn_and_split to support SSE emulation.
2181 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2184 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2185 and TARGET_MMX_WITH_SSE.
2186 (mmx_<code>v8qi3): Likewise.
2187 (smaxmin:<code>v4hi3): New.
2188 (umaxmin:<code>v8qi3): Likewise.
2189 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2190 (umaxmin:*mmx_<code>v8qi3): Likewise.
2192 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2195 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2196 TARGET_MMX_WITH_SSE.
2197 (*mmx_pinsrw): Add SSE emulation.
2199 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2202 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2204 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2207 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2208 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2211 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2214 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2215 (sse_cvttps2pi): Likewise.
2217 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2220 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2221 TARGET_MMX_WITH_SSE.
2222 (mmx_pshufw_1): Add SSE emulation.
2223 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2224 TARGET_MMX_WITH_SSE to support SSE emulation.
2226 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2229 * config/i386/constraints.md (Yw): New constraint.
2230 * config/i386/mmx.md (*vec_dupv2si): Changed to
2231 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2232 support SSE emulation.
2234 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2237 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2238 TARGET_MMX_WITH_SSE.
2239 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2241 (mmx_gt<mode>3): Likewise.
2243 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2246 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2247 TARGET_MMX_WITH_SSE. Add SSE support.
2249 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2252 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2253 TARGET_MMX_WITH_SSE.
2254 (any_logic:<code><mode>3): New.
2255 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2258 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2261 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2262 TARGET_MMX_WITH_SSE. Add SSE emulation.
2263 (mmx_<shift_insn><mode>3): Likewise.
2265 (<shift_insn><mode>3): Likewise.
2267 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2270 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2271 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2273 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2276 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2277 TARGET_MMX_WITH_SSE.
2278 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2281 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2284 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2285 TARGET_MMX_WITH_SSE.
2287 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2290 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2293 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2294 (plusminus:mmx_<plusminus_insn><mode>3): Check
2295 TARGET_MMX_WITH_SSE.
2296 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2297 (<plusminus_insn><mode>3): New.
2298 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2299 (*mmx_<plusminus_insn><mode>3): Likewise.
2301 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2304 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2305 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2307 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2308 define_insn_and_split to support SSE emulation.
2309 (mmx_punpcklbw): Likewise.
2310 (mmx_punpckhwd): Likewise.
2311 (mmx_punpcklwd): Likewise.
2312 (mmx_punpckhdq): Likewise.
2313 (mmx_punpckldq): Likewise.
2315 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2316 Uros Bizjak <ubizjak@gmail.com>
2319 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2321 (ix86_split_mmx_pack): Likewise.
2322 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2324 (ix86_split_mmx_pack): Likewise.
2325 * config/i386/i386.md (mmx_isa): New.
2326 (enabled): Also check mmx_isa.
2327 * config/i386/mmx.md (any_s_truncate): New code iterator.
2328 (s_trunsuffix): New code attr.
2329 (mmx_packsswb): Removed.
2330 (mmx_packssdw): Likewise.
2331 (mmx_packuswb): Likewise.
2332 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2333 MMX packsswb/packuswb with SSE2.
2334 (mmx_packssdw): Likewise.
2335 * config/i386/predicates.md (register_mmxmem_operand): New.
2337 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2340 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2341 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2342 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2343 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2344 (ix86_vector_mode_supported_p): Likewise.
2345 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2347 2019-05-15 Martin Liska <mliska@suse.cz>
2350 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2353 2019-05-15 Richard Biener <rguenther@suse.de>
2355 * tree-into-ssa.c (pass_build_ssa::execute): Run
2356 update_address_taken before going into SSA.
2358 2019-05-15 Richard Biener <rguenther@suse.de>
2360 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2361 as __BIT_FIELD_REF with type with -gimple.
2363 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2365 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2366 semantically equivalent branches (left over after prior refactorings).
2368 2019-05-15 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/88828
2371 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2374 2019-05-14 Richard Biener <rguenther@suse.de>
2376 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2377 as __VIEW_CONVERT with -gimple.
2379 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2382 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2385 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2387 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2388 define_split to become a define_insn_and_split.
2390 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2392 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2394 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2395 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2396 (sibcall_epilogue): Adjust.
2399 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2401 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2402 to unsupported ones.
2403 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2404 * config.host: Likewise.
2405 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2406 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2407 __svr4__]: Remove "brand" fallback.
2408 [!KSTAT_DATA_STRING]: Remove.
2409 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2411 (comdat_group): Likewise.
2412 (set_have_as_tls): Likewise.
2413 (gcc_cv_target_dl_iterate_phdr): Likewise.
2414 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2415 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2416 * configure: Regenerate.
2417 * doc/install.texi: Simplify Solaris target triplets.
2418 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2419 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2420 Remove Solaris 10 references.
2421 Remove obsolete Solaris bug reference.
2422 (Specific, sparc-sun-solaris2.10): Remove.
2424 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2426 * config/i386/i386.md (any_div): New code iterator.
2427 (paired_mod): New code attribute.
2428 (sgnprefix): Handle DIV and UDIV RTXes.
2430 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2431 and udivmod<mode>4 patterns using any_div code iterator.
2432 (divmod splitters): Macroize splitters using any_div code iterator.
2433 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2434 (*udivmodsi4_pow2_zext_2): Ditto.
2435 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2436 and *udivmod<mode>4_noext patterns using any_div code iterator.
2437 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2438 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2439 patterns using any_div code iterator.
2440 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2441 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2442 patterns using any_div code iterator.
2443 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2444 udivmodhiqi3 patterns using any_extend code iterator.
2446 2019-05-14 Richard Biener <rguenther@suse.de>
2447 H.J. Lu <hongjiu.lu@intel.com>
2449 PR tree-optimization/88828
2450 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2451 permuting in a single non-constant element not extracted
2454 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2456 * internal-fn.def (SIGNBIT): New.
2457 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2459 (signbitv4sf2): Likewise.
2461 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2464 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2465 next insn when the SRC reg is dead.
2467 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2469 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2470 (alloc_cand_and_find_basis): Ditto.
2471 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2472 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2473 (create_add_imm_cand, slsr_process_cast): Ditto.
2474 (slsr_process_copy, replace_mult_candidate): Ditto.
2475 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2476 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2477 (pass_strength_reduction::execute): Init the first NULL element.
2479 2019-05-13 Nathan Sidwell <nathan@acm.org>
2481 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2482 (run_attempt): Reformat line break.
2484 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2487 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2488 data registers in sibcall epilogues.
2489 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2491 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2494 * configure.ac (--enable-frame-pointer):
2495 Disable by default for cygwin and mingw.
2496 * configure: Regenerate.
2498 2019-05-13 Nathan Sidwell <nathan@acm.org>
2500 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2502 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2503 (gen_member_die): Move abstract origin check earlier. Only VARs
2504 can be static_inline_p. Simplify splicing control flow.
2506 2019-05-13 Richard Biener <rguenther@suse.de>
2508 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2510 (vect_build_slp_tree_1): Likewise.
2512 2019-05-13 Richard Biener <rguenther@suse.de>
2514 PR tree-optimization/90402
2515 * tree-if-conv.c (tree_if_conversion): Value number only
2516 the loop body by making the latch an exit of the region
2518 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2520 (do_rpo_vn): Deal with multiple edges into the entry block
2521 that are not backedges inside the region by skipping PHIs
2524 2019-05-13 Richard Biener <rguenther@suse.de>
2526 PR tree-optimization/90316
2527 * tree-ssa-pre.c (insert_aux): Fold into ...
2528 (insert): ... this function. Use a RPO walk to reduce the
2529 number of required iterations.
2531 2019-05-13 Martin Liska <mliska@suse.cz>
2533 PR tree-optimization/90416
2534 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2535 string instead of passing the second part as va_arg argument.
2537 2019-05-13 Martin Liska <mliska@suse.cz>
2539 PR gcov-profile/90380
2540 * gcov.c (handle_cycle): Do not support zero cycle count,
2541 it should not be possible.
2542 (path_contains_zero_cycle_arc): New function.
2543 (circuit): Ignore zero cycle arc counts.
2545 2019-05-13 Martin Liska <mliska@suse.cz>
2547 PR gcov-profile/90380
2548 * gcov.c (enum loop_type): Remove the enum and
2550 (handle_cycle): Assert that we should not reach
2552 (circuit): Use loop_found instead of a tri-state loop_type.
2553 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2556 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2559 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2560 (ix86_output_indirect_branch_via_reg): Use output mechanism
2561 accounting for __USER_LABEL_PREFIX__.
2562 (ix86_output_indirect_branch_via_push): Likewise.
2563 (ix86_output_function_return): Likewise.
2564 (ix86_output_indirect_function_return): Likewise.
2566 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2568 * doc/md.texi: Document use of code attributes in rtx patterns.
2569 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2570 * read-rtl.c (find_code): Split out search loops into...
2571 (maybe_find_code): ...this new function.
2572 (check_code_iterator): Make the error message more informative.
2573 (check_code_attribute): New function.
2574 (rtx_reader::rtx_alloc_for_name): Likewise.
2575 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2576 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2577 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2578 <max_opp> directly as an rtx code instead of via a match_operator.
2579 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2580 (<su>abd<mode>_3): Update accordingly.
2582 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2584 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2585 is given, print the state of the EH "save world" computation for
2588 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2591 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2592 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2594 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2596 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2597 Use pinsrd for TARGET_SSE4_1.
2598 * config/i386/sse.md (movdi_to_sse): Ditto.
2600 2019-05-10 Richard Biener <rguenther@suse.de>
2602 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2603 (do_rpo_vn): Initialize next_value_id.
2605 2019-05-10 Martin Liska <mliska@suse.cz>
2607 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2610 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2612 PR tree-optimization/90385
2613 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2614 arguments of the exit phis.
2617 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2618 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2620 (copy_tree_body_r): Likewise.
2621 (copy_fn): Set id.do_not_fold to true.
2623 2019-05-10 Martin Liska <mliska@suse.cz>
2625 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2626 Reapply changes from r269790.
2628 2019-05-10 Martin Liska <mliska@suse.cz>
2631 * doc/invoke.texi: New params.
2632 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2633 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2634 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2636 * tree-switch-conversion.h (struct jump_table_cluster):
2639 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2641 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2643 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2645 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2647 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2649 PR rtl-optimization/88879
2650 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2652 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2655 * config/arm/arm.c (callee_saved_reg_p): Move before
2656 thumb_find_work_register.
2657 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2658 thumb_find_work_register. Only call df_get_live_out once.
2659 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2660 (thumb_find_work_register): Use
2661 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2662 algorithms to locate a spare call clobbered reg.
2664 2019-05-09 Martin Liska <mliska@suse.cz>
2666 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2667 and MAX_EXPR in GIMPLE FE format.
2669 2019-05-09 Martin Liska <mliska@suse.cz>
2671 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2672 * gimple-pretty-print.c (dump_gimple_bb_header):
2674 (pp_cfg_jump): Dump edge probability.
2675 * profile-count.c (profile_quality_as_string): Simplify
2676 with a static array.
2677 (parse_profile_quality): New function.
2678 (profile_count::dump): Simplify with a static array.
2679 (profile_count::from_gcov_type): Add new argument.
2680 * profile-count.h (parse_profile_quality): Likewise.
2681 * predict.h (set_hot_bb_threshold): New.
2682 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2684 * predict.c (get_hot_bb_threshold): Set from the new param.
2685 (set_hot_bb_threshold): New.
2687 2019-05-09 Richard Biener <rguenther@suse.de>
2689 PR tree-optimization/90395
2690 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2691 rewrite vector stores that throw internally.
2693 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2695 * cif-code.def (CHKP): Remove.
2698 * configure.ac (--enable-frame-pointer): Disable by default for
2700 * configure: Regenerate.
2702 2019-05-09 Alan Modra <amodra@gmail.com>
2705 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2706 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2707 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2708 cost for general <-> vsx when direct moves are available.
2709 Cost union classes at minimal cost for any reg in the class.
2710 Correct calculation for moves between vsx, float, and altivec.
2711 Don't return a low cost for moves between special regs. Don't
2712 use hard coded register numbers.
2713 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2714 (rs6000_ira_change_pseudo_allocno_class): New function.
2715 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2716 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2718 (movsi_internal1): Don't disparage vector alternatives.
2719 (mov<mode>_internal): Likewise, excepting alternative that
2721 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2722 we <- b alternative.
2724 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2727 PR tree-optimization/89060
2728 * tree-ssa-live.h (live_vars_map): New typedef.
2729 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2730 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2731 (struct compute_live_vars_data): New type.
2732 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2733 live_vars_at_stmt, destroy_live_vars): New functions.
2734 * tree-tailcall.c: Include tree-ssa-live.h.
2735 (live_vars, live_vars_vec): New global variables.
2736 (find_tail_calls): Perform variable life analysis before punting.
2737 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2738 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2740 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2741 Perform variable life analysis to select variables that really need
2743 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2744 instead set id->eh_landing_pad_dest and assert it is the same.
2745 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2747 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2748 Richard Earnshaw <rearnsha@arm.com>
2751 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2753 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2754 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2755 register if both the epilogue and prologue can use call-clobbered
2757 (thumb1_unexpanded_epilogue): Use
2758 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2759 picking temporaries for restoring high regs to match that of the
2760 prologue where possible.
2761 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2762 the list of work registers. Detect if the return address is still live
2763 at the end of the prologue and avoid using it for a work register if so.
2764 If the return address is not live, add LR to the list of pushable regs
2765 after the first pass.
2767 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2769 PR tree-optimization/90078
2770 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2771 (INFTY): Increase the value for infinite cost.
2772 (struct comp_cost): Promote type of members to int64_t.
2773 (infinite_cost): Don't set complexity in initialization.
2774 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2775 overflows to infinite_cost.
2776 (adjust_setup_cost): Promote type of parameter and cost computation
2778 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2780 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2781 cost computation to int64_t.
2782 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2783 int64_t's format specifier in dump.
2785 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2787 PR tree-optimization/90240
2788 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2789 with respect to scaling factor pre-computed for each basic block.
2790 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2791 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2792 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2793 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
2794 live range for array of loop's basic blocks. Cleanup aux field of
2795 loop's basic blocks.
2797 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2799 PR tree-optimization/90356
2800 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
2802 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
2804 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
2805 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
2806 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
2807 (ix86_handle_option): Handle -mavx512bf16.
2808 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
2810 * config/i386/avx512bf16vlintrin.h: New.
2811 * config/i386/avx512bf16intrin.h: New.
2812 * config/i386/cpuid.h (bit_AVX512BF16): New.
2813 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
2814 * config/i386/i386-builtin-types.def: Add new types.
2815 * config/i386/i386-builtin.def: Add new builtins.
2816 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2818 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
2819 (ix86_option_override_internal): Handle BF16.
2820 (ix86_valid_target_attribute_inner_p): Ditto.
2821 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
2822 * config/i386/i386-builtin.c (enum processor_features): Add
2824 (static const _isa_names_table isa_names_table): Ditto.
2825 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
2826 (PTA_AVX512BF16): Ditto.
2827 * config/i386/i386.opt: Add -mavx512bf16.
2828 * config/i386/immintrin.h: Include avx512bf16intrin.h
2829 and avx512bf16vlintrin.h.
2830 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
2831 avx512f_cvtneps2bf16_<mode><mask_name>,
2832 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
2833 * config/i386/subst.md (mask_half): Add new subst.
2834 * doc/invoke.texi: Document -mavx512bf16.
2836 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
2838 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
2840 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
2841 (rs6000_debug_legitimize_reload_address): Delete.
2842 (rs6000_legitimize_reload_address_ptr): Delete.
2843 (rs6000_option_override_internal): Adjust.
2844 (mem_operand_gpr): Adjust comment.
2845 (legitimate_lo_sum_address_p): Ditto.
2846 (rs6000_legitimize_reload_address): Delete.
2847 (rs6000_debug_legitimize_reload_address): Delete.
2848 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
2850 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
2853 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2854 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
2855 to compute vector element selector for both constant and variable
2858 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2860 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
2861 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
2862 ashrdi3_cvt using SWI48 mode iterator.
2864 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
2866 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
2867 (aarch64_<su>abd<mode>_3): Likewise.
2868 (*aarch64_<su>abd<mode>_3): New define_insn.
2869 (<sur>sad<vsi2qi>): New define_expand.
2870 * config/aarch64/iterators.md: Added MAX_OPP attribute.
2871 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
2872 (build_vect_cond_expr): Likewise.
2874 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
2876 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
2877 clobbers outside of accessible_reg_set.
2878 * config/i386/i386.c (ix86_conditional_register_usage):
2879 Disable register sets by clearing corresponding bits in
2880 accessible_reg_set. Do not set corresponding bits in fixed_regs,
2881 call_used_regs and don't clear corresponding reg_names array members.
2883 2019-05-07 Richard Biener <rguenther@suse.de>
2885 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
2886 not specified still compute a comp_vectype for invariant
2889 2019-05-07 Richard Biener <rguenther@suse.de>
2891 PR tree-optimization/90316
2892 * tree-ssa-pre.c (translate_vuse_through_block): When
2893 same_valid is NULL do not bother to search for a virtual
2895 (phi_translate_1): When operands changed we cannot keep
2896 the same value-number so do not bother to ask whether
2897 that's possible from translate_vuse_through_block.
2899 2019-05-07 Martin Liska <mliska@suse.cz>
2901 * bitmap.c (bitmap_register): Come up with
2902 alloc_descriptor_max_uid and assign it for
2904 (register_overhead): Use get_descriptor as
2906 (release_overhead): New.
2907 (bitmap_elem_to_freelist): Call it.
2908 (bitmap_elt_clear_from): Likewise.
2909 (bitmap_obstack_free): Likewise.
2910 (bitmap_move): Sensitively release memory.
2911 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
2912 (bitmap_initialize): Initialize alloc_descriptor to zero.
2913 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
2915 2019-05-07 Richard Biener <rguenther@suse.de>
2917 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
2918 we build a SLP node. Remove max_size and limiting.
2919 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
2921 2019-05-07 Richard Biener <rguenther@suse.de>
2923 PR tree-optimization/90316
2924 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
2926 (walk_non_aliased_vuses): Take walking limit argument.
2927 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
2928 walking if it is reached instead of just counting.
2929 (get_continuation_for_phi): Likewise.
2930 (walk_non_aliased_vuses): Likewise, instead of leaving counter
2931 limiting to the callback.
2932 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
2933 (vn_reference_lookup_3): Likewise.
2934 (vn_reference_lookup_pieces): Likewise.
2935 (vn_reference_lookup): Likewise.
2936 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
2937 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
2938 (avail_exprs_stack::lookup_avail_expr): Likewise.
2940 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
2942 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
2943 for comparaible types in the second direction even if first one
2944 hits incomparable type.
2946 2019-05-07 Richard Biener <rguenther@suse.de>
2949 * lto-wrapper.c (debug_objcopy): Use the original filename
2950 including archive offset for the filename used for -save-temps.
2952 2019-05-07 Li Jia He <helijia@linux.ibm.com>
2954 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
2957 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
2958 Hongtao Liu <hongtao.liu@intel.com>
2962 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
2963 Modified, original implementation isn't correct.
2965 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2967 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
2968 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
2969 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
2970 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
2971 (FRAME_POINTER_REGNUM): Change numbering.
2972 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
2973 (alt_reg_names): Adjust.
2974 (rs6000_conditional_register_usage): Don't mark hard register 64 as
2976 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2977 (DWARF_FRAME_REGISTERS): Delete.
2978 (DWARF2_FRAME_REG_OUT): Fix whitespace.
2979 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2981 (REG_ALLOC_ORDER): Adjust.
2982 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
2983 (REG_CLASS_CONTENTS): Adjust.
2984 (RETURN_ADDR_RTX): Change comment.
2985 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
2987 (REGISTER_NAMES): Adjust.
2988 (ADDITIONAL_REGISTER_NAMES): Adjust.
2989 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
2991 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
2993 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
2995 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
2996 (DWARF_FRAME_REGISTERS): Adjust.
2997 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
2999 (REG_ALLOC_ORDER): Adjust.
3000 (enum reg_class): Delete SPR_REGS.
3001 (REG_CLASS_NAMES): Delete SPR_REGS.
3002 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3003 (REGISTER_NAMES): Adjust.
3004 (ADDITIONAL_REGISTER_NAMES): Adjust.
3005 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3006 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3007 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3008 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3009 (htm_spr_regno): Delete.
3010 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3012 (rs6000_dbx_register_number): Adjust.
3014 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3016 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3018 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3020 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3021 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3023 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3025 PR tree-optimization/88709
3026 PR tree-optimization/90271
3027 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3028 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3029 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3031 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3032 of the store merging group is larger than
3033 PARAM_STORE_MERGING_MAX_SIZE parameter.
3034 (split_group): Add bzero_first argument. If set, always emit first
3035 the first store which must be = {} of the whole area and then for the
3036 rest of the stores consider all zero bytes as paddings.
3037 (imm_store_chain_info::output_merged_store): Check if first store
3038 is = {} of the whole area and if yes, determine which setting of
3039 bzero_first for split_group gives smaller number of stores. Adjust
3040 split_group callers.
3041 (lhs_valid_for_store_merging_p): Allow decls.
3042 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3044 (pass_store_merging::process_store): Likewise.
3046 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3049 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3050 handling of V1TImode.
3052 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3055 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3056 and enable_frame_pointer ...
3057 * configure.ac: ... here. Update help strings for
3058 --enable-frame-pointer.
3059 * configure: Regenerate.
3060 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3061 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3062 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3063 (USE_X86_64_FRAME_POINTER): Ditto.
3065 2019-05-06 Martin Liska <mliska@suse.cz>
3067 * config.gcc: Append to target_gtfiles and fix indentation.
3069 2019-05-06 Richard Biener <rguenther@suse.de>
3071 PR tree-optimization/90358
3072 * tree-vect-stmts.c (get_group_load_store_type): Properly
3073 detect unused upper half of load.
3074 (vectorizable_load): Likewise.
3076 2019-05-06 Richard Biener <rguenther@suse.de>
3078 PR tree-optimization/88828
3079 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3080 (simplify_vector_constructor): ...here. Handle constants in
3083 2019-05-06 Richard Biener <rguenther@suse.de>
3085 PR tree-optimization/90328
3086 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3087 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3088 is valid in the loop nest before using it.
3089 (initialize_data_dependence_relation): Adjust.
3090 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3091 loop as loop-nest to dr_may_alias_p.
3093 2019-05-06 Richard Biener <rguenther@suse.de>
3095 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3097 2019-05-06 Richard Biener <rguenther@suse.de>
3099 PR tree-optimization/90316
3100 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3101 compute target on demand.
3102 (get_continuation_for_phi): Remove code walking stmts to
3103 get to a target virtual operand which could end up being
3106 2019-05-06 Martin Liska <mliska@suse.cz>
3109 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3110 when -mabi is selected to a non-default version.
3112 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3113 Martin Liska <mliska@suse.cz>
3115 * Makefile.in: Add lto-dump.texi.
3116 * cgraph.h: Add new functions get_visibility_string and
3117 get_symtab_type_string.
3118 * doc/gcc.texi: Include lto-dump section.
3119 * doc/lto-dump.texi: New file.
3120 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3121 (parse_dump_option): Factor out this function.
3122 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3123 (parse_dump_option): Export the function.
3124 * symtab.c (symtab_node::get_visibility_string): New function.
3125 (symtab_node::get_symtab_type_string): Likewise.
3127 2019-05-06 Martin Liska <mliska@suse.cz>
3129 * config/i386/i386-builtins.c: New file.
3130 * config/i386/i386-builtins.h: New file.
3131 * config/i386/i386-expand.c: New file.
3132 * config/i386/i386-expand.h: New file.
3133 * config/i386/i386-features.c: New file.
3134 * config/i386/i386-features.h: New file.
3135 * config/i386/i386-options.c: New file.
3136 * config/i386/i386-options.h: New file.
3137 * config.gcc: Add new files into extra_objs and
3139 * config/i386/i386.c: Split content of the file
3140 into newly introduced files.
3141 * config/i386/i386.h: Declare common variables
3143 * config/i386/t-i386: Define dependencies for new files.
3145 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3148 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3149 Restrict 'all' variant to 32-bit configurations.
3150 (unaligned_loadhiu): Likewise.
3151 (unaligned_storehi): Likewise.
3152 (unaligned_storesi): Likewise.
3153 (unaligned_loadhis): Disable when compiling for thumb1.
3155 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3157 PR tree-optimization/90269
3158 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3161 2019-05-03 Martin Liska <mliska@suse.cz>
3163 * hash-map.h: Add is_empty function.
3164 * hash-set.h: Likewise.
3165 * hash-table.h: Likewise.
3166 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3167 elements () == 0 (and similar usages).
3168 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3169 * gimplify.c (gimplify_bind_expr): Likewise.
3170 (gimplify_switch_expr): Likewise.
3171 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3172 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3173 * postreload-gcse.c (dump_hash_table): Likewise.
3174 (gcse_after_reload_main): Likewise.
3175 * predict.c (combine_predictions_for_bb): Likewise.
3176 * tree-parloops.c (reduction_phi): Likewise.
3177 (separate_decls_in_region): Likewise.
3178 (transform_to_exit_first_loop): Likewise.
3179 (gen_parallel_loop): Likewise.
3180 (gather_scalar_reductions): Likewise.
3181 (try_create_reduction_list): Likewise.
3182 * var-tracking.c (dump_vars): Likewise.
3183 (emit_notes_for_changes): Likewise.
3184 (vt_emit_notes): Likewise.
3186 2019-05-03 Richard Biener <rguenther@suse.de>
3188 PR tree-optimization/90316
3189 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3192 2019-05-03 Richard Biener <rguenther@suse.de>
3194 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3195 peeling for gaps by loading only lower halves of vectors
3197 (vectorizable_load): Likewise.
3199 2019-05-03 Richard Biener <rguenther@suse.de>
3202 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3204 2019-05-03 Richard Biener <rguenther@suse.de>
3207 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3208 Handle STRING_CST vs DECL or STRING_CST.
3210 2019-05-03 Richard Biener <rguenther@suse.de>
3212 PR tree-optimization/88963
3213 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3214 vector loads feeding only BIT_FIELD_REFs to component
3215 loads. Rewrite stores fed by CONSTRUCTORs to component
3218 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3220 * opts.h (finish_options): Remove lang_mask argument.
3221 (print_help, help_option_argument): Declare.
3222 * opts.c (print_help): Remove forward declaration, no longer static.
3223 (finish_options): Remove lang_mask argument, don't call print_help
3225 * opts-global.c (decode_options): Adjust finish_option caller, call
3228 PR tree-optimization/90303
3229 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3230 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3232 2019-05-03 Richard Biener <rguenther@suse.de>
3234 PR tree-optimization/89698
3235 * gimple-fold.c (canonicalize_constructor_val): Early out
3236 for constants, handle unfolded INTEGER_CSTs as they appear in
3237 C++ virtual table ctors.
3239 2019-05-03 Richard Biener <rguenther@suse.de>
3241 * passes.c (execute_function_todo): Remove dead code.
3243 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3245 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3246 the internal register number, for any "real" register.
3248 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3250 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3251 correct numbers for TFHAR, TFIAR, TEXASR.
3253 2019-05-02 Richard Biener <rguenther@suse.de>
3255 PR tree-optimization/89653
3256 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3257 update-address-taken before the pass.
3258 * passes.def (pass_tree_loop_init): Put comment before it.
3260 2019-05-02 Richard Biener <rguenther@suse.de>
3262 PR tree-optimization/89509
3263 * tree-ssa-structalias.c (compute_dependence_clique): Look
3264 at the first subvar when determining whether it is restrict.
3266 2019-05-02 Richard Biener <rguenther@suse.de>
3268 PR tree-optimization/90273
3269 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3270 useless debug stmts.
3272 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3274 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3276 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3278 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3279 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3280 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3281 (vectorizable_reduction): Use the functions above to vectorize in a
3282 fully masked loop codes that don't have a conditional internal
3285 2019-05-02 Martin Liska <mliska@suse.cz>
3287 * cgraphclones.c: Call valid_attribute_p with 1 for
3289 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3290 it's for target attribute.
3291 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3292 Add new boolean argument.
3293 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3295 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3296 to ix86_valid_target_attribute_inner_p.
3297 (ix86_valid_target_attribute_p): Pass flags argument to
3298 ix86_valid_target_attribute_inner_p.
3299 (get_builtin_code_for_version): Use 0 as it's target attribute.
3301 2019-05-02 Martin Liska <mliska@suse.cz>
3303 * gcc.c (process_command): Add dummy file only
3305 * opts-global.c (decode_options): Pass lang_mask.
3306 * opts.c (print_help): New function.
3307 (finish_options): Print --help if help_option_argument
3309 (common_handle_option): Factor out content of OPT__help_
3311 * opts.h (finish_options): Add new argument.
3313 2019-05-02 Martin Liska <mliska@suse.cz>
3316 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3317 With -minline-all-stringops use inline expansion using 4B loop.
3318 * doc/invoke.texi: Document the change of
3319 -minline-all-stringops.
3321 2019-05-01 Jeff Law <law@redhat.com>
3323 PR tree-optimization/88797
3324 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3325 PHI feeds a conditional on the RHS of an assignment.
3327 2019-04-30 Andrew Waterman <andrew@sifive.com>
3328 Jim Wilson <jimw@sifive.com>
3330 * config/riscv/constraints.md (L): New.
3331 * config/riscv/predicates.md (lui_operand): New.
3332 (sfb_alu_operand): New.
3333 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3334 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3335 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3336 * config/riscv/risc.md (type): Add sfb_alu.
3337 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3338 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3339 (branch_zero<mode>): Delete.
3341 (mov<GPR:mode><X:mode>cc): Likewise.
3342 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3344 2019-04-30 Nathan Sidwell <nathan@acm.org>
3346 * tree.h (MARK_TS_EXP): New.
3348 2019-04-30 Martin Liska <mliska@suse.cz>
3350 * opts.c (enable_warning_as_error): Provide hints
3351 for unknown options.
3353 2019-04-30 Martin Liska <mliska@suse.cz>
3356 * doc/invoke.texi: Add missing dash for gas-locview-support
3357 and gno-as-locview-support.
3359 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3362 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3363 whitespace at the start of target attribute string.
3365 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3368 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3369 Define __ARM_FEATURE_ATOMICS.
3371 2019-04-30 Martin Liska <mliska@suse.cz>
3373 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3374 into built_in_function enum. Remove code for endp == 2 and
3375 use BUILT_IN_* constants.
3376 (gimple_fold_builtin): Call the function with fcode.
3378 2019-04-30 Martin Liska <mliska@suse.cz>
3380 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3381 DECL_FUNCTION_CODE into ix86_builtins enum before
3382 the switch statement.
3384 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3386 PR tree-optimization/89475
3387 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3390 2019-04-30 Martin Liska <mliska@suse.cz>
3392 PR translation/90274
3393 * opts.c (print_filtered_help): Wrap string in _(...).
3395 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3397 PR tree-optimization/90240
3399 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3401 PR tree-optimization/90078
3402 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3403 checks for infinite_cost overflow.
3405 2019-04-29 Jeff Law <law@redhat.com>
3407 * passes.def: Move -Wrestrict pass after copy propagation.
3409 2019-04-29 Maya Rashish <coypu@sdf.org>
3411 * config.gcc (default_gnu_indirect_function): Default to yes
3412 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3413 sparc*-*-netbsd*, x86_64-*-netbsd*.
3415 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3417 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3418 where cond2 is NE_EXPR.
3419 (is_value_included_in): Update comment.
3421 2019-04-29 Richard Biener <rguenther@suse.de>
3423 PR tree-optimization/90278
3424 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3425 EH on comparison simplification.
3427 2019-04-29 Jason Merrill <jason@redhat.com>
3429 PR c++/82081 - tail call optimization breaks noexcept
3430 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3431 nothrow function to a might-throw function into a tail call.
3433 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3435 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3436 (DDR_INNER_LOOP): Likewise.
3437 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3438 (initialize_data_dependence_relation): Likewise.
3439 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3441 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3443 PR rtl-optimization/90257
3444 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3448 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3452 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3455 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3458 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3460 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3462 2019-04-29 Richard Biener <rguenther@suse.de>
3464 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3467 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3469 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3470 varasm.h, and netbsd-protos.h.
3472 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3475 * config/i386/i386-protos.h (ix86_data_alignment): Change
3476 the second argument type to unsigned int.
3477 * config/i386/i386.c (ix86_data_alignment): Change "align"
3478 argument type to unsigned int.
3480 2019-04-27 Martin Liska <mliska@suse.cz>
3483 * opt-suggestions.c (option_proposer::build_option_suggestions):
3484 When get_valid_option_values returns empty values, add the
3485 misspelling candidate.
3487 2019-04-26 Jim Wilson <jimw@sifive.com>
3489 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3491 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3492 Pass orig_mode to riscv_build_integer.
3493 (riscv_split_integer): Pass mode to riscv_move_integer.
3494 (riscv_legitimize_const_move): Likewise.
3495 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3496 promoted_mode. Replace force_reg call with code to load constant into
3497 promoted reg and then subreg it for the store.
3498 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3501 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3503 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3506 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3508 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3509 commentary about the encoding of precision.
3511 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3513 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3514 * config/i386/t-freebsd64: New file.
3515 * config.gcc: Add the t-freebsd64 for multilib support.
3517 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3519 * doc/extend.texi (vector_size): Add missing comma after @xref.
3521 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3523 * BASE-VER: Set to 10.0.0.
3525 2019-04-25 Richard Biener <rguenther@suse.de>
3528 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3529 VIEW_CONVERT_EXPR into one operating on an rvalue.
3531 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3534 * config/i386/i386.c (feature_priority): Moved to file scope.
3535 (processor_features): Likewise.
3536 (processor_model): Likewise.
3537 (_arch_names_table): Likewise.
3538 (arch_names_table): Likewise.
3539 (_feature_list): Removed.
3540 (feature_list): Likewise.
3541 (_isa_names_table): Moved to file scope. Add priority.
3542 (isa_names_table): Likewise.
3543 (get_builtin_code_for_version): Replace feature_list with
3544 isa_names_table. Update error message for P_ZERO priority.
3546 2019-04-25 Richard Biener <rguenther@suse.de>
3548 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3549 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3551 2019-04-24 Jeff Law <law@redhat.com>
3553 PR tree-optimization/90037
3554 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3555 * passes.def: Replace all instance of phi-only cprop with the
3556 lattice propagator. Move propagation pass from after erroneous
3557 path isolation to before erroneous path isolation.
3558 * tree-ssa-phionlycprop.c: Remove.
3560 2019-04-24 Richard Biener <rguenther@suse.de>
3563 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3564 by size and BITS_PER_UNIT on poly-wide-ints.
3566 2019-04-25 Richard Biener <rguenther@suse.de>
3569 * match.pd: Add pattern to simplify view-conversion of an
3572 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3574 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3575 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3576 for Go on 32 bit AIX.
3577 * config/rs6000/aix72.h: Likewise.
3579 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3582 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3583 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3585 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3588 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3589 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3590 for restored hard frame pointer.
3591 (s390_sched_dependencies_evaluation): Implement new target hook.
3592 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3594 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3596 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3597 * config/arc/arc.c (arc_init): Cleanup warning message.
3598 (arc_override_options): Likewise.
3600 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3603 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3604 a register if both if_true and if_false are MEMs.
3606 PR tree-optimization/90208
3607 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3608 after labels of new_bb, not before them.
3610 PR tree-optimization/90211
3611 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3612 which are not SSA_NAMEs.
3614 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3616 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3618 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3620 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3622 PR rtl-optimization/87979
3623 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3626 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3628 PR rtl-optimization/84032
3629 * modulo-sched.c (ps_insn_find_column): Change condition so that
3630 branch will always be the last insn in a row inside partial
3633 2019-04-23 Richard Biener <rguenther@suse.de>
3636 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3637 dest_single_pred_p argument.
3638 (remove_forwarder_block): Adjust.
3639 (remove_forwarder_block_with_phi): Likewise.
3641 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3642 Bernd Edlinger <bernd.edlinger@hotmail.de>
3643 Jakub Jelinek <jakub@redhat.com>
3646 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3647 if used with general-regs-only.
3648 (arm_conditional_register_usage): Don't add non-general regs if
3650 (arm_valid_target_attribute_rec): Handle general-regs-only.
3651 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3653 (TARGET_HARD_FLOAT_SUB): Define.
3654 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3655 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3656 (TARGET_REALLY_IWMMXT2): Likewise.
3657 * config/arm/arm.opt: Add -mgeneral-regs-only.
3658 * doc/extend.texi: Document ARM general-regs-only target.
3659 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3661 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3663 PR tree-optimization/90078
3664 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3665 checks for infinite_cost overflow.
3667 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3669 PR tree-optimization/90021
3670 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3671 and check univariate against it.
3672 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3673 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3675 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3679 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3682 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3685 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3687 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3689 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3691 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3692 names using operand format, rather than hard-wired.
3693 (speculation_barrier): Likewise.
3695 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3697 PR tree-optimization/88055
3698 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3699 (gen_one_condition): Use it if !HONOR_NANS.
3701 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3704 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3705 assign_temp instead of gen_reg_rtx.
3707 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3709 PR translation/90118
3710 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3711 Add missing space before %<.
3713 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3715 PR rtl-optimization/87871
3716 * ira-lives.c (make_object_dead): Don't add conflicts to
3717 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3719 2019-04-18 Martin Sebor <msebor@redhat.com>
3722 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3723 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3724 assuming type size fits in SHWI.
3726 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3729 * ipa-inline.c (flatten_function): New parameter UPDATE.
3730 (ipa_inline, early_inliner): Use it.
3732 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3734 * fold-const.c (int_const_binop): Return early on failure.
3736 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3739 * combine.c (force_int_to_mode): Cast the argument rather than
3740 the result of known_alignment.
3741 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3743 2019-04-18 Richard Biener <rguenther@suse.de>
3746 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3748 (remove_forwarder_block): ... here.
3749 (remove_forwarder_block_with_phi): Also move debug stmts here.
3751 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3753 PR translation/79183
3754 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3755 inform where appropriate.
3757 2019-04-18 Richard Biener <rguenther@suse.de>
3759 * tree.c (get_qualified_type): Put found type variants at the
3760 head of the variant list.
3762 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3764 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3766 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3769 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3770 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3771 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3772 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3773 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3775 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3777 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3778 even for allocno's with no conflicts.
3779 (print_conflicts): Print an extra newline.
3781 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3783 * auto-inc-dec.c (attempt_change): Set the alignment of the
3784 temporary memory to that of the original.
3786 2019-04-17 Joao Moreira <jmoreira@suse.de>
3788 * targhooks.c (default_print_patchable_function_entry): Emit
3789 __patchable_function_entries section with writable flags to allow
3790 relocation resolution.
3792 2019-04-17 Jonny Grant <jg@jguk.org>
3794 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
3796 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3799 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
3802 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
3804 * config/arc/arc.c (arc_init): Format diagnostic string.
3805 (arc_override_options): Likewise.
3806 (check_if_valid_regno_const): Likewise.
3807 (arc_reorg): Likewise.
3809 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3812 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
3814 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
3816 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
3817 (*movdi_update1): Use Pmode.
3818 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
3819 (movdi_<mode>_update_stack): Rename to ...
3820 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
3822 (*movsi_update1): Use Pmode.
3823 (*movsi_update2): Use Pmode.
3824 (movsi_update): Rename to ...
3825 (movsi_<mode>_update): ... this. Use Pmode.
3826 (movsi_update_stack): Fix condition.
3827 (*movhi_update1): Use Pmode. Fix argument to
3828 avoiding_indexed_address_p.
3829 (*movhi_update2): Ditto.
3830 (*movhi_update3): Ditto.
3831 (*movhi_update4): Ditto.
3832 (*movqi_update1): Ditto.
3833 (*movqi_update2): Ditto.
3834 (*movqi_update3): Ditto.
3835 (*movsf_update1, *movdf_update1): Merge, rename to...
3836 (*mov<mode>_update1): This. Use Pmode. Fix argument to
3837 avoiding_indexed_address_p. Add "size" attribute.
3838 (*movsf_update2, *movdf_update2): Merge, rename to...
3839 (*mov<mode>_update2): This. Ditto.
3840 (*movsf_update3): Use Pmode. Fix argument to
3841 avoiding_indexed_address_p.
3842 (*movsf_update4): Ditto.
3843 (allocate_stack): Simplify condition. Adjust pattern names.
3845 2019-04-17 Jakub Jelinek <jakub@redhat.com>
3848 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
3849 whitespace at the start of target attribute string.
3851 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
3854 * config/rs6000/power9.md: Add store forwarding bypass.
3856 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
3859 * valtrack.c (dead_debug_insert_temp): Reset debug references
3860 to the return value of a call being removed.
3862 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3864 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
3865 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
3866 implement target hook.
3867 (arc_memory_move_cost): New function.
3868 (TARGET_REGISTER_MOVE_COST): Define.
3869 (TARGET_MEMORY_MOVE_COST): Likewise.
3870 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
3871 (MEMORY_MOVE_COST): Likewise.
3873 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3875 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
3876 (sibcall_value_insn): Likewise.
3877 * config/arc/constraints.md (Rs5): Remove.
3879 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3881 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
3882 for last two fake registers.
3883 (arc_conditional_register_usage): Make sure fake frame and arg
3884 pointer regs are in general regs class.
3885 (FRAME_POINTER_MASK): Remove.
3886 (RETURN_ADDR_MASK): Remove.
3887 (arc_must_save_register): Use hard frame regnum.
3888 (frame_restore_reg): Use hard_frame_pointer_rtx.
3889 (arc_save_callee_saves): Likewise.
3890 (arc_restore_callee_saves): Likewise.
3891 (arc_save_callee_enter): Likewise.
3892 (arc_restore_callee_leave): Likewise.
3893 (arc_save_callee_milli): Likewise.
3894 (arc_eh_return_address_location): Likewise.
3895 (arc_check_multi): Use hard frame regnum.
3896 (arc_can_eliminate): Likewise.
3897 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
3898 for register allocator.
3899 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
3900 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
3901 (FRAME_POINTER_REGNUM): Change it to a fake register.
3902 (HARD_FRAME_POINTER_REGNUM): Defined.
3903 (ARG_POINTER_REGNUM): Change it to a new fake register.
3904 (ELIMINABLE_REGS): Update.
3905 (REGISTER_NAMES): Update names.
3906 * config/arc/arc.md (LP_START): Remove.
3908 (shift_si3_loop): Update pattern.
3910 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
3912 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
3913 to avoid delay slot scheduling.
3914 (arc_must_save_register): Don't save SP.
3915 * config/arc/arc.md (stack_tie): Remove.
3916 (UNSPEC_ARC_STKTIE): Likewise.
3918 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
3919 Shiva Chen <shiva0217@gmail.com>
3921 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
3922 code gen with large shift amount.
3924 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
3926 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
3929 2019-04-16 Jakub Jelinek <jakub@redhat.com>
3932 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
3933 print -m64/-mx32/-m32 if it is true.
3934 (ix86_debug_options, ix86_function_specific_print): Pass true as
3935 ADD_ABI_P to ix86_target_string.
3936 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
3937 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
3938 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
3940 PR rtl-optimization/90082
3941 * dce.c (can_delete_call): New function.
3942 (deletable_insn_p, mark_insn): Use it.
3944 PR tree-optimization/90090
3945 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
3947 (is_division_by_square): Likewise. Formatting fix.
3949 2019-04-16 Richard Biener <rguenther@suse.de>
3951 PR tree-optimization/56049
3952 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
3953 equality check if alias-set zero will prevail.
3955 2019-04-15 Jeff Law <law@redhat.com>
3957 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
3958 size and alignment as unsigned.
3960 2019-04-15 Richard Biener <rguenther@suse.de>
3963 * tree-loop-distribution.c (destroy_loop): Preserve correct
3966 2019-04-15 Richard Biener <rguenther@suse.de>
3968 PR tree-optimization/90071
3969 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
3970 abnormal operands from def stmts.
3972 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
3974 PR rtl-optimization/89794
3975 * combine.c (count_auto_inc): New function.
3976 (try_combine): Count how many auto_inc expressions there were in the
3977 original instructions. Ensure we have the same number in the new
3978 instructions. Remove the code that tried to ensure auto_inc side
3979 effects on i1 and i0 are not lost.
3981 2019-04-15 Richard Biener <rguenther@suse.de>
3984 * tree.h (auto_var_p): Declare.
3985 * tree.c (auto_var_p): New function, split out from ...
3986 (auto_var_in_fn_p): ... here.
3987 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
3989 (new_var_info): Initialize it.
3990 (set_uids_in_ptset): Also set the shadow variable uid if required.
3991 (ipa_pta_execute): Postprocess points-to solutions assigning
3992 shadow variable uids for locals that may reach their containing
3993 function recursively.
3994 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
3995 assert but instead check whether the points-to solution is
3998 2019-04-15 Martin Jambor <mjambor@suse.cz>
4001 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4004 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4006 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4008 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4009 Kito Cheng <kito.cheng@gmail.com>
4010 Shiva Chen <shiva0217@gmail.com>
4012 * config/nds32/nds32-md-auxiliary.c
4013 (nds32_legitimize_pic_address): Use new PIC pattern.
4014 (nds32_legitimize_tls_address): Use new TLS pattern.
4015 (nds32_output_symrel): New.
4016 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4017 (nds32_alloc_relax_group_id): Ditto.
4018 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4019 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4021 (nds32_group_tls_insn): Ditto.
4022 (nds32_group_float_insns): Ditto.
4023 * config/nds32/nds32.md (tls_le): New.
4026 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4028 * configure: Add nds32 target for dwarf2 debug_line checking.
4029 * configure.ac: Regenerated.
4031 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4034 * ipa-devirt.c (skip_in_fields_list_p): New.
4035 (odr_types_equivalent_p): Use it.
4037 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4040 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4041 instead of strncmp when checking for thumb and arm. Formatting fixes.
4043 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4045 * doc/install.texi: Document --with-target-system-zlib.
4047 2019-04-12 Martin Sebor <msebor@redhat.com>
4053 * targhooks.c (default_vector_alignment): Avoid assuming
4054 argument fits in SHWI.
4055 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4057 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4059 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4061 PR rtl-optimization/89965
4062 * dce.c: Include rtl-iter.h.
4063 (struct check_argument_load_data): New type.
4064 (check_argument_load): New function.
4065 (find_call_stack_args): Check for loads from stack slots still tracked
4066 in sp_bytes and punt if any is found.
4068 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4070 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4072 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4073 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4075 2019-04-12 Martin Liska <mliska@suse.cz>
4078 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4080 (separate_attrs): Handle multiple 'default's.
4081 (expand_target_clones): Rework error handling code.
4083 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4086 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4087 mode of vector rather than mode of destination for move instruction.
4088 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4089 Use QI inner mode with V16QI vector mode.
4091 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4094 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4095 "invalid %%t operand" in output_operand_lossage message.
4097 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4099 * config/s390/predicates.md (permute_pattern_operand): New
4101 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4102 operand for the permute pattern.
4103 ("*vec_perm<mode>"): New insn definition.
4104 ("bswap<mode>"): Generate the permute pattern operand in the
4105 expander and perform the operand reloads for pre arch13 level
4107 ("*bswap<mode>_emu"): Rename to ...
4108 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4109 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4110 Add the USE operand for the permute pattern.
4111 ("*vec_set_bswap_vec<mode>"): Likewise.
4113 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4116 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4117 and gcc_unreachable if it fails, just call tree_to_uhwi which
4118 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4119 Start warning message with a lower-case letter. Formatting fixes.
4121 PR rtl-optimization/90026
4122 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4123 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4124 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4125 in cfglayout mode, use emit_barrier_after_bb.
4127 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4129 PR rtl-optimization/87763
4130 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4133 2019-04-11 Tom de Vries <tdevries@suse.de>
4135 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4136 max macro using statement expression.
4138 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4140 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4141 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4142 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4143 read_only_private_data_section using xcoff_private_rodata_section_name.
4144 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4146 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4149 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4151 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4153 PR rtl-optimization/89965
4154 * dce.c (sp_based_mem_offset): New function.
4155 (find_call_stack_args): Use sp_based_mem_offset.
4157 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4159 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4161 2019-04-11 Richard Biener <rguenther@suse.de>
4163 PR tree-optimization/90020
4164 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4165 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4166 * tree-ssa-pre.c (compute_avail): Use it to not put
4167 possibly trapping references after a call that might not
4168 return into EXP_GEN.
4169 * gcse.c (compute_hash_table_work): Do not elide
4170 marking a block containing a call if the call might not
4173 2019-04-11 Richard Biener <rguenther@suse.de>
4175 PR tree-optimization/90018
4176 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4177 Test both SLP and interleaving variants.
4179 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4181 * config/s390/8561.md: New file.
4182 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4183 Add arch13 cpu model.
4184 * config/s390/s390-opts.h (enum processor_type): Likewise.
4185 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4186 (s390_get_unit_mask): Likewise.
4187 (s390_is_fpd): Likewise.
4188 (s390_is_fxd): Likewise.
4189 * config/s390/s390.h (s390_tune_attr): Likewise.
4190 * config/s390/s390.md: Include arch13 pipeline description.
4191 * config/s390/s390.opt: Add arch13.
4193 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4195 PR rtl-optimization/87763
4196 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4198 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4200 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4202 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4203 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4204 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4205 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4207 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4209 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4210 "Although" in -fipa-icf documentation.
4212 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4213 of using multiple -g options.
4215 2019-04-10 Martin Liska <mliska@suse.cz>
4217 PR gcov-profile/89959
4218 * doc/gcov.texi: Make documentation of -x option
4221 2019-04-10 Richard Biener <rguenther@suse.de>
4223 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4225 (DR_GROUP_SAME_DR_STMT): Remove.
4226 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4227 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4228 replace with assert.
4229 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4230 (vect_record_grouped_load_vectors): Remove unreachable code.
4232 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4235 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4236 obsolete reference to N.
4238 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4241 * expr.c (store_expr): Set properly size on the MEM passed to
4245 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4246 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4247 translation is needed, and when translation is needed, only append
4248 ... if the string length is hostsz or more bytes long. Avoid using
4251 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4254 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4255 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4257 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4258 differences directly.
4259 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4261 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4263 PR translation/90011
4264 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4266 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4268 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4269 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4270 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4271 trailing space from -gsplit-dwarf diagnostics.
4273 PR tree-optimization/89998
4274 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4275 instead of integer_type_node if possible, don't add ranges if return
4276 type is not compatible with int.
4277 * gimple-fold.c (gimple_fold_builtin_sprintf,
4278 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4281 2019-04-09 Martin Liska <mliska@suse.cz>
4283 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4284 * doc/install.texi: Document the new config.
4286 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4288 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4289 use gimple_expr_type for load and store calls. Skip over the
4290 condition argument in a conditional internal function.
4291 Protect use of TREE_INT_CST_LOW.
4293 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4296 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4297 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4298 trailing period from it too.
4300 2019-04-08 wu yuan <wuyuan5@huawei.com>
4302 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4303 * config/aarch64/aarch64.md : Add "tsv110.md"
4304 * config/aarch64/tsv110.md: New file.
4306 2019-04-08 Richard Biener <rguenther@suse.de>
4308 PR tree-optimization/90006
4309 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4312 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4315 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4317 (fma_root_node): Likewise.
4318 (func_fma_steering): Likewise.
4320 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4322 PR rtl-optimization/89865
4323 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4325 PR rtl-optimization/89865
4326 * config/i386/i386.md
4327 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4328 numbers not to clash with the additional operands[4].
4329 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4330 with extra register copy in the middle.
4332 2019-04-08 Martin Liska <mliska@suse.cz>
4334 PR gcov-profile/89961
4335 * doc/gcov.texi: Document data_file.
4336 * gcov.c (generate_results): Add data_info into JSON output.
4338 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4340 PR tree-optimization/89725
4341 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4342 loop's chrec as invariant symbol.
4343 * tree-chrec.h (chrec_contains_symbols): New parameter.
4344 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4345 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4346 function of loops not in DDR's loop_nest.
4347 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4349 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4352 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4355 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4358 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4359 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4361 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4363 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4364 targetm.fixed_condition_code_regs.
4366 2019-04-05 Richard Biener <rguenther@suse.de>
4370 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4371 debug bind stmts but reset them if they are not valid at the
4374 2019-04-05 Martin Liska <mliska@suse.cz>
4376 PR translation/89936
4377 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4378 order to wrap keywords or arguments.
4379 * collect2.c (main): Likewise.
4380 (scan_prog_file): Likewise.
4381 (scan_libraries): Likewise.
4382 * common/config/riscv/riscv-common.c
4383 (riscv_subset_list::parsing_subset_version): Likewise.
4384 (riscv_subset_list::parse_std_ext): Likewise.
4385 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4387 * config/arm/arm.c (arm_option_override): Likewise.
4388 * config/cris/cris.c (cris_print_operand): Likewise.
4389 * config/darwin-c.c (darwin_pragma_options): Likewise.
4390 (darwin_pragma_unused): Likewise.
4391 (darwin_pragma_ms_struct): Likewise.
4392 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4393 * config/i386/i386.c (print_reg): Likewise.
4394 (ix86_print_operand): Likewise.
4395 * config/i386/xm-djgpp.h: Likewise.
4396 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4397 * config/m32c/m32c.c (m32c_option_override): Likewise.
4398 * config/msp430/msp430.c (msp430_option_override): Likewise.
4399 * config/nds32/nds32.c (nds32_option_override): Likewise.
4400 * config/nvptx/mkoffload.c (main): Likewise.
4401 * config/rx/rx.c (rx_print_operand): Likewise.
4402 (valid_psw_flag): Likewise.
4403 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4404 (vms_pragma_nomember_alignment): Likewise.
4405 (vms_pragma_extern_model): Likewise.
4406 * lto-wrapper.c (compile_offload_image): Likewise.
4407 * omp-offload.c (oacc_parse_default_dims): Likewise.
4408 * symtab.c (symtab_node::verify_base): Likewise.
4409 * tlink.c (recompile_files): Likewise.
4410 (start_tweaking): Likewise.
4411 * tree-profile.c (parse_profile_filter): Likewise.
4413 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4415 PR tree-optimization/89956
4416 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4417 multiple negates of the same value.
4419 2019-04-04 Martin Sebor <msebor@redhat.com>
4423 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4424 have the same precision since the function crashes otherwise.
4425 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4426 has non-zero arguments.
4428 2019-04-04 Martin Sebor <msebor@redhat.com>
4431 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4432 out if the number of arguments is less than expected.
4434 2019-04-04 Jeff Law <law@redhat.com>
4436 PR rtl-optimization/89399
4437 * ree.c (combine_set_extension): Use single_set rather than
4438 digging into PATTERN for items on the candidate list.
4439 (combine_reaching_defs): Likewise.
4441 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4443 PR rtl-optimization/46590
4444 * loop-invariant.c (find_defs): Move df_remove_problem and
4445 df_process_deferred_rescans to move_invariants.
4446 Move df_live_add_problem and df_live_set_all_dirty calls
4448 (move_invariants): Likewise.
4449 (move_loop_invariants): Likewise, making the df_live calls
4450 conditional on -O. Remove the problem again if we added it
4453 2019-04-03 qing zhao <qing.zhao@oracle.com>
4455 PR tree-optimization/89730
4456 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4457 -flive-patching=inline-only-static.
4458 (can_inline_edge_by_limits_p): Add the checking for
4459 -flive-patching=inline-only-static and grant always_inline
4460 even when -flive-patching=inline-only-static is specified.
4462 2019-04-03 Jeff Law <law@redhat.com>
4464 PR rtl-optimization/81025
4465 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4467 2019-04-03 Richard Biener <rguenther@suse.de>
4469 PR tree-optimization/84101
4470 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4471 regs.h for hard_regno_nregs.
4472 (cfun_returns): New helper.
4473 (vect_model_store_cost): When vectorizing a store to a decl
4474 we return and the function ABI returns in a multi-reg location
4475 account for the possible spilling that will happen.
4477 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4479 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4480 displacement addresses for vector mode operands.
4482 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4484 * config/arc/arc.c (GMASK_LEN): Define.
4485 (arc_restore_callee_saves): Restore first blink when
4488 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4490 * doc/extend.texi: Add deprecated comment on sign-return-address
4491 function attribute and add mbranch-protection.
4492 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4494 2019-04-03 Richard Biener <rguenther@suse.de>
4497 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4498 the all target phony.
4500 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4504 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4505 Return false for variable DImode shifts.
4506 (dimode_scalar_chain::compute_convert_gain): Do not handle
4507 register count operand in variable DImode shifts.
4508 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4509 count argument of a variable shift instruction to a vector register.
4510 (dimode_scalar_chain::convert_reg): Remove support to convert
4511 count argument of a variable shift instruction.
4513 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4515 PR rtl-optimization/84206
4516 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4517 iterating over loop headers.
4519 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4521 PR rtl-optimization/85876
4522 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4523 beyond the original fence.
4525 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4527 * config.gcc: Mark spu* targets as deprecated/obsolete.
4529 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4531 * config/s390/s390-builtin-types.def: New builtin function type
4532 definitions. Remove unused types.
4533 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4534 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4535 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4536 overloaded builtins.
4537 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4538 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4539 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4540 (vec_double, vec_signed, vec_unsigned): Define to use the new
4541 overloaded builtins.
4542 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4545 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4547 * config/s390/s390-builtin-types.def: New builtin function type
4549 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4550 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4551 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4552 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4553 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4554 constant definitions.
4555 * config/s390/vecintrin.h (vec_search_string_cc)
4556 (vec_search_string_until_zero_cc): New builtin name definitions.
4557 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4559 ("vec_vstrs<mode>"): New insn definition.
4561 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4563 * config/s390/s390-builtin-types.def: Add new builtin function
4565 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4566 New overloaded builtins.
4567 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4569 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4570 (UNSPEC_VEC_SLDBYTE): ... this.
4571 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4572 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4574 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4575 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4576 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4578 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4580 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4581 New insn definition.
4582 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4583 * config/s390/vector.md (V_HW_HSD): ... here.
4585 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4587 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4588 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4589 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4590 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4591 New insn definitions.
4593 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4595 * config/s390/s390-builtin-types.def: Add new builtin function type.
4596 * config/s390/s390-builtins.def: Add overloaded builtin
4597 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4598 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4599 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4600 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4601 ("eltswap<mode>"): New expander.
4602 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4605 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4607 * config/s390/s390-builtin-types.def: Add new builtin function types.
4608 * config/s390/s390-builtins.def: Add overloaded builtin
4609 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4611 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4612 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4613 ("bswap<mode>"): New expander.
4614 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4616 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4618 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4619 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4620 vector builtin version number in __VEC__.
4622 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4624 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4626 (SFSI): New mode attribute.
4627 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4628 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4630 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4631 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4632 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4633 ("floatsi<mode>2"): Add wcefb instruction.
4635 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4637 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4638 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4640 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4641 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4642 support 32 bit fp-int conversions. Rename to ...
4643 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4644 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4645 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4646 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4649 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4651 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4652 if-then-else constructs if we can use the select instruction.
4653 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4655 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4657 * config/s390/s390.md ("*popcountdi_arch13_cc")
4658 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4660 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4661 Append _z196 to make it ...
4662 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4663 ("popcounthi2_z196"): ... this.
4664 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4665 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4667 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4669 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4670 certain compares for arch13 in order to make use of the condition
4671 code result produced by the new instructions.
4672 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4673 nxrk, and nxgrk instruction patterns.
4674 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4675 (inv_no): Add new code iterator together with some attributes.
4676 ("*andc_split_<mode>"): Disable splitter for arch13.
4677 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4678 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4679 ("*<ANDOR:bitops_name>c<GPR:mode>")
4680 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4681 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4682 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4683 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4685 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4687 * common/config/s390/s390-common.c (processor_flags_table): New
4689 * config.gcc: Support arch13 with the --with-arch= configure flag.
4690 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4691 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4692 * config/s390/s390.c (s390_get_sched_attrmask)
4693 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4694 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4695 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4696 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4697 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4699 * config/s390/s390.opt: Support arch13 as processor type in
4700 command line options.
4702 2019-04-02 Martin Liska <mliska@suse.cz>
4704 PR translation/89912
4705 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4706 Fix param description of graphite-max-arrays-per-scop.
4708 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4710 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4711 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4712 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4714 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4716 PR rtl-optimization/85412
4717 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4718 sel_sched_region_1, not after.
4720 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4722 PR rtl-optimization/86928
4723 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4724 compute_live if necessary.
4725 (sel_redirect_edge_and_branch): Likewise.
4727 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4729 PR rtl-optimization/89865
4730 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4731 register if it is a part of small class.
4733 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4735 PR rtl-optimization/87273
4736 * sel-sched-ir.c (merge_fences): Remove assert.
4738 2019-04-01 Richard Biener <rguenther@suse.de>
4740 PR tree-optimization/46590
4741 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4742 (dom_walker::m_reachability): Add in place of...
4743 (dom_walker::m_skip_unreachable_blocks): ...this.
4744 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4745 Move complex initialization ...
4746 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4747 lazily and initialize edge flags on each invocation.
4748 (dom_walker::bb_reachable): Use m_reachability.
4750 2019-04-01 Martin Liska <mliska@suse.cz>
4753 * opt-suggestions.c (option_proposer::build_option_suggestions):
4754 Add variant without any argument in order to provide better
4757 2019-04-01 Richard Biener <rguenther@suse.de>
4760 * gimple.c: Include langhooks.h.
4761 (gimple_get_alias_set): Treat enumeral types as the underlying
4764 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4765 Eric Botcazou <ebotcazou@adacore.com>
4767 PR rtl-optimization/89862
4768 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4769 that operates on the full registers for WORD_REGISTER_OPERATIONS
4772 2019-03-29 Jim Wilson <jimw@sifive.com>
4774 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4775 Clear MASK_RVC and then set if C subset supported.
4777 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4780 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4781 non-addressable complit into its initializer if it is volatile.
4783 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4785 * opts-common.c (integral_argument): Set errno properly in one case.
4787 2019-03-29 Martin Liska <mliska@suse.cz>
4789 * doc/invoke.texi: Remove -Wchkp from documentation.
4791 2019-03-29 Martin Liska <mliska@suse.cz>
4793 * dbgcnt.c (print_limit_reach): New function.
4796 2019-03-29 Martin Liska <mliska@suse.cz>
4798 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
4799 (dbg_cnt_process_opt): Parse first tokens aas
4800 dbg_cnt_process_single_pair is also using strtok.
4802 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4804 PR rtl-optimization/87485
4805 * function.c (expand_function_end): Move stack_protect_epilogue
4806 before loading of return value into hard register(s).
4808 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4811 * tree-inline.h (struct copy_body_data): Add
4812 dont_remap_vla_if_no_change flag.
4813 * tree-inline.c (remap_type_3, remap_type_2): New functions.
4814 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
4815 and remap_type_2 returns false.
4816 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
4817 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
4818 only from where it is copied to nested contexts.
4820 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4823 * config/i386/i386.md (RMW operation with LEA peephole):
4824 Use LEAMODE mode attribute instead of SWI mode iterator for
4827 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
4830 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
4831 Also process XEXP (src, 0) of a shift insn.
4833 2019-03-28 David Malcolm <dmalcolm@redhat.com>
4836 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
4837 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
4839 2019-03-28 Jakub Jelinek <jakub@redhat.com>
4841 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
4843 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
4844 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
4845 immediately after first one with df_analyze in between, but rather
4846 process all bbs, queueing ones that need second pass in a worklist,
4847 df_analyze, process queued debug insn changes and if second pass is
4848 needed, process bbs from worklist, df_analyze, process queued debug
4851 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
4852 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
4853 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
4855 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
4858 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
4861 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
4864 * config/i386/i386.c (ix86_function_value_1): Call the newly added
4865 function for 32-bit MS_ABI.
4866 (function_value_ms_32): New function.
4868 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
4870 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
4871 (movdi): Call gen_movdi_symbol_save_scc.
4872 (gen_movdi_symbol_save_scc): New insn and split.
4874 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
4876 PR rtl-optimization/89313
4877 * function.c (matching_constraint_num): New static function.
4878 (match_asm_constraints_1): Use it. Fixup white space and comment.
4879 Don't replace inputs with non-matching constraints which conflict
4880 with early clobber outputs.
4882 2019-03-27 Jeff Law <law@redhat.com>
4885 PR rtl-optimization/87761
4886 PR rtl-optimization/89826
4887 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
4889 (pass_cprop_hardreg::execute): Call df_analyze after adding the
4890 note problem to get REG_DEAD/REG_UNUSED notes updated.
4892 2019-03-27 Richard Biener <rguenther@suse.de>
4894 PR tree-optimization/89463
4895 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
4896 queue edges to remove.
4897 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
4898 dead stmts. Delay edge removal until PHIs are removed to
4899 make debug-stmt creation not confused by seemingly degenerate
4902 2019-03-27 Alan Modra <amodra@gmail.com>
4904 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
4906 * config/rs6000/darwin.h: Likewise.
4907 * config/rs6000/rs6000.c: Likewise.
4909 2019-03-27 Alan Modra <amodra@gmail.com>
4911 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
4912 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
4914 2019-03-26 Andrew Waterman <andrew@sifive.com>
4915 Jim Wilson <jimw@sifive.com>
4917 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
4918 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
4919 (generic_idivdi, generic_fmul_single, generic_fmul_double)
4920 (generic_fdiv, generic_fsqrt): Add check for generic tune.
4921 (generic_alu): Add auipc to type list.
4922 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
4923 (riscv_microarchitecture): Declare.
4924 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
4925 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
4927 (riscv_microarchitecture): New.
4928 (sifive_7_tune_info): New.
4929 (riscv_cpu_info_table): Add microarchitecture value for rocket and
4930 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
4932 (riscv_store_data_bypass_p): New.
4933 (riscv_option_override): Set riscv_microarchitecture from
4934 cpu->microarchitecture.
4935 * config/riscv/riscv.md: Include sifive-7.md.
4938 (auipc<mode>): Change type to auipc.
4939 (restore_stack_nonlocal): New.
4940 * config/riscv/sifive-7.md: New.
4941 * doc/invoke.texi (RISC-V Options): Update mtune docs.
4943 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
4946 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
4947 Also process XEXP (src, 0) of a shift insn.
4949 2019-03-26 Richard Biener <rguenther@suse.de>
4951 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
4952 (copy_debug_stmt): Likewise.
4953 (expand_call_inline): Likewise.
4954 (copy_bb): Avoid redundant lookup & set of gimple_block.
4955 * gimple-low.c (lower_gimple_return): Likewise.
4956 (lower_builtin_setjmp): Likewise.
4958 2019-03-26 Jakub Jelinek <jakub@redhat.com>
4960 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
4961 is constant 0, turn into static const data member initialized to false.
4962 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
4963 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
4965 2019-03-26 Jason Merrill <jason@redhat.com>
4966 Jakub Jelinek <jakub@redhat.com>
4968 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
4970 (mem_alloc_description::release_object_overhead): Fix comment typos.
4971 * hash-table.h (hash_table::~hash_table): Call
4972 release_instance_overhead only if m_entries is non-NULL, otherwise
4973 call unregister_descriptor.
4975 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
4977 PR tree-optimization/81740
4978 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
4979 In case of outer loop vectorization, check for backward dependence
4980 at the inner loop if outer loop dependence is reversed.
4982 2019-03-26 Alan Modra <amodra@gmail.com>
4984 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
4985 rs6000_vector_mem init. Correct wI and wJ comment.
4987 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
4989 PR rtl-optimization/88347
4990 PR rtl-optimization/88423
4991 * sched-deps.c (sched_analyze_insn): Take into account that for
4992 tablejumps the barrier appears after a label and a jump_table_data.
4994 2019-03-25 Martin Sebor <msebor@redhat.com>
4997 * c-common.c (check_user_alignment): Rename local. Correct maximum
4998 alignment in diagnostic. Avoid assuming argument fits in SHWI,
4999 convert it to UHWI when it fits.
5001 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5004 * dwarf2out.c (premark_used_variables): New function.
5005 (prune_unused_types_walk): Do not mark not premarked external
5007 (prune_unused_types): Call premark_used_variables.
5009 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5011 PR rtl-optimization/89676
5012 * lra-constraints.c (curr_insn_transform): Do match reload for
5013 early clobbers when the match was successful only for different
5016 2019-03-25 Martin Sebor <msebor@redhat.com>
5018 * doc/extend.texi (Common Type Attributes): Document vector_size.
5019 (Common Variable Attributes): Mention size constraint. Correct
5021 (Vector Extensions): Use @dfn when defining bas type. Clarify
5022 base type and size constraints.
5024 2019-03-25 Richard Biener <rguenther@suse.de>
5026 PR tree-optimization/89789
5027 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5028 changes from non-undefined back to undefined.
5030 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5032 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5033 heap string and a gc string, but since this variable is unknown to
5034 ggc the gc string might get reused and corrupted. Fixed by always
5035 using a heap string.
5037 2019-03-25 Richard Biener <rguenther@suse.de>
5039 PR tree-optimization/89779
5040 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5041 to remove IV defs, delay actual removal.
5042 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5043 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5044 very end, properly also reset loop control IV information.
5046 2019-03-25 Richard Biener <rguenther@suse.de>
5048 PR tree-optimization/89802
5049 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5050 move EH data to folded stmt.
5052 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5054 * config/s390/s390-builtin-types.def: Remove few unused types and
5055 fix sort order for others.
5057 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5059 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5060 expected and found types with -mdebug during builtin matching.
5062 2019-03-25 Richard Biener <rguenther@suse.de>
5065 * fold-const.c (operand_equal_p): Revert last change with
5068 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5070 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5071 notes for the result of the __tls_get_addr calls.
5072 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5074 2019-03-24 Jeff Law <law@redhat.com>
5076 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5078 PR rtl-optimization/87761
5079 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5080 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5082 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5083 rescans. Reprocess blocks as needed, calling df_analyze before
5084 reprocessing. Always call df_analyze before fixing up debug bind
5087 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5089 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5092 2019-03-22 Andrew Pinski <apinski@marvell.com>
5094 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5095 attrribute for uxtw.
5097 2019-03-26 Jeff Law <law@redhat.com>
5099 PR rtl-optimization/87761
5100 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5101 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5102 (mips_split_move): Accept new INSN argument. Try to forward SRC
5103 into the next instruction.
5104 (mips_split_move_insn): Pass INSN through to mips_split_move.
5106 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5108 PR rtl-optimization/89676
5109 * lra-constraints.c (curr_insn_transform): Do match reload for
5110 early clobbers even if the match was successful.
5112 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5115 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5117 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5119 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5121 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5123 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5124 <avx512>_fmsub_<mode>_mask3<round_name>,
5125 <avx512>_fnmadd_<mode>_mask3<round_name>,
5126 <avx512>_fnmsub_<mode>_mask3<round_name>,
5127 avx512f_vmfmadd_<mode>_mask3<round_name>,
5128 avx512f_vmfmsub_<mode>_mask3<round_name>,
5129 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5130 instead of register_operand and %v instead of v for match_operand 1.
5131 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5132 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5133 <round_nimm_predicate> instead of register_operand and %v instead of v
5134 for match_operand 1.
5136 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5137 <avx512>_fmadd_<mode>_mask3<round_name>,
5138 <avx512>_fmsub_<mode>_mask<round_name>,
5139 <avx512>_fmsub_<mode>_mask3<round_name>,
5140 <avx512>_fnmadd_<mode>_mask<round_name>,
5141 <avx512>_fnmadd_<mode>_mask3<round_name>,
5142 <avx512>_fnmsub_<mode>_mask<round_name>,
5143 <avx512>_fnmsub_<mode>_mask3<round_name>,
5144 <avx512>_fmaddsub_<mode>_mask<round_name>,
5145 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5146 <avx512>_fmsubadd_<mode>_mask<round_name>,
5147 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5148 <round_nimm_predicate> instead of nonimmediate_operand.
5149 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5150 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5151 Use register_operand instead of <round_nimm_predicate> for the
5152 operand that needs to match output.
5153 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5154 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5155 Likewise. Formatting fixes.
5158 * config/i386/i386.c (enum ix86_builtins): Remove
5159 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5160 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5161 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5162 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5163 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5164 __builtin_ia32_vfmsubss3_mask3): New builtins.
5165 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5166 avx512f_vmfmadd_<mode>_mask3<round_name>,
5167 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5168 *avx512f_vmfmsub_<mode>_mask<round_name>,
5169 avx512f_vmfmsub_<mode>_mask3<round_name>,
5170 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5171 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5172 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5173 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5174 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5175 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5176 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5177 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5178 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5179 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5180 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5181 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5182 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5183 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5184 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5185 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5186 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5187 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5188 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5189 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5190 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5191 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5192 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5193 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5194 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5195 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5196 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5197 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5199 2019-03-21 Martin Sebor <msebor@redhat.com>
5201 PR tree-optimization/89350
5202 * builtins.c (compute_objsize): Also ignore offsets whose upper
5204 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5205 (builtin_memref::builtin_memref): Initialize new member.
5206 Allow EXPR to be null.
5207 (builtin_memref::extend_offset_range): Replace local with a member.
5208 Avoid assuming pointer offsets are unsigned.
5209 (builtin_memref::set_base_and_offset): Determine base object
5210 before computing offset range.
5211 (builtin_access::builtin_access): Handle memset.
5212 (builtin_access::generic_overlap): Replace local with a member.
5213 (builtin_access::strcat_overlap): Same.
5214 (builtin_access::overlap): Same.
5215 (maybe_diag_overlap): Same.
5216 (maybe_diag_access_bounds): Same.
5217 (wrestrict_dom_walker::check_call): Handle memset.
5218 (check_bounds_or_overlap): Same.
5220 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5221 Jakub Jelinek <jakub@redhat.com>
5224 * tree.c (fld_type_variant, fld_incomplete_type_of,
5225 fld_process_array_type): Call fld->pset.add and don't call
5226 add_tree_to_fld_list if it returns true.
5227 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5228 non-marked types from TYPE_NEXT_VARIANT list.
5229 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5231 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5233 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5234 to false, if true, don't alloc_entries during construction, but defer
5235 it to the first method that needs m_entries allocated.
5236 (hash_table::hash_table, hash_table::~hash_table,
5237 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5238 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5239 hash_table::clear_slot, hash_table::traverse_noresize,
5240 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5241 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5243 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5244 NO_INSERT instead of find_with_hash.
5245 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5246 hash_set::m_table): Add Lazy to template params of hash_table.
5247 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5248 * attribs.c (test_attribute_exclusions): Likewise.
5249 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5250 hash_set. Add tests for hash_set with Lazy = true.
5252 2019-03-21 Richard Biener <rguenther@suse.de>
5254 PR tree-optimization/89779
5255 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5256 checks with respect to released SSA names now having error_mark_node
5258 * fold-const.c (operand_equal_p): Likewise.
5260 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5263 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5265 (s390_optimize_register_info): Use global_not_special_regno_p to
5266 check for global regs.
5268 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5271 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5272 update this_alternative nor this_alternative_set.
5274 2019-03-19 Jim Wilson <jimw@sifive.com>
5277 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5278 align, size, offset. Use them to handle a BLKmode reference. Update
5280 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5282 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5284 PR rtl-optimization/89768
5285 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5287 (unroll_loop_runtime_iterations): Likewise.
5289 2019-03-19 Martin Sebor <msebor@redhat.com>
5291 PR tree-optimization/89644
5292 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5293 rather than endptr as an indicator of nul-termination.
5295 PR tree-optimization/89644
5296 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5297 arrays in determining sequence sizes in strncpy and stpncpy.
5299 2019-03-19 Martin Liska <mliska@suse.cz>
5302 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5303 unlikely_edges if there's an edge that belongs to both these sets.
5305 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5308 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5309 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5310 go via a stack temporary.
5312 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5315 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5316 instead of gen_rtx_SUBREG.
5317 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5319 2019-03-19 Richard Biener <rguenther@suse.de>
5322 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5324 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5328 * tree.c (free_lang_data_in_decl): Do not free context of C++
5331 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5334 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5335 subs for the first alternative except when operands[3] is 1.
5338 * gimplify.c (gimplify_asm_expr): For output argument with
5339 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5342 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5344 PR rtl-optimization/89753
5345 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5346 explicit unrolling factor even more robust.
5348 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5351 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5352 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5353 signed zeros, do another copysign after the compensation.
5355 2019-03-18 Martin Sebor <msebor@redhat.com>
5357 PR tree-optimization/89720
5358 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5359 more conservatively, the same as anti-range.
5361 2019-03-18 Richard Biener <rguenther@suse.de>
5364 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5365 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5366 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5367 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5369 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5371 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5372 Extend queue to 1024 entries.
5373 Add "consumed" field.
5374 (gomp_print_output): Remove print_index parameter.
5375 Add final parameter.
5376 Change limit to unsigned.
5377 Use consumed field to implement circular buffer.
5378 Detect interrupted print in final pass.
5379 Flush output at the end.
5380 (run): Update gomp_print_output usage.
5381 (main): Initialize kernargs->output_data.consumed.
5383 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5385 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5386 calculation of the minimum number of scalar iterations for
5387 fully-predicated loops.
5389 2019-03-18 Martin Jambor <mjambor@suse.cz>
5391 PR tree-optimization/89546
5392 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5393 any propagation to its children took place.
5395 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5398 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5399 parameter, and make use of it.
5400 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5402 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5404 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5405 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5406 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5407 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5408 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5409 match what the ops is doing.
5410 (push_multi_fp_blink): Likewise.
5411 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5412 compiling for size and elf target.
5413 (arc_save_callee_enter): Adjust note to match what enter/leave
5416 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5418 * config/arc/arc.md (tst_movb): Fix constraint.
5420 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5422 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5424 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5426 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5427 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5428 reg_alloc_order references.
5429 (size_alloc_order): Define.
5430 (arc_adjust_reg_alloc_order): New function.
5431 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5433 (ADJUST_REG_ALLOC_ORDER): Define.
5434 (HONOR_REG_ALLOC_ORDER): Likewise.
5436 2019-03-18 Richard Biener <rguenther@suse.de>
5439 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5440 loads and stores a bit more.
5442 2019-03-18 Richard Biener <rguenther@suse.de>
5445 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5446 load pessimization to stores as well.
5448 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5451 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5452 successor, use NULL as its av set.
5454 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5456 PR rtl-optimization/89721
5457 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5459 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5462 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5463 When handling vec_extract, use modular arithmetic to allow
5464 constant selectors greater than vector length.
5465 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5466 V1TImode vectors to have constant selector values greater than 0.
5467 Use modular arithmetic to compute vector index.
5468 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5469 index for in-memory vectors. Correct code generation for
5470 in-register vectors.
5471 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5474 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5478 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5481 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5484 * tree.c (inchash::add_expr): Strip any location wrappers.
5485 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5486 after hash verification.
5489 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5490 SIGN_EXTEND and ZERO_EXTEND.
5492 2019-03-14 Jason Merrill <jason@redhat.com>
5493 Jakub Jelinek <jakub@redhat.com>
5495 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5496 than if is_empty (*slot).
5497 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5498 existing elt and for elt removal.
5499 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5500 of already removed elt.
5502 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5505 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5508 2019-03-14 Martin Liska <mliska@suse.cz>
5511 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5513 2019-03-14 Richard Biener <rguenther@suse.de>
5516 * config/i386/i386.c (make_resolver_func): Properly set
5517 DECL_CONTEXT on the RESULT_DECL.
5518 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5520 2019-03-14 Richard Biener <rguenther@suse.de>
5522 * gimple-pretty-print.c: Include cfgloop.h.
5523 (dump_gimple_phi): Adjust.
5524 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5525 (pp_cfg_jump): Adjust.
5526 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5527 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5528 (lower_phi_internal_fn): Remove.
5529 (verify_gimple_call): Remove IFN_PHI special-casing.
5530 (dump_function_to_file): Dump IL state.
5531 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5532 done to deal with PHI nodes being present in non-SSA state.
5534 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5537 * multiple_target.c (create_dispatcher_calls): Change
5538 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5539 In the node->iterate_referring loop, push *ref rather than ref, call
5540 ref->remove_reference () and always pass 0 to iterate_referring.
5542 PR rtl-optimization/89679
5543 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5544 would contain a paradoxical SUBREG.
5546 2019-03-14 Richard Biener <rguenther@suse.de>
5548 PR tree-optimization/89710
5549 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5552 2019-03-14 Martin Liska <mliska@suse.cz>
5554 * coverage.c (coverage_begin_function): Stream also
5556 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5557 documentation about function declaration location.
5558 * gcov-dump.c (tag_function): Print whole range
5559 of function declaration.
5560 * gcov.c (struct function_info): Add end_column field.
5561 (function_info::function_info): Initialize it.
5562 (output_json_intermediate_file): Output {start,end}_column
5564 (read_graph_file): Read end_column.
5566 2019-03-14 Richard Biener <rguenther@suse.de>
5569 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5570 that the access types are similar.
5572 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5574 PR tree-optimization/89703
5575 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5576 aren't compatible also with builtin_decl_explicit. Check pure
5577 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5578 and BUILT_IN_STPNCPY{,_CHK}.
5580 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5583 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5584 addr32 prefix to VSIB address for X32.
5585 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5587 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5588 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5589 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5590 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5591 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5592 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5593 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5594 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5595 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5596 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5597 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5598 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5599 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5600 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5601 (*avx512f_scatterdi<mode>): Likewise.
5603 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5606 * lra-constraints.c (inherit_in_ebb): Update
5607 potential_reload_hard_regs along with live_hard_regs.
5609 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5612 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5614 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5616 2019-03-13 Martin Sebor <msebor@redhat.com>
5618 PR tree-optimization/89662
5619 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5622 2019-03-13 Richard Biener <rguenther@suse.de>
5625 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5626 throw FP expressions at tree-affine.
5628 2019-03-14 Richard Biener <rguenther@suse.de>
5630 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5631 dump negative integer constants using _Literal (type) -num.
5633 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5635 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5636 nonlocal_value member.
5639 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5640 (ipa_simd_modify_function_body): Handle PHIs.
5642 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5644 * config/s390/s390.c (s390_option_override_internal): Use more
5645 aggressive inlining parameters.
5647 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5649 * config/s390/3906.md: New file.
5650 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5651 (LONGRUNNING_THRESHOLD): Remove.
5652 (MAX_SCHED_MIX_SCORE): Decrease.
5653 (MAX_SCHED_MIX_DISTANCE): Decrease.
5654 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5655 (struct s390_sched_state): New struct to hold scheduling state.
5656 (S390_SCHED_STATE_NORMAL): Remove.
5657 (S390_SCHED_STATE_CRACKED): Remove.
5658 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5659 (s390_get_sched_attrmask): Use new attribute.
5660 (s390_get_unit_mask): Use new units.
5661 (s390_is_fpd): New function.
5662 (s390_is_fxd): New function.
5663 (s390_is_longrunning): New function.
5664 (s390_sched_score): Use new functions.
5665 (s390_sched_reorder): Likewise.
5666 (s390_sched_variable_issue): Rework and use new functions.
5667 (s390_sched_init): Use new functions.
5668 * config/s390/s390.h (s390_tune_attr): Add z14.
5669 * config/s390/s390.md: Add z14.
5671 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5673 * config/s390/2964.md: Update pipeline description.
5674 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5675 (LONGRUNNING_THRESHOLD): Remove.
5676 (LATENCY_FACTOR): Remove.
5677 (s390_get_unit_mask): Add unit.
5678 (s390_sched_score): Use fxd/fpd.
5679 (s390_sched_variable_issue): Use fxd/fpd.
5681 2019-03-12 Martin Liska <mliska@suse.cz>
5683 * config/i386/i386.c: Reword an error message.
5685 2019-03-12 Martin Jambor <mjambor@suse.cz>
5687 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5688 terminate with newline.
5690 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5693 * config/s390/s390.md (tabort): Use %wd instead of
5694 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5695 letters and periods.
5696 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5697 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5701 * builtins.c (expand_builtin_int_roundingfn,
5702 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5703 gcc_unreachable if validate_arglist fails.
5705 2019-03-12 Richard Biener <rguenther@suse.de>
5707 PR tree-optimization/89664
5708 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5709 free the occurance tree after the early out.
5711 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5715 * vr-values.c (vr_values::update_value_range): If
5716 old_vr->varying_p (), don't update it, make new_vr also VARYING
5719 2019-03-11 Martin Liska <mliska@suse.cz>
5721 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5722 Fix double string quoting.
5724 2019-03-11 Martin Liska <mliska@suse.cz>
5726 * collect-utils.c (collect_wait): Wrap apostrophes
5727 in gcc internal format with %'.
5728 * collect2.c (main): Likewise.
5729 (scan_prog_file): Likewise.
5730 (scan_libraries): Likewise.
5731 * config/i386/i386.c (ix86_expand_call): Likewise.
5732 (ix86_handle_interrupt_attribute): Likewise.
5733 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5734 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5735 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5736 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5737 * symtab.c (symtab_node::verify_base): Likewise.
5738 * tree-cfg.c (verify_gimple_label): Likewise.
5739 * tree.c (verify_type_variant): Likewise.
5741 2019-03-11 Martin Liska <mliska@suse.cz>
5743 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5744 in a string format message and fix GNU coding style.
5745 (expand_builtin_set_thread_pointer): Likewise.
5746 * common/config/aarch64/aarch64-common.c
5747 (aarch64_rewrite_selected_cpu): Likewise.
5748 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5749 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5750 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5751 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5752 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5753 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5754 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5755 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5756 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5757 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5759 * common/config/riscv/riscv-common.c
5760 (riscv_subset_list::parsing_subset_version): Likewise.
5761 (riscv_subset_list::parse_std_ext): Likewise.
5762 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5763 (riscv_subset_list::parse): Likewise.
5764 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5765 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5766 (aarch64_override_options_internal): Likewise.
5767 (aarch64_validate_mcpu): Likewise.
5768 (aarch64_validate_march): Likewise.
5769 (aarch64_validate_mtune): Likewise.
5770 (aarch64_override_options): Likewise.
5771 * config/alpha/alpha.c (alpha_option_override): Likewise.
5772 * config/arc/arc.c (arc_init): Likewise.
5773 (parse_mrgf_banked_regs_option): Likewise.
5774 (arc_override_options): Likewise.
5775 (arc_expand_builtin_aligned): Likewise.
5776 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5777 (arm_expand_builtin): Likewise.
5778 * config/arm/arm.c (arm_option_check_internal): Likewise.
5779 (arm_configure_build_target): Likewise.
5780 (arm_option_override): Likewise.
5781 (arm_options_perform_arch_sanity_checks): Likewise.
5782 (arm_handle_cmse_nonsecure_entry): Likewise.
5783 (arm_handle_cmse_nonsecure_call): Likewise.
5784 (arm_tls_referenced_p): Likewise.
5785 (thumb1_expand_prologue): Likewise.
5786 * config/avr/avr.c (avr_option_override): Likewise.
5787 * config/bfin/bfin.c (bfin_option_override): Likewise.
5788 * config/c6x/c6x.c (c6x_option_override): Likewise.
5789 * config/cr16/cr16.c (cr16_override_options): Likewise.
5790 * config/cris/cris.c (cris_option_override): Likewise.
5791 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5792 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5793 * config/darwin.c (darwin_override_options): Likewise.
5794 * config/frv/frv.c (frv_expand_builtin): Likewise.
5795 * config/h8300/h8300.c (h8300_option_override): Likewise.
5796 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
5797 (ix86_option_override_internal): Likewise.
5798 (warn_once_call_ms2sysv_xlogues): Likewise.
5799 (ix86_expand_prologue): Likewise.
5800 (split_stack_prologue_scratch_regno): Likewise.
5801 (ix86_warn_parameter_passing_abi): Likewise.
5802 * config/ia64/ia64.c (fix_range): Likewise.
5803 * config/m68k/m68k.c (m68k_option_override): Likewise.
5804 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
5805 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
5806 (mips_set_compression_mode): Likewise.
5807 * config/mmix/mmix.c (mmix_option_override): Likewise.
5808 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
5809 * config/msp430/msp430.c (msp430_option_override): Likewise.
5810 * config/nds32/nds32.c (nds32_option_override): Likewise.
5811 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
5812 (nios2_option_override): Likewise.
5813 (nios2_expand_custom_builtin): Likewise.
5814 * config/nvptx/mkoffload.c (main): Likewise.
5815 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
5816 * config/pa/pa.c (fix_range): Likewise.
5817 (pa_option_override): Likewise.
5818 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
5819 (riscv_option_override): Likewise.
5820 * config/rl78/rl78.c (rl78_option_override): Likewise.
5821 * config/rs6000/aix61.h: Likewise.
5822 * config/rs6000/aix71.h: Likewise.
5823 * config/rs6000/aix72.h: Likewise.
5824 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
5825 * config/rs6000/freebsd64.h: Likewise.
5826 * config/rs6000/linux64.h: Likewise.
5827 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
5828 (rs6000_expand_zeroop_builtin): Likewise.
5829 (rs6000_expand_mtfsb_builtin): Likewise.
5830 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
5831 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
5832 (rs6000_invalid_builtin): Likewise.
5833 (rs6000_expand_split_stack_prologue): Likewise.
5834 * config/rs6000/rtems.h: Likewise.
5835 * config/rx/rx.c (valid_psw_flag): Likewise.
5836 (rx_expand_builtin): Likewise.
5837 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
5838 * config/s390/s390.c (s390_expand_builtin): Likewise.
5839 (s390_function_profiler): Likewise.
5840 (s390_option_override_internal): Likewise.
5841 (s390_option_override): Likewise.
5842 * config/sh/sh.c (sh_option_override): Likewise.
5843 (sh_builtin_saveregs): Likewise.
5844 (sh_fix_range): Likewise.
5845 * config/sh/vxworks.h: Likewise.
5846 * config/sparc/sparc.c (sparc_option_override): Likewise.
5847 * config/spu/spu.c (spu_option_override): Likewise.
5848 (fix_range): Likewise.
5849 * config/visium/visium.c (visium_option_override): Likewise.
5850 (visium_handle_interrupt_attr): Likewise.
5851 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
5852 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
5853 (dbg_cnt_process_opt): Likewise.
5854 * dwarf2out.c (output_dwarf_version): Likewise.
5855 * except.c (expand_eh_return): Likewise.
5856 * gcc.c (defined): Likewise.
5857 (driver_handle_option): Likewise.
5858 (process_command): Likewise.
5859 (compare_files): Likewise.
5860 (driver::prepare_infiles): Likewise.
5861 (driver::do_spec_on_infiles): Likewise.
5862 (driver::maybe_run_linker): Likewise.
5863 * omp-offload.c (oacc_parse_default_dims): Likewise.
5864 * opts-global.c (handle_common_deferred_options): Likewise.
5865 * opts.c (parse_sanitizer_options): Likewise.
5866 (common_handle_option): Likewise.
5867 (enable_warning_as_error): Likewise.
5868 * passes.c (enable_disable_pass): Likewise.
5869 * plugin.c (parse_plugin_arg_opt): Likewise.
5870 (default_plugin_dir_name): Likewise.
5871 * targhooks.c (default_expand_builtin_saveregs): Likewise.
5872 (default_pch_valid_p): Likewise.
5873 * toplev.c (init_asm_output): Likewise.
5874 (process_options): Likewise.
5875 (toplev::run_self_tests): Likewise.
5876 * tree-cfg.c (verify_gimple_call): Likewise.
5877 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
5878 (tree_inlinable_function_p): Likewise.
5879 * var-tracking.c (vt_find_locations): Likewise.
5881 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
5883 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
5884 only on the else branch.
5886 2019-03-11 Martin Liska <mliska@suse.cz>
5888 * gcov.c (output_intermediate_json_line): Print function
5890 (output_json_intermediate_file): Add new argument.
5891 * doc/gcov.texi: Document the change.
5893 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
5895 PR rtl-optimization/89588
5896 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5897 explicit unrolling factor more robust.
5899 2019-03-11 Richard Biener <rguenther@suse.de>
5901 PR tree-optimization/89649
5902 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
5903 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
5904 on the prolog and epilog loops.
5905 (vect_loop_versioning): Return copy of loop.
5906 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
5907 on the non-vectorized version of the loop.
5909 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
5912 * config/i386/sse.md (*vec_extractv2di_0_sse):
5913 Add (=r,x) alternative and corresponding splitter.
5915 2019-03-10 Martin Jambor <mjambor@suse.cz>
5917 PR tree-optimization/85762
5918 PR tree-optimization/87008
5919 PR tree-optimization/85459
5920 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
5921 it points to if there is a type changing MEM_REF. Adjust all callers.
5922 (build_accesses_from_assign): Disable total scalarization if
5923 contains_vce_or_bfcref_p returns true through the new parameter, for
5926 2019-03-09 Jakub Jelinek <jakub@redhat.com>
5929 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
5930 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
5933 * common.opt (fdiagnostics-show-labels,
5934 fdiagnostics-show-line-numbers, fdiagnostics-format=,
5935 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
5936 gas-locview-support, ginline-points, ginternal-reset-location-views):
5937 Terminate description text with a dot.
5938 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
5939 * config/mcore/mcore.opt (m210, m340): Likewise.
5940 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
5941 mnops=): Start description text with a capital letter.
5942 * config/arc/arc.opt (msize-level=): Likewise.
5943 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
5944 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
5946 * config/ft32/ft32.opt (msim): Likewise.
5947 (mft32b, mcompress): Likewise. Terminate description text with a dot.
5948 (mnodiv, mnopm): Terminate description text with a dot.
5949 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
5951 * config/i386/i386.opt (prefer_vector_width, instrument_return):
5953 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
5956 PR rtl-optimization/89634
5957 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
5958 are modified in BB_END (e->src) instruction.
5960 2019-03-08 David Malcolm <dmalcolm@redhat.com>
5963 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
5964 messages more amenable to translation, and improve wording.
5966 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
5968 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
5969 ud- and du-chains between phases.
5971 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
5974 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
5975 instead of POLY_INT_CST.
5977 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
5979 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
5982 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
5987 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
5988 (_mm_storeu_si64): Ditto.
5990 2019-03-08 Martin Liska <mliska@suse.cz>
5993 * config/i386/i386.c (ix86_option_override_internal): Disable
5994 jump tables when retpolines are used.
5996 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
5999 * ipa-split.c (execute_split_functions): Do not split
6000 'noinline' or 'section' function.
6002 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6005 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6006 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6007 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6010 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6011 from diagnostics. Formatting fixes.
6014 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6015 warn_odr diagnostics.
6018 * lra-constraints.c (process_alt_operands): Avoid one space before
6019 " at the end of line and another after " on another line in a string
6021 * attribs.c (handle_dll_attribute): Likewise.
6022 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6024 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6025 warning_at or inform messages in G_() if there is no ?:.
6027 PR tree-optimization/89550
6028 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6029 returned true. Formatting fixes.
6030 (expand_builtin_strnlen): Formatting fixes.
6031 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6032 if warning_at returned true.
6033 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6035 2019-03-08 Richard Biener <rguenther@suse.de>
6038 * cfgloop.h (struct loop): Add owned_clique field.
6039 * cfgloopmanip.c (copy_loop_info): Copy it.
6040 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6042 * tree-inline.c (copy_loops): Remap owned_clique.
6043 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6044 * lto-streamer-out.c (output_cfg): Likewise.
6046 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6049 * config/darwin.c: Include intl.h.
6050 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6051 composing the message out of two separate parts.
6053 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6056 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6057 doesn't start with a capital letter and doesn't end with a dot.
6058 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6059 with a capital letter.
6060 (ix86_mangle_function_version_assembler_name): Likewise.
6061 (ix86_generate_version_dispatcher_body): Likewise.
6062 (fold_builtin_cpu): Likewise.
6063 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6064 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6065 translators, wrap full type name in %qs.
6067 PR translation/79999
6068 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6069 depend clause with source (or sink) modifier.
6070 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6073 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6074 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6075 (avx512f_load<mode>_mask): New define_expand.
6076 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6077 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6078 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6079 __builtin_ia32_movess_mask): New builtins.
6080 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6081 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6082 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6083 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6085 2019-03-07 Martin Jambor <mjambor@suse.cz>
6088 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6089 for extern inline functions.
6091 2019-03-07 Martin Jambor <mjambor@suse.cz>
6094 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6095 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6096 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6097 have multiple callees. At the end check if declarations match as
6098 opposed to cgraph_nodes.
6100 2019-03-07 Martin Liska <mliska@suse.cz>
6102 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6103 which is equivalent to searching for this in clones chain.
6104 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6105 names with a neighbour and special case first node in a chain.
6107 2019-01-25 Jason Merrill <jason@redhat.com>
6109 PR c++/80916 - spurious "static but not defined" warning.
6110 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6111 for an internal symbol with DECL_EXTERNAL.
6113 2019-04-07 Richard Biener <rguenther@suse.de>
6116 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6117 * tree-inline.c (copy_loops): Simplify.
6119 2019-03-07 Martin Liska <mliska@suse.cz>
6121 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6123 2019-03-07 Richard Biener <rguenther@suse.de>
6125 PR tree-optimization/89595
6126 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6127 stmt iterator as reference, take boolean output parameter to
6128 indicate whether the stmt was removed and thus the iterator
6130 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6131 stmts created by folding.
6133 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6136 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6139 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6141 PR rtl-optimization/88845
6142 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6144 * lra.c (remove_scratches_1): New function.
6145 (remove_scratches): Use it.
6146 (lra_emit_move): Likewise.
6148 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6150 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6151 unaligned_access variable.
6152 * config/arc/arc.c (arc_override_options): Set unaligned access
6153 default on for HS CPUs.
6154 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6156 2019-03-06 Martin Liska <mliska@suse.cz>
6158 PR gcov-profile/89577
6159 * doc/gcov.texi: Prefer to use --coverage.
6160 * doc/sourcebuild.texi: Likewise.
6162 2019-03-02 Jason Merrill <jason@redhat.com>
6164 PR c++/86485 - -Wmaybe-unused with empty class ?:
6165 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6167 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6170 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6174 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6175 exactly one argument.
6177 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6178 Richard Sandiford <richard.sandiford@arm.com>
6180 PR tree-optimization/89570
6181 * match.pd (vec_cond into cond_op simplification): Don't use
6182 get_conditional_internal_fn, use as_internal_fn (cond_op).
6184 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6187 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6188 to decide when to split off a non-zero offset from a symbol.
6189 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6190 in function symbols.
6192 2019-03-05 Richard Biener <rguenther@suse.de>
6194 PR tree-optimization/89594
6195 * tree-if-conv.c (pass_if_conversion::execute): Handle
6196 case where .LOOP_VECTORIZED_FUNCTION was removed.
6198 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6201 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6202 instead alloca it only when needed with the needed size.
6204 PR tree-optimization/89570
6205 * match.pd (vec_cond into cond_op simplification): Guard with
6206 vectorized_internal_fn_supported_p test and #if GIMPLE.
6208 PR tree-optimization/89566
6209 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6210 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6211 Punt if get_user_idx_format succeeds, but idx_format argument is
6212 not provided or doesn't have pointer type, or if idx_args is above
6213 number of provided arguments.
6215 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6217 PR tree-optimization/89437
6218 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6220 2019-03-04 Richard Biener <rguenther@suse.de>
6223 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6226 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6228 PR tree-optimization/89487
6229 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6230 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6231 (distribute_loop): Don't do runtime alias check if there is non-
6232 addressable data reference.
6233 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6234 is a register variable.
6236 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6239 * config/arm/arm.md (cmpsi2_addneg): Use
6240 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6241 If operands[2] is 0 or INT_MIN, force use of subs.
6242 (*compare_scc splitter): Use gen_int_mode.
6243 (*negscc): Likewise.
6244 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6246 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6247 Monk Chiang <sh.chiang04@gmail.com>
6249 * common/config/riscv/riscv-common.c: Include sstream.
6250 (riscv_subset_list::to_string): New.
6251 (riscv_arch_str): Likewise.
6252 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6254 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6255 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6256 (riscv_emit_attribute): New.
6257 (riscv_file_start): Emit attribute if needed.
6258 (riscv_option_override): Init riscv_emit_attribute_p.
6259 * config/riscv/riscv.opt (mriscv-attribute): New option.
6260 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6262 * doc/install.texi: Document --with-riscv-attribute.
6263 * doc/invoke.texi: Document -mriscv-attribute.
6265 * common/config/riscv/riscv-common.c:
6266 Include config/riscv/riscv-protos.h.
6267 (INCLUDE_STRING): Defined.
6268 (RISCV_DONT_CARE_VERSION): Defined.
6269 (riscv_subset_t): Declare.
6270 (riscv_subset_t::riscv_subset_t): New.
6271 (riscv_subset_list): Declare.
6272 (riscv_subset_list::riscv_subset_list): New.
6273 (riscv_subset_list::~riscv_subset_list): Likewise.
6274 (riscv_subset_list::parsing_subset_version): Likewise.
6275 (riscv_subset_list::parse_std_ext): Likewise.
6276 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6277 (riscv_subset_list::add): Likewise.
6278 (riscv_subset_list::lookup): Likewise.
6279 (riscv_subset_list::xlen): Likewise.
6280 (riscv_subset_list::parse): Likewise.
6281 (riscv_supported_std_ext): Likewise.
6282 (current_subset_list): Likewise.
6283 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6286 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6288 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6289 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6290 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6292 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6294 PR rtl-optimization/85899
6295 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6296 fallthru edges leading to the exit block.
6298 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6301 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6302 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6304 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6306 PR tree-optimization/89535
6307 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6308 for each operand. Calculate the fallback choice for mask operands
6309 and pass it to vect_get_vec_def_for_operand.
6311 2019-03-01 Richard Biener <rguenther@suse.de>
6314 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6315 get virtual operands.
6316 (get_expr_operands): Handle CONST_DECL like other decls.
6318 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6321 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6322 on DECL_P and EXPR_P.
6324 2019-03-01 Richard Biener <rguenther@suse.de>
6327 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6328 argument, defaulted to zero.
6329 * passes.c (execute_function_todo): Pass down SSA update flags
6330 to cleanup_tree_cfg.
6331 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6332 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6334 (cleanup_tree_cfg): Get and pass down SSA update flags.
6336 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6339 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6340 early_lto_debug argument.
6342 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6344 PR tree-optimization/89536
6345 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6346 only whether bit #0 of the value is 0 instead of the entire value.
6348 2019-02-28 Marek Polacek <polacek@redhat.com>
6350 PR c++/87068 - missing diagnostic with fallthrough statement.
6351 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6352 at the end of a seq, save its location to walk_stmt_info.
6353 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6356 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6359 * tree.c (find_atomic_core_type): Move ahead in file.
6360 (check_base_type): Correctly compare alignments of atomic types.
6362 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6365 * config/i386/i386.c (get_builtin_code_for_version): Identify
6366 Westmere from PCLMUL, instead of AES.
6368 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6371 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6372 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6375 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6378 * config/aarch64/aarch64-option-extensions.def: Document it.
6379 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6382 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6385 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6386 builtins if they don't have a single scalar floating point argument.
6389 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6391 PR rtl-optimization/89490
6392 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6393 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6394 block section is not mergeable.
6396 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6399 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6400 old define_insn to ...
6401 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6402 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6403 Rename old define_insn to ...
6404 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6405 (thumb2_casesi_internal_pic): New define_expand. Rename old
6407 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6408 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6409 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6411 2019-02-27 Richard Biener <rguenther@suse.de>
6414 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6416 2019-02-27 Richard Biener <rguenther@suse.de>
6418 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6421 2019-02-27 Richard Biener <rguenther@suse.de>
6424 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6425 parameter, prefix section name with .gnu.debuglto_ if true.
6426 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6427 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6429 2019-02-27 Richard Biener <rguenther@suse.de>
6432 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6433 rather than on use_debug_types, doing what output_die does.
6434 (value_format): Likewise.
6436 2019-02-27 Martin Jambor <mjambor@suse.cz>
6437 Martin Sebor <msebor@redhat.com>
6439 * doc/invoke.texi (Warning Options): Reword description of
6440 -Wno-absolute-value.
6442 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6444 PR tree-optimization/89280
6445 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6446 builtin_setjmp_setup_bb): New functions.
6447 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6448 When visiting __builtin_setjmp_setup block, queue in special
6449 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6450 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6451 from visited after the loop if they don't have any visited successor
6454 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6456 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6458 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6460 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6463 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6464 with types other than sizetype/ssizetype.
6466 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6468 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6469 (enum sparc_processor_type): ...this.
6470 (enum sparc_code_model_type): New enumeration type.
6471 (enum sparc_memory_model_type): Tweak comments.
6472 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6474 (mcmodel): Use sparc_code_model enumeration and variable.
6475 (sparc_code_model): New enumeration.
6476 (mdebug): Add Undocumented marker.
6477 * config/sparc/sparc.h (enum cmodel): Delete.
6478 (sparc_cmodel): Likewise.
6479 (TARGET_CM_MEDLOW): Adjust to above renaming.
6480 (TARGET_CM_MEDMID): Likewise.
6481 (TARGET_CM_MEDANY): Likewise.
6482 (TARGET_CM_EMBMEDANY): Likewise.
6483 * config/sparc/sparc.c (sparc_cmodel): Delete.
6484 (sparc_option_override): Remove string/value mapping support for the
6485 code model. Move code and memory model support to after the handling
6486 of target flags. Do private machine setup last.
6487 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6488 (sparc_legitimize_reload_address): Likewise.
6489 (sparc_output_mi_thunk): Likewise.
6490 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6492 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6494 PR tree-optimization/89500
6495 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6496 (handle_builtin_strlen): Remove noncst_bound variable. Always
6497 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6498 cst if the first cst bytes starting at x are known to be non-zero,
6499 even if the string is not zero terminated. Don't try to modify
6500 *si for strnlen. Update strlen_to_stridx only for strlen or if
6501 we can prove strnlen returns the same value as strlen would.
6503 2019-02-26 Martin Liska <mliska@suse.cz>
6505 * alloc-pool.h (struct pool_usage): Remove extra
6507 * bitmap.h (struct bitmap_usage): Likewise.
6508 * ggc-common.c (struct ggc_usage): Likewise.
6509 * mem-stats.h (struct mem_usage): Likewise.
6510 (mem_alloc_description::dump): Print dash lines
6511 here and repeat header at the end of a table report.
6512 It's then more readable.
6513 * tree-phinodes.c (phinodes_print_statistics): Make
6514 horizontal alignment.
6515 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6516 * vec.c (struct vec_usage): Remove extra print_dash_line.
6517 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6519 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6521 * doc/extend.texi (__builtin_object_size):
6522 Use @pxref instead of @xref inside parenthesis.
6523 (__builtin_has_attribute): Add missing comma after @xref.
6524 (__builtin_object_size): Ditto.
6525 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6526 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6529 2019-02-26 Jeff Law <law@redhat.com>
6531 PR rtl-optimization/87761
6532 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6533 detect obviously dead insns and delete them.
6535 2019-02-26 Richard Biener <rguenther@suse.de>
6537 PR tree-optimization/89505
6538 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6539 to handle restrict pointed-to vars with multiple subvars
6542 2019-02-26 Richard Biener <rguenther@suse.de>
6544 PR tree-optimization/89489
6545 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6547 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6549 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6550 and move around comment.
6551 <BIT_AND_EXPR>: Likewise.
6552 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6554 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6557 * config/i386/i386.c (remove_partial_avx_dependency): Call
6558 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6559 after changing possibly many instructions to use that pseudo. Fix up
6560 insertion of v4sf_const0 setter at the start of bb.
6562 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6565 * doc/extend.texi (Variadic Pointer Args): New section.
6567 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6568 Martin Sebor <msebor@gmail.com>
6570 * common.opt (Wattribute-alias): Likewise.
6571 * doc/invoke.texi (Option Summary): List general form of
6572 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6573 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6574 Add cross-references.
6575 (-Wattribute-alias): Rewrite and correct default. Mention
6576 considered attributes (same as for -Wmissing-attributes).
6578 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6580 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6581 (_mm_cvtpd_ps): Likewise.
6582 (_mm_cvttpd_epi32): Likewise.
6585 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6586 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6589 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6591 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6594 * common/config/aarch64/aarch64-common.c
6595 (struct aarch64_option_extension): Add is_synthetic.
6596 (all_extensions): Use it.
6597 (TARGET_OPTION_INIT_STRUCT): Define hook.
6598 (struct gcc_targetm_common): Moved to end.
6599 (all_extensions_by_on): New.
6600 (opt_ext_cmp, typedef opt_ext): New.
6601 (aarch64_option_init_struct): New.
6602 (aarch64_contains_opt): New.
6603 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6604 * config/aarch64/aarch64-option-extensions.def
6605 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6606 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6607 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6608 Set is_synthetic to false.
6609 (crypto): Set is_synthetic to true.
6610 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6613 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6615 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6616 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6617 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6618 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6619 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6620 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6621 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6622 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6624 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6625 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6626 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6627 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6628 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6629 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6630 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6631 vfmlsl_laneq_high_f16): ... To this.
6632 * config/arm/neon.md: Update comments.
6634 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6636 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6637 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6638 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6639 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6640 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6641 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6642 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6643 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6645 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6646 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6647 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6648 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6649 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6650 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6651 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6652 vfmlslq_laneq_high_f16): ... To this.
6654 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6656 PR rtl-optimization/86096
6657 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6658 comparing mw_order values.
6660 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6663 * config/arm/arm.md (*subsi3_carryin_const): Use
6664 arm_neg_immediate_operand predicate instead of
6665 arm_not_immediate_operand, "L" constraint instead of "K" and
6666 print it using %n2 instead of %B2.
6667 (*subsi3_carryin_const0): New define_insn.
6668 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6669 instead of arm_not_operand and "I" constraint instead of "K" and
6670 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6671 another match_operand and in the condition check that it is negation
6673 (*subsi3_carryin_compare_const0): New define_ins.
6674 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6675 *subsi3_carryin_const.
6676 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6677 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6680 * config/arm.vfp.md (*negdf2_vfp): Use
6681 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6682 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6684 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6686 PR rtl-optimization/89445
6687 * simplify-rtx.c (simplify_ternary_operation): Don't use
6688 simplify_merge_mask on operands that may trap.
6689 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6690 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6691 second operand is CONST_VECTOR, check if any element could be zero.
6692 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6693 their operands can trap.
6695 2019-02-23 Martin Sebor <msebor@redhat.com>
6697 * gimple-ssa-sprintf.c (target_strtol): Rename...
6698 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6699 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6700 check for range error.
6702 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6705 * opts-common.c (prune_options): Also prune joined switches
6706 with Negative and RejectNegative.
6707 * config/i386/i386.opt (march=): Add Negative(march=).
6708 (mtune=): Add Negative(mtune=).
6709 * doc/options.texi: Document Negative used together with Joined
6712 2019-02-22 Martin Sebor <msebor@redhat.com>
6714 * doc/extend.texi (Other Builtins): Add
6715 __builtin_is_constant_evaluated.
6717 2019-02-22 Richard Biener <rguenther@suse.de>
6719 PR tree-optimization/87609
6720 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6722 2019-02-22 Jeff Law <law@redhat.com>
6724 PR rtl-optimization/87761
6725 * config/mips/mips.md: Add new combiner pattern to recognize
6726 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6728 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6731 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6732 destination register in peepholes generating patterns for ADDS/SUBS.
6733 (add<mode>3_compare0,
6734 *addsi3_compare0_uxtw, add<mode>3_compareC,
6735 add<mode>3_compareV_imm, add<mode>3_compareV,
6736 *adds_<optab><ALLX:mode>_<GPI:mode>,
6737 *subs_<optab><ALLX:mode>_<GPI:mode>,
6738 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6739 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6740 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6741 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6742 sub<mode>3_compare1): Allow stack pointer for source register.
6743 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6745 2019-02-22 Martin Sebor <msebor@redhat.com>
6747 PR tree-optimization/88993
6748 PR tree-optimization/88853
6749 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6751 (sprintf_dom_walker::call_info::is_string_func): New helper.
6752 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6753 for formatted string functions.
6754 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6756 2019-02-22 Martin Sebor <msebor@redhat.com>
6759 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6760 unreachable subexpressions.
6762 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6763 Hongtao Liu <hongtao.liu@intel.com>
6764 Sunil K Pandey <sunil.k.pandey@intel.com>
6767 * config/i386/i386-passes.def: Add
6768 pass_remove_partial_avx_dependency.
6769 * config/i386/i386-protos.h
6770 (make_pass_remove_partial_avx_dependency): New.
6771 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6773 (pass_data_remove_partial_avx_dependency): New.
6774 (pass_remove_partial_avx_dependency): Likewise.
6775 (make_pass_remove_partial_avx_dependency): Likewise.
6776 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6777 (*extendsfdf2): Add avx_partial_xmm_update.
6778 (truncdfsf2): Likewise.
6779 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6780 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6782 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6785 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6788 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6791 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6792 (PTA_SKYLAKE): Add PTA_AES.
6793 (PTA_GOLDMONT): Likewise.
6795 2019-02-22 Sudakshina Das <sudi.das@arm.com>
6797 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
6798 instruction if enabled.
6799 (aarch64_override_options): Remove reference to return address key.
6801 2019-02-22 Richard Biener <rguenther@suse.de>
6803 PR tree-optimization/89440
6804 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
6805 not necessary assert.
6807 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
6810 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
6811 (oacc_replace_fn_attrib_attr): ... this new function.
6812 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
6813 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
6815 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6817 * config/arm/arm-cpus.in (ares): Rename to...
6818 (neoverse-n1): ... This. Add ares as alias.
6819 * config/arm/arm-tables.opt: Regenerate.
6820 * config/arm/arm-tune.md: Likewise.
6821 * doc/invoke.txt (ARM Options): Document neoverse-n1.
6823 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6825 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
6826 * config/aarch64/aarch64-tune.md: Regenerate.
6827 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
6829 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6831 * config/aarch64/aarch64.c (ares_tunings): Rename to...
6832 (neoversen1_tunings): ... This.
6833 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
6834 (neoverse-n1): New CPU.
6835 * config/aarch64/aarch64-tune.md: Regenerate.
6836 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
6838 2019-02-22 Richard Biener <rguenther@suse.de>
6841 * cfghooks.h (dependence_hash): New typedef.
6842 (struct copy_bb_data): New type.
6843 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
6844 (duplicate_block): Likewise.
6845 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
6846 (copy_bbs): Create and pass down copy_bb_data.
6847 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
6848 (rtl_duplicate_bb): Likewise.
6849 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
6850 remap dependence info.
6852 2019-02-22 Richard Biener <rguenther@suse.de>
6854 PR tree-optimization/87609
6855 * tree-core.h (tree_base): Document special clique values.
6856 * tree-inline.c (remap_dependence_clique): Do not use the
6857 special clique value of one.
6858 (maybe_set_dependence_info): Use clique one.
6859 (clear_dependence_clique): New callback.
6860 (compute_dependence_clique): Clear clique one from all refs
6861 before assigning it (again).
6863 2019-02-21 Martin Sebor <msebor@redhat.com>
6865 * doc/extend.texi (__clear_cache): Correct signature.
6867 2019-02-21 Ian Lance Taylor <iant@golang.org>
6870 * varasm.c (decode_addr_const): Call lookup_constant_def rather
6871 than output_constant_def.
6872 (add_constant_to_table): New static function.
6873 (output_constant_def): Call add_constant_to_table.
6874 (tree_output_constant_def): Likewise.
6876 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6879 * builtins.c (fold_builtin_arith_overflow): If first two args are
6880 INTEGER_CSTs, set intres and ovfres to constants rather than calls
6883 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
6886 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
6887 error for -mindirect-branch/-mfunction-return with incompatible
6890 2019-02-21 Jakub Jelinek <jakub@redhat.com>
6893 * constraints.md (q): Remove.
6894 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
6897 2019-02-21 Martin Jambor <mjambor@suse.cz>
6900 * omp-general.c (omp_extract_for_data): Removed a duplicate call
6901 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
6902 (omp_adjust_for_condition): ...here. Added necessary parameters.
6903 * omp-general.h (omp_adjust_for_condition): Updated declaration.
6904 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
6905 proper values to new parameters of omp_adjust_for_condition.
6907 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6910 * expr.c (expand_assignment): If result is a MEM, use change_address
6911 instead of simplify_gen_subreg.
6913 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6914 David Malcolm <dmalcolm@redhat.com>
6917 * fold-const.c (decode_field_reference): Return NULL_TREE if
6918 lang_hooks.types.type_for_size returns NULL. Check it before
6919 overwriting *exp_. Use return NULL_TREE instead of return 0.
6921 2019-02-20 Jakub Jelinek <jakub@redhat.com>
6925 * toplev.c (do_compile): Double the emin/emax exponents to workaround
6928 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
6931 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
6932 TARGET_SSE in addition to TARGET_SSE_MATH.
6934 (ix86_excess_precision): Ditto.
6935 (ix86_float_exceptions_rounding_supported_p): Ditto.
6936 (use_rsqrt_p): Ditto.
6937 * config/i386/sse.md (rsqrt<mode>2): Ditto.
6939 2019-02-20 David Malcolm <dmalcolm@redhat.com>
6942 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
6943 linenum_arith_t when determining if two adjacent line spans are
6944 close enough to merge.
6945 (diagnostic_show_locus): Use linenum_arith_t when iterating over
6946 lines within each line_span.
6948 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
6951 * lra-constraints.c(uses_hard_regs_p): Fix handling of
6952 paradoxical SUBREGS.
6954 2019-02-20 Li Jia He <helijia@linux.ibm.com>
6957 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
6958 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
6959 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
6962 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
6964 * config/gcn/gcn.c (print_operand): Fix typo.
6966 2019-02-19 Richard Biener <rguenther@suse.de>
6969 * toplev.c (do_compile): Initialize mpfr's exponent range
6970 based on available float modes.
6972 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
6974 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
6975 as long as the epilogue isn't completed.
6977 2019-02-18 Martin Sebor <msebor@redhat.com>
6979 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
6980 __has_cpp_attribute, and __has_include.
6982 2019-02-18 Martin Sebor <msebor@redhat.com>
6984 * doc/invoke.texi (-Wreturn-type): Correct and expand.
6986 2019-02-18 Martin Sebor <msebor@redhat.com>
6989 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
6991 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
6993 2019-02-18 Richard Biener <rguenther@suse.de>
6995 PR tree-optimization/89296
6996 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
6997 of no-warning flag to cases that might emit the bogus warning.
6999 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7002 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7004 * config/arm/vfp.md (*movdi_vfp): Likewise.
7005 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7006 "q" constraint for operands[0].
7009 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7010 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7011 pattern in a temporary buffer.
7012 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7013 than 64-operands[2].
7016 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7017 s390_indirect_branch_settings): Define unconditionally.
7018 (s390_set_current_function): Likewise, but guard the whole body except
7019 the s390_indirect_branch_settings call with
7020 #if S390_USE_TARGET_ATTRIBUTE.
7021 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7023 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7024 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7025 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7026 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7027 HOST_WIDE_INT_1U instead of 1ULL.
7028 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7029 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7030 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7031 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7033 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7036 2019-02-18 Martin Jambor <mjambor@suse.cz>
7038 PR tree-optimization/89209
7039 * tree-sra.c (create_access_replacement): New optional parameter
7040 reg_tree. Use it as a type if non-NULL and access type is not of
7042 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7043 to create_access_replacement.
7044 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7045 Check lacc is non-NULL before attempting to re-create it on the RHS.
7047 2019-02-18 Martin Liska <mliska@suse.cz>
7050 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7052 (symbol_table::free_edge): Recycle m_summary_id.
7053 * cgraph.h (get_summary_id): New.
7054 (symbol_table::release_symbol): Set m_summary_id to -1
7056 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7057 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7058 function_summary to fast_function_summary.
7059 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7060 * ipa-pure-const.c (class funct_state_summary_t):
7061 Switch from function_summary to fast_function_summary.
7062 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7063 (class ipa_ref_opt_summary_t): Switch from function_summary
7064 to fast_function_summary.
7065 * symbol-summary.h (class function_summary_base): New class
7066 that is created from base of former function_summary.
7067 (function_summary_base::unregister_hooks): New.
7068 (class function_summary): Inherit from function_summary_base.
7069 (class call_summary_base): New class
7070 that is created from base of former call_summary.
7071 (class call_summary): Inherit from call_summary_base.
7072 (struct is_same): New.
7073 (class fast_function_summary): New summary class.
7074 (class fast_call_summary): New summary class.
7075 * vec.h (vec_safe_grow_cleared): New function.
7077 2019-02-18 Martin Liska <mliska@suse.cz>
7079 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7080 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7081 * doc/tm.texi: Document new target hook.
7082 * doc/tm.texi.in: Likewise.
7083 * target.def: Add new target macro.
7084 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7087 2019-02-17 Alan Modra <amodra@gmail.com>
7090 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7091 output reg on add insn.
7092 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7094 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7097 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7098 (PMULHRSW): Likewise.
7099 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7101 (ssse3_pmulhrswv4hi3): New expander.
7103 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7105 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7106 MMX. Add isa attribute.
7108 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7110 PR rtl-optimization/66152
7111 * builtins.h (c_readstr): Declare.
7112 * builtins.c (c_readstr): Remove forward declaration. Add
7113 null_terminated_p argument, if false, read all bytes from the
7114 string instead of stopping after '\0'.
7115 * expr.c (string_cst_read_str): New function.
7116 (store_expr): Use string_cst_read_str instead of
7117 builtin_strncpy_read_str. Try to store by pieces the whole
7118 exp_len first, and only if that fails, split it up into
7119 store by pieces followed by clear_storage. Formatting fix.
7121 * config/i386/i386.md (*movqi_internal): Remove static from
7122 buf variable. Use output_asm_insn (buf, operands); return "";
7123 instead of return buf;.
7124 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7125 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7126 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7128 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7130 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7131 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7132 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7133 (CC1_SPEC): Likewise.
7134 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7136 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7138 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7139 the base address on 64-bit strict-alignment platforms.
7141 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7143 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7145 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7147 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7149 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7151 PR rtl-optimization/88308
7152 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7153 on copied instruction.
7155 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7157 * final.c (insn_current_reference_address): Replace test on JUMP_P
7158 with test on jump_to_label_p.
7159 * config/visium/visium-passes.def: New file.
7160 * config/visium/t-visium (PASSES_EXTRA): Define.
7161 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7162 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7163 (TRAMPOLINE_ALIGNMENT): Define.
7164 * config/visium/visium.c (visium_option_override): Do not register
7165 the machine-specific reorg pass here.
7166 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7168 (output_branch): Adjust threshold for long branch instruction.
7169 * config/visium/visium.md (cpu): Move around.
7170 (length): Adjust for the GR6.
7172 2019-02-15 Richard Biener <rguenther@suse.de>
7173 Jakub Jelinek <jakub@redhat.com>
7175 PR tree-optimization/89278
7176 * tree-loop-distribution.c: Include tree-eh.h.
7177 (generate_memset_builtin, generate_memcpy_builtin): Call
7178 rewrite_to_non_trapping_overflow on builtin->size before passing it
7179 to force_gimple_operand_gsi.
7181 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7184 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7186 * opth-gen.awk: Likewise.
7188 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7190 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7191 Enable MMX, SSE and SSE2 by default.
7192 * config/i386/i386.c (ix86_option_override_internal): Do not
7193 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7195 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7197 PR rtl-optimization/89354
7198 * combine.c (make_extraction): Punt if extraction_mode is narrower
7201 2019-02-14 Maya Rashish <coypu@sdf.org>
7203 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7204 * config/netbsd-d.c: New file.
7205 * config/t-netbsd: Add netbsd-d.o
7207 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7209 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7210 affects_type_identity to true for aarch64_vector_pcs.
7211 (aarch64_comp_type_attributes): New function.
7212 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7214 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7217 * config/arm/iterators.md (ANY64): Add V4HF.
7219 2019-02-14 Martin Liska <mliska@suse.cz>
7221 PR rtl-optimization/89242
7222 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7223 process a transformation.
7225 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7227 PR tree-optimization/89314
7228 * fold-const.c (fold_binary_loc): Cast strlen argument to
7229 const char * before dereferencing it. Formatting fixes.
7232 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7234 2019-02-13 Ian Lance Taylor <iant@golang.org>
7236 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7237 and set current index for other optimizations.
7239 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7241 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7242 nonimmediate_operand as operand 2 predicate.
7243 (vec_set<VF2_512_256:mode>_0): Ditto.
7244 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7245 (*vec_concatv2si): Remove alternative 2.
7246 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7247 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7248 (vec_concatv2di): Split alternatives 4,5,6 to ...
7249 (*vec_concatv2di_0) ... new pattern.
7251 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7254 * config/arm/arm.c (ldm_stm_operation_p) Set
7255 addr_reg_in_reglist correctly for first register.
7256 (load_multiple_sequence): Remove dead base check.
7257 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7259 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7262 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7263 Expose as @aarch64_pred_mov.
7264 * config/aarch64/aarch64.c (aarch64_classify_address):
7265 Use expand_insn which legitimizes operands.
7267 2019-02-13 Martin Liska <mliska@suse.cz>
7269 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7270 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7271 and pointer_offset fields.
7272 (initialize_argument_information): Remove usage of dead
7274 * cgraph.h (struct cgraph_thunk_info): Remove
7275 add_pointer_bounds_args.
7276 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7278 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7280 * config/i386/i386.c (ix86_function_arg_advance): Remove
7282 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7283 (def_builtin): Remove usage of dead
7285 (ix86_add_new_builtins): Likewise.
7286 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7287 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7288 (sem_function::init): Likewise.
7289 (sem_variable::merge): Likewise.
7290 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7291 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7292 * lto-cgraph.c (lto_output_node): Likewise.
7293 (lto_output_varpool_node): Likewise.
7294 (input_node): Likewise.
7295 (input_varpool_node): Likewise.
7296 * lto-streamer-out.c (lto_output): Likewise.
7297 * tree-inline.c (expand_call_inline): Remove usage of
7299 * tree-inline.h (struct copy_body_data): Likewise.
7300 * varpool.c (varpool_node::dump): Likewise.
7302 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7305 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7306 into pt->vars_contains_escaped_heap instead of setting
7307 pt->vars_contains_escaped_heap to it.
7310 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7311 INTVAL (size), compare it to GET_MODE_MASK instead of
7312 1 << GET_MODE_BITSIZE.
7315 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7316 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7319 2019-02-13 Martin Liska <mliska@suse.cz>
7322 * cfgrtl.c (remove_barriers_from_footer): New function.
7323 (try_redirect_by_replacing_jump): Use it.
7324 (cfg_layout_redirect_edge_and_branch): Likewise.
7326 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7328 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7329 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7330 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7331 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7332 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7333 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7335 * config/rs6000/rs6000.c (builtin_function_type)
7336 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7337 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7338 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7339 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7340 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7342 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7344 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7345 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7347 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7350 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7351 268678 and revision 268657.
7352 (*movti_internal): Likewise.
7354 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7357 * config/s390/s390.c (s390_decompose_address): Update comment.
7358 (s390_check_qrst_address): Reject invalid address forms after
7361 2019-02-12 Martin Liska <mliska@suse.cz>
7364 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7365 we need default values of funct_state for a function that
7368 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7370 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7371 the object to pick the size of stores on strict-alignment platforms.
7373 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7374 (*movdi_insn_sp32): Likewise.
7375 (*movdi_insn_sp64): Likewise.
7377 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7380 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7381 types that needs constructiong.
7382 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7384 2019-02-12 Richard Biener <rguenther@suse.de>
7386 PR tree-optimization/89253
7387 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7390 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7393 * input.c (selftest::test_line_offset_overflow): New selftest.
7394 (selftest::input_c_tests): Call it.
7396 2019-02-11 Martin Sebor <msebor@redhat.com>
7398 PR tree-optimization/88771
7399 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7400 when -Wstringop-overflow is set.
7401 (builtin_memref::builtin_memref): Adjust excessive upper bound
7402 only when lower bound is not excessive.
7403 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7404 -Wstringop-ovefflow.
7405 (maybe_diag_offset_bounds): Rename...
7406 (maybe_diag_access_bounds): ...to this.
7407 (check_bounds_or_overlap): Adjust for name change above.
7409 2019-02-11 Martin Sebor <msebor@redhat.com>
7412 * builtins.c (max_object_size): Move from here...
7413 * builtins.h (max_object_size): ...and here...
7414 * tree.c (max_object_size): ...to here...
7415 * tree.h (max_object_size): ...and here.
7417 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7419 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7420 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7421 for correct semantics.
7423 2019-02-11 Alan Modra <amodra@gmail.com>
7425 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7426 -mlongcall and -mpltseq.
7427 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7428 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7429 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7430 * config/rs6000/sysv4.opt (mpltseq): New option.
7431 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7432 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7433 support is lacking. Don't allow -mpltseq with -mbss-plt.
7434 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7435 -mpltseq given for ELFv1.
7436 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7437 Only use UNSPEC_PLTSEQ for inline PLT calls.
7438 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7439 use UNSPEC_PLTSEQ for inline PLT calls.
7440 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7441 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7442 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7443 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7444 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7445 (pltseq_mtctr_<mode>): Likewise.
7447 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7449 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7451 * configure: Regenerate.
7453 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7456 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7459 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7461 * function.c (assign_parm_setup_block): Use the stored
7462 size, not the passed size, when allocating stack-space,
7463 also for a parameter with alignment larger than
7464 MAX_SUPPORTED_STACK_ALIGNMENT.
7466 2019-02-11 Martin Liska <mliska@suse.cz>
7469 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7470 * ipa-inline.c (inline_small_functions): Likewise.
7471 * ipa-pure-const.c (propagate_pure_const): Likewise.
7472 (propagate_nothrow): Likewise.
7473 * ipa-reference.c (propagate): Likewise.
7474 * ipa-utils.c (struct searchc_env): Remove unused field.
7475 (searchc): Always search across AVAIL_INTERPOSABLE.
7476 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7477 the only called IPA pure const can properly not propagate
7478 across interposable boundary.
7479 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7481 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7483 * config/nds32/nds32.md (call_internal, call_value_internal,
7484 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7486 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7488 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7491 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7493 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7496 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7498 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7500 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7502 PR tree-optimization/89268
7503 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7504 if preds is non-NULL.
7506 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7509 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7512 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7514 * config/nds32/nds32.md (trap): New pattern.
7516 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7518 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7521 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7523 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7526 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7528 * ipa-visibility.c (localize_node): Also do not localize
7529 LDPR_PREVAILING_DEF_IRONLY_EXP.
7531 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7534 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7535 instead of type_with_linkage.
7537 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7540 * params.def (uninlined-function-insns, uninlined-function-time,
7541 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7542 bound so we don't get overflows.
7544 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7546 * config/rs6000/rs6000-string.c (expand_compare_loop,
7547 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7550 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7553 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7554 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7555 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7557 2019-02-09 Alan Modra <amodra@gmail.com>
7560 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7561 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7564 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7567 * lra-constraints.c (process_alt_operands): Don't increase reject
7568 for memory when offset memory is required.
7570 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7572 * config/s390/vector.md: Implement vector copysign.
7574 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7576 * expr.c (expand_constructor): Correct indentations.
7578 2019-02-08 Richard Biener <rguenther@suse.de>
7580 PR tree-optimization/89247
7581 * tree-if-conv.c: Include tree-cfgcleanup.h.
7582 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7583 (tree_if_conversion): Pass through predicate vector.
7584 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7585 inline, see if any if-converted loops we refrece in
7586 LOOP_VECTORIZED calls vanished and fixup.
7587 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7589 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7591 * config/s390/constraints.md (jdd): New constraint.
7593 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7596 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7597 upper 16 vector registers without TARGET_AVX512VL.
7598 (*movti_internal): Likewise.
7600 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7602 PR rtl-optimization/89234
7603 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7604 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7605 (copy_reg_eh_region_note_backward): Likewise.
7607 2019-02-08 Richard Biener <rguenther@suse.de>
7610 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7612 (analyze_subscript_affine_affine): Handle failure from
7613 initialize_matrix_A.
7615 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7617 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7620 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7622 PR tree-optimization/86637
7623 PR tree-optimization/89235
7624 * tree-vect-loop.c (optimize_mask_stores): Add an
7625 auto_purge_vect_location sentinel to ensure that vect_location is
7628 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7629 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7630 to ensure that vect_location is purged on exit.
7631 (pass_slp_vectorize::execute): Likewise, replacing the manual
7633 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7635 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7637 * config/aarch64/iterators.md (max_opp): New code_attr.
7638 (USMAX): New code iterator.
7639 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7640 (aarch64_smax): Likewise.
7641 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7642 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7645 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7648 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7649 for TARGET_AVX512VL.
7650 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7652 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7654 * config/s390/s390-builtin-types.def: Add new types.
7655 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7656 (s390_vec_xlw4): Make the memory operand into a const pointer.
7657 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7659 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7660 a new vector type with the alignment of the scalar memory operand.
7662 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7663 Jakub Jelinek <jakub@redhat.com>
7666 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7667 arm_count_ldrdstrd_insns): New declarations.
7668 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7670 (valid_operands_ldrd_strd): New function.
7671 (arm_count_ldrdstrd_insns): New function.
7672 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7673 sets instead of single DImode set and define new insns to match this.
7675 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7677 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7678 Make it a C initializer.
7680 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7683 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7685 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7687 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7688 Use neon_dot<q> for type.
7689 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7691 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7693 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7694 Use neon_dot<q> for type.
7695 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7696 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7698 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7700 PR rtl-optimization/89225
7701 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7704 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7706 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7707 after restoring registers saved to allocate the frame on Windows.
7709 2019-02-06 Richard Biener <rguenther@suse.de>
7711 PR tree-optimization/89182
7712 * graphite.h (cached_scalar_evolution_in_region): Declare.
7713 * graphite.c (struct seir_cache_key): New.
7714 (struct sese_scev_hash): Likewise.
7715 (seir_cache): New global.
7716 (cached_scalar_evolution_in_region): New function.
7717 (graphite_transform_loops): Allocate and release seir_cache.
7718 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7719 cached_scalar_evolution_in_region.
7720 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7722 (scop_detection::graphite_can_represent_expr: Use
7723 cached_scalar_evolution_in_region.
7724 (scop_detection::stmt_simple_for_scop_p): Likewise.
7725 (find_params_in_bb): Likewise.
7726 (gather_bbs::before_dom_children): Likewise.
7727 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7728 (add_loop_constraints): Likewise.
7730 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7733 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7734 operand to new_unary_operation only if both element types are integral
7735 and it isn't a widening conversion. Return NULL_TREE if
7736 new_unary_operation failed.
7738 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7741 * config/s390/s390.md: Remove load and test FP splitter.
7743 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7746 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7747 expand_compare_loop, expand_block_compare_gpr,
7748 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7749 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7750 #include "profile-count.h" and "predict.h" for types and functions
7751 needed to work with REG_BR_PROB notes.
7753 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7756 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7757 for the long branch case.
7759 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7762 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7763 can throw, non-call exceptions are enabled and we can't delete
7764 dead exceptions or alter cfg. Set must_clean if
7765 delete_insn_and_edges returns true, don't set it blindly for calls.
7766 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7768 PR rtl-optimization/89195
7769 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7770 of the original MEM.
7772 2019-02-05 Martin Liska <mliska@suse.cz>
7774 PR gcov-profile/89000
7775 * gcov.c (function_summary): Remove argument.
7776 (file_summary): New function.
7777 (print_usage): Replace tabs with spaces.
7778 (generate_results): Use new function file_summary.
7780 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7783 * optabs.c (prepare_cmp_insn): Pass x and y to
7784 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7786 2019-02-05 Richard Biener <rguenther@suse.de>
7789 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7790 (struct bitmap_element): Drop chain_prev so we properly recurse on
7791 the prev member, supporting tree views.
7792 (struct bitmap_head): GTY skip the obstack member.
7794 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
7797 * doc/extend.texi (Vector Extensions): Add an example of using vector
7798 types together with x86 intrinsics.
7800 2019-02-04 Alan Modra <amodra@gmail.com>
7802 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
7803 str[] size to 160, and comment.
7805 2019-02-04 Alan Modra <amodra@gmail.com>
7807 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
7808 (rs6000_pltseq_template): Guard output of TLS markers with
7810 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
7811 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
7812 to use inline PLT sequences.
7813 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7814 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7815 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
7817 2019-02-04 Martin Liska <mliska@suse.cz>
7820 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
7821 out when ipa_fn_summaries does not contain entry for callee.
7823 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
7825 * config/sparc/sparc.h: Remove superfluous blank lines.
7826 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
7827 (got_register_rtx): ...this.
7828 (sparc_got): Adjust to above renaming.
7829 (sparc_tls_got): Likewise.
7830 (sparc_delegitimize_address): Likewise.
7831 (sparc_output_mi_thunk): Likewise.
7832 (sparc_init_pic_reg): Likewise.
7833 (save_local_or_in_reg_p): Fix test on the GOT register.
7834 (USE_HIDDEN_LINKONCE): Move around.
7835 (get_pc_thunk_name): Likewise.
7836 (gen_load_pcrel_sym): Likewise.
7837 (load_got_register): Likewise.
7839 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
7841 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
7842 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
7844 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7846 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
7849 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
7851 * config.gcc (with_nds32_lib, glibc):
7852 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
7853 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
7854 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
7856 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
7859 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
7860 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
7861 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
7862 (*rcpsf2_sse): Ditto.
7863 (*rsqrtsf2_sse): Ditto.
7864 (sse4_1_round<mode<2): Ditto.
7866 2019-02-03 Richard Biener <rguenther@suse.de>
7869 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
7872 2019-02-02 Jakub Jelinek <jakub@redhat.com>
7875 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7876 Punt with warning on aggregate return or argument types. Ignore
7877 type/mode checking for uniform arguments.
7879 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
7881 * combine.c (try_combine): Do not print "Can't combine" messages unless
7882 printing failed combination attempts.
7884 2019-02-01 Martin Jambor <mjambor@suse.cz>
7887 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
7888 segment and global segment variables before making them static.
7890 2019-02-01 Martin Jambor <mjambor@suse.cz>
7892 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
7893 missed optimization dump with dump_enabled_p.
7895 2019-02-01 Richard Biener <rguenther@suse.de>
7898 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
7899 the instantiate cache.
7900 (instantiate_scev_binary): Elide second operand procesing
7901 if equal to the first.
7902 * tree-chrec.c (chrec_contains_symbols): Add visited set.
7903 (chrec_contains_undetermined): Likewise.
7904 (tree_contains_chrecs): Likewise.
7906 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
7908 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
7910 2019-02-01 Jakub Jelinek <jakub@redhat.com>
7912 PR tree-optimization/89143
7913 * wide-int-range.h (wide_int_range_absu): Declare.
7914 * wide-int-range.cc (wide_int_range_absu): New function.
7915 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
7917 PR tree-optimization/88107
7918 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
7919 instead of assertion that eh_region_outermost is non-NULL, if it
7920 is NULL, set *ALL to true and return NULL.
7921 (move_sese_region_to_fn): Adjust caller, if all is set, call
7922 duplicate_eh_regions with NULL region.
7924 2019-02-01 Richard Biener <rguenth@suse.de>
7926 PR rtl-optimization/88593
7927 * mode-switching.c (optimize_mode_switching): Free dominators before
7928 calling cleanup_cfg.
7930 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
7932 PR tree-optimization/88932
7933 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
7935 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7938 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
7939 bogus clang warning.
7941 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
7944 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
7945 alternative to avoid partial SSE register stall for TARGET_AVX.
7946 (truncdfsf2): Ditto.
7947 (sse4_1_round<mode>2): Ditto.
7949 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
7951 PR tree-optimization/89008
7952 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
7953 process anything of the form X * 0.
7955 2019-01-31 Richard Biener <rguenther@suse.de>
7957 PR tree-optimization/89135
7958 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
7959 with abnormal preds.
7961 2019-01-31 Jakub Jelinek <jakub@redhat.com>
7964 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
7965 always_inline callees into no_sanitize_address callers.
7967 2019-01-31 Richard Biener <rguenther@suse.de>
7969 PR rtl-optimization/89115
7970 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
7972 2019-01-30 Martin Sebor <msebor@redhat.com>
7975 * doc/extend.texi (cast to a union): Correct and expand.
7977 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
7979 PR rtl-optimization/87246
7980 * lra-constraints.c (simplify_operand_subreg): Reload memory
7981 in subreg if the address became invalid.
7983 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
7986 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
7987 Disable for little-endian.
7989 2019-01-30 Richard Biener <rguenther@suse.de>
7991 PR rtl-optimization/89115
7992 * opts.c (default_options_optimization): Reduce
7993 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
7994 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
7997 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
7999 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8000 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8001 type of vector element when vec_extract is implemented by direct
8004 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8006 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8008 2019-01-30 Richard Biener <rguenther@suse.de>
8010 PR tree-optimization/89111
8011 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8012 canonicalization to appropriately sized access types.
8014 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8017 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8018 for arguments to functions that are TU-local and shouldn't be
8019 referenced by assembly.
8021 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8023 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8026 2019-01-29 Martin Sebor <msebor@redhat.com>
8029 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8031 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8035 * omp-simd-clone.c (simd_clone_clauses_extract)
8036 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8037 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8039 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8041 * config.gcc: Force .init_array for ARC.
8043 2019-01-29 Richard Biener <rguenther@suse.de>
8046 * dwarf2out.c (collect_skeleton_dies): New helper.
8047 (copy_decls_for_unworthy_types): Call it.
8048 (build_abbrev_table): Assert we do not try to replace
8049 DW_AT_signature refs with local refs.
8051 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8054 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8055 for lastprivate/linear IV, push gimplify context around gimplify_assign
8056 and, if it needed any temporaries, pop it into a gimple bind around the
8059 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8061 * common.opt (-Wattribute-alias): Remove "no-" from name.
8062 Make -Wattribute-alias command line option and
8063 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8065 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8068 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8069 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8071 (bmi2): Add missing @opindex.
8072 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8073 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8074 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8075 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8076 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8077 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8078 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8079 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8080 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8081 xsavec, xsaveopt and xsaves options.
8083 2019-01-28 Richard Biener <rguenther@suse.de>
8086 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8089 2019-01-28 Richard Biener <rguenther@suse.de>
8091 PR tree-optimization/88739
8092 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8093 BIT_FIELD_REFs only are applied to mode-precision operands
8094 when they are integral.
8095 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8096 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8097 BIT_FIELD_REFs of non-mode-precision integral operands.
8099 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8102 * config/i386/sse.md
8103 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8104 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8105 first constants in pairs are multiples of 2. Formatting fixes.
8106 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8107 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8108 first constants in each quadruple are multiples of 4. Formatting fixes.
8110 2019-01-26 Martin Jambor <mjambor@suse.cz>
8113 * tree-inline.c: Include tree-cfgcleanup.h.
8114 (delete_unreachable_blocks_update_callgraph): Move...
8115 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8116 ...here, make externally visible, make second argument bool, adjust
8118 * tree-cfgcleanup.c: Include cgraph.h.
8119 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8121 * ipa-prop.c: Include tree-cfgcleanup.h.
8122 (ipcp_transform_function): Call
8123 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8125 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8127 PR rtl-optimization/88846
8128 * ira.c (process_set_for_memref_referenced_p): New.
8129 (memref_referenced_p): Add new param. Use
8130 process_set_for_memref_referenced_p. Add new switch cases.
8131 (memref_used_between_p): Pass new arg to memref_referenced_p.
8133 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8136 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8137 argument ABI_BREAK. Set to true if the calculated alignment has
8138 changed in gcc-9. Check bit-fields for their base type alignment.
8139 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8140 (aarch64_function_arg_boundary): Likewise.
8141 (aarch64_gimplify_va_arg_expr): Likewise.
8143 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8146 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8147 instead of accessing TREE_INT_CST_ELT directly.
8149 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8151 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8152 fenv_exceptions description.
8154 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8156 PR rtl-optimization/87763
8157 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8158 Allow SUBREG when matching CC_NZmode compare.
8160 2019-01-25 Richard Biener <rguenther@suse.de>
8162 PR tree-optimization/89049
8163 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8164 Look at the pattern stmt to determine if the stmt is vectorized.
8166 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8168 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8169 (pred_mov<mode>): Handle all-register forms using both a new
8170 alternative and a split.
8172 2019-01-25 Richard Biener <rguenther@suse.de>
8174 PR tree-optimization/86865
8175 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8176 Reject non-do-while loops.
8178 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8180 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8181 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8182 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8183 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8184 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8185 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8186 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8187 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8188 vlogical_operand, gpc_reg_operand, int_reg_operand,
8189 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8190 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8191 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8192 (save_world_operation, restore_world_operation, lmw_operation,
8193 stmw_operation): Use MEM_P and REG_P.
8194 (tie_operand): Use MEM_P.
8195 (vrsave_operation, crsave_operation): Use REG_P.
8196 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8197 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8198 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8199 (call_operand): Use HARD_REGISTER_P.
8200 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8202 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8203 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8204 quad_aligned_load_p, replace_swapped_aligned_store,
8205 recombine_lvx_pattern, replace_swapped_aligned_load,
8206 recombine_stvx_pattern): Use MEM_P.
8207 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8208 Use MEM_P and SYMBOL_REF_P.
8209 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8210 (insn_is_swappable_p): Use REG_P and MEM_P.
8211 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8212 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8214 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8216 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8218 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8219 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8220 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8221 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8223 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8224 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8225 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8226 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8227 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8228 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8229 rs6000_split_logical_di): Use CONST_INT_P.
8230 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8231 REG_P and SYMBOL_REF_P.
8232 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8233 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8234 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8235 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8236 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8237 (small_data_operand, print_operand_address): Use CONST_INT_P and
8239 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8240 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8241 Use HARD_REGISTER_NUM_P.
8242 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8243 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8244 SUBREG_P and SYMBOL_REF_P.
8245 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8246 and HARD_REGISTER_NUM_P.
8247 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8249 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8250 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8252 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8253 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8254 find_addr_reg): Use REG_P.
8255 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8256 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8257 (offsettable_ok_by_alignment, constant_pool_expr_p,
8258 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8259 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8260 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8261 rs6000_assemble_integer, create_TOC_reference,
8262 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8263 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8264 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8265 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8266 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8267 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8268 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8269 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8270 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8271 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8272 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8273 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8274 and cbranch<mode>4): Use CONST_INT_P.
8275 (multiple define_splits): Use REG_P and SUBREG_P.
8276 (define_expands call, call_value): Use MEM_P.
8277 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8278 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8279 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8280 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8281 and HARD_REGISTER_NUM_P.
8282 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8284 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8286 PR rtl-optimization/88948
8287 * rtl.h (prepare_copy_insn): New prototype.
8288 * gcse.c (prepare_copy_insn): New function, split out from
8289 process_insert_insn.
8290 (process_insert_insn): Use prepare_copy_insn.
8291 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8292 instead of gen_move_insn.
8294 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8297 * config/i386/i386.c (ix86_pic_register_p): Return true for
8300 PR tree-optimization/88964
8301 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8302 punt if HONOR_SNANS (chrec).
8305 * tree-nested.c (convert_nonlocal_reference_stmt,
8306 convert_local_reference_stmt, convert_tramp_reference_stmt,
8307 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8308 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8311 PR tree-optimization/89027
8312 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8313 for "omp simd array" variables.
8315 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8318 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8319 force the alignment of m_val.
8321 2019-01-24 Richard Biener <rguenther@suse.de>
8324 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8325 When in "legacy" debug mode make sure to reset self-origins.
8327 2019-01-24 Martin Liska <mliska@suse.cz>
8329 PR gcov-profile/88994
8330 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8331 result will be always smaller or equal to the original.
8332 * gcov.c (mangle_name): Fix else branch where we should
8333 also copy to PTR and shift the pointer.
8335 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8337 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8338 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8340 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8342 * common/config/i386/i386-common.c
8343 (OPTION_MASK_ISA_ENQCMD_SET,
8344 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8345 (ix86_handle_option): Handle -menqcmd.
8346 * config.gcc (enqcmdintrin.h): New header file.
8347 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8348 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8350 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8352 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8353 __builtin_ia32_enqcmds): New builtins.
8354 * config/i386/i386-c.c (__ENQCMD__): New macro.
8355 * config/i386/i386-option.c (ix86_target_string): Add
8357 (ix86_valid_target_attribute_inner_p): Likewise.
8358 * config/i386/i386-expand.c
8359 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8360 IX86_BUILTIN_ENQCMDS.
8361 * config/i386/i386.h (TARGET_ENQCMD): New.
8362 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8363 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8364 (movdir64b_<mode>): Parameterize to enable share expansion code
8365 with ENQCMD in function ix86_expand_builtin.
8366 * config/i386/i386.opt: Add -menqcmd.
8367 * config/i386/immintrin.h: Include enqcmdintrin.h.
8368 * config/i386/enqcmdintrin.h: New intrinsic file.
8369 * doc/invoke.texi: Add -menqcmd.
8371 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8372 Steve Ellcey <sellcey@marvell.com>
8375 * recog.c (address_operand): Return false on wrong mode for address.
8376 (constrain_operands): Check for mode with 'p' constraint.
8378 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8381 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8382 Disparage MMX alternative.
8383 (sse2_cvtpd2pi): Ditto.
8384 (sse2_cvttpd2pi): Ditto.
8386 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8389 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8390 use-after-free of the result of
8391 aarch64_get_extension_string_for_isa_flags.
8393 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8396 * doc/extend.texi: Document break and continue behavior in
8397 statement expressions.
8399 2019-01-23 Richard Biener <rguenther@suse.de>
8401 PR tree-optimization/89008
8402 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8403 not leave another stray operand.
8405 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8407 * BASE-VER: Bump to 9.0.1.
8409 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8411 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8412 thunk that returns by reference, use the type of the return object
8413 of the thunk instead of that of the alias to build the dereference.
8415 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8417 * config/arc/atomic.md: Add operand to DMB instruction.
8419 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8421 PR tree-optimization/88964
8422 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8423 build_zero_cst instead of build_int_cst. Return false for loop
8424 invariants which honor signed zeros.
8426 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8428 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8430 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8433 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8434 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8435 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8438 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8439 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8442 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8443 Disable for little endian.
8445 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8448 * config/arm/arm.c (arm_needs_double_word_align): Check
8449 DECL_BIT_FIELD_TYPE.
8451 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8452 H.J. Lu <hongjiu.lu@intel.com>
8455 * config/i386/i386-builtin.def: Add mask2 to all builtin
8456 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8458 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8459 (BDESC_FIRST): Likewise.
8460 (define_builtin): Add an argument for mask2. Updated to handle
8461 both ix86_isa_flags and ix86_isa_flags2.
8462 (define_builtin_const): Likewise.
8463 (define_builtin_pure): Likewise.
8464 (define_builtin2): Deleted.
8465 (define_builtin_const2): Likewise.
8466 (builtin_description): Add a member, mask2.
8467 (bdesc_*): Add mask2 to builtin initializations.
8468 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8469 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8471 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8473 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8476 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8479 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8482 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8483 alignment is dominated by a bitfield with 64-bit aligned base type.
8484 (arm_function_arg): Emit a warning if the alignment has changed since
8485 earlier GCC releases.
8486 (arm_function_arg_boundary): Likewise.
8487 (arm_setup_incoming_varargs): Likewise.
8489 2019-01-22 Richard Biener <rguenther@suse.de>
8491 PR tree-optimization/88862
8492 * graphite-scop-detection.c
8493 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8495 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8497 * doc/extend.tex (AMD GCN Function Attributes): New section.
8498 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8499 * doc/invoke.texi (AMD GCN Options): New section.
8500 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8502 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8504 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8505 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8507 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8509 PR tree-optimization/88044
8510 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8511 is false in the first iteration, but !every_iteration, return false
8512 instead of true with niter->niter zero.
8514 PR rtl-optimization/88904
8515 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8516 any nonequal registers before processing BB_END (b).
8519 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8521 (expand_binop_directly, expand_doubleword_clz,
8522 expand_doubleword_popcount, expand_ctz, expand_ffs,
8523 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8525 PR rtl-optimization/49429
8527 PR rtl-optimization/86334
8529 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8530 addressable from here...
8531 (emit_block_op_via_libcall): ... to here.
8533 2019-01-22 Richard Biener <rguenther@suse.de>
8535 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8536 auto_vec for cost vector to fix memleak.
8537 (vectorize_fold_left_reduction): Properly gather SLP defs.
8538 (vectorizable_comparison): Do not swap operands to properly
8541 2019-01-22 Alan Modra <amodra@gmail.com>
8544 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8545 stays a reg. Allow a const_int.
8546 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8547 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8548 (IS_NOMARK_TLSGETADDR): Define.
8549 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8550 (rs6000_output_tlsargs): New function.
8551 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8552 __tls_get_addr call takes an arg.
8553 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8554 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8556 (call_value_nonlocal_sysv): ..or here, delete split.
8557 (tls_gdld_nomark): Delete.
8558 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8559 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8560 (call_value_nonlocal_sysv): Likewise.
8561 (call_value_nonlocal_sysv_secure): Likewise.
8562 (call_value_nonlocal_aix): Likewise.
8563 (call_value_indirect_aix): Likewise.
8564 (call_value_indirect_elfv2): Likewise.
8565 (call_value_local32, call_value_local64): Disable for no-mark tls.
8566 (call_value_local_aix): Likewise.
8568 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8571 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8572 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8574 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8576 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8577 string contents as hash_map keys.
8579 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8582 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8583 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8584 instead of TYPE_ALIGN.
8585 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8586 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8587 pointer from TYPE_STUB_DECL.
8589 2019-01-21 Richard Biener <rguenther@suse.de>
8591 PR tree-optimization/88934
8592 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8593 at the possibly non-constant operand.
8594 (vect_get_constant_vectors): Adjust.
8596 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8599 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8600 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8601 instead of _X86INTRIN_H_INCLUDED.
8602 * onfig/i386/clwbintrin.h: Likewise.
8603 * config/i386/pkuintrin.h: Likewise.
8604 * config/i386/prfchwintrin.h: Likewise.
8605 * config/i386/rdseedintrin.h: Likewise.
8606 * config/i386/wbnoinvdintrin.h: Likewise.
8607 * config/i386/xsavecintrin.h: Likewise.
8608 * config/i386/xsavesintrin.h: Likewise.
8609 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8610 * config/i386/xsaveintrin.h: Likewise.
8611 * config/i386/xsaveoptintrin.h: Likewise.
8612 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8613 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8614 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8615 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8616 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8617 * config/i386/immintrin.h: Here.
8619 2019-01-20 Martin Jambor <mjambor@suse.cz>
8622 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8623 with aa_walk_budget.
8624 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8625 aa_walk_budget_p parameter.
8626 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8627 walk. Updated all callers.
8628 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8629 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8631 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8632 parameter info. Extract info from fbi. Pass fbi to recursive calls
8633 and to unmodified_parm.
8634 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8635 info, updated call to will_be_nonconstant_expr_predicate.
8636 (param_change_prob): New parameter fbi, limit AA walking.
8637 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8638 calls to various above functions.
8639 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8640 parameter. Use it to limit AA walking.
8641 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8643 (detect_type_change): New parameter fbi, pass it on to
8644 detect_type_change_from_memory_writes.
8645 (detect_type_change_ssa): Likewise.
8646 (aa_overwalked): Removed.
8647 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8648 accordingly, adjust to the neew AA limiting scheme.
8649 (parm_ref_data_preserved_p): Likewise.
8650 (ipa_compute_jump_functions_for_edge): Adjust call to
8652 (ipa_analyze_call_uses): Likewise.
8653 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8654 (ipa_analyze_node): Initialize aa_walk_budget.
8655 (ipcp_transform_function): Likewise.
8656 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8657 to get_dynamic_type.
8659 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8661 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8662 outside of #if CHECKING_P code.
8664 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8666 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8667 New function, split out from...
8668 (loop_versioning::analyze_stride): ...here.
8669 (loop_versioning::find_per_loop_multiplication): Use gassign.
8670 (loop_versioning::analyze_term_using_scevs): Return a success code.
8671 (loop_versioning::analyze_arbitrary_term): New function.
8672 (loop_versioning::analyze_address_fragment): Use
8673 analyze_arbitrary_term if all else fails.
8675 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8678 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8681 2019-01-18 Richard Biener <rguenther@suse.de>
8683 PR tree-optimization/88903
8684 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8685 scalar stmts a SLP shift amount is composed of when detecting
8688 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8691 * config/arm/arm-cpus.in (mp): New feature.
8693 (fgroup ARMv7ve): Add mp and sec features.
8694 (arch armv7-a): Add options to allow mp and sec extensions.
8695 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8696 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8697 extenstions to the base architecture.
8698 (cpu cortex-a8): Add sec extension to the base architecture.
8699 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8700 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8701 variants down to the base v7-a varaint.
8702 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8703 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8704 of permitted extensions for -march=armv7-a and for
8705 -mcpu=generic-armv7-a.
8707 2019-01-18 Martin Liska <mliska@suse.cz>
8709 * params.def: Fix comment.
8710 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8712 (gimple_gen_ic_func_profiler): Likewise.
8714 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8716 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8717 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8718 and put in error checks for stack protector guard options.
8719 (aarch64_stack_protect_guard): New.
8720 (TARGET_STACK_PROTECT_GUARD): Define.
8721 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8722 (reg_stack_protect_address<mode>): New.
8723 (stack_protect_set): Adjust for SSP_GLOBAL.
8724 (stack_protect_test): Likewise.
8725 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8726 (-mstack-protector-guard): Likewise.
8727 (-mstack-protector-guard-offset): Likewise.
8729 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8731 PR tree-optimization/86214
8732 * tree-inline.h (struct copy_body_data): Add
8733 add_clobbers_to_eh_landing_pads member.
8734 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8735 (copy_edges_for_bb): Call it if EH edge destination is <
8736 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8737 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8738 if flag_stack_reuse != SR_NONE and clear it afterwards.
8740 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8743 * doc/install.texi (with-multilib-list): Document for aarch64.
8745 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8748 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8749 (("..."))) with ("...").
8751 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8753 * doc/extend.texi (Built-in Functions for Memory Model Aware
8754 Atomic Operations): Document atomic fetch and nand.
8756 2019-01-18 Martin Liska <mliska@suse.cz>
8757 Richard Biener <rguenther@suse.de>
8760 * cgraph.h (create_version_clone_with_body): Add new argument
8762 * cgraphclones.c (cgraph_node::create_version_clone): Add
8763 DECL_ATTRIBUTES to a newly created decl. And call
8764 valid_attribute_p so that proper cl_target_optimization_node
8765 is set for the newly created declaration.
8766 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8768 (expand_target_clones): Do not call valid_attribute_p, it must
8770 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8773 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8776 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8777 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8778 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8780 2019-01-17 Martin Sebor <msebor@redhat.com>
8783 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8784 Handle anti-ranges the same as no range at all.
8786 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8788 * config/aarch64/aarch64.c (cgraph.h): New include.
8789 (intl.h): New include.
8790 (supported_simd_type): New function.
8791 (currently_supported_simd_type): Ditto.
8792 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8793 (aarch64_simd_clone_adjust): Ditto.
8794 (aarch64_simd_clone_usable): Ditto.
8795 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
8796 (TARGET_SIMD_CLONE_ADJUST): Ditto.
8797 (TARGET_SIMD_CLONE_USABLE): Ditto.
8798 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
8799 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
8802 2019-01-17 Martin Sebor <msebor@redhat.com>
8804 PR tree-optimization/88800
8805 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
8806 NO_WARNING bit here. Avoid folding out-of-bounds calls.
8807 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
8808 redundant argument. Add new argument and issue diagnostics under
8809 its control. Detect out-of-bounds access even with warnings
8811 (check_bounds_or_overlap): Change return type. Add argument.
8812 (wrestrict_dom_walker::check_call): Adjust.
8813 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
8814 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
8815 check_bounds_or_overlap's return value.
8816 (handle_builtin_stxncpy): Same.
8817 (handle_builtin_strcat): Same.
8819 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8820 Kwok Cheung Yeung <kcy@codesourcery.com>
8821 Julian Brown <julian@codesourcery.com>
8822 Tom de Vries <tom@codesourcery.com>
8824 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
8826 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8828 * doc/sourcebuild.texi: Document dg-require-effective-target
8829 llvm_binutils and offload_gcn.
8831 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8832 Kwok Cheung Yeung <kcy@codesourcery.com>
8833 Julian Brown <julian@codesourcery.com>
8834 Tom de Vries <tom@codesourcery.com>
8836 * doc/sourcebuild.texi: Document dg-required-effective-target
8839 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8840 Kwok Cheung Yeung <kcy@codesourcery.com>
8841 Julian Brown <julian@codesourcery.com>
8842 Tom de Vries <tom@codesourcery.com>
8843 Jan Hubicka <hubicka@ucw.cz>
8844 Martin Jambor <mjambor@suse.cz>
8846 * config.gcc: Add amdgcn*-*-amdhsa configuration.
8847 * configure.ac: Check for dlopen.
8848 * configure: Regenerate.
8850 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8851 Kwok Cheung Yeung <kcy@codesourcery.com>
8852 Julian Brown <julian@codesourcery.com>
8853 Tom de Vries <tom@codesourcery.com>
8854 Jan Hubicka <hubicka@ucw.cz>
8855 Martin Jambor <mjambor@suse.cz>
8857 * common/config/gcn/gcn-common.c: New file.
8858 * config/gcn/driver-gcn.c: New file.
8859 * config/gcn/gcn-builtins.def: New file.
8860 * config/gcn/gcn-hsa.h: New file.
8861 * config/gcn/gcn-modes.def: New file.
8862 * config/gcn/gcn-opts.h: New file.
8863 * config/gcn/gcn-passes.def: New file.
8864 * config/gcn/gcn-protos.h: New file.
8865 * config/gcn/gcn-run.c: New file.
8866 * config/gcn/gcn-tree.c: New file.
8867 * config/gcn/gcn.c: New file.
8868 * config/gcn/gcn.h: New file.
8869 * config/gcn/gcn.opt: New file.
8870 * config/gcn/t-gcn-hsa: New file.
8872 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
8873 Kwok Cheung Yeung <kcy@codesourcery.com>
8874 Julian Brown <julian@codesourcery.com>
8875 Tom de Vries <tom@codesourcery.com>
8876 Jan Hubicka <hubicka@ucw.cz>
8877 Martin Jambor <mjambor@suse.cz>
8879 * config/gcn/constraints.md: New file.
8880 * config/gcn/gcn-valu.md: New file.
8881 * config/gcn/gcn.md: New file.
8882 * config/gcn/predicates.md: New file.
8884 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
8886 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
8887 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
8888 (stmt_uses_0_or_null_in_undefined_way): Likewise.
8889 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
8891 2019-01-17 Tamar Christina <tamar.christina@arm.com>
8894 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
8895 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
8896 it and document registers.
8898 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8900 * config/aarch64/aarch64.c (ares_tunings): Define.
8901 * config/aarch64/aarch64-cores.def (ares): Use the above.
8903 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8907 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
8909 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
8910 (_mm512_fixupimm_round_pd): Update parameters and builtin.
8911 (_mm512_maskz_fixupimm_round_pd): Ditto.
8912 (_mm512_fixupimm_round_ps): Ditto.
8913 (_mm512_maskz_fixupimm_round_ps): Ditto.
8914 (_mm_fixupimm_round_sd): Ditto.
8915 (_mm_maskz_fixupimm_round_sd): Ditto.
8916 (_mm_fixupimm_round_ss): Ditto.
8917 (_mm_maskz_fixupimm_round_ss): Ditto.
8918 (_mm512_fixupimm_pd): Ditto.
8919 (_mm512_maskz_fixupimm_pd): Ditto.
8920 (_mm512_fixupimm_ps): Ditto.
8921 (_mm512_maskz_fixupimm_ps): Ditto.
8922 (_mm_fixupimm_sd): Ditto.
8923 (_mm_maskz_fixupimm_sd): Ditto.
8924 (_mm_fixupimm_ss): Ditto.
8925 (_mm_maskz_fixupimm_ss): Ditto.
8926 (_mm512_mask_fixupimm_round_pd): Update builtin.
8927 (_mm512_mask_fixupimm_round_ps): Ditto.
8928 (_mm_mask_fixupimm_round_sd): Ditto.
8929 (_mm_mask_fixupimm_round_ss): Ditto.
8930 (_mm512_mask_fixupimm_pd): Ditto.
8931 (_mm512_mask_fixupimm_ps): Ditto.
8932 (_mm_mask_fixupimm_sd): Ditto.
8933 (_mm_mask_fixupimm_ss): Ditto.
8934 * config/i386/avx512vlintrin.h:
8935 (_mm256_fixupimm_pd): Update parameters and builtin.
8936 (_mm256_maskz_fixupimm_pd): Ditto.
8937 (_mm256_fixupimm_ps): Ditto.
8938 (_mm256_maskz_fixupimm_ps): Ditto.
8939 (_mm_fixupimm_pd): Ditto.
8940 (_mm_maskz_fixupimm_pd): Ditto.
8941 (_mm_fixupimm_ps): Ditto.
8942 (_mm_maskz_fixupimm_ps): Ditto.
8943 (_mm256_mask_fixupimm_pd): Update builtin.
8944 (_mm256_mask_fixupimm_ps): Ditto.
8945 (_mm_mask_fixupimm_pd): Ditto.
8946 (_mm_mask_fixupimm_ps): Ditto.
8947 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
8948 * config/i386/i386-builtin.def: Update builtin definitions.
8949 * config/i386/i386.c: Handle new builtin types and remove useless ones.
8950 * config/i386/sse.md: Update VFIXUPIMM* patterns.
8951 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8952 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8953 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
8954 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8955 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8956 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
8957 * config/i386/subst.md:
8958 (round_saeonly_sd_mask_operand4): Add new subst_attr.
8959 (round_saeonly_sd_mask_op4): Ditto.
8960 (round_saeonly_expand_operand5): Ditto.
8961 (round_saeonly_expand): Update.
8963 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8967 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
8969 * config/i386/sse.md: Combine VFIXUPIMM* patterns
8970 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8971 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8972 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
8973 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
8974 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
8975 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
8977 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
8981 2018-12-15 Jakub Jelinek <jakub@redhat.com>
8984 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
8985 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
8986 instead of UNSPEC_FIXUPIMM.
8988 2019-01-17 Richard Biener <rguenther@suse.de>
8991 * dwarf2out.c (want_pubnames): Never generate pubnames sections
8992 and friends for the LTO part of debug info.
8994 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8996 PR tree-optimization/86214
8997 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9000 PR rtl-optimization/88870
9001 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9002 throw if we can't alter the cfg or delete dead exceptions.
9003 (mark_insn): Don't call find_call_stack_args for such calls.
9005 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9007 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9008 prototypes for vec_st.
9009 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9010 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9011 mainly on signed/unsigned long long and double.
9013 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9016 * combine.c (delete_noop_moves): Convert to "bool" return,
9017 returning true if any edges are eliminated.
9018 (combine_instructions): Also return true if delete_noop_moves
9021 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9023 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9024 correct max nunits for endian swap.
9025 (aarch64_expand_fcmla_builtin): Correct subreg code.
9026 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9027 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9030 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9032 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9033 Handle split indirect COMPLEX_TYPE arguments.
9035 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9038 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9039 bit is set by add and compare.
9040 (CC_ADC): New CC_MODE.
9041 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9042 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9043 comparison. Add detection for CC_ADCmode.
9044 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9046 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9047 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9048 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9049 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9050 to eliminate the need for zero-extending the operands.
9051 (add<mode>3_compareC_imm): Delete. Merge into ...
9052 (add<mode>3_compareC): ... this. Restructure the comparison to
9053 eliminate the need for zero-extending the operands.
9054 (add<mode>3_carryin): Use LTU for the overflow detection.
9055 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9056 Reexpress comparison for overflow.
9057 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9058 (add<mode>3_carryinC): Likewise.
9059 (add<mode>3_carryinV): Use LTU for carry between partials.
9060 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9061 handling of CC_Cmode and add CC_ADCmode.
9062 (aarch64_borrow_operation): Likewise.
9064 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9066 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9067 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9068 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9069 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9071 2019-01-16 Martin Liska <mliska@suse.cz>
9073 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9075 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9077 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9078 (path_prefix_reset): Move up in the source file.
9079 (find_fortran_preinclude_file): Make complex search for the
9080 fortran header files.
9082 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9084 * godump.c (go_output_typedef): When outputting a typedef, refer
9085 to the underlying type by its name and not its structure.
9087 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9090 * tree.c (build_function_type): Assert that arg_types is not
9093 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9096 * doc/extend.texi: Document that listing the stack pointer in the
9097 clobber list of an asm is a deprecated feature.
9098 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9099 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9100 warning instead of an error for clobbers of the stack pointer.
9101 Add a note explaining why.
9103 2019-01-15 Richard Biener <rguenther@suse.de>
9106 * dwarf2out.c (gen_member_die): Do not generate inheritance
9109 2019-01-15 Richard Biener <rguenther@suse.de>
9111 PR tree-optimization/88855
9112 * tree-if-conv.c (combine_blocks): Collect
9113 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9115 2019-01-15 Tom de Vries <tdevries@suse.de>
9118 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9119 lhs == NULL_TREE for gang-level reduction.
9121 2019-01-15 Richard Biener <rguenther@suse.de>
9122 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9125 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9126 return true if SSA_NAME is already marked in visited bitmap.
9127 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9129 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9131 PR tree-optimization/88775
9132 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9133 equal == 0 equality pointer comparisons some more if compared in
9134 integral types and either one points to an automatic var and the
9135 other to a global, or we can prove at least one points to the middle
9136 or both point to start or both point to end.
9138 2019-01-14 Andi Kleen <ak@linux.intel.com>
9140 * Makefile.in: Lower autofdo sampling rate by 10x.
9141 * Makefile.tpl: Dito.
9143 2019-01-14 Tom Honermann <tom@honermann.net>
9145 * defaults.h: Define CHAR8_TYPE.
9147 2019-01-14 Martin Sebor <msebor@redhat.com>
9150 * doc/extend.texi (Darwin Format Checks): Clarify.
9152 2019-01-14 Richard Biener <rguenther@suse.de>
9154 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9155 whether we are in (simplify ...) or (match ...) context.
9157 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9159 PR rtl-optimization/88796
9160 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9161 * cfgexpand.c (stack_protect_prologue): Initialize
9162 crtl->stack_protect_guard_decl.
9163 * function.c (stack_protect_epilogue): Use it instead of calling
9164 targetm.stack_protect_guard again.
9165 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9166 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9167 crtl->stack_protect_guard_decl.
9168 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9169 on the returned MEM_EXPR.
9171 2019-01-12 Tom de Vries <tdevries@suse.de>
9173 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9174 vector length using -fopenacc-dim.
9176 2019-01-12 Tom de Vries <tdevries@suse.de>
9178 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9179 lengths into account.
9181 2019-01-12 Svante Signell <svante.signell@gmail.com>
9183 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9184 (TARGET_CAN_SPLIT_STACK): Define.
9185 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9187 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9189 * params.def (inline-unit-growth): Set to 40.
9191 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9193 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9195 2019-01-12 Tom de Vries <tdevries@suse.de>
9197 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9198 region calling vector-partitionable routine, set default_vector_length
9201 2019-01-12 Tom de Vries <tdevries@suse.de>
9203 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9204 variable default_vector_length.
9206 2019-01-12 Tom de Vries <tdevries@suse.de>
9209 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9210 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9213 2019-01-12 Tom de Vries <tdevries@suse.de>
9215 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9216 (nvptx_goacc_validate_dims): Add used parameter.
9217 * doc/tm.texi: Regenerate.
9218 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9219 argument to call to targetm.goacc.validate_dims.
9220 (default_goacc_validate_dims): Add used
9222 * target.def (validate_dims): Add used parameter in DEFHOOK.
9223 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9225 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9229 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9231 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9232 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9233 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9234 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9236 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9238 PR rtl-optimization/87305
9240 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9241 for little endian pseudos used as paradoxical subreg.
9243 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9245 PR tree-optimization/88693
9246 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9247 for STRING_CSTs that don't contain any NUL characters in the first
9248 TREE_STRING_LENGTH bytes.
9250 2019-01-11 Alan Modra <amodra@gmail.com>
9254 * genattrtab.c (min_fn): Don't translate values.
9255 (min_attr_value): Return INT_MAX when the value can't be calculated.
9256 Return minimum among any values that can be calculated.
9257 (max_attr_value): Adjust.
9259 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9261 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9263 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9265 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9266 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9267 (aarch64_return_call_with_max_clobbers): New function.
9268 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9269 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9271 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9272 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9273 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9274 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9275 * cselib.c (cselib_process_insn): Add argument to
9276 targetm.hard_regno_call_part_clobbered call.
9277 * ira-conflicts.c (ira_build_conflicts): Ditto.
9278 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9279 * lra-constraints.c (inherit_reload_reg): Ditto.
9280 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9281 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9282 argument. Call targetm.return_call_with_max_clobbers.
9283 Add argument to targetm.hard_regno_call_part_clobbered call.
9284 (calls_have_same_clobbers_p): New function.
9285 (process_bb_lives): Add call_insn and last_call_insn variables.
9286 Pass call_insn to check_pseudos_live_through_calls.
9287 Modify if stmt to check targetm.return_call_with_max_clobbers.
9288 Update setting of flush variable.
9289 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9291 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9292 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9293 targetm.hard_regno_call_part_clobbered call.
9294 * reginfo.c (choose_hard_reg_mode): Ditto.
9295 * regrename.c (check_new_reg_p): Ditto.
9296 * reload.c (find_equiv_reg): Ditto.
9297 * reload1.c (emit_reload_insns): Ditto.
9298 * sched-deps.c (deps_analyze_insn): Ditto.
9299 * sel-sched.c (init_regs_for_mode): Ditto.
9300 (mark_unavailable_hard_regs): Ditto.
9301 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9302 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9303 (return_call_with_max_clobbers): New target function.
9304 * doc/tm.texi: Regenerate.
9305 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9306 * hooks.c (hook_bool_uint_mode_false): Change to
9307 hook_bool_insn_uint_mode_false.
9308 * hooks.h (hook_bool_uint_mode_false): Ditto.
9310 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9312 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9313 (aarch64_remove_extra_call_preserved_regs): New function.
9314 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9315 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9316 * doc/tm.texi: Regenerate.
9317 * final.c (get_call_reg_set_usage): Call new hook.
9318 * target.def (remove_extra_call_preserved_regs): New hook.
9319 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9320 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9322 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9325 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9326 inside of pass_combine_1 dump rather than pass_profile_1.
9328 2019-01-11 Tom de Vries <tdevries@suse.de>
9330 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9331 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9332 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9333 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9336 2019-01-11 Tom de Vries <tdevries@suse.de>
9338 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9340 2019-01-11 Jan Beulich <jbeulich@suse.com>
9342 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9343 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9344 sse2_cvtsi2sd): Add {l}.
9345 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9348 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9351 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9353 (*float<floatunssuffix>v2div2sf2): New define_insn.
9354 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9355 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9356 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9357 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9358 match_operands with "const0_operand" "C".
9360 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9362 * config/aarch64/aarch64-builtins.c
9363 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9364 (aarch64_init_simd_builtins): ...Here
9366 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9368 PR rtl-optimization/87305
9370 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9371 allocation for big endian pseudos used as paradoxical subregs and
9372 spill them if it is wrong.
9373 * lra-constraints.c (lra_constraints): Add a comment.
9375 2019-01-10 Richard Biener <rguenther@suse.de>
9377 PR tree-optimization/88792
9378 * tree-ssa-pre.c (get_representative_for): Do not return a
9381 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9385 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9386 (assign_parm_setup_block): Do the argument slot realignment here
9389 2019-01-10 Stefan Agner <stefan@agner.ch>
9392 * config/arm/arm.c (arm_option_override_internal): Force
9393 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9395 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9398 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9401 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9403 * config/arm/arm-builtins.c
9404 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9405 (MAC_LANE_PAIR_QUALIFIERS): New.
9406 (arm_expand_builtin_args): Use it.
9407 (arm_expand_builtin_1): Likewise.
9408 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9409 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9410 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9411 * config/arm/arm_neon.h:
9412 (vcadd_rot90_f16): New.
9413 (vcaddq_rot90_f16): New.
9414 (vcadd_rot270_f16): New.
9415 (vcaddq_rot270_f16): New.
9418 (vcmla_lane_f16): New.
9419 (vcmla_laneq_f16): New.
9420 (vcmlaq_lane_f16): New.
9421 (vcmlaq_laneq_f16): New.
9422 (vcmla_rot90_f16): New.
9423 (vcmlaq_rot90_f16): New.
9424 (vcmla_rot90_lane_f16): New.
9425 (vcmla_rot90_laneq_f16): New.
9426 (vcmlaq_rot90_lane_f16): New.
9427 (vcmlaq_rot90_laneq_f16): New.
9428 (vcmla_rot180_f16): New.
9429 (vcmlaq_rot180_f16): New.
9430 (vcmla_rot180_lane_f16): New.
9431 (vcmla_rot180_laneq_f16): New.
9432 (vcmlaq_rot180_lane_f16): New.
9433 (vcmlaq_rot180_laneq_f16): New.
9434 (vcmla_rot270_f16): New.
9435 (vcmlaq_rot270_f16): New.
9436 (vcmla_rot270_lane_f16): New.
9437 (vcmla_rot270_laneq_f16): New.
9438 (vcmlaq_rot270_lane_f16): New.
9439 (vcmlaq_rot270_laneq_f16): New.
9440 (vcadd_rot90_f32): New.
9441 (vcaddq_rot90_f32): New.
9442 (vcadd_rot270_f32): New.
9443 (vcaddq_rot270_f32): New.
9446 (vcmla_lane_f32): New.
9447 (vcmla_laneq_f32): New.
9448 (vcmlaq_lane_f32): New.
9449 (vcmlaq_laneq_f32): New.
9450 (vcmla_rot90_f32): New.
9451 (vcmlaq_rot90_f32): New.
9452 (vcmla_rot90_lane_f32): New.
9453 (vcmla_rot90_laneq_f32): New.
9454 (vcmlaq_rot90_lane_f32): New.
9455 (vcmlaq_rot90_laneq_f32): New.
9456 (vcmla_rot180_f32): New.
9457 (vcmlaq_rot180_f32): New.
9458 (vcmla_rot180_lane_f32): New.
9459 (vcmla_rot180_laneq_f32): New.
9460 (vcmlaq_rot180_lane_f32): New.
9461 (vcmlaq_rot180_laneq_f32): New.
9462 (vcmla_rot270_f32): New.
9463 (vcmlaq_rot270_f32): New.
9464 (vcmla_rot270_lane_f32): New.
9465 (vcmla_rot270_laneq_f32): New.
9466 (vcmlaq_rot270_lane_f32): New.
9467 (vcmlaq_rot270_laneq_f32): New.
9468 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9469 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9470 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9471 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9472 vcmlaq_lane270): New.
9473 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9474 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9475 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9476 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9477 (arm_option_reconfigure_globals): Use them.
9478 * config/arm/iterators.md (VDF, VQ_HSF): New.
9479 (VCADD, VCMLA): New.
9480 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9481 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9483 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9484 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9486 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9488 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9489 Add qualifier_lane_pair_index.
9490 (emit-rtl.h): Include.
9491 (TYPES_QUADOP_LANE_PAIR): New.
9492 (aarch64_simd_expand_args): Use it.
9493 (aarch64_simd_expand_builtin): Likewise.
9494 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9496 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9497 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9498 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9499 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9500 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9501 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9502 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9503 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9504 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9505 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9506 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9507 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9508 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9509 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9510 Add __ARM_FEATURE_COMPLEX.
9511 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9512 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9513 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9514 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9515 fcmlaq_lane270): New.
9516 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9517 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9518 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9519 * config/aarch64/arm_neon.h:
9520 (vcadd_rot90_f16): New.
9521 (vcaddq_rot90_f16): New.
9522 (vcadd_rot270_f16): New.
9523 (vcaddq_rot270_f16): New.
9526 (vcmla_lane_f16): New.
9527 (vcmla_laneq_f16): New.
9528 (vcmlaq_lane_f16): New.
9529 (vcmlaq_rot90_lane_f16): New.
9530 (vcmla_rot90_laneq_f16): New.
9531 (vcmla_rot90_lane_f16): New.
9532 (vcmlaq_rot90_f16): New.
9533 (vcmla_rot90_f16): New.
9534 (vcmlaq_laneq_f16): New.
9535 (vcmla_rot180_laneq_f16): New.
9536 (vcmla_rot180_lane_f16): New.
9537 (vcmlaq_rot180_f16): New.
9538 (vcmla_rot180_f16): New.
9539 (vcmlaq_rot90_laneq_f16): New.
9540 (vcmlaq_rot270_laneq_f16): New.
9541 (vcmlaq_rot270_lane_f16): New.
9542 (vcmla_rot270_laneq_f16): New.
9543 (vcmlaq_rot270_f16): New.
9544 (vcmla_rot270_f16): New.
9545 (vcmlaq_rot180_laneq_f16): New.
9546 (vcmlaq_rot180_lane_f16): New.
9547 (vcmla_rot270_lane_f16): New.
9548 (vcadd_rot90_f32): New.
9549 (vcaddq_rot90_f32): New.
9550 (vcaddq_rot90_f64): New.
9551 (vcadd_rot270_f32): New.
9552 (vcaddq_rot270_f32): New.
9553 (vcaddq_rot270_f64): New.
9557 (vcmla_lane_f32): New.
9558 (vcmla_laneq_f32): New.
9559 (vcmlaq_lane_f32): New.
9560 (vcmlaq_laneq_f32): New.
9561 (vcmla_rot90_f32): New.
9562 (vcmlaq_rot90_f32): New.
9563 (vcmlaq_rot90_f64): New.
9564 (vcmla_rot90_lane_f32): New.
9565 (vcmla_rot90_laneq_f32): New.
9566 (vcmlaq_rot90_lane_f32): New.
9567 (vcmlaq_rot90_laneq_f32): New.
9568 (vcmla_rot180_f32): New.
9569 (vcmlaq_rot180_f32): New.
9570 (vcmlaq_rot180_f64): New.
9571 (vcmla_rot180_lane_f32): New.
9572 (vcmla_rot180_laneq_f32): New.
9573 (vcmlaq_rot180_lane_f32): New.
9574 (vcmlaq_rot180_laneq_f32): New.
9575 (vcmla_rot270_f32): New.
9576 (vcmlaq_rot270_f32): New.
9577 (vcmlaq_rot270_f64): New.
9578 (vcmla_rot270_lane_f32): New.
9579 (vcmla_rot270_laneq_f32): New.
9580 (vcmlaq_rot270_lane_f32): New.
9581 (vcmlaq_rot270_laneq_f32): New.
9582 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9583 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9584 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9585 (FCADD, FCMLA): New.
9587 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9589 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9593 * config/pa/pa.c: Change "can not" to "cannot".
9594 * gimple-ssa-evrp-analyze.c: Likewise.
9595 * ipa-icf.c: Likewise.
9596 * ipa-polymorphic-call.c: Likewise.
9597 * ipa-pure-const.c: Likewise.
9598 * lra-constraints.c: Likewise.
9599 * lra-remat.c: Likewise.
9600 * reload1.c: Likewise.
9601 * reorg.c: Likewise.
9602 * tree-ssa-uninit.c: Likewise.
9604 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9608 * Makefile.in: Mechanically replace "can not" with "cannot".
9609 * alias.c: Likewise.
9610 * builtins.c: Likewise.
9611 * calls.c: Likewise.
9612 * cgraph.c: Likewise.
9613 * cgraph.h: Likewise.
9614 * cgraphclones.c: Likewise.
9615 * cgraphunit.c: Likewise.
9616 * combine-stack-adj.c: Likewise.
9617 * combine.c: Likewise.
9618 * common/config/i386/i386-common.c: Likewise.
9619 * config/aarch64/aarch64.c: Likewise.
9620 * config/alpha/sync.md: Likewise.
9621 * config/arc/arc.c: Likewise.
9622 * config/arc/predicates.md: Likewise.
9623 * config/arm/arm-c.c: Likewise.
9624 * config/arm/arm.c: Likewise.
9625 * config/arm/arm.h: Likewise.
9626 * config/arm/arm.md: Likewise.
9627 * config/arm/cortex-r4f.md: Likewise.
9628 * config/csky/csky.c: Likewise.
9629 * config/csky/csky.h: Likewise.
9630 * config/darwin-f.c: Likewise.
9631 * config/epiphany/epiphany.md: Likewise.
9632 * config/i386/i386.c: Likewise.
9633 * config/i386/sol2.h: Likewise.
9634 * config/m68k/m68k.c: Likewise.
9635 * config/mcore/mcore.h: Likewise.
9636 * config/microblaze/microblaze.md: Likewise.
9637 * config/mips/20kc.md: Likewise.
9638 * config/mips/sb1.md: Likewise.
9639 * config/nds32/nds32.c: Likewise.
9640 * config/nds32/predicates.md: Likewise.
9641 * config/pa/pa.c: Likewise.
9642 * config/rs6000/e300c2c3.md: Likewise.
9643 * config/rs6000/rs6000.c: Likewise.
9644 * config/s390/s390.h: Likewise.
9645 * config/sh/sh.c: Likewise.
9646 * config/sh/sh.md: Likewise.
9647 * config/spu/vmx2spu.h: Likewise.
9648 * cprop.c: Likewise.
9649 * dbxout.c: Likewise.
9650 * df-scan.c: Likewise.
9651 * doc/cfg.texi: Likewise.
9652 * doc/extend.texi: Likewise.
9653 * doc/fragments.texi: Likewise.
9654 * doc/gty.texi: Likewise.
9655 * doc/invoke.texi: Likewise.
9656 * doc/lto.texi: Likewise.
9657 * doc/md.texi: Likewise.
9658 * doc/objc.texi: Likewise.
9659 * doc/rtl.texi: Likewise.
9660 * doc/tm.texi: Likewise.
9662 * emit-rtl.c: Likewise.
9663 * emit-rtl.h: Likewise.
9664 * except.c: Likewise.
9665 * expmed.c: Likewise.
9667 * fold-const.c: Likewise.
9668 * genautomata.c: Likewise.
9669 * gimple-fold.c: Likewise.
9670 * hard-reg-set.h: Likewise.
9671 * ifcvt.c: Likewise.
9672 * ipa-comdats.c: Likewise.
9673 * ipa-cp.c: Likewise.
9674 * ipa-devirt.c: Likewise.
9675 * ipa-fnsummary.c: Likewise.
9676 * ipa-icf.c: Likewise.
9677 * ipa-inline-transform.c: Likewise.
9678 * ipa-inline.c: Likewise.
9679 * ipa-polymorphic-call.c: Likewise.
9680 * ipa-profile.c: Likewise.
9681 * ipa-prop.c: Likewise.
9682 * ipa-pure-const.c: Likewise.
9683 * ipa-reference.c: Likewise.
9684 * ipa-split.c: Likewise.
9685 * ipa-visibility.c: Likewise.
9687 * ira-build.c: Likewise.
9688 * ira-color.c: Likewise.
9689 * ira-conflicts.c: Likewise.
9690 * ira-costs.c: Likewise.
9691 * ira-int.h: Likewise.
9692 * ira-lives.c: Likewise.
9695 * loop-invariant.c: Likewise.
9696 * loop-unroll.c: Likewise.
9697 * lower-subreg.c: Likewise.
9698 * lra-assigns.c: Likewise.
9699 * lra-constraints.c: Likewise.
9700 * lra-eliminations.c: Likewise.
9701 * lra-lives.c: Likewise.
9702 * lra-remat.c: Likewise.
9703 * lra-spills.c: Likewise.
9705 * lto-cgraph.c: Likewise.
9706 * lto-streamer-out.c: Likewise.
9707 * postreload-gcse.c: Likewise.
9708 * predict.c: Likewise.
9709 * profile-count.h: Likewise.
9710 * profile.c: Likewise.
9711 * recog.c: Likewise.
9713 * reload.c: Likewise.
9714 * reload1.c: Likewise.
9715 * reorg.c: Likewise.
9716 * resource.c: Likewise.
9717 * rtl.def: Likewise.
9719 * rtlanal.c: Likewise.
9720 * sched-deps.c: Likewise.
9721 * sched-ebb.c: Likewise.
9722 * sched-rgn.c: Likewise.
9723 * sel-sched-ir.c: Likewise.
9724 * sel-sched.c: Likewise.
9725 * shrink-wrap.c: Likewise.
9726 * simplify-rtx.c: Likewise.
9727 * symtab.c: Likewise.
9728 * target.def: Likewise.
9729 * toplev.c: Likewise.
9730 * tree-call-cdce.c: Likewise.
9731 * tree-cfg.c: Likewise.
9732 * tree-complex.c: Likewise.
9733 * tree-core.h: Likewise.
9734 * tree-eh.c: Likewise.
9735 * tree-inline.c: Likewise.
9736 * tree-loop-distribution.c: Likewise.
9737 * tree-nrv.c: Likewise.
9738 * tree-profile.c: Likewise.
9739 * tree-sra.c: Likewise.
9740 * tree-ssa-alias.c: Likewise.
9741 * tree-ssa-dce.c: Likewise.
9742 * tree-ssa-dom.c: Likewise.
9743 * tree-ssa-forwprop.c: Likewise.
9744 * tree-ssa-loop-im.c: Likewise.
9745 * tree-ssa-loop-ivcanon.c: Likewise.
9746 * tree-ssa-loop-ivopts.c: Likewise.
9747 * tree-ssa-loop-niter.c: Likewise.
9748 * tree-ssa-phionlycprop.c: Likewise.
9749 * tree-ssa-phiopt.c: Likewise.
9750 * tree-ssa-propagate.c: Likewise.
9751 * tree-ssa-threadedge.c: Likewise.
9752 * tree-ssa-threadupdate.c: Likewise.
9753 * tree-ssa-uninit.c: Likewise.
9754 * tree-ssanames.c: Likewise.
9755 * tree-streamer-out.c: Likewise.
9758 * vr-values.c: Likewise.
9760 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9762 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9763 (ix86_split_xorsign): Ditto.
9764 * config/i386/i386.c (ix86_expand_xorsign): New function.
9765 (ix86_split_xorsign): Ditto.
9766 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9767 (xorsign<mode>3): New expander.
9768 (xorsign<mode>3_1): New insn_and_split pattern.
9769 * config/i386/sse.md (xorsign<mode>3): New expander.
9771 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9773 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9774 (*tablejump_sp64): Likewise.
9775 (*tablejump<P:mode>): ...this.
9776 (*call_address_sp32): Merge into...
9777 (*call_address_sp64): Likewise.
9778 (*call_address<P:mode>): ...this.
9779 (*call_symbolic_sp32): Merge into...
9780 (*call_symbolic_sp64): Likewise.
9781 (*call_symbolic<P:mode>): ...this.
9782 (call_value): Remove constraint and add predicate.
9783 (*call_value_address_sp32): Merge into...
9784 (*call_value_address_sp64): Likewise.
9785 (*call_value_address<P:mode>): ...this.
9786 (*call_value_symbolic_sp32): Merge into...
9787 (*call_value_symbolic_sp64): Likewise.
9788 (*call_value_symbolic<P:mode>): ...this.
9789 (*sibcall_symbolic_sp32): Merge into...
9790 (*sibcall_symbolic_sp64): Likewise.
9791 (*sibcall_symbolic<P:mode>): ...this.
9792 (sibcall_value): Remove constraint and add predicate.
9793 (*sibcall_value_symbolic_sp32): Merge into...
9794 (*sibcall_value_symbolic_sp64): Likewise.
9795 (*sibcall_value_symbolic<P:mode>): ...this.
9796 (window_save): Minor tweak.
9797 (*branch_sp32): Merge into...
9798 (*branch_sp64): Likewise.
9799 (*branch<P:mode>): ...this.
9801 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9802 James Clarke <jrtc27@jrtc27.com>
9805 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
9806 consistently in TLS address generation and adjust code to the renaming
9807 of patterns. Mark calls to __tls_get_addr as const.
9808 * config/sparc/sparc.md (tgd_hi22): Turn into...
9809 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
9810 (tgd_lo10): Turn into...
9811 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
9812 (tgd_add32): Merge into...
9813 (tgd_add64): Likewise.
9814 (tgd_add<P:mode>): ...this and use Pmode throughout.
9815 (tldm_hi22): Turn into...
9816 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
9817 (tldm_lo10): Turn into...
9818 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
9819 (tldm_add32): Merge into...
9820 (tldm_add64): Likewise.
9821 (tldm_add<P:mode>): ...this and use Pmode throughout.
9822 (tldm_call32): Merge into...
9823 (tldm_call64): Likewise.
9824 (tldm_call<P:mode>): ...this and use Pmode throughout.
9825 (tldo_hix22): Turn into...
9826 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
9827 (tldo_lox10): Turn into...
9828 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
9829 (tldo_add32): Merge into...
9830 (tldo_add64): Likewise.
9831 (tldo_add<P:mode>): ...this and use Pmode throughout.
9832 (tie_hi22): Turn into...
9833 (tie_hi22<P:mode>): ...this and use Pmode throughout.
9834 (tie_lo10): Turn into...
9835 (tie_lo10<P:mode>): ...this and use Pmode throughout.
9836 (tie_ld64): Use DImode throughout.
9837 (tie_add32): Merge into...
9838 (tie_add64): Likewise.
9839 (tie_add<P:mode>): ...this and use Pmode throughout.
9840 (tle_hix22_sp32): Merge into...
9841 (tle_hix22_sp64): Likewise.
9842 (tle_hix22<P:mode>): ...this and use Pmode throughout.
9843 (tle_lox22_sp32): Merge into...
9844 (tle_lox22_sp64): Likewise.
9845 (tle_lox22<P:mode>): ...this and use Pmode throughout.
9846 (*tldo_ldub_sp32): Merge into...
9847 (*tldo_ldub_sp64): Likewise.
9848 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
9849 (*tldo_ldub1_sp32): Merge into...
9850 (*tldo_ldub1_sp64): Likewise.
9851 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
9852 (*tldo_ldub2_sp32): Merge into...
9853 (*tldo_ldub2_sp64): Likewise.
9854 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
9855 (*tldo_ldsb1_sp32): Merge into...
9856 (*tldo_ldsb1_sp64): Likewise.
9857 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
9858 (*tldo_ldsb2_sp32): Merge into...
9859 (*tldo_ldsb2_sp64): Likewise.
9860 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
9861 (*tldo_ldub3_sp64): Use DImode throughout.
9862 (*tldo_ldsb3_sp64): Likewise.
9863 (*tldo_lduh_sp32): Merge into...
9864 (*tldo_lduh_sp64): Likewise.
9865 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
9866 (*tldo_lduh1_sp32): Merge into...
9867 (*tldo_lduh1_sp64): Likewise.
9868 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
9869 (*tldo_ldsh1_sp32): Merge into...
9870 (*tldo_ldsh1_sp64): Likewise.
9871 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
9872 (*tldo_lduh2_sp64): Use DImode throughout.
9873 (*tldo_ldsh2_sp64): Likewise.
9874 (*tldo_lduw_sp32): Merge into...
9875 (*tldo_lduw_sp64): Likewise.
9876 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
9877 (*tldo_lduw1_sp64): Use DImode throughout.
9878 (*tldo_ldsw1_sp64): Likewise.
9879 (*tldo_ldx_sp64): Likewise.
9880 (*tldo_stb_sp32): Merge into...
9881 (*tldo_stb_sp64): Likewise.
9882 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
9883 (*tldo_sth_sp32): Merge into...
9884 (*tldo_sth_sp64): Likewise.
9885 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
9886 (*tldo_stw_sp32): Merge into...
9887 (*tldo_stw_sp64): Likewise.
9888 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
9889 (*tldo_stx_sp64): Use DImode throughout.
9891 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9893 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
9894 check configure option to set BTI and Return Address Signing.
9895 * configure.ac: Add --enable-standard-branch-protection and
9896 --disable-standard-branch-protection.
9897 * configure: Regenerated.
9898 * doc/install.texi: Document the same.
9900 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9901 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9903 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
9904 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
9905 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
9907 * config/aarch64/aarch64-bti-insert.c: New file.
9908 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
9910 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
9912 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
9913 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
9914 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
9915 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
9917 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9919 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
9920 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
9921 Disable bti for -mbranch-protection=none.
9922 (aarch64_handle_standard_branch_protection): Enable bti for
9923 -mbranch-protection=standard.
9924 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
9925 -mbranch-protection.
9926 (aarch64_bti_enabled): Check if bti is enabled.
9927 * config/aarch64/aarch64.opt: Declare target variable.
9928 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
9930 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9932 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
9933 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
9934 (aarch64_expand_epilogue): Likewise.
9935 (aarch64_output_mi_thunk): Likewise
9936 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
9937 TAILCALL_ADDR_REGS to x16 and x17.
9938 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
9940 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9942 * config/aarch64/aarch64-option-extensions.def: Define
9943 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
9944 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
9945 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
9946 (AARCH64_FL_PREDRES): New.
9947 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
9948 AARCH64_FL_PREDRES by default.
9949 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
9951 2018-01-09 Sudakshina Das <sudi.das@arm.com>
9953 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
9955 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
9956 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
9957 * doc/invoke.texi: Document ARMv8.5-A.
9959 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9961 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
9962 (xorsign<mode>3): Likewise.
9964 2019-01-09 Jelinek <jakub@redhat.com>
9967 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
9968 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
9970 PR rtl-optimization/88331
9971 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
9972 not currently_expanding_to_rtl.
9974 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9976 * doc/invoke.texi (-Os): Remove trailing spaces.
9977 (-finline-functions): Remove reference to -O2.
9979 2019-01-08 Jakub Jelinek <jakub@redhat.com>
9981 PR rtl-optimization/79593
9982 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
9984 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
9985 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
9987 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
9990 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
9994 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
9995 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
9997 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10000 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10001 ix86_avx_u128_mode_entry.
10003 2019-01-08 Martin Liska <mliska@suse.cz>
10005 PR tree-optimization/88753
10006 * tree-switch-conversion.c (switch_conversion::build_one_array):
10007 Come up with local variable constructor. Convert first to
10008 type of constructor values.
10010 2019-01-08 Richard Biener <rguenther@suse.de>
10012 PR tree-optimization/86554
10013 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10014 rpo_avail): Move earlier.
10015 (visit_nary_op): When value-numbering to expressions
10016 with different overflow behavior make sure there's an
10017 available expression on the path.
10019 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10021 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10022 aarch64_parse_branch_protection,
10023 struct aarch64_branch_protect_type,
10024 aarch64_handle_no_branch_protection,
10025 aarch64_handle_standard_branch_protection,
10026 aarch64_validate_mbranch_protection,
10027 aarch64_handle_pac_ret_protection,
10028 aarch64_handle_attr_branch_protection,
10029 accepted_branch_protection_string,
10030 aarch64_pac_ret_subtypes,
10031 aarch64_branch_protect_types,
10032 aarch64_handle_pac_ret_leaf): Define.
10033 (aarch64_override_options_after_change_1, aarch64_override_options):
10034 Add check for accepted_branch_protection_string.
10035 (aarch64_option_save): Save accepted_branch_protection_string.
10036 (aarch64_option_restore): Save accepted_branch_protection_string.
10037 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10038 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10039 msign-return-address.
10040 * doc/invoke.texi: Add mbranch-protection.
10042 2019-01-08 Alan Modra <amodra@gmail.com>
10045 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10046 Delete "unknownp" parameter. Adjust callers. Handle
10047 CONST_INT, PLUS, MINUS, and MULT.
10048 (attr_value_aligned): Renamed from or_attr_value.
10049 (min_attr_value): Return INT_MIN for unhandled rtl case..
10050 (min_fn): ..and translate to INT_MAX here.
10051 (write_length_unit_log): Modify to cope without "unknown".
10052 (write_attr_value): Handle IF_THEN_ELSE.
10054 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10056 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10057 optimization for masked stores.
10059 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10061 PR middle-end/88567
10062 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10063 output vector directly to duplicate_and_interleave instead of
10064 going through a temporary. Postpone insertion of ctor_seq to
10065 the end of the loop.
10067 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10070 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10071 unsigned_p. Handle signed and unsigned overflow correction as
10073 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10075 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10077 (add<mode>3_compareV_imm): Make this callable for expanding.
10078 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10079 aarch64_plus_operand for operand 2.
10080 (subv<GPI:mode>_insn): New insn pattern.
10081 (subv<GPI:mode>_imm): Likewise.
10082 (negv<GPI:mode>3): New expand pattern.
10083 (negv<GPI:mode>_insn): New insn pattern.
10084 (negv<GPI:mode>_cmp_only): Likewise.
10085 (cmpv<GPI:mode>_insn): Likewise.
10086 (subvti4): Use register_operand for operand 1. Update call to
10087 aarch64_expand_subvti.
10088 (usubvti4): Likewise.
10089 (negvti3): New expand pattern.
10090 (negdi_carryout): New insn pattern.
10091 (negvdi_carryinV): New insn pattern.
10092 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10093 version the named version.
10094 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10096 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10098 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10100 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10101 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10102 (sub<mode>3_carryinCV): Delete.
10103 (sub<GPI:mode>3_carryinV): New expand pattern.
10104 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10106 2019-01-07 Richard Biener <rguenther@suse.de>
10108 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10109 of tree_operand_hash.
10111 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10113 PR tree-optimization/88598
10114 * tree.h (single_nonzero_element): Declare.
10115 * tree.c (single_nonzero_element): New function.
10116 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10117 if I is the only nonzero element of CST.
10119 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10121 PR tree-optimization/88598
10122 * tree.h (initializer_each_zero_or_onep): Declare.
10123 * tree.c (initializer_each_zero_or_onep): New function.
10124 (signed_or_unsigned_type_for): Handle float types too.
10125 (unsigned_type_for, signed_type_for): Update comments accordingly.
10126 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10127 x & { 0 or -1, 0 or -1, ... }.
10129 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10131 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10132 with x86_64-pc-linux-gnu.
10134 2019-01-07 Tom de Vries <tdevries@suse.de>
10137 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10139 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10142 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10144 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10145 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10146 TARGET_AVX512F as condition.
10149 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10150 const_not_ok_for_debug_p target hook.
10151 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10152 on UNSPEC and subexpressions thereof if all subexpressions of the
10153 UNSPEC are CONSTANT_P.
10155 PR tree-optimization/88676
10156 * tree-ssa-phiopt.c (two_value_replacement): New function.
10157 (tree_ssa_phiopt_worker): Call it.
10160 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10161 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10164 * tree-vect-generic.c: Include insn-config.h and recog.h.
10165 (expand_vector_piecewise): Add defaulted ret_type argument,
10166 if non-NULL, use that in preference to type for the result type.
10167 (expand_vector_parallel): Formatting fix.
10168 (do_vec_conversion, do_vec_narrowing_conversion,
10169 expand_vector_conversion): New functions.
10170 (expand_vector_operations_1): Call expand_vector_conversion
10171 for VEC_CONVERT ifn calls.
10172 * internal-fn.def (VEC_CONVERT): New internal function.
10173 * internal-fn.c (expand_VEC_CONVERT): New function.
10174 * fold-const-call.c (fold_const_vec_convert): New function.
10175 (fold_const_call): Use it for CFN_VEC_CONVERT.
10176 * doc/extend.texi (__builtin_convertvector): Document.
10178 2019-01-07 Tom de Vries <tdevries@suse.de>
10180 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10181 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10182 vector_red_partition, vector_red_sym): New global variables.
10183 (nvptx_option_override): Initialize vector_red_sym.
10184 (nvptx_declare_function_name): Restore red_partition register.
10185 (nvptx_file_end): Emit code to declare the vector reduction variables.
10186 (nvptx_output_red_partition): New function.
10187 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10188 large vector reductions.
10189 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10190 (nvptx_init_builtins): Add VECTOR_ADDR.
10191 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10192 Handle nvptx_expand_shared_addr.
10193 (nvptx_get_shared_red_addr): Add vector argument and handle large
10195 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10197 (nvptx_goacc_reduction_init): Likewise.
10198 (nvptx_goacc_reduction_fini): Likewise.
10199 (nvptx_goacc_reduction_teardown): Likewise.
10200 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10201 init,fini,teardown}.
10202 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10203 (nvptx_set_current_function): Init vector_red_partition.
10204 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10205 (nvptx_red_partition): New insn.
10206 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10208 2019-01-07 Tom de Vries <tdevries@suse.de>
10211 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10214 2019-01-07 Tom de Vries <tdevries@suse.de>
10216 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10217 (nvptx_option_override): Init oacc_bcast_partition.
10218 (nvptx_init_oacc_workers): New function.
10219 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10220 (nvptx_needs_shared_bcast): New function.
10221 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10222 to propagate state.
10223 (nvptx_shared_propagate): Initialize vector bcast partition and
10224 synchronization state.
10225 (nvptx_single): Generalize to enable vectors to use shared-memory
10226 to propagate state.
10227 (nvptx_process_pars): Likewise.
10228 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10229 * config/nvptx/nvptx.h (struct machine_function): Add
10230 bcast_partition and sync_bar members.
10232 2019-01-07 Tom de Vries <tdevries@suse.de>
10234 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10235 (nvptx_apply_dim_limits): New function.
10236 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10239 2019-01-07 Tom de Vries <tdevries@suse.de>
10241 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10242 as late as possible.
10244 2019-01-07 Tom de Vries <tdevries@suse.de>
10246 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10247 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10248 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10249 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10250 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10252 2019-01-07 Tom de Vries <tdevries@suse.de>
10254 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10256 2019-01-07 Tom de Vries <tdevries@suse.de>
10258 * omp-offload.c (oacc_get_min_dim): New function.
10259 * omp-offload.h (oacc_get_min_dim): Declare.
10261 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10264 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10265 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10267 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10271 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10273 * ipa-inline.c (edge_badness): Use inlined_time instead of
10274 inline_summaries->get.
10276 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10278 * opts.c (enable_fdo_optimizations): Enable
10279 version-loops-for-strides, loop-interchange, unrol-and-jam
10280 and tree-loop-distribution.
10281 * invoke.texi: Document newly enabled options.
10283 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10285 * doc/invoke.texi (max-inline-insns-small): New parameters.
10286 * ipa-inline.c (want_early_inline_function_p): simplify.
10287 (want_inline_small_function_p): Fix pasto from previous patch;
10288 use max-inline-insns-small bound.
10289 * params.def (max-inline-insns-small): New param.
10290 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10291 variables correctly.
10293 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10295 * doc/invoke.texi: Document max-inline-insns-size,
10296 uninlined-function-insns, uninlined-function-time,
10297 uninlined-thunk-insns and uninlined-thunk-time.
10298 * params.def: Add max-inline-insns-size,
10299 uninlined-function-insns, uninlined-function-time,
10300 uninlined-thunk-insns and uninlined-thunk-time.
10301 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10303 * ipa-inline.c (can_inline_edge_by_limits_p,
10304 want_inline_small_function_p): Use new parameters.
10306 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10308 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10310 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10312 PR middle-end/82564
10314 * expr.c (expand_assignment): For calls returning VLA structures
10315 if to_rtx is not a MEM, force it into a stack temporary.
10318 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10319 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10320 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10321 subexpressions of both operands.
10322 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10323 subrtxes are CONSTANT_P.
10324 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10325 2018-11-09 changes.
10327 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10329 * params.def (hot-bb-count-ws-permille): Set to 990.
10331 2019-01-04 Martin Sebor <msebor@redhat.com>
10334 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10337 2019-01-04 Martin Sebor <msebor@redhat.com>
10340 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10342 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10344 * gdbinit.in: Turn off pagination for the skip commands, restore
10345 it to previous state afterwards.
10347 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10350 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10351 of GET_MODE (opN) as modes of the libcall arguments.
10353 2019-01-04 Jan Beulich <jbeulich@suse.com>
10355 * config/i386/sse.md
10356 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10357 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10358 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10359 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10360 avx512f_vmcmp<mode>3<round_saeonly_name>,
10361 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10362 avx512f_maskcmp<mode>3,
10363 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10364 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10365 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10366 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10367 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10368 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10369 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10370 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10371 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10372 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10373 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10374 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10375 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10376 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10377 avx512cd_maskb_vec_dup<mode>,
10378 avx512cd_maskw_vec_dup<mode>,
10379 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10380 avx512dq_vmfpclass<mode>,
10381 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10384 2019-01-03 Martin Sebor <msebor@redhat.com>
10386 PR tree-optimization/88659
10387 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10389 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10391 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10392 unaligned vsx and avoid lxvd2x/stxvd2x.
10393 (gen_lvx_v4si_move): New function.
10395 2019-01-03 Tom de Vries <tdevries@suse.de>
10397 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10398 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10400 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10402 2019-01-03 Tom de Vries <tdevries@suse.de>
10404 * config/nvptx/nvptx.c (struct offload_attrs): New.
10405 (populate_offload_attrs): New function. Factor mask extraction out of
10406 nvptx_reorg. Add extraction of dimensions.
10407 (nvptx_reorg): Use populate_offload_attrs.
10409 2019-01-03 Tom de Vries <tdevries@suse.de>
10411 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10412 cases for oacc_min_dims_p and routine_p. Add asserts for
10413 oacc_default_dims_p and offload_region_p.
10415 2019-01-03 Tom de Vries <tdevries@suse.de>
10417 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10418 factored out of ...
10419 (nvptx_goacc_validate_dims): ... here.
10421 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10423 PR tree-optimization/85574
10424 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10426 (struct ssa_equip_hash_traits): Declare.
10427 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10429 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10432 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10433 change it to qualified_type.
10435 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10437 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10438 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10440 2019-01-02 Martin Sebor <msebor@redhat.com>
10441 Jeff Law <law@redhat.com>
10443 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10444 (get_range_strlen_tree): Update appropriately.
10446 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10448 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10449 rather than set_range_info.
10450 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10451 maybe_set_strlen_range. Handle potentially boundary crossing
10452 cases more conservatively.
10453 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10454 Call set_strlen_range.
10455 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10457 PR middle-end/88663
10458 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10459 need the flexp argument.
10460 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10461 from calls to get_range_strlen. Update comments. Just update
10462 VAL for an unterminated const char array and let the reset of the
10463 code handle it normally. No longer try to set *flexp. Adjust
10465 (get_range_strlen): Update for the new get_range_strlen API.
10466 (get_maxval_strlen): Similarly.
10467 (gimple_fold_builtin_strlen): Handle update meaning of return value
10468 from get_range_strlen.
10469 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10470 get_range_strlen API.
10472 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10475 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10476 false at WPA time when body was removed.
10478 2019-01-02 Martin Liska <mliska@suse.cz>
10480 PR tree-optimization/88650
10481 * predict.c (set_even_probabilities): Calculate probability
10482 remainer only when really used.
10484 2019-01-02 Richard Biener <rguenther@suse.de>
10486 PR middle-end/88651
10487 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10488 widest_ints when mangling max_stmt_execution results.
10490 2019-01-02 Richard Biener <rguenther@suse.de>
10492 PR tree-optimization/88621
10493 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10494 bitfields when canoncalizing.
10496 2019-01-02 Richard Biener <rguenther@suse.de>
10499 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10500 cost of cheap SSE instruction.
10502 2019-01-02 Richard Biener <rguenther@suse.de>
10505 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10506 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10508 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10509 set after UIDs before splitting them.
10511 2019-01-01 Martin Sebor <msebor@redhat.com>
10512 Jeff Law <law@redhat.com>
10514 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10515 length is optimistic. If it is, then arrange to compute the
10516 conservative length as well.
10518 * gimple-fold.h (get_range_strlen): Update prototype.
10519 * builtins.c (check_access): Update call to get_range_strlen to use
10520 c_strlen_data pointer. Change various variable accesses to instead
10521 pull data from the c_strlen_data structure.
10522 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10523 * calls.c (maybe_warn_nonstring_arg): Likewise.
10524 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10525 minimum length if maximum lengh is unknown.
10526 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10527 that used c_strlen, it's no longer needed. Restructure slightly.
10528 (format_string): Set unlikely range appropriately.
10529 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10531 (get_range_strlen): Accept c_strlen_data pointer for external
10532 call sites as well. Pass through to call to internal get_range_strlen.
10533 Adjust minlen, maxlen and maxbound as needed.
10534 (get_maxval_strlen): Update comments.
10535 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10536 to use c_strlen_data pointer. Change variable accesses to instead
10537 use c_strlen_data data members.
10539 * gimple-fold.c (get_range_strlen): Update prototype.
10540 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10541 local variables. Use pdata to return information to caller.
10542 Update calls to get_range_strlen. Update pdata->maxbound.
10543 (get_range_strlen -- static version): Similarly.
10544 (get_range_strlen -- extern version): Update for internal
10545 get_range_strlen API change. Convert to external data format.
10546 (get_maxval_strlen): Similarly.
10548 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10550 * coverage.c (get_coverage_counts): Use current_function_decl.
10551 * profile.c (read_thunk_profile): New function.
10552 (branch_prob): Add THUNK parameter.
10553 * tree-profile.c (tree_profiling): Handle thunks.
10554 * value-prof.c (init_node_map): Handle thunks.
10555 * value-prof.h (branch_prob): Upate prototype.
10556 (read_thunk_profile): Declare.
10558 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10560 Update copyright years.
10562 * gcc.c (process_command): Update copyright notice dates.
10563 * gcov-dump.c (print_version): Ditto.
10564 * gcov.c (print_version): Ditto.
10565 * gcov-tool.c (print_version): Ditto.
10566 * gengtype.c (create_file): Ditto.
10567 * doc/cpp.texi: Bump @copying's copyright year.
10568 * doc/cppinternals.texi: Ditto.
10569 * doc/gcc.texi: Ditto.
10570 * doc/gccint.texi: Ditto.
10571 * doc/gcov.texi: Ditto.
10572 * doc/install.texi: Ditto.
10573 * doc/invoke.texi: Ditto.
10575 Copyright (C) 2019 Free Software Foundation, Inc.
10577 Copying and distribution of this file, with or without modification,
10578 are permitted in any medium without royalty provided the copyright
10579 notice and this notice are preserved.