1 2019-06-06 Richard Biener <rguenther@suse.de>
3 * tree-ssa-structalias.c: Include tree-cfg.h.
4 (make_heapvar): Do not make heap vars artificial.
5 (find_func_aliases_for_builtin_call): Handle stack allocation
7 (find_func_aliases): Delay processing of simple enough returns
9 (set_uids_in_ptset): Adjust.
10 (find_what_var_points_to): Likewise.
11 (solve_constraints): Do not dump points-to sets here.
12 (compute_points_to_sets): Post-process return statements,
13 amending the escaped solution. Dump points-to sets afterwards.
14 (ipa_pta_execute): Dump points-to sets.
16 2019-06-06 Martin Liska <mliska@suse.cz>
19 * doc/install.texi: Fix HTML headers and
20 titles for 'Installing GCC' pages.
22 2019-06-06 Martin Liska <mliska@suse.cz>
24 * ipa-icf-gimple.h (dump_message_1): Remove.
25 (dump_message): Likewise.
26 (return_false_with_message_1): Print also file.
27 (return_false_with_msg): Likewise.
28 (return_with_result): Likewise.
29 (return_with_debug): Likewise.
30 * ipa-icf.c (sem_function::equals_private): Remove call
33 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
35 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
36 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
37 memory operand for it.
38 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
40 2019-06-05 Martin Sebor <msebor@redhat.com>
42 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
43 Adjust quoting and hyphenation.
44 * convert.c (convert_to_real_1): Same.
45 * gcc.c (driver_wrong_lang_callback): Same.
46 (driver::handle_unrecognized_options): Same.
47 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
48 * opts-common.c (cmdline_handle_error): Same.
49 (read_cmdline_option): Same.
50 * opts-global.c (complain_wrong_lang): Same.
51 (print_ignored_options): Same.
52 (handle_common_deferred_options): Same.
53 * pretty-print.h: Same.
54 * print-rtl.c (debug_bb_n_slim): Same.
55 * sched-rgn.c (make_pass_sched_fusion): Same.
56 * tree-cfg.c (verify_gimple_assign_unary): Same.
57 (verify_gimple_label): Same.
58 * tree-ssa-operands.c (verify_ssa_operands): Same.
59 * varasm.c (do_assemble_alias): Same.
60 (assemble_alias): Same.
62 2019-06-05 Richard Henderson <rth@twiddle.net>
64 * config/alpha/alpha.c (direct_return): Move down after
65 struct machine_function definition; use saved frame_size;
67 (struct machine_function): Add sa_mask, sa_size, frame_size.
68 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
69 (alpha_compute_frame_layout): ... new function.
70 (TARGET_COMPUTE_FRAME_LAYOUT): New.
71 (alpha_initial_elimination_offset): Use saved sa_size.
72 (alpha_vms_initial_elimination_offset): Likewise.
73 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
74 (alpha_expand_prologue): Use saved frame data. Merge integer
75 and fp register save loops.
76 (alpha_expand_epilogue): Likewise.
77 (alpha_start_function): Use saved frame data.
78 * config/alpha/alpha-protos.h (direct_return): Update.
79 (alpha_sa_size): Remove.
81 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
83 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
84 multiplication by a power-of-two value.
85 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
86 and turn the modulo operation into a masking operation.
88 2019-06-05 Jakub Jelinek <jakub@redhat.com>
91 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
92 with VOIDmode inner operands.
94 2019-06-05 Richard Biener <rguenther@suse.de>
97 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
98 turn an expression graph into a tree.
100 2019-06-05 Jakub Jelinek <jakub@redhat.com>
102 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
104 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
105 treat it like explicit monotonic schedule modifier.
106 (expand_omp_for): Initialize has_lastprivate_conditional.
107 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
110 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
111 references, lookup in in hash map MEM_REF operand instead of the
113 (lower_omp_1): When looking for lastprivate conditional assignments,
114 handle MEM_REFs with REFERENCE_TYPE operands.
116 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
117 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
118 and references a VLA. Handle references to non-VLAs if is_simd
119 all privatization clauses like reductions.
120 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
121 If omp_is_reference, use always omp simd arrays and set
122 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
123 fails, emit reference initialization.
125 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
128 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
129 _mm_mask_fpclass_sd_mask): New intrinsics.
130 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
131 * config/i386/i386-builtin.def
132 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
134 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
135 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
136 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
137 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
138 case QI_FTYPE_V2SF_INT): Ditto.
140 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
141 Extended to insnstructions with mask operands.
143 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
145 * config/rs6000/constraints.md (define_register_constraint "wp"):
147 (define_register_constraint "wq"): Delete.
148 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
149 (rs6000_init_hard_regno_mode_ok): Adjust.
150 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
151 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
152 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
153 (define_mode_attr VSa): Delete.
154 (define_mode_attr VSisa): New.
155 (rest of file): Adjust.
156 * doc/md.texi (Machine Constraints): Adjust.
158 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
160 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
161 (define_attr "enabled"): Handle those new isa values.
163 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
165 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
166 (define_mode_attr VSr5): Delete.
167 (define_mode_attr VStype_sqrt): Delete.
168 (define_mode_iterator VSX_SPDP): Delete.
169 (define_mode_attr VS_spdp_res): Delete.
170 (define_mode_attr VS_spdp_insn): Delete.
171 (define_mode_attr VS_spdp_type): Delete.
172 (*vsx_sqrt<mode>2): Adjust.
173 (vsx_<VS_spdp_insn>): Delete, split to...
174 (vsx_xscvdpsp): ... this. New. And...
175 (vsx_xvcvspdp): ... this. New. And...
176 (vsx_xvcvdpsp): ... this. New.
178 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
180 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
182 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
183 (rest of file): Adjust.
185 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
187 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
188 (vsx_extract_<mode>_var): Ditto.
190 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
192 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
195 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
197 * config/rs6000/constraints.md (define_register_constraint "ww"):
199 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
200 (rs6000_init_hard_regno_mode_ok): Adjust.
201 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
202 RS6000_CONSTRAINT_ww.
203 * config/rs6000/rs6000.md: Adjust.
204 * config/rs6000/vsx.md: Adjust.
205 * doc/md.texi (Machine Constraints): Adjust.
207 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
209 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
210 (define_mode_attr sd): New.
211 (define_mode_attr s): New.
212 (define_mode_attr Ftrad): Delete.
213 (define_mode_attr Fvsx): Delete.
214 (define_mode_attr Fs): Delete.
215 (rest of file): Use the new mode attributes.
216 * config.rs6000/vsx.md: Use the new mode attributes.
218 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
220 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
223 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
225 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
226 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
227 used with VSX_B, VSX_D, or VSX_F, with just "wa".
229 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
232 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
233 C++ with strict ANSI requirements.
235 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
237 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
238 computations when step is 1.
240 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
242 * config/rs6000/constraints.md (define_register_constraint "wf"):
244 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
245 (rs6000_init_hard_regno_mode_ok): Adjust.
246 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
247 RS6000_CONSTRAINT_wf.
248 * config/rs6000/rs6000.md: Adjust.
249 * config/rs6000/vsx.md: Adjust.
250 * doc/md.texi (Machine Constraints): Adjust.
252 2019-06-04 Andrew Pinski <apinski@marvell.com>
254 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
257 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
259 * config/rs6000/constraints.md (define_register_constraint "wd"):
261 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
262 (rs6000_init_hard_regno_mode_ok): Adjust.
263 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
264 RS6000_CONSTRAINT_wd.
265 * config/rs6000/rs6000.md: Adjust.
266 * config/rs6000/vsx.md: Adjust.
267 * doc/md.texi (Machine Constraints): Adjust.
269 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
271 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
272 (rest of file): Adjust.
274 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
276 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
277 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
278 (vsx_splat_<mode>_reg): Adjust.
280 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
282 * config/rs6000/constraints.md (define_register_constraint "ws"):
284 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
285 (rs6000_init_hard_regno_mode_ok): Adjust.
286 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
287 RS6000_CONSTRAINT_ws.
288 * config/rs6000/rs6000.md: Adjust.
289 * config/rs6000/vsx.md: Adjust.
290 * doc/md.texi (Machine Constraints): Adjust.
292 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
294 * config/rs6000/constraints.md (define_register_constraint "wv"):
296 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
297 (rs6000_init_hard_regno_mode_ok): Adjust.
298 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
299 RS6000_CONSTRAINT_wv.
300 * config/rs6000/rs6000.md: Adjust.
301 * config/rs6000/vsx.md: Adjust.
302 * doc/md.texi (Machine Constraints): Adjust.
304 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
306 * config/rs6000/constraints.md (define_register_constraint "wi"):
308 (define_register_constraint "wt"): Delete.
309 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
310 (rs6000_init_hard_regno_mode_ok): Adjust.
311 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
312 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
313 * config/rs6000/rs6000.md: Adjust.
314 * config/rs6000/vsx.md: Adjust.
315 * doc/md.texi (Machine Constraints): Adjust.
317 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
319 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
321 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
322 default_elf_asm_output_external.
324 2019-06-04 Martin Liska <mliska@suse.cz>
326 * ipa-icf.c (INCLUDE_LIST): Remove.
327 (sem_item_optimizer::execute): Remove call to init_wpa.
328 * ipa-icf.h (init_wpa): Remove.
330 2019-06-04 Jakub Jelinek <jakub@redhat.com>
332 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
333 conditional on combined for simd.
334 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
336 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
337 constructs, don't remove lastprivate_conditional_map, but instead set
338 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
339 to parent construct temporaries.
340 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
341 like !ctx->lastprivate_conditional_map.
342 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
343 use up->outer context instead of up.
344 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
345 gimple_omp_for_combined_p.
346 (expand_omp_for_static_nochunk): Likewise.
347 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
348 probably moved over into expand_omp_for_generic rather than being copied
351 2019-06-04 Martin Liska <mliska@suse.cz>
353 * value-prof.c (dump_histogram_value): Fix typo.
354 (gimple_mod_subtract_transform): Likewise.
356 2019-06-04 Richard Biener <rguenther@suse.de>
359 * tree-chrec.c (chrec_contains_symbols): Add to visited.
360 (tree_contains_chrecs): Likewise.
361 (chrec_contains_symbols_defined_in_loop): Move here and avoid
362 exponential behaivor from ...
363 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
365 (expression_expensive_p): Avoid exponential behavior and compute
366 expanded size, rejecting any expansion.
367 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
368 (idx_contains_abnormal_ssa_name_p): Likewise.
369 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
370 (contains_abnormal_ssa_name_p): Simplify and use
371 walk_tree_without_duplicates.
373 2019-06-04 Richard Biener <rguenther@suse.de>
375 PR tree-optimization/90738
377 2019-06-03 Richard Biener <rguenther@suse.de>
379 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
380 full reference tree and record in ref->ref.
381 (vn_reference_lookup_3): Pass in original ref to
382 ao_ref_init_from_vn_reference.
383 (vn_reference_lookup): Likewise.
384 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
385 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
386 Handle non-decl bases in the original reference.
388 2019-06-04 Martin Liska <mliska@suse.cz>
390 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
391 number of references.
392 (sem_item_optimizer::do_congruence_step):
393 (sem_item_optimizer::worklist_push): Dump how references
395 (sem_item_optimizer::worklist_pop): Use heap.
396 (sem_item_optimizer::process_cong_reduction): Likewise.
397 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
399 2019-06-04 Martin Liska <mliska@suse.cz>
401 * ipa-icf.h (struct sem_usage_pair_hash): New.
402 (sem_usage_pair_hash::hash): Likewise.
403 (sem_usage_pair_hash::equal): Likewise.
404 (struct sem_usage_hash): Likewise.
405 * ipa-icf.c (sem_item::sem_item): Initialize
407 (sem_item::add_reference): Register a reference
408 in ref_map and not in target->usages.
409 (sem_item::setup): Remove initialization of
411 (sem_item::~sem_item): Remove usage of dead vectors.
412 (sem_item::dump): Remove dump of references.
413 (sem_item_optimizer::sem_item_optimizer): Initialize
415 (sem_item_optimizer::read_section): Remove useless
417 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
418 (sem_item_optimizer::build_graph): Pass m_references
420 (sem_item_optimizer::verify_classes): Remove usage of dead
422 (sem_item_optimizer::traverse_congruence_split): Return true
423 when a class is split.
424 (sem_item_optimizer::do_congruence_step_for_index): Use
425 hash_map for look up of (sem_item *, index). That brings
426 significant speed up.
427 (sem_item_optimizer::do_congruence_step): Return true
428 when a split is done.
429 (congruence_class::is_class_used): Use referenced_by_count.
431 2019-06-04 Alan Modra <amodra@gmail.com>
434 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
437 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
439 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
440 * config/rs6000/rs6000.c (direct_move_p): Adjust.
441 (rs6000_secondary_reload_simple_move): Adjust.
442 (rs6000_opt_masks): Neuter the "mfpgpr" option.
443 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
444 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
447 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
448 (floatunssi<mode>2_lfiwzx): Adjust.
449 (fix_trunc<mode>si2_stfiwx): Adjust.
450 (fixuns_trunc<mode>si2_stfiwx): Adjust.
451 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
452 (mfpgpr): Mark as deprecated.
453 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
454 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
455 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
457 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
459 * config/rs6000/constraints.md (define_register_constraint "wg"):
461 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
462 RS6000_CONSTRAINT_wg.
463 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
464 (rs6000_init_hard_regno_mode_ok): Adjust.
465 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
466 Delete "wg" alternatives.
467 * doc/md.texi (Machine Constraints): Adjust.
469 2019-06-03 Alan Modra <amodra@gmail.com>
471 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
472 (get_uncond_jump_length): Assert length less than INT_MAX and
475 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
478 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
480 (expand_builtin_nonlocal_goto): Likewise.
482 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
484 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
485 (aarch64_asm_output_external): Declare.
486 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
487 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
488 (aarch64_asm_output_alias): New.
489 (aarch64_asm_output_external): New.
490 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
491 (ASM_OUTPUT_EXTERNAL): Define.
493 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
494 * tree-vrp.h (value_range_base::nonzero_p): New.
495 (value_range_base::set_nonnull): Rename to...
496 (value_range_base::set_nonzero): ...this.
497 (value_range_base::set_null): Rename to...
498 (value_range_base::set_zero): ...this.
499 (value_range::set_nonnull): Remove.
500 (value_range::set_null): Remove.
501 * tree-vrp.c (range_is_null): Remove.
502 (range_is_nonnull): Remove.
503 (extract_range_from_binary_expr): Use value_range_base::*zero_p
504 instead of range_is_*null.
505 (extract_range_from_unary_expr): Same.
506 (value_range_base::set_nonnull): Rename to...
507 (value_range_base::set_nonzero): ...this.
508 (value_range::set_nonnull): Remove.
509 (value_range_base::set_null): Rename to...
510 (value_range_base::set_zero): ...this.
511 (value_range::set_null): Remove.
512 (extract_range_from_binary_expr): Rename set_*null uses to
514 (extract_range_from_unary_expr): Same.
515 (union_helper): Same.
516 * vr-values.c (get_value_range): Use set_*zero instead of
518 (vr_values::extract_range_from_binary_expr): Same.
519 (vr_values::extract_range_basic): Same.
521 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
524 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
526 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
528 * config/aarch64/iterators.md (MAX_OPP): New code attr.
529 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
530 (aarch64_<su>abd<mode>_3): ... This.
531 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
533 2019-06-03 Richard Biener <rguenther@suse.de>
535 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
536 full reference tree and record in ref->ref.
537 (vn_reference_lookup_3): Pass in original ref to
538 ao_ref_init_from_vn_reference.
539 (vn_reference_lookup): Likewise.
540 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
541 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
542 Handle non-decl bases in the original reference.
544 2019-06-03 Martin Liska <mliska@suse.cz>
546 * doc/generic.texi: Remove Java Trees.
548 2019-06-03 Martin Liska <mliska@suse.cz>
550 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
551 returns 0 when operands are equal.
553 2019-06-03 Richard Biener <rguenther@suse.de>
555 PR tree-optimization/90716
556 * tree-loop-distribution.c (destroy_loop): Process blocks in
559 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
562 * vector-builder.h (vector_builder::count_dups): New method.
563 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
565 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
566 (vec_init<mode><Vel>): New pattern.
567 * config/aarch64/aarch64.c (emit_insr): New function.
568 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
569 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
570 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
571 (aarch64_sve_expand_vector_init): Define two overloaded functions.
573 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
575 PR tree-optimization/90681
576 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
577 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
578 special case for SLP, but fail on non-groupped loads.
580 2019-06-03 Martin Liska <mliska@suse.cz>
582 * cfg.c (debug): Use TDF_DETAILS for debug and
583 print edge info only once.
585 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
588 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
590 2019-06-01 Martin Sebor <msebor@redhat.com>
593 * tree-pretty-print.c (dump_generic_node): Add parentheses.
595 2019-05-31 Jan Hubicka <jh@suse.cz>
597 * alias.c: Include ipa-utils.h.
598 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
599 * ipa-devirt.c (prevailing_odr_type): New.
600 * ipa-utils.h (previaling_odr_type): Declare.
602 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
603 Hongtao Liu <hongtao.liu@intel.com>
606 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
607 NOTE_INSN_DELETED_LABEL check.
609 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
610 Robert Suchanek <robert.suchanek@mips.com>
612 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
613 and 3rd operands of the fmadd/fmsub/maddv builtin.
615 2019-05-31 Jakub Jelinek <jakub@redhat.com>
617 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
618 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
619 on OMP_SIMD if not nested inside of worksharing loop that also has
620 lastprivate conditional clause for the same decl.
621 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
622 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
624 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
626 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
628 (lower_lastprivate_clauses): Likewise.
629 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
630 calling lower_rec_input_clauses.
631 (lower_omp_for): Likewise.
632 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
633 clause on simd construct.
634 * omp-expand.c (expand_omp_simd): Initialize cond_var if
635 OMP_CLAUSE__CONDTEMP_ clause is present.
637 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
640 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
643 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
644 TEX_D32, TEX_D64 or TEX_D128.
646 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
648 * match.pd (~(vec?cst1:cst2)): New transformation.
650 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
652 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
653 ((size_t)(A /[ex] B) CMP C): New transformation.
655 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
657 * doc/md.texi: Document define_insn_and_rewrite.
658 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
659 * gensupport.c (queue_elem): Update comment.
660 (replace_operands_with_dups): New function.
661 (gen_rewrite_sequence): Likewise.
662 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
663 * read-rtl.c (apply_subst_iterator): Likewise.
664 (add_condition_to_rtx, named_rtx_p): Likewise.
665 (rtx_reader::read_rtx_operand): Likewise.
666 * config/aarch64/aarch64-sve.md
667 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
668 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
669 define_insn_and_rewrite.
670 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
671 Remove separate define_split.
673 2019-05-31 Jan Hubicka <jh@suse.cz>
675 * tree-ssa-alias.c (type_has_components_p): New function.
676 (aliasing_component_refs_p): Use it.
678 2019-05-31 Martin Liska <mliska@suse.cz>
680 * gdbhooks.py: Add const_tree to TreePrinter.
682 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
685 * common.opt (feliminate-unused-debug-symbols): Enable by default.
686 * doc/invoke.texi (Debugging Options): Document new default of
687 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
689 2019-05-31 Jakub Jelinek <jakub@redhat.com>
691 PR tree-optimization/90671
692 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
693 template_block used to be empty on the first call, don't use
694 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
695 seq with bb_seq and set it with set_bb_seq.
697 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
699 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
701 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
702 Michael Meissner <meissner@linux.ibm.com>
704 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
705 (prefixed_mem_operand): Likewise.
706 (non_prefixed_mem_operand): Likewise.
707 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
709 * config/rs6000/rs6000.c (print_operand_address): Handle
710 PC-relative addresses.
711 (mode_supports_prefixed_address_p): New function.
712 (rs6000_prefixed_address): New function.
713 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
714 (SYMBOL_REF_PCREL_P): Likewise.
716 2019-05-30 Jakub Jelinek <jakub@redhat.com>
718 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
719 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
720 (gimplify_omp_for): If worksharing loop with lastprivate conditional
721 is nested inside of parallel region, add _condtemp_ clause to both.
722 * tree-nested.c (convert_nonlocal_omp_clauses,
723 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
725 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
727 * omp-general.c (omp_extract_for_data): Compute it.
728 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
729 (lower_rec_input_clauses): Likewise.
730 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
731 clause is already present, just add one further one after it.
732 (lower_lastprivate_clauses): Handle cond_ptr with array type.
733 (lower_send_shared_vars): Clear _condtemp_ vars.
734 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
735 or section or taskgroup.
736 * omp-expand.c (determine_parallel_type): Disallow combining only if
737 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
738 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
739 (expand_omp_for_generic, expand_omp_for_static_nochunk,
740 expand_omp_for_static_chunk, expand_omp_for): Use
741 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
742 determine if a special set of API routines are needed and if condtemp
743 needs to be initialized, while always initialize cond_var if
744 fd->lastprivate_conditional is non-zero.
746 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
747 Michael Meissner <meissner@linux.ibm.com>
749 * config/rs6000/constraints.md (eI): New constraint.
750 * config/rs6000/predicates.md (cint34_operand): New predicate.
751 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
752 (SIGNED_34BIT_OFFSET_P): Likewise.
753 * doc/md.texi (eI): Document constraint.
755 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
757 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
759 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
760 Michael Meissner <meissner@linux.ibm.com>
762 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
763 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
764 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
765 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
766 (OTHER_FUTURE_MASKS): Likewise.
767 (POWERPC_MASKS): Likewise.
768 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
769 specified without -mprefixed-addr or -mcpu=future. Error if
770 -mprefixed-addr is specified without -mcpu=future.
771 (rs6000_opt_masks): Add entry for prefixed-addr.
772 * rs6000.opt (mprefixed-addr): New option.
774 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
776 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
777 cfun->is_thunk check.
779 2019-05-30 Jakub Jelinek <jakub@redhat.com>
781 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
784 2019-05-30 Martin Liska <mliska@suse.cz>
786 * gdbinit.in: Fix 'ptc' command. Add trt
787 that prints TREE_TYPE($).
789 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
790 Alan Modra <amodra@gmail.com>
792 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
794 (rs6000_indirect_call_template_1): ...and here.
795 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
796 plt16_ha, plt16_lo, mtctr indirect calls. Use
798 (rs6000_decl_ok_for_sibcall): New function.
799 (rs6000_function_ok_for_sibcall): Refactor.
800 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
801 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
802 when pcrel. Reorganize.
803 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
804 * rs6000.h (rs6000_pltseq_enum): New enum.
805 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
806 (*pltseq_tocsave): Use rs6000_pltseq_enum.
807 (*pltseq_plt16_ha): Likewise.
808 (*pltseq_plt16_lo): Likewise.
809 (*pltseq_mtctr): Likewise.
810 (*pltseq_plt_pcrel): New insn.
811 (*call_local_aix): Handle @notoc calls.
812 (*call_value_local_aix): Likewise.
813 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
814 (*call_value_nonlocal_aix): Likewise.
815 (*call_indirect_pcrel): New insn.
816 (*call_value_indirect_pcrel): Likewise.
819 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
821 * config/i386/sse.md (*save_multiple<mode>): Rename from
823 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
824 (*restore_multiple_and_return<mode>): Rename from
825 restore_multiple_and_return<mode>.
826 (*restore_multiple_leave_return<mode>): Rename from
827 restore_multiple_leave_return<mode>.
829 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
831 * config.gcc (rx-*-linux*): New target.
832 * config/rx/elf.opt: New file.
833 * config/rx/linux.h: Likewise.
834 * config/rx/t-linux: Likewise.
835 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
837 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
838 (ASM_APP_OFF): Likewise.
839 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
842 2019-05-29 Jan Hubicka <jh@suse.cz>
844 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
845 variants are pointer equivalent.
847 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
849 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
850 * config/aarch64/aarch64-sve2.md: New file.
851 (<u>avg<mode>3_floor): New pattern.
852 (<u>avg<mode>3_ceil): Likewise.
853 (*<sur>h<addsub><mode>): Likewise.
854 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
855 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
857 2019-05-29 Jakub Jelinek <jakub@redhat.com>
860 * optc-save-gen.awk: In cl_optimization_print, use correct condition
861 for var_opt_string printing. In cl_optimization_print_diff, print
862 (null) instead of invoking undefined behavior if one of the
863 var_opt_string pointers is NULL and use && instead of first || in the
864 guarding condition. For var_target_other options, handle const char *
865 target variables similarly to const char * optimize node variables.
867 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
869 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
870 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
871 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
872 Add autib1716 and pacib1716 initialisation.
873 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
874 for autib1716 and pacib1716.
875 * config/aarch64/aarch64-protos.h (aarch64_key_type,
876 aarch64_post_cfi_startproc): Define.
877 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
878 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
879 aarch64_handle_pac_ret_protection): Set default sign key to A.
880 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
881 aarch64_expand_prologue): Add check for b-key.
882 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
883 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
884 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
885 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
886 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
887 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
888 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
889 * config/aarch64/aarch64.md (do_return): Add check for b-key.
890 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
891 pauth_hint_num_a with pauth_hint_num.
892 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
893 pauth_hint_num_a with pauth_hint_num.
894 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
895 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
896 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
897 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
898 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
899 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
900 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
901 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
902 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
903 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
904 UNSPEC_AUTIA1716 respectively.
905 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
906 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
907 * doc/invoke.texi (-mbranch-protection): Add b-key type.
908 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
909 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
911 2019-05-29 Jakub Jelinek <jakub@redhat.com>
913 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
914 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
915 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
916 explicit clause on combined parallel into implicit shared clause.
917 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
918 and firstprivate if the decl has one too from combined parallel to
919 the worksharing construct.
921 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
922 Michael Meissner <meissner@linux.ibm.com>
924 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
926 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
928 * rtl.h (LABEL_REF_P): New #define.
930 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
932 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
934 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
936 * internal-fn.c: Marked mask_load_direct as vectorizable.
937 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
938 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
939 combined even if masks different with allow_slp_p param.
940 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
941 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
942 dissolve SLP-only vectorizable groups when SLP has been discarded.
943 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
944 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
946 (vect_build_slp_tree_1): Fixed comment typo.
947 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
948 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
950 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
952 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
954 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
956 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
957 Remove obsolete use_thunk reference.
958 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
959 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
960 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
961 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
962 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
963 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
964 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
965 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
966 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
968 2019-05-28 Nathan Sidwell <nathan@acm.org>
970 * tree.h (IDENTIFIER_ANON_P): New.
971 (anon_aggrname_format, anon_aggname_p): Don't declare.
972 (make_anon_name): Declare.
973 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
974 (hash_tree): Likewise.
975 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
976 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
977 (anon_cnt, make_anon_name): New.
979 2019-05-28 Martin Liska <mliska@suse.cz>
982 * opts-global.c (decode_options): Print help for all
983 help_option_arguments.
984 * opts.c (print_help): Add new argument.
985 (common_handle_option): Remember all values into
986 help_option_arguments.
987 * opts.h (print_help): Add new argument.
989 2019-05-28 Martin Liska <mliska@suse.cz>
992 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
993 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
994 (func_checker::compare_bb): Call compare_loops.
996 2019-05-27 Jakub Jelinek <jakub@redhat.com>
998 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
999 on sections construct.
1000 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
1002 (lower_omp_sections): Handle lastprivate conditional.
1003 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
1004 lastprivate_conditional_map.
1005 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
1007 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
1008 critical, taskgroup and section regions when looking for a region
1009 with non-NULL lastprivate_conditional_map.
1011 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1013 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
1014 (*ix86_gen_sub3): Ditto.
1015 (*ix86_gen_sub3_carry): Ditto.
1016 (*ix86_gen_one_cmpl2): Ditto.
1017 (*ix86_gen_andsp): Ditto.
1018 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
1019 (gen_and2_insn): New static function.
1020 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
1021 Use gen_add3_insn instead of ix86_gen_add3.
1022 (ix86_expand_split_stack_prologue): Use gen_add2_insn
1023 instead of ix86_gen_add3.
1024 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
1025 Use gen_sub3_insn instead of ix86_gen_sub3.
1026 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
1027 instead of ix86_gen_add3.
1028 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
1029 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
1030 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
1031 * config/i386/i386-options.c (ix86_option_override_internal):
1032 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1033 ix86_gen_one_cmpl2 and ix86_gen_andsp.
1035 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1037 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
1038 and DW_OP_GNU_const_index opcodes.
1040 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1042 * config/i386/i386.h (STACK_SIZE_MODE): Define.
1044 2019-05-27 Richard Biener <rguenther@suse.de>
1046 PR tree-optimization/90637
1047 * tree-ssa-sink.c (statement_sink_location): Honor the
1048 computed sink location for single-uses.
1050 2019-05-27 Richard Biener <rguenther@suse.de>
1053 * match.pd (vec_perm): Avoid clobbering op0 when not generating
1056 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1058 * config/i386/i386.md (@sub<mode>3_carry): Rename
1059 from sub<mode>3_carry.
1060 (@leave_<mode>): New expander.
1061 (*leave): Rename from leave.
1062 (*leave_rex64): Rename from leave_rex64.
1063 (@monitorx_<mode>): Rename from monitorx_<mode>.
1064 (@clzero_<mode>): Rename from clzero_<mode>.
1065 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
1066 from sse3_monitor_<mode>.
1067 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
1068 (*ix86_gen_leave): Ditto.
1069 (*ix86_gen_monitor): Ditto.
1070 (*ix86_gen_monitorx): Ditto.
1071 (*ix86_gen_clzero): Ditto.
1072 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
1073 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
1074 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
1075 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
1076 Use gen_sse3_monitor instead of ix86_gen_monitor.
1077 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
1078 instead of ix86_gen_monitorx.
1079 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
1080 instead of ix86_gen_clzero.
1081 * config/i386/i386-options.c (ix86_option_override_internal):
1082 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
1083 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
1085 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1087 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
1088 Rename from tls_global_dynamic_64_<mode>.
1089 (@tls_local_dynamic_base_64_<mode>): Rename from
1090 tls_local_dynamic_base_64_<mode>.
1091 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
1092 Remove indirect function.
1093 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
1094 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
1095 instead of ix86_gen_tls_global_dynamic_64.
1096 Use gen_tls_local_dynamic_base_64 instead of
1097 ix86_gen_tls_local_dynamic_base_64.
1098 * config/i386/i386-options.c (ix86_option_override_internal):
1099 Do not initialize ix86_gen_tls_global_dynamic_64 and
1100 ix86_gen_tls_local_dynamic_base_64.
1102 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1104 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1105 Rename from pro_epilogue_adjust_stack_<mode>_add.
1106 (@pro_epilogue_adjust_stack_sub_<mode>)
1107 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1108 (@allocate_stack_worker_probe_<mode>):
1109 Rename from allocate_stack_worker_probe_<mode>.
1110 (allocate_stack): Use gen_allocate_stack_worker_probe.
1111 (probe_stack): Use gen_probe_stack_1.
1112 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1113 (@adjust_stack_and_probe_<mode>): Rename from
1114 adjust_stack_and_probe<mode>.
1115 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1116 (stack_protect_set): Use gen_stack_protect_set_1.
1117 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1118 (stack_protect_test): Use gen_stack_protect_test_1.
1119 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1120 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1121 Remove indirect function.
1122 (*ix86_gen_adjust_stack_and_probe): Ditto.
1123 (*ix86_gen_probe_stack_range): Ditto.
1124 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1125 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1126 (ix86_adjust_stack_and_probe_stack_clash): Use
1127 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1128 (ix86_adjust_stack_and_probe): Ditto.
1129 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1130 of ix86_gen_probe_stack_range.
1131 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1132 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1133 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1134 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1135 CODE_FOR_stack_protect_test_{si,di}.
1136 * config/i386/i386-options.c (ix86_option_override_internal):
1137 Do not initialize ix86_gen_allocate_stack_worker,
1138 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1140 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1142 * doc/invoke.texi (Link Options): Many editorial changes around
1145 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1147 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1148 pre-Solaris 11 referene and most Studio compiler details.
1150 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1153 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1154 DImode to SImode in floating-point registers on 64-bit target.
1155 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1156 register_operand in xmpyu patterns.
1158 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1160 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1161 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1162 OMP_CLAUSE__REDUCTEMP_.
1163 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1164 OMP_CLAUSE__CONDTEMP_.
1165 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1166 * tree-pretty-print.c (dump_omp_clause): Likewise.
1167 * tree-nested.c (convert_nonlocal_omp_clauses,
1168 convert_local_omp_clauses): Likewise.
1169 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1170 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1171 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1173 (gimplify_omp_for): Warn and disable conditional modifier from
1174 lastprivate on loop iterators.
1175 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1177 * omp-general.c (omp_extract_for_data): Initialize it.
1178 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1180 (delete_omp_context): Delete it.
1181 (lower_lastprivate_conditional_clauses): New function.
1182 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1183 handle lastprivate conditional clauses.
1184 (lower_reduction_clauses): Add CLIST argument, emit it into
1185 the critical section if any.
1186 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1187 lower_reduction_clauses callers.
1188 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1189 to lower_lastprivate_clauses.
1190 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1191 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1192 clist into a critical section if not emitted there already by
1193 lower_reduction_clauses.
1194 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1196 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1197 conditional variables.
1198 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1200 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1201 expand_omp_for_static_chunk): Handle lastprivate conditional.
1202 (expand_omp_for): Handle fd.lastprivate_conditional like
1205 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1207 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1208 kernel does not exit cleanly.
1209 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1211 2019-05-24 Jason Merrill <jason@redhat.com>
1214 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1216 2019-05-24 Richard Biener <rguenther@suse.de>
1219 * tree-loop-distribution.c (struct partition): Add location
1221 (partition_alloc): Initialize all fields.
1222 (generate_memset_builtin): Use the location recorded in the
1223 partition for the generated call.
1224 (generate_memcpy_builtin): Likewise.
1225 (classify_partition): Record the location of a single store
1226 as location for the partition.
1228 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1230 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1233 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1236 * common/config/aarch64/aarch64-common.c
1237 (aarch64_rewrite_selected_cpu): Change local temporary variable
1238 type from unsigned long to uint64_t.
1239 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1240 aarch64_get_extension_string_for_isa_flags): Change declaration to
1241 match new definition by replacing unsigned long with uint64_t.
1243 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1246 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1247 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1248 Handle stack_protect_test_<mode> codegen similarly to corresponding
1251 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1253 * config/i386/darwin.h: Reject -mfentry*.
1254 * doc/sourcebuild.texi: Document mfentry target support.
1256 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1258 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1259 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1260 false for PC-relative functions.
1261 (rs6000_output_function_prologue): Change called function name to
1262 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1263 name,1" for PC-relative functions.
1264 (rs6000_elf_declare_function_name): Change called function name to
1265 rs6000_global_entry_point_prologue_needed_p.
1267 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1270 * config/i386/i386.c (gen_rtx_cost):
1271 Use ix86_tune_cost instead of ix86_cost.
1273 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1274 Michael Meissner <meissner@linux.ibm.com>
1275 Segher Boessenkool <segher@kernel.crashing.org>
1277 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1279 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1280 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1281 (rs6000_fndecl_pcrel_p): Likewise.
1282 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1283 error if -mpcrel is requested without -mcpu=future.
1284 (rs6000_opt_masks): Add entry for pcrel.
1285 (rs6000_fndecl_pcrel_p): New function.
1286 (rs6000_pcrel_p): Likewise.
1287 * config/rs6000/rs6000.opt (mpcrel): New option.
1288 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1290 2019-05-23 Jan Hubicka <jh@suse.cz>
1291 Martin Liska <mliska@suse.cz>
1293 PR tree-optimization/90576
1294 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1296 (aliasing_component_refs_p): Fix three way size compare conditional;
1297 give up earlier in case we can not decide on equivalence.
1299 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1300 Michael Meissner <meissner@linux.ibm.com>
1301 Segher Boessenkool <segher@kernel.crashing.org>
1303 * config.gcc: Add future cpu.
1304 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1305 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1307 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1308 (RS6000_CPU): New instantiation for future cpu.
1309 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1311 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1312 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1313 * config/rs6000/rs6000-tables.opt: Regenerate.
1314 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1315 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1316 (rs6000_machine_from_flags): Handle future cpu.
1317 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1318 PROCESSOR_POWER9 for now.
1319 (rs6000_adjust_cost): Likewise.
1320 (rs6000_issue_rate): Likewise.
1321 (rs6000_register_move_cost): Likewise.
1322 (rs6000_opt_masks): Add entry for future.
1323 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1324 (MASK_FUTURE): New #define.
1325 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1326 * config/rs6000/rs6000.opt (mfuture): New target option.
1327 * doc/invoke.texi (mcpu): Add future cpu.
1329 2019-05-23 Martin Liska <mliska@suse.cz>
1332 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1333 operation points to a temporary (pointed via tree_to_wide_ref)
1334 that is out of scope after the &.
1336 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1339 * doc/extend.texi (Function Names): Add missing word.
1341 2019-05-23 Richard Biener <rguenther@suse.de>
1343 PR tree-optimization/88440
1344 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1346 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1348 (generate_memcpy_builtin): Likewise.
1349 (distribute_loop): Pass in whether to only distribute patterns.
1350 (prepare_perfect_loop_nest): Also allow size optimization.
1351 (pass_loop_distribution::execute): When optimizing a loop
1352 nest for size allow pattern replacement.
1354 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1357 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1360 2019-05-23 Martin Liska <mliska@suse.cz>
1363 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1364 expression similarly to gimplify_decl_expr.
1366 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1368 * cse.c (cse_dump_path): s/dump_file/f.
1370 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1373 * diagnostic-format-json.cc: Include "selftest.h".
1374 (json_from_expanded_location): Only add "file" key for non-NULL
1376 (json_from_location_range): Don't add "start" and "finish"
1377 children if they are UNKNOWN_LOCATION.
1378 (selftest::test_unknown_location): New selftest.
1379 (selftest::test_bad_endpoints): New selftest.
1380 (selftest::diagnostic_format_json_cc_tests): New function.
1381 * json.cc (json::object::get): New function.
1382 (selftest::test_object_get): New selftest.
1383 (selftest::json_cc_tests): Call it.
1384 * json.h (json::object::get): New decl.
1385 * selftest-run-tests.c (selftest::run_tests): Call
1386 selftest::diagnostic_format_json_cc_tests.
1387 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1390 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1391 Andrew Stubbs <amd@codesourcery.com>
1393 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1394 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1395 (kernel): Rename to...
1396 (main_kernel): ... this.
1397 (load_image): Load _init_array and _fini_array kernels.
1398 (run): Add argument for kernel to run.
1399 (main): Run init_array_kernel before main_kernel, and
1400 fini_array_kernel after.
1401 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1402 amdgpu_hsa_kernel attribute on functions.
1403 (gcn_disable_constructors): Delete.
1404 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1405 * config/gcn/crt0.c (size_t): Define.
1406 (_init_array, _fini_array): New.
1407 (__preinit_array_start, __preinit_array_end,
1408 __init_array_start, __init_array_end,
1409 __fini_array_start, __fini_array_end): Declare weak references.
1411 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1413 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1415 2019-05-22 Jason Merrill <jason@redhat.com>
1417 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1419 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1422 * config/i386/i386-options.c (ix86_init_machine_status): Set
1423 stack_frame_required to true.
1424 * config/i386/i386.c (ix86_get_frame_size): New function.
1425 (ix86_frame_pointer_required): Replace get_frame_size with
1426 ix86_get_frame_size.
1427 (ix86_compute_frame_layout): Likewise.
1428 (ix86_find_max_used_stack_alignment): Changed to void. Set
1429 stack_frame_required.
1430 (ix86_finalize_stack_frame_flags): Always call
1431 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1432 ix86_get_frame_size.
1433 * config/i386/i386.h (machine_function): Add stack_frame_required.
1435 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1437 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1439 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1441 * common/config/aarch64/aarch64-common.c
1442 (struct aarch64_option_extension, struct processor_name_to_arch,
1443 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1444 aarch64_contains_opt,
1445 aarch64_get_extension_string_for_isa_flags): Change type of
1446 variables storing flags to uint64_t.
1447 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1448 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1449 * config/aarch64/aarch64.c (struct processor,
1450 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1451 aarch64_validate_march, aarch64_override_options,
1452 aarch64_option_print, aarch64_handle_attr_isa_flags,
1453 aarch64_declare_function_name, aarch64_start_file): Make flag
1455 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1456 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1457 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1458 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1459 * config/aarch64/driver-aarch64.c
1460 (struct aarch64_arch_extension, struct aarch64_core_data,
1461 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1462 flag variables uint64_t.
1463 * doc/invoke.texi: Add documentation for new arguments.
1465 2019-05-22 Richard Biener <rguenther@suse.de>
1467 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1469 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1471 2019-05-22 Martin Liska <mliska@suse.cz>
1474 * doc/extend.texi: Document the change.
1476 2019-05-22 Richard Biener <rguenther@suse.de>
1478 PR tree-optimization/90450
1479 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1480 (mem_ref_hasher::equal): Check it.
1481 (mem_ref_alloc): Initialize it.
1482 (gather_mem_refs_stmt): Set it.
1484 2019-05-22 Richard Biener <rguenther@suse.de>
1486 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1488 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1491 2019-05-22 Alan Modra <amodra@gmail.com>
1493 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1494 (ASM_CPU_SPEC): Conditionally add -many.
1495 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1496 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1497 (rs6000_file_start): ..extracted from here, and modified to
1499 (rs6000_output_function_prologue): Emit .machine as necessary.
1500 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1502 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1503 added by check_vect_support_and_set_flags.
1504 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1505 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1507 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1510 * ira-lives.c (process_bb_node_lives): Consider defs
1511 for a call insn to be die before the call, not after.
1513 * function.c (assign_parm_setup_block): Raise alignment of
1514 stacked parameter only for STRICT_ALIGNMENT targets.
1516 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1518 * config/rs6000/constraints.md (define_register_constraint "wz"):
1520 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1521 RS6000_CONSTRAINT_wz.
1522 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1523 (rs6000_init_hard_regno_mode_ok): Adjust.
1524 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1525 * doc/md.texi (Machine Constraints): Adjust.
1527 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1529 * config/rs6000/constraints.md (define_register_constraint "wl"):
1531 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1532 RS6000_CONSTRAINT_wl.
1533 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1534 (rs6000_init_hard_regno_mode_ok): Adjust.
1535 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1536 * doc/md.texi (Machine Constraints): Adjust.
1538 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1540 * config/rs6000/constraints.md (define_register_constraint "wm"):
1542 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1543 RS6000_CONSTRAINT_wm.
1544 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1545 (rs6000_init_hard_regno_mode_ok): Adjust.
1546 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1547 * doc/md.texi (Machine Constraints): Adjust.
1549 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1551 * config/rs6000/constraints.md (define_register_constraint "wk"):
1553 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1554 RS6000_CONSTRAINT_wk.
1555 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1556 (rs6000_init_hard_regno_mode_ok): Adjust.
1557 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1558 * doc/md.texi (Machine Constraints): Adjust.
1560 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1562 * config/rs6000/constraints.md (define_register_constraint "wj"):
1564 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1565 RS6000_CONSTRAINT_wj.
1566 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1567 (rs6000_init_hard_regno_mode_ok): Adjust.
1568 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1570 * config/rs6000/vsx.md: Ditto.
1571 * doc/md.texi (Machine Constraints): Adjust.
1573 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1575 * config/rs6000/constraints.md (define_register_constraint "wh"):
1577 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1578 RS6000_CONSTRAINT_wh.
1579 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1580 (rs6000_init_hard_regno_mode_ok): Adjust.
1581 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1582 * doc/md.texi (Machine Constraints): Adjust.
1584 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1587 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1588 Avoid calling gen_lowpart with CONST operand.
1590 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1592 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1593 field template_last_to_copy.
1594 (ssa_create_duplicates): Set it, and use it. Attempt to
1595 preserve more debug stmts.
1597 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1599 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1600 (signbit<mode>2): New expander
1602 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1605 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1606 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1608 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1610 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1611 %ebx and %ecx bafore calling cpuid with leaf 1 or
1612 non-constant leaf argument.
1614 2019-05-21 Alan Modra <amodra@gmail.com>
1617 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1618 power9 direct move cost.
1619 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1620 Correct comments and rename functions to suit parameters.
1622 2019-05-21 Richard Biener <rguenther@suse.de>
1625 * fold-const.c (fold_read_from_vector): New function.
1626 * fold-const.h (fold_read_from_vector): Declare.
1627 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1628 single-element insert permutations. Canonicalize selector
1629 further and fix issue with last commit.
1631 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1633 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1634 parameter with default value false to declaration.
1635 (split_edges_for_insertion): New inline function. Wrapper for
1636 split_critical_edges with for_edge_insertion_p = true.
1637 * tree-cfg.c (split_critical_edges): Don't split non-critical
1638 edges if for_edge_insertion_p is false. Fix whitespace.
1639 * tree-ssa-pre.c (pass_pre::execute): Call
1640 split_edges_for_insertion instead of split_critical_edges.
1641 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1642 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1643 (pass_data_sink_code): Update function name in the comment.
1645 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1647 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1648 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1649 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1650 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1653 2019-05-21 Martin Liska <mliska@suse.cz>
1655 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1657 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1658 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1660 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1662 (rs6000_function_arg): Likewise.
1663 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1664 (rs6000_expand_ternop_builtin): Use interval syntax.
1665 (get_element_number): Likewise.
1666 (altivec_expand_builtin): Likewise.
1667 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1671 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1675 * function.h (struct function): Add calls_eh_return member.
1676 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1677 gimplifying __builtin_eh_return call.
1678 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1680 (expand_call_inline): Or in src_cfun->calls_eh_return into
1681 dst_cfun->calls_eh_return.
1682 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1683 cfun->calls_eh_return.
1684 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1685 * lto-streamer-out.c (output_struct_function_base): Write
1688 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1690 PR rtl-optimization/43147
1691 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1692 IX86_BUILTIN_SHUFPD.
1694 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1696 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1697 (refs_may_alias_p_1): ... here; update stats.
1698 (refs_may_alias_p): Do not update stats here.
1700 2019-05-20 Richard Biener <rguenther@suse.de>
1702 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1703 doesn't produce pointers.
1704 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1705 the first operand points to.
1707 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1709 * tree-ssa-alias.c (compare_sizes): New function.
1710 (sompare_type_sizes): New function
1711 (aliasing_component_refs_p): Use it.
1712 (indirect_ref_may_alias_decl_p): Likewise.
1714 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1716 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1718 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1720 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1721 (LIBLSAN_EARLY_SPEC): Likewise.
1722 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1724 2019-05-20 Martin Liska <mliska@suse.cz>
1726 * config/i386/i386.c (ix86_libc_has_fast_function):
1727 Add ATTRIBUTE_UNUSED for the argument.
1729 2019-05-20 Richard Biener <rguenther@suse.de>
1731 * gimple-match-head.c: Include vec-perm-indices.h.
1732 * generic-match-head.c: Likewise.
1733 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1735 * fold-const.c (fold_vec_perm): Export.
1736 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1737 (match.pd): ...here.
1739 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1741 * cfgloop.h (struct loop): Add simdlen member.
1742 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1743 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1744 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1745 as new argument to autovectorize_vector_sizes target hook. If
1746 loop->simdlen, pick up vector size where the vectorization factor
1747 is equal to loop->simd, and if there is none, fall back to the first
1749 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1751 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1752 * omp-general.c (omp_max_vf): Likewise.
1753 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1754 * tree-vect-slp.c (vect_slp_bb): Likewise.
1755 * target.def (autovectorize_vector_sizes): Add ALL argument and
1757 * doc/tm.texi: Adjust documentation.
1758 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1759 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1760 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1762 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1763 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1764 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1765 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1766 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1767 preferred vector size is not 512-bit or 256-bit, just put those
1768 unpreferred ones last.
1770 2019-05-20 Martin Liska <mliska@suse.cz>
1772 * targhooks.c (default_libc_has_fast_function): New function.
1773 * targhooks.h (default_libc_has_fast_function): Likewise.
1775 2019-05-20 Martin Liska <mliska@suse.cz>
1778 * builtins.c (expand_builtin_memory_copy_args): When having a
1779 target with fast mempcpy implementation do now use memcpy.
1780 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1781 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1782 * doc/tm.texi: Likewise.
1783 * doc/tm.texi.in: Likewise.
1785 * expr.c (emit_block_move_hints): Add 2 new arguments.
1786 * expr.h (emit_block_move_hints): Bail out when libcall
1787 to memcpy would be used.
1789 2019-05-20 Martin Liska <mliska@suse.cz>
1791 * profile-count.c: Add vertical spacing in order
1792 to separate functions.
1793 * profile-count.h: Likewise.
1795 2019-05-20 Martin Liska <mliska@suse.cz>
1797 * profile-count.h: Do not use full qualified
1799 * profile-count.c (profile_count::to_frequency): Likewise.
1801 2019-05-20 Martin Liska <mliska@suse.cz>
1803 * profile-count.h (enum profile_quality): Use capital letters
1804 for enum value names. Use the adjusted names.
1805 * profile-count.c: Use the adjusted names.
1807 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1809 * config/rs6000/constraints.md (define_register_constraint "wH"):
1811 (define_register_constraint "wI"): Delete.
1812 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1813 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1814 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1815 (rs6000_init_hard_regno_mode_ok): Adjust.
1816 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1817 resp. "d", or with "wa" as appropriate, all with "p8v".
1818 * config/rs6000/vsx.md: Ditto.
1819 * doc/md.texi (Machine Constraints): Adjust.
1821 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1823 * config/rs6000/constraints.md (define_register_constraint "wy"):
1825 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1826 RS6000_CONSTRAINT_wy.
1827 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1828 (rs6000_init_hard_regno_mode_ok): Adjust.
1829 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1830 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1831 (define_mode_attr Fisa): New.
1832 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1833 * doc/md.texi (Machine Constraints): Adjust.
1835 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1837 * config/rs6000/constraints.md (define_register_constraint "wu"):
1839 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1840 RS6000_CONSTRAINT_wu.
1841 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1842 (rs6000_init_hard_regno_mode_ok): Adjust.
1843 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1845 (define_mode_attr Fa): Delete.
1846 * config/rs6000/vsx.md: Ditto.
1847 * doc/md.texi (Machine Constraints): Adjust.
1849 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1851 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1853 (define_register_constraint "wK"): Delete.
1854 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1855 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1856 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1857 (rs6000_init_hard_regno_mode_ok): Adjust.
1858 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1859 Replace "wK" constraint by "wH" with "p9v".
1860 * config/rs6000/vsx.md: Ditto.
1861 * doc/md.texi (Machine Constraints): Adjust.
1863 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1865 * config/rs6000/constraints.md (define_register_constraint "wb"):
1867 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1868 RS6000_CONSTRAINT_wb.
1869 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1870 (rs6000_init_hard_regno_mode_ok): Adjust.
1871 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1872 * config/rs6000/vsx.md: Ditto.
1873 * doc/md.texi (Machine Constraints): Adjust.
1875 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1877 * config/rs6000/constraints.md (define_register_constraint "wo"):
1879 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1880 RS6000_CONSTRAINT_wo.
1881 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1882 (rs6000_init_hard_regno_mode_ok): Adjust.
1883 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1884 * config/rs6000/altivec.md: Ditto.
1885 * doc/md.texi (Machine Constraints): Adjust.
1887 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1889 * config/darwin-c.c (darwin_register_objc_includes): Do not
1890 prepend the sysroot when building gnu-runtime header search
1893 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1895 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1896 instead of direct output of the asm.
1898 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1900 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1901 argument to be type bool (was int before).
1902 (rs6000_emit_epilogue): Simplify some code. Declare some variables
1903 at first use. Use type bool for some variables. Fix a theoretical
1904 eh_return bug for svr4.
1906 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1908 * config/rs6000/rs6000.md (isa): New attribute.
1909 (enabled): New attribute.
1911 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
1913 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
1914 assemble_start_function and assemble_end_function.
1916 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
1919 * omp-general.c (oacc_verify_routine_clauses): Change formal
1920 parameters. Add checking if already marked with an OpenACC
1921 'routine' directive. Adjust all users.
1924 * omp-general.c (oacc_build_routine_dims): Move some of its
1926 (oacc_verify_routine_clauses): ... this new function.
1927 * omp-general.h (oacc_verify_routine_clauses): New prototype.
1929 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1931 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
1932 formating of picbase labels to match other ports.
1934 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
1936 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
1937 in the generated code.
1939 2019-05-16 Martin Sebor <msebor@redhat.com>
1941 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
1942 identifiers, keywords, operators, and types in diagnostics. Correct
1943 quoting, spelling, and sentence capitalization issues.
1944 (expand_builtin_atomic_is_lock_free): Same.
1945 (fold_builtin_next_arg): Same.
1946 * cfgexpand.c (expand_one_var): Same.
1947 (tree_conflicts_with_clobbers_p): Same.
1948 (expand_asm_stmt): Same.
1949 (verify_loop_structure): Same.
1950 * cgraphunit.c (process_function_and_variable_attributes): Same.
1951 * collect-utils.c (collect_execute): Same.
1952 * collect2.c (maybe_run_lto_and_relink): Same.
1953 (is_lto_object_file): Same.
1954 (scan_prog_file): Same.
1955 * convert.c (convert_to_real_1): Same.
1956 * dwarf2out.c (dwarf2out_begin_prologue): Same.
1957 * except.c (verify_eh_tree): Same.
1958 * gcc.c (execute): Same.
1959 (eval_spec_function): Same.
1960 (run_attempt): Same.
1961 (driver::set_up_specs): Same.
1962 (compare_debug_auxbase_opt_spec_function): Same.
1963 * gcov-tool.c (unlink_gcda_file): Same.
1966 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
1967 * gimplify.c (gimplify_asm_expr): Same.
1968 (gimplify_adjust_omp_clauses): Same.
1969 * hsa-gen.c (gen_hsa_addr_insns): Same.
1970 (gen_hsa_insns_for_load): Same.
1971 (gen_hsa_cmp_insn_from_gimple): Same.
1972 (gen_hsa_insns_for_operation_assignment): Same.
1973 (gen_get_level): Same.
1974 (gen_hsa_alloca): Same.
1975 (omp_simple_builtin::generate): Same.
1976 (gen_hsa_atomic_for_builtin): Same.
1977 (gen_hsa_insns_for_call): Same.
1978 * input.c (dump_location_info): Same.
1979 * ipa-devirt.c (compare_virtual_tables): Same.
1980 * ira.c (ira_setup_eliminable_regset): Same.
1981 * lra-assigns.c (lra_assign): Same.
1982 * lra-constraints.c (lra_constraints): Same.
1983 * lto-streamer-in.c (lto_input_mode_table): Same.
1984 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
1985 (merge_and_complain): Same.
1986 (compile_offload_image): Same.
1987 (compile_images_for_offload_targets): Same.
1988 (debug_objcopy): Same.
1991 * opts.c (print_specific_help): Same.
1992 (parse_no_sanitize_attribute): Same.
1994 (handle_param): Same.
1995 * plugin.c (add_new_plugin): Same.
1996 (parse_plugin_arg_opt): Same.
1997 (try_init_one_plugin): Same.
1998 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
1999 operators, and types in diagnostics. Correct quoting and spelling
2001 * read-rtl-function.c (parse_edge_flag_token): Same.
2002 (function_reader::parse_enum_value): Same.
2003 * reg-stack.c (check_asm_stack_operands): Same.
2004 * regcprop.c (validate_value_data): Same.
2005 * sched-rgn.c (make_pass_sched_fusion): Same.
2006 * stmt.c (check_unique_operand_names): Same.
2007 * targhooks.c (default_target_option_pragma_parse): Same.
2008 * tlink.c (recompile_files): Same.
2009 * toplev.c (process_options): Same.
2011 * trans-mem.c (diagnose_tm_1): Same.
2012 (ipa_tm_scan_irr_block): Same.
2013 (ipa_tm_diagnose_transaction): Same.
2014 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
2015 format a tree code name in a diagnostic.
2016 (verify_types_in_gimple_min_lval): Same.
2017 (verify_types_in_gimple_reference): Same.
2018 (verify_gimple_call): Same.
2019 (verify_gimple_assign_unary): Same.
2020 (verify_gimple_assign_binary): Same.
2021 (verify_gimple_assign_ternary): Same.
2022 (verify_gimple_assign_single): Same.
2023 (verify_gimple_switch): Same.
2024 (verify_gimple_label): Same.
2025 (verify_gimple_phi): Same.
2026 (verify_gimple_in_seq): Same.
2027 (verify_eh_throw_stmt_node): Same.
2028 (collect_subblocks): Same.
2029 (gimple_verify_flow_info): Same.
2030 (do_warn_unused_result): Same.
2031 * tree-inline.c (expand_call_inline): Same.
2032 * tree-into-ssa.c (update_ssa): Same.
2033 * tree.c (tree_int_cst_elt_check_failed): Same.
2034 (tree_vec_elt_check_failed): Same.
2035 (omp_clause_operand_check_failed): Same.
2036 (verify_type_variant): Same.
2037 (verify_type): Same.
2038 * value-prof.c (verify_histograms): Same.
2039 * varasm.c (assemble_start_function): Same.
2041 2019-05-16 Martin Sebor <msebor@redhat.com>
2043 * config/i386/i386-expand.c (get_element_number): Quote keywords
2044 and other internal names in diagnostics. Adjust other diagnostic
2045 formatting issues noted by -Wformat-diag.
2046 * config/i386/i386-features.c
2047 (ix86_mangle_function_version_assembler_name): Same.
2048 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
2049 * config/i386/i386.c (ix86_function_type_abi): Same.
2050 (ix86_function_ms_hook_prologue): Same.
2051 (classify_argument): Same.
2052 (ix86_expand_prologue): Same.
2053 (ix86_md_asm_adjust): Same.
2054 (ix86_memmodel_check): Same.
2056 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2058 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
2059 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
2062 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
2065 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
2066 intrinsics without SSE/SSE2/SSSE3.
2067 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
2069 (*mmx_uavgv8qi3): Likewise.
2071 2019-05-17 Richard Biener <rguenther@suse.de>
2073 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
2074 VEC_PERM_EXPR as __VEC_PERM with -gimple.
2076 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
2078 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
2079 vec_sldw insn pattern.
2081 2019-05-17 Richard Biener <rguenther@suse.de>
2083 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
2085 2019-05-17 Martin Liska <mliska@suse.cz>
2088 * toplev.c (output_stack_usage): With LTO and sanitizer it
2089 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
2090 has no file location.
2092 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2095 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
2096 sz0 is equal to sz1, instead return false in that case.
2098 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2099 has non-constant expression, force sctx.lane and use two
2100 argument IFN_GOMP_SIMD_LANE instead of single argument.
2101 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2102 two argument IFN_GOMP_SIMD_LANE without lhs.
2103 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2105 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2107 (LOOP_REQUIRES_VERSIONING): Or in
2108 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2109 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2111 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2112 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2113 from simd if clause if needed.
2115 2019-05-16 Richard Biener <rguenther@suse.de>
2117 * tree-affine.c (expr_to_aff_combination): New function split
2119 (tree_to_aff_combination): ... here.
2120 (aff_combination_expand): Avoid building a GENERIC tree.
2122 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2124 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2125 assemble_start_function and assemble_end_function calls.
2126 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2127 assemble_start_function and assemble_end_function.
2128 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2129 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2130 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2131 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2132 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2133 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2134 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2135 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2136 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2137 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2138 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2139 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2141 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2142 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2143 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2144 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2145 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2146 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2147 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2148 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2149 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2150 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2151 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2152 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2153 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2154 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2156 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2157 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2158 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2160 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2162 * tree-ssa-alias.c (alias_stats): Add
2163 aliasing_component_refs_p_may_alias and
2164 aliasing_component_refs_p_no_alias.
2165 (dump_alias_stats): Print aliasing_component_refs_p stats.
2166 (aliasing_component_refs_p): Update stats.
2168 2019-05-16 Martin Liska <mliska@suse.cz>
2171 * multiple_target.c (expand_target_clones): Do not allow
2172 target_clones being used with a symbol that is an alias.
2174 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2176 PR tree-optimization/90394
2177 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2178 positives rather than ICE for cases where (code2 == NE_EXPR
2179 && code1 == BIT_AND_EXPR).
2181 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2184 * tree-core.h (struct tree_decl_common): Document
2185 decl_nonshareable_flag for PARM_DECLs.
2186 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2187 * calls.c (expand_call): Don't try tail call if caller
2188 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2189 passed on the stack and callee needs to pass any arguments on the
2191 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2192 else if instead of series of mutually exclusive ifs. Handle
2193 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2194 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2196 * lto-streamer.h (LTO_major_version): Bump to 9.
2198 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2200 PR tree-optimization/90106
2201 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2202 new parameter as new internal function call, also move it to new
2204 (use_internal_fn): Pass internal function call to
2205 shrink_wrap_one_built_in_call_with_conds.
2207 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2209 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2211 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2212 safelen_int and set loop->dont_vectorize.
2214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2217 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2219 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2221 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2222 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2223 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2226 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2229 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2230 define_insn_and_split to support SSE emulation.
2231 (*vec_extractv2sf_0): Likewise.
2232 (*vec_extractv2sf_1): Likewise.
2233 (*vec_extractv2si_0): Likewise.
2234 (*vec_extractv2si_1): Likewise.
2235 (*vec_extractv2si_zext_mem): Likewise.
2236 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2237 (vec_extractv2sf_1 splitter): Likewise.
2238 (vec_extractv2sfsf): Likewise.
2239 (vec_setv2si): Likewise.
2240 (vec_extractv2si_1 splitter): Likewise.
2241 (vec_extractv2sisi): Likewise.
2242 (vec_setv4hi): Likewise.
2243 (vec_extractv4hihi): Likewise.
2244 (vec_setv8qi): Likewise.
2245 (vec_extractv8qiqi): Likewise.
2246 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2247 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2248 (vec_extractv2sisi): Likewise.
2249 (vec_extractv4hihi): Likewise.
2250 (vec_extractv8qiqi): Likewise.
2251 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2252 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2253 (vec_initv2sisi): Likewise.
2254 (vec_initv4hihi): Likewise.
2255 (vec_initv8qiqi): Likewise.
2256 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2257 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2258 (vec_setv4hi): Likewise.
2259 (vec_setv8qi): Likewise.
2261 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2264 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2265 TARGET_MMX_WITH_SSE.
2266 (MMXMODE:*mov<mode>_internal): Likewise.
2267 (MMXMODE:movmisalign<mode>): Likewise.
2269 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2272 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2273 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2274 (sse2_cvtpd2pi): Ditto.
2275 (sse2_cvttpd2pi): Ditto.
2276 (*vec_concatv2sf_sse4_1): Ditto.
2277 (*vec_concatv2sf_sse): Ditto.
2278 (*vec_concatv2si_sse4_1): Ditto.
2279 (*vec_concatv2si): Ditto.
2280 (*vec_concatv4si_0): Ditto.
2281 (*vec_concatv2di_0): Ditto.
2283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2286 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2288 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2291 * config/i386/sse.md (ssse3_palignrdi): Changed to
2292 define_insn_and_split to support SSE emulation.
2294 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2297 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2299 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2302 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2303 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2306 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2309 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2310 or TARGET_MMX_WITH_SSE.
2311 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2313 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2316 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2318 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2321 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2322 Changed to define_insn_and_split to support SSE emulation.
2324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2327 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2328 Changed to define_insn_and_split to support SSE emulation.
2330 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2333 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2334 (*mmx_<emms>): This.
2335 (mmx_<emms>): New expander.
2337 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2340 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2342 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2344 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2347 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2349 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2352 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2354 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2357 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2358 TARGET_MMX_WITH_SSE.
2359 (*mmx_uavgv4hi3): Add SSE emulation.
2361 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2364 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2365 and TARGET_MMX_WITH_SSE.
2366 (*mmx_uavgv8qi3): Add SSE emulation.
2368 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2371 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2372 maskmovdqu for __MMX_WITH_SSE__.
2374 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2377 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2378 TARGET_MMX and TARGET_MMX_WITH_SSE.
2379 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2381 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2384 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2385 define_insn_and_split to support SSE emulation.
2387 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2390 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2391 and TARGET_MMX_WITH_SSE.
2392 (mmx_<code>v8qi3): Likewise.
2393 (smaxmin:<code>v4hi3): New.
2394 (umaxmin:<code>v8qi3): Likewise.
2395 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2396 (umaxmin:*mmx_<code>v8qi3): Likewise.
2398 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2401 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2402 TARGET_MMX_WITH_SSE.
2403 (*mmx_pinsrw): Add SSE emulation.
2405 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2408 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2410 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2413 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2414 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2417 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2420 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2421 (sse_cvttps2pi): Likewise.
2423 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2426 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2427 TARGET_MMX_WITH_SSE.
2428 (mmx_pshufw_1): Add SSE emulation.
2429 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2430 TARGET_MMX_WITH_SSE to support SSE emulation.
2432 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2435 * config/i386/constraints.md (Yw): New constraint.
2436 * config/i386/mmx.md (*vec_dupv2si): Changed to
2437 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2438 support SSE emulation.
2440 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2443 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2444 TARGET_MMX_WITH_SSE.
2445 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2447 (mmx_gt<mode>3): Likewise.
2449 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2452 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2453 TARGET_MMX_WITH_SSE. Add SSE support.
2455 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2458 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2459 TARGET_MMX_WITH_SSE.
2460 (any_logic:<code><mode>3): New.
2461 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2464 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2467 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2468 TARGET_MMX_WITH_SSE. Add SSE emulation.
2469 (mmx_<shift_insn><mode>3): Likewise.
2471 (<shift_insn><mode>3): Likewise.
2473 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2476 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2477 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2482 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2483 TARGET_MMX_WITH_SSE.
2484 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2487 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2490 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2491 TARGET_MMX_WITH_SSE.
2493 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2499 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2500 (plusminus:mmx_<plusminus_insn><mode>3): Check
2501 TARGET_MMX_WITH_SSE.
2502 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2503 (<plusminus_insn><mode>3): New.
2504 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2505 (*mmx_<plusminus_insn><mode>3): Likewise.
2507 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2510 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2511 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2513 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2514 define_insn_and_split to support SSE emulation.
2515 (mmx_punpcklbw): Likewise.
2516 (mmx_punpckhwd): Likewise.
2517 (mmx_punpcklwd): Likewise.
2518 (mmx_punpckhdq): Likewise.
2519 (mmx_punpckldq): Likewise.
2521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2522 Uros Bizjak <ubizjak@gmail.com>
2525 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2527 (ix86_split_mmx_pack): Likewise.
2528 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2530 (ix86_split_mmx_pack): Likewise.
2531 * config/i386/i386.md (mmx_isa): New.
2532 (enabled): Also check mmx_isa.
2533 * config/i386/mmx.md (any_s_truncate): New code iterator.
2534 (s_trunsuffix): New code attr.
2535 (mmx_packsswb): Removed.
2536 (mmx_packssdw): Likewise.
2537 (mmx_packuswb): Likewise.
2538 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2539 MMX packsswb/packuswb with SSE2.
2540 (mmx_packssdw): Likewise.
2541 * config/i386/predicates.md (register_mmxmem_operand): New.
2543 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2546 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2547 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2548 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2549 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2550 (ix86_vector_mode_supported_p): Likewise.
2551 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2553 2019-05-15 Martin Liska <mliska@suse.cz>
2556 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2559 2019-05-15 Richard Biener <rguenther@suse.de>
2561 * tree-into-ssa.c (pass_build_ssa::execute): Run
2562 update_address_taken before going into SSA.
2564 2019-05-15 Richard Biener <rguenther@suse.de>
2566 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2567 as __BIT_FIELD_REF with type with -gimple.
2569 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2571 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2572 semantically equivalent branches (left over after prior refactorings).
2574 2019-05-15 Richard Biener <rguenther@suse.de>
2576 PR tree-optimization/88828
2577 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2580 2019-05-14 Richard Biener <rguenther@suse.de>
2582 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2583 as __VIEW_CONVERT with -gimple.
2585 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2588 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2591 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2593 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2594 define_split to become a define_insn_and_split.
2596 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2598 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2600 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2601 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2602 (sibcall_epilogue): Adjust.
2605 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2607 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2608 to unsupported ones.
2609 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2610 * config.host: Likewise.
2611 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2612 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2613 __svr4__]: Remove "brand" fallback.
2614 [!KSTAT_DATA_STRING]: Remove.
2615 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2617 (comdat_group): Likewise.
2618 (set_have_as_tls): Likewise.
2619 (gcc_cv_target_dl_iterate_phdr): Likewise.
2620 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2621 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2622 * configure: Regenerate.
2623 * doc/install.texi: Simplify Solaris target triplets.
2624 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2625 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2626 Remove Solaris 10 references.
2627 Remove obsolete Solaris bug reference.
2628 (Specific, sparc-sun-solaris2.10): Remove.
2630 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2632 * config/i386/i386.md (any_div): New code iterator.
2633 (paired_mod): New code attribute.
2634 (sgnprefix): Handle DIV and UDIV RTXes.
2636 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2637 and udivmod<mode>4 patterns using any_div code iterator.
2638 (divmod splitters): Macroize splitters using any_div code iterator.
2639 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2640 (*udivmodsi4_pow2_zext_2): Ditto.
2641 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2642 and *udivmod<mode>4_noext patterns using any_div code iterator.
2643 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2644 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2645 patterns using any_div code iterator.
2646 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2647 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2648 patterns using any_div code iterator.
2649 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2650 udivmodhiqi3 patterns using any_extend code iterator.
2652 2019-05-14 Richard Biener <rguenther@suse.de>
2653 H.J. Lu <hongjiu.lu@intel.com>
2655 PR tree-optimization/88828
2656 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2657 permuting in a single non-constant element not extracted
2660 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2662 * internal-fn.def (SIGNBIT): New.
2663 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2665 (signbitv4sf2): Likewise.
2667 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2670 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2671 next insn when the SRC reg is dead.
2673 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2675 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2676 (alloc_cand_and_find_basis): Ditto.
2677 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2678 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2679 (create_add_imm_cand, slsr_process_cast): Ditto.
2680 (slsr_process_copy, replace_mult_candidate): Ditto.
2681 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2682 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2683 (pass_strength_reduction::execute): Init the first NULL element.
2685 2019-05-13 Nathan Sidwell <nathan@acm.org>
2687 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2688 (run_attempt): Reformat line break.
2690 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2693 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2694 data registers in sibcall epilogues.
2695 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2697 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2700 * configure.ac (--enable-frame-pointer):
2701 Disable by default for cygwin and mingw.
2702 * configure: Regenerate.
2704 2019-05-13 Nathan Sidwell <nathan@acm.org>
2706 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2708 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2709 (gen_member_die): Move abstract origin check earlier. Only VARs
2710 can be static_inline_p. Simplify splicing control flow.
2712 2019-05-13 Richard Biener <rguenther@suse.de>
2714 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2716 (vect_build_slp_tree_1): Likewise.
2718 2019-05-13 Richard Biener <rguenther@suse.de>
2720 PR tree-optimization/90402
2721 * tree-if-conv.c (tree_if_conversion): Value number only
2722 the loop body by making the latch an exit of the region
2724 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2726 (do_rpo_vn): Deal with multiple edges into the entry block
2727 that are not backedges inside the region by skipping PHIs
2730 2019-05-13 Richard Biener <rguenther@suse.de>
2732 PR tree-optimization/90316
2733 * tree-ssa-pre.c (insert_aux): Fold into ...
2734 (insert): ... this function. Use a RPO walk to reduce the
2735 number of required iterations.
2737 2019-05-13 Martin Liska <mliska@suse.cz>
2739 PR tree-optimization/90416
2740 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2741 string instead of passing the second part as va_arg argument.
2743 2019-05-13 Martin Liska <mliska@suse.cz>
2745 PR gcov-profile/90380
2746 * gcov.c (handle_cycle): Do not support zero cycle count,
2747 it should not be possible.
2748 (path_contains_zero_cycle_arc): New function.
2749 (circuit): Ignore zero cycle arc counts.
2751 2019-05-13 Martin Liska <mliska@suse.cz>
2753 PR gcov-profile/90380
2754 * gcov.c (enum loop_type): Remove the enum and
2756 (handle_cycle): Assert that we should not reach
2758 (circuit): Use loop_found instead of a tri-state loop_type.
2759 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2762 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2765 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2766 (ix86_output_indirect_branch_via_reg): Use output mechanism
2767 accounting for __USER_LABEL_PREFIX__.
2768 (ix86_output_indirect_branch_via_push): Likewise.
2769 (ix86_output_function_return): Likewise.
2770 (ix86_output_indirect_function_return): Likewise.
2772 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2774 * doc/md.texi: Document use of code attributes in rtx patterns.
2775 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2776 * read-rtl.c (find_code): Split out search loops into...
2777 (maybe_find_code): ...this new function.
2778 (check_code_iterator): Make the error message more informative.
2779 (check_code_attribute): New function.
2780 (rtx_reader::rtx_alloc_for_name): Likewise.
2781 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2782 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2783 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2784 <max_opp> directly as an rtx code instead of via a match_operator.
2785 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2786 (<su>abd<mode>_3): Update accordingly.
2788 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2790 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2791 is given, print the state of the EH "save world" computation for
2794 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2797 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2798 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2800 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2802 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2803 Use pinsrd for TARGET_SSE4_1.
2804 * config/i386/sse.md (movdi_to_sse): Ditto.
2806 2019-05-10 Richard Biener <rguenther@suse.de>
2808 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2809 (do_rpo_vn): Initialize next_value_id.
2811 2019-05-10 Martin Liska <mliska@suse.cz>
2813 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2816 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2818 PR tree-optimization/90385
2819 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2820 arguments of the exit phis.
2823 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2824 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2826 (copy_tree_body_r): Likewise.
2827 (copy_fn): Set id.do_not_fold to true.
2829 2019-05-10 Martin Liska <mliska@suse.cz>
2831 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2832 Reapply changes from r269790.
2834 2019-05-10 Martin Liska <mliska@suse.cz>
2837 * doc/invoke.texi: New params.
2838 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2839 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2840 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2842 * tree-switch-conversion.h (struct jump_table_cluster):
2845 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2847 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2849 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2851 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2853 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2855 PR rtl-optimization/88879
2856 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2858 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2861 * config/arm/arm.c (callee_saved_reg_p): Move before
2862 thumb_find_work_register.
2863 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2864 thumb_find_work_register. Only call df_get_live_out once.
2865 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2866 (thumb_find_work_register): Use
2867 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2868 algorithms to locate a spare call clobbered reg.
2870 2019-05-09 Martin Liska <mliska@suse.cz>
2872 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2873 and MAX_EXPR in GIMPLE FE format.
2875 2019-05-09 Martin Liska <mliska@suse.cz>
2877 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2878 * gimple-pretty-print.c (dump_gimple_bb_header):
2880 (pp_cfg_jump): Dump edge probability.
2881 * profile-count.c (profile_quality_as_string): Simplify
2882 with a static array.
2883 (parse_profile_quality): New function.
2884 (profile_count::dump): Simplify with a static array.
2885 (profile_count::from_gcov_type): Add new argument.
2886 * profile-count.h (parse_profile_quality): Likewise.
2887 * predict.h (set_hot_bb_threshold): New.
2888 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2890 * predict.c (get_hot_bb_threshold): Set from the new param.
2891 (set_hot_bb_threshold): New.
2893 2019-05-09 Richard Biener <rguenther@suse.de>
2895 PR tree-optimization/90395
2896 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2897 rewrite vector stores that throw internally.
2899 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2901 * cif-code.def (CHKP): Remove.
2904 * configure.ac (--enable-frame-pointer): Disable by default for
2906 * configure: Regenerate.
2908 2019-05-09 Alan Modra <amodra@gmail.com>
2911 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
2912 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
2913 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
2914 cost for general <-> vsx when direct moves are available.
2915 Cost union classes at minimal cost for any reg in the class.
2916 Correct calculation for moves between vsx, float, and altivec.
2917 Don't return a low cost for moves between special regs. Don't
2918 use hard coded register numbers.
2919 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
2920 (rs6000_ira_change_pseudo_allocno_class): New function.
2921 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
2922 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
2924 (movsi_internal1): Don't disparage vector alternatives.
2925 (mov<mode>_internal): Likewise, excepting alternative that
2927 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
2928 we <- b alternative.
2930 2019-05-08 Jakub Jelinek <jakub@redhat.com>
2933 PR tree-optimization/89060
2934 * tree-ssa-live.h (live_vars_map): New typedef.
2935 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
2936 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
2937 (struct compute_live_vars_data): New type.
2938 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
2939 live_vars_at_stmt, destroy_live_vars): New functions.
2940 * tree-tailcall.c: Include tree-ssa-live.h.
2941 (live_vars, live_vars_vec): New global variables.
2942 (find_tail_calls): Perform variable life analysis before punting.
2943 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
2944 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
2946 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
2947 Perform variable life analysis to select variables that really need
2949 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
2950 instead set id->eh_landing_pad_dest and assert it is the same.
2951 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
2953 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
2954 Richard Earnshaw <rearnsha@arm.com>
2957 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
2959 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
2960 (thumb1_compute_save_core_reg_mask): Don't force a spare work
2961 register if both the epilogue and prologue can use call-clobbered
2963 (thumb1_unexpanded_epilogue): Use
2964 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
2965 picking temporaries for restoring high regs to match that of the
2966 prologue where possible.
2967 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
2968 the list of work registers. Detect if the return address is still live
2969 at the end of the prologue and avoid using it for a work register if so.
2970 If the return address is not live, add LR to the list of pushable regs
2971 after the first pass.
2973 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2975 PR tree-optimization/90078
2976 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
2977 (INFTY): Increase the value for infinite cost.
2978 (struct comp_cost): Promote type of members to int64_t.
2979 (infinite_cost): Don't set complexity in initialization.
2980 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
2981 overflows to infinite_cost.
2982 (adjust_setup_cost): Promote type of parameter and cost computation
2984 (struct ainc_cost_data, struct iv_ca): Promote type of member to
2986 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
2987 cost computation to int64_t.
2988 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
2989 int64_t's format specifier in dump.
2991 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
2993 PR tree-optimization/90240
2994 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
2995 with respect to scaling factor pre-computed for each basic block.
2996 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
2997 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
2998 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
2999 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
3000 live range for array of loop's basic blocks. Cleanup aux field of
3001 loop's basic blocks.
3003 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3005 PR tree-optimization/90356
3006 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
3008 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
3010 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
3011 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
3012 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
3013 (ix86_handle_option): Handle -mavx512bf16.
3014 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
3016 * config/i386/avx512bf16vlintrin.h: New.
3017 * config/i386/avx512bf16intrin.h: New.
3018 * config/i386/cpuid.h (bit_AVX512BF16): New.
3019 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
3020 * config/i386/i386-builtin-types.def: Add new types.
3021 * config/i386/i386-builtin.def: Add new builtins.
3022 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3024 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
3025 (ix86_option_override_internal): Handle BF16.
3026 (ix86_valid_target_attribute_inner_p): Ditto.
3027 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
3028 * config/i386/i386-builtin.c (enum processor_features): Add
3030 (static const _isa_names_table isa_names_table): Ditto.
3031 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
3032 (PTA_AVX512BF16): Ditto.
3033 * config/i386/i386.opt: Add -mavx512bf16.
3034 * config/i386/immintrin.h: Include avx512bf16intrin.h
3035 and avx512bf16vlintrin.h.
3036 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
3037 avx512f_cvtneps2bf16_<mode><mask_name>,
3038 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
3039 * config/i386/subst.md (mask_half): Add new subst.
3040 * doc/invoke.texi: Document -mavx512bf16.
3042 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3044 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
3046 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
3047 (rs6000_debug_legitimize_reload_address): Delete.
3048 (rs6000_legitimize_reload_address_ptr): Delete.
3049 (rs6000_option_override_internal): Adjust.
3050 (mem_operand_gpr): Adjust comment.
3051 (legitimate_lo_sum_address_p): Ditto.
3052 (rs6000_legitimize_reload_address): Delete.
3053 (rs6000_debug_legitimize_reload_address): Delete.
3054 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
3056 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
3059 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3060 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
3061 to compute vector element selector for both constant and variable
3064 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3066 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
3067 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
3068 ashrdi3_cvt using SWI48 mode iterator.
3070 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3072 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
3073 (aarch64_<su>abd<mode>_3): Likewise.
3074 (*aarch64_<su>abd<mode>_3): New define_insn.
3075 (<sur>sad<vsi2qi>): New define_expand.
3076 * config/aarch64/iterators.md: Added MAX_OPP attribute.
3077 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
3078 (build_vect_cond_expr): Likewise.
3080 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3082 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
3083 clobbers outside of accessible_reg_set.
3084 * config/i386/i386.c (ix86_conditional_register_usage):
3085 Disable register sets by clearing corresponding bits in
3086 accessible_reg_set. Do not set corresponding bits in fixed_regs,
3087 call_used_regs and don't clear corresponding reg_names array members.
3089 2019-05-07 Richard Biener <rguenther@suse.de>
3091 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
3092 not specified still compute a comp_vectype for invariant
3095 2019-05-07 Richard Biener <rguenther@suse.de>
3097 PR tree-optimization/90316
3098 * tree-ssa-pre.c (translate_vuse_through_block): When
3099 same_valid is NULL do not bother to search for a virtual
3101 (phi_translate_1): When operands changed we cannot keep
3102 the same value-number so do not bother to ask whether
3103 that's possible from translate_vuse_through_block.
3105 2019-05-07 Martin Liska <mliska@suse.cz>
3107 * bitmap.c (bitmap_register): Come up with
3108 alloc_descriptor_max_uid and assign it for
3110 (register_overhead): Use get_descriptor as
3112 (release_overhead): New.
3113 (bitmap_elem_to_freelist): Call it.
3114 (bitmap_elt_clear_from): Likewise.
3115 (bitmap_obstack_free): Likewise.
3116 (bitmap_move): Sensitively release memory.
3117 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3118 (bitmap_initialize): Initialize alloc_descriptor to zero.
3119 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3121 2019-05-07 Richard Biener <rguenther@suse.de>
3123 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3124 we build a SLP node. Remove max_size and limiting.
3125 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3127 2019-05-07 Richard Biener <rguenther@suse.de>
3129 PR tree-optimization/90316
3130 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3132 (walk_non_aliased_vuses): Take walking limit argument.
3133 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3134 walking if it is reached instead of just counting.
3135 (get_continuation_for_phi): Likewise.
3136 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3137 limiting to the callback.
3138 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3139 (vn_reference_lookup_3): Likewise.
3140 (vn_reference_lookup_pieces): Likewise.
3141 (vn_reference_lookup): Likewise.
3142 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3143 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3144 (avail_exprs_stack::lookup_avail_expr): Likewise.
3146 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3148 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3149 for comparaible types in the second direction even if first one
3150 hits incomparable type.
3152 2019-05-07 Richard Biener <rguenther@suse.de>
3155 * lto-wrapper.c (debug_objcopy): Use the original filename
3156 including archive offset for the filename used for -save-temps.
3158 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3160 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3163 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3164 Hongtao Liu <hongtao.liu@intel.com>
3168 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3169 Modified, original implementation isn't correct.
3171 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3173 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3174 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3175 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3176 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3177 (FRAME_POINTER_REGNUM): Change numbering.
3178 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3179 (alt_reg_names): Adjust.
3180 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3182 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3183 (DWARF_FRAME_REGISTERS): Delete.
3184 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3185 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3187 (REG_ALLOC_ORDER): Adjust.
3188 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3189 (REG_CLASS_CONTENTS): Adjust.
3190 (RETURN_ADDR_RTX): Change comment.
3191 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3193 (REGISTER_NAMES): Adjust.
3194 (ADDITIONAL_REGISTER_NAMES): Adjust.
3195 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3197 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3199 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3201 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3202 (DWARF_FRAME_REGISTERS): Adjust.
3203 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3205 (REG_ALLOC_ORDER): Adjust.
3206 (enum reg_class): Delete SPR_REGS.
3207 (REG_CLASS_NAMES): Delete SPR_REGS.
3208 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3209 (REGISTER_NAMES): Adjust.
3210 (ADDITIONAL_REGISTER_NAMES): Adjust.
3211 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3212 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3213 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3214 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3215 (htm_spr_regno): Delete.
3216 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3218 (rs6000_dbx_register_number): Adjust.
3220 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3222 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3224 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3226 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3227 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3229 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3231 PR tree-optimization/88709
3232 PR tree-optimization/90271
3233 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3234 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3235 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3237 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3238 of the store merging group is larger than
3239 PARAM_STORE_MERGING_MAX_SIZE parameter.
3240 (split_group): Add bzero_first argument. If set, always emit first
3241 the first store which must be = {} of the whole area and then for the
3242 rest of the stores consider all zero bytes as paddings.
3243 (imm_store_chain_info::output_merged_store): Check if first store
3244 is = {} of the whole area and if yes, determine which setting of
3245 bzero_first for split_group gives smaller number of stores. Adjust
3246 split_group callers.
3247 (lhs_valid_for_store_merging_p): Allow decls.
3248 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3250 (pass_store_merging::process_store): Likewise.
3252 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3255 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3256 handling of V1TImode.
3258 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3261 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3262 and enable_frame_pointer ...
3263 * configure.ac: ... here. Update help strings for
3264 --enable-frame-pointer.
3265 * configure: Regenerate.
3266 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3267 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3268 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3269 (USE_X86_64_FRAME_POINTER): Ditto.
3271 2019-05-06 Martin Liska <mliska@suse.cz>
3273 * config.gcc: Append to target_gtfiles and fix indentation.
3275 2019-05-06 Richard Biener <rguenther@suse.de>
3277 PR tree-optimization/90358
3278 * tree-vect-stmts.c (get_group_load_store_type): Properly
3279 detect unused upper half of load.
3280 (vectorizable_load): Likewise.
3282 2019-05-06 Richard Biener <rguenther@suse.de>
3284 PR tree-optimization/88828
3285 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3286 (simplify_vector_constructor): ...here. Handle constants in
3289 2019-05-06 Richard Biener <rguenther@suse.de>
3291 PR tree-optimization/90328
3292 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3293 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3294 is valid in the loop nest before using it.
3295 (initialize_data_dependence_relation): Adjust.
3296 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3297 loop as loop-nest to dr_may_alias_p.
3299 2019-05-06 Richard Biener <rguenther@suse.de>
3301 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3303 2019-05-06 Richard Biener <rguenther@suse.de>
3305 PR tree-optimization/90316
3306 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3307 compute target on demand.
3308 (get_continuation_for_phi): Remove code walking stmts to
3309 get to a target virtual operand which could end up being
3312 2019-05-06 Martin Liska <mliska@suse.cz>
3315 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3316 when -mabi is selected to a non-default version.
3318 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3319 Martin Liska <mliska@suse.cz>
3321 * Makefile.in: Add lto-dump.texi.
3322 * cgraph.h: Add new functions get_visibility_string and
3323 get_symtab_type_string.
3324 * doc/gcc.texi: Include lto-dump section.
3325 * doc/lto-dump.texi: New file.
3326 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3327 (parse_dump_option): Factor out this function.
3328 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3329 (parse_dump_option): Export the function.
3330 * symtab.c (symtab_node::get_visibility_string): New function.
3331 (symtab_node::get_symtab_type_string): Likewise.
3333 2019-05-06 Martin Liska <mliska@suse.cz>
3335 * config/i386/i386-builtins.c: New file.
3336 * config/i386/i386-builtins.h: New file.
3337 * config/i386/i386-expand.c: New file.
3338 * config/i386/i386-expand.h: New file.
3339 * config/i386/i386-features.c: New file.
3340 * config/i386/i386-features.h: New file.
3341 * config/i386/i386-options.c: New file.
3342 * config/i386/i386-options.h: New file.
3343 * config.gcc: Add new files into extra_objs and
3345 * config/i386/i386.c: Split content of the file
3346 into newly introduced files.
3347 * config/i386/i386.h: Declare common variables
3349 * config/i386/t-i386: Define dependencies for new files.
3351 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3354 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3355 Restrict 'all' variant to 32-bit configurations.
3356 (unaligned_loadhiu): Likewise.
3357 (unaligned_storehi): Likewise.
3358 (unaligned_storesi): Likewise.
3359 (unaligned_loadhis): Disable when compiling for thumb1.
3361 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3363 PR tree-optimization/90269
3364 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3367 2019-05-03 Martin Liska <mliska@suse.cz>
3369 * hash-map.h: Add is_empty function.
3370 * hash-set.h: Likewise.
3371 * hash-table.h: Likewise.
3372 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3373 elements () == 0 (and similar usages).
3374 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3375 * gimplify.c (gimplify_bind_expr): Likewise.
3376 (gimplify_switch_expr): Likewise.
3377 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3378 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3379 * postreload-gcse.c (dump_hash_table): Likewise.
3380 (gcse_after_reload_main): Likewise.
3381 * predict.c (combine_predictions_for_bb): Likewise.
3382 * tree-parloops.c (reduction_phi): Likewise.
3383 (separate_decls_in_region): Likewise.
3384 (transform_to_exit_first_loop): Likewise.
3385 (gen_parallel_loop): Likewise.
3386 (gather_scalar_reductions): Likewise.
3387 (try_create_reduction_list): Likewise.
3388 * var-tracking.c (dump_vars): Likewise.
3389 (emit_notes_for_changes): Likewise.
3390 (vt_emit_notes): Likewise.
3392 2019-05-03 Richard Biener <rguenther@suse.de>
3394 PR tree-optimization/90316
3395 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3398 2019-05-03 Richard Biener <rguenther@suse.de>
3400 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3401 peeling for gaps by loading only lower halves of vectors
3403 (vectorizable_load): Likewise.
3405 2019-05-03 Richard Biener <rguenther@suse.de>
3408 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3410 2019-05-03 Richard Biener <rguenther@suse.de>
3413 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3414 Handle STRING_CST vs DECL or STRING_CST.
3416 2019-05-03 Richard Biener <rguenther@suse.de>
3418 PR tree-optimization/88963
3419 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3420 vector loads feeding only BIT_FIELD_REFs to component
3421 loads. Rewrite stores fed by CONSTRUCTORs to component
3424 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3426 * opts.h (finish_options): Remove lang_mask argument.
3427 (print_help, help_option_argument): Declare.
3428 * opts.c (print_help): Remove forward declaration, no longer static.
3429 (finish_options): Remove lang_mask argument, don't call print_help
3431 * opts-global.c (decode_options): Adjust finish_option caller, call
3434 PR tree-optimization/90303
3435 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3436 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3438 2019-05-03 Richard Biener <rguenther@suse.de>
3440 PR tree-optimization/89698
3441 * gimple-fold.c (canonicalize_constructor_val): Early out
3442 for constants, handle unfolded INTEGER_CSTs as they appear in
3443 C++ virtual table ctors.
3445 2019-05-03 Richard Biener <rguenther@suse.de>
3447 * passes.c (execute_function_todo): Remove dead code.
3449 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3451 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3452 the internal register number, for any "real" register.
3454 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3456 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3457 correct numbers for TFHAR, TFIAR, TEXASR.
3459 2019-05-02 Richard Biener <rguenther@suse.de>
3461 PR tree-optimization/89653
3462 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3463 update-address-taken before the pass.
3464 * passes.def (pass_tree_loop_init): Put comment before it.
3466 2019-05-02 Richard Biener <rguenther@suse.de>
3468 PR tree-optimization/89509
3469 * tree-ssa-structalias.c (compute_dependence_clique): Look
3470 at the first subvar when determining whether it is restrict.
3472 2019-05-02 Richard Biener <rguenther@suse.de>
3474 PR tree-optimization/90273
3475 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3476 useless debug stmts.
3478 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3480 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3482 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3484 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3485 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3486 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3487 (vectorizable_reduction): Use the functions above to vectorize in a
3488 fully masked loop codes that don't have a conditional internal
3491 2019-05-02 Martin Liska <mliska@suse.cz>
3493 * cgraphclones.c: Call valid_attribute_p with 1 for
3495 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3496 it's for target attribute.
3497 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3498 Add new boolean argument.
3499 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3501 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3502 to ix86_valid_target_attribute_inner_p.
3503 (ix86_valid_target_attribute_p): Pass flags argument to
3504 ix86_valid_target_attribute_inner_p.
3505 (get_builtin_code_for_version): Use 0 as it's target attribute.
3507 2019-05-02 Martin Liska <mliska@suse.cz>
3509 * gcc.c (process_command): Add dummy file only
3511 * opts-global.c (decode_options): Pass lang_mask.
3512 * opts.c (print_help): New function.
3513 (finish_options): Print --help if help_option_argument
3515 (common_handle_option): Factor out content of OPT__help_
3517 * opts.h (finish_options): Add new argument.
3519 2019-05-02 Martin Liska <mliska@suse.cz>
3522 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3523 With -minline-all-stringops use inline expansion using 4B loop.
3524 * doc/invoke.texi: Document the change of
3525 -minline-all-stringops.
3527 2019-05-01 Jeff Law <law@redhat.com>
3529 PR tree-optimization/88797
3530 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3531 PHI feeds a conditional on the RHS of an assignment.
3533 2019-04-30 Andrew Waterman <andrew@sifive.com>
3534 Jim Wilson <jimw@sifive.com>
3536 * config/riscv/constraints.md (L): New.
3537 * config/riscv/predicates.md (lui_operand): New.
3538 (sfb_alu_operand): New.
3539 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3540 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3541 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3542 * config/riscv/risc.md (type): Add sfb_alu.
3543 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3544 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3545 (branch_zero<mode>): Delete.
3547 (mov<GPR:mode><X:mode>cc): Likewise.
3548 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3550 2019-04-30 Nathan Sidwell <nathan@acm.org>
3552 * tree.h (MARK_TS_EXP): New.
3554 2019-04-30 Martin Liska <mliska@suse.cz>
3556 * opts.c (enable_warning_as_error): Provide hints
3557 for unknown options.
3559 2019-04-30 Martin Liska <mliska@suse.cz>
3562 * doc/invoke.texi: Add missing dash for gas-locview-support
3563 and gno-as-locview-support.
3565 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3568 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3569 whitespace at the start of target attribute string.
3571 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3574 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3575 Define __ARM_FEATURE_ATOMICS.
3577 2019-04-30 Martin Liska <mliska@suse.cz>
3579 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3580 into built_in_function enum. Remove code for endp == 2 and
3581 use BUILT_IN_* constants.
3582 (gimple_fold_builtin): Call the function with fcode.
3584 2019-04-30 Martin Liska <mliska@suse.cz>
3586 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3587 DECL_FUNCTION_CODE into ix86_builtins enum before
3588 the switch statement.
3590 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3592 PR tree-optimization/89475
3593 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3596 2019-04-30 Martin Liska <mliska@suse.cz>
3598 PR translation/90274
3599 * opts.c (print_filtered_help): Wrap string in _(...).
3601 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3603 PR tree-optimization/90240
3605 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3607 PR tree-optimization/90078
3608 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3609 checks for infinite_cost overflow.
3611 2019-04-29 Jeff Law <law@redhat.com>
3613 * passes.def: Move -Wrestrict pass after copy propagation.
3615 2019-04-29 Maya Rashish <coypu@sdf.org>
3617 * config.gcc (default_gnu_indirect_function): Default to yes
3618 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3619 sparc*-*-netbsd*, x86_64-*-netbsd*.
3621 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3623 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3624 where cond2 is NE_EXPR.
3625 (is_value_included_in): Update comment.
3627 2019-04-29 Richard Biener <rguenther@suse.de>
3629 PR tree-optimization/90278
3630 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3631 EH on comparison simplification.
3633 2019-04-29 Jason Merrill <jason@redhat.com>
3635 PR c++/82081 - tail call optimization breaks noexcept
3636 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3637 nothrow function to a might-throw function into a tail call.
3639 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3641 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3642 (DDR_INNER_LOOP): Likewise.
3643 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3644 (initialize_data_dependence_relation): Likewise.
3645 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3647 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3649 PR rtl-optimization/90257
3650 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3654 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3658 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3661 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3664 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3666 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3668 2019-04-29 Richard Biener <rguenther@suse.de>
3670 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3673 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3675 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3676 varasm.h, and netbsd-protos.h.
3678 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3681 * config/i386/i386-protos.h (ix86_data_alignment): Change
3682 the second argument type to unsigned int.
3683 * config/i386/i386.c (ix86_data_alignment): Change "align"
3684 argument type to unsigned int.
3686 2019-04-27 Martin Liska <mliska@suse.cz>
3689 * opt-suggestions.c (option_proposer::build_option_suggestions):
3690 When get_valid_option_values returns empty values, add the
3691 misspelling candidate.
3693 2019-04-26 Jim Wilson <jimw@sifive.com>
3695 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3697 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3698 Pass orig_mode to riscv_build_integer.
3699 (riscv_split_integer): Pass mode to riscv_move_integer.
3700 (riscv_legitimize_const_move): Likewise.
3701 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3702 promoted_mode. Replace force_reg call with code to load constant into
3703 promoted reg and then subreg it for the store.
3704 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3707 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3709 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3712 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3714 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3715 commentary about the encoding of precision.
3717 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3719 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3720 * config/i386/t-freebsd64: New file.
3721 * config.gcc: Add the t-freebsd64 for multilib support.
3723 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3725 * doc/extend.texi (vector_size): Add missing comma after @xref.
3727 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3729 * BASE-VER: Set to 10.0.0.
3731 2019-04-25 Richard Biener <rguenther@suse.de>
3734 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3735 VIEW_CONVERT_EXPR into one operating on an rvalue.
3737 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3740 * config/i386/i386.c (feature_priority): Moved to file scope.
3741 (processor_features): Likewise.
3742 (processor_model): Likewise.
3743 (_arch_names_table): Likewise.
3744 (arch_names_table): Likewise.
3745 (_feature_list): Removed.
3746 (feature_list): Likewise.
3747 (_isa_names_table): Moved to file scope. Add priority.
3748 (isa_names_table): Likewise.
3749 (get_builtin_code_for_version): Replace feature_list with
3750 isa_names_table. Update error message for P_ZERO priority.
3752 2019-04-25 Richard Biener <rguenther@suse.de>
3754 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3755 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3757 2019-04-24 Jeff Law <law@redhat.com>
3759 PR tree-optimization/90037
3760 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3761 * passes.def: Replace all instance of phi-only cprop with the
3762 lattice propagator. Move propagation pass from after erroneous
3763 path isolation to before erroneous path isolation.
3764 * tree-ssa-phionlycprop.c: Remove.
3766 2019-04-24 Richard Biener <rguenther@suse.de>
3769 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3770 by size and BITS_PER_UNIT on poly-wide-ints.
3772 2019-04-25 Richard Biener <rguenther@suse.de>
3775 * match.pd: Add pattern to simplify view-conversion of an
3778 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3780 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3781 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3782 for Go on 32 bit AIX.
3783 * config/rs6000/aix72.h: Likewise.
3785 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3788 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3789 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3791 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3794 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3795 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3796 for restored hard frame pointer.
3797 (s390_sched_dependencies_evaluation): Implement new target hook.
3798 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3800 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3802 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3803 * config/arc/arc.c (arc_init): Cleanup warning message.
3804 (arc_override_options): Likewise.
3806 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3809 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3810 a register if both if_true and if_false are MEMs.
3812 PR tree-optimization/90208
3813 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3814 after labels of new_bb, not before them.
3816 PR tree-optimization/90211
3817 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3818 which are not SSA_NAMEs.
3820 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3822 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3824 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3826 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3828 PR rtl-optimization/87979
3829 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3832 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3834 PR rtl-optimization/84032
3835 * modulo-sched.c (ps_insn_find_column): Change condition so that
3836 branch will always be the last insn in a row inside partial
3839 2019-04-23 Richard Biener <rguenther@suse.de>
3842 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3843 dest_single_pred_p argument.
3844 (remove_forwarder_block): Adjust.
3845 (remove_forwarder_block_with_phi): Likewise.
3847 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3848 Bernd Edlinger <bernd.edlinger@hotmail.de>
3849 Jakub Jelinek <jakub@redhat.com>
3852 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3853 if used with general-regs-only.
3854 (arm_conditional_register_usage): Don't add non-general regs if
3856 (arm_valid_target_attribute_rec): Handle general-regs-only.
3857 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3859 (TARGET_HARD_FLOAT_SUB): Define.
3860 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3861 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3862 (TARGET_REALLY_IWMMXT2): Likewise.
3863 * config/arm/arm.opt: Add -mgeneral-regs-only.
3864 * doc/extend.texi: Document ARM general-regs-only target.
3865 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3867 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3869 PR tree-optimization/90078
3870 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3871 checks for infinite_cost overflow.
3873 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3875 PR tree-optimization/90021
3876 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3877 and check univariate against it.
3878 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3879 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3881 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3885 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3888 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3891 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3893 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3895 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3897 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3898 names using operand format, rather than hard-wired.
3899 (speculation_barrier): Likewise.
3901 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
3903 PR tree-optimization/88055
3904 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
3905 (gen_one_condition): Use it if !HONOR_NANS.
3907 2019-04-19 Jakub Jelinek <jakub@redhat.com>
3910 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
3911 assign_temp instead of gen_reg_rtx.
3913 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
3915 PR translation/90118
3916 * config/aarch64/aarch64.c (aarch64_override_options_internal):
3917 Add missing space before %<.
3919 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
3921 PR rtl-optimization/87871
3922 * ira-lives.c (make_object_dead): Don't add conflicts to
3923 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
3925 2019-04-18 Martin Sebor <msebor@redhat.com>
3928 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
3929 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
3930 assuming type size fits in SHWI.
3932 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
3935 * ipa-inline.c (flatten_function): New parameter UPDATE.
3936 (ipa_inline, early_inliner): Use it.
3938 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3940 * fold-const.c (int_const_binop): Return early on failure.
3942 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
3945 * combine.c (force_int_to_mode): Cast the argument rather than
3946 the result of known_alignment.
3947 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
3949 2019-04-18 Richard Biener <rguenther@suse.de>
3952 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
3954 (remove_forwarder_block): ... here.
3955 (remove_forwarder_block_with_phi): Also move debug stmts here.
3957 2019-04-18 Jakub Jelinek <jakub@redhat.com>
3959 PR translation/79183
3960 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
3961 inform where appropriate.
3963 2019-04-18 Richard Biener <rguenther@suse.de>
3965 * tree.c (get_qualified_type): Put found type variants at the
3966 head of the variant list.
3968 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3970 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
3972 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
3975 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
3976 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
3977 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
3978 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
3979 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
3981 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
3983 * ira-conflicts.c (print_allocno_conflicts): Always print something,
3984 even for allocno's with no conflicts.
3985 (print_conflicts): Print an extra newline.
3987 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
3989 * auto-inc-dec.c (attempt_change): Set the alignment of the
3990 temporary memory to that of the original.
3992 2019-04-17 Joao Moreira <jmoreira@suse.de>
3994 * targhooks.c (default_print_patchable_function_entry): Emit
3995 __patchable_function_entries section with writable flags to allow
3996 relocation resolution.
3998 2019-04-17 Jonny Grant <jg@jguk.org>
4000 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
4002 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4005 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
4008 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
4010 * config/arc/arc.c (arc_init): Format diagnostic string.
4011 (arc_override_options): Likewise.
4012 (check_if_valid_regno_const): Likewise.
4013 (arc_reorg): Likewise.
4015 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4018 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
4020 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
4022 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
4023 (*movdi_update1): Use Pmode.
4024 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
4025 (movdi_<mode>_update_stack): Rename to ...
4026 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
4028 (*movsi_update1): Use Pmode.
4029 (*movsi_update2): Use Pmode.
4030 (movsi_update): Rename to ...
4031 (movsi_<mode>_update): ... this. Use Pmode.
4032 (movsi_update_stack): Fix condition.
4033 (*movhi_update1): Use Pmode. Fix argument to
4034 avoiding_indexed_address_p.
4035 (*movhi_update2): Ditto.
4036 (*movhi_update3): Ditto.
4037 (*movhi_update4): Ditto.
4038 (*movqi_update1): Ditto.
4039 (*movqi_update2): Ditto.
4040 (*movqi_update3): Ditto.
4041 (*movsf_update1, *movdf_update1): Merge, rename to...
4042 (*mov<mode>_update1): This. Use Pmode. Fix argument to
4043 avoiding_indexed_address_p. Add "size" attribute.
4044 (*movsf_update2, *movdf_update2): Merge, rename to...
4045 (*mov<mode>_update2): This. Ditto.
4046 (*movsf_update3): Use Pmode. Fix argument to
4047 avoiding_indexed_address_p.
4048 (*movsf_update4): Ditto.
4049 (allocate_stack): Simplify condition. Adjust pattern names.
4051 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4054 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
4055 whitespace at the start of target attribute string.
4057 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
4060 * config/rs6000/power9.md: Add store forwarding bypass.
4062 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
4065 * valtrack.c (dead_debug_insert_temp): Reset debug references
4066 to the return value of a call being removed.
4068 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4070 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
4071 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
4072 implement target hook.
4073 (arc_memory_move_cost): New function.
4074 (TARGET_REGISTER_MOVE_COST): Define.
4075 (TARGET_MEMORY_MOVE_COST): Likewise.
4076 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
4077 (MEMORY_MOVE_COST): Likewise.
4079 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4081 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
4082 (sibcall_value_insn): Likewise.
4083 * config/arc/constraints.md (Rs5): Remove.
4085 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4087 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4088 for last two fake registers.
4089 (arc_conditional_register_usage): Make sure fake frame and arg
4090 pointer regs are in general regs class.
4091 (FRAME_POINTER_MASK): Remove.
4092 (RETURN_ADDR_MASK): Remove.
4093 (arc_must_save_register): Use hard frame regnum.
4094 (frame_restore_reg): Use hard_frame_pointer_rtx.
4095 (arc_save_callee_saves): Likewise.
4096 (arc_restore_callee_saves): Likewise.
4097 (arc_save_callee_enter): Likewise.
4098 (arc_restore_callee_leave): Likewise.
4099 (arc_save_callee_milli): Likewise.
4100 (arc_eh_return_address_location): Likewise.
4101 (arc_check_multi): Use hard frame regnum.
4102 (arc_can_eliminate): Likewise.
4103 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4104 for register allocator.
4105 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4106 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4107 (FRAME_POINTER_REGNUM): Change it to a fake register.
4108 (HARD_FRAME_POINTER_REGNUM): Defined.
4109 (ARG_POINTER_REGNUM): Change it to a new fake register.
4110 (ELIMINABLE_REGS): Update.
4111 (REGISTER_NAMES): Update names.
4112 * config/arc/arc.md (LP_START): Remove.
4114 (shift_si3_loop): Update pattern.
4116 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4118 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4119 to avoid delay slot scheduling.
4120 (arc_must_save_register): Don't save SP.
4121 * config/arc/arc.md (stack_tie): Remove.
4122 (UNSPEC_ARC_STKTIE): Likewise.
4124 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4125 Shiva Chen <shiva0217@gmail.com>
4127 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4128 code gen with large shift amount.
4130 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4132 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4135 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4138 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4139 print -m64/-mx32/-m32 if it is true.
4140 (ix86_debug_options, ix86_function_specific_print): Pass true as
4141 ADD_ABI_P to ix86_target_string.
4142 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4143 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4144 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4146 PR rtl-optimization/90082
4147 * dce.c (can_delete_call): New function.
4148 (deletable_insn_p, mark_insn): Use it.
4150 PR tree-optimization/90090
4151 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4153 (is_division_by_square): Likewise. Formatting fix.
4155 2019-04-16 Richard Biener <rguenther@suse.de>
4157 PR tree-optimization/56049
4158 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4159 equality check if alias-set zero will prevail.
4161 2019-04-15 Jeff Law <law@redhat.com>
4163 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4164 size and alignment as unsigned.
4166 2019-04-15 Richard Biener <rguenther@suse.de>
4169 * tree-loop-distribution.c (destroy_loop): Preserve correct
4172 2019-04-15 Richard Biener <rguenther@suse.de>
4174 PR tree-optimization/90071
4175 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4176 abnormal operands from def stmts.
4178 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4180 PR rtl-optimization/89794
4181 * combine.c (count_auto_inc): New function.
4182 (try_combine): Count how many auto_inc expressions there were in the
4183 original instructions. Ensure we have the same number in the new
4184 instructions. Remove the code that tried to ensure auto_inc side
4185 effects on i1 and i0 are not lost.
4187 2019-04-15 Richard Biener <rguenther@suse.de>
4190 * tree.h (auto_var_p): Declare.
4191 * tree.c (auto_var_p): New function, split out from ...
4192 (auto_var_in_fn_p): ... here.
4193 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4195 (new_var_info): Initialize it.
4196 (set_uids_in_ptset): Also set the shadow variable uid if required.
4197 (ipa_pta_execute): Postprocess points-to solutions assigning
4198 shadow variable uids for locals that may reach their containing
4199 function recursively.
4200 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4201 assert but instead check whether the points-to solution is
4204 2019-04-15 Martin Jambor <mjambor@suse.cz>
4207 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4210 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4212 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4214 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4215 Kito Cheng <kito.cheng@gmail.com>
4216 Shiva Chen <shiva0217@gmail.com>
4218 * config/nds32/nds32-md-auxiliary.c
4219 (nds32_legitimize_pic_address): Use new PIC pattern.
4220 (nds32_legitimize_tls_address): Use new TLS pattern.
4221 (nds32_output_symrel): New.
4222 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4223 (nds32_alloc_relax_group_id): Ditto.
4224 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4225 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4227 (nds32_group_tls_insn): Ditto.
4228 (nds32_group_float_insns): Ditto.
4229 * config/nds32/nds32.md (tls_le): New.
4232 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4234 * configure: Add nds32 target for dwarf2 debug_line checking.
4235 * configure.ac: Regenerated.
4237 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4240 * ipa-devirt.c (skip_in_fields_list_p): New.
4241 (odr_types_equivalent_p): Use it.
4243 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4246 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4247 instead of strncmp when checking for thumb and arm. Formatting fixes.
4249 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4251 * doc/install.texi: Document --with-target-system-zlib.
4253 2019-04-12 Martin Sebor <msebor@redhat.com>
4259 * targhooks.c (default_vector_alignment): Avoid assuming
4260 argument fits in SHWI.
4261 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4263 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4265 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4267 PR rtl-optimization/89965
4268 * dce.c: Include rtl-iter.h.
4269 (struct check_argument_load_data): New type.
4270 (check_argument_load): New function.
4271 (find_call_stack_args): Check for loads from stack slots still tracked
4272 in sp_bytes and punt if any is found.
4274 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4276 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4278 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4279 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4281 2019-04-12 Martin Liska <mliska@suse.cz>
4284 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4286 (separate_attrs): Handle multiple 'default's.
4287 (expand_target_clones): Rework error handling code.
4289 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4292 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4293 mode of vector rather than mode of destination for move instruction.
4294 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4295 Use QI inner mode with V16QI vector mode.
4297 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4300 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4301 "invalid %%t operand" in output_operand_lossage message.
4303 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4305 * config/s390/predicates.md (permute_pattern_operand): New
4307 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4308 operand for the permute pattern.
4309 ("*vec_perm<mode>"): New insn definition.
4310 ("bswap<mode>"): Generate the permute pattern operand in the
4311 expander and perform the operand reloads for pre arch13 level
4313 ("*bswap<mode>_emu"): Rename to ...
4314 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4315 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4316 Add the USE operand for the permute pattern.
4317 ("*vec_set_bswap_vec<mode>"): Likewise.
4319 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4322 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4323 and gcc_unreachable if it fails, just call tree_to_uhwi which
4324 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4325 Start warning message with a lower-case letter. Formatting fixes.
4327 PR rtl-optimization/90026
4328 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4329 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4330 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4331 in cfglayout mode, use emit_barrier_after_bb.
4333 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4335 PR rtl-optimization/87763
4336 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4339 2019-04-11 Tom de Vries <tdevries@suse.de>
4341 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4342 max macro using statement expression.
4344 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4346 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4347 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4348 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4349 read_only_private_data_section using xcoff_private_rodata_section_name.
4350 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4352 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4355 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4357 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4359 PR rtl-optimization/89965
4360 * dce.c (sp_based_mem_offset): New function.
4361 (find_call_stack_args): Use sp_based_mem_offset.
4363 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4365 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4367 2019-04-11 Richard Biener <rguenther@suse.de>
4369 PR tree-optimization/90020
4370 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4371 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4372 * tree-ssa-pre.c (compute_avail): Use it to not put
4373 possibly trapping references after a call that might not
4374 return into EXP_GEN.
4375 * gcse.c (compute_hash_table_work): Do not elide
4376 marking a block containing a call if the call might not
4379 2019-04-11 Richard Biener <rguenther@suse.de>
4381 PR tree-optimization/90018
4382 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4383 Test both SLP and interleaving variants.
4385 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4387 * config/s390/8561.md: New file.
4388 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4389 Add arch13 cpu model.
4390 * config/s390/s390-opts.h (enum processor_type): Likewise.
4391 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4392 (s390_get_unit_mask): Likewise.
4393 (s390_is_fpd): Likewise.
4394 (s390_is_fxd): Likewise.
4395 * config/s390/s390.h (s390_tune_attr): Likewise.
4396 * config/s390/s390.md: Include arch13 pipeline description.
4397 * config/s390/s390.opt: Add arch13.
4399 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4401 PR rtl-optimization/87763
4402 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4404 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4406 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4408 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4409 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4410 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4411 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4413 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4415 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4416 "Although" in -fipa-icf documentation.
4418 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4419 of using multiple -g options.
4421 2019-04-10 Martin Liska <mliska@suse.cz>
4423 PR gcov-profile/89959
4424 * doc/gcov.texi: Make documentation of -x option
4427 2019-04-10 Richard Biener <rguenther@suse.de>
4429 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4431 (DR_GROUP_SAME_DR_STMT): Remove.
4432 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4433 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4434 replace with assert.
4435 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4436 (vect_record_grouped_load_vectors): Remove unreachable code.
4438 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4441 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4442 obsolete reference to N.
4444 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4447 * expr.c (store_expr): Set properly size on the MEM passed to
4451 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4452 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4453 translation is needed, and when translation is needed, only append
4454 ... if the string length is hostsz or more bytes long. Avoid using
4457 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4460 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4461 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4463 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4464 differences directly.
4465 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4467 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4469 PR translation/90011
4470 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4472 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4474 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4475 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4476 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4477 trailing space from -gsplit-dwarf diagnostics.
4479 PR tree-optimization/89998
4480 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4481 instead of integer_type_node if possible, don't add ranges if return
4482 type is not compatible with int.
4483 * gimple-fold.c (gimple_fold_builtin_sprintf,
4484 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4487 2019-04-09 Martin Liska <mliska@suse.cz>
4489 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4490 * doc/install.texi: Document the new config.
4492 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4494 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4495 use gimple_expr_type for load and store calls. Skip over the
4496 condition argument in a conditional internal function.
4497 Protect use of TREE_INT_CST_LOW.
4499 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4502 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4503 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4504 trailing period from it too.
4506 2019-04-08 wu yuan <wuyuan5@huawei.com>
4508 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4509 * config/aarch64/aarch64.md : Add "tsv110.md"
4510 * config/aarch64/tsv110.md: New file.
4512 2019-04-08 Richard Biener <rguenther@suse.de>
4514 PR tree-optimization/90006
4515 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4518 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4521 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4523 (fma_root_node): Likewise.
4524 (func_fma_steering): Likewise.
4526 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4528 PR rtl-optimization/89865
4529 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4531 PR rtl-optimization/89865
4532 * config/i386/i386.md
4533 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4534 numbers not to clash with the additional operands[4].
4535 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4536 with extra register copy in the middle.
4538 2019-04-08 Martin Liska <mliska@suse.cz>
4540 PR gcov-profile/89961
4541 * doc/gcov.texi: Document data_file.
4542 * gcov.c (generate_results): Add data_info into JSON output.
4544 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4546 PR tree-optimization/89725
4547 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4548 loop's chrec as invariant symbol.
4549 * tree-chrec.h (chrec_contains_symbols): New parameter.
4550 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4551 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4552 function of loops not in DDR's loop_nest.
4553 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4555 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4558 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4561 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4564 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4565 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4567 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4569 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4570 targetm.fixed_condition_code_regs.
4572 2019-04-05 Richard Biener <rguenther@suse.de>
4576 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4577 debug bind stmts but reset them if they are not valid at the
4580 2019-04-05 Martin Liska <mliska@suse.cz>
4582 PR translation/89936
4583 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4584 order to wrap keywords or arguments.
4585 * collect2.c (main): Likewise.
4586 (scan_prog_file): Likewise.
4587 (scan_libraries): Likewise.
4588 * common/config/riscv/riscv-common.c
4589 (riscv_subset_list::parsing_subset_version): Likewise.
4590 (riscv_subset_list::parse_std_ext): Likewise.
4591 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4593 * config/arm/arm.c (arm_option_override): Likewise.
4594 * config/cris/cris.c (cris_print_operand): Likewise.
4595 * config/darwin-c.c (darwin_pragma_options): Likewise.
4596 (darwin_pragma_unused): Likewise.
4597 (darwin_pragma_ms_struct): Likewise.
4598 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4599 * config/i386/i386.c (print_reg): Likewise.
4600 (ix86_print_operand): Likewise.
4601 * config/i386/xm-djgpp.h: Likewise.
4602 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4603 * config/m32c/m32c.c (m32c_option_override): Likewise.
4604 * config/msp430/msp430.c (msp430_option_override): Likewise.
4605 * config/nds32/nds32.c (nds32_option_override): Likewise.
4606 * config/nvptx/mkoffload.c (main): Likewise.
4607 * config/rx/rx.c (rx_print_operand): Likewise.
4608 (valid_psw_flag): Likewise.
4609 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4610 (vms_pragma_nomember_alignment): Likewise.
4611 (vms_pragma_extern_model): Likewise.
4612 * lto-wrapper.c (compile_offload_image): Likewise.
4613 * omp-offload.c (oacc_parse_default_dims): Likewise.
4614 * symtab.c (symtab_node::verify_base): Likewise.
4615 * tlink.c (recompile_files): Likewise.
4616 (start_tweaking): Likewise.
4617 * tree-profile.c (parse_profile_filter): Likewise.
4619 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4621 PR tree-optimization/89956
4622 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4623 multiple negates of the same value.
4625 2019-04-04 Martin Sebor <msebor@redhat.com>
4629 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4630 have the same precision since the function crashes otherwise.
4631 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4632 has non-zero arguments.
4634 2019-04-04 Martin Sebor <msebor@redhat.com>
4637 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4638 out if the number of arguments is less than expected.
4640 2019-04-04 Jeff Law <law@redhat.com>
4642 PR rtl-optimization/89399
4643 * ree.c (combine_set_extension): Use single_set rather than
4644 digging into PATTERN for items on the candidate list.
4645 (combine_reaching_defs): Likewise.
4647 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4649 PR rtl-optimization/46590
4650 * loop-invariant.c (find_defs): Move df_remove_problem and
4651 df_process_deferred_rescans to move_invariants.
4652 Move df_live_add_problem and df_live_set_all_dirty calls
4654 (move_invariants): Likewise.
4655 (move_loop_invariants): Likewise, making the df_live calls
4656 conditional on -O. Remove the problem again if we added it
4659 2019-04-03 qing zhao <qing.zhao@oracle.com>
4661 PR tree-optimization/89730
4662 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4663 -flive-patching=inline-only-static.
4664 (can_inline_edge_by_limits_p): Add the checking for
4665 -flive-patching=inline-only-static and grant always_inline
4666 even when -flive-patching=inline-only-static is specified.
4668 2019-04-03 Jeff Law <law@redhat.com>
4670 PR rtl-optimization/81025
4671 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4673 2019-04-03 Richard Biener <rguenther@suse.de>
4675 PR tree-optimization/84101
4676 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4677 regs.h for hard_regno_nregs.
4678 (cfun_returns): New helper.
4679 (vect_model_store_cost): When vectorizing a store to a decl
4680 we return and the function ABI returns in a multi-reg location
4681 account for the possible spilling that will happen.
4683 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4685 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4686 displacement addresses for vector mode operands.
4688 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4690 * config/arc/arc.c (GMASK_LEN): Define.
4691 (arc_restore_callee_saves): Restore first blink when
4694 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4696 * doc/extend.texi: Add deprecated comment on sign-return-address
4697 function attribute and add mbranch-protection.
4698 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4700 2019-04-03 Richard Biener <rguenther@suse.de>
4703 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4704 the all target phony.
4706 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4710 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4711 Return false for variable DImode shifts.
4712 (dimode_scalar_chain::compute_convert_gain): Do not handle
4713 register count operand in variable DImode shifts.
4714 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4715 count argument of a variable shift instruction to a vector register.
4716 (dimode_scalar_chain::convert_reg): Remove support to convert
4717 count argument of a variable shift instruction.
4719 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4721 PR rtl-optimization/84206
4722 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4723 iterating over loop headers.
4725 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4727 PR rtl-optimization/85876
4728 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4729 beyond the original fence.
4731 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4733 * config.gcc: Mark spu* targets as deprecated/obsolete.
4735 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4737 * config/s390/s390-builtin-types.def: New builtin function type
4738 definitions. Remove unused types.
4739 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4740 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4741 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4742 overloaded builtins.
4743 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4744 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4745 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4746 (vec_double, vec_signed, vec_unsigned): Define to use the new
4747 overloaded builtins.
4748 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4751 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4753 * config/s390/s390-builtin-types.def: New builtin function type
4755 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4756 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4757 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4758 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4759 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4760 constant definitions.
4761 * config/s390/vecintrin.h (vec_search_string_cc)
4762 (vec_search_string_until_zero_cc): New builtin name definitions.
4763 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4765 ("vec_vstrs<mode>"): New insn definition.
4767 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4769 * config/s390/s390-builtin-types.def: Add new builtin function
4771 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4772 New overloaded builtins.
4773 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4775 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4776 (UNSPEC_VEC_SLDBYTE): ... this.
4777 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4778 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4780 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4781 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4782 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4784 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4786 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4787 New insn definition.
4788 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4789 * config/s390/vector.md (V_HW_HSD): ... here.
4791 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4793 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4794 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4795 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4796 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4797 New insn definitions.
4799 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4801 * config/s390/s390-builtin-types.def: Add new builtin function type.
4802 * config/s390/s390-builtins.def: Add overloaded builtin
4803 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4804 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4805 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4806 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4807 ("eltswap<mode>"): New expander.
4808 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4811 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4813 * config/s390/s390-builtin-types.def: Add new builtin function types.
4814 * config/s390/s390-builtins.def: Add overloaded builtin
4815 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4817 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4818 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4819 ("bswap<mode>"): New expander.
4820 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4822 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4824 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4825 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4826 vector builtin version number in __VEC__.
4828 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4830 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4832 (SFSI): New mode attribute.
4833 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4834 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4836 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4837 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4838 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4839 ("floatsi<mode>2"): Add wcefb instruction.
4841 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4843 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4844 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4846 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4847 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4848 support 32 bit fp-int conversions. Rename to ...
4849 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4850 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4851 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4852 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4855 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4857 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4858 if-then-else constructs if we can use the select instruction.
4859 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4861 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4863 * config/s390/s390.md ("*popcountdi_arch13_cc")
4864 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4866 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4867 Append _z196 to make it ...
4868 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4869 ("popcounthi2_z196"): ... this.
4870 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4871 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4873 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4875 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4876 certain compares for arch13 in order to make use of the condition
4877 code result produced by the new instructions.
4878 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4879 nxrk, and nxgrk instruction patterns.
4880 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4881 (inv_no): Add new code iterator together with some attributes.
4882 ("*andc_split_<mode>"): Disable splitter for arch13.
4883 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4884 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4885 ("*<ANDOR:bitops_name>c<GPR:mode>")
4886 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4887 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4888 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4889 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4891 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4893 * common/config/s390/s390-common.c (processor_flags_table): New
4895 * config.gcc: Support arch13 with the --with-arch= configure flag.
4896 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4897 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4898 * config/s390/s390.c (s390_get_sched_attrmask)
4899 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4900 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4901 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
4902 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
4903 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
4905 * config/s390/s390.opt: Support arch13 as processor type in
4906 command line options.
4908 2019-04-02 Martin Liska <mliska@suse.cz>
4910 PR translation/89912
4911 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
4912 Fix param description of graphite-max-arrays-per-scop.
4914 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
4916 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
4917 (ASAN_CC1_SPEC): Use it in 64-bit mode.
4918 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
4920 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4922 PR rtl-optimization/85412
4923 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
4924 sel_sched_region_1, not after.
4926 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4928 PR rtl-optimization/86928
4929 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
4930 compute_live if necessary.
4931 (sel_redirect_edge_and_branch): Likewise.
4933 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
4935 PR rtl-optimization/89865
4936 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
4937 register if it is a part of small class.
4939 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
4941 PR rtl-optimization/87273
4942 * sel-sched-ir.c (merge_fences): Remove assert.
4944 2019-04-01 Richard Biener <rguenther@suse.de>
4946 PR tree-optimization/46590
4947 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
4948 (dom_walker::m_reachability): Add in place of...
4949 (dom_walker::m_skip_unreachable_blocks): ...this.
4950 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
4951 Move complex initialization ...
4952 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
4953 lazily and initialize edge flags on each invocation.
4954 (dom_walker::bb_reachable): Use m_reachability.
4956 2019-04-01 Martin Liska <mliska@suse.cz>
4959 * opt-suggestions.c (option_proposer::build_option_suggestions):
4960 Add variant without any argument in order to provide better
4963 2019-04-01 Richard Biener <rguenther@suse.de>
4966 * gimple.c: Include langhooks.h.
4967 (gimple_get_alias_set): Treat enumeral types as the underlying
4970 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
4971 Eric Botcazou <ebotcazou@adacore.com>
4973 PR rtl-optimization/89862
4974 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
4975 that operates on the full registers for WORD_REGISTER_OPERATIONS
4978 2019-03-29 Jim Wilson <jimw@sifive.com>
4980 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
4981 Clear MASK_RVC and then set if C subset supported.
4983 2019-03-29 Jakub Jelinek <jakub@redhat.com>
4986 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
4987 non-addressable complit into its initializer if it is volatile.
4989 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
4991 * opts-common.c (integral_argument): Set errno properly in one case.
4993 2019-03-29 Martin Liska <mliska@suse.cz>
4995 * doc/invoke.texi: Remove -Wchkp from documentation.
4997 2019-03-29 Martin Liska <mliska@suse.cz>
4999 * dbgcnt.c (print_limit_reach): New function.
5002 2019-03-29 Martin Liska <mliska@suse.cz>
5004 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
5005 (dbg_cnt_process_opt): Parse first tokens aas
5006 dbg_cnt_process_single_pair is also using strtok.
5008 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5010 PR rtl-optimization/87485
5011 * function.c (expand_function_end): Move stack_protect_epilogue
5012 before loading of return value into hard register(s).
5014 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5017 * tree-inline.h (struct copy_body_data): Add
5018 dont_remap_vla_if_no_change flag.
5019 * tree-inline.c (remap_type_3, remap_type_2): New functions.
5020 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
5021 and remap_type_2 returns false.
5022 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
5023 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
5024 only from where it is copied to nested contexts.
5026 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5029 * config/i386/i386.md (RMW operation with LEA peephole):
5030 Use LEAMODE mode attribute instead of SWI mode iterator for
5033 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5036 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5037 Also process XEXP (src, 0) of a shift insn.
5039 2019-03-28 David Malcolm <dmalcolm@redhat.com>
5042 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
5043 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
5045 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5047 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
5049 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
5050 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
5051 immediately after first one with df_analyze in between, but rather
5052 process all bbs, queueing ones that need second pass in a worklist,
5053 df_analyze, process queued debug insn changes and if second pass is
5054 needed, process bbs from worklist, df_analyze, process queued debug
5057 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
5058 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
5059 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
5061 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
5064 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
5067 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
5070 * config/i386/i386.c (ix86_function_value_1): Call the newly added
5071 function for 32-bit MS_ABI.
5072 (function_value_ms_32): New function.
5074 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
5076 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
5077 (movdi): Call gen_movdi_symbol_save_scc.
5078 (gen_movdi_symbol_save_scc): New insn and split.
5080 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
5082 PR rtl-optimization/89313
5083 * function.c (matching_constraint_num): New static function.
5084 (match_asm_constraints_1): Use it. Fixup white space and comment.
5085 Don't replace inputs with non-matching constraints which conflict
5086 with early clobber outputs.
5088 2019-03-27 Jeff Law <law@redhat.com>
5091 PR rtl-optimization/87761
5092 PR rtl-optimization/89826
5093 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
5095 (pass_cprop_hardreg::execute): Call df_analyze after adding the
5096 note problem to get REG_DEAD/REG_UNUSED notes updated.
5098 2019-03-27 Richard Biener <rguenther@suse.de>
5100 PR tree-optimization/89463
5101 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5102 queue edges to remove.
5103 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5104 dead stmts. Delay edge removal until PHIs are removed to
5105 make debug-stmt creation not confused by seemingly degenerate
5108 2019-03-27 Alan Modra <amodra@gmail.com>
5110 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5112 * config/rs6000/darwin.h: Likewise.
5113 * config/rs6000/rs6000.c: Likewise.
5115 2019-03-27 Alan Modra <amodra@gmail.com>
5117 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5118 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5120 2019-03-26 Andrew Waterman <andrew@sifive.com>
5121 Jim Wilson <jimw@sifive.com>
5123 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5124 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5125 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5126 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5127 (generic_alu): Add auipc to type list.
5128 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5129 (riscv_microarchitecture): Declare.
5130 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5131 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5133 (riscv_microarchitecture): New.
5134 (sifive_7_tune_info): New.
5135 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5136 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5138 (riscv_store_data_bypass_p): New.
5139 (riscv_option_override): Set riscv_microarchitecture from
5140 cpu->microarchitecture.
5141 * config/riscv/riscv.md: Include sifive-7.md.
5144 (auipc<mode>): Change type to auipc.
5145 (restore_stack_nonlocal): New.
5146 * config/riscv/sifive-7.md: New.
5147 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5149 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5152 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5153 Also process XEXP (src, 0) of a shift insn.
5155 2019-03-26 Richard Biener <rguenther@suse.de>
5157 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5158 (copy_debug_stmt): Likewise.
5159 (expand_call_inline): Likewise.
5160 (copy_bb): Avoid redundant lookup & set of gimple_block.
5161 * gimple-low.c (lower_gimple_return): Likewise.
5162 (lower_builtin_setjmp): Likewise.
5164 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5166 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5167 is constant 0, turn into static const data member initialized to false.
5168 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5169 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5171 2019-03-26 Jason Merrill <jason@redhat.com>
5172 Jakub Jelinek <jakub@redhat.com>
5174 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5176 (mem_alloc_description::release_object_overhead): Fix comment typos.
5177 * hash-table.h (hash_table::~hash_table): Call
5178 release_instance_overhead only if m_entries is non-NULL, otherwise
5179 call unregister_descriptor.
5181 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5183 PR tree-optimization/81740
5184 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5185 In case of outer loop vectorization, check for backward dependence
5186 at the inner loop if outer loop dependence is reversed.
5188 2019-03-26 Alan Modra <amodra@gmail.com>
5190 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5191 rs6000_vector_mem init. Correct wI and wJ comment.
5193 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5195 PR rtl-optimization/88347
5196 PR rtl-optimization/88423
5197 * sched-deps.c (sched_analyze_insn): Take into account that for
5198 tablejumps the barrier appears after a label and a jump_table_data.
5200 2019-03-25 Martin Sebor <msebor@redhat.com>
5203 * c-common.c (check_user_alignment): Rename local. Correct maximum
5204 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5205 convert it to UHWI when it fits.
5207 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5210 * dwarf2out.c (premark_used_variables): New function.
5211 (prune_unused_types_walk): Do not mark not premarked external
5213 (prune_unused_types): Call premark_used_variables.
5215 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5217 PR rtl-optimization/89676
5218 * lra-constraints.c (curr_insn_transform): Do match reload for
5219 early clobbers when the match was successful only for different
5222 2019-03-25 Martin Sebor <msebor@redhat.com>
5224 * doc/extend.texi (Common Type Attributes): Document vector_size.
5225 (Common Variable Attributes): Mention size constraint. Correct
5227 (Vector Extensions): Use @dfn when defining bas type. Clarify
5228 base type and size constraints.
5230 2019-03-25 Richard Biener <rguenther@suse.de>
5232 PR tree-optimization/89789
5233 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5234 changes from non-undefined back to undefined.
5236 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5238 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5239 heap string and a gc string, but since this variable is unknown to
5240 ggc the gc string might get reused and corrupted. Fixed by always
5241 using a heap string.
5243 2019-03-25 Richard Biener <rguenther@suse.de>
5245 PR tree-optimization/89779
5246 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5247 to remove IV defs, delay actual removal.
5248 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5249 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5250 very end, properly also reset loop control IV information.
5252 2019-03-25 Richard Biener <rguenther@suse.de>
5254 PR tree-optimization/89802
5255 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5256 move EH data to folded stmt.
5258 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5260 * config/s390/s390-builtin-types.def: Remove few unused types and
5261 fix sort order for others.
5263 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5265 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5266 expected and found types with -mdebug during builtin matching.
5268 2019-03-25 Richard Biener <rguenther@suse.de>
5271 * fold-const.c (operand_equal_p): Revert last change with
5274 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5276 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5277 notes for the result of the __tls_get_addr calls.
5278 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5280 2019-03-24 Jeff Law <law@redhat.com>
5282 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5284 PR rtl-optimization/87761
5285 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5286 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5288 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5289 rescans. Reprocess blocks as needed, calling df_analyze before
5290 reprocessing. Always call df_analyze before fixing up debug bind
5293 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5295 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5298 2019-03-22 Andrew Pinski <apinski@marvell.com>
5300 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5301 attrribute for uxtw.
5303 2019-03-26 Jeff Law <law@redhat.com>
5305 PR rtl-optimization/87761
5306 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5307 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5308 (mips_split_move): Accept new INSN argument. Try to forward SRC
5309 into the next instruction.
5310 (mips_split_move_insn): Pass INSN through to mips_split_move.
5312 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5314 PR rtl-optimization/89676
5315 * lra-constraints.c (curr_insn_transform): Do match reload for
5316 early clobbers even if the match was successful.
5318 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5321 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5323 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5325 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5327 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5329 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5330 <avx512>_fmsub_<mode>_mask3<round_name>,
5331 <avx512>_fnmadd_<mode>_mask3<round_name>,
5332 <avx512>_fnmsub_<mode>_mask3<round_name>,
5333 avx512f_vmfmadd_<mode>_mask3<round_name>,
5334 avx512f_vmfmsub_<mode>_mask3<round_name>,
5335 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5336 instead of register_operand and %v instead of v for match_operand 1.
5337 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5338 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5339 <round_nimm_predicate> instead of register_operand and %v instead of v
5340 for match_operand 1.
5342 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5343 <avx512>_fmadd_<mode>_mask3<round_name>,
5344 <avx512>_fmsub_<mode>_mask<round_name>,
5345 <avx512>_fmsub_<mode>_mask3<round_name>,
5346 <avx512>_fnmadd_<mode>_mask<round_name>,
5347 <avx512>_fnmadd_<mode>_mask3<round_name>,
5348 <avx512>_fnmsub_<mode>_mask<round_name>,
5349 <avx512>_fnmsub_<mode>_mask3<round_name>,
5350 <avx512>_fmaddsub_<mode>_mask<round_name>,
5351 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5352 <avx512>_fmsubadd_<mode>_mask<round_name>,
5353 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5354 <round_nimm_predicate> instead of nonimmediate_operand.
5355 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5356 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5357 Use register_operand instead of <round_nimm_predicate> for the
5358 operand that needs to match output.
5359 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5360 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5361 Likewise. Formatting fixes.
5364 * config/i386/i386.c (enum ix86_builtins): Remove
5365 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5366 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5367 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5368 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5369 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5370 __builtin_ia32_vfmsubss3_mask3): New builtins.
5371 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5372 avx512f_vmfmadd_<mode>_mask3<round_name>,
5373 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5374 *avx512f_vmfmsub_<mode>_mask<round_name>,
5375 avx512f_vmfmsub_<mode>_mask3<round_name>,
5376 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5377 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5378 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5379 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5380 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5381 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5382 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5383 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5384 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5385 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5386 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5387 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5388 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5389 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5390 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5391 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5392 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5393 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5394 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5395 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5396 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5397 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5398 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5399 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5400 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5401 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5402 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5403 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5405 2019-03-21 Martin Sebor <msebor@redhat.com>
5407 PR tree-optimization/89350
5408 * builtins.c (compute_objsize): Also ignore offsets whose upper
5410 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5411 (builtin_memref::builtin_memref): Initialize new member.
5412 Allow EXPR to be null.
5413 (builtin_memref::extend_offset_range): Replace local with a member.
5414 Avoid assuming pointer offsets are unsigned.
5415 (builtin_memref::set_base_and_offset): Determine base object
5416 before computing offset range.
5417 (builtin_access::builtin_access): Handle memset.
5418 (builtin_access::generic_overlap): Replace local with a member.
5419 (builtin_access::strcat_overlap): Same.
5420 (builtin_access::overlap): Same.
5421 (maybe_diag_overlap): Same.
5422 (maybe_diag_access_bounds): Same.
5423 (wrestrict_dom_walker::check_call): Handle memset.
5424 (check_bounds_or_overlap): Same.
5426 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5427 Jakub Jelinek <jakub@redhat.com>
5430 * tree.c (fld_type_variant, fld_incomplete_type_of,
5431 fld_process_array_type): Call fld->pset.add and don't call
5432 add_tree_to_fld_list if it returns true.
5433 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5434 non-marked types from TYPE_NEXT_VARIANT list.
5435 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5437 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5439 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5440 to false, if true, don't alloc_entries during construction, but defer
5441 it to the first method that needs m_entries allocated.
5442 (hash_table::hash_table, hash_table::~hash_table,
5443 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5444 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5445 hash_table::clear_slot, hash_table::traverse_noresize,
5446 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5447 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5449 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5450 NO_INSERT instead of find_with_hash.
5451 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5452 hash_set::m_table): Add Lazy to template params of hash_table.
5453 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5454 * attribs.c (test_attribute_exclusions): Likewise.
5455 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5456 hash_set. Add tests for hash_set with Lazy = true.
5458 2019-03-21 Richard Biener <rguenther@suse.de>
5460 PR tree-optimization/89779
5461 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5462 checks with respect to released SSA names now having error_mark_node
5464 * fold-const.c (operand_equal_p): Likewise.
5466 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5469 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5471 (s390_optimize_register_info): Use global_not_special_regno_p to
5472 check for global regs.
5474 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5477 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5478 update this_alternative nor this_alternative_set.
5480 2019-03-19 Jim Wilson <jimw@sifive.com>
5483 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5484 align, size, offset. Use them to handle a BLKmode reference. Update
5486 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5488 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5490 PR rtl-optimization/89768
5491 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5493 (unroll_loop_runtime_iterations): Likewise.
5495 2019-03-19 Martin Sebor <msebor@redhat.com>
5497 PR tree-optimization/89644
5498 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5499 rather than endptr as an indicator of nul-termination.
5501 PR tree-optimization/89644
5502 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5503 arrays in determining sequence sizes in strncpy and stpncpy.
5505 2019-03-19 Martin Liska <mliska@suse.cz>
5508 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5509 unlikely_edges if there's an edge that belongs to both these sets.
5511 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5514 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5515 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5516 go via a stack temporary.
5518 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5521 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5522 instead of gen_rtx_SUBREG.
5523 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5525 2019-03-19 Richard Biener <rguenther@suse.de>
5528 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5530 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5534 * tree.c (free_lang_data_in_decl): Do not free context of C++
5537 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5540 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5541 subs for the first alternative except when operands[3] is 1.
5544 * gimplify.c (gimplify_asm_expr): For output argument with
5545 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5548 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5550 PR rtl-optimization/89753
5551 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5552 explicit unrolling factor even more robust.
5554 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5557 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5558 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5559 signed zeros, do another copysign after the compensation.
5561 2019-03-18 Martin Sebor <msebor@redhat.com>
5563 PR tree-optimization/89720
5564 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5565 more conservatively, the same as anti-range.
5567 2019-03-18 Richard Biener <rguenther@suse.de>
5570 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5571 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5572 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5573 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5575 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5577 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5578 Extend queue to 1024 entries.
5579 Add "consumed" field.
5580 (gomp_print_output): Remove print_index parameter.
5581 Add final parameter.
5582 Change limit to unsigned.
5583 Use consumed field to implement circular buffer.
5584 Detect interrupted print in final pass.
5585 Flush output at the end.
5586 (run): Update gomp_print_output usage.
5587 (main): Initialize kernargs->output_data.consumed.
5589 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5591 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5592 calculation of the minimum number of scalar iterations for
5593 fully-predicated loops.
5595 2019-03-18 Martin Jambor <mjambor@suse.cz>
5597 PR tree-optimization/89546
5598 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5599 any propagation to its children took place.
5601 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5604 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5605 parameter, and make use of it.
5606 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5608 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5610 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5611 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5612 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5613 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5614 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5615 match what the ops is doing.
5616 (push_multi_fp_blink): Likewise.
5617 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5618 compiling for size and elf target.
5619 (arc_save_callee_enter): Adjust note to match what enter/leave
5622 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5624 * config/arc/arc.md (tst_movb): Fix constraint.
5626 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5628 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5630 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5632 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5633 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5634 reg_alloc_order references.
5635 (size_alloc_order): Define.
5636 (arc_adjust_reg_alloc_order): New function.
5637 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5639 (ADJUST_REG_ALLOC_ORDER): Define.
5640 (HONOR_REG_ALLOC_ORDER): Likewise.
5642 2019-03-18 Richard Biener <rguenther@suse.de>
5645 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5646 loads and stores a bit more.
5648 2019-03-18 Richard Biener <rguenther@suse.de>
5651 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5652 load pessimization to stores as well.
5654 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5657 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5658 successor, use NULL as its av set.
5660 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5662 PR rtl-optimization/89721
5663 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5665 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5668 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5669 When handling vec_extract, use modular arithmetic to allow
5670 constant selectors greater than vector length.
5671 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5672 V1TImode vectors to have constant selector values greater than 0.
5673 Use modular arithmetic to compute vector index.
5674 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5675 index for in-memory vectors. Correct code generation for
5676 in-register vectors.
5677 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5680 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5684 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5687 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5690 * tree.c (inchash::add_expr): Strip any location wrappers.
5691 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5692 after hash verification.
5695 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5696 SIGN_EXTEND and ZERO_EXTEND.
5698 2019-03-14 Jason Merrill <jason@redhat.com>
5699 Jakub Jelinek <jakub@redhat.com>
5701 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5702 than if is_empty (*slot).
5703 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5704 existing elt and for elt removal.
5705 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5706 of already removed elt.
5708 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5711 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5714 2019-03-14 Martin Liska <mliska@suse.cz>
5717 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5719 2019-03-14 Richard Biener <rguenther@suse.de>
5722 * config/i386/i386.c (make_resolver_func): Properly set
5723 DECL_CONTEXT on the RESULT_DECL.
5724 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5726 2019-03-14 Richard Biener <rguenther@suse.de>
5728 * gimple-pretty-print.c: Include cfgloop.h.
5729 (dump_gimple_phi): Adjust.
5730 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5731 (pp_cfg_jump): Adjust.
5732 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5733 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5734 (lower_phi_internal_fn): Remove.
5735 (verify_gimple_call): Remove IFN_PHI special-casing.
5736 (dump_function_to_file): Dump IL state.
5737 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5738 done to deal with PHI nodes being present in non-SSA state.
5740 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5743 * multiple_target.c (create_dispatcher_calls): Change
5744 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5745 In the node->iterate_referring loop, push *ref rather than ref, call
5746 ref->remove_reference () and always pass 0 to iterate_referring.
5748 PR rtl-optimization/89679
5749 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5750 would contain a paradoxical SUBREG.
5752 2019-03-14 Richard Biener <rguenther@suse.de>
5754 PR tree-optimization/89710
5755 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5758 2019-03-14 Martin Liska <mliska@suse.cz>
5760 * coverage.c (coverage_begin_function): Stream also
5762 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5763 documentation about function declaration location.
5764 * gcov-dump.c (tag_function): Print whole range
5765 of function declaration.
5766 * gcov.c (struct function_info): Add end_column field.
5767 (function_info::function_info): Initialize it.
5768 (output_json_intermediate_file): Output {start,end}_column
5770 (read_graph_file): Read end_column.
5772 2019-03-14 Richard Biener <rguenther@suse.de>
5775 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5776 that the access types are similar.
5778 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5780 PR tree-optimization/89703
5781 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5782 aren't compatible also with builtin_decl_explicit. Check pure
5783 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5784 and BUILT_IN_STPNCPY{,_CHK}.
5786 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5789 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5790 addr32 prefix to VSIB address for X32.
5791 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5793 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5794 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5795 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5796 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5797 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5798 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5799 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5800 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5801 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5802 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5803 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5804 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5805 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5806 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5807 (*avx512f_scatterdi<mode>): Likewise.
5809 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5812 * lra-constraints.c (inherit_in_ebb): Update
5813 potential_reload_hard_regs along with live_hard_regs.
5815 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5818 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5820 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5822 2019-03-13 Martin Sebor <msebor@redhat.com>
5824 PR tree-optimization/89662
5825 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5828 2019-03-13 Richard Biener <rguenther@suse.de>
5831 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5832 throw FP expressions at tree-affine.
5834 2019-03-14 Richard Biener <rguenther@suse.de>
5836 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5837 dump negative integer constants using _Literal (type) -num.
5839 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5841 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5842 nonlocal_value member.
5845 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5846 (ipa_simd_modify_function_body): Handle PHIs.
5848 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5850 * config/s390/s390.c (s390_option_override_internal): Use more
5851 aggressive inlining parameters.
5853 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5855 * config/s390/3906.md: New file.
5856 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5857 (LONGRUNNING_THRESHOLD): Remove.
5858 (MAX_SCHED_MIX_SCORE): Decrease.
5859 (MAX_SCHED_MIX_DISTANCE): Decrease.
5860 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5861 (struct s390_sched_state): New struct to hold scheduling state.
5862 (S390_SCHED_STATE_NORMAL): Remove.
5863 (S390_SCHED_STATE_CRACKED): Remove.
5864 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5865 (s390_get_sched_attrmask): Use new attribute.
5866 (s390_get_unit_mask): Use new units.
5867 (s390_is_fpd): New function.
5868 (s390_is_fxd): New function.
5869 (s390_is_longrunning): New function.
5870 (s390_sched_score): Use new functions.
5871 (s390_sched_reorder): Likewise.
5872 (s390_sched_variable_issue): Rework and use new functions.
5873 (s390_sched_init): Use new functions.
5874 * config/s390/s390.h (s390_tune_attr): Add z14.
5875 * config/s390/s390.md: Add z14.
5877 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5879 * config/s390/2964.md: Update pipeline description.
5880 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5881 (LONGRUNNING_THRESHOLD): Remove.
5882 (LATENCY_FACTOR): Remove.
5883 (s390_get_unit_mask): Add unit.
5884 (s390_sched_score): Use fxd/fpd.
5885 (s390_sched_variable_issue): Use fxd/fpd.
5887 2019-03-12 Martin Liska <mliska@suse.cz>
5889 * config/i386/i386.c: Reword an error message.
5891 2019-03-12 Martin Jambor <mjambor@suse.cz>
5893 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5894 terminate with newline.
5896 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5899 * config/s390/s390.md (tabort): Use %wd instead of
5900 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5901 letters and periods.
5902 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
5903 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
5907 * builtins.c (expand_builtin_int_roundingfn,
5908 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
5909 gcc_unreachable if validate_arglist fails.
5911 2019-03-12 Richard Biener <rguenther@suse.de>
5913 PR tree-optimization/89664
5914 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
5915 free the occurance tree after the early out.
5917 2019-03-11 Jakub Jelinek <jakub@redhat.com>
5921 * vr-values.c (vr_values::update_value_range): If
5922 old_vr->varying_p (), don't update it, make new_vr also VARYING
5925 2019-03-11 Martin Liska <mliska@suse.cz>
5927 * config/aarch64/aarch64.c (aarch64_override_options_internal):
5928 Fix double string quoting.
5930 2019-03-11 Martin Liska <mliska@suse.cz>
5932 * collect-utils.c (collect_wait): Wrap apostrophes
5933 in gcc internal format with %'.
5934 * collect2.c (main): Likewise.
5935 (scan_prog_file): Likewise.
5936 (scan_libraries): Likewise.
5937 * config/i386/i386.c (ix86_expand_call): Likewise.
5938 (ix86_handle_interrupt_attribute): Likewise.
5939 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
5940 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
5941 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
5942 * lto-wrapper.c (find_crtoffloadtable): Likewise.
5943 * symtab.c (symtab_node::verify_base): Likewise.
5944 * tree-cfg.c (verify_gimple_label): Likewise.
5945 * tree.c (verify_type_variant): Likewise.
5947 2019-03-11 Martin Liska <mliska@suse.cz>
5949 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
5950 in a string format message and fix GNU coding style.
5951 (expand_builtin_set_thread_pointer): Likewise.
5952 * common/config/aarch64/aarch64-common.c
5953 (aarch64_rewrite_selected_cpu): Likewise.
5954 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
5955 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
5956 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
5957 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
5958 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
5959 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
5960 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
5961 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
5962 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
5963 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
5965 * common/config/riscv/riscv-common.c
5966 (riscv_subset_list::parsing_subset_version): Likewise.
5967 (riscv_subset_list::parse_std_ext): Likewise.
5968 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
5969 (riscv_subset_list::parse): Likewise.
5970 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
5971 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
5972 (aarch64_override_options_internal): Likewise.
5973 (aarch64_validate_mcpu): Likewise.
5974 (aarch64_validate_march): Likewise.
5975 (aarch64_validate_mtune): Likewise.
5976 (aarch64_override_options): Likewise.
5977 * config/alpha/alpha.c (alpha_option_override): Likewise.
5978 * config/arc/arc.c (arc_init): Likewise.
5979 (parse_mrgf_banked_regs_option): Likewise.
5980 (arc_override_options): Likewise.
5981 (arc_expand_builtin_aligned): Likewise.
5982 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
5983 (arm_expand_builtin): Likewise.
5984 * config/arm/arm.c (arm_option_check_internal): Likewise.
5985 (arm_configure_build_target): Likewise.
5986 (arm_option_override): Likewise.
5987 (arm_options_perform_arch_sanity_checks): Likewise.
5988 (arm_handle_cmse_nonsecure_entry): Likewise.
5989 (arm_handle_cmse_nonsecure_call): Likewise.
5990 (arm_tls_referenced_p): Likewise.
5991 (thumb1_expand_prologue): Likewise.
5992 * config/avr/avr.c (avr_option_override): Likewise.
5993 * config/bfin/bfin.c (bfin_option_override): Likewise.
5994 * config/c6x/c6x.c (c6x_option_override): Likewise.
5995 * config/cr16/cr16.c (cr16_override_options): Likewise.
5996 * config/cris/cris.c (cris_option_override): Likewise.
5997 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
5998 * config/darwin-c.c (macosx_version_as_macro): Likewise.
5999 * config/darwin.c (darwin_override_options): Likewise.
6000 * config/frv/frv.c (frv_expand_builtin): Likewise.
6001 * config/h8300/h8300.c (h8300_option_override): Likewise.
6002 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
6003 (ix86_option_override_internal): Likewise.
6004 (warn_once_call_ms2sysv_xlogues): Likewise.
6005 (ix86_expand_prologue): Likewise.
6006 (split_stack_prologue_scratch_regno): Likewise.
6007 (ix86_warn_parameter_passing_abi): Likewise.
6008 * config/ia64/ia64.c (fix_range): Likewise.
6009 * config/m68k/m68k.c (m68k_option_override): Likewise.
6010 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
6011 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
6012 (mips_set_compression_mode): Likewise.
6013 * config/mmix/mmix.c (mmix_option_override): Likewise.
6014 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
6015 * config/msp430/msp430.c (msp430_option_override): Likewise.
6016 * config/nds32/nds32.c (nds32_option_override): Likewise.
6017 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
6018 (nios2_option_override): Likewise.
6019 (nios2_expand_custom_builtin): Likewise.
6020 * config/nvptx/mkoffload.c (main): Likewise.
6021 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
6022 * config/pa/pa.c (fix_range): Likewise.
6023 (pa_option_override): Likewise.
6024 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
6025 (riscv_option_override): Likewise.
6026 * config/rl78/rl78.c (rl78_option_override): Likewise.
6027 * config/rs6000/aix61.h: Likewise.
6028 * config/rs6000/aix71.h: Likewise.
6029 * config/rs6000/aix72.h: Likewise.
6030 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
6031 * config/rs6000/freebsd64.h: Likewise.
6032 * config/rs6000/linux64.h: Likewise.
6033 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
6034 (rs6000_expand_zeroop_builtin): Likewise.
6035 (rs6000_expand_mtfsb_builtin): Likewise.
6036 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
6037 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
6038 (rs6000_invalid_builtin): Likewise.
6039 (rs6000_expand_split_stack_prologue): Likewise.
6040 * config/rs6000/rtems.h: Likewise.
6041 * config/rx/rx.c (valid_psw_flag): Likewise.
6042 (rx_expand_builtin): Likewise.
6043 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6044 * config/s390/s390.c (s390_expand_builtin): Likewise.
6045 (s390_function_profiler): Likewise.
6046 (s390_option_override_internal): Likewise.
6047 (s390_option_override): Likewise.
6048 * config/sh/sh.c (sh_option_override): Likewise.
6049 (sh_builtin_saveregs): Likewise.
6050 (sh_fix_range): Likewise.
6051 * config/sh/vxworks.h: Likewise.
6052 * config/sparc/sparc.c (sparc_option_override): Likewise.
6053 * config/spu/spu.c (spu_option_override): Likewise.
6054 (fix_range): Likewise.
6055 * config/visium/visium.c (visium_option_override): Likewise.
6056 (visium_handle_interrupt_attr): Likewise.
6057 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
6058 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
6059 (dbg_cnt_process_opt): Likewise.
6060 * dwarf2out.c (output_dwarf_version): Likewise.
6061 * except.c (expand_eh_return): Likewise.
6062 * gcc.c (defined): Likewise.
6063 (driver_handle_option): Likewise.
6064 (process_command): Likewise.
6065 (compare_files): Likewise.
6066 (driver::prepare_infiles): Likewise.
6067 (driver::do_spec_on_infiles): Likewise.
6068 (driver::maybe_run_linker): Likewise.
6069 * omp-offload.c (oacc_parse_default_dims): Likewise.
6070 * opts-global.c (handle_common_deferred_options): Likewise.
6071 * opts.c (parse_sanitizer_options): Likewise.
6072 (common_handle_option): Likewise.
6073 (enable_warning_as_error): Likewise.
6074 * passes.c (enable_disable_pass): Likewise.
6075 * plugin.c (parse_plugin_arg_opt): Likewise.
6076 (default_plugin_dir_name): Likewise.
6077 * targhooks.c (default_expand_builtin_saveregs): Likewise.
6078 (default_pch_valid_p): Likewise.
6079 * toplev.c (init_asm_output): Likewise.
6080 (process_options): Likewise.
6081 (toplev::run_self_tests): Likewise.
6082 * tree-cfg.c (verify_gimple_call): Likewise.
6083 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
6084 (tree_inlinable_function_p): Likewise.
6085 * var-tracking.c (vt_find_locations): Likewise.
6087 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
6089 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
6090 only on the else branch.
6092 2019-03-11 Martin Liska <mliska@suse.cz>
6094 * gcov.c (output_intermediate_json_line): Print function
6096 (output_json_intermediate_file): Add new argument.
6097 * doc/gcov.texi: Document the change.
6099 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6101 PR rtl-optimization/89588
6102 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6103 explicit unrolling factor more robust.
6105 2019-03-11 Richard Biener <rguenther@suse.de>
6107 PR tree-optimization/89649
6108 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6109 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6110 on the prolog and epilog loops.
6111 (vect_loop_versioning): Return copy of loop.
6112 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6113 on the non-vectorized version of the loop.
6115 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6118 * config/i386/sse.md (*vec_extractv2di_0_sse):
6119 Add (=r,x) alternative and corresponding splitter.
6121 2019-03-10 Martin Jambor <mjambor@suse.cz>
6123 PR tree-optimization/85762
6124 PR tree-optimization/87008
6125 PR tree-optimization/85459
6126 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6127 it points to if there is a type changing MEM_REF. Adjust all callers.
6128 (build_accesses_from_assign): Disable total scalarization if
6129 contains_vce_or_bfcref_p returns true through the new parameter, for
6132 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6135 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6136 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6139 * common.opt (fdiagnostics-show-labels,
6140 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6141 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6142 gas-locview-support, ginline-points, ginternal-reset-location-views):
6143 Terminate description text with a dot.
6144 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6145 * config/mcore/mcore.opt (m210, m340): Likewise.
6146 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6147 mnops=): Start description text with a capital letter.
6148 * config/arc/arc.opt (msize-level=): Likewise.
6149 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6150 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6152 * config/ft32/ft32.opt (msim): Likewise.
6153 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6154 (mnodiv, mnopm): Terminate description text with a dot.
6155 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6157 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6159 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6162 PR rtl-optimization/89634
6163 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6164 are modified in BB_END (e->src) instruction.
6166 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6169 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6170 messages more amenable to translation, and improve wording.
6172 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6174 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6175 ud- and du-chains between phases.
6177 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6180 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6181 instead of POLY_INT_CST.
6183 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6185 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6188 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6193 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6194 (_mm_storeu_si64): Ditto.
6196 2019-03-08 Martin Liska <mliska@suse.cz>
6199 * config/i386/i386.c (ix86_option_override_internal): Disable
6200 jump tables when retpolines are used.
6202 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6205 * ipa-split.c (execute_split_functions): Do not split
6206 'noinline' or 'section' function.
6208 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6211 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6212 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6213 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6216 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6217 from diagnostics. Formatting fixes.
6220 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6221 warn_odr diagnostics.
6224 * lra-constraints.c (process_alt_operands): Avoid one space before
6225 " at the end of line and another after " on another line in a string
6227 * attribs.c (handle_dll_attribute): Likewise.
6228 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6230 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6231 warning_at or inform messages in G_() if there is no ?:.
6233 PR tree-optimization/89550
6234 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6235 returned true. Formatting fixes.
6236 (expand_builtin_strnlen): Formatting fixes.
6237 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6238 if warning_at returned true.
6239 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6241 2019-03-08 Richard Biener <rguenther@suse.de>
6244 * cfgloop.h (struct loop): Add owned_clique field.
6245 * cfgloopmanip.c (copy_loop_info): Copy it.
6246 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6248 * tree-inline.c (copy_loops): Remap owned_clique.
6249 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6250 * lto-streamer-out.c (output_cfg): Likewise.
6252 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6255 * config/darwin.c: Include intl.h.
6256 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6257 composing the message out of two separate parts.
6259 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6262 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6263 doesn't start with a capital letter and doesn't end with a dot.
6264 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6265 with a capital letter.
6266 (ix86_mangle_function_version_assembler_name): Likewise.
6267 (ix86_generate_version_dispatcher_body): Likewise.
6268 (fold_builtin_cpu): Likewise.
6269 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6270 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6271 translators, wrap full type name in %qs.
6273 PR translation/79999
6274 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6275 depend clause with source (or sink) modifier.
6276 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6279 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6280 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6281 (avx512f_load<mode>_mask): New define_expand.
6282 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6283 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6284 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6285 __builtin_ia32_movess_mask): New builtins.
6286 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6287 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6288 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6289 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6291 2019-03-07 Martin Jambor <mjambor@suse.cz>
6294 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6295 for extern inline functions.
6297 2019-03-07 Martin Jambor <mjambor@suse.cz>
6300 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6301 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6302 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6303 have multiple callees. At the end check if declarations match as
6304 opposed to cgraph_nodes.
6306 2019-03-07 Martin Liska <mliska@suse.cz>
6308 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6309 which is equivalent to searching for this in clones chain.
6310 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6311 names with a neighbour and special case first node in a chain.
6313 2019-01-25 Jason Merrill <jason@redhat.com>
6315 PR c++/80916 - spurious "static but not defined" warning.
6316 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6317 for an internal symbol with DECL_EXTERNAL.
6319 2019-04-07 Richard Biener <rguenther@suse.de>
6322 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6323 * tree-inline.c (copy_loops): Simplify.
6325 2019-03-07 Martin Liska <mliska@suse.cz>
6327 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6329 2019-03-07 Richard Biener <rguenther@suse.de>
6331 PR tree-optimization/89595
6332 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6333 stmt iterator as reference, take boolean output parameter to
6334 indicate whether the stmt was removed and thus the iterator
6336 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6337 stmts created by folding.
6339 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6342 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6345 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6347 PR rtl-optimization/88845
6348 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6350 * lra.c (remove_scratches_1): New function.
6351 (remove_scratches): Use it.
6352 (lra_emit_move): Likewise.
6354 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6356 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6357 unaligned_access variable.
6358 * config/arc/arc.c (arc_override_options): Set unaligned access
6359 default on for HS CPUs.
6360 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6362 2019-03-06 Martin Liska <mliska@suse.cz>
6364 PR gcov-profile/89577
6365 * doc/gcov.texi: Prefer to use --coverage.
6366 * doc/sourcebuild.texi: Likewise.
6368 2019-03-02 Jason Merrill <jason@redhat.com>
6370 PR c++/86485 - -Wmaybe-unused with empty class ?:
6371 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6373 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6376 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6380 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6381 exactly one argument.
6383 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6384 Richard Sandiford <richard.sandiford@arm.com>
6386 PR tree-optimization/89570
6387 * match.pd (vec_cond into cond_op simplification): Don't use
6388 get_conditional_internal_fn, use as_internal_fn (cond_op).
6390 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6393 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6394 to decide when to split off a non-zero offset from a symbol.
6395 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6396 in function symbols.
6398 2019-03-05 Richard Biener <rguenther@suse.de>
6400 PR tree-optimization/89594
6401 * tree-if-conv.c (pass_if_conversion::execute): Handle
6402 case where .LOOP_VECTORIZED_FUNCTION was removed.
6404 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6407 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6408 instead alloca it only when needed with the needed size.
6410 PR tree-optimization/89570
6411 * match.pd (vec_cond into cond_op simplification): Guard with
6412 vectorized_internal_fn_supported_p test and #if GIMPLE.
6414 PR tree-optimization/89566
6415 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6416 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6417 Punt if get_user_idx_format succeeds, but idx_format argument is
6418 not provided or doesn't have pointer type, or if idx_args is above
6419 number of provided arguments.
6421 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6423 PR tree-optimization/89437
6424 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6426 2019-03-04 Richard Biener <rguenther@suse.de>
6429 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6432 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6434 PR tree-optimization/89487
6435 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6436 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6437 (distribute_loop): Don't do runtime alias check if there is non-
6438 addressable data reference.
6439 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6440 is a register variable.
6442 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6445 * config/arm/arm.md (cmpsi2_addneg): Use
6446 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6447 If operands[2] is 0 or INT_MIN, force use of subs.
6448 (*compare_scc splitter): Use gen_int_mode.
6449 (*negscc): Likewise.
6450 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6452 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6453 Monk Chiang <sh.chiang04@gmail.com>
6455 * common/config/riscv/riscv-common.c: Include sstream.
6456 (riscv_subset_list::to_string): New.
6457 (riscv_arch_str): Likewise.
6458 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6460 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6461 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6462 (riscv_emit_attribute): New.
6463 (riscv_file_start): Emit attribute if needed.
6464 (riscv_option_override): Init riscv_emit_attribute_p.
6465 * config/riscv/riscv.opt (mriscv-attribute): New option.
6466 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6468 * doc/install.texi: Document --with-riscv-attribute.
6469 * doc/invoke.texi: Document -mriscv-attribute.
6471 * common/config/riscv/riscv-common.c:
6472 Include config/riscv/riscv-protos.h.
6473 (INCLUDE_STRING): Defined.
6474 (RISCV_DONT_CARE_VERSION): Defined.
6475 (riscv_subset_t): Declare.
6476 (riscv_subset_t::riscv_subset_t): New.
6477 (riscv_subset_list): Declare.
6478 (riscv_subset_list::riscv_subset_list): New.
6479 (riscv_subset_list::~riscv_subset_list): Likewise.
6480 (riscv_subset_list::parsing_subset_version): Likewise.
6481 (riscv_subset_list::parse_std_ext): Likewise.
6482 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6483 (riscv_subset_list::add): Likewise.
6484 (riscv_subset_list::lookup): Likewise.
6485 (riscv_subset_list::xlen): Likewise.
6486 (riscv_subset_list::parse): Likewise.
6487 (riscv_supported_std_ext): Likewise.
6488 (current_subset_list): Likewise.
6489 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6492 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6494 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6495 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6496 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6498 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6500 PR rtl-optimization/85899
6501 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6502 fallthru edges leading to the exit block.
6504 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6507 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6508 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6510 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6512 PR tree-optimization/89535
6513 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6514 for each operand. Calculate the fallback choice for mask operands
6515 and pass it to vect_get_vec_def_for_operand.
6517 2019-03-01 Richard Biener <rguenther@suse.de>
6520 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6521 get virtual operands.
6522 (get_expr_operands): Handle CONST_DECL like other decls.
6524 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6527 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6528 on DECL_P and EXPR_P.
6530 2019-03-01 Richard Biener <rguenther@suse.de>
6533 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6534 argument, defaulted to zero.
6535 * passes.c (execute_function_todo): Pass down SSA update flags
6536 to cleanup_tree_cfg.
6537 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6538 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6540 (cleanup_tree_cfg): Get and pass down SSA update flags.
6542 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6545 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6546 early_lto_debug argument.
6548 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6550 PR tree-optimization/89536
6551 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6552 only whether bit #0 of the value is 0 instead of the entire value.
6554 2019-02-28 Marek Polacek <polacek@redhat.com>
6556 PR c++/87068 - missing diagnostic with fallthrough statement.
6557 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6558 at the end of a seq, save its location to walk_stmt_info.
6559 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6562 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6565 * tree.c (find_atomic_core_type): Move ahead in file.
6566 (check_base_type): Correctly compare alignments of atomic types.
6568 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6571 * config/i386/i386.c (get_builtin_code_for_version): Identify
6572 Westmere from PCLMUL, instead of AES.
6574 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6577 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6578 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6581 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6584 * config/aarch64/aarch64-option-extensions.def: Document it.
6585 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6588 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6591 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6592 builtins if they don't have a single scalar floating point argument.
6595 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6597 PR rtl-optimization/89490
6598 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6599 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6600 block section is not mergeable.
6602 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6605 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6606 old define_insn to ...
6607 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6608 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6609 Rename old define_insn to ...
6610 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6611 (thumb2_casesi_internal_pic): New define_expand. Rename old
6613 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6614 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6615 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6617 2019-02-27 Richard Biener <rguenther@suse.de>
6620 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6622 2019-02-27 Richard Biener <rguenther@suse.de>
6624 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6627 2019-02-27 Richard Biener <rguenther@suse.de>
6630 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6631 parameter, prefix section name with .gnu.debuglto_ if true.
6632 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6633 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6635 2019-02-27 Richard Biener <rguenther@suse.de>
6638 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6639 rather than on use_debug_types, doing what output_die does.
6640 (value_format): Likewise.
6642 2019-02-27 Martin Jambor <mjambor@suse.cz>
6643 Martin Sebor <msebor@redhat.com>
6645 * doc/invoke.texi (Warning Options): Reword description of
6646 -Wno-absolute-value.
6648 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6650 PR tree-optimization/89280
6651 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6652 builtin_setjmp_setup_bb): New functions.
6653 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6654 When visiting __builtin_setjmp_setup block, queue in special
6655 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6656 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6657 from visited after the loop if they don't have any visited successor
6660 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6662 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6664 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6666 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6669 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6670 with types other than sizetype/ssizetype.
6672 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6674 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6675 (enum sparc_processor_type): ...this.
6676 (enum sparc_code_model_type): New enumeration type.
6677 (enum sparc_memory_model_type): Tweak comments.
6678 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6680 (mcmodel): Use sparc_code_model enumeration and variable.
6681 (sparc_code_model): New enumeration.
6682 (mdebug): Add Undocumented marker.
6683 * config/sparc/sparc.h (enum cmodel): Delete.
6684 (sparc_cmodel): Likewise.
6685 (TARGET_CM_MEDLOW): Adjust to above renaming.
6686 (TARGET_CM_MEDMID): Likewise.
6687 (TARGET_CM_MEDANY): Likewise.
6688 (TARGET_CM_EMBMEDANY): Likewise.
6689 * config/sparc/sparc.c (sparc_cmodel): Delete.
6690 (sparc_option_override): Remove string/value mapping support for the
6691 code model. Move code and memory model support to after the handling
6692 of target flags. Do private machine setup last.
6693 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6694 (sparc_legitimize_reload_address): Likewise.
6695 (sparc_output_mi_thunk): Likewise.
6696 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6698 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6700 PR tree-optimization/89500
6701 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6702 (handle_builtin_strlen): Remove noncst_bound variable. Always
6703 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6704 cst if the first cst bytes starting at x are known to be non-zero,
6705 even if the string is not zero terminated. Don't try to modify
6706 *si for strnlen. Update strlen_to_stridx only for strlen or if
6707 we can prove strnlen returns the same value as strlen would.
6709 2019-02-26 Martin Liska <mliska@suse.cz>
6711 * alloc-pool.h (struct pool_usage): Remove extra
6713 * bitmap.h (struct bitmap_usage): Likewise.
6714 * ggc-common.c (struct ggc_usage): Likewise.
6715 * mem-stats.h (struct mem_usage): Likewise.
6716 (mem_alloc_description::dump): Print dash lines
6717 here and repeat header at the end of a table report.
6718 It's then more readable.
6719 * tree-phinodes.c (phinodes_print_statistics): Make
6720 horizontal alignment.
6721 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6722 * vec.c (struct vec_usage): Remove extra print_dash_line.
6723 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6725 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6727 * doc/extend.texi (__builtin_object_size):
6728 Use @pxref instead of @xref inside parenthesis.
6729 (__builtin_has_attribute): Add missing comma after @xref.
6730 (__builtin_object_size): Ditto.
6731 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6732 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6735 2019-02-26 Jeff Law <law@redhat.com>
6737 PR rtl-optimization/87761
6738 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6739 detect obviously dead insns and delete them.
6741 2019-02-26 Richard Biener <rguenther@suse.de>
6743 PR tree-optimization/89505
6744 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6745 to handle restrict pointed-to vars with multiple subvars
6748 2019-02-26 Richard Biener <rguenther@suse.de>
6750 PR tree-optimization/89489
6751 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6753 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6755 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6756 and move around comment.
6757 <BIT_AND_EXPR>: Likewise.
6758 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6760 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6763 * config/i386/i386.c (remove_partial_avx_dependency): Call
6764 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6765 after changing possibly many instructions to use that pseudo. Fix up
6766 insertion of v4sf_const0 setter at the start of bb.
6768 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6771 * doc/extend.texi (Variadic Pointer Args): New section.
6773 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6774 Martin Sebor <msebor@gmail.com>
6776 * common.opt (Wattribute-alias): Likewise.
6777 * doc/invoke.texi (Option Summary): List general form of
6778 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6779 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6780 Add cross-references.
6781 (-Wattribute-alias): Rewrite and correct default. Mention
6782 considered attributes (same as for -Wmissing-attributes).
6784 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6786 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6787 (_mm_cvtpd_ps): Likewise.
6788 (_mm_cvttpd_epi32): Likewise.
6791 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6792 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6795 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6797 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6800 * common/config/aarch64/aarch64-common.c
6801 (struct aarch64_option_extension): Add is_synthetic.
6802 (all_extensions): Use it.
6803 (TARGET_OPTION_INIT_STRUCT): Define hook.
6804 (struct gcc_targetm_common): Moved to end.
6805 (all_extensions_by_on): New.
6806 (opt_ext_cmp, typedef opt_ext): New.
6807 (aarch64_option_init_struct): New.
6808 (aarch64_contains_opt): New.
6809 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6810 * config/aarch64/aarch64-option-extensions.def
6811 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6812 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6813 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6814 Set is_synthetic to false.
6815 (crypto): Set is_synthetic to true.
6816 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6819 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6821 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6822 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6823 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6824 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6825 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6826 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6827 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6828 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6830 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6831 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6832 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6833 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6834 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6835 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6836 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6837 vfmlsl_laneq_high_f16): ... To this.
6838 * config/arm/neon.md: Update comments.
6840 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6842 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6843 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6844 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6845 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6846 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6847 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6848 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6849 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6851 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6852 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6853 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6854 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6855 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6856 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6857 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6858 vfmlslq_laneq_high_f16): ... To this.
6860 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6862 PR rtl-optimization/86096
6863 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6864 comparing mw_order values.
6866 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6869 * config/arm/arm.md (*subsi3_carryin_const): Use
6870 arm_neg_immediate_operand predicate instead of
6871 arm_not_immediate_operand, "L" constraint instead of "K" and
6872 print it using %n2 instead of %B2.
6873 (*subsi3_carryin_const0): New define_insn.
6874 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6875 instead of arm_not_operand and "I" constraint instead of "K" and
6876 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6877 another match_operand and in the condition check that it is negation
6879 (*subsi3_carryin_compare_const0): New define_ins.
6880 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6881 *subsi3_carryin_const.
6882 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6883 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6886 * config/arm.vfp.md (*negdf2_vfp): Use
6887 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6888 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6890 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6892 PR rtl-optimization/89445
6893 * simplify-rtx.c (simplify_ternary_operation): Don't use
6894 simplify_merge_mask on operands that may trap.
6895 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6896 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6897 second operand is CONST_VECTOR, check if any element could be zero.
6898 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6899 their operands can trap.
6901 2019-02-23 Martin Sebor <msebor@redhat.com>
6903 * gimple-ssa-sprintf.c (target_strtol): Rename...
6904 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
6905 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
6906 check for range error.
6908 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
6911 * opts-common.c (prune_options): Also prune joined switches
6912 with Negative and RejectNegative.
6913 * config/i386/i386.opt (march=): Add Negative(march=).
6914 (mtune=): Add Negative(mtune=).
6915 * doc/options.texi: Document Negative used together with Joined
6918 2019-02-22 Martin Sebor <msebor@redhat.com>
6920 * doc/extend.texi (Other Builtins): Add
6921 __builtin_is_constant_evaluated.
6923 2019-02-22 Richard Biener <rguenther@suse.de>
6925 PR tree-optimization/87609
6926 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
6928 2019-02-22 Jeff Law <law@redhat.com>
6930 PR rtl-optimization/87761
6931 * config/mips/mips.md: Add new combiner pattern to recognize
6932 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
6934 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
6937 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
6938 destination register in peepholes generating patterns for ADDS/SUBS.
6939 (add<mode>3_compare0,
6940 *addsi3_compare0_uxtw, add<mode>3_compareC,
6941 add<mode>3_compareV_imm, add<mode>3_compareV,
6942 *adds_<optab><ALLX:mode>_<GPI:mode>,
6943 *subs_<optab><ALLX:mode>_<GPI:mode>,
6944 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
6945 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
6946 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
6947 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
6948 sub<mode>3_compare1): Allow stack pointer for source register.
6949 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
6951 2019-02-22 Martin Sebor <msebor@redhat.com>
6953 PR tree-optimization/88993
6954 PR tree-optimization/88853
6955 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
6957 (sprintf_dom_walker::call_info::is_string_func): New helper.
6958 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
6959 for formatted string functions.
6960 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
6962 2019-02-22 Martin Sebor <msebor@redhat.com>
6965 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
6966 unreachable subexpressions.
6968 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
6969 Hongtao Liu <hongtao.liu@intel.com>
6970 Sunil K Pandey <sunil.k.pandey@intel.com>
6973 * config/i386/i386-passes.def: Add
6974 pass_remove_partial_avx_dependency.
6975 * config/i386/i386-protos.h
6976 (make_pass_remove_partial_avx_dependency): New.
6977 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
6979 (pass_data_remove_partial_avx_dependency): New.
6980 (pass_remove_partial_avx_dependency): Likewise.
6981 (make_pass_remove_partial_avx_dependency): Likewise.
6982 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
6983 (*extendsfdf2): Add avx_partial_xmm_update.
6984 (truncdfsf2): Likewise.
6985 (*float<SWI48:mode><MODEF:mode>2): Likewise.
6986 (SF/DF conversion splitters): Disabled for TARGET_AVX.
6988 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
6991 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
6994 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
6997 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
6998 (PTA_SKYLAKE): Add PTA_AES.
6999 (PTA_GOLDMONT): Likewise.
7001 2019-02-22 Sudakshina Das <sudi.das@arm.com>
7003 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
7004 instruction if enabled.
7005 (aarch64_override_options): Remove reference to return address key.
7007 2019-02-22 Richard Biener <rguenther@suse.de>
7009 PR tree-optimization/89440
7010 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7011 not necessary assert.
7013 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7016 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
7017 (oacc_replace_fn_attrib_attr): ... this new function.
7018 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
7019 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
7021 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7023 * config/arm/arm-cpus.in (ares): Rename to...
7024 (neoverse-n1): ... This. Add ares as alias.
7025 * config/arm/arm-tables.opt: Regenerate.
7026 * config/arm/arm-tune.md: Likewise.
7027 * doc/invoke.txt (ARM Options): Document neoverse-n1.
7029 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7031 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
7032 * config/aarch64/aarch64-tune.md: Regenerate.
7033 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
7035 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7037 * config/aarch64/aarch64.c (ares_tunings): Rename to...
7038 (neoversen1_tunings): ... This.
7039 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
7040 (neoverse-n1): New CPU.
7041 * config/aarch64/aarch64-tune.md: Regenerate.
7042 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
7044 2019-02-22 Richard Biener <rguenther@suse.de>
7047 * cfghooks.h (dependence_hash): New typedef.
7048 (struct copy_bb_data): New type.
7049 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
7050 (duplicate_block): Likewise.
7051 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
7052 (copy_bbs): Create and pass down copy_bb_data.
7053 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
7054 (rtl_duplicate_bb): Likewise.
7055 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
7056 remap dependence info.
7058 2019-02-22 Richard Biener <rguenther@suse.de>
7060 PR tree-optimization/87609
7061 * tree-core.h (tree_base): Document special clique values.
7062 * tree-inline.c (remap_dependence_clique): Do not use the
7063 special clique value of one.
7064 (maybe_set_dependence_info): Use clique one.
7065 (clear_dependence_clique): New callback.
7066 (compute_dependence_clique): Clear clique one from all refs
7067 before assigning it (again).
7069 2019-02-21 Martin Sebor <msebor@redhat.com>
7071 * doc/extend.texi (__clear_cache): Correct signature.
7073 2019-02-21 Ian Lance Taylor <iant@golang.org>
7076 * varasm.c (decode_addr_const): Call lookup_constant_def rather
7077 than output_constant_def.
7078 (add_constant_to_table): New static function.
7079 (output_constant_def): Call add_constant_to_table.
7080 (tree_output_constant_def): Likewise.
7082 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7085 * builtins.c (fold_builtin_arith_overflow): If first two args are
7086 INTEGER_CSTs, set intres and ovfres to constants rather than calls
7089 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
7092 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
7093 error for -mindirect-branch/-mfunction-return with incompatible
7096 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7099 * constraints.md (q): Remove.
7100 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7103 2019-02-21 Martin Jambor <mjambor@suse.cz>
7106 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7107 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7108 (omp_adjust_for_condition): ...here. Added necessary parameters.
7109 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7110 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7111 proper values to new parameters of omp_adjust_for_condition.
7113 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7116 * expr.c (expand_assignment): If result is a MEM, use change_address
7117 instead of simplify_gen_subreg.
7119 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7120 David Malcolm <dmalcolm@redhat.com>
7123 * fold-const.c (decode_field_reference): Return NULL_TREE if
7124 lang_hooks.types.type_for_size returns NULL. Check it before
7125 overwriting *exp_. Use return NULL_TREE instead of return 0.
7127 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7131 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7134 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7137 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7138 TARGET_SSE in addition to TARGET_SSE_MATH.
7140 (ix86_excess_precision): Ditto.
7141 (ix86_float_exceptions_rounding_supported_p): Ditto.
7142 (use_rsqrt_p): Ditto.
7143 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7145 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7148 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7149 linenum_arith_t when determining if two adjacent line spans are
7150 close enough to merge.
7151 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7152 lines within each line_span.
7154 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7157 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7158 paradoxical SUBREGS.
7160 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7163 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7164 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7165 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7168 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7170 * config/gcn/gcn.c (print_operand): Fix typo.
7172 2019-02-19 Richard Biener <rguenther@suse.de>
7175 * toplev.c (do_compile): Initialize mpfr's exponent range
7176 based on available float modes.
7178 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7180 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7181 as long as the epilogue isn't completed.
7183 2019-02-18 Martin Sebor <msebor@redhat.com>
7185 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7186 __has_cpp_attribute, and __has_include.
7188 2019-02-18 Martin Sebor <msebor@redhat.com>
7190 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7192 2019-02-18 Martin Sebor <msebor@redhat.com>
7195 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7197 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7199 2019-02-18 Richard Biener <rguenther@suse.de>
7201 PR tree-optimization/89296
7202 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7203 of no-warning flag to cases that might emit the bogus warning.
7205 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7208 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7210 * config/arm/vfp.md (*movdi_vfp): Likewise.
7211 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7212 "q" constraint for operands[0].
7215 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7216 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7217 pattern in a temporary buffer.
7218 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7219 than 64-operands[2].
7222 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7223 s390_indirect_branch_settings): Define unconditionally.
7224 (s390_set_current_function): Likewise, but guard the whole body except
7225 the s390_indirect_branch_settings call with
7226 #if S390_USE_TARGET_ATTRIBUTE.
7227 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7229 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7230 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7231 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7232 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7233 HOST_WIDE_INT_1U instead of 1ULL.
7234 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7235 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7236 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7237 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7239 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7242 2019-02-18 Martin Jambor <mjambor@suse.cz>
7244 PR tree-optimization/89209
7245 * tree-sra.c (create_access_replacement): New optional parameter
7246 reg_tree. Use it as a type if non-NULL and access type is not of
7248 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7249 to create_access_replacement.
7250 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7251 Check lacc is non-NULL before attempting to re-create it on the RHS.
7253 2019-02-18 Martin Liska <mliska@suse.cz>
7256 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7258 (symbol_table::free_edge): Recycle m_summary_id.
7259 * cgraph.h (get_summary_id): New.
7260 (symbol_table::release_symbol): Set m_summary_id to -1
7262 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7263 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7264 function_summary to fast_function_summary.
7265 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7266 * ipa-pure-const.c (class funct_state_summary_t):
7267 Switch from function_summary to fast_function_summary.
7268 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7269 (class ipa_ref_opt_summary_t): Switch from function_summary
7270 to fast_function_summary.
7271 * symbol-summary.h (class function_summary_base): New class
7272 that is created from base of former function_summary.
7273 (function_summary_base::unregister_hooks): New.
7274 (class function_summary): Inherit from function_summary_base.
7275 (class call_summary_base): New class
7276 that is created from base of former call_summary.
7277 (class call_summary): Inherit from call_summary_base.
7278 (struct is_same): New.
7279 (class fast_function_summary): New summary class.
7280 (class fast_call_summary): New summary class.
7281 * vec.h (vec_safe_grow_cleared): New function.
7283 2019-02-18 Martin Liska <mliska@suse.cz>
7285 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7286 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7287 * doc/tm.texi: Document new target hook.
7288 * doc/tm.texi.in: Likewise.
7289 * target.def: Add new target macro.
7290 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7293 2019-02-17 Alan Modra <amodra@gmail.com>
7296 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7297 output reg on add insn.
7298 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7300 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7303 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7304 (PMULHRSW): Likewise.
7305 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7307 (ssse3_pmulhrswv4hi3): New expander.
7309 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7311 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7312 MMX. Add isa attribute.
7314 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7316 PR rtl-optimization/66152
7317 * builtins.h (c_readstr): Declare.
7318 * builtins.c (c_readstr): Remove forward declaration. Add
7319 null_terminated_p argument, if false, read all bytes from the
7320 string instead of stopping after '\0'.
7321 * expr.c (string_cst_read_str): New function.
7322 (store_expr): Use string_cst_read_str instead of
7323 builtin_strncpy_read_str. Try to store by pieces the whole
7324 exp_len first, and only if that fails, split it up into
7325 store by pieces followed by clear_storage. Formatting fix.
7327 * config/i386/i386.md (*movqi_internal): Remove static from
7328 buf variable. Use output_asm_insn (buf, operands); return "";
7329 instead of return buf;.
7330 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7331 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7332 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7334 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7336 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7337 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7338 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7339 (CC1_SPEC): Likewise.
7340 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7342 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7344 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7345 the base address on 64-bit strict-alignment platforms.
7347 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7349 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7351 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7353 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7355 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7357 PR rtl-optimization/88308
7358 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7359 on copied instruction.
7361 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7363 * final.c (insn_current_reference_address): Replace test on JUMP_P
7364 with test on jump_to_label_p.
7365 * config/visium/visium-passes.def: New file.
7366 * config/visium/t-visium (PASSES_EXTRA): Define.
7367 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7368 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7369 (TRAMPOLINE_ALIGNMENT): Define.
7370 * config/visium/visium.c (visium_option_override): Do not register
7371 the machine-specific reorg pass here.
7372 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7374 (output_branch): Adjust threshold for long branch instruction.
7375 * config/visium/visium.md (cpu): Move around.
7376 (length): Adjust for the GR6.
7378 2019-02-15 Richard Biener <rguenther@suse.de>
7379 Jakub Jelinek <jakub@redhat.com>
7381 PR tree-optimization/89278
7382 * tree-loop-distribution.c: Include tree-eh.h.
7383 (generate_memset_builtin, generate_memcpy_builtin): Call
7384 rewrite_to_non_trapping_overflow on builtin->size before passing it
7385 to force_gimple_operand_gsi.
7387 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7390 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7392 * opth-gen.awk: Likewise.
7394 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7396 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7397 Enable MMX, SSE and SSE2 by default.
7398 * config/i386/i386.c (ix86_option_override_internal): Do not
7399 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7401 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7403 PR rtl-optimization/89354
7404 * combine.c (make_extraction): Punt if extraction_mode is narrower
7407 2019-02-14 Maya Rashish <coypu@sdf.org>
7409 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7410 * config/netbsd-d.c: New file.
7411 * config/t-netbsd: Add netbsd-d.o
7413 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7415 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7416 affects_type_identity to true for aarch64_vector_pcs.
7417 (aarch64_comp_type_attributes): New function.
7418 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7420 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7423 * config/arm/iterators.md (ANY64): Add V4HF.
7425 2019-02-14 Martin Liska <mliska@suse.cz>
7427 PR rtl-optimization/89242
7428 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7429 process a transformation.
7431 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7433 PR tree-optimization/89314
7434 * fold-const.c (fold_binary_loc): Cast strlen argument to
7435 const char * before dereferencing it. Formatting fixes.
7438 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7440 2019-02-13 Ian Lance Taylor <iant@golang.org>
7442 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7443 and set current index for other optimizations.
7445 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7447 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7448 nonimmediate_operand as operand 2 predicate.
7449 (vec_set<VF2_512_256:mode>_0): Ditto.
7450 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7451 (*vec_concatv2si): Remove alternative 2.
7452 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7453 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7454 (vec_concatv2di): Split alternatives 4,5,6 to ...
7455 (*vec_concatv2di_0) ... new pattern.
7457 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7460 * config/arm/arm.c (ldm_stm_operation_p) Set
7461 addr_reg_in_reglist correctly for first register.
7462 (load_multiple_sequence): Remove dead base check.
7463 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7465 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7468 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7469 Expose as @aarch64_pred_mov.
7470 * config/aarch64/aarch64.c (aarch64_classify_address):
7471 Use expand_insn which legitimizes operands.
7473 2019-02-13 Martin Liska <mliska@suse.cz>
7475 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7476 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7477 and pointer_offset fields.
7478 (initialize_argument_information): Remove usage of dead
7480 * cgraph.h (struct cgraph_thunk_info): Remove
7481 add_pointer_bounds_args.
7482 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7484 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7486 * config/i386/i386.c (ix86_function_arg_advance): Remove
7488 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7489 (def_builtin): Remove usage of dead
7491 (ix86_add_new_builtins): Likewise.
7492 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7493 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7494 (sem_function::init): Likewise.
7495 (sem_variable::merge): Likewise.
7496 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7497 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7498 * lto-cgraph.c (lto_output_node): Likewise.
7499 (lto_output_varpool_node): Likewise.
7500 (input_node): Likewise.
7501 (input_varpool_node): Likewise.
7502 * lto-streamer-out.c (lto_output): Likewise.
7503 * tree-inline.c (expand_call_inline): Remove usage of
7505 * tree-inline.h (struct copy_body_data): Likewise.
7506 * varpool.c (varpool_node::dump): Likewise.
7508 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7511 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7512 into pt->vars_contains_escaped_heap instead of setting
7513 pt->vars_contains_escaped_heap to it.
7516 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7517 INTVAL (size), compare it to GET_MODE_MASK instead of
7518 1 << GET_MODE_BITSIZE.
7521 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7522 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7525 2019-02-13 Martin Liska <mliska@suse.cz>
7528 * cfgrtl.c (remove_barriers_from_footer): New function.
7529 (try_redirect_by_replacing_jump): Use it.
7530 (cfg_layout_redirect_edge_and_branch): Likewise.
7532 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7534 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7535 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7536 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7537 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7538 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7539 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7541 * config/rs6000/rs6000.c (builtin_function_type)
7542 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7543 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7544 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7545 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7546 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7548 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7550 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7551 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7553 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7556 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7557 268678 and revision 268657.
7558 (*movti_internal): Likewise.
7560 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7563 * config/s390/s390.c (s390_decompose_address): Update comment.
7564 (s390_check_qrst_address): Reject invalid address forms after
7567 2019-02-12 Martin Liska <mliska@suse.cz>
7570 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7571 we need default values of funct_state for a function that
7574 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7576 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7577 the object to pick the size of stores on strict-alignment platforms.
7579 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7580 (*movdi_insn_sp32): Likewise.
7581 (*movdi_insn_sp64): Likewise.
7583 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7586 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7587 types that needs constructiong.
7588 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7590 2019-02-12 Richard Biener <rguenther@suse.de>
7592 PR tree-optimization/89253
7593 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7596 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7599 * input.c (selftest::test_line_offset_overflow): New selftest.
7600 (selftest::input_c_tests): Call it.
7602 2019-02-11 Martin Sebor <msebor@redhat.com>
7604 PR tree-optimization/88771
7605 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7606 when -Wstringop-overflow is set.
7607 (builtin_memref::builtin_memref): Adjust excessive upper bound
7608 only when lower bound is not excessive.
7609 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7610 -Wstringop-ovefflow.
7611 (maybe_diag_offset_bounds): Rename...
7612 (maybe_diag_access_bounds): ...to this.
7613 (check_bounds_or_overlap): Adjust for name change above.
7615 2019-02-11 Martin Sebor <msebor@redhat.com>
7618 * builtins.c (max_object_size): Move from here...
7619 * builtins.h (max_object_size): ...and here...
7620 * tree.c (max_object_size): ...to here...
7621 * tree.h (max_object_size): ...and here.
7623 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7625 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7626 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7627 for correct semantics.
7629 2019-02-11 Alan Modra <amodra@gmail.com>
7631 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7632 -mlongcall and -mpltseq.
7633 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7634 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7635 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7636 * config/rs6000/sysv4.opt (mpltseq): New option.
7637 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7638 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7639 support is lacking. Don't allow -mpltseq with -mbss-plt.
7640 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7641 -mpltseq given for ELFv1.
7642 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7643 Only use UNSPEC_PLTSEQ for inline PLT calls.
7644 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7645 use UNSPEC_PLTSEQ for inline PLT calls.
7646 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7647 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7648 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7649 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7650 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7651 (pltseq_mtctr_<mode>): Likewise.
7653 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7655 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7657 * configure: Regenerate.
7659 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7662 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7665 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7667 * function.c (assign_parm_setup_block): Use the stored
7668 size, not the passed size, when allocating stack-space,
7669 also for a parameter with alignment larger than
7670 MAX_SUPPORTED_STACK_ALIGNMENT.
7672 2019-02-11 Martin Liska <mliska@suse.cz>
7675 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7676 * ipa-inline.c (inline_small_functions): Likewise.
7677 * ipa-pure-const.c (propagate_pure_const): Likewise.
7678 (propagate_nothrow): Likewise.
7679 * ipa-reference.c (propagate): Likewise.
7680 * ipa-utils.c (struct searchc_env): Remove unused field.
7681 (searchc): Always search across AVAIL_INTERPOSABLE.
7682 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7683 the only called IPA pure const can properly not propagate
7684 across interposable boundary.
7685 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7687 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7689 * config/nds32/nds32.md (call_internal, call_value_internal,
7690 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7692 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7694 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7697 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7699 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7702 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7704 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7706 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7708 PR tree-optimization/89268
7709 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7710 if preds is non-NULL.
7712 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7715 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7718 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7720 * config/nds32/nds32.md (trap): New pattern.
7722 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7724 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7727 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7729 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7732 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7734 * ipa-visibility.c (localize_node): Also do not localize
7735 LDPR_PREVAILING_DEF_IRONLY_EXP.
7737 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7740 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7741 instead of type_with_linkage.
7743 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7746 * params.def (uninlined-function-insns, uninlined-function-time,
7747 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7748 bound so we don't get overflows.
7750 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7752 * config/rs6000/rs6000-string.c (expand_compare_loop,
7753 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7756 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7759 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7760 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7761 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7763 2019-02-09 Alan Modra <amodra@gmail.com>
7766 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7767 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7770 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7773 * lra-constraints.c (process_alt_operands): Don't increase reject
7774 for memory when offset memory is required.
7776 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7778 * config/s390/vector.md: Implement vector copysign.
7780 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7782 * expr.c (expand_constructor): Correct indentations.
7784 2019-02-08 Richard Biener <rguenther@suse.de>
7786 PR tree-optimization/89247
7787 * tree-if-conv.c: Include tree-cfgcleanup.h.
7788 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7789 (tree_if_conversion): Pass through predicate vector.
7790 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7791 inline, see if any if-converted loops we refrece in
7792 LOOP_VECTORIZED calls vanished and fixup.
7793 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7795 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7797 * config/s390/constraints.md (jdd): New constraint.
7799 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7802 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7803 upper 16 vector registers without TARGET_AVX512VL.
7804 (*movti_internal): Likewise.
7806 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7808 PR rtl-optimization/89234
7809 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7810 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7811 (copy_reg_eh_region_note_backward): Likewise.
7813 2019-02-08 Richard Biener <rguenther@suse.de>
7816 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7818 (analyze_subscript_affine_affine): Handle failure from
7819 initialize_matrix_A.
7821 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7823 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7826 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7828 PR tree-optimization/86637
7829 PR tree-optimization/89235
7830 * tree-vect-loop.c (optimize_mask_stores): Add an
7831 auto_purge_vect_location sentinel to ensure that vect_location is
7834 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7835 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7836 to ensure that vect_location is purged on exit.
7837 (pass_slp_vectorize::execute): Likewise, replacing the manual
7839 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7841 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7843 * config/aarch64/iterators.md (max_opp): New code_attr.
7844 (USMAX): New code iterator.
7845 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7846 (aarch64_smax): Likewise.
7847 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7848 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7851 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7854 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7855 for TARGET_AVX512VL.
7856 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7858 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7860 * config/s390/s390-builtin-types.def: Add new types.
7861 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7862 (s390_vec_xlw4): Make the memory operand into a const pointer.
7863 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7865 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7866 a new vector type with the alignment of the scalar memory operand.
7868 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7869 Jakub Jelinek <jakub@redhat.com>
7872 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7873 arm_count_ldrdstrd_insns): New declarations.
7874 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7876 (valid_operands_ldrd_strd): New function.
7877 (arm_count_ldrdstrd_insns): New function.
7878 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7879 sets instead of single DImode set and define new insns to match this.
7881 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7883 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7884 Make it a C initializer.
7886 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7889 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7891 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7893 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7894 Use neon_dot<q> for type.
7895 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7897 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7899 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7900 Use neon_dot<q> for type.
7901 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
7902 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
7904 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
7906 PR rtl-optimization/89225
7907 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
7910 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
7912 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
7913 after restoring registers saved to allocate the frame on Windows.
7915 2019-02-06 Richard Biener <rguenther@suse.de>
7917 PR tree-optimization/89182
7918 * graphite.h (cached_scalar_evolution_in_region): Declare.
7919 * graphite.c (struct seir_cache_key): New.
7920 (struct sese_scev_hash): Likewise.
7921 (seir_cache): New global.
7922 (cached_scalar_evolution_in_region): New function.
7923 (graphite_transform_loops): Allocate and release seir_cache.
7924 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
7925 cached_scalar_evolution_in_region.
7926 * graphite-scop-detection.c (scop_detection::can_represent_loop):
7928 (scop_detection::graphite_can_represent_expr: Use
7929 cached_scalar_evolution_in_region.
7930 (scop_detection::stmt_simple_for_scop_p): Likewise.
7931 (find_params_in_bb): Likewise.
7932 (gather_bbs::before_dom_children): Likewise.
7933 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
7934 (add_loop_constraints): Likewise.
7936 2019-02-06 Jakub Jelinek <jakub@redhat.com>
7939 * fold-const-call.c (fold_const_vec_convert): Pass true as last
7940 operand to new_unary_operation only if both element types are integral
7941 and it isn't a widening conversion. Return NULL_TREE if
7942 new_unary_operation failed.
7944 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
7947 * config/s390/s390.md: Remove load and test FP splitter.
7949 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7952 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
7953 expand_compare_loop, expand_block_compare_gpr,
7954 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
7955 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
7956 #include "profile-count.h" and "predict.h" for types and functions
7957 needed to work with REG_BR_PROB notes.
7959 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
7962 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
7963 for the long branch case.
7965 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7968 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
7969 can throw, non-call exceptions are enabled and we can't delete
7970 dead exceptions or alter cfg. Set must_clean if
7971 delete_insn_and_edges returns true, don't set it blindly for calls.
7972 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
7974 PR rtl-optimization/89195
7975 * combine.c (make_extraction): For MEMs, don't extract bytes outside
7976 of the original MEM.
7978 2019-02-05 Martin Liska <mliska@suse.cz>
7980 PR gcov-profile/89000
7981 * gcov.c (function_summary): Remove argument.
7982 (file_summary): New function.
7983 (print_usage): Replace tabs with spaces.
7984 (generate_results): Use new function file_summary.
7986 2019-02-05 Jakub Jelinek <jakub@redhat.com>
7989 * optabs.c (prepare_cmp_insn): Pass x and y to
7990 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
7992 2019-02-05 Richard Biener <rguenther@suse.de>
7995 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
7996 (struct bitmap_element): Drop chain_prev so we properly recurse on
7997 the prev member, supporting tree views.
7998 (struct bitmap_head): GTY skip the obstack member.
8000 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
8003 * doc/extend.texi (Vector Extensions): Add an example of using vector
8004 types together with x86 intrinsics.
8006 2019-02-04 Alan Modra <amodra@gmail.com>
8008 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
8009 str[] size to 160, and comment.
8011 2019-02-04 Alan Modra <amodra@gmail.com>
8013 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
8014 (rs6000_pltseq_template): Guard output of TLS markers with
8016 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
8017 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
8018 to use inline PLT sequences.
8019 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
8020 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
8021 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
8023 2019-02-04 Martin Liska <mliska@suse.cz>
8026 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
8027 out when ipa_fn_summaries does not contain entry for callee.
8029 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
8031 * config/sparc/sparc.h: Remove superfluous blank lines.
8032 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
8033 (got_register_rtx): ...this.
8034 (sparc_got): Adjust to above renaming.
8035 (sparc_tls_got): Likewise.
8036 (sparc_delegitimize_address): Likewise.
8037 (sparc_output_mi_thunk): Likewise.
8038 (sparc_init_pic_reg): Likewise.
8039 (save_local_or_in_reg_p): Fix test on the GOT register.
8040 (USE_HIDDEN_LINKONCE): Move around.
8041 (get_pc_thunk_name): Likewise.
8042 (gen_load_pcrel_sym): Likewise.
8043 (load_got_register): Likewise.
8045 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
8047 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
8048 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
8050 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8052 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
8055 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8057 * config.gcc (with_nds32_lib, glibc):
8058 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
8059 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
8060 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
8062 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
8065 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
8066 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
8067 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
8068 (*rcpsf2_sse): Ditto.
8069 (*rsqrtsf2_sse): Ditto.
8070 (sse4_1_round<mode<2): Ditto.
8072 2019-02-03 Richard Biener <rguenther@suse.de>
8075 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
8078 2019-02-02 Jakub Jelinek <jakub@redhat.com>
8081 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8082 Punt with warning on aggregate return or argument types. Ignore
8083 type/mode checking for uniform arguments.
8085 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
8087 * combine.c (try_combine): Do not print "Can't combine" messages unless
8088 printing failed combination attempts.
8090 2019-02-01 Martin Jambor <mjambor@suse.cz>
8093 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
8094 segment and global segment variables before making them static.
8096 2019-02-01 Martin Jambor <mjambor@suse.cz>
8098 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8099 missed optimization dump with dump_enabled_p.
8101 2019-02-01 Richard Biener <rguenther@suse.de>
8104 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8105 the instantiate cache.
8106 (instantiate_scev_binary): Elide second operand procesing
8107 if equal to the first.
8108 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8109 (chrec_contains_undetermined): Likewise.
8110 (tree_contains_chrecs): Likewise.
8112 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8114 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8116 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8118 PR tree-optimization/89143
8119 * wide-int-range.h (wide_int_range_absu): Declare.
8120 * wide-int-range.cc (wide_int_range_absu): New function.
8121 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8123 PR tree-optimization/88107
8124 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8125 instead of assertion that eh_region_outermost is non-NULL, if it
8126 is NULL, set *ALL to true and return NULL.
8127 (move_sese_region_to_fn): Adjust caller, if all is set, call
8128 duplicate_eh_regions with NULL region.
8130 2019-02-01 Richard Biener <rguenth@suse.de>
8132 PR rtl-optimization/88593
8133 * mode-switching.c (optimize_mode_switching): Free dominators before
8134 calling cleanup_cfg.
8136 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8138 PR tree-optimization/88932
8139 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8141 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8144 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8145 bogus clang warning.
8147 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8150 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8151 alternative to avoid partial SSE register stall for TARGET_AVX.
8152 (truncdfsf2): Ditto.
8153 (sse4_1_round<mode>2): Ditto.
8155 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8157 PR tree-optimization/89008
8158 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8159 process anything of the form X * 0.
8161 2019-01-31 Richard Biener <rguenther@suse.de>
8163 PR tree-optimization/89135
8164 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8165 with abnormal preds.
8167 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8170 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8171 always_inline callees into no_sanitize_address callers.
8173 2019-01-31 Richard Biener <rguenther@suse.de>
8175 PR rtl-optimization/89115
8176 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8178 2019-01-30 Martin Sebor <msebor@redhat.com>
8181 * doc/extend.texi (cast to a union): Correct and expand.
8183 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8185 PR rtl-optimization/87246
8186 * lra-constraints.c (simplify_operand_subreg): Reload memory
8187 in subreg if the address became invalid.
8189 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8192 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8193 Disable for little-endian.
8195 2019-01-30 Richard Biener <rguenther@suse.de>
8197 PR rtl-optimization/89115
8198 * opts.c (default_options_optimization): Reduce
8199 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8200 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8203 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8205 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8206 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8207 type of vector element when vec_extract is implemented by direct
8210 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8212 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8214 2019-01-30 Richard Biener <rguenther@suse.de>
8216 PR tree-optimization/89111
8217 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8218 canonicalization to appropriately sized access types.
8220 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8223 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8224 for arguments to functions that are TU-local and shouldn't be
8225 referenced by assembly.
8227 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8229 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8232 2019-01-29 Martin Sebor <msebor@redhat.com>
8235 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8237 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8241 * omp-simd-clone.c (simd_clone_clauses_extract)
8242 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8243 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8245 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8247 * config.gcc: Force .init_array for ARC.
8249 2019-01-29 Richard Biener <rguenther@suse.de>
8252 * dwarf2out.c (collect_skeleton_dies): New helper.
8253 (copy_decls_for_unworthy_types): Call it.
8254 (build_abbrev_table): Assert we do not try to replace
8255 DW_AT_signature refs with local refs.
8257 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8260 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8261 for lastprivate/linear IV, push gimplify context around gimplify_assign
8262 and, if it needed any temporaries, pop it into a gimple bind around the
8265 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8267 * common.opt (-Wattribute-alias): Remove "no-" from name.
8268 Make -Wattribute-alias command line option and
8269 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8271 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8274 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8275 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8277 (bmi2): Add missing @opindex.
8278 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8279 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8280 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8281 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8282 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8283 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8284 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8285 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8286 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8287 xsavec, xsaveopt and xsaves options.
8289 2019-01-28 Richard Biener <rguenther@suse.de>
8292 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8295 2019-01-28 Richard Biener <rguenther@suse.de>
8297 PR tree-optimization/88739
8298 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8299 BIT_FIELD_REFs only are applied to mode-precision operands
8300 when they are integral.
8301 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8302 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8303 BIT_FIELD_REFs of non-mode-precision integral operands.
8305 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8308 * config/i386/sse.md
8309 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8310 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8311 first constants in pairs are multiples of 2. Formatting fixes.
8312 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8313 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8314 first constants in each quadruple are multiples of 4. Formatting fixes.
8316 2019-01-26 Martin Jambor <mjambor@suse.cz>
8319 * tree-inline.c: Include tree-cfgcleanup.h.
8320 (delete_unreachable_blocks_update_callgraph): Move...
8321 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8322 ...here, make externally visible, make second argument bool, adjust
8324 * tree-cfgcleanup.c: Include cgraph.h.
8325 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8327 * ipa-prop.c: Include tree-cfgcleanup.h.
8328 (ipcp_transform_function): Call
8329 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8331 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8333 PR rtl-optimization/88846
8334 * ira.c (process_set_for_memref_referenced_p): New.
8335 (memref_referenced_p): Add new param. Use
8336 process_set_for_memref_referenced_p. Add new switch cases.
8337 (memref_used_between_p): Pass new arg to memref_referenced_p.
8339 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8342 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8343 argument ABI_BREAK. Set to true if the calculated alignment has
8344 changed in gcc-9. Check bit-fields for their base type alignment.
8345 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8346 (aarch64_function_arg_boundary): Likewise.
8347 (aarch64_gimplify_va_arg_expr): Likewise.
8349 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8352 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8353 instead of accessing TREE_INT_CST_ELT directly.
8355 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8357 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8358 fenv_exceptions description.
8360 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8362 PR rtl-optimization/87763
8363 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8364 Allow SUBREG when matching CC_NZmode compare.
8366 2019-01-25 Richard Biener <rguenther@suse.de>
8368 PR tree-optimization/89049
8369 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8370 Look at the pattern stmt to determine if the stmt is vectorized.
8372 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8374 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8375 (pred_mov<mode>): Handle all-register forms using both a new
8376 alternative and a split.
8378 2019-01-25 Richard Biener <rguenther@suse.de>
8380 PR tree-optimization/86865
8381 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8382 Reject non-do-while loops.
8384 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8386 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8387 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8388 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8389 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8390 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8391 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8392 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8393 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8394 vlogical_operand, gpc_reg_operand, int_reg_operand,
8395 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8396 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8397 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8398 (save_world_operation, restore_world_operation, lmw_operation,
8399 stmw_operation): Use MEM_P and REG_P.
8400 (tie_operand): Use MEM_P.
8401 (vrsave_operation, crsave_operation): Use REG_P.
8402 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8403 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8404 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8405 (call_operand): Use HARD_REGISTER_P.
8406 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8408 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8409 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8410 quad_aligned_load_p, replace_swapped_aligned_store,
8411 recombine_lvx_pattern, replace_swapped_aligned_load,
8412 recombine_stvx_pattern): Use MEM_P.
8413 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8414 Use MEM_P and SYMBOL_REF_P.
8415 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8416 (insn_is_swappable_p): Use REG_P and MEM_P.
8417 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8418 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8420 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8422 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8424 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8425 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8426 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8427 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8429 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8430 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8431 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8432 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8433 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8434 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8435 rs6000_split_logical_di): Use CONST_INT_P.
8436 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8437 REG_P and SYMBOL_REF_P.
8438 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8439 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8440 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8441 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8442 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8443 (small_data_operand, print_operand_address): Use CONST_INT_P and
8445 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8446 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8447 Use HARD_REGISTER_NUM_P.
8448 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8449 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8450 SUBREG_P and SYMBOL_REF_P.
8451 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8452 and HARD_REGISTER_NUM_P.
8453 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8455 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8456 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8458 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8459 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8460 find_addr_reg): Use REG_P.
8461 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8462 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8463 (offsettable_ok_by_alignment, constant_pool_expr_p,
8464 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8465 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8466 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8467 rs6000_assemble_integer, create_TOC_reference,
8468 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8469 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8470 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8471 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8472 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8473 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8474 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8475 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8476 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8477 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8478 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8479 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8480 and cbranch<mode>4): Use CONST_INT_P.
8481 (multiple define_splits): Use REG_P and SUBREG_P.
8482 (define_expands call, call_value): Use MEM_P.
8483 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8484 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8485 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8486 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8487 and HARD_REGISTER_NUM_P.
8488 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8490 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8492 PR rtl-optimization/88948
8493 * rtl.h (prepare_copy_insn): New prototype.
8494 * gcse.c (prepare_copy_insn): New function, split out from
8495 process_insert_insn.
8496 (process_insert_insn): Use prepare_copy_insn.
8497 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8498 instead of gen_move_insn.
8500 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8503 * config/i386/i386.c (ix86_pic_register_p): Return true for
8506 PR tree-optimization/88964
8507 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8508 punt if HONOR_SNANS (chrec).
8511 * tree-nested.c (convert_nonlocal_reference_stmt,
8512 convert_local_reference_stmt, convert_tramp_reference_stmt,
8513 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8514 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8517 PR tree-optimization/89027
8518 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8519 for "omp simd array" variables.
8521 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8524 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8525 force the alignment of m_val.
8527 2019-01-24 Richard Biener <rguenther@suse.de>
8530 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8531 When in "legacy" debug mode make sure to reset self-origins.
8533 2019-01-24 Martin Liska <mliska@suse.cz>
8535 PR gcov-profile/88994
8536 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8537 result will be always smaller or equal to the original.
8538 * gcov.c (mangle_name): Fix else branch where we should
8539 also copy to PTR and shift the pointer.
8541 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8543 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8544 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8546 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8548 * common/config/i386/i386-common.c
8549 (OPTION_MASK_ISA_ENQCMD_SET,
8550 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8551 (ix86_handle_option): Handle -menqcmd.
8552 * config.gcc (enqcmdintrin.h): New header file.
8553 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8554 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8556 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8558 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8559 __builtin_ia32_enqcmds): New builtins.
8560 * config/i386/i386-c.c (__ENQCMD__): New macro.
8561 * config/i386/i386-option.c (ix86_target_string): Add
8563 (ix86_valid_target_attribute_inner_p): Likewise.
8564 * config/i386/i386-expand.c
8565 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8566 IX86_BUILTIN_ENQCMDS.
8567 * config/i386/i386.h (TARGET_ENQCMD): New.
8568 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8569 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8570 (movdir64b_<mode>): Parameterize to enable share expansion code
8571 with ENQCMD in function ix86_expand_builtin.
8572 * config/i386/i386.opt: Add -menqcmd.
8573 * config/i386/immintrin.h: Include enqcmdintrin.h.
8574 * config/i386/enqcmdintrin.h: New intrinsic file.
8575 * doc/invoke.texi: Add -menqcmd.
8577 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8578 Steve Ellcey <sellcey@marvell.com>
8581 * recog.c (address_operand): Return false on wrong mode for address.
8582 (constrain_operands): Check for mode with 'p' constraint.
8584 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8587 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8588 Disparage MMX alternative.
8589 (sse2_cvtpd2pi): Ditto.
8590 (sse2_cvttpd2pi): Ditto.
8592 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8595 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8596 use-after-free of the result of
8597 aarch64_get_extension_string_for_isa_flags.
8599 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8602 * doc/extend.texi: Document break and continue behavior in
8603 statement expressions.
8605 2019-01-23 Richard Biener <rguenther@suse.de>
8607 PR tree-optimization/89008
8608 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8609 not leave another stray operand.
8611 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8613 * BASE-VER: Bump to 9.0.1.
8615 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8617 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8618 thunk that returns by reference, use the type of the return object
8619 of the thunk instead of that of the alias to build the dereference.
8621 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8623 * config/arc/atomic.md: Add operand to DMB instruction.
8625 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8627 PR tree-optimization/88964
8628 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8629 build_zero_cst instead of build_int_cst. Return false for loop
8630 invariants which honor signed zeros.
8632 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8634 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8636 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8639 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8640 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8641 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8644 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8645 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8648 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8649 Disable for little endian.
8651 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8654 * config/arm/arm.c (arm_needs_double_word_align): Check
8655 DECL_BIT_FIELD_TYPE.
8657 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8658 H.J. Lu <hongjiu.lu@intel.com>
8661 * config/i386/i386-builtin.def: Add mask2 to all builtin
8662 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8664 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8665 (BDESC_FIRST): Likewise.
8666 (define_builtin): Add an argument for mask2. Updated to handle
8667 both ix86_isa_flags and ix86_isa_flags2.
8668 (define_builtin_const): Likewise.
8669 (define_builtin_pure): Likewise.
8670 (define_builtin2): Deleted.
8671 (define_builtin_const2): Likewise.
8672 (builtin_description): Add a member, mask2.
8673 (bdesc_*): Add mask2 to builtin initializations.
8674 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8675 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8677 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8679 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8682 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8685 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8688 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8689 alignment is dominated by a bitfield with 64-bit aligned base type.
8690 (arm_function_arg): Emit a warning if the alignment has changed since
8691 earlier GCC releases.
8692 (arm_function_arg_boundary): Likewise.
8693 (arm_setup_incoming_varargs): Likewise.
8695 2019-01-22 Richard Biener <rguenther@suse.de>
8697 PR tree-optimization/88862
8698 * graphite-scop-detection.c
8699 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8701 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8703 * doc/extend.tex (AMD GCN Function Attributes): New section.
8704 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8705 * doc/invoke.texi (AMD GCN Options): New section.
8706 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8708 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8710 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8711 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8713 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8715 PR tree-optimization/88044
8716 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8717 is false in the first iteration, but !every_iteration, return false
8718 instead of true with niter->niter zero.
8720 PR rtl-optimization/88904
8721 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8722 any nonequal registers before processing BB_END (b).
8725 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8727 (expand_binop_directly, expand_doubleword_clz,
8728 expand_doubleword_popcount, expand_ctz, expand_ffs,
8729 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8731 PR rtl-optimization/49429
8733 PR rtl-optimization/86334
8735 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8736 addressable from here...
8737 (emit_block_op_via_libcall): ... to here.
8739 2019-01-22 Richard Biener <rguenther@suse.de>
8741 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8742 auto_vec for cost vector to fix memleak.
8743 (vectorize_fold_left_reduction): Properly gather SLP defs.
8744 (vectorizable_comparison): Do not swap operands to properly
8747 2019-01-22 Alan Modra <amodra@gmail.com>
8750 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8751 stays a reg. Allow a const_int.
8752 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8753 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8754 (IS_NOMARK_TLSGETADDR): Define.
8755 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8756 (rs6000_output_tlsargs): New function.
8757 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8758 __tls_get_addr call takes an arg.
8759 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8760 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8762 (call_value_nonlocal_sysv): ..or here, delete split.
8763 (tls_gdld_nomark): Delete.
8764 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8765 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8766 (call_value_nonlocal_sysv): Likewise.
8767 (call_value_nonlocal_sysv_secure): Likewise.
8768 (call_value_nonlocal_aix): Likewise.
8769 (call_value_indirect_aix): Likewise.
8770 (call_value_indirect_elfv2): Likewise.
8771 (call_value_local32, call_value_local64): Disable for no-mark tls.
8772 (call_value_local_aix): Likewise.
8774 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8777 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8778 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8780 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8782 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8783 string contents as hash_map keys.
8785 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8788 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8789 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8790 instead of TYPE_ALIGN.
8791 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8792 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8793 pointer from TYPE_STUB_DECL.
8795 2019-01-21 Richard Biener <rguenther@suse.de>
8797 PR tree-optimization/88934
8798 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8799 at the possibly non-constant operand.
8800 (vect_get_constant_vectors): Adjust.
8802 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8805 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8806 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8807 instead of _X86INTRIN_H_INCLUDED.
8808 * onfig/i386/clwbintrin.h: Likewise.
8809 * config/i386/pkuintrin.h: Likewise.
8810 * config/i386/prfchwintrin.h: Likewise.
8811 * config/i386/rdseedintrin.h: Likewise.
8812 * config/i386/wbnoinvdintrin.h: Likewise.
8813 * config/i386/xsavecintrin.h: Likewise.
8814 * config/i386/xsavesintrin.h: Likewise.
8815 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8816 * config/i386/xsaveintrin.h: Likewise.
8817 * config/i386/xsaveoptintrin.h: Likewise.
8818 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8819 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8820 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8821 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8822 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8823 * config/i386/immintrin.h: Here.
8825 2019-01-20 Martin Jambor <mjambor@suse.cz>
8828 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8829 with aa_walk_budget.
8830 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8831 aa_walk_budget_p parameter.
8832 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8833 walk. Updated all callers.
8834 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8835 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8837 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8838 parameter info. Extract info from fbi. Pass fbi to recursive calls
8839 and to unmodified_parm.
8840 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8841 info, updated call to will_be_nonconstant_expr_predicate.
8842 (param_change_prob): New parameter fbi, limit AA walking.
8843 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8844 calls to various above functions.
8845 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8846 parameter. Use it to limit AA walking.
8847 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8849 (detect_type_change): New parameter fbi, pass it on to
8850 detect_type_change_from_memory_writes.
8851 (detect_type_change_ssa): Likewise.
8852 (aa_overwalked): Removed.
8853 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8854 accordingly, adjust to the neew AA limiting scheme.
8855 (parm_ref_data_preserved_p): Likewise.
8856 (ipa_compute_jump_functions_for_edge): Adjust call to
8858 (ipa_analyze_call_uses): Likewise.
8859 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8860 (ipa_analyze_node): Initialize aa_walk_budget.
8861 (ipcp_transform_function): Likewise.
8862 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8863 to get_dynamic_type.
8865 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8867 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8868 outside of #if CHECKING_P code.
8870 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8872 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8873 New function, split out from...
8874 (loop_versioning::analyze_stride): ...here.
8875 (loop_versioning::find_per_loop_multiplication): Use gassign.
8876 (loop_versioning::analyze_term_using_scevs): Return a success code.
8877 (loop_versioning::analyze_arbitrary_term): New function.
8878 (loop_versioning::analyze_address_fragment): Use
8879 analyze_arbitrary_term if all else fails.
8881 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8884 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8887 2019-01-18 Richard Biener <rguenther@suse.de>
8889 PR tree-optimization/88903
8890 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8891 scalar stmts a SLP shift amount is composed of when detecting
8894 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8897 * config/arm/arm-cpus.in (mp): New feature.
8899 (fgroup ARMv7ve): Add mp and sec features.
8900 (arch armv7-a): Add options to allow mp and sec extensions.
8901 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
8902 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
8903 extenstions to the base architecture.
8904 (cpu cortex-a8): Add sec extension to the base architecture.
8905 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
8906 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
8907 variants down to the base v7-a varaint.
8908 * config/arm/t-multilib (v7_a_arch_variants): New variable.
8909 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
8910 of permitted extensions for -march=armv7-a and for
8911 -mcpu=generic-armv7-a.
8913 2019-01-18 Martin Liska <mliska@suse.cz>
8915 * params.def: Fix comment.
8916 * tree-profile.c (gimple_init_gcov_profiler): Bump function
8918 (gimple_gen_ic_func_profiler): Likewise.
8920 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8922 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
8923 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
8924 and put in error checks for stack protector guard options.
8925 (aarch64_stack_protect_guard): New.
8926 (TARGET_STACK_PROTECT_GUARD): Define.
8927 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
8928 (reg_stack_protect_address<mode>): New.
8929 (stack_protect_set): Adjust for SSP_GLOBAL.
8930 (stack_protect_test): Likewise.
8931 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
8932 (-mstack-protector-guard): Likewise.
8933 (-mstack-protector-guard-offset): Likewise.
8935 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8937 PR tree-optimization/86214
8938 * tree-inline.h (struct copy_body_data): Add
8939 add_clobbers_to_eh_landing_pads member.
8940 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
8941 (copy_edges_for_bb): Call it if EH edge destination is <
8942 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
8943 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
8944 if flag_stack_reuse != SR_NONE and clear it afterwards.
8946 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
8949 * doc/install.texi (with-multilib-list): Document for aarch64.
8951 2019-01-18 Jakub Jelinek <jakub@redhat.com>
8954 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
8955 (("..."))) with ("...").
8957 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
8959 * doc/extend.texi (Built-in Functions for Memory Model Aware
8960 Atomic Operations): Document atomic fetch and nand.
8962 2019-01-18 Martin Liska <mliska@suse.cz>
8963 Richard Biener <rguenther@suse.de>
8966 * cgraph.h (create_version_clone_with_body): Add new argument
8968 * cgraphclones.c (cgraph_node::create_version_clone): Add
8969 DECL_ATTRIBUTES to a newly created decl. And call
8970 valid_attribute_p so that proper cl_target_optimization_node
8971 is set for the newly created declaration.
8972 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
8974 (expand_target_clones): Do not call valid_attribute_p, it must
8976 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
8979 2019-01-17 Jakub Jelinek <jakub@redhat.com>
8982 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
8983 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
8984 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
8986 2019-01-17 Martin Sebor <msebor@redhat.com>
8989 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
8990 Handle anti-ranges the same as no range at all.
8992 2018-01-17 Steve Ellcey <sellcey@cavium.com>
8994 * config/aarch64/aarch64.c (cgraph.h): New include.
8995 (intl.h): New include.
8996 (supported_simd_type): New function.
8997 (currently_supported_simd_type): Ditto.
8998 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
8999 (aarch64_simd_clone_adjust): Ditto.
9000 (aarch64_simd_clone_usable): Ditto.
9001 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
9002 (TARGET_SIMD_CLONE_ADJUST): Ditto.
9003 (TARGET_SIMD_CLONE_USABLE): Ditto.
9004 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
9005 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
9008 2019-01-17 Martin Sebor <msebor@redhat.com>
9010 PR tree-optimization/88800
9011 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
9012 NO_WARNING bit here. Avoid folding out-of-bounds calls.
9013 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
9014 redundant argument. Add new argument and issue diagnostics under
9015 its control. Detect out-of-bounds access even with warnings
9017 (check_bounds_or_overlap): Change return type. Add argument.
9018 (wrestrict_dom_walker::check_call): Adjust.
9019 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
9020 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
9021 check_bounds_or_overlap's return value.
9022 (handle_builtin_stxncpy): Same.
9023 (handle_builtin_strcat): Same.
9025 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9026 Kwok Cheung Yeung <kcy@codesourcery.com>
9027 Julian Brown <julian@codesourcery.com>
9028 Tom de Vries <tom@codesourcery.com>
9030 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
9032 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9034 * doc/sourcebuild.texi: Document dg-require-effective-target
9035 llvm_binutils and offload_gcn.
9037 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9038 Kwok Cheung Yeung <kcy@codesourcery.com>
9039 Julian Brown <julian@codesourcery.com>
9040 Tom de Vries <tom@codesourcery.com>
9042 * doc/sourcebuild.texi: Document dg-required-effective-target
9045 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9046 Kwok Cheung Yeung <kcy@codesourcery.com>
9047 Julian Brown <julian@codesourcery.com>
9048 Tom de Vries <tom@codesourcery.com>
9049 Jan Hubicka <hubicka@ucw.cz>
9050 Martin Jambor <mjambor@suse.cz>
9052 * config.gcc: Add amdgcn*-*-amdhsa configuration.
9053 * configure.ac: Check for dlopen.
9054 * configure: Regenerate.
9056 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9057 Kwok Cheung Yeung <kcy@codesourcery.com>
9058 Julian Brown <julian@codesourcery.com>
9059 Tom de Vries <tom@codesourcery.com>
9060 Jan Hubicka <hubicka@ucw.cz>
9061 Martin Jambor <mjambor@suse.cz>
9063 * common/config/gcn/gcn-common.c: New file.
9064 * config/gcn/driver-gcn.c: New file.
9065 * config/gcn/gcn-builtins.def: New file.
9066 * config/gcn/gcn-hsa.h: New file.
9067 * config/gcn/gcn-modes.def: New file.
9068 * config/gcn/gcn-opts.h: New file.
9069 * config/gcn/gcn-passes.def: New file.
9070 * config/gcn/gcn-protos.h: New file.
9071 * config/gcn/gcn-run.c: New file.
9072 * config/gcn/gcn-tree.c: New file.
9073 * config/gcn/gcn.c: New file.
9074 * config/gcn/gcn.h: New file.
9075 * config/gcn/gcn.opt: New file.
9076 * config/gcn/t-gcn-hsa: New file.
9078 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9079 Kwok Cheung Yeung <kcy@codesourcery.com>
9080 Julian Brown <julian@codesourcery.com>
9081 Tom de Vries <tom@codesourcery.com>
9082 Jan Hubicka <hubicka@ucw.cz>
9083 Martin Jambor <mjambor@suse.cz>
9085 * config/gcn/constraints.md: New file.
9086 * config/gcn/gcn-valu.md: New file.
9087 * config/gcn/gcn.md: New file.
9088 * config/gcn/predicates.md: New file.
9090 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
9092 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
9093 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
9094 (stmt_uses_0_or_null_in_undefined_way): Likewise.
9095 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
9097 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9100 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9101 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9102 it and document registers.
9104 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9106 * config/aarch64/aarch64.c (ares_tunings): Define.
9107 * config/aarch64/aarch64-cores.def (ares): Use the above.
9109 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9113 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9115 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9116 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9117 (_mm512_maskz_fixupimm_round_pd): Ditto.
9118 (_mm512_fixupimm_round_ps): Ditto.
9119 (_mm512_maskz_fixupimm_round_ps): Ditto.
9120 (_mm_fixupimm_round_sd): Ditto.
9121 (_mm_maskz_fixupimm_round_sd): Ditto.
9122 (_mm_fixupimm_round_ss): Ditto.
9123 (_mm_maskz_fixupimm_round_ss): Ditto.
9124 (_mm512_fixupimm_pd): Ditto.
9125 (_mm512_maskz_fixupimm_pd): Ditto.
9126 (_mm512_fixupimm_ps): Ditto.
9127 (_mm512_maskz_fixupimm_ps): Ditto.
9128 (_mm_fixupimm_sd): Ditto.
9129 (_mm_maskz_fixupimm_sd): Ditto.
9130 (_mm_fixupimm_ss): Ditto.
9131 (_mm_maskz_fixupimm_ss): Ditto.
9132 (_mm512_mask_fixupimm_round_pd): Update builtin.
9133 (_mm512_mask_fixupimm_round_ps): Ditto.
9134 (_mm_mask_fixupimm_round_sd): Ditto.
9135 (_mm_mask_fixupimm_round_ss): Ditto.
9136 (_mm512_mask_fixupimm_pd): Ditto.
9137 (_mm512_mask_fixupimm_ps): Ditto.
9138 (_mm_mask_fixupimm_sd): Ditto.
9139 (_mm_mask_fixupimm_ss): Ditto.
9140 * config/i386/avx512vlintrin.h:
9141 (_mm256_fixupimm_pd): Update parameters and builtin.
9142 (_mm256_maskz_fixupimm_pd): Ditto.
9143 (_mm256_fixupimm_ps): Ditto.
9144 (_mm256_maskz_fixupimm_ps): Ditto.
9145 (_mm_fixupimm_pd): Ditto.
9146 (_mm_maskz_fixupimm_pd): Ditto.
9147 (_mm_fixupimm_ps): Ditto.
9148 (_mm_maskz_fixupimm_ps): Ditto.
9149 (_mm256_mask_fixupimm_pd): Update builtin.
9150 (_mm256_mask_fixupimm_ps): Ditto.
9151 (_mm_mask_fixupimm_pd): Ditto.
9152 (_mm_mask_fixupimm_ps): Ditto.
9153 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9154 * config/i386/i386-builtin.def: Update builtin definitions.
9155 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9156 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9157 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9158 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9159 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9160 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9161 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9162 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9163 * config/i386/subst.md:
9164 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9165 (round_saeonly_sd_mask_op4): Ditto.
9166 (round_saeonly_expand_operand5): Ditto.
9167 (round_saeonly_expand): Update.
9169 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9173 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9175 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9176 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9177 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9178 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9179 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9180 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9181 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9183 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9187 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9190 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9191 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9192 instead of UNSPEC_FIXUPIMM.
9194 2019-01-17 Richard Biener <rguenther@suse.de>
9197 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9198 and friends for the LTO part of debug info.
9200 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9202 PR tree-optimization/86214
9203 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9206 PR rtl-optimization/88870
9207 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9208 throw if we can't alter the cfg or delete dead exceptions.
9209 (mark_insn): Don't call find_call_stack_args for such calls.
9211 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9213 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9214 prototypes for vec_st.
9215 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9216 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9217 mainly on signed/unsigned long long and double.
9219 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9222 * combine.c (delete_noop_moves): Convert to "bool" return,
9223 returning true if any edges are eliminated.
9224 (combine_instructions): Also return true if delete_noop_moves
9227 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9229 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9230 correct max nunits for endian swap.
9231 (aarch64_expand_fcmla_builtin): Correct subreg code.
9232 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9233 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9236 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9238 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9239 Handle split indirect COMPLEX_TYPE arguments.
9241 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9244 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9245 bit is set by add and compare.
9246 (CC_ADC): New CC_MODE.
9247 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9248 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9249 comparison. Add detection for CC_ADCmode.
9250 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9252 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9253 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9254 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9255 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9256 to eliminate the need for zero-extending the operands.
9257 (add<mode>3_compareC_imm): Delete. Merge into ...
9258 (add<mode>3_compareC): ... this. Restructure the comparison to
9259 eliminate the need for zero-extending the operands.
9260 (add<mode>3_carryin): Use LTU for the overflow detection.
9261 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9262 Reexpress comparison for overflow.
9263 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9264 (add<mode>3_carryinC): Likewise.
9265 (add<mode>3_carryinV): Use LTU for carry between partials.
9266 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9267 handling of CC_Cmode and add CC_ADCmode.
9268 (aarch64_borrow_operation): Likewise.
9270 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9272 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9273 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9274 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9275 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9277 2019-01-16 Martin Liska <mliska@suse.cz>
9279 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9281 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9283 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9284 (path_prefix_reset): Move up in the source file.
9285 (find_fortran_preinclude_file): Make complex search for the
9286 fortran header files.
9288 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9290 * godump.c (go_output_typedef): When outputting a typedef, refer
9291 to the underlying type by its name and not its structure.
9293 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9296 * tree.c (build_function_type): Assert that arg_types is not
9299 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9302 * doc/extend.texi: Document that listing the stack pointer in the
9303 clobber list of an asm is a deprecated feature.
9304 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9305 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9306 warning instead of an error for clobbers of the stack pointer.
9307 Add a note explaining why.
9309 2019-01-15 Richard Biener <rguenther@suse.de>
9312 * dwarf2out.c (gen_member_die): Do not generate inheritance
9315 2019-01-15 Richard Biener <rguenther@suse.de>
9317 PR tree-optimization/88855
9318 * tree-if-conv.c (combine_blocks): Collect
9319 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9321 2019-01-15 Tom de Vries <tdevries@suse.de>
9324 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9325 lhs == NULL_TREE for gang-level reduction.
9327 2019-01-15 Richard Biener <rguenther@suse.de>
9328 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9331 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9332 return true if SSA_NAME is already marked in visited bitmap.
9333 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9335 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9337 PR tree-optimization/88775
9338 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9339 equal == 0 equality pointer comparisons some more if compared in
9340 integral types and either one points to an automatic var and the
9341 other to a global, or we can prove at least one points to the middle
9342 or both point to start or both point to end.
9344 2019-01-14 Andi Kleen <ak@linux.intel.com>
9346 * Makefile.in: Lower autofdo sampling rate by 10x.
9347 * Makefile.tpl: Dito.
9349 2019-01-14 Tom Honermann <tom@honermann.net>
9351 * defaults.h: Define CHAR8_TYPE.
9353 2019-01-14 Martin Sebor <msebor@redhat.com>
9356 * doc/extend.texi (Darwin Format Checks): Clarify.
9358 2019-01-14 Richard Biener <rguenther@suse.de>
9360 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9361 whether we are in (simplify ...) or (match ...) context.
9363 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9365 PR rtl-optimization/88796
9366 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9367 * cfgexpand.c (stack_protect_prologue): Initialize
9368 crtl->stack_protect_guard_decl.
9369 * function.c (stack_protect_epilogue): Use it instead of calling
9370 targetm.stack_protect_guard again.
9371 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9372 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9373 crtl->stack_protect_guard_decl.
9374 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9375 on the returned MEM_EXPR.
9377 2019-01-12 Tom de Vries <tdevries@suse.de>
9379 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9380 vector length using -fopenacc-dim.
9382 2019-01-12 Tom de Vries <tdevries@suse.de>
9384 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9385 lengths into account.
9387 2019-01-12 Svante Signell <svante.signell@gmail.com>
9389 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9390 (TARGET_CAN_SPLIT_STACK): Define.
9391 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9393 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9395 * params.def (inline-unit-growth): Set to 40.
9397 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9399 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9401 2019-01-12 Tom de Vries <tdevries@suse.de>
9403 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9404 region calling vector-partitionable routine, set default_vector_length
9407 2019-01-12 Tom de Vries <tdevries@suse.de>
9409 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9410 variable default_vector_length.
9412 2019-01-12 Tom de Vries <tdevries@suse.de>
9415 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9416 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9419 2019-01-12 Tom de Vries <tdevries@suse.de>
9421 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9422 (nvptx_goacc_validate_dims): Add used parameter.
9423 * doc/tm.texi: Regenerate.
9424 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9425 argument to call to targetm.goacc.validate_dims.
9426 (default_goacc_validate_dims): Add used
9428 * target.def (validate_dims): Add used parameter in DEFHOOK.
9429 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9431 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9435 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9437 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9438 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9439 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9440 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9442 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9444 PR rtl-optimization/87305
9446 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9447 for little endian pseudos used as paradoxical subreg.
9449 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9451 PR tree-optimization/88693
9452 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9453 for STRING_CSTs that don't contain any NUL characters in the first
9454 TREE_STRING_LENGTH bytes.
9456 2019-01-11 Alan Modra <amodra@gmail.com>
9460 * genattrtab.c (min_fn): Don't translate values.
9461 (min_attr_value): Return INT_MAX when the value can't be calculated.
9462 Return minimum among any values that can be calculated.
9463 (max_attr_value): Adjust.
9465 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9467 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9469 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9471 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9472 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9473 (aarch64_return_call_with_max_clobbers): New function.
9474 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9475 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9477 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9478 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9479 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9480 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9481 * cselib.c (cselib_process_insn): Add argument to
9482 targetm.hard_regno_call_part_clobbered call.
9483 * ira-conflicts.c (ira_build_conflicts): Ditto.
9484 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9485 * lra-constraints.c (inherit_reload_reg): Ditto.
9486 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9487 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9488 argument. Call targetm.return_call_with_max_clobbers.
9489 Add argument to targetm.hard_regno_call_part_clobbered call.
9490 (calls_have_same_clobbers_p): New function.
9491 (process_bb_lives): Add call_insn and last_call_insn variables.
9492 Pass call_insn to check_pseudos_live_through_calls.
9493 Modify if stmt to check targetm.return_call_with_max_clobbers.
9494 Update setting of flush variable.
9495 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9497 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9498 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9499 targetm.hard_regno_call_part_clobbered call.
9500 * reginfo.c (choose_hard_reg_mode): Ditto.
9501 * regrename.c (check_new_reg_p): Ditto.
9502 * reload.c (find_equiv_reg): Ditto.
9503 * reload1.c (emit_reload_insns): Ditto.
9504 * sched-deps.c (deps_analyze_insn): Ditto.
9505 * sel-sched.c (init_regs_for_mode): Ditto.
9506 (mark_unavailable_hard_regs): Ditto.
9507 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9508 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9509 (return_call_with_max_clobbers): New target function.
9510 * doc/tm.texi: Regenerate.
9511 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9512 * hooks.c (hook_bool_uint_mode_false): Change to
9513 hook_bool_insn_uint_mode_false.
9514 * hooks.h (hook_bool_uint_mode_false): Ditto.
9516 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9518 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9519 (aarch64_remove_extra_call_preserved_regs): New function.
9520 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9521 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9522 * doc/tm.texi: Regenerate.
9523 * final.c (get_call_reg_set_usage): Call new hook.
9524 * target.def (remove_extra_call_preserved_regs): New hook.
9525 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9526 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9528 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9531 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9532 inside of pass_combine_1 dump rather than pass_profile_1.
9534 2019-01-11 Tom de Vries <tdevries@suse.de>
9536 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9537 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9538 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9539 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9542 2019-01-11 Tom de Vries <tdevries@suse.de>
9544 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9546 2019-01-11 Jan Beulich <jbeulich@suse.com>
9548 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9549 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9550 sse2_cvtsi2sd): Add {l}.
9551 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9554 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9557 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9559 (*float<floatunssuffix>v2div2sf2): New define_insn.
9560 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9561 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9562 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9563 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9564 match_operands with "const0_operand" "C".
9566 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9568 * config/aarch64/aarch64-builtins.c
9569 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9570 (aarch64_init_simd_builtins): ...Here
9572 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9574 PR rtl-optimization/87305
9576 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9577 allocation for big endian pseudos used as paradoxical subregs and
9578 spill them if it is wrong.
9579 * lra-constraints.c (lra_constraints): Add a comment.
9581 2019-01-10 Richard Biener <rguenther@suse.de>
9583 PR tree-optimization/88792
9584 * tree-ssa-pre.c (get_representative_for): Do not return a
9587 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9591 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9592 (assign_parm_setup_block): Do the argument slot realignment here
9595 2019-01-10 Stefan Agner <stefan@agner.ch>
9598 * config/arm/arm.c (arm_option_override_internal): Force
9599 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9601 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9604 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9607 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9609 * config/arm/arm-builtins.c
9610 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9611 (MAC_LANE_PAIR_QUALIFIERS): New.
9612 (arm_expand_builtin_args): Use it.
9613 (arm_expand_builtin_1): Likewise.
9614 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9615 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9616 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9617 * config/arm/arm_neon.h:
9618 (vcadd_rot90_f16): New.
9619 (vcaddq_rot90_f16): New.
9620 (vcadd_rot270_f16): New.
9621 (vcaddq_rot270_f16): New.
9624 (vcmla_lane_f16): New.
9625 (vcmla_laneq_f16): New.
9626 (vcmlaq_lane_f16): New.
9627 (vcmlaq_laneq_f16): New.
9628 (vcmla_rot90_f16): New.
9629 (vcmlaq_rot90_f16): New.
9630 (vcmla_rot90_lane_f16): New.
9631 (vcmla_rot90_laneq_f16): New.
9632 (vcmlaq_rot90_lane_f16): New.
9633 (vcmlaq_rot90_laneq_f16): New.
9634 (vcmla_rot180_f16): New.
9635 (vcmlaq_rot180_f16): New.
9636 (vcmla_rot180_lane_f16): New.
9637 (vcmla_rot180_laneq_f16): New.
9638 (vcmlaq_rot180_lane_f16): New.
9639 (vcmlaq_rot180_laneq_f16): New.
9640 (vcmla_rot270_f16): New.
9641 (vcmlaq_rot270_f16): New.
9642 (vcmla_rot270_lane_f16): New.
9643 (vcmla_rot270_laneq_f16): New.
9644 (vcmlaq_rot270_lane_f16): New.
9645 (vcmlaq_rot270_laneq_f16): New.
9646 (vcadd_rot90_f32): New.
9647 (vcaddq_rot90_f32): New.
9648 (vcadd_rot270_f32): New.
9649 (vcaddq_rot270_f32): New.
9652 (vcmla_lane_f32): New.
9653 (vcmla_laneq_f32): New.
9654 (vcmlaq_lane_f32): New.
9655 (vcmlaq_laneq_f32): New.
9656 (vcmla_rot90_f32): New.
9657 (vcmlaq_rot90_f32): New.
9658 (vcmla_rot90_lane_f32): New.
9659 (vcmla_rot90_laneq_f32): New.
9660 (vcmlaq_rot90_lane_f32): New.
9661 (vcmlaq_rot90_laneq_f32): New.
9662 (vcmla_rot180_f32): New.
9663 (vcmlaq_rot180_f32): New.
9664 (vcmla_rot180_lane_f32): New.
9665 (vcmla_rot180_laneq_f32): New.
9666 (vcmlaq_rot180_lane_f32): New.
9667 (vcmlaq_rot180_laneq_f32): New.
9668 (vcmla_rot270_f32): New.
9669 (vcmlaq_rot270_f32): New.
9670 (vcmla_rot270_lane_f32): New.
9671 (vcmla_rot270_laneq_f32): New.
9672 (vcmlaq_rot270_lane_f32): New.
9673 (vcmlaq_rot270_laneq_f32): New.
9674 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9675 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9676 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9677 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9678 vcmlaq_lane270): New.
9679 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9680 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9681 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9682 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9683 (arm_option_reconfigure_globals): Use them.
9684 * config/arm/iterators.md (VDF, VQ_HSF): New.
9685 (VCADD, VCMLA): New.
9686 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9687 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9689 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9690 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9692 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9694 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9695 Add qualifier_lane_pair_index.
9696 (emit-rtl.h): Include.
9697 (TYPES_QUADOP_LANE_PAIR): New.
9698 (aarch64_simd_expand_args): Use it.
9699 (aarch64_simd_expand_builtin): Likewise.
9700 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9702 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9703 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9704 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9705 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9706 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9707 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9708 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9709 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9710 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9711 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9712 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9713 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9714 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9715 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9716 Add __ARM_FEATURE_COMPLEX.
9717 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9718 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9719 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9720 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9721 fcmlaq_lane270): New.
9722 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9723 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9724 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9725 * config/aarch64/arm_neon.h:
9726 (vcadd_rot90_f16): New.
9727 (vcaddq_rot90_f16): New.
9728 (vcadd_rot270_f16): New.
9729 (vcaddq_rot270_f16): New.
9732 (vcmla_lane_f16): New.
9733 (vcmla_laneq_f16): New.
9734 (vcmlaq_lane_f16): New.
9735 (vcmlaq_rot90_lane_f16): New.
9736 (vcmla_rot90_laneq_f16): New.
9737 (vcmla_rot90_lane_f16): New.
9738 (vcmlaq_rot90_f16): New.
9739 (vcmla_rot90_f16): New.
9740 (vcmlaq_laneq_f16): New.
9741 (vcmla_rot180_laneq_f16): New.
9742 (vcmla_rot180_lane_f16): New.
9743 (vcmlaq_rot180_f16): New.
9744 (vcmla_rot180_f16): New.
9745 (vcmlaq_rot90_laneq_f16): New.
9746 (vcmlaq_rot270_laneq_f16): New.
9747 (vcmlaq_rot270_lane_f16): New.
9748 (vcmla_rot270_laneq_f16): New.
9749 (vcmlaq_rot270_f16): New.
9750 (vcmla_rot270_f16): New.
9751 (vcmlaq_rot180_laneq_f16): New.
9752 (vcmlaq_rot180_lane_f16): New.
9753 (vcmla_rot270_lane_f16): New.
9754 (vcadd_rot90_f32): New.
9755 (vcaddq_rot90_f32): New.
9756 (vcaddq_rot90_f64): New.
9757 (vcadd_rot270_f32): New.
9758 (vcaddq_rot270_f32): New.
9759 (vcaddq_rot270_f64): New.
9763 (vcmla_lane_f32): New.
9764 (vcmla_laneq_f32): New.
9765 (vcmlaq_lane_f32): New.
9766 (vcmlaq_laneq_f32): New.
9767 (vcmla_rot90_f32): New.
9768 (vcmlaq_rot90_f32): New.
9769 (vcmlaq_rot90_f64): New.
9770 (vcmla_rot90_lane_f32): New.
9771 (vcmla_rot90_laneq_f32): New.
9772 (vcmlaq_rot90_lane_f32): New.
9773 (vcmlaq_rot90_laneq_f32): New.
9774 (vcmla_rot180_f32): New.
9775 (vcmlaq_rot180_f32): New.
9776 (vcmlaq_rot180_f64): New.
9777 (vcmla_rot180_lane_f32): New.
9778 (vcmla_rot180_laneq_f32): New.
9779 (vcmlaq_rot180_lane_f32): New.
9780 (vcmlaq_rot180_laneq_f32): New.
9781 (vcmla_rot270_f32): New.
9782 (vcmlaq_rot270_f32): New.
9783 (vcmlaq_rot270_f64): New.
9784 (vcmla_rot270_lane_f32): New.
9785 (vcmla_rot270_laneq_f32): New.
9786 (vcmlaq_rot270_lane_f32): New.
9787 (vcmlaq_rot270_laneq_f32): New.
9788 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9789 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9790 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9791 (FCADD, FCMLA): New.
9793 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9795 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9799 * config/pa/pa.c: Change "can not" to "cannot".
9800 * gimple-ssa-evrp-analyze.c: Likewise.
9801 * ipa-icf.c: Likewise.
9802 * ipa-polymorphic-call.c: Likewise.
9803 * ipa-pure-const.c: Likewise.
9804 * lra-constraints.c: Likewise.
9805 * lra-remat.c: Likewise.
9806 * reload1.c: Likewise.
9807 * reorg.c: Likewise.
9808 * tree-ssa-uninit.c: Likewise.
9810 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9814 * Makefile.in: Mechanically replace "can not" with "cannot".
9815 * alias.c: Likewise.
9816 * builtins.c: Likewise.
9817 * calls.c: Likewise.
9818 * cgraph.c: Likewise.
9819 * cgraph.h: Likewise.
9820 * cgraphclones.c: Likewise.
9821 * cgraphunit.c: Likewise.
9822 * combine-stack-adj.c: Likewise.
9823 * combine.c: Likewise.
9824 * common/config/i386/i386-common.c: Likewise.
9825 * config/aarch64/aarch64.c: Likewise.
9826 * config/alpha/sync.md: Likewise.
9827 * config/arc/arc.c: Likewise.
9828 * config/arc/predicates.md: Likewise.
9829 * config/arm/arm-c.c: Likewise.
9830 * config/arm/arm.c: Likewise.
9831 * config/arm/arm.h: Likewise.
9832 * config/arm/arm.md: Likewise.
9833 * config/arm/cortex-r4f.md: Likewise.
9834 * config/csky/csky.c: Likewise.
9835 * config/csky/csky.h: Likewise.
9836 * config/darwin-f.c: Likewise.
9837 * config/epiphany/epiphany.md: Likewise.
9838 * config/i386/i386.c: Likewise.
9839 * config/i386/sol2.h: Likewise.
9840 * config/m68k/m68k.c: Likewise.
9841 * config/mcore/mcore.h: Likewise.
9842 * config/microblaze/microblaze.md: Likewise.
9843 * config/mips/20kc.md: Likewise.
9844 * config/mips/sb1.md: Likewise.
9845 * config/nds32/nds32.c: Likewise.
9846 * config/nds32/predicates.md: Likewise.
9847 * config/pa/pa.c: Likewise.
9848 * config/rs6000/e300c2c3.md: Likewise.
9849 * config/rs6000/rs6000.c: Likewise.
9850 * config/s390/s390.h: Likewise.
9851 * config/sh/sh.c: Likewise.
9852 * config/sh/sh.md: Likewise.
9853 * config/spu/vmx2spu.h: Likewise.
9854 * cprop.c: Likewise.
9855 * dbxout.c: Likewise.
9856 * df-scan.c: Likewise.
9857 * doc/cfg.texi: Likewise.
9858 * doc/extend.texi: Likewise.
9859 * doc/fragments.texi: Likewise.
9860 * doc/gty.texi: Likewise.
9861 * doc/invoke.texi: Likewise.
9862 * doc/lto.texi: Likewise.
9863 * doc/md.texi: Likewise.
9864 * doc/objc.texi: Likewise.
9865 * doc/rtl.texi: Likewise.
9866 * doc/tm.texi: Likewise.
9868 * emit-rtl.c: Likewise.
9869 * emit-rtl.h: Likewise.
9870 * except.c: Likewise.
9871 * expmed.c: Likewise.
9873 * fold-const.c: Likewise.
9874 * genautomata.c: Likewise.
9875 * gimple-fold.c: Likewise.
9876 * hard-reg-set.h: Likewise.
9877 * ifcvt.c: Likewise.
9878 * ipa-comdats.c: Likewise.
9879 * ipa-cp.c: Likewise.
9880 * ipa-devirt.c: Likewise.
9881 * ipa-fnsummary.c: Likewise.
9882 * ipa-icf.c: Likewise.
9883 * ipa-inline-transform.c: Likewise.
9884 * ipa-inline.c: Likewise.
9885 * ipa-polymorphic-call.c: Likewise.
9886 * ipa-profile.c: Likewise.
9887 * ipa-prop.c: Likewise.
9888 * ipa-pure-const.c: Likewise.
9889 * ipa-reference.c: Likewise.
9890 * ipa-split.c: Likewise.
9891 * ipa-visibility.c: Likewise.
9893 * ira-build.c: Likewise.
9894 * ira-color.c: Likewise.
9895 * ira-conflicts.c: Likewise.
9896 * ira-costs.c: Likewise.
9897 * ira-int.h: Likewise.
9898 * ira-lives.c: Likewise.
9901 * loop-invariant.c: Likewise.
9902 * loop-unroll.c: Likewise.
9903 * lower-subreg.c: Likewise.
9904 * lra-assigns.c: Likewise.
9905 * lra-constraints.c: Likewise.
9906 * lra-eliminations.c: Likewise.
9907 * lra-lives.c: Likewise.
9908 * lra-remat.c: Likewise.
9909 * lra-spills.c: Likewise.
9911 * lto-cgraph.c: Likewise.
9912 * lto-streamer-out.c: Likewise.
9913 * postreload-gcse.c: Likewise.
9914 * predict.c: Likewise.
9915 * profile-count.h: Likewise.
9916 * profile.c: Likewise.
9917 * recog.c: Likewise.
9919 * reload.c: Likewise.
9920 * reload1.c: Likewise.
9921 * reorg.c: Likewise.
9922 * resource.c: Likewise.
9923 * rtl.def: Likewise.
9925 * rtlanal.c: Likewise.
9926 * sched-deps.c: Likewise.
9927 * sched-ebb.c: Likewise.
9928 * sched-rgn.c: Likewise.
9929 * sel-sched-ir.c: Likewise.
9930 * sel-sched.c: Likewise.
9931 * shrink-wrap.c: Likewise.
9932 * simplify-rtx.c: Likewise.
9933 * symtab.c: Likewise.
9934 * target.def: Likewise.
9935 * toplev.c: Likewise.
9936 * tree-call-cdce.c: Likewise.
9937 * tree-cfg.c: Likewise.
9938 * tree-complex.c: Likewise.
9939 * tree-core.h: Likewise.
9940 * tree-eh.c: Likewise.
9941 * tree-inline.c: Likewise.
9942 * tree-loop-distribution.c: Likewise.
9943 * tree-nrv.c: Likewise.
9944 * tree-profile.c: Likewise.
9945 * tree-sra.c: Likewise.
9946 * tree-ssa-alias.c: Likewise.
9947 * tree-ssa-dce.c: Likewise.
9948 * tree-ssa-dom.c: Likewise.
9949 * tree-ssa-forwprop.c: Likewise.
9950 * tree-ssa-loop-im.c: Likewise.
9951 * tree-ssa-loop-ivcanon.c: Likewise.
9952 * tree-ssa-loop-ivopts.c: Likewise.
9953 * tree-ssa-loop-niter.c: Likewise.
9954 * tree-ssa-phionlycprop.c: Likewise.
9955 * tree-ssa-phiopt.c: Likewise.
9956 * tree-ssa-propagate.c: Likewise.
9957 * tree-ssa-threadedge.c: Likewise.
9958 * tree-ssa-threadupdate.c: Likewise.
9959 * tree-ssa-uninit.c: Likewise.
9960 * tree-ssanames.c: Likewise.
9961 * tree-streamer-out.c: Likewise.
9964 * vr-values.c: Likewise.
9966 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
9968 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
9969 (ix86_split_xorsign): Ditto.
9970 * config/i386/i386.c (ix86_expand_xorsign): New function.
9971 (ix86_split_xorsign): Ditto.
9972 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
9973 (xorsign<mode>3): New expander.
9974 (xorsign<mode>3_1): New insn_and_split pattern.
9975 * config/i386/sse.md (xorsign<mode>3): New expander.
9977 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
9979 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
9980 (*tablejump_sp64): Likewise.
9981 (*tablejump<P:mode>): ...this.
9982 (*call_address_sp32): Merge into...
9983 (*call_address_sp64): Likewise.
9984 (*call_address<P:mode>): ...this.
9985 (*call_symbolic_sp32): Merge into...
9986 (*call_symbolic_sp64): Likewise.
9987 (*call_symbolic<P:mode>): ...this.
9988 (call_value): Remove constraint and add predicate.
9989 (*call_value_address_sp32): Merge into...
9990 (*call_value_address_sp64): Likewise.
9991 (*call_value_address<P:mode>): ...this.
9992 (*call_value_symbolic_sp32): Merge into...
9993 (*call_value_symbolic_sp64): Likewise.
9994 (*call_value_symbolic<P:mode>): ...this.
9995 (*sibcall_symbolic_sp32): Merge into...
9996 (*sibcall_symbolic_sp64): Likewise.
9997 (*sibcall_symbolic<P:mode>): ...this.
9998 (sibcall_value): Remove constraint and add predicate.
9999 (*sibcall_value_symbolic_sp32): Merge into...
10000 (*sibcall_value_symbolic_sp64): Likewise.
10001 (*sibcall_value_symbolic<P:mode>): ...this.
10002 (window_save): Minor tweak.
10003 (*branch_sp32): Merge into...
10004 (*branch_sp64): Likewise.
10005 (*branch<P:mode>): ...this.
10007 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10008 James Clarke <jrtc27@jrtc27.com>
10011 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
10012 consistently in TLS address generation and adjust code to the renaming
10013 of patterns. Mark calls to __tls_get_addr as const.
10014 * config/sparc/sparc.md (tgd_hi22): Turn into...
10015 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
10016 (tgd_lo10): Turn into...
10017 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
10018 (tgd_add32): Merge into...
10019 (tgd_add64): Likewise.
10020 (tgd_add<P:mode>): ...this and use Pmode throughout.
10021 (tldm_hi22): Turn into...
10022 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
10023 (tldm_lo10): Turn into...
10024 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
10025 (tldm_add32): Merge into...
10026 (tldm_add64): Likewise.
10027 (tldm_add<P:mode>): ...this and use Pmode throughout.
10028 (tldm_call32): Merge into...
10029 (tldm_call64): Likewise.
10030 (tldm_call<P:mode>): ...this and use Pmode throughout.
10031 (tldo_hix22): Turn into...
10032 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
10033 (tldo_lox10): Turn into...
10034 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
10035 (tldo_add32): Merge into...
10036 (tldo_add64): Likewise.
10037 (tldo_add<P:mode>): ...this and use Pmode throughout.
10038 (tie_hi22): Turn into...
10039 (tie_hi22<P:mode>): ...this and use Pmode throughout.
10040 (tie_lo10): Turn into...
10041 (tie_lo10<P:mode>): ...this and use Pmode throughout.
10042 (tie_ld64): Use DImode throughout.
10043 (tie_add32): Merge into...
10044 (tie_add64): Likewise.
10045 (tie_add<P:mode>): ...this and use Pmode throughout.
10046 (tle_hix22_sp32): Merge into...
10047 (tle_hix22_sp64): Likewise.
10048 (tle_hix22<P:mode>): ...this and use Pmode throughout.
10049 (tle_lox22_sp32): Merge into...
10050 (tle_lox22_sp64): Likewise.
10051 (tle_lox22<P:mode>): ...this and use Pmode throughout.
10052 (*tldo_ldub_sp32): Merge into...
10053 (*tldo_ldub_sp64): Likewise.
10054 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
10055 (*tldo_ldub1_sp32): Merge into...
10056 (*tldo_ldub1_sp64): Likewise.
10057 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
10058 (*tldo_ldub2_sp32): Merge into...
10059 (*tldo_ldub2_sp64): Likewise.
10060 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
10061 (*tldo_ldsb1_sp32): Merge into...
10062 (*tldo_ldsb1_sp64): Likewise.
10063 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
10064 (*tldo_ldsb2_sp32): Merge into...
10065 (*tldo_ldsb2_sp64): Likewise.
10066 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
10067 (*tldo_ldub3_sp64): Use DImode throughout.
10068 (*tldo_ldsb3_sp64): Likewise.
10069 (*tldo_lduh_sp32): Merge into...
10070 (*tldo_lduh_sp64): Likewise.
10071 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
10072 (*tldo_lduh1_sp32): Merge into...
10073 (*tldo_lduh1_sp64): Likewise.
10074 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
10075 (*tldo_ldsh1_sp32): Merge into...
10076 (*tldo_ldsh1_sp64): Likewise.
10077 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
10078 (*tldo_lduh2_sp64): Use DImode throughout.
10079 (*tldo_ldsh2_sp64): Likewise.
10080 (*tldo_lduw_sp32): Merge into...
10081 (*tldo_lduw_sp64): Likewise.
10082 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
10083 (*tldo_lduw1_sp64): Use DImode throughout.
10084 (*tldo_ldsw1_sp64): Likewise.
10085 (*tldo_ldx_sp64): Likewise.
10086 (*tldo_stb_sp32): Merge into...
10087 (*tldo_stb_sp64): Likewise.
10088 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
10089 (*tldo_sth_sp32): Merge into...
10090 (*tldo_sth_sp64): Likewise.
10091 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
10092 (*tldo_stw_sp32): Merge into...
10093 (*tldo_stw_sp64): Likewise.
10094 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
10095 (*tldo_stx_sp64): Use DImode throughout.
10097 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10099 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10100 check configure option to set BTI and Return Address Signing.
10101 * configure.ac: Add --enable-standard-branch-protection and
10102 --disable-standard-branch-protection.
10103 * configure: Regenerated.
10104 * doc/install.texi: Document the same.
10106 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10107 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10109 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10110 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10111 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10113 * config/aarch64/aarch64-bti-insert.c: New file.
10114 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10116 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10118 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10119 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10120 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10121 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10123 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10125 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10126 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10127 Disable bti for -mbranch-protection=none.
10128 (aarch64_handle_standard_branch_protection): Enable bti for
10129 -mbranch-protection=standard.
10130 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10131 -mbranch-protection.
10132 (aarch64_bti_enabled): Check if bti is enabled.
10133 * config/aarch64/aarch64.opt: Declare target variable.
10134 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10136 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10138 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10139 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10140 (aarch64_expand_epilogue): Likewise.
10141 (aarch64_output_mi_thunk): Likewise
10142 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10143 TAILCALL_ADDR_REGS to x16 and x17.
10144 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10146 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10148 * config/aarch64/aarch64-option-extensions.def: Define
10149 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10150 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10151 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10152 (AARCH64_FL_PREDRES): New.
10153 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10154 AARCH64_FL_PREDRES by default.
10155 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10157 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10159 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10161 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10162 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10163 * doc/invoke.texi: Document ARMv8.5-A.
10165 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10167 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10168 (xorsign<mode>3): Likewise.
10170 2019-01-09 Jelinek <jakub@redhat.com>
10172 PR middle-end/88758
10173 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10174 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10176 PR rtl-optimization/88331
10177 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10178 not currently_expanding_to_rtl.
10180 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10182 * doc/invoke.texi (-Os): Remove trailing spaces.
10183 (-finline-functions): Remove reference to -O2.
10185 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10187 PR rtl-optimization/79593
10188 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10190 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10191 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10193 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10196 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10200 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10201 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10203 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10206 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10207 ix86_avx_u128_mode_entry.
10209 2019-01-08 Martin Liska <mliska@suse.cz>
10211 PR tree-optimization/88753
10212 * tree-switch-conversion.c (switch_conversion::build_one_array):
10213 Come up with local variable constructor. Convert first to
10214 type of constructor values.
10216 2019-01-08 Richard Biener <rguenther@suse.de>
10218 PR tree-optimization/86554
10219 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10220 rpo_avail): Move earlier.
10221 (visit_nary_op): When value-numbering to expressions
10222 with different overflow behavior make sure there's an
10223 available expression on the path.
10225 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10227 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10228 aarch64_parse_branch_protection,
10229 struct aarch64_branch_protect_type,
10230 aarch64_handle_no_branch_protection,
10231 aarch64_handle_standard_branch_protection,
10232 aarch64_validate_mbranch_protection,
10233 aarch64_handle_pac_ret_protection,
10234 aarch64_handle_attr_branch_protection,
10235 accepted_branch_protection_string,
10236 aarch64_pac_ret_subtypes,
10237 aarch64_branch_protect_types,
10238 aarch64_handle_pac_ret_leaf): Define.
10239 (aarch64_override_options_after_change_1, aarch64_override_options):
10240 Add check for accepted_branch_protection_string.
10241 (aarch64_option_save): Save accepted_branch_protection_string.
10242 (aarch64_option_restore): Save accepted_branch_protection_string.
10243 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10244 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10245 msign-return-address.
10246 * doc/invoke.texi: Add mbranch-protection.
10248 2019-01-08 Alan Modra <amodra@gmail.com>
10251 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10252 Delete "unknownp" parameter. Adjust callers. Handle
10253 CONST_INT, PLUS, MINUS, and MULT.
10254 (attr_value_aligned): Renamed from or_attr_value.
10255 (min_attr_value): Return INT_MIN for unhandled rtl case..
10256 (min_fn): ..and translate to INT_MAX here.
10257 (write_length_unit_log): Modify to cope without "unknown".
10258 (write_attr_value): Handle IF_THEN_ELSE.
10260 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10262 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10263 optimization for masked stores.
10265 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10267 PR middle-end/88567
10268 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10269 output vector directly to duplicate_and_interleave instead of
10270 going through a temporary. Postpone insertion of ctor_seq to
10271 the end of the loop.
10273 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10276 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10277 unsigned_p. Handle signed and unsigned overflow correction as
10279 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10281 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10283 (add<mode>3_compareV_imm): Make this callable for expanding.
10284 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10285 aarch64_plus_operand for operand 2.
10286 (subv<GPI:mode>_insn): New insn pattern.
10287 (subv<GPI:mode>_imm): Likewise.
10288 (negv<GPI:mode>3): New expand pattern.
10289 (negv<GPI:mode>_insn): New insn pattern.
10290 (negv<GPI:mode>_cmp_only): Likewise.
10291 (cmpv<GPI:mode>_insn): Likewise.
10292 (subvti4): Use register_operand for operand 1. Update call to
10293 aarch64_expand_subvti.
10294 (usubvti4): Likewise.
10295 (negvti3): New expand pattern.
10296 (negdi_carryout): New insn pattern.
10297 (negvdi_carryinV): New insn pattern.
10298 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10299 version the named version.
10300 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10302 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10304 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10306 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10307 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10308 (sub<mode>3_carryinCV): Delete.
10309 (sub<GPI:mode>3_carryinV): New expand pattern.
10310 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10312 2019-01-07 Richard Biener <rguenther@suse.de>
10314 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10315 of tree_operand_hash.
10317 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10319 PR tree-optimization/88598
10320 * tree.h (single_nonzero_element): Declare.
10321 * tree.c (single_nonzero_element): New function.
10322 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10323 if I is the only nonzero element of CST.
10325 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10327 PR tree-optimization/88598
10328 * tree.h (initializer_each_zero_or_onep): Declare.
10329 * tree.c (initializer_each_zero_or_onep): New function.
10330 (signed_or_unsigned_type_for): Handle float types too.
10331 (unsigned_type_for, signed_type_for): Update comments accordingly.
10332 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10333 x & { 0 or -1, 0 or -1, ... }.
10335 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10337 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10338 with x86_64-pc-linux-gnu.
10340 2019-01-07 Tom de Vries <tdevries@suse.de>
10343 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10345 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10348 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10350 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10351 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10352 TARGET_AVX512F as condition.
10355 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10356 const_not_ok_for_debug_p target hook.
10357 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10358 on UNSPEC and subexpressions thereof if all subexpressions of the
10359 UNSPEC are CONSTANT_P.
10361 PR tree-optimization/88676
10362 * tree-ssa-phiopt.c (two_value_replacement): New function.
10363 (tree_ssa_phiopt_worker): Call it.
10366 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10367 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10370 * tree-vect-generic.c: Include insn-config.h and recog.h.
10371 (expand_vector_piecewise): Add defaulted ret_type argument,
10372 if non-NULL, use that in preference to type for the result type.
10373 (expand_vector_parallel): Formatting fix.
10374 (do_vec_conversion, do_vec_narrowing_conversion,
10375 expand_vector_conversion): New functions.
10376 (expand_vector_operations_1): Call expand_vector_conversion
10377 for VEC_CONVERT ifn calls.
10378 * internal-fn.def (VEC_CONVERT): New internal function.
10379 * internal-fn.c (expand_VEC_CONVERT): New function.
10380 * fold-const-call.c (fold_const_vec_convert): New function.
10381 (fold_const_call): Use it for CFN_VEC_CONVERT.
10382 * doc/extend.texi (__builtin_convertvector): Document.
10384 2019-01-07 Tom de Vries <tdevries@suse.de>
10386 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10387 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10388 vector_red_partition, vector_red_sym): New global variables.
10389 (nvptx_option_override): Initialize vector_red_sym.
10390 (nvptx_declare_function_name): Restore red_partition register.
10391 (nvptx_file_end): Emit code to declare the vector reduction variables.
10392 (nvptx_output_red_partition): New function.
10393 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10394 large vector reductions.
10395 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10396 (nvptx_init_builtins): Add VECTOR_ADDR.
10397 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10398 Handle nvptx_expand_shared_addr.
10399 (nvptx_get_shared_red_addr): Add vector argument and handle large
10401 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10403 (nvptx_goacc_reduction_init): Likewise.
10404 (nvptx_goacc_reduction_fini): Likewise.
10405 (nvptx_goacc_reduction_teardown): Likewise.
10406 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10407 init,fini,teardown}.
10408 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10409 (nvptx_set_current_function): Init vector_red_partition.
10410 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10411 (nvptx_red_partition): New insn.
10412 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10414 2019-01-07 Tom de Vries <tdevries@suse.de>
10417 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10420 2019-01-07 Tom de Vries <tdevries@suse.de>
10422 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10423 (nvptx_option_override): Init oacc_bcast_partition.
10424 (nvptx_init_oacc_workers): New function.
10425 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10426 (nvptx_needs_shared_bcast): New function.
10427 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10428 to propagate state.
10429 (nvptx_shared_propagate): Initialize vector bcast partition and
10430 synchronization state.
10431 (nvptx_single): Generalize to enable vectors to use shared-memory
10432 to propagate state.
10433 (nvptx_process_pars): Likewise.
10434 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10435 * config/nvptx/nvptx.h (struct machine_function): Add
10436 bcast_partition and sync_bar members.
10438 2019-01-07 Tom de Vries <tdevries@suse.de>
10440 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10441 (nvptx_apply_dim_limits): New function.
10442 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10445 2019-01-07 Tom de Vries <tdevries@suse.de>
10447 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10448 as late as possible.
10450 2019-01-07 Tom de Vries <tdevries@suse.de>
10452 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10453 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10454 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10455 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10456 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10458 2019-01-07 Tom de Vries <tdevries@suse.de>
10460 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10462 2019-01-07 Tom de Vries <tdevries@suse.de>
10464 * omp-offload.c (oacc_get_min_dim): New function.
10465 * omp-offload.h (oacc_get_min_dim): Declare.
10467 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10470 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10471 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10473 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10477 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10479 * ipa-inline.c (edge_badness): Use inlined_time instead of
10480 inline_summaries->get.
10482 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10484 * opts.c (enable_fdo_optimizations): Enable
10485 version-loops-for-strides, loop-interchange, unrol-and-jam
10486 and tree-loop-distribution.
10487 * invoke.texi: Document newly enabled options.
10489 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10491 * doc/invoke.texi (max-inline-insns-small): New parameters.
10492 * ipa-inline.c (want_early_inline_function_p): simplify.
10493 (want_inline_small_function_p): Fix pasto from previous patch;
10494 use max-inline-insns-small bound.
10495 * params.def (max-inline-insns-small): New param.
10496 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10497 variables correctly.
10499 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10501 * doc/invoke.texi: Document max-inline-insns-size,
10502 uninlined-function-insns, uninlined-function-time,
10503 uninlined-thunk-insns and uninlined-thunk-time.
10504 * params.def: Add max-inline-insns-size,
10505 uninlined-function-insns, uninlined-function-time,
10506 uninlined-thunk-insns and uninlined-thunk-time.
10507 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10509 * ipa-inline.c (can_inline_edge_by_limits_p,
10510 want_inline_small_function_p): Use new parameters.
10512 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10514 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10516 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10518 PR middle-end/82564
10520 * expr.c (expand_assignment): For calls returning VLA structures
10521 if to_rtx is not a MEM, force it into a stack temporary.
10524 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10525 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10526 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10527 subexpressions of both operands.
10528 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10529 subrtxes are CONSTANT_P.
10530 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10531 2018-11-09 changes.
10533 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10535 * params.def (hot-bb-count-ws-permille): Set to 990.
10537 2019-01-04 Martin Sebor <msebor@redhat.com>
10540 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10543 2019-01-04 Martin Sebor <msebor@redhat.com>
10546 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10548 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10550 * gdbinit.in: Turn off pagination for the skip commands, restore
10551 it to previous state afterwards.
10553 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10556 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10557 of GET_MODE (opN) as modes of the libcall arguments.
10559 2019-01-04 Jan Beulich <jbeulich@suse.com>
10561 * config/i386/sse.md
10562 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10563 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10564 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10565 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10566 avx512f_vmcmp<mode>3<round_saeonly_name>,
10567 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10568 avx512f_maskcmp<mode>3,
10569 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10570 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10571 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10572 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10573 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10574 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10575 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10576 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10577 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10578 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10579 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10580 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10581 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10582 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10583 avx512cd_maskb_vec_dup<mode>,
10584 avx512cd_maskw_vec_dup<mode>,
10585 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10586 avx512dq_vmfpclass<mode>,
10587 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10590 2019-01-03 Martin Sebor <msebor@redhat.com>
10592 PR tree-optimization/88659
10593 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10595 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10597 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10598 unaligned vsx and avoid lxvd2x/stxvd2x.
10599 (gen_lvx_v4si_move): New function.
10601 2019-01-03 Tom de Vries <tdevries@suse.de>
10603 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10604 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10606 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10608 2019-01-03 Tom de Vries <tdevries@suse.de>
10610 * config/nvptx/nvptx.c (struct offload_attrs): New.
10611 (populate_offload_attrs): New function. Factor mask extraction out of
10612 nvptx_reorg. Add extraction of dimensions.
10613 (nvptx_reorg): Use populate_offload_attrs.
10615 2019-01-03 Tom de Vries <tdevries@suse.de>
10617 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10618 cases for oacc_min_dims_p and routine_p. Add asserts for
10619 oacc_default_dims_p and offload_region_p.
10621 2019-01-03 Tom de Vries <tdevries@suse.de>
10623 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10624 factored out of ...
10625 (nvptx_goacc_validate_dims): ... here.
10627 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10629 PR tree-optimization/85574
10630 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10632 (struct ssa_equip_hash_traits): Declare.
10633 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10635 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10638 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10639 change it to qualified_type.
10641 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10643 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10644 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10646 2019-01-02 Martin Sebor <msebor@redhat.com>
10647 Jeff Law <law@redhat.com>
10649 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10650 (get_range_strlen_tree): Update appropriately.
10652 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10654 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10655 rather than set_range_info.
10656 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10657 maybe_set_strlen_range. Handle potentially boundary crossing
10658 cases more conservatively.
10659 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10660 Call set_strlen_range.
10661 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10663 PR middle-end/88663
10664 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10665 need the flexp argument.
10666 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10667 from calls to get_range_strlen. Update comments. Just update
10668 VAL for an unterminated const char array and let the reset of the
10669 code handle it normally. No longer try to set *flexp. Adjust
10671 (get_range_strlen): Update for the new get_range_strlen API.
10672 (get_maxval_strlen): Similarly.
10673 (gimple_fold_builtin_strlen): Handle update meaning of return value
10674 from get_range_strlen.
10675 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10676 get_range_strlen API.
10678 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10681 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10682 false at WPA time when body was removed.
10684 2019-01-02 Martin Liska <mliska@suse.cz>
10686 PR tree-optimization/88650
10687 * predict.c (set_even_probabilities): Calculate probability
10688 remainer only when really used.
10690 2019-01-02 Richard Biener <rguenther@suse.de>
10692 PR middle-end/88651
10693 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10694 widest_ints when mangling max_stmt_execution results.
10696 2019-01-02 Richard Biener <rguenther@suse.de>
10698 PR tree-optimization/88621
10699 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10700 bitfields when canoncalizing.
10702 2019-01-02 Richard Biener <rguenther@suse.de>
10705 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10706 cost of cheap SSE instruction.
10708 2019-01-02 Richard Biener <rguenther@suse.de>
10711 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10712 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10714 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10715 set after UIDs before splitting them.
10717 2019-01-01 Martin Sebor <msebor@redhat.com>
10718 Jeff Law <law@redhat.com>
10720 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10721 length is optimistic. If it is, then arrange to compute the
10722 conservative length as well.
10724 * gimple-fold.h (get_range_strlen): Update prototype.
10725 * builtins.c (check_access): Update call to get_range_strlen to use
10726 c_strlen_data pointer. Change various variable accesses to instead
10727 pull data from the c_strlen_data structure.
10728 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10729 * calls.c (maybe_warn_nonstring_arg): Likewise.
10730 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10731 minimum length if maximum lengh is unknown.
10732 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10733 that used c_strlen, it's no longer needed. Restructure slightly.
10734 (format_string): Set unlikely range appropriately.
10735 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10737 (get_range_strlen): Accept c_strlen_data pointer for external
10738 call sites as well. Pass through to call to internal get_range_strlen.
10739 Adjust minlen, maxlen and maxbound as needed.
10740 (get_maxval_strlen): Update comments.
10741 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10742 to use c_strlen_data pointer. Change variable accesses to instead
10743 use c_strlen_data data members.
10745 * gimple-fold.c (get_range_strlen): Update prototype.
10746 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10747 local variables. Use pdata to return information to caller.
10748 Update calls to get_range_strlen. Update pdata->maxbound.
10749 (get_range_strlen -- static version): Similarly.
10750 (get_range_strlen -- extern version): Update for internal
10751 get_range_strlen API change. Convert to external data format.
10752 (get_maxval_strlen): Similarly.
10754 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10756 * coverage.c (get_coverage_counts): Use current_function_decl.
10757 * profile.c (read_thunk_profile): New function.
10758 (branch_prob): Add THUNK parameter.
10759 * tree-profile.c (tree_profiling): Handle thunks.
10760 * value-prof.c (init_node_map): Handle thunks.
10761 * value-prof.h (branch_prob): Upate prototype.
10762 (read_thunk_profile): Declare.
10764 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10766 Update copyright years.
10768 * gcc.c (process_command): Update copyright notice dates.
10769 * gcov-dump.c (print_version): Ditto.
10770 * gcov.c (print_version): Ditto.
10771 * gcov-tool.c (print_version): Ditto.
10772 * gengtype.c (create_file): Ditto.
10773 * doc/cpp.texi: Bump @copying's copyright year.
10774 * doc/cppinternals.texi: Ditto.
10775 * doc/gcc.texi: Ditto.
10776 * doc/gccint.texi: Ditto.
10777 * doc/gcov.texi: Ditto.
10778 * doc/install.texi: Ditto.
10779 * doc/invoke.texi: Ditto.
10781 Copyright (C) 2019 Free Software Foundation, Inc.
10783 Copying and distribution of this file, with or without modification,
10784 are permitted in any medium without royalty provided the copyright
10785 notice and this notice are preserved.