1 2019-06-06 Jim Wilson <jimw@sifive.com>
4 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
5 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
6 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
8 2019-06-06 Martin Sebor <msebor@redhat.com>
10 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
11 (handle_builtin_malloc): Remove trailing spaces.
12 (handle_builtin_memset): Same.
13 (handle_builtin_memcmp): Same.
14 (compute_string_length): Same.
15 (determine_min_objsize): Same.
16 (handle_builtin_string_cmp): Same.
17 (handle_char_store): Same. Break up excessively long line.
19 2019-06-06 Martin Jambor <mjambor@suse.cz>
21 * tree-sra.c (build_reconstructed_reference): Drop the alignment
24 2019-06-06 Martin Jambor <mjambor@suse.cz>
26 * tree-sra.c (struct access): New field grp_same_access_path.
27 (dump_access): Dump it.
28 (build_reconstructed_reference): New function.
29 (build_ref_for_model): Use it if possible.
30 (path_comparable_for_same_access): New function.
31 (same_access_path_p): Likewise.
32 (sort_and_splice_var_accesses): Set the new flag.
33 (analyze_access_subtree): Likewise.
34 (propagate_subaccesses_across_link): Propagate zero value of the new
35 flag down the access tree.
37 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
39 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
40 * config/gcn/gcn.opt (gpu_type): Add gfx906.
41 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
42 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
45 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
47 PR tree-optimization/90332
48 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
49 Handle VALS containing two vectors.
50 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
52 (@aarch64_combinez<mode>): ... This.
53 (*aarch64_combinez_be<mode>): Rename to...
54 (@aarch64_combinez_be<mode>): ... This.
55 (vec_init<mode><Vhalf>): New define_expand.
56 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
58 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
60 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
61 library functions only when not optimizing for size.
68 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
70 PR rtl-optimization/88751
71 * ira.c (ira): Use the number of the actually referenced registers
72 when calculating the threshold.
74 2019-06-06 Jakub Jelinek <jakub@redhat.com>
76 * configure: Regenerate.
78 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
80 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
81 register if it is in memory, so the shift can be emulated with a rotate
86 2019-06-06 Martin Liska <mliska@suse.cz>
88 PR tree-optimization/87954
89 * match.pd: Simplify mult where both arguments are 0 or 1.
91 2019-06-06 Richard Biener <rguenther@suse.de>
93 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
94 put equivalences on UNDEFINED ranges.
95 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
96 Make sure to drop defs of stmts added during simplification
99 2019-06-06 Richard Biener <rguenther@suse.de>
101 * tree-ssa-structalias.c: Include tree-cfg.h.
102 (make_heapvar): Do not make heap vars artificial.
103 (find_func_aliases_for_builtin_call): Handle stack allocation
105 (find_func_aliases): Delay processing of simple enough returns
107 (set_uids_in_ptset): Adjust.
108 (find_what_var_points_to): Likewise.
109 (solve_constraints): Do not dump points-to sets here.
110 (compute_points_to_sets): Post-process return statements,
111 amending the escaped solution. Dump points-to sets afterwards.
112 (ipa_pta_execute): Dump points-to sets.
114 2019-06-06 Martin Liska <mliska@suse.cz>
117 * doc/install.texi: Fix HTML headers and
118 titles for 'Installing GCC' pages.
120 2019-06-06 Martin Liska <mliska@suse.cz>
122 * ipa-icf-gimple.h (dump_message_1): Remove.
123 (dump_message): Likewise.
124 (return_false_with_message_1): Print also file.
125 (return_false_with_msg): Likewise.
126 (return_with_result): Likewise.
127 (return_with_debug): Likewise.
128 * ipa-icf.c (sem_function::equals_private): Remove call
131 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
133 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
134 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
135 memory operand for it.
136 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
138 2019-06-05 Martin Sebor <msebor@redhat.com>
140 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
141 Adjust quoting and hyphenation.
142 * convert.c (convert_to_real_1): Same.
143 * gcc.c (driver_wrong_lang_callback): Same.
144 (driver::handle_unrecognized_options): Same.
145 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
146 * opts-common.c (cmdline_handle_error): Same.
147 (read_cmdline_option): Same.
148 * opts-global.c (complain_wrong_lang): Same.
149 (print_ignored_options): Same.
150 (handle_common_deferred_options): Same.
151 * pretty-print.h: Same.
152 * print-rtl.c (debug_bb_n_slim): Same.
153 * sched-rgn.c (make_pass_sched_fusion): Same.
154 * tree-cfg.c (verify_gimple_assign_unary): Same.
155 (verify_gimple_label): Same.
156 * tree-ssa-operands.c (verify_ssa_operands): Same.
157 * varasm.c (do_assemble_alias): Same.
158 (assemble_alias): Same.
160 2019-06-05 Richard Henderson <rth@twiddle.net>
162 * config/alpha/alpha.c (direct_return): Move down after
163 struct machine_function definition; use saved frame_size;
165 (struct machine_function): Add sa_mask, sa_size, frame_size.
166 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
167 (alpha_compute_frame_layout): ... new function.
168 (TARGET_COMPUTE_FRAME_LAYOUT): New.
169 (alpha_initial_elimination_offset): Use saved sa_size.
170 (alpha_vms_initial_elimination_offset): Likewise.
171 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
172 (alpha_expand_prologue): Use saved frame data. Merge integer
173 and fp register save loops.
174 (alpha_expand_epilogue): Likewise.
175 (alpha_start_function): Use saved frame data.
176 * config/alpha/alpha-protos.h (direct_return): Update.
177 (alpha_sa_size): Remove.
179 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
181 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
182 multiplication by a power-of-two value.
183 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
184 and turn the modulo operation into a masking operation.
186 2019-06-05 Jakub Jelinek <jakub@redhat.com>
189 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
190 with VOIDmode inner operands.
192 2019-06-05 Richard Biener <rguenther@suse.de>
195 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
196 turn an expression graph into a tree.
198 2019-06-05 Jakub Jelinek <jakub@redhat.com>
200 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
202 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
203 treat it like explicit monotonic schedule modifier.
204 (expand_omp_for): Initialize has_lastprivate_conditional.
205 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
208 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
209 references, lookup in in hash map MEM_REF operand instead of the
211 (lower_omp_1): When looking for lastprivate conditional assignments,
212 handle MEM_REFs with REFERENCE_TYPE operands.
214 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
215 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
216 and references a VLA. Handle references to non-VLAs if is_simd
217 all privatization clauses like reductions.
218 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
219 If omp_is_reference, use always omp simd arrays and set
220 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
221 fails, emit reference initialization.
223 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
226 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
227 _mm_mask_fpclass_sd_mask): New intrinsics.
228 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
229 * config/i386/i386-builtin.def
230 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
232 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
233 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
234 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
235 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
236 case QI_FTYPE_V2SF_INT): Ditto.
238 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
239 Extended to insnstructions with mask operands.
241 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
243 * config/rs6000/constraints.md (define_register_constraint "wp"):
245 (define_register_constraint "wq"): Delete.
246 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
247 (rs6000_init_hard_regno_mode_ok): Adjust.
248 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
249 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
250 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
251 (define_mode_attr VSa): Delete.
252 (define_mode_attr VSisa): New.
253 (rest of file): Adjust.
254 * doc/md.texi (Machine Constraints): Adjust.
256 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
258 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
259 (define_attr "enabled"): Handle those new isa values.
261 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
263 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
264 (define_mode_attr VSr5): Delete.
265 (define_mode_attr VStype_sqrt): Delete.
266 (define_mode_iterator VSX_SPDP): Delete.
267 (define_mode_attr VS_spdp_res): Delete.
268 (define_mode_attr VS_spdp_insn): Delete.
269 (define_mode_attr VS_spdp_type): Delete.
270 (*vsx_sqrt<mode>2): Adjust.
271 (vsx_<VS_spdp_insn>): Delete, split to...
272 (vsx_xscvdpsp): ... this. New. And...
273 (vsx_xvcvspdp): ... this. New. And...
274 (vsx_xvcvdpsp): ... this. New.
276 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
278 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
280 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
281 (rest of file): Adjust.
283 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
285 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
286 (vsx_extract_<mode>_var): Ditto.
288 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
290 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
293 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
295 * config/rs6000/constraints.md (define_register_constraint "ww"):
297 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
298 (rs6000_init_hard_regno_mode_ok): Adjust.
299 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
300 RS6000_CONSTRAINT_ww.
301 * config/rs6000/rs6000.md: Adjust.
302 * config/rs6000/vsx.md: Adjust.
303 * doc/md.texi (Machine Constraints): Adjust.
305 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
307 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
308 (define_mode_attr sd): New.
309 (define_mode_attr s): New.
310 (define_mode_attr Ftrad): Delete.
311 (define_mode_attr Fvsx): Delete.
312 (define_mode_attr Fs): Delete.
313 (rest of file): Use the new mode attributes.
314 * config.rs6000/vsx.md: Use the new mode attributes.
316 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
318 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
321 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
323 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
324 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
325 used with VSX_B, VSX_D, or VSX_F, with just "wa".
327 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
330 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
331 C++ with strict ANSI requirements.
333 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
335 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
336 computations when step is 1.
338 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
340 * config/rs6000/constraints.md (define_register_constraint "wf"):
342 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
343 (rs6000_init_hard_regno_mode_ok): Adjust.
344 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
345 RS6000_CONSTRAINT_wf.
346 * config/rs6000/rs6000.md: Adjust.
347 * config/rs6000/vsx.md: Adjust.
348 * doc/md.texi (Machine Constraints): Adjust.
350 2019-06-04 Andrew Pinski <apinski@marvell.com>
352 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
355 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
357 * config/rs6000/constraints.md (define_register_constraint "wd"):
359 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
360 (rs6000_init_hard_regno_mode_ok): Adjust.
361 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
362 RS6000_CONSTRAINT_wd.
363 * config/rs6000/rs6000.md: Adjust.
364 * config/rs6000/vsx.md: Adjust.
365 * doc/md.texi (Machine Constraints): Adjust.
367 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
369 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
370 (rest of file): Adjust.
372 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
374 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
375 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
376 (vsx_splat_<mode>_reg): Adjust.
378 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
380 * config/rs6000/constraints.md (define_register_constraint "ws"):
382 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
383 (rs6000_init_hard_regno_mode_ok): Adjust.
384 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
385 RS6000_CONSTRAINT_ws.
386 * config/rs6000/rs6000.md: Adjust.
387 * config/rs6000/vsx.md: Adjust.
388 * doc/md.texi (Machine Constraints): Adjust.
390 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
392 * config/rs6000/constraints.md (define_register_constraint "wv"):
394 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
395 (rs6000_init_hard_regno_mode_ok): Adjust.
396 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
397 RS6000_CONSTRAINT_wv.
398 * config/rs6000/rs6000.md: Adjust.
399 * config/rs6000/vsx.md: Adjust.
400 * doc/md.texi (Machine Constraints): Adjust.
402 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
404 * config/rs6000/constraints.md (define_register_constraint "wi"):
406 (define_register_constraint "wt"): Delete.
407 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
408 (rs6000_init_hard_regno_mode_ok): Adjust.
409 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
410 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
411 * config/rs6000/rs6000.md: Adjust.
412 * config/rs6000/vsx.md: Adjust.
413 * doc/md.texi (Machine Constraints): Adjust.
415 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
417 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
419 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
420 default_elf_asm_output_external.
422 2019-06-04 Martin Liska <mliska@suse.cz>
424 * ipa-icf.c (INCLUDE_LIST): Remove.
425 (sem_item_optimizer::execute): Remove call to init_wpa.
426 * ipa-icf.h (init_wpa): Remove.
428 2019-06-04 Jakub Jelinek <jakub@redhat.com>
430 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
431 conditional on combined for simd.
432 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
434 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
435 constructs, don't remove lastprivate_conditional_map, but instead set
436 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
437 to parent construct temporaries.
438 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
439 like !ctx->lastprivate_conditional_map.
440 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
441 use up->outer context instead of up.
442 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
443 gimple_omp_for_combined_p.
444 (expand_omp_for_static_nochunk): Likewise.
445 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
446 probably moved over into expand_omp_for_generic rather than being copied
449 2019-06-04 Martin Liska <mliska@suse.cz>
451 * value-prof.c (dump_histogram_value): Fix typo.
452 (gimple_mod_subtract_transform): Likewise.
454 2019-06-04 Richard Biener <rguenther@suse.de>
457 * tree-chrec.c (chrec_contains_symbols): Add to visited.
458 (tree_contains_chrecs): Likewise.
459 (chrec_contains_symbols_defined_in_loop): Move here and avoid
460 exponential behaivor from ...
461 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
463 (expression_expensive_p): Avoid exponential behavior and compute
464 expanded size, rejecting any expansion.
465 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
466 (idx_contains_abnormal_ssa_name_p): Likewise.
467 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
468 (contains_abnormal_ssa_name_p): Simplify and use
469 walk_tree_without_duplicates.
471 2019-06-04 Richard Biener <rguenther@suse.de>
473 PR tree-optimization/90738
475 2019-06-03 Richard Biener <rguenther@suse.de>
477 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
478 full reference tree and record in ref->ref.
479 (vn_reference_lookup_3): Pass in original ref to
480 ao_ref_init_from_vn_reference.
481 (vn_reference_lookup): Likewise.
482 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
483 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
484 Handle non-decl bases in the original reference.
486 2019-06-04 Martin Liska <mliska@suse.cz>
488 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
489 number of references.
490 (sem_item_optimizer::do_congruence_step):
491 (sem_item_optimizer::worklist_push): Dump how references
493 (sem_item_optimizer::worklist_pop): Use heap.
494 (sem_item_optimizer::process_cong_reduction): Likewise.
495 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
497 2019-06-04 Martin Liska <mliska@suse.cz>
499 * ipa-icf.h (struct sem_usage_pair_hash): New.
500 (sem_usage_pair_hash::hash): Likewise.
501 (sem_usage_pair_hash::equal): Likewise.
502 (struct sem_usage_hash): Likewise.
503 * ipa-icf.c (sem_item::sem_item): Initialize
505 (sem_item::add_reference): Register a reference
506 in ref_map and not in target->usages.
507 (sem_item::setup): Remove initialization of
509 (sem_item::~sem_item): Remove usage of dead vectors.
510 (sem_item::dump): Remove dump of references.
511 (sem_item_optimizer::sem_item_optimizer): Initialize
513 (sem_item_optimizer::read_section): Remove useless
515 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
516 (sem_item_optimizer::build_graph): Pass m_references
518 (sem_item_optimizer::verify_classes): Remove usage of dead
520 (sem_item_optimizer::traverse_congruence_split): Return true
521 when a class is split.
522 (sem_item_optimizer::do_congruence_step_for_index): Use
523 hash_map for look up of (sem_item *, index). That brings
524 significant speed up.
525 (sem_item_optimizer::do_congruence_step): Return true
526 when a split is done.
527 (congruence_class::is_class_used): Use referenced_by_count.
529 2019-06-04 Alan Modra <amodra@gmail.com>
532 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
535 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
537 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
538 * config/rs6000/rs6000.c (direct_move_p): Adjust.
539 (rs6000_secondary_reload_simple_move): Adjust.
540 (rs6000_opt_masks): Neuter the "mfpgpr" option.
541 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
542 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
545 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
546 (floatunssi<mode>2_lfiwzx): Adjust.
547 (fix_trunc<mode>si2_stfiwx): Adjust.
548 (fixuns_trunc<mode>si2_stfiwx): Adjust.
549 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
550 (mfpgpr): Mark as deprecated.
551 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
552 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
553 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
555 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
557 * config/rs6000/constraints.md (define_register_constraint "wg"):
559 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
560 RS6000_CONSTRAINT_wg.
561 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
562 (rs6000_init_hard_regno_mode_ok): Adjust.
563 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
564 Delete "wg" alternatives.
565 * doc/md.texi (Machine Constraints): Adjust.
567 2019-06-03 Alan Modra <amodra@gmail.com>
569 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
570 (get_uncond_jump_length): Assert length less than INT_MAX and
573 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
576 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
578 (expand_builtin_nonlocal_goto): Likewise.
580 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
582 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
583 (aarch64_asm_output_external): Declare.
584 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
585 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
586 (aarch64_asm_output_alias): New.
587 (aarch64_asm_output_external): New.
588 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
589 (ASM_OUTPUT_EXTERNAL): Define.
591 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
592 * tree-vrp.h (value_range_base::nonzero_p): New.
593 (value_range_base::set_nonnull): Rename to...
594 (value_range_base::set_nonzero): ...this.
595 (value_range_base::set_null): Rename to...
596 (value_range_base::set_zero): ...this.
597 (value_range::set_nonnull): Remove.
598 (value_range::set_null): Remove.
599 * tree-vrp.c (range_is_null): Remove.
600 (range_is_nonnull): Remove.
601 (extract_range_from_binary_expr): Use value_range_base::*zero_p
602 instead of range_is_*null.
603 (extract_range_from_unary_expr): Same.
604 (value_range_base::set_nonnull): Rename to...
605 (value_range_base::set_nonzero): ...this.
606 (value_range::set_nonnull): Remove.
607 (value_range_base::set_null): Rename to...
608 (value_range_base::set_zero): ...this.
609 (value_range::set_null): Remove.
610 (extract_range_from_binary_expr): Rename set_*null uses to
612 (extract_range_from_unary_expr): Same.
613 (union_helper): Same.
614 * vr-values.c (get_value_range): Use set_*zero instead of
616 (vr_values::extract_range_from_binary_expr): Same.
617 (vr_values::extract_range_basic): Same.
619 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
622 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
624 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
626 * config/aarch64/iterators.md (MAX_OPP): New code attr.
627 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Rename to...
628 (aarch64_<su>abd<mode>_3): ... This.
629 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
631 2019-06-03 Richard Biener <rguenther@suse.de>
633 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
634 full reference tree and record in ref->ref.
635 (vn_reference_lookup_3): Pass in original ref to
636 ao_ref_init_from_vn_reference.
637 (vn_reference_lookup): Likewise.
638 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
639 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
640 Handle non-decl bases in the original reference.
642 2019-06-03 Martin Liska <mliska@suse.cz>
644 * doc/generic.texi: Remove Java Trees.
646 2019-06-03 Martin Liska <mliska@suse.cz>
648 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
649 returns 0 when operands are equal.
651 2019-06-03 Richard Biener <rguenther@suse.de>
653 PR tree-optimization/90716
654 * tree-loop-distribution.c (destroy_loop): Process blocks in
657 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
660 * vector-builder.h (vector_builder::count_dups): New method.
661 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
663 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
664 (vec_init<mode><Vel>): New pattern.
665 * config/aarch64/aarch64.c (emit_insr): New function.
666 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
667 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
668 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
669 (aarch64_sve_expand_vector_init): Define two overloaded functions.
671 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
673 PR tree-optimization/90681
674 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
675 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
676 special case for SLP, but fail on non-groupped loads.
678 2019-06-03 Martin Liska <mliska@suse.cz>
680 * cfg.c (debug): Use TDF_DETAILS for debug and
681 print edge info only once.
683 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
686 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
688 2019-06-01 Martin Sebor <msebor@redhat.com>
691 * tree-pretty-print.c (dump_generic_node): Add parentheses.
693 2019-05-31 Jan Hubicka <jh@suse.cz>
695 * alias.c: Include ipa-utils.h.
696 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
697 * ipa-devirt.c (prevailing_odr_type): New.
698 * ipa-utils.h (previaling_odr_type): Declare.
700 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
701 Hongtao Liu <hongtao.liu@intel.com>
704 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
705 NOTE_INSN_DELETED_LABEL check.
707 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
708 Robert Suchanek <robert.suchanek@mips.com>
710 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
711 and 3rd operands of the fmadd/fmsub/maddv builtin.
713 2019-05-31 Jakub Jelinek <jakub@redhat.com>
715 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
716 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
717 on OMP_SIMD if not nested inside of worksharing loop that also has
718 lastprivate conditional clause for the same decl.
719 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
720 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
722 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
724 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
726 (lower_lastprivate_clauses): Likewise.
727 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
728 calling lower_rec_input_clauses.
729 (lower_omp_for): Likewise.
730 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
731 clause on simd construct.
732 * omp-expand.c (expand_omp_simd): Initialize cond_var if
733 OMP_CLAUSE__CONDTEMP_ clause is present.
735 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
738 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
741 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
742 TEX_D32, TEX_D64 or TEX_D128.
744 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
746 * match.pd (~(vec?cst1:cst2)): New transformation.
748 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
750 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
751 ((size_t)(A /[ex] B) CMP C): New transformation.
753 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
755 * doc/md.texi: Document define_insn_and_rewrite.
756 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
757 * gensupport.c (queue_elem): Update comment.
758 (replace_operands_with_dups): New function.
759 (gen_rewrite_sequence): Likewise.
760 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
761 * read-rtl.c (apply_subst_iterator): Likewise.
762 (add_condition_to_rtx, named_rtx_p): Likewise.
763 (rtx_reader::read_rtx_operand): Likewise.
764 * config/aarch64/aarch64-sve.md
765 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
766 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
767 define_insn_and_rewrite.
768 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
769 Remove separate define_split.
771 2019-05-31 Jan Hubicka <jh@suse.cz>
773 * tree-ssa-alias.c (type_has_components_p): New function.
774 (aliasing_component_refs_p): Use it.
776 2019-05-31 Martin Liska <mliska@suse.cz>
778 * gdbhooks.py: Add const_tree to TreePrinter.
780 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
783 * common.opt (feliminate-unused-debug-symbols): Enable by default.
784 * doc/invoke.texi (Debugging Options): Document new default of
785 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
787 2019-05-31 Jakub Jelinek <jakub@redhat.com>
789 PR tree-optimization/90671
790 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
791 template_block used to be empty on the first call, don't use
792 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
793 seq with bb_seq and set it with set_bb_seq.
795 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
797 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
799 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
800 Michael Meissner <meissner@linux.ibm.com>
802 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
803 (prefixed_mem_operand): Likewise.
804 (non_prefixed_mem_operand): Likewise.
805 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
807 * config/rs6000/rs6000.c (print_operand_address): Handle
808 PC-relative addresses.
809 (mode_supports_prefixed_address_p): New function.
810 (rs6000_prefixed_address): New function.
811 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
812 (SYMBOL_REF_PCREL_P): Likewise.
814 2019-05-30 Jakub Jelinek <jakub@redhat.com>
816 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
817 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
818 (gimplify_omp_for): If worksharing loop with lastprivate conditional
819 is nested inside of parallel region, add _condtemp_ clause to both.
820 * tree-nested.c (convert_nonlocal_omp_clauses,
821 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
823 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
825 * omp-general.c (omp_extract_for_data): Compute it.
826 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
827 (lower_rec_input_clauses): Likewise.
828 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
829 clause is already present, just add one further one after it.
830 (lower_lastprivate_clauses): Handle cond_ptr with array type.
831 (lower_send_shared_vars): Clear _condtemp_ vars.
832 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
833 or section or taskgroup.
834 * omp-expand.c (determine_parallel_type): Disallow combining only if
835 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
836 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
837 (expand_omp_for_generic, expand_omp_for_static_nochunk,
838 expand_omp_for_static_chunk, expand_omp_for): Use
839 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
840 determine if a special set of API routines are needed and if condtemp
841 needs to be initialized, while always initialize cond_var if
842 fd->lastprivate_conditional is non-zero.
844 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
845 Michael Meissner <meissner@linux.ibm.com>
847 * config/rs6000/constraints.md (eI): New constraint.
848 * config/rs6000/predicates.md (cint34_operand): New predicate.
849 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
850 (SIGNED_34BIT_OFFSET_P): Likewise.
851 * doc/md.texi (eI): Document constraint.
853 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
855 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
857 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
858 Michael Meissner <meissner@linux.ibm.com>
860 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
861 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
862 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
863 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
864 (OTHER_FUTURE_MASKS): Likewise.
865 (POWERPC_MASKS): Likewise.
866 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
867 specified without -mprefixed-addr or -mcpu=future. Error if
868 -mprefixed-addr is specified without -mcpu=future.
869 (rs6000_opt_masks): Add entry for prefixed-addr.
870 * rs6000.opt (mprefixed-addr): New option.
872 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
874 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
875 cfun->is_thunk check.
877 2019-05-30 Jakub Jelinek <jakub@redhat.com>
879 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
882 2019-05-30 Martin Liska <mliska@suse.cz>
884 * gdbinit.in: Fix 'ptc' command. Add trt
885 that prints TREE_TYPE($).
887 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
888 Alan Modra <amodra@gmail.com>
890 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
892 (rs6000_indirect_call_template_1): ...and here.
893 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
894 plt16_ha, plt16_lo, mtctr indirect calls. Use
896 (rs6000_decl_ok_for_sibcall): New function.
897 (rs6000_function_ok_for_sibcall): Refactor.
898 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
899 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
900 when pcrel. Reorganize.
901 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
902 * rs6000.h (rs6000_pltseq_enum): New enum.
903 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
904 (*pltseq_tocsave): Use rs6000_pltseq_enum.
905 (*pltseq_plt16_ha): Likewise.
906 (*pltseq_plt16_lo): Likewise.
907 (*pltseq_mtctr): Likewise.
908 (*pltseq_plt_pcrel): New insn.
909 (*call_local_aix): Handle @notoc calls.
910 (*call_value_local_aix): Likewise.
911 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
912 (*call_value_nonlocal_aix): Likewise.
913 (*call_indirect_pcrel): New insn.
914 (*call_value_indirect_pcrel): Likewise.
917 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
919 * config/i386/sse.md (*save_multiple<mode>): Rename from
921 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
922 (*restore_multiple_and_return<mode>): Rename from
923 restore_multiple_and_return<mode>.
924 (*restore_multiple_leave_return<mode>): Rename from
925 restore_multiple_leave_return<mode>.
927 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
929 * config.gcc (rx-*-linux*): New target.
930 * config/rx/elf.opt: New file.
931 * config/rx/linux.h: Likewise.
932 * config/rx/t-linux: Likewise.
933 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
935 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
936 (ASM_APP_OFF): Likewise.
937 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
940 2019-05-29 Jan Hubicka <jh@suse.cz>
942 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
943 variants are pointer equivalent.
945 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
947 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
948 * config/aarch64/aarch64-sve2.md: New file.
949 (<u>avg<mode>3_floor): New pattern.
950 (<u>avg<mode>3_ceil): Likewise.
951 (*<sur>h<addsub><mode>): Likewise.
952 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
953 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
955 2019-05-29 Jakub Jelinek <jakub@redhat.com>
958 * optc-save-gen.awk: In cl_optimization_print, use correct condition
959 for var_opt_string printing. In cl_optimization_print_diff, print
960 (null) instead of invoking undefined behavior if one of the
961 var_opt_string pointers is NULL and use && instead of first || in the
962 guarding condition. For var_target_other options, handle const char *
963 target variables similarly to const char * optimize node variables.
965 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
967 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
968 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
969 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
970 Add autib1716 and pacib1716 initialisation.
971 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
972 for autib1716 and pacib1716.
973 * config/aarch64/aarch64-protos.h (aarch64_key_type,
974 aarch64_post_cfi_startproc): Define.
975 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
976 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
977 aarch64_handle_pac_ret_protection): Set default sign key to A.
978 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
979 aarch64_expand_prologue): Add check for b-key.
980 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
981 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
982 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
983 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
984 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
985 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
986 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
987 * config/aarch64/aarch64.md (do_return): Add check for b-key.
988 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
989 pauth_hint_num_a with pauth_hint_num.
990 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
991 pauth_hint_num_a with pauth_hint_num.
992 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
993 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
994 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
995 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
996 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
997 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
998 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
999 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
1000 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
1001 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
1002 UNSPEC_AUTIA1716 respectively.
1003 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to pauth_hint_num
1004 and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP, UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
1005 * doc/invoke.texi (-mbranch-protection): Add b-key type.
1006 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
1007 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
1009 2019-05-29 Jakub Jelinek <jakub@redhat.com>
1011 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
1012 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
1013 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
1014 explicit clause on combined parallel into implicit shared clause.
1015 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
1016 and firstprivate if the decl has one too from combined parallel to
1017 the worksharing construct.
1019 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
1020 Michael Meissner <meissner@linux.ibm.com>
1022 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
1024 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
1026 * rtl.h (LABEL_REF_P): New #define.
1028 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
1030 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
1032 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
1034 * internal-fn.c: Marked mask_load_direct as vectorizable.
1035 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
1036 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
1037 combined even if masks different with allow_slp_p param.
1038 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
1039 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
1040 dissolve SLP-only vectorizable groups when SLP has been discarded.
1041 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
1042 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
1044 (vect_build_slp_tree_1): Fixed comment typo.
1045 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
1046 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
1048 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
1050 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
1052 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1054 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
1055 Remove obsolete use_thunk reference.
1056 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
1057 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1058 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
1059 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
1060 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
1061 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1062 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1063 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
1064 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
1066 2019-05-28 Nathan Sidwell <nathan@acm.org>
1068 * tree.h (IDENTIFIER_ANON_P): New.
1069 (anon_aggrname_format, anon_aggname_p): Don't declare.
1070 (make_anon_name): Declare.
1071 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
1072 (hash_tree): Likewise.
1073 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
1074 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
1075 (anon_cnt, make_anon_name): New.
1077 2019-05-28 Martin Liska <mliska@suse.cz>
1080 * opts-global.c (decode_options): Print help for all
1081 help_option_arguments.
1082 * opts.c (print_help): Add new argument.
1083 (common_handle_option): Remember all values into
1084 help_option_arguments.
1085 * opts.h (print_help): Add new argument.
1087 2019-05-28 Martin Liska <mliska@suse.cz>
1090 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
1091 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
1092 (func_checker::compare_bb): Call compare_loops.
1094 2019-05-27 Jakub Jelinek <jakub@redhat.com>
1096 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
1097 on sections construct.
1098 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
1100 (lower_omp_sections): Handle lastprivate conditional.
1101 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
1102 lastprivate_conditional_map.
1103 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
1105 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
1106 critical, taskgroup and section regions when looking for a region
1107 with non-NULL lastprivate_conditional_map.
1109 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1111 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
1112 (*ix86_gen_sub3): Ditto.
1113 (*ix86_gen_sub3_carry): Ditto.
1114 (*ix86_gen_one_cmpl2): Ditto.
1115 (*ix86_gen_andsp): Ditto.
1116 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
1117 (gen_and2_insn): New static function.
1118 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
1119 Use gen_add3_insn instead of ix86_gen_add3.
1120 (ix86_expand_split_stack_prologue): Use gen_add2_insn
1121 instead of ix86_gen_add3.
1122 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
1123 Use gen_sub3_insn instead of ix86_gen_sub3.
1124 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
1125 instead of ix86_gen_add3.
1126 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
1127 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
1128 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
1129 * config/i386/i386-options.c (ix86_option_override_internal):
1130 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
1131 ix86_gen_one_cmpl2 and ix86_gen_andsp.
1133 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
1135 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
1136 and DW_OP_GNU_const_index opcodes.
1138 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
1140 * config/i386/i386.h (STACK_SIZE_MODE): Define.
1142 2019-05-27 Richard Biener <rguenther@suse.de>
1144 PR tree-optimization/90637
1145 * tree-ssa-sink.c (statement_sink_location): Honor the
1146 computed sink location for single-uses.
1148 2019-05-27 Richard Biener <rguenther@suse.de>
1151 * match.pd (vec_perm): Avoid clobbering op0 when not generating
1154 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1156 * config/i386/i386.md (@sub<mode>3_carry): Rename
1157 from sub<mode>3_carry.
1158 (@leave_<mode>): New expander.
1159 (*leave): Rename from leave.
1160 (*leave_rex64): Rename from leave_rex64.
1161 (@monitorx_<mode>): Rename from monitorx_<mode>.
1162 (@clzero_<mode>): Rename from clzero_<mode>.
1163 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
1164 from sse3_monitor_<mode>.
1165 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
1166 (*ix86_gen_leave): Ditto.
1167 (*ix86_gen_monitor): Ditto.
1168 (*ix86_gen_monitorx): Ditto.
1169 (*ix86_gen_clzero): Ditto.
1170 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
1171 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
1172 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
1173 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
1174 Use gen_sse3_monitor instead of ix86_gen_monitor.
1175 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
1176 instead of ix86_gen_monitorx.
1177 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
1178 instead of ix86_gen_clzero.
1179 * config/i386/i386-options.c (ix86_option_override_internal):
1180 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
1181 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
1183 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1185 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
1186 Rename from tls_global_dynamic_64_<mode>.
1187 (@tls_local_dynamic_base_64_<mode>): Rename from
1188 tls_local_dynamic_base_64_<mode>.
1189 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
1190 Remove indirect function.
1191 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
1192 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
1193 instead of ix86_gen_tls_global_dynamic_64.
1194 Use gen_tls_local_dynamic_base_64 instead of
1195 ix86_gen_tls_local_dynamic_base_64.
1196 * config/i386/i386-options.c (ix86_option_override_internal):
1197 Do not initialize ix86_gen_tls_global_dynamic_64 and
1198 ix86_gen_tls_local_dynamic_base_64.
1200 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
1202 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
1203 Rename from pro_epilogue_adjust_stack_<mode>_add.
1204 (@pro_epilogue_adjust_stack_sub_<mode>)
1205 Rename from pro_epilogue_adjust_stack_<mode>_sub.
1206 (@allocate_stack_worker_probe_<mode>):
1207 Rename from allocate_stack_worker_probe_<mode>.
1208 (allocate_stack): Use gen_allocate_stack_worker_probe.
1209 (probe_stack): Use gen_probe_stack_1.
1210 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
1211 (@adjust_stack_and_probe_<mode>): Rename from
1212 adjust_stack_and_probe<mode>.
1213 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
1214 (stack_protect_set): Use gen_stack_protect_set_1.
1215 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
1216 (stack_protect_test): Use gen_stack_protect_test_1.
1217 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
1218 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
1219 Remove indirect function.
1220 (*ix86_gen_adjust_stack_and_probe): Ditto.
1221 (*ix86_gen_probe_stack_range): Ditto.
1222 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
1223 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
1224 (ix86_adjust_stack_and_probe_stack_clash): Use
1225 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
1226 (ix86_adjust_stack_and_probe): Ditto.
1227 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
1228 of ix86_gen_probe_stack_range.
1229 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
1230 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
1231 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
1232 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
1233 CODE_FOR_stack_protect_test_{si,di}.
1234 * config/i386/i386-options.c (ix86_option_override_internal):
1235 Do not initialize ix86_gen_allocate_stack_worker,
1236 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
1238 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
1240 * doc/invoke.texi (Link Options): Many editorial changes around
1243 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1245 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
1246 pre-Solaris 11 referene and most Studio compiler details.
1248 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
1251 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
1252 DImode to SImode in floating-point registers on 64-bit target.
1253 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
1254 register_operand in xmpyu patterns.
1256 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1258 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
1259 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
1260 OMP_CLAUSE__REDUCTEMP_.
1261 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
1262 OMP_CLAUSE__CONDTEMP_.
1263 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
1264 * tree-pretty-print.c (dump_omp_clause): Likewise.
1265 * tree-nested.c (convert_nonlocal_omp_clauses,
1266 convert_local_omp_clauses): Likewise.
1267 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
1268 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
1269 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
1271 (gimplify_omp_for): Warn and disable conditional modifier from
1272 lastprivate on loop iterators.
1273 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
1275 * omp-general.c (omp_extract_for_data): Initialize it.
1276 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
1278 (delete_omp_context): Delete it.
1279 (lower_lastprivate_conditional_clauses): New function.
1280 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
1281 handle lastprivate conditional clauses.
1282 (lower_reduction_clauses): Add CLIST argument, emit it into
1283 the critical section if any.
1284 (lower_omp_sections): Adjust lower_lastprivate_clauses and
1285 lower_reduction_clauses callers.
1286 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
1287 to lower_lastprivate_clauses.
1288 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
1289 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
1290 clist into a critical section if not emitted there already by
1291 lower_reduction_clauses.
1292 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
1294 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
1295 conditional variables.
1296 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
1298 (expand_omp_for_generic, expand_omp_for_static_nochunk,
1299 expand_omp_for_static_chunk): Handle lastprivate conditional.
1300 (expand_omp_for): Handle fd.lastprivate_conditional like
1303 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1305 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
1306 kernel does not exit cleanly.
1307 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
1309 2019-05-24 Jason Merrill <jason@redhat.com>
1312 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1314 2019-05-24 Richard Biener <rguenther@suse.de>
1317 * tree-loop-distribution.c (struct partition): Add location
1319 (partition_alloc): Initialize all fields.
1320 (generate_memset_builtin): Use the location recorded in the
1321 partition for the generated call.
1322 (generate_memcpy_builtin): Likewise.
1323 (classify_partition): Record the location of a single store
1324 as location for the partition.
1326 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
1328 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
1331 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
1334 * common/config/aarch64/aarch64-common.c
1335 (aarch64_rewrite_selected_cpu): Change local temporary variable
1336 type from unsigned long to uint64_t.
1337 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
1338 aarch64_get_extension_string_for_isa_flags): Change declaration to
1339 match new definition by replacing unsigned long with uint64_t.
1341 2019-05-24 Jakub Jelinek <jakub@redhat.com>
1344 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
1345 gen_attr_type just once instead of 4-7 times. Formatting fixes.
1346 Handle stack_protect_test_<mode> codegen similarly to corresponding
1349 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
1351 * config/i386/darwin.h: Reject -mfentry*.
1352 * doc/sourcebuild.texi: Document mfentry target support.
1354 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1356 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
1357 Rename to rs6000_global_entry_point_prologue_needed_p. Return
1358 false for PC-relative functions.
1359 (rs6000_output_function_prologue): Change called function name to
1360 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
1361 name,1" for PC-relative functions.
1362 (rs6000_elf_declare_function_name): Change called function name to
1363 rs6000_global_entry_point_prologue_needed_p.
1365 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
1368 * config/i386/i386.c (gen_rtx_cost):
1369 Use ix86_tune_cost instead of ix86_cost.
1371 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1372 Michael Meissner <meissner@linux.ibm.com>
1373 Segher Boessenkool <segher@kernel.crashing.org>
1375 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
1377 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
1378 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
1379 (rs6000_fndecl_pcrel_p): Likewise.
1380 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
1381 error if -mpcrel is requested without -mcpu=future.
1382 (rs6000_opt_masks): Add entry for pcrel.
1383 (rs6000_fndecl_pcrel_p): New function.
1384 (rs6000_pcrel_p): Likewise.
1385 * config/rs6000/rs6000.opt (mpcrel): New option.
1386 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
1388 2019-05-23 Jan Hubicka <jh@suse.cz>
1389 Martin Liska <mliska@suse.cz>
1391 PR tree-optimization/90576
1392 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
1394 (aliasing_component_refs_p): Fix three way size compare conditional;
1395 give up earlier in case we can not decide on equivalence.
1397 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
1398 Michael Meissner <meissner@linux.ibm.com>
1399 Segher Boessenkool <segher@kernel.crashing.org>
1401 * config.gcc: Add future cpu.
1402 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
1403 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
1405 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
1406 (RS6000_CPU): New instantiation for future cpu.
1407 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1409 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
1410 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
1411 * config/rs6000/rs6000-tables.opt: Regenerate.
1412 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
1413 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
1414 (rs6000_machine_from_flags): Handle future cpu.
1415 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
1416 PROCESSOR_POWER9 for now.
1417 (rs6000_adjust_cost): Likewise.
1418 (rs6000_issue_rate): Likewise.
1419 (rs6000_register_move_cost): Likewise.
1420 (rs6000_opt_masks): Add entry for future.
1421 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
1422 (MASK_FUTURE): New #define.
1423 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
1424 * config/rs6000/rs6000.opt (mfuture): New target option.
1425 * doc/invoke.texi (mcpu): Add future cpu.
1427 2019-05-23 Martin Liska <mliska@suse.cz>
1430 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
1431 operation points to a temporary (pointed via tree_to_wide_ref)
1432 that is out of scope after the &.
1434 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
1437 * doc/extend.texi (Function Names): Add missing word.
1439 2019-05-23 Richard Biener <rguenther@suse.de>
1441 PR tree-optimization/88440
1442 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
1444 * tree-loop-distribution.c (generate_memset_builtin): Fold the
1446 (generate_memcpy_builtin): Likewise.
1447 (distribute_loop): Pass in whether to only distribute patterns.
1448 (prepare_perfect_loop_nest): Also allow size optimization.
1449 (pass_loop_distribution::execute): When optimizing a loop
1450 nest for size allow pattern replacement.
1452 2019-05-23 Jakub Jelinek <jakub@redhat.com>
1455 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
1458 2019-05-23 Martin Liska <mliska@suse.cz>
1461 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
1462 expression similarly to gimplify_decl_expr.
1464 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1466 * cse.c (cse_dump_path): s/dump_file/f.
1468 2019-05-22 David Malcolm <dmalcolm@redhat.com>
1471 * diagnostic-format-json.cc: Include "selftest.h".
1472 (json_from_expanded_location): Only add "file" key for non-NULL
1474 (json_from_location_range): Don't add "start" and "finish"
1475 children if they are UNKNOWN_LOCATION.
1476 (selftest::test_unknown_location): New selftest.
1477 (selftest::test_bad_endpoints): New selftest.
1478 (selftest::diagnostic_format_json_cc_tests): New function.
1479 * json.cc (json::object::get): New function.
1480 (selftest::test_object_get): New selftest.
1481 (selftest::json_cc_tests): Call it.
1482 * json.h (json::object::get): New decl.
1483 * selftest-run-tests.c (selftest::run_tests): Call
1484 selftest::diagnostic_format_json_cc_tests.
1485 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
1488 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
1489 Andrew Stubbs <amd@codesourcery.com>
1491 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
1492 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
1493 (kernel): Rename to...
1494 (main_kernel): ... this.
1495 (load_image): Load _init_array and _fini_array kernels.
1496 (run): Add argument for kernel to run.
1497 (main): Run init_array_kernel before main_kernel, and
1498 fini_array_kernel after.
1499 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
1500 amdgpu_hsa_kernel attribute on functions.
1501 (gcn_disable_constructors): Delete.
1502 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
1503 * config/gcn/crt0.c (size_t): Define.
1504 (_init_array, _fini_array): New.
1505 (__preinit_array_start, __preinit_array_end,
1506 __init_array_start, __init_array_end,
1507 __fini_array_start, __fini_array_end): Declare weak references.
1509 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
1511 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
1513 2019-05-22 Jason Merrill <jason@redhat.com>
1515 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
1517 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
1520 * config/i386/i386-options.c (ix86_init_machine_status): Set
1521 stack_frame_required to true.
1522 * config/i386/i386.c (ix86_get_frame_size): New function.
1523 (ix86_frame_pointer_required): Replace get_frame_size with
1524 ix86_get_frame_size.
1525 (ix86_compute_frame_layout): Likewise.
1526 (ix86_find_max_used_stack_alignment): Changed to void. Set
1527 stack_frame_required.
1528 (ix86_finalize_stack_frame_flags): Always call
1529 ix86_find_max_used_stack_alignment. Replace get_frame_size with
1530 ix86_get_frame_size.
1531 * config/i386/i386.h (machine_function): Add stack_frame_required.
1533 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
1535 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
1537 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
1539 * common/config/aarch64/aarch64-common.c
1540 (struct aarch64_option_extension, struct processor_name_to_arch,
1541 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
1542 aarch64_contains_opt,
1543 aarch64_get_extension_string_for_isa_flags): Change type of
1544 variables storing flags to uint64_t.
1545 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
1546 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
1547 * config/aarch64/aarch64.c (struct processor,
1548 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
1549 aarch64_validate_march, aarch64_override_options,
1550 aarch64_option_print, aarch64_handle_attr_isa_flags,
1551 aarch64_declare_function_name, aarch64_start_file): Make flag
1553 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
1554 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
1555 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
1556 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
1557 * config/aarch64/driver-aarch64.c
1558 (struct aarch64_arch_extension, struct aarch64_core_data,
1559 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
1560 flag variables uint64_t.
1561 * doc/invoke.texi: Add documentation for new arguments.
1563 2019-05-22 Richard Biener <rguenther@suse.de>
1565 * alias.c (ao_ref_from_mem): Move stack-slot sharing
1567 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
1569 2019-05-22 Martin Liska <mliska@suse.cz>
1572 * doc/extend.texi: Document the change.
1574 2019-05-22 Richard Biener <rguenther@suse.de>
1576 PR tree-optimization/90450
1577 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
1578 (mem_ref_hasher::equal): Check it.
1579 (mem_ref_alloc): Initialize it.
1580 (gather_mem_refs_stmt): Set it.
1582 2019-05-22 Richard Biener <rguenther@suse.de>
1584 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
1586 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
1589 2019-05-22 Alan Modra <amodra@gmail.com>
1591 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
1592 (ASM_CPU_SPEC): Conditionally add -many.
1593 * config/rs6000/rs6000.c (rs6000_machine): New static var.
1594 (rs6000_machine_from_flags, emit_asm_machine): New functions..
1595 (rs6000_file_start): ..extracted from here, and modified to
1597 (rs6000_output_function_prologue): Emit .machine as necessary.
1598 * testsuite/gcc.target/powerpc/ppc32-abi-dfp-1.c: Don't use
1600 * testsuite/gcc.dg/vect/O3-pr70130.c: Disable default options
1601 added by check_vect_support_and_set_flags.
1602 * testsuite/gcc.dg/vect/pr48765.c: Likewise.
1603 * testsuite/gfortran.dg/vect/pr45714-b.f: Likewise.
1605 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
1608 * ira-lives.c (process_bb_node_lives): Consider defs
1609 for a call insn to be die before the call, not after.
1611 * function.c (assign_parm_setup_block): Raise alignment of
1612 stacked parameter only for STRICT_ALIGNMENT targets.
1614 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1616 * config/rs6000/constraints.md (define_register_constraint "wz"):
1618 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1619 RS6000_CONSTRAINT_wz.
1620 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1621 (rs6000_init_hard_regno_mode_ok): Adjust.
1622 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
1623 * doc/md.texi (Machine Constraints): Adjust.
1625 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1627 * config/rs6000/constraints.md (define_register_constraint "wl"):
1629 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1630 RS6000_CONSTRAINT_wl.
1631 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1632 (rs6000_init_hard_regno_mode_ok): Adjust.
1633 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
1634 * doc/md.texi (Machine Constraints): Adjust.
1636 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1638 * config/rs6000/constraints.md (define_register_constraint "wm"):
1640 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1641 RS6000_CONSTRAINT_wm.
1642 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1643 (rs6000_init_hard_regno_mode_ok): Adjust.
1644 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
1645 * doc/md.texi (Machine Constraints): Adjust.
1647 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1649 * config/rs6000/constraints.md (define_register_constraint "wk"):
1651 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1652 RS6000_CONSTRAINT_wk.
1653 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1654 (rs6000_init_hard_regno_mode_ok): Adjust.
1655 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
1656 * doc/md.texi (Machine Constraints): Adjust.
1658 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1660 * config/rs6000/constraints.md (define_register_constraint "wj"):
1662 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1663 RS6000_CONSTRAINT_wj.
1664 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1665 (rs6000_init_hard_regno_mode_ok): Adjust.
1666 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
1668 * config/rs6000/vsx.md: Ditto.
1669 * doc/md.texi (Machine Constraints): Adjust.
1671 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
1673 * config/rs6000/constraints.md (define_register_constraint "wh"):
1675 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1676 RS6000_CONSTRAINT_wh.
1677 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1678 (rs6000_init_hard_regno_mode_ok): Adjust.
1679 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
1680 * doc/md.texi (Machine Constraints): Adjust.
1682 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1685 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
1686 Avoid calling gen_lowpart with CONST operand.
1688 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
1690 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
1691 field template_last_to_copy.
1692 (ssa_create_duplicates): Set it, and use it. Attempt to
1693 preserve more debug stmts.
1695 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1697 * config/i386/sse.md (VF1_AVX2): New mode iterator.
1698 (signbit<mode>2): New expander
1700 2019-05-21 James Clarke <jrtc27@jrtc27.com>
1703 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
1704 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
1706 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
1708 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
1709 %ebx and %ecx bafore calling cpuid with leaf 1 or
1710 non-constant leaf argument.
1712 2019-05-21 Alan Modra <amodra@gmail.com>
1715 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
1716 power9 direct move cost.
1717 * testsuite/gcc.target/powerpc/fold-vec-splats-floatdouble.c:
1718 Correct comments and rename functions to suit parameters.
1720 2019-05-21 Richard Biener <rguenther@suse.de>
1723 * fold-const.c (fold_read_from_vector): New function.
1724 * fold-const.h (fold_read_from_vector): Declare.
1725 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
1726 single-element insert permutations. Canonicalize selector
1727 further and fix issue with last commit.
1729 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1731 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
1732 parameter with default value false to declaration.
1733 (split_edges_for_insertion): New inline function. Wrapper for
1734 split_critical_edges with for_edge_insertion_p = true.
1735 * tree-cfg.c (split_critical_edges): Don't split non-critical
1736 edges if for_edge_insertion_p is false. Fix whitespace.
1737 * tree-ssa-pre.c (pass_pre::execute): Call
1738 split_edges_for_insertion instead of split_critical_edges.
1739 * gcc/tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
1740 * gcc/tree-ssa-sink.c (pass_sink_code::execute): Ditto.
1741 (pass_data_sink_code): Update function name in the comment.
1743 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
1745 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
1746 around is_value_included_in that knows how to handle BIT_AND_EXPR.
1747 (is_pred_expr_subset_of): Use the new function. Handle more cases where
1748 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
1751 2019-05-21 Martin Liska <mliska@suse.cz>
1753 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
1755 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
1756 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
1758 * config/rs6000/rs6000.c (rs6000_option_override_internal):
1760 (rs6000_function_arg): Likewise.
1761 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
1762 (rs6000_expand_ternop_builtin): Use interval syntax.
1763 (get_element_number): Likewise.
1764 (altivec_expand_builtin): Likewise.
1765 (rs6000_get_function_versions_dispatcher): Quote target_clones.
1769 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1773 * function.h (struct function): Add calls_eh_return member.
1774 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
1775 gimplifying __builtin_eh_return call.
1776 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
1778 (expand_call_inline): Or in src_cfun->calls_eh_return into
1779 dst_cfun->calls_eh_return.
1780 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
1781 cfun->calls_eh_return.
1782 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
1783 * lto-streamer-out.c (output_struct_function_base): Write
1786 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
1788 PR rtl-optimization/43147
1789 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
1790 IX86_BUILTIN_SHUFPD.
1792 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1794 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
1795 (refs_may_alias_p_1): ... here; update stats.
1796 (refs_may_alias_p): Do not update stats here.
1798 2019-05-20 Richard Biener <rguenther@suse.de>
1800 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
1801 doesn't produce pointers.
1802 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
1803 the first operand points to.
1805 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
1807 * tree-ssa-alias.c (compare_sizes): New function.
1808 (sompare_type_sizes): New function
1809 (aliasing_component_refs_p): Use it.
1810 (indirect_ref_may_alias_decl_p): Likewise.
1812 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1814 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
1816 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1818 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
1819 (LIBLSAN_EARLY_SPEC): Likewise.
1820 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
1822 2019-05-20 Martin Liska <mliska@suse.cz>
1824 * config/i386/i386.c (ix86_libc_has_fast_function):
1825 Add ATTRIBUTE_UNUSED for the argument.
1827 2019-05-20 Richard Biener <rguenther@suse.de>
1829 * gimple-match-head.c: Include vec-perm-indices.h.
1830 * generic-match-head.c: Likewise.
1831 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
1833 * fold-const.c (fold_vec_perm): Export.
1834 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
1835 (match.pd): ...here.
1837 2019-05-20 Jakub Jelinek <jakub@redhat.com>
1839 * cfgloop.h (struct loop): Add simdlen member.
1840 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
1841 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
1842 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
1843 as new argument to autovectorize_vector_sizes target hook. If
1844 loop->simdlen, pick up vector size where the vectorization factor
1845 is equal to loop->simd, and if there is none, fall back to the first
1847 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
1849 * omp-low.c (omp_clause_aligned_alignment): Likewise.
1850 * omp-general.c (omp_max_vf): Likewise.
1851 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
1852 * tree-vect-slp.c (vect_slp_bb): Likewise.
1853 * target.def (autovectorize_vector_sizes): Add ALL argument and
1855 * doc/tm.texi: Adjust documentation.
1856 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
1857 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
1858 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
1860 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
1861 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
1862 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
1863 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
1864 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
1865 preferred vector size is not 512-bit or 256-bit, just put those
1866 unpreferred ones last.
1868 2019-05-20 Martin Liska <mliska@suse.cz>
1870 * targhooks.c (default_libc_has_fast_function): New function.
1871 * targhooks.h (default_libc_has_fast_function): Likewise.
1873 2019-05-20 Martin Liska <mliska@suse.cz>
1876 * builtins.c (expand_builtin_memory_copy_args): When having a
1877 target with fast mempcpy implementation do now use memcpy.
1878 * config/i386/i386.c (ix86_libc_has_fast_function): New.
1879 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
1880 * doc/tm.texi: Likewise.
1881 * doc/tm.texi.in: Likewise.
1883 * expr.c (emit_block_move_hints): Add 2 new arguments.
1884 * expr.h (emit_block_move_hints): Bail out when libcall
1885 to memcpy would be used.
1887 2019-05-20 Martin Liska <mliska@suse.cz>
1889 * profile-count.c: Add vertical spacing in order
1890 to separate functions.
1891 * profile-count.h: Likewise.
1893 2019-05-20 Martin Liska <mliska@suse.cz>
1895 * profile-count.h: Do not use full qualified
1897 * profile-count.c (profile_count::to_frequency): Likewise.
1899 2019-05-20 Martin Liska <mliska@suse.cz>
1901 * profile-count.h (enum profile_quality): Use capital letters
1902 for enum value names. Use the adjusted names.
1903 * profile-count.c: Use the adjusted names.
1905 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1907 * config/rs6000/constraints.md (define_register_constraint "wH"):
1909 (define_register_constraint "wI"): Delete.
1910 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1911 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
1912 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1913 (rs6000_init_hard_regno_mode_ok): Adjust.
1914 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
1915 resp. "d", or with "wa" as appropriate, all with "p8v".
1916 * config/rs6000/vsx.md: Ditto.
1917 * doc/md.texi (Machine Constraints): Adjust.
1919 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1921 * config/rs6000/constraints.md (define_register_constraint "wy"):
1923 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1924 RS6000_CONSTRAINT_wy.
1925 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1926 (rs6000_init_hard_regno_mode_ok): Adjust.
1927 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
1928 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
1929 (define_mode_attr Fisa): New.
1930 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
1931 * doc/md.texi (Machine Constraints): Adjust.
1933 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1935 * config/rs6000/constraints.md (define_register_constraint "wu"):
1937 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1938 RS6000_CONSTRAINT_wu.
1939 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1940 (rs6000_init_hard_regno_mode_ok): Adjust.
1941 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
1943 (define_mode_attr Fa): Delete.
1944 * config/rs6000/vsx.md: Ditto.
1945 * doc/md.texi (Machine Constraints): Adjust.
1947 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1949 * config/rs6000/constraints.md (define_register_constraint "wJ"):
1951 (define_register_constraint "wK"): Delete.
1952 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1953 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
1954 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1955 (rs6000_init_hard_regno_mode_ok): Adjust.
1956 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
1957 Replace "wK" constraint by "wH" with "p9v".
1958 * config/rs6000/vsx.md: Ditto.
1959 * doc/md.texi (Machine Constraints): Adjust.
1961 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1963 * config/rs6000/constraints.md (define_register_constraint "wb"):
1965 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1966 RS6000_CONSTRAINT_wb.
1967 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1968 (rs6000_init_hard_regno_mode_ok): Adjust.
1969 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
1970 * config/rs6000/vsx.md: Ditto.
1971 * doc/md.texi (Machine Constraints): Adjust.
1973 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
1975 * config/rs6000/constraints.md (define_register_constraint "wo"):
1977 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
1978 RS6000_CONSTRAINT_wo.
1979 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
1980 (rs6000_init_hard_regno_mode_ok): Adjust.
1981 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
1982 * config/rs6000/altivec.md: Ditto.
1983 * doc/md.texi (Machine Constraints): Adjust.
1985 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1987 * config/darwin-c.c (darwin_register_objc_includes): Do not
1988 prepend the sysroot when building gnu-runtime header search
1991 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
1993 * config/darwin.c (darwin_file_end): Use switch_to_section ()
1994 instead of direct output of the asm.
1996 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
1998 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
1999 argument to be type bool (was int before).
2000 (rs6000_emit_epilogue): Simplify some code. Declare some variables
2001 at first use. Use type bool for some variables. Fix a theoretical
2002 eh_return bug for svr4.
2004 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
2006 * config/rs6000/rs6000.md (isa): New attribute.
2007 (enabled): New attribute.
2009 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
2011 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
2012 assemble_start_function and assemble_end_function.
2014 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
2017 * omp-general.c (oacc_verify_routine_clauses): Change formal
2018 parameters. Add checking if already marked with an OpenACC
2019 'routine' directive. Adjust all users.
2022 * omp-general.c (oacc_build_routine_dims): Move some of its
2024 (oacc_verify_routine_clauses): ... this new function.
2025 * omp-general.h (oacc_verify_routine_clauses): New prototype.
2027 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2029 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
2030 formating of picbase labels to match other ports.
2032 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
2034 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
2035 in the generated code.
2037 2019-05-16 Martin Sebor <msebor@redhat.com>
2039 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
2040 identifiers, keywords, operators, and types in diagnostics. Correct
2041 quoting, spelling, and sentence capitalization issues.
2042 (expand_builtin_atomic_is_lock_free): Same.
2043 (fold_builtin_next_arg): Same.
2044 * cfgexpand.c (expand_one_var): Same.
2045 (tree_conflicts_with_clobbers_p): Same.
2046 (expand_asm_stmt): Same.
2047 (verify_loop_structure): Same.
2048 * cgraphunit.c (process_function_and_variable_attributes): Same.
2049 * collect-utils.c (collect_execute): Same.
2050 * collect2.c (maybe_run_lto_and_relink): Same.
2051 (is_lto_object_file): Same.
2052 (scan_prog_file): Same.
2053 * convert.c (convert_to_real_1): Same.
2054 * dwarf2out.c (dwarf2out_begin_prologue): Same.
2055 * except.c (verify_eh_tree): Same.
2056 * gcc.c (execute): Same.
2057 (eval_spec_function): Same.
2058 (run_attempt): Same.
2059 (driver::set_up_specs): Same.
2060 (compare_debug_auxbase_opt_spec_function): Same.
2061 * gcov-tool.c (unlink_gcda_file): Same.
2064 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
2065 * gimplify.c (gimplify_asm_expr): Same.
2066 (gimplify_adjust_omp_clauses): Same.
2067 * hsa-gen.c (gen_hsa_addr_insns): Same.
2068 (gen_hsa_insns_for_load): Same.
2069 (gen_hsa_cmp_insn_from_gimple): Same.
2070 (gen_hsa_insns_for_operation_assignment): Same.
2071 (gen_get_level): Same.
2072 (gen_hsa_alloca): Same.
2073 (omp_simple_builtin::generate): Same.
2074 (gen_hsa_atomic_for_builtin): Same.
2075 (gen_hsa_insns_for_call): Same.
2076 * input.c (dump_location_info): Same.
2077 * ipa-devirt.c (compare_virtual_tables): Same.
2078 * ira.c (ira_setup_eliminable_regset): Same.
2079 * lra-assigns.c (lra_assign): Same.
2080 * lra-constraints.c (lra_constraints): Same.
2081 * lto-streamer-in.c (lto_input_mode_table): Same.
2082 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
2083 (merge_and_complain): Same.
2084 (compile_offload_image): Same.
2085 (compile_images_for_offload_targets): Same.
2086 (debug_objcopy): Same.
2089 * opts.c (print_specific_help): Same.
2090 (parse_no_sanitize_attribute): Same.
2092 (handle_param): Same.
2093 * plugin.c (add_new_plugin): Same.
2094 (parse_plugin_arg_opt): Same.
2095 (try_init_one_plugin): Same.
2096 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
2097 operators, and types in diagnostics. Correct quoting and spelling
2099 * read-rtl-function.c (parse_edge_flag_token): Same.
2100 (function_reader::parse_enum_value): Same.
2101 * reg-stack.c (check_asm_stack_operands): Same.
2102 * regcprop.c (validate_value_data): Same.
2103 * sched-rgn.c (make_pass_sched_fusion): Same.
2104 * stmt.c (check_unique_operand_names): Same.
2105 * targhooks.c (default_target_option_pragma_parse): Same.
2106 * tlink.c (recompile_files): Same.
2107 * toplev.c (process_options): Same.
2109 * trans-mem.c (diagnose_tm_1): Same.
2110 (ipa_tm_scan_irr_block): Same.
2111 (ipa_tm_diagnose_transaction): Same.
2112 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
2113 format a tree code name in a diagnostic.
2114 (verify_types_in_gimple_min_lval): Same.
2115 (verify_types_in_gimple_reference): Same.
2116 (verify_gimple_call): Same.
2117 (verify_gimple_assign_unary): Same.
2118 (verify_gimple_assign_binary): Same.
2119 (verify_gimple_assign_ternary): Same.
2120 (verify_gimple_assign_single): Same.
2121 (verify_gimple_switch): Same.
2122 (verify_gimple_label): Same.
2123 (verify_gimple_phi): Same.
2124 (verify_gimple_in_seq): Same.
2125 (verify_eh_throw_stmt_node): Same.
2126 (collect_subblocks): Same.
2127 (gimple_verify_flow_info): Same.
2128 (do_warn_unused_result): Same.
2129 * tree-inline.c (expand_call_inline): Same.
2130 * tree-into-ssa.c (update_ssa): Same.
2131 * tree.c (tree_int_cst_elt_check_failed): Same.
2132 (tree_vec_elt_check_failed): Same.
2133 (omp_clause_operand_check_failed): Same.
2134 (verify_type_variant): Same.
2135 (verify_type): Same.
2136 * value-prof.c (verify_histograms): Same.
2137 * varasm.c (assemble_start_function): Same.
2139 2019-05-16 Martin Sebor <msebor@redhat.com>
2141 * config/i386/i386-expand.c (get_element_number): Quote keywords
2142 and other internal names in diagnostics. Adjust other diagnostic
2143 formatting issues noted by -Wformat-diag.
2144 * config/i386/i386-features.c
2145 (ix86_mangle_function_version_assembler_name): Same.
2146 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
2147 * config/i386/i386.c (ix86_function_type_abi): Same.
2148 (ix86_function_ms_hook_prologue): Same.
2149 (classify_argument): Same.
2150 (ix86_expand_prologue): Same.
2151 (ix86_md_asm_adjust): Same.
2152 (ix86_memmodel_check): Same.
2154 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
2156 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
2157 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
2160 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
2163 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
2164 intrinsics without SSE/SSE2/SSSE3.
2165 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
2167 (*mmx_uavgv8qi3): Likewise.
2169 2019-05-17 Richard Biener <rguenther@suse.de>
2171 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
2172 VEC_PERM_EXPR as __VEC_PERM with -gimple.
2174 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
2176 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
2177 vec_sldw insn pattern.
2179 2019-05-17 Richard Biener <rguenther@suse.de>
2181 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
2183 2019-05-17 Martin Liska <mliska@suse.cz>
2186 * toplev.c (output_stack_usage): With LTO and sanitizer it
2187 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
2188 has no file location.
2190 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2193 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
2194 sz0 is equal to sz1, instead return false in that case.
2196 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
2197 has non-constant expression, force sctx.lane and use two
2198 argument IFN_GOMP_SIMD_LANE instead of single argument.
2199 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
2200 two argument IFN_GOMP_SIMD_LANE without lhs.
2201 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
2203 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
2205 (LOOP_REQUIRES_VERSIONING): Or in
2206 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
2207 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
2209 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
2210 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
2211 from simd if clause if needed.
2213 2019-05-16 Richard Biener <rguenther@suse.de>
2215 * tree-affine.c (expr_to_aff_combination): New function split
2217 (tree_to_aff_combination): ... here.
2218 (aff_combination_expand): Avoid building a GENERIC tree.
2220 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
2222 * cgraphunit.c (cgraph_node::expand_thunk): Remove
2223 assemble_start_function and assemble_end_function calls.
2224 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
2225 assemble_start_function and assemble_end_function.
2226 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
2227 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
2228 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
2229 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
2230 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
2231 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
2232 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
2233 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
2234 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
2235 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
2236 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
2237 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
2239 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
2240 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
2241 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
2242 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
2243 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
2244 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
2245 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
2246 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
2247 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2248 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2249 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2250 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2251 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
2252 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
2254 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
2255 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
2256 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
2258 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
2260 * tree-ssa-alias.c (alias_stats): Add
2261 aliasing_component_refs_p_may_alias and
2262 aliasing_component_refs_p_no_alias.
2263 (dump_alias_stats): Print aliasing_component_refs_p stats.
2264 (aliasing_component_refs_p): Update stats.
2266 2019-05-16 Martin Liska <mliska@suse.cz>
2269 * multiple_target.c (expand_target_clones): Do not allow
2270 target_clones being used with a symbol that is an alias.
2272 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
2274 PR tree-optimization/90394
2275 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
2276 positives rather than ICE for cases where (code2 == NE_EXPR
2277 && code1 == BIT_AND_EXPR).
2279 2019-05-16 Jakub Jelinek <jakub@redhat.com>
2282 * tree-core.h (struct tree_decl_common): Document
2283 decl_nonshareable_flag for PARM_DECLs.
2284 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
2285 * calls.c (expand_call): Don't try tail call if caller
2286 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
2287 passed on the stack and callee needs to pass any arguments on the
2289 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2290 else if instead of series of mutually exclusive ifs. Handle
2291 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
2292 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2294 * lto-streamer.h (LTO_major_version): Bump to 9.
2296 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
2298 PR tree-optimization/90106
2299 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
2300 new parameter as new internal function call, also move it to new
2302 (use_internal_fn): Pass internal function call to
2303 shrink_wrap_one_built_in_call_with_conds.
2305 2019-05-15 Jakub Jelinek <jakub@redhat.com>
2307 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
2309 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
2310 safelen_int and set loop->dont_vectorize.
2312 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2315 * config/i386/i386-builtin.def: Enable MMX intrinsics with
2317 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
2319 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
2320 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
2321 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
2324 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2327 * config/i386/mmx.md (*vec_dupv2sf): Changed to
2328 define_insn_and_split to support SSE emulation.
2329 (*vec_extractv2sf_0): Likewise.
2330 (*vec_extractv2sf_1): Likewise.
2331 (*vec_extractv2si_0): Likewise.
2332 (*vec_extractv2si_1): Likewise.
2333 (*vec_extractv2si_zext_mem): Likewise.
2334 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
2335 (vec_extractv2sf_1 splitter): Likewise.
2336 (vec_extractv2sfsf): Likewise.
2337 (vec_setv2si): Likewise.
2338 (vec_extractv2si_1 splitter): Likewise.
2339 (vec_extractv2sisi): Likewise.
2340 (vec_setv4hi): Likewise.
2341 (vec_extractv4hihi): Likewise.
2342 (vec_setv8qi): Likewise.
2343 (vec_extractv8qiqi): Likewise.
2344 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2345 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
2346 (vec_extractv2sisi): Likewise.
2347 (vec_extractv4hihi): Likewise.
2348 (vec_extractv8qiqi): Likewise.
2349 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
2350 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
2351 (vec_initv2sisi): Likewise.
2352 (vec_initv4hihi): Likewise.
2353 (vec_initv8qiqi): Likewise.
2354 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
2355 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
2356 (vec_setv4hi): Likewise.
2357 (vec_setv8qi): Likewise.
2359 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2362 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
2363 TARGET_MMX_WITH_SSE.
2364 (MMXMODE:*mov<mode>_internal): Likewise.
2365 (MMXMODE:movmisalign<mode>): Likewise.
2367 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
2370 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
2371 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
2372 (sse2_cvtpd2pi): Ditto.
2373 (sse2_cvttpd2pi): Ditto.
2374 (*vec_concatv2sf_sse4_1): Ditto.
2375 (*vec_concatv2sf_sse): Ditto.
2376 (*vec_concatv2si_sse4_1): Ditto.
2377 (*vec_concatv2si): Ditto.
2378 (*vec_concatv4si_0): Ditto.
2379 (*vec_concatv2di_0): Ditto.
2381 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2384 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
2386 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2389 * config/i386/sse.md (ssse3_palignrdi): Changed to
2390 define_insn_and_split to support SSE emulation.
2392 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2395 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
2397 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2400 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
2401 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2404 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2407 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
2408 or TARGET_MMX_WITH_SSE.
2409 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
2411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2414 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
2416 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2419 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
2420 Changed to define_insn_and_split to support SSE emulation.
2422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2425 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
2426 Changed to define_insn_and_split to support SSE emulation.
2428 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2431 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
2432 (*mmx_<emms>): This.
2433 (mmx_<emms>): New expander.
2435 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2438 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
2440 (*sse2_umulv1siv1di3): Add SSE2 emulation.
2442 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2445 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
2447 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2450 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
2452 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2455 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
2456 TARGET_MMX_WITH_SSE.
2457 (*mmx_uavgv4hi3): Add SSE emulation.
2459 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2462 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
2463 and TARGET_MMX_WITH_SSE.
2464 (*mmx_uavgv8qi3): Add SSE emulation.
2466 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2469 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
2470 maskmovdqu for __MMX_WITH_SSE__.
2472 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2475 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
2476 TARGET_MMX and TARGET_MMX_WITH_SSE.
2477 (*mmx_umulv4hi3_highpart): Add SSE emulation.
2479 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2482 * config/i386/mmx.md (mmx_pmovmskb): Changed to
2483 define_insn_and_split to support SSE emulation.
2485 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2488 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
2489 and TARGET_MMX_WITH_SSE.
2490 (mmx_<code>v8qi3): Likewise.
2491 (smaxmin:<code>v4hi3): New.
2492 (umaxmin:<code>v8qi3): Likewise.
2493 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
2494 (umaxmin:*mmx_<code>v8qi3): Likewise.
2496 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2499 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
2500 TARGET_MMX_WITH_SSE.
2501 (*mmx_pinsrw): Add SSE emulation.
2503 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2506 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
2508 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2511 * config/i386/sse.md (sse_cvtpi2ps): Changed to
2512 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
2515 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2518 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
2519 (sse_cvttps2pi): Likewise.
2521 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2524 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
2525 TARGET_MMX_WITH_SSE.
2526 (mmx_pshufw_1): Add SSE emulation.
2527 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
2528 TARGET_MMX_WITH_SSE to support SSE emulation.
2530 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2533 * config/i386/constraints.md (Yw): New constraint.
2534 * config/i386/mmx.md (*vec_dupv2si): Changed to
2535 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
2536 support SSE emulation.
2538 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2541 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
2542 TARGET_MMX_WITH_SSE.
2543 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2545 (mmx_gt<mode>3): Likewise.
2547 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2550 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
2551 TARGET_MMX_WITH_SSE. Add SSE support.
2553 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2556 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
2557 TARGET_MMX_WITH_SSE.
2558 (any_logic:<code><mode>3): New.
2559 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
2562 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2565 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
2566 TARGET_MMX_WITH_SSE. Add SSE emulation.
2567 (mmx_<shift_insn><mode>3): Likewise.
2569 (<shift_insn><mode>3): Likewise.
2571 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2574 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
2575 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
2577 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2580 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
2581 TARGET_MMX_WITH_SSE.
2582 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
2585 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2588 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
2589 TARGET_MMX_WITH_SSE.
2591 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
2594 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2597 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
2598 (plusminus:mmx_<plusminus_insn><mode>3): Check
2599 TARGET_MMX_WITH_SSE.
2600 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
2601 (<plusminus_insn><mode>3): New.
2602 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
2603 (*mmx_<plusminus_insn><mode>3): Likewise.
2605 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2608 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
2609 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
2611 * config/i386/mmx.m (mmx_punpckhbw): Changed to
2612 define_insn_and_split to support SSE emulation.
2613 (mmx_punpcklbw): Likewise.
2614 (mmx_punpckhwd): Likewise.
2615 (mmx_punpcklwd): Likewise.
2616 (mmx_punpckhdq): Likewise.
2617 (mmx_punpckldq): Likewise.
2619 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2620 Uros Bizjak <ubizjak@gmail.com>
2623 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
2625 (ix86_split_mmx_pack): Likewise.
2626 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
2628 (ix86_split_mmx_pack): Likewise.
2629 * config/i386/i386.md (mmx_isa): New.
2630 (enabled): Also check mmx_isa.
2631 * config/i386/mmx.md (any_s_truncate): New code iterator.
2632 (s_trunsuffix): New code attr.
2633 (mmx_packsswb): Removed.
2634 (mmx_packssdw): Likewise.
2635 (mmx_packuswb): Likewise.
2636 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
2637 MMX packsswb/packuswb with SSE2.
2638 (mmx_packssdw): Likewise.
2639 * config/i386/predicates.md (register_mmxmem_operand): New.
2641 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
2644 * config/i386/i386-c.c (ix86_target_macros_internal): Define
2645 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
2646 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
2647 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
2648 (ix86_vector_mode_supported_p): Likewise.
2649 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
2651 2019-05-15 Martin Liska <mliska@suse.cz>
2654 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2657 2019-05-15 Richard Biener <rguenther@suse.de>
2659 * tree-into-ssa.c (pass_build_ssa::execute): Run
2660 update_address_taken before going into SSA.
2662 2019-05-15 Richard Biener <rguenther@suse.de>
2664 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
2665 as __BIT_FIELD_REF with type with -gimple.
2667 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
2669 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
2670 semantically equivalent branches (left over after prior refactorings).
2672 2019-05-15 Richard Biener <rguenther@suse.de>
2674 PR tree-optimization/88828
2675 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
2678 2019-05-14 Richard Biener <rguenther@suse.de>
2680 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
2681 as __VIEW_CONVERT with -gimple.
2683 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2686 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
2689 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2691 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
2692 define_split to become a define_insn_and_split.
2694 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
2696 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
2698 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
2699 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
2700 (sibcall_epilogue): Adjust.
2703 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2705 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
2706 to unsupported ones.
2707 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
2708 * config.host: Likewise.
2709 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
2710 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
2711 __svr4__]: Remove "brand" fallback.
2712 [!KSTAT_DATA_STRING]: Remove.
2713 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
2715 (comdat_group): Likewise.
2716 (set_have_as_tls): Likewise.
2717 (gcc_cv_target_dl_iterate_phdr): Likewise.
2718 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
2719 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
2720 * configure: Regenerate.
2721 * doc/install.texi: Simplify Solaris target triplets.
2722 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
2723 (Specific, *-*-solaris2*): Document Solaris 10 removal.
2724 Remove Solaris 10 references.
2725 Remove obsolete Solaris bug reference.
2726 (Specific, sparc-sun-solaris2.10): Remove.
2728 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
2730 * config/i386/i386.md (any_div): New code iterator.
2731 (paired_mod): New code attribute.
2732 (sgnprefix): Handle DIV and UDIV RTXes.
2734 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
2735 and udivmod<mode>4 patterns using any_div code iterator.
2736 (divmod splitters): Macroize splitters using any_div code iterator.
2737 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
2738 (*udivmodsi4_pow2_zext_2): Ditto.
2739 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
2740 and *udivmod<mode>4_noext patterns using any_div code iterator.
2741 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
2742 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
2743 patterns using any_div code iterator.
2744 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
2745 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
2746 patterns using any_div code iterator.
2747 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
2748 udivmodhiqi3 patterns using any_extend code iterator.
2750 2019-05-14 Richard Biener <rguenther@suse.de>
2751 H.J. Lu <hongjiu.lu@intel.com>
2753 PR tree-optimization/88828
2754 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
2755 permuting in a single non-constant element not extracted
2758 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
2760 * internal-fn.def (SIGNBIT): New.
2761 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
2763 (signbitv4sf2): Likewise.
2765 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
2768 * config/mips/mips.c (mips_split_move): Skip forward SRC into
2769 next insn when the SRC reg is dead.
2771 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
2773 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
2774 (alloc_cand_and_find_basis): Ditto.
2775 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
2776 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
2777 (create_add_imm_cand, slsr_process_cast): Ditto.
2778 (slsr_process_copy, replace_mult_candidate): Ditto.
2779 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
2780 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
2781 (pass_strength_reduction::execute): Init the first NULL element.
2783 2019-05-13 Nathan Sidwell <nathan@acm.org>
2785 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
2786 (run_attempt): Reformat line break.
2788 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
2791 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
2792 data registers in sibcall epilogues.
2793 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2795 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
2798 * configure.ac (--enable-frame-pointer):
2799 Disable by default for cygwin and mingw.
2800 * configure: Regenerate.
2802 2019-05-13 Nathan Sidwell <nathan@acm.org>
2804 * dwarf2out.c (breakout_comdat_types): Move comment to correct
2806 (const_ok_for_output_1): Balance parens around #if/#else/#endif
2807 (gen_member_die): Move abstract origin check earlier. Only VARs
2808 can be static_inline_p. Simplify splicing control flow.
2810 2019-05-13 Richard Biener <rguenther@suse.de>
2812 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
2814 (vect_build_slp_tree_1): Likewise.
2816 2019-05-13 Richard Biener <rguenther@suse.de>
2818 PR tree-optimization/90402
2819 * tree-if-conv.c (tree_if_conversion): Value number only
2820 the loop body by making the latch an exit of the region
2822 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
2824 (do_rpo_vn): Deal with multiple edges into the entry block
2825 that are not backedges inside the region by skipping PHIs
2828 2019-05-13 Richard Biener <rguenther@suse.de>
2830 PR tree-optimization/90316
2831 * tree-ssa-pre.c (insert_aux): Fold into ...
2832 (insert): ... this function. Use a RPO walk to reduce the
2833 number of required iterations.
2835 2019-05-13 Martin Liska <mliska@suse.cz>
2837 PR tree-optimization/90416
2838 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
2839 string instead of passing the second part as va_arg argument.
2841 2019-05-13 Martin Liska <mliska@suse.cz>
2843 PR gcov-profile/90380
2844 * gcov.c (handle_cycle): Do not support zero cycle count,
2845 it should not be possible.
2846 (path_contains_zero_cycle_arc): New function.
2847 (circuit): Ignore zero cycle arc counts.
2849 2019-05-13 Martin Liska <mliska@suse.cz>
2851 PR gcov-profile/90380
2852 * gcov.c (enum loop_type): Remove the enum and
2854 (handle_cycle): Assert that we should not reach
2856 (circuit): Use loop_found instead of a tri-state loop_type.
2857 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
2860 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2863 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
2864 (ix86_output_indirect_branch_via_reg): Use output mechanism
2865 accounting for __USER_LABEL_PREFIX__.
2866 (ix86_output_indirect_branch_via_push): Likewise.
2867 (ix86_output_function_return): Likewise.
2868 (ix86_output_indirect_function_return): Likewise.
2870 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
2872 * doc/md.texi: Document use of code attributes in rtx patterns.
2873 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
2874 * read-rtl.c (find_code): Split out search loops into...
2875 (maybe_find_code): ...this new function.
2876 (check_code_iterator): Make the error message more informative.
2877 (check_code_attribute): New function.
2878 (rtx_reader::rtx_alloc_for_name): Likewise.
2879 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
2880 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
2881 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
2882 <max_opp> directly as an rtx code instead of via a match_operator.
2883 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
2884 (<su>abd<mode>_3): Update accordingly.
2886 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
2888 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
2889 is given, print the state of the EH "save world" computation for
2892 2019-05-11 Jakub Jelinek <jakub@redhat.com>
2895 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
2896 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
2898 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
2900 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
2901 Use pinsrd for TARGET_SSE4_1.
2902 * config/i386/sse.md (movdi_to_sse): Ditto.
2904 2019-05-10 Richard Biener <rguenther@suse.de>
2906 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
2907 (do_rpo_vn): Initialize next_value_id.
2909 2019-05-10 Martin Liska <mliska@suse.cz>
2911 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2914 2019-05-10 Jakub Jelinek <jakub@redhat.com>
2916 PR tree-optimization/90385
2917 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
2918 arguments of the exit phis.
2921 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
2922 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
2924 (copy_tree_body_r): Likewise.
2925 (copy_fn): Set id.do_not_fold to true.
2927 2019-05-10 Martin Liska <mliska@suse.cz>
2929 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
2930 Reapply changes from r269790.
2932 2019-05-10 Martin Liska <mliska@suse.cz>
2935 * doc/invoke.texi: New params.
2936 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
2937 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
2938 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
2940 * tree-switch-conversion.h (struct jump_table_cluster):
2943 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
2945 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
2947 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
2949 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
2951 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
2953 PR rtl-optimization/88879
2954 * sel-sched.c (sel_target_adjust_priority): Remove assert.
2956 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
2959 * config/arm/arm.c (callee_saved_reg_p): Move before
2960 thumb_find_work_register.
2961 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
2962 thumb_find_work_register. Only call df_get_live_out once.
2963 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
2964 (thumb_find_work_register): Use
2965 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
2966 algorithms to locate a spare call clobbered reg.
2968 2019-05-09 Martin Liska <mliska@suse.cz>
2970 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
2971 and MAX_EXPR in GIMPLE FE format.
2973 2019-05-09 Martin Liska <mliska@suse.cz>
2975 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
2976 * gimple-pretty-print.c (dump_gimple_bb_header):
2978 (pp_cfg_jump): Dump edge probability.
2979 * profile-count.c (profile_quality_as_string): Simplify
2980 with a static array.
2981 (parse_profile_quality): New function.
2982 (profile_count::dump): Simplify with a static array.
2983 (profile_count::from_gcov_type): Add new argument.
2984 * profile-count.h (parse_profile_quality): Likewise.
2985 * predict.h (set_hot_bb_threshold): New.
2986 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
2988 * predict.c (get_hot_bb_threshold): Set from the new param.
2989 (set_hot_bb_threshold): New.
2991 2019-05-09 Richard Biener <rguenther@suse.de>
2993 PR tree-optimization/90395
2994 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
2995 rewrite vector stores that throw internally.
2997 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
2999 * cif-code.def (CHKP): Remove.
3002 * configure.ac (--enable-frame-pointer): Disable by default for
3004 * configure: Regenerate.
3006 2019-05-09 Alan Modra <amodra@gmail.com>
3009 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
3010 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
3011 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
3012 cost for general <-> vsx when direct moves are available.
3013 Cost union classes at minimal cost for any reg in the class.
3014 Correct calculation for moves between vsx, float, and altivec.
3015 Don't return a low cost for moves between special regs. Don't
3016 use hard coded register numbers.
3017 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
3018 (rs6000_ira_change_pseudo_allocno_class): New function.
3019 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
3020 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
3022 (movsi_internal1): Don't disparage vector alternatives.
3023 (mov<mode>_internal): Likewise, excepting alternative that
3025 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
3026 we <- b alternative.
3028 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3031 PR tree-optimization/89060
3032 * tree-ssa-live.h (live_vars_map): New typedef.
3033 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
3034 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
3035 (struct compute_live_vars_data): New type.
3036 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
3037 live_vars_at_stmt, destroy_live_vars): New functions.
3038 * tree-tailcall.c: Include tree-ssa-live.h.
3039 (live_vars, live_vars_vec): New global variables.
3040 (find_tail_calls): Perform variable life analysis before punting.
3041 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
3042 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
3044 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
3045 Perform variable life analysis to select variables that really need
3047 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
3048 instead set id->eh_landing_pad_dest and assert it is the same.
3049 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
3051 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
3052 Richard Earnshaw <rearnsha@arm.com>
3055 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
3057 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
3058 (thumb1_compute_save_core_reg_mask): Don't force a spare work
3059 register if both the epilogue and prologue can use call-clobbered
3061 (thumb1_unexpanded_epilogue): Use
3062 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
3063 picking temporaries for restoring high regs to match that of the
3064 prologue where possible.
3065 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
3066 the list of work registers. Detect if the return address is still live
3067 at the end of the prologue and avoid using it for a work register if so.
3068 If the return address is not live, add LR to the list of pushable regs
3069 after the first pass.
3071 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3073 PR tree-optimization/90078
3074 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
3075 (INFTY): Increase the value for infinite cost.
3076 (struct comp_cost): Promote type of members to int64_t.
3077 (infinite_cost): Don't set complexity in initialization.
3078 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
3079 overflows to infinite_cost.
3080 (adjust_setup_cost): Promote type of parameter and cost computation
3082 (struct ainc_cost_data, struct iv_ca): Promote type of member to
3084 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
3085 cost computation to int64_t.
3086 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
3087 int64_t's format specifier in dump.
3089 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
3091 PR tree-optimization/90240
3092 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
3093 with respect to scaling factor pre-computed for each basic block.
3094 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
3095 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
3096 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
3097 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
3098 live range for array of loop's basic blocks. Cleanup aux field of
3099 loop's basic blocks.
3101 2019-05-08 Jakub Jelinek <jakub@redhat.com>
3103 PR tree-optimization/90356
3104 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
3106 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
3108 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
3109 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
3110 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
3111 (ix86_handle_option): Handle -mavx512bf16.
3112 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
3114 * config/i386/avx512bf16vlintrin.h: New.
3115 * config/i386/avx512bf16intrin.h: New.
3116 * config/i386/cpuid.h (bit_AVX512BF16): New.
3117 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
3118 * config/i386/i386-builtin-types.def: Add new types.
3119 * config/i386/i386-builtin.def: Add new builtins.
3120 * config/i386/i386-c.c (ix86_target_macros_internal): Define
3122 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
3123 (ix86_option_override_internal): Handle BF16.
3124 (ix86_valid_target_attribute_inner_p): Ditto.
3125 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
3126 * config/i386/i386-builtin.c (enum processor_features): Add
3128 (static const _isa_names_table isa_names_table): Ditto.
3129 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
3130 (PTA_AVX512BF16): Ditto.
3131 * config/i386/i386.opt: Add -mavx512bf16.
3132 * config/i386/immintrin.h: Include avx512bf16intrin.h
3133 and avx512bf16vlintrin.h.
3134 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
3135 avx512f_cvtneps2bf16_<mode><mask_name>,
3136 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
3137 * config/i386/subst.md (mask_half): Add new subst.
3138 * doc/invoke.texi: Document -mavx512bf16.
3140 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
3142 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
3144 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
3145 (rs6000_debug_legitimize_reload_address): Delete.
3146 (rs6000_legitimize_reload_address_ptr): Delete.
3147 (rs6000_option_override_internal): Adjust.
3148 (mem_operand_gpr): Adjust comment.
3149 (legitimate_lo_sum_address_p): Ditto.
3150 (rs6000_legitimize_reload_address): Delete.
3151 (rs6000_debug_legitimize_reload_address): Delete.
3152 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
3154 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
3157 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
3158 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
3159 to compute vector element selector for both constant and variable
3162 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3164 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
3165 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
3166 ashrdi3_cvt using SWI48 mode iterator.
3168 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3170 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
3171 (aarch64_<su>abd<mode>_3): Likewise.
3172 (*aarch64_<su>abd<mode>_3): New define_insn.
3173 (<sur>sad<vsi2qi>): New define_expand.
3174 * config/aarch64/iterators.md: Added MAX_OPP attribute.
3175 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
3176 (build_vect_cond_expr): Likewise.
3178 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
3180 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
3181 clobbers outside of accessible_reg_set.
3182 * config/i386/i386.c (ix86_conditional_register_usage):
3183 Disable register sets by clearing corresponding bits in
3184 accessible_reg_set. Do not set corresponding bits in fixed_regs,
3185 call_used_regs and don't clear corresponding reg_names array members.
3187 2019-05-07 Richard Biener <rguenther@suse.de>
3189 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
3190 not specified still compute a comp_vectype for invariant
3193 2019-05-07 Richard Biener <rguenther@suse.de>
3195 PR tree-optimization/90316
3196 * tree-ssa-pre.c (translate_vuse_through_block): When
3197 same_valid is NULL do not bother to search for a virtual
3199 (phi_translate_1): When operands changed we cannot keep
3200 the same value-number so do not bother to ask whether
3201 that's possible from translate_vuse_through_block.
3203 2019-05-07 Martin Liska <mliska@suse.cz>
3205 * bitmap.c (bitmap_register): Come up with
3206 alloc_descriptor_max_uid and assign it for
3208 (register_overhead): Use get_descriptor as
3210 (release_overhead): New.
3211 (bitmap_elem_to_freelist): Call it.
3212 (bitmap_elt_clear_from): Likewise.
3213 (bitmap_obstack_free): Likewise.
3214 (bitmap_move): Sensitively release memory.
3215 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
3216 (bitmap_initialize): Initialize alloc_descriptor to zero.
3217 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
3219 2019-05-07 Richard Biener <rguenther@suse.de>
3221 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
3222 we build a SLP node. Remove max_size and limiting.
3223 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
3225 2019-05-07 Richard Biener <rguenther@suse.de>
3227 PR tree-optimization/90316
3228 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
3230 (walk_non_aliased_vuses): Take walking limit argument.
3231 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
3232 walking if it is reached instead of just counting.
3233 (get_continuation_for_phi): Likewise.
3234 (walk_non_aliased_vuses): Likewise, instead of leaving counter
3235 limiting to the callback.
3236 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
3237 (vn_reference_lookup_3): Likewise.
3238 (vn_reference_lookup_pieces): Likewise.
3239 (vn_reference_lookup): Likewise.
3240 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
3241 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
3242 (avail_exprs_stack::lookup_avail_expr): Likewise.
3244 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
3246 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
3247 for comparaible types in the second direction even if first one
3248 hits incomparable type.
3250 2019-05-07 Richard Biener <rguenther@suse.de>
3253 * lto-wrapper.c (debug_objcopy): Use the original filename
3254 including archive offset for the filename used for -save-temps.
3256 2019-05-07 Li Jia He <helijia@linux.ibm.com>
3258 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
3261 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
3262 Hongtao Liu <hongtao.liu@intel.com>
3266 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
3267 Modified, original implementation isn't correct.
3269 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3271 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
3272 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
3273 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
3274 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
3275 (FRAME_POINTER_REGNUM): Change numbering.
3276 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
3277 (alt_reg_names): Adjust.
3278 (rs6000_conditional_register_usage): Don't mark hard register 64 as
3280 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3281 (DWARF_FRAME_REGISTERS): Delete.
3282 (DWARF2_FRAME_REG_OUT): Fix whitespace.
3283 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3285 (REG_ALLOC_ORDER): Adjust.
3286 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
3287 (REG_CLASS_CONTENTS): Adjust.
3288 (RETURN_ADDR_RTX): Change comment.
3289 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
3291 (REGISTER_NAMES): Adjust.
3292 (ADDITIONAL_REGISTER_NAMES): Adjust.
3293 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3295 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3297 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
3299 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
3300 (DWARF_FRAME_REGISTERS): Adjust.
3301 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
3303 (REG_ALLOC_ORDER): Adjust.
3304 (enum reg_class): Delete SPR_REGS.
3305 (REG_CLASS_NAMES): Delete SPR_REGS.
3306 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
3307 (REGISTER_NAMES): Adjust.
3308 (ADDITIONAL_REGISTER_NAMES): Adjust.
3309 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
3310 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
3311 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
3312 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
3313 (htm_spr_regno): Delete.
3314 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
3316 (rs6000_dbx_register_number): Adjust.
3318 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3320 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
3322 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
3324 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
3325 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
3327 2019-05-06 Jakub Jelinek <jakub@redhat.com>
3329 PR tree-optimization/88709
3330 PR tree-optimization/90271
3331 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
3332 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
3333 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
3335 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
3336 of the store merging group is larger than
3337 PARAM_STORE_MERGING_MAX_SIZE parameter.
3338 (split_group): Add bzero_first argument. If set, always emit first
3339 the first store which must be = {} of the whole area and then for the
3340 rest of the stores consider all zero bytes as paddings.
3341 (imm_store_chain_info::output_merged_store): Check if first store
3342 is = {} of the whole area and if yes, determine which setting of
3343 bzero_first for split_group gives smaller number of stores. Adjust
3344 split_group callers.
3345 (lhs_valid_for_store_merging_p): Allow decls.
3346 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
3348 (pass_store_merging::process_store): Likewise.
3350 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3353 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3354 handling of V1TImode.
3356 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
3359 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
3360 and enable_frame_pointer ...
3361 * configure.ac: ... here. Update help strings for
3362 --enable-frame-pointer.
3363 * configure: Regenerate.
3364 * config/i386/i386-options.c (ix86_option_override_internal): Remove
3365 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
3366 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
3367 (USE_X86_64_FRAME_POINTER): Ditto.
3369 2019-05-06 Martin Liska <mliska@suse.cz>
3371 * config.gcc: Append to target_gtfiles and fix indentation.
3373 2019-05-06 Richard Biener <rguenther@suse.de>
3375 PR tree-optimization/90358
3376 * tree-vect-stmts.c (get_group_load_store_type): Properly
3377 detect unused upper half of load.
3378 (vectorizable_load): Likewise.
3380 2019-05-06 Richard Biener <rguenther@suse.de>
3382 PR tree-optimization/88828
3383 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
3384 (simplify_vector_constructor): ...here. Handle constants in
3387 2019-05-06 Richard Biener <rguenther@suse.de>
3389 PR tree-optimization/90328
3390 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
3391 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
3392 is valid in the loop nest before using it.
3393 (initialize_data_dependence_relation): Adjust.
3394 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
3395 loop as loop-nest to dr_may_alias_p.
3397 2019-05-06 Richard Biener <rguenther@suse.de>
3399 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
3401 2019-05-06 Richard Biener <rguenther@suse.de>
3403 PR tree-optimization/90316
3404 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
3405 compute target on demand.
3406 (get_continuation_for_phi): Remove code walking stmts to
3407 get to a target virtual operand which could end up being
3410 2019-05-06 Martin Liska <mliska@suse.cz>
3413 * config/i386/i386-options.c (ix86_option_override_internal): Error only
3414 when -mabi is selected to a non-default version.
3416 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
3417 Martin Liska <mliska@suse.cz>
3419 * Makefile.in: Add lto-dump.texi.
3420 * cgraph.h: Add new functions get_visibility_string and
3421 get_symtab_type_string.
3422 * doc/gcc.texi: Include lto-dump section.
3423 * doc/lto-dump.texi: New file.
3424 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
3425 (parse_dump_option): Factor out this function.
3426 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
3427 (parse_dump_option): Export the function.
3428 * symtab.c (symtab_node::get_visibility_string): New function.
3429 (symtab_node::get_symtab_type_string): Likewise.
3431 2019-05-06 Martin Liska <mliska@suse.cz>
3433 * config/i386/i386-builtins.c: New file.
3434 * config/i386/i386-builtins.h: New file.
3435 * config/i386/i386-expand.c: New file.
3436 * config/i386/i386-expand.h: New file.
3437 * config/i386/i386-features.c: New file.
3438 * config/i386/i386-features.h: New file.
3439 * config/i386/i386-options.c: New file.
3440 * config/i386/i386-options.h: New file.
3441 * config.gcc: Add new files into extra_objs and
3443 * config/i386/i386.c: Split content of the file
3444 into newly introduced files.
3445 * config/i386/i386.h: Declare common variables
3447 * config/i386/t-i386: Define dependencies for new files.
3449 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
3452 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
3453 Restrict 'all' variant to 32-bit configurations.
3454 (unaligned_loadhiu): Likewise.
3455 (unaligned_storehi): Likewise.
3456 (unaligned_storesi): Likewise.
3457 (unaligned_loadhis): Disable when compiling for thumb1.
3459 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
3461 PR tree-optimization/90269
3462 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
3465 2019-05-03 Martin Liska <mliska@suse.cz>
3467 * hash-map.h: Add is_empty function.
3468 * hash-set.h: Likewise.
3469 * hash-table.h: Likewise.
3470 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
3471 elements () == 0 (and similar usages).
3472 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
3473 * gimplify.c (gimplify_bind_expr): Likewise.
3474 (gimplify_switch_expr): Likewise.
3475 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
3476 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
3477 * postreload-gcse.c (dump_hash_table): Likewise.
3478 (gcse_after_reload_main): Likewise.
3479 * predict.c (combine_predictions_for_bb): Likewise.
3480 * tree-parloops.c (reduction_phi): Likewise.
3481 (separate_decls_in_region): Likewise.
3482 (transform_to_exit_first_loop): Likewise.
3483 (gen_parallel_loop): Likewise.
3484 (gather_scalar_reductions): Likewise.
3485 (try_create_reduction_list): Likewise.
3486 * var-tracking.c (dump_vars): Likewise.
3487 (emit_notes_for_changes): Likewise.
3488 (vt_emit_notes): Likewise.
3490 2019-05-03 Richard Biener <rguenther@suse.de>
3492 PR tree-optimization/90316
3493 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
3496 2019-05-03 Richard Biener <rguenther@suse.de>
3498 * tree-vect-stmts.c (get_group_load_store_type): Avoid
3499 peeling for gaps by loading only lower halves of vectors
3501 (vectorizable_load): Likewise.
3503 2019-05-03 Richard Biener <rguenther@suse.de>
3506 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
3508 2019-05-03 Richard Biener <rguenther@suse.de>
3511 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
3512 Handle STRING_CST vs DECL or STRING_CST.
3514 2019-05-03 Richard Biener <rguenther@suse.de>
3516 PR tree-optimization/88963
3517 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
3518 vector loads feeding only BIT_FIELD_REFs to component
3519 loads. Rewrite stores fed by CONSTRUCTORs to component
3522 2019-05-03 Jakub Jelinek <jakub@redhat.com>
3524 * opts.h (finish_options): Remove lang_mask argument.
3525 (print_help, help_option_argument): Declare.
3526 * opts.c (print_help): Remove forward declaration, no longer static.
3527 (finish_options): Remove lang_mask argument, don't call print_help
3529 * opts-global.c (decode_options): Adjust finish_option caller, call
3532 PR tree-optimization/90303
3533 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
3534 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
3536 2019-05-03 Richard Biener <rguenther@suse.de>
3538 PR tree-optimization/89698
3539 * gimple-fold.c (canonicalize_constructor_val): Early out
3540 for constants, handle unfolded INTEGER_CSTs as they appear in
3541 C++ virtual table ctors.
3543 2019-05-03 Richard Biener <rguenther@suse.de>
3545 * passes.c (execute_function_todo): Remove dead code.
3547 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3549 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
3550 the internal register number, for any "real" register.
3552 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
3554 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
3555 correct numbers for TFHAR, TFIAR, TEXASR.
3557 2019-05-02 Richard Biener <rguenther@suse.de>
3559 PR tree-optimization/89653
3560 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
3561 update-address-taken before the pass.
3562 * passes.def (pass_tree_loop_init): Put comment before it.
3564 2019-05-02 Richard Biener <rguenther@suse.de>
3566 PR tree-optimization/89509
3567 * tree-ssa-structalias.c (compute_dependence_clique): Look
3568 at the first subvar when determining whether it is restrict.
3570 2019-05-02 Richard Biener <rguenther@suse.de>
3572 PR tree-optimization/90273
3573 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
3574 useless debug stmts.
3576 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
3578 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
3580 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
3582 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
3583 VEC_COND_EXPR be inserted to emulate a conditional internal function.
3584 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
3585 (vectorizable_reduction): Use the functions above to vectorize in a
3586 fully masked loop codes that don't have a conditional internal
3589 2019-05-02 Martin Liska <mliska@suse.cz>
3591 * cgraphclones.c: Call valid_attribute_p with 1 for
3593 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
3594 it's for target attribute.
3595 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
3596 Add new boolean argument.
3597 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
3599 (ix86_valid_target_attribute_tree): Pass target_clone_attr
3600 to ix86_valid_target_attribute_inner_p.
3601 (ix86_valid_target_attribute_p): Pass flags argument to
3602 ix86_valid_target_attribute_inner_p.
3603 (get_builtin_code_for_version): Use 0 as it's target attribute.
3605 2019-05-02 Martin Liska <mliska@suse.cz>
3607 * gcc.c (process_command): Add dummy file only
3609 * opts-global.c (decode_options): Pass lang_mask.
3610 * opts.c (print_help): New function.
3611 (finish_options): Print --help if help_option_argument
3613 (common_handle_option): Factor out content of OPT__help_
3615 * opts.h (finish_options): Add new argument.
3617 2019-05-02 Martin Liska <mliska@suse.cz>
3620 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
3621 With -minline-all-stringops use inline expansion using 4B loop.
3622 * doc/invoke.texi: Document the change of
3623 -minline-all-stringops.
3625 2019-05-01 Jeff Law <law@redhat.com>
3627 PR tree-optimization/88797
3628 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
3629 PHI feeds a conditional on the RHS of an assignment.
3631 2019-04-30 Andrew Waterman <andrew@sifive.com>
3632 Jim Wilson <jimw@sifive.com>
3634 * config/riscv/constraints.md (L): New.
3635 * config/riscv/predicates.md (lui_operand): New.
3636 (sfb_alu_operand): New.
3637 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
3638 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
3639 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
3640 * config/riscv/risc.md (type): Add sfb_alu.
3641 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
3642 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
3643 (branch_zero<mode>): Delete.
3645 (mov<GPR:mode><X:mode>cc): Likewise.
3646 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
3648 2019-04-30 Nathan Sidwell <nathan@acm.org>
3650 * tree.h (MARK_TS_EXP): New.
3652 2019-04-30 Martin Liska <mliska@suse.cz>
3654 * opts.c (enable_warning_as_error): Provide hints
3655 for unknown options.
3657 2019-04-30 Martin Liska <mliska@suse.cz>
3660 * doc/invoke.texi: Add missing dash for gas-locview-support
3661 and gno-as-locview-support.
3663 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3666 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
3667 whitespace at the start of target attribute string.
3669 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3672 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
3673 Define __ARM_FEATURE_ATOMICS.
3675 2019-04-30 Martin Liska <mliska@suse.cz>
3677 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
3678 into built_in_function enum. Remove code for endp == 2 and
3679 use BUILT_IN_* constants.
3680 (gimple_fold_builtin): Call the function with fcode.
3682 2019-04-30 Martin Liska <mliska@suse.cz>
3684 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
3685 DECL_FUNCTION_CODE into ix86_builtins enum before
3686 the switch statement.
3688 2019-04-30 Jakub Jelinek <jakub@redhat.com>
3690 PR tree-optimization/89475
3691 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
3694 2019-04-30 Martin Liska <mliska@suse.cz>
3696 PR translation/90274
3697 * opts.c (print_filtered_help): Wrap string in _(...).
3699 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
3701 PR tree-optimization/90240
3703 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3705 PR tree-optimization/90078
3706 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3707 checks for infinite_cost overflow.
3709 2019-04-29 Jeff Law <law@redhat.com>
3711 * passes.def: Move -Wrestrict pass after copy propagation.
3713 2019-04-29 Maya Rashish <coypu@sdf.org>
3715 * config.gcc (default_gnu_indirect_function): Default to yes
3716 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
3717 sparc*-*-netbsd*, x86_64-*-netbsd*.
3719 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
3721 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
3722 where cond2 is NE_EXPR.
3723 (is_value_included_in): Update comment.
3725 2019-04-29 Richard Biener <rguenther@suse.de>
3727 PR tree-optimization/90278
3728 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
3729 EH on comparison simplification.
3731 2019-04-29 Jason Merrill <jason@redhat.com>
3733 PR c++/82081 - tail call optimization breaks noexcept
3734 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
3735 nothrow function to a might-throw function into a tail call.
3737 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
3739 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
3740 (DDR_INNER_LOOP): Likewise.
3741 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
3742 (initialize_data_dependence_relation): Likewise.
3743 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
3745 2019-04-29 Jakub Jelinek <jakub@redhat.com>
3747 PR rtl-optimization/90257
3748 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
3752 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3756 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3759 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3762 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3764 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3766 2019-04-29 Richard Biener <rguenther@suse.de>
3768 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
3771 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
3773 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
3774 varasm.h, and netbsd-protos.h.
3776 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
3779 * config/i386/i386-protos.h (ix86_data_alignment): Change
3780 the second argument type to unsigned int.
3781 * config/i386/i386.c (ix86_data_alignment): Change "align"
3782 argument type to unsigned int.
3784 2019-04-27 Martin Liska <mliska@suse.cz>
3787 * opt-suggestions.c (option_proposer::build_option_suggestions):
3788 When get_valid_option_values returns empty values, add the
3789 misspelling candidate.
3791 2019-04-26 Jim Wilson <jimw@sifive.com>
3793 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
3795 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
3796 Pass orig_mode to riscv_build_integer.
3797 (riscv_split_integer): Pass mode to riscv_move_integer.
3798 (riscv_legitimize_const_move): Likewise.
3799 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
3800 promoted_mode. Replace force_reg call with code to load constant into
3801 promoted reg and then subreg it for the store.
3802 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
3805 2018-04-26 Eugene Sharygin <eush@ispras.ru>
3807 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
3810 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
3812 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
3813 commentary about the encoding of precision.
3815 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
3817 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
3818 * config/i386/t-freebsd64: New file.
3819 * config.gcc: Add the t-freebsd64 for multilib support.
3821 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
3823 * doc/extend.texi (vector_size): Add missing comma after @xref.
3825 2019-04-25 Jakub Jelinek <jakub@redhat.com>
3827 * BASE-VER: Set to 10.0.0.
3829 2019-04-25 Richard Biener <rguenther@suse.de>
3832 * gimplify.c (gimplify_expr): Avoid turning a lvalue
3833 VIEW_CONVERT_EXPR into one operating on an rvalue.
3835 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
3838 * config/i386/i386.c (feature_priority): Moved to file scope.
3839 (processor_features): Likewise.
3840 (processor_model): Likewise.
3841 (_arch_names_table): Likewise.
3842 (arch_names_table): Likewise.
3843 (_feature_list): Removed.
3844 (feature_list): Likewise.
3845 (_isa_names_table): Moved to file scope. Add priority.
3846 (isa_names_table): Likewise.
3847 (get_builtin_code_for_version): Replace feature_list with
3848 isa_names_table. Update error message for P_ZERO priority.
3850 2019-04-25 Richard Biener <rguenther@suse.de>
3852 * tree-pass.h (make_pass_phi_only_cprop): Remove.
3853 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
3855 2019-04-24 Jeff Law <law@redhat.com>
3857 PR tree-optimization/90037
3858 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
3859 * passes.def: Replace all instance of phi-only cprop with the
3860 lattice propagator. Move propagation pass from after erroneous
3861 path isolation to before erroneous path isolation.
3862 * tree-ssa-phionlycprop.c: Remove.
3864 2019-04-24 Richard Biener <rguenther@suse.de>
3867 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
3868 by size and BITS_PER_UNIT on poly-wide-ints.
3870 2019-04-25 Richard Biener <rguenther@suse.de>
3873 * match.pd: Add pattern to simplify view-conversion of an
3876 2019-04-24 Clement Chigot <clement.chigot@atos.net>
3878 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
3879 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
3880 for Go on 32 bit AIX.
3881 * config/rs6000/aix72.h: Likewise.
3883 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3886 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
3887 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
3889 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
3892 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
3893 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
3894 for restored hard frame pointer.
3895 (s390_sched_dependencies_evaluation): Implement new target hook.
3896 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
3898 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
3900 * config/arc/arc-options.def: Fix typos and spelling mistakes.
3901 * config/arc/arc.c (arc_init): Cleanup warning message.
3902 (arc_override_options): Likewise.
3904 2019-04-24 Jakub Jelinek <jakub@redhat.com>
3907 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
3908 a register if both if_true and if_false are MEMs.
3910 PR tree-optimization/90208
3911 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
3912 after labels of new_bb, not before them.
3914 PR tree-optimization/90211
3915 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
3916 which are not SSA_NAMEs.
3918 2018-04-23 Sudakshina Das <sudi.das@arm.com>
3920 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
3922 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
3924 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3926 PR rtl-optimization/87979
3927 * modulo-sched.c (sms_schedule): Start ii value "mii" should
3930 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
3932 PR rtl-optimization/84032
3933 * modulo-sched.c (ps_insn_find_column): Change condition so that
3934 branch will always be the last insn in a row inside partial
3937 2019-04-23 Richard Biener <rguenther@suse.de>
3940 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
3941 dest_single_pred_p argument.
3942 (remove_forwarder_block): Adjust.
3943 (remove_forwarder_block_with_phi): Likewise.
3945 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3946 Bernd Edlinger <bernd.edlinger@hotmail.de>
3947 Jakub Jelinek <jakub@redhat.com>
3950 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
3951 if used with general-regs-only.
3952 (arm_conditional_register_usage): Don't add non-general regs if
3954 (arm_valid_target_attribute_rec): Handle general-regs-only.
3955 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
3957 (TARGET_HARD_FLOAT_SUB): Define.
3958 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
3959 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
3960 (TARGET_REALLY_IWMMXT2): Likewise.
3961 * config/arm/arm.opt: Add -mgeneral-regs-only.
3962 * doc/extend.texi: Document ARM general-regs-only target.
3963 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
3965 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3967 PR tree-optimization/90078
3968 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
3969 checks for infinite_cost overflow.
3971 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
3973 PR tree-optimization/90021
3974 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
3975 and check univariate against it.
3976 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
3977 * tree-data-ref.c (add_other_self_distances): Pass new argument.
3979 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
3983 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
3986 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
3989 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
3991 * lra-spills.c (lra_final_code_change): Remove useless move insns.
3993 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
3995 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
3996 names using operand format, rather than hard-wired.
3997 (speculation_barrier): Likewise.
3999 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
4001 PR tree-optimization/88055
4002 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
4003 (gen_one_condition): Use it if !HONOR_NANS.
4005 2019-04-19 Jakub Jelinek <jakub@redhat.com>
4008 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
4009 assign_temp instead of gen_reg_rtx.
4011 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
4013 PR translation/90118
4014 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4015 Add missing space before %<.
4017 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
4019 PR rtl-optimization/87871
4020 * ira-lives.c (make_object_dead): Don't add conflicts to
4021 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
4023 2019-04-18 Martin Sebor <msebor@redhat.com>
4026 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
4027 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
4028 assuming type size fits in SHWI.
4030 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
4033 * ipa-inline.c (flatten_function): New parameter UPDATE.
4034 (ipa_inline, early_inliner): Use it.
4036 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4038 * fold-const.c (int_const_binop): Return early on failure.
4040 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
4043 * combine.c (force_int_to_mode): Cast the argument rather than
4044 the result of known_alignment.
4045 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
4047 2019-04-18 Richard Biener <rguenther@suse.de>
4050 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
4052 (remove_forwarder_block): ... here.
4053 (remove_forwarder_block_with_phi): Also move debug stmts here.
4055 2019-04-18 Jakub Jelinek <jakub@redhat.com>
4057 PR translation/79183
4058 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
4059 inform where appropriate.
4061 2019-04-18 Richard Biener <rguenther@suse.de>
4063 * tree.c (get_qualified_type): Put found type variants at the
4064 head of the variant list.
4066 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4068 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
4070 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
4073 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
4074 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
4075 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
4076 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
4077 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
4079 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
4081 * ira-conflicts.c (print_allocno_conflicts): Always print something,
4082 even for allocno's with no conflicts.
4083 (print_conflicts): Print an extra newline.
4085 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4087 * auto-inc-dec.c (attempt_change): Set the alignment of the
4088 temporary memory to that of the original.
4090 2019-04-17 Joao Moreira <jmoreira@suse.de>
4092 * targhooks.c (default_print_patchable_function_entry): Emit
4093 __patchable_function_entries section with writable flags to allow
4094 relocation resolution.
4096 2019-04-17 Jonny Grant <jg@jguk.org>
4098 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
4100 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4103 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
4106 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
4108 * config/arc/arc.c (arc_init): Format diagnostic string.
4109 (arc_override_options): Likewise.
4110 (check_if_valid_regno_const): Likewise.
4111 (arc_reorg): Likewise.
4113 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
4116 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
4118 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
4120 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
4121 (*movdi_update1): Use Pmode.
4122 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
4123 (movdi_<mode>_update_stack): Rename to ...
4124 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
4126 (*movsi_update1): Use Pmode.
4127 (*movsi_update2): Use Pmode.
4128 (movsi_update): Rename to ...
4129 (movsi_<mode>_update): ... this. Use Pmode.
4130 (movsi_update_stack): Fix condition.
4131 (*movhi_update1): Use Pmode. Fix argument to
4132 avoiding_indexed_address_p.
4133 (*movhi_update2): Ditto.
4134 (*movhi_update3): Ditto.
4135 (*movhi_update4): Ditto.
4136 (*movqi_update1): Ditto.
4137 (*movqi_update2): Ditto.
4138 (*movqi_update3): Ditto.
4139 (*movsf_update1, *movdf_update1): Merge, rename to...
4140 (*mov<mode>_update1): This. Use Pmode. Fix argument to
4141 avoiding_indexed_address_p. Add "size" attribute.
4142 (*movsf_update2, *movdf_update2): Merge, rename to...
4143 (*mov<mode>_update2): This. Ditto.
4144 (*movsf_update3): Use Pmode. Fix argument to
4145 avoiding_indexed_address_p.
4146 (*movsf_update4): Ditto.
4147 (allocate_stack): Simplify condition. Adjust pattern names.
4149 2019-04-17 Jakub Jelinek <jakub@redhat.com>
4152 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
4153 whitespace at the start of target attribute string.
4155 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
4158 * config/rs6000/power9.md: Add store forwarding bypass.
4160 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
4163 * valtrack.c (dead_debug_insert_temp): Reset debug references
4164 to the return value of a call being removed.
4166 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4168 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
4169 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
4170 implement target hook.
4171 (arc_memory_move_cost): New function.
4172 (TARGET_REGISTER_MOVE_COST): Define.
4173 (TARGET_MEMORY_MOVE_COST): Likewise.
4174 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
4175 (MEMORY_MOVE_COST): Likewise.
4177 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4179 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
4180 (sibcall_value_insn): Likewise.
4181 * config/arc/constraints.md (Rs5): Remove.
4183 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4185 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
4186 for last two fake registers.
4187 (arc_conditional_register_usage): Make sure fake frame and arg
4188 pointer regs are in general regs class.
4189 (FRAME_POINTER_MASK): Remove.
4190 (RETURN_ADDR_MASK): Remove.
4191 (arc_must_save_register): Use hard frame regnum.
4192 (frame_restore_reg): Use hard_frame_pointer_rtx.
4193 (arc_save_callee_saves): Likewise.
4194 (arc_restore_callee_saves): Likewise.
4195 (arc_save_callee_enter): Likewise.
4196 (arc_restore_callee_leave): Likewise.
4197 (arc_save_callee_milli): Likewise.
4198 (arc_eh_return_address_location): Likewise.
4199 (arc_check_multi): Use hard frame regnum.
4200 (arc_can_eliminate): Likewise.
4201 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
4202 for register allocator.
4203 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
4204 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
4205 (FRAME_POINTER_REGNUM): Change it to a fake register.
4206 (HARD_FRAME_POINTER_REGNUM): Defined.
4207 (ARG_POINTER_REGNUM): Change it to a new fake register.
4208 (ELIMINABLE_REGS): Update.
4209 (REGISTER_NAMES): Update names.
4210 * config/arc/arc.md (LP_START): Remove.
4212 (shift_si3_loop): Update pattern.
4214 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
4216 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
4217 to avoid delay slot scheduling.
4218 (arc_must_save_register): Don't save SP.
4219 * config/arc/arc.md (stack_tie): Remove.
4220 (UNSPEC_ARC_STKTIE): Likewise.
4222 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
4223 Shiva Chen <shiva0217@gmail.com>
4225 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
4226 code gen with large shift amount.
4228 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
4230 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
4233 2019-04-16 Jakub Jelinek <jakub@redhat.com>
4236 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
4237 print -m64/-mx32/-m32 if it is true.
4238 (ix86_debug_options, ix86_function_specific_print): Pass true as
4239 ADD_ABI_P to ix86_target_string.
4240 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
4241 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
4242 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
4244 PR rtl-optimization/90082
4245 * dce.c (can_delete_call): New function.
4246 (deletable_insn_p, mark_insn): Use it.
4248 PR tree-optimization/90090
4249 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
4251 (is_division_by_square): Likewise. Formatting fix.
4253 2019-04-16 Richard Biener <rguenther@suse.de>
4255 PR tree-optimization/56049
4256 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
4257 equality check if alias-set zero will prevail.
4259 2019-04-15 Jeff Law <law@redhat.com>
4261 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
4262 size and alignment as unsigned.
4264 2019-04-15 Richard Biener <rguenther@suse.de>
4267 * tree-loop-distribution.c (destroy_loop): Preserve correct
4270 2019-04-15 Richard Biener <rguenther@suse.de>
4272 PR tree-optimization/90071
4273 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
4274 abnormal operands from def stmts.
4276 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
4278 PR rtl-optimization/89794
4279 * combine.c (count_auto_inc): New function.
4280 (try_combine): Count how many auto_inc expressions there were in the
4281 original instructions. Ensure we have the same number in the new
4282 instructions. Remove the code that tried to ensure auto_inc side
4283 effects on i1 and i0 are not lost.
4285 2019-04-15 Richard Biener <rguenther@suse.de>
4288 * tree.h (auto_var_p): Declare.
4289 * tree.c (auto_var_p): New function, split out from ...
4290 (auto_var_in_fn_p): ... here.
4291 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
4293 (new_var_info): Initialize it.
4294 (set_uids_in_ptset): Also set the shadow variable uid if required.
4295 (ipa_pta_execute): Postprocess points-to solutions assigning
4296 shadow variable uids for locals that may reach their containing
4297 function recursively.
4298 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
4299 assert but instead check whether the points-to solution is
4302 2019-04-15 Martin Jambor <mjambor@suse.cz>
4305 * cgraph.c (clone_of_p): Loop over clone chain for each step in
4308 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4310 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
4312 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
4313 Kito Cheng <kito.cheng@gmail.com>
4314 Shiva Chen <shiva0217@gmail.com>
4316 * config/nds32/nds32-md-auxiliary.c
4317 (nds32_legitimize_pic_address): Use new PIC pattern.
4318 (nds32_legitimize_tls_address): Use new TLS pattern.
4319 (nds32_output_symrel): New.
4320 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
4321 (nds32_alloc_relax_group_id): Ditto.
4322 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
4323 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
4325 (nds32_group_tls_insn): Ditto.
4326 (nds32_group_float_insns): Ditto.
4327 * config/nds32/nds32.md (tls_le): New.
4330 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
4332 * configure: Add nds32 target for dwarf2 debug_line checking.
4333 * configure.ac: Regenerated.
4335 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
4338 * ipa-devirt.c (skip_in_fields_list_p): New.
4339 (odr_types_equivalent_p): Use it.
4341 2019-04-13 Jakub Jelinek <jakub@redhat.com>
4344 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
4345 instead of strncmp when checking for thumb and arm. Formatting fixes.
4347 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
4349 * doc/install.texi: Document --with-target-system-zlib.
4351 2019-04-12 Martin Sebor <msebor@redhat.com>
4357 * targhooks.c (default_vector_alignment): Avoid assuming
4358 argument fits in SHWI.
4359 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
4361 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
4363 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4365 PR rtl-optimization/89965
4366 * dce.c: Include rtl-iter.h.
4367 (struct check_argument_load_data): New type.
4368 (check_argument_load): New function.
4369 (find_call_stack_args): Check for loads from stack slots still tracked
4370 in sp_bytes and punt if any is found.
4372 * config/mips/loongson-mmiintrin.h: Fix up #error message.
4374 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
4376 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
4377 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
4379 2019-04-12 Martin Liska <mliska@suse.cz>
4382 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
4384 (separate_attrs): Handle multiple 'default's.
4385 (expand_target_clones): Rework error handling code.
4387 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
4390 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
4391 mode of vector rather than mode of destination for move instruction.
4392 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
4393 Use QI inner mode with V16QI vector mode.
4395 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4398 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
4399 "invalid %%t operand" in output_operand_lossage message.
4401 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
4403 * config/s390/predicates.md (permute_pattern_operand): New
4405 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
4406 operand for the permute pattern.
4407 ("*vec_perm<mode>"): New insn definition.
4408 ("bswap<mode>"): Generate the permute pattern operand in the
4409 expander and perform the operand reloads for pre arch13 level
4411 ("*bswap<mode>_emu"): Rename to ...
4412 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
4413 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
4414 Add the USE operand for the permute pattern.
4415 ("*vec_set_bswap_vec<mode>"): Likewise.
4417 2019-04-12 Jakub Jelinek <jakub@redhat.com>
4420 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
4421 and gcc_unreachable if it fails, just call tree_to_uhwi which
4422 verifies that too. Test TREE_CHAIN instead of list_length > 1.
4423 Start warning message with a lower-case letter. Formatting fixes.
4425 PR rtl-optimization/90026
4426 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
4427 successors, look for BARRIERs inside of the whole BB_FOOTER chain
4428 rather than just at the start of it. If e->src BB_FOOTER is not NULL
4429 in cfglayout mode, use emit_barrier_after_bb.
4431 2018-04-11 Steve Ellcey <sellcey@marvell.com>
4433 PR rtl-optimization/87763
4434 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
4437 2019-04-11 Tom de Vries <tdevries@suse.de>
4439 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
4440 max macro using statement expression.
4442 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
4444 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
4445 * xcoffout.c (xcoff_private_rodata_section_name): Define.
4446 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
4447 read_only_private_data_section using xcoff_private_rodata_section_name.
4448 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
4450 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
4453 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
4455 2019-04-11 Jakub Jelinek <jakub@redhat.com>
4457 PR rtl-optimization/89965
4458 * dce.c (sp_based_mem_offset): New function.
4459 (find_call_stack_args): Use sp_based_mem_offset.
4461 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
4463 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
4465 2019-04-11 Richard Biener <rguenther@suse.de>
4467 PR tree-optimization/90020
4468 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
4469 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
4470 * tree-ssa-pre.c (compute_avail): Use it to not put
4471 possibly trapping references after a call that might not
4472 return into EXP_GEN.
4473 * gcse.c (compute_hash_table_work): Do not elide
4474 marking a block containing a call if the call might not
4477 2019-04-11 Richard Biener <rguenther@suse.de>
4479 PR tree-optimization/90018
4480 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
4481 Test both SLP and interleaving variants.
4483 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
4485 * config/s390/8561.md: New file.
4486 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4487 Add arch13 cpu model.
4488 * config/s390/s390-opts.h (enum processor_type): Likewise.
4489 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
4490 (s390_get_unit_mask): Likewise.
4491 (s390_is_fpd): Likewise.
4492 (s390_is_fxd): Likewise.
4493 * config/s390/s390.h (s390_tune_attr): Likewise.
4494 * config/s390/s390.md: Include arch13 pipeline description.
4495 * config/s390/s390.opt: Add arch13.
4497 2018-04-10 Steve Ellcey <sellcey@marvell.com>
4499 PR rtl-optimization/87763
4500 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
4502 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
4504 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
4506 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
4507 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
4508 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
4509 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
4511 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
4513 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
4514 "Although" in -fipa-icf documentation.
4516 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
4517 of using multiple -g options.
4519 2019-04-10 Martin Liska <mliska@suse.cz>
4521 PR gcov-profile/89959
4522 * doc/gcov.texi: Make documentation of -x option
4525 2019-04-10 Richard Biener <rguenther@suse.de>
4527 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
4529 (DR_GROUP_SAME_DR_STMT): Remove.
4530 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
4531 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
4532 replace with assert.
4533 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
4534 (vect_record_grouped_load_vectors): Remove unreachable code.
4536 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
4539 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
4540 obsolete reference to N.
4542 2019-04-10 Jakub Jelinek <jakub@redhat.com>
4545 * expr.c (store_expr): Set properly size on the MEM passed to
4549 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
4550 with strlen in between hostsz-3 and hostsz-1 inclusive when no
4551 translation is needed, and when translation is needed, only append
4552 ... if the string length is hostsz or more bytes long. Avoid using
4555 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
4558 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
4559 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
4561 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
4562 differences directly.
4563 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
4565 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4567 PR translation/90011
4568 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
4570 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
4572 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
4573 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
4574 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
4575 trailing space from -gsplit-dwarf diagnostics.
4577 PR tree-optimization/89998
4578 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
4579 instead of integer_type_node if possible, don't add ranges if return
4580 type is not compatible with int.
4581 * gimple-fold.c (gimple_fold_builtin_sprintf,
4582 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
4585 2019-04-09 Martin Liska <mliska@suse.cz>
4587 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
4588 * doc/install.texi: Document the new config.
4590 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
4592 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
4593 use gimple_expr_type for load and store calls. Skip over the
4594 condition argument in a conditional internal function.
4595 Protect use of TREE_INT_CST_LOW.
4597 2019-04-09 Jakub Jelinek <jakub@redhat.com>
4600 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
4601 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
4602 trailing period from it too.
4604 2019-04-08 wu yuan <wuyuan5@huawei.com>
4606 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
4607 * config/aarch64/aarch64.md : Add "tsv110.md"
4608 * config/aarch64/tsv110.md: New file.
4610 2019-04-08 Richard Biener <rguenther@suse.de>
4612 PR tree-optimization/90006
4613 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
4616 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
4619 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
4621 (fma_root_node): Likewise.
4622 (func_fma_steering): Likewise.
4624 2019-04-08 Jakub Jelinek <jakub@redhat.com>
4626 PR rtl-optimization/89865
4627 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
4629 PR rtl-optimization/89865
4630 * config/i386/i386.md
4631 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
4632 numbers not to clash with the additional operands[4].
4633 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
4634 with extra register copy in the middle.
4636 2019-04-08 Martin Liska <mliska@suse.cz>
4638 PR gcov-profile/89961
4639 * doc/gcov.texi: Document data_file.
4640 * gcov.c (generate_results): Add data_info into JSON output.
4642 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
4644 PR tree-optimization/89725
4645 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
4646 loop's chrec as invariant symbol.
4647 * tree-chrec.h (chrec_contains_symbols): New parameter.
4648 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
4649 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
4650 function of loops not in DDR's loop_nest.
4651 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
4653 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
4656 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
4659 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
4662 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
4663 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
4665 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
4667 * sched-deps.c (sched_macro_fuse_insns): Check return value of
4668 targetm.fixed_condition_code_regs.
4670 2019-04-05 Richard Biener <rguenther@suse.de>
4674 * tree-cfgcleanup.c (remove_forwarder_block): Always move
4675 debug bind stmts but reset them if they are not valid at the
4678 2019-04-05 Martin Liska <mliska@suse.cz>
4680 PR translation/89936
4681 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
4682 order to wrap keywords or arguments.
4683 * collect2.c (main): Likewise.
4684 (scan_prog_file): Likewise.
4685 (scan_libraries): Likewise.
4686 * common/config/riscv/riscv-common.c
4687 (riscv_subset_list::parsing_subset_version): Likewise.
4688 (riscv_subset_list::parse_std_ext): Likewise.
4689 * config/aarch64/aarch64.c (aarch64_override_options_internal):
4691 * config/arm/arm.c (arm_option_override): Likewise.
4692 * config/cris/cris.c (cris_print_operand): Likewise.
4693 * config/darwin-c.c (darwin_pragma_options): Likewise.
4694 (darwin_pragma_unused): Likewise.
4695 (darwin_pragma_ms_struct): Likewise.
4696 * config/ft32/ft32.c (ft32_print_operand): Likewise.
4697 * config/i386/i386.c (print_reg): Likewise.
4698 (ix86_print_operand): Likewise.
4699 * config/i386/xm-djgpp.h: Likewise.
4700 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
4701 * config/m32c/m32c.c (m32c_option_override): Likewise.
4702 * config/msp430/msp430.c (msp430_option_override): Likewise.
4703 * config/nds32/nds32.c (nds32_option_override): Likewise.
4704 * config/nvptx/mkoffload.c (main): Likewise.
4705 * config/rx/rx.c (rx_print_operand): Likewise.
4706 (valid_psw_flag): Likewise.
4707 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
4708 (vms_pragma_nomember_alignment): Likewise.
4709 (vms_pragma_extern_model): Likewise.
4710 * lto-wrapper.c (compile_offload_image): Likewise.
4711 * omp-offload.c (oacc_parse_default_dims): Likewise.
4712 * symtab.c (symtab_node::verify_base): Likewise.
4713 * tlink.c (recompile_files): Likewise.
4714 (start_tweaking): Likewise.
4715 * tree-profile.c (parse_profile_filter): Likewise.
4717 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
4719 PR tree-optimization/89956
4720 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
4721 multiple negates of the same value.
4723 2019-04-04 Martin Sebor <msebor@redhat.com>
4727 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
4728 have the same precision since the function crashes otherwise.
4729 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
4730 has non-zero arguments.
4732 2019-04-04 Martin Sebor <msebor@redhat.com>
4735 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
4736 out if the number of arguments is less than expected.
4738 2019-04-04 Jeff Law <law@redhat.com>
4740 PR rtl-optimization/89399
4741 * ree.c (combine_set_extension): Use single_set rather than
4742 digging into PATTERN for items on the candidate list.
4743 (combine_reaching_defs): Likewise.
4745 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
4747 PR rtl-optimization/46590
4748 * loop-invariant.c (find_defs): Move df_remove_problem and
4749 df_process_deferred_rescans to move_invariants.
4750 Move df_live_add_problem and df_live_set_all_dirty calls
4752 (move_invariants): Likewise.
4753 (move_loop_invariants): Likewise, making the df_live calls
4754 conditional on -O. Remove the problem again if we added it
4757 2019-04-03 qing zhao <qing.zhao@oracle.com>
4759 PR tree-optimization/89730
4760 * ipa-inline.c (can_inline_edge_p): Delete the checking for
4761 -flive-patching=inline-only-static.
4762 (can_inline_edge_by_limits_p): Add the checking for
4763 -flive-patching=inline-only-static and grant always_inline
4764 even when -flive-patching=inline-only-static is specified.
4766 2019-04-03 Jeff Law <law@redhat.com>
4768 PR rtl-optimization/81025
4769 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
4771 2019-04-03 Richard Biener <rguenther@suse.de>
4773 PR tree-optimization/84101
4774 * tree-vect-stmts.c: Include explow.h for hard_function_value,
4775 regs.h for hard_regno_nregs.
4776 (cfun_returns): New helper.
4777 (vect_model_store_cost): When vectorizing a store to a decl
4778 we return and the function ABI returns in a multi-reg location
4779 account for the possible spilling that will happen.
4781 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
4783 * config/s390/s390.c (s390_legitimate_address_p): Reject long
4784 displacement addresses for vector mode operands.
4786 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
4788 * config/arc/arc.c (GMASK_LEN): Define.
4789 (arc_restore_callee_saves): Restore first blink when
4792 2019-04-03 Sudakshina Das <sudi.das@arm.com>
4794 * doc/extend.texi: Add deprecated comment on sign-return-address
4795 function attribute and add mbranch-protection.
4796 * doc/invoke.texi: Add bti to the options for mbranch-protection.
4798 2019-04-03 Richard Biener <rguenther@suse.de>
4801 * lto-wrapper.c (run_gcc): Avoid implicit rules making
4802 the all target phony.
4804 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
4808 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
4809 Return false for variable DImode shifts.
4810 (dimode_scalar_chain::compute_convert_gain): Do not handle
4811 register count operand in variable DImode shifts.
4812 (dimode_scalar_chain::make_vector_copies): Remove support to copy
4813 count argument of a variable shift instruction to a vector register.
4814 (dimode_scalar_chain::convert_reg): Remove support to convert
4815 count argument of a variable shift instruction.
4817 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4819 PR rtl-optimization/84206
4820 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
4821 iterating over loop headers.
4823 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
4825 PR rtl-optimization/85876
4826 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
4827 beyond the original fence.
4829 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
4831 * config.gcc: Mark spu* targets as deprecated/obsolete.
4833 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4835 * config/s390/s390-builtin-types.def: New builtin function type
4836 definitions. Remove unused types.
4837 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
4838 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
4839 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
4840 overloaded builtins.
4841 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
4842 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
4843 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
4844 (vec_double, vec_signed, vec_unsigned): Define to use the new
4845 overloaded builtins.
4846 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
4849 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4851 * config/s390/s390-builtin-types.def: New builtin function type
4853 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
4854 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
4855 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
4856 (s390_vstrszh, s390_vstrszf): New low-level builtins.
4857 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
4858 constant definitions.
4859 * config/s390/vecintrin.h (vec_search_string_cc)
4860 (vec_search_string_until_zero_cc): New builtin name definitions.
4861 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
4863 ("vec_vstrs<mode>"): New insn definition.
4865 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4867 * config/s390/s390-builtin-types.def: Add new builtin function
4869 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
4870 New overloaded builtins.
4871 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
4873 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
4874 (UNSPEC_VEC_SLDBYTE): ... this.
4875 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
4876 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
4878 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
4879 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
4880 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
4882 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4884 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
4885 New insn definition.
4886 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
4887 * config/s390/vector.md (V_HW_HSD): ... here.
4889 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4891 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
4892 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
4893 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
4894 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
4895 New insn definitions.
4897 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4899 * config/s390/s390-builtin-types.def: Add new builtin function type.
4900 * config/s390/s390-builtins.def: Add overloaded builtin
4901 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
4902 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
4903 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
4904 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
4905 ("eltswap<mode>"): New expander.
4906 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
4909 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4911 * config/s390/s390-builtin-types.def: Add new builtin function types.
4912 * config/s390/s390-builtins.def: Add overloaded builtin
4913 s390_vec_revb. Add low-level builtins for vlbr and vstbr
4915 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
4916 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
4917 ("bswap<mode>"): New expander.
4918 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
4920 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4922 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
4923 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
4924 vector builtin version number in __VEC__.
4926 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4928 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
4930 (SFSI): New mode attribute.
4931 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
4932 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
4934 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
4935 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
4936 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
4937 ("floatsi<mode>2"): Add wcefb instruction.
4939 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4941 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
4942 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
4944 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
4945 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
4946 support 32 bit fp-int conversions. Rename to ...
4947 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4948 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
4949 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
4950 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
4953 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4955 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
4956 if-then-else constructs if we can use the select instruction.
4957 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
4959 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4961 * config/s390/s390.md ("*popcountdi_arch13_cc")
4962 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
4964 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
4965 Append _z196 to make it ...
4966 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
4967 ("popcounthi2_z196"): ... this.
4968 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
4969 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
4971 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4973 * config/s390/s390.c (s390_canonicalize_comparison): Convert
4974 certain compares for arch13 in order to make use of the condition
4975 code result produced by the new instructions.
4976 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
4977 nxrk, and nxgrk instruction patterns.
4978 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
4979 (inv_no): Add new code iterator together with some attributes.
4980 ("*andc_split_<mode>"): Disable splitter for arch13.
4981 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
4982 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
4983 ("*<ANDOR:bitops_name>c<GPR:mode>")
4984 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
4985 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
4986 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
4987 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
4989 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
4991 * common/config/s390/s390-common.c (processor_flags_table): New
4993 * config.gcc: Support arch13 with the --with-arch= configure flag.
4994 * config/s390/driver-native.c (s390_host_detect_local_cpu):
4995 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
4996 * config/s390/s390.c (s390_get_sched_attrmask)
4997 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
4998 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
4999 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
5000 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
5001 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
5003 * config/s390/s390.opt: Support arch13 as processor type in
5004 command line options.
5006 2019-04-02 Martin Liska <mliska@suse.cz>
5008 PR translation/89912
5009 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
5010 Fix param description of graphite-max-arrays-per-scop.
5012 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
5014 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
5015 (ASAN_CC1_SPEC): Use it in 64-bit mode.
5016 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
5018 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5020 PR rtl-optimization/85412
5021 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
5022 sel_sched_region_1, not after.
5024 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5026 PR rtl-optimization/86928
5027 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
5028 compute_live if necessary.
5029 (sel_redirect_edge_and_branch): Likewise.
5031 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
5033 PR rtl-optimization/89865
5034 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
5035 register if it is a part of small class.
5037 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
5039 PR rtl-optimization/87273
5040 * sel-sched-ir.c (merge_fences): Remove assert.
5042 2019-04-01 Richard Biener <rguenther@suse.de>
5044 PR tree-optimization/46590
5045 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
5046 (dom_walker::m_reachability): Add in place of...
5047 (dom_walker::m_skip_unreachable_blocks): ...this.
5048 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
5049 Move complex initialization ...
5050 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
5051 lazily and initialize edge flags on each invocation.
5052 (dom_walker::bb_reachable): Use m_reachability.
5054 2019-04-01 Martin Liska <mliska@suse.cz>
5057 * opt-suggestions.c (option_proposer::build_option_suggestions):
5058 Add variant without any argument in order to provide better
5061 2019-04-01 Richard Biener <rguenther@suse.de>
5064 * gimple.c: Include langhooks.h.
5065 (gimple_get_alias_set): Treat enumeral types as the underlying
5068 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
5069 Eric Botcazou <ebotcazou@adacore.com>
5071 PR rtl-optimization/89862
5072 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
5073 that operates on the full registers for WORD_REGISTER_OPERATIONS
5076 2019-03-29 Jim Wilson <jimw@sifive.com>
5078 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
5079 Clear MASK_RVC and then set if C subset supported.
5081 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5084 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
5085 non-addressable complit into its initializer if it is volatile.
5087 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
5089 * opts-common.c (integral_argument): Set errno properly in one case.
5091 2019-03-29 Martin Liska <mliska@suse.cz>
5093 * doc/invoke.texi: Remove -Wchkp from documentation.
5095 2019-03-29 Martin Liska <mliska@suse.cz>
5097 * dbgcnt.c (print_limit_reach): New function.
5100 2019-03-29 Martin Liska <mliska@suse.cz>
5102 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
5103 (dbg_cnt_process_opt): Parse first tokens aas
5104 dbg_cnt_process_single_pair is also using strtok.
5106 2019-03-29 Jakub Jelinek <jakub@redhat.com>
5108 PR rtl-optimization/87485
5109 * function.c (expand_function_end): Move stack_protect_epilogue
5110 before loading of return value into hard register(s).
5112 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5115 * tree-inline.h (struct copy_body_data): Add
5116 dont_remap_vla_if_no_change flag.
5117 * tree-inline.c (remap_type_3, remap_type_2): New functions.
5118 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
5119 and remap_type_2 returns false.
5120 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
5121 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
5122 only from where it is copied to nested contexts.
5124 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5127 * config/i386/i386.md (RMW operation with LEA peephole):
5128 Use LEAMODE mode attribute instead of SWI mode iterator for
5131 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
5134 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
5135 Also process XEXP (src, 0) of a shift insn.
5137 2019-03-28 David Malcolm <dmalcolm@redhat.com>
5140 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
5141 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
5143 2019-03-28 Jakub Jelinek <jakub@redhat.com>
5145 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
5147 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
5148 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
5149 immediately after first one with df_analyze in between, but rather
5150 process all bbs, queueing ones that need second pass in a worklist,
5151 df_analyze, process queued debug insn changes and if second pass is
5152 needed, process bbs from worklist, df_analyze, process queued debug
5155 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
5156 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
5157 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
5159 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
5162 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
5165 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
5168 * config/i386/i386.c (ix86_function_value_1): Call the newly added
5169 function for 32-bit MS_ABI.
5170 (function_value_ms_32): New function.
5172 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
5174 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
5175 (movdi): Call gen_movdi_symbol_save_scc.
5176 (gen_movdi_symbol_save_scc): New insn and split.
5178 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
5180 PR rtl-optimization/89313
5181 * function.c (matching_constraint_num): New static function.
5182 (match_asm_constraints_1): Use it. Fixup white space and comment.
5183 Don't replace inputs with non-matching constraints which conflict
5184 with early clobber outputs.
5186 2019-03-27 Jeff Law <law@redhat.com>
5189 PR rtl-optimization/87761
5190 PR rtl-optimization/89826
5191 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
5193 (pass_cprop_hardreg::execute): Call df_analyze after adding the
5194 note problem to get REG_DEAD/REG_UNUSED notes updated.
5196 2019-03-27 Richard Biener <rguenther@suse.de>
5198 PR tree-optimization/89463
5199 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
5200 queue edges to remove.
5201 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
5202 dead stmts. Delay edge removal until PHIs are removed to
5203 make debug-stmt creation not confused by seemingly degenerate
5206 2019-03-27 Alan Modra <amodra@gmail.com>
5208 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
5210 * config/rs6000/darwin.h: Likewise.
5211 * config/rs6000/rs6000.c: Likewise.
5213 2019-03-27 Alan Modra <amodra@gmail.com>
5215 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
5216 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
5218 2019-03-26 Andrew Waterman <andrew@sifive.com>
5219 Jim Wilson <jimw@sifive.com>
5221 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
5222 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
5223 (generic_idivdi, generic_fmul_single, generic_fmul_double)
5224 (generic_fdiv, generic_fsqrt): Add check for generic tune.
5225 (generic_alu): Add auipc to type list.
5226 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
5227 (riscv_microarchitecture): Declare.
5228 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
5229 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
5231 (riscv_microarchitecture): New.
5232 (sifive_7_tune_info): New.
5233 (riscv_cpu_info_table): Add microarchitecture value for rocket and
5234 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
5236 (riscv_store_data_bypass_p): New.
5237 (riscv_option_override): Set riscv_microarchitecture from
5238 cpu->microarchitecture.
5239 * config/riscv/riscv.md: Include sifive-7.md.
5242 (auipc<mode>): Change type to auipc.
5243 (restore_stack_nonlocal): New.
5244 * config/riscv/sifive-7.md: New.
5245 * doc/invoke.texi (RISC-V Options): Update mtune docs.
5247 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
5250 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
5251 Also process XEXP (src, 0) of a shift insn.
5253 2019-03-26 Richard Biener <rguenther@suse.de>
5255 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
5256 (copy_debug_stmt): Likewise.
5257 (expand_call_inline): Likewise.
5258 (copy_bb): Avoid redundant lookup & set of gimple_block.
5259 * gimple-low.c (lower_gimple_return): Likewise.
5260 (lower_builtin_setjmp): Likewise.
5262 2019-03-26 Jakub Jelinek <jakub@redhat.com>
5264 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
5265 is constant 0, turn into static const data member initialized to false.
5266 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
5267 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
5269 2019-03-26 Jason Merrill <jason@redhat.com>
5270 Jakub Jelinek <jakub@redhat.com>
5272 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
5274 (mem_alloc_description::release_object_overhead): Fix comment typos.
5275 * hash-table.h (hash_table::~hash_table): Call
5276 release_instance_overhead only if m_entries is non-NULL, otherwise
5277 call unregister_descriptor.
5279 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
5281 PR tree-optimization/81740
5282 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
5283 In case of outer loop vectorization, check for backward dependence
5284 at the inner loop if outer loop dependence is reversed.
5286 2019-03-26 Alan Modra <amodra@gmail.com>
5288 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
5289 rs6000_vector_mem init. Correct wI and wJ comment.
5291 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
5293 PR rtl-optimization/88347
5294 PR rtl-optimization/88423
5295 * sched-deps.c (sched_analyze_insn): Take into account that for
5296 tablejumps the barrier appears after a label and a jump_table_data.
5298 2019-03-25 Martin Sebor <msebor@redhat.com>
5301 * c-common.c (check_user_alignment): Rename local. Correct maximum
5302 alignment in diagnostic. Avoid assuming argument fits in SHWI,
5303 convert it to UHWI when it fits.
5305 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
5308 * dwarf2out.c (premark_used_variables): New function.
5309 (prune_unused_types_walk): Do not mark not premarked external
5311 (prune_unused_types): Call premark_used_variables.
5313 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
5315 PR rtl-optimization/89676
5316 * lra-constraints.c (curr_insn_transform): Do match reload for
5317 early clobbers when the match was successful only for different
5320 2019-03-25 Martin Sebor <msebor@redhat.com>
5322 * doc/extend.texi (Common Type Attributes): Document vector_size.
5323 (Common Variable Attributes): Mention size constraint. Correct
5325 (Vector Extensions): Use @dfn when defining bas type. Clarify
5326 base type and size constraints.
5328 2019-03-25 Richard Biener <rguenther@suse.de>
5330 PR tree-optimization/89789
5331 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
5332 changes from non-undefined back to undefined.
5334 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
5336 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
5337 heap string and a gc string, but since this variable is unknown to
5338 ggc the gc string might get reused and corrupted. Fixed by always
5339 using a heap string.
5341 2019-03-25 Richard Biener <rguenther@suse.de>
5343 PR tree-optimization/89779
5344 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
5345 to remove IV defs, delay actual removal.
5346 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
5347 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
5348 very end, properly also reset loop control IV information.
5350 2019-03-25 Richard Biener <rguenther@suse.de>
5352 PR tree-optimization/89802
5353 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
5354 move EH data to folded stmt.
5356 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5358 * config/s390/s390-builtin-types.def: Remove few unused types and
5359 fix sort order for others.
5361 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
5363 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
5364 expected and found types with -mdebug during builtin matching.
5366 2019-03-25 Richard Biener <rguenther@suse.de>
5369 * fold-const.c (operand_equal_p): Revert last change with
5372 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
5374 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
5375 notes for the result of the __tls_get_addr calls.
5376 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
5378 2019-03-24 Jeff Law <law@redhat.com>
5380 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
5382 PR rtl-optimization/87761
5383 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
5384 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
5386 (pass_cprop_hardreg::execute): Add df note problem and defer insn
5387 rescans. Reprocess blocks as needed, calling df_analyze before
5388 reprocessing. Always call df_analyze before fixing up debug bind
5391 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
5393 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
5396 2019-03-22 Andrew Pinski <apinski@marvell.com>
5398 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
5399 attrribute for uxtw.
5401 2019-03-26 Jeff Law <law@redhat.com>
5403 PR rtl-optimization/87761
5404 * config/mips/mips-protos.h (mips_split_move): Add new argument.
5405 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
5406 (mips_split_move): Accept new INSN argument. Try to forward SRC
5407 into the next instruction.
5408 (mips_split_move_insn): Pass INSN through to mips_split_move.
5410 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
5412 PR rtl-optimization/89676
5413 * lra-constraints.c (curr_insn_transform): Do match reload for
5414 early clobbers even if the match was successful.
5416 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5419 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
5421 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
5423 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
5425 2019-03-22 Jakub Jelinek <jakub@redhat.com>
5427 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
5428 <avx512>_fmsub_<mode>_mask3<round_name>,
5429 <avx512>_fnmadd_<mode>_mask3<round_name>,
5430 <avx512>_fnmsub_<mode>_mask3<round_name>,
5431 avx512f_vmfmadd_<mode>_mask3<round_name>,
5432 avx512f_vmfmsub_<mode>_mask3<round_name>,
5433 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
5434 instead of register_operand and %v instead of v for match_operand 1.
5435 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
5436 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
5437 <round_nimm_predicate> instead of register_operand and %v instead of v
5438 for match_operand 1.
5440 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
5441 <avx512>_fmadd_<mode>_mask3<round_name>,
5442 <avx512>_fmsub_<mode>_mask<round_name>,
5443 <avx512>_fmsub_<mode>_mask3<round_name>,
5444 <avx512>_fnmadd_<mode>_mask<round_name>,
5445 <avx512>_fnmadd_<mode>_mask3<round_name>,
5446 <avx512>_fnmsub_<mode>_mask<round_name>,
5447 <avx512>_fnmsub_<mode>_mask3<round_name>,
5448 <avx512>_fmaddsub_<mode>_mask<round_name>,
5449 <avx512>_fmaddsub_<mode>_mask3<round_name>,
5450 <avx512>_fmsubadd_<mode>_mask<round_name>,
5451 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
5452 <round_nimm_predicate> instead of nonimmediate_operand.
5453 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5454 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
5455 Use register_operand instead of <round_nimm_predicate> for the
5456 operand that needs to match output.
5457 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5458 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
5459 Likewise. Formatting fixes.
5462 * config/i386/i386.c (enum ix86_builtins): Remove
5463 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
5464 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
5465 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
5466 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
5467 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
5468 __builtin_ia32_vfmsubss3_mask3): New builtins.
5469 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
5470 avx512f_vmfmadd_<mode>_mask3<round_name>,
5471 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5472 *avx512f_vmfmsub_<mode>_mask<round_name>,
5473 avx512f_vmfmsub_<mode>_mask3<round_name>,
5474 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
5475 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5476 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5477 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5478 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5479 avx512f_vmfnmsub_<mode>_mask3<round_name>,
5480 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
5481 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
5482 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
5483 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
5484 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
5485 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
5486 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
5487 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
5488 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
5489 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
5490 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
5491 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
5492 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
5493 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
5494 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
5495 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
5496 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
5497 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
5498 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
5499 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
5500 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
5501 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
5503 2019-03-21 Martin Sebor <msebor@redhat.com>
5505 PR tree-optimization/89350
5506 * builtins.c (compute_objsize): Also ignore offsets whose upper
5508 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
5509 (builtin_memref::builtin_memref): Initialize new member.
5510 Allow EXPR to be null.
5511 (builtin_memref::extend_offset_range): Replace local with a member.
5512 Avoid assuming pointer offsets are unsigned.
5513 (builtin_memref::set_base_and_offset): Determine base object
5514 before computing offset range.
5515 (builtin_access::builtin_access): Handle memset.
5516 (builtin_access::generic_overlap): Replace local with a member.
5517 (builtin_access::strcat_overlap): Same.
5518 (builtin_access::overlap): Same.
5519 (maybe_diag_overlap): Same.
5520 (maybe_diag_access_bounds): Same.
5521 (wrestrict_dom_walker::check_call): Handle memset.
5522 (check_bounds_or_overlap): Same.
5524 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
5525 Jakub Jelinek <jakub@redhat.com>
5528 * tree.c (fld_type_variant, fld_incomplete_type_of,
5529 fld_process_array_type): Call fld->pset.add and don't call
5530 add_tree_to_fld_list if it returns true.
5531 (free_lang_data_in_type): Similarly with self-recursive call. Purge
5532 non-marked types from TYPE_NEXT_VARIANT list.
5533 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
5535 2019-03-21 Jakub Jelinek <jakub@redhat.com>
5537 * hash-table.h (hash_table): Add Lazy template parameter defaulted
5538 to false, if true, don't alloc_entries during construction, but defer
5539 it to the first method that needs m_entries allocated.
5540 (hash_table::hash_table, hash_table::~hash_table,
5541 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
5542 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
5543 hash_table::clear_slot, hash_table::traverse_noresize,
5544 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
5545 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
5547 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
5548 NO_INSERT instead of find_with_hash.
5549 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
5550 hash_set::m_table): Add Lazy to template params of hash_table.
5551 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
5552 * attribs.c (test_attribute_exclusions): Likewise.
5553 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
5554 hash_set. Add tests for hash_set with Lazy = true.
5556 2019-03-21 Richard Biener <rguenther@suse.de>
5558 PR tree-optimization/89779
5559 * tree.c (tree_nop_conversion): Consolidate and fix defensive
5560 checks with respect to released SSA names now having error_mark_node
5562 * fold-const.c (operand_equal_p): Likewise.
5564 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
5567 * config/s390/s390.c (global_not_special_regno_p): Move to make it
5569 (s390_optimize_register_info): Use global_not_special_regno_p to
5570 check for global regs.
5572 2019-03-20 Jakub Jelinek <jakub@redhat.com>
5575 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
5576 update this_alternative nor this_alternative_set.
5578 2019-03-19 Jim Wilson <jimw@sifive.com>
5581 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
5582 align, size, offset. Use them to handle a BLKmode reference. Update
5584 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
5586 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5588 PR rtl-optimization/89768
5589 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
5591 (unroll_loop_runtime_iterations): Likewise.
5593 2019-03-19 Martin Sebor <msebor@redhat.com>
5595 PR tree-optimization/89644
5596 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
5597 rather than endptr as an indicator of nul-termination.
5599 PR tree-optimization/89644
5600 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
5601 arrays in determining sequence sizes in strncpy and stpncpy.
5603 2019-03-19 Martin Liska <mliska@suse.cz>
5606 * predict.c (combine_predictions_for_bb): Empty likely_edges and
5607 unlikely_edges if there's an edge that belongs to both these sets.
5609 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
5612 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
5613 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
5614 go via a stack temporary.
5616 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5619 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
5620 instead of gen_rtx_SUBREG.
5621 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
5623 2019-03-19 Richard Biener <rguenther@suse.de>
5626 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
5628 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
5632 * tree.c (free_lang_data_in_decl): Do not free context of C++
5635 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5638 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
5639 subs for the first alternative except when operands[3] is 1.
5642 * gimplify.c (gimplify_asm_expr): For output argument with
5643 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
5646 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
5648 PR rtl-optimization/89753
5649 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
5650 explicit unrolling factor even more robust.
5652 2019-03-19 Jakub Jelinek <jakub@redhat.com>
5655 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
5656 compensation use x2 += 1 instead of x2 -= -1 and when honoring
5657 signed zeros, do another copysign after the compensation.
5659 2019-03-18 Martin Sebor <msebor@redhat.com>
5661 PR tree-optimization/89720
5662 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
5663 more conservatively, the same as anti-range.
5665 2019-03-18 Richard Biener <rguenther@suse.de>
5668 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
5669 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
5670 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
5671 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
5673 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
5675 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
5676 Extend queue to 1024 entries.
5677 Add "consumed" field.
5678 (gomp_print_output): Remove print_index parameter.
5679 Add final parameter.
5680 Change limit to unsigned.
5681 Use consumed field to implement circular buffer.
5682 Detect interrupted print in final pass.
5683 Flush output at the end.
5684 (run): Update gomp_print_output usage.
5685 (main): Initialize kernargs->output_data.consumed.
5687 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
5689 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
5690 calculation of the minimum number of scalar iterations for
5691 fully-predicated loops.
5693 2019-03-18 Martin Jambor <mjambor@suse.cz>
5695 PR tree-optimization/89546
5696 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
5697 any propagation to its children took place.
5699 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
5702 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
5703 parameter, and make use of it.
5704 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
5706 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5708 * config/arc/arc.opt (mcode-density-frame): Get the inital value
5709 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
5710 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5711 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
5712 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
5713 match what the ops is doing.
5714 (push_multi_fp_blink): Likewise.
5715 * config/arc/arc.c (arc_override_options): Enable enter/leave when
5716 compiling for size and elf target.
5717 (arc_save_callee_enter): Adjust note to match what enter/leave
5720 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5722 * config/arc/arc.md (tst_movb): Fix constraint.
5724 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5726 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
5728 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
5730 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
5731 * config/arc/arc.c (arc_conditional_register_usage): Remove all
5732 reg_alloc_order references.
5733 (size_alloc_order): Define.
5734 (arc_adjust_reg_alloc_order): New function.
5735 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
5737 (ADJUST_REG_ALLOC_ORDER): Define.
5738 (HONOR_REG_ALLOC_ORDER): Likewise.
5740 2019-03-18 Richard Biener <rguenther@suse.de>
5743 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
5744 loads and stores a bit more.
5746 2019-03-18 Richard Biener <rguenther@suse.de>
5749 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
5750 load pessimization to stores as well.
5752 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
5755 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
5756 successor, use NULL as its av set.
5758 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
5760 PR rtl-optimization/89721
5761 * lra-constraints (invariant_p): Return false if side_effects_p holds.
5763 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
5766 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
5767 When handling vec_extract, use modular arithmetic to allow
5768 constant selectors greater than vector length.
5769 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
5770 V1TImode vectors to have constant selector values greater than 0.
5771 Use modular arithmetic to compute vector index.
5772 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
5773 index for in-memory vectors. Correct code generation for
5774 in-register vectors.
5775 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
5778 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
5782 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
5785 2019-03-15 Jakub Jelinek <jakub@redhat.com>
5788 * tree.c (inchash::add_expr): Strip any location wrappers.
5789 * fold-const.c (operand_equal_p): Move stripping of location wrapper
5790 after hash verification.
5793 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
5794 SIGN_EXTEND and ZERO_EXTEND.
5796 2019-03-14 Jason Merrill <jason@redhat.com>
5797 Jakub Jelinek <jakub@redhat.com>
5799 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
5800 than if is_empty (*slot).
5801 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
5802 existing elt and for elt removal.
5803 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
5804 of already removed elt.
5806 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
5809 * config/i386/i386.c (remove_partial_avx_dependency): Handle
5812 2019-03-14 Martin Liska <mliska@suse.cz>
5815 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
5817 2019-03-14 Richard Biener <rguenther@suse.de>
5820 * config/i386/i386.c (make_resolver_func): Properly set
5821 DECL_CONTEXT on the RESULT_DECL.
5822 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
5824 2019-03-14 Richard Biener <rguenther@suse.de>
5826 * gimple-pretty-print.c: Include cfgloop.h.
5827 (dump_gimple_phi): Adjust.
5828 (dump_gimple_bb_header): Dump loop header for GIMPLE.
5829 (pp_cfg_jump): Adjust.
5830 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
5831 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
5832 (lower_phi_internal_fn): Remove.
5833 (verify_gimple_call): Remove IFN_PHI special-casing.
5834 (dump_function_to_file): Dump IL state.
5835 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
5836 done to deal with PHI nodes being present in non-SSA state.
5838 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5841 * multiple_target.c (create_dispatcher_calls): Change
5842 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
5843 In the node->iterate_referring loop, push *ref rather than ref, call
5844 ref->remove_reference () and always pass 0 to iterate_referring.
5846 PR rtl-optimization/89679
5847 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
5848 would contain a paradoxical SUBREG.
5850 2019-03-14 Richard Biener <rguenther@suse.de>
5852 PR tree-optimization/89710
5853 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
5856 2019-03-14 Martin Liska <mliska@suse.cz>
5858 * coverage.c (coverage_begin_function): Stream also
5860 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
5861 documentation about function declaration location.
5862 * gcov-dump.c (tag_function): Print whole range
5863 of function declaration.
5864 * gcov.c (struct function_info): Add end_column field.
5865 (function_info::function_info): Initialize it.
5866 (output_json_intermediate_file): Output {start,end}_column
5868 (read_graph_file): Read end_column.
5870 2019-03-14 Richard Biener <rguenther@suse.de>
5873 * fold-const.c (operand_equal_p): For INDIRECT_REF check
5874 that the access types are similar.
5876 2019-03-14 Jakub Jelinek <jakub@redhat.com>
5878 PR tree-optimization/89703
5879 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
5880 aren't compatible also with builtin_decl_explicit. Check pure
5881 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
5882 and BUILT_IN_STPNCPY{,_CHK}.
5884 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
5887 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
5888 addr32 prefix to VSIB address for X32.
5889 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
5891 (*avx512pf_gatherpf<mode>df_mask): Likewise.
5892 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
5893 (*avx512pf_scatterpf<mode>df_mask): Likewise.
5894 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
5895 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
5896 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
5897 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
5898 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
5899 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
5900 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
5901 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
5902 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
5903 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
5904 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
5905 (*avx512f_scatterdi<mode>): Likewise.
5907 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
5910 * lra-constraints.c (inherit_in_ebb): Update
5911 potential_reload_hard_regs along with live_hard_regs.
5913 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5916 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
5918 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
5920 2019-03-13 Martin Sebor <msebor@redhat.com>
5922 PR tree-optimization/89662
5923 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
5926 2019-03-13 Richard Biener <rguenther@suse.de>
5929 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
5930 throw FP expressions at tree-affine.
5932 2019-03-14 Richard Biener <rguenther@suse.de>
5934 * tree-pretty-print.c (dump_generic_node): For -gimple properly
5935 dump negative integer constants using _Literal (type) -num.
5937 2019-03-13 Jakub Jelinek <jakub@redhat.com>
5939 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
5940 nonlocal_value member.
5943 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
5944 (ipa_simd_modify_function_body): Handle PHIs.
5946 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5948 * config/s390/s390.c (s390_option_override_internal): Use more
5949 aggressive inlining parameters.
5951 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5953 * config/s390/3906.md: New file.
5954 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5955 (LONGRUNNING_THRESHOLD): Remove.
5956 (MAX_SCHED_MIX_SCORE): Decrease.
5957 (MAX_SCHED_MIX_DISTANCE): Decrease.
5958 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
5959 (struct s390_sched_state): New struct to hold scheduling state.
5960 (S390_SCHED_STATE_NORMAL): Remove.
5961 (S390_SCHED_STATE_CRACKED): Remove.
5962 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
5963 (s390_get_sched_attrmask): Use new attribute.
5964 (s390_get_unit_mask): Use new units.
5965 (s390_is_fpd): New function.
5966 (s390_is_fxd): New function.
5967 (s390_is_longrunning): New function.
5968 (s390_sched_score): Use new functions.
5969 (s390_sched_reorder): Likewise.
5970 (s390_sched_variable_issue): Rework and use new functions.
5971 (s390_sched_init): Use new functions.
5972 * config/s390/s390.h (s390_tune_attr): Add z14.
5973 * config/s390/s390.md: Add z14.
5975 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
5977 * config/s390/2964.md: Update pipeline description.
5978 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
5979 (LONGRUNNING_THRESHOLD): Remove.
5980 (LATENCY_FACTOR): Remove.
5981 (s390_get_unit_mask): Add unit.
5982 (s390_sched_score): Use fxd/fpd.
5983 (s390_sched_variable_issue): Use fxd/fpd.
5985 2019-03-12 Martin Liska <mliska@suse.cz>
5987 * config/i386/i386.c: Reword an error message.
5989 2019-03-12 Martin Jambor <mjambor@suse.cz>
5991 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
5992 terminate with newline.
5994 2019-03-12 Jakub Jelinek <jakub@redhat.com>
5997 * config/s390/s390.md (tabort): Use %wd instead of
5998 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
5999 letters and periods.
6000 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
6001 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
6005 * builtins.c (expand_builtin_int_roundingfn,
6006 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
6007 gcc_unreachable if validate_arglist fails.
6009 2019-03-12 Richard Biener <rguenther@suse.de>
6011 PR tree-optimization/89664
6012 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
6013 free the occurance tree after the early out.
6015 2019-03-11 Jakub Jelinek <jakub@redhat.com>
6019 * vr-values.c (vr_values::update_value_range): If
6020 old_vr->varying_p (), don't update it, make new_vr also VARYING
6023 2019-03-11 Martin Liska <mliska@suse.cz>
6025 * config/aarch64/aarch64.c (aarch64_override_options_internal):
6026 Fix double string quoting.
6028 2019-03-11 Martin Liska <mliska@suse.cz>
6030 * collect-utils.c (collect_wait): Wrap apostrophes
6031 in gcc internal format with %'.
6032 * collect2.c (main): Likewise.
6033 (scan_prog_file): Likewise.
6034 (scan_libraries): Likewise.
6035 * config/i386/i386.c (ix86_expand_call): Likewise.
6036 (ix86_handle_interrupt_attribute): Likewise.
6037 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6038 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
6039 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
6040 * lto-wrapper.c (find_crtoffloadtable): Likewise.
6041 * symtab.c (symtab_node::verify_base): Likewise.
6042 * tree-cfg.c (verify_gimple_label): Likewise.
6043 * tree.c (verify_type_variant): Likewise.
6045 2019-03-11 Martin Liska <mliska@suse.cz>
6047 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
6048 in a string format message and fix GNU coding style.
6049 (expand_builtin_set_thread_pointer): Likewise.
6050 * common/config/aarch64/aarch64-common.c
6051 (aarch64_rewrite_selected_cpu): Likewise.
6052 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
6053 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
6054 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
6055 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
6056 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
6057 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
6058 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
6059 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
6060 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
6061 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
6063 * common/config/riscv/riscv-common.c
6064 (riscv_subset_list::parsing_subset_version): Likewise.
6065 (riscv_subset_list::parse_std_ext): Likewise.
6066 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6067 (riscv_subset_list::parse): Likewise.
6068 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
6069 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
6070 (aarch64_override_options_internal): Likewise.
6071 (aarch64_validate_mcpu): Likewise.
6072 (aarch64_validate_march): Likewise.
6073 (aarch64_validate_mtune): Likewise.
6074 (aarch64_override_options): Likewise.
6075 * config/alpha/alpha.c (alpha_option_override): Likewise.
6076 * config/arc/arc.c (arc_init): Likewise.
6077 (parse_mrgf_banked_regs_option): Likewise.
6078 (arc_override_options): Likewise.
6079 (arc_expand_builtin_aligned): Likewise.
6080 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
6081 (arm_expand_builtin): Likewise.
6082 * config/arm/arm.c (arm_option_check_internal): Likewise.
6083 (arm_configure_build_target): Likewise.
6084 (arm_option_override): Likewise.
6085 (arm_options_perform_arch_sanity_checks): Likewise.
6086 (arm_handle_cmse_nonsecure_entry): Likewise.
6087 (arm_handle_cmse_nonsecure_call): Likewise.
6088 (arm_tls_referenced_p): Likewise.
6089 (thumb1_expand_prologue): Likewise.
6090 * config/avr/avr.c (avr_option_override): Likewise.
6091 * config/bfin/bfin.c (bfin_option_override): Likewise.
6092 * config/c6x/c6x.c (c6x_option_override): Likewise.
6093 * config/cr16/cr16.c (cr16_override_options): Likewise.
6094 * config/cris/cris.c (cris_option_override): Likewise.
6095 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
6096 * config/darwin-c.c (macosx_version_as_macro): Likewise.
6097 * config/darwin.c (darwin_override_options): Likewise.
6098 * config/frv/frv.c (frv_expand_builtin): Likewise.
6099 * config/h8300/h8300.c (h8300_option_override): Likewise.
6100 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
6101 (ix86_option_override_internal): Likewise.
6102 (warn_once_call_ms2sysv_xlogues): Likewise.
6103 (ix86_expand_prologue): Likewise.
6104 (split_stack_prologue_scratch_regno): Likewise.
6105 (ix86_warn_parameter_passing_abi): Likewise.
6106 * config/ia64/ia64.c (fix_range): Likewise.
6107 * config/m68k/m68k.c (m68k_option_override): Likewise.
6108 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
6109 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
6110 (mips_set_compression_mode): Likewise.
6111 * config/mmix/mmix.c (mmix_option_override): Likewise.
6112 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
6113 * config/msp430/msp430.c (msp430_option_override): Likewise.
6114 * config/nds32/nds32.c (nds32_option_override): Likewise.
6115 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
6116 (nios2_option_override): Likewise.
6117 (nios2_expand_custom_builtin): Likewise.
6118 * config/nvptx/mkoffload.c (main): Likewise.
6119 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
6120 * config/pa/pa.c (fix_range): Likewise.
6121 (pa_option_override): Likewise.
6122 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
6123 (riscv_option_override): Likewise.
6124 * config/rl78/rl78.c (rl78_option_override): Likewise.
6125 * config/rs6000/aix61.h: Likewise.
6126 * config/rs6000/aix71.h: Likewise.
6127 * config/rs6000/aix72.h: Likewise.
6128 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
6129 * config/rs6000/freebsd64.h: Likewise.
6130 * config/rs6000/linux64.h: Likewise.
6131 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
6132 (rs6000_expand_zeroop_builtin): Likewise.
6133 (rs6000_expand_mtfsb_builtin): Likewise.
6134 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
6135 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
6136 (rs6000_invalid_builtin): Likewise.
6137 (rs6000_expand_split_stack_prologue): Likewise.
6138 * config/rs6000/rtems.h: Likewise.
6139 * config/rx/rx.c (valid_psw_flag): Likewise.
6140 (rx_expand_builtin): Likewise.
6141 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6142 * config/s390/s390.c (s390_expand_builtin): Likewise.
6143 (s390_function_profiler): Likewise.
6144 (s390_option_override_internal): Likewise.
6145 (s390_option_override): Likewise.
6146 * config/sh/sh.c (sh_option_override): Likewise.
6147 (sh_builtin_saveregs): Likewise.
6148 (sh_fix_range): Likewise.
6149 * config/sh/vxworks.h: Likewise.
6150 * config/sparc/sparc.c (sparc_option_override): Likewise.
6151 * config/spu/spu.c (spu_option_override): Likewise.
6152 (fix_range): Likewise.
6153 * config/visium/visium.c (visium_option_override): Likewise.
6154 (visium_handle_interrupt_attr): Likewise.
6155 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
6156 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
6157 (dbg_cnt_process_opt): Likewise.
6158 * dwarf2out.c (output_dwarf_version): Likewise.
6159 * except.c (expand_eh_return): Likewise.
6160 * gcc.c (defined): Likewise.
6161 (driver_handle_option): Likewise.
6162 (process_command): Likewise.
6163 (compare_files): Likewise.
6164 (driver::prepare_infiles): Likewise.
6165 (driver::do_spec_on_infiles): Likewise.
6166 (driver::maybe_run_linker): Likewise.
6167 * omp-offload.c (oacc_parse_default_dims): Likewise.
6168 * opts-global.c (handle_common_deferred_options): Likewise.
6169 * opts.c (parse_sanitizer_options): Likewise.
6170 (common_handle_option): Likewise.
6171 (enable_warning_as_error): Likewise.
6172 * passes.c (enable_disable_pass): Likewise.
6173 * plugin.c (parse_plugin_arg_opt): Likewise.
6174 (default_plugin_dir_name): Likewise.
6175 * targhooks.c (default_expand_builtin_saveregs): Likewise.
6176 (default_pch_valid_p): Likewise.
6177 * toplev.c (init_asm_output): Likewise.
6178 (process_options): Likewise.
6179 (toplev::run_self_tests): Likewise.
6180 * tree-cfg.c (verify_gimple_call): Likewise.
6181 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
6182 (tree_inlinable_function_p): Likewise.
6183 * var-tracking.c (vt_find_locations): Likewise.
6185 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
6187 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
6188 only on the else branch.
6190 2019-03-11 Martin Liska <mliska@suse.cz>
6192 * gcov.c (output_intermediate_json_line): Print function
6194 (output_json_intermediate_file): Add new argument.
6195 * doc/gcov.texi: Document the change.
6197 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
6199 PR rtl-optimization/89588
6200 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
6201 explicit unrolling factor more robust.
6203 2019-03-11 Richard Biener <rguenther@suse.de>
6205 PR tree-optimization/89649
6206 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
6207 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
6208 on the prolog and epilog loops.
6209 (vect_loop_versioning): Return copy of loop.
6210 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
6211 on the non-vectorized version of the loop.
6213 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
6216 * config/i386/sse.md (*vec_extractv2di_0_sse):
6217 Add (=r,x) alternative and corresponding splitter.
6219 2019-03-10 Martin Jambor <mjambor@suse.cz>
6221 PR tree-optimization/85762
6222 PR tree-optimization/87008
6223 PR tree-optimization/85459
6224 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
6225 it points to if there is a type changing MEM_REF. Adjust all callers.
6226 (build_accesses_from_assign): Disable total scalarization if
6227 contains_vce_or_bfcref_p returns true through the new parameter, for
6230 2019-03-09 Jakub Jelinek <jakub@redhat.com>
6233 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
6234 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
6237 * common.opt (fdiagnostics-show-labels,
6238 fdiagnostics-show-line-numbers, fdiagnostics-format=,
6239 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
6240 gas-locview-support, ginline-points, ginternal-reset-location-views):
6241 Terminate description text with a dot.
6242 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
6243 * config/mcore/mcore.opt (m210, m340): Likewise.
6244 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
6245 mnops=): Start description text with a capital letter.
6246 * config/arc/arc.opt (msize-level=): Likewise.
6247 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
6248 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
6250 * config/ft32/ft32.opt (msim): Likewise.
6251 (mft32b, mcompress): Likewise. Terminate description text with a dot.
6252 (mnodiv, mnopm): Terminate description text with a dot.
6253 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
6255 * config/i386/i386.opt (prefer_vector_width, instrument_return):
6257 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
6260 PR rtl-optimization/89634
6261 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
6262 are modified in BB_END (e->src) instruction.
6264 2019-03-08 David Malcolm <dmalcolm@redhat.com>
6267 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
6268 messages more amenable to translation, and improve wording.
6270 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
6272 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
6273 ud- and du-chains between phases.
6275 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
6278 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
6279 instead of POLY_INT_CST.
6281 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
6283 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
6286 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
6291 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
6292 (_mm_storeu_si64): Ditto.
6294 2019-03-08 Martin Liska <mliska@suse.cz>
6297 * config/i386/i386.c (ix86_option_override_internal): Disable
6298 jump tables when retpolines are used.
6300 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
6303 * ipa-split.c (execute_split_functions): Do not split
6304 'noinline' or 'section' function.
6306 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6309 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
6310 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
6311 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
6314 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
6315 from diagnostics. Formatting fixes.
6318 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
6319 warn_odr diagnostics.
6322 * lra-constraints.c (process_alt_operands): Avoid one space before
6323 " at the end of line and another after " on another line in a string
6325 * attribs.c (handle_dll_attribute): Likewise.
6326 * config/avr/avr-devices.c (avr_texinfo): Likewise.
6328 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
6329 warning_at or inform messages in G_() if there is no ?:.
6331 PR tree-optimization/89550
6332 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
6333 returned true. Formatting fixes.
6334 (expand_builtin_strnlen): Formatting fixes.
6335 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
6336 if warning_at returned true.
6337 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
6339 2019-03-08 Richard Biener <rguenther@suse.de>
6342 * cfgloop.h (struct loop): Add owned_clique field.
6343 * cfgloopmanip.c (copy_loop_info): Copy it.
6344 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
6346 * tree-inline.c (copy_loops): Remap owned_clique.
6347 * lto-streamer-in.c (input_cfg): Stream owned_clique.
6348 * lto-streamer-out.c (output_cfg): Likewise.
6350 2019-03-08 Jakub Jelinek <jakub@redhat.com>
6353 * config/darwin.c: Include intl.h.
6354 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
6355 composing the message out of two separate parts.
6357 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6360 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
6361 doesn't start with a capital letter and doesn't end with a dot.
6362 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
6363 with a capital letter.
6364 (ix86_mangle_function_version_assembler_name): Likewise.
6365 (ix86_generate_version_dispatcher_body): Likewise.
6366 (fold_builtin_cpu): Likewise.
6367 (get_builtin_code_for_version): Likewise. Remove extraneous space.
6368 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
6369 translators, wrap full type name in %qs.
6371 PR translation/79999
6372 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
6373 depend clause with source (or sink) modifier.
6374 * omp-expand.c (expand_omp_ordered_sink): Likewise.
6377 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
6378 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
6379 (avx512f_load<mode>_mask): New define_expand.
6380 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
6381 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
6382 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
6383 __builtin_ia32_movess_mask): New builtins.
6384 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
6385 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
6386 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
6387 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
6389 2019-03-07 Martin Jambor <mjambor@suse.cz>
6392 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
6393 for extern inline functions.
6395 2019-03-07 Martin Jambor <mjambor@suse.cz>
6398 * cgraph.h (cgraph_node): New inline method former_thunk_p.
6399 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
6400 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
6401 have multiple callees. At the end check if declarations match as
6402 opposed to cgraph_nodes.
6404 2019-03-07 Martin Liska <mliska@suse.cz>
6406 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
6407 which is equivalent to searching for this in clones chain.
6408 * symtab.c (symtab_node::verify_base): Similarly compare ASM
6409 names with a neighbour and special case first node in a chain.
6411 2019-01-25 Jason Merrill <jason@redhat.com>
6413 PR c++/80916 - spurious "static but not defined" warning.
6414 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
6415 for an internal symbol with DECL_EXTERNAL.
6417 2019-04-07 Richard Biener <rguenther@suse.de>
6420 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
6421 * tree-inline.c (copy_loops): Simplify.
6423 2019-03-07 Martin Liska <mliska@suse.cz>
6425 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
6427 2019-03-07 Richard Biener <rguenther@suse.de>
6429 PR tree-optimization/89595
6430 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
6431 stmt iterator as reference, take boolean output parameter to
6432 indicate whether the stmt was removed and thus the iterator
6434 (dom_opt_dom_walker::before_dom_children): Re-iterate over
6435 stmts created by folding.
6437 2019-03-07 Jakub Jelinek <jakub@redhat.com>
6440 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
6443 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
6445 PR rtl-optimization/88845
6446 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
6448 * lra.c (remove_scratches_1): New function.
6449 (remove_scratches): Use it.
6450 (lra_emit_move): Likewise.
6452 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
6454 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
6455 unaligned_access variable.
6456 * config/arc/arc.c (arc_override_options): Set unaligned access
6457 default on for HS CPUs.
6458 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
6460 2019-03-06 Martin Liska <mliska@suse.cz>
6462 PR gcov-profile/89577
6463 * doc/gcov.texi: Prefer to use --coverage.
6464 * doc/sourcebuild.texi: Likewise.
6466 2019-03-02 Jason Merrill <jason@redhat.com>
6468 PR c++/86485 - -Wmaybe-unused with empty class ?:
6469 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
6471 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6474 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
6478 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
6479 exactly one argument.
6481 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6482 Richard Sandiford <richard.sandiford@arm.com>
6484 PR tree-optimization/89570
6485 * match.pd (vec_cond into cond_op simplification): Don't use
6486 get_conditional_internal_fn, use as_internal_fn (cond_op).
6488 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
6491 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
6492 to decide when to split off a non-zero offset from a symbol.
6493 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
6494 in function symbols.
6496 2019-03-05 Richard Biener <rguenther@suse.de>
6498 PR tree-optimization/89594
6499 * tree-if-conv.c (pass_if_conversion::execute): Handle
6500 case where .LOOP_VECTORIZED_FUNCTION was removed.
6502 2019-03-05 Jakub Jelinek <jakub@redhat.com>
6505 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
6506 instead alloca it only when needed with the needed size.
6508 PR tree-optimization/89570
6509 * match.pd (vec_cond into cond_op simplification): Guard with
6510 vectorized_internal_fn_supported_p test and #if GIMPLE.
6512 PR tree-optimization/89566
6513 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
6514 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
6515 Punt if get_user_idx_format succeeds, but idx_format argument is
6516 not provided or doesn't have pointer type, or if idx_args is above
6517 number of provided arguments.
6519 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
6521 PR tree-optimization/89437
6522 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
6524 2019-03-04 Richard Biener <rguenther@suse.de>
6527 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
6530 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
6532 PR tree-optimization/89487
6533 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
6534 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
6535 (distribute_loop): Don't do runtime alias check if there is non-
6536 addressable data reference.
6537 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
6538 is a register variable.
6540 2019-03-02 Jakub Jelinek <jakub@redhat.com>
6543 * config/arm/arm.md (cmpsi2_addneg): Use
6544 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
6545 If operands[2] is 0 or INT_MIN, force use of subs.
6546 (*compare_scc splitter): Use gen_int_mode.
6547 (*negscc): Likewise.
6548 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
6550 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
6551 Monk Chiang <sh.chiang04@gmail.com>
6553 * common/config/riscv/riscv-common.c: Include sstream.
6554 (riscv_subset_list::to_string): New.
6555 (riscv_arch_str): Likewise.
6556 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
6558 * config/riscv/riscv-protos.h (riscv_arch_str): New.
6559 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
6560 (riscv_emit_attribute): New.
6561 (riscv_file_start): Emit attribute if needed.
6562 (riscv_option_override): Init riscv_emit_attribute_p.
6563 * config/riscv/riscv.opt (mriscv-attribute): New option.
6564 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
6566 * doc/install.texi: Document --with-riscv-attribute.
6567 * doc/invoke.texi: Document -mriscv-attribute.
6569 * common/config/riscv/riscv-common.c:
6570 Include config/riscv/riscv-protos.h.
6571 (INCLUDE_STRING): Defined.
6572 (RISCV_DONT_CARE_VERSION): Defined.
6573 (riscv_subset_t): Declare.
6574 (riscv_subset_t::riscv_subset_t): New.
6575 (riscv_subset_list): Declare.
6576 (riscv_subset_list::riscv_subset_list): New.
6577 (riscv_subset_list::~riscv_subset_list): Likewise.
6578 (riscv_subset_list::parsing_subset_version): Likewise.
6579 (riscv_subset_list::parse_std_ext): Likewise.
6580 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
6581 (riscv_subset_list::add): Likewise.
6582 (riscv_subset_list::lookup): Likewise.
6583 (riscv_subset_list::xlen): Likewise.
6584 (riscv_subset_list::parse): Likewise.
6585 (riscv_supported_std_ext): Likewise.
6586 (current_subset_list): Likewise.
6587 (riscv_parse_arch_string): Using riscv_subset_list::parse to
6590 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
6592 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
6593 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
6594 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
6596 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
6598 PR rtl-optimization/85899
6599 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
6600 fallthru edges leading to the exit block.
6602 2019-03-01 Tamar Christina <tamar.christina@arm.com>
6605 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
6606 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
6608 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
6610 PR tree-optimization/89535
6611 * tree-vect-stmts.c (vectorizable_call): Record the vector types
6612 for each operand. Calculate the fallback choice for mask operands
6613 and pass it to vect_get_vec_def_for_operand.
6615 2019-03-01 Richard Biener <rguenther@suse.de>
6618 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
6619 get virtual operands.
6620 (get_expr_operands): Handle CONST_DECL like other decls.
6622 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6625 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
6626 on DECL_P and EXPR_P.
6628 2019-03-01 Richard Biener <rguenther@suse.de>
6631 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
6632 argument, defaulted to zero.
6633 * passes.c (execute_function_todo): Pass down SSA update flags
6634 to cleanup_tree_cfg.
6635 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
6636 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
6638 (cleanup_tree_cfg): Get and pass down SSA update flags.
6640 2019-03-01 Jakub Jelinek <jakub@redhat.com>
6643 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
6644 early_lto_debug argument.
6646 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
6648 PR tree-optimization/89536
6649 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
6650 only whether bit #0 of the value is 0 instead of the entire value.
6652 2019-02-28 Marek Polacek <polacek@redhat.com>
6654 PR c++/87068 - missing diagnostic with fallthrough statement.
6655 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
6656 at the end of a seq, save its location to walk_stmt_info.
6657 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
6660 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
6663 * tree.c (find_atomic_core_type): Move ahead in file.
6664 (check_base_type): Correctly compare alignments of atomic types.
6666 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
6669 * config/i386/i386.c (get_builtin_code_for_version): Identify
6670 Westmere from PCLMUL, instead of AES.
6672 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6675 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
6676 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
6679 2019-02-28 Tamar Christina <tamar.christina@arm.com>
6682 * config/aarch64/aarch64-option-extensions.def: Document it.
6683 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
6686 2019-02-28 Jakub Jelinek <jakub@redhat.com>
6689 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
6690 builtins if they don't have a single scalar floating point argument.
6693 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
6695 PR rtl-optimization/89490
6696 * varasm.c (get_block_for_section): Bail out for mergeable sections.
6697 (default_use_anchors_for_symbol_p, output_object_block): Assert the
6698 block section is not mergeable.
6700 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6703 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
6704 old define_insn to ...
6705 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
6706 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
6707 Rename old define_insn to ...
6708 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
6709 (thumb2_casesi_internal_pic): New define_expand. Rename old
6711 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
6712 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
6713 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
6715 2019-02-27 Richard Biener <rguenther@suse.de>
6718 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
6720 2019-02-27 Richard Biener <rguenther@suse.de>
6722 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
6725 2019-02-27 Richard Biener <rguenther@suse.de>
6728 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
6729 parameter, prefix section name with .gnu.debuglto_ if true.
6730 (dwarf2out_finish): Pass false to output_comdat_type_unit.
6731 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
6733 2019-02-27 Richard Biener <rguenther@suse.de>
6736 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
6737 rather than on use_debug_types, doing what output_die does.
6738 (value_format): Likewise.
6740 2019-02-27 Martin Jambor <mjambor@suse.cz>
6741 Martin Sebor <msebor@redhat.com>
6743 * doc/invoke.texi (Warning Options): Reword description of
6744 -Wno-absolute-value.
6746 2019-02-27 Jakub Jelinek <jakub@redhat.com>
6748 PR tree-optimization/89280
6749 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
6750 builtin_setjmp_setup_bb): New functions.
6751 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
6752 When visiting __builtin_setjmp_setup block, queue in special
6753 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
6754 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
6755 from visited after the loop if they don't have any visited successor
6758 2018-02-26 Steve Ellcey <sellcey@marvell.com>
6760 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
6762 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
6764 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6767 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
6768 with types other than sizetype/ssizetype.
6770 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6772 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
6773 (enum sparc_processor_type): ...this.
6774 (enum sparc_code_model_type): New enumeration type.
6775 (enum sparc_memory_model_type): Tweak comments.
6776 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
6778 (mcmodel): Use sparc_code_model enumeration and variable.
6779 (sparc_code_model): New enumeration.
6780 (mdebug): Add Undocumented marker.
6781 * config/sparc/sparc.h (enum cmodel): Delete.
6782 (sparc_cmodel): Likewise.
6783 (TARGET_CM_MEDLOW): Adjust to above renaming.
6784 (TARGET_CM_MEDMID): Likewise.
6785 (TARGET_CM_MEDANY): Likewise.
6786 (TARGET_CM_EMBMEDANY): Likewise.
6787 * config/sparc/sparc.c (sparc_cmodel): Delete.
6788 (sparc_option_override): Remove string/value mapping support for the
6789 code model. Move code and memory model support to after the handling
6790 of target flags. Do private machine setup last.
6791 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
6792 (sparc_legitimize_reload_address): Likewise.
6793 (sparc_output_mi_thunk): Likewise.
6794 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
6796 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6798 PR tree-optimization/89500
6799 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
6800 (handle_builtin_strlen): Remove noncst_bound variable. Always
6801 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
6802 cst if the first cst bytes starting at x are known to be non-zero,
6803 even if the string is not zero terminated. Don't try to modify
6804 *si for strnlen. Update strlen_to_stridx only for strlen or if
6805 we can prove strnlen returns the same value as strlen would.
6807 2019-02-26 Martin Liska <mliska@suse.cz>
6809 * alloc-pool.h (struct pool_usage): Remove extra
6811 * bitmap.h (struct bitmap_usage): Likewise.
6812 * ggc-common.c (struct ggc_usage): Likewise.
6813 * mem-stats.h (struct mem_usage): Likewise.
6814 (mem_alloc_description::dump): Print dash lines
6815 here and repeat header at the end of a table report.
6816 It's then more readable.
6817 * tree-phinodes.c (phinodes_print_statistics): Make
6818 horizontal alignment.
6819 * tree-ssanames.c (ssanames_print_statistics): Likewise.
6820 * vec.c (struct vec_usage): Remove extra print_dash_line.
6821 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
6823 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
6825 * doc/extend.texi (__builtin_object_size):
6826 Use @pxref instead of @xref inside parenthesis.
6827 (__builtin_has_attribute): Add missing comma after @xref.
6828 (__builtin_object_size): Ditto.
6829 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
6830 * fortran/invoke.texi (-ffpe-trap): Use @var for every item
6833 2019-02-26 Jeff Law <law@redhat.com>
6835 PR rtl-optimization/87761
6836 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
6837 detect obviously dead insns and delete them.
6839 2019-02-26 Richard Biener <rguenther@suse.de>
6841 PR tree-optimization/89505
6842 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
6843 to handle restrict pointed-to vars with multiple subvars
6846 2019-02-26 Richard Biener <rguenther@suse.de>
6848 PR tree-optimization/89489
6849 * tree-parloops.c (create_loop_fn): Copy over last_clique.
6851 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
6853 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
6854 and move around comment.
6855 <BIT_AND_EXPR>: Likewise.
6856 <BIT_NOT_EXPR>: Add specific handling for boolean types.
6858 2019-02-26 Jakub Jelinek <jakub@redhat.com>
6861 * config/i386/i386.c (remove_partial_avx_dependency): Call
6862 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
6863 after changing possibly many instructions to use that pseudo. Fix up
6864 insertion of v4sf_const0 setter at the start of bb.
6866 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6869 * doc/extend.texi (Variadic Pointer Args): New section.
6871 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
6872 Martin Sebor <msebor@gmail.com>
6874 * common.opt (Wattribute-alias): Likewise.
6875 * doc/invoke.texi (Option Summary): List general form of
6876 -Wattribute-alias=. List positive form of -Wmissing-attributes.
6877 (-Wmissing-attributes): Invert entry, rewrite and correct default.
6878 Add cross-references.
6879 (-Wattribute-alias): Rewrite and correct default. Mention
6880 considered attributes (same as for -Wmissing-attributes).
6882 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
6884 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
6885 (_mm_cvtpd_ps): Likewise.
6886 (_mm_cvttpd_epi32): Likewise.
6889 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
6890 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
6893 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
6895 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6898 * common/config/aarch64/aarch64-common.c
6899 (struct aarch64_option_extension): Add is_synthetic.
6900 (all_extensions): Use it.
6901 (TARGET_OPTION_INIT_STRUCT): Define hook.
6902 (struct gcc_targetm_common): Moved to end.
6903 (all_extensions_by_on): New.
6904 (opt_ext_cmp, typedef opt_ext): New.
6905 (aarch64_option_init_struct): New.
6906 (aarch64_contains_opt): New.
6907 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
6908 * config/aarch64/aarch64-option-extensions.def
6909 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
6910 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
6911 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
6912 Set is_synthetic to false.
6913 (crypto): Set is_synthetic to true.
6914 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
6917 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6919 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6920 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
6921 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6922 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
6923 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
6924 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
6925 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
6926 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
6928 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
6929 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6930 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
6931 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
6932 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
6933 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
6934 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
6935 vfmlsl_laneq_high_f16): ... To this.
6936 * config/arm/neon.md: Update comments.
6938 2019-02-25 Tamar Christina <tamar.christina@arm.com>
6940 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
6941 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
6942 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
6943 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
6944 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
6945 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
6946 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
6947 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
6949 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
6950 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
6951 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
6952 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
6953 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
6954 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
6955 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
6956 vfmlslq_laneq_high_f16): ... To this.
6958 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
6960 PR rtl-optimization/86096
6961 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
6962 comparing mw_order values.
6964 2019-02-25 Jakub Jelinek <jakub@redhat.com>
6967 * config/arm/arm.md (*subsi3_carryin_const): Use
6968 arm_neg_immediate_operand predicate instead of
6969 arm_not_immediate_operand, "L" constraint instead of "K" and
6970 print it using %n2 instead of %B2.
6971 (*subsi3_carryin_const0): New define_insn.
6972 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
6973 instead of arm_not_operand and "I" constraint instead of "K" and
6974 print it using %n3 instead of %B2. Instead of using match_dup 2 add
6975 another match_operand and in the condition check that it is negation
6977 (*subsi3_carryin_compare_const0): New define_ins.
6978 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
6979 *subsi3_carryin_const.
6980 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
6981 split into *subsi3_carryin_compare_const0 if the highpart is zero.
6984 * config/arm.vfp.md (*negdf2_vfp): Use
6985 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
6986 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
6988 2019-02-24 Jakub Jelinek <jakub@redhat.com>
6990 PR rtl-optimization/89445
6991 * simplify-rtx.c (simplify_ternary_operation): Don't use
6992 simplify_merge_mask on operands that may trap.
6993 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
6994 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
6995 second operand is CONST_VECTOR, check if any element could be zero.
6996 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
6997 their operands can trap.
6999 2019-02-23 Martin Sebor <msebor@redhat.com>
7001 * gimple-ssa-sprintf.c (target_strtol): Rename...
7002 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
7003 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
7004 check for range error.
7006 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
7009 * opts-common.c (prune_options): Also prune joined switches
7010 with Negative and RejectNegative.
7011 * config/i386/i386.opt (march=): Add Negative(march=).
7012 (mtune=): Add Negative(mtune=).
7013 * doc/options.texi: Document Negative used together with Joined
7016 2019-02-22 Martin Sebor <msebor@redhat.com>
7018 * doc/extend.texi (Other Builtins): Add
7019 __builtin_is_constant_evaluated.
7021 2019-02-22 Richard Biener <rguenther@suse.de>
7023 PR tree-optimization/87609
7024 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
7026 2019-02-22 Jeff Law <law@redhat.com>
7028 PR rtl-optimization/87761
7029 * config/mips/mips.md: Add new combiner pattern to recognize
7030 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
7032 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
7035 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
7036 destination register in peepholes generating patterns for ADDS/SUBS.
7037 (add<mode>3_compare0,
7038 *addsi3_compare0_uxtw, add<mode>3_compareC,
7039 add<mode>3_compareV_imm, add<mode>3_compareV,
7040 *adds_<optab><ALLX:mode>_<GPI:mode>,
7041 *subs_<optab><ALLX:mode>_<GPI:mode>,
7042 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
7043 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
7044 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
7045 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
7046 sub<mode>3_compare1): Allow stack pointer for source register.
7047 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
7049 2019-02-22 Martin Sebor <msebor@redhat.com>
7051 PR tree-optimization/88993
7052 PR tree-optimization/88853
7053 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
7055 (sprintf_dom_walker::call_info::is_string_func): New helper.
7056 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
7057 for formatted string functions.
7058 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
7060 2019-02-22 Martin Sebor <msebor@redhat.com>
7063 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
7064 unreachable subexpressions.
7066 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
7067 Hongtao Liu <hongtao.liu@intel.com>
7068 Sunil K Pandey <sunil.k.pandey@intel.com>
7071 * config/i386/i386-passes.def: Add
7072 pass_remove_partial_avx_dependency.
7073 * config/i386/i386-protos.h
7074 (make_pass_remove_partial_avx_dependency): New.
7075 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
7077 (pass_data_remove_partial_avx_dependency): New.
7078 (pass_remove_partial_avx_dependency): Likewise.
7079 (make_pass_remove_partial_avx_dependency): Likewise.
7080 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
7081 (*extendsfdf2): Add avx_partial_xmm_update.
7082 (truncdfsf2): Likewise.
7083 (*float<SWI48:mode><MODEF:mode>2): Likewise.
7084 (SF/DF conversion splitters): Disabled for TARGET_AVX.
7086 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
7089 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
7092 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
7095 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
7096 (PTA_SKYLAKE): Add PTA_AES.
7097 (PTA_GOLDMONT): Likewise.
7099 2019-02-22 Sudakshina Das <sudi.das@arm.com>
7101 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
7102 instruction if enabled.
7103 (aarch64_override_options): Remove reference to return address key.
7105 2019-02-22 Richard Biener <rguenther@suse.de>
7107 PR tree-optimization/89440
7108 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
7109 not necessary assert.
7111 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
7114 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
7115 (oacc_replace_fn_attrib_attr): ... this new function.
7116 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
7117 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
7119 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7121 * config/arm/arm-cpus.in (ares): Rename to...
7122 (neoverse-n1): ... This. Add ares as alias.
7123 * config/arm/arm-tables.opt: Regenerate.
7124 * config/arm/arm-tune.md: Likewise.
7125 * doc/invoke.txt (ARM Options): Document neoverse-n1.
7127 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7129 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
7130 * config/aarch64/aarch64-tune.md: Regenerate.
7131 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
7133 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7135 * config/aarch64/aarch64.c (ares_tunings): Rename to...
7136 (neoversen1_tunings): ... This.
7137 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
7138 (neoverse-n1): New CPU.
7139 * config/aarch64/aarch64-tune.md: Regenerate.
7140 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
7142 2019-02-22 Richard Biener <rguenther@suse.de>
7145 * cfghooks.h (dependence_hash): New typedef.
7146 (struct copy_bb_data): New type.
7147 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
7148 (duplicate_block): Likewise.
7149 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
7150 (copy_bbs): Create and pass down copy_bb_data.
7151 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
7152 (rtl_duplicate_bb): Likewise.
7153 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
7154 remap dependence info.
7156 2019-02-22 Richard Biener <rguenther@suse.de>
7158 PR tree-optimization/87609
7159 * tree-core.h (tree_base): Document special clique values.
7160 * tree-inline.c (remap_dependence_clique): Do not use the
7161 special clique value of one.
7162 (maybe_set_dependence_info): Use clique one.
7163 (clear_dependence_clique): New callback.
7164 (compute_dependence_clique): Clear clique one from all refs
7165 before assigning it (again).
7167 2019-02-21 Martin Sebor <msebor@redhat.com>
7169 * doc/extend.texi (__clear_cache): Correct signature.
7171 2019-02-21 Ian Lance Taylor <iant@golang.org>
7174 * varasm.c (decode_addr_const): Call lookup_constant_def rather
7175 than output_constant_def.
7176 (add_constant_to_table): New static function.
7177 (output_constant_def): Call add_constant_to_table.
7178 (tree_output_constant_def): Likewise.
7180 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7183 * builtins.c (fold_builtin_arith_overflow): If first two args are
7184 INTEGER_CSTs, set intres and ovfres to constants rather than calls
7187 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
7190 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
7191 error for -mindirect-branch/-mfunction-return with incompatible
7194 2019-02-21 Jakub Jelinek <jakub@redhat.com>
7197 * constraints.md (q): Remove.
7198 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
7201 2019-02-21 Martin Jambor <mjambor@suse.cz>
7204 * omp-general.c (omp_extract_for_data): Removed a duplicate call
7205 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
7206 (omp_adjust_for_condition): ...here. Added necessary parameters.
7207 * omp-general.h (omp_adjust_for_condition): Updated declaration.
7208 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
7209 proper values to new parameters of omp_adjust_for_condition.
7211 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7214 * expr.c (expand_assignment): If result is a MEM, use change_address
7215 instead of simplify_gen_subreg.
7217 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7218 David Malcolm <dmalcolm@redhat.com>
7221 * fold-const.c (decode_field_reference): Return NULL_TREE if
7222 lang_hooks.types.type_for_size returns NULL. Check it before
7223 overwriting *exp_. Use return NULL_TREE instead of return 0.
7225 2019-02-20 Jakub Jelinek <jakub@redhat.com>
7229 * toplev.c (do_compile): Double the emin/emax exponents to workaround
7232 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
7235 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
7236 TARGET_SSE in addition to TARGET_SSE_MATH.
7238 (ix86_excess_precision): Ditto.
7239 (ix86_float_exceptions_rounding_supported_p): Ditto.
7240 (use_rsqrt_p): Ditto.
7241 * config/i386/sse.md (rsqrt<mode>2): Ditto.
7243 2019-02-20 David Malcolm <dmalcolm@redhat.com>
7246 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
7247 linenum_arith_t when determining if two adjacent line spans are
7248 close enough to merge.
7249 (diagnostic_show_locus): Use linenum_arith_t when iterating over
7250 lines within each line_span.
7252 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
7255 * lra-constraints.c(uses_hard_regs_p): Fix handling of
7256 paradoxical SUBREGS.
7258 2019-02-20 Li Jia He <helijia@linux.ibm.com>
7261 * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
7262 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
7263 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
7266 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
7268 * config/gcn/gcn.c (print_operand): Fix typo.
7270 2019-02-19 Richard Biener <rguenther@suse.de>
7273 * toplev.c (do_compile): Initialize mpfr's exponent range
7274 based on available float modes.
7276 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
7278 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
7279 as long as the epilogue isn't completed.
7281 2019-02-18 Martin Sebor <msebor@redhat.com>
7283 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
7284 __has_cpp_attribute, and __has_include.
7286 2019-02-18 Martin Sebor <msebor@redhat.com>
7288 * doc/invoke.texi (-Wreturn-type): Correct and expand.
7290 2019-02-18 Martin Sebor <msebor@redhat.com>
7293 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
7295 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
7297 2019-02-18 Richard Biener <rguenther@suse.de>
7299 PR tree-optimization/89296
7300 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
7301 of no-warning flag to cases that might emit the bogus warning.
7303 2019-02-18 Jakub Jelinek <jakub@redhat.com>
7306 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
7308 * config/arm/vfp.md (*movdi_vfp): Likewise.
7309 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
7310 "q" constraint for operands[0].
7313 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
7314 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
7315 pattern in a temporary buffer.
7316 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
7317 than 64-operands[2].
7320 * config/s390/s390.c (s390_indirect_branch_attrvalue,
7321 s390_indirect_branch_settings): Define unconditionally.
7322 (s390_set_current_function): Likewise, but guard the whole body except
7323 the s390_indirect_branch_settings call with
7324 #if S390_USE_TARGET_ATTRIBUTE.
7325 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
7327 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
7328 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
7329 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
7330 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
7331 HOST_WIDE_INT_1U instead of 1ULL.
7332 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
7333 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
7334 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
7335 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
7337 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
7340 2019-02-18 Martin Jambor <mjambor@suse.cz>
7342 PR tree-optimization/89209
7343 * tree-sra.c (create_access_replacement): New optional parameter
7344 reg_tree. Use it as a type if non-NULL and access type is not of
7346 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
7347 to create_access_replacement.
7348 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
7349 Check lacc is non-NULL before attempting to re-create it on the RHS.
7351 2019-02-18 Martin Liska <mliska@suse.cz>
7354 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
7356 (symbol_table::free_edge): Recycle m_summary_id.
7357 * cgraph.h (get_summary_id): New.
7358 (symbol_table::release_symbol): Set m_summary_id to -1
7360 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
7361 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
7362 function_summary to fast_function_summary.
7363 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
7364 * ipa-pure-const.c (class funct_state_summary_t):
7365 Switch from function_summary to fast_function_summary.
7366 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
7367 (class ipa_ref_opt_summary_t): Switch from function_summary
7368 to fast_function_summary.
7369 * symbol-summary.h (class function_summary_base): New class
7370 that is created from base of former function_summary.
7371 (function_summary_base::unregister_hooks): New.
7372 (class function_summary): Inherit from function_summary_base.
7373 (class call_summary_base): New class
7374 that is created from base of former call_summary.
7375 (class call_summary): Inherit from call_summary_base.
7376 (struct is_same): New.
7377 (class fast_function_summary): New summary class.
7378 (class fast_call_summary): New summary class.
7379 * vec.h (vec_safe_grow_cleared): New function.
7381 2019-02-18 Martin Liska <mliska@suse.cz>
7383 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
7384 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
7385 * doc/tm.texi: Document new target hook.
7386 * doc/tm.texi.in: Likewise.
7387 * target.def: Add new target macro.
7388 * gcc.c (find_fortran_preinclude_file): Do not search multilib
7391 2019-02-17 Alan Modra <amodra@gmail.com>
7394 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
7395 output reg on add insn.
7396 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
7398 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7401 * config/i386/sse.md (ssedoublemode): Remove V4HI.
7402 (PMULHRSW): Likewise.
7403 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
7405 (ssse3_pmulhrswv4hi3): New expander.
7407 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
7409 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
7410 MMX. Add isa attribute.
7412 2019-02-16 Jakub Jelinek <jakub@redhat.com>
7414 PR rtl-optimization/66152
7415 * builtins.h (c_readstr): Declare.
7416 * builtins.c (c_readstr): Remove forward declaration. Add
7417 null_terminated_p argument, if false, read all bytes from the
7418 string instead of stopping after '\0'.
7419 * expr.c (string_cst_read_str): New function.
7420 (store_expr): Use string_cst_read_str instead of
7421 builtin_strncpy_read_str. Try to store by pieces the whole
7422 exp_len first, and only if that fails, split it up into
7423 store by pieces followed by clear_storage. Formatting fix.
7425 * config/i386/i386.md (*movqi_internal): Remove static from
7426 buf variable. Use output_asm_insn (buf, operands); return "";
7427 instead of return buf;.
7428 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
7429 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
7430 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
7432 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7434 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
7435 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
7436 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
7437 (CC1_SPEC): Likewise.
7438 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
7440 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7442 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
7443 the base address on 64-bit strict-alignment platforms.
7445 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
7447 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
7449 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7451 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
7453 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
7455 PR rtl-optimization/88308
7456 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
7457 on copied instruction.
7459 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
7461 * final.c (insn_current_reference_address): Replace test on JUMP_P
7462 with test on jump_to_label_p.
7463 * config/visium/visium-passes.def: New file.
7464 * config/visium/t-visium (PASSES_EXTRA): Define.
7465 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
7466 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
7467 (TRAMPOLINE_ALIGNMENT): Define.
7468 * config/visium/visium.c (visium_option_override): Do not register
7469 the machine-specific reorg pass here.
7470 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
7472 (output_branch): Adjust threshold for long branch instruction.
7473 * config/visium/visium.md (cpu): Move around.
7474 (length): Adjust for the GR6.
7476 2019-02-15 Richard Biener <rguenther@suse.de>
7477 Jakub Jelinek <jakub@redhat.com>
7479 PR tree-optimization/89278
7480 * tree-loop-distribution.c: Include tree-eh.h.
7481 (generate_memset_builtin, generate_memcpy_builtin): Call
7482 rewrite_to_non_trapping_overflow on builtin->size before passing it
7483 to force_gimple_operand_gsi.
7485 2019-02-15 Jakub Jelinek <jakub@redhat.com>
7488 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
7490 * opth-gen.awk: Likewise.
7492 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
7494 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
7495 Enable MMX, SSE and SSE2 by default.
7496 * config/i386/i386.c (ix86_option_override_internal): Do not
7497 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
7499 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7501 PR rtl-optimization/89354
7502 * combine.c (make_extraction): Punt if extraction_mode is narrower
7505 2019-02-14 Maya Rashish <coypu@sdf.org>
7507 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
7508 * config/netbsd-d.c: New file.
7509 * config/t-netbsd: Add netbsd-d.o
7511 2018-02-14 Steve Ellcey <sellcey@marvell.com>
7513 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
7514 affects_type_identity to true for aarch64_vector_pcs.
7515 (aarch64_comp_type_attributes): New function.
7516 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
7518 2019-02-14 Tamar Christina <tamar.christina@arm.com>
7521 * config/arm/iterators.md (ANY64): Add V4HF.
7523 2019-02-14 Martin Liska <mliska@suse.cz>
7525 PR rtl-optimization/89242
7526 * dce.c (delete_unmarked_insns): Call free_dominance_info we
7527 process a transformation.
7529 2019-02-14 Jakub Jelinek <jakub@redhat.com>
7531 PR tree-optimization/89314
7532 * fold-const.c (fold_binary_loc): Cast strlen argument to
7533 const char * before dereferencing it. Formatting fixes.
7536 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
7538 2019-02-13 Ian Lance Taylor <iant@golang.org>
7540 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
7541 and set current index for other optimizations.
7543 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
7545 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
7546 nonimmediate_operand as operand 2 predicate.
7547 (vec_set<VF2_512_256:mode>_0): Ditto.
7548 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
7549 (*vec_concatv2si): Remove alternative 2.
7550 (*vec_concatv4si_0): Use vm constraint for alternative 0.
7551 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
7552 (vec_concatv2di): Split alternatives 4,5,6 to ...
7553 (*vec_concatv2di_0) ... new pattern.
7555 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
7558 * config/arm/arm.c (ldm_stm_operation_p) Set
7559 addr_reg_in_reglist correctly for first register.
7560 (load_multiple_sequence): Remove dead base check.
7561 (gen_ldm_seq): Correctly set write_back for Thumb-1.
7563 2019-02-13 Tamar Christina <tamar.christina@arm.com>
7566 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
7567 Expose as @aarch64_pred_mov.
7568 * config/aarch64/aarch64.c (aarch64_classify_address):
7569 Use expand_insn which legitimizes operands.
7571 2019-02-13 Martin Liska <mliska@suse.cz>
7573 * builtins.h (expand_builtin_with_bounds): Remove declaration.
7574 * calls.c (struct arg_data): Remove special_slot, pointer_arg
7575 and pointer_offset fields.
7576 (initialize_argument_information): Remove usage of dead
7578 * cgraph.h (struct cgraph_thunk_info): Remove
7579 add_pointer_bounds_args.
7580 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
7582 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
7584 * config/i386/i386.c (ix86_function_arg_advance): Remove
7586 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
7587 (def_builtin): Remove usage of dead
7589 (ix86_add_new_builtins): Likewise.
7590 * ipa-fnsummary.c (compute_fn_summary): Likewise.
7591 * ipa-icf.c (sem_function::equals_wpa): Likewise.
7592 (sem_function::init): Likewise.
7593 (sem_variable::merge): Likewise.
7594 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7595 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7596 * lto-cgraph.c (lto_output_node): Likewise.
7597 (lto_output_varpool_node): Likewise.
7598 (input_node): Likewise.
7599 (input_varpool_node): Likewise.
7600 * lto-streamer-out.c (lto_output): Likewise.
7601 * tree-inline.c (expand_call_inline): Remove usage of
7603 * tree-inline.h (struct copy_body_data): Likewise.
7604 * varpool.c (varpool_node::dump): Likewise.
7606 2019-02-13 Jakub Jelinek <jakub@redhat.com>
7609 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
7610 into pt->vars_contains_escaped_heap instead of setting
7611 pt->vars_contains_escaped_heap to it.
7614 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
7615 INTVAL (size), compare it to GET_MODE_MASK instead of
7616 1 << GET_MODE_BITSIZE.
7619 * config/i386/predicates.md (x86_64_immediate_operand): Allow
7620 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
7623 2019-02-13 Martin Liska <mliska@suse.cz>
7626 * cfgrtl.c (remove_barriers_from_footer): New function.
7627 (try_redirect_by_replacing_jump): Use it.
7628 (cfg_layout_redirect_edge_and_branch): Likewise.
7630 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
7632 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
7633 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
7634 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
7635 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
7636 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
7637 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
7639 * config/rs6000/rs6000.c (builtin_function_type)
7640 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
7641 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
7642 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
7643 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
7644 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
7646 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
7648 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
7649 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
7651 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
7654 * config/i386/i386.md (*movoi_internal_avx): Revert revision
7655 268678 and revision 268657.
7656 (*movti_internal): Likewise.
7658 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
7661 * config/s390/s390.c (s390_decompose_address): Update comment.
7662 (s390_check_qrst_address): Reject invalid address forms after
7665 2019-02-12 Martin Liska <mliska@suse.cz>
7668 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
7669 we need default values of funct_state for a function that
7672 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
7674 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
7675 the object to pick the size of stores on strict-alignment platforms.
7677 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
7678 (*movdi_insn_sp32): Likewise.
7679 (*movdi_insn_sp64): Likewise.
7681 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
7684 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
7685 types that needs constructiong.
7686 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
7688 2019-02-12 Richard Biener <rguenther@suse.de>
7690 PR tree-optimization/89253
7691 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
7694 2019-02-11 David Malcolm <dmalcolm@redhat.com>
7697 * input.c (selftest::test_line_offset_overflow): New selftest.
7698 (selftest::input_c_tests): Call it.
7700 2019-02-11 Martin Sebor <msebor@redhat.com>
7702 PR tree-optimization/88771
7703 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
7704 when -Wstringop-overflow is set.
7705 (builtin_memref::builtin_memref): Adjust excessive upper bound
7706 only when lower bound is not excessive.
7707 (maybe_diag_overlap): Detect and diagnose excessive bounds via
7708 -Wstringop-ovefflow.
7709 (maybe_diag_offset_bounds): Rename...
7710 (maybe_diag_access_bounds): ...to this.
7711 (check_bounds_or_overlap): Adjust for name change above.
7713 2019-02-11 Martin Sebor <msebor@redhat.com>
7716 * builtins.c (max_object_size): Move from here...
7717 * builtins.h (max_object_size): ...and here...
7718 * tree.c (max_object_size): ...to here...
7719 * tree.h (max_object_size): ...and here.
7721 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
7723 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
7724 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
7725 for correct semantics.
7727 2019-02-11 Alan Modra <amodra@gmail.com>
7729 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
7730 -mlongcall and -mpltseq.
7731 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
7732 (RS/6000 and PowerPC Options <-mpltseq>): Document.
7733 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
7734 * config/rs6000/sysv4.opt (mpltseq): New option.
7735 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
7736 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
7737 support is lacking. Don't allow -mpltseq with -mbss-plt.
7738 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
7739 -mpltseq given for ELFv1.
7740 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
7741 Only use UNSPEC_PLTSEQ for inline PLT calls.
7742 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
7743 use UNSPEC_PLTSEQ for inline PLT calls.
7744 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
7745 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
7746 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
7747 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
7748 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
7749 (pltseq_mtctr_<mode>): Likewise.
7751 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7753 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
7755 * configure: Regenerate.
7757 2019-02-11 Jakub Jelinek <jakub@redhat.com>
7760 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
7763 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7765 * function.c (assign_parm_setup_block): Use the stored
7766 size, not the passed size, when allocating stack-space,
7767 also for a parameter with alignment larger than
7768 MAX_SUPPORTED_STACK_ALIGNMENT.
7770 2019-02-11 Martin Liska <mliska@suse.cz>
7773 * ipa-cp.c (build_toporder_info): Remove usage of a param.
7774 * ipa-inline.c (inline_small_functions): Likewise.
7775 * ipa-pure-const.c (propagate_pure_const): Likewise.
7776 (propagate_nothrow): Likewise.
7777 * ipa-reference.c (propagate): Likewise.
7778 * ipa-utils.c (struct searchc_env): Remove unused field.
7779 (searchc): Always search across AVAIL_INTERPOSABLE.
7780 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
7781 the only called IPA pure const can properly not propagate
7782 across interposable boundary.
7783 * ipa-utils.h (ipa_reduced_postorder): Remove param.
7785 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
7787 * config/nds32/nds32.md (call_internal, call_value_internal,
7788 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
7790 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
7792 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
7795 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
7797 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
7800 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7802 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
7804 2019-02-10 Jakub Jelinek <jakub@redhat.com>
7806 PR tree-optimization/89268
7807 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
7808 if preds is non-NULL.
7810 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7813 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
7816 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7818 * config/nds32/nds32.md (trap): New pattern.
7820 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
7822 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
7825 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
7827 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
7830 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7832 * ipa-visibility.c (localize_node): Also do not localize
7833 LDPR_PREVAILING_DEF_IRONLY_EXP.
7835 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7838 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
7839 instead of type_with_linkage.
7841 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
7844 * params.def (uninlined-function-insns, uninlined-function-time,
7845 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
7846 bound so we don't get overflows.
7848 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
7850 * config/rs6000/rs6000-string.c (expand_compare_loop,
7851 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
7854 2019-02-09 Jakub Jelinek <jakub@redhat.com>
7857 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
7858 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
7859 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
7861 2019-02-09 Alan Modra <amodra@gmail.com>
7864 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
7865 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
7868 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
7871 * lra-constraints.c (process_alt_operands): Don't increase reject
7872 for memory when offset memory is required.
7874 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
7876 * config/s390/vector.md: Implement vector copysign.
7878 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7880 * expr.c (expand_constructor): Correct indentations.
7882 2019-02-08 Richard Biener <rguenther@suse.de>
7884 PR tree-optimization/89247
7885 * tree-if-conv.c: Include tree-cfgcleanup.h.
7886 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
7887 (tree_if_conversion): Pass through predicate vector.
7888 (pass_if_conversion::execute): Do CFG cleanup and SSA update
7889 inline, see if any if-converted loops we refrece in
7890 LOOP_VECTORIZED calls vanished and fixup.
7891 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
7893 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
7895 * config/s390/constraints.md (jdd): New constraint.
7897 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
7900 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
7901 upper 16 vector registers without TARGET_AVX512VL.
7902 (*movti_internal): Likewise.
7904 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7906 PR rtl-optimization/89234
7907 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
7908 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
7909 (copy_reg_eh_region_note_backward): Likewise.
7911 2019-02-08 Richard Biener <rguenther@suse.de>
7914 * tree-data-ref.c (initialize_matrix_A): Fail if constant
7916 (analyze_subscript_affine_affine): Handle failure from
7917 initialize_matrix_A.
7919 2019-02-08 Jakub Jelinek <jakub@redhat.com>
7921 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
7924 2019-02-07 David Malcolm <dmalcolm@redhat.com>
7926 PR tree-optimization/86637
7927 PR tree-optimization/89235
7928 * tree-vect-loop.c (optimize_mask_stores): Add an
7929 auto_purge_vect_location sentinel to ensure that vect_location is
7932 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
7933 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
7934 to ensure that vect_location is purged on exit.
7935 (pass_slp_vectorize::execute): Likewise, replacing the manual
7937 * tree-vectorizer.h (class auto_purge_vect_location): New class.
7939 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7941 * config/aarch64/iterators.md (max_opp): New code_attr.
7942 (USMAX): New code iterator.
7943 * config/aarch64/predicates.md (aarch64_smin): New predicate.
7944 (aarch64_smax): Likewise.
7945 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
7946 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
7949 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
7952 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
7953 for TARGET_AVX512VL.
7954 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
7956 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
7958 * config/s390/s390-builtin-types.def: Add new types.
7959 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
7960 (s390_vec_xlw4): Make the memory operand into a const pointer.
7961 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
7963 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
7964 a new vector type with the alignment of the scalar memory operand.
7966 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
7967 Jakub Jelinek <jakub@redhat.com>
7970 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
7971 arm_count_ldrdstrd_insns): New declarations.
7972 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
7974 (valid_operands_ldrd_strd): New function.
7975 (arm_count_ldrdstrd_insns): New function.
7976 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
7977 sets instead of single DImode set and define new insns to match this.
7979 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7981 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
7982 Make it a C initializer.
7984 2019-02-07 Tamar Christina <tamar.christina@arm.com>
7987 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
7989 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7991 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
7992 Use neon_dot<q> for type.
7993 (neon_<sup>dot_lane<vsi2qi>): Likewise.
7995 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7997 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
7998 Use neon_dot<q> for type.
7999 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
8000 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
8002 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
8004 PR rtl-optimization/89225
8005 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
8008 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
8010 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
8011 after restoring registers saved to allocate the frame on Windows.
8013 2019-02-06 Richard Biener <rguenther@suse.de>
8015 PR tree-optimization/89182
8016 * graphite.h (cached_scalar_evolution_in_region): Declare.
8017 * graphite.c (struct seir_cache_key): New.
8018 (struct sese_scev_hash): Likewise.
8019 (seir_cache): New global.
8020 (cached_scalar_evolution_in_region): New function.
8021 (graphite_transform_loops): Allocate and release seir_cache.
8022 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
8023 cached_scalar_evolution_in_region.
8024 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8026 (scop_detection::graphite_can_represent_expr: Use
8027 cached_scalar_evolution_in_region.
8028 (scop_detection::stmt_simple_for_scop_p): Likewise.
8029 (find_params_in_bb): Likewise.
8030 (gather_bbs::before_dom_children): Likewise.
8031 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
8032 (add_loop_constraints): Likewise.
8034 2019-02-06 Jakub Jelinek <jakub@redhat.com>
8037 * fold-const-call.c (fold_const_vec_convert): Pass true as last
8038 operand to new_unary_operation only if both element types are integral
8039 and it isn't a widening conversion. Return NULL_TREE if
8040 new_unary_operation failed.
8042 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
8045 * config/s390/s390.md: Remove load and test FP splitter.
8047 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8050 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
8051 expand_compare_loop, expand_block_compare_gpr,
8052 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
8053 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
8054 #include "profile-count.h" and "predict.h" for types and functions
8055 needed to work with REG_BR_PROB notes.
8057 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
8060 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
8061 for the long branch case.
8063 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8066 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
8067 can throw, non-call exceptions are enabled and we can't delete
8068 dead exceptions or alter cfg. Set must_clean if
8069 delete_insn_and_edges returns true, don't set it blindly for calls.
8070 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
8072 PR rtl-optimization/89195
8073 * combine.c (make_extraction): For MEMs, don't extract bytes outside
8074 of the original MEM.
8076 2019-02-05 Martin Liska <mliska@suse.cz>
8078 PR gcov-profile/89000
8079 * gcov.c (function_summary): Remove argument.
8080 (file_summary): New function.
8081 (print_usage): Replace tabs with spaces.
8082 (generate_results): Use new function file_summary.
8084 2019-02-05 Jakub Jelinek <jakub@redhat.com>
8087 * optabs.c (prepare_cmp_insn): Pass x and y to
8088 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
8090 2019-02-05 Richard Biener <rguenther@suse.de>
8093 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
8094 (struct bitmap_element): Drop chain_prev so we properly recurse on
8095 the prev member, supporting tree views.
8096 (struct bitmap_head): GTY skip the obstack member.
8098 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
8101 * doc/extend.texi (Vector Extensions): Add an example of using vector
8102 types together with x86 intrinsics.
8104 2019-02-04 Alan Modra <amodra@gmail.com>
8106 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
8107 str[] size to 160, and comment.
8109 2019-02-04 Alan Modra <amodra@gmail.com>
8111 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
8112 (rs6000_pltseq_template): Guard output of TLS markers with
8114 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
8115 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
8116 to use inline PLT sequences.
8117 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
8118 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
8119 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
8121 2019-02-04 Martin Liska <mliska@suse.cz>
8124 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
8125 out when ipa_fn_summaries does not contain entry for callee.
8127 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
8129 * config/sparc/sparc.h: Remove superfluous blank lines.
8130 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
8131 (got_register_rtx): ...this.
8132 (sparc_got): Adjust to above renaming.
8133 (sparc_tls_got): Likewise.
8134 (sparc_delegitimize_address): Likewise.
8135 (sparc_output_mi_thunk): Likewise.
8136 (sparc_init_pic_reg): Likewise.
8137 (save_local_or_in_reg_p): Fix test on the GOT register.
8138 (USE_HIDDEN_LINKONCE): Move around.
8139 (get_pc_thunk_name): Likewise.
8140 (gen_load_pcrel_sym): Likewise.
8141 (load_got_register): Likewise.
8143 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
8145 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
8146 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
8148 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8150 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
8153 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
8155 * config.gcc (with_nds32_lib, glibc):
8156 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
8157 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
8158 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
8160 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
8163 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
8164 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
8165 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
8166 (*rcpsf2_sse): Ditto.
8167 (*rsqrtsf2_sse): Ditto.
8168 (sse4_1_round<mode<2): Ditto.
8170 2019-02-03 Richard Biener <rguenther@suse.de>
8173 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
8176 2019-02-02 Jakub Jelinek <jakub@redhat.com>
8179 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
8180 Punt with warning on aggregate return or argument types. Ignore
8181 type/mode checking for uniform arguments.
8183 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
8185 * combine.c (try_combine): Do not print "Can't combine" messages unless
8186 printing failed combination attempts.
8188 2019-02-01 Martin Jambor <mjambor@suse.cz>
8191 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
8192 segment and global segment variables before making them static.
8194 2019-02-01 Martin Jambor <mjambor@suse.cz>
8196 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
8197 missed optimization dump with dump_enabled_p.
8199 2019-02-01 Richard Biener <rguenther@suse.de>
8202 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
8203 the instantiate cache.
8204 (instantiate_scev_binary): Elide second operand procesing
8205 if equal to the first.
8206 * tree-chrec.c (chrec_contains_symbols): Add visited set.
8207 (chrec_contains_undetermined): Likewise.
8208 (tree_contains_chrecs): Likewise.
8210 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
8212 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
8214 2019-02-01 Jakub Jelinek <jakub@redhat.com>
8216 PR tree-optimization/89143
8217 * wide-int-range.h (wide_int_range_absu): Declare.
8218 * wide-int-range.cc (wide_int_range_absu): New function.
8219 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
8221 PR tree-optimization/88107
8222 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
8223 instead of assertion that eh_region_outermost is non-NULL, if it
8224 is NULL, set *ALL to true and return NULL.
8225 (move_sese_region_to_fn): Adjust caller, if all is set, call
8226 duplicate_eh_regions with NULL region.
8228 2019-02-01 Richard Biener <rguenth@suse.de>
8230 PR rtl-optimization/88593
8231 * mode-switching.c (optimize_mode_switching): Free dominators before
8232 calling cleanup_cfg.
8234 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
8236 PR tree-optimization/88932
8237 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
8239 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8242 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
8243 bogus clang warning.
8245 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
8248 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
8249 alternative to avoid partial SSE register stall for TARGET_AVX.
8250 (truncdfsf2): Ditto.
8251 (sse4_1_round<mode>2): Ditto.
8253 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
8255 PR tree-optimization/89008
8256 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
8257 process anything of the form X * 0.
8259 2019-01-31 Richard Biener <rguenther@suse.de>
8261 PR tree-optimization/89135
8262 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
8263 with abnormal preds.
8265 2019-01-31 Jakub Jelinek <jakub@redhat.com>
8268 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
8269 always_inline callees into no_sanitize_address callers.
8271 2019-01-31 Richard Biener <rguenther@suse.de>
8273 PR rtl-optimization/89115
8274 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
8276 2019-01-30 Martin Sebor <msebor@redhat.com>
8279 * doc/extend.texi (cast to a union): Correct and expand.
8281 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
8283 PR rtl-optimization/87246
8284 * lra-constraints.c (simplify_operand_subreg): Reload memory
8285 in subreg if the address became invalid.
8287 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
8290 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
8291 Disable for little-endian.
8293 2019-01-30 Richard Biener <rguenther@suse.de>
8295 PR rtl-optimization/89115
8296 * opts.c (default_options_optimization): Reduce
8297 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
8298 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
8301 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
8303 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
8304 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
8305 type of vector element when vec_extract is implemented by direct
8308 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
8310 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
8312 2019-01-30 Richard Biener <rguenther@suse.de>
8314 PR tree-optimization/89111
8315 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
8316 canonicalization to appropriately sized access types.
8318 2019-01-30 Jakub Jelinek <jakub@redhat.com>
8321 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
8322 for arguments to functions that are TU-local and shouldn't be
8323 referenced by assembly.
8325 2019-01-30 Ulrich Drepper <drepper@redhat.com>
8327 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
8330 2019-01-29 Martin Sebor <msebor@redhat.com>
8333 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
8335 2019-01-29 Jakub Jelinek <jakub@redhat.com>
8339 * omp-simd-clone.c (simd_clone_clauses_extract)
8340 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
8341 OMP_CLAUSE_ALIGNED_ALIGNMENT.
8343 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
8345 * config.gcc: Force .init_array for ARC.
8347 2019-01-29 Richard Biener <rguenther@suse.de>
8350 * dwarf2out.c (collect_skeleton_dies): New helper.
8351 (copy_decls_for_unworthy_types): Call it.
8352 (build_abbrev_table): Assert we do not try to replace
8353 DW_AT_signature refs with local refs.
8355 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8358 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
8359 for lastprivate/linear IV, push gimplify context around gimplify_assign
8360 and, if it needed any temporaries, pop it into a gimple bind around the
8363 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
8365 * common.opt (-Wattribute-alias): Remove "no-" from name.
8366 Make -Wattribute-alias command line option and
8367 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
8369 2019-01-28 Jakub Jelinek <jakub@redhat.com>
8372 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
8373 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
8375 (bmi2): Add missing @opindex.
8376 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
8377 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
8378 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
8379 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
8380 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
8381 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
8382 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
8383 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
8384 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
8385 xsavec, xsaveopt and xsaves options.
8387 2019-01-28 Richard Biener <rguenther@suse.de>
8390 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
8393 2019-01-28 Richard Biener <rguenther@suse.de>
8395 PR tree-optimization/88739
8396 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8397 BIT_FIELD_REFs only are applied to mode-precision operands
8398 when they are integral.
8399 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
8400 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
8401 BIT_FIELD_REFs of non-mode-precision integral operands.
8403 2019-01-27 Jakub Jelinek <jakub@redhat.com>
8406 * config/i386/sse.md
8407 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
8408 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
8409 first constants in pairs are multiples of 2. Formatting fixes.
8410 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
8411 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
8412 first constants in each quadruple are multiples of 4. Formatting fixes.
8414 2019-01-26 Martin Jambor <mjambor@suse.cz>
8417 * tree-inline.c: Include tree-cfgcleanup.h.
8418 (delete_unreachable_blocks_update_callgraph): Move...
8419 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
8420 ...here, make externally visible, make second argument bool, adjust
8422 * tree-cfgcleanup.c: Include cgraph.h.
8423 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
8425 * ipa-prop.c: Include tree-cfgcleanup.h.
8426 (ipcp_transform_function): Call
8427 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
8429 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
8431 PR rtl-optimization/88846
8432 * ira.c (process_set_for_memref_referenced_p): New.
8433 (memref_referenced_p): Add new param. Use
8434 process_set_for_memref_referenced_p. Add new switch cases.
8435 (memref_used_between_p): Pass new arg to memref_referenced_p.
8437 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
8440 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
8441 argument ABI_BREAK. Set to true if the calculated alignment has
8442 changed in gcc-9. Check bit-fields for their base type alignment.
8443 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
8444 (aarch64_function_arg_boundary): Likewise.
8445 (aarch64_gimplify_va_arg_expr): Likewise.
8447 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8450 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
8451 instead of accessing TREE_INT_CST_ELT directly.
8453 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
8455 * doc/sourcebuild.texi (Environment attributes): Add fenv and
8456 fenv_exceptions description.
8458 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
8460 PR rtl-optimization/87763
8461 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
8462 Allow SUBREG when matching CC_NZmode compare.
8464 2019-01-25 Richard Biener <rguenther@suse.de>
8466 PR tree-optimization/89049
8467 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
8468 Look at the pattern stmt to determine if the stmt is vectorized.
8470 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
8472 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
8473 (pred_mov<mode>): Handle all-register forms using both a new
8474 alternative and a split.
8476 2019-01-25 Richard Biener <rguenther@suse.de>
8478 PR tree-optimization/86865
8479 * graphite-scop-detection.c (scop_detection::can_represent_loop):
8480 Reject non-do-while loops.
8482 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
8484 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
8485 * config/rs6000/constraints.md (Q constraint): Use REG_P.
8486 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
8487 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8488 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
8489 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8490 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
8491 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
8492 vlogical_operand, gpc_reg_operand, int_reg_operand,
8493 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
8494 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
8495 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
8496 (save_world_operation, restore_world_operation, lmw_operation,
8497 stmw_operation): Use MEM_P and REG_P.
8498 (tie_operand): Use MEM_P.
8499 (vrsave_operation, crsave_operation): Use REG_P.
8500 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
8501 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
8502 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
8503 (call_operand): Use HARD_REGISTER_P.
8504 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
8506 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
8507 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
8508 quad_aligned_load_p, replace_swapped_aligned_store,
8509 recombine_lvx_pattern, replace_swapped_aligned_load,
8510 recombine_stvx_pattern): Use MEM_P.
8511 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
8512 Use MEM_P and SYMBOL_REF_P.
8513 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
8514 (insn_is_swappable_p): Use REG_P and MEM_P.
8515 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
8516 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
8518 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
8520 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
8522 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
8523 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
8524 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
8525 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
8527 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8528 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
8529 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
8530 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
8531 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
8532 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
8533 rs6000_split_logical_di): Use CONST_INT_P.
8534 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
8535 REG_P and SYMBOL_REF_P.
8536 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
8537 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
8538 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
8539 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
8540 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
8541 (small_data_operand, print_operand_address): Use CONST_INT_P and
8543 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
8544 (rs6000_init_hard_regno_mode_ok, direct_move_p):
8545 Use HARD_REGISTER_NUM_P.
8546 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
8547 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
8548 SUBREG_P and SYMBOL_REF_P.
8549 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
8550 and HARD_REGISTER_NUM_P.
8551 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
8553 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
8554 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
8556 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
8557 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
8558 find_addr_reg): Use REG_P.
8559 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
8560 (rs6000_emit_le_vsx_move): Use SUBREG_P.
8561 (offsettable_ok_by_alignment, constant_pool_expr_p,
8562 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
8563 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
8564 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
8565 rs6000_assemble_integer, create_TOC_reference,
8566 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
8567 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
8568 (rs6000_split_vec_extract_var): Use reg_or_subregno.
8569 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
8570 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
8571 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8572 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
8573 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
8574 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
8575 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
8576 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
8577 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
8578 and cbranch<mode>4): Use CONST_INT_P.
8579 (multiple define_splits): Use REG_P and SUBREG_P.
8580 (define_expands call, call_value): Use MEM_P.
8581 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
8582 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
8583 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
8584 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
8585 and HARD_REGISTER_NUM_P.
8586 (multiple define_splits): Use HARD_REGISTER_NUM_P.
8588 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
8590 PR rtl-optimization/88948
8591 * rtl.h (prepare_copy_insn): New prototype.
8592 * gcse.c (prepare_copy_insn): New function, split out from
8593 process_insert_insn.
8594 (process_insert_insn): Use prepare_copy_insn.
8595 * store-motion.c (replace_store_insn): Use prepare_copy_insn
8596 instead of gen_move_insn.
8598 2019-01-24 Jakub Jelinek <jakub@redhat.com>
8601 * config/i386/i386.c (ix86_pic_register_p): Return true for
8604 PR tree-optimization/88964
8605 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
8606 punt if HONOR_SNANS (chrec).
8609 * tree-nested.c (convert_nonlocal_reference_stmt,
8610 convert_local_reference_stmt, convert_tramp_reference_stmt,
8611 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
8612 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
8615 PR tree-optimization/89027
8616 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
8617 for "omp simd array" variables.
8619 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
8622 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
8623 force the alignment of m_val.
8625 2019-01-24 Richard Biener <rguenther@suse.de>
8628 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
8629 When in "legacy" debug mode make sure to reset self-origins.
8631 2019-01-24 Martin Liska <mliska@suse.cz>
8633 PR gcov-profile/88994
8634 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
8635 result will be always smaller or equal to the original.
8636 * gcov.c (mangle_name): Fix else branch where we should
8637 also copy to PTR and shift the pointer.
8639 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
8641 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
8642 * vr-values.c (find_case_label_ranges): Fix a comment typo.
8644 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
8646 * common/config/i386/i386-common.c
8647 (OPTION_MASK_ISA_ENQCMD_SET,
8648 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
8649 (ix86_handle_option): Handle -menqcmd.
8650 * config.gcc (enqcmdintrin.h): New header file.
8651 * config/i386/cpuid.h (bit_ENQCMD): New bit.
8652 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
8654 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
8656 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
8657 __builtin_ia32_enqcmds): New builtins.
8658 * config/i386/i386-c.c (__ENQCMD__): New macro.
8659 * config/i386/i386-option.c (ix86_target_string): Add
8661 (ix86_valid_target_attribute_inner_p): Likewise.
8662 * config/i386/i386-expand.c
8663 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
8664 IX86_BUILTIN_ENQCMDS.
8665 * config/i386/i386.h (TARGET_ENQCMD): New.
8666 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
8667 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
8668 (movdir64b_<mode>): Parameterize to enable share expansion code
8669 with ENQCMD in function ix86_expand_builtin.
8670 * config/i386/i386.opt: Add -menqcmd.
8671 * config/i386/immintrin.h: Include enqcmdintrin.h.
8672 * config/i386/enqcmdintrin.h: New intrinsic file.
8673 * doc/invoke.texi: Add -menqcmd.
8675 2019-01-23 Bin Cheng <bin.cheng@arm.com>
8676 Steve Ellcey <sellcey@marvell.com>
8679 * recog.c (address_operand): Return false on wrong mode for address.
8680 (constrain_operands): Check for mode with 'p' constraint.
8682 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
8685 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
8686 Disparage MMX alternative.
8687 (sse2_cvtpd2pi): Ditto.
8688 (sse2_cvttpd2pi): Ditto.
8690 2019-01-23 David Malcolm <dmalcolm@redhat.com>
8693 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
8694 use-after-free of the result of
8695 aarch64_get_extension_string_for_isa_flags.
8697 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8700 * doc/extend.texi: Document break and continue behavior in
8701 statement expressions.
8703 2019-01-23 Richard Biener <rguenther@suse.de>
8705 PR tree-optimization/89008
8706 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
8707 not leave another stray operand.
8709 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8711 * BASE-VER: Bump to 9.0.1.
8713 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
8715 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
8716 thunk that returns by reference, use the type of the return object
8717 of the thunk instead of that of the alias to build the dereference.
8719 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
8721 * config/arc/atomic.md: Add operand to DMB instruction.
8723 2019-01-23 Jakub Jelinek <jakub@redhat.com>
8725 PR tree-optimization/88964
8726 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
8727 build_zero_cst instead of build_int_cst. Return false for loop
8728 invariants which honor signed zeros.
8730 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
8732 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
8734 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8737 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
8738 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
8739 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
8742 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
8743 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
8746 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
8747 Disable for little endian.
8749 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8752 * config/arm/arm.c (arm_needs_double_word_align): Check
8753 DECL_BIT_FIELD_TYPE.
8755 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
8756 H.J. Lu <hongjiu.lu@intel.com>
8759 * config/i386/i386-builtin.def: Add mask2 to all builtin
8760 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
8762 * config/i386/i386.c (BDESC): Add mask2 to the definition.
8763 (BDESC_FIRST): Likewise.
8764 (define_builtin): Add an argument for mask2. Updated to handle
8765 both ix86_isa_flags and ix86_isa_flags2.
8766 (define_builtin_const): Likewise.
8767 (define_builtin_pure): Likewise.
8768 (define_builtin2): Deleted.
8769 (define_builtin_const2): Likewise.
8770 (builtin_description): Add a member, mask2.
8771 (bdesc_*): Add mask2 to builtin initializations.
8772 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
8773 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
8775 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
8777 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
8780 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
8783 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
8786 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
8787 alignment is dominated by a bitfield with 64-bit aligned base type.
8788 (arm_function_arg): Emit a warning if the alignment has changed since
8789 earlier GCC releases.
8790 (arm_function_arg_boundary): Likewise.
8791 (arm_setup_incoming_varargs): Likewise.
8793 2019-01-22 Richard Biener <rguenther@suse.de>
8795 PR tree-optimization/88862
8796 * graphite-scop-detection.c
8797 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
8799 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
8801 * doc/extend.tex (AMD GCN Function Attributes): New section.
8802 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
8803 * doc/invoke.texi (AMD GCN Options): New section.
8804 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
8806 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
8808 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
8809 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
8811 2019-01-22 Jakub Jelinek <jakub@redhat.com>
8813 PR tree-optimization/88044
8814 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
8815 is false in the first iteration, but !every_iteration, return false
8816 instead of true with niter->niter zero.
8818 PR rtl-optimization/88904
8819 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
8820 any nonequal registers before processing BB_END (b).
8823 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
8825 (expand_binop_directly, expand_doubleword_clz,
8826 expand_doubleword_popcount, expand_ctz, expand_ffs,
8827 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
8829 PR rtl-optimization/49429
8831 PR rtl-optimization/86334
8833 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
8834 addressable from here...
8835 (emit_block_op_via_libcall): ... to here.
8837 2019-01-22 Richard Biener <rguenther@suse.de>
8839 * tree-vect-loop.c (vect_analyze_loop_operations): Use
8840 auto_vec for cost vector to fix memleak.
8841 (vectorize_fold_left_reduction): Properly gather SLP defs.
8842 (vectorizable_comparison): Do not swap operands to properly
8845 2019-01-22 Alan Modra <amodra@gmail.com>
8848 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
8849 stays a reg. Allow a const_int.
8850 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
8851 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
8852 (IS_NOMARK_TLSGETADDR): Define.
8853 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
8854 (rs6000_output_tlsargs): New function.
8855 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
8856 __tls_get_addr call takes an arg.
8857 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
8858 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
8860 (call_value_nonlocal_sysv): ..or here, delete split.
8861 (tls_gdld_nomark): Delete.
8862 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
8863 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
8864 (call_value_nonlocal_sysv): Likewise.
8865 (call_value_nonlocal_sysv_secure): Likewise.
8866 (call_value_nonlocal_aix): Likewise.
8867 (call_value_indirect_aix): Likewise.
8868 (call_value_indirect_elfv2): Likewise.
8869 (call_value_local32, call_value_local64): Disable for no-mark tls.
8870 (call_value_local_aix): Likewise.
8872 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
8875 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
8876 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
8878 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
8880 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
8881 string contents as hash_map keys.
8883 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
8886 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
8887 for rvalue context. Handle rvalues correctly. Use min_align_of_type
8888 instead of TYPE_ALIGN.
8889 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
8890 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
8891 pointer from TYPE_STUB_DECL.
8893 2019-01-21 Richard Biener <rguenther@suse.de>
8895 PR tree-optimization/88934
8896 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
8897 at the possibly non-constant operand.
8898 (vect_get_constant_vectors): Adjust.
8900 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
8903 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
8904 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
8905 instead of _X86INTRIN_H_INCLUDED.
8906 * onfig/i386/clwbintrin.h: Likewise.
8907 * config/i386/pkuintrin.h: Likewise.
8908 * config/i386/prfchwintrin.h: Likewise.
8909 * config/i386/rdseedintrin.h: Likewise.
8910 * config/i386/wbnoinvdintrin.h: Likewise.
8911 * config/i386/xsavecintrin.h: Likewise.
8912 * config/i386/xsavesintrin.h: Likewise.
8913 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
8914 * config/i386/xsaveintrin.h: Likewise.
8915 * config/i386/xsaveoptintrin.h: Likewise.
8916 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
8917 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
8918 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
8919 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
8920 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
8921 * config/i386/immintrin.h: Here.
8923 2019-01-20 Martin Jambor <mjambor@suse.cz>
8926 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
8927 with aa_walk_budget.
8928 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
8929 aa_walk_budget_p parameter.
8930 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
8931 walk. Updated all callers.
8932 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
8933 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
8935 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
8936 parameter info. Extract info from fbi. Pass fbi to recursive calls
8937 and to unmodified_parm.
8938 (phi_result_unknown_predicate): New parameter fbi, removed parameter
8939 info, updated call to will_be_nonconstant_expr_predicate.
8940 (param_change_prob): New parameter fbi, limit AA walking.
8941 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
8942 calls to various above functions.
8943 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
8944 parameter. Use it to limit AA walking.
8945 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
8947 (detect_type_change): New parameter fbi, pass it on to
8948 detect_type_change_from_memory_writes.
8949 (detect_type_change_ssa): Likewise.
8950 (aa_overwalked): Removed.
8951 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
8952 accordingly, adjust to the neew AA limiting scheme.
8953 (parm_ref_data_preserved_p): Likewise.
8954 (ipa_compute_jump_functions_for_edge): Adjust call to
8956 (ipa_analyze_call_uses): Likewise.
8957 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
8958 (ipa_analyze_node): Initialize aa_walk_budget.
8959 (ipcp_transform_function): Likewise.
8960 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
8961 to get_dynamic_type.
8963 2019-01-19 Jakub Jelinek <jakub@redhat.com>
8965 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
8966 outside of #if CHECKING_P code.
8968 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
8970 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
8971 New function, split out from...
8972 (loop_versioning::analyze_stride): ...here.
8973 (loop_versioning::find_per_loop_multiplication): Use gassign.
8974 (loop_versioning::analyze_term_using_scevs): Return a success code.
8975 (loop_versioning::analyze_arbitrary_term): New function.
8976 (loop_versioning::analyze_address_fragment): Use
8977 analyze_arbitrary_term if all else fails.
8979 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
8982 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
8985 2019-01-18 Richard Biener <rguenther@suse.de>
8987 PR tree-optimization/88903
8988 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
8989 scalar stmts a SLP shift amount is composed of when detecting
8992 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
8995 * config/arm/arm-cpus.in (mp): New feature.
8997 (fgroup ARMv7ve): Add mp and sec features.
8998 (arch armv7-a): Add options to allow mp and sec extensions.
8999 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
9000 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
9001 extenstions to the base architecture.
9002 (cpu cortex-a8): Add sec extension to the base architecture.
9003 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
9004 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
9005 variants down to the base v7-a varaint.
9006 * config/arm/t-multilib (v7_a_arch_variants): New variable.
9007 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
9008 of permitted extensions for -march=armv7-a and for
9009 -mcpu=generic-armv7-a.
9011 2019-01-18 Martin Liska <mliska@suse.cz>
9013 * params.def: Fix comment.
9014 * tree-profile.c (gimple_init_gcov_profiler): Bump function
9016 (gimple_gen_ic_func_profiler): Likewise.
9018 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9020 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
9021 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
9022 and put in error checks for stack protector guard options.
9023 (aarch64_stack_protect_guard): New.
9024 (TARGET_STACK_PROTECT_GUARD): Define.
9025 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
9026 (reg_stack_protect_address<mode>): New.
9027 (stack_protect_set): Adjust for SSP_GLOBAL.
9028 (stack_protect_test): Likewise.
9029 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
9030 (-mstack-protector-guard): Likewise.
9031 (-mstack-protector-guard-offset): Likewise.
9033 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9035 PR tree-optimization/86214
9036 * tree-inline.h (struct copy_body_data): Add
9037 add_clobbers_to_eh_landing_pads member.
9038 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
9039 (copy_edges_for_bb): Call it if EH edge destination is <
9040 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
9041 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
9042 if flag_stack_reuse != SR_NONE and clear it afterwards.
9044 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
9047 * doc/install.texi (with-multilib-list): Document for aarch64.
9049 2019-01-18 Jakub Jelinek <jakub@redhat.com>
9052 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
9053 (("..."))) with ("...").
9055 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
9057 * doc/extend.texi (Built-in Functions for Memory Model Aware
9058 Atomic Operations): Document atomic fetch and nand.
9060 2019-01-18 Martin Liska <mliska@suse.cz>
9061 Richard Biener <rguenther@suse.de>
9064 * cgraph.h (create_version_clone_with_body): Add new argument
9066 * cgraphclones.c (cgraph_node::create_version_clone): Add
9067 DECL_ATTRIBUTES to a newly created decl. And call
9068 valid_attribute_p so that proper cl_target_optimization_node
9069 is set for the newly created declaration.
9070 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
9072 (expand_target_clones): Do not call valid_attribute_p, it must
9074 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
9077 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9080 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
9081 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
9082 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
9084 2019-01-17 Martin Sebor <msebor@redhat.com>
9087 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
9088 Handle anti-ranges the same as no range at all.
9090 2018-01-17 Steve Ellcey <sellcey@cavium.com>
9092 * config/aarch64/aarch64.c (cgraph.h): New include.
9093 (intl.h): New include.
9094 (supported_simd_type): New function.
9095 (currently_supported_simd_type): Ditto.
9096 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
9097 (aarch64_simd_clone_adjust): Ditto.
9098 (aarch64_simd_clone_usable): Ditto.
9099 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
9100 (TARGET_SIMD_CLONE_ADJUST): Ditto.
9101 (TARGET_SIMD_CLONE_USABLE): Ditto.
9102 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
9103 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
9106 2019-01-17 Martin Sebor <msebor@redhat.com>
9108 PR tree-optimization/88800
9109 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
9110 NO_WARNING bit here. Avoid folding out-of-bounds calls.
9111 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
9112 redundant argument. Add new argument and issue diagnostics under
9113 its control. Detect out-of-bounds access even with warnings
9115 (check_bounds_or_overlap): Change return type. Add argument.
9116 (wrestrict_dom_walker::check_call): Adjust.
9117 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
9118 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
9119 check_bounds_or_overlap's return value.
9120 (handle_builtin_stxncpy): Same.
9121 (handle_builtin_strcat): Same.
9123 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9124 Kwok Cheung Yeung <kcy@codesourcery.com>
9125 Julian Brown <julian@codesourcery.com>
9126 Tom de Vries <tom@codesourcery.com>
9128 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
9130 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9132 * doc/sourcebuild.texi: Document dg-require-effective-target
9133 llvm_binutils and offload_gcn.
9135 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9136 Kwok Cheung Yeung <kcy@codesourcery.com>
9137 Julian Brown <julian@codesourcery.com>
9138 Tom de Vries <tom@codesourcery.com>
9140 * doc/sourcebuild.texi: Document dg-required-effective-target
9143 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9144 Kwok Cheung Yeung <kcy@codesourcery.com>
9145 Julian Brown <julian@codesourcery.com>
9146 Tom de Vries <tom@codesourcery.com>
9147 Jan Hubicka <hubicka@ucw.cz>
9148 Martin Jambor <mjambor@suse.cz>
9150 * config.gcc: Add amdgcn*-*-amdhsa configuration.
9151 * configure.ac: Check for dlopen.
9152 * configure: Regenerate.
9154 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9155 Kwok Cheung Yeung <kcy@codesourcery.com>
9156 Julian Brown <julian@codesourcery.com>
9157 Tom de Vries <tom@codesourcery.com>
9158 Jan Hubicka <hubicka@ucw.cz>
9159 Martin Jambor <mjambor@suse.cz>
9161 * common/config/gcn/gcn-common.c: New file.
9162 * config/gcn/driver-gcn.c: New file.
9163 * config/gcn/gcn-builtins.def: New file.
9164 * config/gcn/gcn-hsa.h: New file.
9165 * config/gcn/gcn-modes.def: New file.
9166 * config/gcn/gcn-opts.h: New file.
9167 * config/gcn/gcn-passes.def: New file.
9168 * config/gcn/gcn-protos.h: New file.
9169 * config/gcn/gcn-run.c: New file.
9170 * config/gcn/gcn-tree.c: New file.
9171 * config/gcn/gcn.c: New file.
9172 * config/gcn/gcn.h: New file.
9173 * config/gcn/gcn.opt: New file.
9174 * config/gcn/t-gcn-hsa: New file.
9176 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
9177 Kwok Cheung Yeung <kcy@codesourcery.com>
9178 Julian Brown <julian@codesourcery.com>
9179 Tom de Vries <tom@codesourcery.com>
9180 Jan Hubicka <hubicka@ucw.cz>
9181 Martin Jambor <mjambor@suse.cz>
9183 * config/gcn/constraints.md: New file.
9184 * config/gcn/gcn-valu.md: New file.
9185 * config/gcn/gcn.md: New file.
9186 * config/gcn/predicates.md: New file.
9188 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
9190 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
9191 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
9192 (stmt_uses_0_or_null_in_undefined_way): Likewise.
9193 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
9195 2019-01-17 Tamar Christina <tamar.christina@arm.com>
9198 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
9199 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
9200 it and document registers.
9202 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9204 * config/aarch64/aarch64.c (ares_tunings): Define.
9205 * config/aarch64/aarch64-cores.def (ares): Use the above.
9207 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9211 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
9213 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
9214 (_mm512_fixupimm_round_pd): Update parameters and builtin.
9215 (_mm512_maskz_fixupimm_round_pd): Ditto.
9216 (_mm512_fixupimm_round_ps): Ditto.
9217 (_mm512_maskz_fixupimm_round_ps): Ditto.
9218 (_mm_fixupimm_round_sd): Ditto.
9219 (_mm_maskz_fixupimm_round_sd): Ditto.
9220 (_mm_fixupimm_round_ss): Ditto.
9221 (_mm_maskz_fixupimm_round_ss): Ditto.
9222 (_mm512_fixupimm_pd): Ditto.
9223 (_mm512_maskz_fixupimm_pd): Ditto.
9224 (_mm512_fixupimm_ps): Ditto.
9225 (_mm512_maskz_fixupimm_ps): Ditto.
9226 (_mm_fixupimm_sd): Ditto.
9227 (_mm_maskz_fixupimm_sd): Ditto.
9228 (_mm_fixupimm_ss): Ditto.
9229 (_mm_maskz_fixupimm_ss): Ditto.
9230 (_mm512_mask_fixupimm_round_pd): Update builtin.
9231 (_mm512_mask_fixupimm_round_ps): Ditto.
9232 (_mm_mask_fixupimm_round_sd): Ditto.
9233 (_mm_mask_fixupimm_round_ss): Ditto.
9234 (_mm512_mask_fixupimm_pd): Ditto.
9235 (_mm512_mask_fixupimm_ps): Ditto.
9236 (_mm_mask_fixupimm_sd): Ditto.
9237 (_mm_mask_fixupimm_ss): Ditto.
9238 * config/i386/avx512vlintrin.h:
9239 (_mm256_fixupimm_pd): Update parameters and builtin.
9240 (_mm256_maskz_fixupimm_pd): Ditto.
9241 (_mm256_fixupimm_ps): Ditto.
9242 (_mm256_maskz_fixupimm_ps): Ditto.
9243 (_mm_fixupimm_pd): Ditto.
9244 (_mm_maskz_fixupimm_pd): Ditto.
9245 (_mm_fixupimm_ps): Ditto.
9246 (_mm_maskz_fixupimm_ps): Ditto.
9247 (_mm256_mask_fixupimm_pd): Update builtin.
9248 (_mm256_mask_fixupimm_ps): Ditto.
9249 (_mm_mask_fixupimm_pd): Ditto.
9250 (_mm_mask_fixupimm_ps): Ditto.
9251 * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
9252 * config/i386/i386-builtin.def: Update builtin definitions.
9253 * config/i386/i386.c: Handle new builtin types and remove useless ones.
9254 * config/i386/sse.md: Update VFIXUPIMM* patterns.
9255 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9256 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9257 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
9258 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9259 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9260 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
9261 * config/i386/subst.md:
9262 (round_saeonly_sd_mask_operand4): Add new subst_attr.
9263 (round_saeonly_sd_mask_op4): Ditto.
9264 (round_saeonly_expand_operand5): Ditto.
9265 (round_saeonly_expand): Update.
9267 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9271 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
9273 * config/i386/sse.md: Combine VFIXUPIMM* patterns
9274 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9275 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9276 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
9277 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
9278 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
9279 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
9281 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
9285 2018-12-15 Jakub Jelinek <jakub@redhat.com>
9288 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
9289 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
9290 instead of UNSPEC_FIXUPIMM.
9292 2019-01-17 Richard Biener <rguenther@suse.de>
9295 * dwarf2out.c (want_pubnames): Never generate pubnames sections
9296 and friends for the LTO part of debug info.
9298 2019-01-17 Jakub Jelinek <jakub@redhat.com>
9300 PR tree-optimization/86214
9301 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
9304 PR rtl-optimization/88870
9305 * dce.c (deletable_insn_p): Never delete const/pure calls that can
9306 throw if we can't alter the cfg or delete dead exceptions.
9307 (mark_insn): Don't call find_call_stack_args for such calls.
9309 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
9311 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
9312 prototypes for vec_st.
9313 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
9314 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
9315 mainly on signed/unsigned long long and double.
9317 2019-01-16 David Malcolm <dmalcolm@redhat.com>
9320 * combine.c (delete_noop_moves): Convert to "bool" return,
9321 returning true if any edges are eliminated.
9322 (combine_instructions): Also return true if delete_noop_moves
9325 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9327 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
9328 correct max nunits for endian swap.
9329 (aarch64_expand_fcmla_builtin): Correct subreg code.
9330 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9331 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
9334 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
9336 * config/alpha/alpha.c (alpha_gimplify_va_arg):
9337 Handle split indirect COMPLEX_TYPE arguments.
9339 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
9342 * config/aarch64/aarch64-modes.def: Add comment about how the carry
9343 bit is set by add and compare.
9344 (CC_ADC): New CC_MODE.
9345 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
9346 to cache the code and mode of X. Adjust the shape of a CC_Cmode
9347 comparison. Add detection for CC_ADCmode.
9348 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
9350 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
9351 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
9352 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
9353 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
9354 to eliminate the need for zero-extending the operands.
9355 (add<mode>3_compareC_imm): Delete. Merge into ...
9356 (add<mode>3_compareC): ... this. Restructure the comparison to
9357 eliminate the need for zero-extending the operands.
9358 (add<mode>3_carryin): Use LTU for the overflow detection.
9359 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
9360 Reexpress comparison for overflow.
9361 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
9362 (add<mode>3_carryinC): Likewise.
9363 (add<mode>3_carryinV): Use LTU for carry between partials.
9364 * config/aarch64/predicates.md (aarch64_carry_operation): Update
9365 handling of CC_Cmode and add CC_ADCmode.
9366 (aarch64_borrow_operation): Likewise.
9368 2019-01-16 Tamar Christina <tamar.christina@arm.com>
9370 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
9371 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
9372 * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
9373 neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
9375 2019-01-16 Martin Liska <mliska@suse.cz>
9377 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
9379 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
9381 * gcc.c (add_sysrooted_hdrs_prefix): New function.
9382 (path_prefix_reset): Move up in the source file.
9383 (find_fortran_preinclude_file): Make complex search for the
9384 fortran header files.
9386 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
9388 * godump.c (go_output_typedef): When outputting a typedef, refer
9389 to the underlying type by its name and not its structure.
9391 2019-01-15 David Malcolm <dmalcolm@redhat.com>
9394 * tree.c (build_function_type): Assert that arg_types is not
9397 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
9400 * doc/extend.texi: Document that listing the stack pointer in the
9401 clobber list of an asm is a deprecated feature.
9402 * common.opt (Wdeprecated): Moved from c-family/c.opt.
9403 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
9404 warning instead of an error for clobbers of the stack pointer.
9405 Add a note explaining why.
9407 2019-01-15 Richard Biener <rguenther@suse.de>
9410 * dwarf2out.c (gen_member_die): Do not generate inheritance
9413 2019-01-15 Richard Biener <rguenther@suse.de>
9415 PR tree-optimization/88855
9416 * tree-if-conv.c (combine_blocks): Collect
9417 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
9419 2019-01-15 Tom de Vries <tdevries@suse.de>
9422 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
9423 lhs == NULL_TREE for gang-level reduction.
9425 2019-01-15 Richard Biener <rguenther@suse.de>
9426 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
9429 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
9430 return true if SSA_NAME is already marked in visited bitmap.
9431 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
9433 2019-01-15 Jakub Jelinek <jakub@redhat.com>
9435 PR tree-optimization/88775
9436 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
9437 equal == 0 equality pointer comparisons some more if compared in
9438 integral types and either one points to an automatic var and the
9439 other to a global, or we can prove at least one points to the middle
9440 or both point to start or both point to end.
9442 2019-01-14 Andi Kleen <ak@linux.intel.com>
9444 * Makefile.in: Lower autofdo sampling rate by 10x.
9445 * Makefile.tpl: Dito.
9447 2019-01-14 Tom Honermann <tom@honermann.net>
9449 * defaults.h: Define CHAR8_TYPE.
9451 2019-01-14 Martin Sebor <msebor@redhat.com>
9454 * doc/extend.texi (Darwin Format Checks): Clarify.
9456 2019-01-14 Richard Biener <rguenther@suse.de>
9458 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
9459 whether we are in (simplify ...) or (match ...) context.
9461 2019-01-14 Jakub Jelinek <jakub@redhat.com>
9463 PR rtl-optimization/88796
9464 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
9465 * cfgexpand.c (stack_protect_prologue): Initialize
9466 crtl->stack_protect_guard_decl.
9467 * function.c (stack_protect_epilogue): Use it instead of calling
9468 targetm.stack_protect_guard again.
9469 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
9470 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
9471 crtl->stack_protect_guard_decl.
9472 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
9473 on the returned MEM_EXPR.
9475 2019-01-12 Tom de Vries <tdevries@suse.de>
9477 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
9478 vector length using -fopenacc-dim.
9480 2019-01-12 Tom de Vries <tdevries@suse.de>
9482 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
9483 lengths into account.
9485 2019-01-12 Svante Signell <svante.signell@gmail.com>
9487 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
9488 (TARGET_CAN_SPLIT_STACK): Define.
9489 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9491 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
9493 * params.def (inline-unit-growth): Set to 40.
9495 2019-01-12 Jakub Jelinek <jakub@redhat.com>
9497 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
9499 2019-01-12 Tom de Vries <tdevries@suse.de>
9501 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
9502 region calling vector-partitionable routine, set default_vector_length
9505 2019-01-12 Tom de Vries <tdevries@suse.de>
9507 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
9508 variable default_vector_length.
9510 2019-01-12 Tom de Vries <tdevries@suse.de>
9513 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
9514 from oacc_default_dims, as oacc_validate_dims would do it, and apply
9517 2019-01-12 Tom de Vries <tdevries@suse.de>
9519 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
9520 (nvptx_goacc_validate_dims): Add used parameter.
9521 * doc/tm.texi: Regenerate.
9522 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
9523 argument to call to targetm.goacc.validate_dims.
9524 (default_goacc_validate_dims): Add used
9526 * target.def (validate_dims): Add used parameter in DEFHOOK.
9527 * targhooks.h (default_goacc_validate_dims): Add used parameter.
9529 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9533 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
9535 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
9536 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
9537 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
9538 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
9540 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
9542 PR rtl-optimization/87305
9544 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
9545 for little endian pseudos used as paradoxical subreg.
9547 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9549 PR tree-optimization/88693
9550 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
9551 for STRING_CSTs that don't contain any NUL characters in the first
9552 TREE_STRING_LENGTH bytes.
9554 2019-01-11 Alan Modra <amodra@gmail.com>
9558 * genattrtab.c (min_fn): Don't translate values.
9559 (min_attr_value): Return INT_MAX when the value can't be calculated.
9560 Return minimum among any values that can be calculated.
9561 (max_attr_value): Adjust.
9563 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9565 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
9567 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9569 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9570 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
9571 (aarch64_return_call_with_max_clobbers): New function.
9572 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
9573 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
9575 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
9576 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
9577 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
9578 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
9579 * cselib.c (cselib_process_insn): Add argument to
9580 targetm.hard_regno_call_part_clobbered call.
9581 * ira-conflicts.c (ira_build_conflicts): Ditto.
9582 * ira-costs.c (ira_tune_allocno_costs): Ditto.
9583 * lra-constraints.c (inherit_reload_reg): Ditto.
9584 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
9585 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
9586 argument. Call targetm.return_call_with_max_clobbers.
9587 Add argument to targetm.hard_regno_call_part_clobbered call.
9588 (calls_have_same_clobbers_p): New function.
9589 (process_bb_lives): Add call_insn and last_call_insn variables.
9590 Pass call_insn to check_pseudos_live_through_calls.
9591 Modify if stmt to check targetm.return_call_with_max_clobbers.
9592 Update setting of flush variable.
9593 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
9595 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
9596 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
9597 targetm.hard_regno_call_part_clobbered call.
9598 * reginfo.c (choose_hard_reg_mode): Ditto.
9599 * regrename.c (check_new_reg_p): Ditto.
9600 * reload.c (find_equiv_reg): Ditto.
9601 * reload1.c (emit_reload_insns): Ditto.
9602 * sched-deps.c (deps_analyze_insn): Ditto.
9603 * sel-sched.c (init_regs_for_mode): Ditto.
9604 (mark_unavailable_hard_regs): Ditto.
9605 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
9606 * target.def (hard_regno_call_part_clobbered): Add insn argument.
9607 (return_call_with_max_clobbers): New target function.
9608 * doc/tm.texi: Regenerate.
9609 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
9610 * hooks.c (hook_bool_uint_mode_false): Change to
9611 hook_bool_insn_uint_mode_false.
9612 * hooks.h (hook_bool_uint_mode_false): Ditto.
9614 2019-01-11 Steve Ellcey <sellcey@marvell.com>
9616 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
9617 (aarch64_remove_extra_call_preserved_regs): New function.
9618 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
9619 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
9620 * doc/tm.texi: Regenerate.
9621 * final.c (get_call_reg_set_usage): Call new hook.
9622 * target.def (remove_extra_call_preserved_regs): New hook.
9623 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
9624 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
9626 2019-01-11 Jakub Jelinek <jakub@redhat.com>
9629 * passes.c (finish_optimization_passes): Call print_combine_total_stats
9630 inside of pass_combine_1 dump rather than pass_profile_1.
9632 2019-01-11 Tom de Vries <tdevries@suse.de>
9634 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
9635 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
9636 (PTX_NUM_PER_WORKER_BARRIERS): Define.
9637 (nvptx_apply_dim_limits): Prevent vector_length 64 and
9640 2019-01-11 Tom de Vries <tdevries@suse.de>
9642 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
9644 2019-01-11 Jan Beulich <jbeulich@suse.com>
9646 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
9647 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
9648 sse2_cvtsi2sd): Add {l}.
9649 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
9652 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9655 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
9657 (*float<floatunssuffix>v2div2sf2): New define_insn.
9658 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
9659 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
9660 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
9661 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
9662 match_operands with "const0_operand" "C".
9664 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9666 * config/aarch64/aarch64-builtins.c
9667 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
9668 (aarch64_init_simd_builtins): ...Here
9670 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
9672 PR rtl-optimization/87305
9674 (setup_live_pseudos_and_spill_after_risky_transforms): Check
9675 allocation for big endian pseudos used as paradoxical subregs and
9676 spill them if it is wrong.
9677 * lra-constraints.c (lra_constraints): Add a comment.
9679 2019-01-10 Richard Biener <rguenther@suse.de>
9681 PR tree-optimization/88792
9682 * tree-ssa-pre.c (get_representative_for): Do not return a
9685 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9689 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
9690 (assign_parm_setup_block): Do the argument slot realignment here
9693 2019-01-10 Stefan Agner <stefan@agner.ch>
9696 * config/arm/arm.c (arm_option_override_internal): Force
9697 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
9699 2019-01-10 Jakub Jelinek <jakub@redhat.com>
9702 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
9705 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9707 * config/arm/arm-builtins.c
9708 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
9709 (MAC_LANE_PAIR_QUALIFIERS): New.
9710 (arm_expand_builtin_args): Use it.
9711 (arm_expand_builtin_1): Likewise.
9712 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
9713 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
9714 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
9715 * config/arm/arm_neon.h:
9716 (vcadd_rot90_f16): New.
9717 (vcaddq_rot90_f16): New.
9718 (vcadd_rot270_f16): New.
9719 (vcaddq_rot270_f16): New.
9722 (vcmla_lane_f16): New.
9723 (vcmla_laneq_f16): New.
9724 (vcmlaq_lane_f16): New.
9725 (vcmlaq_laneq_f16): New.
9726 (vcmla_rot90_f16): New.
9727 (vcmlaq_rot90_f16): New.
9728 (vcmla_rot90_lane_f16): New.
9729 (vcmla_rot90_laneq_f16): New.
9730 (vcmlaq_rot90_lane_f16): New.
9731 (vcmlaq_rot90_laneq_f16): New.
9732 (vcmla_rot180_f16): New.
9733 (vcmlaq_rot180_f16): New.
9734 (vcmla_rot180_lane_f16): New.
9735 (vcmla_rot180_laneq_f16): New.
9736 (vcmlaq_rot180_lane_f16): New.
9737 (vcmlaq_rot180_laneq_f16): New.
9738 (vcmla_rot270_f16): New.
9739 (vcmlaq_rot270_f16): New.
9740 (vcmla_rot270_lane_f16): New.
9741 (vcmla_rot270_laneq_f16): New.
9742 (vcmlaq_rot270_lane_f16): New.
9743 (vcmlaq_rot270_laneq_f16): New.
9744 (vcadd_rot90_f32): New.
9745 (vcaddq_rot90_f32): New.
9746 (vcadd_rot270_f32): New.
9747 (vcaddq_rot270_f32): New.
9750 (vcmla_lane_f32): New.
9751 (vcmla_laneq_f32): New.
9752 (vcmlaq_lane_f32): New.
9753 (vcmlaq_laneq_f32): New.
9754 (vcmla_rot90_f32): New.
9755 (vcmlaq_rot90_f32): New.
9756 (vcmla_rot90_lane_f32): New.
9757 (vcmla_rot90_laneq_f32): New.
9758 (vcmlaq_rot90_lane_f32): New.
9759 (vcmlaq_rot90_laneq_f32): New.
9760 (vcmla_rot180_f32): New.
9761 (vcmlaq_rot180_f32): New.
9762 (vcmla_rot180_lane_f32): New.
9763 (vcmla_rot180_laneq_f32): New.
9764 (vcmlaq_rot180_lane_f32): New.
9765 (vcmlaq_rot180_laneq_f32): New.
9766 (vcmla_rot270_f32): New.
9767 (vcmlaq_rot270_f32): New.
9768 (vcmla_rot270_lane_f32): New.
9769 (vcmla_rot270_laneq_f32): New.
9770 (vcmlaq_rot270_lane_f32): New.
9771 (vcmlaq_rot270_laneq_f32): New.
9772 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
9773 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
9774 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
9775 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
9776 vcmlaq_lane270): New.
9777 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
9778 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
9779 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
9780 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
9781 (arm_option_reconfigure_globals): Use them.
9782 * config/arm/iterators.md (VDF, VQ_HSF): New.
9783 (VCADD, VCMLA): New.
9784 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
9785 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
9787 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
9788 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
9790 2019-01-10 Tamar Christina <tamar.christina@arm.com>
9792 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
9793 Add qualifier_lane_pair_index.
9794 (emit-rtl.h): Include.
9795 (TYPES_QUADOP_LANE_PAIR): New.
9796 (aarch64_simd_expand_args): Use it.
9797 (aarch64_simd_expand_builtin): Likewise.
9798 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
9800 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
9801 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
9802 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
9803 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
9804 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
9805 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
9806 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
9807 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
9808 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
9809 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
9810 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
9811 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
9812 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
9813 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
9814 Add __ARM_FEATURE_COMPLEX.
9815 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
9816 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
9817 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
9818 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
9819 fcmlaq_lane270): New.
9820 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
9821 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
9822 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
9823 * config/aarch64/arm_neon.h:
9824 (vcadd_rot90_f16): New.
9825 (vcaddq_rot90_f16): New.
9826 (vcadd_rot270_f16): New.
9827 (vcaddq_rot270_f16): New.
9830 (vcmla_lane_f16): New.
9831 (vcmla_laneq_f16): New.
9832 (vcmlaq_lane_f16): New.
9833 (vcmlaq_rot90_lane_f16): New.
9834 (vcmla_rot90_laneq_f16): New.
9835 (vcmla_rot90_lane_f16): New.
9836 (vcmlaq_rot90_f16): New.
9837 (vcmla_rot90_f16): New.
9838 (vcmlaq_laneq_f16): New.
9839 (vcmla_rot180_laneq_f16): New.
9840 (vcmla_rot180_lane_f16): New.
9841 (vcmlaq_rot180_f16): New.
9842 (vcmla_rot180_f16): New.
9843 (vcmlaq_rot90_laneq_f16): New.
9844 (vcmlaq_rot270_laneq_f16): New.
9845 (vcmlaq_rot270_lane_f16): New.
9846 (vcmla_rot270_laneq_f16): New.
9847 (vcmlaq_rot270_f16): New.
9848 (vcmla_rot270_f16): New.
9849 (vcmlaq_rot180_laneq_f16): New.
9850 (vcmlaq_rot180_lane_f16): New.
9851 (vcmla_rot270_lane_f16): New.
9852 (vcadd_rot90_f32): New.
9853 (vcaddq_rot90_f32): New.
9854 (vcaddq_rot90_f64): New.
9855 (vcadd_rot270_f32): New.
9856 (vcaddq_rot270_f32): New.
9857 (vcaddq_rot270_f64): New.
9861 (vcmla_lane_f32): New.
9862 (vcmla_laneq_f32): New.
9863 (vcmlaq_lane_f32): New.
9864 (vcmlaq_laneq_f32): New.
9865 (vcmla_rot90_f32): New.
9866 (vcmlaq_rot90_f32): New.
9867 (vcmlaq_rot90_f64): New.
9868 (vcmla_rot90_lane_f32): New.
9869 (vcmla_rot90_laneq_f32): New.
9870 (vcmlaq_rot90_lane_f32): New.
9871 (vcmlaq_rot90_laneq_f32): New.
9872 (vcmla_rot180_f32): New.
9873 (vcmlaq_rot180_f32): New.
9874 (vcmlaq_rot180_f64): New.
9875 (vcmla_rot180_lane_f32): New.
9876 (vcmla_rot180_laneq_f32): New.
9877 (vcmlaq_rot180_lane_f32): New.
9878 (vcmlaq_rot180_laneq_f32): New.
9879 (vcmla_rot270_f32): New.
9880 (vcmlaq_rot270_f32): New.
9881 (vcmlaq_rot270_f64): New.
9882 (vcmla_rot270_lane_f32): New.
9883 (vcmla_rot270_laneq_f32): New.
9884 (vcmlaq_rot270_lane_f32): New.
9885 (vcmlaq_rot270_laneq_f32): New.
9886 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
9887 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
9888 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
9889 (FCADD, FCMLA): New.
9891 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
9893 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9897 * config/pa/pa.c: Change "can not" to "cannot".
9898 * gimple-ssa-evrp-analyze.c: Likewise.
9899 * ipa-icf.c: Likewise.
9900 * ipa-polymorphic-call.c: Likewise.
9901 * ipa-pure-const.c: Likewise.
9902 * lra-constraints.c: Likewise.
9903 * lra-remat.c: Likewise.
9904 * reload1.c: Likewise.
9905 * reorg.c: Likewise.
9906 * tree-ssa-uninit.c: Likewise.
9908 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
9912 * Makefile.in: Mechanically replace "can not" with "cannot".
9913 * alias.c: Likewise.
9914 * builtins.c: Likewise.
9915 * calls.c: Likewise.
9916 * cgraph.c: Likewise.
9917 * cgraph.h: Likewise.
9918 * cgraphclones.c: Likewise.
9919 * cgraphunit.c: Likewise.
9920 * combine-stack-adj.c: Likewise.
9921 * combine.c: Likewise.
9922 * common/config/i386/i386-common.c: Likewise.
9923 * config/aarch64/aarch64.c: Likewise.
9924 * config/alpha/sync.md: Likewise.
9925 * config/arc/arc.c: Likewise.
9926 * config/arc/predicates.md: Likewise.
9927 * config/arm/arm-c.c: Likewise.
9928 * config/arm/arm.c: Likewise.
9929 * config/arm/arm.h: Likewise.
9930 * config/arm/arm.md: Likewise.
9931 * config/arm/cortex-r4f.md: Likewise.
9932 * config/csky/csky.c: Likewise.
9933 * config/csky/csky.h: Likewise.
9934 * config/darwin-f.c: Likewise.
9935 * config/epiphany/epiphany.md: Likewise.
9936 * config/i386/i386.c: Likewise.
9937 * config/i386/sol2.h: Likewise.
9938 * config/m68k/m68k.c: Likewise.
9939 * config/mcore/mcore.h: Likewise.
9940 * config/microblaze/microblaze.md: Likewise.
9941 * config/mips/20kc.md: Likewise.
9942 * config/mips/sb1.md: Likewise.
9943 * config/nds32/nds32.c: Likewise.
9944 * config/nds32/predicates.md: Likewise.
9945 * config/pa/pa.c: Likewise.
9946 * config/rs6000/e300c2c3.md: Likewise.
9947 * config/rs6000/rs6000.c: Likewise.
9948 * config/s390/s390.h: Likewise.
9949 * config/sh/sh.c: Likewise.
9950 * config/sh/sh.md: Likewise.
9951 * config/spu/vmx2spu.h: Likewise.
9952 * cprop.c: Likewise.
9953 * dbxout.c: Likewise.
9954 * df-scan.c: Likewise.
9955 * doc/cfg.texi: Likewise.
9956 * doc/extend.texi: Likewise.
9957 * doc/fragments.texi: Likewise.
9958 * doc/gty.texi: Likewise.
9959 * doc/invoke.texi: Likewise.
9960 * doc/lto.texi: Likewise.
9961 * doc/md.texi: Likewise.
9962 * doc/objc.texi: Likewise.
9963 * doc/rtl.texi: Likewise.
9964 * doc/tm.texi: Likewise.
9966 * emit-rtl.c: Likewise.
9967 * emit-rtl.h: Likewise.
9968 * except.c: Likewise.
9969 * expmed.c: Likewise.
9971 * fold-const.c: Likewise.
9972 * genautomata.c: Likewise.
9973 * gimple-fold.c: Likewise.
9974 * hard-reg-set.h: Likewise.
9975 * ifcvt.c: Likewise.
9976 * ipa-comdats.c: Likewise.
9977 * ipa-cp.c: Likewise.
9978 * ipa-devirt.c: Likewise.
9979 * ipa-fnsummary.c: Likewise.
9980 * ipa-icf.c: Likewise.
9981 * ipa-inline-transform.c: Likewise.
9982 * ipa-inline.c: Likewise.
9983 * ipa-polymorphic-call.c: Likewise.
9984 * ipa-profile.c: Likewise.
9985 * ipa-prop.c: Likewise.
9986 * ipa-pure-const.c: Likewise.
9987 * ipa-reference.c: Likewise.
9988 * ipa-split.c: Likewise.
9989 * ipa-visibility.c: Likewise.
9991 * ira-build.c: Likewise.
9992 * ira-color.c: Likewise.
9993 * ira-conflicts.c: Likewise.
9994 * ira-costs.c: Likewise.
9995 * ira-int.h: Likewise.
9996 * ira-lives.c: Likewise.
9999 * loop-invariant.c: Likewise.
10000 * loop-unroll.c: Likewise.
10001 * lower-subreg.c: Likewise.
10002 * lra-assigns.c: Likewise.
10003 * lra-constraints.c: Likewise.
10004 * lra-eliminations.c: Likewise.
10005 * lra-lives.c: Likewise.
10006 * lra-remat.c: Likewise.
10007 * lra-spills.c: Likewise.
10009 * lto-cgraph.c: Likewise.
10010 * lto-streamer-out.c: Likewise.
10011 * postreload-gcse.c: Likewise.
10012 * predict.c: Likewise.
10013 * profile-count.h: Likewise.
10014 * profile.c: Likewise.
10015 * recog.c: Likewise.
10017 * reload.c: Likewise.
10018 * reload1.c: Likewise.
10019 * reorg.c: Likewise.
10020 * resource.c: Likewise.
10021 * rtl.def: Likewise.
10023 * rtlanal.c: Likewise.
10024 * sched-deps.c: Likewise.
10025 * sched-ebb.c: Likewise.
10026 * sched-rgn.c: Likewise.
10027 * sel-sched-ir.c: Likewise.
10028 * sel-sched.c: Likewise.
10029 * shrink-wrap.c: Likewise.
10030 * simplify-rtx.c: Likewise.
10031 * symtab.c: Likewise.
10032 * target.def: Likewise.
10033 * toplev.c: Likewise.
10034 * tree-call-cdce.c: Likewise.
10035 * tree-cfg.c: Likewise.
10036 * tree-complex.c: Likewise.
10037 * tree-core.h: Likewise.
10038 * tree-eh.c: Likewise.
10039 * tree-inline.c: Likewise.
10040 * tree-loop-distribution.c: Likewise.
10041 * tree-nrv.c: Likewise.
10042 * tree-profile.c: Likewise.
10043 * tree-sra.c: Likewise.
10044 * tree-ssa-alias.c: Likewise.
10045 * tree-ssa-dce.c: Likewise.
10046 * tree-ssa-dom.c: Likewise.
10047 * tree-ssa-forwprop.c: Likewise.
10048 * tree-ssa-loop-im.c: Likewise.
10049 * tree-ssa-loop-ivcanon.c: Likewise.
10050 * tree-ssa-loop-ivopts.c: Likewise.
10051 * tree-ssa-loop-niter.c: Likewise.
10052 * tree-ssa-phionlycprop.c: Likewise.
10053 * tree-ssa-phiopt.c: Likewise.
10054 * tree-ssa-propagate.c: Likewise.
10055 * tree-ssa-threadedge.c: Likewise.
10056 * tree-ssa-threadupdate.c: Likewise.
10057 * tree-ssa-uninit.c: Likewise.
10058 * tree-ssanames.c: Likewise.
10059 * tree-streamer-out.c: Likewise.
10060 * tree.c: Likewise.
10061 * tree.h: Likewise.
10062 * vr-values.c: Likewise.
10064 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
10066 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
10067 (ix86_split_xorsign): Ditto.
10068 * config/i386/i386.c (ix86_expand_xorsign): New function.
10069 (ix86_split_xorsign): Ditto.
10070 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
10071 (xorsign<mode>3): New expander.
10072 (xorsign<mode>3_1): New insn_and_split pattern.
10073 * config/i386/sse.md (xorsign<mode>3): New expander.
10075 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10077 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
10078 (*tablejump_sp64): Likewise.
10079 (*tablejump<P:mode>): ...this.
10080 (*call_address_sp32): Merge into...
10081 (*call_address_sp64): Likewise.
10082 (*call_address<P:mode>): ...this.
10083 (*call_symbolic_sp32): Merge into...
10084 (*call_symbolic_sp64): Likewise.
10085 (*call_symbolic<P:mode>): ...this.
10086 (call_value): Remove constraint and add predicate.
10087 (*call_value_address_sp32): Merge into...
10088 (*call_value_address_sp64): Likewise.
10089 (*call_value_address<P:mode>): ...this.
10090 (*call_value_symbolic_sp32): Merge into...
10091 (*call_value_symbolic_sp64): Likewise.
10092 (*call_value_symbolic<P:mode>): ...this.
10093 (*sibcall_symbolic_sp32): Merge into...
10094 (*sibcall_symbolic_sp64): Likewise.
10095 (*sibcall_symbolic<P:mode>): ...this.
10096 (sibcall_value): Remove constraint and add predicate.
10097 (*sibcall_value_symbolic_sp32): Merge into...
10098 (*sibcall_value_symbolic_sp64): Likewise.
10099 (*sibcall_value_symbolic<P:mode>): ...this.
10100 (window_save): Minor tweak.
10101 (*branch_sp32): Merge into...
10102 (*branch_sp64): Likewise.
10103 (*branch<P:mode>): ...this.
10105 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10106 James Clarke <jrtc27@jrtc27.com>
10109 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
10110 consistently in TLS address generation and adjust code to the renaming
10111 of patterns. Mark calls to __tls_get_addr as const.
10112 * config/sparc/sparc.md (tgd_hi22): Turn into...
10113 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
10114 (tgd_lo10): Turn into...
10115 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
10116 (tgd_add32): Merge into...
10117 (tgd_add64): Likewise.
10118 (tgd_add<P:mode>): ...this and use Pmode throughout.
10119 (tldm_hi22): Turn into...
10120 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
10121 (tldm_lo10): Turn into...
10122 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
10123 (tldm_add32): Merge into...
10124 (tldm_add64): Likewise.
10125 (tldm_add<P:mode>): ...this and use Pmode throughout.
10126 (tldm_call32): Merge into...
10127 (tldm_call64): Likewise.
10128 (tldm_call<P:mode>): ...this and use Pmode throughout.
10129 (tldo_hix22): Turn into...
10130 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
10131 (tldo_lox10): Turn into...
10132 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
10133 (tldo_add32): Merge into...
10134 (tldo_add64): Likewise.
10135 (tldo_add<P:mode>): ...this and use Pmode throughout.
10136 (tie_hi22): Turn into...
10137 (tie_hi22<P:mode>): ...this and use Pmode throughout.
10138 (tie_lo10): Turn into...
10139 (tie_lo10<P:mode>): ...this and use Pmode throughout.
10140 (tie_ld64): Use DImode throughout.
10141 (tie_add32): Merge into...
10142 (tie_add64): Likewise.
10143 (tie_add<P:mode>): ...this and use Pmode throughout.
10144 (tle_hix22_sp32): Merge into...
10145 (tle_hix22_sp64): Likewise.
10146 (tle_hix22<P:mode>): ...this and use Pmode throughout.
10147 (tle_lox22_sp32): Merge into...
10148 (tle_lox22_sp64): Likewise.
10149 (tle_lox22<P:mode>): ...this and use Pmode throughout.
10150 (*tldo_ldub_sp32): Merge into...
10151 (*tldo_ldub_sp64): Likewise.
10152 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
10153 (*tldo_ldub1_sp32): Merge into...
10154 (*tldo_ldub1_sp64): Likewise.
10155 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
10156 (*tldo_ldub2_sp32): Merge into...
10157 (*tldo_ldub2_sp64): Likewise.
10158 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
10159 (*tldo_ldsb1_sp32): Merge into...
10160 (*tldo_ldsb1_sp64): Likewise.
10161 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
10162 (*tldo_ldsb2_sp32): Merge into...
10163 (*tldo_ldsb2_sp64): Likewise.
10164 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
10165 (*tldo_ldub3_sp64): Use DImode throughout.
10166 (*tldo_ldsb3_sp64): Likewise.
10167 (*tldo_lduh_sp32): Merge into...
10168 (*tldo_lduh_sp64): Likewise.
10169 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
10170 (*tldo_lduh1_sp32): Merge into...
10171 (*tldo_lduh1_sp64): Likewise.
10172 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
10173 (*tldo_ldsh1_sp32): Merge into...
10174 (*tldo_ldsh1_sp64): Likewise.
10175 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
10176 (*tldo_lduh2_sp64): Use DImode throughout.
10177 (*tldo_ldsh2_sp64): Likewise.
10178 (*tldo_lduw_sp32): Merge into...
10179 (*tldo_lduw_sp64): Likewise.
10180 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
10181 (*tldo_lduw1_sp64): Use DImode throughout.
10182 (*tldo_ldsw1_sp64): Likewise.
10183 (*tldo_ldx_sp64): Likewise.
10184 (*tldo_stb_sp32): Merge into...
10185 (*tldo_stb_sp64): Likewise.
10186 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
10187 (*tldo_sth_sp32): Merge into...
10188 (*tldo_sth_sp64): Likewise.
10189 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
10190 (*tldo_stw_sp32): Merge into...
10191 (*tldo_stw_sp64): Likewise.
10192 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
10193 (*tldo_stx_sp64): Use DImode throughout.
10195 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10197 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
10198 check configure option to set BTI and Return Address Signing.
10199 * configure.ac: Add --enable-standard-branch-protection and
10200 --disable-standard-branch-protection.
10201 * configure: Regenerated.
10202 * doc/install.texi: Document the same.
10204 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10205 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10207 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
10208 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
10209 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
10211 * config/aarch64/aarch64-bti-insert.c: New file.
10212 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
10214 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
10216 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
10217 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
10218 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
10219 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
10221 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10223 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
10224 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
10225 Disable bti for -mbranch-protection=none.
10226 (aarch64_handle_standard_branch_protection): Enable bti for
10227 -mbranch-protection=standard.
10228 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
10229 -mbranch-protection.
10230 (aarch64_bti_enabled): Check if bti is enabled.
10231 * config/aarch64/aarch64.opt: Declare target variable.
10232 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
10234 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10236 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
10237 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
10238 (aarch64_expand_epilogue): Likewise.
10239 (aarch64_output_mi_thunk): Likewise
10240 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
10241 TAILCALL_ADDR_REGS to x16 and x17.
10242 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
10244 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10246 * config/aarch64/aarch64-option-extensions.def: Define
10247 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
10248 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
10249 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
10250 (AARCH64_FL_PREDRES): New.
10251 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
10252 AARCH64_FL_PREDRES by default.
10253 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
10255 2018-01-09 Sudakshina Das <sudi.das@arm.com>
10257 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
10259 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
10260 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
10261 * doc/invoke.texi: Document ARMv8.5-A.
10263 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10265 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
10266 (xorsign<mode>3): Likewise.
10268 2019-01-09 Jelinek <jakub@redhat.com>
10270 PR middle-end/88758
10271 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
10272 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
10274 PR rtl-optimization/88331
10275 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
10276 not currently_expanding_to_rtl.
10278 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
10280 * doc/invoke.texi (-Os): Remove trailing spaces.
10281 (-finline-functions): Remove reference to -O2.
10283 2019-01-08 Jakub Jelinek <jakub@redhat.com>
10285 PR rtl-optimization/79593
10286 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
10288 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
10289 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
10291 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
10294 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
10298 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
10299 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
10301 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
10304 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
10305 ix86_avx_u128_mode_entry.
10307 2019-01-08 Martin Liska <mliska@suse.cz>
10309 PR tree-optimization/88753
10310 * tree-switch-conversion.c (switch_conversion::build_one_array):
10311 Come up with local variable constructor. Convert first to
10312 type of constructor values.
10314 2019-01-08 Richard Biener <rguenther@suse.de>
10316 PR tree-optimization/86554
10317 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
10318 rpo_avail): Move earlier.
10319 (visit_nary_op): When value-numbering to expressions
10320 with different overflow behavior make sure there's an
10321 available expression on the path.
10323 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
10325 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
10326 aarch64_parse_branch_protection,
10327 struct aarch64_branch_protect_type,
10328 aarch64_handle_no_branch_protection,
10329 aarch64_handle_standard_branch_protection,
10330 aarch64_validate_mbranch_protection,
10331 aarch64_handle_pac_ret_protection,
10332 aarch64_handle_attr_branch_protection,
10333 accepted_branch_protection_string,
10334 aarch64_pac_ret_subtypes,
10335 aarch64_branch_protect_types,
10336 aarch64_handle_pac_ret_leaf): Define.
10337 (aarch64_override_options_after_change_1, aarch64_override_options):
10338 Add check for accepted_branch_protection_string.
10339 (aarch64_option_save): Save accepted_branch_protection_string.
10340 (aarch64_option_restore): Save accepted_branch_protection_string.
10341 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
10342 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
10343 msign-return-address.
10344 * doc/invoke.texi: Add mbranch-protection.
10346 2019-01-08 Alan Modra <amodra@gmail.com>
10349 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
10350 Delete "unknownp" parameter. Adjust callers. Handle
10351 CONST_INT, PLUS, MINUS, and MULT.
10352 (attr_value_aligned): Renamed from or_attr_value.
10353 (min_attr_value): Return INT_MIN for unhandled rtl case..
10354 (min_fn): ..and translate to INT_MAX here.
10355 (write_length_unit_log): Modify to cope without "unknown".
10356 (write_attr_value): Handle IF_THEN_ELSE.
10358 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10360 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
10361 optimization for masked stores.
10363 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10365 PR middle-end/88567
10366 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
10367 output vector directly to duplicate_and_interleave instead of
10368 going through a temporary. Postpone insertion of ctor_seq to
10369 the end of the loop.
10371 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
10374 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
10375 unsigned_p. Handle signed and unsigned overflow correction as
10377 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
10379 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
10381 (add<mode>3_compareV_imm): Make this callable for expanding.
10382 (subv<GPI:mode>4): Use register_operand for operand 1. Use
10383 aarch64_plus_operand for operand 2.
10384 (subv<GPI:mode>_insn): New insn pattern.
10385 (subv<GPI:mode>_imm): Likewise.
10386 (negv<GPI:mode>3): New expand pattern.
10387 (negv<GPI:mode>_insn): New insn pattern.
10388 (negv<GPI:mode>_cmp_only): Likewise.
10389 (cmpv<GPI:mode>_insn): Likewise.
10390 (subvti4): Use register_operand for operand 1. Update call to
10391 aarch64_expand_subvti.
10392 (usubvti4): Likewise.
10393 (negvti3): New expand pattern.
10394 (negdi_carryout): New insn pattern.
10395 (negvdi_carryinV): New insn pattern.
10396 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
10397 version the named version.
10398 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
10400 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
10402 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
10404 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
10405 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
10406 (sub<mode>3_carryinCV): Delete.
10407 (sub<GPI:mode>3_carryinV): New expand pattern.
10408 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
10410 2019-01-07 Richard Biener <rguenther@suse.de>
10412 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
10413 of tree_operand_hash.
10415 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10417 PR tree-optimization/88598
10418 * tree.h (single_nonzero_element): Declare.
10419 * tree.c (single_nonzero_element): New function.
10420 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
10421 if I is the only nonzero element of CST.
10423 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
10425 PR tree-optimization/88598
10426 * tree.h (initializer_each_zero_or_onep): Declare.
10427 * tree.c (initializer_each_zero_or_onep): New function.
10428 (signed_or_unsigned_type_for): Handle float types too.
10429 (unsigned_type_for, signed_type_for): Update comments accordingly.
10430 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
10431 x & { 0 or -1, 0 or -1, ... }.
10433 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
10435 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
10436 with x86_64-pc-linux-gnu.
10438 2019-01-07 Tom de Vries <tdevries@suse.de>
10441 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
10443 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
10446 2019-01-07 Jakub Jelinek <jakub@redhat.com>
10448 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
10449 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
10450 TARGET_AVX512F as condition.
10453 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
10454 const_not_ok_for_debug_p target hook.
10455 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
10456 on UNSPEC and subexpressions thereof if all subexpressions of the
10457 UNSPEC are CONSTANT_P.
10459 PR tree-optimization/88676
10460 * tree-ssa-phiopt.c (two_value_replacement): New function.
10461 (tree_ssa_phiopt_worker): Call it.
10464 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
10465 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
10468 * tree-vect-generic.c: Include insn-config.h and recog.h.
10469 (expand_vector_piecewise): Add defaulted ret_type argument,
10470 if non-NULL, use that in preference to type for the result type.
10471 (expand_vector_parallel): Formatting fix.
10472 (do_vec_conversion, do_vec_narrowing_conversion,
10473 expand_vector_conversion): New functions.
10474 (expand_vector_operations_1): Call expand_vector_conversion
10475 for VEC_CONVERT ifn calls.
10476 * internal-fn.def (VEC_CONVERT): New internal function.
10477 * internal-fn.c (expand_VEC_CONVERT): New function.
10478 * fold-const-call.c (fold_const_vec_convert): New function.
10479 (fold_const_call): Use it for CFN_VEC_CONVERT.
10480 * doc/extend.texi (__builtin_convertvector): Document.
10482 2019-01-07 Tom de Vries <tdevries@suse.de>
10484 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
10485 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
10486 vector_red_partition, vector_red_sym): New global variables.
10487 (nvptx_option_override): Initialize vector_red_sym.
10488 (nvptx_declare_function_name): Restore red_partition register.
10489 (nvptx_file_end): Emit code to declare the vector reduction variables.
10490 (nvptx_output_red_partition): New function.
10491 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
10492 large vector reductions.
10493 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
10494 (nvptx_init_builtins): Add VECTOR_ADDR.
10495 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
10496 Handle nvptx_expand_shared_addr.
10497 (nvptx_get_shared_red_addr): Add vector argument and handle large
10499 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
10501 (nvptx_goacc_reduction_init): Likewise.
10502 (nvptx_goacc_reduction_fini): Likewise.
10503 (nvptx_goacc_reduction_teardown): Likewise.
10504 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
10505 init,fini,teardown}.
10506 (nvptx_init_axis_predicate): Initialize vector_red_partition.
10507 (nvptx_set_current_function): Init vector_red_partition.
10508 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
10509 (nvptx_red_partition): New insn.
10510 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
10512 2019-01-07 Tom de Vries <tdevries@suse.de>
10515 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
10518 2019-01-07 Tom de Vries <tdevries@suse.de>
10520 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
10521 (nvptx_option_override): Init oacc_bcast_partition.
10522 (nvptx_init_oacc_workers): New function.
10523 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
10524 (nvptx_needs_shared_bcast): New function.
10525 (nvptx_find_par): Generalize to enable vectors to use shared-memory
10526 to propagate state.
10527 (nvptx_shared_propagate): Initialize vector bcast partition and
10528 synchronization state.
10529 (nvptx_single): Generalize to enable vectors to use shared-memory
10530 to propagate state.
10531 (nvptx_process_pars): Likewise.
10532 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
10533 * config/nvptx/nvptx.h (struct machine_function): Add
10534 bcast_partition and sync_bar members.
10536 2019-01-07 Tom de Vries <tdevries@suse.de>
10538 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
10539 (nvptx_apply_dim_limits): New function.
10540 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
10543 2019-01-07 Tom de Vries <tdevries@suse.de>
10545 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
10546 as late as possible.
10548 2019-01-07 Tom de Vries <tdevries@suse.de>
10550 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
10551 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
10552 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
10553 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
10554 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
10556 2019-01-07 Tom de Vries <tdevries@suse.de>
10558 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
10560 2019-01-07 Tom de Vries <tdevries@suse.de>
10562 * omp-offload.c (oacc_get_min_dim): New function.
10563 * omp-offload.h (oacc_get_min_dim): Declare.
10565 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
10568 * config/i386/i386.c (function_value_ms_64): Return small sturct in
10569 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
10571 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10575 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
10577 * ipa-inline.c (edge_badness): Use inlined_time instead of
10578 inline_summaries->get.
10580 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10582 * opts.c (enable_fdo_optimizations): Enable
10583 version-loops-for-strides, loop-interchange, unrol-and-jam
10584 and tree-loop-distribution.
10585 * invoke.texi: Document newly enabled options.
10587 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10589 * doc/invoke.texi (max-inline-insns-small): New parameters.
10590 * ipa-inline.c (want_early_inline_function_p): simplify.
10591 (want_inline_small_function_p): Fix pasto from previous patch;
10592 use max-inline-insns-small bound.
10593 * params.def (max-inline-insns-small): New param.
10594 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
10595 variables correctly.
10597 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10599 * doc/invoke.texi: Document max-inline-insns-size,
10600 uninlined-function-insns, uninlined-function-time,
10601 uninlined-thunk-insns and uninlined-thunk-time.
10602 * params.def: Add max-inline-insns-size,
10603 uninlined-function-insns, uninlined-function-time,
10604 uninlined-thunk-insns and uninlined-thunk-time.
10605 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
10607 * ipa-inline.c (can_inline_edge_by_limits_p,
10608 want_inline_small_function_p): Use new parameters.
10610 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
10612 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
10614 2019-01-05 Jakub Jelinek <jakub@redhat.com>
10616 PR middle-end/82564
10618 * expr.c (expand_assignment): For calls returning VLA structures
10619 if to_rtx is not a MEM, force it into a stack temporary.
10622 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
10623 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
10624 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
10625 subexpressions of both operands.
10626 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
10627 subrtxes are CONSTANT_P.
10628 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
10629 2018-11-09 changes.
10631 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
10633 * params.def (hot-bb-count-ws-permille): Set to 990.
10635 2019-01-04 Martin Sebor <msebor@redhat.com>
10638 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
10641 2019-01-04 Martin Sebor <msebor@redhat.com>
10644 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
10646 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10648 * gdbinit.in: Turn off pagination for the skip commands, restore
10649 it to previous state afterwards.
10651 2019-01-04 Jakub Jelinek <jakub@redhat.com>
10654 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
10655 of GET_MODE (opN) as modes of the libcall arguments.
10657 2019-01-04 Jan Beulich <jbeulich@suse.com>
10659 * config/i386/sse.md
10660 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
10661 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
10662 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10663 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
10664 avx512f_vmcmp<mode>3<round_saeonly_name>,
10665 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
10666 avx512f_maskcmp<mode>3,
10667 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10668 <avx512>_cvt<ssemodesuffix>2mask<mode>,
10669 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10670 *<avx512>_cvtmask2<ssemodesuffix><mode>,
10671 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10672 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
10673 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10674 <avx512>_gt<mode>3<mask_scalar_merge_name>,
10675 <avx512>_testm<mode>3<mask_scalar_merge_name>,
10676 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
10677 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
10678 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
10679 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
10680 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
10681 avx512cd_maskb_vec_dup<mode>,
10682 avx512cd_maskw_vec_dup<mode>,
10683 avx512dq_fpclass<mode><mask_scalar_merge_name>,
10684 avx512dq_vmfpclass<mode>,
10685 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
10688 2019-01-03 Martin Sebor <msebor@redhat.com>
10690 PR tree-optimization/88659
10691 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
10693 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
10695 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
10696 unaligned vsx and avoid lxvd2x/stxvd2x.
10697 (gen_lvx_v4si_move): New function.
10699 2019-01-03 Tom de Vries <tdevries@suse.de>
10701 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
10702 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
10704 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
10706 2019-01-03 Tom de Vries <tdevries@suse.de>
10708 * config/nvptx/nvptx.c (struct offload_attrs): New.
10709 (populate_offload_attrs): New function. Factor mask extraction out of
10710 nvptx_reorg. Add extraction of dimensions.
10711 (nvptx_reorg): Use populate_offload_attrs.
10713 2019-01-03 Tom de Vries <tdevries@suse.de>
10715 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
10716 cases for oacc_min_dims_p and routine_p. Add asserts for
10717 oacc_default_dims_p and offload_region_p.
10719 2019-01-03 Tom de Vries <tdevries@suse.de>
10721 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
10722 factored out of ...
10723 (nvptx_goacc_validate_dims): ... here.
10725 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10727 PR tree-optimization/85574
10728 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
10730 (struct ssa_equip_hash_traits): Declare.
10731 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
10733 2019-01-03 Jakub Jelinek <jakub@redhat.com>
10736 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
10737 change it to qualified_type.
10739 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
10741 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
10742 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
10744 2019-01-02 Martin Sebor <msebor@redhat.com>
10745 Jeff Law <law@redhat.com>
10747 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
10748 (get_range_strlen_tree): Update appropriately.
10750 * gimple-fold.h (get_range_strlen): Drop unused last argument.
10752 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
10753 rather than set_range_info.
10754 * tree-ssa-strlen.c (set_strlen_range): Extracted from
10755 maybe_set_strlen_range. Handle potentially boundary crossing
10756 cases more conservatively.
10757 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
10758 Call set_strlen_range.
10759 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
10761 PR middle-end/88663
10762 * gimple-fold.c (get_range_strlen): Update prototype to no longer
10763 need the flexp argument.
10764 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
10765 from calls to get_range_strlen. Update comments. Just update
10766 VAL for an unterminated const char array and let the reset of the
10767 code handle it normally. No longer try to set *flexp. Adjust
10769 (get_range_strlen): Update for the new get_range_strlen API.
10770 (get_maxval_strlen): Similarly.
10771 (gimple_fold_builtin_strlen): Handle update meaning of return value
10772 from get_range_strlen.
10773 * gimple-ssa-sprintf.c (get_string_length): Update for the new
10774 get_range_strlen API.
10776 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
10779 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
10780 false at WPA time when body was removed.
10782 2019-01-02 Martin Liska <mliska@suse.cz>
10784 PR tree-optimization/88650
10785 * predict.c (set_even_probabilities): Calculate probability
10786 remainer only when really used.
10788 2019-01-02 Richard Biener <rguenther@suse.de>
10790 PR middle-end/88651
10791 * tree-data-ref.c (analyze_subscript_affine_affine): Use
10792 widest_ints when mangling max_stmt_execution results.
10794 2019-01-02 Richard Biener <rguenther@suse.de>
10796 PR tree-optimization/88621
10797 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
10798 bitfields when canoncalizing.
10800 2019-01-02 Richard Biener <rguenther@suse.de>
10803 * config/i386/x86-tune-costs.h (intel_cost): Adjust
10804 cost of cheap SSE instruction.
10806 2019-01-02 Richard Biener <rguenther@suse.de>
10809 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
10810 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
10812 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
10813 set after UIDs before splitting them.
10815 2019-01-01 Martin Sebor <msebor@redhat.com>
10816 Jeff Law <law@redhat.com>
10818 * gimple-fold.c (get_range_strlen_tree): Record if the computed
10819 length is optimistic. If it is, then arrange to compute the
10820 conservative length as well.
10822 * gimple-fold.h (get_range_strlen): Update prototype.
10823 * builtins.c (check_access): Update call to get_range_strlen to use
10824 c_strlen_data pointer. Change various variable accesses to instead
10825 pull data from the c_strlen_data structure.
10826 (check_strncat_sizes, expand_builtin_strncat): Likewise.
10827 * calls.c (maybe_warn_nonstring_arg): Likewise.
10828 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
10829 minimum length if maximum lengh is unknown.
10830 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
10831 that used c_strlen, it's no longer needed. Restructure slightly.
10832 (format_string): Set unlikely range appropriately.
10833 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
10835 (get_range_strlen): Accept c_strlen_data pointer for external
10836 call sites as well. Pass through to call to internal get_range_strlen.
10837 Adjust minlen, maxlen and maxbound as needed.
10838 (get_maxval_strlen): Update comments.
10839 (gimple_fold_builtin_strlen): Update call to get_range_strlen
10840 to use c_strlen_data pointer. Change variable accesses to instead
10841 use c_strlen_data data members.
10843 * gimple-fold.c (get_range_strlen): Update prototype.
10844 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
10845 local variables. Use pdata to return information to caller.
10846 Update calls to get_range_strlen. Update pdata->maxbound.
10847 (get_range_strlen -- static version): Similarly.
10848 (get_range_strlen -- extern version): Update for internal
10849 get_range_strlen API change. Convert to external data format.
10850 (get_maxval_strlen): Similarly.
10852 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
10854 * coverage.c (get_coverage_counts): Use current_function_decl.
10855 * profile.c (read_thunk_profile): New function.
10856 (branch_prob): Add THUNK parameter.
10857 * tree-profile.c (tree_profiling): Handle thunks.
10858 * value-prof.c (init_node_map): Handle thunks.
10859 * value-prof.h (branch_prob): Upate prototype.
10860 (read_thunk_profile): Declare.
10862 2019-01-01 Jakub Jelinek <jakub@redhat.com>
10864 Update copyright years.
10866 * gcc.c (process_command): Update copyright notice dates.
10867 * gcov-dump.c (print_version): Ditto.
10868 * gcov.c (print_version): Ditto.
10869 * gcov-tool.c (print_version): Ditto.
10870 * gengtype.c (create_file): Ditto.
10871 * doc/cpp.texi: Bump @copying's copyright year.
10872 * doc/cppinternals.texi: Ditto.
10873 * doc/gcc.texi: Ditto.
10874 * doc/gccint.texi: Ditto.
10875 * doc/gcov.texi: Ditto.
10876 * doc/install.texi: Ditto.
10877 * doc/invoke.texi: Ditto.
10879 Copyright (C) 2019 Free Software Foundation, Inc.
10881 Copying and distribution of this file, with or without modification,
10882 are permitted in any medium without royalty provided the copyright
10883 notice and this notice are preserved.