1 2019-11-19 Martin Liska <mliska@suse.cz>
3 * toplev.c (general_init): Move the call...
4 (toplev::main): ... here as we need init_options_struct
7 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
10 * config/aarch64/aarch64.c (generic_vector_cost): Adjust
13 2019-11-19 Wilco Dijkstra <wdijkstr@arm.com>
15 * config/arm/arm-cpus.in (armv7): Set tune to Cortex-A53.
19 2019-11-19 Richard Biener <rguenther@suse.de>
21 PR tree-optimization/92581
22 * tree-vect-loop.c (vect_create_epilog_for_reduction): For
23 condition reduction chains gather all conditions involved
24 for computing the index reduction vector.
26 2019-11-19 Dennis Zhang <dennis.zhang@arm.com>
28 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
29 AARCH64_MEMTAG_BUILTIN_START, AARCH64_MEMTAG_BUILTIN_IRG,
30 AARCH64_MEMTAG_BUILTIN_GMI, AARCH64_MEMTAG_BUILTIN_SUBP,
31 AARCH64_MEMTAG_BUILTIN_INC_TAG, AARCH64_MEMTAG_BUILTIN_SET_TAG,
32 AARCH64_MEMTAG_BUILTIN_GET_TAG, and AARCH64_MEMTAG_BUILTIN_END.
33 (aarch64_init_memtag_builtins): New.
34 (AARCH64_INIT_MEMTAG_BUILTINS_DECL): New macro.
35 (aarch64_general_init_builtins): Call aarch64_init_memtag_builtins.
36 (aarch64_expand_builtin_memtag): New.
37 (aarch64_general_expand_builtin): Call aarch64_expand_builtin_memtag.
38 (AARCH64_BUILTIN_SUBCODE): New macro.
39 (aarch64_resolve_overloaded_memtag): New.
40 (aarch64_resolve_overloaded_builtin_general): New. Call
41 aarch64_resolve_overloaded_memtag to handle overloaded MTE builtins.
42 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
43 __ARM_FEATURE_MEMORY_TAGGING when enabled.
44 (aarch64_resolve_overloaded_builtin): Call
45 aarch64_resolve_overloaded_builtin_general.
46 * config/aarch64/aarch64-protos.h
47 (aarch64_resolve_overloaded_builtin_general): New declaration.
48 * config/aarch64/aarch64.h (AARCH64_ISA_MEMTAG): New macro.
49 (TARGET_MEMTAG): Likewise.
50 * config/aarch64/aarch64.md (UNSPEC_GEN_TAG): New unspec.
51 (UNSPEC_GEN_TAG_RND, and UNSPEC_TAG_SPACE): Likewise.
52 (irg, gmi, subp, addg, ldg, stg): New instructions.
53 * config/aarch64/arm_acle.h (__arm_mte_create_random_tag): New macro.
54 (__arm_mte_exclude_tag, __arm_mte_ptrdiff): Likewise.
55 (__arm_mte_increment_tag, __arm_mte_set_tag): Likewise.
56 (__arm_mte_get_tag): Likewise.
57 * config/aarch64/predicates.md (aarch64_memtag_tag_offset): New.
58 (aarch64_granule16_uimm6, aarch64_granule16_simm9): New.
59 * config/arm/types.md (memtag): New.
60 * doc/invoke.texi (-memtag): Update description.
62 2019-11-19 Richard Henderson <richard.henderson@linaro.org>
64 * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
65 to define __GCC_ASM_FLAG_OUTPUTS__.
66 * config/arm/arm.c (thumb1_md_asm_adjust): New function.
67 (arm_option_params_internal): Swap out targetm.md_asm_adjust
68 depending on TARGET_THUMB1.
69 * doc/extend.texi (FlagOutputOperands): Document thumb1 restriction.
71 2019-11-19 Jakub Jelinek <jakub@redhat.com>
74 * config/i386/i386.md (peephole2 for *swap<mode>): New peephole2.
77 * internal-fn.c (expand_mul_overflow): For s1 * s2 -> ur, if one
78 operand is negative and one non-negative, compare the non-negative
79 one against 0 rather than comparing s1 & s2 against 0. Otherwise,
80 don't compare (s1 & s2) == 0, but compare separately both s1 == 0
81 and s2 == 0, unless one of them is known to be negative. Remove
82 tem2 variable, use tem where tem2 has been used before.
84 2019-11-19 Eric Botcazou <ebotcazou@adacore.com>
86 * doc/invoke.texi (-gno-internal-reset-location-views): Fix typo.
88 2019-11-19 Jakub Jelinek <jakub@redhat.com>
90 PR tree-optimization/92557
91 * omp-low.c (omp_clause_aligned_alignment): Punt if TYPE_MODE is not
92 vmode rather than asserting it always is.
94 2019-11-19 Richard Biener <rguenther@suse.de>
96 PR tree-optimization/92554
97 * tree-vect-loop.c (vect_create_epilog_for_reduction): Look
98 for the actual condition stmt and deal with sign-changes.
100 2019-11-19 Richard Biener <rguenther@suse.de>
102 PR tree-optimization/92555
103 * tree-vect-loop.c (vect_update_vf_for_slp): Also scan PHIs
106 2019-11-19 Martin Liska <mliska@suse.cz>
109 * config/riscv/riscv.c (riscv_address_insns): Initialize
110 addr in order to remove boostrap -Wmaybe-uninitialized
113 2019-11-18 Martin Sebor <msebor@redhat.com>
115 PR tree-optimization/92493
116 * gimple-ssa-sprintf.c (get_origin_and_offset): Remove spurious
119 2019-11-18 Giuliano Belinassi <giuliano.belinassi@usp.br>
121 * cfgloop.c (get_loop_body_in_custom_order): New.
122 * cfgloop.h (get_loop_body_in_custom_order): New prototype.
123 * tree-loop-distribution.c (class loop_distribution): New.
124 (bb_top_order_cmp): Remove.
125 (bb_top_order_cmp_r): New.
126 (create_rdg_vertices): Move into class loop_distribution.
127 (stmts_from_loop): Same as above.
128 (update_for_merge): Same as above.
129 (partition_merge_into): Same as above.
130 (get_data_dependence): Same as above.
131 (data_dep_in_cycle_p): Same as above.
132 (update_type_for_merge): Same as above.
133 (build_rdg_partition_for-vertex): Same as above.
134 (classify_builtin_ldst): Same as above.
135 (classify_partition): Same as above.
136 (share_memory_accesses): Same as above.
137 (rdg_build_partitions): Same as above.
138 (pg_add_dependence_edges): Same as above.
139 (build_partition_graph): Same as above.
140 (merge_dep_scc_partitions): Same as above.
141 (break_alias_scc_partitions): Same as above.
142 (finalize_partitions): Same as above.
143 (distribute_loop): Same as above.
144 (bb_top_order_init): New method
145 (bb_top_order_destroy): New method.
146 (get_bb_top_order_index_size): New method.
147 (get_bb_top_order_index_index): New method.
148 (get_bb_top_order_index_index): New method.
149 (loop_distribution::execute): New method.
150 (pass_loop_distribution::execute): Instantiate loop_distribution.
152 2019-11-18 Jan Hubicka <jh@suse.cz>
155 * ipa-inline.c (inline_small_functions): Add new edges after reseting
157 * ipa-inline-analysis.c (do_estimate_edge_time): Fix sanity check.
159 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
161 * doc/sourcebuild.texi (vect_check_ptrs): Document.
162 * optabs.def (check_raw_ptrs_optab, check_war_ptrs_optab): New optabs.
163 * doc/md.texi: Document them.
164 * internal-fn.def (IFN_CHECK_RAW_PTRS, IFN_CHECK_WAR_PTRS): New
166 * internal-fn.h (internal_check_ptrs_fn_supported_p): Declare.
167 * internal-fn.c (check_ptrs_direct): New macro.
168 (expand_check_ptrs_optab_fn): Likewise.
169 (direct_check_ptrs_optab_supported_p): Likewise.
170 (internal_check_ptrs_fn_supported_p): New fuction.
171 * tree-data-ref.c: Include internal-fn.h.
172 (create_ifn_alias_checks): New function.
173 (create_intersect_range_checks): Use it.
174 * config/aarch64/iterators.md (SVE2_WHILE_PTR): New int iterator.
175 (optab, cmp_op): Handle it.
176 (raw_war, unspec): New int attributes.
177 * config/aarch64/aarch64.md (UNSPEC_WHILERW, UNSPEC_WHILE_WR): New
179 * config/aarch64/predicates.md (aarch64_bytes_per_sve_vector_operand):
181 * config/aarch64/aarch64-sve2.md (check_<raw_war>_ptrs<mode>): New
183 (@aarch64_sve2_while<cmp_op><GPI:mode><PRED_ALL:mode>_ptest): New
186 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
188 * tree.c (build_vector_from_ctor): Directly return a zero vector for
191 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
193 * cse.c (cse_insn): Delete no-op register moves too.
194 * simplify-rtx.c (comparison_to_mask): Handle unsigned comparisons.
195 Take a second comparison to control the value for NE.
196 (mask_to_comparison): Handle unsigned comparisons.
197 (simplify_logical_relational_operation): Likewise. Update call
198 to comparison_to_mask. Handle AND if !HONOR_NANs.
199 (simplify_binary_operation_1): Call the above for AND too.
201 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
203 * fold-const.c (native_encode_vector): Turn into a wrapper function,
204 splitting the main code out into...
205 (native_encode_vector_part): ...this new function.
206 (native_decode_vector_tree): New function.
207 (fold_view_convert_vector_encoding): Likewise.
208 (fold_view_convert_expr): Use it for converting VECTOR_CSTs
211 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
213 * tree-data-ref.c (create_intersect_range_checks_index): If the
214 alias pair describes simple WAW and WAR dependencies, just check
215 whether the first B access overlaps later A accesses.
216 (create_waw_or_war_checks): New function that performs the same
217 optimization on addresses.
218 (create_intersect_range_checks): Call it.
220 2019-11-18 Richard Sandiford <richard.sandiford@arm.com>
222 * lra-constraints.c (valid_address_p): Take the operand and a
223 constraint as argument. If the operand is a MEM and the constraint
224 is a memory constraint, check whether the eliminated form of the
225 MEM already satisfies the constraint.
226 (process_address_1): Update calls accordingly.
228 2019-11-18 Tom Tromey <tromey@adacore.com>
230 * doc/tm.texi: Rebuild.
231 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
232 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
234 2019-11-18 Richard Biener <rguenther@suse.de>
236 PR tree-optimization/92516
237 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
238 argument, hoist bst_map creation/destruction to ...
239 (vect_analyze_slp): ... here, forming a true graph with
240 SLP instances being the entries.
241 (vect_detect_hybrid_slp_stmts): Remove wrapper.
242 (vect_detect_hybrid_slp): Use one visited set for all
244 (vect_slp_analyze_node_operations): Simplify visited/lvisited
245 to hash-sets of slp_tree.
246 (vect_slp_analyze_operations): Likewise.
247 (vect_bb_slp_scalar_cost): Remove wrapper.
248 (vect_bb_vectorization_profitable_p): Use one visited set for
250 (vect_schedule_slp_instance): Elide bst_map use.
251 (vect_schedule_slp): Likewise.
253 2019-11-18 Richard Biener <rguenther@suse.de>
255 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
256 was vectorized with just external refs fail.
258 2019-11-18 Martin Liska <mliska@suse.cz>
261 * ipa-icf.c (sem_function::init): Unset m_checker
262 at the end of the function.
264 2019-11-18 Richard Biener <rguenther@suse.de>
266 PR tree-optimization/92558
267 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
268 reducting the width of a reduction vector def update new_phis.
270 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
272 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
273 and s390*-*-linux-musl* targets.
274 * configure: Regenerate.
276 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
278 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
279 (MUSL_DYNAMIC_LINKER64): Define.
281 2019-11-18 Martin Liska <mliska@suse.cz>
283 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
284 message for an unknown counter.
285 (dbg_cnt_process_single_pair): Support 0 as minimum value.
286 (dbg_cnt_process_opt): Remove unreachable code.
288 2019-11-18 Martin Liska <mliska@suse.cz>
291 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
292 Compare LHS types of NOP_EXPR.
294 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
296 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
297 "initial_pass_name" argument -- by running "*clean_state" pass.
298 Also free the "initial_pass_name" when done.
300 2019-11-18 Richard Biener <rguenther@suse.de>
302 PR rtl-optimization/92462
303 * alias.c (find_base_term): Restrict the look through ANDs.
304 (find_base_value): Likewise.
306 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
308 Add support for AVR devices from the 0-series.
311 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
312 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
313 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
314 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
315 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
316 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
317 for spec definitions.
318 * doc/avr-mmcu.texi: Regenerate.
320 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
323 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
324 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
325 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
326 (ix86_reassociation_width): Ditto.
327 * config/i386/i386-options.c (ix86_option_override_internal):
328 Replace TARGET_AVX128_OPTIAML with
329 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
330 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
331 (TARGET_AVX128_OPTIMAL): Deleted.
332 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
335 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
337 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
338 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
340 (cceq_rev_compare): Rename to...
341 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
343 (define_split for <bd>tf_<mode>): Add SImode first argument to
344 gen_cceq_ior_compare.
346 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
348 * common/config/powerpcspe: Delete.
350 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
352 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
353 output in UNSPEC_WRFFR.
355 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
357 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
358 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
360 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
362 * tree-data-ref.c (create_intersect_range_checks_index)
363 (create_intersect_range_checks): Print dump messages.
365 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
367 * tree-data-ref.c (dump_alias_pair): New function.
368 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
370 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
372 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
373 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
374 merging data references with different steps.
375 (create_intersect_range_checks_index): Take a
376 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
377 Bail out if DR_ALIAS_MIXED_STEPS is set.
378 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
379 instead of two dr_with_seg_lens. Update call to
380 create_intersect_range_checks_index.
381 (create_runtime_alias_checks): Update call accordingly.
383 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
385 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
386 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
387 (dr_with_seg_len_pair_t::sequencing): New enum.
388 (dr_with_seg_len_pair_t::flags): New member variable.
389 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
390 parameter and initialize the flags member variable.
391 * tree-loop-distribution.c (compute_alias_check_pairs): Update
393 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
394 Ensure the two data references in an alias pair are in statement
395 order, if there is a defined order.
396 * tree-data-ref.c (prune_runtime_alias_test_list): Use
397 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
398 swapped the references in a dr_with_seg_len_pair_t. OR together
399 the flags when merging two dr_with_seg_len_pair_ts. After merging,
400 try to restore the original dr_with_seg_len order, updating the
403 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
405 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
406 swapping the dr_as based on init values until we've decided
407 whether to merge them.
409 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
411 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
412 two accesses in each dr_with_seg_len_pair_t before trying to
413 combine separate dr_with_seg_len_pair_ts.
414 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
416 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
418 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
420 * config/aarch64/aarch64-sve.md
421 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
422 (scatter_store<SVE_24:mode><v_int_container>): ...this.
423 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
424 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
425 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
426 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
427 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
429 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
430 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
431 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
432 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
434 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
436 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
437 (SVE_4HSI): New mode iterators.
438 (ANY_EXTEND2): New code iterator.
439 * config/aarch64/aarch64-sve.md
440 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
442 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
443 ...this, handling extension to partial modes as well as full modes.
444 Describe the extension as a predicated rather than unpredicated
446 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
447 Likewise extend to...
448 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
449 ...this, making the same adjustments.
450 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
451 Likewise extend to...
452 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
453 ...this, making the same adjustments.
454 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
455 Likewise extend to...
456 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
457 ...this, making the same adjustments.
458 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
460 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
462 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
463 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
464 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
465 Describe the extension as a predicated rather than unpredicated
467 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
468 Likewise. Canonicalize to a constant extension predicate.
469 * config/aarch64/aarch64-sve-builtins-base.cc
470 (svld1_gather_extend_impl::expand): Add an extra predicate for
472 (svldff1_gather_extend_impl::expand): Likewise.
474 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
476 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
478 * config/aarch64/aarch64-sve.md
479 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
480 (gather_load<SVE_24:mode><v_int_container>): ...this.
481 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
482 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
483 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
484 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
485 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
487 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
488 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
489 Allow the nominal extension predicate to be different from the
491 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
492 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
494 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
496 * config/aarch64/aarch64-sve.md
497 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
498 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
500 (aarch64_sve_adjust_stmt_cost): Call it.
502 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
504 * config/aarch64/aarch64-sve.md
505 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
506 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
507 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
509 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
510 ...this new pattern, handling extension to partial modes as well
511 as full modes. Describe the extension as a predicated rather than
512 unpredicated extension.
513 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
514 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
515 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
517 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
518 ...this new pattern, handling extension to partial modes as well
519 as full modes. Describe the extension as a predicated rather than
520 unpredicated extension.
521 * config/aarch64/aarch64-sve-builtins.cc
522 (function_expander::use_contiguous_load_insn): Add an extra
523 predicate for extending loads.
524 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
525 (aarch64_sve_adjust_stmt_cost): Likewise.
526 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
527 the cost of SVE vector stmts.
529 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
531 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
532 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
533 * config/aarch64/aarch64-sve.md
534 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
535 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
536 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
537 comment. Avoid new narrower_mask ambiguity.
538 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
539 (*cond_uxt<mode>_2): Update comment.
540 (*cond_uxt<mode>_any): Likewise.
542 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
544 * config/aarch64/aarch64-modes.def: Define partial SVE vector
546 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
548 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
549 new vector float modes.
550 (aarch64_sve_container_bits): New function.
551 (aarch64_sve_pred_mode): Likewise.
552 (aarch64_get_mask_mode): Use it.
553 (aarch64_sve_element_int_mode): Handle structure modes and partial
555 (aarch64_sve_container_int_mode): New function.
556 (aarch64_vectorize_related_mode): Return SVE modes when given
557 SVE modes. Handle partial modes, taking the preferred number
558 of units from the size of the given mode.
559 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
561 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
562 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
563 (aarch64_split_sve_subreg_move): Use the mode form of
564 aarch64_sve_pred_mode.
565 (aarch64_secondary_reload): Handle partial modes in the same way
566 as full big-endian vectors.
567 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
568 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
569 merging with the Advanced SIMD modes. If two modes have the
570 same size, try the Advanced SIMD mode first.
571 (aarch64_simd_valid_immediate): Use the container rather than
572 the element mode for INDEX constants.
573 (aarch64_simd_vector_alignment): Make the alignment of partial
574 SVE vector modes the same as their minimum size.
575 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
576 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
577 (mov<SVE_ALL:mode>): ...this.
578 (movmisalign<SVE_FULL:mode>): Extend to...
579 (movmisalign<SVE_ALL:mode>): ...this.
580 (*aarch64_sve_mov<mode>_le): Rename to...
581 (*aarch64_sve_mov<mode>_ldr_str): ...this.
582 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
583 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
584 partial modes regardless of endianness.
585 (aarch64_sve_reload_be): Rename to...
586 (aarch64_sve_reload_mem): ...this and enable for little-endian.
587 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
588 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
589 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
590 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
591 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
592 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
593 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
594 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
595 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
596 (maskload<SVE_FULL:mode><vpred>): Extend to...
597 (maskload<SVE_ALL:mode><vpred>): ...this.
598 (maskstore<SVE_FULL:mode><vpred>): Extend to...
599 (maskstore<SVE_ALL:mode><vpred>): ...this.
600 (vec_duplicate<SVE_FULL:mode>): Extend to...
601 (vec_duplicate<SVE_ALL:mode>): ...this.
602 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
603 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
604 (sve_ld1r<SVE_FULL:mode>): Extend to...
605 (sve_ld1r<SVE_ALL:mode>): ...this.
606 (vec_series<SVE_FULL_I:mode>): Extend to...
607 (vec_series<SVE_I:mode>): ...this.
608 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
609 (*vec_series<SVE_I:mode>_plus): ...this.
610 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
612 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
613 (add<SVE_FULL_I:mode>3): Extend to...
614 (add<SVE_I:mode>3): ...this.
615 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
616 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
617 (VPRED, vpred): Likewise.
618 (Vctype): New iterator.
619 (vw): Remove SVE modes.
621 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
623 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
624 (SVE_PARTIAL_I): ...this.
625 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
627 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
629 * config/aarch64/iterators.md (SVE_ALL): Rename to...
631 (SVE_I): Rename to...
632 (SVE_FULL_I): ...this.
633 (SVE_F): Rename to...
634 (SVE_FULL_F): ...this.
635 (SVE_BHSI): Rename to...
636 (SVE_FULL_BHSI): ...this.
637 (SVE_HSD): Rename to...
638 (SVE_FULL_HSD): ...this.
639 (SVE_HSDI): Rename to...
640 (SVE_FULL_HSDI): ...this.
641 (SVE_HSF): Rename to...
642 (SVE_FULL_HSF): ...this.
643 (SVE_SD): Rename to...
644 (SVE_FULL_SD): ...this.
645 (SVE_SDI): Rename to...
646 (SVE_FULL_SDI): ...this.
647 (SVE_SDF): Rename to...
648 (SVE_FULL_SDF): ...this.
649 (SVE_S): Rename to...
650 (SVE_FULL_S): ...this.
651 (SVE_D): Rename to...
652 (SVE_FULL_D): ...this.
653 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
654 * config/aarch64/aarch64-sve2.md: Likewise.
656 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
658 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
660 * doc/invoke.texi: Document it.
661 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
662 By default, return VECT_COMPARE_COSTS for SVE.
664 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
666 * target.h (VECT_COMPARE_COSTS): New constant.
667 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
668 * doc/tm.texi: Regenerate.
669 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
670 * targhooks.c (default_autovectorize_vector_modes): Likewise.
671 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
673 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
674 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
675 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
676 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
677 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
678 (_loop_vec_info::vec_inside_cost): New member variables.
679 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
680 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
681 (vect_analyze_loop): When autovectorize_vector_modes returns
682 VECT_COMPARE_COSTS, try vectorizing the loop with each available
683 vector mode and picking the one with the lowest cost.
684 (vect_estimate_min_profitable_iters): Record the computed costs
685 in the loop_vec_info.
687 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
689 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
690 element type rather than an element mode.
691 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
692 Use get_vectype_for_scalar_type to query the natural types
693 for a given element type rather than basing everything on
694 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
695 query to MAX_FIXED_MODE_SIZE.
696 (duplicate_and_interleave): Update call accordingly.
697 * tree-vect-loop.c (vectorizable_reduction): Likewise.
699 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
701 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
702 optional maximum nunits.
703 (get_vectype_for_scalar_type): Likewise. Also declare a form that
705 (get_mask_type_for_scalar_type): Take an optional slp_tree.
706 (vect_get_mask_type_for_stmt): Likewise.
707 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
708 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
709 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
710 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
711 to get an assumed vector type for data references.
712 * tree-vect-slp.c (vect_update_shared_vectype): New function.
713 (vect_update_all_shared_vectypes): Likewise.
714 (vect_build_slp_tree_1): Pass the group size to
715 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
716 for BB vectorization.
717 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
718 before building the vectof from scalars.
719 (vect_analyze_slp_instance): Pass the group size to
720 get_vectype_for_scalar_type.
721 (vect_slp_analyze_node_operations_1): Don't recompute the vector
722 types for BB vectorization here; just handle the case in which
723 we deferred the choice for booleans.
724 (vect_get_constant_vectors): Pass the slp_tree to
725 get_vectype_for_scalar_type.
726 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
727 (vectorizable_call): Likewise.
728 (vectorizable_simd_clone_call): Likewise.
729 (vectorizable_conversion): Likewise.
730 (vectorizable_shift): Likewise.
731 (vectorizable_operation): Likewise.
732 (vectorizable_comparison): Likewise.
733 (vect_is_simple_cond): Take the slp_tree as argument and
734 pass it to get_vectype_for_scalar_type.
735 (vectorizable_condition): Update call accordingly.
736 (get_vectype_for_scalar_type): Take a group_size argument.
737 For BB vectorization, limit the the vector to that number
738 of elements. Also define an overload that takes an slp_tree.
739 (get_mask_type_for_scalar_type): Add an slp_tree argument and
740 pass it to get_vectype_for_scalar_type.
741 (vect_get_vector_types_for_stmt): Add a group_size argument
742 and pass it to get_vectype_for_scalar_type. Don't use the
743 cached vector type for BB vectorization if a group size is given.
744 Handle data references in that case.
745 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
746 pass it to get_mask_type_for_scalar_type.
748 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
750 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
752 (estimate_edge_time): Use it.
753 * ipa-inline-analysis.c (do_estimate_edge_time): Add
754 ret_nonspec_time parameter.
756 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
758 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
760 2019-11-15 Nick Clifton <nickc@redhat.com>
761 Szabolcs Nagy <szabolcs.nagy@arm.com>
764 * config/microblaze/microblaze.c (print_operand): Print value as long.
766 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
768 * ipa-inline.c (edge_badness, inline_small_functions): Revert
771 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
773 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
774 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
776 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
778 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
779 (gcn_conditional_register_usage): Use constants in place of hard-coded
781 (gcn_hsa_declare_function_name): Set lower bound for number of
782 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
783 MAX_NORMAL_VGPR_COUNT.
785 2019-11-15 Martin Jambor <mjambor@suse.cz>
787 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
790 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
792 * config/gcn/gcn.c (default_requested_args): New.
793 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
794 set with default_requested_args.
795 (gcn_conditional_register_usage): Limit register usage of non-kernel
796 functions. Reassign fixed registers if a non-standard set of args is
798 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
800 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
803 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
804 aggregate jump function when inlined-to caller has no edge summary.
806 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
808 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
810 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
812 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
814 (print_operand_address): Use v1 for zero vector offset.
816 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
818 PR tree-optimization/92515
819 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
820 types when converting a vector/scalar shift into a vector/vector one,
821 using tree_nop_conversion_p instead of useless_type_conversion_p.
822 Move the conversion code to the transform block.
824 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
826 * read-rtl-function.c
827 (function_reader::add_fixup_source_location): Take additional
828 parameter of a column.
829 (function_reader::maybe_read_location): Optionally parse column
830 information and pass to add_fixup_source_location.
832 2019-11-15 Richard Biener <rguenther@suse.de>
834 PR tree-optimization/92512
835 * tree-vect-loop.c (check_reduction_path): Fix operand index
836 computability check. Add check for second use in COND_EXPRs.
838 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
841 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
842 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
844 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
846 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
847 register class for VCC_LO and VCC_HI.
848 (gcn_spill_class): Use SGPR_REGS to spill registers in
851 2019-11-15 Richard Biener <rguenther@suse.de>
853 PR tree-optimization/92324
854 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
855 singedness of SLP reduction epilouge operations. Also reduce
856 the vector width for SLP reductions before doing elementwise
857 operations if possible.
859 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
861 * passes.c (skip_pass): Set epilogue_completed if skipping the
862 pro_and_epilogue pass.
864 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
866 * passes.c (should_skip_pass_p): Always run "dfinish".
868 2019-11-15 Richard Biener <rguenther@suse.de>
870 * ipa-inline.c (inline_small_functions): Move assignment
871 to next before call destroying edge.
873 2019-11-15 Richard Biener <rguenther@suse.de>
875 PR tree-optimization/92039
876 PR tree-optimization/91975
877 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
878 previous change, treat invariants consistently as non-constant.
879 (tree_estimate_loop_size): Ternary ops with just the first op
880 constant are not optimized away.
882 2019-11-15 Jakub Jelinek <jakub@redhat.com>
884 * gimplify.c (gimplify_call_expr): Don't call
885 omp_resolve_declare_variant after gimplification.
886 * omp-general.c (omp_context_selector_matches): For isa that might
887 match in some other function, defer if in declare simd function.
888 (omp_context_compute_score): Don't look for " score" in construct
889 trait set. Set *score to -1 if it can't ever match.
890 (omp_resolve_declare_variant): If any variants need to be deferred,
891 don't punt immediately, but compute scores of all variants and if
892 ther eis a score winner that doesn't need to be deferred, return that.
894 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
896 * ipa-comdats.c: Fix comments typo.
897 * ipa-profile.c: Fix comments typo.
898 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
899 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
900 (gimple_gen_ic_func_profiler): Likewise.
901 (pass_ipa_tree_profile::gate): Fix comments typo.
903 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
905 * ipa-inline.c (inline_small_functions): Update iterator of next.
907 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
909 * lra-spills.c (assign_spill_hard_regs): Check that the spill
910 register is suitable for the mode.
912 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
914 * range-op.h (range_operator::fold_range): Return a bool.
915 * range-op.cc (range_operator::wi_fold): Assert supported type.
916 (range_operator::fold_range): Assert supported type and return true.
917 (operator_equal::fold_range): Return true.
918 (operator_not_equal::fold_range): Same.
919 (operator_lt::fold_range): Same.
920 (operator_le::fold_range): Same.
921 (operator_gt::fold_range): Same.
922 (operator_ge::fold_range): Same.
923 (operator_plus::op1_range): Adjust call to fold_range.
924 (operator_plus::op2_range): Same.
925 (operator_minus::op1_range): Same.
926 (operator_minus::op2_range): Same.
927 (operator_exact_divide::op1_range): Same.
928 (operator_lshift::fold_range): Return true and adjust fold_range call.
929 (operator_rshift::fold_range): Same.
930 (operator_cast::fold_range): Return true.
931 (operator_logical_and::fold_range): Same.
932 (operator_logical_or::fold_range): Same.
933 (operator_logical_not::fold_range): Same.
934 (operator_bitwise_not::fold_range): Adjust call to fold_range.
935 (operator_bitwise_not::op1_range): Same.
936 (operator_cst::fold_range): Return true.
937 (operator_identity::fold_range): Return true.
938 (operator_negate::fold_range): Return true and adjust fold_range call.
939 (operator_addr_expr::fold_range): Return true.
940 (operator_addr_expr::op1_range): Adjust call to fold_range.
942 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
943 (range_fold_unary_symbolics_p): Same.
945 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
947 PR tree-optimization/92506
948 * range-op.cc (range_operator::fold_range): Start with range undefined.
949 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
952 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
954 * range-op.cc (*operator*::*range): Remove calls to
955 range_intersect, range_invert, and range_union in favor of calling
956 the in-place API methods.
958 * range.cc (range_intersect): Remove.
959 (range_union): Remove.
960 (range_invert): Remove.
961 * range.h (range_intersect): Remove.
962 (range_union): Remove.
963 (range_intersect): Remove.
965 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
967 PR rtl-optimization/92430
968 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
969 (pass_jump_after_combine::execute): Perform jump threading
972 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
973 Doug Rupp <rupp@adacore.com>
974 Olivier Hainque <hainque@adacore.com>
976 * config.gcc: Collapse the arm-vxworks entries into
977 a single arm-wrs-vxworks7* one, bpabi based. Update
978 the default cpu from arm8 to armv7-a
979 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
980 we always use ARM_UNWIND_INFO.
981 (DWARF2_UNWIND_INFO): Remove redefinition.
982 (ARM_TARGET2_DWARF_FORMAT): Likewise.
983 (VXWORKS_PERSONALITY): Define, to "llvm".
984 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
986 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
988 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
989 _VX_CPU instead of CPU and handle arm_arch8.
991 2019-11-14 Doug Rupp <rupp@adacore.com>
992 Olivier Hainque <hainque@adacore.com>
993 Jerome Lambourg <lambourg@adacore.com>
995 * config.gcc: Handle aarch64*-wrs-vxworks7*.
996 * config/aarch64/aarch64-vxworks.h: New file.
997 * config/aarch64/t-aarch64-vxworks: New file.
999 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
1000 Olivier Hainque <hainque@adacore.com>
1002 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
1003 definition, pointless with a VxWorks specific version
1005 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
1006 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
1007 New local macros, controlling the addition of vxworks specific
1008 crtstuff objects depending on the EH mechanism and kind of
1009 module being linked.
1010 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
1012 2019-11-06 Pat Bernardi <bernardi@adacore.com>
1013 Jerome Lambourg <lambourg@adacore.com>
1014 Olivier Hainque <hainque@adacore.com>
1016 * config.gcc: Add comment to introduce the TARGET_VXWORKS
1017 common macro definitions, conveying VXWORKS7 or 64bit general
1018 variations. Add a block to set gcc_cv_initfini_array
1019 unconditionally to "yes" for VxWorks7.
1020 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
1021 by default. Update some comments.
1022 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
1023 default, to be added the end of VXWORKS_LIBS_RTP.
1024 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
1025 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
1027 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
1028 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
1029 to account for the now available TLS abilities.
1030 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
1031 (VXWORKS_HAVE_TLS): Likewise.
1033 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1035 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
1036 (vect_slp_convert_to_external): Likewise.
1037 (vect_slp_analyze_node_operations): If analysis fails, try building
1038 the node from scalars instead.
1040 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1042 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
1043 between vector types.
1044 * tree-vect-stmts.c (vectorizable_conversion): Extend the
1045 non-widening and non-narrowing path to handle standard
1046 conversion codes, if the target supports them.
1047 * expr.c (convert_move): Try using the extend and truncate optabs
1049 * optabs-tree.c (supportable_convert_operation): Likewise.
1050 * config/aarch64/iterators.md (Vnarroqw): New iterator.
1051 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
1052 (trunc<mode><Vnarrowq>2): New patterns.
1054 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1056 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
1057 require vectype and nunits_vectype to have the same size;
1058 instead assert that nunits_vectype has at least as many
1059 elements as vectype. Don't compute a separate nunits_vectype
1060 if the scalar type is obviously the same as vectype's.
1061 Tweak dump messages.
1063 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1065 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
1067 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
1068 (TARGET_VECTORIZE_RELATED_MODE): Define.
1070 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1072 * tree-vectorizer.h (vec_info::mode_set): New typedef.
1073 (vec_info::used_vector_mode): New member variable.
1074 (vect_chooses_same_modes_p): Declare.
1075 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
1076 chosen vector mode in vec_info::used_vector_mode.
1077 (vect_chooses_same_modes_p): New function.
1078 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
1079 the same vector statements multiple times.
1080 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1082 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1084 * machmode.h (opt_machine_mode::operator==): New function.
1085 (opt_machine_mode::operator!=): Likewise.
1086 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
1087 (get_related_vectype_for_scalar_type): Delete.
1088 (get_vectype_for_scalar_type_and_size): Declare.
1089 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
1090 whether analysis passed or failed, and with what vector modes.
1091 Use related_vector_mode to check whether trying a particular
1092 vector mode would be redundant with the autodetected mode,
1093 and print a dump message if we decide to skip it.
1094 * tree-vect-loop.c (vect_analyze_loop): Likewise.
1095 (vect_create_epilog_for_reduction): Use
1096 get_related_vectype_for_scalar_type instead of
1097 get_vectype_for_scalar_type_and_size.
1098 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
1100 (get_related_vectype_for_scalar_type): ...this new function.
1101 Take a starting/"prevailing" vector mode rather than a vector size.
1102 Take an optional nunits argument, with the same meaning as for
1103 related_vector_mode. Use related_vector_mode when not
1104 auto-detecting a mode, falling back to mode_for_vector if no
1106 (get_vectype_for_scalar_type): Update accordingly.
1107 (get_same_sized_vectype): Likewise.
1108 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
1110 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1112 * tree-vect-stmts.c (vectorizable_call): Require the types
1113 to have the same size.
1115 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1117 * tree-vect-stmts.c (vectorizable_call): If an operand is
1118 constant or external, use get_vectype_for_scalar_type
1119 rather than get_same_sized_vectype to get its vector type.
1120 (vectorizable_conversion, vectorizable_shift): Likewise.
1121 (vectorizable_operation): Likewise.
1123 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1125 * tree-vectorizer.h (vec_info::vector_size): Replace with...
1126 (vec_info::vector_mode): ...this new field.
1127 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
1128 (vect_analyze_loop, vect_transform_loop): Likewise.
1129 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
1130 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
1131 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
1132 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
1133 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
1135 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1137 * target.h (vector_sizes, auto_vector_sizes): Delete.
1138 (vector_modes, auto_vector_modes): New typedefs.
1139 * target.def (autovectorize_vector_sizes): Replace with...
1140 (autovectorize_vector_modes): ...this new hook.
1141 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
1143 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
1144 * doc/tm.texi: Regenerate.
1145 * targhooks.h (default_autovectorize_vector_sizes): Delete.
1146 (default_autovectorize_vector_modes): New function.
1147 * targhooks.c (default_autovectorize_vector_sizes): Delete.
1148 (default_autovectorize_vector_modes): New function.
1149 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
1150 of autovectorize_vector_sizes. Use the number of units in the mode
1151 to calculate the maximum VF.
1152 * omp-low.c (omp_clause_aligned_alignment): Use
1153 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1154 Use a loop based on related_mode to iterate through all supported
1155 vector modes for a given scalar mode.
1156 * optabs-query.c (can_vec_mask_load_store_p): Use
1157 autovectorize_vector_modes instead of autovectorize_vector_sizes.
1158 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
1159 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
1160 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
1162 (aarch64_autovectorize_vector_modes): ...this new function.
1163 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1164 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1165 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
1166 (arc_autovectorize_vector_modes): ...this new function.
1167 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1168 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1169 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
1170 (arm_autovectorize_vector_modes): ...this new function.
1171 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1172 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1173 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
1174 (ix86_autovectorize_vector_modes): ...this new function.
1175 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1176 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1177 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
1178 (mips_autovectorize_vector_modes): ...this new function.
1179 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
1180 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
1182 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1184 * tree-vect-stmts.c (vectorizable_shift): Check the number
1185 of vector elements as well as the type mode when deciding
1186 whether an op1_vectype is compatible. Reuse the result of
1187 this check when generating vector statements.
1189 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1191 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
1192 targetm.vectorize.preferred_simd_mode returns an integer mode,
1193 use mode_for_vector to decide what the vector type's mode
1194 should actually be. Use build_vector_type_for_mode instead
1195 of build_vector_type.
1197 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1199 * target.def (get_mask_mode): Take a vector mode itself as argument,
1200 instead of properties about the vector mode.
1201 * doc/tm.texi: Regenerate.
1202 * targhooks.h (default_get_mask_mode): Update to reflect new
1203 get_mode_mask interface.
1204 * targhooks.c (default_get_mask_mode): Likewise. Use
1205 related_int_vector_mode.
1206 * optabs-query.c (can_vec_mask_load_store_p): Update call
1208 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
1209 first that the original mode really is a vector.
1210 * tree.c (build_truth_vector_type_for): Likewise.
1211 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
1212 get_mode_mask interface.
1213 (aarch64_expand_sve_vcond): Update call accordingly.
1214 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
1215 get_mode_mask interface.
1216 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
1218 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1220 * tree.h (build_truth_vector_type): Delete.
1221 (build_same_sized_truth_vector_type): Likewise.
1222 * tree.c (build_truth_vector_type): Rename to...
1223 (build_truth_vector_type_for): ...this. Make static and take
1224 a vector type as argument.
1225 (truth_type_for): Update accordingly.
1226 (build_same_sized_truth_vector_type): Delete.
1227 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1228 instead of build_same_sized_truth_vector_type.
1229 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1230 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1231 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1232 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1233 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1234 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1235 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1236 (vectorizable_store, vectorizable_condition): Likewise.
1237 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1238 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1239 build_truth_vector_type.
1240 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1241 Use truth_type_for instead of build_same_sized_truth_vector_type.
1242 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1244 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1246 * tree.h (build_truth_vector_type_for_mode): Declare.
1247 * tree.c (build_truth_vector_type_for_mode): New function,
1249 (build_truth_vector_type): ...here.
1250 (build_opaque_vector_type): Fix head comment.
1251 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1253 (vect_halve_mask_nunits): Replace vec_info parameter with the
1254 mode of the new vector.
1255 (vect_double_mask_nunits): Likewise.
1256 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1257 (vect_double_mask_nunits): Likewise.
1258 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1259 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1260 to vect_halve_mask_nunits, getting the required mode from the unpack
1262 (vect_set_loop_condition_masked): Update call accordingly.
1263 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1264 parameter and update call to vect_double_mask_nunits.
1265 (vectorizable_conversion): Update call accordingly.
1266 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1267 (vectorizable_call): Update call accordingly.
1268 (supportable_widening_operation): Update call to
1269 vect_halve_mask_nunits.
1270 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1271 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1273 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1275 * machmode.h (mode_for_int_vector): Delete.
1276 (related_int_vector_mode): Declare.
1277 * stor-layout.c (mode_for_int_vector): Delete.
1278 (related_int_vector_mode): New function.
1279 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1280 instead of mode_for_int_vector.
1281 (expand_vec_perm_const): Likewise.
1282 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1283 (aarch64_evpc_sve_tbl): Likewise.
1284 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1285 (s390_expand_vcond): Likewise.
1287 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1289 * target.def (related_mode): New hook.
1290 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1291 * doc/tm.texi: Regenerate.
1292 * targhooks.h (default_vectorize_related_mode): Declare.
1293 * targhooks.c (default_vectorize_related_mode): New function.
1294 * machmode.h (related_vector_mode): Declare.
1295 * stor-layout.c (related_vector_mode): New function.
1296 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1297 * optabs-query.c (qimode_for_vec_perm): Likewise.
1298 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1299 (vectorizable_store, vectorizable_load): Likewise
1301 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1303 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1304 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1305 * config/arm/arm-c.c (arm_cpu_builtins): Define
1306 __GCC_ASM_FLAG_OUTPUTS__.
1307 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1308 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1309 Define __GCC_ASM_FLAG_OUTPUTS__.
1310 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1311 * doc/extend.texi (FlagOutputOperands): Add documentation
1312 for ARM and AArch64.
1314 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1315 * config/arm/predicates.md (nz_comparison_operator): Rename
1316 from noov_comparison_operator.
1317 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1318 (arm_gen_dicompare_reg): Likewise.
1319 (maybe_get_arm_condition_code): Likewise.
1320 (thumb1_final_prescan_insn): Likewise.
1321 (arm_emit_coreregs_64bit_shift): Likewise.
1322 * config/arm/arm.md (addsi3_compare0): Likewise.
1323 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1324 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1325 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1326 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1327 (*mulsi3addsi_compare0_scratch): Likewise.
1328 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1329 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1330 (*zeroextractsi_compare0_scratch): Likewise.
1331 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1332 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1333 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1334 (andsi_not_shiftsi_si_scc): Likewise.
1335 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1336 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1337 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1338 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1339 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1340 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1341 (return_addr_mask, *check_arch2): Likewise.
1342 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1343 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1344 (compare_scc splitters): Likewise.
1345 (movcond_addsi): Likewise.
1346 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1347 (*thumb2_addsi3_compare0_scratch): Likewise.
1348 (*thumb2_mulsi_short_compare0): Likewise.
1349 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1350 (compare peephole2s): Likewise.
1351 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
1352 nz_comparison_operator names.
1353 (cbranchsi4_insn): Likewise.
1355 * config/arm/constraints.md (c): Use cc_register predicate.
1357 * config/aarch64/constraints.md (c): New constraint.
1359 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1361 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
1362 ipa_merge_fn_summary_after_inlining): Micro optimize.
1364 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1366 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
1368 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1370 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
1371 (ipa_value_range_from_jfunc): New function.
1372 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
1373 known_value_ranges parameter; use it to evalulate conditions.
1374 (evaluate_properties_for_edge): Compute known value ranges.
1375 (ipa_fn_summary_t::duplicate): Update use of
1376 evaluate_conditions_for_known_args.
1377 (estimate_ipcp_clone_size_and_time): Likewise.
1378 (ipa_merge_fn_summary_after_inlining): Likewise.
1379 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
1381 2019-11-14 Martin Liska <mliska@suse.cz>
1383 * ipa-inline.c (want_inline_small_function_p): Use
1384 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
1385 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
1387 2019-11-14 Martin Liska <mliska@suse.cz>
1389 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
1390 of a callee to get value of the param.
1391 * ipa-inline.c (inline_insns_auto): Use proper
1393 * opts.c (maybe_default_option): Do not overwrite param
1394 value if optimization level does not match. Note that
1395 params usually have default value set via Init() keyword.
1396 * params.opt: Remove -param=max-inline-insns-auto-O2.
1397 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
1398 * doc/invoke.texi: Remove documentation of
1399 max-inline-insns-auto-O2.
1401 2019-11-14 Martin Liska <mliska@suse.cz>
1403 * tree-switch-conversion.c (switch_conversion::switch_conversion):
1404 Do not initialize m_other_count.
1405 (switch_conversion::collect): Do not count m_default_count and
1406 m_other_count as we use frequencies for edges.
1407 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
1409 2019-11-14 Martin Liska <mliska@suse.cz>
1412 * doc/invoke.texi: Document -fallocation-dce.
1414 2019-11-14 Martin Liska <mliska@suse.cz>
1417 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
1418 PTA_ICELAKE_CLIENT which is later interited by
1419 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
1421 2019-11-14 Martin Liska <mliska@suse.cz>
1423 * ipa-icf.c (sem_item_optimizer::execute): Save
1425 (sem_item_optimizer::parse_nonsingleton_classes):
1426 Return number of loaded symbols.
1427 (sem_item_optimizer::merge_classes): Print
1428 statistics about totally needed symbols.
1429 * ipa-icf.h (parse_nonsingleton_classes): Change return
1431 (merge_classes): Add one argument.
1433 2019-11-14 Martin Liska <mliska@suse.cz>
1435 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
1436 func_checker::hash_operand by handling of FIELD_DECLs.
1438 2019-11-14 Martin Liska <mliska@suse.cz>
1440 * ipa-icf-gimple.h (func_checker::func_checker): Add
1441 default constructor.
1442 * ipa-icf.c (sem_function::init): Make operand_equal_p
1443 and hash_operand public.
1444 (sem_item::add_expr): Remove.
1445 (sem_item::add_type): Remove.
1446 (sem_function::hash_stmt): Use m_checker for hashing
1447 of GIMPLE statements.
1448 (sem_function::parse): Init with checker.
1449 (sem_variable::parse): Pass NULL as checker.
1450 (sem_item_optimizer::parse_funcs_and_vars):
1451 Pass checker to ::parse function.
1452 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
1453 (sem_variable::parse): New function.
1454 (sem_variable::get_hash): Only return computed hash value.
1455 (sem_variable::init): Initialize hash of a variable.
1456 * ipa-icf.h: Remove add_expr, add_type and add func_checker
1457 to couple of functions as a new argument.
1459 2019-11-14 Martin Liska <mliska@suse.cz>
1461 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
1463 (func_checker::compare_gimple_assign): Likewise.
1465 2019-11-14 Jakub Jelinek <jakub@redhat.com>
1467 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
1468 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
1469 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
1471 * omp-general.c (omp_context_name_list_prop): New function.
1472 (omp_context_selector_matches): Use it. Return 0 if it returns
1474 (omp_context_selector_props_compare): Allow equivalency of an
1475 identifier and a string literal containing no embedded zeros.
1477 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1479 * range-op.cc (RANGE3): Remove.
1480 (range_tests): Remove all selftest that check for multi-ranges.
1481 Put tests in namespace selftest.
1482 * selftest.h: Move range_tests into namespace selftest.
1483 * value-range.h (class value_range): Unfriend range_tests.
1485 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1487 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
1488 normalize_symbolics and normalize_addresses working in place.
1489 (range_fold_unary_symbolics_p): Same.
1490 (range_fold_unary_symbolics_p): Same.
1491 * value-range.cc (num_pairs): Same.
1492 (lower_bound): Same.
1493 (upper_bound): Same.
1495 (normalize_addresses): Same.
1496 (normalize_symbolics): Same.
1497 * value-range.h (normalize_symbolics): Same.
1498 (normalize_addresses): Same.
1500 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
1503 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
1504 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
1505 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
1506 (ipa_agg_jump_function): Remove member function equal_to.
1507 (ipa_agg_jump_function_p): Remove typedef.
1508 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
1509 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
1510 information for aggregate jump function.
1511 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
1512 record last definition statement.
1513 (load_from_unmodified_param_or_agg): New function.
1514 (ipa_known_agg_contents_list): Add new field type and value, remove
1516 (build_agg_jump_func_from_list): Rename parameter const_count to
1517 value_count, build aggregate jump function from ipa_load_agg_data.
1518 (analyze_agg_content_value): New function.
1519 (extract_mem_content): Analyze memory store assignment to prepare
1520 information for aggregate jump function generation.
1521 (determine_known_aggregate_parts): Add new parameter fbi, remove
1522 parameter aa_walk_budeget_p.
1523 (update_jump_functions_after_inlining): Update aggregate jump function.
1524 (ipa_find_agg_cst_for_param): Change type of parameter agg.
1525 (try_make_edge_direct_simple_call): Add new parameter new_root.
1526 (try_make_edge_direct_virtual_call): Add new parameter new_root and
1528 (update_indirect_edges_after_inlining): Pass new argument to
1529 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
1530 (ipa_write_jump_function): Write aggregate jump function to file.
1531 (ipa_read_jump_function): Read aggregate jump function from file.
1532 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
1533 * ipa-cp.c (ipa_get_jf_arith_result): New function.
1534 (ipa_agg_value_from_node): Likewise.
1535 (ipa_agg_value_set_from_jfunc): Likewise.
1536 (propagate_vals_across_arith_jfunc): Likewise.
1537 (propagate_aggregate_lattice): Likewise.
1538 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
1539 (propagate_vals_across_pass_through): Call
1540 propagate_vals_across_arith_jfunc.
1541 (get_clone_agg_value): Move forward.
1542 (propagate_aggs_across_jump_function): Handle value propagation for
1543 aggregate jump function.
1544 (agg_jmp_p_vec_for_t_vec): Remove.
1545 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
1546 with vec<ipa_agg_value>.
1547 (copy_plats_to_inter, intersect_with_plats): Likewise.
1548 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
1549 (intersect_aggregate_with_edge): Likewise.
1550 (find_aggregate_values_for_callers_subset): Likewise.
1551 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
1552 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
1553 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1554 (gather_context_independent_values): Likewise.
1555 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
1556 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
1557 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1558 (evaluate_properties_for_edge): Likewise.
1559 (estimate_edge_devirt_benefit): Likewise.
1560 (estimate_edge_size_and_time): Likewise.
1561 (estimate_calls_size_and_time): Likewise.
1562 (ipa_call_context::ipa_call_context): Likewise.
1563 (estimate_ipcp_clone_size_and_time): Likewise.
1564 * ipa-fnsummary.h (ipa_call_context): Replace
1565 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1566 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
1567 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1568 (do_estimate_edge_size): Likewise.
1569 (do_estimate_edge_hints): Likewise.
1571 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1573 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
1576 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1578 * ipa-profile.c (check_argument_count): Check properly that e_info
1579 is non-NULL; do not check descriptors.
1581 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1583 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
1584 check for ipa profiles.
1586 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1589 * ipa-prop.c (update_indirect_edges_after_inlining):
1590 Mark parameter as used.
1591 * ipa-inline.c (recursive_inlining): Reset node cache
1593 (inline_small_functions): Remove checking ifdef.
1594 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
1597 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1600 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
1602 (ipa_profile): Fix reversed test.
1604 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1606 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
1607 (propagate_constants_topo): Fix typo.
1609 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1611 * Makefile.in (OBJS): Add value-range.o.
1612 (GTFILES): Add value-range.h.
1613 * gengtype.c (open_base_files): Add value-range.h to list of
1615 * tree-vrp.c: Move the following value_range related functions:
1616 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
1617 constant_p, set_undefined, set_varying, may_contain_p,
1618 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
1619 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
1620 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
1621 value_inside_range, ranges_from_anti_range, union_ranges,
1622 intersect_ranges, intersect_helper, union_helper, union_,
1623 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
1624 upper_bound, contains_p, invert, intersect...
1625 * value-range.cc: ...to here.
1626 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
1627 associated inline methods from here...
1628 * value-range.h: ...to here.
1630 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1632 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
1633 instead of asserting its value.
1635 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1637 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
1638 constructors and set methods so value_range_kind is the last
1639 argument and defaults to VR_RANGE.
1640 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
1641 * ipa-cp.c (propagate_vr_across_jump_function): Same.
1642 * ipa-prop.c (ipa_get_value_range): Same.
1643 (ipa_compute_jump_functions_for_edge): Same.
1644 * range-op.cc (value_range_from_overflowed_bounds): Same.
1645 (operator_cast::op1_range): Same.
1646 (range_tests): Same.
1647 * range.cc (range_nonzero): Same.
1648 * tree-ssanames.c (get_range_info): Same.
1649 * tree-vrp.c (value_range_equiv::set): Same.
1650 (value_range::value_range): Same.
1651 (value_range_equiv::value_range_equiv): Same.
1652 (value_range_equiv::update): Same.
1653 (value_range_equiv::deep_copy): Same.
1654 (value_range_equiv::move): Same.
1655 (value_range_equiv::set_undefined): Same.
1656 (value_range::set): Same.
1657 (value_range::set_nonzero): Same.
1658 (ranges_from_anti_range): Same.
1659 (extract_range_from_plus_minus_expr): Same.
1660 (value_range::intersect_helper): Same.
1661 (value_range_equiv::intersect): Same.
1662 (value_range::union_helper): Same.
1663 (value_range_equiv::union_): Same.
1664 (value_range::normalize_symbolics): Same.
1665 (value_range::invert): Same.
1666 (determine_value_range_1): Same.
1667 * tree-vrp.h (class value_range): Same.
1668 (class value_range_equiv): Same.
1669 * vr-values.c (set_value_range_to_nonnegative): Same.
1670 (set_value_range_to_truthvalue): Same.
1671 (vr_values::update_value_range): Same.
1672 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1673 (vr_values::extract_range_from_binary_expr): Same.
1674 (vr_values::extract_range_from_comparison): Same.
1675 (vr_values::extract_range_basic): Same.
1676 (vr_values::adjust_range_with_scev): Same.
1677 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
1678 (vr_values::extract_range_from_phi_node): Same.
1680 2019-11-13 Ulrich Drepper <drepper@redhat.com>
1682 * tree-dump.c (dequeue_and_dump): Print first tree operand
1683 for VIEW_CONVERT_EXPR.
1685 2019-11-13 Joseph Myers <joseph@codesourcery.com>
1687 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
1688 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
1689 * real.c (get_max_float): Add norm_max argument.
1690 * real.h (get_max_float): Update prototype.
1691 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
1694 2019-11-13 Martin Liska <mliska@suse.cz>
1696 * dbgcnt.c (test_sorted_dbg_counters): New.
1697 (dbgcnt_c_tests): Likewise.
1698 * selftest-run-tests.c (selftest::run_tests): Likewise.
1699 * selftest.h (dbgcnt_c_tests): Likewise.
1701 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1702 Martin Jambor <mjambor@suse.cz>
1705 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
1706 (identify_dead_nodes): Likewise.
1708 2019-11-13 Martin Liska <mliska@suse.cz>
1710 * ipa-icf.c (sem_function::equals_private): Do not overuse
1711 push/pop_cfun functions.
1713 2019-11-13 Martin Liska <mliska@suse.cz>
1715 * common.opt: Document change of -fdbg-cnt option.
1716 * dbgcnt.c (DEBUG_COUNTER): Remove.
1717 (dbg_cnt_is_enabled): Remove.
1718 (dbg_cnt): Work with new intervals.
1719 (dbg_cnt_set_limit_by_index): Set to new
1721 (dbg_cnt_set_limit_by_name): Likewise.
1722 (dbg_cnt_process_single_pair): Process new format.
1723 (dbg_cnt_process_opt): Likewise.
1724 (dbg_cnt_list_all_counters): Likewise.
1725 * doc/invoke.texi: Document change of -fdbg-cnt option.
1728 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1730 * ipa-inline.c (ipa_inline): Check that function is defined before
1733 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1734 Julian Brown <julian@codesourcery.com>
1736 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
1737 flag_worker_partitioning is not set.
1738 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
1739 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
1741 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1743 * config/gcn/gcn-run.c (heap_region): New global variable.
1744 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
1745 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
1746 (get_kernarg_region): Move contents to ....
1747 (get_memory_region): .... here.
1748 (get_heap_region): New function.
1749 (init_device): Initialize the heap_region.
1750 (device_malloc): Add region parameter.
1751 (struct kernargs): Move heap ....
1752 (heap): ... to global scope.
1753 (main): Allocate heap separate to kernargs.
1755 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1757 * ipa-prop.c (ipa_print_node_jump_functions,
1758 ipa_print_node_params): Print info about missing summaries.
1760 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1762 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
1763 the cost of generating loop masks.
1765 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1767 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
1769 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
1770 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1771 (vect_transform_loop): Likewise.
1772 (vect_analyze_loop_costing): Don't take the cost of versioning
1773 into account for the static profitability threshold if it turns
1774 out that no versioning is needed.
1776 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1778 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
1779 and target_option_default_node to get -fprofile-generate ctors working
1782 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1784 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
1785 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
1786 (vectorizable_assignment): Don't add a cost for nop conversions.
1787 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1789 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
1791 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1793 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
1794 number of ncopies as an additional argument.
1795 (vectorizable_conversion): Update call accordingly. Use "modifier"
1796 to check whether a conversion is between vectors with the same
1799 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1801 * config/aarch64/aarch64-sve-builtins-functions.h
1802 (unary_count::expand): Use aarch64_sve_int_mode instead of
1803 mode_for_int_vector.
1805 2019-11-13 Martin Liska <mliska@suse.cz>
1807 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
1809 2019-11-13 Martin Liska <mliska@suse.cz>
1811 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1812 Remove call to finalize_options_struct.
1814 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1817 * config/avr/t-avr (avr-mcus): Do not depend on
1818 $(srcdir)/config/avr/t-multilib.
1820 2019-11-13 Richard Biener <rguenther@suse.de>
1822 PR tree-optimization/92473
1823 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1824 direct optab reduction in the correct type.
1826 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1828 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1829 hexadecimal literal.
1831 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1833 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1834 UNORDERED if !HONOR_NANS (DFmode).
1835 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1836 if !HONOR_NANS (<MODE>mode).
1838 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1840 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1841 (ipcp_verify_propagated_values): Likewise.
1842 (propagate_constants_across_call): Likewise.
1843 (propagate_constants_topo): Likewise.
1844 (ipcp_propagate_stage): Likewise.
1846 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1849 * ipa-profile.c (check_argument_count): Break out from ...;
1850 watch for missing summaries.
1851 (ipa_profile): Here.
1853 2019-11-12 Martin Sebor <msebor@redhat.com>
1855 PR tree-optimization/92412
1856 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1859 2019-11-12 Martin Sebor <msebor@redhat.com>
1862 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1863 (directive::argno): New member.
1864 (format_result::aliases, format_result::alias_count): New data members.
1865 (format_result::append_alias): New member function.
1866 (fmtresult::dst_offset): New data member.
1867 (pass_sprintf_length::call_info::dst_origin): New data member.
1868 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1869 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1870 (get_origin_and_offset): Same.
1871 (format_string): Call it.
1872 (format_directive): Call append_alias and set directive argument
1874 (maybe_warn_overlap): New function.
1875 (pass_sprintf_length::compute_format_length): Call it.
1876 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1877 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1879 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1881 PR rtl-optimization/92430
1882 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1883 dominance info at the beginning.
1885 2019-11-12 Richard Biener <rguenther@suse.de>
1887 PR tree-optimization/92460
1888 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1889 expression before gimplifying.
1891 2019-11-12 Richard Biener <rguenther@suse.de>
1893 PR tree-optimization/92461
1894 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1895 stmt after propagation.
1897 2019-11-12 Martin Liska <mliska@suse.cz>
1899 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1900 Use SET_OPTION_IF_UNSET.
1901 (ix86_option_override_internal): Likewise.
1902 * opts.c (default_options_optimization): Likewise.
1903 (finish_options): Likewise.
1904 (enable_fdo_optimizations): Likewise.
1905 (common_handle_option): Likewise.
1907 2019-11-12 Martin Liska <mliska@suse.cz>
1909 * common/common-target.def: Remove option_validate_param and
1910 option_default_params.
1911 * common/common-targhooks.c (default_option_validate_param):
1913 * common/common-targhooks.h (default_option_validate_param):
1915 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1916 Remove usage of this.
1917 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1918 (aarch64_option_validate_param): Likewise.
1919 (aarch64_option_default_params): Likewise
1920 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1921 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1922 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1923 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1924 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1925 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1926 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1927 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1928 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1929 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1930 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1932 * doc/tm.texi: Remove option_default_params and option_validate_param.
1933 * doc/tm.texi.in: Likewise.
1935 2019-11-12 Martin Liska <mliska@suse.cz>
1937 * common/common-target.def:
1938 Do not mention set_default_param_value
1939 and set_param_value.
1940 * doc/tm.texi: Likewise.
1942 2019-11-12 Martin Liska <mliska@suse.cz>
1944 * common.opt: Remove param_values.
1945 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1946 Remove finalize_options_struct.
1947 * gcc.c (driver::decode_argv): Do not call global_init_params
1949 (driver::finalize): Do not call params_c_finalize
1950 and finalize_options_struct.
1951 * opt-suggestions.c (option_proposer::get_completions): Remove
1952 special casing of params.
1953 (option_proposer::find_param_completions): Remove.
1954 (test_completion_partial_match): Update expected output.
1955 * opt-suggestions.h: Remove find_param_completions.
1956 * opts-common.c (add_misspelling_candidates): Add
1957 --param with a space.
1958 * opts.c (handle_param): Remove.
1959 (init_options_struct):. Remove init_options_struct and
1961 (finalize_options_struct): Remove.
1962 (common_handle_option): Use SET_OPTION_IF_UNSET.
1963 * opts.h (finalize_options_struct): Remove.
1964 * toplev.c (general_init): Do not call global_init_params.
1965 (toplev::finalize): Do not call params_c_finalize and
1966 finalize_options_struct.
1968 2019-11-12 Martin Liska <mliska@suse.cz>
1970 * Makefile.in: Remove PARAMS_H and params.list
1972 * params-enum.h: Remove.
1973 * params-list.h: Remove.
1974 * params-options.h: Remove.
1976 * params.def: Remove.
1978 * asan.c: Do not include params.h.
1979 * auto-profile.c: Likewise.
1980 * bb-reorder.c: Likewise.
1981 * builtins.c: Likewise.
1982 * cfgcleanup.c: Likewise.
1983 * cfgexpand.c: Likewise.
1984 * cfgloopanal.c: Likewise.
1985 * cgraph.c: Likewise.
1986 * combine.c: Likewise.
1987 * common/config/aarch64/aarch64-common.c: Likewise.
1988 * common/config/gcn/gcn-common.c: Likewise.
1989 * common/config/ia64/ia64-common.c: Likewise.
1990 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1991 * common/config/rs6000/rs6000-common.c: Likewise.
1992 * common/config/sh/sh-common.c: Likewise.
1993 * config/aarch64/aarch64.c: Likewise.
1994 * config/alpha/alpha.c: Likewise.
1995 * config/arm/arm.c: Likewise.
1996 * config/avr/avr.c: Likewise.
1997 * config/csky/csky.c: Likewise.
1998 * config/i386/i386-builtins.c: Likewise.
1999 * config/i386/i386-expand.c: Likewise.
2000 * config/i386/i386-features.c: Likewise.
2001 * config/i386/i386-options.c: Likewise.
2002 * config/i386/i386.c: Likewise.
2003 * config/ia64/ia64.c: Likewise.
2004 * config/rs6000/rs6000-logue.c: Likewise.
2005 * config/rs6000/rs6000.c: Likewise.
2006 * config/s390/s390.c: Likewise.
2007 * config/sparc/sparc.c: Likewise.
2008 * config/visium/visium.c: Likewise.
2009 * coverage.c: Likewise.
2010 * cprop.c: Likewise.
2012 * cselib.c: Likewise.
2014 * emit-rtl.c: Likewise.
2015 * explow.c: Likewise.
2016 * final.c: Likewise.
2017 * fold-const.c: Likewise.
2020 * ggc-common.c: Likewise.
2021 * ggc-page.c: Likewise.
2022 * gimple-loop-interchange.cc: Likewise.
2023 * gimple-loop-jam.c: Likewise.
2024 * gimple-loop-versioning.cc: Likewise.
2025 * gimple-ssa-split-paths.c: Likewise.
2026 * gimple-ssa-sprintf.c: Likewise.
2027 * gimple-ssa-store-merging.c: Likewise.
2028 * gimple-ssa-strength-reduction.c: Likewise.
2029 * gimple-ssa-warn-alloca.c: Likewise.
2030 * gimple-ssa-warn-restrict.c: Likewise.
2031 * graphite-isl-ast-to-gimple.c: Likewise.
2032 * graphite-optimize-isl.c: Likewise.
2033 * graphite-scop-detection.c: Likewise.
2034 * graphite-sese-to-poly.c: Likewise.
2035 * graphite.c: Likewise.
2036 * haifa-sched.c: Likewise.
2037 * hsa-gen.c: Likewise.
2038 * ifcvt.c: Likewise.
2039 * ipa-cp.c: Likewise.
2040 * ipa-fnsummary.c: Likewise.
2041 * ipa-inline-analysis.c: Likewise.
2042 * ipa-inline.c: Likewise.
2043 * ipa-polymorphic-call.c: Likewise.
2044 * ipa-profile.c: Likewise.
2045 * ipa-prop.c: Likewise.
2046 * ipa-split.c: Likewise.
2047 * ipa-sra.c: Likewise.
2048 * ira-build.c: Likewise.
2049 * ira-conflicts.c: Likewise.
2050 * loop-doloop.c: Likewise.
2051 * loop-invariant.c: Likewise.
2052 * loop-unroll.c: Likewise.
2053 * lra-assigns.c: Likewise.
2054 * lra-constraints.c: Likewise.
2055 * modulo-sched.c: Likewise.
2056 * opt-suggestions.c: Likewise.
2058 * postreload-gcse.c: Likewise.
2059 * predict.c: Likewise.
2060 * reload.c: Likewise.
2061 * reorg.c: Likewise.
2062 * resource.c: Likewise.
2063 * sanopt.c: Likewise.
2064 * sched-deps.c: Likewise.
2065 * sched-ebb.c: Likewise.
2066 * sched-rgn.c: Likewise.
2067 * sel-sched-ir.c: Likewise.
2068 * sel-sched.c: Likewise.
2069 * shrink-wrap.c: Likewise.
2071 * targhooks.c: Likewise.
2072 * toplev.c: Likewise.
2073 * tracer.c: Likewise.
2074 * trans-mem.c: Likewise.
2075 * tree-chrec.c: Likewise.
2076 * tree-data-ref.c: Likewise.
2077 * tree-if-conv.c: Likewise.
2078 * tree-inline.c: Likewise.
2079 * tree-loop-distribution.c: Likewise.
2080 * tree-parloops.c: Likewise.
2081 * tree-predcom.c: Likewise.
2082 * tree-profile.c: Likewise.
2083 * tree-scalar-evolution.c: Likewise.
2084 * tree-sra.c: Likewise.
2085 * tree-ssa-ccp.c: Likewise.
2086 * tree-ssa-dom.c: Likewise.
2087 * tree-ssa-dse.c: Likewise.
2088 * tree-ssa-ifcombine.c: Likewise.
2089 * tree-ssa-loop-ch.c: Likewise.
2090 * tree-ssa-loop-im.c: Likewise.
2091 * tree-ssa-loop-ivcanon.c: Likewise.
2092 * tree-ssa-loop-ivopts.c: Likewise.
2093 * tree-ssa-loop-manip.c: Likewise.
2094 * tree-ssa-loop-niter.c: Likewise.
2095 * tree-ssa-loop-prefetch.c: Likewise.
2096 * tree-ssa-loop-unswitch.c: Likewise.
2097 * tree-ssa-math-opts.c: Likewise.
2098 * tree-ssa-phiopt.c: Likewise.
2099 * tree-ssa-pre.c: Likewise.
2100 * tree-ssa-reassoc.c: Likewise.
2101 * tree-ssa-sccvn.c: Likewise.
2102 * tree-ssa-scopedtables.c: Likewise.
2103 * tree-ssa-sink.c: Likewise.
2104 * tree-ssa-strlen.c: Likewise.
2105 * tree-ssa-structalias.c: Likewise.
2106 * tree-ssa-tail-merge.c: Likewise.
2107 * tree-ssa-threadbackward.c: Likewise.
2108 * tree-ssa-threadedge.c: Likewise.
2109 * tree-ssa-uninit.c: Likewise.
2110 * tree-switch-conversion.c: Likewise.
2111 * tree-vect-data-refs.c: Likewise.
2112 * tree-vect-loop.c: Likewise.
2113 * tree-vect-slp.c: Likewise.
2114 * tree-vrp.c: Likewise.
2116 * value-prof.c: Likewise.
2117 * var-tracking.c: Likewise.
2119 2019-11-12 Martin Liska <mliska@suse.cz>
2121 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
2122 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
2124 (asan_sanitize_allocas_p): Likewise.
2125 (asan_emit_stack_protection): Likewise.
2126 (asan_protect_global): Likewise.
2127 (instrument_derefs): Likewise.
2128 (instrument_builtin_call): Likewise.
2129 (asan_expand_mark_ifn): Likewise.
2130 * auto-profile.c (auto_profile): Likewise.
2131 * bb-reorder.c (copy_bb_p): Likewise.
2132 (duplicate_computed_gotos): Likewise.
2133 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
2134 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
2135 (try_crossjump_bb): Likewise.
2136 * cfgexpand.c (defer_stack_allocation): Likewise.
2137 (stack_protect_classify_type): Likewise.
2138 (pass_expand::execute): Likewise.
2139 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
2140 (estimate_reg_pressure_cost): Likewise.
2141 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
2142 * combine.c (combine_instructions): Likewise.
2143 (record_value_for_reg): Likewise.
2144 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
2145 (aarch64_option_default_params): Likewise.
2146 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
2147 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
2148 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
2149 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
2150 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
2151 (aarch64_allocate_and_probe_stack_space): Likewise.
2152 (aarch64_expand_epilogue): Likewise.
2153 (aarch64_override_options_internal): Likewise.
2154 * config/alpha/alpha.c (alpha_option_override): Likewise.
2155 * config/arm/arm.c (arm_option_override): Likewise.
2156 (arm_valid_target_attribute_p): Likewise.
2157 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
2158 * config/i386/i386.c (get_probe_interval): Likewise.
2159 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
2160 (ix86_max_noce_ifcvt_seq_cost): Likewise.
2161 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
2162 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
2163 (get_stack_clash_protection_guard_size): Likewise.
2164 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
2165 * config/s390/s390.c (allocate_stack_space): Likewise.
2166 (s390_emit_prologue): Likewise.
2167 (s390_option_override_internal): Likewise.
2168 * config/sparc/sparc.c (sparc_option_override): Likewise.
2169 * config/visium/visium.c (visium_option_override): Likewise.
2170 * coverage.c (get_coverage_counts): Likewise.
2171 (coverage_compute_profile_id): Likewise.
2172 (coverage_begin_function): Likewise.
2173 (coverage_end_function): Likewise.
2174 * cse.c (cse_find_path): Likewise.
2175 (cse_extended_basic_block): Likewise.
2176 (cse_main): Likewise.
2177 * cselib.c (cselib_invalidate_mem): Likewise.
2178 * dse.c (dse_step1): Likewise.
2179 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
2180 (get_max_insn_count): Likewise.
2181 (make_debug_insn_raw): Likewise.
2182 (init_emit): Likewise.
2183 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
2184 * final.c (compute_alignments): Likewise.
2185 * fold-const.c (fold_range_test): Likewise.
2186 (fold_truth_andor): Likewise.
2187 (tree_single_nonnegative_warnv_p): Likewise.
2188 (integer_valued_real_single_p): Likewise.
2189 * gcse.c (want_to_gcse_p): Likewise.
2190 (prune_insertions_deletions): Likewise.
2191 (hoist_code): Likewise.
2192 (gcse_or_cprop_is_too_expensive): Likewise.
2193 * ggc-common.c: Likewise.
2194 * ggc-page.c (ggc_collect): Likewise.
2195 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
2196 (MAX_DATAREFS): Likewise.
2197 (OUTER_STRIDE_RATIO): Likewise.
2198 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
2199 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
2200 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
2201 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
2202 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
2203 (imm_store_chain_info::output_merged_store): Likewise.
2204 (pass_store_merging::process_store): Likewise.
2205 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
2206 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
2207 (scop_to_isl_ast): Likewise.
2208 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
2209 (optimize_isl): Likewise.
2210 * graphite-scop-detection.c (build_scops): Likewise.
2211 * haifa-sched.c (set_modulo_params): Likewise.
2212 (rank_for_schedule): Likewise.
2213 (model_add_to_worklist): Likewise.
2214 (model_promote_insn): Likewise.
2215 (model_choose_insn): Likewise.
2216 (queue_to_ready): Likewise.
2217 (autopref_multipass_dfa_lookahead_guard): Likewise.
2218 (schedule_block): Likewise.
2219 (sched_init): Likewise.
2220 * hsa-gen.c (init_prologue): Likewise.
2221 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
2222 (cond_move_process_if_block): Likewise.
2223 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
2224 (merge_agg_lats_step): Likewise.
2225 (devirtualization_time_bonus): Likewise.
2226 (hint_time_bonus): Likewise.
2227 (incorporate_penalties): Likewise.
2228 (good_cloning_opportunity_p): Likewise.
2229 (ipcp_propagate_stage): Likewise.
2230 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2231 (set_switch_stmt_execution_predicate): Likewise.
2232 (analyze_function_body): Likewise.
2233 (compute_fn_summary): Likewise.
2234 * ipa-inline-analysis.c (estimate_growth): Likewise.
2235 * ipa-inline.c (caller_growth_limits): Likewise.
2236 (inline_insns_single): Likewise.
2237 (inline_insns_auto): Likewise.
2238 (can_inline_edge_by_limits_p): Likewise.
2239 (want_early_inline_function_p): Likewise.
2240 (big_speedup_p): Likewise.
2241 (want_inline_small_function_p): Likewise.
2242 (want_inline_self_recursive_call_p): Likewise.
2243 (edge_badness): Likewise.
2244 (recursive_inlining): Likewise.
2245 (compute_max_insns): Likewise.
2246 (early_inliner): Likewise.
2247 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2248 * ipa-profile.c (ipa_profile): Likewise.
2249 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2250 (ipa_analyze_node): Likewise.
2251 (ipcp_transform_function): Likewise.
2252 * ipa-split.c (consider_split): Likewise.
2253 * ipa-sra.c (allocate_access): Likewise.
2254 (process_scan_results): Likewise.
2255 (ipa_sra_summarize_function): Likewise.
2256 (pull_accesses_from_callee): Likewise.
2257 * ira-build.c (loop_compare_func): Likewise.
2258 (mark_loops_for_removal): Likewise.
2259 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2260 * loop-doloop.c (doloop_optimize): Likewise.
2261 * loop-invariant.c (gain_for_invariant): Likewise.
2262 (move_loop_invariants): Likewise.
2263 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2264 (decide_unroll_runtime_iterations): Likewise.
2265 (decide_unroll_stupid): Likewise.
2266 (expand_var_during_unrolling): Likewise.
2267 * lra-assigns.c (spill_for): Likewise.
2268 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2269 * modulo-sched.c (sms_schedule): Likewise.
2270 (DFA_HISTORY): Likewise.
2271 * opts.c (default_options_optimization): Likewise.
2272 (finish_options): Likewise.
2273 (common_handle_option): Likewise.
2274 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2276 * predict.c (get_hot_bb_threshold): Likewise.
2277 (maybe_hot_count_p): Likewise.
2278 (probably_never_executed): Likewise.
2279 (predictable_edge_p): Likewise.
2280 (predict_loops): Likewise.
2281 (expr_expected_value_1): Likewise.
2282 (tree_predict_by_opcode): Likewise.
2283 (handle_missing_profiles): Likewise.
2284 * reload.c (find_equiv_reg): Likewise.
2285 * reorg.c (redundant_insn): Likewise.
2286 * resource.c (mark_target_live_regs): Likewise.
2287 (incr_ticks_for_insn): Likewise.
2288 * sanopt.c (pass_sanopt::execute): Likewise.
2289 * sched-deps.c (sched_analyze_1): Likewise.
2290 (sched_analyze_2): Likewise.
2291 (sched_analyze_insn): Likewise.
2292 (deps_analyze_insn): Likewise.
2293 * sched-ebb.c (schedule_ebbs): Likewise.
2294 * sched-rgn.c (find_single_block_region): Likewise.
2295 (too_large): Likewise.
2296 (haifa_find_rgns): Likewise.
2297 (extend_rgns): Likewise.
2298 (new_ready): Likewise.
2299 (schedule_region): Likewise.
2300 (sched_rgn_init): Likewise.
2301 * sel-sched-ir.c (make_region_from_loop): Likewise.
2302 * sel-sched-ir.h (MAX_WS): Likewise.
2303 * sel-sched.c (process_pipelined_exprs): Likewise.
2304 (sel_setup_region_sched_flags): Likewise.
2305 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2306 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2307 * toplev.c (print_version): Likewise.
2308 (process_options): Likewise.
2309 * tracer.c (tail_duplicate): Likewise.
2310 * trans-mem.c (tm_log_add): Likewise.
2311 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2312 * tree-data-ref.c (split_constant_offset): Likewise.
2313 (compute_all_dependences): Likewise.
2314 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2315 * tree-inline.c (remap_gimple_stmt): Likewise.
2316 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2317 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2318 (create_parallel_loop): Likewise.
2319 * tree-predcom.c (determine_unroll_factor): Likewise.
2320 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2321 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2322 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2323 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2324 (dse_optimize_redundant_stores): Likewise.
2325 (dse_classify_store): Likewise.
2326 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2327 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2328 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2329 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2330 (try_peel_loop): Likewise.
2331 (tree_unroll_loops_completely): Likewise.
2332 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2333 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2334 (MAX_CONSIDERED_GROUPS): Likewise.
2335 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2336 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2337 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2338 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2339 (L1_CACHE_SIZE_BYTES): Likewise.
2340 (L2_CACHE_SIZE_BYTES): Likewise.
2341 (should_issue_prefetch_p): Likewise.
2342 (schedule_prefetches): Likewise.
2343 (determine_unroll_factor): Likewise.
2344 (volume_of_references): Likewise.
2345 (add_subscript_strides): Likewise.
2346 (self_reuse_distance): Likewise.
2347 (mem_ref_count_reasonable_p): Likewise.
2348 (insn_to_prefetch_ratio_too_small_p): Likewise.
2349 (loop_prefetch_arrays): Likewise.
2350 (tree_ssa_prefetch_arrays): Likewise.
2351 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
2352 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2353 (convert_mult_to_fma): Likewise.
2354 (math_opts_dom_walker::after_dom_children): Likewise.
2355 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2356 (hoist_adjacent_loads): Likewise.
2357 (gate_hoist_loads): Likewise.
2358 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2359 (compute_partial_antic_aux): Likewise.
2360 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
2361 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
2362 (vn_reference_lookup): Likewise.
2363 (do_rpo_vn): Likewise.
2364 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
2365 * tree-ssa-sink.c (select_best_block): Likewise.
2366 * tree-ssa-strlen.c (new_stridx): Likewise.
2367 (new_addr_stridx): Likewise.
2368 (get_range_strlen_dynamic): Likewise.
2369 (class ssa_name_limit_t): Likewise.
2370 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
2371 (create_variable_info_for_1): Likewise.
2372 (init_alias_vars): Likewise.
2373 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
2374 (tail_merge_optimize): Likewise.
2375 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
2376 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
2377 (thread_jumps::find_jump_threads_backwards): Likewise.
2378 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
2379 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
2380 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
2381 (jump_table_cluster::can_be_handled): Likewise.
2382 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
2383 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
2384 (param_switch_conversion_branch_ratio): Likewise.
2385 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
2386 (vect_enhance_data_refs_alignment): Likewise.
2387 (vect_prune_runtime_alias_test_list): Likewise.
2388 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
2389 (vect_get_datarefs_in_loop): Likewise.
2390 (vect_analyze_loop): Likewise.
2391 * tree-vect-slp.c (vect_slp_bb): Likewise.
2392 * tree-vectorizer.h: Likewise.
2393 * tree-vrp.c (find_switch_asserts): Likewise.
2394 (vrp_prop::check_mem_ref): Likewise.
2395 * tree.c (wide_int_to_tree_1): Likewise.
2396 (cache_integer_cst): Likewise.
2397 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
2398 (reverse_op): Likewise.
2399 (vt_find_locations): Likewise.
2401 2019-11-12 Martin Liska <mliska@suse.cz>
2403 * Makefile.in: Include params.opt.
2404 * flag-types.h (enum parloops_schedule_type): Add
2405 parloops_schedule_type used in params.opt.
2406 * params.opt: New file.
2408 2019-11-12 Martin Liska <mliska@suse.cz>
2410 * common.opt: Remove --param and --param= options.
2411 * opt-functions.awk: Mark CL_PARAMS for options
2412 that have Param keyword.
2413 * opts-common.c (decode_cmdline_options_to_array):
2414 Replace --param key=value with --param=key=value.
2415 * opts.c (print_filtered_help): Remove special
2417 (print_specific_help): Update title for params.
2418 (common_handle_option): Do not handle OPT__param.
2419 opts.h (SET_OPTION_IF_UNSET): New macro.
2420 * doc/options.texi: Document Param keyword.
2422 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2423 Frederik Harwath <frederik@codesourcery.com>
2424 Thomas Schwinge <thomas@codesourcery.com>
2427 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
2428 enumeration constant.
2429 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2430 (is_gimple_omp_offloaded): Likewise.
2431 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
2432 constant. Adjust the value of ORT_NONE accordingly.
2433 (is_gimple_stmt): Handle OACC_SERIAL.
2434 (oacc_default_clause): Handle ORT_ACC_SERIAL.
2435 (gomp_needs_data_present): Likewise.
2436 (gimplify_adjust_omp_clauses): Likewise.
2437 (gimplify_omp_workshare): Handle OACC_SERIAL.
2438 (gimplify_expr): Likewise.
2439 * omp-expand.c (expand_omp_target):
2440 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2441 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
2442 * omp-low.c (is_oacc_parallel): Rename function to...
2443 (is_oacc_parallel_or_serial): ... this.
2444 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2445 (scan_sharing_clauses): Adjust accordingly.
2446 (scan_omp_for): Likewise.
2447 (lower_oacc_head_mark): Likewise.
2448 (convert_from_firstprivate_int): Likewise.
2449 (lower_omp_target): Likewise.
2450 (check_omp_nesting_restrictions): Handle
2451 GF_OMP_TARGET_KIND_OACC_SERIAL.
2452 (lower_oacc_reductions): Likewise.
2453 (lower_omp_target): Likewise.
2454 * tree.def (OACC_SERIAL): New tree code.
2455 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
2457 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
2459 2019-11-12 Jakub Jelinek <jakub@redhat.com>
2462 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
2463 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
2465 PR tree-optimization/92452
2466 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
2467 into NULL_TREE, set up_bound to NULL_TREE instead of computing
2470 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
2472 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
2475 2019-11-12 Alan Modra <amodra@gmail.com>
2477 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
2478 element of unspec vec.
2479 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
2481 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
2482 (tls_gd_pcrel, tls_ld_pcrel): New insns.
2483 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
2484 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
2486 2019-11-12 Alan Modra <amodra@gmail.com>
2488 * config/rs6000/rs6000.opt (mtls-markers): Delete.
2489 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
2490 (IS_NOMARK_TLSGETADDR): Likewise.
2491 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
2492 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
2493 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
2494 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
2495 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
2496 (rs6000_indirect_call_template_1): Likewise.
2497 (rs6000_pltseq_template): Likewise.
2498 (rs6000_opt_vars): Remove "tls-markers" entry.
2499 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
2501 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
2502 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
2503 (pltseq_plt_pcrel<mode>): Likewise.
2504 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
2505 (call_value_local64): Likewise.
2506 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
2507 output and length attribute sub-expression.
2508 (call_value_nonlocal_sysv<mode>),
2509 (call_value_nonlocal_sysv_secure<mode>),
2510 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
2511 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
2512 (call_value_indirect_pcrel<mode>): Likewise.
2513 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
2514 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
2515 * configure: Regenerate.
2516 * config.in: Regenerate.
2518 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
2520 * config/rs6000/predicates.md (prefixed_memory): New predicate.
2521 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
2522 address being a prefixed load/store.
2523 (stack_protect_testdi): Deal with either address being a prefixed
2526 2019-11-11 Jakub Jelinek <jakub@redhat.com>
2529 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
2530 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
2533 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
2535 PR tree-optimization/92420
2536 * tree-vect-stmts.c (get_negative_load_store_type): Move further
2538 (get_group_load_store_type): Use it for reversed SLP accesses.
2540 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
2542 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
2544 (ipcp_transformation_t::duplicate): Break out from ...
2545 (ipa_node_params_t::duplicate): ... here; add copying of agg
2547 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
2548 (ipcp_transformation_t): Add duplicate.
2550 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
2553 * doc/install.texi: Document that the minimum MPFR version is
2556 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2558 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
2559 use new register constraint letters.
2561 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2563 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
2564 as well, if interesting recover the symbol and re-legitimize the
2567 2019-11-11 Martin Liska <mliska@suse.cz>
2569 * dbgcnt.def (DEBUG_COUNTER): Sort counters
2572 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
2574 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
2575 account when checking if there are enough iterations to vectorize
2578 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
2579 Kwok Cheung Yeung <kcy@codesourcery.com>
2581 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
2582 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
2583 (LANG_HOOKS_DECLS): Rename also here.
2584 * langhooks.h (lang_hooks_for_decls): Rename
2585 omp_is_optional_argument to omp_check_optional_argument; take
2586 additional bool argument.
2587 * omp-general.h (omp_check_optional_argument): Likewise.
2588 * omp-general.h (omp_check_optional_argument): Likewise.
2589 * omp-low.c (lower_omp_target): Update calls; handle absent
2590 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
2592 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
2595 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
2596 -fPIC and -shared the last to create offload image.
2598 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2600 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
2603 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
2604 (config.status): Use/depend on it.
2605 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
2606 * configure: Regenerate.
2608 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
2610 PR tree-optimization/88760
2611 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
2612 * gcc/common/config/rs6000/rs6000-common.c
2613 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
2614 Turn on -funroll-loops and -munroll-only-small-loops.
2615 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
2616 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2617 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
2618 Turn off -munroll-only-small-loops for explicit -funroll-loops.
2619 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
2620 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
2622 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
2624 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2625 Make scalar_load, vector_load, unaligned_load and
2626 vector_gather_load cost more to conform hardware latency and
2629 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
2631 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
2632 (MACHO_SYMBOL_LINKER_VIS_P): New.
2634 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
2636 * lra-spills.c (assign_spill_hard_regs): Do not spill into
2637 registers in eliminable_regset.
2639 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2641 * ipa-inline.c (compute_uninlined_call_time,
2642 compute_inlined_call_time): Take edge frequency as
2643 parameter rather than computing it by itself.
2644 (big_speedup_p, edge_badness): Manually CSE sreal
2645 frequency calculations.
2647 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2649 * profile-count.c (profile_count::to_sreal_scale): Short circuit
2650 case where profiles are same.
2652 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2654 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
2656 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2658 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
2659 args summaries of inlined edge unless it holds info about
2660 described reference.
2662 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2664 * config/rs6000/rs6000.md (CC_any): New mode iterator.
2665 (*movcc_internal1): Rename to...
2666 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
2668 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2670 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
2671 (cgraph_node::create_virtual_clone): Copy it.
2672 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
2674 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
2675 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
2677 (propagate_constants_across_call): If callee is not analyzed, give up.
2678 (propagate_constants_topo): Lower to bottom latties of all callees of
2679 functions with ipa-cp disabled.
2680 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
2681 (cgraph_edge_brings_value_p): Check for availability first.
2682 (create_specialized_node): Set ipcp_clone.
2683 (ipcp_store_bits_results): Check that info is present.
2684 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
2686 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
2687 conservative when callee summary is missing.
2688 (remap_edge_summaries): Lookup call summary only when needed.
2689 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
2690 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
2692 (ipa_analyze_node): Use get_create.
2693 (propagate_controlled_uses): Do not propagate when function is not
2695 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
2696 (ipa_read_node_info): Use get_create.
2697 * ipa-prop.h (IPA_NODE_REF): Use get.
2698 (IPA_NODE_REF_GET_CREATE): New.
2700 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2702 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
2705 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2707 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
2708 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2709 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
2710 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2712 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2714 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
2715 capping the growth cumulated.
2716 (offline_size): Break out from ...
2717 (estimate_growth): ... here.
2718 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
2720 (growth_likely_positive): Turn to ...
2721 (growth_positive_p): Re-implement.
2722 * ipa-inline.h (growth_likely_positive): Remove.
2723 (growth_positive_p): Declare.
2724 * ipa-inline.c (want_inline_small_function_p): Use
2726 (want_inline_function_to_all_callers_p): Likewise.
2728 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2730 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
2731 calculation of min_size.
2732 (ipa_update_overall_fn_summary): Likewise.
2734 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2736 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
2737 estimate_edge_devirt_benefit when not computing hints;
2738 do not compute time when not asked for.
2739 (estimate_calls_size_and_time): Pass NULL hints and time when
2740 these are not computed; do not evaluate hint predicates when these are
2742 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
2745 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2747 PR tree-optimization/92401
2748 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
2749 if res_op->code is an expression with code length 1.
2750 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
2751 if res_op->code is an expression with code length 2.
2752 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
2753 if res_op->code is an expression with code length 3.
2755 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
2757 * config/darwin.c (machopic_mcount_stub_name): Validate the
2758 symbol stub name when it is created.
2759 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
2762 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2764 * symtab.c: Fix comment typos.
2765 * cgraphunit.c: Likewise.
2766 * cgraph.h: Likewise.
2767 * cgraphclones.c: Likewise.
2768 * cgraph.c: Likewise.
2769 * varpool.c: Likewise.
2770 * tree-ssa-strlen.c: Likewise.
2771 * ipa-sra.c: Likewise.
2772 (scan_expr_access, check_all_callers_for_issues): Fix typo
2775 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
2777 * config/darwin-protos.h: Add include quard.
2779 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
2781 * range-op.h (range_operator::fold_range): Return result in a
2782 reference parameter instead of by value.
2783 (range_operator::wi_fold): Same.
2784 * range-op.cc (range_operator::wi_fold): Return result in a reference
2785 parameter instead of by value.
2786 (range_operator::fold_range): Same.
2787 (value_range_from_overflowed_bounds): Same.
2788 (value_range_with_overflow): Same
2789 (create_possibly_reversed_range): Same.
2790 (operator_equal::fold_range): Same.
2791 (operator_not_equal::fold_range): Same.
2792 (operator_lt::fold_range): Same.
2793 (operator_le::fold_range): Same.
2794 (operator_gt::fold_range): Same.
2795 (operator_ge::fold_range): Same.
2796 (operator_plus::wi_fold): Same.
2797 (operator_plus::op1_range): Change call to fold_range.
2798 (operator_plus::op2_range): Change call to fold_range.
2799 (operator_minus::wi_fold): Return result via reference parameter.
2800 (operator_minus::op1_range): Change call to fold_range.
2801 (operator_minus::op2_range): Change call to fold_range.
2802 (operator_min::wi_fold): Return result via reference parameter.
2803 (operator_max::wi_fold): Same.
2804 (cross_product_operator::wi_cross_product): Same.
2805 (operator_mult::wi_fold): Same.
2806 (operator_div::wi_fold): Same.
2807 (operator_div op_floor_div): Fix whitespace.
2808 (operator_exact_divide::op1_range): Change call to fold_range.
2809 (operator_lshift::fold_range): Return result via reference parameter.
2810 (operator_lshift::wi_fold): Same.
2811 (operator_rshift::fold_range): Same.
2812 (operator_rshift::wi_fold): Same.
2813 (operator_cast::fold_range): Same.
2814 (operator_cast::op1_range): Change calls to fold_range.
2815 (operator_logical_and::fold_range): Return result via reference.
2816 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2817 (operator_bitwise_and::wi_fold): Return result via reference.
2818 (operator_logical_or::fold_range): Same.
2819 (operator_bitwise_or::wi_fold): Same.
2820 (operator_bitwise_xor::wi_fold): Same.
2821 (operator_trunc_mod::wi_fold): Same.
2822 (operator_logical_not::fold_range): Same.
2823 (operator_bitwise_not::fold_range): Same.
2824 (operator_bitwise_not::op1_range): Change call to fold_range.
2825 (operator_cst::fold_range): Return result via reference.
2826 (operator_identity::fold_range): Same.
2827 (operator_abs::wi_fold): Same.
2828 (operator_absu::wi_fold): Same.
2829 (operator_negate::fold_range): Same.
2830 (operator_negate::op1_range): Change call to fold_range.
2831 (operator_addr_expr::fold_range): Return result via reference.
2832 (operator_addr_expr::op1_range): Change call to fold_range.
2833 (operator_pointer_plus::wi_fold): Return result via reference.
2834 (operator_pointer_min_max::wi_fold): Same.
2835 (operator_pointer_and::wi_fold): Same.
2836 (operator_pointer_or::wi_fold): Same.
2837 (range_op_handler): Change call to fold_range.
2839 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2841 (range_fold_unary_symbolics_p): Same.
2842 (range_fold_binary_expr): Same.
2843 (range_fold_unary_expr): Same.
2845 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2847 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2848 vector type as an argument rather than reading it from the
2850 (vect_create_epilog_for_reduction): Update accordingly.
2851 (vectorizable_reduction): Likewise.
2852 (vect_transform_cycle_phi): Likewise.
2854 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2856 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2857 the comparison codes that make sense for the mode used, and only the
2858 codes that can be done with a single branch instruction.
2860 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2862 PR tree-optimization/92351
2863 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2864 peeling the main loop for alignment, make sure to set the misalignment
2865 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2867 2019-11-08 Richard Biener <rguenther@suse.de>
2869 * dbgcnt.def (ivopts_loop): Add.
2870 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2871 ivopts_loop before optimizing a loop.
2873 2019-11-08 Richard Biener <rguenther@suse.de>
2876 * tree-inline.c (declare_return_variable): Properly handle
2877 type mismatches for the return slot.
2879 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2882 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2883 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2885 (got_helper_needed): New static variable.
2886 (output_load_pcrel_sym): New function.
2887 (get_pc_thunk_name): Remove after inlining...
2888 (load_got_register): ...here. Rework the initialization of the GOT
2889 register and of the GOT helper.
2890 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2891 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2892 helper must be emitted. Use output_asm_insn instead of fprintf.
2893 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2894 if optimization is enabled.
2895 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2896 by calling output_load_pcrel_sym.
2898 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2900 * tree-sra.c (create_access): Delay disqualifying the base
2901 for poly_int values until we know we have a base.
2903 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2905 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2906 for loops with SIMDUID set. Enable epilogue vectorization for loops
2907 with SIMDLEN set after finding a main loop with a VF that matches it.
2909 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2912 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2913 value only, return non-NULL if there is a single non-clobber
2914 constituent store even if there are constituent clobbers and return
2915 one of clobber constituent stores if all constituent stores are
2917 (split_group): Handle clobbers.
2918 (imm_store_chain_info::output_merged_store): When computing
2919 bzero_first, look after all clobbers at the start. Don't count
2920 clobber stmts in orig_num_stmts, except if the first orig store is
2921 a clobber covering the whole area and split_stores cover the whole
2922 area, consider equal number of stmts ok. Punt if split_stores
2923 contains only ->orig stores and their number plus number of original
2924 clobbers is equal to original number of stmts. For ->orig, look past
2925 clobbers in the constituent stores.
2926 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2928 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2930 (store_valid_for_store_merging_p): Allow clobber stmts.
2931 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2934 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2935 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2937 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2938 force creation of a unique data.stack_parm slot.
2940 2019-11-08 Richard Biener <rguenther@suse.de>
2942 * genmatch.c (expr::gen_transform): Use the resimplify
2943 member function instead of hard-coding the gimple_resimplifyN variant.
2944 (dt_simplify::gen_1): Likewise.
2946 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2948 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2951 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2953 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2954 instead of INTEGER_CST.
2956 2019-11-08 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/92324
2959 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2960 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2961 sign-conversions as necessary.
2962 (vectorizable_reduction): Reject conversions in the chain
2963 that are not sign-conversions, base analysis on a non-converting
2964 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2965 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2967 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2968 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2970 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2973 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2974 Fix a missing '-' when displaying these options in the
2977 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2979 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2981 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2983 * config/aarch64/aarch64-builtins.c
2984 (aarch64_builtin_vectorized_function): Remove bswap handling.
2986 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2988 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2989 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2990 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2991 Treat the vector types as indivisible.
2993 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2995 * optabs.def (gather_load_optab, mask_gather_load_optab)
2996 (scatter_store_optab, mask_scatter_store_optab): Turn into
2997 conversion optabs, with the offset mode given explicitly.
2998 * doc/md.texi: Update accordingly.
2999 * config/aarch64/aarch64-sve-builtins-base.cc
3000 (svld1_gather_impl::expand): Likewise.
3001 (svst1_scatter_impl::expand): Likewise.
3002 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
3003 (expand_scatter_store_optab_fn): Likewise.
3004 (direct_gather_load_optab_supported_p): Likewise.
3005 (direct_scatter_store_optab_supported_p): Likewise.
3006 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
3008 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
3009 (internal_gather_scatter_fn_supported_p): Replace the offset sign
3010 argument with the offset vector type. Require the two vector
3011 types to have the same number of elements but allow their element
3012 sizes to be different. Treat the optabs as conversion optabs.
3013 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
3014 prototype accordingly.
3015 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
3016 (supports_vec_convert_optab_p): ...this new function.
3017 (supports_vec_gather_load_p): Update accordingly.
3018 (supports_vec_scatter_store_p): Likewise.
3019 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
3020 Replace the offset sign and bits parameters with a scalar type tree.
3021 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
3022 Pass back the offset vector type instead of the scalar element type.
3023 Allow the offset to be wider than the memory elements. Search for
3024 an offset type that the target supports, stopping once we've
3025 reached the maximum of the element size and pointer size.
3026 Update call to internal_gather_scatter_fn_supported_p.
3027 (vect_check_gather_scatter): Update calls accordingly.
3028 When testing a new scale before knowing the final offset type,
3029 check whether the scale is supported for any signed or unsigned
3030 offset type. Check whether the target supports the source and
3031 target types of a conversion before deciding whether to look
3032 through the conversion. Record the chosen offset_vectype.
3033 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
3034 (vect_recog_gather_scatter_pattern): Get the scalar offset type
3035 directly from the gs_info's offset_vectype instead. Pass a zero
3036 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
3037 * tree-vect-stmts.c (check_load_store_masking): Update call to
3038 internal_gather_scatter_fn_supported_p, passing the offset vector
3039 type recorded in the gs_info.
3040 (vect_truncate_gather_scatter_offset): Update call to
3041 vect_check_gather_scatter, leaving it to search for a valid
3043 (vect_use_strided_gather_scatters_p): Convert the offset to the
3044 element type of the gs_info's offset_vectype.
3045 (vect_get_gather_scatter_ops): Get the offset vector type directly
3047 (vect_get_strided_load_store_ops): Likewise.
3048 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
3049 and IFN_MASK_GATHER_LOAD.
3050 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
3051 (gather_load<mode><v_int_equiv>): ...this.
3052 (mask_gather_load<mode>): Rename to...
3053 (mask_gather_load<mode><v_int_equiv>): ...this.
3054 (scatter_store<mode>): Rename to...
3055 (scatter_store<mode><v_int_equiv>): ...this.
3056 (mask_scatter_store<mode>): Rename to...
3057 (mask_scatter_store<mode><v_int_equiv>): ...this.
3059 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
3062 * config/rs6000/predicates.md
3063 (signed_or_equality_comparison_operator): New predicate.
3064 (unsigned_or_equality_comparison_operator): Likewise.
3065 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
3066 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
3067 * config/rs6000/vector.md
3068 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
3069 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
3070 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
3071 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
3072 vector modes and same-size integer vector modes.
3073 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
3074 (vector_lt<mode> for VEC_F): New expand.
3075 (vector_le<mode> for VEC_F): Likewise.
3076 (vector_ne<mode> for VEC_F): Likewise.
3077 (vector_unge<mode> for VEC_F): Likewise.
3078 (vector_ungt<mode> for VEC_F): Likewise.
3079 (vector_unle<mode> for VEC_F): Likewise.
3080 (vector_unlt<mode> for VEC_F): Likewise.
3081 (vector_uneq<mode>): Expose name.
3082 (vector_ltgt<mode>): Likewise.
3083 (vector_unordered<mode>): Likewise.
3084 (vector_ordered<mode>): Likewise.
3086 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
3089 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
3090 Enhance ix86_expand_vector_init_concat.
3092 2019-11-08 Joseph Myers <joseph@codesourcery.com>
3094 * doc/invoke.texi (-Wold-style-definition): Document () not being
3095 considered an old-style definition for C2x.
3097 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
3099 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
3101 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
3102 insn patterns using ldcw instruction.
3103 (memory_barrier): Remove insn pattern using sync instruction.
3104 * config/pa/pa.opt (coherent-ldcw): New option.
3105 (ordered): New option.
3107 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3109 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
3112 2019-11-07 Jakub Jelinek <jakub@redhat.com>
3114 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
3115 typo - mistmatch -> mismatch.
3116 * ipa-profile.c (ipa_profile): Likewise.
3117 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
3118 - mistmatch -> mismatch.
3120 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
3122 * simplify-rtx.c (comparison_to_mask): New function.
3123 (mask_to_comparison): New function.
3124 (simplify_logical_relational_operation): New function.
3125 (simplify_binary_operation_1): Call
3126 simplify_logical_relational_operation.
3128 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
3131 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
3132 modes for integer constants.
3134 2019-11-07 Jan Hubicka <jh@suse.cz>
3137 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
3140 2019-11-07 Jan Hubicka <jh@suse.cz>
3142 * optc-save-gen.awk: Generate cl_target_option_free
3143 and cl_optimization_option_free.
3144 * opth-en.awk: Declare cl_target_option_free
3145 and cl_optimization_option_free.
3146 * tree.c (free_node): Use it.
3148 2019-11-06 Jan Hubicka <jh@suse.cz>
3150 * lto-streamer-in.c: Include alloc-pool.h.
3151 (freeing_string_slot_hasher): Remove.
3152 (string_slot_allocator): New object allocator.
3153 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
3154 (file_name_obstack): New obstack.
3155 (canon_file_name): Allocate in obstack and allocator.
3156 (lto_reader_init): Initialize obstack and allocator.
3157 (lto_free_file_name_hash): New function.
3158 * lto-streamer.h (lto_free_file_name_hash): New.
3160 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
3162 PR tree-optimization/89134
3163 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
3164 * params.def: Add min-loop-cond-split-prob.
3165 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
3166 outside checks on loop into the function.
3167 (split_info): New class.
3168 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
3169 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
3170 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
3171 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
3172 (stmt_semi_invariant_p, branch_removable_p): Likewise.
3173 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
3174 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
3175 (split_loop_on_cond): Likewise.
3176 (tree_ssa_split_loops): Add loop split on conditional statement.
3178 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
3180 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
3183 2019-11-07 Richard Biener <rguenther@suse.de>
3185 PR tree-optimization/92405
3186 * tree-vect-loop.c (vectorizable_reduction): Appropriately
3187 restrict lane-reducing ops to single stmt chains.
3189 2019-11-07 Martin Jambor <mjambor@suse.cz>
3192 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
3193 * cgraph.h (gimple_check_call_matching_types): Remove
3194 * cgraph.c (gimple_check_call_args): Likewise.
3195 (gimple_check_call_matching_types): Likewise.
3196 (symbol_table::create_edge): Do not call
3197 gimple_check_call_matching_types.
3198 (cgraph_edge::make_direct): Likewise.
3199 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
3200 * value-prof.h (check_ic_target): Remove.
3201 * value-prof.c (check_ic_target): Remove.
3202 (gimple_ic_transform): Do nat call check_ic_target.
3203 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
3204 (afdo_indirect_call): Likewise.
3205 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
3206 gimple_check_call_matching_types.
3207 * ipa-inline.c (early_inliner): Likewise.
3209 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3211 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
3212 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
3213 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
3214 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3215 * config/arm/iterators.md (USSAT16): New int_iterator.
3216 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
3218 * config/arm/predicates.md (ssat16_imm): New predicate.
3219 (usat16_imm): Likewise.
3220 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
3222 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3224 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
3226 (arm_<simd32_op>): New define_expands.
3227 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3228 __smuad, __smuadx): Define.
3229 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3230 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3231 (SIMD32_BINOP_Q): Likewise.
3232 (simd32_op): Handle the above.
3233 * config/arm/unspecs.md: Define unspecs for the above.
3235 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3237 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3238 * config/arm/arm.md (APSRGE_REGNUM): Define.
3239 (arm_<simd32_op>): New define_insn.
3240 (arm_sel): Likewise.
3241 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3242 (CALL_USED_REGISTERS): Likewise.
3243 (REG_ALLOC_ORDER): Likewise.
3244 (FIRST_PSEUDO_REGISTER): Update value.
3245 (ARM_GE_BITS_READ): Define.
3246 * config/arm/arm.c (arm_conditional_register_usage): Clear
3247 APSRGE_REGNUM from operand_reg_set.
3248 (arm_ge_bits_access): Define.
3249 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3251 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3252 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3253 FAIL if ARM_GE_BITS_READ.
3254 (*arm_add<mode>3): New define_insn.
3255 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3256 (*arm_sub<mode>3): New define_insn.
3257 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3258 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3260 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3261 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3262 (simd32_op): Handle the above.
3263 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3264 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3265 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3266 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3268 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3270 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3271 (arm_smlabb): New define_expand.
3272 (*maddhisi4tb): Rename to...
3273 (maddhisi4tb): ... This.
3274 (*maddhisi4tt): Rename to...
3275 (maddhisi4tt): ... This.
3276 (arm_smlatb_setq): New define_insn.
3277 (arm_smlatb): New define_expand.
3278 (arm_smlatt_setq): New define_insn.
3279 (arm_smlatt): New define_expand.
3280 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3281 (arm_<smlaw_op>): New define_expand.
3282 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3283 __smlawb, __smlawt): Define.
3284 * config/arm_acle_builtins.def: Define builtins for the above.
3285 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3286 (slaw_op): New int_attribute.
3287 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3289 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3291 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3292 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3293 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3294 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3295 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3296 (ss_op): New code_attr.
3298 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3300 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3301 * config/arm/arm.md (APSRQ_REGNUM): Define.
3302 (add_setq): New define_subst.
3303 (add_clobber_q_name): New define_subst_attr.
3304 (add_clobber_q_pred): Likewise.
3305 (maddhisi4): Change to define_expand. Split into mult and add if
3307 (arm_maddhisi4): New define_insn.
3308 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3309 (*maddhisi4tt): Likewise.
3310 (arm_ssat): New define_expand.
3311 (arm_usat): Likewise.
3312 (arm_get_apsr): New define_insn.
3313 (arm_set_apsr): Likewise.
3314 (arm_saturation_occurred): New define_expand.
3315 (arm_set_saturation): Likewise.
3316 (*satsi_<SAT:code>): Rename to...
3317 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3318 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3319 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3320 (CALL_USED_REGISTERS): Mark apsrq.
3321 (FIRST_PSEUDO_REGISTER): Update value.
3322 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3323 (machine_function): Add q_bit_access.
3324 (ARM_Q_BIT_READ): Define.
3325 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3326 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3328 (arm_q_bit_access): Define.
3329 * config/arm/arm-builtins.c: Include stringpool.h.
3330 (arm_sat_binop_imm_qualifiers,
3331 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3332 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3333 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3334 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3335 SET_SAT_QUALIFIERS): Likewise.
3336 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3337 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3338 Handle 0 argument expander.
3339 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3340 (arm_check_builtin_call): Define.
3341 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3342 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3343 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3344 (arm_q_bit_access): Likewise.
3345 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3346 __saturation_occurred, __set_saturation_occurred): Define.
3347 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3348 saturation_occurred, set_saturation_occurred.
3349 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3350 (UNSPEC_APSR_READ): Likewise.
3351 (VUNSPEC_APSR_WRITE): Likewise.
3352 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
3353 (*arm_ssadd<mode>3): New define_insn.
3354 (sssub<mode>3): Convert to define_expand.
3355 (*arm_sssub<mode>3): New define_insn.
3356 (ssmulsa3): Convert to define_expand.
3357 (*arm_ssmulsa3): New define_insn.
3358 (usmulusa3): Convert to define_expand.
3359 (*arm_usmulusa3): New define_insn.
3360 (ssmulha3): FAIL if ARM_Q_BIT_READ.
3361 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
3362 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
3364 2019-11-07 Martin Liska <mliska@suse.cz>
3367 * cgraph.c (delete_function_version): Clear global
3368 variable version_info_node if equal to deleted
3371 2019-11-07 Martin Liska <mliska@suse.cz>
3373 * fold-const.c (operand_compare::operand_equal_p): Add comparison
3374 of CONSTRUCTOR_NO_CLEARING.
3375 (operand_compare::hash_operand): Likewise.
3377 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
3379 Support 64-bit double and 64-bit long double configurations.
3382 * config.gcc (tm_defines) [avr]: Set from --with-double=,
3383 --with-long-double=.
3384 * config/avr/t-multilib: Remove.
3385 * config/avr/t-avr: Output of genmultilib.awk is now fully
3386 dynamically generated and no more part of the repo.
3387 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
3388 Pass them down to...
3389 * config/avr/genmultilib.awk: ...here and handle them.
3390 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
3391 (-mlong-double=, avr_long_double). New option and var.
3392 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
3393 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
3394 Set default as requested by --with-double=
3395 (TARGET_HANDLE_OPTION): Define to this...
3396 (avr_handle_option): ...new hook worker.
3397 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
3398 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
3399 (avr_double_lib): New proto for spec function.
3400 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
3401 (DRIVER_SELF_SPECS): Call %:double-lib.
3402 * config/avr/avr.c (avr_option_override): Assert
3403 sizeof(long double) >= sizeof(double) for the target.
3404 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3405 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
3406 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
3407 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
3408 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
3409 New built-in define depending on --with-double=, --with-long-double=.
3410 * config/avr/driver-avr.c (avr_double_lib): New spec function.
3411 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
3412 * doc/install.texi (Cross-Compiler-Specific Options)
3413 <--with-double=, --with-long-double=>: Doc.
3415 2019-11-07 Richard Biener <rguenther@suse.de>
3417 * dbgcnt.def (gimple_unroll): New.
3418 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
3419 gimple_unroll debug counter before applying transform.
3420 (try_peel_loop): Likewise.
3422 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
3424 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
3425 frame pointer in multiple registers.
3426 (ira_setup_eliminable_regset): Setup eliminable_regset,
3427 ira_no_alloc_regs and regs_ever_live for frame pointer in
3430 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3432 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
3435 2019-11-06 Jan Hubicka <jh@suse.cz>
3437 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
3439 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
3440 Do not silently ignore summary corruptions.
3442 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3444 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
3445 the epilogue if there are peeled iterations for it to handle.
3447 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3449 * config/arc/arc.c (arc_split_ior): Add asserts.
3450 (arc_split_mov_const): Likewise.
3451 (arc_check_ior_const): Do not match known short immediate values.
3452 * config/arc/arc.md (movsi): Don't split predicated instructions
3455 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3457 * config/arc/arc.opt (mea): Update help string.
3458 * doc/invoke.texi(ARC): Update mea option info.
3460 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3462 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
3463 (zero_extendqisi2_ac): Likewise.
3464 (zero_extendhisi2_i): Likewise.
3465 (extendqihi2_i): Likewise.
3466 (extendqisi2_ac): Likewise.
3467 (extendhisi2_i): Likewise.
3469 2019-11-06 Richard Biener <rguenther@suse.de>
3471 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
3472 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
3473 Simplify single_defuse_cycle condition.
3475 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3477 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
3478 epilogue loop, make sure that the VF is small enough or that
3479 the epilogue loop can be fully-masked.
3481 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3483 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
3484 loop when we've finished, rather than returning directly from
3485 the loop. Use a local variable to track whether we're still
3486 searching for the preferred simdlen. Make vect_epilogues
3487 record whether the next iteration should try to treat the
3488 loop as an epilogue.
3490 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
3492 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
3493 __arc_hard_float__, __ARC_HARD_FLOAT__,
3494 __arc_soft_float__, __ARC_SOFT_FLOAT__
3496 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
3498 PR tree-optimization/92317
3499 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
3500 update phi's with constant phi arguments.
3502 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
3503 Alexandre Oliva <oliva@adacore.com>
3505 * common.opt (-fcallgraph-info[=]): New option.
3506 * doc/invoke.texi (Developer options): Document it.
3507 * opts.c (common_handle_option): Handle it.
3508 * builtins.c (expand_builtin_alloca): Record allocation if
3509 -fcallgraph-info=da.
3510 * calls.c (expand_call): If -fcallgraph-info, record the call.
3511 (emit_library_call_value_1): Likewise.
3512 * flag-types.h (enum callgraph_info_type): New type.
3513 * explow.c: Include stringpool.h.
3514 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
3515 * function.c (allocate_stack_usage_info): New.
3516 (allocate_struct_function): Call it for -fcallgraph-info.
3517 (prepare_function_start): Call it otherwise.
3518 (record_final_call, record_dynamic_alloc): New.
3519 * function.h (struct callinfo_callee): New.
3520 (CALLEE_FROM_CGRAPH_P): New.
3521 (struct callinfo_dalloc): New.
3522 (struct stack_usage): Add callees and dallocs.
3523 (record_final_call, record_dynamic_alloc): Declare.
3524 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
3525 object if -fcallgraph-info=da.
3526 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
3527 * print-tree.h (print_decl_identifier): Declare.
3528 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
3529 * print-tree.c: Include print-tree.h.
3530 (print_decl_identifier): New function.
3531 * toplev.c: Include print-tree.h.
3532 (callgraph_info_file): New global variable.
3533 (callgraph_info_external_printed): Likewise.
3534 (output_stack_usage): Rename to...
3535 (output_stack_usage_1): ... this. Make it static, add cf
3536 parameter. If -fcallgraph-info=su, print stack usage to cf.
3537 If -fstack-usage, use print_decl_identifier for
3539 (INDIRECT_CALL_NAME): New.
3540 (dump_final_node_vcg_start): New.
3541 (dump_final_callee_vcg, dump_final_node_vcg): New.
3542 (output_stack_usage): New.
3543 (lang_dependent_init): Open and start file if
3544 -fcallgraph-info. Allocated callgraph_info_external_printed.
3545 (finalize): If callgraph_info_file is not null, finish it,
3546 close it, and release callgraph_info_external_printed.
3548 2019-11-06 Gergö Barany <gergo@codesourcery.com>
3549 Frederik Harwath <frederik@codesourcery.com>
3550 Thomas Schwinge <thomas@codesourcery.com>
3552 * omp-low.c (struct omp_context): New fields
3553 local_reduction_clauses, outer_reduction_clauses.
3554 (new_omp_context): Initialize these.
3555 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
3556 (scan_omp_for): Check reduction clauses for incorrect nesting.
3558 2019-11-06 Jakub Jelinek <jakub@redhat.com>
3561 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
3562 operands with non-memory constraints.
3564 2019-11-05 Martin Sebor <msebor@redhat.com>
3566 PR tree-optimization/92373
3567 * tree.c (component_ref_size): Only consider initializers of objects
3568 of matching struct types.
3569 Return null for instances of interior zero-length arrays.
3571 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
3573 * doc/md.texi (Insn Splitting): Fix combiner documentation.
3575 2019-11-05 Jason Merrill <jason@redhat.com>
3577 PR tree-optimization/91825
3578 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
3580 2019-11-05 Jim Wilson <jimw@sifive.com>
3583 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
3584 optimize_insn_for_speed_p is true.
3586 2019-11-05 Martin Sebor <msebor@redhat.com>
3590 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
3592 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
3593 name and location for a temporary variable.
3595 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3597 * tree-vrp.c (value_range::value_range): Fix whitespace.
3598 (defined_ranges_p): Same.
3599 (range_fold_binary_symbolics_p): Same.
3600 (value_range::intersect_helper): Same.
3601 (value_range::union_helper): Same.
3602 * tree-vrp.h (range_fold_binary_expr): Same.
3604 2019-11-04 Martin Sebor <msebor@redhat.com>
3608 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
3609 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
3610 of message printed in a warning for empty arrays.
3611 (vrp_prop::check_mem_ref): Also handle function parameters and
3614 2019-11-05 Richard Biener <rguenther@suse.de>
3616 PR tree-optimization/92371
3617 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
3618 on the original stmt of live stmts in the chain.
3619 (vectorizable_live_operation): Look at the original stmt when
3620 checking STMT_VINFO_REDUC_DEF.
3622 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3624 * gimple-fold.c, gimple-loop-versioning.cc,
3625 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
3626 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
3627 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
3628 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
3629 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
3630 value_range_equiv, and value_range_base to value_range.
3632 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3634 * expr.c (build_personality_function): Fix generated type to
3635 match actual personality functions.
3637 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3639 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
3640 enough bytes for the NULL character.
3642 2019-11-05 Richard Biener <rguenther@suse.de>
3644 PR tree-optimization/92280
3645 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
3646 had a single use do not create a new CTOR.
3647 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
3648 BIT_FIELD_REF of a CTOR via GENERIC.
3650 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
3652 * config/s390/s390.c (s390_vector_alignment): Check if the value
3653 fits into uhwi before using it.
3655 2019-11-05 Martin Liska <mliska@suse.cz>
3657 * symbol-summary.h: Use ggc_delete.
3659 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3661 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
3662 Change vec_perm field to 10.
3664 2019-11-05 Arnaud Charlet <charlet@adacore.com>
3666 * doc/install.texi: Further fix syntax for html generation.
3668 2019-11-05 Martin Liska <mliska@suse.cz>
3670 * symbol-summary.h: Rename allocator to m_allocator and
3673 2019-11-05 Richard Biener <rguenther@suse.de>
3675 PR tree-optimization/92324
3676 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
3677 all signed or unsigned operations.
3679 2019-11-05 Jan Hubicka <jh@suse.cz>
3681 * hsa-brig.c: Include alloc-pool.h
3682 * hsa-dump.c: Likewise.
3683 * hsa-gen.c: Likewise.
3684 * hse-regalloc.c: Likewise.
3685 * ipa-hsa.c: Likewise.
3686 * ipa-predicate.c: Likewise.
3687 * ipa-reference.c: Likewise.
3688 * ipa-sra.c: Likewise.
3689 * omp-expand.c: Likewise.
3690 * omp-general.c: Likewise.
3691 * omp-low.c: Likewise.
3692 * sumbol-summary.h (function_summary_base): Add allocator.
3693 (function_summary<T *>::function_summary): Update construction.
3694 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
3695 (call_summary_base): Add allcator.
3696 (call_summary<T *>::call_summary): Update construction.
3697 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
3699 2019-11-05 Jakub Jelinek <jakub@redhat.com>
3701 PR tree-optimization/91945
3702 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
3703 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
3706 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3708 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
3709 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
3710 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
3711 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
3712 (vrp_set_zero_nonzero_bits): Move to...
3713 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
3714 (vr_values::simplify_bit_ops_using_ranges): Rename
3715 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
3717 2019-11-05 Martin Liska <mliska@suse.cz>
3720 * fold-const.c (operand_compare::hash_operand): Remove
3721 FIELD_DECL handling.
3723 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3725 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
3726 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
3729 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3731 * tree-vrp.c (value_range_base::operator==): Use equal_p to
3732 properly handle symbolics.
3733 (range_compatible_p): Remove.
3735 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
3737 * common.opt (-fabi-version): Document =14.
3738 * doc/invoke.texi (C++ Dialect Options): Likewise.
3740 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3742 * tree-vrp.c (value_range_base::set): Do not special case pointers.
3744 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
3746 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
3747 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3748 gcn_omp_device_kind_arch_isa.
3749 * config/gcn/t-omp-device: New file.
3750 * configure.ac: Support gcn for omp_device_property.
3751 * configure: Regenerate.
3753 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3755 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
3756 (vrp_val_max): Same.
3757 (vrp_val_is_min): Same.
3758 (vrp_val_is_max): Same.
3759 (value_range_base::nonzero_p): Remove last argument to
3761 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
3762 (vrp_val_max): Same.
3763 (vrp_val_is_min): Same.
3764 (vrp_val_is_max): Same.
3765 (value_range_base::set_varying): Remove last argument to vrp_val*.
3766 (value_range_base::dump): Same.
3767 (value_range_base::set): Same.
3768 (value_range_base::normalize_symbolics): Same.
3769 (value_range_base::num_pairs): Same.
3770 (value_range_base::lower_bound): Same.
3771 (value_range_base::upper_bound): Same.
3772 (ranges_from_anti_range): Remove handle_pointers argument.
3773 (value_range_base::singleton_p): Remove last argument to
3774 ranges_from_anti_range.
3776 2019-11-04 Jan Hubicka <jh@suse.cz>
3778 * ipa-reference.c (init_function_info): Initialize
3779 info->global.statics_read.
3781 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3783 * tree-vrp.c (value_range_base::invert): Use constructors to build
3786 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3788 * tree-vrp.c (range_int_cst_singleton_p): Remove.
3789 * tree-vrp.h (range_int_cst_singleton_p): Remove.
3791 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3793 * tree-vrp.c (value_range_base::normalize_addresses): Handle
3796 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3798 * tree-vrp.c (dump_assert_info): New.
3799 (dump_asserts_info): New.
3801 2019-11-04 Jan Hubicka <jh@suse.cz>
3803 * ipa-inline-transform.c: Include ipa-utils.h
3804 (inline_call): Set thunk_expansion flag.
3805 * ipa-utils.h (thunk_expansion): Declare.
3806 * ipa-devirt.c (thunk_expansion): New global var.
3807 (devirt_node_removal_hook): Do not invalidate cache while
3808 doing thunk expansion.
3810 2019-11-04 Tamar Christina <tamar.christina@arm.com>
3812 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
3814 2019-11-04 Martin Sebor <msebor@redhat.com>
3816 PR tree-optimization/92349
3817 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3818 memebers have constant sizes.
3820 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3822 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3824 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3825 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3828 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3830 * expr.c (store_constructor): Modify to handle single element vectors.
3831 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3833 (vect_slp_check_for_constructors): New function.
3834 (vect_slp_analyze_bb_1): Call new function to check for vector
3836 (vectorize_slp_instance_root_stmt): New function.
3837 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3839 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3841 2019-11-04 Richard Biener <rguenther@suse.de>
3843 PR tree-optimization/92345
3844 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3845 we produced a reduction chain.
3846 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3847 LOOP_VINFO_REDUCTIONS.
3849 2019-11-04 Jan Hubicka <jh@suse.cz>
3851 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3852 duplicate summaries.
3853 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3855 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3856 access call summaries.
3857 (dump_ipa_call_summary): Be ready for missing edge summaries.
3858 (analyze_function_body): Use get instead of get_create to access
3860 (estimate_calls_size_and_time): Do not access summaries of
3861 inlined edges; sanity check they are missing.
3862 (ipa_call_context::estimate_size_and_time): Use get instead
3863 of get_create to access node summary.
3864 (inline_update_callee_summaries): Do not update depth of
3866 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3868 (ipa_merge_fn_summary_after_inlining): Use get instead
3870 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3871 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3873 (initialize_growth_caches): Update.
3874 (do_estimate_edge_time): Remove redundant copy of context.
3875 (ipa_remove_from_growth_caches): New function.
3876 * ipa-inline.c (flatten_function): Update overall summary
3877 only when optimizing.
3878 (inline_to_all_callers): Update overall summary of function
3880 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3881 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3884 2019-11-04 Richard Biener <rguenther@suse.de>
3886 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3887 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3889 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3891 * ggc-common.c: Include system.h before malloc.h.
3893 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3895 * configure.ac: Pass --enable-obsolete=* and
3896 --enable-option-checking=* down to build configure, and fail
3897 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3898 * configure: Rebuild.
3899 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3900 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3902 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3904 * config.in: Regenerate.
3905 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3906 -mtiny-printf is used without GCC being configured with
3907 --enable-newlib-nano-formatted-io.
3908 * config/msp430/msp430.h (LINK_SPEC): Pass
3909 "--wrap puts --wrap printf" when -mtiny-printf is used.
3910 * config/msp430/msp430.opt: Document -mtiny-printf.
3911 * configure: Regenerate.
3912 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3913 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3914 --enable-newlib-nano-formatted-io is passed.
3915 * doc/invoke.texi: Document -mtiny-printf.
3917 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3919 * configure: Regenerate.
3921 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3923 * config/msp430/driver-msp430.c
3924 (msp430_get_linker_devices_include_path): New spec function.
3925 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3926 (extract_devices_dir_from_exec_prefix): New function.
3927 (extract_devices_dir_from_collect_gcc): New function.
3928 (msp430_check_env_var_for_devices): New function.
3929 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3930 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3931 devices.csv was not found using other methods.
3932 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3934 (msp430_dirname): Likewise.
3935 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3936 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3937 msp430_get_linker_devices_include_path.
3938 (TARGET_EXTRA_PRE_INCLUDES): Define.
3939 * doc/invoke.texi: Document new ways of searching for support files.
3941 2019-11-04 Richard Biener <rguenther@suse.de>
3943 PR tree-optimization/92301
3944 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3945 as required by epilogue generation
3947 2019-11-04 Martin Liska <mliska@suse.cz>
3950 * fold-const.c (operand_compare::hash_operand): Fix field
3951 hashing of CONSTRUCTOR.
3953 2019-11-04 Martin Liska <mliska@suse.cz>
3955 * ggc.h (ggc_delete): New function.
3956 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3957 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3958 (ipa_free_all_node_params): Likewise.
3959 * ipa-sra.c (ipa_sra_analysis): Likewise.
3961 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3963 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3964 set_switch_stmt_execution_predicate, compute_bb_predicates,
3965 will_be_nonconstant_expr_predicate,
3966 phi_result_unknown_predicate,
3967 analyze_function_body): Pass arround params summary.
3968 (ipa_call_context::duplicate_from): New comment;
3969 only duplicate useful values.
3970 (ipa_call_context::equal_to): Only compare useful values.
3971 (remap_edge_summaries): Pass params_summary.
3972 (remap_hint_predicate): Likewise.
3973 (ipa_merge_fn_summary_after_inlining): Likewise.
3974 (inline_read_section): Initialize params summary used flags.
3975 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3976 around param_summary.
3977 (add_condition): Initialized used params summary flags.
3978 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3979 (inline_param_summary::useless_p): New predicate.
3980 (remap_after_inlining, add_condition): Update prototype
3981 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3983 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3985 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3986 (ipa_analyze_virtual_call_uses): Likewise.
3987 (update_indirect_edges_after_inlining): Update param summaries.
3988 (ipa_print_node_params): Print used flags.
3989 (ipa_read_indirect_edge_info): Update param summareis.
3990 * ipa-prop.h (ipa_param_descriptor): Add
3991 used_by_ipa_predicates, used_by_indirect_call
3992 and used_by_polymorphic_call.
3993 (ipa_set_param_used_by_ipa_predicates,
3994 ipa_set_param_used_by_indirect_call,
3995 ipa_set_param_used_by_polymorphic_call,
3996 ipa_is_param_used_by_ipa_predicates,
3997 ipa_is_param_used_by_indirect_call,
3998 ipa_is_param_used_by_polymorphic_call): New inline functions.
4000 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4002 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
4004 (ipa_call_context::release): Add ALL parameter.
4005 (ipa_call_context::equal_to): New member function.
4006 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
4007 duplicate_form, release, equal_to and exists_p member functoins.
4008 * ipa-inline-analysis.c (node_context_cache_entry): New
4010 (node_context_summary): Likewise.
4011 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
4012 node_context_clear): New static vars.
4013 (initialize_growth_caches): New function.
4014 (free_growth_caches): Also delete node_context_cache; output stats.
4015 (do_estimate_edge_time): Cache contexts.
4016 (reset_node_cache): New function.
4017 * ipa-inline.c (reset_edge_caches): Reset also node cache.
4018 (inline_small_functions): Initialize growth caches.
4019 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
4021 * ipa-predicate.h (inline_param_summary::equal_to): New.
4022 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
4023 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
4024 (ipa_agg_jump_function): Implement equal_to member function.
4026 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4028 * ipa-fnsummary.c (inline_read_section): Set vector size
4031 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4033 * ipa-fnsummary.c (ipa_call_context): New constructor.
4034 (estimate_node_size_and_time): Turn to ...
4035 (ipa_call_context::estimate_size_and_time): ... this one.
4036 (ipa_call_context::release): New.
4037 * ipa-fnsummary.h (ipa_call_context): New class.
4038 (estimate_node_size_and_time): Remove.
4039 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
4040 do_estimate_edge_hints): Update.
4042 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
4044 * config.in: Regenerate.
4045 * configure: Regenerate.
4046 * configure.ac: Check for mallinfo.
4047 * ggc-common.c: Include malloc.h if available;
4049 (report_heap_memory_use): New functoin.
4050 * ggc-page.c (ggc_grow): Do not print "start".
4051 * ggc.h (report_heap_memory_use): Declare.
4052 * pases.c (execute_one_pass): Report memory after IPA passes.
4053 (ipa_read_summaries_1): Likewise.
4054 (ipa_read_optimization_summaries_1): Likewise.
4056 2019-11-02 Jakub Jelinek <jakub@redhat.com>
4058 * gimplify.h (omp_construct_selector_matches): Change return
4059 type to int, add a new SCORES argument.
4060 * gimplify.c (omp_construct_selector_matches): Likewise. If
4061 SCORES is non-NULL, compute scores of each construct.
4062 * omp-general.h (omp_get_context_selector): Declare.
4063 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
4064 Adjust omp_construct_selector_matches callers.
4065 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
4066 (omp_context_compute_score): New function.
4067 (omp_resolve_declare_variant): Compute scores and decide based on
4071 * configure.ac: Don't look for omp-device-properties files from
4072 installed offloading compilers. Instead add tmake_file snippets
4073 for configured offloading targets and use files they generate.
4074 * Makefile.in (install): Don't depend on
4075 install-omp-device-properties.
4076 (install-omp-device-properties): Remove goal.
4077 * config/i386/t-omp-device: New file.
4078 * config/i386/t-intelmic (omp-device-properties): Remove goal.
4079 * config/nvptx/t-omp-device: New file.
4080 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
4081 * configure: Regenerated.
4083 * omp-general.h (omp_context_selector_set_compare): Declare.
4084 * omp-general.c (omp_construct_simd_compare,
4085 omp_context_selector_props_compare, omp_context_selector_set_compare,
4086 omp_context_selector_compare): New functions.
4087 (omp_resolve_declare_variant): Prune variants that are strict subset
4090 2019-11-01 Martin Sebor <msebor@redhat.com>
4096 * doc/invoke.texi (-Wzero-length-bounds): Document.
4097 * gimple-match-head.c (try_conditional_simplification): Use memcpy
4098 instead of a hand-rolled loop to avoid PR 92323.
4099 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
4101 (vrp_prop::check_mem_ref): Handle declared struct objects.
4102 * tree.c (last_field): New function.
4103 (array_at_struct_end_p): Handle MEM_REF.
4104 (get_initializer_for): New helper.
4105 (component_ref_size): Add argument. Rename locals. Call
4106 get_initializer_for instead of fold_ctor_reference. Correct handling
4107 of flexible array members.
4108 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
4110 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4112 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
4113 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
4114 UNSPEC_VSX_CVSPUXDS): Remove.
4115 (vsx_xvcvspdp): New define_expand, old define_insn split to...
4116 (vsx_xvcvspdp_be): ... this. New. And...
4117 (vsx_xvcvspdp_le): ... this. New.
4118 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
4119 (vsx_xvcv<su>xwdp_be): ... this. New. And...
4120 (vsx_xvcv<su>xwdp_le): ... this. New.
4121 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
4122 (vsx_xvcvsp<su>xds_be): ... this. New. And...
4123 (vsx_xvcvsp<su>xds_le): ... this. New.
4125 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4127 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
4128 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
4129 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
4130 UNSPEC_VSX_XVCVSPSXWS): Remove.
4131 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
4132 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
4134 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
4136 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
4137 (UNSPEC_VSX_XVCDPSP): Remove.
4138 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
4139 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
4141 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
4143 * hooks.c (hook_tree_tree_bool_null): New.
4144 * hooks.h (hook_tree_tree_bool_null): Declare.
4145 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
4146 (LANG_HOOKS_DECLS): Add it.
4147 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
4148 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
4149 (lower_omp_target): Handle Fortran array with descriptor in
4150 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
4152 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
4154 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
4155 Assert that the type we store in abi_vector_types is its own
4157 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
4159 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4161 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
4162 from a CONST_INT address when TARGET_THUMB2.
4164 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
4166 * config/arm/arm.md (add_not_cin): New insn.
4167 (add_not_shift_cin): Likewise.
4169 2019-10-31 Martin Liska <mliska@suse.cz>
4171 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
4172 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
4173 and compare_memory_operand.
4175 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4177 * configure.ac: Compute and substitute omp_device_properties and
4178 omp_device_property_deps.
4179 * Makefile.in (generated_files): Add omp-device-properties.h.
4180 (omp-general.o): Depend on omp-device-properties.h.
4181 (omp_device_properties): New make variable.
4182 (omp-device-properties.h, s-omp-device-properties-h,
4183 install-omp-device-properties): New goals.
4184 (install): Depend on install-omp-device-properties for accelerators.
4185 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
4186 * target.h (enum omp_device_kind_arch_isa): New enum.
4187 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
4189 * omp-general.c: Include omp-device-properties.h.
4190 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
4191 colon instead of comma.
4192 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
4194 (omp_context_selector_matches): Implement device set arch/isa
4195 selectors, improve device set kind selector handling.
4196 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
4197 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
4198 TARGET_SIMD_CLONE_USABLE): Formatting fix.
4199 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4200 ix86_omp_device_kind_arch_isa.
4201 * config/i386/i386-options.c (struct ix86_target_opts): Move type
4202 definition from ix86_target_string to file scope.
4203 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
4205 (ix86_omp_device_kind_arch_isa): New function.
4206 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
4207 isa_opts definitions to file scope.
4208 * config/i386/t-intelmic (omp-device-properties): New goal.
4209 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
4210 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
4211 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
4212 nvptx_omp_device_kind_arch_isa.
4213 * configure: Regenerate.
4214 * doc/tm.texi: Regenerate.
4217 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
4218 DECL_BUILT_IN in comment. Remove redundant ()s around return
4220 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
4221 before calling fndecl_built_in_p.
4222 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
4223 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
4224 fndecl_built_in_p on it.
4226 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4228 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4230 2019-10-31 Martin Liska <mliska@suse.cz>
4232 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4233 of cgraph_local_info and use local_info_node instead.
4234 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4235 (bfin_function_ok_for_sibcall): Likewise.
4236 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4237 (must_reload_pic_reg_p): Likewise.
4239 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4242 * tree.h (type_initializer_zero_p): Remove.
4243 * tree.c (type_initializer_zero_p): Remove.
4245 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4247 * doc/invoke.texi (-Wshadow, -Wshadow=global
4248 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4250 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4252 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4253 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4254 and 'target exit data'.
4256 2019-10-30 Martin Jambor <mjambor@suse.cz>
4259 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4260 availability comparison.
4262 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4264 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4265 calls to __mspabi_mpy* functions.
4266 * config/msp430/msp430.md (mulhisi3): New define_expand.
4267 (umulhisi3): New define_expand.
4268 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4269 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4271 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4273 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4274 (msp430_check_plus_not_high_mem): New.
4275 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4276 might be in low memory.
4277 Indicate that a 16-bit absolute address is in lower memory.
4279 2019-10-30 Martin Jambor <mjambor@suse.cz>
4281 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4282 ultimate_alias_target.
4284 2019-10-30 Richard Biener <rguenther@suse.de>
4286 PR tree-optimization/92275
4287 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4288 Copy all loop-closed PHIs.
4290 2019-10-30 Martin Liska <mliska@suse.cz>
4292 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4293 const_tree as function argument.
4294 (func_checker::compare_decl): Likewise.
4295 (func_checker::operand_equal_p): Likewise.
4296 (func_checker::compare_variable_decl): Likewise.
4297 (func_checker::parse_labels): Likewise.
4298 * ipa-icf-gimple.h: Likewise.
4300 2019-10-30 Martin Liska <mliska@suse.cz>
4302 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4303 Do not compare alias sets. It's handled by operand_equal_p.
4305 2019-10-30 Martin Liska <mliska@suse.cz>
4307 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4308 initialize m_compare_polymorphic.
4309 (func_checker::compare_decl): Do not compare polymorphic types.
4310 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4311 * ipa-icf.c (sem_function::equals_private): Do not call
4312 compare_polymorphic_p.
4314 2019-10-30 Martin Liska <mliska@suse.cz>
4316 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4318 (func_checker::compare_memory_operand): Remove.
4319 (func_checker::compare_cst_or_decl): Remove.
4320 (func_checker::operand_equal_valueize): Do not handle
4322 (func_checker::compare_gimple_call): Call compare_operand.
4323 (func_checker::compare_gimple_assign): Likewise.
4324 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4325 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4326 * ipa-icf.h (icf_handled_component_p): Remove.
4328 2019-10-30 Martin Liska <mliska@suse.cz>
4330 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4331 (func_checker::compare_cst_or_decl): Remove handling
4333 (func_checker::compare_operand): Transform to ...
4334 (func_checker::operand_equal_p): ... this.
4335 * ipa-icf-gimple.h (class func_checker): Add
4336 operand_equal_p and hash_operand.
4337 * ipa-icf.c (sem_function::equals_private): Fix
4338 pushing and popping of cfun.
4340 2019-10-30 Martin Liska <mliska@suse.cz>
4342 * fold-const.c (operand_equal_p): Move to ...
4343 (operand_compare::operand_equal_p): ... here.
4344 (operand_compare::verify_hash_value): New.
4345 (add_expr): Move to ...
4346 (operand_compare::hash_operand): ... here.
4347 * fold-const.h (operand_equal_p): Move to the class.
4348 (class operand_compare): New.
4349 * tree.c (add_expr): Remove.
4351 2019-10-30 Martin Liska <mliska@suse.cz>
4353 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
4354 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
4356 2019-10-30 Martin Liska <mliska@suse.cz>
4360 * cgraph.c (cgraph_node::get_create): Overwrite node->order
4361 from a first_clone in order to get proper LTO section
4363 (cgraph_node::get_untransformed_body):
4364 Use lto_get_section_data where symtab_node::order
4366 * cgraphclones.c (cgraph_node::find_replacement):
4367 Update also symbol order.
4368 * ipa-fnsummary.c (ipa_fn_summary_read):
4369 Use new function lto_get_summary_section_data.
4370 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
4371 * ipa-icf.c (sem_item_optimizer::read_summary):
4373 * ipa-prop.c (ipa_prop_read_jump_functions):
4375 (ipcp_read_transformation_summaries): Likewise.
4376 * ipa-sra.c (ipa_sra_read_summary): Likewise.
4377 * lto-cgraph.c (input_node): Add also order_base.
4378 (input_varpool_node): Likewise.
4379 (input_cgraph_1): Assign the order_base.
4380 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
4381 * lto-opts.c (lto_write_options): Pass new argument.
4382 * lto-section-in.c (lto_get_section_data): Add new argumente order.
4383 (lto_get_summary_section_data): New.
4384 (lto_get_raw_section_data): Add order argument.
4385 (lto_create_simple_input_block): Likewise.
4386 * lto-section-out.c (lto_destroy_simple_output_block):
4388 * lto-streamer-in.c (lto_input_toplevel_asms):
4389 Use lto_get_summary_section_data.
4390 (lto_input_mode_table): Likewise.
4391 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
4392 (lto_output_toplevel_asms): Pass new argument.
4393 (copy_function_or_variable): Likewise.
4394 (produce_lto_section):Likewise.
4395 (produce_symtab): Likewise.
4396 (lto_write_mode_table): Likewise.
4397 (produce_asm_for_decls): Likewise.
4398 * lto-streamer.c (lto_get_section_name): Concat symbol name
4400 * lto-streamer.h (lto_get_section_data): Add order argument.
4401 (lto_get_summary_section_data): New.
4402 (lto_get_raw_section_data): Add order argument.
4403 (lto_get_section_name): Likewise.
4404 * varpool.c (varpool_node::get_constructor): Pass order argument.
4406 2019-10-30 Jakub Jelinek <jakub@redhat.com>
4408 PR tree-optimization/92262
4409 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
4410 ubase or cbase here.
4411 (remove_unused_ivs): Unshare comp before using it.
4413 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
4415 * ipa-prop.c (update_jump_functions_after_inlining):
4416 Watch for missing summaries.
4418 2019-10-30 Richard Biener <rguenther@suse.de>
4420 PR tree-optimization/65930
4421 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
4422 chains also allow a leading and trailing conversion.
4423 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
4424 intermediate reduction chains.
4425 (vect_analyze_slp_instance): Likewise. Build a SLP
4426 node for a trailing conversion manually.
4428 2019-10-30 Martin Liska <mliska@suse.cz>
4430 * cgraph.c (cgraph_node::local_info): Transform to ...
4431 (cgraph_node::local_info_node): ... this.
4432 (cgraph_node::dump): Remove cgraph_local_info and
4433 put its fields directly into cgraph_node.
4434 (cgraph_node::get_availability): Likewise.
4435 (cgraph_node::make_local): Likewise.
4436 (cgraph_node::verify_node): Likewise.
4437 * cgraph.h (struct GTY): Likewise.
4438 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
4439 (duplicate_thunk_for_node): Likewise.
4440 (cgraph_node::create_clone): Likewise.
4441 (cgraph_node::create_virtual_clone): Likewise.
4442 (cgraph_node::create_version_clone): Likewise.
4443 * cgraphunit.c (cgraph_node::reset): Likewise.
4444 (cgraph_node::finalize_function): Likewise.
4445 (cgraph_node::add_new_function): Likewise.
4446 (analyze_functions): Likewise.
4447 * combine.c (setup_incoming_promotions): Likewise.
4448 * config/i386/i386.c (ix86_function_regparm): Likewise.
4449 (ix86_function_sseregparm): Likewise.
4450 (init_cumulative_args): Likewise.
4451 * ipa-cp.c (determine_versionability): Likewise.
4452 (count_callers): Likewise.
4453 (set_single_call_flag): Likewise.
4454 (initialize_node_lattices): Likewise.
4455 (estimate_local_effects): Likewise.
4456 (create_specialized_node): Likewise.
4457 (identify_dead_nodes): Likewise.
4458 * ipa-fnsummary.c (compute_fn_summary): Likewise.
4459 (ipa_fn_summary_generate): Likewise.
4460 * ipa-hsa.c (check_warn_node_versionable): Likewise.
4461 (process_hsa_functions): Likewise.
4462 * ipa-icf.c (set_local): Likewise.
4463 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
4464 * ipa-inline.c (speculation_useful_p): Likewise.
4465 * ipa-profile.c (ipa_propagate_frequency): Likewise.
4466 (ipa_profile): Likewise.
4467 * ipa-split.c (split_function): Likewise.
4468 (execute_split_functions): Likewise.
4469 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
4470 (ipa_sra_ipa_function_checks): Likewise.
4471 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4472 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4473 * lto-cgraph.c (lto_output_node): Likewise.
4474 (input_overwrite_node): Likewise.
4475 * multiple_target.c (expand_target_clones): Likewise.
4476 * omp-simd-clone.c (simd_clone_create): Likewise.
4477 * trans-mem.c (expand_call_tm): Likewise.
4478 (ipa_tm_mayenterirr_function): Likewise.
4479 (ipa_tm_diagnose_tm_safe): Likewise.
4480 (ipa_tm_diagnose_transaction): Likewise.
4481 (ipa_tm_create_version): Likewise.
4482 (ipa_tm_transform_calls_redirect): Likewise.
4483 (ipa_tm_execute): Likewise.
4484 * tree-inline.c (expand_call_inline): Likewise.
4486 2019-10-29 Martin Liska <mliska@suse.cz>
4488 * symbol-summary.h (function_summary): Pass memory location
4489 to underlaying hash_map (or vec).
4490 (V>::fast_function_summary): Likewise.
4492 2019-10-29 Martin Liska <mliska@suse.cz>
4494 * ggc.h (ggc_alloc_no_dtor): New function.
4495 * ipa-fnsummary.c (ipa_free_fn_summary): Call
4496 destructor and ggc_free.
4497 (ipa_free_size_summary): Call delete instead
4499 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
4500 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
4501 (ipa_free_all_edge_args): Call destructor and ggc_free.
4502 (ipa_free_all_node_params): Likewise.
4503 (ipcp_free_transformation_sum): Likewise.
4504 * ipa-prop.h (ipa_check_create_node_params):
4505 Call new ggc_alloc_no_dtor.
4506 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
4507 (ipa_sra_analysis): Call destructor and ggc_free.
4508 Replace release with delete operator.
4509 * symbol-summary.h (release): Remove ..
4510 (V>::~fast_function_summary): and move logic here.
4511 Likewise for other classes.
4513 2019-10-29 Richard Biener <rguenther@suse.de>
4515 PR tree-optimization/92260
4516 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
4519 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
4521 PR tree-optimization/88915
4522 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
4523 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
4524 and make the valueize function pointer also take a void pointer.
4525 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
4526 around vn_valueize, to call it without a context.
4527 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
4528 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
4529 (~_loop_vec_info): Release epilogue_vinfos.
4530 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
4531 number of iterations of epilogue.
4532 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
4533 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
4534 versioning threshold needed for main loop.
4535 (vect_analyze_loop): Likewise.
4536 (find_in_mapping): New helper function.
4537 (update_epilogue_loop_vinfo): New function.
4538 (vect_transform_loop): When vectorizing epilogues re-use analysis done
4539 on main loop and call update_epilogue_loop_vinfo to update it.
4540 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
4541 stmts on loop preheader edge.
4542 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
4543 we decided to vectorize epilogues. Update epilogues NITERS and
4544 construct ADVANCE to update epilogues data references where needed.
4545 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
4546 (vect_do_peeling, vect_update_inits_of_drs,
4547 determine_peel_for_niter, vect_analyze_loop): Add or update
4549 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
4550 created loop_vec_info's for epilogues when available. Otherwise analyse
4551 epilogue separately.
4553 2019-10-29 Richard Biener <rguenther@suse.de>
4555 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
4558 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4560 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
4561 index for the COND_EXPR from stmt_info rather than reduc_info.
4563 2019-10-29 Richard Biener <rguenther@suse.de>
4565 PR tree-optimization/65930
4566 * tree-vect-loop.c (check_reduction_path): Relax single-use
4567 check allowing out-of-loop uses.
4568 (vect_is_simple_reduction): SLP reduction chains cannot have
4569 intermediate stmts used outside of the loop.
4570 (vect_create_epilog_for_reduction): The adjustment might need
4572 (vectorizable_reduction): Annotate live stmts of the reduction
4573 chain with STMT_VINFO_REDUC_DEF.
4574 * tree-vect-stms.c (process_use): Remove no longer true asserts.
4576 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4578 * calls.c (pass_by_reference): Leave the target to decide whether
4579 POLY_INT_CST-sized arguments should be passed by value or reference,
4580 rather than forcing them to be passed by reference.
4581 (must_pass_in_stack_var_size): Likewise.
4582 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
4583 V31_REGNUM to P15_REGNUM.
4584 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
4585 Take an extra "silent_p" parameter, defaulting to false.
4586 (aarch64_sve::svbool_type_p): Declare.
4587 (aarch64_sve::nvectors_if_data_type): Likewise.
4588 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
4589 (aarch64_frame::reg_offset): Turn into poly_int64s.
4590 (aarch64_frame::save_regs_size): Likewise.
4591 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
4592 (aarch64_frame::sve_callee_adjust): Likewise.
4593 (aarch64_frame::spare_reg_reg): Likewise.
4594 (ARM_PCS_SVE): New arm_pcs value.
4595 (CUMULATIVE_ARGS::aapcs_nprn): New field.
4596 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
4597 (CUMULATIVE_ARGS::silent_p): Likewise.
4598 (BITS_PER_SVE_PRED): New macro.
4599 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
4600 function. Reject aarch64_vector_pcs attributes on SVE functions.
4601 (aarch64_attribute_table): Use the above handler.
4602 (aarch64_sve_abi): New function.
4603 (aarch64_sve_argument_p): Likewise.
4604 (aarch64_returns_value_in_sve_regs_p): Likewise.
4605 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
4606 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
4607 descriptor for them.
4608 (aarch64_simd_decl_p): Delete.
4609 (aarch64_emit_cfi_for_reg_p): New function.
4610 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
4611 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
4612 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
4613 as partly clobbered for the SVE PCS.
4614 (aarch64_function_ok_for_sibcall): Check whether the two functions
4615 use the same ABI, rather than checking specifically for whether
4616 they're aarch64_vector_pcs functions.
4617 (aarch64_pass_by_reference): Raise an error for attempts to pass
4618 SVE arguments when SVE is disabled. Pass SVE arguments by reference
4619 if there are not enough free registers left, or if the argument is
4621 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
4622 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
4624 (aarch64_layout_arg): Take a function_arg_info rather than
4625 individual properties. Handle SVE predicates, vectors and tuples.
4626 Raise an error if they are passed to unprototyped functions.
4627 (aarch64_function_arg): If the silent_p flag is set, suppress the
4628 usual error about using float registers without TARGET_FLOAT.
4629 (aarch64_init_cumulative_args): Take a silent_p parameter and store
4630 it in the cumulative_args structure. Initialize aapcs_nprn and
4631 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
4632 error about using float registers without TARGET_FLOAT.
4633 If the silent_p flag is not set, also raise an error about
4634 using SVE functions when SVE is disabled.
4635 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
4636 and call it for SVE functions too. Update aapcs_nprn similarly
4637 to the other register counts.
4638 (aarch64_layout_frame): If a big-endian function needs to save
4639 and restore Z8-Z15, search for a spare predicate that it can use.
4640 Store SVE predicates at the bottom of the register save area,
4641 followed by SVE vectors, then followed by the normal slots.
4642 Keep pointing the hard frame pointer at the base of the normal slots,
4643 above the SVE vectors. Update the various frame creation and
4644 tear-down strategies for the new layout, initializing the new
4645 sve_callee_adjust field. Add an additional layout for frames
4646 whose saved registers are all SVE registers.
4647 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
4648 (aarch64_return_address_signing_enabled): Likewise.
4649 (aarch64_push_regs, aarch64_pop_regs): Update calls to
4650 aarch64_reg_save_mode.
4651 (aarch64_adjust_sve_callee_save_base): New function.
4652 (aarch64_add_cfa_expression): Move earlier in file. Take the
4653 saved register as an rtx rather than a register number and use
4654 its mode for the MEM slot.
4655 (aarch64_save_callee_saves): Remove the mode argument and instead
4656 use aarch64_reg_save_mode to get the mode of each save slot.
4657 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
4658 offsets. Allow GP offsets to be saved at a VL-based offset from
4659 the stack, handling this case using the frame pointer if available
4660 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
4661 big-endian SVE functions; use normal moves for other SVE saves.
4662 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
4663 returns true. Add explicit CFA notes when not storing via the
4664 stack pointer. Do not try to pair SVE saves.
4665 (aarch64_restore_callee_saves): Cope with poly_int64 register
4666 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
4667 use normal moves for other SVE restores. Only add CFA restore notes
4668 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
4670 (aarch64_get_separate_components): Always keep the first SVE save
4671 in the prologue if we need to use it as a stack probe. Don't allow
4672 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
4673 Likewise the spare predicate register that they need. Update the
4674 offset calculation to account for the SVE save area. Use the
4675 appropriate range check for SVE LDR and STR instructions.
4676 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
4677 (aarch64_process_components): Likewise. Update the offset
4678 calculation to account for the SVE save area. Only mark the
4679 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
4680 Do not try to pair SVE saves.
4681 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
4682 reg_offsets. When handling the final allocation, expect the
4683 first SVE register save to be part of the initial allocation
4684 and for it to act as a probe at SP. Account for the SVE callee
4685 save area in the dump information.
4686 (aarch64_expand_prologue): Update the frame diagram. Fold the
4687 SVE callee allocation into the initial allocation if stack clash
4688 protection is enabled. Use new variables to track the offset
4689 of the frame chain (and hard frame pointer) from the current
4690 stack pointer, and likewise the offset of the bottom of the
4691 register save area. Update calls to aarch64_save_callee_saves
4692 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
4693 saving the FP&SIMD registers. Save the predicate registers.
4694 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
4695 into account when setting the stack pointer from the frame pointer,
4696 and when deciding whether we can inherit the initial adjustment
4697 amount from the prologue. Restore the predicate registers after
4698 the vector registers, then apply sve_callee_adjust, then restore
4699 the general registers.
4700 (aarch64_secondary_reload): Don't use secondary SVE reloads
4702 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
4703 (aarch64_short_vector_p): Return false for SVE types.
4704 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
4705 at the start of the function. Return false for SVE types.
4706 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
4708 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
4709 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
4710 to big-endian targets for bytewise moves.
4711 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
4713 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4714 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4715 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4717 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
4718 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
4719 aarch64-sve-builtins-base.o to extra_objs. Add
4720 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
4721 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
4722 (aarch64-sve-builtins-shapes.o): Likewise.
4723 (aarch64-sve-builtins-base.o): New rules.
4724 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
4725 (aarch64_resolve_overloaded_builtin): Likewise.
4726 (aarch64_check_builtin_call): Likewise.
4727 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
4728 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
4730 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
4731 (aarch64_svprfop): New enum.
4732 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
4733 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
4734 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
4735 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4736 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
4737 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
4738 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
4739 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
4740 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
4741 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
4742 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
4743 (aarch64_sve::mangle_builtin_type): Likewise.
4744 (aarch64_sve::resolve_overloaded_builtin): Likewise.
4745 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
4746 (aarch64_sve::expand_builtin): Likewise.
4747 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
4748 (aarch64_sve_int_mode): Likewise.
4749 (aarch64_ptrue_all_mode): New function.
4750 (aarch64_convert_sve_data_to_pred): Make public.
4751 (svprfop_token): New function.
4752 (aarch64_output_sve_prefetch): Likewise.
4753 (aarch64_fold_sve_cnt_pat): Likewise.
4754 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4755 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
4756 instead of gen_while_ult.
4757 (aarch64_replace_reg_mode): Make public.
4758 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
4759 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
4760 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
4761 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
4762 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
4763 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
4764 (aarch64_sve_ptrue_svpattern_p): Likewise.
4765 (aarch64_sve_pred_valid_immediate): Check
4766 aarch64_sve_ptrue_svpattern_p.
4767 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
4768 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
4770 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
4771 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
4772 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
4773 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
4774 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
4775 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
4777 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
4778 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
4779 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
4780 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
4781 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
4782 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
4783 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
4784 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
4785 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
4786 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
4787 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
4788 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
4789 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
4790 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
4791 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
4792 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
4793 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
4794 (Vesize): Handle partial vector modes.
4795 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
4797 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
4799 (s, paired_extend, inc_dec): New code attributes.
4800 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
4801 (SVE_INT_UNARY): Add UNSPEC_RBIT.
4802 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
4803 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
4804 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
4805 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4807 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
4808 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
4809 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4810 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
4811 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
4812 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
4813 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
4814 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4815 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4816 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4817 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4818 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4819 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4820 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4821 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4822 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4824 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4825 (binqops_op, binqops_op_rev, last_op): New int attributes.
4826 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4827 (fn, ab): New int attributes.
4828 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4829 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4830 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4831 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4833 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4834 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4835 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4836 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4837 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4839 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4840 (brk_reg_con, brk_reg_opno): New int attributes.
4841 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4842 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4843 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4845 (max_elem_bits): New int attribute.
4846 (min_elem_bits): Handle UNSPEC_RBIT.
4847 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4848 TRUNCATE as well as SUBREG.
4849 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4850 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4851 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4852 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4853 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4854 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4855 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4856 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4857 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4858 (aarch64_gather_scale_operand_h): New predicates.
4859 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4860 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4861 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4862 (*aarch64_sve_reinterpret<mode>): Allow any source register
4863 instead of requiring an exact match.
4864 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4865 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4866 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4867 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4868 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4869 (aarch64_update_ffrt): New patterns.
4870 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4871 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4872 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4873 (@aarch64_ld<fn>f1<mode>): New patterns.
4874 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4875 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4876 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4877 (@aarch64_ldnt1<mode>): New patterns.
4878 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4879 the scalar part of the address.
4880 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4881 scalar part of the addresse and add an alternative for handling
4883 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4884 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4885 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4886 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4887 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4888 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4889 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4890 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4891 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4892 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4893 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4894 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4895 (@aarch64_sve_prefetch<mode>): New patterns.
4896 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4897 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4898 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4899 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4900 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4901 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4902 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4903 (@aarch64_stnt1<mode>): New patterns.
4904 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4905 the scalar part of the address.
4906 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4907 the scalar part of the addresse and add an alternative for handling
4909 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4910 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4911 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4912 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4913 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4914 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4916 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4917 (extract_last_<mode>): Generalize to...
4918 (@extract_<LAST:last_op>_<mode>): ...this.
4919 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4920 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4921 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4922 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4923 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4924 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4925 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4926 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4927 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4928 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4929 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4930 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4931 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4932 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4933 (*aarch64_adr_uxtw_unspec): Likewise.
4934 (*aarch64_adr_uxtw): Rename to...
4935 (*aarch64_adr_uxtw_and): ...this.
4936 (@aarch64_adr<mode>_shift): New expander.
4937 (*aarch64_adr_shift_sxtw): New pattern.
4938 (aarch64_<su>abd<mode>_3): Rename to...
4939 (@aarch64_pred_<su>abd<mode>): ...this.
4940 (<su>abd<mode>_3): Update accordingly.
4941 (@aarch64_cond_<su>abd<mode>): New expander.
4942 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4943 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4944 (*<su>mul<mode>3_highpart): Rename to...
4945 (@aarch64_pred_<optab><mode>): ...this.
4946 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4947 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4948 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4949 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4950 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4951 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4952 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4953 (*v<ASHIFT:optab><mode>3): Rename to...
4954 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4955 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4956 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4957 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4958 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4959 (@cond_asrd<mode>): New expander.
4960 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4961 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4962 (*sdiv_pow2<mode>3): Delete.
4963 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4964 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4965 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4966 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4967 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4968 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4969 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4970 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4971 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4972 (*add<SVE_F:mode>3): Rename to...
4973 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4975 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4976 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4977 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4978 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4979 (*sub<SVE_F:mode>3): Rename to...
4980 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4982 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4983 (*fabd<SVE_F:mode>3): Rename to...
4984 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4985 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4986 (*mul<SVE_F:mode>3): Rename to...
4987 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4989 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4990 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4992 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4993 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4994 (*<nlogical><PRED_ALL:mode>3): Rename to...
4995 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4996 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4997 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4998 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4999 (aarch64_pred_<logical_nn><mode>_z): ...this.
5000 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
5001 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
5002 (*fma<SVE_I:mode>4): Rename to...
5003 (@aarch64_pred_fma<SVE_I:mode>): ...this.
5004 (*fnma<SVE_I:mode>4): Rename to...
5005 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
5006 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
5007 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
5008 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
5009 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
5010 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
5011 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
5012 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
5013 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
5014 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
5015 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
5016 (@aarch64_sve_tmad<mode>): Likewise.
5017 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
5018 (*aarch64_sel_dup<mode>): Rename to...
5019 (@aarch64_sel_dup<mode>): ...this.
5020 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
5021 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
5022 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
5023 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
5024 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
5025 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
5026 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
5027 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
5028 (*fcm<cmp_op><mode>): Rename to...
5029 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
5030 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5031 (*fcmuo<mode>): Rename to...
5032 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
5033 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
5034 (@aarch64_pred_fac<cmp_op><mode>): New expander.
5035 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
5036 (fold_extract_last_<mode>): Generalize to...
5037 (@fold_extract_<last_op>_<mode>): ...this.
5038 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
5039 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
5040 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
5041 DImode result explicit.
5042 (reduc_plus_scal_<mode>): Update accordingly.
5043 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
5044 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
5045 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
5046 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
5047 (*aarch64_sve_tbl<mode>): Rename to...
5048 (@aarch64_sve_tbl<mode>): ...this.
5049 (@aarch64_sve_compact<mode>): New pattern.
5050 (*aarch64_sve_dup_lane<mode>): Rename to...
5051 (@aarch64_sve_dup_lane<mode>): ...this.
5052 (@aarch64_sve_dupq_lane<mode>): New pattern.
5053 (@aarch64_sve_splice<mode>): Likewise.
5054 (aarch64_sve_<perm_insn><mode>): Rename to...
5055 (@aarch64_sve_<perm_insn><mode>): ...this.
5056 (*aarch64_sve_ext<mode>): Rename to...
5057 (@aarch64_sve_ext<mode>): ...this.
5058 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
5059 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
5061 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
5062 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5064 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
5066 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
5067 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
5068 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
5069 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
5071 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
5072 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
5074 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
5075 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
5076 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
5078 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
5079 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
5080 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
5081 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
5082 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
5084 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
5085 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
5086 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
5087 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
5088 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
5089 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
5090 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
5091 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
5092 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
5093 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
5094 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
5095 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
5096 (aarch64_sve_cnt_pat): Likewise.
5097 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5098 (*aarch64_sve_incsi_pat): Likewise.
5099 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5100 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5101 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5102 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5103 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5104 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
5105 (*aarch64_sve_decsi_pat): Likewise.
5106 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
5107 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
5108 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
5109 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
5110 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
5111 (@aarch64_pred_cntp<mode>): Likewise.
5112 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5114 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5115 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5116 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5118 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5120 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
5121 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5122 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
5123 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5124 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
5125 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5126 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
5128 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
5129 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
5130 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5132 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
5134 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
5136 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
5137 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
5139 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
5140 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
5142 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
5143 * config/aarch64/arm_sve.h: New file.
5144 * config/aarch64/aarch64-sve-builtins.h: Likewise.
5145 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
5146 * config/aarch64/aarch64-sve-builtins.def: Likewise.
5147 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
5148 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
5149 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
5150 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
5151 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
5152 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
5154 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5156 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
5158 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
5161 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5163 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
5164 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
5166 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
5167 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
5168 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
5169 (aarch64_hard_regno_nregs): Handle the new register classes.
5170 (aarch64_hard_regno_mode_ok): Likewise.
5171 (aarch64_regno_regclass): Likewise.
5172 (aarch64_class_max_nregs): Likewise.
5173 (aarch64_register_move_cost): Likewise.
5174 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
5175 as general register_operands.
5177 2019-10-29 Martin Liska <mliska@suse.cz>
5179 * ggc-common.c: One can't subtract unsigned types
5180 in compare function.
5182 2019-10-29 Martin Liska <mliska@suse.cz>
5184 * cgraphunit.c (symbol_table::compile): Pass
5185 title as dump_memory_report argument.
5186 * toplev.c (dump_memory_report): New argument.
5187 (finalize): Pass new argument.
5188 * toplev.h (dump_memory_report): Add argument.
5190 2019-10-29 Martin Liska <mliska@suse.cz>
5192 * ggc-common.c: Move Leak to the first column.
5194 2019-10-29 Martin Liska <mliska@suse.cz>
5196 * cgraphunit.c (symbol_table::compile): Remove argument
5197 for dump_memory_report.
5198 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
5199 (compare_final): Remove in order to make report
5201 * ggc.h (dump_ggc_loc_statistics): Remove argument.
5202 * mem-stats.h (mem_alloc_description::get_list):
5204 (mem_alloc_description::dump): Likewise here.
5205 * toplev.c (dump_memory_report): Remove final
5207 (finalize): Likewise.
5208 * toplev.h (dump_memory_report): Remove argument.
5210 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5212 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
5213 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
5214 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
5215 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
5218 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5220 * coretypes.h (string_int_pair): New typedef.
5221 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
5222 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
5223 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
5225 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5227 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5228 (simulate_builtin_function_decl): Declare.
5229 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5230 (LANG_HOOKS_INITIALIZER): Include it.
5231 * langhooks.c (add_builtin_function_common): Rename to...
5232 (build_builtin_function): ...this. Add a location parameter and use
5233 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5235 (add_builtin_function): Update accordingly, passing the returned
5236 decl to the lang hook.
5237 (add_builtin_function_ext_scope): Likewise
5238 (simulate_builtin_function_decl): New function.
5240 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5242 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5243 example, use actual names of supported offload targets.
5246 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5248 2019-10-28 Martin Sebor <msebor@redhat.com>
5250 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5251 (handle_store): Pass argument to get_addr_stridx.
5253 2019-10-28 Martin Sebor <msebor@redhat.com>
5255 PR tree-optimization/92226
5256 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5257 the offset is in the open range outlined by SI's length.
5259 2019-10-28 Martin Sebor <msebor@redhat.com>
5262 * doc/cpp.texi (__has_builtin): Document.
5263 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5265 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5268 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5269 doubleword and low doubleword result of multiplication on
5272 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5273 pure qualifier to the built-in.
5274 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5276 (struct mips_builtin_description): Add is_pure flag.
5277 (mips_init_builtins): Mark built-in as pure if the flag in the
5278 corresponding mips_builtin_description struct is set.
5280 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5281 alternative which covers the floating-point input value. Also
5282 forbid the split of insert.d pattern for floating-point values.
5284 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5286 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5287 * config/riscv/riscv-sr.c: New file.
5288 * config/riscv/riscv.c (riscv_reorg): New function.
5289 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5290 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5291 (riscv_remove_unneeded_save_restore_calls): Declare.
5292 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5294 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5296 PR tree-optimization/92163
5297 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5298 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5299 before calling bitmap_set_bit.
5300 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5301 delete_dead_or_redundant_assignment.
5302 (dse_dom_walker::dse_optimize_stmt): Likewise.
5303 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5305 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5308 * tree-vect-stmts.c (vectorizable_condition): Support
5309 EXTRACT_LAST_REDUCTION with fully-masked loops.
5311 2019-10-28 Richard Biener <rguenther@suse.de>
5313 PR tree-optimization/92252
5314 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5315 STMT_VINFO_REDUC_IDX when swapping operands.
5317 2019-10-28 Richard Biener <rguenther@suse.de>
5319 PR tree-optimization/92241
5320 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5321 we failed to update the reduction index do not use the pattern
5322 stmts for the reduction chain.
5323 (vectorizable_reduction): When the reduction chain is corrupt,
5325 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5326 fail to update the reduction chain.
5328 2019-10-28 Richard Biener <rguenther@suse.de>
5330 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5331 STMT_VINFO_REDUC_IDX from the actual stmt.
5332 (vect_transform_reduction): Likewise.
5333 (vectorizable_reduction): Compute the reduction chain length,
5334 do not recompute the reduction operand index. Remove no longer
5335 necessary restriction for condition reduction chains.
5337 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5340 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5341 condition for V2DImode.
5343 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5345 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5346 Remove %k operand modifier.
5347 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5349 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5351 PR rtl-optimization/92007
5352 * cfgcleanup.c (thread_jump): Add an assertion that we don't
5353 call it after reload if hot/cold partitioning has been done.
5354 (class pass_postreload_jump): Rename to
5355 pass_jump_after_combine.
5356 (make_pass_postreload_jump): Rename to
5357 make_pass_jump_after_combine.
5358 * passes.def(pass_postreload_jump): Move before reload, rename
5359 to pass_jump_after_combine.
5360 * tree-pass.h (make_pass_postreload_jump): Rename to
5361 make_pass_jump_after_combine.
5363 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
5366 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
5367 for missing EDGE_REF
5368 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
5370 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
5372 PR tree-optimization/88760
5373 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
5374 Enable -funroll-loops for -O2 and above.
5375 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
5376 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
5377 do not turn on web and rngreg implicitly, if the unroller is not
5380 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5382 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
5385 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
5387 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
5388 * cgraph.h (cgraph_node::rtl_info): Likewise.
5390 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5392 * ipa-cp.c (propagate_constants_across_call): If args are not available
5393 just drop everything to varying.
5394 (find_aggregate_values_for_callers_subset): Watch for missing
5396 (find_more_scalar_values_for_callers_subs): Likewise.
5397 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
5398 update_jump_functions_after_inlining, propagate_controlled_uses):
5399 Watch for missing summaries.
5400 (ipa_propagate_indirect_call_infos): Remove summary after propagation
5402 (ipa_write_node_info): Watch for missing summaries.
5403 (ipa_read_edge_info): Create new ref.
5404 (ipa_edge_args_sum_t): Add remove.
5405 (IPA_EDGE_REF_GET_CREATE): New macro.
5406 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
5408 (remap_edge_change_prob): Likewise.
5410 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5412 * ipa-inline-transform.c (inline_call): update function summaries
5413 after expanidng thunk.
5415 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5417 * ipa-icf.c (sem_function::merge): Update function summaries.
5418 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
5420 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
5422 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
5423 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
5424 operand already has scalar mode.
5425 (iptr): Remove SF/DF.
5427 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
5430 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
5431 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
5434 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5436 * config/i386/sse.md
5437 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
5438 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
5439 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
5440 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
5441 <sse>_vmmaskcmp<mode>3):
5442 Change predicates from vector_operand to nonimmediate_operand,
5443 constraints xBm to xm, since scalar operations don't need
5444 memory address alignment.
5445 (avx512f_vmcmp<mode>3<round_saeonly_name>,
5446 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
5447 round_saeonly_nimm_predicate with
5448 round_saeonly_nimm_scalar_predicate.
5449 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5450 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
5451 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5452 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
5453 avx512f_vmfmadd_<mode>_mask3<round_name>,
5454 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5455 *avx512f_vmfmsub_<mode>_mask<round_name>,
5456 avx512f_vmfmsub_<mode>_mask3<round_name>,
5457 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
5458 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5459 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5460 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5461 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5462 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
5463 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
5464 cvtusi2<ssescalarmodesuffix>32<round_name>,
5465 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
5466 round_nimm_predicate with round_nimm_scalr_predicate.
5467 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
5468 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
5469 avx512er_vmrcp28<mode><round_saeonly_name>,
5470 avx512er_vmrsqrt28<mode><round_saeonly_name>,
5471 ): Replace round_saeonly_nimm_predicate with
5472 round_saeonly_nimm_scalar_predicate.
5473 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
5474 vector_operand with nonimmediate_operand.
5475 * config/i386/subst.md (round_scalar_nimm_predicate,
5476 round_saeonly_scalar_nimm_predicate): Replace
5477 vector_operand with nonimmediate_operand.
5479 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5482 * config/i386/i386.md (*rcpsf2_sse): Add
5483 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
5484 (*rsqrtsf2_sse): Ditto.
5485 (*sqrt<mode>2_sse): Ditto.
5486 (sse4_1_round<mode>2): separate constraint vm, add
5487 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
5488 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
5490 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
5492 (*sse_vmrsqrtv4sf2): Ditto.
5493 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
5494 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
5495 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
5496 <iptr> pointer size modifier since vround support memory operand.
5498 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5501 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
5504 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
5505 Tobias Burnus <tobias@codesourcery.com>
5507 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
5508 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
5511 2019-10-25 Richard Biener <rguenther@suse.de>
5513 PR tree-optimization/92222
5514 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
5515 (_slp_oprnd_info::second_pattern): Likewise.
5516 (_slp_oprnd_info::any_pattern): New.
5517 (vect_create_oprnd_info): Adjust.
5518 (vect_get_and_check_slp_defs): Compute whether any stmt is
5520 (vect_build_slp_tree_2): Avoid building up a node from scalars
5521 if any of the operand defs, not just the first, is in a pattern.
5523 2019-10-25 Richard Biener <rguenther@suse.de>
5525 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
5526 swapping if we actually have to modify the IL on a shared stmt.
5527 (vect_build_slp_tree_2): Never fail swapping on shared stmts
5528 because we no longer modify the IL.
5530 2019-10-25 Martin Liska <mliska@suse.cz>
5532 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
5534 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
5536 * tree-vect-loop.c (vectorizable_reduction): Restrict the
5537 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
5538 handled by vect_transform_reduction. Allow fully-masked loops
5539 to be used with reduction chains.
5540 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
5541 operations in fully-masked loops.
5542 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
5543 operations in fully-masked loops.
5545 2019-10-25 Richard Biener <rguenther@suse.de>
5547 * tree-vect-loop.c (vectorizable_reduction): Verify
5548 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
5550 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
5551 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
5554 2019-10-24 Jakub Jelinek <jakub@redhat.com>
5556 * gimplify.h (omp_construct_selector_matches): Declare.
5557 * gimplify.c (struct gimplify_omp_ctx): Add code member.
5558 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
5559 called function if needed for flag_openmp.
5560 (gimplify_scan_omp_clauses): Set ctx->code.
5561 (omp_construct_selector_matches): New function.
5562 * omp-general.h (omp_constructor_traits_to_codes,
5563 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
5564 * omp-general.c (omp_constructor_traits_to_codes,
5565 omp_context_selector_matches, omp_resolve_declare_variant): New
5568 * config/arc/arc.c (hwloop_optimize): Add missing space in string
5570 * config/rx/rx.c (rx_print_operand): Likewise.
5571 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5572 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5573 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
5575 * genemit.c (emit_c_code): Likewise.
5576 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
5578 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5580 * symbols-summary.h (fast_function_summary<T *, V>::release,
5581 fast_call_summary<T *, V>::release): Free m_vector.
5583 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5585 * cgraphunit.c (symbol_table::process_new_functions): Call
5586 ipa_free_size_summary.
5587 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
5588 (devirtualization_time_bonus): Update.
5589 (ipcp_propagate_stage): Update.
5590 * ipa-fnsummary.c (ipa_size_summaries): New.
5591 (ipa_fn_summary_alloc): Alloc size summary.
5592 (dump_ipa_call_summary): Update.
5593 (ipa_dump_fn_summary): Update.
5594 (analyze_function_body): Update.
5595 (compute_fn_summary): Likewise.
5596 (ipa_get_stack_frame_offset): New function.
5597 (inline_update_callee_summaries): Do not update frame offsets.
5598 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
5599 remove call and function summary.
5600 (ipa_update_overall_fn_summary): Update.
5601 (inline_read_section): Update.
5602 (ipa_fn_summary_write): Update.
5603 (ipa_free_fn_summary): Do not remove summaries.
5604 (ipa_free_size_summary): New.
5605 (release summary pass): Also run at WPA.
5606 * ipa-fnsummary.h (ipa_size_summary): Declare.
5607 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
5608 estimated_self_stack_size.
5609 (ipa_size_summary_t): New type.
5610 (ipa_size_summaries): Declare.
5611 (ipa_free_size_summary): Declare.
5612 (ipa_get_stack_frame_offset): Declare.
5613 * ipa-icf.c (sem_function::merge): Update.
5614 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
5615 (estimate_growth): Update.
5616 (growth_likely_positive): Update.
5617 (clone_inlined_nodes): Update.
5618 (inline_call): Update.
5619 * ipa-inline.c (caller_growth_limits): Update.
5620 (edge_badness): Update.
5621 (recursive_inlining): Update.
5622 (inline_small_functions): Update.
5623 (inline_to_all_callers_1): Update.
5624 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
5626 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
5628 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
5629 (uavg<mode>3_ceil): ... This.
5630 (altivec_vavgs<VI_char>): Rename to...
5631 (avg<mode>3_ceil): ... This.
5632 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
5633 VAVGUW, VAVGSW): Adjust.
5635 2019-10-24 Nathan Sidwell <nathan@acm.org>
5637 * dumpfile.c (dump_begin): Reorder decls to use RAII.
5639 2019-10-24 Martin Liska <mliska@suse.cz>
5641 * symbol-summary.h (gt_pch_nx): Mark all functions
5642 with gcc_unreachable as we do not expect to be called.
5644 2019-10-24 Richard Biener <rguenther@suse.de>
5646 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
5647 chains try harder with operand swapping and instead of
5648 putting a shifted chain into the reduction operands put
5649 a repetition of the final reduction op there as if we'd
5650 reassociate the expression.
5652 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5654 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
5655 statics_not_read and statics_not_written to statics_read and
5656 statics_written respectively.
5657 (no_module_statics): New static var.
5658 (ipa_reference_get_not_read_global): Rename to ...
5659 (ipa_reference_get_read_global): ... this.
5660 (ipa_reference_get_not_written_global): Rename to ...
5661 (ipa_reference_get_written_global): ... this.
5662 (dump_static_vars_set_to_file): Dump no_module_statics.
5663 (copy_static_var_set): Add for propagation parameter.
5664 (ipa_init): Initialize no_module_statics.
5665 (ipa_ref_opt_summary_t::duplicate): Update.
5666 (ipa_ref_opt_summary_t::remove): Update.
5667 (propagate): Update.
5668 (write_node_summary_p): Look correctly for bitmap differences.
5669 (ipa_reference_write_optimization_summary): Update.
5670 (ipa_reference_read_optimization_summary): Update.
5672 (ipa_reference_get_not_read_global): Rename to ...
5673 (ipa_reference_get_read_global): ... this.
5674 (ipa_reference_get_not_written_global): Rename to ...
5675 (ipa_reference_get_written_global): ... this.
5676 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
5677 (call_may_clobber_ref_p_1): Update.
5679 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5681 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
5683 (msp430_hard_regno_nregs_with_padding): Remove.
5685 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5687 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
5688 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
5689 shift amount is between 1 and 4.
5690 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
5693 2019-10-24 Richard Biener <rguenther@suse.de>
5695 PR tree-optimization/92205
5696 * tree-vect-loop.c (vectorizable_reduction): Restrict
5697 search for alternate vectype_in to lane-reducing patterns
5700 2019-10-24 Richard Biener <rguenther@suse.de>
5702 PR tree-optimization/92203
5703 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
5704 Skip eliminating conversion stmts inserted by insertion.
5706 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
5708 * config/s390/s390.c (s390_get_thread_pointer): Use
5709 gen_get_thread_pointer.
5710 (s390_expand_split_stack_prologue): Likewise.
5711 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
5712 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
5713 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
5714 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
5717 2019-10-24 Richard Biener <rguenther@suse.de>
5719 * tree-vect-slp.c (vect_analyze_slp): When reduction group
5720 SLP discovery fails try to handle the reduction as part
5721 of SLP reduction discovery.
5723 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
5725 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
5727 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
5728 attribute if it exists, rather than the insn size. If we use the
5729 insn size, adjust the size to remove the extra size that prefixed
5731 (rs6000_adjust_insn_length): New function.
5732 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
5733 update the instruction sized if prefixed instructions are used.
5734 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
5735 (non_prefixed_length attribute): Delete.
5736 (num_insns attribute): New insn attribute to return the number of
5738 (max_prefixed_insns attribute): New insn attribute to return the
5739 maximum number of prefixed instructions in an insn.
5740 (length attribute): Do not adjust for prefix instructions here,
5741 punt to ADJUST_INSN_LENGTH.
5742 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
5743 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
5744 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
5745 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
5746 max_prefixed_insns and num_insns.
5748 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
5749 (movtd_64bit_nodm): Reformat.
5750 (mov<mode>_32bit): Reformat.
5751 (mov<mode>_softfloat): Reformat.
5752 (FMOVE128_GPR splitter): Reformat.
5753 (DIFD splitter): Reformat.
5754 (TI2 splitter): Reformat.
5755 * config/rs6000/predicates.md (lwa_operand): If the bottom two
5756 bits of the offset for the memory address are non-zero, use PLWA
5757 if prefixed instructions are available.
5759 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5761 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
5763 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5765 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
5768 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5770 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
5771 (cmp_symbol_files): New.
5772 (lto_output): Copy sections in file order.
5773 * lto-streamer.h (lto_file_decl_data): Add field order.
5775 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5777 * ipa-reference.h (ipa_reference_var_uid): Move offline.
5778 * ipa-reference.c (reference_vars_map_t): new type.
5779 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
5780 (ipa_reference_var_uid): Implement.
5781 (varpool_node_hooks): New static var.
5782 (varpool_removal_hook): New function.
5783 (is_improper): Do not check bitmap for id==-1
5784 (get_static_name): Update.
5785 (ipa_init): Initialize new datastructures.
5786 (analyze_function): Do not recompute ids.
5787 (propagate): Free reference_vars_to_consider.
5788 (stream_out_bitmap): Update.
5789 (ipa_reference_read_optimization_summary): Update.
5791 2019-10-23 qing zhao <qing.zhao@oracle.com>
5793 PR gcov-profile/91971
5794 * coverage.c (coverage_init): Mangle the full path of filename when
5795 filename is a absolute path.
5797 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5799 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
5800 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
5801 (msp430_has_hwmult): New.
5802 (msp430_output_labelref):
5803 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
5804 * config/msp430/msp430.md (mulhisi3): Likewise.
5805 (umulhisi3): Likewise.
5806 (mulsidi3): Likewise.
5807 (umulsidi3): Likewise.
5809 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5812 * params.def (inline-heuristics-hint-percent): Set to 600.
5814 2019-10-23 Richard Biener <rguenther@suse.de>
5816 PR tree-optimization/65930
5817 * tree-vect-loop.c (check_reduction_path): Allow conversions
5818 that only change the sign.
5819 (vectorizable_reduction): Relax latch def stmts we handle further.
5821 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5824 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5825 (remove_unused_ivs): Use it instead of get_computation_at. When
5826 choosing best candidate, only consider candidates where
5827 get_debug_computation_at actually returns non-NULL.
5829 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5831 PR tree-optimization/92131
5832 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5833 range would be symbolic, drop to varying for any explicit overflow
5834 in the constant part or if neither range is a singleton.
5836 2019-10-23 Martin Liska <mliska@suse.cz>
5839 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5842 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5844 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5845 int_mode_for_mode rather than mode_for_int_vector for scalars.
5847 2019-10-23 Richard Biener <rguenther@suse.de>
5849 PR tree-optimization/92179
5850 * tree-vect-stmts.c (vectorizable_shift): For shift args
5851 that are all the same remove type restriction in the SLP case.
5852 Adjust SLP code to handle converting of the shift arg to
5853 only apply in case the modes are different.
5855 2019-10-23 Martin Liska <mliska@suse.cz>
5858 * ipa-inline.c (recursive_inlining): Do not print
5859 when curr->count is not initialized.
5861 2019-10-23 Richard Biener <rguenther@suse.de>
5863 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5864 op from scalars in case there's a constant operand in its
5867 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5869 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5870 against out of range max skip or log values.
5872 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5874 * cgraph.c (dump_graphviz): Change name to dump_name
5876 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5878 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5879 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5880 subtraction from a carry operation.
5882 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5884 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5886 2019-10-22 Richard Biener <rguenther@suse.de>
5888 PR tree-optimization/92173
5889 * tree-vect-loop.c (vectorizable_reduction): If
5890 vect_transform_reduction cannot handle code-generation try without
5891 the single-def-use-cycle optimization. Pass optab_vector to
5892 optab_for_tree_code to get vector shifts as that's what we'd
5895 2019-10-22 Michael Matz <matz@suse.de>
5898 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5899 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5900 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5902 2019-10-22 Richard Biener <rguenther@suse.de>
5904 PR tree-optimization/92173
5905 * tree-vect-loop.c (vectorizable_reduction): If
5906 vect_transform_reduction cannot handle code-generation try without
5907 the single-def-use-cycle optimization. Pass optab_vector to
5908 optab_for_tree_code to get vector shifts as that's what we'd
5911 2019-10-22 Martin Liska <mliska@suse.cz>
5913 * diagnostic-format-json.cc (json_from_expanded_location):
5914 Use json::integer_number.
5915 * gcov.c (output_intermediate_json_line): Use new
5916 json::integer_number.
5917 (output_json_intermediate_file): Likewise.
5918 * json.cc (number::print): Move to ...
5919 (float_number::print): ... this.
5920 (integer_number::print): New.
5921 (test_writing_numbers): Move to ...
5922 (test_writing_float_numbers): ... this.
5923 (test_writing_integer_numbers): New.
5924 (json_cc_tests): Register test_writing_integer_numbers.
5925 * json.h (class value): Add forward declaration
5926 for float_number and integer_number.
5927 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5928 (class number): Move to ...
5929 (class float_number): ... this.
5930 (class integer_number): New.
5931 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5932 Use json::integer_number.
5933 (optrecord_json_writer::location_to_json): Likewise.
5934 (optrecord_json_writer::profile_count_to_json): Likewise.
5935 (optrecord_json_writer::pass_to_json): Likewise.
5937 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5939 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5940 autodetected_vector_size rather than vector_size is zero.
5941 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5942 Set autodetected_vector_size immediately after calling
5943 vect_analyze_loop_2. Check for a fatal error before advancing
5946 2019-10-21 Jason Merrill <jason@redhat.com>
5948 * lock-and-run.sh: Check for process existence rather than timeout.
5950 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5952 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5953 widening multiplication.
5955 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5957 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5958 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5960 (subsi3_carryin_shift): Separate into register and constant controlled
5961 alternatives. Use shift_amount_operand for operand 4. Set shift
5962 attribute and simplify type attribute.
5963 (subsi3_carryin_shift_alt): Likewise.
5964 (rsbsi3_carryin_shift): Likewise.
5965 (rsbsi3_carryin_shift_alt): Likewise.
5966 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5967 and register controlled shifts into distinct alternatives.
5968 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5969 (andsi_not_shiftsi_si_scc): Likewise.
5970 (arm_cmpsi_negshiftsi_si): Likewise.
5971 (not_shiftsi): Remove redundant M constraint from alternative 1.
5972 (not_shiftsi_compare0): Likewise.
5973 (arm_cmpsi_insn): Remove redundant alternative 2.
5974 (cmpsi_shift_swp): Likewise.
5975 (sub_shiftsi): Likewise.
5976 (sub_shiftsi_compare0_scratch): Likewise.
5977 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5978 (thumb2_cmpsi_neg_shiftsi): Likewise.
5980 2019-10-21 Richard Biener <rguenther@suse.de>
5982 PR tree-optimization/92162
5983 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5984 STMT_VINFO_REDUC_IDX in reduc_info.
5985 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5987 2019-10-21 Richard Biener <rguenther@suse.de>
5989 * tree-vectorizer.h (_slp_tree::ops): New member.
5990 (SLP_TREE_SCALAR_OPS): New.
5991 (vect_get_slp_defs): Adjust prototype.
5992 * tree-vect-slp.c (vect_free_slp_tree): Release
5993 SLP_TREE_SCALAR_OPS.
5994 (vect_create_new_slp_node): Initialize it. New overload for
5995 initializing by an operands array.
5996 (_slp_oprnd_info::ops): New member.
5997 (vect_create_oprnd_info): Initialize it.
5998 (vect_free_oprnd_info): Release it.
5999 (vect_get_and_check_slp_defs): Populate the operands array.
6000 Do not swap operands in the IL when not necessary.
6001 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
6002 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
6003 swap operands in the operands array. Do not swap operands in
6005 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
6006 (vect_gather_slp_loads): Fix.
6007 (vect_detect_hybrid_slp_stmts): Likewise.
6008 (vect_slp_analyze_node_operations_1): Search for a internal
6009 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
6010 (vect_slp_analyze_node_operations): Skip ops-only stmts for
6011 the def-type push/pop dance.
6012 (vect_get_constant_vectors): Compute number_of_vectors here.
6013 Use SLP_TREE_SCALAR_OPS and simplify greatly.
6014 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
6015 (vect_get_slp_defs): Simplify greatly.
6016 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
6017 (vect_transform_reduction): Likewise.
6018 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
6019 (vectorizable_call): Likewise.
6020 (vectorizable_operation): Likewise.
6021 (vectorizable_load): Likewise.
6022 (vectorizable_condition): Likewise.
6023 (vectorizable_comparison): Likewise.
6025 2019-10-21 Richard Biener <rguenther@suse.de>
6027 PR tree-optimization/92161
6028 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
6031 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6033 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
6034 (aarch64_rndr): New define_insn.
6035 (aarch64_rndrrs): Likewise.
6036 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
6037 (TARGET_RNG): Likewise.
6038 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
6040 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
6041 Add fourth argument in prototype.
6042 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
6043 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
6044 (aarch64_init_rng_builtins): Define.
6045 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
6046 (aarch64_expand_rng_builtin): Define.
6047 (aarch64_general_expand_builtin): Use IGNORE argument, handle
6049 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
6050 __ARM_FEATURE_RNG when TARGET_RNG.
6051 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
6053 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
6055 * tree-vect-stmts (ensure_base_align): Only change alignment if new
6056 alignment is more restrictive.
6058 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6060 * tree-vectorizer.h (vec_info::vector_size): New member variable.
6061 (vect_update_max_nunits): Update comment.
6062 (current_vector_size): Delete.
6063 * tree-vect-stmts.c (current_vector_size): Likewise.
6064 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
6065 of current_vector_size.
6066 (get_mask_type_for_scalar_type): Likewise.
6067 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
6068 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
6069 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
6070 (vect_double_mask_nunits, vect_transform_loop): Likewise.
6071 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6072 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
6074 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6076 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
6077 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
6078 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
6081 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6083 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
6084 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
6085 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
6087 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
6089 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6091 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
6093 (vect_set_loop_condition_masked): Update call accordingly.
6095 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6097 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
6098 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
6099 (simple_integer_narrowing): Update call accordingly.
6100 (vectorizable_conversion): Likewise.
6102 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6104 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
6105 (vectorizable_call): Update call accordingly.
6107 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6109 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
6110 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
6111 (duplicate_and_interleave): Update call accordingly.
6112 * tree-vect-loop.c (vectorizable_reduction): Likewise.
6114 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6116 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
6117 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
6118 (vect_get_constant_vectors): Update call accordingly.
6119 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
6121 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6123 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
6124 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
6125 (vect_prologue_cost_for_slp_op): Update call accordingly.
6126 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
6127 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
6128 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
6129 (get_mask_type_for_scalar_type): Likewise.
6130 (vect_get_vector_types_for_stmt): Likewise.
6131 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
6132 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
6133 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
6134 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
6135 (vect_split_statement, vect_convert_input): Likewise.
6136 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
6137 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
6138 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
6139 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
6140 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
6141 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
6142 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
6143 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
6144 (vect_recog_mask_conversion_pattern): Likewise.
6145 (vect_add_conversion_to_pattern): Likewise.
6146 (vect_recog_gather_scatter_pattern): Likewise.
6147 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
6148 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
6150 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6152 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
6153 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
6154 (vect_check_load_store_mask): Update call accordingly.
6155 (vect_get_mask_type_for_stmt): Likewise.
6156 * tree-vect-patterns.c (check_bool_pattern): Likewise.
6157 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
6158 (vect_convert_mask_for_vectype): Likewise.
6160 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6162 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
6164 (vect_recog_dot_prod_pattern): Update call accordingly.
6165 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
6166 (vect_recog_widen_sum_pattern): Likewise.
6168 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6170 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
6171 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
6172 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
6175 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
6177 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
6178 get_vectype_for_scalar_type_and_size instead of
6179 get_vectype_for_scalar_type.
6181 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
6183 * common.opt (-fcommon): Fix description.
6185 2019-10-20 Jakub Jelinek <jakub@redhat.com>
6187 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
6188 * config/i386/i386.c (ix86_pre_reload_split): New function.
6189 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
6190 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
6191 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
6192 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
6193 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
6194 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
6195 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
6196 *<shift_insn><dwi>3_doubleword_mask,
6197 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
6198 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
6199 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
6200 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
6201 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
6202 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
6203 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
6204 *avx2_<code>v8qiv8si2<mask_name>_2,
6205 *sse4_1_<code>v4qiv4si2<mask_name>_2,
6206 *sse4_1_<code>v4hiv4si2<mask_name>_2,
6207 *avx512f_<code>v8qiv8di2<mask_name>_2,
6208 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
6209 *sse4_1_<code>v2hiv2di2<mask_name>_2,
6210 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
6211 sse4_2_pcmpistr): Likewise.
6213 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
6215 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
6216 now defaults to https.
6218 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
6220 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
6221 skip non-zero array accesses.
6223 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6225 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
6226 and return a boolean success value. Move the allocation and
6227 initialization of the bb_vec_info to...
6228 (vect_slp_bb_region): ...here. Update call accordingly.
6229 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6230 than in vect_slp_analyze_bb_1.
6232 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6234 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6235 when processing the given datarefs for the first time and
6236 check_datarefs subsequently.
6237 (vect_slp_bb_region): New function, split out of...
6238 (vect_slp_bb): ...here. Don't recompute the region bounds and
6239 dataref sets when retrying with a different vector size.
6241 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6242 Uroš Bizjak <ubizjak@gmail.com>
6245 * config/i386/predicates.md (int_nonimmediate_operand): New special
6247 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6248 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6249 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6250 define_insn_and_split patterns.
6252 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6254 * config/rs6000/rs6000.md: Delete out--of-date comment about
6255 special-casing integer loads.
6257 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6259 * escaped_string.h (escaped_string): New header.
6260 * tree.c (escaped_string): Remove escaped_string class.
6262 2019-10-18 Martin Sebor <msebor@redhat.com>
6264 PR tree-optimization/92157
6265 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6266 compute_string_length to return a negative result.
6268 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6270 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6271 (negvsi3, negvdi3): Delete.
6272 (negdi2_compare): Delete.
6274 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6276 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6278 (subdi3_compare1): Delete pattern.
6279 (subvsi3_borrow): New insn pattern.
6280 (subvsi3_borrow_imm): Likewise.
6282 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6284 * config/arm/arm.md (subv<mode>4): Delete.
6285 (subvdi4): New expander pattern.
6286 (subvsi4): Likewise. Handle some immediate values.
6287 (subvsi3_intmin): New insn pattern.
6288 (subvsi3): Likewise.
6289 (subvsi3_imm1): Likewise.
6290 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6293 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6295 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6296 incoming operands. Early split the calculation into SImode
6298 (usubvsi3_borrow): New insn pattern.
6299 (usubvsi3_borrow_imm): Likewise.
6301 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6303 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6304 (usubvsi4): New pattern. Allow some immediate values for inputs.
6305 (usubvdi4): New pattern.
6307 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6309 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6310 or second operand of the PLUS inside a DImode equality test to be
6311 sign-extend when selecting CC_Vmode.
6312 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6314 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6316 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6317 (addsi3_cin_vout_0): Likewise.
6318 (adddi3_compareV): Delete.
6320 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6322 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6323 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6324 to transform this back into the summation version when that leads
6327 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6329 * config/arm/arm.md (addv<mode>4): Delete.
6330 (addvsi4): New pattern. Handle immediate values that the architecture
6332 (addvdi4): New pattern.
6333 (addsi3_compareV): Rename to ...
6334 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6335 and use COMPARE rather than NE.
6336 (addsi3_compareV_imm): New pattern.
6337 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6338 a signed-overflow check.
6340 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6342 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6343 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6345 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6346 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6348 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6350 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6351 (addsi3_cin_cout_imm_insn): Likewise.
6352 (adddi3_compareC): Delete insn.
6353 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
6355 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6357 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
6358 * (uaddv<mode>4): Delete expansion pattern.
6359 (uaddvsi4): New pattern.
6360 (uaddvdi4): Likewise.
6361 (addsi3_compareC): Delete pattern, change callers to use
6363 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
6364 reduce the number of alternatives and re-work type attribute handling.
6365 (addsi3_compare_op2): Clean up constraints to reduce the number of
6366 alternatives and re-work type attribute handling.
6367 (compare_addsi2_op0): Likewise.
6368 (compare_addsi2_op1): Likewise.
6370 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6372 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
6373 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
6374 for DImode operands.
6375 (arm_gen_dicompare_reg): Remove unreachable expansion code.
6376 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
6378 * config/arm/arm.md (arm_cmpdi_insn): Delete.
6379 (arm_cmpdi_unsigned): Delete.
6381 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6383 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
6384 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
6385 unchanged only if that will be cheaper.
6386 (arm_select_cc_mode): Recognize a swapped comparison that will
6387 be regenerated using RSBS or RSCS. Relax restriction on selecting
6389 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
6391 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
6393 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
6395 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
6396 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
6398 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6400 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
6401 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
6403 (arm_gen_dicompare_reg): New code to early expand the sub-operations
6404 of EQ, NE, LT, GE, LTU and GEU.
6405 * config/arm/iterators.md (CC_EXTEND): New code attribute.
6406 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
6407 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
6408 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
6409 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
6411 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6413 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
6415 (cstoredi4): Similarly, but for operand 3.
6416 * config/arm/arm.c (arm_canoncialize_comparison): Allow
6417 canonicalization of unsigned compares with a constant on Arm.
6418 Prefer using const+1 and adjusting the comparison over swapping the
6419 operands whenever the original constant was not valid.
6420 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
6422 (arm_validize_comparison): Do not force invalid DImode operands to
6425 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6427 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
6428 return CC_Zmode if comparing against a constant where one word is
6430 (arm_gen_compare_reg): Split DImode handling to ...
6431 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
6432 against simple constants.
6433 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
6435 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6437 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
6438 (rsbsi3_carryin_shift_alt): Likewise.
6440 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6442 * config/arm/arm.md (negscc_borrow): New pattern.
6443 (mov_negscc): Don't split if the insn would match negscc_borrow.
6444 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
6445 (thumb2_mov_negscc_strict_it): Likewise.
6447 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6449 * config/arm/arm.c (arm_insn_cost): New function.
6450 (TARGET_INSN_COST): Override default definition.
6452 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6454 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6457 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6459 * config/arm/arm.c (strip_carry_operation): New function.
6460 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
6463 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6465 * config/arm/predicates.md (arm_carry_operation): New special
6467 * config/arm/iterators.md (LTUGEU): Delete iterator.
6468 (cnb): Delete code attribute.
6469 (optab): Delete ltu and geu elements.
6470 * config/arm/arm.md (addsi3_carryin): Renamed from
6471 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
6472 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
6473 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
6474 (addsi3_carryin_clobercc): Similarly.
6475 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
6478 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6480 * config/arm/arm.md (arm_subdi3): Delete insn.
6481 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
6483 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6485 * config/arm/arm-modes.def (CC_RSB): New CC mode.
6486 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
6487 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
6489 (maybe_get_arm_condition_code): Handle CC_RSBmode.
6490 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
6492 (subdi3): Rewrite to early-expand the sub-operations.
6493 (rsb_im_compare): New pattern.
6495 (negdi2_insn): Delete.
6496 (arm_negsi2): Correct type attribute to alu_imm.
6497 (negsi2_0compare): New insn pattern.
6498 (negsi2_carryin): New insn pattern.
6500 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6502 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
6505 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6507 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
6508 to match canonical form.
6510 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6512 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
6513 (extend<mode>di2): Likewise.
6515 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6517 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
6518 * config/arm/arm.c (arm_decompose_di_binop): New function.
6519 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
6520 If not generating Thumb-1 code, decompose the operation into 32-bit
6522 * add0si_carryin_<optab>: New pattern.
6524 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6526 * arm.md (adddi3): Only accept register operands.
6527 (arm_adddi3): Convert to simple insn with no split. Do not accept
6529 (adddi_sesidi_di): Delete patern.
6530 (adddi_zesidi_di): Likewise.
6531 (uaddv<mode>4): Use LTU as condition for branch.
6532 (adddi3_compareV): Convert to simple insn with no split.
6533 (addsi3_compareV_upper): Delete pattern.
6534 (adddi3_compareC): Convert to simple insn with no split. Correct
6535 flags setting expression.
6536 (addsi3_compareC_upper): Delete pattern.
6537 (addsi3_compareC): Correct flags setting expression.
6538 (subdi3_compare1): Convert to simple insn with no split.
6539 (subsi3_carryin_compare): Delete pattern.
6540 (arm_subdi3): Convert to simple insn with no split.
6541 (subdi_zesidi): Delete pattern.
6542 (subdi_di_sesidi): Delete pattern.
6543 (subdi_zesidi_di): Delete pattern.
6544 (subdi_sesidi_di): Delete pattern.
6545 (subdi_zesidi_zesidi): Delete pattern.
6546 (negvdi3): Use s_register_operand.
6547 (negdi2_compare): Convert to simple insn with no split.
6548 (negdi2_insn): Likewise.
6549 (negsi2_carryin_compare): Delete pattern.
6550 (negdi_zero_extendsidi): Delete pattern.
6551 (arm_cmpdi_insn): Convert to simple insn with no split.
6552 (negdi2): Don't call gen_negdi2_neon.
6553 * config/arm/neon.md (adddi3_neon): Delete pattern.
6554 (subdi3_neon): Delete pattern.
6555 (negdi2_neon): Delete pattern.
6556 (splits for negdi2_neon): Delete splits.
6558 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6561 * ggc-page.c (release_pages): Read g->alloc_size before free rather
6564 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
6566 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
6567 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
6568 new multilib variants and new mappings.
6570 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6573 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
6575 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6576 Richard Sandiford <richard.sandiford@arm.com>
6579 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
6580 and define hashmap traits for it.
6581 (loop_vec_info::scalar_cond_masked_set): New member.
6582 (vect_record_loop_mask): Adjust prototype.
6583 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
6585 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
6586 vect_record_loop_mask.
6587 (vectorizable_live_operation): Likewise.
6588 (vect_record_loop_mask): New param scalar_mask. Add entry
6589 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
6590 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
6591 Pass it as last arg to vect_record_loop_mask.
6592 (vectorizable_call): Pass scalar_mask as last arg to
6593 vect_record_loop_mask.
6594 (vectorizable_store): Likewise.
6595 (vectorizable_load): Likewise.
6596 (vectorizable_condition): Check if another part of vectorized code
6597 applies loop_mask to condition or to it's inverse, and if yes,
6598 apply loop_mask to result of vector comparison.
6600 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
6602 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
6604 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6606 PR tree-optimization/92056
6607 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
6608 before calling compute_builtin_object_size.
6610 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
6613 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
6614 (movdi_low_st): Delete.
6615 * config/rs6000/rs6000.c
6616 (darwin_rs6000_legitimate_lo_sum_const_p): New.
6617 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
6618 * config/rs6000/rs6000.md (movsi_low): Delete.
6620 2019-10-17 Jason Merrill <jason@redhat.com>
6622 * gimplify.h (get_initialized_tmp_var): Add default argument to
6624 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
6625 NULL post_p argument.
6626 * targhooks (std_gimplify_va_arg_expr): Likewise.
6628 2019-10-17 Richard Biener <rguenther@suse.de>
6630 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
6631 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
6632 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
6633 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
6634 * tree-vect-loop.c (vect_is_simple_reduction): Set
6635 STMT_VINFO_REDUC_CODE.
6636 (vectorizable_reduction): Remove dead and redundant code, use
6637 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
6639 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
6641 Fix breakage introduced by r276985.
6643 * config/avr/avr.c (avr_option_override): Remove set of
6644 PARAM_ALLOW_STORE_DATA_RACES.
6645 * common/config/avr/avr-common.c (avr_option_optimization_table)
6646 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
6648 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
6650 * config/i386/i386.h (processor_costs): Add clear_ratio.
6651 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
6652 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
6653 of 6 and move_ratio in all cost models.
6655 2019-10-17 Richard Biener <rguenther@suse.de>
6657 * tree-vect-loop.c (check_reduction_path): Compute reduction
6659 (vect_is_simple_reduction): Remove special-case of single-stmt
6660 reduction path detection.
6662 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
6664 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
6666 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
6668 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
6669 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
6670 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
6671 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
6672 New combine patterns.
6673 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
6675 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
6677 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
6679 * tree-vrp.c (value_range_base::dump): Display +INF for both
6680 pointers and integers when appropriate.
6682 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6684 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
6685 when to use versioning threshold.
6687 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6689 * tree-vect-loop.c (determine_peel_for_niter): New function contained
6690 outlined code from ...
6691 (vect_analyze_loop_2): ... here.
6693 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6695 * tree-vect-loop.c (vect_transform_loop): Move code from here...
6696 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
6697 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
6699 2019-10-17 Richard Biener <rguenther@suse.de>
6701 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
6702 (vect_is_simple_reduction): Move all validity checks ...
6703 (vectorizable_reduction): ... here. Compute whether we
6704 need a fold-left reduction here.
6705 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
6706 both overloads, check needs_fold_left_reduction_p directly.
6707 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
6709 2019-10-17 Richard Biener <rguenther@suse.de>
6711 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
6712 TARGET_MEM_REF creation.
6714 2019-10-17 Richard Biener <rguenther@suse.de>
6716 PR tree-optimization/92129
6717 * tree-vect-loop.c (vectorizable_reduction): Also fail
6718 on GIMPLE_SINGLE_RHS.
6720 2019-10-17 Jakub Jelinek <jakub@redhat.com>
6722 PR tree-optimization/92056
6723 * tree-object-size.c (cond_expr_object_size): Return early if then_
6724 processing resulted in unknown size.
6726 PR tree-optimization/92115
6727 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
6728 temporary if it could trap.
6730 2019-10-17 Richard Biener <rguenther@suse.de>
6733 * dwarf2out.c (gen_formal_parameter_die): Also try to match
6734 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
6736 2019-10-16 Jakub Jelinek <jakub@redhat.com>
6738 * tree-ssa-strlen.c (maybe_invalidate): Use
6739 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
6741 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
6742 Jim Wilson <jimw@sifive.com>
6744 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
6745 regs to SIBCALL_REGS.
6746 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
6747 passing regs to SIBCALL_REGS.
6749 2019-10-16 Martin Sebor <msebor@redhat.com>
6751 PR tree-optimization/83821
6752 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
6753 the length of a string when available.
6754 (handle_builtin_memset) Add argument.
6755 (handle_store, strlen_check_and_optimize_call): Same.
6756 (check_and_optimize_stmt): Same. Pass it to callees.
6758 2019-10-16 Martin Sebor <msebor@redhat.com>
6760 PR tree-optimization/91996
6761 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
6763 (compare_nonzero_chars): Add an overload.
6764 (count_nonzero_bytes): Add an argument. Call overload above.
6765 Handle non-constant lengths in some range.
6766 (handle_store): Add an argument.
6767 (check_and_optimize_stmt): Pass an argument to handle_store.
6769 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
6771 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
6773 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6775 * config/mips/mips.c (mips_expand_builtin_insn): Force the
6776 operands which correspond to the same input-output register to
6777 have the same pseudo assigned to them.
6779 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
6781 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
6783 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
6785 * config/aarch64/aarch64.c (aarch64_classify_symbol):
6786 Apply reasonable limit to symbol offsets.
6788 2019-10-16 Richard Biener <rguenther@suse.de>
6790 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
6791 (vect_is_simple_reduction): Delay checking to
6792 vectorizable_reduction and relax the checking.
6793 (vectorizable_reduction): Check we have a simple use. Check
6794 for bogus condition reductions.
6795 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
6796 are looking at the last stmt in a pattern sequence when
6797 filling in backedge PHI values.
6799 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
6800 Jiufu Guo <guojiufu@linux.ibm.com>
6803 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6804 the callee explicitly disables some isa_flags the caller is using.
6806 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6808 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
6810 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6812 * genmodes.c (mode_data::order): New field.
6813 (blank_mode): Update accordingly.
6814 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6815 (make_vector_modes): Likewise.
6816 (VECTOR_MODES): Update use accordingly.
6817 (cmp_modes): Sort by the new order field ahead of sorting by size.
6818 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6819 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6820 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6821 (aarch64_classify_vector_mode): Handle the new partial modes.
6822 (aarch64_vl_bytes): New function.
6823 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6824 when counting the number of registers in an SVE mode.
6825 (aarch64_class_max_nregs): Likewise.
6826 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6828 (aarch64_classify_address): Treat partial vectors analogously
6830 (aarch64_print_address_internal): Consolidate the printing of
6831 MUL VL addresses, using aarch64_vl_bytes as the number of
6832 bytes represented by "VL".
6833 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6835 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6837 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6838 rather than known_lt when choosing frame layouts.
6840 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6842 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6843 that all the adjustments add up to the full frame size.
6844 Use crtl->outgoing_args_size directly as the final adjustment
6847 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6849 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6850 "frame" reference instead of always referring directly to
6851 "cfun->machine->frame".
6853 2019-10-16 Richard Biener <rguenther@suse.de>
6855 PR tree-optimization/92119
6856 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6857 against missing bswap lhs.
6859 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6862 * poly-int.h (constant_lower_bound_with_limit): New function.
6863 (constant_upper_bound_with_limit): Likewise.
6864 * doc/poly-int.texi: Document them.
6865 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6866 into the worst-case INTEGER_CST bounds.
6868 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6871 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6872 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6873 * ipa-predicat.h (struct expr_eval_op): New struct.
6874 (expr_eval_ops): New typedef.
6875 (struct condition): Add type and param_ops fields, remove size field.
6876 (add_condition): Replace size parameter with type parameter, add
6877 param_ops parameter.
6878 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6879 (predicate::add_clause): Add comparisons on type and param_ops.
6880 (dump_condition): Add debug dump for param_ops.
6881 (remap_after_inlining): Adjust call arguments to add_condition.
6882 (add_condition): Replace size parameter with type parameter, add
6883 param_ops parameter. Unshare constant value used in conditions.
6884 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6885 parameter expressions using param_ops.
6886 (decompose_param_expr): New function.
6887 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6888 to replace call to unmodified_parm_or_parm_agg_item.
6889 (set_switch_stmt_execution_predicate): Likewise.
6890 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6892 (inline_read_section): Read param_ops from summary stream.
6893 (ipa_fn_summary_write): Write param_ops to summary stream.
6895 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6897 PR rtl-optimization/92107
6898 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6901 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6903 * config/darwin.c: Update description of fix and continue.
6905 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6907 * config/darwin.c (darwin_binds_local_p): Update to call
6908 default_binds_local_p_3 () directly. amend comments.
6910 2019-10-15 Richard Biener <rguenther@suse.de>
6912 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6913 (tree_is_indexable): Use it.
6914 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6915 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6916 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6918 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6920 * config/msp430/msp430.md (zero_extendqipsi2): New.
6921 (zero_extendqisi2): Optimize case where src register and base dst
6922 register are the same.
6923 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6924 (zero_extendpsisi2): Optimize r->m case.
6925 Add unnamed insn patterns to catch insns combine searches for when
6926 optimizing pointer manipulation.
6928 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6930 * config/msp430/msp430.md: Group zero_extend* insns together.
6932 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6934 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6936 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6938 (msp430_subreg): Likewise.
6939 (msp430_split_addsi): Likewise.
6940 (msp430_print_operand_addr): Likewise.
6941 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6942 (USE_STORE_POST_INCREMENT): Define.
6943 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6944 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6945 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6946 (msp430_general_dst_operand): New.
6947 (msp430_general_dst_nonv_operand): New.
6948 (msp430_nonsubreg_operand): Remove.
6949 (msp430_nonsubreg_dst_operand): New.
6950 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6951 of defunct msp430_nonsubreg_operand.
6952 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6954 2019-10-15 Richard Biener <rguenther@suse.de>
6956 PR tree-optimization/91929
6957 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6958 (get_or_alloc_expr_for_name): Initialize it.
6959 (get_or_alloc_expr_for_constant): Likewise.
6960 (phi_translate_1): Copy it.
6961 (create_expression_by_pieces): Use the original location
6962 of the expression for the inserted stmt.
6963 (compute_avail): Record the location of the stmt for the
6964 expressions created.
6966 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6968 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6969 before using tree_to_uhwi.
6971 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6973 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6975 2019-10-15 Richard Biener <rguenther@suse.de>
6977 PR tree-optimization/92094
6978 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6979 do not adjust the reduction definition def type.
6980 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6981 defines the latch argument of the PHI.
6983 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6986 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6987 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6988 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6989 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6990 _mm_maskz_roundscale_round_sd): New intrinsics.
6991 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6992 __builtin_ia32_rndscales?_mask_round builtins instead of
6993 __builtin_ia32_rndscales?_round.
6994 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6995 __builtin_ia32_rndscalesd_round): Remove.
6996 (__builtin_ia32_rndscaless_mask_round,
6997 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6998 * config/i386/sse.md
6999 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
7000 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
7001 ... this, adjust and add subst atrributes to make it maskable.
7003 2019-10-15 Richard Biener <rguenther@suse.de>
7006 * common.opt (fallow-store-data-races): New.
7007 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
7008 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
7009 * doc/invoke.texi (fallow-store-data-races): Document.
7010 (--param allow-store-data-races): Remove docs.
7011 * opts.c (default_options_table): Enable -fallow-store-data-races
7013 (default_options_optimization): Do not enable --param
7014 allow-store-data-races at -Ofast.
7015 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
7016 instead of PARAM_ALLOW_STORE_DATA_RACES.
7017 * tree-ssa-loop-im.c (execute_sm): Likewise.
7019 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7021 PR tree-optimization/92085
7022 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
7023 instead of calling it unconditionally after
7024 delete_dead_or_redundant_assignment and fix indentation.
7026 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
7028 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
7030 (*fmsub<SDF:mode>4): Likewise.
7031 *fnmsub<SDF:mode>4): Likewise.
7032 (*fnmadd<SDF:mode>4): Likewise.
7034 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
7036 * doc/tree-ssa.texi: Update renamed macro name.
7038 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
7040 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
7043 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
7045 * config/darwin.c: Use unsigned ints for the picbase label
7046 counters, initialise the vars explicitly.
7047 (update_pic_label_number_if_needed): Move a variable declaration
7048 to where it's needed.
7049 (machopic_output_function_base_name): Use a more strict checking
7050 assert, and and unsigned int for the picbase label counter.
7051 (machopic_get_function_picbase): Likewise.
7053 2019-10-14 Richard Biener <rguenther@suse.de>
7056 * dse.c (scan_insn): Use param max_active_local_stores.
7057 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
7058 based on optimization level.
7059 * loop-invariant.c (move_loop_invariants): Adjust
7060 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
7061 * opts.c (default_options_optimization): Do not adjust
7062 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
7063 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
7065 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7067 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
7069 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
7071 * config/arm/arm.c (arm_option_override): Don't override sched
7074 2019-10-14 Richard Biener <rguenther@suse.de>
7076 PR tree-optimization/92069
7077 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
7078 cycles do not set vect_nested_cycle on the latch definition.
7080 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
7082 * function-abi.h (expr_callee_abi): Declare.
7083 * function-abi.cc (expr_callee_abi): New function.
7085 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
7087 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
7089 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
7090 non-zero being represented as [1,MAX].
7092 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
7094 * tree-sra.c (dump_access): Add missing braces.
7096 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7098 * config/darwin.c (machopic_indirection_name): Rework the
7099 function to emit linker-visible symbols only for indirections
7100 in the data section. Clean up the code and update comments.
7102 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
7104 * config/darwin.c (machopic_indirect_data_reference): Remove
7107 2019-10-13 Nathan Sidwell <nathan@acm.org>
7109 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
7111 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7113 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
7116 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
7118 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
7119 so non-virutal are before virutals.
7120 (output_function): Avoid body modifications.
7122 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7124 * config/pa/pa.c (pa_output_call): Load descriptor address to register
7125 %r22. Load function address before global pointer.
7126 (pa_attr_length_indirect_call): Adjust length of inline versions of
7128 (pa_output_indirect_call): Remove fast inline version of $$dyncall
7129 before normal cases. Update inline $$dyncall sequences to preserve
7130 function descriptor address in register %r22.
7131 (TRAMPOLINE_CODE_SIZE): Adjust.
7132 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
7133 register %r22 contains trampoline address.
7134 (pa_trampoline_init): Adjust offsets.
7135 (pa_trampoline_adjust_address): Likewise.
7136 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
7138 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7141 * config/darwin.c (machopic_indirection): New field to flag
7142 non-lazy-symbol-pointers in the data section.
7143 (machopic_indirection_name): Compute if an indirection should
7144 appear in the data section.
7145 (machopic_output_data_section_indirection): New callback split
7146 from machopic_output_indirection.
7147 (machopic_output_stub_indirection): Likewise.
7148 (machopic_output_indirection): Retain the code for non-lazy
7149 symbol pointers in their regular section.
7150 (machopic_finish): Use the new callbacks to order the indirection
7153 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7155 * config/darwin-protos.h (machopic_finish): Delete.
7156 * config/darwin.c (machopic_finish): Make static.
7158 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
7160 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
7161 sections when building kernel extension code.
7163 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
7165 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
7168 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
7170 * config/pa/pa.c (pa_option_override): Remove trailing comma
7173 2019-10-12 Jakub Jelinek <jakub@redhat.com>
7176 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
7177 <case VEC_COND_EXPR>: Return false with *handled = false.
7178 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
7179 recursing on the first operand.
7180 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
7181 instead of tree_could_trap_p.
7182 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
7184 2019-10-11 Jim Wilson <jimw@sifive.com>
7186 PR rtl-optimization/91860
7187 * combine.c (subst): If new_rtx is a constant, also check for
7188 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
7190 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
7192 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
7193 INTVAL when calling store_bit_field.
7195 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
7197 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
7200 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
7202 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
7203 vectorizable_live_operation.
7204 (vectorizable_live_operation): Adjust parameters.
7205 * tree-vect-stmts.c (vect_init_vector,
7206 vect_gen_widened_results_half): Fix typo in function comment.
7207 (can_vectorize_live_stmts): Adjust function comment.
7208 Adjust parameters. Adjust call to vectorizable_live_operation.
7209 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
7210 (vect_transform_stmt): Adjust function comment. Adjust call to
7211 can_vectorize_live_stmts.
7212 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
7214 2019-10-11 Richard Biener <rguenther@suse.de>
7216 PR tree-optimization/90883
7217 PR tree-optimization/91091
7218 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
7219 alias-sets both for recording VN table entries and continuing
7220 walking after translating through copies. Handle same-sized
7221 reads from SSA names by returning the plain SSA name.
7222 (eliminate_dom_walker::eliminate_stmt): Properly handle
7223 non-size precision stores in redundant store elimination.
7225 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7227 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7228 (ggc_collect): Dump later to not interfere with release_page dump.
7229 (ggc_trim): New function.
7230 * ggc-none.c (ggc_trim): New.
7231 * ggc.h (ggc_trim): Declare.
7233 2019-10-11 Richard Biener <rguenther@suse.de>
7235 PR tree-optimization/92066
7236 PR tree-optimization/92046
7237 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7238 Fix bogus cost model check.
7240 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7242 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7243 (LANG_HOOKS_DECLS): Add it.
7244 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7245 update comment for omp_is_optional_argument.
7246 * omp-general.c (omp_is_allocatable_or_ptr): New.
7247 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7248 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7249 Fortran's optional arguments and allocatable/pointer scalars
7250 with use_device_addr.
7252 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7255 * config/s390/2827.md: Add new opcodes.
7256 * config/s390/2964.md: Likewise.
7257 * config/s390/3906.md: Likewise.
7258 * config/s390/8561.md: Likewise.
7259 * config/s390/s390-builtins.def (s390_vfchesb): Use
7260 the new vec_cmpgev4sf_quiet_nocc.
7261 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7262 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7263 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7264 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7265 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7266 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7267 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7268 * config/s390/s390-modes.def (CCSFPS): New mode.
7269 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7270 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7271 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7272 (s390_expand_vec_compare): Use non-signaling patterns where
7274 (s390_reverse_condition): Support CCSFPS.
7275 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7276 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7277 (asm_fcmp_op): Likewise.
7278 (*smaxv2df3_vx): Use pattern for quiet comparison.
7279 (*sminv2df3_vx): Likewise.
7280 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7281 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7282 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7283 (vec_cmplt<mode>_quiet_nocc): New expander.
7284 (vec_cmpge<mode>_quiet_nocc): New pattern.
7285 (vec_cmple<mode>_quiet_nocc): New expander.
7286 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7287 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7288 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7289 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7290 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7291 (vec_cmpungt<mode>): New expander.
7292 (vec_cmpunge<mode>): Likewise.
7293 (vec_cmpuneq<mode>): Use quiet patterns.
7294 (vec_cmpltgt<mode>): Allow only on z14+.
7295 (vec_cmpordered<mode>): Use quiet patterns.
7296 (vec_cmpunordered<mode>): Likewise.
7297 (VEC_CMP_EXPAND): Add ungt and unge.
7299 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7301 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7303 * lto-streamer-out.c: Include tree-dfa.h.
7304 (output_cfg): Do not use cfun.
7305 (lto_prepare_function_for_streaming): New.
7306 (output_function): Do not push cfun; do not initialize loop optimizer.
7307 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7308 * passes.c (ipa_write_summaries): Use it.
7309 (ipa_write_optimization_summaries): Do not modify bodies.
7310 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7311 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7312 * tree-ssa-dse.c (pass_dse::execute): Update use of
7313 renumber_gimple_stmt_uids.
7314 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7316 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7318 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7319 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7321 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7323 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7325 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7326 Also define DFP macros for these conditions.
7327 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7328 DEC128_SUBNORMAL_MIN): Do not define.
7329 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7330 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7332 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7333 Sandra Loosemore <sandra@codesourcery.com>
7336 * doc/lto.texi (IPA): Reference to the IPA passes.
7337 * doc/passes.texi (Pass manager): Add node IPA passes and
7338 description for each IPA pass.
7340 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7342 * ipa-reference.c: Do not include splay-tree.h
7343 (reference_vars_to_consider): Turn to hash map.
7344 (get_static_name, ipa_init, analyze_function, propagate,
7345 stream_out_bitmap, ipa_reference_write_optimization_summary,
7346 ipa_reference_write_optimization_summary): Update.
7348 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7350 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7352 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
7354 * config/darwin.c: Lookup Objective C metadata and force indirection
7357 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
7359 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
7361 (mem_operand_gpr): Add check for prefixed addresses.
7362 (mem_operand_ds_form): Add check for prefixed addresses.
7363 (rs6000_legitimate_offset_address_p): If we support prefixed
7364 addresses, check for a 34-bit offset instead of 16-bit.
7365 (rs6000_legitimate_address_p): Add check for prefixed addresses.
7366 Do not allow load/store with update if the address is prefixed.
7367 (rs6000_mode_dependent_address): If we support prefixed
7368 addresses, check for a 34-bit offset instead of 16-bit.
7370 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
7373 * config/s390/vector.md (vcond_comparison_operator): New
7375 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
7377 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7380 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
7382 * configure.ac (--with-documentation-root-url): New option.
7383 * configure: Regenerate.
7384 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
7385 option URL, add it as a new string field of the diagnostic option.
7386 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
7387 (print_option_information): If get_option_url is non-NULL, call
7388 it, and if the result is non-NULL, potentially emit an escape
7389 sequence to markup the option text with the resulting URL.
7390 * diagnostic.h (diagnostic_context::get_option_url): New callback.
7391 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
7392 example of JSON output.
7393 * opts-diagnostic.h (get_option_url): New decl.
7394 * opts.c (get_option_url): New function.
7395 * toplev.c (general_init): Initialize the get_option_url callback.
7397 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7400 * common.opt (fdiagnostics-urls=): New option.
7401 (diagnostic-url.h): Add SourceInclude.
7402 (diagnostic_url_rule): New enum.
7403 * diagnostic-color.c: Include "diagnostic-url.h".
7404 (diagnostic_urls_enabled_p): New function.
7405 * diagnostic-url.h: New file.
7406 * diagnostic.c: Include "diagnostic-url.h".
7407 (diagnostic_urls_init): New function.
7408 * diagnostic.h (diagnostic_urls_init): New decl.
7409 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7410 -fdiagnostics-urls to the list.
7411 (-fdiagnostics-urls): New option.
7412 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
7413 (driver::global_initializations): Call diagnostic_urls_init.
7414 * opts-global.c (init_options_once): Likewise.
7415 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
7416 * pretty-print.c (pretty_printer::pretty_printer): Initialize
7418 (pp_begin_url): New function.
7419 (pp_end_url): New function.
7420 (selftest::test_urls): New selftest.
7421 (selftest::pretty_print_c_tests): Call it.
7422 * pretty-print.h (pretty_printer::show_urls): New field.
7423 (pp_begin_url): New decl.
7424 (pp_end_url): New decl.
7426 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
7429 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
7431 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
7434 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
7435 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
7436 also for TARGET_FPU_SH4_300.
7437 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
7439 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
7440 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
7441 (*negsf2_i): Split into ...
7442 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
7443 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
7444 (**abssf2_i): Split into ...
7445 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
7446 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
7447 (*negdf2_i): Split into ...
7448 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
7449 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
7450 (**abssf2_i): Split into ...
7451 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
7453 2019-10-10 Richard Biener <rguenther@suse.de>
7456 * opts.c (finish_options): Do not influence global --params
7457 from options that are adjustable per function.
7458 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7459 Apply --param adjustment based on active cost-model.
7460 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
7461 further store-sinking when vectorization or if-conversion
7464 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7467 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
7468 rather than ggc_alloc_cleared to alloc symbol table.
7469 * toplev.c (general_init): Likewise.
7470 * cgraph.h (symbol_table): Explicitly construct every field.
7472 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7474 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
7476 * config.gcc: Add z15 as option for --with-arch and --with-tune
7478 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
7479 error reporting for unsupported builtins.
7480 * config/s390/s390-opts.h (enum processor_type): Rename
7481 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
7482 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
7483 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7485 * config/s390/s390-builtins.def: Likewise.
7486 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
7487 (s390_expand_builtin): Add missing check for unsupported builtins.
7488 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
7489 (s390_rtx_costs): Likewise.
7490 (s390_get_sched_attrmask): Rename arch13 to z15.
7491 (s390_get_unit_mask): Likewise.
7492 (s390_is_fpd): Likewise.
7493 (s390_is_fxd): Likewise.
7494 * config/s390/s390.h (enum processor_flags): Likewise.
7495 * config/s390/s390.md: Likewise.
7496 * config/s390/vector.md: Likewise.
7497 * config/s390/vx-builtins.md: Likewise.
7498 * config/s390/s390.opt: Add z15 to processor_type value.
7500 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7503 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
7505 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
7506 ("split_stack_data", "split_stack_call")
7507 ("split_stack_call_<mode>", "split_stack_cond_call")
7508 ("split_stack_cond_call_<mode>"): Remove.
7509 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
7511 * config/s390/s390.c (s390_output_split_stack_data): New function.
7512 (s390_expand_split_stack_prologue): Use the merged expander.
7514 2019-10-09 Martin Sebor <msebor@redhat.com>
7516 PR tree-optimization/90879
7517 * builtins.c (check_access): Avoid using maxbound when null.
7518 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
7519 * doc/invoke.texi (-Wstring-compare): Document new warning option.
7520 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
7522 (get_range_strlen): Overwrite initial maxbound when non-null.
7523 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
7525 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
7526 (used_only_for_zero_equality): New function.
7527 (handle_builtin_memcmp): Call it.
7528 (determine_min_objsize): Return an integer instead of tree.
7529 (get_len_or_size, strxcmp_eqz_result): New functions.
7530 (maybe_warn_pointless_strcmp): New function.
7531 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
7532 between a longer string and a smaller array.
7533 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
7535 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7537 * config/darwin.c (darwin_override_options): Make the check for
7538 Objective-C ABI version more specific for 64bit code.
7540 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7542 * config/darwin.c (machopic_indirect_data_reference): Set flag to
7543 indicate that the new symbol is an indirection.
7544 (machopic_indirect_call_target): Likewise.
7545 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
7546 (MACHO_SYMBOL_INDIRECTION_P): New.
7547 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
7549 2019-10-08 Jason Merrill <jason@redhat.com>
7551 * doc/invoke.texi: Document -fconcepts-ts.
7553 2019-10-09 Richard Biener <rguenther@suse.de>
7555 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
7556 allow stmts other than GIMPLE_ASSIGN in nested cycles.
7558 2019-10-08 Richard Biener <rguenther@suse.de>
7560 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
7561 (_stmt_vec_info::force_single_cycle): Likewise.
7562 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
7563 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
7564 * tree-vect-loop.c (vectorizable_reduction): Set
7565 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
7566 (vect_transform_reduction): Use them to remove redundant code.
7567 (vect_transform_cycle_phi): Likewise.
7569 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
7571 PR tree-optimization/90836
7572 * match.pd (popcount): New pattern.
7574 2019-10-08 Martin Sebor <msebor@redhat.com>
7578 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
7579 again once nbytes has been set. Set the access size when not yet set.
7581 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7583 * config/darwin.c (machopic_select_section): Remove dead code for
7584 old Objective-C section selection method, replace with unreachable.
7586 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7588 * config/darwin.c (machopic_indirect_data_reference): Check for
7589 required indirections before making direct access to defined
7591 (machopic_output_indirection): Place the indirected pointes for
7592 required indirections into the non-lazy symbol pointers section.
7593 (darwin_encode_section_info):
7594 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
7595 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
7597 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
7600 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
7601 instead of ALL_SSE_REG to check if function call preserves some
7602 256-bit SSE registers.
7604 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7606 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
7607 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
7608 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
7610 2019-10-08 Richard Biener <rguenther@suse.de>
7612 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
7613 (_stmt_vec_info::is_reduc_info): Add.
7614 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
7615 (vectorizable_condition): Remove.
7616 (vectorizable_shift): Likewise.
7617 (vectorizable_reduction): Adjust.
7618 (info_for_reduction): New.
7619 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
7620 (vect_analyze_scalar_cycles_1): ... here.
7621 (vect_analyze_loop_operations): Adjust.
7622 (needs_fold_left_reduction_p): Simplify for single caller.
7623 (vect_is_simple_reduction): Likewise. Remove stmt restriction
7624 for nested cycles not part of double reductions.
7625 (vect_model_reduction_cost): Pass in the reduction type.
7626 (info_for_reduction): New function.
7627 (vect_create_epilog_for_reduction): Use it, access reduction
7628 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
7629 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7630 (vectorize_fold_left_reduction): Remove pointless assert.
7631 (vectorizable_reduction): Analyze the full reduction when
7632 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
7633 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
7634 stmt code-generation to vectorizable_* in most cases. Verify
7635 code-generation only for cases handled by
7636 vect_transform_reductuon.
7637 (vect_transform_reduction): Use info_for_reduction to get at
7638 reduction meta. Simplify.
7639 (vect_transform_cycle_phi): Likewise.
7640 (vectorizable_live_operation): Likewise.
7641 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
7642 at the PHI node for STMT_VINFO_REDUC_TYPE.
7643 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
7644 longer necessary code.
7645 * tree-vect-stmts.c (vectorizable_shift): Make static again.
7646 (vectorizable_condition): Likewise. Get at reduction related
7647 info via info_for_reduction.
7648 (vect_analyze_stmt): Adjust.
7649 (vect_transform_stmt): Likewise.
7650 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7651 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7653 2019-10-08 Joseph Myers <joseph@codesourcery.com>
7655 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
7656 -fno-fp-int-builtin-inexact default for C2X.
7658 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7659 Richard Biener <rguenther@suse.de>
7661 PR tree-optimization/91532
7662 * tree-if-conv.c: Include tree-ssa-dse.h.
7663 (ifcvt_local_dce): Change param from bb to loop,
7664 and call dse_classify_store.
7665 (tree_if_conversion): Pass loop instead of loop->header as arg
7667 * tree-ssa-dse.c: Include tree-ssa-dse.h.
7668 (delete_dead_or_redundant_assignment): Remove static qualifier from
7669 declaration, and add prototype in tree-ssa-dse.h.
7670 (dse_store_status): Move to tree-ssa-dse.h.
7671 (dse_classify_store): Remove static qualifier and add new tree param
7672 stop_at_vuse, and add prototype in tree-ssa-dse.h.
7673 * tree-ssa-dse.h: New header.
7675 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7677 * config/darwin.c (machopic_output_indirection): Don't put
7678 hidden symbol indirections into the .data section, use the
7679 non-lazy symbol pointers section as normal.
7680 (darwin_encode_section_info): Record if a symbol is hidden.
7681 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
7682 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
7684 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7686 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
7687 predicates instead of accessing bits directly.
7688 (machopic_indirect_call_target): Likewise.
7689 (machopic_output_indirection): Likewise.
7690 (darwin_encode_section_info): Improve description. Use renamed
7691 symbol flags. Use predicate macros for variables and functions.
7693 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
7694 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
7695 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
7696 (MACHO_SYMBOL_VARIABLE_P): New.
7697 (MACHO_SYMBOL_DEFINED_P):New.
7698 (MACHO_SYMBOL_STATIC_P): New.
7699 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
7700 (SYMBOL_FLAG_SUBT_DEP): New.
7701 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
7703 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7705 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
7706 (msp430_expand_epilogue): Likewise.
7707 * config/msp430/predicates.md: Likewise.
7708 * config/msp430/msp430.md: Likewise.
7709 Replace blocks of 8 spaces with tabs.
7711 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7713 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
7714 * config/msp430/msp430.c (msp430_split_addsi): New.
7715 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
7716 a block of C code for splitting addsi.
7718 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
7720 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
7721 ix86_expand_rounddf_32): Reorder functions.
7722 * config/i386/i386-protos.h: Update.
7724 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7726 * config.in: Regenerate.
7727 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
7728 Add new "Yx" constraint.
7729 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
7731 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
7733 * config/msp430/msp430.c (msp430_option_override): Allow the lower
7734 code/data region to be selected in the small memory model.
7735 (msp430_section_attr): Don't warn if the "section" and "lower"
7736 attributes are used together.
7737 (msp430_handle_generic_attribute): Likewise.
7738 (msp430_var_in_low_mem): New function.
7739 (TARGET_ENCODE_SECTION_INFO): Define.
7740 (msp430_encode_section_info): New function.
7741 (gen_prefix): Return early in the small memory model.
7742 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
7743 ".lower" prefix if -m{code,data}-region=lower have been passed.
7744 (msp430_output_aligned_decl_common): Emit common symbols when
7745 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
7747 (TARGET_ASM_FILE_END): Define.
7748 (msp430_file_end): New function.
7749 (msp430_do_not_relax_short_jumps): Allow relaxation when
7750 function will be in the lower region.
7751 (msp430_op_not_in_high_mem): New function.
7752 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
7753 the 'X' operand selector.
7754 Clarify comment for 'x' operand selector.
7755 * config/msp430/msp430.h (LINK_SPEC): Propagate
7756 -m{code,data}-region to the linker via spec function
7757 msp430_propagate_region_opt.
7758 (msp430_propagate_region_opt): New prototype.
7759 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
7760 (SYMBOL_FLAG_LOW_MEM): Define.
7761 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
7763 (zero_extendqihi2): Fix operand number used by "%X" selector.
7764 (zero_extendqisi2): Likewise.
7765 (zero_extendhisi2): Likewise.
7766 (movqi): Use "Yx" constraint in place of "%X" operand selector.
7771 (addhi3_cy): Likewise.
7772 (addchi4_cy): Likewise.
7776 (bic<mode>3): Likewise.
7777 (and<mode>3): Likewise.
7778 (ior<mode>3): Likewise.
7779 (xor<mode>3): Likewise.
7780 (slli_1): Add missing "%X" operand selector.
7788 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
7790 (cbranchhi4_real): Likewise.
7791 (cbranchqi4_reversed): Likewise.
7792 (cbranchhi4_reversed): Likewise.
7793 (*bitbranch<mode>4): Likewise.
7794 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
7795 * config/msp430/msp430.opt (mcode-region=): Set default to
7796 MSP430_REGION_LOWER. Improve docstring.
7797 (mdata-region=): Likewise.
7798 (muse-lower-region-prefix): New option.
7799 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
7800 mdata-region=none multilib.
7801 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
7802 mdata-region=none multilib.
7803 MULTILIB_EXCEPTIONS: Remove.
7804 MULTILIB_REQUIRED: Define.
7805 * configure: Regenerate.
7806 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
7807 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
7808 * doc/extend.texi: Clarify comment for {upper,lower,either}
7809 function attributes.
7810 Add separate description for "lower" variable attribute.
7812 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7815 * optabs-tree.c (vcond_icode_p): New function.
7816 (vcond_eq_icode_p): Likewise.
7817 (expand_vec_cond_expr_p): Use vcond_icode_p and
7819 * optabs.c (can_vcond_compare_p): New function.
7820 * optabs.h (can_vcond_compare_p): Likewise.
7822 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7825 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7826 caller passes a non-trapping condition.
7827 (is_gimple_condexpr): Allow trapping conditions.
7828 (is_gimple_condexpr_1): New helper function.
7829 (is_gimple_condexpr_for_cond): New function, acts like old
7831 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7832 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7833 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7834 * gimplify.c (gimplify_cond_expr): Use
7835 is_gimple_condexpr_for_cond.
7836 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7837 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7839 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7840 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7841 is_gimple_condexpr_for_cond, remove pointless tmp check
7842 (forward_propagate_into_cond): Remove pointless tmp check.
7844 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7846 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7847 match that of other gsi_next_* functions. Adjust the comment.
7848 (gsi_start_nonvirtual_phis): New function.
7849 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7850 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7852 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7854 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7855 setjmp situation here. Fix a verb's ending: "the exact variables or
7856 elements for which there are warnings depends" -> "... depend".
7858 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7860 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7862 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7864 * ipa-prop.c (ipa_vr::nonzero_p): New.
7865 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7867 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7868 * tree-vrp.c (range_has_numeric_bounds_p): New.
7869 (range_int_cst_p): Use range_has_numeric_bounds_p.
7870 (get_range_op_handler): New.
7871 (supported_types_p): New.
7872 (defined_ranges_p): New.
7873 (drop_undefines_to_varying): New.
7874 (range_fold_binary_symbolics_p): New.
7875 (range_fold_unary_symbolics_p): New.
7876 (range_fold_unary_expr): Extract out into above functions.
7877 (range_fold_binary_expr): Same.
7878 (value_range_base::normalize_addresses): New.
7879 (value_range_base::normalize_symbolics): Normalize addresses.
7880 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7882 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7884 * tree-vrp.c (value_range_base::singleton_p): Use
7885 value_range_base::num_pairs instead of vrp_val_is* to check
7886 if a range has one sub-range.
7888 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7890 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7891 DEF is not a true earlyclobber but is tied to a specific input
7892 operand, and so is effectively earlyclobber wrt inputs that have
7894 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7896 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7898 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7899 (pod_mode): Mark operators likewise.
7900 (scalar_int_mode): Mark non-default constructors and
7901 operators with CONSTEXPR.
7902 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7903 (fixed_size_mode): Likewise.
7905 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7908 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7909 and wrap the unspec_volatile in a parallel.
7910 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7911 the unspec_volatile.
7912 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7913 unspec_volatile to be wrapped in a parallel.
7914 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7915 (ix86_add_reg_usage_to_vzerouppers): New functions.
7916 (rest_of_handle_insert_vzeroupper): Use them to add register
7917 usage information to the vzeroupper instructions.
7919 2019-10-07 Richard Biener <rguenther@suse.de>
7921 PR tree-optimization/91975
7922 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7925 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7927 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7928 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7930 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7932 * config/darwin.c (darwin_override_options): Adjust objective-c
7933 ABI version error messages to avoid punctuation and contracted
7936 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7938 * ipa-inline.c: Fix type; compute size rather than self_size
7939 for size of caller function.
7941 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7944 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7945 choose const_data section for constants with relocations.
7946 (machopic_select_section): Pass relocation flag to
7947 darwin_rodata_section ().
7949 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7951 PR tree-optimization/91734
7952 * generic-match-head.c: Include fold-const-call.h.
7953 * match.pd (sqrt(x) cmp c): Check the boundary value and
7954 in case inexact computation of c*c affects comparison of the boundary,
7955 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7956 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7957 for -frounding-math. For c2, try the next smaller or larger floating
7958 point constant depending on comparison code and if it has the same
7959 sqrt as c2, use it instead of c2.
7961 2019-10-04 Martin Sebor <msebor@redhat.com>
7964 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7965 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7966 uninitialized objects.
7968 2019-10-04 Martin Sebor <msebor@redhat.com>
7970 * builtins.c (compute_objsize): Add an argument.
7971 * tree-object-size.c (addr_object_size): Same.
7972 (compute_builtin_object_size): Same.
7973 * tree-object-size.h (compute_builtin_object): Same.
7975 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7977 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7979 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7981 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7983 2019-10-04 Martin Jambor <mjambor@suse.cz>
7985 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7986 fntype when switching to calling memcpy instead of memset.
7988 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7990 * hash-table.h (hash_table::empty_slow): Don't assign
7991 size_t values to int variables.
7993 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7995 * expr.c (convert_mode_scalar): Remove shadowing local var.
7996 (emit_block_move): Rename local vars.
7997 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7998 (emit_push_insn): Rename local vars.
7999 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
8000 shadowing local vars.
8001 (store_constructor): Remove shadowing local vars. Rename local var.
8002 (store_field, expand_cond_expr_using_cmove,
8003 expand_expr_real_2): Remove shadowing local vars.
8004 (expand_expr_real_1,
8005 do_store_flag): Remove shadowing local vars. Rename local vars.
8007 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8009 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
8011 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8013 * genmatch.c (commutate): Rename local var.
8014 (lower_cond): Reuse local var.
8015 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
8016 dt_operand::gen, dt_operand::gen_gimple_expr,
8017 dt_simplify::gen): Add a param. Rename generated vars.
8018 (decision_tree::insert_operand,
8019 (capture_info::walk_match, capture_info::walk_result,
8020 capture_info::walk_c_expr): Rename local vars.
8021 (expr::gen_transform): Rename generated vars.
8022 Use snprintf. Rename local vars.
8023 (capture::gen_transform, dt_operand::get_name,
8024 dt_operand::gen_opname): Rename generated vars.
8025 (write_predicate): Adjust call to gen_kids.
8026 (parser::get_internal_capture_id): Rename generated vars.
8027 (parser::parse_expr): Rename local vars.
8028 (parser::parse_if): Remove local var.
8029 (parser::parse_pattern, add_operator): Rename local vars.
8031 2019-10-04 Joseph Myers <joseph@codesourcery.com>
8033 * builtins.def (DEF_C2X_BUILTIN): New macro.
8034 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
8035 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
8036 (strndup): Use DEF_C2X_BUILTIN.
8037 * coretypes.h (enum function_class): Add function_c2x_misc.
8039 2019-10-04 Maya Rashish <coypu@sdf.org>
8041 * ira-color.c (update_costs_from_allocno): Call
8042 ira_init_register_move_cost_if_necessary.
8044 2019-10-04 Jeff Law <law@redhat.com>
8046 * config/h8300/h8300.md (cpymemsi): Disable.
8047 (movmd, movmd_internal_<mode>, movstr, movsd):
8048 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
8049 (movmd splitter, movsd splitter): Likewise.
8051 * range-op.cc (range_tests): Avoid two tests when ints and
8052 shorts are the same size.
8054 2019-10-04 Richard Biener <rguenther@suse.de>
8057 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
8060 2019-10-04 Richard Biener <rguenther@suse.de>
8062 PR tree-optimization/91982
8063 * tree-vect-loop.c (vectorizable_live_operation): Also guard
8064 against EXTRACT_LAST_REDUCTION.
8065 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
8067 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
8069 * range-op.o (value_range_from_overflowed_bounds): Rename from
8070 adjust_overflow_bound.
8071 (value_range_with_overflow): Rename from
8072 create_range_with_overflow.
8073 (create_possibly_reversed_range): Adjusted for above renames.
8074 (operator_*::wi_fold): Same.
8075 (cross_product_operator::wi_cross_productor): Same.
8077 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
8079 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
8080 -Wshadow=compatible-local): Fix description.
8081 Add an example where -Wshadow=compatible-local does not
8084 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
8086 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
8088 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
8089 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
8091 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
8093 * expr.c (emit_block_move_hints): Slightly cleaner fix to
8094 can_move_by_pieces issue.
8096 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
8099 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
8100 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
8101 is available and the user has not set one on the command line.
8103 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
8106 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
8107 instead of REGNO equality check on addr.reg.
8109 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
8111 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
8112 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
8113 * doc/invoke.texi (inline-heuristics-hint-percent,
8114 inline-heuristics-hint-percent-O2): Document.
8115 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
8117 (can_inline_edge_by_limits_p): Use it.
8119 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
8121 * config/arm/arm.c (arm_print_value): Use real_to_decimal
8122 to print CONST_DOUBLEs.
8124 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
8126 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
8127 * ipa-prop.c (ipcp_free_transformation_sum): New function.
8128 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
8130 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
8132 * Makefile.in (OBJS): Add range.o and range-op.o.
8133 Remove wide-int-range.o.
8134 * function-tests.c (test_ranges): New.
8135 (function_tests_c_tests): Call test_ranges.
8136 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
8137 range_fold_unary_expr instead of extract_range_from_unary_expr.
8138 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
8139 * range-op.cc: New file.
8140 * range-op.h: New file.
8141 * range.cc: New file.
8142 * range.h: New file.
8143 * selftest.h (range_tests): New prototype.
8144 * ssa.h: Include range.h.
8145 * tree-vrp.c (value_range_base::value_range_base): New
8147 (value_range_base::singleton_p): Do not call
8148 ranges_from_anti_range until sure we will need to.
8149 (value_range_base::type): Rename gcc_assert to
8150 gcc_checking_assert.
8151 (vrp_val_is_max): New argument.
8152 (vrp_val_is_min): Same.
8153 (wide_int_range_set_zero_nonzero_bits): Move from
8155 (extract_range_into_wide_ints): Remove.
8156 (extract_range_from_multiplicative_op): Remove.
8157 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
8158 from extract_range_from_binary_expr.
8159 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
8160 from extract_range_from_binary_expr.
8161 (extract_range_from_binary_expr): Remove.
8162 (normalize_for_range_ops): New.
8163 (range_fold_binary_expr): New.
8164 (range_fold_unary_expr): New.
8165 (value_range_base::num_pairs): New.
8166 (value_range_base::lower_bound): New.
8167 (value_range_base::upper_bound): New.
8168 (value_range_base::upper_bound): New.
8169 (value_range_base::contains_p): New.
8170 (value_range_base::invert): New.
8171 (value_range_base::union_): New.
8172 (value_range_base::intersect): New.
8173 (range_compatible_p): New.
8174 (value_range_base::operator==): New.
8175 (determine_value_range_1): Call range_fold_*expr instead of
8176 extract_range_from_*expr.
8177 * tree-vrp.h (class value_range_base): Add new constructors.
8178 Add methods for union_, intersect, operator==, contains_p,
8179 num_pairs, lower_bound, upper_bound, invert.
8180 (vrp_val_is_min): Add handle_pointers argument.
8181 (vrp_val_is_max): Same.
8182 (extract_range_from_unary_expr): Remove.
8183 (extract_range_from_binary_expr): Remove.
8184 (range_fold_unary_expr): New.
8185 (range_fold_binary_expr): New.
8186 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
8187 range_fold_binary_expr instead of extract_range_from_binary_expr.
8188 (vr_values::extract_range_basic): Same.
8189 (vr_values::extract_range_from_unary_expr): Call
8190 range_fold_unary_expr instead of extract_range_from_unary_expr.
8191 * wide-int-range.cc: Remove.
8192 * wide-int-range.h: Remove.
8194 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
8196 * config/rs6000/rs6000.c (mem_operand_gpr): Use
8197 SIGNED_16BIT_OFFSET_EXTRA_P macro.
8198 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
8199 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
8202 2019-10-02 Joseph Myers <joseph@codesourcery.com>
8204 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
8205 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
8206 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
8207 * glimits.h: Likewise.
8209 2019-10-03 Jakub Jelinek <jakub@redhat.com>
8211 PR rtl-optimization/91976
8212 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
8213 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
8214 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
8216 2019-10-02 Martin Sebor <msebor@redhat.com>
8218 PR tree-optimization/80936
8219 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
8221 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8223 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
8224 instead of reg_class_contents[ALL_REGS].
8226 2019-09-30 Jason Merrill <jason@redhat.com>
8228 Add some hash_map_safe_* functions like vec_safe_*.
8229 * hash-map.h (default_hash_map_size): New variable.
8230 (create_ggc): Use it as default argument.
8231 (hash_map_maybe_create, hash_map_safe_get)
8232 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8234 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8236 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8237 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8238 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8239 (can_inline_edge_by_limits_p): Use it.
8240 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8241 (want_inline_small_function_p): Use O2 bounds.
8242 (edge_badness): LIkewise.
8243 * opts.c (default_options): Add OPT_finline_functions.
8244 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8245 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8247 * doc/invoke.texi (-finline-functions): Update documentation.
8248 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8249 inline-min-speedup-O2): Document.
8250 (early-inlining-insns-O2): Simplify docs.
8252 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8254 PR rtl-optimization/87047
8255 * ifcvt.c (average_cost): New static function. Use it...
8256 (noce_process_if_block): ... here.
8258 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8260 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8261 * config/rs6000/rs6000-string.c (expand_block_move): Add
8263 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8264 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8266 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8268 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8269 (expand_builtin_memcpy): Use might_overlap parm.
8270 (expand_builtin_mempcpy_args): Use might_overlap parm.
8271 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8272 (expand_builtin_memory_copy_args): Add might_overlap parm.
8273 * expr.c (emit_block_move_via_cpymem): Rename to
8274 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8275 or movmem optab as appropriate.
8276 (emit_block_move_hints): Add might_overlap parm, do the right
8277 thing for might_overlap==true.
8278 * expr.h (emit_block_move_hints): Update prototype.
8280 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8282 * tree-eh.h (unsplit_eh_edges): Declare.
8283 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8284 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8285 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8286 (struct store_immediate_info): Add lp_nr field.
8287 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8288 initialize lp_nr with it.
8289 (struct merged_store_group): Add lp_nr and only_constants fields.
8290 (merged_store_group::merged_store_group): Initialize them.
8291 (merged_store_group::can_be_merged_into): Deal with them.
8292 (pass_store_merging): Rename terminate_and_release_chain into
8293 terminate_and_process_chain.
8294 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8295 renaming and remove useless assertions.
8296 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8297 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8298 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8299 instead of always recomputing it and compare lp_nr.
8300 (imm_store_chain_info::output_merged_store): If the group is in an
8301 active EH region, register new stores if they can throw. Moreover,
8302 if the insertion has created new basic blocks, adjust the PHI nodes
8303 of the post landing pad.
8304 (imm_store_chain_info::output_merged_stores): If the original stores
8305 are in an active EH region, deregister them.
8306 (lhs_valid_for_store_merging_p): Prettify.
8307 (adjust_bit_pos): New function extracted from...
8308 (mem_valid_for_store_merging): ...here. Use it for the base address
8309 and also for the offset if it is the addition of a constant.
8310 (lp_nr_for_store): New function.
8311 (pass_store_merging::process_store): Change return type to bool.
8312 Call lp_nr_for_store to initialize the store info. Propagate the
8313 return status of various called functions to the return value.
8314 (store_valid_for_store_merging_p): New predicate.
8315 (enum basic_block_status): New enumeration.
8316 (get_status_for_store_merging): New function.
8317 (pass_store_merging::execute): If the function can throw and catch
8318 non-call exceptions, unsplit the EH edges on entry and clean up the
8319 CFG on exit if something changed. Call get_status_for_store_merging
8320 for every basic block and keep the chains open across basic blocks
8321 when possible. Terminate and process open chains at the end, if any.
8323 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8325 * reginfo.c (globalize_reg): Fix shadowed variable in
8328 2019-10-02 Martin Jambor <mjambor@suse.cz>
8330 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8331 do not compute some stuff when set.
8332 (cgraph_node::create_edge): Likewise.
8333 (cgraph_node::create_indirect_edge): Renamed last parameter to
8334 coning_p and flipped its meaning, don't even calculate
8335 inline_failed when set.
8336 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8337 (symbol_table::::create_edge): Likewise.
8338 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8340 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8341 call graph edge creating functions.
8343 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8346 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8349 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8351 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
8353 2019-10-02 Richard Biener <rguenther@suse.de>
8355 * tree-vectorizer.h (vect_transform_reduction): Declare.
8356 * tree-vect-stmts.c (vect_transform_stmt): Use it.
8357 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
8358 stmt transform to ...
8359 (vect_transform_reduction): ... this.
8361 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
8363 * omp-low.c (lower_omp_target): Dereference optional argument
8364 to work with the right pointer.
8366 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
8368 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
8370 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
8371 * langhooks.h (omp_is_optional_argument): New hook.
8372 * omp-general.c (omp_is_optional_argument): New.
8373 * omp-general.h (omp_is_optional_argument): New declaration.
8374 * omp-low.c (lower_omp_target): Create temporary for received value
8375 and take the address for new_var if the original variable was a
8376 DECL_BY_REFERENCE. Use size of referenced object when a
8377 pass-by-reference optional argument used as argument to firstprivate.
8379 2019-10-02 Jakub Jelinek <jakub@redhat.com>
8381 PR tree-optimization/91940
8382 * tree-vect-patterns.c: Include tree-vector-builder.h and
8384 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
8385 unpromoting the argument back to uint16_t, or by converting into a
8386 rotate, or into shifts plus ior.
8388 2019-10-02 Richard Biener <rguenther@suse.de>
8390 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
8392 (vect_transform_cycle_phi): Declare.
8393 * tree-vect-stmts.c (vect_transform_stmt): Call
8394 vect_transform_cycle_phi.
8395 * tree-vect-loop.c (vectorizable_reduction): Split out
8396 PHI transformation stage to ...
8397 (vect_transform_cycle_phi): ... here.
8399 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8402 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
8403 eliminable registers.
8404 (make_hard_regno_live): Likewise, and don't make them live.
8406 2019-10-01 David Malcolm <dmalcolm@redhat.com>
8408 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
8409 Call pp_emit_prefix.
8410 (layout::print_source_line): Likewise.
8411 (layout::start_annotation_line): Likewise.
8412 (diagnostic_show_locus): Remove call to temporarily clear the
8414 (selftest::test_one_liner_fixit_remove): Add test coverage for the
8415 interaction of pp_set_prefix with rulers and fix-it hints.
8416 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
8417 prefix when calling diagnostic_show_locus, rather than destroying
8419 (print_parseable_fixits): Temporarily clear prefix.
8420 * pretty-print.c (pp_format): Save and restore line_length, rather
8421 than assuming it is zero.
8422 (pp_output_formatted_text): Remove assertion that line_length is
8425 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8427 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8429 (nonoverlapping_refs_since_match_p): ... this; handle also
8431 (alias_stats): Update stats.
8432 (dump_alias_stats): Likewise.
8433 (cheap_array_ref_low_bound): New function.
8434 (aliasing_matching_component_refs_p): Add partial_overlap
8436 pass it to nonoverlapping_refs_since_match_p.
8437 (aliasing_component_refs_walk): Update call of
8438 aliasing_matching_component_refs_p
8439 (nonoverlapping_array_refs_p): New function.
8440 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
8441 indirect_refs_may_alias_p): Update calls of
8442 nonoverlapping_refs_since_match_p.
8444 2019-10-01 Maya Rashish <coypu@sdf.org>
8447 * ira-color.c (allocno_copy_cost_saving): Call
8448 ira_init_register_move_cost_if_necessary.
8450 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
8452 * Makefile.in (gnat_install_lib): New variable.
8453 * configure.ac: Substitute it.
8454 * configure: Regenerate.
8456 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8459 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
8460 is matched with non-C++ type
8462 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8464 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
8467 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8469 * doc/invoke.texi (early-inlining-insns-O2): Document.
8470 (early-inlining-insns): Update.
8471 * params.def (early-inlining-insns-O2): New bound.
8472 (early-inlining-insns): Update docs.
8473 * ipa-inline.c (want_early_inline_function_p): Use new bound.
8475 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
8478 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
8479 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
8480 a memory access insn.
8482 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
8484 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
8487 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8490 * config/s390/s390.c (s390_expand_vec_compare): Use
8491 gen_vec_cmpordered and gen_vec_cmpunordered.
8492 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
8493 vec_unordered): Delete.
8494 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
8495 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
8496 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
8497 (vec_cmp<code>): Generic dispatcher.
8499 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8502 * config/s390/vector.md (V_HW): Add V1TI in order to make
8503 vcond$a$b generate vcondv1tiv1tf.
8505 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8507 PR rtl-optimization/91948
8508 * ira-build.c (ira_create_allocno): Initialize
8509 ALLOCNO_CROSSED_CALLS_ABIS.
8510 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
8511 than regno to ira_need_caller_save_p.
8513 2019-10-01 Alexandre Oliva <oliva@adacore.com>
8515 * config/i386/i386-options.c
8516 (ix86_recompute_optlev_based_flags): New, moved out of...
8517 (ix86_option_override_internal): ... this. Call it.
8518 (ix86_override_options_after_change): Call it here too.
8521 * dwarf2out.c (override_type_for_decl_p): New.
8522 (gen_variable_die): Use it.
8524 2019-10-01 Richard Biener <rguenther@suse.de>
8526 * tree-vect-loop.c (vectorizable_reduction): Move variables
8527 to where they are used.
8529 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8531 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
8532 (build_def_use): Use PC instead of CC0 in a comment.
8534 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8536 * rtl.def (CLOBBER_HIGH): Delete.
8537 * doc/rtl.texi (clobber_high): Remove documentation.
8538 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
8539 (reg_is_clobbered_by_clobber_high): Delete.
8540 (gen_hard_reg_clobber_high): Likewise.
8541 * alias.c (record_set): Remove CLOBBER_HIGH handling.
8542 * cfgexpand.c (expand_gimple_stmt): Likewise.
8543 * combine-stack-adj.c (single_set_for_csa): Likewise.
8544 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
8545 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
8546 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
8547 * cse.c (invalidate_reg): Remove clobber_high parameter.
8548 (invalidate): Update call accordingly.
8549 (canonicalize_insn): Remove CLOBBER_HIGH handling.
8550 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
8551 (count_reg_usage, insn_live_p): Likewise.
8552 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
8553 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
8554 (cselib_invalidate_rtx_note_stores): Update call accordingly.
8555 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
8556 (cselib_invalidate_regno, cselib_process_insn): Likewise.
8557 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
8558 (mark_nonreg_stores_2): Likewise.
8559 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
8560 (df_get_call_refs): Likewise.
8561 * dwarf2out.c (mem_loc_descriptor): Likewise.
8562 * emit-rtl.c (verify_rtx_sharing): Likewise.
8563 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
8564 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
8565 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
8566 * genemit.c (gen_exp, gen_insn): Likewise.
8567 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
8568 * haifa-sched.c (haifa_classify_rtx): Likewise.
8569 * ira-build.c (create_insn_allocnos): Likewise.
8570 * ira-costs.c (scan_one_insn): Likewise.
8571 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
8572 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
8573 * jump.c (mark_jump_label_1): Likewise.
8574 * lra-int.h (lra_insn_reg::clobber_high): Delete.
8575 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
8577 (mark_not_eliminable): Likewise.
8578 * lra-lives.c (process_bb_lives): Likewise.
8579 * lra.c (new_insn_reg): Remove clobber_high parameter.
8580 (collect_non_operand_hard_regs): Likewise. Update call to new
8581 insn_reg. Remove CLOBBER_HIGH handling.
8582 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
8583 to collect_non_operand_hard_regs.
8584 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
8585 Update call to new_insn_reg.
8586 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
8587 * postreload.c (reload_cse_simplify, reload_combine_note_use)
8588 (move2add_note_store): Likewise.
8589 * print-rtl.c (print_pattern): Likewise.
8590 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
8591 (if_test_bypass_p): Likewise.
8592 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
8593 * reginfo.c (reg_scan_mark_refs): Likewise.
8594 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
8595 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
8596 (forget_old_reloads_1): Likewise.
8597 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
8598 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
8599 (dbr_schedule): Likewise.
8600 * resource.c (update_live_status, mark_referenced_resources)
8601 (mark_set_resources): Likewise.
8602 * rtl.c (copy_rtx): Likewise.
8603 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
8604 (note_pattern_stores): Likewise.
8605 (reg_is_clobbered_by_clobber_high): Delete.
8606 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
8607 CLOBBER_HIGH handling.
8609 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8612 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
8613 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
8614 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8615 Handle ARM_PCS_TLSDESC.
8616 (aarch64_tlsdesc_abi_id): New function.
8617 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
8618 rtx instead of a list of clobbers and clobber_highs.
8619 (tlsdesc_small_<mode>): Update accordingly.
8621 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8623 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
8624 extra callee_abi argument.
8625 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
8626 Insert a CALLEE_ABI unspec into the call pattern as the second
8627 element in the PARALLEL.
8628 (aarch64_simd_call_p): Delete.
8629 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
8630 the new CALLEE_ABI element of the PARALLEL.
8631 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
8632 from the function type, if given.
8633 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
8634 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
8635 when passed the function_arg_info end marker.
8636 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
8637 final argument of gen_sibcall.
8638 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
8639 (call): Make operand 2 a const_int_operand and pass it to expand_call.
8640 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
8642 (call_value): Likewise operand 3.
8643 (sibcall): Likewise operand 2. Place the unspec before rather than
8645 (sibcall_value): Likewise operand 3.
8646 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
8647 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
8648 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
8650 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
8652 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8654 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
8655 choose_hard_reg_mode.
8656 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8658 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8660 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
8661 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
8662 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
8664 2019-09-30 David Malcolm <dmalcolm@redhat.com>
8666 * diagnostic-show-locus.c (line_label::line_label): Initialize
8668 (line_label::comparator): Reverse the sort order by m_state_idx,
8669 so that when the list is walked backwards the labels appear in
8670 order of insertion into the rich_location.
8671 (line_label::m_has_vbar): New field.
8672 (layout::print_any_labels): When dealing with multiple labels at
8673 the same line and column, only print vertical bars for the one
8674 with the highest label_line.
8675 (selftest::test_one_liner_labels): Update test for multiple labels
8676 to expect the labels to be in the order of insertion into the
8677 rich_location. Add a test for many such labels, where the column
8678 numbers are out-of-order relative to the insertion order.
8680 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8682 * config/i386/i386.h (ix86_frame::expensive_p): New field.
8683 (ix86_frame::expensive_count): Likewise.
8684 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
8685 of use_fast_prologue_epilogue robust against incidental changes
8688 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8691 * config/s390/vector.md (vec_unordered<mode>): Call
8692 gen_vec_ordered<mode>.
8694 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
8696 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
8697 New pattern for ASRD.
8698 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
8699 * internal-fn.def (IFN_DIV_POW2): New internal function.
8700 * optabs.def (sdiv_pow2_optab): New optab.
8701 * tree-vect-patterns.c (vect_recog_divmod_pattern):
8702 Modify pattern to support new operation.
8703 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
8704 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
8705 Document new target selector.
8707 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8709 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
8710 to test whether we're compiling a vector PCS function and to test
8711 whether the function needs to save a particular register.
8712 Remove the vector PCS handling of df_set_regs_ever_live.
8713 (aarch64_components_for_bb): Use crtl->abi to test whether
8714 the function needs to save a particular register.
8715 (aarch64_process_components): Use crtl->abi to test whether
8716 we're compiling a vector PCS function.
8717 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
8718 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
8720 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8722 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
8724 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
8725 whether the block calls a function that clobbers more registers
8726 than the current function is allowed to.
8727 (aarch64_use_simple_return_insn_p): Delete.
8728 * config/aarch64/aarch64.md (simple_return): Remove condition.
8730 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8732 * function-abi.h (function_abi_aggregator): New class.
8733 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
8735 * ira.c (update_equiv_regs_prescan): New function. Call
8736 set_paradoxical_subreg here rather than...
8737 (update_equiv_regs): ...here.
8738 (ira): Call update_equiv_regs_prescan.
8740 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8742 * hard-reg-set.h (regs_invalidated_by_call): Only define if
8744 (call_used_or_fixed_regs): Likewise.
8745 (call_used_or_fixed_reg_p): Likewise.
8746 * reginfo.c (regs_invalidated_by_call): New macro.
8748 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8750 * shrink-wrap.c: Include function-abi.h.
8751 (requires_stack_frame_p): Use crtl->abi to test whether the
8752 current function can use a register without saving it first.
8754 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8756 * sel-sched-ir.h (_def::crosses_call): Replace with...
8757 (_def::crossed_call_abis): ..this new field.
8758 (def_list_add): Take a mask of ABIs instead of a crosses_call
8760 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
8761 of _def accordingly.
8762 * sel-sched.c: Include function-abi.h.
8763 (hard_regs_data::regs_for_call_clobbered): Delete.
8764 (reg_rename::crosses_call): Replace with...
8765 (reg_rename::crossed_call_abis): ...this new field.
8766 (fur_static_params::crosses_call): Replace with...
8767 (fur_static_params::crossed_call_abis): ...this new field.
8768 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
8769 (init_hard_regs_data): Use crtl->abi to test which registers the
8770 current function would need to save before it uses them.
8771 (mark_unavailable_hard_regs): Update handling of call-clobbered
8772 registers, using call_clobbers_in_region to find out which registers
8773 might be call-clobbered (but without taking -fipa-ra into account
8774 for now). Remove separate handling of partially call-clobbered
8776 (verify_target_availability): Use crossed_call_abis instead of
8778 (get_spec_check_type_for_insn, find_used_regs): Likewise.
8779 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
8781 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8783 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
8784 function to test whether a register is fully or partly clobbered.
8786 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8788 * rtlanal.c: Include function-abi.h.
8789 (reg_set_p): Use insn_callee_abi to get the ABI of the called
8790 function and clobbers_reg_p to test whether the register
8792 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
8793 to get the ABI of the called function and full_reg_clobbers to
8794 get the set of fully call-clobbered registers. Warn about the
8795 pitfalls of using this mode.
8797 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8799 * reload.c: Include function-abi.h.
8800 (find_equiv_reg): Use clobbers_reg_p to test whether either
8801 of the equivalent registers is clobbered by a call.
8802 * reload1.c: Include function-abi.h.
8803 (reg_reloaded_call_part_clobbered): Delete.
8804 (reload): Use crtl->abi to test which registers would need
8805 saving in the prologue before use.
8806 (find_reg): Likewise.
8807 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
8808 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
8809 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
8811 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8813 * regrename.h (du_head::call_clobber_mask): New field.
8814 (du_head::need_caller_save_reg): Replace with...
8815 (du_head::call_abis): ...this new field.
8816 * regrename.c: Include function-abi.h.
8817 (call_clobbered_in_chain_p): New function.
8818 (check_new_reg_p): Use crtl->abi when deciding whether a register
8819 is free for use after RA. Use call_clobbered_in_chain_p to test
8820 whether a candidate register would be clobbered by a call.
8821 (find_rename_reg): Don't add call-clobber conflicts here.
8822 (rename_chains): Check call_abis instead of need_caller_save_reg.
8823 (merge_chains): Update for changes to du_head.
8824 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8825 target. Record the ABI identifier in call_abis and the set of
8826 fully or partially clobbered registers in call_clobber_mask.
8827 Add fully-clobbered registers to hard_conflicts here rather
8828 than in find_rename_reg.
8829 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8830 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8831 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8833 * config/c6x/c6x.c: Likewise.
8835 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8837 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8838 mode of the register when deciding whether it is no longer
8839 available after a call.
8841 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8843 * recog.c: Include function-abi.h.
8844 (peep2_find_free_register): Use crtl->abi when deciding whether
8845 a register is free for use after RA.
8847 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8849 * postreload-gcse.c: Include regs.h and function-abi.h.
8850 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8851 call insn target. Conservatively assume that partially-clobbered
8852 registers are altered.
8854 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8856 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8857 when deciding whether a register is free for use after RA.
8858 (reload_combine): Remove unnecessary use of fixed_reg_set.
8859 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8860 call insn target. Use reg_mode when testing whether a register
8861 is no longer available.
8863 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8865 * target.def (return_call_with_max_clobbers): Delete.
8866 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8867 * doc/tm.texi: Regenerate.
8868 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8869 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8870 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8871 (lra_reg::call_insn): Delete.
8872 * lra.c: Include function-abi.h.
8873 (initialize_lra_reg_info_element): Don't initialize the fields above.
8874 (lra): Use crtl->abi to test whether the current function needs to
8875 save a register in the prologue. Remove special pre-inheritance
8876 lra_create_live_ranges pass for flag_ipa_ra.
8877 * lra-assigns.c: Include function-abi.h
8878 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8879 function needs to save a register in the prologue.
8880 (lra_assign): Assert that registers aren't allocated to a
8881 conflicting register, rather than checking only for overlaps
8882 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8883 and for registers that are not live across a call.
8884 * lra-constraints.c (last_call_for_abi): New variable.
8885 (full_and_partial_call_clobbers): Likewise.
8886 (setup_next_usage_insn): Remove the register from
8887 full_and_partial_call_clobbers.
8888 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8889 whether the register needs a caller save.
8890 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8891 of call_used_or_fixed_regs.
8892 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8893 full_and_partial_call_clobbers.
8894 * lra-lives.c (check_pseudos_live_through_calls): Replace
8895 last_call_used_reg_set and call_insn arguments with an abi argument.
8896 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8897 as the set of conflicting registers.
8898 (calls_have_same_clobbers_p): Delete.
8899 (process_bb_lives): Track the ABI of the last call instead of an
8900 insn/HARD_REG_SET pair. Update calls to
8901 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8902 the set of registers that could be clobbered by an EH edge.
8903 Include partially-clobbered as well as fully-clobbered registers.
8904 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8905 * lra-remat.c: Include function-abi.h.
8906 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8907 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8908 registers and bitmap_view to combine them into dead_regs.
8909 (call_used_input_regno_present_p): Take a function_abi argument
8910 and use it to test whether a register is call-clobbered.
8911 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8912 call insn target. Update tje call to call_used_input_regno_present_p.
8913 (do_remat): Likewise.
8914 (lra_remat): Remove the initialization of call_used_regs_arr_len
8915 and call_used_regs_arr.
8917 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8919 * loop-iv.c: Include regs.h and function-abi.h.
8920 (simplify_using_initial_values): Use insn_callee_abi to get the
8921 ABI of the call insn target. Conservatively assume that
8922 partially-clobbered registers are altered.
8924 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8926 * function-abi.h (call_clobbers_in_region): Declare.
8927 (call_clobbered_in_region_p): New function.
8928 * function-abi.cc (call_clobbers_in_region): Likewise.
8929 * ira-int.h: Include function-abi.h.
8930 (ira_allocno::crossed_calls_abis): New field.
8931 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8932 (ira_need_caller_save_regs): New function.
8933 (ira_need_caller_save_p): Likewise.
8934 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8935 of call_used_or_fixed_regs.
8936 (do_reload): Use crtl->abi to test whether the current function
8937 needs to save a register in the prologue. Count registers that
8938 need to be saved rather than registers that don't.
8939 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8940 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8941 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8942 (propagate_some_info_from_allocno): Likewise.
8943 (copy_info_to_removed_store_destinations): Likewise.
8944 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8945 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8946 (ira_build): Use ira_need_caller_save_regs instead of
8947 call_used_or_fixed_regs.
8948 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8949 whether the current function would need to save a register
8951 (calculate_spill_cost): Likewise.
8952 (allocno_reload_assign): Use ira_need_caller_save_regs and
8953 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8954 * ira-conflicts.c (ira_build_conflicts): Use
8955 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8956 as the set of call-clobbered registers. Remove the
8957 call_used_or_fixed_regs mask from the calculation of
8958 temp_hard_reg_set and mask its use instead. Remove special
8959 handling of partially-clobbered registers.
8960 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8961 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8962 calculate the set of conflicting registers for calls that
8963 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8964 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8965 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8966 Use eh_edge_abi to calculate the set of registers that could
8967 be clobbered by an EH edge. Include partially-clobbered as
8968 well as fully-clobbered registers.
8970 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8972 * haifa-sched.c: Include function-abi.h.
8973 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8974 the function would need to save a register before using it.
8976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8978 * gcse.c: Include function-abi.h.
8979 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8980 the call insn target. Invalidate partially call-clobbered
8981 registers as well as fully call-clobbered ones.
8983 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8985 * function.c (aggregate_value_p): Work out which ABI the
8986 function is using before testing which registers are at least
8987 partly preserved by a call.
8989 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8991 * early-remat.c: Include regs.h and function-abi.h.
8992 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8994 (early_remat::restrict_remat_for_unavail_regs): New function.
8995 (early_remat::restrict_remat_for_call): Likewise.
8996 (early_remat::process_block): Before calling emit_remat_insns
8997 for a previous call in the block, invalidate any candidates
8998 that would clobber call-preserved registers.
8999 (early_remat::emit_remat_insns_for_block): Likewise for the
9000 final call in a block. Do the same thing for live-in registers
9001 when calling emit_remat_insns at the head of a block.
9003 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9005 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
9006 whether the current function needs to save at least part of a
9007 register before using it.
9008 (df_get_exit_block_use_set): Likewise for epilogue restores.
9010 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9012 * df-problems.c: Include regs.h and function-abi.h.
9013 (df_rd_problem_data): Rename sparse_invalidated_by_call to
9014 sparse_invalidated_by_eh and dense_invalidated_by_call to
9015 dense_invalidated_by_eh.
9016 (df_print_bb_index): Update accordingly.
9017 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
9018 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
9019 that are clobbered by an EH edge. Clobber partially-clobbered
9020 registers as well as fully-clobbered ones.
9021 (df_md_confluence_n): Likewise.
9022 (df_rd_local_compute): Likewise. Update for changes to
9024 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
9025 of registers that are clobbered by an EH edge. Includde partially-
9026 clobbered registers as well as fully-clobbered ones.
9028 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9030 * cselib.c (cselib_process_insn): If we know what mode a
9031 register was set in, check whether it is clobbered in that
9032 mode by a call. Only fall back to reg_raw_mode if that fails.
9034 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9036 * cse.c: Include regs.h and function-abi.h.
9037 (invalidate_for_call): Take the call insn as an argument.
9038 Use insn_callee_abi to get the ABI of the call and invalidate
9039 partially clobbered registers as well as fully clobbered ones.
9040 (cse_insn): Update call accordingly.
9042 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9044 * combine.c: Include function-abi.h.
9045 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
9046 of the target of call insns. Invalidate partially-clobbered
9047 registers as well as fully-clobbered ones.
9049 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9051 * cfgloopanal.c: Include regs.h and function-abi.h.
9052 (init_set_costs): Use default_function_abi to test whether
9053 a general register is call-clobbered.
9055 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9057 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
9058 instead of the call-clobbered sets.
9060 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9062 * caller-save.c (setup_save_areas): Remove redundant |s of
9064 (save_call_clobbered_regs): Likewise. Use the call ABI rather
9065 than call_used_or_fixed_regs to decide whether a REG_RETURNED
9068 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9070 * rtl.h (predefined_function_abi): Declare.
9071 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9072 instead of a boolean call_save flag.
9073 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
9075 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9076 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9077 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
9078 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9079 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
9080 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
9081 * reginfo.c (init_reg_modes_target): Likewise.
9082 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
9083 instead of a boolean call_save flag.
9084 * targhooks.c: Include function-abi.h.
9085 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
9086 using eh_edge_abi to choose the mode.
9088 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9090 * target.def (hard_regno_call_part_clobbered): Take an ABI
9091 identifier instead of an rtx_insn.
9092 * doc/tm.texi: Regenerate.
9093 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
9094 (hook_bool_uint_uint_mode_false): New function.
9095 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
9096 (hook_bool_uint_uint_mode_false): New function.
9097 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9098 Take an ABI identifier instead of an rtx_insn.
9099 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
9100 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
9101 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
9102 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
9103 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
9105 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
9106 * cselib.c: Include function-abi.h.
9107 (cselib_process_insn): Update call to
9108 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9109 to get the appropriate ABI identifier.
9110 * function-abi.cc (predefined_function_abi::initialize): Update call
9111 to targetm.hard_regno_call_part_clobbered.
9112 * ira-conflicts.c (ira_build_conflicts): Likewise.
9113 * ira-costs.c (ira_tune_allocno_costs): Likewise.
9114 * lra-constraints.c: Include function-abi.h.
9115 (need_for_call_save_p): Update call to
9116 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9117 to get the appropriate ABI identifier.
9118 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
9119 * regcprop.c (copyprop_hardreg_forward_1): Update call
9120 to targetm.hard_regno_call_part_clobbered.
9121 * reginfo.c (choose_hard_reg_mode): Likewise.
9122 * regrename.c (check_new_reg_p): Likewise.
9123 * reload.c (find_equiv_reg): Likewise.
9124 * reload1.c (emit_reload_insns): Likewise.
9125 * sched-deps.c: Include function-abi.h.
9126 (deps_analyze_insn): Update call to
9127 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
9128 to get the appropriate ABI identifier.
9129 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
9130 call to targetm.hard_regno_call_part_clobbered.
9131 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
9133 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9135 * config/i386/i386.c: Include function-abi.h.
9136 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
9137 if they preserve some 256-bit or 512-bit SSE registers.
9139 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9141 * target.def (insn_callee_abi): New hook.
9142 (remove_extra_call_preserved_regs): Delete.
9143 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
9144 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9145 * doc/tm.texi: Regenerate.
9146 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
9147 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
9148 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
9150 (aarch64_remove_extra_call_preserved_regs): Delete.
9151 (aarch64_insn_callee_abi): New function.
9152 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
9153 (TARGET_INSN_CALLEE_ABI): New macro.
9154 * rtl.h (get_call_fndecl): Declare.
9155 (cgraph_rtl_info): Fix formatting. Tweak comment for
9156 function_used_regs. Remove function_used_regs_valid.
9157 * rtlanal.c (get_call_fndecl): Moved from final.c
9158 * function-abi.h (insn_callee_abi): Declare.
9159 (target_function_abi_info): Mention insn_callee_abi.
9160 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
9161 way to get_call_reg_set_usage did.
9162 (insn_callee_abi): New function.
9163 * regs.h (get_call_reg_set_usage): Delete.
9164 * final.c: Include function-abi.h.
9165 (collect_fn_hard_reg_usage): Add fixed and stack registers to
9166 function_used_regs before the main loop rather than afterwards.
9167 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
9168 if function_used_regs ends up not being useful.
9169 (get_call_fndecl): Move to rtlanal.c
9170 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
9171 * caller-save.c: Include function-abi.h.
9172 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
9173 instead of get_call_reg_set_usage.
9174 * cfgcleanup.c: Include function-abi.h.
9175 (old_insns_match_p): Use insn_callee_abi instead of
9176 get_call_reg_set_usage.
9177 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
9179 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
9181 * df-scan.c: Include function-abi.h.
9182 (df_get_call_refs): Use insn_callee_abi instead of
9183 get_call_reg_set_usage.
9184 * ira-lives.c: Include function-abi.h.
9185 (process_bb_node_lives): Use insn_callee_abi instead of
9186 get_call_reg_set_usage.
9187 * lra-lives.c: Include function-abi.h.
9188 (process_bb_lives): Use insn_callee_abi instead of
9189 get_call_reg_set_usage.
9190 * postreload.c: Include function-abi.h.
9191 (reload_combine): Use insn_callee_abi instead of
9192 get_call_reg_set_usage.
9193 * regcprop.c: Include function-abi.h.
9194 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
9195 get_call_reg_set_usage.
9196 * resource.c: Include function-abi.h.
9197 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
9198 instead of get_call_reg_set_usage.
9199 * var-tracking.c: Include function-abi.h.
9200 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
9201 get_call_reg_set_usage.
9203 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9205 * target.def (fntype_abi): New target hook.
9206 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
9207 * doc/tm.texi: Regenerate.
9208 * target.h (predefined_function_abi): Declare.
9209 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
9211 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
9212 * config/aarch64/aarch64.c: Include function-abi.h.
9213 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
9214 (TARGET_FNTYPE_ABI): Define.
9216 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9218 * Makefile.in (OBJS): Add function-abi.o.
9219 (GTFILES): Add function-abi.h.
9220 * function-abi.cc: New file.
9221 * function-abi.h: Likewise.
9222 * emit-rtl.h (rtl_data::abi): New field.
9223 * function.c: Include function-abi.h.
9224 (prepare_function_start): Initialize crtl->abi.
9225 * read-rtl-function.c: Include regs.h and function-abi.h.
9226 (read_rtl_function_body): Initialize crtl->abi.
9227 (read_rtl_function_body_from_file_range): Likewise.
9228 * reginfo.c: Include function-abi.h.
9229 (init_reg_sets_1): Initialize default_function_abi.
9230 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9231 when making a register global.
9232 * target-globals.h (this_target_function_abi_info): Declare.
9233 (target_globals::function_abi_info): New field.
9234 (restore_target_globals): Copy it.
9235 * target-globals.c: Include function-abi.h.
9236 (default_target_globals): Initialize the function_abi_info field.
9237 (target_globals): Allocate it.
9238 (save_target_globals): Free it.
9240 2019-09-30 Nick Clifton <nickc@redhat.com>
9243 * config/frv/frv.c (frv_register_move_cost): Add break statements
9244 to avoid falling through to the wrong cases. Tidy code.
9246 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9248 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9249 For multi-registers modes, test how big each register part is.
9251 2019-09-30 Nick Clifton <nickc@redhat.com>
9254 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9255 (TARGET_ASM_SELECT_SECTION): Remove definition.
9256 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9258 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9260 * emit-rtl.c (init_raw_REG): New function.
9261 (gen_raw_REG): Use init_raw_REG.
9262 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9264 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9265 * rtl.h (rtx_init): New function.
9266 (rtx_alloca): New function.
9267 (init_raw_REG): New function.
9268 (alloca_raw_REG): New macro.
9270 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9272 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9273 (pcrel_local_address): Replace pcrel_address predicate, use the
9274 new function address_to_insn_form.
9275 (pcrel_external_address): Replace with new implementation using
9276 address_to_insn_form..
9277 (prefixed_mem_operand): Delete predicate which is now unused.
9278 (pcrel_external_mem_operand): Delete predicate which is now
9280 * config/rs6000/rs6000-protos.h (enum insn_form): New
9282 (enum non_prefixed_form): New enumeration.
9283 (address_to_insn_form): New declaration.
9284 (prefixed_load_p): New declaration.
9285 (prefixed_store_p): New declaration.
9286 (prefixed_paddi_p): New declaration.
9287 (rs6000_asm_output_opcode): New declaration.
9288 (rs6000_final_prescan_insn): Move declaration and update calling
9290 (address_is_prefixed): New helper inline function.
9291 * config/rs6000/rs6000.c(print_operand_address): Check for either
9292 PC-relative local symbols or PC-relative external symbols.
9293 (rs6000_emit_move): Support loading PC-relative addresses.
9294 (mode_supports_prefixed_address_p): Delete, no longer used.
9295 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9296 (address_to_insn_form): New function to decode an address format.
9297 (reg_to_non_prefixed): New function to identify what the
9298 non-prefixed memory instruction format is for a register.
9299 (prefixed_load_p): New function to identify prefixed loads.
9300 (prefixed_store_p): New function to identify prefixed stores.
9301 (prefixed_paddi_p): New function to identify prefixed load
9303 (next_insn_prefixed_p): New static state variable.
9304 (rs6000_final_prescan_insn): New function to determine if an insn
9305 uses a prefixed instruction.
9306 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9307 prefixed instruction.
9308 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9309 (ASM_OUTPUT_OPCODE): New target hook.
9310 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9311 prefixed instructions.
9312 (prefixed_length): New insn attribute for the size of prefixed
9314 (non_prefixed_length): New insn attribute for the size of
9315 non-prefixed instructions.
9316 (pcrel_local_addr): New insn to load up a local PC-relative
9318 (pcrel_extern_addr): New insn to load up an external PC-relative
9320 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9321 GPR and loading a 128-bit floating point type to a GPR.
9323 2019-09-30 Richard Biener <rguenther@suse.de>
9325 * gimple.c (gimple_get_lhs): For PHIs return the result.
9326 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9327 SLP instance as argument.
9328 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9329 double-reduction PHIs with vectorizable_lc_phi.
9330 (vect_analyze_loop_operations): Adjust.
9331 (vect_create_epilog_for_reduction): Remove all code not dealing
9332 with reduction LC PHI or epilogue generation.
9333 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9334 for live stmts of reductions.
9335 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9336 do not handle defs that are not vect_internal_def.
9337 (can_vectorize_live_stmts): Adjust.
9338 (vect_analyze_stmt): When the vectorized stmt defined a value
9339 used on backedges adjust the backedge uses of vectorized PHIs.
9341 2019-09-30 Martin Jambor <mjambor@suse.cz>
9344 * tree-inline.c (force_value_to_type): New function.
9345 (setup_one_parameter): Use force_value_to_type to convert type.
9346 * tree-inline.c (force_value_to_type): Declare.
9347 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9348 with register type mismatches.
9350 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9352 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
9354 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
9355 * config/rs6000/t-freebsd64: Make use of the above define and build
9356 the 32-bit libraries with secure-plt.
9358 2019-09-30 Jakub Jelinek <jakub@redhat.com>
9361 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
9362 gen_int_mode instead of GEN_INT.
9364 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
9366 * config/darwin.c (gen_macho_low): Amend to include the mode
9368 (machopic_indirect_data_reference): Amend gen_macho_low call
9369 to include mode argument
9370 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
9371 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
9372 the macho_high expander and two define_insn entries.
9374 2019-09-29 Jakub Jelinek <jakub@redhat.com>
9377 * optc-save-gen.awk: Fix up printing string option differences.
9379 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9381 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9382 vec_perm cost to 1 for non-Power7 VSX architectures.
9384 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9386 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
9387 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
9388 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
9390 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
9392 * config/darwin.c (gen_macho_high): Amend to include the mode
9394 (machopic_indirect_data_reference): Amend gen_macho_high call
9395 to include mode argument.
9396 (machopic_legitimize_pic_address): Likewise.
9397 * config/rs6000/rs6000.c (rs6000_legitimize_address):
9398 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
9399 the macho_high expander and two define_insn entries.
9401 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9404 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
9406 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9409 * config/sh/sh.c (parse_validate_atomic_model_option): Use
9410 std::string::compare instead of std::string::find.
9412 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9414 * configure: Regenerate.
9416 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9419 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
9420 variables as shared.
9422 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
9424 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
9425 replaces the expander and two define_insn entries.
9426 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
9428 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
9430 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9432 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
9433 (fibonacci_heap::nodes): Likewise.
9434 (fibonacci_heap::min_key): Likewise.
9435 (fibonacci_heap::min): Likewise.
9437 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9439 * cgraph.c (cgraph_node::get_fun): Make const.
9440 * cgraph.h (cgraph_node::get_fun): Likewise.
9442 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9445 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
9448 2019-09-27 Richard Biener <rguenther@suse.de>
9450 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
9451 (STMT_VINFO_REDUC_FN): Likewise.
9452 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9453 STMT_VINFO_REDUC_FN.
9454 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
9455 for condition reductions.
9456 (vect_create_epilog_for_reduction): Compute all required state
9457 from the stmt to be vectorized.
9458 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
9459 invocation and remove then dead code. For single def-use chains
9460 record only a single vector stmt.
9462 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9464 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
9465 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
9466 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
9467 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
9468 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
9469 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
9470 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
9471 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
9472 (aarch64_general_builtin_rsqrt): Declare.
9473 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
9475 (aarch64_mangle_builtin_type): Rename to...
9476 (aarch64_general_mangle_builtin_type): ...this.
9477 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
9478 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
9479 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
9480 aarch64_general_add_builtin instead of add_builtin_function.
9481 (aarch64_init_builtins): Rename to...
9482 (aarch64_general_init_builtins): ...this. Use
9483 aarch64_general_add_builtin instead of add_builtin_function.
9484 (aarch64_builtin_decl): Rename to...
9485 (aarch64_general_builtin_decl): ...this and remove the unused
9487 (aarch64_expand_builtin): Rename to...
9488 (aarch64_general_expand_builtin): ...this and remove the unused
9490 (aarch64_builtin_rsqrt): Rename to...
9491 (aarch64_general_builtin_rsqrt): ...this.
9492 (aarch64_fold_builtin): Rename to...
9493 (aarch64_general_fold_builtin): ...this. Take the function subcode
9494 and return type as arguments. Remove the "ignored" argument.
9495 (aarch64_gimple_fold_builtin): Rename to...
9496 (aarch64_general_gimple_fold_builtin): ...this. Take the function
9497 subcode and gcall as arguments, and return the new function call.
9498 * config/aarch64/aarch64.c (aarch64_init_builtins)
9499 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
9500 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
9501 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
9502 instead of aarch64_builtin_rsqrt.
9503 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
9504 instead of aarch64_mangle_builtin_type.
9506 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9508 * target.def (check_builtin_call): New target hook.
9509 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
9510 * doc/tm.texi: Regenerate.
9512 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9514 PR tree-optimization/91909
9515 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
9516 reduc_index parameter. When handling COND_REDUCTION, make sure
9517 that the reduction phi operand is in the correct arm of the
9519 (vectorizable_reduction): Pass reduc_index to the above.
9521 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
9523 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
9524 New combine pattern.
9526 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
9528 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
9529 loop instruction into new basic block before the loop when basic
9530 block that precedes the loop is empty.
9532 2019-09-26 Jakub Jelinek <jakub@redhat.com>
9534 * function.c (gimplify_parameters): Use build_clobber function.
9535 * tree-ssa.c (execute_update_addresses_taken): Likewise.
9536 * tree-inline.c (expand_call_inline): Likewise.
9537 * tree-sra.c (clobber_subtree): Likewise.
9538 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
9539 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
9540 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
9541 lower_omp_target): Likewise.
9542 * omp-expand.c (expand_omp_for_generic): Likewise.
9543 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
9545 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
9547 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
9548 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
9549 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
9550 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
9551 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
9552 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
9553 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
9554 LD_ELEMREV_V16QI): Use the PURE attribute.
9556 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
9558 * config/rs6000/darwin.md: Replace the expanders for
9559 load_macho_picbase and reload_macho_picbase with use of '@'
9560 and <mode> in their respective define_insns.
9561 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
9562 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
9563 Pmode to gen_load_macho_picbase.
9564 * config/rs6000/rs6000.md: Likewise.
9566 2019-09-25 Richard Biener <rguenther@suse.de>
9568 PR tree-optimization/91896
9569 * tree-vect-loop.c (vectorizable_reduction): The single
9570 def-use cycle optimization cannot apply when there's more
9571 than one pattern stmt involved.
9573 2019-09-26 Richard Biener <rguenther@suse.de>
9575 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
9576 loop-closed PHIs that are vect_internal_def.
9577 (vect_create_epilog_for_reduction): Exit early for nested cycles.
9579 (vectorizable_lc_phi): New.
9580 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
9581 (vect_transform_stmt): Likewise.
9582 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
9583 (vectorizable_lc_phi): Declare.
9585 2019-09-26 Richard Biener <rguenther@suse.de>
9587 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
9588 vectorizable_reduction for vect_double_reduction_def.
9589 (vect_transform_loop): Likewise.
9590 (vect_create_epilog_for_reduction): Move double-reduction
9591 PHI creation and preheader argument setting of PHIs ...
9592 (vectorizable_reduction): ... here. Also process
9593 vect_double_reduction_def PHIs, creating the vectorized
9594 PHI nodes, remembering the scalar adjustment computed for
9595 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
9596 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
9597 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
9598 Initialize STMT_VINFO_REDUC_CODE.
9599 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
9600 (_stmt_vec_info::reduc_code): Likewise.
9601 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
9602 (STMT_VINFO_REDUC_CODE): Likewise.
9604 2019-09-26 Matt Turner <mattst88@gmail.com>
9607 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
9608 (mtune=): Add Negative(mtune=).
9609 (mcpu=): Add Negative(mcpu=).
9610 * config/arm/arm.opt: Likewise.
9612 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9614 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9615 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
9617 * config/arm/arm_acle.h: Define builtins for the above.
9618 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
9619 (simd32_op): Handle the above.
9620 * config/arm/unspecs.md: Define unspecs for the above.
9622 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9624 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9625 (arm_<sup>xtb16): Likewise.
9626 (arm_usada8): Likewise.
9627 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
9628 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
9629 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
9630 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
9631 __sxtb16, __uxtab16, __uxtb16): Define.
9632 * config/arm/arm_acle_builtins.def: Define builtins for the above.
9633 * config/arm/unspecs.md: Define unspecs for the above.
9634 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
9635 (USXTB16): Likewise.
9636 (simd32_op): New int_attribute.
9637 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
9638 * doc/sourcebuild.exp (arm_simd32_ok): Document.
9640 2019-09-26 Martin Jambor <mjambor@suse.cz>
9642 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
9645 2019-09-26 Martin Jambor <mjambor@suse.cz>
9647 * ipa-sra.c (process_scan_results): Fix continue condition.
9649 2019-09-26 Martin Liska <mliska@suse.cz>
9651 PR tree-optimization/91885
9652 * tree-vectorizer.c (try_vectorize_loop_1): Add
9653 TODO_update_ssa_only_virtuals similarly to what slp pass does.
9655 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
9657 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
9658 aarch64_plus_immediate rather than aarch64_uimm12_shift
9659 to test for valid PLUS immediates.
9661 2019-09-25 Martin Jambor <mjambor@suse.cz>
9663 * tree-sra.c (no_accesses_p): Remove.
9664 (no_accesses_representant): Likewise.
9666 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9668 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
9670 (vaba_s16): Likewise.
9671 (vaba_s32): Likewise.
9672 (vaba_u8): Likewise.
9673 (vaba_u16): Likewise.
9674 (vaba_u32): Likewise.
9675 (vabal_high_s8): Likewise.
9676 (vabal_high_s16): Likewise.
9677 (vabal_high_s32): Likewise.
9678 (vabal_high_u8): Likewise.
9679 (vabal_high_u16): Likewise.
9680 (vabal_high_u32): Likewise.
9681 (vabal_s8): Likewise.
9682 (vabal_s16): Likewise.
9683 (vabal_s32): Likewise.
9684 (vabal_u8): Likewise.
9685 (vabal_u16): Likewise.
9686 (vabal_u32): Likewise.
9687 (vabaq_s8): Likewise.
9688 (vabaq_s16): Likewise.
9689 (vabaq_s32): Likewise.
9690 (vabaq_u8): Likewise.
9691 (vabaq_u16): Likewise.
9692 (vabaq_u32): Likewise.
9693 (vabd_s8): Likewise.
9694 (vabd_s16): Likewise.
9695 (vabd_s32): Likewise.
9696 (vabd_u8): Likewise.
9697 (vabd_u16): Likewise.
9698 (vabd_u32): Likewise.
9699 (vabdl_high_s8): Likewise.
9700 (vabdl_high_s16): Likewise.
9701 (vabdl_high_s32): Likewise.
9702 (vabdl_high_u8): Likewise.
9703 (vabdl_high_u16): Likewise.
9704 (vabdl_high_u32): Likewise.
9705 (vabdl_s8): Likewise.
9706 (vabdl_s16): Likewise.
9707 (vabdl_s32): Likewise.
9708 (vabdl_u8): Likewise.
9709 (vabdl_u16): Likewise.
9710 (vabdl_u32): Likewise.
9711 (vabdq_s8): Likewise.
9712 (vabdq_s16): Likewise.
9713 (vabdq_s32): Likewise.
9714 (vabdq_u8): Likewise.
9715 (vabdq_u16): Likewise.
9716 (vabdq_u32): Likewise.
9717 (vaddlv_s8): Likewise.
9718 (vaddlv_s16): Likewise.
9719 (vaddlv_u8): Likewise.
9720 (vaddlv_u16): Likewise.
9721 (vaddlvq_s8): Likewise.
9722 (vaddlvq_s16): Likewise.
9723 (vaddlvq_s32): Likewise.
9724 (vaddlvq_u8): Likewise.
9725 (vaddlvq_u16): Likewise.
9726 (vaddlvq_u32): Likewise.
9727 (vcvtx_f32_f64): Likewise.
9728 (vcvtx_high_f32_f64): Likewise.
9729 (vcvtxd_f32_f64): Likewise.
9730 (vmla_n_f32): Likewise.
9731 (vmla_n_s16): Likewise.
9732 (vmla_n_s32): Likewise.
9733 (vmla_n_u16): Likewise.
9734 (vmla_n_u32): Likewise.
9735 (vmla_s8): Likewise.
9736 (vmla_s16): Likewise.
9737 (vmla_s32): Likewise.
9738 (vmla_u8): Likewise.
9739 (vmla_u16): Likewise.
9740 (vmla_u32): Likewise.
9741 (vmlal_high_n_s16): Likewise.
9742 (vmlal_high_n_s32): Likewise.
9743 (vmlal_high_n_u16): Likewise.
9744 (vmlal_high_n_u32): Likewise.
9745 (vmlal_high_s8): Likewise.
9746 (vmlal_high_s16): Likewise.
9747 (vmlal_high_s32): Likewise.
9748 (vmlal_high_u8): Likewise.
9749 (vmlal_high_u16): Likewise.
9750 (vmlal_high_u32): Likewise.
9751 (vmlal_n_s16): Likewise.
9752 (vmlal_n_s32): Likewise.
9753 (vmlal_n_u16): Likewise.
9754 (vmlal_n_u32): Likewise.
9755 (vmlal_s8): Likewise.
9756 (vmlal_s16): Likewise.
9757 (vmlal_s32): Likewise.
9758 (vmlal_u8): Likewise.
9759 (vmlal_u16): Likewise.
9760 (vmlal_u32): Likewise.
9761 (vmlaq_n_f32): Likewise.
9762 (vmlaq_n_s16): Likewise.
9763 (vmlaq_n_s32): Likewise.
9764 (vmlaq_n_u16): Likewise.
9765 (vmlaq_n_u32): Likewise.
9766 (vmlaq_s8): Likewise.
9767 (vmlaq_s16): Likewise.
9768 (vmlaq_s32): Likewise.
9769 (vmlaq_u8): Likewise.
9770 (vmlaq_u16): Likewise.
9771 (vmlaq_u32): Likewise.
9772 (vmls_n_f32): Likewise.
9773 (vmls_n_s16): Likewise.
9774 (vmls_n_s32): Likewise.
9775 (vmls_n_u16): Likewise.
9776 (vmls_n_u32): Likewise.
9777 (vmls_s8): Likewise.
9778 (vmls_s16): Likewise.
9779 (vmls_s32): Likewise.
9780 (vmls_u8): Likewise.
9781 (vmls_u16): Likewise.
9782 (vmls_u32): Likewise.
9783 (vmlsl_high_n_s16): Likewise.
9784 (vmlsl_high_n_s32): Likewise.
9785 (vmlsl_high_n_u16): Likewise.
9786 (vmlsl_high_n_u32): Likewise.
9787 (vmlsl_high_s8): Likewise.
9788 (vmlsl_high_s16): Likewise.
9789 (vmlsl_high_s32): Likewise.
9790 (vmlsl_high_u8): Likewise.
9791 (vmlsl_high_u16): Likewise.
9792 (vmlsl_high_u32): Likewise.
9793 (vmlsl_n_s16): Likewise.
9794 (vmlsl_n_s32): Likewise.
9795 (vmlsl_n_u16): Likewise.
9796 (vmlsl_n_u32): Likewise.
9797 (vmlsl_s8): Likewise.
9798 (vmlsl_s16): Likewise.
9799 (vmlsl_s32): Likewise.
9800 (vmlsl_u8): Likewise.
9801 (vmlsl_u16): Likewise.
9802 (vmlsl_u32): Likewise.
9803 (vmlsq_n_f32): Likewise.
9804 (vmlsq_n_s16): Likewise.
9805 (vmlsq_n_s32): Likewise.
9806 (vmlsq_n_u16): Likewise.
9807 (vmlsq_n_u32): Likewise.
9808 (vmlsq_s8): Likewise.
9809 (vmlsq_s16): Likewise.
9810 (vmlsq_s32): Likewise.
9811 (vmlsq_u8): Likewise.
9812 (vmlsq_u16): Likewise.
9813 (vmlsq_u32): Likewise.
9814 (vmovl_high_s8): Likewise.
9815 (vmovl_high_s16): Likewise.
9816 (vmovl_high_s32): Likewise.
9817 (vmovl_high_u8): Likewise.
9818 (vmovl_high_u16): Likewise.
9819 (vmovl_high_u32): Likewise.
9820 (vmovl_s8): Likewise.
9821 (vmovl_s16): Likewise.
9822 (vmovl_s32): Likewise.
9823 (vmovl_u8): Likewise.
9824 (vmovl_u16): Likewise.
9825 (vmovl_u32): Likewise.
9826 (vmovn_high_s16): Likewise.
9827 (vmovn_high_s32): Likewise.
9828 (vmovn_high_s64): Likewise.
9829 (vmovn_high_u16): Likewise.
9830 (vmovn_high_u32): Likewise.
9831 (vmovn_high_u64): Likewise.
9832 (vmovn_s16): Likewise.
9833 (vmovn_s32): Likewise.
9834 (vmovn_s64): Likewise.
9835 (vmovn_u16): Likewise.
9836 (vmovn_u32): Likewise.
9837 (vmovn_u64): Likewise.
9838 (vmull_high_n_s16): Likewise.
9839 (vmull_high_n_s32): Likewise.
9840 (vmull_high_n_u16): Likewise.
9841 (vmull_high_n_u32): Likewise.
9842 (vmull_high_p8): Likewise.
9843 (vmull_high_s8): Likewise.
9844 (vmull_high_s16): Likewise.
9845 (vmull_high_s32): Likewise.
9846 (vmull_high_u8): Likewise.
9847 (vmull_high_u16): Likewise.
9848 (vmull_high_u32): Likewise.
9849 (vmull_n_s16): Likewise.
9850 (vmull_n_s32): Likewise.
9851 (vmull_n_u16): Likewise.
9852 (vmull_n_u32): Likewise.
9853 (vmull_p8): Likewise.
9854 (vmull_s8): Likewise.
9855 (vmull_s16): Likewise.
9856 (vmull_s32): Likewise.
9857 (vmull_u8): Likewise.
9858 (vmull_u16): Likewise.
9859 (vmull_u32): Likewise.
9860 (vpadal_s8): Likewise.
9861 (vpadal_s16): Likewise.
9862 (vpadal_s32): Likewise.
9863 (vpadal_u8): Likewise.
9864 (vpadal_u16): Likewise.
9865 (vpadal_u32): Likewise.
9866 (vpadalq_s8): Likewise.
9867 (vpadalq_s16): Likewise.
9868 (vpadalq_s32): Likewise.
9869 (vpadalq_u8): Likewise.
9870 (vpadalq_u16): Likewise.
9871 (vpadalq_u32): Likewise.
9872 (vpaddl_s8): Likewise.
9873 (vpaddl_s16): Likewise.
9874 (vpaddl_s32): Likewise.
9875 (vpaddl_u8): Likewise.
9876 (vpaddl_u16): Likewise.
9877 (vpaddl_u32): Likewise.
9878 (vpaddlq_s8): Likewise.
9879 (vpaddlq_s16): Likewise.
9880 (vpaddlq_s32): Likewise.
9881 (vpaddlq_u8): Likewise.
9882 (vpaddlq_u16): Likewise.
9883 (vpaddlq_u32): Likewise.
9884 (vpaddq_s8): Likewise.
9885 (vpaddq_s16): Likewise.
9886 (vpaddq_s32): Likewise.
9887 (vpaddq_s64): Likewise.
9888 (vpaddq_u8): Likewise.
9889 (vpaddq_u16): Likewise.
9890 (vpaddq_u32): Likewise.
9891 (vpaddq_u64): Likewise.
9892 (vqdmulh_n_s16): Likewise.
9893 (vqdmulh_n_s32): Likewise.
9894 (vqdmulhq_n_s16): Likewise.
9895 (vqdmulhq_n_s32): Likewise.
9896 (vqmovn_high_s16): Likewise.
9897 (vqmovn_high_s32): Likewise.
9898 (vqmovn_high_s64): Likewise.
9899 (vqmovn_high_u16): Likewise.
9900 (vqmovn_high_u32): Likewise.
9901 (vqmovn_high_u64): Likewise.
9902 (vqmovun_high_s16): Likewise.
9903 (vqmovun_high_s32): Likewise.
9904 (vqmovun_high_s64): Likewise.
9905 (vqrdmulh_n_s16): Likewise.
9906 (vqrdmulh_n_s32): Likewise.
9907 (vqrdmulhq_n_s16): Likewise.
9908 (vqrdmulhq_n_s32): Likewise.
9909 (vrsqrte_u32): Likewise.
9910 (vrsqrteq_u32): Likewise.
9911 (vtst_p8): Likewise.
9912 (vtst_p16): Likewise.
9913 (vtst_p64): Likewise.
9914 (vtstq_p8): Likewise.
9915 (vtstq_p16): Likewise.
9916 (vtstq_p64): Likewise.
9917 (vaddlv_s32): Likewise.
9918 (vaddlv_u32): Likewise.
9919 (vqtbl1_p8): Likewise.
9920 (vqtbl1_s8): Likewise.
9921 (vqtbl1_u8): Likewise.
9922 (vqtbl1q_p8): Likewise.
9923 (vqtbl1q_s8): Likewise.
9924 (vqtbl1q_u8): Likewise.
9925 (vqtbx1_s8): Likewise.
9926 (vqtbx1_u8): Likewise.
9927 (vqtbx1_p8): Likewise.
9928 (vqtbx1q_s8): Likewise.
9929 (vqtbx1q_u8): Likewise.
9930 (vqtbx1q_p8): Likewise.
9931 (vtbl1_s8): Likewise.
9932 (vtbl1_u8): Likewise.
9933 (vtbl1_p8): Likewise.
9934 (vtbl2_s8): Likewise.
9935 (vtbl2_u8): Likewise.
9936 (vtbl2_p8): Likewise.
9937 (vtbl3_s8): Likewise.
9938 (vtbl3_u8): Likewise.
9939 (vtbl3_p8): Likewise.
9940 (vtbl4_s8): Likewise.
9941 (vtbl4_u8): Likewise.
9942 (vtbl4_p8): Likewise.
9943 (vtbx2_s8): Likewise.
9944 (vtbx2_u8): Likewise.
9945 (vtbx2_p8): Likewise.
9946 (vld1_f32): Likewise.
9947 (vld1_f64): Likewise.
9948 (vld1_p8): Likewise.
9949 (vld1_p16): Likewise.
9950 (vld1_p64): Likewise.
9951 (vld1_s8): Likewise.
9952 (vld1_s16): Likewise.
9953 (vld1_s32): Likewise.
9954 (vld1_s64): Likewise.
9955 (vld1_u8): Likewise.
9956 (vld1_u16): Likewise.
9957 (vld1_u32): Likewise.
9958 (vld1_u64): Likewise.
9959 (vld1q_f32): Likewise.
9960 (vld1q_f64): Likewise.
9961 (vld1q_p8): Likewise.
9962 (vld1q_p16): Likewise.
9963 (vld1q_p64): Likewise.
9964 (vld1q_s8): Likewise.
9965 (vld1q_s16): Likewise.
9966 (vld1q_s32): Likewise.
9967 (vld1q_s64): Likewise.
9968 (vld1q_u8): Likewise.
9969 (vld1q_u16): Likewise.
9970 (vld1q_u32): Likewise.
9971 (vld1q_u64): Likewise.
9972 (vpmax_s8): Likewise.
9973 (vpmax_s16): Likewise.
9974 (vpmax_s32): Likewise.
9975 (vpmax_u8): Likewise.
9976 (vpmax_u16): Likewise.
9977 (vpmax_u32): Likewise.
9978 (vpmaxq_s8): Likewise.
9979 (vpmaxq_s16): Likewise.
9980 (vpmaxq_s32): Likewise.
9981 (vpmaxq_u8): Likewise.
9982 (vpmaxq_u16): Likewise.
9983 (vpmaxq_u32): Likewise.
9984 (vpmax_f32): Likewise.
9985 (vpmaxq_f32): Likewise.
9986 (vpmaxq_f64): Likewise.
9987 (vpmaxqd_f64): Likewise.
9988 (vpmaxs_f32): Likewise.
9989 (vpmaxnm_f32): Likewise.
9990 (vpmaxnmq_f32): Likewise.
9991 (vpmaxnmq_f64): Likewise.
9992 (vpmaxnmqd_f64): Likewise.
9993 (vpmaxnms_f32): Likewise.
9994 (vpmin_s8): Likewise.
9995 (vpmin_s16): Likewise.
9996 (vpmin_s32): Likewise.
9997 (vpmin_u8): Likewise.
9998 (vpmin_u16): Likewise.
9999 (vpmin_u32): Likewise.
10000 (vpminq_s8): Likewise.
10001 (vpminq_s16): Likewise.
10002 (vpminq_s32): Likewise.
10003 (vpminq_u8): Likewise.
10004 (vpminq_u16): Likewise.
10005 (vpminq_u32): Likewise.
10006 (vpmin_f32): Likewise.
10007 (vpminq_f32): Likewise.
10008 (vpminq_f64): Likewise.
10009 (vpminqd_f64): Likewise.
10010 (vpmins_f32): Likewise.
10011 (vpminnm_f32): Likewise.
10012 (vpminnmq_f32): Likewise.
10013 (vpminnmq_f64): Likewise.
10014 (vpminnmqd_f64): Likewise.
10015 (vpminnms_f32): Likewise.
10016 (vmla_f32): Likewise.
10017 (vmlaq_f32): Likewise.
10018 (vmlaq_f64): Likewise.
10019 (vmls_f32): Likewise.
10020 (vmlsq_f32): Likewise.
10021 (vmlsq_f64): Likewise.
10022 (vqtbl2_s8): Likewise.
10023 (vqtbl2_u8): Likewise.
10024 (vqtbl2_p8): Likewise.
10025 (vqtbl2q_s8): Likewise.
10026 (vqtbl2q_u8): Likewise.
10027 (vqtbl2q_p8): Likewise.
10028 (vqtbl3_s8): Likewise.
10029 (vqtbl3_u8): Likewise.
10030 (vqtbl3_p8): Likewise.
10031 (vqtbl3q_s8): Likewise.
10032 (vqtbl3q_u8): Likewise.
10033 (vqtbl3q_p8): Likewise.
10034 (vqtbl4_s8): Likewise.
10035 (vqtbl4_u8): Likewise.
10036 (vqtbl4_p8): Likewise.
10037 (vqtbl4q_s8): Likewise.
10038 (vqtbl4q_u8): Likewise.
10039 (vqtbl4q_p8): Likewise.
10040 (vqtbx2_s8): Likewise.
10041 (vqtbx2_u8): Likewise.
10042 (vqtbx2_p8): Likewise.
10043 (vqtbx2q_s8): Likewise.
10044 (vqtbx2q_u8): Likewise.
10045 (vqtbx2q_p8): Likewise.
10046 (vqtbx3_s8): Likewise.
10047 (vqtbx3_u8): Likewise.
10048 (vqtbx3_p8): Likewise.
10049 (vqtbx3q_s8): Likewise.
10050 (vqtbx3q_u8): Likewise.
10051 (vqtbx3q_p8): Likewise.
10052 (vqtbx4_s8): Likewise.
10053 (vqtbx4_u8): Likewise.
10054 (vqtbx4_p8): Likewise.
10055 (vqtbx4q_s8): Likewise.
10056 (vqtbx4q_u8): Likewise.
10057 (vqtbx4q_p8): Likewise.
10058 (vrev16_p8): Likewise.
10059 (vrev16_s8): Likewise.
10060 (vrev16_u8): Likewise.
10061 (vrev16q_p8): Likewise.
10062 (vrev16q_s8): Likewise.
10063 (vrev16q_u8): Likewise.
10064 (vrev32_p8): Likewise.
10065 (vrev32_p16): Likewise.
10066 (vrev32_s8): Likewise.
10067 (vrev32_s16): Likewise.
10068 (vrev32_u8): Likewise.
10069 (vrev32_u16): Likewise.
10070 (vrev32q_p8): Likewise.
10071 (vrev32q_p16): Likewise.
10072 (vrev32q_s8): Likewise.
10073 (vrev32q_s16): Likewise.
10074 (vrev32q_u8): Likewise.
10075 (vrev32q_u16): Likewise.
10076 (vrev64_f32): Likewise.
10077 (vrev64_p8): Likewise.
10078 (vrev64_p16): Likewise.
10079 (vrev64_s8): Likewise.
10080 (vrev64_s16): Likewise.
10081 (vrev64_s32): Likewise.
10082 (vrev64_u8): Likewise.
10083 (vrev64_u16): Likewise.
10084 (vrev64_u32): Likewise.
10085 (vrev64q_f32): Likewise.
10086 (vrev64q_p8): Likewise.
10087 (vrev64q_p16): Likewise.
10088 (vrev64q_s8): Likewise.
10089 (vrev64q_s16): Likewise.
10090 (vrev64q_s32): Likewise.
10091 (vrev64q_u8): Likewise.
10092 (vrev64q_u16): Likewise.
10093 (vrev64q_u32): Likewise.
10094 (vsha1cq_u32): Likewise.
10095 (vsha1mq_u32): Likewise.
10096 (vsha1pq_u32): Likewise.
10097 (vsha1h_u32): Likewise.
10098 (vsha1su0q_u32): Likewise.
10099 (vsha1su1q_u32): Likewise.
10100 (vsha256hq_u32): Likewise.
10101 (vsha256h2q_u32): Likewise.
10102 (vsha256su0q_u32): Likewise.
10103 (vsha256su1q_u32): Likewise.
10104 (vmull_p64): Likewise.
10105 (vmull_high_p64): Likewise.
10106 (vsqrt_f32): Likewise.
10107 (vsqrtq_f32): Likewise.
10108 (vsqrt_f64): Likewise.
10109 (vsqrtq_f64): Likewise.
10110 (vst1_f32): Likewise.
10111 (vst1_f64): Likewise.
10112 (vst1_p8): Likewise.
10113 (vst1_p16): Likewise.
10114 (vst1_p64): Likewise.
10115 (vst1_s8): Likewise.
10116 (vst1_s16): Likewise.
10117 (vst1_s32): Likewise.
10118 (vst1_s64): Likewise.
10119 (vst1_u8): Likewise.
10120 (vst1_u16): Likewise.
10121 (vst1_u32): Likewise.
10122 (vst1_u64): Likewise.
10123 (vst1q_f32): Likewise.
10124 (vst1q_f64): Likewise.
10125 (vst1q_p8): Likewise.
10126 (vst1q_p16): Likewise.
10127 (vst1q_p64): Likewise.
10128 (vst1q_s8): Likewise.
10129 (vst1q_s16): Likewise.
10130 (vst1q_s32): Likewise.
10131 (vst1q_s64): Likewise.
10132 (vst1q_u8): Likewise.
10133 (vst1q_u16): Likewise.
10134 (vst1q_u32): Likewise.
10135 (vst1q_u64): Likewise.
10136 (vst1_s64_x2): Likewise.
10137 (vst1_u64_x2): Likewise.
10138 (vst1_f64_x2): Likewise.
10139 (vst1_s8_x2): Likewise.
10140 (vst1_p8_x2): Likewise.
10141 (vst1_s16_x2): Likewise.
10142 (vst1_p16_x2): Likewise.
10143 (vst1_s32_x2): Likewise.
10144 (vst1_u8_x2): Likewise.
10145 (vst1_u16_x2): Likewise.
10146 (vst1_u32_x2): Likewise.
10147 (vst1_f16_x2): Likewise.
10148 (vst1_f32_x2): Likewise.
10149 (vst1_p64_x2): Likewise.
10150 (vst1q_s8_x2): Likewise.
10151 (vst1q_p8_x2): Likewise.
10152 (vst1q_s16_x2): Likewise.
10153 (vst1q_p16_x2): Likewise.
10154 (vst1q_s32_x2): Likewise.
10155 (vst1q_s64_x2): Likewise.
10156 (vst1q_u8_x2): Likewise.
10157 (vst1q_u16_x2): Likewise.
10158 (vst1q_u32_x2): Likewise.
10159 (vst1q_u64_x2): Likewise.
10160 (vst1q_f16_x2): Likewise.
10161 (vst1q_f32_x2): Likewise.
10162 (vst1q_f64_x2): Likewise.
10163 (vst1q_p64_x2): Likewise.
10164 (vst1_s64_x3): Likewise.
10165 (vst1_u64_x3): Likewise.
10166 (vst1_f64_x3): Likewise.
10167 (vst1_s8_x3): Likewise.
10168 (vst1_p8_x3): Likewise.
10169 (vst1_s16_x3): Likewise.
10170 (vst1_p16_x3): Likewise.
10171 (vst1_s32_x3): Likewise.
10172 (vst1_u8_x3): Likewise.
10173 (vst1_u16_x3): Likewise.
10174 (vst1_u32_x3): Likewise.
10175 (vst1_f16_x3): Likewise.
10176 (vst1_f32_x3): Likewise.
10177 (vst1_p64_x3): Likewise.
10178 (vst1q_s8_x3): Likewise.
10179 (vst1q_p8_x3): Likewise.
10180 (vst1q_s16_x3): Likewise.
10181 (vst1q_p16_x3): Likewise.
10182 (vst1q_s32_x3): Likewise.
10183 (vst1q_s64_x3): Likewise.
10184 (vst1q_u8_x3): Likewise.
10185 (vst1q_u16_x3): Likewise.
10186 (vst1q_u32_x3): Likewise.
10187 (vst1q_u64_x3): Likewise.
10188 (vst1q_f16_x3): Likewise.
10189 (vst1q_f32_x3): Likewise.
10190 (vst1q_f64_x3): Likewise.
10191 (vst1q_p64_x3): Likewise.
10192 (vst2_s64): Likewise.
10193 (vst2_u64): Likewise.
10194 (vst2_f64): Likewise.
10195 (vst2_s8): Likewise.
10196 (vst2_p8): Likewise.
10197 (vst2_s16): Likewise.
10198 (vst2_p16): Likewise.
10199 (vst2_s32): Likewise.
10200 (vst2_u8): Likewise.
10201 (vst2_u16): Likewise.
10202 (vst2_u32): Likewise.
10203 (vst2_f16): Likewise.
10204 (vst2_f32): Likewise.
10205 (vst2_p64): Likewise.
10206 (vst2q_s8): Likewise.
10207 (vst2q_p8): Likewise.
10208 (vst2q_s16): Likewise.
10209 (vst2q_p16): Likewise.
10210 (vst2q_s32): Likewise.
10211 (vst2q_s64): Likewise.
10212 (vst2q_u8): Likewise.
10213 (vst2q_u16): Likewise.
10214 (vst2q_u32): Likewise.
10215 (vst2q_u64): Likewise.
10216 (vst2q_f16): Likewise.
10217 (vst2q_f32): Likewise.
10218 (vst2q_f64): Likewise.
10219 (vst2q_p64): Likewise.
10220 (vst3_s64): Likewise.
10221 (vst3_u64): Likewise.
10222 (vst3_f64): Likewise.
10223 (vst3_s8): Likewise.
10224 (vst3_p8): Likewise.
10225 (vst3_s16): Likewise.
10226 (vst3_p16): Likewise.
10227 (vst3_s32): Likewise.
10228 (vst3_u8): Likewise.
10229 (vst3_u16): Likewise.
10230 (vst3_u32): Likewise.
10231 (vst3_f16): Likewise.
10232 (vst3_f32): Likewise.
10233 (vst3_p64): Likewise.
10234 (vst3q_s8): Likewise.
10235 (vst3q_p8): Likewise.
10236 (vst3q_s16): Likewise.
10237 (vst3q_p16): Likewise.
10238 (vst3q_s32): Likewise.
10239 (vst3q_s64): Likewise.
10240 (vst3q_u8): Likewise.
10241 (vst3q_u16): Likewise.
10242 (vst3q_u32): Likewise.
10243 (vst3q_u64): Likewise.
10244 (vst3q_f16): Likewise.
10245 (vst3q_f32): Likewise.
10246 (vst3q_f64): Likewise.
10247 (vst3q_p64): Likewise.
10248 (vst4_s64): Likewise.
10249 (vst4_u64): Likewise.
10250 (vst4_f64): Likewise.
10251 (vst4_s8): Likewise.
10252 (vst4_p8): Likewise.
10253 (vst4_s16): Likewise.
10254 (vst4_p16): Likewise.
10255 (vst4_s32): Likewise.
10256 (vst4_u8): Likewise.
10257 (vst4_u16): Likewise.
10258 (vst4_u32): Likewise.
10259 (vst4_f16): Likewise.
10260 (vst4_f32): Likewise.
10261 (vst4_p64): Likewise.
10262 (vst4q_s8): Likewise.
10263 (vst4q_p8): Likewise.
10264 (vst4q_s16): Likewise.
10265 (vst4q_p16): Likewise.
10266 (vst4q_s32): Likewise.
10267 (vst4q_s64): Likewise.
10268 (vst4q_u8): Likewise.
10269 (vst4q_u16): Likewise.
10270 (vst4q_u32): Likewise.
10271 (vst4q_u64): Likewise.
10272 (vst4q_f16): Likewise.
10273 (vst4q_f32): Likewise.
10274 (vst4q_f64): Likewise.
10275 (vst4q_p64): Likewise.
10276 (vtbx4_s8): Likewise.
10277 (vtbx4_u8): Likewise.
10278 (vtbx4_p8): Likewise.
10279 (vtrn_f32): Likewise.
10280 (vtrn_p8): Likewise.
10281 (vtrn_p16): Likewise.
10282 (vtrn_s8): Likewise.
10283 (vtrn_s16): Likewise.
10284 (vtrn_s32): Likewise.
10285 (vtrn_u8): Likewise.
10286 (vtrn_u16): Likewise.
10287 (vtrn_u32): Likewise.
10288 (vtrnq_f32): Likewise.
10289 (vtrnq_p8): Likewise.
10290 (vtrnq_p16): Likewise.
10291 (vtrnq_s8): Likewise.
10292 (vtrnq_s16): Likewise.
10293 (vtrnq_s32): Likewise.
10294 (vtrnq_u8): Likewise.
10295 (vtrnq_u16): Likewise.
10296 (vtrnq_u32): Likewise.
10297 (vrsqrte_f16): Likewise.
10298 (vrsqrteq_f16): Likewise.
10299 (vsqrt_f16): Likewise.
10300 (vsqrtq_f16): Likewise.
10301 (vabd_f16): Likewise.
10302 (vabdq_f16): Likewise.
10303 (vpadd_f16): Likewise.
10304 (vpaddq_f16): Likewise.
10305 (vpmax_f16): Likewise.
10306 (vpmaxq_f16): Likewise.
10307 (vpmaxnm_f16): Likewise.
10308 (vpmaxnmq_f16): Likewise.
10309 (vpmin_f16): Likewise.
10310 (vpminq_f16): Likewise.
10311 (vpminnm_f16): Likewise.
10312 (vpminnmq_f16): Likewise.
10313 (vrsqrts_f16): Likewise.
10314 (vrsqrtsq_f16): Likewise.
10316 2019-09-25 Richard Biener <rguenther@suse.de>
10318 PR tree-optimization/91896
10319 * tree-vect-loop.c (vectorizable_reduction): The single
10320 def-use cycle optimization cannot apply when there's more
10321 than one pattern stmt involved.
10323 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10325 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10326 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10327 (reload_macho_picbase_<mode>): Likewise.
10329 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10331 * config/rs6000/rs6000.md: Move darwin.md include until
10332 after the definition of the mode iterators.
10334 2019-09-23 Martin Sebor <msebor@redhat.com>
10336 PR tree-optimization/91570
10337 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10338 non-constant minlen, maxlen and maxbound.
10340 2019-09-24 Richard Biener <rguenther@suse.de>
10342 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10344 (_stmt_vec_info::cond_reduc_code): ... this.
10345 (_stmt_vec_info::induc_cond_initial_val): Add.
10346 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10347 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10348 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10349 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10350 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10351 the reduction code.
10352 (vect_create_epilog_for_reduction): Drop special
10353 induction condition reduction params, pass in reduction code
10355 (vectorizable_reduction): Perform condition reduction kind
10356 selection only at analysis time. Adjust passing on state.
10358 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10360 * config/aarch64/aarch64.md (mov<mode>): Don't call
10361 aarch64_split_dimode_const_store on volatile MEM.
10363 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
10365 * config/aarch64/aarch64-option-extensions.def (fp16fml):
10366 Update hwcap string for fp16fml.
10368 2019-09-24 Jakub Jelinek <jakub@redhat.com>
10370 PR middle-end/91866
10371 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
10372 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
10374 2019-09-24 Martin Liska <mliska@suse.cz>
10376 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
10377 instead of if-elseif-elseif-...
10378 * gimple-expr.c (extract_ops_from_tree): Likewise.
10379 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10380 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
10382 2019-09-24 Martin Jambor <mjambor@suse.cz>
10385 * ipa-param-manipulation.c (carry_over_param): Make a method of
10386 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
10387 in case of a context mismatch.
10388 (ipa_param_body_adjustments::common_initialization): Adjust call to
10390 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
10391 private method carry_over_param.
10393 2019-09-24 Martin Jambor <mjambor@suse.cz>
10396 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
10398 2019-09-24 Richard Biener <rguenther@suse.de>
10400 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
10403 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10405 * config/arm/t-arm (arm-builtins.o): Add dependency on
10406 arm_acle_builtins.def.
10408 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10411 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
10412 canonical CONST_INTs. Use gen_rtvec.
10414 2019-09-23 Richard Biener <rguenther@suse.de>
10416 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
10417 avoid adjusting by + 0 or * 1.
10418 (vect_create_epilog_for_reduction): Get reduction code only
10419 when necessary. Deal with adjustment_def only when necessary.
10421 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10423 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
10426 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10429 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
10432 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
10434 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
10435 code. Merge code blocks with common conditionals. Use declared
10436 macro instead of a magic number for PIC level.
10438 2019-09-21 Martin Sebor <msebor@redhat.com>
10440 PR middle-end/91830
10441 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
10442 Simplify computation of the offset of the referenced subobject.
10444 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
10446 * config/darwin.c (machopic_legitimize_pic_address): Check
10447 for lra not reload.
10449 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10451 * ira-conflicts.c (can_use_same_reg_p): New function.
10452 (process_reg_shuffles): Take an insn parameter. Ignore cases
10453 in which input operand op_num could seemingly never be allocated
10454 to the same register as the destination.
10455 (add_insn_allocno_copies): Update call to process_reg_shuffles.
10457 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10459 * simplify-rtx.c (neg_const_int): Replace with...
10460 (neg_poly_int_rtx): ...this new function.
10461 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
10462 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
10463 (simplify_plus_minus): Likewise for constant terms here.
10465 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
10467 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
10468 HOST_WIDE_PRINT_UNSIGNED.
10470 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
10472 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
10475 2019-09-20 Maya Rashish <coypu@sdf.org>
10478 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
10479 Define to speculation_safe_value_not_needed.
10481 2019-09-20 Richard Biener <rguenther@suse.de>
10482 Uros Bizjak <ubizjak@gmail.com>
10485 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
10487 (general_scalar_chain::convert_op): Force not suitable memory
10488 operands to a register.
10490 2019-09-20 Richard Biener <rguenther@suse.de>
10492 PR tree-optimization/91821
10493 * tree-vect-loop.c (check_reduction_path): Check we can compute
10495 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
10496 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
10497 operands in canonical order.
10498 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10499 STMT_VINFO_REDUC_IDX.
10500 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
10501 (STMT_VINFO_REDUC_IDX): Likewise.
10503 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
10506 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10508 2019-09-20 Richard Biener <rguenther@suse.de>
10510 PR tree-optimization/91822
10511 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
10513 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
10514 for reduc_index in nested cycles, adjust vectorizable_condition
10516 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
10518 (vect_analyze_stmt): Adjust.
10519 (vect_transform_stmt): Likewise.
10521 2019-09-20 Richard Biener <rguenther@suse.de>
10524 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
10525 Ensure there's a sequence point between allocating the new register
10526 and passing a reference to a reg via regno_reg_rtx.
10528 2019-09-20 Martin Jambor <mjambor@suse.cz>
10530 * coretypes.h (cgraph_edge): Declare.
10531 * ipa-param-manipulation.c: Rewrite.
10532 * ipa-param-manipulation.h: Likewise.
10533 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
10534 (OBJS): Added ipa-sra.o.
10535 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
10536 and ref_p, added fields param_adjustments and performed_splits.
10537 (struct cgraph_clone_info): Remove ags_to_skip and
10538 combined_args_to_skip, new field param_adjustments.
10539 (cgraph_node::create_clone): Changed parameters to use
10540 ipa_param_adjustments.
10541 (cgraph_node::create_virtual_clone): Likewise.
10542 (cgraph_node::create_virtual_clone_with_body): Likewise.
10543 (tree_function_versioning): Likewise.
10544 (cgraph_build_function_type_skip_args): Removed.
10545 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
10546 using ipa_param_adjustments.
10547 (clone_of_p): Likewise.
10548 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
10549 (build_function_decl_skip_args): Likewise.
10550 (duplicate_thunk_for_node): Adjust parameters using
10551 ipa_param_body_adjustments, copy param_adjustments instead of
10553 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
10554 (cgraph_node::create_virtual_clone): Likewise.
10555 (cgraph_node::create_version_clone_with_body): Likewise.
10556 (cgraph_materialize_clone): Likewise.
10557 (symbol_table::materialize_all_clones): Likewise.
10558 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
10559 ipa_replace_map check.
10560 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
10561 (initialize_node_lattices): Make aware that some parameters might have
10562 already been removed.
10563 (want_remove_some_param_p): New function.
10564 (create_specialized_node): Convert to using ipa_param_adjustments and
10565 deal with possibly pre-existing adjustments.
10566 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
10567 (output_node_opt_summary): Do not stream removed fields. Stream
10568 parameter adjustments instead of argumetns to skip.
10569 (input_node_opt_summary): Likewise.
10570 (input_node_opt_summary): Likewise.
10571 * lto-section-in.c (lto_section_name): Added ipa-sra section.
10572 * lto-streamer.h (lto_section_type): Likewise.
10573 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
10575 (copy_decl_to_var): Declare.
10576 * tree-inline.c (update_clone_info): Do not remap old_tree.
10577 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
10578 statements, walk all extra generated statements and remap their
10580 (redirect_all_calls): Add killed SSA names to a hash set.
10581 (remap_ssa_name): Do not remap killed SSA names.
10582 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
10583 half of functionality moved to ipa_param_body_adjustments.
10584 (copy_decl_to_var): Make exported.
10585 (copy_body): Destroy killed_new_ssa_names hash set.
10586 (expand_call_inline): Remap performed splits.
10587 (update_clone_info): Likewise.
10588 (tree_function_versioning): Simplify tree_map processing. Updated to
10589 accept ipa_param_adjustments and use ipa_param_body_adjustments.
10590 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
10591 for the new interface.
10592 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
10593 (simd_clone_compute_base_data_type): Likewise.
10594 (simd_clone_init_simd_arrays): Adjust for the new interface.
10595 (simd_clone_adjust_argument_types): Likewise.
10596 (struct modify_stmt_info): Likewise.
10597 (ipa_simd_modify_stmt_ops): Likewise.
10598 (ipa_simd_modify_function_body): Likewise.
10599 (simd_clone_adjust): Likewise.
10600 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
10601 (type_internals_preclude_sra_p): Make public.
10602 * tree-sra.h: New file.
10603 * ipa-inline-transform.c (save_inline_function_body): Update to
10604 refelct new tree_function_versioning signature.
10605 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
10606 ipa_param_adjustments to get current parameter indices.
10607 (ipcp_modif_dom_walker::before_dom_children): Likewise.
10608 (ipcp_update_bits): Likewise.
10609 (ipcp_update_vr): Likewise.
10610 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
10611 * ipa-sra.c: New file.
10612 * multiple_target.c (create_target_clone): Update to reflet new type
10613 of create_version_clone_with_body.
10614 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
10615 tree_function_versioning.
10616 (modify_function): Update to reflect new type of
10617 tree_function_versioning.
10618 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
10619 * passes.def: Remove old IPA-SRA and add new one.
10620 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
10621 (make_pass_ipa_sra): Declare.
10622 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
10624 * doc/invoke.texi (ipa-sra-max-replacements): New.
10626 2019-09-19 Martin Sebor <msebor@redhat.com>
10628 PR middle-end/91631
10629 * builtins.c (component_size): Correct trailing array computation,
10630 rename to component_ref_size and move...
10631 (compute_objsize): Adjust.
10632 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
10633 (builtin_access::strict): Do not consider memmove.
10634 (builtin_access::write_off): New function.
10635 (builtin_memref::builtin_memref): Initialize refsize.
10636 (builtin_memref::set_base_and_offset): Adjust refoff and compute
10638 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
10640 (builtin_access::builtin_access): Initialize dstoff to destination
10641 refeence offset here instead of in maybe_diag_overlap. Adjust
10642 referencess even to unrelated objects. Adjust sizrange of bounded
10643 string functions to reflect bound. For strcat, adjust destination
10644 sizrange by that of source.
10645 (builtin_access::strcat_overlap): Adjust offsets and sizes
10646 to reflect the increase in destination sizrange above.
10647 (builtin_access::overlap): Do not set dstoff here but instead
10648 in builtin_access::builtin_access.
10649 (check_bounds_or_overlap): Use builtin_access::write_off.
10650 (maybe_diag_access_bounds): Add argument. Add informational notes.
10651 (dump_builtin_memref, dump_builtin_access): New functions.
10652 * tree.c (component_ref_size): ...to here.
10653 * tree.h (component_ref_size): Declare.
10654 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
10655 nul in the size of the source string.
10657 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
10660 * doc/cpp.texi: Document support for extended characters in
10662 * doc/cppopts.texi: Likewise.
10664 2019-09-19 Richard Biener <rguenther@suse.de>
10666 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
10667 (check_reduction_path): New overload having the path as result.
10668 (vect_is_simple_reduction): From the detected reduction
10669 path build a SLP reduction chain if possible.
10671 2019-09-19 Richard Biener <rguenther@suse.de>
10674 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
10675 Force operand to a register if it isn't nonimmediate_operand.
10677 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
10679 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
10680 * config/arm/iterators.md (optab): Add and, ior, xor entries.
10681 (logical_op): Remove code attribute.
10682 (logical_OP): Likewise.
10684 2019-09-19 Martin Liska <mliska@suse.cz>
10686 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
10687 Use proper casting.
10689 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
10691 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
10694 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
10695 for NE comparison of TImode values.
10696 (aarch64_emit_load_exclusive): Add support for TImode.
10697 (aarch64_emit_store_exclusive): Likewise.
10698 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
10699 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
10700 Change iterator from ALLI to ALLI_TI.
10701 (@atomic_compare_and_swap<JUST_TI>): New.
10702 (@atomic_compare_and_swap<JUST_TI>_lse): New.
10703 (aarch64_load_exclusive_pair): New.
10704 (aarch64_store_exclusive_pair): New.
10705 * config/aarch64/iterators.md (JUST_TI): New.
10707 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
10708 strong_zero_p for aarch64_track_speculation; unify some code paths;
10709 use aarch64_gen_compare_reg instead of open-coding.
10711 * config/aarch64/aarch64.opt (-moutline-atomics): New.
10712 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
10713 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
10714 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
10715 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
10716 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
10717 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
10718 (atomic_<atomic_op><ALLI>): Likewise.
10719 (atomic_fetch_<atomic_op><ALLI>): Likewise.
10720 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
10721 * doc/invoke.texi: Document -moutline-atomics.
10723 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
10725 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
10726 trivial predicate for condition branch.
10727 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
10729 (compute_bb_predicates): Update predicate based on post-dominating
10731 (analyze_function_body): Calculate post-dominating information.
10733 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10735 * tree-vectorizer.h (vectorizable_condition): Take an int
10736 reduction index instead of a boolean flag.
10737 * tree-vect-stmts.c (vectorizable_condition): Likewise.
10738 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
10739 reductions if the reduction accumulator is the "then" rather
10740 than the "else" value.
10741 (vect_analyze_stmt): Update call accordingly.
10742 (vect_transform_stmt): Likewise.
10743 * tree-vect-loop.c (vectorizable_reduction): Likewise,
10744 asserting that the index is > 0.
10746 2019-09-19 Martin Liska <mliska@suse.cz>
10748 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
10749 (sort_congruence_classes_by_decl_uid): Likewise.
10750 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
10752 (sem_item_optimizer::merge_classes): Likewise.
10754 2019-09-19 Richard Biener <rguenther@suse.de>
10756 PR tree-optimization/91812
10757 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
10760 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10762 * defaults.h (TARGET_UNIT): New macro.
10763 (target_unit): New type.
10764 * rtl.h (native_encode_rtx, native_decode_rtx)
10765 (native_decode_vector_rtx, subreg_size_lsb): Declare.
10766 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
10767 * rtlanal.c (subreg_lsb_1): Delete.
10768 (subreg_size_lsb): New function.
10769 * simplify-rtx.c: Include rtx-vector-builder.h
10770 (simplify_immed_subreg): Delete.
10771 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
10772 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
10774 (simplify_subreg): Use them.
10775 (test_vector_subregs_modes, test_vector_subregs_repeating)
10776 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
10777 (test_vector_subregs): New functions.
10778 (test_vector_ops): Call test_vector_subregs for integer vector
10779 modes with at least 2 elements.
10781 2019-09-19 Richard Biener <rguenther@suse.de>
10783 * tree-parloops.c (parloops_is_slp_reduction): Do not set
10784 LOOP_VINFO_OPERANDS_SWAPPED.
10785 (parloops_is_simple_reduction): Likewise.
10786 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
10787 initialize operands_swapped.
10788 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
10789 (vect_is_slp_reduction): Do not swap operands.
10790 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
10791 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
10793 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
10796 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
10797 Add avx_partial_xmm_update.
10799 2019-09-18 Jim Wilson <jimw@sifive.com>
10802 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
10803 (riscv_move_integer): Likewise.
10804 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
10805 riscv_move_integer arg.
10806 (riscv_legitimize_move): Likewise.
10807 (riscv_force_temporary): New parameter in_splitter. Don't call
10809 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
10811 (riscv_add_offset): Likewise.
10812 (riscv_split_symbol): New parameter in_splitter. Pass to
10813 riscv_force_temporary.
10814 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10816 (riscv_move_integer): New parameter in_splitter. New local
10817 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10819 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10820 riscv_split_symbol, and riscv_force_temporary args.
10821 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10822 riscv_move_integer arg.
10823 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10825 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10828 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10829 hard register store cost to 6.
10831 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10834 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10835 pseudo register store cost from 3 to 6 to make it the same as
10838 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10841 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10842 (one_cmpldi2): Likewise.
10843 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10844 of the constant parts is simple.
10845 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10846 (logical_op): Add new code attribute.
10847 (logical_OP): Likewise.
10848 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10849 (arm_iordi_operand): Add predicate.
10850 (arm_xordi_operand): Add predicate.
10852 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10854 * config/arm/arm.md (maddsidi4): Remove expander.
10855 (mulsidi3adddi): Remove pattern.
10856 (mulsidi3adddi_v6): Likewise.
10857 (mulsidi3_nov6): Likewise.
10858 (mulsidi3_v6): Likewise.
10859 (umulsidi3): Remove expander.
10860 (umulsidi3_nov6): Remove pattern.
10861 (umulsidi3_v6): Likewise.
10862 (umulsidi3adddi): Likewise.
10863 (umulsidi3adddi_v6): Likewise.
10864 (<Us>mulsidi3): Add combined expander.
10865 (<Us>maddsidi4): Likewise.
10866 (<US>mull): Add combined umull and smull pattern.
10867 (<US>mlal): Likewise.
10868 * config/arm/iterators.md (Us): Add new iterator.
10870 2019-09-18 Richard Biener <rguenther@suse.de>
10872 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10874 (vectorize_fold_left_reduction): Remove assert.
10875 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10876 operand in position 2. Remove assert.
10878 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10880 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10881 (smulsi3_highpart_nov6): Remove pattern.
10882 (smulsi3_highpart_v6): Likewise.
10883 (umulsi3_highpart): Likewise.
10884 (umulsi3_highpart_nov6): Likewise.
10885 (umulsi3_highpart_v6): Likewise.
10886 (<US>mull_high): Add new combined multiply pattern.
10888 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10890 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10891 (arm_mulsi3_v6): Likewise.
10892 (mulsi3addsi_v6): Likewise.
10893 (mulsi3subsi): Likewise.
10894 (mul): Add new multiply pattern.
10898 2019-09-18 Richard Biener <rguenther@suse.de>
10900 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10901 (parloops_valid_reduction_input_p): Copy from
10902 valid_reduction_input_p.
10903 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10904 (parloops_needs_fold_left_reduction_p): Copy from
10905 needs_fold_left_reduction_p.
10906 (parloops_is_simple_reduction): Copy from
10907 vect_is_simple_reduction.
10908 (parloops_force_simple_reduction): Copy from
10909 vect_force_simple_reduction.
10910 (gather_scalar_reductions): Adjust.
10911 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10912 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10914 2019-09-18 Richard Biener <rguenther@suse.de>
10916 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10917 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10919 (vect_create_epilog_for_reduction): Remove dead code.
10921 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10923 * varasm.c (assemble_real): Generate canonical const_ints.
10925 2019-09-18 Richard Biener <rguenther@suse.de>
10928 * lto-streamer-in.c (input_eh_regions): Move EH init to
10929 lto_materialize_function.
10930 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10933 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10935 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10938 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10940 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10941 of checking specifically for INTEGER_CST.
10943 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10945 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10946 sizes instead of uhwi sizes.
10948 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10950 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10951 (add_const_value_attribute): Handle CONST_POLY_INT.
10953 2019-09-18 Martin Liska <mliska@suse.cz>
10955 * dbgcnt.def (store_merging): New counter.
10956 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10957 Use it in store merging.
10959 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10961 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10963 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10964 * config/arm/arm.c (arm_sched_variable_issue): New function.
10965 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10967 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10969 * config/arm/types.md (no_reservation): New reservation.
10970 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10972 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10973 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10974 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10975 * config/arm/arm1020e.md (1020alu_op): Likewise.
10976 * config/arm/arm1026ejs.md (alu_op): Likewise.
10977 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10978 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10979 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10980 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10981 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10982 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10983 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10984 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10985 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10986 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10987 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10988 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10989 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10990 * config/arm/fa526.md (526_alu_op): Likewise.
10991 * config/arm/fa606te.md (606te_alu_op): Likewise.
10992 * config/arm/fa626te.md (626te_alu_op): Likewise.
10993 * config/arm/fa726te.md (726te_alu_op): Likewise.
10994 * config/arm/xgene1.md (xgene1_nop): Likewise.
10996 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10998 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10999 "no_insn" to "branch".
11001 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
11003 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
11005 2019-09-17 Richard Biener <rguenther@suse.de>
11008 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
11009 was missing generate locations only once.
11011 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
11014 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
11016 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
11017 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
11018 for switch default case using range analysis information.
11020 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
11023 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
11024 mode attributed is supported by FDPIC.
11026 2019-09-17 Richard Biener <rguenther@suse.de>
11028 PR tree-optimization/91790
11029 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
11030 use the correct DR for setting up realignment.
11032 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
11035 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
11036 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
11037 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
11038 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
11040 2019-09-16 Jason Merrill <jason@redhat.com>
11042 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
11044 2019-09-16 Martin Liska <mliska@suse.cz>
11046 * gimple-fold.c (or_comparisons_1): Remove rules moved
11048 * match.pd: ... here.
11050 2019-09-16 Martin Liska <mliska@suse.cz>
11052 * gimple-fold.c (or_comparisons_1): Remove rules
11054 * match.pd: ... here.
11056 2019-09-16 Martin Liska <mliska@suse.cz>
11058 * genmatch.c (dt_node::append_simplify): Do not print
11059 warning when we have duplicate patterns belonging
11060 to a same simplify rule.
11061 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
11062 (maybe_fold_comparisons_from_match_pd): Handle
11063 tcc_comparison as a results.
11064 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
11066 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11067 Qi Feng <ffengqi@linux.ibm.com>
11069 PR middle-end/88784
11070 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
11071 (x > y && x == XXX_MIN): Optimize into 'false'.
11072 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
11073 (x < y && x != XXX_MAX): Optimize into 'x < y'.
11074 (x < y && x == XXX_MAX): Optimize into 'false'.
11075 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
11076 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
11077 (x <= y || x != XXX_MIN): Optimize into 'true'.
11078 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
11079 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
11080 (x >= y || x != XXX_MAX): Optimize into 'true'.
11081 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
11083 2019-09-16 Li Jia He <helijia@linux.ibm.com>
11084 Martin Liska <mliska@suse.cz>
11086 * gimple-fold.c (and_comparisons_1): Add type as first
11088 (and_var_with_comparison): Likewise.
11089 (and_var_with_comparison_1): Likewise.
11090 (or_comparisons_1): Likewise.
11091 (or_var_with_comparison): Likewise.
11092 (or_var_with_comparison_1): Likewise.
11093 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
11094 (maybe_fold_or_comparisons): Likewise.
11095 (maybe_fold_comparisons_from_match_pd): New.
11096 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
11097 (maybe_fold_or_comparisons): Likewise.
11098 * gimple.c (gimple_size): Make it public and add num_ops argument.
11099 (gimple_init): New function.
11100 (gimple_alloc): Call gimple_init.
11101 * gimple.h (gimple_size): New.
11102 (gimple_init): Likewise.
11103 * tree-if-conv.c (fold_or_predicates): Pass type.
11104 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
11105 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
11106 (optimize_vec_cond_expr): Likewise.
11107 (ovce_extract_ops): Return type of conditional expression.
11108 * tree-ssanames.c (init_ssa_name_imm_use): New.
11109 (make_ssa_name_fn): Use init_ssa_name_imm_use.
11110 * tree-ssanames.h (init_ssa_name_imm_use): New.
11112 2019-09-16 Richard Biener <rguenther@suse.de>
11114 PR tree-optimization/91756
11115 PR tree-optimization/87132
11116 * tree-ssa-alias.h (enum translate_flags): New.
11117 (get_continuation_for_phi): Use it instead of simple bool flag.
11118 (walk_non_aliased_vuses): Likewise.
11119 * tree-ssa-alias.c (maybe_skip_until): Adjust.
11120 (get_continuation_for_phi): When looking across backedges only
11121 disallow valueization.
11122 (walk_non_aliased_vuses): Adjust.
11123 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
11126 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
11128 PR middle-end/80791
11129 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
11130 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11131 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11132 * target.def (have_count_reg_decr_p): New hook.
11133 (doloop_cost_for_generic): Likewise.
11134 (doloop_cost_for_address): Likewise.
11135 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
11136 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
11137 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
11138 * doc/tm.texi: Regenerate.
11139 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
11141 (record_group): Init doloop_p.
11142 (add_candidate_1): Add optional argument doloop, change the handlings
11144 (add_candidate): Likewise.
11145 (generic_predict_doloop_p): Update attribute.
11146 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
11147 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
11148 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
11150 (get_computation_cost): Update for doloop IV cand extra cost.
11151 (determine_group_iv_cost_cond): Update for doloop IV cand.
11152 (determine_iv_cost): Likewise.
11153 (ivopts_estimate_reg_pressure): Likewise.
11154 (may_eliminate_iv): Update handlings for doloop IV cand.
11155 (add_iv_candidate_for_doloop): New function.
11156 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
11157 (iv_ca_set_no_cp): Update for doloop IV cand.
11158 (iv_ca_set_cp): Likewise.
11159 (iv_ca_dump): Dump register cost.
11160 (find_doloop_use): New function.
11161 (analyze_and_mark_doloop_use): Likewise.
11162 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
11164 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
11166 PR middle-end/91708
11167 * cse.c (cse_insn): Do not replace anything with a
11170 2019-09-13 Ian Lance Taylor <iant@golang.org>
11172 * doc/invoke.texi (Optimize Options): Fix typo.
11174 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
11176 PR tree-optimization/89386
11177 * config/i386/sse.md (smulhrs<mode>3): New expander.
11178 (smulhrsv4hi3): Ditto.
11180 2019-09-12 Richard Biener <rguenther@suse.de>
11182 PR tree-optimization/91750
11183 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
11184 in the type of the evolution.
11186 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
11188 PR tree-optimization/89386
11189 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
11190 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
11191 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
11192 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
11193 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
11194 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
11195 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
11196 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
11197 (su, r): Handle the unspecs above.
11198 (bt): New int attribute.
11199 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
11200 * internal-fn.c (first_commutative_argument): Commutativity info for
11202 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
11203 (umulhrs_optab): New optabs.
11204 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
11205 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
11206 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
11208 (vect_vect_recog_func_ptrs): Add it.
11210 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
11212 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
11215 2019-09-11 Nathan Sidwell <nathan@acm.org>
11217 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
11218 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
11220 2019-09-11 Richard Biener <rguenther@suse.de>
11222 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
11223 * lto-wrapper.c (merge_and_complain): Pick up -g.
11224 (append_compiler_options): Likewise.
11225 (run_gcc): Re-instantiate handling -g0 at link-time.
11226 * doc/invoke.texi (flto): Document debug info generation.
11228 2019-09-11 Richard Biener <rguenther@suse.de>
11230 PR tree-optimization/90387
11231 * vr-values.c (vr_values::extract_range_basic): After inlining
11232 simplify non-constant __builtin_constant_p to false.
11234 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11236 PR rtl-optimization/89795
11237 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11238 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11240 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11242 PR tree-optimization/91723
11243 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11244 instead of pointer equality when checking if argument vectypes are
11247 PR middle-end/91725
11248 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11249 of get_nonzero_bits, only call it for integral types.
11251 2019-09-11 Richard Biener <rguenther@suse.de>
11254 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11256 * match.pd: Add flag_unsafe_math_optimizations check
11257 before deciding on the widest type in a binary math operation.
11259 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11261 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11262 and CALL_REALLY_USED_REGISTERS must be defined, and that
11263 CALL_REALLY_USED_REGISTERS is preferred.
11264 * doc/tm.texi: Regenerate.
11265 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11266 (call_really_used_regs): Likewise.
11267 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11268 CALL_REALLY_USED_REGISTERS are defined.
11269 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11270 initial value if defined.
11271 (initial_call_really_used_regs): Delete.
11272 (saved_call_really_used_regs): Likewise.
11273 (CALL_REALLY_USED_REGNO_P): Likewise.
11274 (init_reg_sets): Remove handling of call_really_used_regs.
11275 (save_register_info, restore_register_info, globalize_reg): Likewise.
11276 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11277 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11278 outside operand_reg_set.
11279 (fix_register): Don't change call_used_regs if
11280 CALL_REALLY_USED_REGISTERS is defined.
11281 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11282 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11283 instead of call_really_used_regs.
11284 (csky_conditional_register_usage): Remove the old handling of
11285 call_used_regs and change the handling of call_really_used_regs
11286 to use call_used_regs instead.
11287 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11288 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11289 making a register fixed.
11290 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11291 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11292 instead of call_really_used_regs.
11293 (m32r_conditional_register_usage): Don't set call_used_regs when
11294 making a register fixed.
11295 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11296 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11297 instead of call_really_used_regs.
11298 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11299 (mips_cfun_call_saved_reg_p): Likewise.
11300 (mips_swap_registers): Remove the old handling of call_used_regs
11301 and change the handling of call_really_used_regs to use call_used_regs
11303 (mips_conditional_register_usage): Likewise.
11304 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11305 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11306 instead of call_really_used_regs.
11307 (mn10300_get_live_callee_saved_regs): Likewise.
11308 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11309 (mn10300_conditional_register_usage): Don't set call_used_regs when
11310 making a register fixed.
11311 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11312 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11313 Remove the old handling of call_used_regs and change the handling
11314 of call_really_used_regs to use call_used_regs instead.
11315 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11316 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11317 instead of call_really_used_regs.
11318 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11319 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11320 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11321 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11322 (s390_conditional_register_usage): Remove the old handling of
11323 call_used_regs and change the handling of call_really_used_regs
11324 to use call_used_regs instead.
11325 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11326 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11327 (sh_fix_range, reg_unused_after): Likewise.
11328 (sh_conditional_register_usage): Remove the old handling of
11329 call_used_regs and change the handling of call_really_used_regs
11330 to use call_used_regs instead.
11331 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11332 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11333 call_used_regs when making a register fixed.
11334 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11335 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11336 call_used_regs when making a register fixed.
11337 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11338 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11339 set call_used_regs when making a register fixed.
11340 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11341 * config/visium/visium.c (visium_conditional_register_usage): Remove
11342 the old handling of call_used_regs and change the handling of
11343 call_really_used_regs to use call_used_regs instead.
11345 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11347 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11348 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11349 * reginfo.c (call_used_regs): New macro.
11351 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11353 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
11355 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11356 (bpf_expand_epilogue): Likewise.
11357 * config/c6x/c6x.c (c6x_save_reg): Likewise.
11358 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11359 (ft32_expand_epilogue): Likewise.
11360 * config/i386/i386.c (ix86_save_reg): Likewise.
11361 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
11362 (moxie_expand_epilogue): Likewise.
11363 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11364 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11365 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11367 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11369 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
11370 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
11371 instead of testing call_used_regs directly.
11372 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
11373 (aarch64_components_for_bb): Likewise.
11374 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
11375 * config/arc/arc.c (arc_must_save_register): Likewise.
11376 (arc_epilogue_uses): Likewise.
11377 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
11378 (legitimize_pic_address, callee_saved_reg_p): Likewise.
11379 (arm_compute_save_reg0_reg12_mask): Likewise.
11380 (arm_compute_save_core_reg_mask): Likewise.
11381 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
11382 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
11383 (cmse_nonsecure_entry_clear_before_return): Likewise.
11384 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
11385 (arm_expand_epilogue): Likewise.
11386 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
11387 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
11388 (_reg_unused_after): Likewise.
11389 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
11390 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
11391 (add_to_reg, hwloop_optimize): Likewise.
11392 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11393 (bpf_expand_epilogue): Likewise.
11394 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
11395 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
11396 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
11397 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
11398 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
11399 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
11400 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
11401 * config/frv/frv.c (frv_stack_info): Likewise.
11402 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
11403 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
11404 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
11405 (move_callee_saved_registers): Likewise.
11406 * config/h8300/h8300.c (byte_reg): Likewise.
11407 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
11408 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
11409 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
11410 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
11411 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
11412 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
11413 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
11414 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
11415 * config/m32c/m32c.c (need_to_save): Likewise.
11416 * config/m68k/m68k.c (m68k_save_reg): Likewise.
11417 * config/mcore/mcore.c (calc_live_regs): Likewise.
11418 * config/microblaze/microblaze.c (microblaze_must_save_register):
11420 * config/mmix/mmix.c (mmix_local_regno): Likewise.
11421 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
11422 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
11423 (mmix_expand_epilogue): Likewise.
11424 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
11425 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
11426 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
11427 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
11428 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
11429 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
11430 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
11431 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
11432 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
11433 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
11434 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
11435 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
11436 * config/rl78/rl78.c (need_to_save): Likewise.
11437 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
11438 (rs6000_stack_info, generate_set_vrsave): Likewise.
11439 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
11440 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
11441 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11442 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11443 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
11444 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
11445 (save_local_or_in_reg_p): Likewise.
11446 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
11447 (xstormy16_epilogue_uses): Likewise.
11448 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11449 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11450 * config/v850/v850.c (compute_register_save_size): Likewise.
11451 * config/vax/vax.c (vax_expand_prologue): Likewise.
11452 * config/visium/visium.c (visium_save_reg_p): Likewise.
11453 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11454 * cselib.c (cselib_process_insn): Likewise.
11455 * df-scan.c (df_get_entry_block_def_set): Likewise.
11456 * function.c (aggregate_value_p): Likewise.
11457 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
11458 * ira-lives.c (process_bb_node_lives): Likewise.
11459 * ira.c (do_reload): Likewise.
11460 * lra-lives.c (process_bb_lives): Likewise.
11461 * lra-remat.c (lra_remat): Likewise.
11462 * lra.c (lra): Likewise.
11463 * postreload.c (reload_combine_recognize_pattern): Likewise.
11464 (reload_cse_move2add): Likewise.
11465 * recog.c (peep2_find_free_register): Likewise.
11466 * regrename.c (check_new_reg_p): Likewise.
11467 * reload.c (find_equiv_reg): Likewise.
11468 * reload1.c (reload, find_reg): Likewise.
11469 * sel-sched.c (init_hard_regs_data): Likewise.
11471 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11473 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
11474 regs_invalidated_by_call & ~fixed_reg_set instead of
11475 call_used_or_fixed_regs & ~fixed_reg_set.
11476 * config/sh/sh.c (output_stack_adjust): Likewise.
11478 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11480 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
11481 (call_used_reg_set): Delete.
11482 (call_used_or_fixed_regs): New macro.
11483 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
11484 of call_used_reg_set.
11485 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
11486 instead of call_used_regs.
11487 (save_call_clobbered_regs): Likewise.
11488 * cfgcleanup.c (old_insns_match_p): Likewise.
11489 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
11490 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11492 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11493 * config/sh/sh.c (output_stack_adjust): Likewise.
11494 * final.c (collect_fn_hard_reg_usage): Likewise.
11495 * ira-build.c (ira_build): Likewise.
11496 * ira-color.c (calculate_saved_nregs): Likewise.
11497 (allocno_reload_assign, calculate_spill_cost): Likewise.
11498 * ira-conflicts.c (ira_build_conflicts): Likewise.
11499 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11500 * ira-lives.c (process_bb_node_lives): Likewise.
11501 * ira.c (setup_reg_renumber): Likewise.
11502 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
11503 * lra-constraints.c (need_for_call_save_p): Likewise.
11504 (need_for_split_p, inherit_in_ebb): Likewise.
11505 * lra-lives.c (process_bb_lives): Likewise.
11506 * lra-remat.c (call_used_input_regno_present_p): Likewise.
11507 * postreload.c (reload_combine): Likewise.
11508 * regrename.c (find_rename_reg): Likewise.
11509 * reload1.c (reload_as_needed): Likewise.
11510 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11511 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11512 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11514 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11516 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
11517 (no_caller_save_reg_set): Delete.
11518 * caller-save.c (init_caller_save): Don't initialize it.
11519 * ira-conflicts.c (ira_build_conflicts): Calculate
11520 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
11522 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11524 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
11525 (target_hard_regs::x_savable_regs): New field.
11526 (call_fixed_reg_set): Delete.
11527 (savable_regs): New macro,
11528 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
11529 (init_reg_sets_1): Likewise. Initialize savable_regs.
11530 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
11531 for all registers. Set savable_regs instead of call_fixed_reg_set.
11532 (setup_save_areas, save_call_clobbered_regs): Replace uses of
11533 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
11534 * config/sh/sh.c (output_stack_adjust): Likewise.
11536 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11538 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
11539 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
11540 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
11542 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11544 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
11545 * rtlanal.c (get_call_rtx_from): Likewise.
11546 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
11547 than the pattern to get_call_rtx_from.
11548 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
11549 an rtx_insn * instead of an rtx.
11550 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
11552 2019-09-10 Martin Liska <mliska@suse.cz>
11554 * common.opt: Use newly added WarnRemoved.
11555 * config/aarch64/aarch64.opt: Likewise.
11556 * config/arm/arm.opt: Likewise.
11557 * config/i386/i386.opt: Likewise.
11558 * config/ia64/ia64.opt: Likewise.
11559 * config/rs6000/rs6000.opt: Likewise.
11560 * doc/options.texi: Document WarnRemoved properly.
11561 * dwarf2out.c (gen_producer_string): Handle renamed
11562 OPT_SPECIAL_warn_removed.
11563 * lto-opts.c (lto_write_options): Likewise.
11564 * lto-wrapper.c (merge_and_complain): Likewise.
11565 * opts-common.c (decode_cmdline_option): Likewise.
11566 (prune_options): Likewise.
11567 (read_cmdline_option): Likewise.
11568 (control_warning_option): Likewise.
11569 * opts.c (print_filtered_help): Likewise.
11570 * optc-gen.awk: Parse for WarnRemoved and make usage
11571 of Deprecated an error.
11572 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
11574 2019-09-10 Arnaud Charlet <charlet@adacore.com>
11576 * doc/install.texi: Fix syntax for html generation.
11578 2019-09-10 Jakub Jelinek <jakub@redhat.com>
11580 PR middle-end/91680
11581 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
11582 the shift type to type.
11584 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11586 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
11588 (stack_protect_combined_test_insn): Likewise.
11590 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11591 Mickaël Guêné <mickael.guene@st.com>
11593 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
11594 * config/arm/arm.md (FDPIC_REGNUM): New constant.
11595 (load_tp_soft_fdpic): New pattern.
11596 (load_tp_soft): Disable in FDPIC mode.
11598 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11599 Mickaël Guêné <mickael.guene@st.com>
11601 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
11602 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
11603 (arm_call_tls_get_addr): Add FDPIC support.
11604 (legitimize_tls_address): Likewise.
11605 (arm_emit_tls_decoration): Likewise.
11607 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11608 Mickaël Guêné <mickael.guene@st.com>
11610 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
11612 (arm_trampoline_init): Likewise.
11613 (arm_trampoline_adjust_address): Likewise.
11614 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
11616 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11617 Mickaël Guêné <mickael.guene@st.com>
11619 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
11620 (legitimize_pic_address): Enforce binding rules on function
11621 pointers in FDPIC mode.
11622 (arm_assemble_integer): Likewise.
11624 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11625 Mickaël Guêné <mickael.guene@st.com>
11627 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
11628 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
11631 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11632 Mickaël Guêné <mickael.guene@st.com>
11634 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
11637 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11638 Mickaël Guêné <mickael.guene@st.com>
11640 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
11642 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
11644 * config/arm/arm.c (arm_option_override): Define pic register to
11646 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
11647 have no decl or go through PLT.
11648 (calculate_pic_address_constant): New function.
11649 (legitimize_pic_address): Call calculate_pic_address_constant.
11650 (arm_load_pic_register): Handle TARGET_FDPIC.
11651 (arm_is_segment_info_known): New function.
11652 (arm_pic_static_addr): Add support for FDPIC.
11653 (arm_load_function_descriptor): New function.
11654 (arm_emit_call_insn): Add support for FDPIC.
11655 (arm_assemble_integer): Add support for FDPIC.
11656 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
11657 Define. (FDPIC_REGNUM): New define.
11658 * config/arm/arm.md (call): Add support for FDPIC.
11659 (call_value): Likewise.
11660 (restore_pic_register_after_call): New pattern.
11661 (untyped_call): Disable if FDPIC.
11662 (untyped_return): Likewise.
11663 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
11665 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11666 Mickaël Guêné <mickael.guene@st.com>
11668 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
11669 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
11670 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
11671 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
11672 (CC1_SPEC): Use FDPIC_CC1_SPEC.
11673 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
11674 * config/arm/uclinuxfdpiceabi.h: New file.
11676 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11678 * config.gcc: Handle *-*-uclinuxfdpiceabi.
11680 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11681 Mickaël Guêné <mickael.guene@st.com>
11683 * config/arm/arm.opt: Add -mfdpic option.
11684 * doc/invoke.texi: Add documentation for -mfdpic.
11686 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11688 * expmed.c (extract_bit_field): Update function comment
11690 * expr.c (expand_expr_real): Update function comment
11692 (expand_misaligned_mem_ref): New helper function.
11693 (expand_expr_real_2): Use expand_misaligned_mem_ref.
11694 Remove duplicate assignment to "base" at case MEM_REF.
11695 Remove a shadowed variable "unsignedp" at case VCE.
11697 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11699 * regset.h (regs_invalidated_by_call_regset): Delete.
11700 (fixed_reg_set_regset): Likewise.
11701 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
11702 (fixed_reg_set_regset, persistent_obstack): Likewise.
11703 (init_reg_sets_1, globalize_reg): Update accordingly.
11704 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
11705 instead of a bitmap.
11706 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
11707 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
11708 instead of regs_invalidated_by_call_regset.
11709 (df_lr_confluence_n, df_md_confluence_n): Likewise.
11710 * df-scan.c (df_scan_start_dump): Likewise.
11711 * dse.c (copy_fixed_regs): Likewise.
11712 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
11714 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11716 * array-traits.h: New file.
11717 * coretypes.h (array_traits, bitmap_view): New types.
11718 * bitmap.h: Include "array-traits.h"
11719 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11720 (base_bitmap_view, bitmap_view): New classes.
11721 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11722 * hard-reg-set.h: Include array-traits.h.
11723 (array_traits<HARD_REG_SET>): New struct.
11724 * regset.h (IOR_REG_SET_HRS): New macro.
11725 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
11726 rather than iterating over each hard register.
11727 * sched-deps.c (sched_analyze_insn): Likewise.
11728 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
11730 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11732 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
11733 instead of a HARD_REG_SET *.
11734 * ira-build.c (ior_hard_reg_conflicts): Likewise.
11735 (ira_build): Update call accordingly.
11736 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11738 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11740 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
11741 (HARD_REG_SET::operator!=): Likewise.
11742 (hard_reg_set_equal_p): Delete.
11743 * cfgcleanup.c (old_insns_match_p): Use == instead of
11744 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
11745 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
11746 (add_allocno_hard_regs_to_forest): Likewise.
11747 (setup_allocno_available_regs_num): Likewise.
11748 * ira.c (setup_pressure_classes): Likewise.
11749 (setup_allocno_and_important_classes): Likewise.
11750 (setup_reg_class_relations): Likewise.
11751 * lra-lives.c (process_bb_lives): Likewise.
11752 * reg-stack.c (change_stack, convert_regs_1): Likewise.
11754 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11756 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
11757 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11758 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
11759 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
11761 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
11762 * ira.c (setup_reg_renumber): Likewise.
11763 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11764 * regrename.c (regrename_find_superclass): Likewise.
11765 * reload1.c (find_reg): Likewise.
11767 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11769 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
11770 * caller-save.c (setup_save_areas): Use "&~" instead of
11771 AND_COMPL_HARD_REG_SET.
11772 (save_call_clobbered_regs): Likewise.
11773 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11775 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11776 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11777 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
11778 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11779 (mips_conditional_register_usage): Likewise.
11780 * config/sh/sh.c (output_stack_adjust): Likewise.
11781 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
11782 (setup_profitable_hard_regs): Likewise.
11783 (get_conflict_and_start_profitable_regs): Likewise.
11784 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11785 (ira_build_conflicts): Likewise.
11786 * ira-costs.c (restrict_cost_classes): Likewise.
11787 (setup_regno_cost_classes_by_aclass): Likewise.
11788 * ira-lives.c (process_bb_node_lives): Likewise.
11789 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
11790 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
11791 (setup_allocno_and_important_classes, setup_class_translate_array)
11792 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
11794 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11795 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11796 (process_alt_operands, inherit_in_ebb): Likewise.
11797 * lra-eliminations.c (update_reg_eliminate): Likewise.
11798 * lra-lives.c (process_bb_lives): Likewise.
11799 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
11800 * resource.c (find_dead_or_set_registers): Likewise.
11801 (mark_target_live_regs): Likewise.
11802 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
11803 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11804 (implicit_clobber_conflict_p): Likewise.
11805 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11806 (try_shrink_wrapping): Likewise.
11808 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11810 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
11811 (HARD_REG_SET::operator|=): Likewise.
11812 (IOR_HARD_REG_SET): Delete.
11813 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11815 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11816 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11817 * final.c (collect_fn_hard_reg_usage): Likewise.
11818 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11819 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11820 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11821 (propagate_some_info_from_allocno): Likewise.
11822 (copy_info_to_removed_store_destinations): Likewise.
11823 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11824 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11825 (fast_allocation): Likewise.
11826 * ira-conflicts.c (ira_build_conflicts): Likewise.
11827 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11828 (process_bb_node_lives): Likewise.
11829 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11830 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11831 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11832 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11833 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11834 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11835 (process_bb_lives): Likewise.
11836 * lra-spills.c (assign_spill_hard_regs): Likewise.
11837 * postreload.c (reload_combine): Likewise.
11838 * reginfo.c (init_reg_sets_1): Likewise.
11839 * regrename.c (merge_overlapping_regs, find_rename_reg)
11840 (merge_chains): Likewise.
11841 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11842 (find_reload_regs, finish_spills, choose_reload_regs_init)
11843 (emit_reload_insns): Likewise.
11844 * reorg.c (redundant_insn): Likewise.
11845 * resource.c (find_dead_or_set_registers, mark_set_resources)
11846 (mark_target_live_regs): Likewise.
11847 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11848 * sched-deps.c (sched_analyze_insn): Likewise.
11849 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11850 (find_best_reg_for_expr): Likewise.
11851 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11853 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11855 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11856 (HARD_REG_SET::operator&): Likewise.
11857 (AND_HARD_REG_SET): Delete.
11858 * caller-save.c (setup_save_areas): Use "&" instead of
11860 (save_call_clobbered_regs): Likewise.
11861 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11862 * config/m32c/m32c.c (reduce_class): Likewise.
11863 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11864 * final.c (get_call_reg_set_usage): Likewise.
11865 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11866 (setup_left_conflict_sizes_p): Likewise.
11867 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11868 (ira_build_conflicts): Likewise.
11869 * ira-costs.c (restrict_cost_classes): Likewise.
11870 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11871 (setup_reg_class_relations): Likewise.
11872 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11873 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11874 * resource.c (find_dead_or_set_registers): Likewise.
11875 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11877 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11879 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11880 (COMPL_HARD_REG_SET): Delete.
11881 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11882 of COMPL_HARD_REG_SET.
11883 (try_rename_operands): Likewise.
11884 * config/sh/sh.c (push_regs): Likewise.
11885 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11886 * lra-constraints.c (contains_reg_p): Likewise.
11887 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11889 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11891 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11892 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11893 of COPY_HARD_REG_SET.
11894 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11895 (epiphany_conditional_register_usage): Likewise.
11896 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11897 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11898 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11899 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11900 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11901 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11902 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11903 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11904 * config/sh/sh.c (output_stack_adjust): Likewise.
11905 * final.c (collect_fn_hard_reg_usage): Likewise.
11906 (get_call_reg_set_usage): Likewise.
11907 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11908 (ira_flattening): Likewise.
11909 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11910 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11911 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11912 (ira_reassign_pseudos): Likewise.
11913 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11914 (ira_build_conflicts): Likewise.
11915 * ira-costs.c (restrict_cost_classes): Likewise.
11916 (setup_regno_cost_classes_by_aclass): Likewise.
11917 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11918 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11919 (setup_stack_reg_pressure_class, setup_pressure_classes)
11920 (setup_allocno_and_important_classes, setup_class_translate_array)
11921 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11922 (ira_setup_eliminable_regset): Likewise.
11923 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11924 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11925 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11926 (process_alt_operands, inherit_in_ebb): Likewise.
11927 * lra-lives.c (process_bb_lives): Likewise.
11928 * lra-spills.c (assign_spill_hard_regs): Likewise.
11929 * lra.c (lra): Likewise.
11930 * mode-switching.c (new_seginfo): Likewise.
11931 * postreload.c (reload_combine): Likewise.
11932 * reg-stack.c (straighten_stack): Likewise.
11933 * reginfo.c (save_register_info, restore_register_info): Likewise.
11934 (init_reg_sets_1, record_subregs_of_mode): Likewise
11935 * regrename.c (create_new_chain, rename_chains): Likewise.
11936 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11937 (find_reload_regs): Likewise.
11938 * resource.c (find_dead_or_set_registers): Likewise.
11939 (mark_target_live_regs): Likewise.
11940 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11942 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11944 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11945 (note_pattern_stores): Declare.
11946 (note_stores): Take an rtx_insn *.
11947 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11948 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11949 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11950 (note_stores): Take an rtx_insn * as argument and process
11951 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11952 (note_pattern_stores): ...this.
11953 (find_first_parameter_load): Pass the insn rather than
11954 its pattern to note_stores.
11955 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11956 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11957 (insert_one_insn): Likewise.
11958 * combine.c (combine_instructions): Likewise.
11959 (likely_spilled_retval_p): Likewise.
11960 (try_combine): Use note_pattern_stores instead of note_stores.
11961 (record_dead_and_set_regs): Pass the insn rather than its pattern
11963 (reg_dead_at_p): Likewise.
11964 * config/bfin/bfin.c (workaround_speculation): Likewise.
11965 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11966 rather than an rtx.
11967 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11968 instead of note_stores.
11969 (frv_optimize_membar_local): Pass the insn rather than its pattern
11971 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11972 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11973 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11974 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11975 (mips_reorg_process_insns): Likewise.
11976 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11977 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11979 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11980 its pattern to note_stores.
11981 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11983 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11984 the insn to note_stores.
11985 (prescan_insns_for_dce): Update call accordingly.
11986 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11988 * df-problems.c (can_move_insns_across): Likewise.
11989 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11990 * function.c (assign_parm_setup_reg): Likewise.
11991 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11992 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11993 (single_set_gcse): Likewise.
11994 * ira.c (validate_equiv_mem): Likewise.
11995 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11997 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11998 pattern to note_stores.
11999 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
12000 * loop-iv.c (simplify_using_initial_values): Likewise.
12001 * mode-switching.c (optimize_mode_switching): Likewise.
12002 * optabs.c (emit_libcall_block_1): Likewise.
12003 (expand_atomic_compare_and_swap): Likewise.
12004 * postreload-gcse.c (load_killed_in_block_p): Likewise.
12005 (record_opr_changes): Likewise. Remove explicit handling of
12006 CALL_INSN_FUNCTION_USAGE.
12007 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
12008 * regcprop.c (kill_clobbered_values): Likewise.
12009 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
12011 * regrename.c (build_def_use): Likewise.
12012 * reload1.c (reload): Use note_pattern_stores instead of note_stores
12013 for mark_not_eliminable.
12014 (reload_as_needed): Pass the insn rather than its pattern
12016 (emit_output_reload_insns): Likewise.
12017 * resource.c (mark_target_live_regs): Likewise.
12018 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
12019 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
12020 instead of note_stores.
12021 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
12022 its pattern to note_stores.
12023 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
12024 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
12026 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12028 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
12029 than a #define. Use a structure rather than an array as the
12030 fallback definition. Remove special cases for low array sizes.
12031 (const_hard_reg_set): New typedef.
12032 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
12033 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
12034 (hard_reg_set_empty_p): Likewise.
12035 (SET_HARD_REG_BIT): Use a function rather than a macro to
12036 handle the case in which HARD_REG_SET is a structure.
12037 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
12038 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
12039 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
12040 (IOR_COMPL_HARD_REG_SET): Likewise.
12041 (hard_reg_set_iterator::pset): Constify the pointer target.
12042 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
12043 of a "const HARD_REG_SET". Update the handling of non-integer
12045 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
12046 * reload.h: Likewise.
12047 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
12048 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
12049 of a "const HARD_REG_SET".
12050 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
12051 (range_in_hard_reg_set_p): Likewise.
12052 * ira-costs.c (restrict_cost_classes): Likewise.
12053 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
12054 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
12055 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
12056 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
12057 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
12058 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
12059 take an unsigned int and open-code the HARD_REG_SET operations.
12061 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
12063 * Makefile.in (OBJS): Remove bt-load.o.
12064 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
12065 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12066 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
12067 document that the option no longer does anything.
12068 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
12069 * target.def (branch_target_register_class): Delete.
12070 (branch_target_register_callee_saved): Likewise.
12071 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
12072 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
12073 * doc/tm.texi: Regenerate.
12074 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
12075 (make_pass_branch_target_load_optimize2): Likewise.
12076 * passes.def (pass_branch_target_load_optimize1): Likewise.
12077 (pass_branch_target_load_optimize2): Likewise.
12078 * targhooks.h (default_branch_target_register_class): Likewise.
12079 * targhooks.c (default_branch_target_register_class): Likewise.
12080 * opt-suggestions.c (test_completion_valid_options): Remove
12081 -fbtr-bb-exclusive from the list of test options.
12082 * bt-load.c: Remove.
12084 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
12086 * match.pd: Add flag_unsafe_math_optimizations check
12087 before deciding on the widest type in a binary math operation.
12089 2019-09-09 Martin Liska <mliska@suse.cz>
12091 * config/i386/i386.opt: Update comment of removed
12092 options that are preserved only for backward
12095 2019-09-09 Jakub Jelinek <jakub@redhat.com>
12098 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
12099 instead of __v16qs.
12102 * config/i386/avxintrin.h (__v32qs): New typedef.
12103 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
12104 instead of __v32qi.
12106 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12108 * doc/invoke.texi (Option Summary): Cover eBPF.
12109 (eBPF Options): New section.
12110 * doc/extend.texi (BPF Built-in Functions): Likewise.
12111 (BPF Kernel Helpers): Likewise.
12113 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12115 * config.gcc: Support for bpf-*-* targets.
12116 * common/config/bpf/bpf-common.c: New file.
12117 * config/bpf/t-bpf: Likewise.
12118 * config/bpf/predicates.md: Likewise.
12119 * config/bpf/constraints.md: Likewise.
12120 * config/bpf/bpf.opt: Likewise.
12121 * config/bpf/bpf.md: Likewise.
12122 * config/bpf/bpf.h: Likewise.
12123 * config/bpf/bpf.c: Likewise.
12124 * config/bpf/bpf-protos.h: Likewise.
12125 * config/bpf/bpf-opts.h: Likewise.
12126 * config/bpf/bpf-helpers.h: Likewise.
12127 * config/bpf/bpf-helpers.def: Likewise.
12129 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12131 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12134 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
12136 * opt-functions.awk (integer_range_info): Make sure values are in
12137 numeric context before operating with them.
12139 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
12141 * genemit.c (gen_split): Print the filename and line number where the
12142 splitter (or peephole2) was defined, to the dump file.
12144 2019-09-07 Jakub Jelinek <jakub@redhat.com>
12146 PR tree-optimization/91665
12147 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
12148 incompatible with the type of PHI result.
12150 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
12153 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
12154 gen_unaligned_storedi for 4-byte aligned addresses.
12156 2019-09-06 Jim Wilson <jimw@sifive.com>
12158 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
12161 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12163 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
12165 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
12167 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
12168 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
12170 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
12173 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
12174 cost of SSE->integer and integer->SSE moves from 2 to 6.
12175 (core_cost): Ditto.
12177 2019-09-06 Jakub Jelinek <jakub@redhat.com>
12179 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
12180 before testing TYPE_TRANSPARENT_AGGR.
12181 * calls.c (initialize_argument_information, load_register_parameters):
12184 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
12186 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
12188 (cmp_ior): Likewise.
12190 2019-09-06 Martin Liska <mliska@suse.cz>
12192 * doc/match-and-simplify.texi: Separate tuples with ;.
12194 2019-09-06 Martin Liska <mliska@suse.cz>
12197 * Makefile.in: Remove tlink.o.
12198 * collect2.c (do_link): New function isolated
12201 * collect2.h (do_tlink): Remove declaration of do_tlink.
12202 * doc/extend.texi: Remove documentation of -frepo.
12203 * doc/invoke.texi: Likewise.
12204 * doc/sourcebuild.texi: Remove cleanup-repo-files.
12207 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12208 Jim Wilson <jimw@sifive.com>
12211 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
12212 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
12213 paradoxical_subreg_p (operands[0]).
12214 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
12215 use as intermediate value.
12217 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
12219 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
12220 (sync_compare_and_swap<mode>_insn): Likewise.
12222 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
12224 PR middle-end/91615
12225 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
12226 without movmisalign optab.
12228 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12230 PR middle-end/91001
12231 PR middle-end/91105
12232 PR middle-end/91106
12233 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12234 types, use type of their first field instead of type of
12235 args[i].tree_value.
12237 2019-09-05 Richard Biener <rguenther@suse.de>
12239 PR rtl-optimization/91656
12240 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12243 2019-09-05 Richard Biener <rguenther@suse.de>
12245 PR middle-end/90501
12246 * tree-inline.c (declare_return_variable): Mark the return
12247 slot as addressable after building an address of it.
12249 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12251 * doc/install.texi: Update and clarify requirements to build GNAT.
12253 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12255 PR middle-end/91577
12256 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12257 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12258 call to be in memory.
12259 (pass_expand::execute): Call discover_nonconstant_array_refs before
12260 setting currently_expanding_to_rtl.
12262 2019-09-04 Caroline Tice <cmtice@google.com>
12264 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12265 specified together.
12267 2019-09-04 Marek Polacek <polacek@redhat.com>
12269 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12271 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12274 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12275 for QI and HImode moves between SSE and general registers.
12277 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12280 * doc/invoke.texi: Document -Wenum-conversion.
12282 2019-09-04 Richard Biener <rguenther@suse.de>
12284 PR rtl-optimization/36262
12285 * postreload-gcse.c: Include intl.h and gcse.h.
12286 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12287 to avoid linear list walk.
12288 (record_last_mem_set_info): Gate off if not computing transparentness.
12289 (get_bb_avail_insn): If transparentness isn't computed give up
12291 (gcse_after_reload_main): Skip compute_transp and extended PRE
12292 if gcse_or_cprop_is_too_expensive says so.
12294 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12296 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12298 (msp430_select_section): Handle decls with the "noinit" attribute with
12299 default_elf_select_section.
12300 Handle SECCAT_RODATA_MERGE_* section types with
12301 default_elf_select_section.
12302 Add comments about handling of unsupported section types.
12303 (msp430_section_type_flags): Remove handling of the noinit section.
12305 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12307 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12308 conflicting msp430-specific attributes.
12309 (msp430_section_attr): Likewise.
12310 Add warnings about conflicts with generic "noinit" and "section"
12312 Fix grammar in -mlarge error message.
12313 (msp430_data_attr): Rename to msp430_persist_attr.
12314 Add warnings about conflicts with generic "noinit" and "section"
12316 Add warning for when variable is not initialized.
12317 Chain conditionals which prevent the attribute being added.
12318 (ATTR_EXCL): New helper.
12319 (attr_reent_exclusions): New exclusion table.
12320 (attr_naked_exclusions): Likewise.
12321 (attr_crit_exclusions): Likewise.
12322 (attr_lower_exclusions): Likewise.
12323 (attr_upper_exclusions): Likewise.
12324 (attr_either_exclusions): Likewise.
12325 (attr_persist_exclusions): Likewise.
12326 (msp430_attribute_table): Update with exclusion rules.
12327 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12330 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12332 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12333 (msp430_handle_generic_attribute): New function.
12334 * doc/tm.texi: Regenerate.
12335 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12336 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12337 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12338 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12340 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12342 PR tree-optimization/91504
12343 * match.pd: Add ((~a & b) ^a) --> (a | b).
12345 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12348 * config/i386/i386-expand.c (split_double_mode): If there is more than
12349 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12350 already split matching MEM operand instead of calling adjust_address
12353 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
12355 * config.gcc: Obsolete spu target. Remove references to spu.
12356 * configure.ac: Remove references to spu.
12357 * configure: Regenerate.
12358 * config/spu/: Remove directory.
12359 * common/config/spu/: Remove directory.
12361 * doc/extend.texi: Remove references to spu.
12362 * doc/invoke.texi: Likewise.
12363 * doc/md.texi: Likewise.
12364 * doc/sourcebuild.texi: Likewise.
12366 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12368 PR middle-end/91603
12369 PR middle-end/91612
12370 PR middle-end/91613
12371 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
12372 and SSA_NAME referring to CONSTANT_P correctly.
12374 2019-09-03 Richard Biener <rguenther@suse.de>
12376 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
12377 (vn_nary_op_insert): Likewise.
12378 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
12379 (vn_nary_op_lookup): Likewise.
12380 (vn_nary_op_insert): Likewise.
12382 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
12384 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
12385 (*op0, 1) instead of XEXP (*op1, 0).
12387 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12389 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
12390 (aarch64_fjcvtzs): New define_insn.
12391 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
12392 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
12394 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
12395 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
12396 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12397 __ARM_FEATURE_JCVT where appropriate.
12398 * config/aarch64/arm_acle.h (__jcvt): Define.
12400 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12402 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
12403 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
12404 (aarch64_<frintnzs_op><mode>): New define_insn.
12405 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
12406 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12407 __ARM_FEATURE_FRINT when appropriate.
12408 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
12409 frint32x, frint64z, frint64x.
12410 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
12411 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
12412 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
12413 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
12414 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
12415 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
12416 * config/aarch64/iterators.md (VSFDF): Define.
12417 (FRINTNZX): Likewise.
12418 (frintnzs_op): Likewise.
12420 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
12422 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
12423 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
12425 * config/aarch64/aarch64-tune.md: Regenerated.
12426 * doc/invoke.texi: Document the new processors.
12428 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12430 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
12434 (sve2-sm4): Likewise.
12435 (sveaes): Likewise.
12436 (svesha3): Likewise.
12437 (svebitperm): Likewise.
12439 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12440 Richard Biener <rguenther@suse.de>
12442 PR tree-optimization/91597
12443 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
12444 BIT_AND_EXPR optimization for pointers, even if both operand
12445 ranges don't include NULL, the result can be NULL.
12447 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12449 PR middle-end/91605
12450 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
12451 (non_mem_decl_p): ...this.
12452 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
12453 (expand_assignment): Call mem_ref_referes_to_non_mem_p
12454 unconditionally as before.
12456 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12459 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
12460 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
12461 * tree.def (LTGT_EXPR): Likewise.
12462 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
12464 2019-09-02 Jakub Jelinek <jakub@redhat.com>
12467 * fold-const.c (range_check_type): For enumeral and boolean
12468 type, pass 1 to type_for_size langhook instead of
12469 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
12470 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
12471 (build_range_check): Don't call unsigned_type_for for pointer types.
12472 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
12473 range_check_type result.
12475 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12477 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
12478 (replace_ref): Do not replace a chain of only two candidates which are
12479 valid memory references.
12481 2019-09-02 Martin Liska <mliska@suse.cz>
12483 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
12484 Bail out when we'll end up with the same number of clusters as
12486 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
12487 (jump_table_cluster::can_be_handled): Remove the guard
12488 as it's already handled in ::is_enabled. Allocate output
12489 after early bail out.
12491 2019-09-02 Martin Liska <mliska@suse.cz>
12493 PR gcov-profile/91601
12494 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
12495 (path_contains_zero_or_negative_cycle_arc): ... this and handle
12496 also negative edges.
12497 (circuit): Handle also negative edges as they can happen
12498 in some situations.
12500 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
12503 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
12504 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
12505 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
12507 2019-09-01 Jakub Jelinek <jakub@redhat.com>
12509 PR middle-end/91623
12510 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
12511 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
12512 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
12516 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
12517 GIMPLE_ASM TREE_LIST operands.
12519 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
12521 * doc/generic.texi (Unary and Binary Expressions): Mark up
12522 an instance of TYPE_MIN.
12524 2019-08-31 Stafford Horne <shorne@gmail.com>
12526 * config/or1k/constraints.md (t): New constraint.
12527 * config/or1k/or1k.h (GOT_REGS): New register class.
12528 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
12530 2019-08-30 Jim Wilson <jimw@sifive.com>
12532 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
12533 and -fpic and -mplt then disable -msave-restore and warn.
12535 2019-08-30 Martin Sebor <msebor@redhat.com>
12537 PR middle-end/91599
12538 * tree-ssa-strlen.c (handle_store): Use a fallback location if
12539 the statement doesn't have one.
12540 * gimple-pretty-print.c (percent_G_format): Same.
12542 PR middle-end/91584
12543 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
12544 before using them to validate MEM_REF offset.
12546 2019-08-30 Marek Polacek <polacek@redhat.com>
12548 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
12550 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12552 * config/arm/arm.md (unaligned_loaddi,
12553 unaligned_storedi): New unspec insn patterns.
12554 * config/arm/neon.md (unaligned_storev8qi): Likewise.
12555 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
12556 and unaligned_storedi for 4-byte aligned memory.
12557 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
12558 4-byte aligned memory.
12560 2019-08-30 Martin Jambor <mjambor@suse.cz>
12562 tree-optimization/91579
12563 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
12564 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
12566 (arg_needs_copy_p): Removed.
12567 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
12569 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
12571 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12573 * config/i386/i386-features.c
12574 (general_scalar_chain::compute_convert_gain):
12575 Correct cost for double-word shifts.
12576 (general_scalar_to_vector_candidate_p): Reject count operands
12577 greater or equal to mode bitsize.
12579 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12581 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12582 for moves between SSE and non-general registers and between
12583 mask and non-general registers.
12584 (ix86_register_move_cost): Remove stalled comment.
12586 2019-08-29 Richard Biener <rguenther@suse.de>
12588 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12589 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
12591 2019-08-29 Richard Biener <rguenther@suse.de>
12594 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12595 Do not emit scalar copies for debug-insns, instead replace
12596 their uses with the reg copy used in the chain or reset them
12597 if there is a reaching definition outside of the chain as well.
12599 2019-08-29 Jakub Jelinek <jakub@redhat.com>
12602 * config/i386/i386-expand.c (expand_vec_perm_movs,
12603 expand_vec_perm_blend, expand_vec_perm_vpermil,
12604 expand_vec_perm_pshufb, expand_vec_perm_1,
12605 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
12606 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
12607 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
12608 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
12609 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
12610 comments - replace ix86_expand_vec_perm_builtin_1 with
12611 ix86_expand_vec_perm_const_1.
12612 (expand_vec_perm2_vperm2f128_vblend): New function.
12613 (ix86_expand_vec_perm_const_1): New forward declaration. Call
12614 expand_vec_perm2_vperm2f128_vblend as last resort.
12615 (canonicalize_perm): Formatting fix.
12617 PR tree-optimization/91351
12618 * tree-cfg.c (generate_range_test): Use range_check_type instead of
12620 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
12621 range_check_type returns NULL.
12622 * tree-switch-conversion.c (switch_conversion::build_one_array):
12623 Use range_check_type instead of unsigned_type_for, don't perform
12624 linear opt if it returns NULL.
12625 (bit_test_cluster::find_bit_tests): Formatting fix.
12626 (bit_test_cluster::emit): Use range_check_type instead of
12628 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
12631 2019-08-29 Richard Biener <rguenther@suse.de>
12633 PR tree-optimization/91568
12634 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
12635 (vect_update_max_nunits): Add overload for poly_uint64.
12636 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
12637 (vect_build_slp_tree): Record max_nunits into the subtree
12638 and merge it upwards.
12639 (vect_print_slp_tree): Print max_nunits.
12641 2019-08-28 Marek Polacek <polacek@redhat.com>
12643 Implement P1152R4: Deprecating some uses of volatile.
12645 * doc/invoke.texi: Document -Wvolatile.
12647 2019-08-28 Marek Polacek <polacek@redhat.com>
12649 PR c++/91360 - Implement C++20 P1143R2: constinit.
12650 * doc/invoke.texi: Document -Wc++20-compat.
12652 2019-08-28 Martin Sebor <msebor@redhat.com>
12654 PR tree-optimization/91457
12655 * builtins.c (component_size): New function.
12656 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
12657 * builtins.h (compute_objsize): Add argument.
12658 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
12659 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
12660 (vrp_prop::check_mem_ref): Same.
12661 (vrp_prop::search_for_addr_array): Set no-warning bit.
12662 (check_array_bounds): Same.
12664 2019-08-28 Martin Sebor <msebor@redhat.com>
12667 * opts-common.c (option_enabled): Correct checking for language
12670 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
12672 * config/i386/i386.c (ix86_register_move_cost): Do not
12673 limit the cost of moves to/from XMM register to minimum 8.
12675 2019-08-28 Martin Jambor <mjambor@suse.cz>
12678 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
12679 checking assert a normal assert to test it really is redundant.
12680 * ipa-prop.c (compute_complex_assign_jump_func): Removed
12682 (update_jump_functions_after_inlining): Removed combining unary
12683 arithmetic operations with an ancestor jump function.
12684 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
12687 2019-08-28 Richard Biener <rguenther@suse.de>
12689 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
12690 add the MD problem.
12692 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12693 Richard Biener <rguenther@suse.de>
12695 * expr.c (expand_assignment): Handle misaligned DECLs.
12696 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
12697 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
12699 (assign_parm_setup_stack): Allocate properly aligned stack slots.
12700 * varasm.c (build_constant_desc): Align constants of misaligned types.
12701 * config/arm/predicates.md (aligned_operand): New predicate.
12702 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
12703 aligned_operand to check restrictions on memory addresses.
12704 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
12705 * config/arm/vec-common.md (mov<VALL>): Likewise.
12707 2019-08-28 Jakub Jelinek <jakub@redhat.com>
12710 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
12711 V_128 iterator instead of VI_128.
12713 2019-08-28 Martin Liska <mliska@suse.cz>
12715 PR tree-optimization/90970
12716 * builtins.c (check_access): Remove assignment to maxread
12717 as it hasn't been used since when it was introduced in r255755.
12719 2019-08-27 Martin Sebor <msebor@redhat.com>
12721 PR tree-optimization/91567
12722 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
12723 of unknown strings.
12724 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
12725 to PTRDIFF_MAX - 2.
12727 2019-08-27 Jeff Law <law@redhat.com>
12729 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
12730 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
12732 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
12735 * config/i386/i386-features.c (convert_scalars_to_vector):
12736 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
12737 crtl->stack_realign_processed. Update crtl->drap_reg by calling
12738 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
12739 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
12741 2019-08-27 Richard Biener <rguenther@suse.de>
12743 * config/i386/i386-features.h
12744 (general_scalar_chain::~general_scalar_chain): Add.
12745 (general_scalar_chain::insns_conv): New bitmap.
12746 (general_scalar_chain::n_sse_to_integer): New.
12747 (general_scalar_chain::n_integer_to_sse): Likewise.
12748 (general_scalar_chain::make_vector_copies): Adjust signature.
12749 * config/i386/i386-features.c
12750 (general_scalar_chain::general_scalar_chain): Outline,
12751 initialize new members.
12752 (general_scalar_chain::~general_scalar_chain): New.
12753 (general_scalar_chain::mark_dual_mode_def): Record insns
12754 we need to insert conversions at and count them.
12755 (general_scalar_chain::compute_convert_gain): Account
12756 for conversion instructions at chain boundary.
12757 (general_scalar_chain::make_vector_copies): Generate a single
12758 copy for a def by a specific insn.
12759 (general_scalar_chain::convert_registers): First populate
12760 defs_map, then make copies at out-of chain insns.
12762 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
12764 * config/arm/arm.md (stack_protect_set_insn): Add security-related
12766 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
12768 2019-08-27 Martin Liska <mliska@suse.cz>
12770 * cgraph.c (cgraph_node::remove): Remove dead assignment before
12772 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
12773 Enclose in anonymous namespace.
12774 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
12775 hard_register initialization in braces.
12776 * tree-vrp.h (value_range_base::supports_type_p): Return false
12777 for function with boolean return type.
12779 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
12781 * config/i386/i386.c (emit_i387_cw_initialization)
12782 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
12784 2019-08-26 Martin Sebor <msebor@redhat.com>
12787 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
12788 (sprintf_dom_walker): Remove class.
12789 (get_int_range): Make argument const.
12790 (directive::fmtfunc, directive::set_precision): Same.
12791 (format_none): Same.
12792 (build_intmax_type_nodes): Same.
12793 (adjust_range_for_overflow): Same.
12794 (format_floating): Same.
12795 (format_character): Same.
12796 (format_string): Same.
12797 (format_plain): Same.
12798 (get_int_range): Cast away constness.
12799 (format_integer): Same.
12800 (get_string_length): Call get_range_strlen_dynamic. Handle
12801 null lendata.maxbound.
12802 (should_warn_p): Adjust argument scope qualifier.
12803 (maybe_warn): Same.
12804 (format_directive): Same.
12805 (parse_directive): Same.
12806 (is_call_safe): Same.
12807 (try_substitute_return_value): Same.
12808 (sprintf_dom_walker::handle_printf_call): Rename...
12809 (handle_printf_call): ...to this. Initialize target to host charmap
12810 here instead of in pass_sprintf_length::execute.
12811 (struct call_info): Make global.
12812 (sprintf_dom_walker::compute_format_length): Make global.
12813 (sprintf_dom_walker::handle_gimple_call): Same.
12814 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12815 * print-rtl.c (print_pattern): Reduce the number of spaces to
12816 avoid -Wformat-truncation.
12817 * tree-pass.h (make_pass_warn_printf): New function.
12818 * tree-ssa-strlen.c (strlen_optimize): New variable.
12819 (get_string_length): Add comments.
12820 (get_range_strlen_dynamic): New function.
12821 (check_and_optimize_call): New function.
12822 (handle_integral_assign): New function.
12823 (strlen_check_and_optimize_stmt): Factor code out into
12824 strlen_check_and_optimize_call and handle_integral_assign.
12825 (strlen_dom_walker::evrp): New member.
12826 (strlen_dom_walker::before_dom_children): Use evrp member.
12827 (strlen_dom_walker::after_dom_children): Use evrp member.
12828 (printf_strlen_execute): New function.
12829 (pass_strlen::gate): Update to handle printf calls.
12830 (dump_strlen_info): New function.
12831 (pass_data_warn_printf): New variable.
12832 (pass_warn_printf): New class.
12833 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12834 (handle_printf_call): Same.
12835 * tree-vrp.c (value_range_base::type): Adjust assertion.
12836 * vr-values.c (vr_values::update_value_range): Use type of the first
12837 argument rather than the second.
12839 2019-08-26 Richard Biener <rguenther@suse.de>
12841 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12843 (convert_scalars_to_vector): Do not call it.
12845 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12846 Uros Bizjak <ubizjak@gmail.com>
12848 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12849 CASE_MATHFN_FLOATN for roundeven.
12850 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12852 (ix86_mode_needed): Likewise.
12853 (ix86_mode_after): Likewise.
12854 (ix86_mode_entry): Likewise.
12855 (ix86_mode_exit): Likewise.
12856 (ix86_emit_mode_set): Likewise.
12857 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12858 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12859 (ix86_entity): Add I387_ROUNDEVEN.
12860 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12861 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12862 (define_int_iterator): Likewise.
12863 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12864 (define_constant): Define ROUND_ROUNDEVEN mode.
12865 (define_attr): Add roundeven mode for i387_cw.
12866 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12867 * internal-fn.def (ROUNDEVEN): New builtin function.
12868 * optabs.def (roundeven_optab): New optab.
12870 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12872 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12874 * builtins.def: Added function definitions for roundeven function
12876 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12877 function call. Adjust condition for floor, ceil, trunc and round.
12878 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12879 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12880 (integer_valued_real_call_p): Added case for roundeven function.
12881 * real.c (is_even): New function. Returns true if real number is even,
12882 otherwise returns false.
12883 (is_halfway_below): New function. Returns true if real number is
12884 halfway between two integers, else return false.
12885 (real_roundeven): New function. Round real number to nearest integer,
12886 rounding halfway cases towards even.
12887 * real.h (real_value): Added descriptive comments. Added function
12888 declaration for roundeven function.
12889 * doc/extend.texi (Other Builtins): List roundeven variants among
12890 functions which can be handled as builtins.
12892 2019-08-26 Richard Biener <rguenther@suse.de>
12896 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12898 (general_scalar_chain::replace_with_subreg): Remove.
12899 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12900 (general_scalar_chain::convert_reg): Adjust signature.
12901 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12902 iterate over all defs of a reg.
12903 (general_scalar_chain::replace_with_subreg): Remove.
12904 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12905 (general_scalar_chain::make_vector_copies): Populate defs_map,
12906 place copy only after defs that are used as vectors in the chain.
12907 (general_scalar_chain::convert_reg): Emit a copy for a specific
12908 def in a specific instruction.
12909 (general_scalar_chain::convert_op): All reg uses are converted here.
12910 (general_scalar_chain::convert_insn): Emit copies for scalar
12911 uses of defs here. Replace uses with the copies we created.
12912 Replace and convert the def. Adjust REG_DEAD notes, remove
12913 REG_EQUIV/EQUAL notes.
12914 (general_scalar_chain::convert_registers): Only handle copies
12915 into the chain here.
12917 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12919 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12921 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12923 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12924 Add nop_convert case.
12925 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12926 Fold all statements if requested.
12927 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12928 Allow to fold all statements.
12929 * tree-vrp.c (class vrp_folder):
12930 Let substitute_and_fold_engine fold all statements.
12932 2019-08-26 Richard Biener <rguenther@suse.de>
12934 PR tree-optimization/91526
12935 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12936 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12937 TODO_update_address_taken.
12939 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12941 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12944 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12946 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12947 machine mode for unspec_volatile operand.
12949 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12951 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12952 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12953 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12954 (prefer_neon_for_64bits): Remove.
12955 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12956 (tune_params): Remove PREF_NEON_64_FALSE uses.
12957 (arm_option_override): Remove prefer_neon selection code.
12958 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12959 * config/arm/arm-protos.h (tune_params): Remove
12960 prefer_neon_for_64bits.
12961 (prefer_neon_for_64bits): Remove.
12963 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12966 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12967 and issue any diagnostics needed before collecting the pre-PCH
12970 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12972 PR middle-end/91283
12973 * common.opt (fexcess-precision=): Add Optimization flag. Use
12974 flag_excess_precision variable instead of
12975 flag_excess_precision_cmdline.
12976 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12978 (flag_excess_precision): Don't define.
12979 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12980 flag_excess_precision_cmdline. Remove comment.
12981 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12982 and x_flag_excess_precision instead of
12983 frontend_set_flag_excess_precision_cmdline and
12984 x_flag_excess_precision_cmdline.
12985 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12986 x_flag_excess_precision_cmdline.
12987 * toplev.c (init_excess_precision): Remove.
12988 (lang_dependent_init_target): Don't call it.
12990 2019-08-23 Martin Liska <mliska@suse.cz>
12992 * lto-wrapper.c (run_gcc): When setting jobserver
12993 set also parallel to 1. This was done so before r273908.
12995 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12997 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12998 (cortex-a76ae): Likewise.
12999 (cortex-a77): Likewise
13000 * config/arm/arm-tables.opt: Regenerate.
13001 * config/arm/arm-tune.md: Likewise.
13002 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
13003 cortex-a77 CPU options.
13005 2019-08-23 Martin Liska <mliska@suse.cz>
13007 * profile.c (instrument_values): Do not set
13008 0 as last argument.
13009 * tree-profile.c (gimple_gen_interval_profiler): Remove
13011 (gimple_gen_pow2_profiler): Likewise.
13012 (gimple_gen_topn_values_profiler): Likewise.
13013 (gimple_gen_ic_profiler): Likewise.
13014 (gimple_gen_time_profiler): Likewise.
13015 (gimple_gen_average_profiler): Likewise.
13016 (gimple_gen_ior_profiler): Likewise.
13017 * value-prof.c (dump_histogram_value): Use default
13018 in switch statement instead of HIST_TYPE_MAX.
13019 (stream_in_histogram_value): Likewise.
13020 (gimple_duplicate_stmt_histograms): Do not
13021 use NULL for implicitly set arguments.
13022 (gimple_divmod_values_to_profile): Do not use
13023 reserve+quick_push.
13024 (gimple_indirect_call_to_profile): Likewise.
13025 (gimple_find_values_to_profile): Use implicit
13026 function call arguments.
13027 * value-prof.h (gimple_alloc_histogram_value):
13028 Set default values.
13029 (gimple_gen_interval_profiler): Remove last argument.
13030 (gimple_gen_pow2_profiler): Likewise.
13031 (gimple_gen_topn_values_profiler): Likewise.
13032 (gimple_gen_ic_profiler): Likewise.
13033 (gimple_gen_time_profiler): Likewise.
13034 (gimple_gen_average_profiler): Likewise.
13035 (gimple_gen_ior_profiler): Likewise.
13037 2019-08-22 Martin Sebor <msebor@redhat.com>
13039 PR middle-end/91490
13040 * builtins.c (c_strlen): Rename argument and introduce new local.
13041 Set no-warning bit on original argument.
13042 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
13043 Fold empty and zero constructors into empty strings.
13044 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
13045 for missing initializers.
13046 * tree.c (build_string_literal): Handle optional argument.
13047 * tree.h (build_string_literal): Add defaulted argument.
13048 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
13049 no-warning bit on original expression.
13051 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13054 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13055 and UNSPEC_DARN_RAW.
13056 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
13058 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
13059 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
13060 (darn): Use an unspec_volatile, and UNSPECV_DARN.
13062 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
13064 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
13065 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
13066 * config/rs6000/rs6000.md (unspec): ... here.
13067 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
13068 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13069 cmpeqb, *cmpeqb_internal): Delete, move to...
13070 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
13071 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
13072 cmpeqb, *cmpeqb_internal): ... here.
13074 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13076 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
13077 intrinsics if __ARM_FP.
13078 Use __ARM_FEATURE_CRC32 ifdef guard.
13080 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13082 * config/arm/arm.md (neon_for_64bits): Remove.
13083 (avoid_neon_for_64bits): Remove.
13084 (arm_adddi3): Always split early.
13085 (arm_subdi3): Always split early.
13086 (negdi2): Remove Neon expansion.
13087 (split zero_extend): Split before reload.
13088 (split sign_extend): Split before reload.
13090 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13092 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
13093 (qhs_extenddi_cstr): Likewise.
13094 * config/arm/arm.md (ashldi3): Always expand early.
13095 (ashlsi3): Likewise.
13096 (ashrsi3): Likewise.
13097 (zero_extend<mode>di2): Remove Neon variants.
13098 (extend<mode>di2): Likewise.
13099 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
13100 (signed_shift_di3_neon): Likewise.
13101 (unsigned_shift_di3_neon): Likewise.
13102 (ashrdi3_neon_imm_noclobber): Likewise.
13103 (lshrdi3_neon_imm_noclobber): Likewise.
13104 (<shift>di3_neon): Likewise.
13105 (split extend): Remove DI extend split patterns.
13107 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
13109 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
13110 (split not): Add DImode not splitter.
13111 (anddi3): Remove pattern.
13112 (anddi3_insn): Likewise.
13113 (anddi_zesidi_di): Likewise.
13114 (anddi_sesdi_di): Likewise.
13115 (anddi_notdi_di): Likewise.
13116 (anddi_notzesidi_di): Likewise.
13117 (anddi_notsesidi_di): Likewise.
13118 (iordi3): Likewise.
13119 (iordi3_insn): Likewise.
13120 (iordi_zesidi_di): Likewise.
13121 (iordi_sesidi_di): Likewise.
13122 (xordi3): Likewise.
13123 (xordi3_insn): Likewise.
13124 (xordi_sesidi_di): Likewise.
13125 (xordi_zesidi_di): Likewise.
13126 (one_cmpldi2): Likewise.
13127 (one_cmpldi2_insn): Likewise.
13128 * config/arm/constraints.md: Remove De, Df, Dg constraints.
13129 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
13131 (iwmmxt_xordi3): Likewise.
13132 (iwmmxt_anddi3): Likewise.
13133 * config/arm/neon.md (orndi3_neon): Remove pattern.
13134 (anddi_notdi_di): Likewise.
13135 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
13136 (arm_iordi_operand_neon): Likewise.
13137 (arm_xordi_operand_neon): Likewise.
13138 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
13139 (iordi_notzesidi_di): Likewise.
13140 (iordi_notdi_zesidi): Likewise.
13141 (iordi_notsesidi_di): Likewise.
13143 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
13145 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
13147 (iorsi3_compare0_scratch): Likewise.
13149 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
13151 * config/aarch64/aarch64-simd-builtins.def:
13154 * config/aarch64/aarch64-simd.md:
13155 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
13156 (aarch64_st1x4<VALLDIF:mode>): Likewise.
13157 (aarch64_ld1_x4_<mode>): Likewise.
13158 (aarch64_st1_x4_<mode>): Likewise.
13159 * config/aarch64/arm_neon.h:
13160 (vld1_s8_x4): New function.
13161 (vld1q_s8_x4): Likewise.
13162 (vld1_s16_x4): Likewise.
13163 (vld1q_s16_x4): Likewise.
13164 (vld1_s32_x4): Likewise.
13165 (vld1q_s32_x4): Likewise.
13166 (vld1_u8_x4): Likewise.
13167 (vld1q_u8_x4): Likewise.
13168 (vld1_u16_x4): Likewise.
13169 (vld1q_u16_x4): Likewise.
13170 (vld1_u32_x4): Likewise.
13171 (vld1q_u32_x4): Likewise.
13172 (vld1_f16_x4): Likewise.
13173 (vld1q_f16_x4): Likewise.
13174 (vld1_f32_x4): Likewise.
13175 (vld1q_f32_x4): Likewise.
13176 (vld1_p8_x4): Likewise.
13177 (vld1q_p8_x4): Likewise.
13178 (vld1_p16_x4): Likewise.
13179 (vld1q_p16_x4): Likewise.
13180 (vld1_s64_x4): Likewise.
13181 (vld1_u64_x4): Likewise.
13182 (vld1_p64_x4): Likewise.
13183 (vld1q_s64_x4): Likewise.
13184 (vld1q_u64_x4): Likewise.
13185 (vld1q_p64_x4): Likewise.
13186 (vld1_f64_x4): Likewise.
13187 (vld1q_f64_x4): Likewise.
13188 (vst1_s8_x4): Likewise.
13189 (vst1q_s8_x4): Likewise.
13190 (vst1_s16_x4): Likewise.
13191 (vst1q_s16_x4): Likewise.
13192 (vst1_s32_x4): Likewise.
13193 (vst1q_s32_x4): Likewise.
13194 (vst1_u8_x4): Likewise.
13195 (vst1q_u8_x4): Likewise.
13196 (vst1_u16_x4): Likewise.
13197 (vst1q_u16_x4): Likewise.
13198 (vst1_u32_x4): Likewise.
13199 (vst1q_u32_x4): Likewise.
13200 (vst1_f16_x4): Likewise.
13201 (vst1q_f16_x4): Likewise.
13202 (vst1_f32_x4): Likewise.
13203 (vst1q_f32_x4): Likewise.
13204 (vst1_p8_x4): Likewise.
13205 (vst1q_p8_x4): Likewise.
13206 (vst1_p16_x4): Likewise.
13207 (vst1q_p16_x4): Likewise.
13208 (vst1_s64_x4): Likewise.
13209 (vst1_u64_x4): Likewise.
13210 (vst1_p64_x4): Likewise.
13211 (vst1q_s64_x4): Likewise.
13212 (vst1q_u64_x4): Likewise.
13213 (vst1q_p64_x4): Likewise.
13214 (vst1_f64_x4): Likewise.
13215 (vst1q_f64_x4): Likewise.
13217 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13219 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
13221 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13222 Richard Sandiford <richard.sandiford@arm.com>
13225 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
13226 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13228 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13231 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13232 in reg if it fails aarch64_plus_operand predicate.
13234 2019-08-21 Richard Biener <rguenther@suse.de>
13236 PR tree-optimization/91482
13237 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13238 BUILT_IN_ASSUME_ALIGNED calls.
13240 2019-08-21 Richard Biener <rguenther@suse.de>
13244 * config/i386/i386-features.c
13245 (general_scalar_chain::make_vector_copies): Copy stack temporary
13246 rtx when using it multiple times.
13247 (general_scalar_chain::convert_reg): Likewise.
13249 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13251 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13253 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13255 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13256 catch more redundant zero initialization cases.
13257 (dse_dom_walker::dse_optimize_stmt): Likewise.
13259 2019-08-20 Richard Biener <rguenther@suse.de>
13262 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13263 by collect2 when targetm.have_ctors_dtors which avoids dragging
13264 in temporary filenames from LTO input objects.
13266 2019-08-20 Richard Biener <rguenther@suse.de>
13268 PR tree-optimization/37242
13269 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13270 to (T)a + (T)b if we know that a + b does not overflow.
13272 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13274 PR rtl-optimization/91347
13275 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13276 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13278 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13280 * calls.h (function_arg_info): Add a pass_by_reference field,
13281 defaulting to false.
13282 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13283 when applying pass-by-reference semantics.
13284 (initialize_argument_information): Likewise.
13285 (emit_library_call_value_1): Likewise.
13286 * function.c (assign_parm_data_one): Remove passed_pointer field.
13287 (assign_parm_find_data_types): Don't set it.
13288 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13289 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13290 arg.pass_by_reference instead of passed_pointer.
13292 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13294 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13295 into a single function_arg_info, updating its fields when we
13296 apply pass-by-reference and promotion semantics. Use the
13297 function_arg_info to track the mode rather than keeping it in
13298 a separate local variable.
13299 (initialize_argument_information): Likewise. Base the final
13300 arg_to_skip on this new function_arg_info rather than creating
13301 a new one from scratch.
13303 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13305 * function.c (assign_parm_data_one): Replace passed_type,
13306 promoted_mode and named_arg with a function_arg_info field.
13307 (assign_parm_find_data_types): Remove local variables and
13308 assign directly to "data". Make data->passed_mode shadow
13309 data->arg.mode until promotion, then assign the promoted
13310 mode to data->arg.mode.
13311 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13312 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13313 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13314 (assign_parm_setup_block, assign_parm_setup_reg)
13315 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13316 arg.mode instead of promoted_mode, arg.type instead of passed_type
13317 and arg.named instead of named_arg. Use data->arg for
13318 function_arg_info structures that had the field values passed_type,
13319 promoted_mode and named_arg. Base other function_arg_infos on
13320 data->arg, changing the necessary properties.
13322 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13324 * calls.h (apply_pass_by_reference_rules): Declare.
13325 * calls.c (apply_pass_by_reference_rules): New function.
13326 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13327 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13328 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13329 * function.c (assign_parm_find_data_types): Likewise.
13330 * var-tracking.c (prepare_call_arguments): Likewise.
13332 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13334 * target.def (must_pass_in_stack): Take a function_arg_info instead
13335 of a mode and a type.
13336 * doc/tm.texi: Regenerate.
13337 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13338 instead of a mode and a type.
13339 (must_pass_in_stack_var_size_or_pad): Likewise.
13340 * calls.c (must_pass_in_stack_var_size): Likewise.
13341 (must_pass_in_stack_var_size_or_pad): Likewise.
13342 (initialize_argument_information): Update call to
13343 targetm.calls.must_pass_in_stack.
13344 (must_pass_va_arg_on_stack): Likewise.
13345 * function.c (assign_parm_find_entry_rtl): Likewise.
13346 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13347 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13348 (alpha_function_arg_advance): Likewise.
13349 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13350 (cr16_function_arg_advance): Likewise.
13351 * config/cris/cris.c (cris_pass_by_reference): Likewise.
13352 (cris_arg_partial_bytes): Likewise.
13353 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13354 * config/lm32/lm32.c (lm32_function_arg): Likewise.
13355 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
13356 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
13357 * config/mips/mips.c (mips_pass_by_reference): Likewise.
13358 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
13359 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
13360 * config/sh/sh.c (sh_pass_by_reference): Likewise.
13361 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13362 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13363 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
13364 instead of a mode and a type.
13365 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
13366 (fr30_num_arg_regs): Likewise.
13367 (fr30_setup_incoming_varargs): Update calls accordingly.
13368 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13369 (fr30_function_arg_advance): Likewise.
13370 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
13371 instead of a mode and a type.
13372 * config/gcn/gcn.c (num_arg_regs): Likewise.
13373 (gcn_function_arg, gcn_function_arg_advance): Update calls to
13374 num_arg_regs and targetm.calls.must_pass_in_stack.
13375 (gcn_arg_partial_bytes): Likewise.
13376 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
13377 function_arg_info instead of a mode and a type.
13378 (classify_argument): Update call accordingly.
13379 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
13380 function_arg_info instead of a mode and a type.
13381 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
13383 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
13384 (rs6000_parm_needs_stack): Update call accordingly.
13385 (setup_incoming_varargs): Likewise.
13387 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13389 * target.def (callee_copies): Take a function_arg_info instead
13390 of a mode, type and named flag.
13391 * doc/tm.texi: Regenerate.
13392 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
13393 instead of a mode, type and named flag.
13394 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13395 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13396 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13397 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
13398 instead of a mode, type and named flag.
13399 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13400 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13401 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13402 * calls.h (reference_callee_copied): Take a function_arg_info
13403 instead of a mode, type and named flag.
13404 * calls.c (reference_callee_copied): Likewise.
13405 (initialize_argument_information): Update call accordingly.
13406 (emit_library_call_value_1): Likewise.
13407 * function.c (gimplify_parameters): Likewise.
13408 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
13409 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
13410 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
13411 * config/c6x/c6x.c (c6x_callee_copies): Delete.
13412 (TARGET_CALLEE_COPIES): Define to
13413 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13414 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
13415 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13416 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13417 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
13418 instead of a mode, type and named flag.
13419 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
13420 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13421 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13422 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
13423 * config/msp430/msp430.c (msp430_callee_copies): Delete.
13424 (TARGET_CALLEE_COPIES): Define to
13425 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13426 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
13427 instead of a mode, type and named flag.
13428 * config/sh/sh.c (sh_callee_copies): Likewise.
13429 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
13430 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13431 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13433 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13435 * target.def (function_arg_advance): Take a function_arg_info instead
13436 of a mode, type and named flag.
13437 * doc/tm.texi: Regenerate.
13438 * targhooks.h (default_function_arg_advance): Take a function_arg_info
13439 instead of a mode, type and named flag.
13440 * targhooks.c (default_function_arg_advance): Likewise.
13441 * calls.c (initialize_argument_information): Update call to
13442 targetm.calls.function_arg_advance.
13443 (emit_library_call_value_1): Likewise.
13444 * dse.c (get_call_args): Likewise.
13445 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13446 * function.c (assign_parms, gimplify_parameters): Likewise.
13447 * var-tracking.c (prepare_call_arguments): Likewise.
13448 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
13449 function_arg_info instead of a mode, type and named flag.
13450 (aarch64_setup_incoming_varargs): Update call accordingly.
13451 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
13452 function_arg_info instead of a mode, type and named flag.
13453 (alpha_setup_incoming_varargs): Update call accordingly.
13454 * config/arc/arc.c (arc_function_arg_advance): Take a
13455 function_arg_info instead of a mode, type and named flag.
13456 (arc_setup_incoming_varargs): Update call accordingly.
13457 * config/arm/arm.c (arm_function_arg_advance): Take a
13458 function_arg_info instead of a mode, type and named flag.
13459 (cmse_func_args_or_return_in_stack): Update call accordingly.
13460 (arm_function_ok_for_sibcall): Likewise.
13461 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13462 * config/avr/avr.c (avr_function_arg_advance): Take a
13463 function_arg_info instead of a mode, type and named flag.
13464 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
13465 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
13466 (c6x_call_saved_register_used): Update call accordingly.
13467 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
13468 function_arg_info instead of a mode, type and named flag.
13469 * config/cris/cris.c (cris_function_arg_advance): Likewise.
13470 * config/csky/csky.c (csky_function_arg_advance): Likewise.
13471 (csky_setup_incoming_varargs): Update call accordingly.
13472 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
13473 function_arg_info instead of a mode, type and named flag.
13474 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
13475 * config/frv/frv.c (frv_function_arg_advance): Likewise.
13476 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
13477 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
13478 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
13479 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13480 (ix86_setup_incoming_varargs): Update call accordingly.
13481 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
13482 function_arg_info instead of a mode, type and named flag.
13483 (ia64_setup_incoming_varargs): Update call accordingly.
13484 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
13485 function_arg_info instead of a mode, type and named flag.
13486 (iq2000_expand_prologue): Update call accordingly.
13487 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
13488 function_arg_info instead of a mode, type and named flag.
13489 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
13490 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
13491 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13492 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
13493 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13495 (microblaze_expand_prologue): Update call accordingly.
13496 * config/mips/mips.c (mips_function_arg_advance): Take a
13497 function_arg_info instead of a mode, type and named flag.
13498 (mips_setup_incoming_varargs): Update call accordingly.
13499 (mips_output_args_xfer): Likewise.
13500 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
13501 function_arg_info instead of a mode, type and named flag.
13502 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
13503 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
13504 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
13505 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
13506 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
13507 (nios2_setup_incoming_varargs): Update call accordingly.
13508 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
13509 function_arg_info instead of a mode, type and named flag.
13510 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
13511 * config/pa/pa.c (pa_function_arg_advance): Likewise.
13512 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
13513 * config/pru/pru.c (pru_function_arg_advance): Likewise.
13514 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
13515 (riscv_setup_incoming_varargs): Update call accordingly.
13516 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
13517 function_arg_info instead of a mode, type and named flag.
13518 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
13520 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
13521 (rs6000_parm_needs_stack): Update call accordingly.
13522 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
13523 instead of a mode, type and named flag.
13524 * config/s390/s390.c (s390_function_arg_advance): Likewise.
13525 (s390_call_saved_register_used): Update call accordingly.
13526 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
13527 instead of a mode, type and named flag.
13528 (sh_output_mi_thunk): Update call accordingly.
13529 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
13530 function_arg_info instead of a mode, type and named flag.
13531 * config/spu/spu.c (spu_function_arg_advance): Likewise.
13532 (spu_setup_incoming_varargs): Update call accordingly.
13533 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
13534 function_arg_info instead of a mode, type and named flag.
13535 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
13536 (tilegx_setup_incoming_varargs): Update call accordingly.
13537 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
13538 function_arg_info instead of a mode, type and named flag.
13539 (tilegx_setup_incoming_varargs): Update call accordingly.
13540 * config/v850/v850.c (v850_function_arg_advance): Take a
13541 function_arg_info instead of a mode, type and named flag.
13542 * config/vax/vax.c (vax_function_arg_advance): Likewise.
13543 * config/visium/visium.c (visium_function_arg_advance): Likewise.
13544 (visium_setup_incoming_varargs): Update call accordingly.
13545 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
13546 function_arg_info instead of a mode, type and named flag.
13548 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13550 * target.def (function_arg, function_incoming_arg): Take a
13551 function_arg_info instead of a mode, tree and named flag.
13552 * doc/tm.texi: Regenerate.
13553 * targhooks.h (default_function_arg): Take a function_arg_info
13554 instead of a mode, tree and named flag.
13555 (default_function_incoming_arg): Likewise.
13556 * targhooks.c (default_function_arg): Likewise.
13557 (default_function_incoming_arg): Likewise.
13558 * calls.h (function_arg_info::end_marker_p): New function.
13559 (function_arg_info::end_marker): Likewise.
13560 * calls.c (prepare_call_address, initialize_argument_information)
13561 (expand_call, emit_library_call_value_1): Update calls to
13562 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
13563 * dse.c: Include calls.h.
13564 (get_call_args): Update call to targetm.calls.function_arg.
13565 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13566 * var-tracking.c (prepare_call_arguments): Likewise.
13567 * function.c (assign_parm_find_entry_rtl): Update call to
13568 targetm.calls.function_incoming_arg.
13569 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
13570 function_arg_info instead of a mode, tree and named flag.
13571 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13572 * config/arc/arc.c (arc_function_arg): Likewise.
13573 * config/arm/arm.c (arm_function_arg): Likewise.
13574 (cmse_func_args_or_return_in_stack): Update call accordingly.
13575 (arm_function_ok_for_sibcall): Likewise.
13576 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13577 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
13578 instead of a mode, tree and named flag.
13579 * config/bfin/bfin.c (bfin_function_arg): Likewise.
13580 * config/c6x/c6x.c (c6x_function_arg): Likewise.
13581 (c6x_call_saved_register_used): Update call accordingly.
13582 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
13583 instead of a mode, tree and named flag.
13584 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
13585 (cris_function_arg_1): Likewise.
13586 * config/csky/csky.c (csky_function_arg): Likewise.
13587 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
13588 * config/fr30/fr30.c (fr30_function_arg): Likewise.
13589 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
13590 (frv_function_arg_1): Likewise.
13591 * config/ft32/ft32.c (ft32_function_arg): Likewise.
13592 * config/gcn/gcn.c (gcn_function_arg): Likewise.
13593 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13594 * config/i386/i386.c (ix86_function_arg): Likewise.
13595 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
13596 (ia64_function_arg_1): Likewise.
13597 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
13598 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
13600 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
13601 instead of a mode, tree and named flag.
13602 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13603 * config/m32r/m32r.c (m32r_function_arg): Likewise.
13604 * config/m68k/m68k.c (m68k_function_arg): Likewise.
13605 * config/mcore/mcore.c (mcore_function_arg): Likewise.
13606 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
13607 (microblaze_expand_prologue): Update call accordingly.
13608 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
13609 instead of a mode, tree and named flag.
13610 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
13611 (mmix_function_arg_1): Likewise.
13612 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
13613 * config/moxie/moxie.c (moxie_function_arg): Likewise.
13614 * config/msp430/msp430.c (msp430_function_arg): Likewise.
13615 * config/nds32/nds32.c (nds32_function_arg): Likewise.
13616 * config/nios2/nios2.c (nios2_function_arg): Likewise.
13617 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
13618 (nvptx_function_incoming_arg): Likewise.
13619 * config/or1k/or1k.c (or1k_function_arg): Likewise.
13620 * config/pa/pa.c (pa_function_arg): Likewise.
13621 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13622 * config/pru/pru.c (pru_function_arg): Likewise.
13623 * config/riscv/riscv.c (riscv_function_arg): Likewise.
13624 * config/rl78/rl78.c (rl78_function_arg): Likewise.
13625 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
13626 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
13627 (rs6000_parm_needs_stack): Update call accordingly.
13628 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
13629 instead of a mode, tree and named flag.
13630 * config/s390/s390.c (s390_function_arg): Likewise.
13631 (s390_call_saved_register_used): Update call accordingly.
13632 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
13633 instead of a mode, tree and named flag.
13634 (sh_output_mi_thunk): Update call accordingly.
13635 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
13636 (sparc_function_incoming_arg): Take a function_arg_info instead of
13637 a mode, tree and named flag.
13638 * config/spu/spu.c (spu_function_arg): Likewise.
13639 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13640 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
13641 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
13642 * config/v850/v850.c (v850_function_arg): Likewise.
13643 * config/vax/vax.c (vax_function_arg): Likewise.
13644 * config/visium/visium.c (visium_function_arg): Likewise.
13645 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
13646 (xtensa_function_incoming_arg): Likewise.
13648 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13650 * target.def (setup_incoming_varargs): Take a function_arg_info
13651 instead of a mode and tree.
13652 * doc/tm.texi: Regenerate.
13653 * targhooks.h (default_setup_incoming_varargs): Take a
13654 function_arg_info instead of a mode and tree.
13655 * targhooks.c (default_setup_incoming_varargs): Likewise.
13656 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
13657 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
13658 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13659 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
13660 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
13661 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13662 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
13663 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
13665 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13666 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13667 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
13668 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
13669 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13670 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13671 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13672 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13673 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13674 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
13675 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13676 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13677 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
13678 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
13679 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
13680 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
13681 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
13682 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13683 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
13684 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
13685 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
13686 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
13687 * function.c (assign_parms_setup_varargs): Update call to
13688 targetm.calls.setup_incoming_varargs.
13690 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13692 * target.def (pass_by_reference): Take a function_arg_info instead
13693 of a mode, type and named flag.
13694 * doc/tm.texi: Regenerate.
13695 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
13697 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
13698 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
13699 function_arg_info instead of a mode, type and named flag.
13700 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
13701 * calls.h (pass_by_reference): Take a function_arg_info instead of a
13702 mode, type and named flag.
13703 * calls.c (pass_by_reference): Likewise.
13704 (pass_va_arg_by_reference): Update call accordingly.
13705 (initialize_argument_information): Likewise.
13706 (emit_library_call_value_1): Likewise.
13707 * function.c (assign_parm_find_data_types): Likewise.
13708 * var-tracking.c (prepare_call_arguments): Likewise.
13709 * stor-layout.c: Include calls.h.
13710 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
13711 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
13712 function_arg_info instead of a mode, type and named flag.
13713 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
13714 * config/arc/arc.c (arc_pass_by_reference): Likewise.
13715 * config/arm/arm.c (arm_pass_by_reference): Likewise.
13716 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
13717 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
13718 (c6x_call_saved_register_used): Update call to pass_by_reference.
13719 * config/cris/cris.c (cris_pass_by_reference): Take a
13720 function_arg_info instead of a mode, type and named flag.
13721 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
13722 function_arg_info instead of a mode, type and named flag.
13723 (epiphany_arg_partial_bytes): Update call accordingly.
13724 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
13725 function_arg_info instead of a mode, type and named flag.
13726 (ft32_arg_partial_bytes): Update call accordingly.
13727 * config/i386/i386.c (ix86_pass_by_reference): Take a
13728 function_arg_info instead of a mode, type and named flag.
13729 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13730 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
13731 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
13732 (m32r_return_in_memory): Update call accordingly.
13733 * config/mips/mips.c (mips_pass_by_reference): Take a
13734 function_arg_info instead of a mode, type and named flag.
13735 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
13736 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13737 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
13738 (moxie_arg_partial_bytes): Update call accordingly.
13739 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
13740 function_arg_info instead of a mode, type and named flag.
13741 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
13742 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
13743 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13744 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
13745 (riscv_return_in_memory): Update call accordingly.
13746 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
13747 function_arg_info instead of a mode, type and named flag.
13748 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
13749 (rs6000_parm_needs_stack): Update call to pass_by_reference.
13750 * config/s390/s390.c (s390_pass_by_reference): Take a
13751 function_arg_info instead of a mode, type and named flag.
13752 (s390_call_saved_register_used): Update call accordingly.
13753 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
13754 instead of a mode, type and named flag.
13755 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
13756 * config/spu/spu.c (spu_pass_by_reference): Likewise.
13757 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
13758 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
13759 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13760 * config/visium/visium.c (visium_pass_by_reference): Likewise.
13762 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13764 * target.def (arg_partial_bytes): Take a function_arg_info instead
13765 of a mode, type and named flag.
13766 * doc/tm.texi: Regenerate.
13767 * target.h (function_arg_info): Declare.
13768 * calls.h (function_arg_info): New class.
13769 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13770 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
13771 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13772 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
13773 * calls.c (initialize_argument_information): Update call to
13774 targetm.calls.partial_bytes.
13775 (emit_library_call_value_1): Likewise.
13776 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13777 * function.c (assign_parm_find_entry_rtl): Likewise.
13778 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
13779 function_arg_info instead of a mode, type and named flag.
13780 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
13781 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
13782 (cmse_func_args_or_return_in_stack): Update accordingly.
13783 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
13784 function_arg_info instead of a mode, type and named flag.
13785 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
13786 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
13787 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
13788 * config/fr30/fr30.c: Include calls.h.
13789 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
13790 type and named flag.
13791 * config/frv/frv.c: Include calls.h.
13792 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
13793 type and named flag.
13794 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
13795 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
13796 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
13797 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
13798 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
13799 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
13800 * config/microblaze/microblaze.c (function_arg_partial_bytes):
13802 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
13803 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
13804 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
13805 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
13806 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
13807 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
13808 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
13809 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
13810 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
13811 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
13812 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
13813 (rs6000_parm_needs_stack): Update call accordingly.
13814 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13815 function_arg_info instead of a mode, type and named flag.
13816 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13817 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13819 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13821 * calls.h (must_pass_va_arg_in_stack): Declare.
13822 * calls.c (must_pass_va_arg_in_stack): New function.
13823 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13824 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13825 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13827 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13829 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13831 * calls.h (pass_va_arg_by_reference): Declare.
13832 * calls.c (pass_va_arg_by_reference): New function.
13833 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13834 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13835 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13836 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13837 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13838 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13839 (mips_gimplify_va_arg_expr): Likewise.
13840 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13841 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13842 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13843 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13844 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13845 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13846 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13847 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13848 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13849 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13850 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13852 2019-08-20 Richard Biener <rguenther@suse.de>
13855 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13856 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13857 (convert_scalars_to_vector): Add timode_p parameter and use it
13858 to guard TImode-only operation.
13859 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13860 (pass_stv::execute): Pass down timode_p.
13862 2019-08-20 Lili Cui <lili.cui@intel.com>
13864 * common/config/i386/i386-common.c
13865 (processor_names): Add tigerlake and cooperlake.
13866 (processor_alias_table): Add tigerlake and cooperlake.
13867 * config.gcc: Add -march=tigerlake and cooperlake.
13868 * config/i386/driver-i386.c
13869 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13870 Add "has_avx" to classify processor.
13871 * config/i386/i386-builtins.c (processor_model) :
13872 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13873 (arch_names_table): Add tigerlake and cooperlake.
13874 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13875 and PROCESSOR_COOPERLAKE.
13876 * config/i386/i386-c.c
13877 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13878 * config/i386/i386-options.c
13879 (m_TIGERLAKE): Define.
13880 (m_COOPERLAKE): Ditto.
13881 (m_CORE_AVX512): Ditto.
13882 (processor_cost_table): Add cascadelake.
13883 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13884 * config/i386/i386.h
13885 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13886 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13887 (PTA_MOVDIRI): Ditto.
13888 (PTA_MOVDIR64B): Ditto.
13889 (PTA_COOPERLAKE): Ditto.
13890 (PTA_TIGERLAKE): Ditto.
13891 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13892 * doc/extend.texi: Add tigerlake and cooperlake.
13893 * doc/invoke.texi: Add tigerlake and cooperlake.
13895 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13897 * doc/install.texi (Specific, alpha): Remove note to use
13898 binutils 2.11.2 or later.
13900 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13902 PR middle-end/89544
13903 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13906 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13908 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13909 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13910 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13911 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13912 * config/aarch64/constraints.md (Dt): New constraint
13913 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13915 2019-08-19 Richard Biener <rguenther@suse.de>
13917 PR tree-optimization/91403
13918 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13919 cases we can handle with tail-recursion...
13920 (follow_ssa_edge_expr): ... here. Do so.
13922 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13925 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13926 implemented for -fsanitize=kernel-address, and merge check logic
13927 with -fsanitize=address.
13929 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13931 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13932 for cpu and machine. Factor 64/32b builtins.
13934 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13936 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13937 gone, point to sourceforge.net.
13939 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13941 * doc/ux.texi (User Experience Guidelines): Update reference.
13943 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13945 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13948 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13950 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13951 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13953 2019-08-16 Martin Sebor <msebor@redhat.com>
13955 * tree.def (TYPE_SIZE): Clarify.
13956 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13958 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13960 PR tree-optimization/91109
13961 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13962 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13963 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13965 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13967 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13968 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13969 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13970 (uavg<mode>3_ceil): New expander.
13971 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13972 mode iterator when creating CONST1_RTX.
13973 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13974 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13975 mode iterator for const1_operand predicate.
13977 2019-08-16 Richard Biener <rguenther@suse.de>
13979 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13980 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13982 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13983 (analyze_evolution_in_loop): Likewise.
13984 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13985 (follow_ssa_edge_expr): ... here. Refactor code.
13987 2019-08-16 Richard Biener <rguenther@suse.de>
13990 * config/i386/i386-features.c
13991 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13993 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13996 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13997 only if subst_name matches curr_attr string.
13999 2019-08-16 Richard Biener <rguenther@suse.de>
14001 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
14002 stmt at gsi_p, instead replace it with a NOP removed later.
14003 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
14004 that became dead because of that.
14006 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
14008 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
14009 for which we can't represent a range.
14010 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
14012 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
14013 Set VR_UNDEFINED if type is not supported.
14014 * tree-ssanames.c (get_range_info): Pass type to set_varying.
14015 * tree-vrp.c (value_range_base::check): Assert that a varying has
14017 (value_range_base::equal_p): Early bail for undefines.
14018 (value_range_base::set_varying): Accept a type.
14019 (value_range::set_varying): Same.
14020 (value_range_base::type): VARYING can have a type, while UNDEFINE
14022 (value_range_base::dump): Print type for VARYING nodes.
14023 (value_range_base::set): Add type to VARYING.
14024 (extract_range_from_multiplicative_op): Pass type to set_varying.
14025 (extract_range_from_binary_expr): Same.
14026 (value_range_base::intersect_helper): Same.
14027 (value_range_base::union_helper): Same.
14028 (value_range_base::normalize_symbolics): Same.
14029 (determine_value_range_1): Same.
14030 * tree-vrp.h (class value_range_base): Add type to set_varying.
14031 Add prototype for dump(void).
14032 Add prototype for supports_type_p.
14033 (class value_range): Add type to set_varying.
14034 Add prototype for dump(void).
14035 * vr-values.c (set_value_range_to_truthvalue): Pass type to
14037 (vr_values::get_lattice_entry): Set varying even if propagation
14039 Pass type to set_varying.
14040 (vr_values::get_value_range): Remove vr_const_varying.
14041 Reallocate the lattice if needed.
14042 (vr_values::update_value_range): Pass type to set_varying.
14043 (vr_values::extract_range_for_var_from_comparison_expr): Same.
14044 (vr_values::extract_range_from_binary_expr): Same.
14045 (vr_values::extract_range_from_unary_expr): Same.
14046 (vr_values::extract_range_from_cond_expr): Same.
14047 (vr_values::check_for_binary_op_overflow): Same.
14048 (vr_values::extract_range_basic): Same.
14049 (vr_values::extract_range_from_assignment): Same.
14050 (vr_values::vr_values): Increase size of num_vr_values.
14051 (vr_values::extract_range_from_phi_node): Pass type to
14054 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
14057 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
14058 for costs of hard register moves.
14059 (ix86_register_move_cost): Likewise.
14060 * config/i386/i386.h (processor_costs): Move costs of hard
14061 register moves to hard_register. Add int_load, int_store,
14062 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14063 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
14064 for costs of RTL expressions.
14065 * config/i386/x86-tune-costs.h: Move costs of hard register
14066 moves to hard_register. Duplicate int_load, int_store,
14067 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
14068 sse_load, sse_store for costs of RTL expressions.
14070 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14072 * target.def (setup_incoming_vararg_bounds): Remove.
14073 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
14074 * doc/tm.texi: Regenerate.
14075 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
14076 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
14077 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14078 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
14080 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14082 MSP430: Fix lines over 80 characters long in
14083 config/msp430/*.{c,h} files
14085 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
14086 specifier in string.
14087 (msp430_select_hwmult_lib): Split line more than 80 characters long.
14088 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
14089 redundant old comment.
14090 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
14091 Split line more than 80 characters long.
14092 * config/msp430/msp430.c (msp430_option_override): Likewise.
14093 (msp430_return_in_memory): Likewise.
14094 (msp430_gimplify_va_arg_expr): Likewise.
14095 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
14096 (msp430_legitimate_constant): Likewise.
14097 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
14098 (msp430_attr): Likewise.
14099 (msp430_data_attr): Likewise.
14100 (msp430_start_function): Likewise.
14101 (gen_prefix): Likewise.
14102 (msp430_init_sections): Likewise.
14103 (msp430_select_section): Likewise.
14104 (msp430_function_section): Likewise.
14105 (msp430_unique_section): Likewise.
14106 (msp430_output_aligned_decl_common): Likewise.
14107 (msp430_do_not_relax_short_jumps): Likewise.
14108 (msp430_init_builtins): Likewise.
14109 (msp430_expand_delay_cycles): Likewise.
14110 (msp430_expand_prologue): Likewise.
14111 (msp430_expand_epilogue): Likewise.
14112 (msp430_expand_helper): Likewise.
14113 (msp430_split_movsi): Likewise.
14114 (msp430_print_operand): Likewise.
14115 (msp430_return_addr_rtx): Likewise.
14116 (msp430x_extendhisi): Likewise.
14117 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
14118 (ASM_SPEC): Likewise.
14119 Remove very obvious comments.
14120 (LIB_SPEC): Split line more than 80 characters long.
14121 (EH_RETURN_HANDLER_RTX): Likewise.
14122 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
14124 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14126 MSP430: Fix whitespace errors and incorrect indentation in
14127 config/msp430/*.{c,h} files
14129 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
14130 (msp430_select_hwmult_lib): Likewise.
14131 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
14132 (msp430_extract_mcu_data): Likewise.
14133 (struct t_msp430_mcu_data): Likewise.
14134 * config/msp430/msp430.c (struct machine_function): Remove whitespace
14135 before left square bracket.
14136 (msp430_option_override): Fix indentation.
14137 (msp430_hard_regno_nregs_with_padding): Likewise.
14138 (msp430_initial_elimination_offset): Likewise.
14139 (msp430_special_register_convention_p): Remove whitespace before left
14140 square bracket and after exclamation mark.
14141 (msp430_evaluate_arg): Likewise.
14142 (msp430_callee_copies): Fix indentation.
14143 (msp430_gimplify_va_arg_expr): Likewise.
14144 (msp430_function_arg_advance): Remove whitespace before left square
14146 (reg_ok_for_addr): Likewise.
14147 (msp430_preserve_reg_p): Likewise.
14148 (msp430_compute_frame_info): Likewise.
14149 (msp430_asm_output_addr_const_extra): Add space between function name
14150 and open parenthesis.
14151 (has_section_name): Fix indentation.
14152 (msp430_attr): Remove trailing whitespace.
14153 (msp430_section_attr): Likewise.
14154 (msp430_data_attr): Likewise.
14155 (struct msp430_attribute_table): Fix comment and whitespace.
14156 (msp430_start_function): Remove whitespace before left square bracket.
14157 Add space between function name and open parenthesis.
14158 (msp430_select_section): Remove trailing whitespace.
14159 (msp430_section_type_flags): Remove trailing whitespace.
14160 (msp430_unique_section): Remove space before closing parenthesis.
14161 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
14162 (msp430_builtins): Remove whitespace before left square bracket.
14163 (msp430_init_builtins): Fix indentation.
14164 (msp430_expand_prologue): Remove whitespace before left square bracket.
14165 Remove space before closing parenthesis.
14166 (msp430_expand_epilogue): Remove whitespace before left square bracket.
14167 (msp430_split_movsi): Remove space before closing parenthesis.
14168 (helper_function_name_mappings): Fix indentation.
14169 (msp430_use_f5_series_hwmult): Fix whitespace.
14170 (use_32bit_hwmult): Likewise.
14171 (msp430_no_hwmult): Likewise.
14172 (msp430_output_labelref): Remove whitespace before left square bracket.
14173 (msp430_print_operand_raw): Likewise.
14174 (msp430_print_operand_addr): Likewise.
14175 (msp430_print_operand): Add two spaces after '.' in comment.
14176 Fix trailing whitespace.
14177 (msp430x_extendhisi): Fix indentation.
14178 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
14180 (PC_REGNUM): Likewise.
14181 (STACK_POINTER_REGNUM): Likewise.
14182 (CC_REGNUM): Likewise.
14184 2019-08-15 Richard Biener <rguenther@suse.de>
14187 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
14189 (general_scalar_chain::make_vector_copies): Use it.
14191 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
14193 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
14195 2019-08-15 Martin Liska <mliska@suse.cz>
14197 * tree-ssa-dce.c (propagate_necessity): We can't reach now
14198 operators with no arguments.
14199 (eliminate_unnecessary_stmts): Likewise here.
14201 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
14203 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
14204 <case COMPARE>: Revert 2019-08-14 change.
14205 (convertible_comparison_p): Revert 2019-08-14 change. Return false
14206 for (TARGET_64BIT || mode != DImode).
14208 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
14210 * tree-vrp.c (value_range_base::set): Merge in code from
14211 value_range_base::set_and_canonicalize.
14212 Enforce canonicalization at set time.
14213 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
14214 (value_range_base::set_undefined): Inline call to set().
14215 (value_range_base::set_varying): Same.
14216 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
14217 (vrp_val_max): New argument handle_pointers.
14218 (vrp_val_min): Same.
14219 (ranges_from_anti_range): Same.
14220 (extract_range_into_wide_ints): Use tree argument instead of sign
14222 (extract_range_from_multiplicative_op): Take in tree type instead
14223 of precision and sign. Adapt function for canonicalized ranges.
14224 (extract_range_from_binary_expr): Pass type to
14225 extract_range_from_multiplicative_op.
14226 Adapt for canonicalized ranges.
14227 (extract_range_from_unary_expr): Same.
14228 (value_range_base::intersect_helper): Adjust for canonicalized
14230 (value_range_base::union_helper): Same.
14231 (value_range_base::normalize_symbolics): New.
14232 * tree-vrp.h (class value_range_base): Remove
14233 set_and_canonicalize.
14234 New prototype for normalize_symbolics.
14235 (class value_range): Remove set_and_canonicalize.
14236 (vrp_val_min): Adjust prototype.
14237 (vrp_val_max): Same.
14239 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14240 instead of set_and_canonicalize.
14242 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14244 PR middle-end/91444
14245 * tree-vect-stmts.c (vectorizable_call): Check that the function
14246 is a BUILT_IN_MD function before passing it to
14247 targetm.vectorize.builtin_md_vectorized_function.
14249 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14251 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14252 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14253 (aarch64_select_early_remat_modes): Use it.
14255 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14257 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14258 16 for SVE predicates even if they are fixed-length.
14260 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14262 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14263 operand order match the MOV /Z alias.
14265 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14267 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14268 the vector pattern as an aarch64_svpattern argument. Update the
14269 overloaded caller accordingly.
14270 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14271 (aarch64_output_sve_vector_inc_dec): Likewise.
14273 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14275 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14276 multiplication case, try to compute VG * (lowest set bit) directly
14277 rather than always basing the multiplication on VG. Use
14278 expand_mult for the multiplication if we can.
14280 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14282 * config/aarch64/aarch64-protos.h
14283 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14284 (aarch64_sve_inc_dec_immediate_p): Rename to...
14285 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14286 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14287 (aarch64_output_sve_scalar_inc_dec): Declare.
14288 (aarch64_output_sve_inc_dec_immediate): Rename to...
14289 (aarch64_output_sve_vector_inc_dec): ...this.
14290 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14291 (aarch64_output_sve_scalar_inc_dec): New functions.
14292 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14293 arguments. Only handle true ADDVL and ADDPL instructions;
14294 don't emit an INC or DEC.
14295 (aarch64_sve_inc_dec_immediate_p): Rename to...
14296 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14297 (aarch64_output_sve_inc_dec_immediate): Rename to...
14298 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14299 aarch64_sve_vector_inc_dec_immediate_p.
14300 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14301 (aarch64_sve_plus_immediate): New predicates.
14302 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14303 rather than aarch64_sve_addvl_addpl_immediate.
14304 (aarch64_sve_inc_dec_immediate): Rename to...
14305 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14306 aarch64_sve_vector_inc_dec_immediate_p.
14307 (aarch64_sve_add_operand): Update accordingly.
14308 * config/aarch64/constraints.md (Uai): New constraint.
14309 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14310 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14311 operand into a register if it satisfies aarch64_sve_plus_immediate.
14312 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14313 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14314 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14315 aarch64_output_sve_vector_inc_dec instead of
14316 aarch64_output_sve_inc_dec_immediate.
14318 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14320 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14321 (UNSPEC_REVW): New constants.
14322 (elem_bits): New mode attribute.
14323 (SVE_INT_UNARY): New int iterator.
14324 (optab): Handle UNSPEC_REV[BHW].
14325 (sve_int_op): New int attribute.
14326 (min_elem_bits): Handle VNx16QI and the predicate modes.
14327 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14328 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14329 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14330 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14331 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14332 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14333 unspecs based on the total width of the reversed data.
14334 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14335 reinterpret followed by a subreg on big-endian targets.
14337 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14338 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14340 * config/aarch64/aarch64-sve.md
14341 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14342 alternatives in which one of the inputs is in the same register
14345 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14347 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14348 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14350 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14352 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
14353 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
14355 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14356 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14358 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
14359 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
14360 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
14362 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14363 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14365 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
14366 Add an alternative that uses reversed shifts.
14368 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14370 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
14373 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14375 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
14376 a commutativity marker.
14378 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14379 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14381 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
14382 (aarch64_prepare_sve_cond_int_fma): Declare.
14383 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
14384 (aarch64_prepare_sve_int_fma): New functions.
14385 (aarch64_prepare_sve_cond_int_fma): Likewise.
14386 * config/aarch64/aarch64-sve.md
14387 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
14388 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
14389 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
14390 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
14391 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
14392 (*madd<mode>): Rename to...
14393 (*fma<mode>4): ...this.
14394 (*msub<mode>): Rename to...
14395 (*fnma<mode>4): ...this.
14397 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14398 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14400 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
14401 Print 2.0 naturally.
14402 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
14403 * config/aarch64/predicates.md
14404 (aarch64_sve_float_negated_arith_immediate): New predicate,
14405 renamed from aarch64_sve_float_arith_with_sub_immediate.
14406 (aarch64_sve_float_arith_with_sub_immediate): Test for both
14407 positive and negative constants.
14408 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
14409 or an aarch64_sve_float_arith_with_sub_immediate.
14410 * config/aarch64/constraints.md (vsN): Use
14411 aarch64_sve_float_negated_arith_immediate.
14412 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
14414 (sve_pred_fp_rhs2_immediate): New int attribute.
14415 * config/aarch64/aarch64-sve.md
14416 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
14417 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
14418 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
14419 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
14420 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
14421 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
14423 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14424 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14426 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
14427 (*aarch64_cond_abd<SVE_F:mode>_3)
14428 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
14430 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14431 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14433 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
14434 (*aarch64_cond_<su>abd<mode>_any): New patterns.
14436 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14437 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14439 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
14440 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
14441 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
14442 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
14444 * optabs.h (create_convert_operand_from): Expand comment.
14445 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
14446 when mapping scalar rtxes to vector operands.
14447 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
14448 ashiftrt and lshiftrt.
14449 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
14450 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
14451 (*cond_<optab><mode>_any_const): New patterns.
14453 2019-08-15 Martin Liska <mliska@suse.cz>
14456 * cgraph.c (cgraph_node::remove): When setting
14457 n->origin = NULL for all nested functions, reset
14460 2019-08-15 Martin Liska <mliska@suse.cz>
14462 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
14465 2019-08-15 Martin Liska <mliska@suse.cz>
14468 * passes.c (order): Remove.
14469 (uid_hash_t): Likewise).
14470 (remove_cgraph_node_from_order): Remove from set
14471 of pointers (cgraph_node *).
14472 (insert_cgraph_node_to_order): New.
14473 (duplicate_cgraph_node_to_order): New.
14474 (do_per_function_toporder): Register all 3 cgraph hooks.
14475 Skip removed_nodes now as we know about all of them.
14477 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
14479 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
14480 <case E_V8QImode>: Use vector_set path for
14481 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14482 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
14483 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14485 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14487 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
14489 2019-08-14 Martin Sebor <msebor@redhat.com>
14491 PR tree-optimization/91294
14492 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
14493 source length as exact.
14495 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
14497 * doc/extend.texi: Add "noinit" attribute documentation.
14498 * doc/sourcebuild.texi: Add noinit effective target documentation.
14499 * varasm.c (default_section_type_flags): Add support for "noinit"
14501 (default_elf_select_section): Add support for "noinit" attribute.
14502 * config/msp430/msp430.c (msp430_attribute_table): Remove
14505 2019-08-14 Richard Biener <rguenther@suse.de>
14506 Uroš Bizjak <ubizjak@gmail.com>
14509 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
14511 (scalar_chain::smode): New member.
14512 (scalar_chain::vmode): Likewise.
14513 (dimode_scalar_chain): Rename to...
14514 (general_scalar_chain): ... this.
14515 (general_scalar_chain::general_scalar_chain): Take mode arguments.
14516 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
14517 base with TImode and V1TImode.
14518 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
14519 (general_scalar_chain::vector_const_cost): Adjust for SImode
14521 (general_scalar_chain::compute_convert_gain): Likewise. Add
14522 {S,U}{MIN,MAX} support.
14523 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
14524 (general_scalar_chain::make_vector_copies): Likewise. Handle
14525 non-DImode chains appropriately.
14526 (general_scalar_chain::convert_reg): Likewise.
14527 (general_scalar_chain::convert_op): Likewise.
14528 (general_scalar_chain::convert_insn): Likewise. Add
14529 fatal_insn_not_found if the result is not recognized.
14530 (convertible_comparison_p): Pass in the scalar mode and use that.
14531 (general_scalar_to_vector_candidate_p): Likewise. Rename from
14532 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
14533 (scalar_to_vector_candidate_p): Remove by inlining into single
14535 (general_remove_non_convertible_regs): Rename from
14536 dimode_remove_non_convertible_regs.
14537 (remove_non_convertible_regs): Remove by inlining into single caller.
14538 (convert_scalars_to_vector): Handle SImode and DImode chains
14539 in addition to TImode chains.
14540 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
14541 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
14542 (*<maxmin>di3_doubleword): Likewise.
14544 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14545 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14547 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
14548 (*cond_bic<mode>_any): New patterns.
14550 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14552 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
14553 take the equivalent mask, as well as a bit count.
14554 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
14555 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
14556 (aarch64_sve_pred_and_operand): New predicates.
14557 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
14559 * config/aarch64/aarch64-sve.md
14560 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
14561 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
14563 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14565 * config/aarch64/aarch64-sve.md
14566 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14567 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
14570 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14571 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14573 * config/aarch64/aarch64-sve.md
14574 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
14575 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
14577 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14578 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14580 * config/aarch64/aarch64-sve.md
14581 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
14582 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
14584 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14586 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
14587 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
14590 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14591 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14593 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
14595 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14596 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14598 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
14599 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
14600 (aarch64_print_operand): Add support for %I.
14601 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
14602 Bitcast floating-point constants to the corresponding integer constant.
14603 (aarch64_float_const_representable_p): Handle vectors as well
14605 (aarch64_expand_sve_vcond): Make sure that the operands are valid
14606 for the new vcond_mask_<mode><vpred> expander.
14607 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
14608 test aarch64_float_const_representable_p.
14609 (aarch64_sve_reg_or_dup_imm): New predicate.
14610 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
14611 gen_vcond_mask_<mode><vpred> instead of
14612 gen_aarch64_sve_dup<mode>_const.
14613 (vcond_mask_<mode><vpred>): Turn into a define_expand that
14614 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
14615 for operands 1 and 2 respectively. Force operand 2 into a
14616 register if operand 1 is a register. Fold old define_insn...
14617 (aarch64_sve_dup<mode>_const): ...and this define_insn...
14618 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
14619 floating-point constants that can be moved as integers. Add
14620 alternatives for MOV /M and FMOV /M.
14621 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
14622 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
14623 1 and 2 respectively.
14624 * config/aarch64/constraints.md (Ufc): Handle vectors as well
14626 (vss): New constraint.
14628 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14630 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
14631 (aarch64_sve_float_maxmin_operand): New predicates.
14632 * config/aarch64/constraints.md (vsB): New constraint.
14634 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
14635 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
14636 UNSPEC_COND_FMINNM.
14637 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
14638 Use aarch64_sve_float_maxmin_operand for operand 2.
14639 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
14640 Add alternatives for the constant forms.
14642 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14644 * config/aarch64/constraints.md (vsb): New constraint.
14645 (vsm): Generalize description.
14646 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
14648 (sve_imm_con): Handle smax, smin, umax and umin.
14649 (sve_imm_prefix): New code attribute.
14650 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
14651 (aarch64_sve_vsb_operand): New predicates.
14652 (aarch64_sve_mul_immediate): Rename to...
14653 (aarch64_sve_vsm_immediate): ...this.
14654 (aarch64_sve_mul_operand): Rename to...
14655 (aarch64_sve_vsm_operand): ...this.
14656 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
14657 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
14658 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
14659 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
14660 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
14661 add movprfx support for the immediate alternatives.
14662 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
14664 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
14667 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14669 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
14670 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
14671 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
14673 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14675 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
14676 (optab, sve_int_op): Handle them.
14677 * config/aarch64/aarch64-sve.md: Expand comment.
14679 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14681 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
14682 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
14683 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
14685 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14687 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
14688 (aarch64_expand_sve_const_pred_trn): New functions.
14689 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
14690 use the above functions when the parameter is true.
14691 (aarch64_expand_sve_const_pred): Update call accordingly.
14692 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
14694 (@aarch64_sve_<perm_insn><mode>): ...this.
14696 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14698 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
14700 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
14701 (aarch64_sve_emit_int_cmp): New functions.
14702 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
14703 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
14704 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
14705 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
14706 (UNSPEC_PRED_Z): New unspec.
14707 (set_clobber_cc_nzc): Delete.
14708 * config/aarch64/aarch64-sve.md: Add a block comment about
14710 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
14711 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
14712 the old pattern with that name. Use UNSPEC_PRED_Z instead of
14713 UNSPEC_MERGE_PTRUE.
14714 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
14715 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
14716 check for compatible predicates.
14717 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
14718 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
14719 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
14722 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14724 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
14725 * config/aarch64/aarch64-sve.md: Add a section describing it.
14726 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
14727 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
14728 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
14729 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
14730 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
14731 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
14732 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
14733 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
14734 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
14735 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
14736 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
14737 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
14738 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
14739 (aarch64_evpc_rev_local): Update accordingly.
14741 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14743 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
14745 (SVE_BHSI, SVE_SDI): Tweak comment.
14746 (SVE_HSDI): Likewise. Fix definition.
14747 (SVE_SDF): New mode iterator.
14748 (elem_bits): New mode attribute.
14749 (SVE_COND_FCVT): New int iterator.
14750 * config/aarch64/aarch64-sve.md
14751 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
14752 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
14753 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
14754 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14755 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
14756 ...these new patterns.
14757 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
14758 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
14759 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
14761 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
14762 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
14763 ...these new patterns.
14764 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
14765 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
14766 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
14767 ...this new pattern.
14768 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
14769 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
14770 ...this new pattern.
14771 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
14773 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14775 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
14776 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
14777 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
14779 (optab, su): Handle them.
14780 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
14781 * config/aarch64/aarch64-sve.md
14782 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
14783 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
14784 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
14785 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
14786 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
14787 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
14788 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
14789 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
14790 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
14792 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
14793 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
14794 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
14795 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
14796 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
14797 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
14798 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
14799 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
14800 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
14801 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
14802 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
14803 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
14804 of UNSPEC_FLOAT_CONVERT.
14805 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
14806 aarch64_sve_extend<mode><Vwide>2.
14808 2019-08-14 Richard Biener <rguenther@suse.de>
14811 * config/i386/i386-features.c
14812 (dimode_scalar_chain::compute_convert_gain): Compute and dump
14813 individual instruction gain. Fix reg-reg copy GRP cost. Use
14814 ix86_cost->sse_op for vector instruction costs.
14816 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14818 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14819 (cmp_op): Handle it.
14820 (SVE_COND_FP_CMP): Rename to...
14821 (SVE_COND_FP_CMP_I0): ...this.
14822 (SVE_FP_CMP): Remove.
14823 * config/aarch64/aarch64-sve.md
14824 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14825 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14826 using unspecs to represent the comparison.
14827 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14828 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14830 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14831 (aarch64_unspec_cond_code): Move after integer code. Handle
14833 (aarch64_emit_sve_predicated_cond): Replace with...
14834 (aarch64_emit_sve_fp_cond): ...this new function.
14835 (aarch64_emit_sve_or_conds): Replace with...
14836 (aarch64_emit_sve_or_fp_conds): ...this new function.
14837 (aarch64_emit_sve_inverted_cond): Replace with...
14838 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14839 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14841 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14843 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14844 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14845 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14846 SVE_HSD instead of SVE_SD.
14848 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14849 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14851 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14853 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14855 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14856 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14857 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14858 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14859 (*div<SVE_F:mode>3): Generalize to...
14860 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14862 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14863 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14865 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14867 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14869 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14871 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14873 * config/aarch64/aarch64-sve.md: Add a block comment about the
14874 handling of predicated FP operations.
14875 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14876 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14877 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14878 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14879 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14881 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14882 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14884 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14885 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14886 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14887 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14888 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14889 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14890 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14891 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14892 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14893 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14894 strictness operands. Use aarch64_sve_pred_dominates_p to check
14895 whether the predicate on the conditional operation is suitable
14896 for merging. Split patterns into the canonical equal-predicate form.
14897 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14898 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14900 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14901 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14903 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14904 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14905 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14907 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14908 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14911 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14912 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14914 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14915 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14916 actually has, rather than relying on REG_EQUAL notes.
14917 Make the insn operand order match the SVE operand order.
14918 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14919 the SVE operand order.
14921 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14923 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14924 (aarch64_emit_set_immediate): Likewise.
14925 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14926 (aarch64_pfalse_reg): Likewise.
14927 (aarch64_convert_sve_data_to_pred): New function.
14928 (aarch64_sve_move_pred_via_while): Take an optional target register
14929 and the required register mode.
14930 (aarch64_expand_sve_const_pred_1): New function.
14931 (aarch64_expand_sve_const_pred): Likewise.
14932 (aarch64_expand_mov_immediate): Build an all-true predicate
14933 if the significant bits of the immediate are all true. Use
14934 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14935 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14936 before register allocation.
14937 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14938 a VNx16BI PTRUE when splitting the memory alternative.
14939 (vec_duplicate<mode>): Update accordingly.
14940 (*pred_cmp<cmp_op><mode>): Rename to...
14941 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14943 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14945 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14946 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14947 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14948 (UNSPEC_PTEST): New unspec.
14949 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14950 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14951 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14952 * config/aarch64/aarch64-sve.md: Add a new section describing the
14953 handling of UNSPEC_PTEST.
14954 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14955 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14956 (ptest_ptrue<mode>): Replace with...
14957 (aarch64_ptest<mode>): ...this new pattern.
14958 (cbranch<mode>4): Update after above changes.
14959 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14960 UNSPEC_PTEST_PTRUE.
14961 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14962 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14963 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14965 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14968 * builtins.c (builtin_with_linkage_p): New function.
14969 * builtins.h (builtin_with_linkage_p): New function.
14970 * symtab.c (write_symbol): Remove redundant assert.
14971 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14972 Remove FIXME and use builtin_with_linkage_p.
14974 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14976 PR middle-end/91421
14977 * tree-core.h (function_decl::function_code): Change type to
14979 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14980 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14981 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14982 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14983 is BUILT_IN_NORMAL.
14984 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14985 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14986 (fndecl_built_in_p): Change the type of the "name" argument to
14988 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14989 after check for DECL_BUILT_IN_CLASS.
14990 * cgraphclones.c (build_function_decl_skip_args): Use
14991 set_decl_built_in_function.
14992 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14993 * ipa-split.c (split_function): Likewise.
14994 * langhooks.c (add_builtin_function_common): Likewise.
14995 * omp-simd-clone.c (simd_clone_create): Likewise.
14996 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14997 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14998 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14999 DECL_FUNCTION_CODE.
15000 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
15001 instead of DECL_FUNCTION_CODE.
15002 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
15003 instead of DECL_FUNCTION_CODE.
15004 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
15005 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
15006 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
15007 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
15008 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
15009 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
15010 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
15011 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
15012 (alpha_gimple_fold_builtin): Likewise.
15013 * config/arc/arc.c (arc_expand_builtin): Likewise.
15014 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
15015 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
15016 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
15017 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
15018 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
15019 * config/frv/frv.c (frv_expand_builtin): Likewise.
15020 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
15021 (gcn_expand_builtin): Likewise.
15022 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
15023 (fold_builtin_cpu): Likewise.
15024 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
15025 * config/i386/i386.c (ix86_fold_builtin): Likewise.
15026 (ix86_gimple_fold_builtin): Likewise.
15027 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
15028 (ia64_expand_builtin): Likewise.
15029 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
15030 * config/mips/mips.c (mips_expand_builtin): Likewise.
15031 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
15032 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
15033 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
15034 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
15035 * config/pa/pa.c (pa_expand_builtin): Likewise.
15036 * config/pru/pru.c (pru_expand_builtin): Likewise.
15037 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
15038 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15040 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
15041 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
15042 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
15043 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
15044 (rs6000_builtin_reciprocal): Likewise.
15045 * config/rx/rx.c (rx_expand_builtin): Likewise.
15046 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
15047 * config/s390/s390.c (s390_expand_builtin): Likewise.
15048 * config/sh/sh.c (sh_expand_builtin): Likewise.
15049 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
15050 (sparc_fold_builtin): Likewise.
15051 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
15052 * config/spu/spu.c (spu_expand_builtin): Likewise.
15053 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
15054 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
15055 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
15056 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
15057 (xtensa_expand_builtin): Likewise.
15059 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15061 PR middle-end/91421
15062 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
15063 before the DECL_FUNCTION_CODE.
15064 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
15065 to check for a BUILT_IN_ALLOCA call.
15066 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
15067 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
15068 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
15069 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
15070 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
15071 for BUILT_IN_NORMAL functions.
15072 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
15073 test for BUILT_IN_TM_ABORT.
15074 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
15075 to check for a BUILT_IN_STACK_RESTORE call.
15076 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
15077 * tree-ssa-threadedge.c
15078 (record_temporary_equivalences_from_stmts_at_dest): Check for a
15079 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
15080 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
15081 test for a BUILT_IN_NORMAL call instead of a negative test for
15082 an internal function call.
15084 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15086 * tree.h (build_vector_a_then_b): Declare.
15087 * tree.c (build_vector_a_then_b): New function.
15088 * fold-const-call.c (fold_while_ult): Likewise.
15089 (fold_const_call): Use it to handle IFN_WHILE_ULT.
15090 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
15091 (aarch64_svpattern): New enum.
15092 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
15093 constants through aarch64_expand_mov_immediate.
15094 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
15095 than general_operand as the predicate for operand 1.
15096 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
15097 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
15099 (simd_immediate_info::simd_immediate_info): New overload that
15100 takes a scalar_int_mode and an svpattern.
15101 (simd_immediate_info::u): Add a "pattern" field.
15102 (svpattern_token): New function.
15103 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
15104 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
15105 (aarch64_sve_move_pred_via_while): New functions.
15106 (aarch64_expand_mov_immediate): Try using
15107 aarch64_sve_move_pred_via_while for predicates that contain N ones
15108 followed by M zeros but that do not correspond to a VLnnn pattern.
15109 (aarch64_sve_pred_valid_immediate): New function.
15110 (aarch64_simd_valid_immediate): Use it instead of dealing directly
15111 with PTRUE and PFALSE.
15112 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
15115 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
15117 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
15119 (darwin_override_options): Likewise.
15120 * config/darwin.h: Likewise.
15121 * config/darwin.opt: Likewise.
15122 * config/i386/i386.c (output_pic_addr_const): Likewise.
15123 * config/rs6000/darwin.h: Likewise.
15124 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
15125 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
15126 ... this TARGET_MACHO_SYMBOL_STUBS.
15127 (FUNCTION_PROFILER):Likewise.
15128 * config/i386/i386.h: Likewise.
15130 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15132 * config/i386/i386-expand.c (ix86_expand_vector_extract)
15133 <case E_V2SImode>: Use vec_extr path for
15134 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15135 <case E_V8QImode>: Ditto.
15136 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
15137 Use SWI48 mode iterator. Use %k to output operand 0.
15138 (*mmx_pextrw): New insn pattern.
15139 (*mmx_pextrb): Ditto.
15140 (*mmx_pextrb_zext): Ditto.
15142 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
15144 * target.def (libc_has_function, libc_has_fast_function): Improve
15145 documentation strings.
15146 * doc/tm.texi: Regenerate.
15148 2019-08-13 Caroline Tice <cmtice@google.com>
15151 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
15152 vtv_end.o or vtv_end_preinit.o files if !static.
15154 2019-08-13 Olivier Hainque <hainque@adacore.com>
15156 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
15158 2019-08-13 Olivier Hainque <hainque@adacore.com>
15160 * rtlanal.c (tablejump_casesi_pattern): New function, to
15161 determine if a tablejump insn is a casesi dispatcher. Extracted
15162 from patch_jump_insn.
15163 * rtl.h (tablejump_casesi_pattern): Declare.
15164 * cfgrtl.c (patch_jump_insn): Use it.
15165 * dwarf2cfi.c (create_trace_edges): Use it.
15167 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15170 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
15171 operand is larger than a long int.
15173 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15175 * machmode.h (opt_mode::else_mode): New function.
15176 (opt_mode::else_blk): Use it.
15177 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
15178 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
15179 (aarch64_gen_stepped_int_parallel): Likewise.
15180 (aarch64_stepped_int_parallel_p): Likewise.
15181 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15183 * config/aarch64/aarch64.c
15184 (aarch64_expand_sve_widened_duplicate): Delete.
15185 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
15186 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
15187 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
15188 argument. Use early returns in the !CONST_INT_P handling.
15189 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
15190 than handling some inline.
15191 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
15193 (aarch64_simd_container_mode): ...here.
15194 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
15195 (aarch64_sve_ld1rq_operand_p): New functions.
15196 * config/aarch64/predicates.md (descending_int_parallel)
15197 (aarch64_sve_ld1rq_operand): New predicates.
15198 * config/aarch64/constraints.md (UtQ): New constraint.
15199 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
15200 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
15201 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
15202 (@aarch64_sve_reinterpret<mode>): New expander.
15203 (*aarch64_sve_reinterpret<mode>): New pattern.
15204 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
15205 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
15206 (*sve_ld1rq<Vesize>): Replace with...
15207 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
15209 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
15211 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
15214 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15216 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
15217 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
15218 (msp430_check_path_for_devices): New.
15219 (parse_devices_csv_1): New.
15220 (parse_devices_csv): New.
15221 (msp430_extract_mcu_data): Try to find devices.csv and search for the
15222 MCU data in devices.csv before using the hard-coded data.
15223 Warn if devices.csv isn't found and the MCU wasn't found in the
15224 hard-coded data either.
15225 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
15226 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15227 Search for devices.csv on -I and -L paths.
15228 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15229 msp430_set_driver_var.
15230 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15231 -mdevices-csv-loc=.
15232 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15233 searched for devices.csv.
15234 (mwarn-devices-csv): Document option.
15236 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15238 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15239 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15240 Use a single Dn alternative instead of separate Dz and Dm
15241 alternatives. Use aarch64_output_sve_move_immediate.
15242 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15244 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15245 for predicates too.
15246 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15247 (aarch64_output_ptrue): Delete.
15249 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15251 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15253 (simd_immediate_info::value, simd_immediate_info::step)
15254 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15256 (simd_immediate_info::u): ...this new union.
15257 (simd_immediate_info::simd_immediate_info): Update accordingly.
15258 (aarch64_output_simd_mov_immediate): Likewise.
15259 (aarch64_output_sve_mov_immediate): Likewise.
15261 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15263 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15265 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15266 (msp430_select_cpu): New spec function.
15267 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15269 * config/msp430/msp430-devices.c: New file.
15270 * config/msp430/msp430-devices.h: New file.
15271 * config/msp430/msp430.c: Remove msp430_mcu_data.
15272 (msp430_option_override): Use msp430_extract_mcu_data to extract
15274 (msp430_use_f5_series_hwmult): Likewise.
15275 (use_32bit_hwmult): Likewise.
15276 (msp430_no_hwmult): Likewise.
15277 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15279 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15281 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15282 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15283 Remove hard-coded MCU multilib data.
15285 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15287 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15288 based on the mode instead of testing properties of it.
15290 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15292 * doc/md.texi: Document the x and y constraints for AArch64.
15293 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15294 (FP_LO8_REGS): New reg_class.
15295 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15296 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15297 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15298 * config/aarch64/predicates.md (aarch64_simd_register): Use
15299 FP_REGNUM_P instead of checking the classes manually.
15300 * config/aarch64/constraints.md (y): New constraint.
15302 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15304 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15305 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15306 * config/aarch64/aarch64-simd.md
15307 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15308 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15309 from the asm template.
15310 * config/aarch64/aarch64-sve.md
15311 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15312 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15313 from the asm template.
15314 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15315 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15316 from the asm template.
15317 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15319 2019-08-13 Martin Liska <mliska@suse.cz>
15321 * value-prof.c (gimple_ic_transform): Add new line.
15322 Print details with MSG_NOTE.
15324 2019-08-13 Martin Liska <mliska@suse.cz>
15326 * doc/invoke.texi: Document automatic detection of jobserver.
15327 * lto-wrapper.c (run_gcc): Detect jobserver always.
15329 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15331 * config/i386/i386-expand.c (ix86_expand_vector_set)
15332 <case E_V2SImode>: Use vec_merge path for
15333 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15334 <case E_V8QImode>: Ditto.
15335 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15336 (*mmx_pinsrb): Ditto.
15338 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15342 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15343 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15344 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15345 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15346 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15348 2019-08-12 Richard Biener <rguenther@suse.de>
15351 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
15354 2019-08-12 Richard Biener <rguenther@suse.de>
15357 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
15358 lang_mask option, always use CL_DRIVER.
15359 (get_options_from_collect_gcc_options): Adjust.
15360 (find_and_merge_options): Likewise.
15361 (run_gcc): Likewise.
15363 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15365 * ipa-predicate.c (add_condition): Restore inverted test.
15367 2019-08-10 Jakub Jelinek <jakub@redhat.com>
15369 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
15370 (enum omp_clause_device_type_kind): New enum.
15371 (struct tree_omp_clause): Add subcode.device_type_kind.
15372 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
15373 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15374 for device_type clause.
15375 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
15376 * tree-pretty-print.c (dump_omp_clause): Likewise.
15379 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
15382 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
15384 * reload1.c (finish_spills): Do not check ira_conflicts_p when
15385 handling spilled pseudos.
15387 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15390 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
15391 to preserve the contents of the original insns.
15393 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15395 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
15396 (addsi3_compare_op2): Likewise.
15398 2019-08-09 Martin Liska <mliska@suse.cz>
15400 * alias.c (alias_ptr_types_compatible_p): Strengten
15401 type comparison in LTO mode.
15403 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
15405 PR middle-end/90313
15406 * tree-tailcall.c (find_tail_calls): Reject calls that might
15407 read from an escaped RESULT_DECL.
15409 2019-08-09 Martin Liska <mliska@suse.cz>
15411 * doc/invoke.texi: Document the option value.
15412 * lto-wrapper.c (run_gcc): Set auto_parallel
15413 only with -flto=auto.
15415 2019-08-09 Martin Liska <mliska@suse.cz>
15417 * opts.c (common_handle_option): Error for an invalid argument
15420 2019-08-09 Martin Liska <mliska@suse.cz>
15422 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
15423 use dump_printf to report optimization.
15424 (sem_variable::merge): Likwise.
15425 (sem_item_optimizer::merge_classes): Use dump_printf to report
15428 2019-08-09 Martin Liska <mliska@suse.cz>
15430 * value-prof.c (gimple_divmod_fixed_value_transform):
15431 Use dump_printf_loc.
15432 (gimple_mod_pow2_value_transform): Likewise.
15433 (gimple_mod_subtract_transform): Likewise.
15434 (init_node_map): Likewise.
15435 (gimple_ic_transform): Likewise.
15436 (gimple_stringops_transform): Likewise.
15438 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15440 * doc/extend.texi: Add const qualifier to ld intrinsics.
15442 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15444 * config/rs6000/dfp.md (D64_D128): Rename to ...
15445 (DDTD): ... this, throughout.
15446 (dfp_suffix): Rename to ...
15447 (q): ... this, throughout.
15449 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15451 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
15452 (dfp_suffix): Ditto.
15453 (adddd3, addtd3): Merge to ...
15454 (add<mode>3 for D64_D128): ... this.
15455 (subdd3, subtd3): Merge to ...
15456 (sub<mode>3 for D64_D128): ... this.
15457 (muldd3, multd3): Merge to ...
15458 (mul<mode>3 for D64_D128): ... this.
15459 (divdd3, divtd3): Merge to ...
15460 (div<mode>3 for D64_D128): ... this.
15461 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
15462 (*cmp<mode>_internal1 for D64_D128): ... this.
15463 (ftruncdd2, ftrunctd2): Merge to ...
15464 (ftrunc<mode>2 for D64_D128): ... this.
15465 (fixdddi2, fixtddi2): Merge to ...
15466 (fix<mode>di2 for D64_D128): ... this.
15468 2019-08-08 Jim Wilson <jimw@sifive.com>
15471 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
15472 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
15473 Pass into recursive call.
15474 (riscv_flatten_aggregate_argument): New arg. Pass to
15475 riscv_flatten_aggregate_field.
15476 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
15477 riscv_flatten_aggregate_argument twice, with false and true as last
15478 arg. Process result twice. Compare results and warn if different.
15479 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
15481 2019-08-08 Martin Liska <mliska@suse.cz>
15484 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
15485 * lto-wrapper.c (jobserver_active_p): Likewise.
15487 2019-08-08 Martin Liska <mliska@suse.cz>
15489 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
15490 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
15491 (create_version_clone_with_body): Likewise.
15493 2019-08-08 Jakub Jelinek <jakub@redhat.com>
15495 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
15496 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
15497 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
15498 GOVD_EXPLICIT flags.
15499 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
15500 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
15501 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
15502 call install_var_field with mask 11 instead of 3.
15503 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
15504 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
15506 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15508 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
15509 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
15511 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15513 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
15514 MOVPRFX alternatives. Make the GPR alternatives more expensive
15517 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15519 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
15520 Disparage the GPR alternative relative to the FPR one.
15521 Fix handling of 8-bit and 16-bit FPR values.
15523 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15525 * config/aarch64/iterators.md (BITWISEV): Delete.
15526 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
15527 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
15528 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15529 UNSPEC_FMINNMV, UNSPEC_FMINV.
15530 (bit_reduc_op): Delete.
15531 (sve_int_op): New int attribute.
15532 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15533 UNSPEC_FMINNMV, UNSPEC_FMINV.
15534 * config/aarch64/aarch64-sve.md
15535 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15536 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15537 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
15538 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
15539 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
15540 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
15542 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
15543 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
15544 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
15545 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
15546 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
15549 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15551 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
15552 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
15553 (fms<mode>4, *fms<mode>4): Replace with...
15554 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15555 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
15556 Use unspecs instead of rtx codes.
15557 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
15558 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
15560 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15562 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
15564 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
15565 * config/aarch64/aarch64-sve.md
15566 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
15567 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
15568 use a single unspec for the rhs.
15569 (*<su><maxmin><mode>3): Delete.
15570 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
15572 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15574 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
15575 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
15576 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
15577 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
15578 (optab, sve_fp_op): Handle them.
15579 (SVE_FP_UNARY): Delete.
15580 (optab): Remove sqrt entry.
15581 (sve_fp_op): Remove neg, abs and sqrt entries.
15582 (SVE_COND_FP_UNARY): New int iterator.
15583 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
15584 (*<frint_pattern><mode>2): Delete.
15585 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15586 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15587 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15588 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15590 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15592 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
15594 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15596 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
15597 (UNSPEC_COND_FADD): ...this.
15598 (UNSPEC_COND_SUB): Rename to...
15599 (UNSPEC_COND_FSUB): ...this.
15600 (UNSPEC_COND_MUL): Rename to...
15601 (UNSPEC_COND_FMUL): ...this.
15602 (UNSPEC_COND_DIV): Rename to...
15603 (UNSPEC_COND_FDIV): ...this.
15604 (UNSPEC_COND_MAX): Rename to...
15605 (UNSPEC_COND_FMAXNM): ...this.
15606 (UNSPEC_COND_MIN): Rename to...
15607 (UNSPEC_COND_FMINNM): ...this.
15608 (UNSPEC_COND_LT): Rename to...
15609 (UNSPEC_COND_FCMLT): ...this.
15610 (UNSPEC_COND_LE): Rename to...
15611 (UNSPEC_COND_FCMLE): ...this.
15612 (UNSPEC_COND_EQ): Rename to...
15613 (UNSPEC_COND_FCMEQ): ...this.
15614 (UNSPEC_COND_NE): Rename to...
15615 (UNSPEC_COND_FCMNE): ...this.
15616 (UNSPEC_COND_GE): Rename to...
15617 (UNSPEC_COND_FCMGE): ...this.
15618 (UNSPEC_COND_GT): Rename to...
15619 (UNSPEC_COND_FCMGT): ...this.
15620 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
15621 (sve_fp_op_rev): Update accordingly.
15622 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
15624 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15626 * config/aarch64/aarch64-sve.md: Reorganize contents and add
15628 * config/aarch64/check-sve-md.awk: New file.
15629 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
15630 (insn-conditions.md): Depend on it.
15632 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
15635 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
15636 (*negsi2_cmpz_zext): Ditto.
15638 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15640 * config/aarch64/iterators.md (commutative): Remove.
15642 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
15645 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
15646 processing COLLECT_GCC_OPTIONS.
15647 (run_gcc): Likewise.
15649 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
15651 PR tree-optimization/91109
15652 * lra-remat.c (update_scratch_ops): Remove assignment of the
15655 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15657 * data-streamer.h (streamer_write_poly_uint64): Declare.
15658 (streamer_read_poly_uint64): Likewise.
15659 * data-streamer-in.c (streamer_read_poly_uint64): New function.
15660 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
15661 * ipa-predicate.h (condition::size): Turn into a poly_int64.
15662 (add_condition): Take a poly_int64 size.
15663 * ipa-predicate.c (add_condition): Likewise.
15664 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
15665 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
15666 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
15667 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
15668 condition::size as a poly_int64.
15669 (unmodified_parm_1): Take a poly_int64 size pointer.
15670 (unmodified_parm): Likewise.
15671 (unmodified_parm_or_parm_agg_item): Likewise.
15672 (set_cond_stmt_execution_predicate): Update accordingly.
15673 (set_switch_stmt_execution_predicate): Likewise.
15674 (will_be_nonconstant_expr_predicate): Likewise.
15675 (will_be_nonconstant_predicate): Likewise.
15676 (inline_read_section): Stream condition::size as a poly_int.
15677 (ipa_fn_summary_write): Likewise.
15679 2019-08-07 Martin Liska <mliska@suse.cz>
15681 * fold-const.c (twoval_comparison_p): Replace int
15682 with bool as a return type.
15683 (simple_operand_p): Likewise.
15684 (operand_equal_p): Replace int with bool as a return type.
15685 * fold-const.h (operand_equal_p): Likewise.
15687 2019-08-07 Jakub Jelinek <jakub@redhat.com>
15689 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
15690 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
15691 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15692 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
15693 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
15694 * tree-pretty-print.c (dump_omp_clause): Likewise.
15695 * tree-nested.c (convert_nonlocal_omp_clauses,
15696 convert_local_omp_clauses): Likewise.
15697 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
15699 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
15700 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
15701 clause with array or reference to array types, no matter what type
15702 except for reference it has.
15704 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
15706 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
15708 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
15710 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
15711 (arch_canonicalize): Support rv32g and rv64g and fix error
15714 2019-08-06 Martin Liska <mliska@suse.cz>
15716 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
15717 and DECL_IS_OPERATOR_DELETE_P.
15719 2019-08-06 Jakub Jelinek <jakub@redhat.com>
15721 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
15722 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
15723 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
15724 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
15725 (gimplify_omp_for): Don't do C++ random access iterator clause
15726 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
15727 don't predetermine the artificial iterator in case of C++ random
15728 access iterators as lastprivate, but private. For OMP_LOOP, force
15729 bind expr around simd body and force for_pre_body before the
15730 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
15731 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
15732 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
15733 diff var of C++ random access iterators. Handle
15734 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
15735 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
15736 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
15737 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
15738 * omp-low.c (lower_rec_input_clauses): For
15739 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
15740 variables instead of default constructing them.
15741 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
15742 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
15743 is_taskloop_ctx check from the assert to the guarding condition.
15745 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
15747 * config/riscv/multilib-generator: (canonical_order): New.
15748 (arch_canonicalize): Dito.
15749 Apply arch_canonicalize for alts.
15751 2019-08-05 Martin Sebor <msebor@redhat.com>
15753 * doc/extend.texi (Common Variable Attributes): Document alias
15756 2019-08-05 Marek Polacek <polacek@redhat.com>
15758 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
15759 * doc/invoke.texi: Document -Wcomma-subscript.
15761 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15763 * tree-core.h (tree_function_decl): Make function_code an
15764 independent field. Group the remaining bitfields into bytes
15765 and move decl_type so that it contines to be at a byte boundary.
15766 Leave 12 bits for future expansion.
15768 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15770 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
15771 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
15772 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
15775 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15777 * gimple.h (gimple_move_vops): Declare.
15778 * gimple.c (gimple_move_vops): New function
15779 * gimple-fold.c (replace_call_with_call_and_fold)
15780 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
15781 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
15782 (gimple_fold_call): Use it.
15783 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
15784 * tree-call-cdce.c (use_internal_fn): Likewise.
15785 * tree-if-conv.c (predicate_load_or_store): Likewise.
15786 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
15787 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15788 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
15789 (update_call_from_tree): Likewise.
15790 * tree-vect-stmts.c (vectorizable_load): Likewise.
15791 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
15793 2019-08-05 Martin Liska <mliska@suse.cz>
15796 * tree-ssa-dce.c (propagate_necessity): Handle new operators
15797 with not arguments.
15798 (eliminate_unnecessary_stmts): Likewise.
15800 2019-08-05 Richard Biener <rguenther@suse.de>
15802 PR middle-end/91169
15803 * fold-const.c (get_array_ctor_element_at_index): Create
15804 offset_ints according to the sign of the index type and treat
15805 that as signed if it is obviously so.
15807 2019-08-05 Jakub Jelinek <jakub@redhat.com>
15810 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
15811 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
15812 _mm256_storeu2_m128i): New function.
15814 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15816 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15817 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15819 2019-08-05 Alan Modra <amodra@gmail.com>
15822 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15823 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15825 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15827 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15828 bug that was fixed in Tcl 8.6.1.
15830 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15832 * config/rs6000/future.md: New file.
15833 * config/rs6000/rs6000.md: Include future.md.
15834 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15836 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15838 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15839 check to use targetm.slow_unaligned_access instead.
15841 * function.c (assign_param_data_one): Remove unused data members.
15843 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15845 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15846 build_distinct_type_copy.
15847 (simd_clone_adjust_argument_types): Ditto.
15848 (simd_clone_adjust): Call build_distinct_type_copy here.
15849 (expand_simd_clones): Ditto.
15851 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15854 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15856 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15858 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15859 from 'const void *'.
15860 (sort_locs_in_loop_postorder_cmp): Likewise.
15862 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15864 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15865 (hot-bb-count-ws-permille): Likewise.
15866 (hot-bb-frequency-fraction): Likewise.
15867 (unlikely-bb-count-fraction): Likewise.
15868 * params.def (hot-bb-count-fraction): Rework description.
15869 (hot-bb-count-ws-permille): Likewise.
15870 (hot-bb-frequency-fraction): Likewise.
15871 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15872 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15874 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15877 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15880 2019-08-02 Richard Biener <rguenther@suse.de>
15882 * vec.h (vec::sort): Add gcc_qsort_r support.
15883 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15884 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15885 to gcc_qsort_r style callback.
15886 (sort_locs_in_loop_postorder_cmp): Likewise.
15887 (analyze_memory_references): Use gcc_sort_r interfaces.
15888 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15890 2019-08-02 Martin Liska <mliska@suse.cz>
15893 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15894 to detect working job server.
15895 (driver::detect_jobserver): Test whether jobserver
15896 is active from GCC driver. That will prevent situation where
15897 GCC is invoked from a LD plugin and the linker already uses
15898 file descriptors suggested by make. That leads to a wrong
15900 * gcc.h (driver): Add detect_jobserver.
15901 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15902 not scanning for --jobserver-auth prefix.
15904 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15906 PR tree-optimization/91201
15907 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15908 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15911 2019-08-01 Martin Sebor <msebor@redhat.com>
15914 * tree.c (type_initializer_zero_p): Define.
15915 * tree.h (type_initializer_zero_p): New function.
15917 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15919 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15921 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15923 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15924 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15925 * predict.c (maybe_hot_count_p): Likewise.
15926 (maybe_hot_bb_p): Tweak comment.
15927 (maybe_hot_edge_p): Likewise.
15928 (probably_never_executed): Likewise. Minor tweak.
15929 (probably_never_executed_bb_p): Likewise.
15930 (unlikely_executed_edge_p): Likewise.
15931 (probably_never_executed_edge_p): Likewise.
15932 (optimize_function_for_size_p): Likewise.
15933 (optimize_function_for_speed_p): Likewise.
15934 (function_optimization_type): Likewise.
15935 (optimize_bb_for_size_p): Likewise.
15936 (optimize_bb_for_speed_p): Likewise.
15937 (bb_optimization_type): Likewise.
15938 (optimize_edge_for_size_p): Likewise.
15939 (optimize_edge_for_speed_p): Likewise.
15940 (optimize_insn_for_size_p): Likewise.
15941 (optimize_insn_for_speed_p): Likewise.
15942 (optimize_loop_for_size_p): Likewise.
15943 (optimize_loop_for_speed_p): Likewise.
15944 (optimize_loop_nest_for_speed_p): Likewise.
15945 (optimize_loop_nest_for_size_p): Likewise.
15946 (predictable_edge_p): Likewise.
15947 (handle_missing_profiles): Minor tweak.
15949 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15951 * config/rs6000/predicates.md (pcrel_external_address): Update
15954 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15957 * config/i386/mmx.md (usadv8qi): New expander.
15959 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15962 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15963 with reserved names that are in a system header.
15965 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15967 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15968 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15969 (*vec_extractv2si_0_zext): Ditto.
15970 (*vec_extractv2si_1): Add (rm,x) alternative.
15971 (*vec_extractv2si_1_zext): New insn pattern.
15972 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15975 2019-08-01 Richard Biener <rguenther@suse.de>
15977 * domwalk.c (bb_postorder): Remove static variable.
15978 (cmp_bb_postorder): Adjust.
15979 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15980 (dom_walker::walk): Adjust.
15982 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15984 * sort.cc (sort_r_ctx): New struct.
15985 (reorder23): Make templated on context type.
15986 (reorder45): Ditto.
15987 (cmp1): Ditto. Adjust signature.
15989 (mergesort): Ditto.
15990 [CHECKING_P] (cmp2to3): New static function. Use it...
15991 (gcc_qsort) [CHECKING_P]: ...here.
15992 (gcc_sort_r): New function.
15993 * system.h (sort_r_cmp_fn): New function typedef.
15994 (qsort_chk): Adjust signature.
15995 (gcc_sort_r): Declare.
15996 * vec.c (qsort_chk_error): Adjust.
15997 (qsort_chk): Adjust.
15999 2019-08-01 Richard Biener <rguenther@suse.de>
16001 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
16002 (compute_antic): Localize it here.
16004 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
16006 * common/config/riscv/riscv-common.c: Check -march string ends
16009 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
16011 * ipa-devirt.c (type_warning_cmp): Make static.
16012 (decl_warning_cmp): Ditto.
16014 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
16017 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
16018 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
16019 use of deleted rs6000_dejagnu_cpu_index variable.
16020 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
16021 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16022 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
16023 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
16024 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
16025 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
16027 2019-07-31 Richard Biener <rguenther@suse.de>
16029 PR tree-optimization/91280
16030 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16031 Decompose MEM_REF manually for offset handling.
16033 2019-07-31 Richard Biener <rguenther@suse.de>
16035 PR tree-optimization/91293
16036 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
16037 of reduction stmts.
16039 2019-07-31 Matt Thomas <matt@3am-software.com>
16040 Nick Hudson <nick@nthcliff.demon.co.uk>
16041 Matthew Green <mrg@eterna.com.au>
16042 Maya Rashish <coypu@sdf.org>
16044 * config.gcc (hppa*-*-netbsd*): New target.
16045 * config/pa/pa-netbsd.h: New file.
16046 * config/pa/pa32-netbsd.h: New file.
16048 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16050 PR tree-optimization/91201
16051 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
16053 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
16055 * config/gcn/gcn-valu.md
16056 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
16057 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
16058 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
16059 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
16060 struct ilist. Add nops for delayeduse insns.
16061 * config/gcn/gcn.md (delayeduse): New attribute.
16062 (*movbi): Remove s_waitcnt from stores.
16063 (*mov<mode>_insn): Likewise.
16064 (*movti_insn): Likewise. Add delayeduse attribute.
16065 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
16066 (atomic_store<mode>): Remove or adjust s_waitcnt.
16068 2019-07-31 Richard Biener <rguenther@suse.de>
16070 * vr-values.h (vr_values::swap_vr_value): New.
16071 (vr_values::free_value_range): likewise.
16072 * vr-values.c (vr_values::swap_vr_value): Implement.
16073 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
16074 Do not return a range or take a var.
16075 (evrp_range_analyzer::stack): Change back to recording a non-const
16077 * gimple-ssa-evrp-analyze.c
16078 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
16080 (evrp_range_analyzer::pop_to_marker): Adjust.
16081 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
16082 (evrp_range_analyzer::pop_value_range): Likewise. Free the
16083 no longer needed value-range.
16085 2019-07-31 Martin Liska <mliska@suse.cz>
16087 * tree-ssa-dce.c (propagate_necessity): Delete operator can
16088 have size and (or) alignment as 2nd and later arguments.
16089 Mark all of them as necessary.
16091 2019-07-31 Richard Biener <rguenther@suse.de>
16093 PR tree-optimization/91178
16094 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
16095 Use tail-recursion.
16097 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16099 PR tree-optimization/91201
16100 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
16101 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
16103 (reduc_plus_scal_<mode>): Improve formatting by introducing
16106 2019-07-31 Sudakshina Das <sudi.das@arm.com>
16108 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
16109 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
16110 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
16111 (aarch64_init_tme_builtins): New.
16112 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
16113 (aarch64_expand_builtin_tme): New.
16114 (aarch64_expand_builtin): Handle TME builtins.
16115 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
16116 __ARM_FEATURE_TME when enabled.
16117 * config/aarch64/aarch64-option-extensions.def: Add "tme".
16118 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
16120 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
16121 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
16123 (tstart, ttest, tcommit, tcancel): New instructions.
16124 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
16125 (__tcancel, __ttest): New.
16126 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
16127 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
16128 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
16129 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
16130 * config/arm/types.md: Add new tme type attr.
16131 * doc/invoke.texi: Document "tme".
16133 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
16135 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
16136 warn_unused_result attribute.
16137 (cmse_check_address_range): Add warn_unused_result attribute.
16139 2019-07-31 Richard Biener <rguenther@suse.de>
16141 PR tree-optimization/91257
16142 * tree-vrp.c (union_ranges): Unify equality and less tests
16143 by using compare_values. Re-order cheap tests first.
16145 2019-07-31 Jakub Jelinek <jakub@redhat.com>
16147 PR middle-end/91301
16148 * gimplify.c (gimplify_omp_for): If for class iterator on
16149 distribute parallel for there is no data sharing clause
16150 on inner_for_stmt, look for private clause on combined
16151 parallel too and if found, move it to inner_for_stmt.
16153 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
16155 * lra-int.h (lra_operand_data): Remove early_clobber field.
16156 (lra_insn_reg): Likewise.
16157 * lra.c (debug_operand_data): Update accordingly.
16158 (setup_operand_alternative): Likewise.
16159 (new_insn_reg): Likewise. Remove early_clobber parameter.
16160 (collect_non_operand_hard_regs): Update call accordingly.
16161 Don't assign to lra_insn_reg::early_clobber.
16162 (add_regs_to_insn_regno_info): Remove early_clobber parameter
16163 and update calls to new_insn_reg.
16164 (lra_update_insn_regno_info): Update calls accordingly.
16165 * lra-constraints.c (update_and_check_small_class_inputs): Take the
16166 alternative number as a parameter and test whether the operand
16167 is earlyclobbered in that particular alternative.
16168 (process_alt_operands): Update call accordingly. Use per-alternative
16169 checks for earyclobber here too.
16170 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
16171 against zero for IRA_UNKNOWN_ALT.
16173 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16175 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
16177 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
16179 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
16180 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16182 2019-07-30 Martin Liska <mliska@suse.cz>
16185 * cgraph.c (cgraph_edge::make_direct): Use
16186 edge->indirect_unknown_callee as edge->resolve_speculation can
16187 deallocate edge which is this pointer.
16189 2019-07-30 Richard Biener <rguenther@suse.de>
16191 PR tree-optimization/91257
16192 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
16194 2019-07-30 Martin Liska <mliska@suse.cz>
16196 * doc/invoke.texi: Document new behavior.
16197 * lto-wrapper.c (cpuset_popcount): New function
16198 is a copy of libgomp/config/linux/proc.c.
16199 (init_num_threads): Likewise.
16200 (run_gcc): Automatically detect core count for -flto.
16201 (jobserver_active_p): New function.
16203 2019-07-30 Richard Biener <rguenther@suse.de>
16205 PR tree-optimization/91257
16206 * bitmap.h (bitmap_ior_into_and_free): Declare.
16207 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
16208 whether to add the unliked element to the freelist.
16209 (bitmap_list_insert_element_after): Add defaulted param for
16210 an already allocated element.
16211 (bitmap_ior_into_and_free): New function.
16212 * tree-ssa-structalias.c (condense_visit): Reduce the
16213 ponts-to and edge bitmaps of the SCC members in a
16214 logarithmic fashion rather than all to one.
16216 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
16218 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
16219 parameter. When nonnull, make sure that the addition or subtraction
16220 has the same condition.
16221 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
16222 for CFN_COND_MUL too.
16224 2019-07-30 Richard Biener <rguenther@suse.de>
16226 PR tree-optimization/91291
16227 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16230 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16232 PR middle-end/91216
16233 * omp-low.c (global_nonaddressable_vars): New variable.
16234 (use_pointer_for_field): For global decls, if they are non-addressable,
16235 remember it in the global_nonaddressable_vars bitmap, if they are
16236 addressable and in the global_nonaddressable_vars bitmap, ignore their
16237 TREE_ADDRESSABLE bit.
16238 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16239 vars in global_nonaddressable_vars bitmap.
16240 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16243 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16244 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16245 comparison to unsigned HOST_WIDE_INT before shifting it left.
16247 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16249 * config/i386/i386.md (movstrict<mode>): Use register_operand
16250 predicate for operand 0. Add expander condition. Assert that
16251 operand 0 is a SUBREG RTX.
16252 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16253 Update operand constraints and insn condition.
16254 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16255 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16256 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16257 Update operand 0 constraints.
16258 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16260 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16262 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16263 when -m{code,data}-region are used without -mlarge.
16264 * config/msp430/msp430.c (msp430_option_override): Error when a
16265 non-default code or data region is used without -mlarge.
16266 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16267 attributes when they are used without -mlarge.
16269 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16272 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16274 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16276 PR middle-end/91242
16277 * wide-int.h (generic_wide_int::sext_elt): New function.
16278 * inchash.h (hash::add_wide_int): Use it instead of elt.
16280 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16282 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16284 * config/arm/arm.md (<crc_variant>): Rename to...
16285 (arm_<crc_variant>): ... This.
16286 (<cdp>): Rename to...
16287 (arm_<cdp>): ... This.
16288 (<ldc>): Rename to...
16289 (arm_<ldc>): ... This.
16290 (<stc>): Rename to...
16291 (arm_<stc>): ... This.
16292 (<mcr>): Rename to...
16293 (arm_<mcr>): ... This.
16294 (<mrc>): Rename to...
16295 (arm_<mrc>): ... This.
16296 (<mcrr>): Rename to...
16297 (arm_<mcrr>): ... This.
16298 (<mrrc>): Rename to...
16299 (arm_<mrrc>): ... This.
16301 2019-07-29 Richard Biener <rguenther@suse.de>
16303 PR tree-optimization/91257
16304 * tree-ssa-sccvn.h (struct vn_avail): New.
16305 (struct vn_ssa_aux): Add avail member.
16306 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16307 member, add m_avail_freelist one.
16308 (rpo_elim::~rpo_elim): Remove.
16309 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16311 (rpo_elim::eliminate_push_avail): Likewise.
16312 (do_unwind): Likewise.
16313 (do_rpo_vn): Likewise.
16315 2019-07-29 Richard Biener <rguenther@suse.de>
16317 PR tree-optimization/91257
16318 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16319 most cases, instead call compare_values which handles the
16320 symbolic ranges we handle specially.
16321 (compare_values_warnv): Do not call operand_less_p but open-code
16322 the effective fold calls. Avoid converting so much.
16324 2019-07-29 Martin Liska <mliska@suse.cz>
16326 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16327 remove LHS of operator new call. It's handled latter.
16329 2019-07-29 Richard Biener <rguenther@suse.de>
16331 PR tree-optimization/91267
16332 * vr-values.c (vr_values::update_value_range): Add early return
16333 for effectively VARYING lattice entry.
16335 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16338 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16339 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16340 necessary if keep_all_vdefs_p is true.
16341 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16342 that keep_all_vdefs_p is false.
16343 (mark_all_reaching_defs_necessary): Likewise.
16344 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16346 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16348 * common.opt (Og): Change the initial value of flag_dse to 0.
16349 * opts.c (default_options_table): Move OPT_ftree_dse from
16350 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16351 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
16352 entry before the OPT_ftree_sra entry.
16353 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
16354 of flags disabled by Og.
16356 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16358 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
16361 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16363 * doc/sourcebuild.texi (check-function-bodies): Document.
16365 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16367 * simplify-rtx.c (simplify_const_unary_operation): Fold a
16368 VEC_DUPLICATE of a fixed-length vector even if the result
16369 is variable-length. Likewise fold a duplicate of a
16370 variable-length vector if the variable-length vector is
16371 itself a duplicate of a fixed-length sequence.
16372 (test_vector_ops_duplicate): Test more cases.
16374 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16376 * vector-builder.h (vector_builder): Add a shape template parameter.
16377 (vector_builder::new_unary_operation): New function, generalizing
16378 the old tree_vector_builder function.
16379 (vector_builder::new_binary_operation): Likewise.
16380 (vector_builder::binary_encoded_nelts): Likewise.
16381 * int-vector-builder.h (int_vector_builder): Update template
16382 parameters to vector_builder.
16383 (int_vector_builder::shape_nelts): New function.
16384 * rtx-vector-builder.h (rtx_vector_builder): Update template
16385 parameters to vector_builder.
16386 (rtx_vector_builder::shape_nelts): New function.
16387 (rtx_vector_builder::nelts_of): Likewise.
16388 (rtx_vector_builder::npatterns_of): Likewise.
16389 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
16390 * tree-vector-builder.h (tree_vector_builder): Update template
16391 parameters to vector_builder.
16392 (tree_vector_builder::shape_nelts): New function.
16393 (tree_vector_builder::nelts_of): Likewise.
16394 (tree_vector_builder::npatterns_of): Likewise.
16395 (tree_vector_builder::nelts_per_pattern_of): Likewise.
16396 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
16397 (tree_vector_builder::new_binary_operation): Delete.
16398 (tree_vector_builder::binary_encoded_nelts): Likewise.
16399 * simplify-rtx.c: Include rtx-vector-builder.h.
16400 (distributes_over_addition_p): New function.
16401 (simplify_const_unary_operation)
16402 (simplify_const_binary_operation): Generalize handling of vector
16403 constants to include variable-length vectors.
16404 (test_vector_ops_series): Add more tests.
16406 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
16409 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
16410 than INDENTIFIER_POINTER.
16412 2019-07-28 Martin Liska <mliska@suse.cz>
16415 * cgraph.c (symbol_table::create_edge): Always allocate
16417 (symbol_table::free_edge): Store summary_id to
16418 edge_released_summary_ids if != -1;
16419 * cgraph.h (NEXT_FREE_NODE): Remove.
16420 (SET_NEXT_FREE_NODE): Likewise.
16421 (NEXT_FREE_EDGE): Likewise.
16422 (symbol_table::release_symbol): Store summary_id to
16423 cgraph_released_summary_ids if != -1;
16424 (symbol_table::allocate_cgraph_symbol): Always allocate
16427 2019-07-28 Alan Modra <amodra@gmail.com>
16429 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
16432 2019-07-28 Alan Modra <amodra@gmail.com>
16435 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
16437 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
16438 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
16439 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
16441 2019-07-28 Alan Modra <amodra@gmail.com>
16444 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
16445 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
16446 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
16447 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
16448 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
16449 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
16450 in asm_default spec.
16451 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
16452 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
16454 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
16456 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
16458 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16461 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
16462 * config/aarch64/aarch64-option-extensions.def: Add new comments
16463 and restore easier to read options.
16465 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16467 * convert.c (convert_to_real_1): Move part of conversion code...
16468 * match.pd: ...To here.
16470 2019-07-26 Martin Jambor <mjambor@suse.cz>
16473 * ipa-inline-transform.c (check_speculations_1): New function.
16474 (push_all_edges_in_set_to_vec): Likewise.
16475 (check_speculations): Use check_speculations_1, new parameter
16477 (inline_call): Pass new_edges to check_speculations.
16478 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
16480 (speculation_useful_p): Early return true if edge is inlined, remove
16481 later checks for inline_failed.
16483 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
16485 PR rtl-optimization/91223
16486 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
16487 matching with INOUT operand.
16489 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16491 * stmt.c (expand_case): Try to narrow the index type if it's larger
16492 than a word. Tidy up.
16494 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16496 * cif-code.def (NEVER_CALL): New code.
16497 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
16498 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
16500 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
16502 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
16503 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16505 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16507 * ipa-devirt.c (add_type_duplicate): Fix return value.
16509 2019-07-25 Richard Biener <rguenther@suse.de>
16511 * tree-vrp.c (extract_range_from_multiplicative_op): Add
16512 type parameter and use it instead of guessing expression
16513 type from the first operand.
16514 (extract_range_from_binary_expr): Pass expr_type down.
16516 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16518 * config/arm/arm.md (SATrev): Change to code attribute.
16519 (*satsi_<SAT:code>): Adjust for the above.
16520 (*satsi_<SAT:code>_shift): Likewise.
16522 2019-07-25 Richard Biener <rguenther@suse.de>
16524 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
16525 Make value_range * temporary const.
16526 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
16528 (evrp_range_analyzer::record_ranges_from_): Likewise.
16529 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
16530 deal with having recorded a const one.
16531 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
16532 Return a const value_range *.
16533 (evrp_range_analyzer::pop_value_range): Likewise.
16534 (evrp_range_analyzer::stack): Record const value_range *s.
16535 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16537 * gimple-ssa-sprintf.c (get_int_range): Likewise.
16538 (format_integer): Likewise.
16539 (sprintf_dom_walker::handle_gimple_call): Likewise.
16540 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
16541 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
16542 (vrp_prop::get_value_range): Adjust.
16543 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
16544 modifying the lattice in-place.
16545 (vrp_prop::visit_stmt): Likewise.
16546 * vr-values.c (vr_values::get_lattice_entry): New private method.
16547 (vr_values::get_value_range): Wrap it and return a const
16549 (vr_values::set_def_to_varying): New.
16550 (vr_values::set_defs_to_varying): Use it.
16551 (vr_values::update_value_range): Likewise.
16552 (vr_values::vrp_stmt_computes_nonzero): Adjust.
16553 (values::op_with_constant_singleton_va): Likewise.
16554 (vr_values::extract_range_for_var_from_co): Likewise.
16555 (vr_values::extract_range_from_ssa_name): Likewise.
16556 (vr_values::extract_range_from_cond_expr): Likewise.
16557 (vr_values::extract_range_basic): Likewise.
16558 (compare_ranges): Take const value_range *, adjust.
16559 (compare_range_with_value): Likewise.
16560 (vrp_valueize): Adjust.
16561 (vrp_valueize_1): Likewise.
16562 (vr_values::get_vr_for_comparison): Return a const value_range *.
16563 (vr_values::compare_name_with_value): Adjust.
16564 (vr_values::compare_names): Likewise.
16565 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16567 (vr_values::vrp_evaluate_conditional): Likewise.
16568 (find_case_label_ranges): Take a const value_range *.
16569 (vr_values::vrp_visit_switch_stmt): Adjust.
16570 (vr_values::extract_range_from_phi_node): Likewise.
16571 (vr_values::simplify_div_or_mod_using_ran): Likewise.
16572 (vr_values::simplify_abs_using_ranges): Likewise.
16573 (test_for_singularity): Take a const value_range *.
16574 (range_fits_type_p): Likewise.
16575 (vr_values::simplify_cond_using_ranges_1): Adjust.
16576 (vr_values::simplify_cond_using_ranges_2): Likewise.
16577 (vr_values::simplify_switch_using_ranges): Likewise.
16578 (vr_values::simplify_float_conversion_usi): Likewise.
16579 (vr_values::two_valued_val_range_p): Likewise.
16580 * vr-values.h (vr_values::get_value_range): Return a const
16582 (vr_values::set_def_to_varying): New.
16583 (vr_values::get_lattice_entry): New private method.
16584 (vr_values::get_vr_for_comparison): Return a const value_range *.
16586 2019-07-25 Martin Liska <mliska@suse.cz>
16587 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
16590 * common.opt: Add -fallocation-dce
16591 * gimple.c (gimple_call_operator_delete_p): New.
16592 * gimple.h (gimple_call_operator_delete_p): Likewise.
16593 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
16594 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
16595 DECL_IS_OPERATOR_DELETE_P.
16596 (mark_all_reaching_defs_necessary_1): Likewise.
16597 (propagate_necessity): Likewise.
16598 (eliminate_unnecessary_stmts): Handle
16599 gimple_call_operator_delete_p.
16600 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16601 Add packing of OPERATOR_DELETE.
16602 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16604 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
16605 (DECL_SET_IS_OPERATOR_DELETE): New.
16606 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
16608 2019-07-25 Martin Liska <mliska@suse.cz>
16610 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
16611 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
16612 * coverage.c (coverage_begin_function): Likewise.
16613 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
16614 * gimple.c (gimple_call_nonnull_result_p): Likewise.
16615 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
16616 (sem_item::hash_referenced_symbol_properties): Likewise.
16617 * lto-streamer-out.c (hash_tree): Likewise.
16618 * predict.c (expr_expected_value_1): Likewise.
16619 * tree-inline.c (expand_call_inline): Likewise.
16620 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16621 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16622 * tree-core.h (enum function_decl_type): New enum.
16623 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
16624 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
16625 (set_function_decl_type): Likewise.
16626 (DECL_IS_OPERATOR_NEW_P): New.
16627 (DECL_SET_IS_OPERATOR_NEW): Likewise.
16628 (DECL_LAMBDA_FUNCTION): Likewise.
16629 (DECL_LAMBDA_FUNCTION_P): Likewise.
16630 (DECL_IS_OPERATOR_NEW): Remove.
16631 (DECL_SET_LAMBDA_FUNCTION): Likewise.
16633 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
16635 * ipa-profile.c (get_most_common_single_value): Use
16636 get_nth_most_common_value.
16637 * profile.c (sort_hist_value): New function.
16638 (compute_value_histograms): Call sort_hist_value to sort the
16639 values after loading from disk.
16640 * value-prof.c (get_most_common_single_value): Rename to ...
16641 get_nth_most_common_value. Add input params n, return
16642 the n_th value and count.
16643 (gimple_divmod_fixed_value_transform): Use
16644 get_nth_most_common_value.
16645 (gimple_ic_transform): Likewise.
16646 (gimple_stringops_transform): Likewise.
16647 * value-prof.h (get_most_common_single_value): Add input params
16650 2019-07-25 Richard Biener <rguenther@suse.de>
16652 PR tree-optimization/91236
16653 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16654 size of CONSTRUCTOR write. Fix buffer size we pass to
16655 native_encode_expr.
16657 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16659 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
16660 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
16663 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16665 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
16666 explicitly disabled with --disable-initfini-array.
16668 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16670 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
16673 2019-07-24 Martin Sebor <msebor@redhat.com>
16675 PR tree-optimization/91183
16676 PR tree-optimization/86688
16677 * builtins.c (compute_objsize): Handle MEM_REF.
16678 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
16679 (get_min_string_length): Remove.
16680 (count_nonzero_bytes): New function.
16681 (handle_char_store): Rename...
16682 (handle_store): to this. Handle multibyte stores via integer types.
16683 (strlen_check_and_optimize_stmt): Adjust conditional and the called
16686 2019-07-24 Martin Sebor <msebor@redhat.com>
16689 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
16690 (diagnostic_report_diagnostic): Same.
16691 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
16692 (diagnostic_context::lang_mask): New data member.
16693 * ipa-pure-const.c (suggest_attribute): Use
16694 lang_hooks.option_lang_mask ().
16695 * opts-common.c (option_enabled): Handle new argument.
16696 (get_option_state): Pass an additional argument.
16697 * opts.c (print_filtered_help): Print supported languages for
16698 unsupported options. Adjust printing of current state.
16699 * opts.h (option_enabled): Add argument.
16700 * toplev.c (print_switch_values): Use lang_mask.
16701 (general_init): Set global_dc->lang_mask.
16703 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16706 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
16708 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
16710 * cgraphunit.c (symbol_table::compile): Start and stop
16711 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
16712 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
16714 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
16716 * gimplify.c (flag_instrument_functions_exclude_p): Include
16717 namespace/class information in the printable name.
16718 * opts.c (add_comma_separated_to_vector): Add NUL terminator
16719 to tokens entered into the vector.
16721 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
16723 * tree-nested.c (build_simple_mem_ref_notrap): New function.
16724 (get_static_chain): Call it instead of build_simple_mem_ref.
16725 (get_frame_field): Likewise.
16726 (get_nonlocal_debug_decl): Likewise.
16727 (convert_nonlocal_reference_op): Likewise.
16729 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
16731 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
16733 (arc_compute_frame_size): Millicode is disabled when compiling
16735 (arc_return_address_register): Likewise.
16736 (arc_compute_function_type): Likewise.
16737 (arc_compute_frame_size): Likewise.
16738 (secondary_reload_info): Likewise.
16739 (arc_get_unalign): Likewise.
16740 (arc_can_use_return_insn): Declare.
16741 * config/arc/arc.c (AUX_LP_START): Define
16742 (AUX_LP_END): Likewise.
16743 (arc_frame_info): Update gmask member to 64-bit datum.
16744 (GMASK_LEN): Update.
16745 (arc_compute_function_type): Make it static, move it forward.
16746 (arc_must_save_register): Update, consider the extra regs.
16747 (arc_compute_millicode_save_restore_regs): Update to use the 64
16749 (arc_compute_frame_size): Likewise.
16750 (arc_enter_leave_p): Likewise.
16751 (arc_save_callee_saves): Likewise.
16752 (arc_restore_callee_saves): Likewise.
16753 (arc_save_callee_enter): Likewise.
16754 (arc_restore_callee_leave): Likewise.
16755 (arc_save_callee_milli): Likewise.
16756 (arc_restore_callee_milli): Likewise.
16757 (arc_expand_prologue): Add new interrupt handling.
16758 (arc_return_address_register): Make it static, move it forward.
16759 (arc_expand_epilogue): Add new interrupt handling.
16760 (arc_get_unalign): Delete.
16761 (arc_epilogue_uses): Make sure we do not remove the extra
16762 saved/restored registers when interrupt.
16763 (arc_can_use_return_insn): New function.
16764 (push_reg): Likewise.
16765 (pop_reg): Likewise.
16766 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
16768 (arc_restore_callee_saves): Likewise, but restoring.
16769 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
16770 (R33_REG): Likewise.
16771 (R34_REG): Likewise.
16772 (R35_REG): Likewise.
16773 (R36_REG): Likewise.
16774 (R37_REG): Likewise.
16775 (R38_REG): Likewise.
16776 (R39_REG): Likewise.
16777 (R45_REG): Likewise.
16778 (R46_REG): Likewise.
16779 (R47_REG): Likewise.
16780 (R48_REG): Likewise.
16781 (R49_REG): Likewise.
16782 (R50_REG): Likewise.
16783 (R51_REG): Likewise.
16784 (R52_REG): Likewise.
16785 (R53_REG): Likewise.
16786 (R54_REG): Likewise.
16787 (R55_REG): Likewise.
16788 (R56_REG): Likewise.
16789 (R58_REG): Likewise.
16790 (type): Add rtie attribute.
16791 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
16792 (movsi_insn): Accept moves to lp_count.
16793 (rtie): Update pattern.
16794 (simple_return): Simplify it, don't use this pattern as a return
16796 (arc600_rtie): New pattern.
16797 (p_return_i): Clean up.
16798 (return): Likewise.
16799 * config/arc/builtins.def (rtie): Only available for non ARC6xx
16801 * config/arc/predicates.md (move_src_operand): Consider lp_count
16804 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
16806 * config/s390/predicates.md (addv_const_operand): New predicate.
16807 * config/s390/s390-modes.def (CCO): New condition code mode.
16808 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
16809 (s390_branch_condition_mask): Likewise.
16810 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
16811 ("mulv<mode>4"): New expanders.
16812 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
16813 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
16814 pattern definitions.
16816 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16818 PR middle-end/91166
16819 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16820 (define_predicates): Add entry for uniform_vector_p.
16821 (vec_same_elem_p): New match pattern.
16823 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16826 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16827 * config/i386/darwin32-biarch.h .. to here.
16828 * config/i386/darwin64-biarch.h: Adjust comments.
16829 * config/rs6000/darwin32-biarch.h: Likewise.
16830 * config/rs6000/darwin64-biarch.h: Likewise.
16831 * config.gcc: Missed commit from r273746
16832 (*-*-darwin*): Don't include CPU t-darwin here.
16833 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16834 an error message if i686-darwin configuration is attempted for
16837 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16840 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16841 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16842 an error message if i686-darwin configuration is attempted for
16844 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16845 (powerpc-*-darwin*): Use biarch files where needed.
16846 (powerpc64-*-darwin*): Likewise.
16847 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16848 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16850 * config/i386/darwin32-biarch.h: New.
16851 * config/i386/darwin64.h: Rename.
16852 * config/i386/darwin64-biarch.h: To this.
16853 * config/i386/t-darwin: Rename.
16854 * config/i386/t-darwin32-biarch: To this.
16855 * config/i386/t-darwin64: Rename.
16856 * config/i386/t-darwin64-biarch: To this.
16857 * config/rs6000/darwin32-biarch.h: New.
16858 * config/rs6000/darwin64.h: Rename.
16859 * config/rs6000/darwin64-biarch.h: To this.
16860 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16862 * config/rs6000/t-darwin8: Rename.
16863 * config/rs6000/t-darwin32-biarch: To this.
16864 * config/rs6000/t-darwin64 Rename.
16865 * config/rs6000/t-darwin64-biarch: To this.
16867 2019-07-23 Martin Sebor <msebor@redhat.com>
16869 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16871 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16873 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16874 (rh): New alias for it.
16876 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16878 * gdbhooks.py: Pass replace=True to
16879 gdb.printing.register_pretty_printer.
16881 2019-07-23 Richard Biener <rguenther@suse.de>
16884 * lto-streamer-in.c (input_function): Drop inline-entry markers
16885 that ended up with an unknown location block.
16887 2019-07-23 Richard Biener <rguenther@suse.de>
16889 PR tree-optimization/83518
16890 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16891 init from a constant even when partial defs are already recorded.
16893 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16895 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16896 * config/i386/znver1.md: Enable patterns for znver2 and add store
16897 variants which use extra AGU unit.
16899 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16901 * config/i386/i386-options.c (ix86_option_override_internal): Default
16902 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16903 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16906 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16908 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16909 (znver2_costs): Update 256 bit SSE costs and multiplication.
16911 2019-07-23 Jan Beulich <jbeulich@suse.com>
16913 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16914 Require only AVX512F.
16915 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16916 alternative expanding to vpternlog.
16918 2019-07-23 Martin Liska <mliska@suse.cz>
16920 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16921 to -flto in dwarf producer string.
16923 2019-07-23 Richard Biener <rguenther@suse.de>
16925 * tree-cfg.c (label_for_bb): Remove global var.
16926 (main_block_label): Take label_for_bb as argument.
16927 (cleanup_dead_labels_eh): Likewise, adjust.
16928 (cleanup_dead_labels): Adjust.
16930 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16932 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16933 Configurations): Add documentation for __builtin_mtfsf.
16935 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16937 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16938 * config/riscv/riscv.c (riscv_constant_alignment): Use
16939 riscv_align_data_type.
16940 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16941 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16942 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16943 * config/riscv/riscv.opt (malign-data): New.
16944 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16946 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16948 * cgraph.c (dump_graphviz): New function.
16949 * cgraph.h (dump_graphviz): New function.
16950 * symtab.c (dump_graphviz): New function.
16952 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16954 * config/aarch64/aarch64-simd.md
16955 (*aarch64_simd_sra<mode>): New.
16956 * config/aarch64/iterators.md
16957 (SHIFTRT): New iterator.
16958 (sra_op): New attribute.
16960 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16962 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16963 callee-saved regs R4->R10 in an interrupt function that calls another
16966 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16968 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16969 (_mm_blendv_epi8): New.
16971 2019-07-22 Richard Biener <rguenther@suse.de>
16973 PR tree-optimization/91221
16974 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16975 restrict partial-def handling of empty constructors and
16976 memset to refs with known offset.
16978 2019-07-22 Jan Beulich <jbeulich@suse.com>
16980 * config/i386/sse.md (ternlogsuffix): New.
16981 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16983 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16985 2019-07-22 Martin Liska <mliska@suse.cz>
16987 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16989 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16991 2019-07-22 Martin Liska <mliska@suse.cz>
16993 * lto-section-in.c (lto_get_section_data):
16994 Use new function get_compression.
16995 * lto-streamer-out.c (produce_lto_section): Use
16996 set_compression to encode compression algorithm.
16997 * lto-streamer.h (struct lto_section): Do not
16998 use bitfields in the format.
17000 2019-07-22 Martin Liska <mliska@suse.cz>
17003 * opts-common.c (decode_cmdline_option): Decode
17004 argument of -Werror and check it for a wrong language.
17005 * opts-global.c (complain_wrong_lang): Remove such case.
17007 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
17009 * config/arc/arc.c (prepare_move_operands): Always use an
17010 intermediate register when storing a TLS symbols.
17012 2019-07-22 Stafford Horne <shorne@gmail.com>
17014 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
17017 2019-07-22 Stafford Horne <shorne@gmail.com>
17019 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
17020 and munordered-float validations.
17021 * config/or1k/constraints.md (d): New register constraint.
17022 * config/or1k/predicates.md (fp_comparison_operator): New.
17023 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
17025 (or1k_expand_compare): Normalize unordered comparisons.
17026 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
17027 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
17028 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
17029 * config/or1k/or1k.md (type): Add fpu.
17030 (fpu): New instruction reservation.
17031 (F, f, fr, fi, FI, FOP, fop): New.
17032 (<fop><F:mode>3): New ALU instruction definition.
17033 (float<fi><F:mode>2): New conversion instruction definition.
17034 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
17035 (fpcmpcc): New code iterator.
17036 (*sf_fp_insn): New instruction definition.
17037 (cstore<F:mode>4): New expand definition.
17038 (cbranch<F:mode>4): New expand definition.
17039 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
17040 munordered-float): New options.
17041 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
17044 2019-07-22 Stafford Horne <shorne@gmail.com>
17046 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
17047 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
17048 documenation to be more clear.
17049 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
17051 * config/or1k/or1k.opt (mrori): New option.
17052 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
17053 msfimm, mshftimm): Rewrite documentation to be more clear.
17054 * config/or1k/or1k.md (insn_support): Add ror and rori.
17055 (enabled): Add conditions for ror and rori.
17056 (rotrsi3): Replace condition for shftimm with ror and rori.
17058 2019-07-22 Stafford Horne <shorne@gmail.com>
17061 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
17062 (extend<mode>si2): Update predicate.
17063 * config/or1k/predicates.md (volatile_mem_operand): New.
17064 (reg_or_mem_operand): New.
17066 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
17068 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
17069 * config/rs6000/rs6000-call.c: ... to here.
17071 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17073 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
17076 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17078 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
17080 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17082 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
17084 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
17086 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
17087 (any_memory_operand): New predicate.
17088 (reg_or_mem_operand): Use it.
17090 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17093 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
17095 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
17097 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
17098 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
17100 2019-07-20 Jakub Jelinek <jakub@redhat.com>
17102 * tree.def (OMP_LOOP): New tree code.
17103 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
17104 (enum omp_clause_bind_kind): New enum.
17105 (struct tree_omp_clause): Add subcode.bind_kind.
17106 * tree.h (OMP_LOOP_CHECK): Rename to ...
17107 (OMP_LOOPING_CHECK): ... this.
17108 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
17109 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
17110 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
17111 (OMP_CLAUSE_BIND_KIND): Define.
17112 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17113 bind clause entries.
17114 (walk_tree_1): Handle OMP_CLAUSE_BIND.
17115 * tree-pretty-print.c (dump_omp_clause): Likewise.
17116 (dump_generic_node): Handle OMP_LOOP.
17117 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
17118 (in_omp_construct): New variable.
17119 (is_gimple_stmt): Handle OMP_LOOP.
17120 (gimplify_scan_omp_clauses): For lastprivate don't set
17121 check_non_private if code == OMP_LOOP. For reduction clause
17122 on OMP_LOOP combined with parallel or teams propagate as shared
17123 on the combined construct. Handle OMP_CLAUSE_BIND.
17124 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
17125 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
17126 for constructs from a loop construct to gimplify_scan_omp_clauses.
17127 Don't predetermine iterator linear on OMP_SIMD from loop construct.
17128 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
17129 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
17130 to match the implicit ORT_TARGET construct around whole body.
17131 Temporarily clear in_omp_construct when processing body.
17132 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
17133 etc. temporarily set in_omp_construct when processing body.
17134 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
17135 * omp-low.c (struct omp_context): Add loop_p.
17136 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
17137 in that the original var might be private.
17138 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
17139 (check_omp_nesting_restrictions): Adjust nesting restrictions for
17140 addition of loop construct.
17141 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
17143 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
17144 lastprivate non-addressable iterator of a collapse(1) simd.
17146 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
17148 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
17151 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
17153 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
17154 refer to default conditions. Warn for the 'y' spec which is ignored
17155 by current linkers.
17157 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
17159 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
17160 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17161 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17162 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17163 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17164 init_cumulative_args, rs6000_promote_function_mode,
17165 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17166 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17167 rs6000_function_arg_boundary, rs6000_parm_offset,
17168 rs6000_parm_start, rs6000_arg_size,
17169 rs6000_darwin64_record_arg_advance_flush,
17170 rs6000_darwin64_record_arg_advance_recurse,
17171 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17172 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17173 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17174 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17175 rs6000_finish_function_arg, rs6000_function_arg,
17176 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17177 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17178 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17179 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17180 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17181 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17182 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17183 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17184 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17185 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17186 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17187 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17188 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17189 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17190 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17191 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17192 get_element_number, altivec_expand_vec_set_builtin,
17193 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17194 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17195 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17196 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17197 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17198 rs6000_expand_builtin, rs6000_vector_type,
17199 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17200 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17201 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
17203 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
17204 cpu_supports_info, builtin_hash_struct, builtin_hasher,
17205 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
17206 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
17207 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
17208 init_cumulative_args, rs6000_promote_function_mode,
17209 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
17210 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
17211 rs6000_function_arg_boundary, rs6000_parm_offset,
17212 rs6000_parm_start, rs6000_arg_size,
17213 rs6000_darwin64_record_arg_advance_flush,
17214 rs6000_darwin64_record_arg_advance_recurse,
17215 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
17216 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
17217 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
17218 rs6000_mixed_function_arg, rs6000_psave_function_arg,
17219 rs6000_finish_function_arg, rs6000_function_arg,
17220 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
17221 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
17222 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
17223 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
17224 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
17225 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
17226 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17227 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17228 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17229 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17230 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17231 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17232 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17233 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17234 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17235 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17236 get_element_number, altivec_expand_vec_set_builtin,
17237 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17238 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17239 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17240 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17241 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17242 rs6000_expand_builtin, rs6000_vector_type,
17243 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17244 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17245 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17246 to here from rs6000.c.
17247 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17248 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17249 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17250 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17251 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17252 rs6000_return_in_memory, rs6000_return_in_msb,
17253 rs6000_pass_by_reference, setup_incoming_varargs,
17254 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17255 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17256 rs6000_function_arg_padding, rs6000_function_arg,
17257 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17258 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17259 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17260 rs6000_passes_long_double, rs6000_passes_vector,
17261 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17262 altivec_builtin_mask_for_load) Add declarations.
17263 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17264 * config/config.gcc: Add new source file rs6000-call.c to garbage
17265 collector and extra_objs.
17267 2019-07-19 Jeff Law <law@redhat.com>
17269 PR tree-optimization/86061
17270 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17271 strncpy. Drop some trivial dead code.
17272 (maybe_trim_memstar_call): Handle strncpy.
17274 2019-07-19 Richard Biener <rguenther@suse.de>
17276 PR tree-optimization/91211
17277 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17278 memset encoding size.
17280 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17283 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17285 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17288 * ipa-inline.c (recursive_inlining): Fix limits check.
17290 2019-07-19 Richard Biener <rguenther@suse.de>
17292 PR tree-optimization/91200
17293 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17294 no PHI nodes in middle-bb.
17296 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17298 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17300 * config/aarch64/aarch64-option-extensions.def: Likewise.
17302 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17304 PR middle-end/91190
17305 * function.c (insert_temp_slot_address): Store into the hash table
17306 a copy of address to avoid RTL sharing issues.
17308 2019-07-19 Richard Biener <rguenther@suse.de>
17310 PR tree-optimization/91207
17312 2019-07-17 Richard Biener <rguenther@suse.de>
17314 PR tree-optimization/91178
17315 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17316 loads with a gap larger than the vector size always use
17318 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17319 avoid loading vectors that are only contained in the gap
17320 and thus are not needed.
17322 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17324 * config/i386/i386.md (*addqi_2_slp): Remove.
17325 (*<code>qi_2_slp): Ditto.
17327 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17329 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17330 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17331 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17332 Rename function from rs6000_prefixed_address.
17333 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17335 (TARGET_TOC): Likewise.
17336 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17338 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17340 (TARGET_TOC): Likewise.
17341 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17343 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17345 (TARGET_TOC): Likewise.
17346 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17347 check to require -mcmodel=medium for pc-relative addressing.
17348 (create_TOC_reference): Add assertion for TARGET_TOC.
17349 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17351 (rs6000_emit_move): Likewise.
17352 (TOC_alias_set): Rename TOC alias set static variable from 'set'
17353 to 'TOC_alias_set'.
17354 (get_TOC_alias_set): Likewise.
17355 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
17357 (rs6000_can_eliminate): Likewise.
17358 (rs6000_prefixed_address_mode_p): Rename function from
17359 rs6000_prefixed_address.
17360 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
17361 TARGET_HAS_TOC and not pc-relative.
17362 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
17363 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17365 (TARGET_TOC): Likewise.
17366 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17369 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17372 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
17373 for operand 0. Do not use (match_dup) to match operand 1 with
17374 operand 0. Add check in insn constraint that either input operand
17375 matches operand 0. Use SWI12 mode iterator to also handle
17377 (*and<mode>_1_slp): Ditto.
17378 (*<code>qi_1_slp): Ditto.
17379 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
17380 Do not use (match_dup) to match operand 1 with operand 0. Add
17381 check in insn constraint that operand 1 matches operand 0.
17382 Use SWI12 mode iterator to also handle HImode operands.
17383 (*ashl<mode>3_1_slp): Ditto.
17384 (*<shift_insn><mode>3_1_slp): Ditto.
17385 (*<rotate_insn><mode>3_1_slp): Ditto.
17387 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17389 * config/arm/arm-builtins.c
17390 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
17391 (arm_expand_unop_builtin): Likewise.
17392 * config/arm/crypto.md
17393 (crypto_sha1h): Convert from define_insn to define_expand.
17394 (crypto_<crypto_pattern>): Likewise.
17395 (crypto_sha1h_lb): New define_insn.
17396 (crypto_<crypto_pattern>_lb): Likewise.
17398 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17401 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
17402 (vsha1cq_u32): Likewise.
17403 (vsha1pq_u32): Likewise.
17404 (vsha1mq_u32): Likewise.
17405 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
17407 (crypto_sha1c): Correct vec select.
17408 (crypto_sha1m): Likewise.
17409 (crypto_sha1p): Likewise.
17411 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
17413 * config/arm/predicates.md (arm_borrow_operation): New predicate.
17414 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
17415 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
17416 (subdi_zesidi_zesidi): Likewise.
17417 (negdi2_compare, negdi2_insn): Likewise.
17418 (negdi_extensidi): Likewise.
17419 (negdi_zero_extendsidi): Likewise.
17420 (arm_cmpdi_insn): Likewise.
17421 (subsi3_carryin): Use arm_borrow_operation.
17422 (subsi3_carryin_const): Likewise.
17423 (subsi3_carryin_const0): Likewise.
17424 (subsi3_carryin_compare): Likewise.
17425 (subsi3_carryin_compare_const): Likewise.
17426 (subsi3_carryin_compare_const0): Likewise.
17427 (subsi3_carryin_shift): Likewise.
17428 (rsbsi3_carryin_shift): Likewise.
17429 (negsi2_carryin_compare): Likewise.
17431 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
17433 PR tree-optimization/91137
17434 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
17435 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
17436 Init, use and fini the above new field.
17437 (determine_base_object_1): New function.
17438 (determine_base_object): Reimplement using walk_tree.
17440 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
17442 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
17443 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
17444 CLEANUP_FORCE_FAST_DCE is set.
17445 * ifcvt.c (rest_of_handle_if_conversion): Pass
17446 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
17447 if-conversion succeeded.
17449 2019-07-18 Richard Biener <rguenther@suse.de>
17451 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
17452 branches to make code less indented.
17454 2019-07-17 Alexandre Oliva <oliva@adacore.com>
17456 PR middle-end/81824
17457 * attribs.c (decls_mismatched_attributes): Simplify the logic
17458 that avoids duplicates and false positives.
17460 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
17462 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
17463 data into data section when generating PIC code.
17464 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
17465 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
17466 generating code for SOM targets earlier than HP-UX 11. Otherwise,
17467 return 2 for SOM and 0 for other targets.
17469 2019-07-17 Jeff Law <law@redhat.com>
17471 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
17472 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
17473 avoid unexpected switch statement fallthru.
17475 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17477 * config/i386/i386.md (*add<dwi>3_doubleword):
17478 Remove redundant constraints.
17479 (*add<mode>_1): Ditto.
17482 (*addqi_1_slp): Ditto.
17483 (*add<mode>_2): Ditto.
17484 (*addv<mode>4): Ditto.
17485 (*sub<dwi>3_doubleword): Ditto.
17486 (*sub<mode>_1): Ditto.
17487 (*subqi_1_slp): Ditto.
17488 (*sub<mode>_2): Ditto.
17489 (*subv<mode>4): Ditto.
17490 (*sub<mode>_3): Ditto.
17491 (@add<mode>3_carry): Ditto.
17492 (@sub<mode>3_carry): Ditto.
17493 (*add<mode>3_cc_overflow_1): Ditto.
17494 (*add<mode>3_zext_cc_overflow_2): Ditto.
17496 (*and<mode>_1): Ditto.
17498 (*andqi_1_slp): Ditto.
17500 (*andqi_2_maybe_si): Ditto.
17501 (*and<mode>_2): Ditto.
17502 (*andqi_2_slp): Ditto.
17503 (*<code><mode>_1): Ditto.
17504 (*<code>qi_1): Ditto.
17505 (*<code>qi_1_slp): Ditto.
17506 (*<code><mode>_2): Ditto.
17507 (*<code>qi_2_slp): Ditto.
17509 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
17511 * alias.c (record_component_aliases): Do not simplify pointed-to
17512 types of ODR types.
17514 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17516 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
17517 partial reg stall on alternative 2.
17519 2019-07-17 Richard Biener <rguenther@suse.de>
17521 PR tree-optimization/91178
17522 * tree-ssa.c (release_defs_bitset): Iterate from higher to
17523 lower SSA names to avoid quadratic behavior in the common case.
17524 * tree-data-ref.c (split_constant_offset): Add limit argument
17525 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17526 (split_constant_offset_1): Add limit argument and use it to
17527 limit SSA def walking. Optimize the common plus/minus case.
17529 2019-07-17 Richard Biener <rguenther@suse.de>
17531 PR tree-optimization/91178
17532 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17533 loads with a gap larger than the vector size always use
17535 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17536 avoid loading vectors that are only contained in the gap
17537 and thus are not needed.
17539 2019-07-17 Richard Biener <rguenther@suse.de>
17541 PR tree-optimization/91180
17542 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
17543 computation for memset partial defs.
17545 2019-07-17 Jakub Jelinek <jakub@redhat.com>
17547 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
17548 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
17549 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
17550 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
17551 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
17552 * omp-grid.c (grid_process_grid_body,
17553 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
17554 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
17555 == GF_OMP_FOR_KIND_SIMD.
17556 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
17557 check_omp_nesting_restrictions, scan_omp_1_stmt,
17558 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
17559 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
17560 omp_find_scan): Likewise.
17561 * omp-expand.c (expand_omp_for): Likewise.
17562 * omp-general.c (omp_extract_for_data): Likewise.
17564 PR tree-optimization/91157
17565 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
17566 a vector boolean with scalar mode.
17567 (expand_vector_condition): Handle first operand being a vector boolean
17569 (expand_vector_operations_1): For comparisons, don't bail out early
17570 if the return type is vector boolean with scalar mode, but comparison
17571 operand type is not.
17573 2019-07-17 Richard Biener <rguenther@suse.de>
17575 PR tree-optimization/91181
17576 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
17577 IFN_LOADs as calls.
17579 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
17581 * config/i386/i386.md (*testdi_1): Match CCZmode for
17582 constants that might have the SImode sign bit set.
17583 (*testqi_1_maybe_si): Remove "!" constraint modifier.
17584 Use correct constraints for pentium pairing.
17585 (*test<mode>_1): Ditto.
17587 2019-07-16 Jeff Law <law@redhat.com>
17589 PR rtl-optimization/91173
17590 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
17591 SSA_NAME with a constant value, fold its value into the offset
17592 and clear the base before calling gen_addr_rtx.
17594 2019-07-16 Jakub Jelinek <jakub@redhat.com>
17596 PR rtl-optimization/91164
17597 * dse.c (rest_of_handle_dse): If dead edges have been purged,
17598 invalidate dominance info.
17600 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17602 * read-md.h (md_reader::record_potential_iterator_use): Add a
17603 file_location parameter.
17604 * read-rtl.c (attribute_use::loc): New field.
17605 (map_attr_string): Take a file_location parameter. Report cases
17606 in which attributes map to multiple distinct values.
17607 (apply_attribute_uses): Update call accordingly.
17608 (md_reader::handle_overloaded_name): Likewise.
17609 (md_reader::apply_iterator_to_string): Likewise. Skip empty
17611 (record_attribute_use): Take a file_location parameter.
17612 Initialize attribute_use::loc.
17613 (md_reader::record_potential_iterator_use): Take a file_location
17614 parameter. Update call to record_attribute_use.
17615 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
17616 (rtx_reader::read_rtx_code): Likewise.
17617 (rtx_reader::read_rtx_operand): Likewise. Record a location
17618 for implicitly-expanded empty strings.
17620 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17622 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
17623 Use file_location instead of separate fields.
17624 (md_reader::set_md_ptr_loc): Take a file_location instead of a
17625 separate filename and line number.
17626 * read-md.c (ptr_loc): As above.
17627 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
17628 (md_reader::fprint_md_ptr_loc): Likewise.
17629 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
17630 instead of a separate filename and line number.
17631 (md_reader::read_string): Update call accordingly.
17633 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17635 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
17636 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
17637 leaving the choice between SFDF and P implicit.
17638 (*mov<mode>_update2): Likewise.
17639 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
17640 rather than leaving the choice betweem IBM128 and GPR implicit.
17641 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
17642 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
17644 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
17645 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
17646 * config/rs6000/vsx.md
17647 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
17648 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
17649 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
17650 and VSX_EXTRACT_I implicit.
17652 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17654 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
17655 Explicitly use <MOVEP1:MODE> for the mode attribute.
17657 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
17660 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
17662 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
17665 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
17666 .machine directive.
17668 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
17670 * config/i386/i386.md (@test<mode>_ccno_1):
17671 Rename from test<mode>_ccno_1.
17672 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
17673 (*testqi_1_maybe_si): Remove modrm attribute.
17674 (*test<mode>_1): Ditto.
17675 * config/i386/i386-expand.c (ix86_split_idivmod): Use
17676 gen_test_ccno_1 and gen_extend_insn.
17678 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
17680 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
17683 2019-07-15 Richard Biener <rguenther@suse.de>
17685 PR middle-end/91162
17686 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
17687 node make sure to replace all uses with something valid.
17689 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
17691 PR tree-optimization/88497
17692 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
17693 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
17694 function undistribute_bitref_for_vector.
17695 (undistribute_bitref_for_vector): New function.
17696 (cleanup_vinfo_map): Likewise.
17697 (sort_by_mach_mode): Likewise.
17699 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
17701 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
17702 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
17703 and testdi_ccno_1 using SWI48 mode attribute.
17704 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
17705 x86_64_szext_general_operand.
17706 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
17707 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
17708 instead of genera_operand mode attribute.
17710 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
17712 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
17713 fopen and fclose to their respective types.
17714 (DotFn.invoke): Ditto.
17716 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
17718 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
17719 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
17720 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
17721 (array_index_predicate): Remove.
17722 (analyze_function_body): Account cost for variable ofsetted array
17724 (estimate_node_size_and_time): Do not compute array index hint.
17725 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
17726 (inline_read_section): Do not read array index hint.
17727 (ipa_fn_summary_write): Do not write array index hint.
17728 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
17729 * ipa-cp.c (hint_time_bonus): Remove.
17730 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
17731 (ipa_fnsummary): Remove array_index.
17732 * ipa-inline.c (want_inline_small_function_p): Do not use
17734 (edge_badness): Likewise.
17735 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
17737 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
17740 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
17741 superfluous "builtin function" phrasing.
17743 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
17745 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
17747 (aliasing_component_refs_walk): Break out from ...
17748 (aliasing_component_refs_p): ... here.
17750 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
17753 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
17754 "builtin function" phrasing.
17756 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17759 * recog.h (temporary_volatile_ok): New class.
17760 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
17761 volatile_ok temporarily to true using temporary_volatile_ok.
17762 * expr.c (emit_block_move_via_cpymem): Likewise.
17763 * optabs.c (maybe_legitimize_operand): Likewise.
17765 2019-07-13 Jakub Jelinek <jakub@redhat.com>
17767 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
17768 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
17769 uses inside of order(concurrent) constructs.
17770 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
17771 OMP_CLAUSE_ORDER is seen.
17772 * omp-low.c (struct omp_context): Add order_concurrent member.
17773 (scan_sharing_clauses): Set ctx->order_concurrent if
17774 OMP_CLAUSE_ORDER is seen.
17775 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
17776 of simd order(concurrent). Diagnose constructs not allowed inside of
17777 for order(concurrent).
17778 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
17779 complaining about static double setjmp (double); or class static
17780 methods or non-global namespace setjmps.
17781 (omp_runtime_api_call): New function.
17782 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
17783 order(concurrent) loops.
17785 2019-07-12 Martin Sebor <msebor@redhat.com>
17787 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
17788 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
17789 * tree-vrp.c (vrp_prop::check_mem_ref): Use
17790 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17792 2019-07-12 Jan Hubicka <jh@suse.cz>
17794 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
17795 (indirect_refs_may_alias_p): ... here.
17796 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
17797 mem refs in the access paths.
17799 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
17801 PR tree-optimization/89430
17802 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
17803 store elimination for local variable without address escape.
17805 2019-07-12 Jeff Law <law@redhat.com>
17807 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
17808 for the ".far" section.
17810 2019-07-12 Richard Biener <rguenther@suse.de>
17812 PR tree-optimization/91145
17813 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17816 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17818 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17819 rather than this_state as the lowering context for the ELSE
17820 seq in a GIMPLE_EH_ELSE.
17822 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17824 * vector-builder.h (vector_builder::elt): Allow already-supplied
17825 elements to be read back before building is complete.
17827 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17829 PR rtl-optimization/91136
17830 * df-core.c (ACCESSING REFS): Fix typos in comment.
17831 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17832 the beginning of the block to the initial set of live registers.
17834 2019-07-12 Richard Biener <rguenther@suse.de>
17836 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17837 * fold-const.c (get_array_ctor_element_at_index): Add
17838 ctor_idx output parameter informing the caller where in
17839 the constructor the element was (not) found. Add early exit
17840 for when the ctor is sorted.
17841 * gimple-fold.c (fold_array_ctor_reference): Support constant
17842 folding across multiple array elements.
17844 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17846 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17847 doesn't have location, set the current location to the function's end.
17849 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17851 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17852 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17853 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17854 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17855 * config/aarch64/aarch64-simd.md
17856 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17857 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17858 * config/aarch64/aarch64-sve.md
17859 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17860 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17862 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17864 * doc/md.texi: Document that @ patterns can have different
17865 numbers of operands.
17866 * genemit.c (handle_overloaded_gen): Handle this case.
17867 * genopinit.c (handle_overloaded_gen): Likewise.
17868 * gensupport.c (replace_operands_with_dups): Iterate over
17869 the new rtx's format rather than the old one's.
17871 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17873 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17874 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17875 order clause entries.
17876 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17877 * tree-pretty-print.c (dump_omp_clause): Likewise.
17878 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17880 * omp-low.c (scan_sharing_clauses): Likewise.
17881 * tree-nested.c (convert_nonlocal_omp_clauses,
17882 convert_local_omp_clauses): Likewise.
17884 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17886 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17887 fallthrough target of current basic block isn't the placed
17890 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17893 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17894 (_mm512_storeu_epi64): Likewise.
17895 (_mm512_loadu_epi32): Likewise.
17896 (_mm512_storeu_epi32): Likewise.
17897 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17898 (_mm_storeu_epi64): Likewise.
17899 (_mm256_storeu_epi32): Likewise.
17900 (_mm_storeu_epi32): Likewise.
17902 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17904 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17906 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17908 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17911 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17914 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17915 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17916 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17917 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17918 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17919 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17921 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17922 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17923 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17925 (sse2_cvttpd2dq<mask_name>): Change into ...
17926 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17927 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17928 (*sse2_cvtpd2dq<mask_name>): Change into ...
17929 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17930 Add "C" constraint to const0_operand.
17931 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17932 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17936 * config/i386/i386-builtin-types.def
17937 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17938 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17939 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17940 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17941 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17942 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17943 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17944 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17945 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17946 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17947 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17948 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17949 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17950 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17951 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17952 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17953 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17954 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17955 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17956 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17957 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17958 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17959 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17960 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17961 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17962 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17963 __builtin_ia32_vpdpbusd_v4si_maskz,
17964 __builtin_ia32_vpdpbusds_v16si_mask,
17965 __builtin_ia32_vpdpbusds_v16si_maskz,
17966 __builtin_ia32_vpdpbusds_v8si_mask,
17967 __builtin_ia32_vpdpbusds_v8si_maskz,
17968 __builtin_ia32_vpdpbusds_v4si_mask,
17969 __builtin_ia32_vpdpbusds_v4si_maskz,
17970 __builtin_ia32_vpdpwssd_v16si_mask,
17971 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17972 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17973 __builtin_ia32_vpdpwssd_v4si_maskz,
17974 __builtin_ia32_vpdpwssds_v16si_mask,
17975 __builtin_ia32_vpdpwssds_v16si_maskz,
17976 __builtin_ia32_vpdpwssds_v8si_mask,
17977 __builtin_ia32_vpdpwssds_v8si_maskz,
17978 __builtin_ia32_vpdpwssds_v4si_mask,
17979 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17980 suffixed types rather than *_INT.
17981 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17982 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17983 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17984 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17985 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17986 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17988 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17990 * tree-vrp.c (intersect_ranges): If we know the intersection is
17991 empty, there is no need to conservatively add anything else to
17994 2019-07-11 Richard Biener <rguenther@suse.de>
17996 PR middle-end/91131
17997 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17998 when the object is volatile and we have not cleared it even though
17999 there are no nonzero elements.
18001 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
18003 * config/rs6000/predicates.md (cint34_operand): Update
18004 SIGNED_34BIT_OFFSET_P call.
18005 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
18006 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
18007 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
18008 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
18009 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
18011 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
18012 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
18013 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
18014 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
18015 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
18017 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
18019 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
18020 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
18021 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
18022 (DEF_MIN_OSX_VERSION): New.
18024 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18026 * fold-const.c (fold_relational_const): Fix folding of
18027 vector-to-scalar NE_EXPRs.
18028 (test_vector_folding): Add more tests.
18030 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
18033 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
18034 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
18035 (vec_setv2di_internal): Reexpress as...
18036 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
18037 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
18038 rather than gen_neon_vset_lane<mode>.
18040 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
18043 * lra-constraints.c (process_alt_operands): Don't match user
18044 defined regs only if they are early clobbers.
18046 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
18048 * wide-int.h (wi::lshift): Reject negative values for the fast path.
18050 2019-07-10 Richard Biener <rguenther@suse.de>
18052 PR tree-optimization/91126
18053 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
18054 native encoding offset for BYTES_BIG_ENDIAN.
18055 (vn_reference_lookup_3): Likewise.
18057 2019-07-10 Richard Biener <rguenther@suse.de>
18059 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
18060 LHS whenever possible.
18062 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
18064 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
18065 from ...; work also on duplicated types.
18066 (nonoverlapping_component_refs_since_match): ... here
18067 (ncr_type_uid): Break out from ...
18068 (ncr_compar): ... here; look for TYPE_UID of canonical type if
18070 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
18071 the types and nonoverlapping_component_refs_p_1 to disambiguate.
18073 2019-07-09 Martin Sebor <msebor@redhat.com>
18075 PR tree-optimization/90989
18076 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
18077 optimization to just single character stores.
18079 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
18081 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
18082 Swap operands only once.
18084 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
18086 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
18087 for both call instructions.
18089 2019-07-09 John Darrington <john@darrington.wattle.id.au>
18091 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
18092 rather than GET_MODE_BITSIZE to better handle partial integer modes.
18094 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
18096 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
18097 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
18098 function from rs6000-logue.c back to rs6000.c.
18099 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
18101 2019-07-09 Martin Sebor <msebor@redhat.com>
18104 * auto-profile.c: Change class-key of PODs to struct and others
18106 * basic-block.h: Same.
18107 * bitmap.c (bitmap_alloc): Same.
18109 * builtins.c (expand_builtin_prefetch): Same.
18110 (expand_builtin_interclass_mathfn): Same.
18111 (expand_builtin_strlen): Same.
18112 (expand_builtin_mempcpy_args): Same.
18113 (expand_cmpstr): Same.
18114 (expand_builtin___clear_cache): Same.
18115 (expand_ifn_atomic_bit_test_and): Same.
18116 (expand_builtin_thread_pointer): Same.
18117 (expand_builtin_set_thread_pointer): Same.
18118 * caller-save.c (setup_save_areas): Same.
18119 (replace_reg_with_saved_mem): Same.
18120 (insert_restore): Same.
18121 (insert_save): Same.
18122 (add_used_regs): Same.
18123 * cfg.c (get_bb_copy): Same.
18124 (set_loop_copy): Same.
18127 * cfgexpand.c (alloc_stack_frame_space): Same.
18128 (add_stack_var): Same.
18129 (add_stack_var_conflict): Same.
18130 (add_scope_conflicts_1): Same.
18131 (update_alias_info_with_stack_vars): Same.
18132 (expand_used_vars): Same.
18133 * cfghooks.c (redirect_edge_and_branch_force): Same.
18134 (delete_basic_block): Same.
18135 (split_edge): Same.
18136 (make_forwarder_block): Same.
18137 (force_nonfallthru): Same.
18138 (duplicate_block): Same.
18139 (lv_flush_pending_stmts): Same.
18140 * cfghooks.h: Same.
18141 * cfgloop.c (flow_loops_cfg_dump): Same.
18142 (flow_loop_nested_p): Same.
18143 (superloop_at_depth): Same.
18144 (get_loop_latch_edges): Same.
18145 (flow_loop_dump): Same.
18146 (flow_loops_dump): Same.
18147 (flow_loops_free): Same.
18148 (flow_loop_nodes_find): Same.
18149 (establish_preds): Same.
18150 (flow_loop_tree_node_add): Same.
18151 (flow_loop_tree_node_remove): Same.
18152 (flow_loops_find): Same.
18153 (find_subloop_latch_edge_by_profile): Same.
18154 (find_subloop_latch_edge_by_ivs): Same.
18155 (mfb_redirect_edges_in_set): Same.
18156 (form_subloop): Same.
18157 (merge_latch_edges): Same.
18158 (disambiguate_multiple_latches): Same.
18159 (disambiguate_loops_with_multiple_latches): Same.
18160 (flow_bb_inside_loop_p): Same.
18161 (glb_enum_p): Same.
18162 (get_loop_body_with_size): Same.
18163 (get_loop_body): Same.
18164 (fill_sons_in_loop): Same.
18165 (get_loop_body_in_dom_order): Same.
18166 (get_loop_body_in_custom_order): Same.
18167 (release_recorded_exits): Same.
18168 (get_loop_exit_edges): Same.
18169 (num_loop_branches): Same.
18170 (remove_bb_from_loops): Same.
18171 (find_common_loop): Same.
18172 (delete_loop): Same.
18173 (cancel_loop): Same.
18174 (verify_loop_structure): Same.
18175 (loop_preheader_edge): Same.
18176 (loop_exit_edge_p): Same.
18177 (single_exit): Same.
18178 (loop_exits_to_bb_p): Same.
18179 (loop_exits_from_bb_p): Same.
18180 (get_loop_location): Same.
18181 (record_niter_bound): Same.
18182 (get_estimated_loop_iterations_int): Same.
18183 (max_stmt_executions_int): Same.
18184 (likely_max_stmt_executions_int): Same.
18185 (get_estimated_loop_iterations): Same.
18186 (get_max_loop_iterations): Same.
18187 (get_max_loop_iterations_int): Same.
18188 (get_likely_max_loop_iterations): Same.
18189 * cfgloop.h (simple_loop_desc): Same.
18191 (loop_depth): Same.
18192 (loop_outer): Same.
18193 (loop_iterator::next): Same.
18194 (loop_outermost): Same.
18195 * cfgloopanal.c (mark_irreducible_loops): Same.
18196 (num_loop_insns): Same.
18197 (average_num_loop_insns): Same.
18198 (expected_loop_iterations_unbounded): Same.
18199 (expected_loop_iterations): Same.
18200 (mark_loop_exit_edges): Same.
18201 (single_likely_exit): Same.
18202 * cfgloopmanip.c (fix_bb_placement): Same.
18203 (fix_bb_placements): Same.
18204 (remove_path): Same.
18205 (place_new_loop): Same.
18207 (scale_loop_frequencies): Same.
18208 (scale_loop_profile): Same.
18209 (create_empty_if_region_on_edge): Same.
18210 (create_empty_loop_on_edge): Same.
18213 (fix_loop_placements): Same.
18214 (copy_loop_info): Same.
18215 (duplicate_loop): Same.
18216 (duplicate_subloops): Same.
18217 (loop_redirect_edge): Same.
18218 (can_duplicate_loop_p): Same.
18219 (duplicate_loop_to_header_edge): Same.
18220 (mfb_keep_just): Same.
18221 (has_preds_from_loop): Same.
18222 (create_preheader): Same.
18223 (create_preheaders): Same.
18224 (lv_adjust_loop_entry_edge): Same.
18225 (loop_version): Same.
18226 * cfgloopmanip.h: Same.
18228 * cgraphbuild.c: Same.
18229 * combine.c (make_extraction): Same.
18230 * config/i386/i386-features.c: Same.
18231 * config/i386/i386-features.h: Same.
18232 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18233 (ix86_emit_outlined_ms2sysv_restore): Same.
18234 (ix86_noce_conversion_profitable_p): Same.
18235 (ix86_init_cost): Same.
18236 (ix86_simd_clone_usable): Same.
18237 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18239 * coretypes.h: Same.
18240 * data-streamer-in.c (string_for_index): Change class-key of PODs
18241 to struct and others to class.
18242 (streamer_read_indexed_string): Same.
18243 (streamer_read_string): Same.
18244 (bp_unpack_indexed_string): Same.
18245 (bp_unpack_string): Same.
18246 (streamer_read_uhwi): Same.
18247 (streamer_read_hwi): Same.
18248 (streamer_read_gcov_count): Same.
18249 (streamer_read_wide_int): Same.
18250 * data-streamer.h (streamer_write_bitpack): Same.
18251 (bp_unpack_value): Same.
18252 (streamer_write_char_stream): Same.
18253 (streamer_write_hwi_in_range): Same.
18254 (streamer_write_record_start): Same.
18255 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18256 (add_cross_iteration_register_deps): Same.
18257 (build_intra_loop_deps): Same.
18258 * df-core.c (df_analyze): Same.
18259 (loop_post_order_compute): Same.
18260 (loop_inverted_post_order_compute): Same.
18261 * df-problems.c (df_rd_alloc): Same.
18262 (df_rd_simulate_one_insn): Same.
18263 (df_rd_local_compute): Same.
18264 (df_rd_init_solution): Same.
18265 (df_rd_confluence_n): Same.
18266 (df_rd_transfer_function): Same.
18267 (df_rd_free): Same.
18268 (df_rd_dump_defs_set): Same.
18269 (df_rd_top_dump): Same.
18270 (df_lr_alloc): Same.
18271 (df_lr_reset): Same.
18272 (df_lr_local_compute): Same.
18273 (df_lr_init): Same.
18274 (df_lr_confluence_n): Same.
18275 (df_lr_free): Same.
18276 (df_lr_top_dump): Same.
18277 (df_lr_verify_transfer_functions): Same.
18278 (df_live_alloc): Same.
18279 (df_live_reset): Same.
18280 (df_live_init): Same.
18281 (df_live_confluence_n): Same.
18282 (df_live_finalize): Same.
18283 (df_live_free): Same.
18284 (df_live_top_dump): Same.
18285 (df_live_verify_transfer_functions): Same.
18286 (df_mir_alloc): Same.
18287 (df_mir_reset): Same.
18288 (df_mir_init): Same.
18289 (df_mir_confluence_n): Same.
18290 (df_mir_free): Same.
18291 (df_mir_top_dump): Same.
18292 (df_word_lr_alloc): Same.
18293 (df_word_lr_reset): Same.
18294 (df_word_lr_init): Same.
18295 (df_word_lr_confluence_n): Same.
18296 (df_word_lr_free): Same.
18297 (df_word_lr_top_dump): Same.
18298 (df_md_alloc): Same.
18299 (df_md_simulate_one_insn): Same.
18300 (df_md_reset): Same.
18301 (df_md_init): Same.
18302 (df_md_free): Same.
18303 (df_md_top_dump): Same.
18304 * df-scan.c (df_insn_delete): Same.
18305 (df_insn_rescan): Same.
18306 (df_notes_rescan): Same.
18307 (df_sort_and_compress_mws): Same.
18308 (df_install_mws): Same.
18309 (df_refs_add_to_chains): Same.
18310 (df_ref_create_structure): Same.
18311 (df_ref_record): Same.
18312 (df_def_record_1): Same.
18313 (df_find_hard_reg_defs): Same.
18314 (df_uses_record): Same.
18315 (df_get_conditional_uses): Same.
18316 (df_get_call_refs): Same.
18317 (df_recompute_luids): Same.
18318 (df_get_entry_block_def_set): Same.
18319 (df_entry_block_defs_collect): Same.
18320 (df_get_exit_block_use_set): Same.
18321 (df_exit_block_uses_collect): Same.
18322 (df_mws_verify): Same.
18323 (df_bb_verify): Same.
18324 * df.h (df_scan_get_bb_info): Same.
18325 * doc/tm.texi: Same.
18326 * dse.c (record_store): Same.
18327 * dumpfile.h: Same.
18328 * emit-rtl.c (const_fixed_hasher::equal): Same.
18329 (set_mem_attributes_minus_bitpos): Same.
18330 (change_address): Same.
18331 (adjust_address_1): Same.
18332 (offset_address): Same.
18333 * emit-rtl.h: Same.
18334 * except.c (dw2_build_landing_pads): Same.
18335 (sjlj_emit_dispatch_table): Same.
18336 * explow.c (allocate_dynamic_stack_space): Same.
18337 (emit_stack_probe): Same.
18338 (probe_stack_range): Same.
18339 * expmed.c (store_bit_field_using_insv): Same.
18340 (store_bit_field_1): Same.
18341 (store_integral_bit_field): Same.
18342 (extract_bit_field_using_extv): Same.
18343 (extract_bit_field_1): Same.
18344 (emit_cstore): Same.
18345 * expr.c (emit_block_move_via_cpymem): Same.
18346 (expand_cmpstrn_or_cmpmem): Same.
18347 (set_storage_via_setmem): Same.
18348 (emit_single_push_insn_1): Same.
18349 (expand_assignment): Same.
18350 (store_constructor): Same.
18351 (expand_expr_real_2): Same.
18352 (expand_expr_real_1): Same.
18353 (try_casesi): Same.
18355 * function.c (try_fit_stack_local): Same.
18356 (assign_stack_local_1): Same.
18357 (assign_stack_local): Same.
18358 (cut_slot_from_list): Same.
18359 (insert_slot_to_list): Same.
18360 (max_slot_level): Same.
18361 (move_slot_to_level): Same.
18362 (temp_address_hasher::equal): Same.
18363 (remove_unused_temp_slot_addresses): Same.
18364 (assign_temp): Same.
18365 (combine_temp_slots): Same.
18366 (update_temp_slot_address): Same.
18367 (preserve_temp_slots): Same.
18368 * function.h: Same.
18370 * gcc-rich-location.h: Same.
18372 * genattrtab.c (check_attr_test): Same.
18373 (check_attr_value): Same.
18374 (convert_set_attr_alternative): Same.
18375 (convert_set_attr): Same.
18376 (check_defs): Same.
18377 (copy_boolean): Same.
18378 (get_attr_value): Same.
18379 (expand_delays): Same.
18380 (make_length_attrs): Same.
18382 (make_alternative_compare): Same.
18383 (simplify_test_exp): Same.
18384 (tests_attr_p): Same.
18385 (get_attr_order): Same.
18386 (clear_struct_flag): Same.
18388 (compares_alternatives_p): Same.
18391 (find_attrs_to_cache): Same.
18392 (write_test_expr): Same.
18393 (walk_attr_value): Same.
18394 (write_attr_get): Same.
18395 (eliminate_known_true): Same.
18396 (write_insn_cases): Same.
18397 (write_attr_case): Same.
18398 (write_attr_valueq): Same.
18399 (write_attr_value): Same.
18400 (write_dummy_eligible_delay): Same.
18401 (next_comma_elt): Same.
18403 (make_internal_attr): Same.
18404 (copy_rtx_unchanging): Same.
18405 (gen_insn_reserv): Same.
18406 (check_tune_attr): Same.
18407 (make_automaton_attrs): Same.
18408 (handle_arg): Same.
18409 * genextract.c (gen_insn): Same.
18410 (VEC_char_to_string): Same.
18411 * genmatch.c (print_operand): Same.
18413 (parser::parse_operation): Same.
18414 (parser::parse_capture): Same.
18415 (parser::parse_c_expr): Same.
18416 (parser::parse_simplify): Same.
18418 * genoutput.c (output_operand_data): Same.
18419 (output_get_insn_name): Same.
18420 (compare_operands): Same.
18421 (place_operands): Same.
18422 (process_template): Same.
18423 (validate_insn_alternatives): Same.
18424 (validate_insn_operands): Same.
18425 (gen_expand): Same.
18426 (note_constraint): Same.
18427 * genpreds.c (write_one_predicate_function): Same.
18428 (add_constraint): Same.
18429 (process_define_register_constraint): Same.
18430 (write_lookup_constraint_1): Same.
18431 (write_lookup_constraint_array): Same.
18432 (write_insn_constraint_len): Same.
18433 (write_reg_class_for_constraint_1): Same.
18434 (write_constraint_satisfied_p_array): Same.
18435 * genrecog.c (optimize_subroutine_group): Same.
18436 * gensupport.c (process_define_predicate): Same.
18437 (queue_pattern): Same.
18438 (remove_from_queue): Same.
18439 (process_rtx): Same.
18440 (is_predicable): Same.
18441 (change_subst_attribute): Same.
18442 (subst_pattern_match): Same.
18443 (alter_constraints): Same.
18444 (alter_attrs_for_insn): Same.
18445 (shift_output_template): Same.
18446 (alter_output_for_subst_insn): Same.
18447 (process_one_cond_exec): Same.
18449 (process_define_cond_exec): Same.
18450 (mnemonic_htab_callback): Same.
18451 (gen_mnemonic_attr): Same.
18452 (read_md_rtx): Same.
18453 * ggc-page.c: Same.
18454 * gimple-loop-interchange.cc (dump_reduction): Same.
18455 (dump_induction): Same.
18456 (loop_cand::~loop_cand): Same.
18457 (free_data_refs_with_aux): Same.
18458 (tree_loop_interchange::interchange_loops): Same.
18459 (tree_loop_interchange::map_inductions_to_loop): Same.
18460 (tree_loop_interchange::move_code_to_inner_loop): Same.
18461 (compute_access_stride): Same.
18462 (compute_access_strides): Same.
18463 (proper_loop_form_for_interchange): Same.
18464 (tree_loop_interchange_compute_ddrs): Same.
18465 (prune_datarefs_not_in_loop): Same.
18466 (prepare_data_references): Same.
18467 (pass_linterchange::execute): Same.
18468 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
18469 (unroll_jam_possible_p): Same.
18470 (fuse_loops): Same.
18471 (adjust_unroll_factor): Same.
18472 (tree_loop_unroll_and_jam): Same.
18473 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
18474 (loop_versioning::expensive_stmt_p): Same.
18475 (loop_versioning::version_for_unity): Same.
18476 (loop_versioning::dump_inner_likelihood): Same.
18477 (loop_versioning::find_per_loop_multiplication): Same.
18478 (loop_versioning::analyze_term_using_scevs): Same.
18479 (loop_versioning::record_address_fragment): Same.
18480 (loop_versioning::analyze_expr): Same.
18481 (loop_versioning::analyze_blocks): Same.
18482 (loop_versioning::prune_conditions): Same.
18483 (loop_versioning::merge_loop_info): Same.
18484 (loop_versioning::add_loop_to_queue): Same.
18485 (loop_versioning::decide_whether_loop_is_versionable): Same.
18486 (loop_versioning::make_versioning_decisions): Same.
18487 (loop_versioning::implement_versioning_decisions): Same.
18488 * gimple-ssa-evrp-analyze.c
18489 (evrp_range_analyzer::record_ranges_from_phis): Same.
18490 * gimple-ssa-store-merging.c (split_store::split_store): Same.
18491 (count_multiple_uses): Same.
18492 (split_group): Same.
18493 (imm_store_chain_info::output_merged_store): Same.
18494 (pass_store_merging::process_store): Same.
18495 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
18496 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
18498 (alloca_call_type): Same.
18499 (pass_walloca::execute): Same.
18500 * gimple-streamer-in.c (input_phi): Same.
18501 (input_gimple_stmt): Same.
18502 * gimple-streamer.h: Same.
18503 * godump.c (go_force_record_alignment): Same.
18504 (go_format_type): Same.
18505 (go_output_type): Same.
18506 (go_output_fndecl): Same.
18507 (go_output_typedef): Same.
18508 (keyword_hash_init): Same.
18509 (find_dummy_types): Same.
18510 * graph.c (draw_cfg_nodes_no_loops): Same.
18511 (draw_cfg_nodes_for_loop): Same.
18512 * hard-reg-set.h (hard_reg_set_iter_next): Same.
18513 * hsa-brig.c: Same.
18514 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
18515 * hsa-dump.c (dump_hsa_cfun): Same.
18516 * hsa-gen.c (gen_function_def_parameters): Same.
18517 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
18518 * input.c (dump_line_table_statistics): Same.
18519 (test_lexer): Same.
18521 * internal-fn.c (get_multi_vector_move): Same.
18522 (expand_load_lanes_optab_fn): Same.
18523 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
18524 (expand_GOMP_SIMT_EXIT): Same.
18525 (expand_GOMP_SIMT_LAST_LANE): Same.
18526 (expand_GOMP_SIMT_ORDERED_PRED): Same.
18527 (expand_GOMP_SIMT_VOTE_ANY): Same.
18528 (expand_GOMP_SIMT_XCHG_BFLY): Same.
18529 (expand_GOMP_SIMT_XCHG_IDX): Same.
18530 (expand_addsub_overflow): Same.
18531 (expand_neg_overflow): Same.
18532 (expand_mul_overflow): Same.
18533 (expand_call_mem_ref): Same.
18534 (expand_mask_load_optab_fn): Same.
18535 (expand_scatter_store_optab_fn): Same.
18536 (expand_gather_load_optab_fn): Same.
18537 * ipa-cp.c (ipa_get_parm_lattices): Same.
18538 (print_all_lattices): Same.
18539 (ignore_edge_p): Same.
18540 (build_toporder_info): Same.
18541 (free_toporder_info): Same.
18542 (push_node_to_stack): Same.
18543 (ipcp_lattice<valtype>::set_contains_variable): Same.
18544 (set_agg_lats_to_bottom): Same.
18545 (ipcp_bits_lattice::meet_with): Same.
18546 (set_single_call_flag): Same.
18547 (initialize_node_lattices): Same.
18548 (ipa_get_jf_ancestor_result): Same.
18549 (ipcp_verify_propagated_values): Same.
18550 (propagate_scalar_across_jump_function): Same.
18551 (propagate_context_across_jump_function): Same.
18552 (propagate_bits_across_jump_function): Same.
18553 (ipa_vr_operation_and_type_effects): Same.
18554 (propagate_vr_across_jump_function): Same.
18555 (set_check_aggs_by_ref): Same.
18556 (set_chain_of_aglats_contains_variable): Same.
18557 (merge_aggregate_lattices): Same.
18558 (agg_pass_through_permissible_p): Same.
18559 (propagate_aggs_across_jump_function): Same.
18560 (call_passes_through_thunk_p): Same.
18561 (propagate_constants_across_call): Same.
18562 (devirtualization_time_bonus): Same.
18563 (good_cloning_opportunity_p): Same.
18564 (context_independent_aggregate_values): Same.
18565 (gather_context_independent_values): Same.
18566 (perform_estimation_of_a_value): Same.
18567 (estimate_local_effects): Same.
18568 (value_topo_info<valtype>::add_val): Same.
18569 (add_all_node_vals_to_toposort): Same.
18570 (value_topo_info<valtype>::propagate_effects): Same.
18571 (ipcp_propagate_stage): Same.
18572 (ipcp_discover_new_direct_edges): Same.
18573 (same_node_or_its_all_contexts_clone_p): Same.
18574 (cgraph_edge_brings_value_p): Same.
18575 (gather_edges_for_value): Same.
18576 (create_specialized_node): Same.
18577 (find_more_scalar_values_for_callers_subset): Same.
18578 (find_more_contexts_for_caller_subset): Same.
18579 (copy_plats_to_inter): Same.
18580 (intersect_aggregates_with_edge): Same.
18581 (find_aggregate_values_for_callers_subset): Same.
18582 (cgraph_edge_brings_all_agg_vals_for_node): Same.
18583 (decide_about_value): Same.
18584 (decide_whether_version_node): Same.
18585 (spread_undeadness): Same.
18586 (identify_dead_nodes): Same.
18587 (ipcp_store_vr_results): Same.
18588 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
18589 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
18590 (redirect_to_unreachable): Same.
18591 (edge_set_predicate): Same.
18592 (evaluate_conditions_for_known_args): Same.
18593 (evaluate_properties_for_edge): Same.
18594 (ipa_fn_summary_t::duplicate): Same.
18595 (ipa_call_summary_t::duplicate): Same.
18596 (dump_ipa_call_summary): Same.
18597 (ipa_dump_fn_summary): Same.
18598 (eliminated_by_inlining_prob): Same.
18599 (set_cond_stmt_execution_predicate): Same.
18600 (set_switch_stmt_execution_predicate): Same.
18601 (compute_bb_predicates): Same.
18602 (will_be_nonconstant_expr_predicate): Same.
18603 (phi_result_unknown_predicate): Same.
18604 (analyze_function_body): Same.
18605 (compute_fn_summary): Same.
18606 (estimate_edge_devirt_benefit): Same.
18607 (estimate_edge_size_and_time): Same.
18608 (estimate_calls_size_and_time): Same.
18609 (estimate_node_size_and_time): Same.
18610 (remap_edge_change_prob): Same.
18611 (remap_edge_summaries): Same.
18612 (ipa_merge_fn_summary_after_inlining): Same.
18613 (ipa_fn_summary_generate): Same.
18614 (inline_read_section): Same.
18615 (ipa_fn_summary_read): Same.
18616 (ipa_fn_summary_write): Same.
18617 * ipa-fnsummary.h: Same.
18618 * ipa-hsa.c (ipa_hsa_read_section): Same.
18619 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
18620 * ipa-icf.c (sem_function::param_used_p): Same.
18621 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
18622 * ipa-inline.c (edge_badness): Same.
18623 (inline_small_functions): Same.
18624 * ipa-polymorphic-call.c
18625 (ipa_polymorphic_call_context::stream_out): Same.
18626 * ipa-predicate.c (predicate::remap_after_duplication): Same.
18627 (predicate::remap_after_inlining): Same.
18628 (predicate::stream_out): Same.
18629 * ipa-predicate.h: Same.
18630 * ipa-profile.c (ipa_profile_read_summary): Same.
18631 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
18632 (count_formal_params): Same.
18633 (ipa_dump_param): Same.
18634 (ipa_alloc_node_params): Same.
18635 (ipa_print_node_jump_functions_for_edge): Same.
18636 (ipa_print_node_jump_functions): Same.
18637 (ipa_load_from_parm_agg): Same.
18638 (get_ancestor_addr_info): Same.
18639 (ipa_compute_jump_functions_for_edge): Same.
18640 (ipa_analyze_virtual_call_uses): Same.
18641 (ipa_analyze_stmt_uses): Same.
18642 (ipa_analyze_params_uses_in_bb): Same.
18643 (update_jump_functions_after_inlining): Same.
18644 (try_decrement_rdesc_refcount): Same.
18645 (ipa_impossible_devirt_target): Same.
18646 (update_indirect_edges_after_inlining): Same.
18647 (combine_controlled_uses_counters): Same.
18648 (ipa_edge_args_sum_t::duplicate): Same.
18649 (ipa_write_jump_function): Same.
18650 (ipa_write_indirect_edge_info): Same.
18651 (ipa_write_node_info): Same.
18652 (ipa_read_edge_info): Same.
18653 (ipa_prop_read_section): Same.
18654 (read_replacements_section): Same.
18655 * ipa-prop.h (ipa_get_param_count): Same.
18656 (ipa_get_param): Same.
18657 (ipa_get_type): Same.
18658 (ipa_get_param_move_cost): Same.
18659 (ipa_set_param_used): Same.
18660 (ipa_get_controlled_uses): Same.
18661 (ipa_set_controlled_uses): Same.
18662 (ipa_get_cs_argument_count): Same.
18663 * ipa-pure-const.c (analyze_function): Same.
18664 (pure_const_read_summary): Same.
18666 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
18667 * ipa-split.c (test_nonssa_use): Same.
18668 (dump_split_point): Same.
18669 (dominated_by_forbidden): Same.
18670 (split_part_set_ssa_name_p): Same.
18671 (find_split_points): Same.
18672 * ira-build.c (finish_loop_tree_nodes): Same.
18673 (low_pressure_loop_node_p): Same.
18674 * ira-color.c (ira_reuse_stack_slot): Same.
18676 * ira.c (setup_reg_equiv): Same.
18677 (print_insn_chain): Same.
18679 * loop-doloop.c (doloop_condition_get): Same.
18681 (record_reg_sets): Same.
18682 (doloop_optimize): Same.
18683 * loop-init.c (loop_optimizer_init): Same.
18684 (fix_loop_structure): Same.
18685 * loop-invariant.c (merge_identical_invariants): Same.
18686 (compute_always_reached): Same.
18687 (find_exits): Same.
18688 (may_assign_reg_p): Same.
18689 (find_invariants_bb): Same.
18690 (find_invariants_body): Same.
18691 (replace_uses): Same.
18692 (can_move_invariant_reg): Same.
18693 (free_inv_motion_data): Same.
18694 (move_single_loop_invariants): Same.
18695 (change_pressure): Same.
18696 (mark_ref_regs): Same.
18697 (calculate_loop_reg_pressure): Same.
18698 * loop-iv.c (biv_entry_hasher::equal): Same.
18699 (iv_extend_to_rtx_code): Same.
18700 (check_iv_ref_table_size): Same.
18701 (clear_iv_info): Same.
18702 (latch_dominating_def): Same.
18703 (iv_get_reaching_def): Same.
18704 (iv_constant): Same.
18710 (get_biv_step): Same.
18712 (analyzed_for_bivness_p): Same.
18713 (record_biv): Same.
18714 (iv_analyze_biv): Same.
18715 (iv_analyze_expr): Same.
18716 (iv_analyze_def): Same.
18717 (iv_analyze_op): Same.
18718 (iv_analyze): Same.
18719 (iv_analyze_result): Same.
18721 (eliminate_implied_conditions): Same.
18722 (simplify_using_initial_values): Same.
18723 (shorten_into_mode): Same.
18724 (canonicalize_iv_subregs): Same.
18725 (determine_max_iter): Same.
18726 (check_simple_exit): Same.
18727 (find_simple_exit): Same.
18728 (get_simple_loop_desc): Same.
18729 * loop-unroll.c (report_unroll): Same.
18730 (decide_unrolling): Same.
18731 (unroll_loops): Same.
18732 (loop_exit_at_end_p): Same.
18733 (decide_unroll_constant_iterations): Same.
18734 (unroll_loop_constant_iterations): Same.
18735 (compare_and_jump_seq): Same.
18736 (unroll_loop_runtime_iterations): Same.
18737 (decide_unroll_stupid): Same.
18738 (unroll_loop_stupid): Same.
18739 (referenced_in_one_insn_in_loop_p): Same.
18740 (reset_debug_uses_in_loop): Same.
18741 (analyze_iv_to_split_insn): Same.
18742 * lra-eliminations.c (lra_debug_elim_table): Same.
18743 (setup_can_eliminate): Same.
18745 (lra_get_elimination_hard_regno): Same.
18746 (lra_eliminate_regs_1): Same.
18747 (eliminate_regs_in_insn): Same.
18748 (update_reg_eliminate): Same.
18749 (init_elimination): Same.
18750 (lra_eliminate): Same.
18752 * lra-lives.c (initiate_live_solver): Same.
18753 * lra-remat.c (create_remat_bb_data): Same.
18754 * lra-spills.c (lra_spill): Same.
18755 * lra.c (lra_set_insn_recog_data): Same.
18756 (lra_set_used_insn_alternative_by_uid): Same.
18757 (init_reg_info): Same.
18758 (expand_reg_info): Same.
18759 * lto-cgraph.c (output_symtab): Same.
18760 (read_identifier): Same.
18761 (get_alias_symbol): Same.
18762 (input_node): Same.
18763 (input_varpool_node): Same.
18765 (input_edge): Same.
18766 (input_cgraph_1): Same.
18767 (input_refs): Same.
18768 (input_symtab): Same.
18769 (input_offload_tables): Same.
18770 (output_cgraph_opt_summary): Same.
18771 (input_edge_opt_summary): Same.
18772 (input_cgraph_opt_section): Same.
18773 * lto-section-in.c (lto_free_raw_section_data): Same.
18774 (lto_create_simple_input_block): Same.
18775 (lto_free_function_in_decl_state_for_node): Same.
18776 * lto-streamer-in.c (lto_tag_check_set): Same.
18777 (lto_location_cache::revert_location_cache): Same.
18778 (lto_location_cache::input_location): Same.
18779 (lto_input_location): Same.
18780 (stream_input_location_now): Same.
18781 (lto_input_tree_ref): Same.
18782 (lto_input_eh_catch_list): Same.
18783 (input_eh_region): Same.
18784 (lto_init_eh): Same.
18785 (make_new_block): Same.
18787 (fixup_call_stmt_edges): Same.
18788 (input_struct_function_base): Same.
18789 (input_function): Same.
18790 (lto_read_body_or_constructor): Same.
18791 (lto_read_tree_1): Same.
18792 (lto_read_tree): Same.
18793 (lto_input_scc): Same.
18794 (lto_input_tree_1): Same.
18795 (lto_input_toplevel_asms): Same.
18796 (lto_input_mode_table): Same.
18797 (lto_reader_init): Same.
18798 (lto_data_in_create): Same.
18799 * lto-streamer-out.c (output_cfg): Same.
18800 * lto-streamer.h: Same.
18801 * modulo-sched.c (duplicate_insns_of_cycles): Same.
18802 (generate_prolog_epilog): Same.
18803 (mark_loop_unsched): Same.
18804 (dump_insn_location): Same.
18805 (loop_canon_p): Same.
18806 (sms_schedule): Same.
18807 * omp-expand.c (expand_omp_for_ordered_loops): Same.
18808 (expand_omp_for_generic): Same.
18809 (expand_omp_for_static_nochunk): Same.
18810 (expand_omp_for_static_chunk): Same.
18811 (expand_omp_simd): Same.
18812 (expand_omp_taskloop_for_inner): Same.
18813 (expand_oacc_for): Same.
18814 (expand_omp_atomic_pipeline): Same.
18815 (mark_loops_in_oacc_kernels_region): Same.
18816 * omp-offload.c (oacc_xform_loop): Same.
18817 * omp-simd-clone.c (simd_clone_adjust): Same.
18818 * optabs-query.c (get_traditional_extraction_insn): Same.
18819 * optabs.c (expand_vector_broadcast): Same.
18820 (expand_binop_directly): Same.
18821 (expand_twoval_unop): Same.
18822 (expand_twoval_binop): Same.
18823 (expand_unop_direct): Same.
18824 (emit_indirect_jump): Same.
18825 (emit_conditional_move): Same.
18826 (emit_conditional_neg_or_complement): Same.
18827 (emit_conditional_add): Same.
18828 (vector_compare_rtx): Same.
18829 (expand_vec_perm_1): Same.
18830 (expand_vec_perm_const): Same.
18831 (expand_vec_cond_expr): Same.
18832 (expand_vec_series_expr): Same.
18833 (maybe_emit_atomic_exchange): Same.
18834 (maybe_emit_sync_lock_test_and_set): Same.
18835 (expand_atomic_compare_and_swap): Same.
18836 (expand_atomic_load): Same.
18837 (expand_atomic_store): Same.
18838 (maybe_emit_op): Same.
18839 (valid_multiword_target_p): Same.
18840 (create_integer_operand): Same.
18841 (maybe_legitimize_operand_same_code): Same.
18842 (maybe_legitimize_operand): Same.
18843 (create_convert_operand_from_type): Same.
18844 (can_reuse_operands_p): Same.
18845 (maybe_legitimize_operands): Same.
18846 (maybe_gen_insn): Same.
18847 (maybe_expand_insn): Same.
18848 (maybe_expand_jump_insn): Same.
18849 (expand_insn): Same.
18850 * optabs.h (create_expand_operand): Same.
18851 (create_fixed_operand): Same.
18852 (create_output_operand): Same.
18853 (create_input_operand): Same.
18854 (create_convert_operand_to): Same.
18855 (create_convert_operand_from): Same.
18857 * poly-int.h: Same.
18858 * predict.c (optimize_insn_for_speed_p): Same.
18859 (optimize_loop_for_size_p): Same.
18860 (optimize_loop_for_speed_p): Same.
18861 (optimize_loop_nest_for_speed_p): Same.
18862 (get_base_value): Same.
18863 (predicted_by_loop_heuristics_p): Same.
18864 (predict_extra_loop_exits): Same.
18865 (predict_loops): Same.
18866 (predict_paths_for_bb): Same.
18867 (predict_paths_leading_to): Same.
18868 (propagate_freq): Same.
18869 (pass_profile::execute): Same.
18871 * profile-count.c (profile_count::differs_from_p): Same.
18872 (profile_probability::differs_lot_from_p): Same.
18873 * profile-count.h: Same.
18874 * profile.c (branch_prob): Same.
18875 * regrename.c (free_chain_data): Same.
18876 (mark_conflict): Same.
18877 (create_new_chain): Same.
18878 (merge_overlapping_regs): Same.
18879 (init_rename_info): Same.
18880 (merge_chains): Same.
18881 (regrename_analyze): Same.
18882 (regrename_do_replace): Same.
18883 (scan_rtx_reg): Same.
18884 (record_out_operands): Same.
18885 (build_def_use): Same.
18886 * regrename.h: Same.
18888 * reload1.c (init_reload): Same.
18889 (maybe_fix_stack_asms): Same.
18890 (copy_reloads): Same.
18891 (count_pseudo): Same.
18892 (count_spilled_pseudo): Same.
18894 (find_reload_regs): Same.
18895 (select_reload_regs): Same.
18896 (spill_hard_reg): Same.
18897 (fixup_eh_region_note): Same.
18898 (set_reload_reg): Same.
18899 (allocate_reload_reg): Same.
18900 (compute_reload_subreg_offset): Same.
18901 (reload_adjust_reg_for_icode): Same.
18902 (emit_input_reload_insns): Same.
18903 (emit_output_reload_insns): Same.
18904 (do_input_reload): Same.
18905 (inherit_piecemeal_p): Same.
18907 * sanopt.c (maybe_get_dominating_check): Same.
18908 (maybe_optimize_ubsan_ptr_ifn): Same.
18909 (can_remove_asan_check): Same.
18910 (maybe_optimize_asan_check_ifn): Same.
18911 (sanopt_optimize_walker): Same.
18912 * sched-deps.c (add_dependence_list): Same.
18913 (chain_to_prev_insn): Same.
18914 (add_insn_mem_dependence): Same.
18915 (create_insn_reg_set): Same.
18916 (maybe_extend_reg_info_p): Same.
18917 (sched_analyze_reg): Same.
18918 (sched_analyze_1): Same.
18919 (get_implicit_reg_pending_clobbers): Same.
18920 (chain_to_prev_insn_p): Same.
18921 (deps_analyze_insn): Same.
18922 (deps_start_bb): Same.
18923 (sched_free_deps): Same.
18925 (init_deps_reg_last): Same.
18927 * sched-ebb.c: Same.
18928 * sched-int.h: Same.
18929 * sched-rgn.c (add_branch_dependences): Same.
18930 (concat_insn_mem_list): Same.
18932 (sched_rgn_compute_dependencies): Same.
18933 * sel-sched-ir.c (reset_target_context): Same.
18934 (copy_deps_context): Same.
18935 (init_id_from_df): Same.
18936 (has_dependence_p): Same.
18937 (change_loops_latches): Same.
18938 (bb_top_order_comparator): Same.
18939 (make_region_from_loop_preheader): Same.
18940 (sel_init_pipelining): Same.
18941 (get_loop_nest_for_rgn): Same.
18942 (make_regions_from_the_rest): Same.
18943 (sel_is_loop_preheader_p): Same.
18944 * sel-sched-ir.h (inner_loop_header_p): Same.
18945 (get_all_loop_exits): Same.
18946 * selftest.h: Same.
18947 * sese.c (sese_build_liveouts): Same.
18948 (sese_insert_phis_for_liveouts): Same.
18949 * sese.h (defined_in_sese_p): Same.
18950 * sreal.c (sreal::stream_out): Same.
18952 * streamer-hooks.h: Same.
18953 * target-globals.c (save_target_globals): Same.
18954 * target-globals.h: Same.
18955 * target.def: Same.
18957 * targhooks.c (default_has_ifunc_p): Same.
18958 (default_empty_mask_is_expensive): Same.
18959 (default_init_cost): Same.
18960 * targhooks.h: Same.
18962 * tree-affine.c (aff_combination_mult): Same.
18963 (aff_combination_expand): Same.
18964 (aff_combination_constant_multiple_p): Same.
18965 * tree-affine.h: Same.
18966 * tree-cfg.c (build_gimple_cfg): Same.
18967 (replace_loop_annotate_in_block): Same.
18968 (replace_uses_by): Same.
18970 (dump_cfg_stats): Same.
18971 (gimple_duplicate_sese_region): Same.
18972 (gimple_duplicate_sese_tail): Same.
18973 (move_block_to_fn): Same.
18974 (replace_block_vars_by_duplicates): Same.
18975 (move_sese_region_to_fn): Same.
18976 (print_loops_bb): Same.
18977 (print_loop): Same.
18978 (print_loops): Same.
18980 (debug_loops): Same.
18981 * tree-cfg.h: Same.
18982 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18983 (chrec_fold_multiply_poly_poly): Same.
18984 (chrec_evaluate): Same.
18985 (chrec_component_in_loop_num): Same.
18986 (reset_evolution_in_loop): Same.
18987 (is_multivariate_chrec): Same.
18988 (chrec_contains_symbols): Same.
18989 (nb_vars_in_chrec): Same.
18990 (chrec_convert_1): Same.
18991 (chrec_convert_aggressive): Same.
18992 * tree-chrec.h: Same.
18993 * tree-core.h: Same.
18994 * tree-data-ref.c (dump_data_dependence_relation): Same.
18995 (canonicalize_base_object_address): Same.
18996 (data_ref_compare_tree): Same.
18997 (prune_runtime_alias_test_list): Same.
18998 (get_segment_min_max): Same.
18999 (create_intersect_range_checks): Same.
19000 (conflict_fn_no_dependence): Same.
19001 (object_address_invariant_in_loop_p): Same.
19002 (analyze_ziv_subscript): Same.
19003 (analyze_siv_subscript_cst_affine): Same.
19004 (analyze_miv_subscript): Same.
19005 (analyze_overlapping_iterations): Same.
19006 (build_classic_dist_vector_1): Same.
19007 (add_other_self_distances): Same.
19008 (same_access_functions): Same.
19009 (build_classic_dir_vector): Same.
19010 (subscript_dependence_tester_1): Same.
19011 (subscript_dependence_tester): Same.
19012 (access_functions_are_affine_or_constant_p): Same.
19013 (get_references_in_stmt): Same.
19014 (loop_nest_has_data_refs): Same.
19015 (graphite_find_data_references_in_stmt): Same.
19016 (find_data_references_in_bb): Same.
19017 (get_base_for_alignment): Same.
19018 (find_loop_nest_1): Same.
19019 (find_loop_nest): Same.
19020 * tree-data-ref.h (dr_alignment): Same.
19021 (ddr_dependence_level): Same.
19022 * tree-if-conv.c (fold_build_cond_expr): Same.
19023 (add_to_predicate_list): Same.
19024 (add_to_dst_predicate_list): Same.
19025 (phi_convertible_by_degenerating_args): Same.
19026 (idx_within_array_bound): Same.
19027 (all_preds_critical_p): Same.
19028 (pred_blocks_visited_p): Same.
19029 (predicate_bbs): Same.
19030 (build_region): Same.
19031 (if_convertible_loop_p_1): Same.
19032 (is_cond_scalar_reduction): Same.
19033 (predicate_scalar_phi): Same.
19034 (remove_conditions_and_labels): Same.
19035 (combine_blocks): Same.
19036 (version_loop_for_if_conversion): Same.
19037 (versionable_outer_loop_p): Same.
19038 (ifcvt_local_dce): Same.
19039 (tree_if_conversion): Same.
19040 (pass_if_conversion::gate): Same.
19041 * tree-if-conv.h: Same.
19042 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
19043 * tree-loop-distribution.c (bb_top_order_cmp): Same.
19045 (stmt_has_scalar_dependences_outside_loop): Same.
19046 (copy_loop_before): Same.
19047 (create_bb_after_loop): Same.
19048 (const_with_all_bytes_same): Same.
19049 (generate_memset_builtin): Same.
19050 (generate_memcpy_builtin): Same.
19051 (destroy_loop): Same.
19052 (build_rdg_partition_for_vertex): Same.
19053 (compute_access_range): Same.
19054 (data_ref_segment_size): Same.
19055 (latch_dominated_by_data_ref): Same.
19056 (compute_alias_check_pairs): Same.
19057 (fuse_memset_builtins): Same.
19058 (finalize_partitions): Same.
19059 (find_seed_stmts_for_distribution): Same.
19060 (prepare_perfect_loop_nest): Same.
19061 * tree-parloops.c (lambda_transform_legal_p): Same.
19062 (loop_parallel_p): Same.
19063 (reduc_stmt_res): Same.
19064 (add_field_for_name): Same.
19065 (create_call_for_reduction_1): Same.
19066 (replace_uses_in_bb_by): Same.
19067 (transform_to_exit_first_loop_alt): Same.
19068 (try_transform_to_exit_first_loop_alt): Same.
19069 (transform_to_exit_first_loop): Same.
19071 (gen_parallel_loop): Same.
19072 (gather_scalar_reductions): Same.
19073 (get_omp_data_i_param): Same.
19074 (try_create_reduction_list): Same.
19075 (oacc_entry_exit_single_gang): Same.
19076 (parallelize_loops): Same.
19077 * tree-pass.h: Same.
19078 * tree-predcom.c (determine_offset): Same.
19079 (last_always_executed_block): Same.
19080 (split_data_refs_to_components): Same.
19081 (suitable_component_p): Same.
19082 (valid_initializer_p): Same.
19083 (find_looparound_phi): Same.
19084 (insert_looparound_copy): Same.
19085 (add_looparound_copies): Same.
19086 (determine_roots_comp): Same.
19087 (predcom_tmp_var): Same.
19088 (initialize_root_vars): Same.
19089 (initialize_root_vars_store_elim_1): Same.
19090 (initialize_root_vars_store_elim_2): Same.
19091 (finalize_eliminated_stores): Same.
19092 (initialize_root_vars_lm): Same.
19093 (remove_stmt): Same.
19094 (determine_unroll_factor): Same.
19095 (execute_pred_commoning_cbck): Same.
19096 (base_names_in_chain_on): Same.
19097 (combine_chains): Same.
19098 (pcom_stmt_dominates_stmt_p): Same.
19099 (try_combine_chains): Same.
19100 (prepare_initializers_chain_store_elim): Same.
19101 (prepare_initializers_chain): Same.
19102 (prepare_initializers): Same.
19103 (prepare_finalizers_chain): Same.
19104 (prepare_finalizers): Same.
19105 (insert_init_seqs): Same.
19106 * tree-scalar-evolution.c (loop_phi_node_p): Same.
19107 (compute_overall_effect_of_inner_loop): Same.
19108 (add_to_evolution_1): Same.
19109 (add_to_evolution): Same.
19110 (follow_ssa_edge_binary): Same.
19111 (follow_ssa_edge_expr): Same.
19112 (backedge_phi_arg_p): Same.
19113 (follow_ssa_edge_in_condition_phi_branch): Same.
19114 (follow_ssa_edge_in_condition_phi): Same.
19115 (follow_ssa_edge_inner_loop_phi): Same.
19116 (follow_ssa_edge): Same.
19117 (analyze_evolution_in_loop): Same.
19118 (analyze_initial_condition): Same.
19119 (interpret_loop_phi): Same.
19120 (interpret_condition_phi): Same.
19121 (interpret_rhs_expr): Same.
19122 (interpret_expr): Same.
19123 (interpret_gimple_assign): Same.
19124 (analyze_scalar_evolution_1): Same.
19125 (analyze_scalar_evolution): Same.
19126 (analyze_scalar_evolution_for_address_of): Same.
19127 (get_instantiated_value_entry): Same.
19128 (loop_closed_phi_def): Same.
19129 (instantiate_scev_name): Same.
19130 (instantiate_scev_poly): Same.
19131 (instantiate_scev_binary): Same.
19132 (instantiate_scev_convert): Same.
19133 (instantiate_scev_not): Same.
19134 (instantiate_scev_r): Same.
19135 (instantiate_scev): Same.
19136 (resolve_mixers): Same.
19137 (initialize_scalar_evolutions_analyzer): Same.
19138 (scev_reset_htab): Same.
19139 (scev_reset): Same.
19140 (derive_simple_iv_with_niters): Same.
19141 (simple_iv_with_niters): Same.
19142 (expression_expensive_p): Same.
19143 (final_value_replacement_loop): Same.
19144 * tree-scalar-evolution.h (block_before_loop): Same.
19145 * tree-ssa-address.h: Same.
19146 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
19147 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
19148 (record_edge_info): Same.
19149 * tree-ssa-live.c (var_map_base_fini): Same.
19150 (remove_unused_locals): Same.
19151 * tree-ssa-live.h: Same.
19152 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
19153 (pass_ch_vect::execute): Same.
19154 (pass_ch::process_loop_p): Same.
19155 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
19156 (movement_possibility): Same.
19157 (outermost_invariant_loop): Same.
19159 (determine_max_movement): Same.
19160 (invariantness_dom_walker::before_dom_children): Same.
19161 (move_computations): Same.
19162 (may_move_till): Same.
19163 (force_move_till_op): Same.
19164 (force_move_till): Same.
19165 (memref_free): Same.
19166 (record_mem_ref_loc): Same.
19167 (set_ref_stored_in_loop): Same.
19168 (mark_ref_stored): Same.
19169 (sort_bbs_in_loop_postorder_cmp): Same.
19170 (sort_locs_in_loop_postorder_cmp): Same.
19171 (analyze_memory_references): Same.
19172 (mem_refs_may_alias_p): Same.
19173 (find_ref_loc_in_loop_cmp): Same.
19174 (rewrite_mem_ref_loc::operator): Same.
19175 (first_mem_ref_loc_1::operator): Same.
19176 (sm_set_flag_if_changed::operator): Same.
19177 (execute_sm_if_changed_flag_set): Same.
19178 (execute_sm): Same.
19179 (hoist_memory_references): Same.
19180 (ref_always_accessed::operator): Same.
19181 (refs_independent_p): Same.
19182 (record_dep_loop): Same.
19183 (ref_indep_loop_p_1): Same.
19184 (ref_indep_loop_p): Same.
19185 (can_sm_ref_p): Same.
19186 (find_refs_for_sm): Same.
19187 (loop_suitable_for_sm): Same.
19188 (store_motion_loop): Same.
19189 (store_motion): Same.
19190 (fill_always_executed_in): Same.
19191 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
19192 (estimated_unrolled_size): Same.
19193 (loop_edge_to_cancel): Same.
19194 (remove_exits_and_undefined_stmts): Same.
19195 (remove_redundant_iv_tests): Same.
19196 (unloop_loops): Same.
19197 (estimated_peeled_sequence_size): Same.
19198 (try_peel_loop): Same.
19199 (canonicalize_loop_induction_variables): Same.
19200 (canonicalize_induction_variables): Same.
19201 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
19203 (stmt_after_inc_pos): Same.
19204 (contains_abnormal_ssa_name_p): Same.
19205 (niter_for_exit): Same.
19208 (find_givs_in_bb): Same.
19209 (find_induction_variables): Same.
19210 (find_interesting_uses_cond): Same.
19211 (outermost_invariant_loop_for_expr): Same.
19212 (idx_find_step): Same.
19213 (add_candidate_1): Same.
19214 (add_iv_candidate_derived_from_uses): Same.
19215 (alloc_use_cost_map): Same.
19216 (prepare_decl_rtl): Same.
19217 (generic_predict_doloop_p): Same.
19218 (computation_cost): Same.
19219 (determine_common_wider_type): Same.
19220 (get_computation_aff_1): Same.
19221 (get_use_type): Same.
19222 (determine_group_iv_cost_address): Same.
19224 (difference_cannot_overflow_p): Same.
19225 (may_eliminate_iv): Same.
19226 (determine_set_costs): Same.
19227 (cheaper_cost_pair): Same.
19228 (compare_cost_pair): Same.
19229 (iv_ca_cand_for_group): Same.
19230 (iv_ca_recount_cost): Same.
19231 (iv_ca_set_remove_invs): Same.
19232 (iv_ca_set_no_cp): Same.
19233 (iv_ca_set_add_invs): Same.
19234 (iv_ca_set_cp): Same.
19235 (iv_ca_add_group): Same.
19236 (iv_ca_cost): Same.
19237 (iv_ca_compare_deps): Same.
19238 (iv_ca_delta_reverse): Same.
19239 (iv_ca_delta_commit): Same.
19240 (iv_ca_cand_used_p): Same.
19241 (iv_ca_delta_free): Same.
19243 (iv_ca_free): Same.
19244 (iv_ca_dump): Same.
19245 (iv_ca_extend): Same.
19246 (iv_ca_narrow): Same.
19247 (iv_ca_prune): Same.
19248 (cheaper_cost_with_cand): Same.
19249 (iv_ca_replace): Same.
19250 (try_add_cand_for): Same.
19251 (get_initial_solution): Same.
19252 (try_improve_iv_set): Same.
19253 (find_optimal_iv_set_1): Same.
19254 (create_new_iv): Same.
19255 (rewrite_use_compare): Same.
19256 (remove_unused_ivs): Same.
19257 (determine_scaling_factor): Same.
19258 * tree-ssa-loop-ivopts.h: Same.
19259 * tree-ssa-loop-manip.c (create_iv): Same.
19260 (compute_live_loop_exits): Same.
19261 (add_exit_phi): Same.
19262 (add_exit_phis): Same.
19263 (find_uses_to_rename_use): Same.
19264 (find_uses_to_rename_def): Same.
19265 (find_uses_to_rename_in_loop): Same.
19266 (rewrite_into_loop_closed_ssa): Same.
19267 (check_loop_closed_ssa_bb): Same.
19268 (split_loop_exit_edge): Same.
19269 (ip_end_pos): Same.
19270 (ip_normal_pos): Same.
19271 (copy_phi_node_args): Same.
19272 (gimple_duplicate_loop_to_header_edge): Same.
19273 (can_unroll_loop_p): Same.
19274 (determine_exit_conditions): Same.
19275 (scale_dominated_blocks_in_loop): Same.
19276 (niter_for_unrolled_loop): Same.
19277 (tree_transform_and_unroll_loop): Same.
19278 (rewrite_all_phi_nodes_with_iv): Same.
19279 * tree-ssa-loop-manip.h: Same.
19280 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19281 (number_of_iterations_ne): Same.
19282 (assert_no_overflow_lt): Same.
19283 (assert_loop_rolls_lt): Same.
19284 (number_of_iterations_lt): Same.
19285 (adjust_cond_for_loop_until_wrap): Same.
19286 (tree_simplify_using_condition): Same.
19287 (simplify_using_initial_conditions): Same.
19288 (simplify_using_outer_evolutions): Same.
19289 (loop_only_exit_p): Same.
19290 (ssa_defined_by_minus_one_stmt_p): Same.
19291 (number_of_iterations_popcount): Same.
19292 (number_of_iterations_exit): Same.
19293 (find_loop_niter): Same.
19294 (finite_loop_p): Same.
19295 (chain_of_csts_start): Same.
19296 (get_val_for): Same.
19297 (loop_niter_by_eval): Same.
19298 (derive_constant_upper_bound_ops): Same.
19299 (do_warn_aggressive_loop_optimizations): Same.
19300 (record_estimate): Same.
19301 (get_cst_init_from_scev): Same.
19302 (record_nonwrapping_iv): Same.
19303 (idx_infer_loop_bounds): Same.
19304 (infer_loop_bounds_from_ref): Same.
19305 (infer_loop_bounds_from_array): Same.
19306 (infer_loop_bounds_from_pointer_arith): Same.
19307 (infer_loop_bounds_from_signedness): Same.
19308 (bound_index): Same.
19309 (discover_iteration_bound_by_body_walk): Same.
19310 (maybe_lower_iteration_bound): Same.
19311 (estimate_numbers_of_iterations): Same.
19312 (estimated_loop_iterations): Same.
19313 (estimated_loop_iterations_int): Same.
19314 (max_loop_iterations): Same.
19315 (max_loop_iterations_int): Same.
19316 (likely_max_loop_iterations): Same.
19317 (likely_max_loop_iterations_int): Same.
19318 (estimated_stmt_executions_int): Same.
19319 (max_stmt_executions): Same.
19320 (likely_max_stmt_executions): Same.
19321 (estimated_stmt_executions): Same.
19322 (stmt_dominates_stmt_p): Same.
19323 (nowrap_type_p): Same.
19324 (loop_exits_before_overflow): Same.
19325 (scev_var_range_cant_overflow): Same.
19326 (scev_probably_wraps_p): Same.
19327 (free_numbers_of_iterations_estimates): Same.
19328 * tree-ssa-loop-niter.h: Same.
19329 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19330 (idx_analyze_ref): Same.
19331 (analyze_ref): Same.
19332 (gather_memory_references_ref): Same.
19333 (mark_nontemporal_store): Same.
19334 (emit_mfence_after_loop): Same.
19335 (may_use_storent_in_loop_p): Same.
19336 (mark_nontemporal_stores): Same.
19337 (should_unroll_loop_p): Same.
19338 (volume_of_dist_vector): Same.
19339 (add_subscript_strides): Same.
19340 (self_reuse_distance): Same.
19341 (insn_to_prefetch_ratio_too_small_p): Same.
19342 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19343 (patch_loop_exit): Same.
19344 (find_or_create_guard_phi): Same.
19345 (easy_exit_values): Same.
19346 (connect_loop_phis): Same.
19347 (connect_loops): Same.
19348 (compute_new_first_bound): Same.
19349 (split_loop): Same.
19350 (tree_ssa_split_loops): Same.
19351 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
19352 (is_maybe_undefined): Same.
19353 (tree_may_unswitch_on): Same.
19354 (simplify_using_entry_checks): Same.
19355 (tree_unswitch_single_loop): Same.
19356 (tree_unswitch_loop): Same.
19357 (tree_unswitch_outer_loop): Same.
19358 (empty_bb_without_guard_p): Same.
19359 (used_outside_loop_p): Same.
19360 (get_vop_from_header): Same.
19361 (hoist_guard): Same.
19362 * tree-ssa-loop.c (gate_oacc_kernels): Same.
19363 (get_lsm_tmp_name): Same.
19364 * tree-ssa-loop.h: Same.
19365 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
19366 (build_and_add_sum): Same.
19367 (no_side_effect_bb): Same.
19369 (linearize_expr): Same.
19370 (should_break_up_subtract): Same.
19371 (linearize_expr_tree): Same.
19372 * tree-ssa-scopedtables.c: Same.
19373 * tree-ssa-scopedtables.h: Same.
19374 * tree-ssa-structalias.c (condense_visit): Same.
19375 (label_visit): Same.
19376 (dump_pred_graph): Same.
19377 (perform_var_substitution): Same.
19378 (move_complex_constraints): Same.
19379 (remove_preds_and_fake_succs): Same.
19380 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
19381 (determine_bb_domination_status): Same.
19382 (duplicate_thread_path): Same.
19383 (thread_through_all_blocks): Same.
19384 * tree-ssa-threadupdate.h: Same.
19385 * tree-streamer-in.c (streamer_read_string_cst): Same.
19386 (input_identifier): Same.
19387 (unpack_ts_type_common_value_fields): Same.
19388 (unpack_ts_block_value_fields): Same.
19389 (unpack_ts_translation_unit_decl_value_fields): Same.
19390 (unpack_ts_omp_clause_value_fields): Same.
19391 (streamer_read_tree_bitfields): Same.
19392 (streamer_alloc_tree): Same.
19393 (lto_input_ts_common_tree_pointers): Same.
19394 (lto_input_ts_vector_tree_pointers): Same.
19395 (lto_input_ts_poly_tree_pointers): Same.
19396 (lto_input_ts_complex_tree_pointers): Same.
19397 (lto_input_ts_decl_minimal_tree_pointers): Same.
19398 (lto_input_ts_decl_common_tree_pointers): Same.
19399 (lto_input_ts_decl_non_common_tree_pointers): Same.
19400 (lto_input_ts_decl_with_vis_tree_pointers): Same.
19401 (lto_input_ts_field_decl_tree_pointers): Same.
19402 (lto_input_ts_function_decl_tree_pointers): Same.
19403 (lto_input_ts_type_common_tree_pointers): Same.
19404 (lto_input_ts_type_non_common_tree_pointers): Same.
19405 (lto_input_ts_list_tree_pointers): Same.
19406 (lto_input_ts_vec_tree_pointers): Same.
19407 (lto_input_ts_exp_tree_pointers): Same.
19408 (lto_input_ts_block_tree_pointers): Same.
19409 (lto_input_ts_binfo_tree_pointers): Same.
19410 (lto_input_ts_constructor_tree_pointers): Same.
19411 (lto_input_ts_omp_clause_tree_pointers): Same.
19412 (streamer_read_tree_body): Same.
19413 * tree-streamer.h: Same.
19414 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
19415 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
19416 (vect_analyze_possibly_independent_ddr): Same.
19417 (vect_analyze_data_ref_dependence): Same.
19418 (vect_compute_data_ref_alignment): Same.
19419 (vect_enhance_data_refs_alignment): Same.
19420 (vect_analyze_data_ref_access): Same.
19421 (vect_check_gather_scatter): Same.
19422 (vect_find_stmt_data_reference): Same.
19423 (vect_create_addr_base_for_vector_ref): Same.
19424 (vect_setup_realignment): Same.
19425 (vect_supportable_dr_alignment): Same.
19426 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
19427 (adjust_phi_and_debug_stmts): Same.
19428 (vect_set_loop_mask): Same.
19429 (add_preheader_seq): Same.
19430 (vect_maybe_permute_loop_masks): Same.
19431 (vect_set_loop_masks_directly): Same.
19432 (vect_set_loop_condition_masked): Same.
19433 (vect_set_loop_condition_unmasked): Same.
19434 (slpeel_duplicate_current_defs_from_edges): Same.
19435 (slpeel_add_loop_guard): Same.
19436 (slpeel_can_duplicate_loop_p): Same.
19437 (create_lcssa_for_virtual_phi): Same.
19439 (vect_update_ivs_after_vectorizer): Same.
19440 (vect_gen_vector_loop_niters_mult_vf): Same.
19441 (slpeel_update_phi_nodes_for_loops): Same.
19442 (slpeel_update_phi_nodes_for_guard1): Same.
19443 (find_guard_arg): Same.
19444 (slpeel_update_phi_nodes_for_guard2): Same.
19445 (slpeel_update_phi_nodes_for_lcssa): Same.
19446 (vect_do_peeling): Same.
19447 (vect_create_cond_for_alias_checks): Same.
19448 (vect_loop_versioning): Same.
19449 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
19450 (vect_inner_phi_in_double_reduction_p): Same.
19451 (vect_analyze_scalar_cycles_1): Same.
19452 (vect_fixup_scalar_cycles_with_patterns): Same.
19453 (vect_get_loop_niters): Same.
19454 (bb_in_loop_p): Same.
19455 (vect_get_max_nscalars_per_iter): Same.
19456 (vect_verify_full_masking): Same.
19457 (vect_compute_single_scalar_iteration_cost): Same.
19458 (vect_analyze_loop_form_1): Same.
19459 (vect_analyze_loop_form): Same.
19460 (vect_active_double_reduction_p): Same.
19461 (vect_analyze_loop_operations): Same.
19462 (neutral_op_for_slp_reduction): Same.
19463 (vect_is_simple_reduction): Same.
19464 (vect_model_reduction_cost): Same.
19465 (get_initial_def_for_reduction): Same.
19466 (get_initial_defs_for_reduction): Same.
19467 (vect_create_epilog_for_reduction): Same.
19468 (vectorize_fold_left_reduction): Same.
19469 (vectorizable_reduction): Same.
19470 (vectorizable_induction): Same.
19471 (vectorizable_live_operation): Same.
19472 (loop_niters_no_overflow): Same.
19473 (vect_get_loop_mask): Same.
19474 (vect_transform_loop_stmt): Same.
19475 (vect_transform_loop): Same.
19476 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
19477 (vect_determine_precisions): Same.
19478 (vect_pattern_recog_1): Same.
19479 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
19480 * tree-vect-stmts.c (stmt_vectype): Same.
19481 (process_use): Same.
19482 (vect_init_vector_1): Same.
19483 (vect_truncate_gather_scatter_offset): Same.
19484 (get_group_load_store_type): Same.
19485 (vect_build_gather_load_calls): Same.
19486 (vect_get_strided_load_store_ops): Same.
19487 (vectorizable_simd_clone_call): Same.
19488 (vectorizable_store): Same.
19489 (permute_vec_elements): Same.
19490 (vectorizable_load): Same.
19491 (vect_transform_stmt): Same.
19492 (supportable_widening_operation): Same.
19493 * tree-vectorizer.c (vec_info::replace_stmt): Same.
19494 (vec_info::free_stmt_vec_info): Same.
19495 (vect_free_loop_info_assumptions): Same.
19496 (vect_loop_vectorized_call): Same.
19497 (set_uid_loop_bbs): Same.
19498 (vectorize_loops): Same.
19499 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
19500 * tree.c (add_tree_to_fld_list): Same.
19501 (fld_type_variant_equal_p): Same.
19502 (fld_decl_context): Same.
19503 (fld_incomplete_type_of): Same.
19504 (free_lang_data_in_binfo): Same.
19505 (need_assembler_name_p): Same.
19506 (find_decls_types_r): Same.
19507 (get_eh_types_for_runtime): Same.
19508 (find_decls_types_in_eh_region): Same.
19509 (find_decls_types_in_node): Same.
19510 (assign_assembler_name_if_needed): Same.
19511 * value-prof.c (stream_out_histogram_value): Same.
19512 * value-prof.h: Same.
19513 * var-tracking.c (use_narrower_mode): Same.
19514 (prepare_call_arguments): Same.
19515 (vt_expand_loc_callback): Same.
19516 (resolve_expansions_pending_recursion): Same.
19517 (vt_expand_loc): Same.
19518 * varasm.c (const_hash_1): Same.
19519 (compare_constant): Same.
19520 (tree_output_constant_def): Same.
19521 (simplify_subtraction): Same.
19522 (get_pool_constant): Same.
19523 (output_constant_pool_2): Same.
19524 (output_constant_pool_1): Same.
19525 (mark_constants_in_pattern): Same.
19526 (mark_constant_pool): Same.
19527 (get_section_anchor): Same.
19528 * vr-values.c (compare_range_with_value): Same.
19529 (vr_values::extract_range_from_phi_node): Same.
19530 * vr-values.h: Same.
19531 * web.c (unionfind_union): Same.
19532 * wide-int.h: Same.
19534 2019-07-09 Martin Sebor <msebor@redhat.com>
19537 * align.h: Change class-key from class to struct and vice versa
19538 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
19539 * alloc-pool.h: Same.
19540 * asan.c (shadow_mem_size): Same.
19541 * auto-profile.c: Same.
19542 * basic-block.h: Same.
19544 * cfgexpand.c (set_rtl): Same.
19545 (expand_one_stack_var_at): Same.
19546 * cfghooks.h: Same.
19549 * config/i386/i386.h: Same.
19550 * df-problems.c (df_print_bb_index): Same.
19552 * df.h (df_single_use): Same.
19553 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
19554 (layout::annotation_line_showed_range_p): Same.
19555 (get_printed_columns): Same.
19556 (correction::ensure_terminated): Same.
19557 (line_corrections::~line_corrections): Same.
19560 * dump-context.h: Same.
19561 * dumpfile.h: Same.
19562 * dwarf2out.c: Same.
19563 * edit-context.c: Same.
19564 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
19566 * function.c (assign_stack_local): Same.
19567 * function.h: Same.
19569 * gcov.c (block_info::block_info): Same.
19570 * genattrtab.c: Same.
19571 * genextract.c: Same.
19572 * genmatch.c (comparison_code_p): Same.
19573 (id_base::id_base): Same.
19574 (decision_tree::print): Same.
19575 * genoutput.c: Same.
19576 * genpreds.c (write_one_predicate_function): Same.
19577 * genrecog.c (validate_pattern): Same.
19578 (find_operand_positions): Same.
19579 (optimize_subroutine_group): Same.
19580 (merge_pattern_transition::merge_pattern_transition): Same.
19581 (merge_pattern_info::merge_pattern_info): Same.
19582 (merge_state_result::merge_state_result): Same.
19583 (merge_into_state): Same.
19584 * gensupport.c: Same.
19585 * gensupport.h: Same.
19586 * ggc-common.c (init_ggc_heuristics): Same.
19587 * ggc-tests.c (test_union): Same.
19588 * gimple-loop-interchange.cc (dump_induction): Same.
19589 * gimple-loop-versioning.cc: Same.
19590 * gimple-match.h (gimple_match_cond::any_else): Same.
19591 * gimple-ssa-backprop.c: Same.
19592 * gimple-ssa-sprintf.c: Same.
19593 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
19595 (store_immediate_info::store_immediate_info): Same.
19596 (merged_store_group::apply_stores): Same.
19597 (get_location_for_stmts): Same.
19598 * gimple-ssa-strength-reduction.c: Same.
19599 * gimple-ssa-warn-alloca.c: Same.
19600 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
19601 * godump.c (go_type_decl): Same.
19602 * hash-map-tests.c (test_map_of_strings_to_int): Same.
19603 * hash-map.h: Same.
19604 * hash-set-tests.c (test_set_of_strings): Same.
19605 * hsa-brig.c: Same.
19606 * hsa-common.h: Same.
19607 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
19608 * input.c (assert_loceq): Same.
19611 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
19612 * ipa-fnsummary.h: Same.
19613 * ipa-inline.h: Same.
19614 * ipa-prop.h: Same.
19615 * ipa-split.c (visit_bb): Same.
19616 * ira-int.h (minmax_set_iter_next): Same.
19617 * loop-invariant.c: Same.
19619 * lra-eliminations.c: Same.
19621 * lra-lives.c (mark_regno_dead): Same.
19622 * lra-remat.c: Same.
19623 * lra-spills.c: Same.
19624 * lto-streamer.h: Same.
19625 * mem-stats.h: Same.
19626 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
19627 * omp-low.c (omp_clause_aligned_alignment): Same.
19628 * optabs-query.h (get_vcond_eq_icode): Same.
19630 * opts.c (wrap_help): Same.
19631 * poly-int.h: Same.
19632 * predict.c (predict_paths_leading_to_edge): Same.
19633 * pretty-print.h: Same.
19634 * profile-count.h: Same.
19636 * read-rtl-function.c: Same.
19639 * regrename.c: Same.
19640 * regrename.h: Same.
19642 * rtl-iter.h: Same.
19643 * rtl.h (costs_add_n_insns): Same.
19645 * sched-int.h: Same.
19646 * sel-sched-ir.h: Same.
19647 * selftest.h: Same.
19648 * sese.h (vec_find): Same.
19650 * target-globals.h: Same.
19651 * tree-affine.c (aff_combination_find_elt): Same.
19652 * tree-affine.h: Same.
19653 * tree-data-ref.h: Same.
19654 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
19655 * tree-predcom.c: Same.
19656 * tree-scalar-evolution.c (find_var_scev_info): Same.
19657 * tree-ssa-alias.h: Same.
19658 * tree-ssa-ccp.c: Same.
19659 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
19660 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
19661 (rewrite_mem_refs): Same.
19662 (execute_sm_if_changed): Same.
19663 (hoist_memory_references): Same.
19664 * tree-ssa-loop-ivopts.c (operator<=): Same.
19665 * tree-ssa-loop.h: Same.
19666 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
19667 * tree-ssa-structalias.c: Same.
19668 * tree-switch-conversion.h (cluster::cluster): Same.
19669 (simple_cluster::simple_cluster): Same.
19670 * tree-vect-patterns.c (type_conversion_p): Same.
19671 * tree-vectorizer.c (dump_stmt_cost): Same.
19672 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
19673 * tree.c (protected_set_expr_location): Same.
19674 * tree.h (desired_pro_or_demotion_p): Same.
19675 (fndecl_built_in_p): Same.
19676 * unique-ptr-tests.cc: Same.
19677 * var-tracking.c (delete_variable_part): Same.
19678 * varasm.c (assemble_real): Same.
19679 (tree_output_constant_def): Same.
19681 * wide-int-bitmask.h: Same.
19682 * wide-int.h (decompose): Same.
19684 2019-07-09 Richard Biener <rguenther@suse.de>
19686 PR tree-optimization/91114
19687 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
19688 find a vector type isn't fatal.
19690 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19692 * config/aarch64/aarch64-simd.md
19693 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
19694 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
19695 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
19696 (*aarch64_crypto_aese_fused,
19697 *aarch64_crypto_aesd_fused): Update to new definition.
19698 * config/aarch64/aarch64.c
19699 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
19701 2019-07-09 Richard Biener <rguenther@suse.de>
19703 * gimple-match.h (gimple_match_op::resimplify): New.
19704 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
19705 gimple_resimplify4, gimple_resimplify5): Remove.
19706 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
19707 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
19709 (gimple_match_op::resimplify): New.
19710 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
19711 according to availability. Use gimple_match_op::resimplify.
19713 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
19715 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
19717 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19719 * config/arm/crypto.md:
19720 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
19721 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
19722 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
19723 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
19725 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
19726 * config/arm/aarch-common-protos.h
19727 (aarch_crypto_can_dual_issue): Remove.
19728 * config/arm/aarch-common.c
19729 (aarch_crypto_can_dual_issue): Likewise.
19730 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
19731 * config/arm/cortex-a53.md: Likewise.
19732 * config/arm/cortex-a57.md: Likewise.
19733 * config/arm/iterators.md:
19734 (CRYPTO_BINARY): Redefine.
19735 (CRYPTO_UNARY): Removed.
19736 (CRYPTO_AES, CRYPTO_AESMC): New.
19738 2019-07-09 Richard Biener <rguenther@suse.de>
19740 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
19741 (vn_reference_lookup_3): If the main ref has no access path recorded
19742 but orig_ref has use it to do access-path based disambiguation.
19743 (vn_reference_lookup_pieces): Adjust.
19744 (vn_reference_lookup): Pass down original ref if we valueized.
19746 2019-07-09 Martin Liska <mliska@suse.cz>
19748 * doc/extend.texi: Document influence on loop
19751 2019-07-09 Martin Liska <mliska@suse.cz>
19753 * lto-compress.c (lto_normalized_zstd_level): Do not use
19754 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
19755 of libzstd. One can use 0 as a default compression level.
19757 2019-07-09 Martin Liska <mliska@suse.cz>
19759 * doc/invoke.texi: Add link from -fprofile-dir option.
19760 Use better wording for 'gcno filename'.
19762 2019-07-08 Martin Sebor <msebor@redhat.com>
19764 PR middle-end/71924
19765 PR middle-end/90549
19766 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
19768 (args_loc_t): New type.
19769 (args_loc_t, locmap_t): same.
19770 (diag_returned_locals): New function.
19771 (is_addr_local): Same.
19772 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
19773 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
19774 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
19776 2019-07-08 Jakub Jelinek <jakub@redhat.com>
19778 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
19779 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
19780 and casts in offset when different, both through gimple stmts
19781 and through trees. Rewritten using loops to minimize code duplication
19784 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
19786 * emit-rtl.c (set_insn_locations): New function moved from...
19787 * function.c (set_insn_locations): ...here.
19788 * ira-emit.c (emit_moves): Propagate location of the first instruction
19789 to the inserted move instructions.
19790 * reg-stack.c (compensate_edge): Set the location if the sequence is
19791 inserted on the edge.
19792 * rtl.h (set_insn_locations): Declare.
19794 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19796 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
19797 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
19800 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19802 PR rtl-optimization/88233
19803 * common.opt (fsplit-wide-types-early): New option.
19804 * common/config/rs6000/rs6000-common.c
19805 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
19807 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
19808 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
19809 flag_split_wide_types_early.
19810 (pass_data_lower_subreg3): New.
19811 (pass_lower_subreg3): New.
19812 (make_pass_lower_subreg3): New.
19813 * passes.def (pass_lower_subreg2): Move after the loop passes.
19814 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19815 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19816 the pass pipeline; its previous place is taken by ...
19817 (make_pass_lower_subreg3): ... this.
19819 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19821 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19822 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19824 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19826 * config/s390/constraints.md: Add new jsc constraint.
19827 * config/s390/predicates.md: New predicates.
19828 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19829 * config/s390/s390.c (s390_valid_shift_count): New function.
19830 (print_shift_count_operand): Use s390_valid_shift_count.
19831 (print_operand): Likewise.
19832 * config/s390/s390.md: Use new predicate.
19833 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19834 * config/s390/vector.md: Use new predicate.
19836 2019-07-08 Andrew Waterman <andrew@sifive.com>
19837 Jim Wilson <jimw@sifive.com>
19839 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19840 bitsize instead of BITS_PER_WORD.
19842 2019-07-08 Martin Liska <mliska@suse.cz>
19844 * collect2.c (defined): Revert to before r254460.
19845 (scan_prog_file): Revert to before r254460.
19847 2019-07-08 Richard Biener <rguenther@suse.de>
19849 PR tree-optimization/83518
19850 * tree-ssa-sccvn.c: Include splay-tree.h.
19851 (struct pd_range, struct pd_data): New.
19852 (struct vn_walk_cb_data): Add data to track partial definitions.
19853 (vn_walk_cb_data::~vn_walk_cb_data): New.
19854 (vn_walk_cb_data::push_partial_def): New.
19855 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19856 (vn_reference_lookup_2): When partial defs are registered give up.
19857 (vn_reference_lookup_3): Track partial defs for memset and
19858 constructor zeroing and for defs from constants.
19860 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19862 * doc/install.texi (bootstrap-Og): Document.
19864 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19866 * config/riscv/pic.md (*local_pic_load_s<mode>)
19867 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19868 referenced by <mode>, giving...
19869 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19870 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19871 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19872 use <X:MODE> for the mode attribute.
19874 2019-07-07 Jeff Law <law@redhat.com>
19876 PR tree-optimization/91090
19877 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19878 in handling of ranges to simplify switch statements.
19880 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19882 * config/darwin.c (darwin_override_options): Make a final check on PIC
19885 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19887 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19888 on for kernel code.
19890 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19893 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19894 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19895 instead of matching them to "l" output operands.
19897 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19899 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19900 and check whether addr.reg is nonnull before using it.
19902 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19904 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19905 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19906 variable(s). For conditional lastprivate look through outer
19907 GIMPLE_OMP_SCAN context.
19908 (lower_omp_1): For conditional lastprivate look through outer
19909 GIMPLE_OMP_SCAN context.
19911 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19912 member to combined_into_simd_safelen1.
19913 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19914 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19915 clauses if ctx->combined_into_simd_safelen1 put statements after the
19916 predicate conditionalized block rather than into it.
19918 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19920 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19922 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19923 Make the choice of <mode> explicit, giving...
19924 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19926 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19928 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19929 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19931 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19932 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19933 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19934 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19935 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19936 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19937 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19938 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19939 (*avx512f_scatterdi<mode>): Likewise.
19940 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19942 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19944 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19945 specify the mode iterator referenced by <mode>, giving...
19946 (*push1_h8300hs_<QHI:mode>): ...this.
19948 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19950 * config/gcn/gcn-valu.md
19951 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19952 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19953 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19954 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19955 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19956 but using the _exec comparison patterns.
19957 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19958 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19959 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19960 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19961 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19962 but using the _exec comparison patterns.
19964 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19966 * config/arm/sync.md
19967 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19968 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19969 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19970 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19971 <SIDI:cas_cmp_str>.
19973 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19975 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19976 (maybe_lookup_ctx): Add forward declaration.
19977 (omp_find_scan): Likewise. Walk into body of simd if composited
19978 with worksharing loop.
19979 (scan_omp_simd_scan): New function.
19980 (scan_omp_1_stmt): Call it.
19981 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19982 ctx->for_simd_scan_phase.
19983 (lower_rec_input_clauses): Do much less work for inscan reductions
19984 in ctx->for_simd_scan_phase is_simd regions.
19985 (lower_omp_scan): Set is_simd also on simd constructs composited
19986 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19987 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19988 emit their body after in simd constructs composited with worksharing
19990 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19992 * omp-low.c (omp_find_scan): Make static.
19993 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19994 the second loop, var2 represents the first partial sum and so needs
19995 to go before rprivb[ivar].
19997 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19999 * config/rs6000/rs6000-logue.c: Remove unused code.
20001 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20003 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
20005 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
20008 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
20009 check with a frame laid out check.
20011 2019-07-05 Richard Biener <rguenther@suse.de>
20013 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
20014 when comparing against a store with possibly the same value.
20016 2019-07-05 Richard Biener <rguenther@suse.de>
20018 PR tree-optimization/91091
20019 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
20020 (walk_non_aliased_vuses): Likewise.
20021 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
20022 (get_continuation_for_phi): New tbaa_p parameter and pass
20024 (walk_non_aliased_vuses): Likewise.
20025 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
20026 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
20027 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
20029 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
20030 (adjust_offsets_for_equal_base_address): New function.
20031 (vn_reference_lookup_3): Use it to catch more base equivalences.
20032 Handle and pass down tbaa_p flag.
20033 (vn_reference_lookup_pieces): Adjust.
20034 (vn_reference_lookup): Remove alias-set altering, instead pass
20035 down false as tbaa_p.
20037 2019-07-05 Richard Biener <rguenther@suse.de>
20039 PR tree-optimization/91091
20040 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
20041 accesses can happen with -fno-strict-aliasing.
20043 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
20045 * tree-ssa-alias.c (alias_stats): Add
20046 nonoverlapping_component_refs_since_match_p_must_overlap.
20047 (dump_alias_stats): Print it.
20048 (nonoverlapping_component_refs_since_match_p): Add early exit.
20049 (nonoverlapping_component_refs_p): Do not account early exit.
20051 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20053 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
20054 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
20055 (emit_eh_dispatch): Delete.
20056 (lower_catch): Emit the eh_dispatch manually and set the location of
20057 the first catch statement onto it.
20058 (lower_eh_filter): Emit the eh_dispatch manually and set location.
20059 (lower_eh_dispatch): Propagate location.
20060 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
20061 (eliminate_build): Likewise.
20063 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
20065 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
20066 phi nodes if possible.
20067 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
20068 location info on the newly created statement.
20069 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
20070 newly created increment if needed.
20072 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20074 PR middle-end/78884
20075 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
20076 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
20077 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
20078 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
20079 ctx->add_safelen1 is set.
20081 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
20082 GOMP_loop_start at the start of second worksharing loop in a scan.
20083 For nowait, don't emit GOMP_loop_end_nowait at the end of first
20084 worksharing loop in a scan even if there are conditional lastprivates,
20085 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
20087 2019-07-04 Jan Hubicka <jh@suse.cz>
20089 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
20090 Fix check for match in the ref walk.
20092 2019-07-04 Martin Liska <mliska@suse.cz>
20094 * tree-ssa-loop-niter.c
20095 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
20096 (estimate_numbers_of_iterations):
20097 Support __builtin_expect_with_probability for analysis
20098 of # of loop iterations.
20100 2019-07-04 Alexandre Oliva <oliva@adacore.com>
20102 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
20103 * except.c: Likewise.
20104 * expr.c (expand_expr_real_1): Reject it.
20105 * gimplify.c (gimplify_expr): Gimplify it, within
20107 * tree-dump.c (dequeue_and_dump): Dump it.
20108 * tree-pretty-print.c (dump_generic_node): Likewise.
20109 * tree.c (block_may_fallthru): Handle it.
20110 * tree.def (EH_ELSE_EXPR): Introduce it.
20111 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
20112 with GIMPLE_EH_ELSE as try/finally/else.
20114 2019-07-04 Richard Biener <rguenther@suse.de>
20117 * tree-pass.h (execute_all_ipa_transforms): Add a flag
20118 parameter whether to disable GC collection.
20119 * passes.c (execute_one_ipa_transform_pass): Likewise, and
20121 (execute_all_ipa_transforms): Likewise and pass it down.
20122 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
20123 collection from applying IPA transforms.
20124 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
20125 from applying IPA transforms.
20127 2019-07-04 Richard Biener <rguenther@suse.de>
20129 PR tree-optimization/90911
20130 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
20131 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
20132 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
20133 scalar_loop_scaling.
20134 (vect_transform_loop): Scale scalar loop profile if needed.
20135 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
20136 the loop copy from if-conversion adjust edge probabilities
20137 and scale the vectorized loop body profile, queue the scalar
20138 profile for updating after peeling.
20140 2019-07-04 Jan Hubicka <jh@suse.cz>
20142 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
20143 parameters; return early for must-alias.
20144 (indirect_ref_may_alias_decl_p): Likewise; when establishing
20145 outer types match, try nonoverlapping_component_refs
20146 if must-alias is not obvious.
20147 (indirect_refs_may_alias_p): Likewise.
20148 (refs_may_alias_p_2): Likewise.
20150 2019-07-04 Richard Biener <rguenther@suse.de>
20152 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
20154 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
20156 (struct vn_walk_cb_data): New callback data struct.
20157 (vn_reference_lookup_2): Adjust.
20158 (vn_reference_lookup_3): Likewise.
20159 (vn_reference_lookup_pieces): Likewise.
20160 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
20161 (visit_reference_op_load): Adjust.
20163 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20165 PR tree-optimization/91063
20166 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
20167 stmt from stmts sequence before calling vect_init_vector_1.
20170 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20173 * fwprop.c (reg_single_def_p): New function.
20174 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
20175 (forward_propagate_into): New parameter reg_prop_only
20176 with default value false.
20177 Propagate def's src into loop only if SET_SRC and SET_DEST
20178 of def_set have single definitions.
20179 Likewise if reg_prop_only is set to true.
20180 (fwprop): New param fwprop_addr_p.
20181 Integrate fwprop_addr into fwprop.
20182 (fwprop_addr): Remove.
20183 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
20185 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
20186 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
20187 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
20189 2019-07-04 Jakub Jelinek <jakub@redhat.com>
20191 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
20192 in worksharing loop scans.
20194 PR tree-optimization/91074
20195 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
20198 PR rtl-optimization/90756
20199 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
20202 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
20204 * config/aarch64/aarch64.md: Remove redundant constraints from
20205 define_expand but keep some patterns untouched if they are
20206 specially selected by TARGET_SECONDARY_RELOAD hook.
20207 * config/aarch64/aarch64-sve.md: Likewise.
20208 * config/aarch64/atomics.md: Remove redundant constraints from
20210 * config/aarch64/aarch64-simd.md: Likewise.
20212 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20214 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
20215 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
20216 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
20218 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
20221 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
20223 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
20224 (STARTFILE_SPEC): Split crt3 into a separate spec.
20225 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
20226 (DARWIN_CRT2_SPEC): New.
20227 (DARWIN_CRT3_SPEC): New.
20228 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20229 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20230 (DARWIN_CRT3_SPEC): New.
20232 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20234 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20235 Change the RTL attribute "length" from "4" to "*" to allow the
20236 length attribute to be adjusted automatically for prefixed load,
20237 store, and add immediate instructions.
20238 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20240 (extendsi<mode>2, EXTSI iterator): Likewise.
20241 (movsi_internal1): Likewise.
20242 (movsi_from_sf): Likewise.
20243 (movdi_from_sf_zero_ext): Likewise.
20244 (mov<mode>_internal): Likewise.
20245 (movcc_internal1, QHI iterator): Likewise.
20246 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20247 (movsf_from_si): Likewise.
20248 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20249 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20250 (mov<mode>, FMOVE128 iterator): Likewise.
20251 (movdi_internal64): Likewise.
20252 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20254 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20255 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20256 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20257 (vsx_splat_v4sf): Likewise.
20259 2019-07-03 Mark Wielaard <mark@klomp.org>
20262 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20263 DW_AT_addr_base if there is actually a .debug_addr section with
20265 (output_addr_table): Add DWARF5 table header generation here after
20266 checking there are actually any addresses from...
20267 (dwarf2out_finish): ...here.
20269 2019-07-03 Richard Biener <rguenther@suse.de>
20271 PR middle-end/91069
20272 * match.pd (vec_perm -> bit_insert): Fix element read from
20275 2019-07-03 Martin Liska <mliska@suse.cz>
20277 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20278 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20280 * generic-match-head.c: Include dbgcnt.h.
20281 * gimple-match-head.c: Likewise.
20283 2019-07-03 Martin Liska <mliska@suse.cz>
20285 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20286 (GCOV_COUNTER_V_TOPN): New.
20287 (GCOV_COUNTER_V_INDIR): Use _topn.
20288 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20289 (GCOV_TOPN_VALUES): New.
20290 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20291 (GCOV_TOPN_VALUES_COUNTERS): New.
20292 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20294 (gimple_init_gcov_profiler): Rename variables from one_value
20296 (gimple_gen_one_value_profiler): Remove.
20297 (gimple_gen_topn_values_profiler): New function.
20298 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20299 names instead of SINGLE_VALUE.
20300 (stream_out_histogram_value): Likewise.
20301 (stream_in_histogram_value): Likewise.
20302 (get_most_common_single_value): Likewise.
20303 (gimple_divmod_fixed_value_transform): Likewise.
20304 (gimple_stringops_transform): Likewise.
20305 (gimple_divmod_values_to_profile): Likewise.
20306 (gimple_stringops_values_to_profile): Likewise.
20307 (gimple_find_values_to_profile): Likewise.
20308 * value-prof.h (enum hist_type): Rename to TOPN.
20309 (gimple_gen_one_value_profiler): Remove.
20310 (gimple_gen_topn_values_profiler): New.
20312 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20314 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20315 if it has the DW_AT_data_member_location attribute.
20317 2019-07-03 Richard Biener <rguenther@suse.de>
20319 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20322 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20324 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20325 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20326 (tlsdesc_small_sve_<mode>): Likewise.
20328 2019-07-03 Martin Liska <mliska@suse.cz>
20330 * Makefile.in: Define ZSTD_LIB.
20331 * common.opt: Adjust compression level
20332 to support also zstd levels.
20333 * config.in: Regenerate.
20334 * configure: Likewise.
20335 * configure.ac: Add --with-zstd and --with-zstd-include options
20337 * doc/install.texi: Mention zstd dependency.
20338 * gcc.c: Print supported LTO compression algorithms.
20339 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20340 (lto_compression_zstd): Likewise.
20341 (lto_uncompression_zstd): Likewise.
20342 (lto_end_compression): Dispatch in between zlib and zstd.
20343 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20344 (lto_uncompression_zlib): Make it static.
20345 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20346 * lto-section-in.c (lto_get_section_data): Pass info
20347 about used compression.
20348 * lto-streamer-out.c: By default use zstd when possible.
20349 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20350 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20352 2019-07-03 Martin Liska <mliska@suse.cz>
20354 * lto-section-in.c (lto_get_section_data): Add "lto" section.
20355 * lto-section-out.c (lto_destroy_simple_output_block): Never
20356 compress LTO_section_lto section.
20357 * lto-streamer-out.c (produce_asm): Do not set major_version
20359 (lto_output_toplevel_asms): Likewise.
20360 (produce_lto_section): New function.
20361 (lto_output): Call produce_lto_section.
20362 (lto_write_mode_table): Do not set major_version and
20364 (produce_asm_for_decls): Likewise.
20365 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
20367 (struct lto_header): Remove.
20368 (struct lto_section): New struct.
20369 (struct lto_simple_header): Do not inherit from lto_header.
20370 (struct lto_file_decl_data): Add lto_section_header field.
20372 2019-07-03 Martin Liska <mliska@suse.cz>
20374 * lra-eliminations.c (eliminate_regs_in_insn): Remove
20376 * reg-stack.c (check_asm_stack_operands): Likewise.
20377 * tree-ssa-structalias.c (create_function_info_for): Likewise.
20378 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
20379 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
20380 force_expand_binop.
20382 2019-07-03 Martin Liska <mliska@suse.cz>
20384 PR tree-optimization/90892
20385 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
20386 in string constants.
20388 2019-07-03 Martin Liska <mliska@suse.cz>
20390 PR middle-end/90899
20391 * multiple_target.c (create_dispatcher_calls): Add to comdat
20392 group only if set for ifunc.
20394 2019-07-03 Martin Liska <mliska@suse.cz>
20397 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
20398 Define local_object_name in outer scope in order to handle
20399 use-after-scope issue.
20401 2019-07-03 Martin Liska <mliska@suse.cz>
20403 * common.opt: Add fprofile-note.
20404 * coverage.c (coverage_init): Append the option
20406 * doc/invoke.texi: Document -fprofile-note.
20408 2019-07-03 Jakub Jelinek <jakub@redhat.com>
20410 PR tree-optimization/91033
20411 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
20412 vect_analyze_data_refs): Add bool * arguments.
20413 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
20414 if failure is due to scatter/gather, set *fatal to false if non-NULL.
20415 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
20416 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
20417 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
20418 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
20419 vect_analyze_data_refs caller.
20421 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
20423 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
20424 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
20425 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
20426 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20427 OMP_CLAUSE__SCANTEMP_ entry.
20428 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
20429 * tree-pretty-print.c (dump_omp_clause): Likewise.
20430 * tree-nested.c (convert_nonlocal_omp_clauses,
20431 convert_local_omp_clauses): Likewise.
20432 * omp-general.h (struct omp_for_data): Add have_scantemp and
20433 have_nonctrl_scantemp members.
20434 * omp-general.c (omp_extract_for_data): Initialize them.
20435 * omp-low.c (struct omp_context): Add scan_exclusive member.
20436 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
20437 result again with GF_OMP_FOR_KIND_MASK. Initialize also
20438 ctx->scan_exclusive.
20439 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
20440 of !ctx->scan_inclusive.
20441 (lower_rec_input_clauses): Simplify gimplification of dtors using
20442 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
20443 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
20444 loops. Don't add barrier for reduction_omp_orig_ref if
20445 ctx->scan_??xclusive.
20446 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
20447 (lower_omp_scan): Use ctx->scan_exclusive instead
20448 of !ctx->scan_inclusive. Handle worksharing loops with inscan
20449 reductions. Use new_vard != new_var instead of repeated
20450 omp_is_reference calls.
20451 (omp_find_scan, lower_omp_for_scan): New functions.
20452 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
20454 * omp-expand.c (expand_omp_scantemp_alloc): New function.
20455 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
20456 and fd->have_scantemp.
20458 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
20459 on worksharing loop propagate it as shared clause to containing
20462 * omp-expand.c (expand_omp_for_static_nochunk,
20463 expand_omp_for_static_chunk): For nowait worksharing loop with
20464 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
20467 2019-07-02 qing zhao <qing.zhao@oracle.com>
20469 PR preprocessor/90581
20470 * doc/cppopts.texi: Add document for -fmax-include-depth.
20471 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
20473 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
20475 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
20476 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
20477 (mmx_packssdw): Ditto.
20478 (mmx_punpckhbw): Ditto.
20479 (mmx_punpcklbw): Ditto.
20480 (mmx_punpckhwd): Ditto.
20481 (mmx_punpcklwd): Ditto.
20482 (mmx_punpckhdq): Ditto.
20483 (mmx_punpckldq): Ditto.
20484 (*vec_dupv4hi): Ditto.
20485 (*vec_dupv2si): Ditto.
20486 (mmx_pmovmskb): Ditto.
20487 * config/i386/sse.md (sse_cvtpi2ps): Use
20488 TARGET_SSE2 && SSE_REG_P in split condition.
20489 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
20490 TARGET_SSSE3 && SSE_REGNO_P in split condition.
20491 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
20492 (ssse3_pshufbv8qi3): Ditto.
20493 (ssse3_palignrdi): Ditto.
20495 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
20497 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
20498 with inlined save and restore.
20500 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
20502 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
20503 to be inserted on single successor edge of the entry block. Then call
20504 commit_edge_insertions instead of inserting the instructions manually.
20505 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
20506 RTL expansion and rebuild jump labels chain.
20508 2019-07-02 Richard Biener <rguenther@suse.de>
20510 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
20512 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20514 * tree.c (build_common_tree_nodes): Initialize them.
20515 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20516 Make declarations comments.
20517 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
20518 chrec_known): Remove definitions.
20519 (initialize_scalar_evolutions_analyzer): Remove.
20520 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
20521 * tree-streamer.c (preload_common_nodes): Do not preload
20522 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
20524 2019-07-02 Jan Hubicka <jh@suse.cz>
20526 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
20529 2019-07-02 Jan Hubicka <jh@suse.cz>
20531 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
20533 (nonoverlapping_component_refs_since_match_p): ... this one;
20534 handle also non-decl bases; return -1 if search gave up.
20535 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
20536 nonoverlapping_component_refs_of_decl_p_no_alias to
20537 nonoverlapping_component_refs_since_match_p_may_alias,
20538 nonoverlapping_component_refs_since_match_p_no_alias.
20539 (dump_alias_stats): Update dumping.
20540 (aliasing_matching_component_refs_p): Break out from ...;
20541 dispatch to nonoverlapping_component_refs_for_decl_p
20542 and nonoverlapping_component_refs_since_match_p.
20543 (aliasing_component_refs_p): ... here; call
20544 nonoverlapping_component_refs_p in scenarios where we can not
20545 precisely determine base match.
20546 (decl_refs_may_alias_p): Use
20547 nonoverlapping_component_refs_since_match_p.
20548 (indirect_ref_may_alias_decl_p): Do not call
20549 nonoverlapping_component_refs_p.
20550 (indirect_refs_may_alias_p): Likewise.
20552 2019-07-02 Jan Hubicka <jh@suse.cz>
20554 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
20555 to clobber of return value.
20557 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20559 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
20560 for is_neon_type instructions that have not already been categorized.
20562 2019-07-02 Richard Biener <rguenther@suse.de>
20564 PR tree-optimization/58483
20565 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
20566 for MEM_REF base hashing.
20567 (equal_mem_array_ref_p): Likewise for base comparison.
20569 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20571 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
20572 parameterized name.
20573 (signbit<mode>2): Use that name. Simplify.
20575 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
20577 PR middle-end/66726
20578 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
20579 Tune heuristic from PR71016 to allow MIN / MAX.
20581 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20583 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
20584 parameterized name.
20585 (abs<mode>2): Use that name. Simplify.
20587 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20589 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
20590 parameterized name.
20591 (neg<mode>2): Use that name. Simplify.
20593 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20595 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
20597 (abs<mode>2): Use that name. Simplify.
20599 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20601 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
20603 (neg<mode>2): Use that name. Simplify.
20605 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
20607 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
20608 ("enabled" attribute): Handle sse_noavx isa attribute.
20609 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
20610 Use TARGET_SSE && SSE_REGNO_P in split condition.
20611 (*vec_dupv2sf): Ditto.
20613 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20615 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
20617 (floatsi<mode>2): Use that name. Simplify.
20619 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20621 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
20622 parameterized name.
20623 (extenddf<mode>2_vsx): Make this a parameterized name.
20624 (extenddf<mode>2): Use those names. Simplify.
20626 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20628 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
20630 (eh_return): Use that name. Simplify.
20632 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20634 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
20635 (doloop_end): Use that name. Simplify.
20637 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20639 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
20640 parameterized name.
20641 (indirect_jump): Use that name. Simplify.
20643 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20645 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
20646 parameterized name.
20647 (abs<mode>2): Use that name. Simplify.
20649 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20651 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
20652 parameterized name.
20653 (fix_trunc<mode>si2): Use that name. Simplify.
20655 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20657 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
20658 (allocate_stack): Use that name. Simplify.
20660 2019-07-01 Martin Sebor <msebor@redhat.com>
20662 PR middle-end/90923
20663 * hash-map.h (hash_map::put): On insertion invoke element ctor.
20664 (hash_map::get_or_insert): Same. Reformat comment.
20665 * hash-set.h (hash_set::add): On insertion invoke element ctor.
20666 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20667 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20668 * hash-table.h (hash_table::operator=): Prevent copy assignment.
20669 (hash_table::hash_table (const hash_table&)): Use copy ctor
20670 instead of assignment to copy elements.
20672 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
20673 John David Anglin <danglin@gcc.gnu.org>
20676 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
20677 using saved frame pointer.
20679 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
20681 PR middle-end/64242
20682 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
20683 Add frame clobber and schedule blockage.
20685 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
20687 * doc/invoke.texi (Link Options): Further editorial changes to
20688 -flinker-output docs.
20690 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20692 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
20693 Load both operands of a PLUS into registers separately.
20695 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
20697 * config/s390/vector.md: Fix shift count operand printing.
20699 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20701 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
20703 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20705 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
20706 Use recog_data to test for an output operand.
20708 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20710 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
20711 exclude any others that are disparaged or that are bound to need
20713 (ira_get_dup_out_num): Expand comment.
20715 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20717 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
20718 constraint string for each operand/alternative combo. Only handle
20719 '%' at the start of constraint strings, and look for it outside
20722 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20724 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
20725 alternative_mask instead of HARD_REG_SET to represent a
20726 bitmask of alternatives.
20727 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20728 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
20730 2019-07-01 Martin Liska <mliska@suse.cz>
20732 * edit-context.c (test_applying_fixits_unreadable_file): Do not
20733 use () for a constructor call.
20734 (test_applying_fixits_line_out_of_range): Likewise.
20735 * ggc-page.c (alloc_page): Use (void *) for %p printf format
20737 (free_page): Likewise.
20739 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
20741 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
20742 parameter names to match usage (no functional change).
20743 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
20745 2019-07-01 Richard Biener <rguenther@suse.de>
20747 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
20749 (pass_fre::execute): Honor it.
20750 * passes.def: Adjust pass_fre invocations to allow iterating,
20751 add non-iterating pass_fre before late threading/dom.
20753 2019-07-01 Richard Biener <rguenther@suse.de>
20755 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
20756 TARGET_MEM_REF handling to also handle address-taken ones.
20758 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
20760 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20761 hardware attributes): Document avx512vp2intersect.
20763 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20765 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
20766 (abs<mode>2): New expander.
20767 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
20768 Use CODE_FOR_ssse3_absv8qi2.
20769 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
20770 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
20772 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20774 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
20775 to sse, sse_noavx and avx. Update all uses.
20777 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20779 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
20780 (*mmx_<plusminus_insn><mode>3): Ditto.
20781 (*mmx_mulv4hi3"): Ditto.
20782 (*mmx_smulv4hi3_highpart): Ditto.
20783 (*mmx_umulv4hi3_highpart): Ditto.
20784 (*mmx_pmaddwd): Ditto.
20785 (*sse2_umulv1siv1di3): Ditto.
20786 (*mmx_<code>v4hi3): Ditto.
20787 (*mmx_<code>v8qi3): Ditto.
20788 (mmx_ashr<mode>3): Ditto.
20789 ("mmx_<shift_insn><mode>3): Ditto.
20790 (*mmx_eq<mode>3): Ditto.
20791 (mmx_gt<mode>3): Ditto.
20792 (mmx_andnot<mode>3): Ditto.
20793 (*mmx_<code><mode>3): Ditto.
20794 (*mmx_pinsrw): Ditto.
20795 (*mmx_pextrw): Ditto.
20796 (mmx_pshufw_1): Ditto.
20797 (*mmx_uavgv8qi3): Ditto.
20798 (*mmx_uavgv4hi3): Ditto.
20799 ("mmx_psadbw): Ditto.
20800 * config/i386/sse.md (sse_cvtps2pi): Ditto.
20801 (sse_cvttps2pi): Ditto.
20802 (ssse3_pmaddubsw): Ditto.
20803 (*ssse3_pmulhrswv4hi3): Ditto.
20804 (ssse3_psign<mode>3): Ditto.
20806 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
20808 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
20809 adjustment for bit-fields to all aggregate types.
20811 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
20813 * config/rs6000/predicates.md (pcrel_address): Use
20814 SYMBOL_REF_LOCAL_P to determine if a label is local.
20815 (pcrel_external_address): New predicate.
20816 (non_prefixed_mem_operand): Delete, predicate not used.
20817 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20818 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20820 (SYMBOL_REF_PCREL_P): Likewise.
20823 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20825 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20826 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20827 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20829 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20831 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20832 override on extra_headers.
20834 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20836 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20837 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20839 (darwin_driver_init): Likewise.
20841 2019-06-28 Jan Beulich <jbeulich@suse.com>
20843 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20844 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20845 Eliminate redundant alternative.
20847 2019-06-28 Jan Beulich <jbeulich@suse.com>
20849 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20850 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20851 Use vector_operand.
20853 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20855 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20856 having a lower cost regardless of the speed option.
20858 2019-06-28 Jan Beulich <jbeulich@suse.com>
20860 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20861 vector_operand plus, on both alternatives, "Bm" constraint.
20863 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20865 * config/arm/arm.md: Remove redundant constraints from
20866 define_expand but leave reload_inm and reload_outm patterns
20867 untouched since they need special constraints to work.
20868 * config/arm/arm-fixed.md: Remove redundant constraints from
20870 * config/arm/iwmmxt.md: Likewise.
20871 * config/arm/neon.md: Likewise.
20872 * config/arm/sync.md: Likewise.
20873 * config/arm/thumb1.md: Likewise.
20874 * config/arm/vec-common.md: Likewise.
20876 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20878 * doc/install.texi: Document --disable-tm-clone-registry.
20880 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20883 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20886 PR tree-optimization/91010
20887 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20888 return true. Otherwise, don't call operand_equal_p if offset1 or
20889 offset2 is NULL and just return false.
20891 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20893 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20894 user-specified float mode choice for kernel mode code.
20896 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20898 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20901 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20903 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20904 use longcall for 64b code.
20906 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20908 * builtins.c (get_memory_rtx): Fix comment.
20909 * optabs.def (movmem_optab): Change to cpymem_optab.
20910 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20911 (emit_block_move_hints): Change movmem to cpymem.
20912 * defaults.h: Change movmem to cpymem.
20913 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20914 (default_use_by_pieces_infrastructure_p): Ditto.
20915 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20916 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20918 * config/aarch64/aarch64.h: Change movmem to cpymem.
20919 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20920 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20921 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20923 * config/arc/arc-protos.h: Change movmem to cpymem.
20924 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20925 * config/arc/arc.h: Change movmem to cpymem in comment.
20926 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20927 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20928 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20929 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20930 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20931 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20932 * config/avr/avr-protos.h: Change movmem to cpymem.
20933 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20934 avr_out_movmem): Change movmem to cpymem.
20935 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20936 Change movmem to cpymem.
20937 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20938 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20939 Change movmem to cpymem.
20940 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20941 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20942 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20943 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20944 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20945 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20946 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20947 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20948 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20949 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20950 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20951 expand_small_cpymem_or_setmem,
20952 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20953 expand_set_or_cpymem_constant_prologue,
20954 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20955 * config/i386/i386-protos.h: Change movmem to cpymem.
20956 * config/i386/i386.h: Change movmem to cpymem in comment.
20957 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20958 (setmem<mode>): Change expansion function name.
20959 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20960 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20961 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20962 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20963 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20964 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20965 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20967 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20968 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20969 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20970 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20971 Change movmem to cpymem.
20972 * config/mips/mips.h: Change movmem to cpymem.
20973 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20974 * config/nds32/nds32-memory-manipulation.c
20975 (nds32_expand_movmemsi_loop_unknown_size,
20976 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20977 nds32_expand_movmemsi_unroll,
20978 nds32_expand_movmemsi): Change movmem to cpymem.
20979 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20980 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20981 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20982 (pa_adjust_insn_length): Change call to compute_movmem_length.
20983 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20984 movmemdi, movmemdi_prereload,
20985 movmemdi_postreload): Change movmem to cpymem.
20986 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20987 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20988 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20989 * config/riscv/riscv.h: Change movmem to cpymem.
20990 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20991 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20992 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20994 * config/s390/s390-protos.h: Change movmem to cpymem.
20995 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20996 s390_expand_insv): Change movmem to cpymem.
20997 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20998 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20999 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
21000 * config/sparc/sparc.h: Change movmem to cpymem in comment.
21001 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
21002 for nonexistent function.
21003 * config/vax/vax.h: Change movmem to cpymem in comment.
21004 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
21005 * config/visium/visium.h: Change movmem to cpymem in comment.
21006 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
21007 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
21008 * doc/md.texi: Change movmem to cpymem and update description to match.
21009 * doc/rtl.texi: Change movmem to cpymem.
21010 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
21011 * doc/tm.texi: Regenerate.
21013 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
21015 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
21016 -fvariable-expansion-in-unroller by default.
21017 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
21020 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
21023 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21024 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21026 * config.gcc(rs6000-*-*): Define target_gtfiles.
21028 2019-06-27 Jan Hubicka <jh@suse.cz>
21030 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
21031 (add_type_duplicate): When odr hash is not allocated, to nothing.
21032 (odr_based_tbaa_p): New function.
21033 (set_type_canonical_for_odr_type): New function.
21034 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
21035 set_type_canonical_for_odr_type): New.
21036 * tree.c (gimple_canonical_types_compatible_p): ODR types with
21037 ODR based TBAA are not equivalent to non-ODR types.
21039 2019-06-27 Martin Liska <mliska@suse.cz>
21041 PR tree-optimization/90974
21042 PR rtl-optimization/90975
21043 PR rtl-optimization/90976
21045 PR tree-optimization/91017
21046 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
21048 * lra.c (lra_set_insn_recog_data): Remove a leftover from
21049 initial commit of IRA.
21050 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
21052 * tree-vect-loop.c (vect_create_epilog_for_reduction):
21053 Remove unused mode1.
21054 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
21057 2019-06-27 Jakub Jelinek <jakub@redhat.com>
21060 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
21061 instead of register_operand for operands[1], add m to its constraints
21062 if operands[2] uses "C" constraint. Ensure in condition that if
21063 operands[2] is not 0, then operands[1] is not a MEM. For last two
21064 alternatives, use unaligned loads instead of aligned if operands[1] is
21065 misaligned_operand.
21067 2019-06-27 Martin Liska <mliska@suse.cz>
21069 * asan.c (asan_emit_allocas_unpoison): Remove obviously
21071 * bt-load.c (move_btr_def): Likewise.
21072 * builtins.c (expand_builtin_apply_args_1): Likewise.
21073 (expand_builtin_apply): Likewise.
21074 * cfgexpand.c (expand_asm_stmt): Likewise.
21075 (construct_init_block): Likewise.
21076 * cfghooks.c (verify_flow_info): Likewise.
21077 * cfgloopmanip.c (remove_path): Likewise.
21078 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
21079 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
21080 * combine.c (simplify_if_then_else): Likewise.
21081 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
21082 (choose_basereg): Likewise.
21083 (ix86_expand_prologue): Likewise.
21084 (ix86_preferred_output_reload_class): Likewise.
21085 * cselib.c (cselib_record_sets): Likewise.
21086 * df-scan.c (df_scan_alloc): Likewise.
21087 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
21088 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
21089 * emit-rtl.c (try_split): Likewise.
21090 * graphite-scop-detection.c (assign_parameter_index_in_region):
21092 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
21093 * ira-color.c (setup_profitable_hard_regs): Likewise.
21094 * ira.c (rtx_moveable_p): Likewise.
21095 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
21096 * read-rtl.c (read_subst_mapping): Likewise.
21097 * regrename.c (scan_rtx): Likewise.
21098 * reorg.c (fill_slots_from_thread): Likewise.
21099 * tree-inline.c (tree_function_versioning): Likewise.
21100 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
21101 * tree-ssa-sink.c (statement_sink_location): Likewise.
21102 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
21103 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
21104 (vect_create_epilog_for_reduction): Likewise.
21105 * tree.c (build_nonstandard_integer_type): Likewise.
21107 2019-06-27 Richard Biener <rguenther@suse.de>
21109 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
21111 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
21113 PR tree-optimization/89772
21114 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
21115 out-of-bound accesses checking.
21117 2019-06-27 Martin Liska <mliska@suse.cz>
21119 PR tree-optimization/91014
21120 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
21121 when LHS is NULL_TREE.
21123 2019-06-27 Martin Liska <mliska@suse.cz>
21125 * symbol-summary.h (traverse): Pass
21126 argument a to the call of callback.
21127 (gt_ggc_mx): Mark arguments as unused.
21128 (gt_pch_nx): Likewise.
21130 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
21133 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
21136 2019-06-26 Jeff Law <law@redhat.com>
21138 PR tree-optimization/90883
21139 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
21140 (delete_dead_or_redundant_assignment): Likewise.
21142 PR tree-optimization/90883
21143 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
21144 * tree-ssa-dse.c: Update various comments to distinguish between
21145 dead and redundant stores.
21146 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
21147 (dse_optimize_redundant_stores): New function.
21148 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
21149 Distinguish between dead and redundant calls in dump output. All
21151 (delete_dead_or_redundant_assignment): Similarly for assignments.
21152 (dse_optimize_stmt): Handle _CHK variants. For statements which
21153 store 0 into multiple memory locations, try to prove a subsequent
21154 store is redundant.
21156 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
21159 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
21160 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
21162 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21164 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
21165 (branch_islands): New extern.
21166 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
21167 * config/rs6000/rs6000.c: .. here.
21169 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
21171 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
21172 (powerpc*-*-*) ... to here.
21174 2019-06-26 Jeff Law <law@redhat.com>
21176 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
21177 memcpy, memmove and memset builtins.
21178 (maybe_trim_memstar_call): Likewise.
21180 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21182 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
21184 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
21186 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
21188 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21190 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
21192 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
21194 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
21197 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21199 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
21201 2019-06-26 Richard Biener <rguenther@suse.de>
21204 * tree-inline.c (remap_ssa_name): Copy SSA range info.
21206 2019-06-26 Richard Biener <rguenther@suse.de>
21208 * lto-streamer.h (lto_bitmap_alloc): Remove.
21209 (lto_bitmap_free): Likewise.
21210 * lto-streamer.c (lto_bitmap_alloc): Remove.
21211 (lto_bitmap_free): Likewise.
21212 (lto_obstack): Likewise.
21213 (lto_obstack_initialized): Likewise.
21214 * lto-streamer-out.c (lto_output): Use own obstack for local
21215 bitmap, free it consistently.
21217 2019-06-26 Jakub Jelinek <jakub@redhat.com>
21220 * config/i386/sse.md
21221 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
21222 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
21223 insns if operands[2] is misaligned_operand.
21225 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21227 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21229 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21232 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21234 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21236 2019-06-26 Martin Liska <mliska@suse.cz>
21238 PR tree-optimization/90973
21239 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21240 epilogue_cost_vec instead of prologue_cost_vec for
21243 2019-06-26 Martin Liska <mliska@suse.cz>
21245 * bb-reorder.c (connect_better_edge_p): Add missing else
21246 statement in the middle of if-else statements.
21248 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21249 H.J. Lu <hongjiu.lu@intel.com>
21250 Olga Makhotina <olga.makhotina@intel.com>
21252 * common/config/i386/i386-common.c
21253 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21254 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21255 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21256 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21257 (ix86_handle_option): Handle -mavx512vp2intersect.
21258 * config/i386/avx512vp2intersectintrin.h: New.
21259 * config/i386/avx512vp2intersectvlintrin.h: New.
21260 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21261 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21262 AVX512VP2INTERSECT.
21263 * config/i386/i386-builtin-types.def: Add new types.
21264 * config/i386/i386-builtin.def: Add new builtins.
21265 * config/i386/i386-builtins.c: (enum processor_features): Add
21266 F_AVX512VP2INTERSECT.
21267 (static const _isa_names_table isa_names_table): Ditto.
21268 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21269 __AVX512VP2INTERSECT__.
21270 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21271 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21272 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21273 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21274 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21275 * config/i386/i386-options.c (ix86_target_string): Add
21276 -mavx512vp2intersect.
21277 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21278 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21279 P2HImode and P2QImode.
21280 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21281 number for P2QImode and P2HImode.
21282 (ix86_regmode_natural_size): New function.
21283 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21284 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21285 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21286 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21287 * config/i386/i386.opt: Add -mavx512vp2intersect.
21288 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21289 avx512vp2intersectvlintrin.h.
21290 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21291 (define_mode_iterator VI48_AVX512VP2VL): New.
21292 (avx512vp2intersect_2intersect<mode>,
21293 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21294 * config.gcc: Add avx512vp2intersectvlintrin.h and
21295 avx512vp2intersectintrin.h to extra_headers.
21296 * doc/invoke.texi: Document -mavx512vp2intersect.
21298 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21300 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21302 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21304 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21305 savres_routine_syms, savres_routine_name, morestack_ref,
21306 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21307 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21308 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21309 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21310 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21311 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21312 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21313 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21314 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21315 get_stack_clash_protection_probe_interval,
21316 get_stack_clash_protection_guard_size,
21317 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21318 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21319 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21320 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21321 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21322 gen_frame_mem_offset, rs6000_savres_routine_name,
21323 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21324 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21325 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21326 rs6000_global_entry_point_prologue_needed_p,
21327 rs6000_get_separate_components, rs6000_components_for_bb,
21328 rs6000_disqualify_components, rs6000_emit_prologue_components,
21329 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21330 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21331 rs6000_output_savres_externs, rs6000_output_function_prologue,
21332 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21333 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21334 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21335 rs6000_output_function_epilogue, gen_add3_const,
21336 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21337 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21339 (machine_function): Moved to rs6000.h.
21340 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21342 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21343 savres_routine_syms, savres_routine_name, morestack_ref,
21344 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21345 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21346 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21347 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21348 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21349 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21350 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21351 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21352 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21353 get_stack_clash_protection_probe_interval,
21354 get_stack_clash_protection_guard_size,
21355 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21356 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21357 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21358 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21359 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21360 gen_frame_mem_offset, rs6000_savres_routine_name,
21361 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21362 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21363 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21364 rs6000_global_entry_point_prologue_needed_p,
21365 rs6000_get_separate_components, rs6000_components_for_bb,
21366 rs6000_disqualify_components, rs6000_emit_prologue_components,
21367 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21368 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21369 rs6000_output_savres_externs, rs6000_output_function_prologue,
21370 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21371 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21372 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21373 rs6000_output_function_epilogue, gen_add3_const,
21374 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21375 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21376 to here from rs6000.c.
21377 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
21378 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
21379 quad_address_offset_p) Moved to here from rs6000.c.
21380 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
21381 * config/config.gcc: Add new source file rs6000-logue.c to garbage
21384 2019-06-25 Martin Liska <mliska@suse.cz>
21386 * hash-table.c (hashtab_chk_error): Move here from ...
21387 * hash-table.h (hashtab_chk_error): ... here.
21389 2019-06-25 Martin Liska <mliska@suse.cz>
21391 PR tree-optimization/90978
21392 * df-scan.c (df_update_entry_block_defs): Remove dead else
21394 (df_update_exit_block_uses): Likewise.
21396 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
21397 Andrew Stubbs <ams@codesourcery.com>
21399 * config.gcc (thread_file): Set to gcn for AMD GCN.
21400 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
21401 (TARGET_EMUTLS_VAR_INIT): New hook.
21403 2019-06-25 Martin Jambor <mjambor@suse.cz>
21406 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
21408 2019-06-25 Richard Biener <rguenther@suse.de>
21410 PR tree-optimization/90930
21411 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
21412 into parallel form in the last pass instance.
21414 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
21416 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
21417 (arc_legitimize_pic_address): Simplify and cleanup the function.
21418 (SYMBOLIC_CONST): Remove.
21419 (prepare_pic_move): Likewise.
21420 (prepare_move_operands): Handle complex mov cases here.
21421 (arc_legitimize_address_0): Remove call to
21422 arc_legitimize_pic_address.
21423 (arc_legitimize_address): Remove call to
21424 arc_legitimize_tls_address.
21425 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
21426 (movhi_insn): Likewise.
21428 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21430 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
21432 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
21433 format of "__intN" types for UINTMAX_TYPE.
21434 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
21435 format of "__intN" types for SIZETYPE.
21436 * tree.c (build_common_tree_nodes): Accept "__intN__"
21437 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
21438 * doc/invoke.texi: Document that __intN__ disables pedantic
21441 2019-06-25 Jan Hubicka <jh@suse.cz>
21443 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
21444 base2_alias_set is non-zero before doing TBAA based disambiguation.
21446 2019-06-25 Martin Liska <mliska@suse.cz>
21448 PR tree-optimization/90973
21449 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
21450 of prologue and epilogue.
21452 2019-06-24 Jan Hubicka <jh@suse.cz>
21454 * ipa-utils.h (type_with_linkage_p): Verify that type is
21456 (odr_type_p): Remove extra return.
21457 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
21458 hash STRING_FLAG only for arrays and integers.
21459 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
21460 Update analogously.
21461 * tree-streamer-out.c (pack_ts_type_common_value_fields):
21463 * print-tree.c (print_node): Print cxx-odr-p
21465 * tree.c (need_assembler_name_p): Also check that type
21467 (verify_type_variant): Update verification of SRING_FLAG;
21468 also check CXX_ODR_P.
21469 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
21470 (TYPE_STRING_FLAG): Use it.
21471 (TYPE_CXX_ODR_P): New macro.
21472 * dwarf2out.c (gen_array_type_die): First check that type
21473 is an array and then test string flag.
21475 2019-06-24 Richard Biener <rguenther@suse.de>
21477 PR tree-optimization/90972
21478 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
21479 in common code, dealing with STRING_CST properly.
21481 2019-06-24 Richard Biener <rguenther@suse.de>
21483 PR tree-optimization/90930
21484 PR tree-optimization/90316
21485 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
21486 decrement of limit.
21488 2019-06-24 Martin Sebor <msebor@redhat.com>
21490 * tree-pretty-print.h: Remove unnecessary punctuation characters
21492 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
21494 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
21496 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
21497 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
21498 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
21500 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21502 * config/rs6000/darwin.h: Handle GCC target pragma.
21504 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21506 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
21508 2019-06-22 Jeff Law <law@redhat.com>
21510 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21512 2019-06-22 Jan Hubicka <jh@suse.cz>
21514 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
21515 give up on bitfields; continue searching for different refs
21518 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21520 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21521 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
21522 containing the offset as possible simd lane access. Look through
21523 widening conversion. Move the
21524 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
21526 2019-06-21 Richard Biener <rguenther@suse.de>
21528 PR tree-optimization/90930
21529 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
21530 flag on new stmts to avoid re-processing them.
21532 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
21534 PR c++/90875 - added -Wswitch-outside-range option
21535 * doc/invoke.texi (Wswitch-outside-range): Document.
21537 2019-06-21 Jeff Law <law@redhat.com>
21539 PR tree-optimization/90949
21540 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
21541 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
21543 2019-06-21 Richard Biener <rguenther@suse.de>
21546 * dwarf2out.c (prune_unused_types_walk): Always consider
21547 function-local extern declarations as used.
21549 2019-06-21 Richard Biener <rguenther@suse.de>
21551 PR tree-optimization/90913
21552 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
21553 the scalar variant of if-conversion versioning.
21555 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21557 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
21558 create another "omp scan inscan exclusive" array if
21559 !ctx->scan_inclusive.
21560 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
21561 (lower_omp_scan): Likewise.
21562 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
21563 2-bit bitfield for simd_lane_access_p member.
21564 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
21565 aux == (void *)-4 as simd lane access.
21566 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
21567 comment with permutations to show the canonical permutation order.
21568 (vectorizable_scan_store): Handle exclusive scan.
21569 (vectorizable_store): Call vectorizable_scan_store even for
21570 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
21572 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21573 "omp simd array" arrays with one byte elements.
21575 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
21577 * config/alpha/alpha.md (@unaligned_store<mode>):
21578 Rename from unaligned_store<mode>.
21579 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
21580 * config/alpha/sync.md (@load_locked_<mode>): Rename
21581 from load_locked_<mode>.
21582 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
21583 (@atomic_compare_and_swap<mode>_1): Rename
21584 from atomic_compare_and_swap<mode>_1.
21585 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
21586 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
21587 Use gen_reload_in_aligned and gen_unaligned_store.
21588 (emit_load_locked): Remove.
21589 (emit_store_conditional): Ditto.
21590 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
21591 (alpha_split_compare_and_swap): Ditto.
21592 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
21593 (alpha_split_compare_and_swap_12): Use gen_load_locked
21594 and gen_store_conditional.
21595 (alpha_split_atomic_exchange): Ditto.
21596 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
21597 (alpha_split_atomic_exchange_12): Use gen_load_locked
21598 and gen_store_conditional.
21600 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
21602 * config/aarch64/aarch64-errata.h: New file.
21603 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
21604 (CA53_ERR_843419_SPEC): Delete.
21605 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
21606 * config/aarch64/aarch64-linux.h: Likewise.
21607 * config/aarch64/aarch64-netbsd.h: Likewise.
21608 * config/aarch64/aarch64-freebsd.h: Likewise.
21610 2019-06-20 Marek Polacek <polacek@redhat.com>
21612 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
21614 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
21616 * config/rs6000/rs6000.md (isa attribute): Add support for
21617 for a future processor.
21619 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
21622 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
21623 standard scalar operation pattern for V2DF.
21624 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
21625 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
21626 (*ieee_<ieee_maxmin><mode>3): Likewise.
21627 (vec_setv2df_0): Likewise.
21629 2019-06-20 Jan Hubicka <jh@suse.cz>
21631 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
21632 parameter; it has no use in gimple memory model.
21633 (indirect_ref_may_alias_decl_p): Update.
21635 2019-06-20 Martin Liska <mliska@suse.cz>
21637 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
21640 2019-06-20 Jakub Jelinek <jakub@redhat.com>
21642 * tree-vect-stmts.c (enum scan_store_kind): New type.
21643 (scan_store_can_perm_p): Change last argument from int * to
21644 vec<enum scan_store_kind> *, record precisely which permutations
21645 need whole vector left shift or that plus VEC_COND_EXPR.
21646 (vectorizable_scan_store): Adjust caller, use whole vector left shift
21647 and additional VEC_COND_EXPR only for those iterations that need it.
21649 2019-06-20 Alexandre Oliva <oliva@adacore.com>
21651 * config.gcc: Fix ARM --with-fpu checking and error message.
21653 2019-06-19 Marek Polacek <polacek@redhat.com>
21655 PR c++/60364 - noreturn after first decl not diagnosed.
21656 * attribs.c (get_attribute_namespace): No longer static.
21657 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
21659 (attr_noreturn_exclusions): Make it extern.
21660 * attribs.h (get_attribute_namespace): Declare.
21661 * tree-inline.c (function_attribute_inlinable_p): Use
21662 get_attribute_name.
21664 2019-06-19 Martin Sebor <msebor@redhat.com>
21666 PR tree-optimization/90626
21667 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
21669 PR tree-optimization/90626
21670 * tree-ssa-strlen.c (strxcmp_unequal): New function.
21671 (handle_builtin_string_cmp): Call it.
21673 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21675 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
21676 and DARWIN_NOPIE_SPEC.
21677 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
21678 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
21679 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
21680 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
21681 (DARWIN_EXPORT_DYNAMIC): Delete.
21682 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
21683 and pie options processing to darwin.h.
21684 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
21686 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21688 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
21689 in computing the number of options to be moved.
21691 2019-06-19 Maya Rashish <coypu@sdf.org>
21693 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
21694 (CLEAR_INSN_CACHE) Use it.
21696 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
21698 * config/i386/i386.md (cmpstrnsi): Remove dead code.
21700 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
21702 PR middle-end/84521
21703 * builtins.c (expand_builtin_setjmp_setup): Save
21704 hard_frame_pointer_rtx.
21705 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
21707 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
21709 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
21711 (remove_reg_equal_offset_note): Remove unused function.
21712 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
21714 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21715 (arc_builtin_setjmp_frame_value): Remove function.
21716 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21717 (avr_builtin_setjmp_frame_value): Remove function.
21718 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21719 (ix86_builtin_setjmp_frame_value): Remove function.
21720 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
21721 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21722 (sparc_builtin_setjmp_frame_value): Remove function.
21723 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21724 (vax_builtin_setjmp_frame_value): Remove function.
21725 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
21726 pointer if has_nonlocal_label.
21728 2019-06-19 Jakub Jelinek <jakub@redhat.com>
21730 * doc/md.texi: Document vec_shl_<mode> pattern.
21731 * optabs.def (vec_shl_optab): New optab.
21732 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
21733 argument, if == vec_shl_optab, check for left whole vector shift
21734 pattern rather than right shift.
21735 (expand_vec_perm_const): Add vec_shl_optab support.
21736 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
21738 * tree-vect-generic.c (lower_vec_perm): Support permutations which
21739 can be handled by vec_shl_optab.
21740 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
21741 (check_scan_store): Use it.
21742 (vectorizable_scan_store): If target can't do normal permutations,
21743 try to use whole vector left shifts and if needed a VEC_COND_EXPR
21745 * config/i386/sse.md (vec_shl_<mode>): New expander.
21747 * omp-low.c (lower_rec_input_clauses): Handle references properly
21749 (lower_omp_scan): Likewise.
21751 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21753 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
21754 mem_mode is BLKmode.
21756 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
21759 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
21760 pointer adjustment for the case of no callee-saved registers and
21761 stack frame bigger than 128 bytes.
21763 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
21765 PR middle-end/90862
21766 * omp-low.c (check_omp_nesting_restrictions): Handle
21767 GF_OMP_TARGET_KIND_OACC_DECLARE.
21769 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
21771 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
21772 (@add<mode>3_carry): Rename from add<mode>3_carry.
21773 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
21774 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
21775 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
21776 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
21777 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
21778 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
21779 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
21780 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
21781 (cmpstrnsi): Use gen_cmp_1.
21782 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
21783 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
21784 (@umonitor_<mode>): Rename from umonitor_<mode>.
21785 * config/i386/i386-expand.c (ix86_expand_copysign):
21786 Use gen_copysign3_const and gen_copysign3_var.
21787 (ix86_expand_xorsign): Use gen_xorsign3_1.
21788 (ix86_expand_branch): Use gen_sub3_carry_ccc,
21789 gen_sub3_carry_ccgz and gen_cmp1.
21790 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
21791 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
21792 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
21793 (ix86_split_lshr): Ditto.
21794 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
21796 2019-06-18 Jason Merrill <jason@redhat.com>
21798 * tree.c (build_constructor): Add MEM_STAT_DECL.
21800 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21802 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
21803 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
21804 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
21805 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
21806 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
21807 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
21808 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
21809 Use CC_NZC instead of CC.
21810 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
21811 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
21812 (aarch64_print_operand): Handle E_CC_NZCmode.
21813 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
21814 of gen_set_clobber_cc.
21816 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21818 * config/aarch64/aarch64-sve.md: Tabify file.
21820 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21822 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21823 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21824 * config/aarch64/aarch64-sve.md: Use it.
21826 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21828 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21829 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21830 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21831 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21832 (aarch64_expand_sve_vec_cmp_int): Use it.
21833 (aarch64_expand_sve_vec_cmp_float): Likewise.
21834 * config/aarch64/aarch64-sve.md: Likewise throughout.
21836 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21837 Kugan Vivekanandarajah <kuganv@linaro.org>
21839 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21840 (*cond_<optab><mode>_z): Fold into...
21841 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21842 operand 4 can be tied to operand 0 (either inherently or via RA).
21844 2019-06-18 Richard Biener <rguenther@suse.de>
21847 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21848 as if optimized away.
21850 2019-06-18 Tom de Vries <tdevries@suse.de>
21852 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21853 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21854 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21856 (define_insn "@set_softstack_<mode>"): ... this.
21857 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21858 (define_insn "@omp_simt_enter_<mode>"): ... this.
21859 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21860 (define_insn "@omp_simt_exit_<mode>"): ... this.
21862 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21864 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21865 vf parameter. Restore the previous iv step of nscalars_step,
21866 but give it iv_type rather than compare_type. Tweak code order
21867 to match the comments.
21868 (vect_set_loop_condition_masked): Update accordingly.
21869 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21870 for iv_precision. Tweak comment formatting.
21872 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21874 * config/darwin.c: Strip trailing whitespace.
21876 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21878 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21879 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21881 2019-06-18 Martin Jambor <mjambor@suse.cz>
21884 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21885 caller does not have flag_ipa_cp set.
21887 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21889 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21890 from "*fold_left_plus_<mode>", updated operands order.
21891 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21892 * internal-fn.c (mask_fold_left_direct): New define.
21893 (expand_mask_fold_left_optab_fn): Likewise.
21894 (direct_mask_fold_left_optab_supported_p): Likewise.
21895 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21896 * optabs.def (mask_fold_left_plus_optab): New optab.
21897 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21898 masked internal_fn for a reduction ifn.
21899 (vectorize_fold_left_reduction): Add support for masking reductions.
21901 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21903 PR middle-end/80791
21904 * target.def (predict_doloop_p): New hook.
21905 * targhooks.h (default_predict_doloop_p): New declaration.
21906 * targhooks.c (default_predict_doloop_p): New function.
21907 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21908 * doc/tm.texi: Regenerate.
21909 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21910 (TARGET_PREDICT_DOLOOP_P): New macro.
21911 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21913 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21915 * omp-low.c (struct omp_context): Add scan_inclusive field.
21916 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21918 (struct omplow_simd_context): Add lastlane member.
21919 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21920 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21922 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21923 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21924 (lower_omp_scan): New function.
21925 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21926 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21927 check 3rd argument if present rather than 2nd.
21928 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21929 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21931 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21932 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21934 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21935 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21936 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21938 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21939 IFN_GOMP_SIMD_LANE argument.
21940 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21941 encoded ->aux value.
21942 * tree-vect-stmts.c: Include attribs.h.
21943 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21944 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21946 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21947 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21949 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21952 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21953 (*nabs<mode>2_1): Ditto.
21954 (nabs sse-reg splitter): New splitter.
21955 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21957 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21959 PR bootstrap/90873.
21960 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21963 2019-06-17 Tom de Vries <tdevries@suse.de>
21965 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21966 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21967 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21969 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21971 (define_insn "omp_simt_enter_insn"): Rename to ...
21972 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21973 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21974 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21975 gen_omp_simt_enter_si.
21976 (define_expand "omp_simt_exit"): New.
21977 (define_insn "omp_simt_exit"): Rename to ...
21978 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21981 2019-06-17 Matthew Green <mrg@eterna.com.au>
21982 Maya Rashish <coypu@sdf.org>
21984 * config.gcc (aarch64*-*-netbsd*): New target.
21985 * config/aarch64/aarch64-netbsd.h: New file.
21986 * config/aarch64/t-aarch64-netbsd: Likewise.
21988 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21990 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21991 the access path from base to first VIEW_CONVERT_EXPR or
21994 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21996 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21997 access path on BIT_FIELD_REFs.
21999 2019-06-17 Martin Liska <mliska@suse.cz>
22002 * ipa-utils.h (odr_type_p): Remove dead code.
22004 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22006 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
22007 alternative Solaris 11.4 format.
22008 * configure: Regenerate.
22010 2019-06-17 Tom de Vries <tdevries@suse.de>
22012 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
22013 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
22015 (define_insn "call_value_insn"): Rename to ...
22016 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
22018 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
22021 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
22023 PR middle-end/64242
22024 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
22025 frame clobbers and schedule block.
22026 (builtin_longjmp): Likewise.
22028 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22030 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
22031 describe how to perform MSPABI compliant 64-bit shift.
22032 * config/msp430/msp430.md (ashldi3): New define_expand.
22033 (ashrdi3): New define_expand.
22034 (lshrdi3): New define_expand.
22036 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22038 * doc/sourcebuild.texi: Document new effective target keyword
22041 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22043 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
22044 indirect_refs_may_alias_p): Revert accidental commits.
22046 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
22047 at the end of structures.
22049 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22051 * config/darwin.c (machopic_indirect_call_target): Use renamed
22052 darwin_picsymbol_stubs to decide on output.
22053 (darwin_override_options): Handle darwin_picsymbol_stubs.
22054 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
22055 (LD64_VERSION): Revise default.
22056 * config/darwin.opt: (mpic-symbol-stubs): New option.
22057 (darwin_picsymbol_stubs): New variable.
22058 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
22059 rename to TARGET_MACHO_PICSYM_STUBS.
22060 * config/i386/i386.c (output_pic_addr_const): Likewise.
22061 * config/i386/i386.h Likewise.
22062 * config/rs6000/darwin.h: Likewise.
22063 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
22064 darwin_picsymbol_stubs.
22066 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
22068 * config/darwin.opt (prebind, noprebind, seglinkedit,
22069 noseglinkedit): Add RejectNegative.
22071 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
22073 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
22074 in my previous patch.
22076 2019-06-16 Tom de Vries <tdevries@suse.de>
22078 PR tree-optimization/89376
22079 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
22081 2019-06-15 Maya Rashish <coypu@sdf.org>
22083 * doc/invoke.texi (Spec Files): Update location of the
22086 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
22088 * doc/extend.texi (Common Function Attributes): Clarify
22089 no_sanitize. Fix grammar.
22091 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
22093 * tree-ssa-alias.c (alias_stats): Add
22094 nonoverlapping_component_refs_p_may_alias,
22095 nonoverlapping_component_refs_p_no_alias,
22096 nonoverlapping_component_refs_of_decl_p_may_alias,
22097 nonoverlapping_component_refs_of_decl_p_no_alias.
22098 (dump_alias_stats): Dump them.
22099 (nonoverlapping_component_refs_of_decl_p): Add stats.
22100 (nonoverlapping_component_refs_p): Add stats; do not stop on first
22103 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
22105 * config/i386/i386.md (and<mode>3): Generate zero-extends for
22106 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
22108 (*anddi3_doubleword): Split before reload. Merge with
22109 anddi->zext pre-reload splitter.
22110 (*andndi3_doubleword): Split before reload.
22111 (*<code>di3_doubleword): Ditto.
22112 (*one_cmpldi2_doubleword): Ditto.
22114 2019-06-15 Jakub Jelinek <jakub@redhat.com>
22116 PR middle-end/90779
22117 * gimplify.c: Include omp-offload.h and context.h.
22118 (gimplify_bind_expr): Add "omp declare target" attributes
22119 to static block scope variables inside of target region or target
22122 2019-06-15 Tom de Vries <tdevries@suse.de>
22124 PR tree-optimization/90009
22125 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
22126 Return NULL if bb contains IFN_UNIQUE.
22128 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
22130 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
22131 (un): New define_mode_attr.
22132 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
22133 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
22134 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
22136 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
22138 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
22140 * config/darwin.opt: Add RejectNegative where needed, reorder
22141 and add minimal functional descriptions.
22143 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22145 PR rtl-optimization/90765
22146 * calls.c (update_stack_alignment_for_call): New function.
22147 (expand_call): Call update_stack_alignment_for_call when
22148 outgoing parameter is passed in the stack.
22149 (emit_library_call_value_1): Likewise.
22150 * function.c (locate_and_pad_parm): Don't update
22151 stack_alignment_needed and preferred_stack_boundary.
22153 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
22156 * config/i386/i386-features.c
22157 (dimode_scalar_chain::compute_convert_gain): Replace
22158 mmxsse_to_integer with sse_to_integer.
22159 * config/i386/i386.c (ix86_register_move_cost): Verify that
22160 moves between MMX and non-MMX units require secondary memory.
22161 Correct costs of moves between SSE and integer units.
22162 * config/i386/i386.h (processor_costs): Rename cost of moving
22163 SSE register to integer to sse_to_integer. Rename cost of
22165 2019-06-14 Matt Thomas <matt@3am-software.com>
22166 Matthew Green <mrg@eterna.com.au>
22167 Nick Hudson <skrll@netbsd.org>
22168 Maya Rashish <coypu@sdf.org>
22169 Richard Earnshaw <rearnsha@arm.com>
22171 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
22172 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
22173 * config/arm/netbsd-eabi.h: New file.
22174 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
22176 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
22177 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
22178 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
22179 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
22181 2019-06-14 Richard Biener <rguenther@suse.de>
22183 * tree-loop-distribution.c (classify_partition): Return
22184 whether a reduction appeared in all partitions and do not
22185 stop builtin detection because of this.
22186 (distribute_loop): Sort a non-builtin partition last if
22187 there's a reduction in all partitions and make sure the
22188 partition prevailing as last is not a builtin.
22190 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
22193 * ipa-prop.c (add_to_agg_contents_list): New function.
22194 (clobber_by_agg_contents_list_p): Likewise.
22195 (extract_mem_content): Likewise.
22196 (get_place_in_agg_contents_list): Delete.
22197 (determine_known_aggregate_parts): Renamed from
22198 determine_locally_known_aggregate_parts. New parameter
22201 2019-06-13 Martin Sebor <msebor@redhat.com>
22203 PR tree-optimization/90662
22204 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
22207 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22210 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
22211 dbase is not TARGET_MEM_REF.
22213 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22215 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
22217 (and<mode>3): Use gen_extend_insn instead of indirect functions.
22218 Do not generate DImode extends for 32bit targets.
22219 (and->zext post-reload splitter): Use gen_extend_insn
22220 instead of indirect functions.
22221 (anddi->zext pre-reload splitter): New.
22222 (*zext<mode>_doubleword_and): Remove.
22223 (*zext<mode>_doubleword): Ditto.
22224 (*zextsi_doubleword): Dittto.
22226 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22228 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22229 Use gen_sub3_insn instead of indirect function.
22230 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22232 (ix86_adjust_counter): Ditto.
22234 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22235 Lijia He <helijia@linux.ibm.com>
22237 PR tree-optimization/77820
22238 * tree-ssa-threadedge.c
22239 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22241 (thread_across_edge): Add call to
22242 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22244 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22246 * config/darwin-driver.c (validate_macosx_version_min): New.
22247 (darwin_default_min_version): Cleanup and validate supplied version.
22248 (darwin_driver_init): Likewise and push cleaned version into opts.
22250 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22252 PR tree-optimization/90869
22253 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22254 converts in MEM_REF referencing decl rather than view converts
22255 from decl type to MEM_REF type.
22257 2019-06-13 Richard Biener <rguenther@suse.de>
22259 PR tree-optimization/90856
22260 * tree-sra.c (build_ref_for_model): Only use
22261 build_reconstructed_reference when address-spaces are the same.
22263 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22265 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22266 wrap ei variable name in the declaration in ()s.
22267 (nvptx_single): Actually use mode_label variable. Formatting fix.
22269 2019-06-13 Richard Biener <rguenther@suse.de>
22271 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22272 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22273 also return the condition stmt.
22274 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22275 loop we can version and version that, reusing the loop version
22276 created by if-conversion instead of versioning again.
22278 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22280 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22282 * tree-vrp (value_range_base::may_contain_p): Call into
22283 value_inside_range.
22284 (value_inside_range): Make private inside value_range_base class.
22285 Take min/max from *this.
22286 (range_includes_p): Remove.
22287 * tree-vrp.h (value_range_base): Add value_inside_range.
22288 (range_includes_p): Remove.
22289 (range_includes_zero_p): Call may_contain_p.
22290 * vr-values.c (compare_range_with_value): Same.
22292 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22294 * doc/extend.texi (ARC Function Attributes): Update info.
22296 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22298 PR tree-optimization/89713
22299 * doc/invoke.texi (-ffinite-loops): Document new option.
22300 * common.opt (-ffinite-loops): New option.
22301 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22302 IFN_GOACC_LOOP calls as necessary.
22303 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22305 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22306 IFN_GOACC_LOOP call is not used.
22307 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22309 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22312 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22313 compare_type is not with Pmode size, we will create an IV with
22314 Pmode size with truncated use (i.e. converted to the correct type).
22315 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22316 (vect_iv_limit_for_full_masking): New. Factored out of
22317 vect_set_loop_condition_masked.
22318 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22319 (vect_iv_limit_for_full_masking): Declare.
22321 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22324 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22325 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22326 (get_alias_ptr_type_for_ptr_address): Likewise.
22327 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22328 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22329 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22332 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22334 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22336 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22338 * common/config/pru/pru-common.c: New file.
22339 * config.gcc: Add PRU target.
22340 * config/pru/alu-zext.md: New file.
22341 * config/pru/constraints.md: New file.
22342 * config/pru/predicates.md: New file.
22343 * config/pru/pru-opts.h: New file.
22344 * config/pru/pru-passes.c: New file.
22345 * config/pru/pru-pragma.c: New file.
22346 * config/pru/pru-protos.h: New file.
22347 * config/pru/pru.c: New file.
22348 * config/pru/pru.h: New file.
22349 * config/pru/pru.md: New file.
22350 * config/pru/pru.opt: New file.
22351 * config/pru/t-pru: New file.
22352 * doc/extend.texi: Document PRU pragmas.
22353 * doc/invoke.texi: Document PRU-specific options.
22354 * doc/md.texi: Document PRU asm constraints.
22356 2019-06-12 Martin Sebor <msebor@redhat.com>
22358 PR middle-end/90676
22359 * tree-pretty-print.c (dump_mem_ref): New function. Include
22360 MEM_REF type in output when different size than operand.
22361 (dump_generic_node): Move code to dump_mem_ref and call it.
22363 2019-06-12 Martin Sebor <msebor@redhat.com>
22365 PR tree-optimization/90662
22366 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
22369 2019-06-12 Tom de Vries <tdevries@suse.de>
22371 PR tree-optimization/90009
22372 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
22374 2019-06-12 Martin Liska <mliska@suse.cz>
22376 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
22378 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
22379 * mem-stats.h (mem_alloc_description::mem_alloc_description):
22380 Do not sanitize created maps.
22382 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
22384 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
22385 value_range::singleton_p.
22386 * tree-vrp.c (value_range_constant_singleton): Remove.
22387 * tree-vrp.h (value_range_constant_singleton): Remove.
22388 * vr-values.c (vr_values::singleton): Use
22389 value_range::singleton_p.
22391 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22394 * cfgexpand.c (align_local_variable): Add really_expand argument,
22395 don't SET_DECL_ALIGN if it is false.
22396 (add_stack_var): Add really_expand argument, pass it through to
22397 align_local_variable.
22398 (expand_one_stack_var_1): Pass true as really_expand to
22399 align_local_variable.
22400 (expand_one_ssa_partition): Pass true as really_expand to
22402 (expand_one_var): Pass really_expand through to add_stack_var.
22404 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
22406 * config/arm/iterators.md (VABAL): New int iterator.
22407 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
22408 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
22409 UNSPEC_VABAL_U values.
22411 2019-06-12 Martin Liska <mliska@suse.cz>
22413 * value-prof.c (stream_out_histogram_value): Only first value
22416 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22419 * symtab.c (symtab_node::set_section): Allow being called on aliases
22420 as long as they aren't analyzed yet.
22422 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
22424 * config/mips/mips.c (mips_final_postscan_insn): Modify call
22425 to `mips_set_text_contents_type' to indicate whether a
22426 non-debug insn follows.
22428 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
22430 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
22431 enabling -mpcrel by default.
22432 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
22433 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
22434 that the test against -mcpu=future is done first. Then test if
22435 -mprefixed-addr is on for -mpcrel.
22436 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
22438 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22441 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
22442 instead of and.u%d.
22444 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22446 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
22448 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
22450 PR c++/90449 - add -Winaccessible-base option.
22451 * doc/invoke.texi (Winaccessible-base): Document.
22453 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22455 PR tree-optimization/62041
22456 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
22458 2019-06-11 Jason Merrill <jason@redhat.com>
22460 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
22461 * tree.c (get_tree_code_name): Likewise.
22462 * print-tree.c (print_node): Only briefly print a node with an
22465 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22468 * trans-mem.c (tm_memopt_compute_available): Add assertion
22469 that blocks is not empty. Formatting fix.
22471 2019-06-11 Martin Liska <mliska@suse.cz>
22474 * hash-table.h: Extend create_gcc, add one parameter
22475 that is passed into hash_table::hash_table.
22477 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
22479 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
22481 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
22482 Emit clobber also for non-sse operations.
22483 (ix86_split_fp_absneg_operator): New function.
22484 * config/i386/i386.md (SSEMODEF): New mode iterator.
22485 (ssevecmodef): New mode attribute.
22486 (<code>tf2): Use absneg code iterator.
22487 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
22488 Add three-operand AVX alternatives.
22489 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
22490 Use absneg code iterator and X87MODEF mode iterator.
22491 (absneg fp_reg non-sse splitter): Call absneg code iterator
22492 and X87MODEF mode iterator.
22493 (absneg general_reg non-sse splitter): Use absneg code iterator
22494 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
22495 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
22496 code iterator. Add three-operand AVX alternative.
22497 (absneg sse_reg splitter): Use absneg code iterator
22498 and SSEMODEF mode iterator. Handle AVX operands.
22499 (absneg fp_reg splitter): Use absneg code iterator
22500 and MODEF mode iterator.
22501 (absneg general_reg splitter): Merge splitters using MODEF mode
22502 iterator. Use absneg code iterator. Call
22503 ix86_split_fp_absneg_operator.
22504 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
22505 Do not enable for non-sse modes before reload.
22506 (CSGNMODE): Remove.
22507 (CSGNVMODE): Ditto.
22508 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
22509 ssevecmodef mode attribute instaed of CSGNVMODE.
22510 (copysign<mode>3_const): Ditto.
22511 (copysign<mode>3_var): Ditto.
22512 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
22513 Use absneg code iterator. Simplify code using std::swap.
22514 * config/i386/predicates.md (absneg_operator): Remove.
22516 2019-06-10 Martin Sebor <msebor@redhat.com>
22518 * gimple-fold.c (get_range_strlen): Update comment that didn't
22519 make it into r267503 or related commits.
22521 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
22523 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
22524 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
22526 2019-06-10 Jakub Jelinek <jakub@redhat.com>
22528 * tree.def (OMP_SCAN): New tree code.
22529 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
22530 OMP_CLAUSE_EXCLUSIVE.
22531 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
22532 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
22533 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
22534 OMP_CLAUSE_{IN,EX}CLUSIVE.
22535 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22536 * tree-nested.c (convert_nonlocal_reference_stmt,
22537 convert_local_reference_stmt, convert_gimple_call): Handle
22539 * tree-pretty-print.c (dump_omp_clause): Handle
22540 OMP_CLAUSE_{IN,EX}CLUSIVE.
22541 (dump_generic_node): Handle OMP_SCAN.
22542 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
22543 * gimple.h (gomp_scan): New type.
22544 (is_a_helper <gomp_scan *>::test,
22545 is_a_helper <const gomp_scan *>::test): New templates.
22546 (gimple_build_omp_scan): Declare.
22547 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
22548 gimple_omp_scan_set_clauses): New inline functions.
22549 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
22550 * gimple.c (gimple_build_omp_scan): New function.
22551 (gimple_copy): Handle GIMPLE_OMP_SCAN.
22552 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
22553 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
22554 GIMPLE_OMP_TASKGROUP.
22555 (dump_gimple_omp_scan): New function.
22556 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
22557 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
22558 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
22559 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
22560 (is_gimple_stmt): Handle OMP_SCAN.
22561 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
22562 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22563 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
22564 mentioned in nested #pragma omp scan. Handle
22565 OMP_CLAUSE_{IN,EX}CLUSIVE.
22566 (gimplify_expr): Handle OMP_SCAN.
22567 * omp-low.c (check_omp_nesting_restrictions): For parent context,
22568 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
22570 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
22573 2019-06-10 Martin Liska <mliska@suse.cz>
22575 * ipa-cp.c (ignore_edge_p): New function.
22576 (build_toporder_info): Use it.
22577 * ipa-inline.c (ignore_edge_p): New function.
22578 (inline_small_functions): Use it.
22579 * ipa-pure-const.c (ignore_edge_for_nothrow):
22580 Verify opt_for_fn for caller and callee.
22581 (ignore_edge_for_pure_const): Likewise.
22582 * ipa-reference.c (ignore_edge_p): Extend to check
22584 * ipa-utils.c (searchc): Refactor.
22585 * ipa-utils.h: Fix coding style.
22587 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22589 * config/arc/arc.c (arc_rtx_costs): Update costs.
22591 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22593 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
22594 (arc_split_ior): Likewise.
22595 (arc_check_mov_const): Likewise.
22596 (arc_split_mov_const): Likewise.
22597 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
22598 (arc_rtx_costs): Replace check Crr with Cax constraint.
22599 (prepare_move_operands): Cleanup, remove unused code.
22600 (arc_split_ior): New function.
22601 (arc_check_ior_const): Likewise.
22602 (arc_split_mov_const): Likewise.
22603 (arc_check_mov_const): Likewise.
22604 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
22605 in define_insn_and_split pattern.
22606 (iorsi3): Likewise.
22607 (mulsi3_v2): Add new matching variant.
22608 (andsi3_i): Cleanup pattern.
22609 (rotrsi3_cnt1): Update pattern.
22610 (rotrsi3_cnt8): New pattern.
22611 (ashlsi2_cnt8): Likewise.
22612 (ashlsi2_cnt16): Likewise.
22613 * config/arc/constraints.md (C0p): Update constraint.
22615 (C0x): New pattern.
22616 (Cax): New pattern.
22618 2019-06-10 Martin Liska <mliska@suse.cz>
22620 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
22621 Update coding style.
22622 (sem_item_optimizer::dump_cong_classes):
22623 Print how many items are in a non-singular class. Improve
22626 2019-06-10 Martin Liska <mliska@suse.cz>
22628 * value-prof.c (dump_histogram_value): Change dump format.
22629 (gimple_mod_subtract_transform): Remove legacy comment.
22631 2019-06-10 Martin Liska <mliska@suse.cz>
22633 * value-prof.c (dump_histogram_value): Print histogram values
22636 2019-06-10 Martin Liska <mliska@suse.cz>
22638 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
22639 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
22640 * ipa-profile.c (ipa_profile_generate_summary):
22641 Use get_most_common_single_value.
22642 * tree-profile.c (gimple_init_gcov_profiler):
22643 Instrument with __gcov_one_value_profiler_v2
22644 and __gcov_indirect_call_profiler_v4.
22645 * value-prof.c (dump_histogram_value):
22646 Print all values for HIST_TYPE_SINGLE_VALUE.
22647 (stream_out_histogram_value): Update assert for
22649 (stream_in_histogram_value): Set number of
22650 counters for HIST_TYPE_SINGLE_VALUE.
22651 (get_most_common_single_value): New.
22652 (gimple_divmod_fixed_value_transform):
22653 Use get_most_common_single_value.
22654 (gimple_ic_transform): Likewise.
22655 (gimple_stringops_transform): Likewise.
22656 (gimple_find_values_to_profile): Set number
22657 of counters for HIST_TYPE_SINGLE_VALUE.
22658 * value-prof.h (get_most_common_single_value): New.
22660 2019-06-10 Martin Liska <mliska@suse.cz>
22662 * hash-map.h: Pass default value to hash_table ctor.
22663 * hash-table.h: Add default value to call of a ctor.
22665 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
22667 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
22668 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
22670 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
22673 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
22674 Call pa_output_function_label.
22675 (TARGET_ASM_FUNCTION_PROLOGUE): define.
22676 * config/pa/pa-protos.h (pa_output_function_label): Declare.
22677 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
22679 (pa_linux_output_function_prologue): Declare.
22680 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
22681 (pa_output_function_label): New.
22682 (pa_output_function_prologue): Revise to use pa_output_function_label.
22683 (pa_linux_output_function_prologue): New.
22684 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
22686 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
22688 * tree-vrp.h (value_range_base::intersect): New.
22689 (value_range::intersect_helper): Move from here...
22690 (value_range_base::intersect_helper): ...to here.
22691 * tree-vrp.c (value_range::intersect_helper): Rename to...
22692 (value_range_base::intersect_helper): ...this, and rewrite to
22693 return a value instead of modifying THIS in place.
22694 Also, move equivalence handling...
22695 (value_range::intersect): ...here, while calling intersect_helper.
22696 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
22698 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
22700 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
22702 2019-06-07 Jakub Jelinek <jakub@redhat.com>
22704 * Makefile.in (genprogerr): Add condmd.
22705 (genprog): Remove it here.
22707 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
22709 * doc/invoke.texi (AMD GCN Options): Add gfx906.
22711 2019-06-07 Richard Biener <rguenther@suse.de>
22714 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
22715 that appear after user labels.
22717 2019-06-07 Martin Liska <mliska@suse.cz>
22719 * cselib.c (cselib_init): Disable hash table
22721 * hash-set.h: Pass new default argument to m_table.
22722 * hash-table.c: Add global variable with hash table
22723 sanitization limit.
22724 * hash-table.h (Allocator>::hash_table): Add new argument
22726 (hashtab_chk_error): New.
22727 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
22728 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
22729 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
22731 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22733 * common.opt (flto-odr-type-merging): Ignore.
22734 * invoke.texi (-flto-odr-type-merging): Remove.
22735 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
22736 (can_be_vtable_hashed_p): Remove.
22737 (hash_odr_vtable): Remove.
22738 (odr_vtable_hasher::hash): Remove.
22739 (types_same_for_odr): Remove.
22740 (types_odr_comparable): Remove.
22741 (odr_vtable_hasher::equal): Remove.
22742 (odr_vtable_hash_type, odr_vtable_hash): Remove.
22743 (add_type_duplicate): Do not synchronize vtable and name hashtables.
22744 (get_odr_type): Do not use vtable hash.
22745 (dump_odr_type): Remove commented out code.
22746 (build_type_inheritance_graph): Do not allocate vtable hash.
22747 (rebuild_type_inheritance_graph): Do not delete vtable hash.
22748 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
22749 (odr_type_p): Likewise.
22750 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
22753 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22755 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
22756 immediately after same_types_for_tbaa_p returns -1 and continue
22757 looking for possible exact match; if matching types are arrays
22758 watch for partial overlaps.
22759 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
22760 (indirect_refs_may_alias_p): Do type based disambiguation first;
22763 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
22765 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
22767 2019-06-07 Martin Liska <mliska@suse.cz>
22769 * doc/invoke.texi: Remove param.
22770 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
22772 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
22773 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
22774 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
22775 * profile.c (instrument_values): Remove
22776 HIST_TYPE_INDIR_CALL_TOPN.
22777 * tree-profile.c (init_ic_make_global_vars):
22778 Always build __gcov_indirect_call only.
22779 (gimple_init_gcov_profiler): Remove usage
22780 of PARAM_INDIR_CALL_TOPN_PROFILE.
22781 (gimple_gen_ic_profiler): Likewise.
22782 * value-prof.c (dump_histogram_value): Likewise.
22783 (stream_in_histogram_value): Likewise.
22784 (gimple_indirect_call_to_profile): Likewise.
22785 (gimple_find_values_to_profile): Likewise.
22786 * value-prof.h (enum hist_type): Likewise.
22788 2019-06-07 Martin Liska <mliska@suse.cz>
22790 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
22793 2019-06-07 Martin Liska <mliska@suse.cz>
22795 PR tree-optimization/78902
22796 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
22797 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
22798 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22799 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22800 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
22801 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22802 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
22803 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
22804 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22805 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22806 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22807 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
22808 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
22810 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
22811 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
22812 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
22813 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22814 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22815 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22816 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22817 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22818 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22819 warn_unused_result attribute.
22820 (BUILT_IN_STRDUP): Likewise.
22821 (BUILT_IN_STRNDUP): Likewise.
22822 (BUILT_IN_ALLOCA): Likewise.
22823 (BUILT_IN_CALLOC): Likewise.
22824 (BUILT_IN_MALLOC): Likewise.
22825 (BUILT_IN_REALLOC): Likewise.
22827 2019-06-06 Jim Wilson <jimw@sifive.com>
22830 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22831 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22832 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22834 2019-06-06 Martin Sebor <msebor@redhat.com>
22836 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22837 (handle_builtin_malloc): Remove trailing spaces.
22838 (handle_builtin_memset): Same.
22839 (handle_builtin_memcmp): Same.
22840 (compute_string_length): Same.
22841 (determine_min_objsize): Same.
22842 (handle_builtin_string_cmp): Same.
22843 (handle_char_store): Same. Break up excessively long line.
22845 2019-06-06 Martin Jambor <mjambor@suse.cz>
22847 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22850 2019-06-06 Martin Jambor <mjambor@suse.cz>
22852 * tree-sra.c (struct access): New field grp_same_access_path.
22853 (dump_access): Dump it.
22854 (build_reconstructed_reference): New function.
22855 (build_ref_for_model): Use it if possible.
22856 (path_comparable_for_same_access): New function.
22857 (same_access_path_p): Likewise.
22858 (sort_and_splice_var_accesses): Set the new flag.
22859 (analyze_access_subtree): Likewise.
22860 (propagate_subaccesses_across_link): Propagate zero value of the new
22861 flag down the access tree.
22863 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22865 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22866 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22867 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22868 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22871 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22873 PR tree-optimization/90332
22874 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22875 Handle VALS containing two vectors.
22876 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22878 (@aarch64_combinez<mode>): ... This.
22879 (*aarch64_combinez_be<mode>): Rename to...
22880 (@aarch64_combinez_be<mode>): ... This.
22881 (vec_init<mode><Vhalf>): New define_expand.
22882 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22884 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22886 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22887 library functions only when not optimizing for size.
22888 (ashlsi3): Likewise.
22889 (ashrhi3): Likewise.
22890 (ashrsi3): Likewise.
22891 (lshrhi3): Likewise.
22892 (lshrsi3): Likewise.
22894 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22896 PR rtl-optimization/88751
22897 * ira.c (ira): Use the number of the actually referenced registers
22898 when calculating the threshold.
22900 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22902 * configure: Regenerate.
22904 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22906 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22907 register if it is in memory, so the shift can be emulated with a rotate
22909 (ashrhi3): Likewise.
22910 (lshrhi3): Likewise.
22912 2019-06-06 Martin Liska <mliska@suse.cz>
22914 PR tree-optimization/87954
22915 * match.pd: Simplify mult where both arguments are 0 or 1.
22917 2019-06-06 Richard Biener <rguenther@suse.de>
22919 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22920 put equivalences on UNDEFINED ranges.
22921 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22922 Make sure to drop defs of stmts added during simplification
22925 2019-06-06 Richard Biener <rguenther@suse.de>
22927 * tree-ssa-structalias.c: Include tree-cfg.h.
22928 (make_heapvar): Do not make heap vars artificial.
22929 (find_func_aliases_for_builtin_call): Handle stack allocation
22931 (find_func_aliases): Delay processing of simple enough returns
22933 (set_uids_in_ptset): Adjust.
22934 (find_what_var_points_to): Likewise.
22935 (solve_constraints): Do not dump points-to sets here.
22936 (compute_points_to_sets): Post-process return statements,
22937 amending the escaped solution. Dump points-to sets afterwards.
22938 (ipa_pta_execute): Dump points-to sets.
22940 2019-06-06 Martin Liska <mliska@suse.cz>
22943 * doc/install.texi: Fix HTML headers and
22944 titles for 'Installing GCC' pages.
22946 2019-06-06 Martin Liska <mliska@suse.cz>
22948 * ipa-icf-gimple.h (dump_message_1): Remove.
22949 (dump_message): Likewise.
22950 (return_false_with_message_1): Print also file.
22951 (return_false_with_msg): Likewise.
22952 (return_with_result): Likewise.
22953 (return_with_debug): Likewise.
22954 * ipa-icf.c (sem_function::equals_private): Remove call
22957 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22959 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22960 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22961 memory operand for it.
22962 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22964 2019-06-05 Martin Sebor <msebor@redhat.com>
22966 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22967 Adjust quoting and hyphenation.
22968 * convert.c (convert_to_real_1): Same.
22969 * gcc.c (driver_wrong_lang_callback): Same.
22970 (driver::handle_unrecognized_options): Same.
22971 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22972 * opts-common.c (cmdline_handle_error): Same.
22973 (read_cmdline_option): Same.
22974 * opts-global.c (complain_wrong_lang): Same.
22975 (print_ignored_options): Same.
22976 (handle_common_deferred_options): Same.
22977 * pretty-print.h: Same.
22978 * print-rtl.c (debug_bb_n_slim): Same.
22979 * sched-rgn.c (make_pass_sched_fusion): Same.
22980 * tree-cfg.c (verify_gimple_assign_unary): Same.
22981 (verify_gimple_label): Same.
22982 * tree-ssa-operands.c (verify_ssa_operands): Same.
22983 * varasm.c (do_assemble_alias): Same.
22984 (assemble_alias): Same.
22986 2019-06-05 Richard Henderson <rth@twiddle.net>
22988 * config/alpha/alpha.c (direct_return): Move down after
22989 struct machine_function definition; use saved frame_size;
22991 (struct machine_function): Add sa_mask, sa_size, frame_size.
22992 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22993 (alpha_compute_frame_layout): ... new function.
22994 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22995 (alpha_initial_elimination_offset): Use saved sa_size.
22996 (alpha_vms_initial_elimination_offset): Likewise.
22997 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22998 (alpha_expand_prologue): Use saved frame data. Merge integer
22999 and fp register save loops.
23000 (alpha_expand_epilogue): Likewise.
23001 (alpha_start_function): Use saved frame data.
23002 * config/alpha/alpha-protos.h (direct_return): Update.
23003 (alpha_sa_size): Remove.
23005 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
23007 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
23008 multiplication by a power-of-two value.
23009 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
23010 and turn the modulo operation into a masking operation.
23012 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23015 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
23016 with VOIDmode inner operands.
23018 2019-06-05 Richard Biener <rguenther@suse.de>
23020 PR middle-end/90726
23021 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
23022 turn an expression graph into a tree.
23024 2019-06-05 Jakub Jelinek <jakub@redhat.com>
23026 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
23028 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
23029 treat it like explicit monotonic schedule modifier.
23030 (expand_omp_for): Initialize has_lastprivate_conditional.
23031 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
23034 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
23035 references, lookup in in hash map MEM_REF operand instead of the
23037 (lower_omp_1): When looking for lastprivate conditional assignments,
23038 handle MEM_REFs with REFERENCE_TYPE operands.
23040 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
23041 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
23042 and references a VLA. Handle references to non-VLAs if is_simd
23043 all privatization clauses like reductions.
23044 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
23045 If omp_is_reference, use always omp simd arrays and set
23046 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
23047 fails, emit reference initialization.
23049 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
23052 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
23053 _mm_mask_fpclass_sd_mask): New intrinsics.
23054 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
23055 * config/i386/i386-builtin.def
23056 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
23058 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
23059 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
23060 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
23061 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
23062 case QI_FTYPE_V2SF_INT): Ditto.
23063 * config/i386/sse.md
23064 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
23065 Extended to insnstructions with mask operands.
23067 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23069 * config/rs6000/constraints.md (define_register_constraint "wp"):
23071 (define_register_constraint "wq"): Delete.
23072 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23073 (rs6000_init_hard_regno_mode_ok): Adjust.
23074 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23075 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
23076 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
23077 (define_mode_attr VSa): Delete.
23078 (define_mode_attr VSisa): New.
23079 (rest of file): Adjust.
23080 * doc/md.texi (Machine Constraints): Adjust.
23082 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23084 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
23085 (define_attr "enabled"): Handle those new isa values.
23087 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23089 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
23090 (define_mode_attr VSr5): Delete.
23091 (define_mode_attr VStype_sqrt): Delete.
23092 (define_mode_iterator VSX_SPDP): Delete.
23093 (define_mode_attr VS_spdp_res): Delete.
23094 (define_mode_attr VS_spdp_insn): Delete.
23095 (define_mode_attr VS_spdp_type): Delete.
23096 (*vsx_sqrt<mode>2): Adjust.
23097 (vsx_<VS_spdp_insn>): Delete, split to...
23098 (vsx_xscvdpsp): ... this. New. And...
23099 (vsx_xvcvspdp): ... this. New. And...
23100 (vsx_xvcvdpsp): ... this. New.
23102 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23104 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
23106 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
23107 (rest of file): Adjust.
23109 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23111 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
23112 (vsx_extract_<mode>_var): Ditto.
23114 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23116 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
23119 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23121 * config/rs6000/constraints.md (define_register_constraint "ww"):
23123 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23124 (rs6000_init_hard_regno_mode_ok): Adjust.
23125 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23126 RS6000_CONSTRAINT_ww.
23127 * config/rs6000/rs6000.md: Adjust.
23128 * config/rs6000/vsx.md: Adjust.
23129 * doc/md.texi (Machine Constraints): Adjust.
23131 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23133 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
23134 (define_mode_attr sd): New.
23135 (define_mode_attr s): New.
23136 (define_mode_attr Ftrad): Delete.
23137 (define_mode_attr Fvsx): Delete.
23138 (define_mode_attr Fs): Delete.
23139 (rest of file): Use the new mode attributes.
23140 * config.rs6000/vsx.md: Use the new mode attributes.
23142 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23144 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
23147 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23149 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
23150 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
23151 used with VSX_B, VSX_D, or VSX_F, with just "wa".
23153 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
23156 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
23157 C++ with strict ANSI requirements.
23159 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
23161 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
23162 computations when step is 1.
23164 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23166 * config/rs6000/constraints.md (define_register_constraint "wf"):
23168 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23169 (rs6000_init_hard_regno_mode_ok): Adjust.
23170 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23171 RS6000_CONSTRAINT_wf.
23172 * config/rs6000/rs6000.md: Adjust.
23173 * config/rs6000/vsx.md: Adjust.
23174 * doc/md.texi (Machine Constraints): Adjust.
23176 2019-06-04 Andrew Pinski <apinski@marvell.com>
23178 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
23181 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23183 * config/rs6000/constraints.md (define_register_constraint "wd"):
23185 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23186 (rs6000_init_hard_regno_mode_ok): Adjust.
23187 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23188 RS6000_CONSTRAINT_wd.
23189 * config/rs6000/rs6000.md: Adjust.
23190 * config/rs6000/vsx.md: Adjust.
23191 * doc/md.texi (Machine Constraints): Adjust.
23193 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23195 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
23196 (rest of file): Adjust.
23198 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23200 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
23201 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
23202 (vsx_splat_<mode>_reg): Adjust.
23204 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23206 * config/rs6000/constraints.md (define_register_constraint "ws"):
23208 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23209 (rs6000_init_hard_regno_mode_ok): Adjust.
23210 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23211 RS6000_CONSTRAINT_ws.
23212 * config/rs6000/rs6000.md: Adjust.
23213 * config/rs6000/vsx.md: Adjust.
23214 * doc/md.texi (Machine Constraints): Adjust.
23216 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23218 * config/rs6000/constraints.md (define_register_constraint "wv"):
23220 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23221 (rs6000_init_hard_regno_mode_ok): Adjust.
23222 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23223 RS6000_CONSTRAINT_wv.
23224 * config/rs6000/rs6000.md: Adjust.
23225 * config/rs6000/vsx.md: Adjust.
23226 * doc/md.texi (Machine Constraints): Adjust.
23228 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23230 * config/rs6000/constraints.md (define_register_constraint "wi"):
23232 (define_register_constraint "wt"): Delete.
23233 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23234 (rs6000_init_hard_regno_mode_ok): Adjust.
23235 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23236 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23237 * config/rs6000/rs6000.md: Adjust.
23238 * config/rs6000/vsx.md: Adjust.
23239 * doc/md.texi (Machine Constraints): Adjust.
23241 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23243 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23245 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23246 default_elf_asm_output_external.
23248 2019-06-04 Martin Liska <mliska@suse.cz>
23250 * ipa-icf.c (INCLUDE_LIST): Remove.
23251 (sem_item_optimizer::execute): Remove call to init_wpa.
23252 * ipa-icf.h (init_wpa): Remove.
23254 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23256 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23257 conditional on combined for simd.
23258 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23260 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23261 constructs, don't remove lastprivate_conditional_map, but instead set
23262 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23263 to parent construct temporaries.
23264 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23265 like !ctx->lastprivate_conditional_map.
23266 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23267 use up->outer context instead of up.
23268 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23269 gimple_omp_for_combined_p.
23270 (expand_omp_for_static_nochunk): Likewise.
23271 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23272 probably moved over into expand_omp_for_generic rather than being copied
23275 2019-06-04 Martin Liska <mliska@suse.cz>
23277 * value-prof.c (dump_histogram_value): Fix typo.
23278 (gimple_mod_subtract_transform): Likewise.
23280 2019-06-04 Richard Biener <rguenther@suse.de>
23282 PR middle-end/90726
23283 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23284 (tree_contains_chrecs): Likewise.
23285 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23286 exponential behaivor from ...
23287 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23289 (expression_expensive_p): Avoid exponential behavior and compute
23290 expanded size, rejecting any expansion.
23291 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23292 (idx_contains_abnormal_ssa_name_p): Likewise.
23293 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23294 (contains_abnormal_ssa_name_p): Simplify and use
23295 walk_tree_without_duplicates.
23297 2019-06-04 Richard Biener <rguenther@suse.de>
23299 PR tree-optimization/90738
23301 2019-06-03 Richard Biener <rguenther@suse.de>
23303 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23304 full reference tree and record in ref->ref.
23305 (vn_reference_lookup_3): Pass in original ref to
23306 ao_ref_init_from_vn_reference.
23307 (vn_reference_lookup): Likewise.
23308 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23309 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23310 Handle non-decl bases in the original reference.
23312 2019-06-04 Martin Liska <mliska@suse.cz>
23314 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23315 number of references.
23316 (sem_item_optimizer::do_congruence_step):
23317 (sem_item_optimizer::worklist_push): Dump how references
23319 (sem_item_optimizer::worklist_pop): Use heap.
23320 (sem_item_optimizer::process_cong_reduction): Likewise.
23321 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23323 2019-06-04 Martin Liska <mliska@suse.cz>
23325 * ipa-icf.h (struct sem_usage_pair_hash): New.
23326 (sem_usage_pair_hash::hash): Likewise.
23327 (sem_usage_pair_hash::equal): Likewise.
23328 (struct sem_usage_hash): Likewise.
23329 * ipa-icf.c (sem_item::sem_item): Initialize
23330 referenced_by_count.
23331 (sem_item::add_reference): Register a reference
23332 in ref_map and not in target->usages.
23333 (sem_item::setup): Remove initialization of
23335 (sem_item::~sem_item): Remove usage of dead vectors.
23336 (sem_item::dump): Remove dump of references.
23337 (sem_item_optimizer::sem_item_optimizer): Initialize
23339 (sem_item_optimizer::read_section): Remove useless
23341 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23342 (sem_item_optimizer::build_graph): Pass m_references
23343 to ::add_reference.
23344 (sem_item_optimizer::verify_classes): Remove usage of dead
23346 (sem_item_optimizer::traverse_congruence_split): Return true
23347 when a class is split.
23348 (sem_item_optimizer::do_congruence_step_for_index): Use
23349 hash_map for look up of (sem_item *, index). That brings
23350 significant speed up.
23351 (sem_item_optimizer::do_congruence_step): Return true
23352 when a split is done.
23353 (congruence_class::is_class_used): Use referenced_by_count.
23355 2019-06-04 Alan Modra <amodra@gmail.com>
23358 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
23361 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23363 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
23364 * config/rs6000/rs6000.c (direct_move_p): Adjust.
23365 (rs6000_secondary_reload_simple_move): Adjust.
23366 (rs6000_opt_masks): Neuter the "mfpgpr" option.
23367 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
23368 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
23371 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
23372 (floatunssi<mode>2_lfiwzx): Adjust.
23373 (fix_trunc<mode>si2_stfiwx): Adjust.
23374 (fixuns_trunc<mode>si2_stfiwx): Adjust.
23375 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
23376 (mfpgpr): Mark as deprecated.
23377 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
23378 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
23379 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
23381 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23383 * config/rs6000/constraints.md (define_register_constraint "wg"):
23385 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23386 RS6000_CONSTRAINT_wg.
23387 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23388 (rs6000_init_hard_regno_mode_ok): Adjust.
23389 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
23390 Delete "wg" alternatives.
23391 * doc/md.texi (Machine Constraints): Adjust.
23393 2019-06-03 Alan Modra <amodra@gmail.com>
23395 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
23396 (get_uncond_jump_length): Assert length less than INT_MAX and
23399 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23401 PR middle-end/64242
23402 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
23404 (expand_builtin_nonlocal_goto): Likewise.
23406 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23408 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
23409 (aarch64_asm_output_external): Declare.
23410 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
23411 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
23412 (aarch64_asm_output_alias): New.
23413 (aarch64_asm_output_external): New.
23414 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
23415 (ASM_OUTPUT_EXTERNAL): Define.
23417 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
23418 * tree-vrp.h (value_range_base::nonzero_p): New.
23419 (value_range_base::set_nonnull): Rename to...
23420 (value_range_base::set_nonzero): ...this.
23421 (value_range_base::set_null): Rename to...
23422 (value_range_base::set_zero): ...this.
23423 (value_range::set_nonnull): Remove.
23424 (value_range::set_null): Remove.
23425 * tree-vrp.c (range_is_null): Remove.
23426 (range_is_nonnull): Remove.
23427 (extract_range_from_binary_expr): Use value_range_base::*zero_p
23428 instead of range_is_*null.
23429 (extract_range_from_unary_expr): Same.
23430 (value_range_base::set_nonnull): Rename to...
23431 (value_range_base::set_nonzero): ...this.
23432 (value_range::set_nonnull): Remove.
23433 (value_range_base::set_null): Rename to...
23434 (value_range_base::set_zero): ...this.
23435 (value_range::set_null): Remove.
23436 (extract_range_from_binary_expr): Rename set_*null uses to
23438 (extract_range_from_unary_expr): Same.
23439 (union_helper): Same.
23440 * vr-values.c (get_value_range): Use set_*zero instead of
23442 (vr_values::extract_range_from_binary_expr): Same.
23443 (vr_values::extract_range_basic): Same.
23445 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23448 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
23450 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23452 * config/aarch64/iterators.md (MAX_OPP): New code attr.
23453 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
23455 (aarch64_<su>abd<mode>_3): ... This.
23456 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
23458 2019-06-03 Richard Biener <rguenther@suse.de>
23460 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23461 full reference tree and record in ref->ref.
23462 (vn_reference_lookup_3): Pass in original ref to
23463 ao_ref_init_from_vn_reference.
23464 (vn_reference_lookup): Likewise.
23465 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23466 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23467 Handle non-decl bases in the original reference.
23469 2019-06-03 Martin Liska <mliska@suse.cz>
23471 * doc/generic.texi: Remove Java Trees.
23473 2019-06-03 Martin Liska <mliska@suse.cz>
23475 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
23476 returns 0 when operands are equal.
23478 2019-06-03 Richard Biener <rguenther@suse.de>
23480 PR tree-optimization/90716
23481 * tree-loop-distribution.c (destroy_loop): Process blocks in
23484 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23487 * vector-builder.h (vector_builder::count_dups): New method.
23488 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
23490 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
23491 (vec_init<mode><Vel>): New pattern.
23492 * config/aarch64/aarch64.c (emit_insr): New function.
23493 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
23494 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
23495 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
23496 (aarch64_sve_expand_vector_init): Define two overloaded functions.
23498 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23500 PR tree-optimization/90681
23501 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
23502 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
23503 special case for SLP, but fail on non-groupped loads.
23505 2019-06-03 Martin Liska <mliska@suse.cz>
23507 * cfg.c (debug): Use TDF_DETAILS for debug and
23508 print edge info only once.
23510 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
23513 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
23515 2019-06-01 Martin Sebor <msebor@redhat.com>
23517 PR middle-end/90694
23518 * tree-pretty-print.c (dump_generic_node): Add parentheses.
23520 2019-05-31 Jan Hubicka <jh@suse.cz>
23522 * alias.c: Include ipa-utils.h.
23523 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
23524 * ipa-devirt.c (prevailing_odr_type): New.
23525 * ipa-utils.h (previaling_odr_type): Declare.
23527 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
23528 Hongtao Liu <hongtao.liu@intel.com>
23531 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
23532 NOTE_INSN_DELETED_LABEL check.
23534 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
23535 Robert Suchanek <robert.suchanek@mips.com>
23537 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
23538 and 3rd operands of the fmadd/fmsub/maddv builtin.
23540 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23542 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
23543 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23544 on OMP_SIMD if not nested inside of worksharing loop that also has
23545 lastprivate conditional clause for the same decl.
23546 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
23547 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
23549 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
23551 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
23553 (lower_lastprivate_clauses): Likewise.
23554 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
23555 calling lower_rec_input_clauses.
23556 (lower_omp_for): Likewise.
23557 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
23558 clause on simd construct.
23559 * omp-expand.c (expand_omp_simd): Initialize cond_var if
23560 OMP_CLAUSE__CONDTEMP_ clause is present.
23562 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
23565 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
23568 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
23569 TEX_D32, TEX_D64 or TEX_D128.
23571 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23573 * match.pd (~(vec?cst1:cst2)): New transformation.
23575 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23577 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
23578 ((size_t)(A /[ex] B) CMP C): New transformation.
23580 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
23582 * doc/md.texi: Document define_insn_and_rewrite.
23583 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
23584 * gensupport.c (queue_elem): Update comment.
23585 (replace_operands_with_dups): New function.
23586 (gen_rewrite_sequence): Likewise.
23587 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
23588 * read-rtl.c (apply_subst_iterator): Likewise.
23589 (add_condition_to_rtx, named_rtx_p): Likewise.
23590 (rtx_reader::read_rtx_operand): Likewise.
23591 * config/aarch64/aarch64-sve.md
23592 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
23593 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
23594 define_insn_and_rewrite.
23595 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
23596 Remove separate define_split.
23598 2019-05-31 Jan Hubicka <jh@suse.cz>
23600 * tree-ssa-alias.c (type_has_components_p): New function.
23601 (aliasing_component_refs_p): Use it.
23603 2019-05-31 Martin Liska <mliska@suse.cz>
23605 * gdbhooks.py: Add const_tree to TreePrinter.
23607 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
23610 * common.opt (feliminate-unused-debug-symbols): Enable by default.
23611 * doc/invoke.texi (Debugging Options): Document new default of
23612 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
23614 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23616 PR tree-optimization/90671
23617 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
23618 template_block used to be empty on the first call, don't use
23619 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
23620 seq with bb_seq and set it with set_bb_seq.
23622 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
23624 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
23626 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23627 Michael Meissner <meissner@linux.ibm.com>
23629 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
23630 (prefixed_mem_operand): Likewise.
23631 (non_prefixed_mem_operand): Likewise.
23632 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
23634 * config/rs6000/rs6000.c (print_operand_address): Handle
23635 PC-relative addresses.
23636 (mode_supports_prefixed_address_p): New function.
23637 (rs6000_prefixed_address): New function.
23638 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
23639 (SYMBOL_REF_PCREL_P): Likewise.
23641 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23643 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
23644 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
23645 (gimplify_omp_for): If worksharing loop with lastprivate conditional
23646 is nested inside of parallel region, add _condtemp_ clause to both.
23647 * tree-nested.c (convert_nonlocal_omp_clauses,
23648 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
23650 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
23652 * omp-general.c (omp_extract_for_data): Compute it.
23653 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
23654 (lower_rec_input_clauses): Likewise.
23655 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
23656 clause is already present, just add one further one after it.
23657 (lower_lastprivate_clauses): Handle cond_ptr with array type.
23658 (lower_send_shared_vars): Clear _condtemp_ vars.
23659 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
23660 or section or taskgroup.
23661 * omp-expand.c (determine_parallel_type): Disallow combining only if
23662 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
23663 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
23664 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23665 expand_omp_for_static_chunk, expand_omp_for): Use
23666 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
23667 determine if a special set of API routines are needed and if condtemp
23668 needs to be initialized, while always initialize cond_var if
23669 fd->lastprivate_conditional is non-zero.
23671 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23672 Michael Meissner <meissner@linux.ibm.com>
23674 * config/rs6000/constraints.md (eI): New constraint.
23675 * config/rs6000/predicates.md (cint34_operand): New predicate.
23676 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
23677 (SIGNED_34BIT_OFFSET_P): Likewise.
23678 * doc/md.texi (eI): Document constraint.
23680 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
23682 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
23684 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23685 Michael Meissner <meissner@linux.ibm.com>
23687 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
23688 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
23689 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
23690 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
23691 (OTHER_FUTURE_MASKS): Likewise.
23692 (POWERPC_MASKS): Likewise.
23693 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
23694 specified without -mprefixed-addr or -mcpu=future. Error if
23695 -mprefixed-addr is specified without -mcpu=future.
23696 (rs6000_opt_masks): Add entry for prefixed-addr.
23697 * rs6000.opt (mprefixed-addr): New option.
23699 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
23701 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
23702 cfun->is_thunk check.
23704 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23706 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
23709 2019-05-30 Martin Liska <mliska@suse.cz>
23711 * gdbinit.in: Fix 'ptc' command. Add trt
23712 that prints TREE_TYPE($).
23714 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
23715 Alan Modra <amodra@gmail.com>
23717 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
23719 (rs6000_indirect_call_template_1): ...and here.
23720 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
23721 plt16_ha, plt16_lo, mtctr indirect calls. Use
23722 rs6000_pltseq_enum.
23723 (rs6000_decl_ok_for_sibcall): New function.
23724 (rs6000_function_ok_for_sibcall): Refactor.
23725 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
23726 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
23727 when pcrel. Reorganize.
23728 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
23729 * rs6000.h (rs6000_pltseq_enum): New enum.
23730 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
23731 (*pltseq_tocsave): Use rs6000_pltseq_enum.
23732 (*pltseq_plt16_ha): Likewise.
23733 (*pltseq_plt16_lo): Likewise.
23734 (*pltseq_mtctr): Likewise.
23735 (*pltseq_plt_pcrel): New insn.
23736 (*call_local_aix): Handle @notoc calls.
23737 (*call_value_local_aix): Likewise.
23738 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
23739 (*call_value_nonlocal_aix): Likewise.
23740 (*call_indirect_pcrel): New insn.
23741 (*call_value_indirect_pcrel): Likewise.
23743 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
23745 * config/i386/sse.md (*save_multiple<mode>): Rename from
23746 save_multiple<mode>.
23747 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
23748 (*restore_multiple_and_return<mode>): Rename from
23749 restore_multiple_and_return<mode>.
23750 (*restore_multiple_leave_return<mode>): Rename from
23751 restore_multiple_leave_return<mode>.
23753 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
23755 * config.gcc (rx-*-linux*): New target.
23756 * config/rx/elf.opt: New file.
23757 * config/rx/linux.h: Likewise.
23758 * config/rx/t-linux: Likewise.
23759 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
23761 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
23762 (ASM_APP_OFF): Likewise.
23763 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
23766 2019-05-29 Jan Hubicka <jh@suse.cz>
23768 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
23769 variants are pointer equivalent.
23771 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23773 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
23774 * config/aarch64/aarch64-sve2.md: New file.
23775 (<u>avg<mode>3_floor): New pattern.
23776 (<u>avg<mode>3_ceil): Likewise.
23777 (*<sur>h<addsub><mode>): Likewise.
23778 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
23779 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
23781 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23784 * optc-save-gen.awk: In cl_optimization_print, use correct condition
23785 for var_opt_string printing. In cl_optimization_print_diff, print
23786 (null) instead of invoking undefined behavior if one of the
23787 var_opt_string pointers is NULL and use && instead of first || in the
23788 guarding condition. For var_target_other options, handle const char *
23789 target variables similarly to const char * optimize node variables.
23791 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
23793 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
23794 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
23795 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
23796 Add autib1716 and pacib1716 initialisation.
23797 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
23798 for autib1716 and pacib1716.
23799 * config/aarch64/aarch64-protos.h (aarch64_key_type,
23800 aarch64_post_cfi_startproc): Define.
23801 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
23802 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
23803 aarch64_handle_pac_ret_protection): Set default sign key to A.
23804 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
23805 aarch64_expand_prologue): Add check for b-key.
23806 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
23807 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
23808 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
23809 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
23810 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
23811 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
23812 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23813 * config/aarch64/aarch64.md (do_return): Add check for b-key.
23814 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23815 pauth_hint_num_a with pauth_hint_num.
23816 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23817 pauth_hint_num_a with pauth_hint_num.
23818 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23819 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23820 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23821 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23822 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23823 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23824 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23825 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23826 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23827 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23828 UNSPEC_AUTIA1716 respectively.
23829 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23830 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23831 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23832 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23833 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23834 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23836 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23838 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23839 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23840 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23841 explicit clause on combined parallel into implicit shared clause.
23842 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23843 and firstprivate if the decl has one too from combined parallel to
23844 the worksharing construct.
23846 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23847 Michael Meissner <meissner@linux.ibm.com>
23849 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23851 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23853 * rtl.h (LABEL_REF_P): New #define.
23855 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23857 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23859 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23861 * internal-fn.c: Marked mask_load_direct as vectorizable.
23862 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23863 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23864 combined even if masks different with allow_slp_p param.
23865 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23866 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23867 dissolve SLP-only vectorizable groups when SLP has been discarded.
23868 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23869 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23871 (vect_build_slp_tree_1): Fixed comment typo.
23872 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23873 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23874 loads for SLP only.
23875 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23877 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23879 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23881 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23882 Remove obsolete use_thunk reference.
23883 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23884 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23885 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23886 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23887 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23888 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23889 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23890 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23891 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23893 2019-05-28 Nathan Sidwell <nathan@acm.org>
23895 * tree.h (IDENTIFIER_ANON_P): New.
23896 (anon_aggrname_format, anon_aggname_p): Don't declare.
23897 (make_anon_name): Declare.
23898 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23899 (hash_tree): Likewise.
23900 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23901 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23902 (anon_cnt, make_anon_name): New.
23904 2019-05-28 Martin Liska <mliska@suse.cz>
23907 * opts-global.c (decode_options): Print help for all
23908 help_option_arguments.
23909 * opts.c (print_help): Add new argument.
23910 (common_handle_option): Remember all values into
23911 help_option_arguments.
23912 * opts.h (print_help): Add new argument.
23914 2019-05-28 Martin Liska <mliska@suse.cz>
23917 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23918 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23919 (func_checker::compare_bb): Call compare_loops.
23921 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23923 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23924 on sections construct.
23925 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23927 (lower_omp_sections): Handle lastprivate conditional.
23928 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23929 lastprivate_conditional_map.
23930 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23932 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23933 critical, taskgroup and section regions when looking for a region
23934 with non-NULL lastprivate_conditional_map.
23936 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23938 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23939 (*ix86_gen_sub3): Ditto.
23940 (*ix86_gen_sub3_carry): Ditto.
23941 (*ix86_gen_one_cmpl2): Ditto.
23942 (*ix86_gen_andsp): Ditto.
23943 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23944 (gen_and2_insn): New static function.
23945 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23946 Use gen_add3_insn instead of ix86_gen_add3.
23947 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23948 instead of ix86_gen_add3.
23949 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23950 Use gen_sub3_insn instead of ix86_gen_sub3.
23951 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23952 instead of ix86_gen_add3.
23953 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23954 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23955 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23956 * config/i386/i386-options.c (ix86_option_override_internal):
23957 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23958 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23960 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23962 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23963 and DW_OP_GNU_const_index opcodes.
23965 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23967 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23969 2019-05-27 Richard Biener <rguenther@suse.de>
23971 PR tree-optimization/90637
23972 * tree-ssa-sink.c (statement_sink_location): Honor the
23973 computed sink location for single-uses.
23975 2019-05-27 Richard Biener <rguenther@suse.de>
23977 PR middle-end/90610
23978 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23981 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23983 * config/i386/i386.md (@sub<mode>3_carry): Rename
23984 from sub<mode>3_carry.
23985 (@leave_<mode>): New expander.
23986 (*leave): Rename from leave.
23987 (*leave_rex64): Rename from leave_rex64.
23988 (@monitorx_<mode>): Rename from monitorx_<mode>.
23989 (@clzero_<mode>): Rename from clzero_<mode>.
23990 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23991 from sse3_monitor_<mode>.
23992 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23993 (*ix86_gen_leave): Ditto.
23994 (*ix86_gen_monitor): Ditto.
23995 (*ix86_gen_monitorx): Ditto.
23996 (*ix86_gen_clzero): Ditto.
23997 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23998 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23999 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
24000 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
24001 Use gen_sse3_monitor instead of ix86_gen_monitor.
24002 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
24003 instead of ix86_gen_monitorx.
24004 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
24005 instead of ix86_gen_clzero.
24006 * config/i386/i386-options.c (ix86_option_override_internal):
24007 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
24008 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
24010 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24012 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
24013 Rename from tls_global_dynamic_64_<mode>.
24014 (@tls_local_dynamic_base_64_<mode>): Rename from
24015 tls_local_dynamic_base_64_<mode>.
24016 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
24017 Remove indirect function.
24018 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
24019 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
24020 instead of ix86_gen_tls_global_dynamic_64.
24021 Use gen_tls_local_dynamic_base_64 instead of
24022 ix86_gen_tls_local_dynamic_base_64.
24023 * config/i386/i386-options.c (ix86_option_override_internal):
24024 Do not initialize ix86_gen_tls_global_dynamic_64 and
24025 ix86_gen_tls_local_dynamic_base_64.
24027 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
24029 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
24030 Rename from pro_epilogue_adjust_stack_<mode>_add.
24031 (@pro_epilogue_adjust_stack_sub_<mode>)
24032 Rename from pro_epilogue_adjust_stack_<mode>_sub.
24033 (@allocate_stack_worker_probe_<mode>):
24034 Rename from allocate_stack_worker_probe_<mode>.
24035 (allocate_stack): Use gen_allocate_stack_worker_probe.
24036 (probe_stack): Use gen_probe_stack_1.
24037 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
24038 (@adjust_stack_and_probe_<mode>): Rename from
24039 adjust_stack_and_probe<mode>.
24040 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
24041 (stack_protect_set): Use gen_stack_protect_set_1.
24042 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
24043 (stack_protect_test): Use gen_stack_protect_test_1.
24044 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
24045 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
24046 Remove indirect function.
24047 (*ix86_gen_adjust_stack_and_probe): Ditto.
24048 (*ix86_gen_probe_stack_range): Ditto.
24049 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
24050 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
24051 (ix86_adjust_stack_and_probe_stack_clash): Use
24052 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
24053 (ix86_adjust_stack_and_probe): Ditto.
24054 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
24055 of ix86_gen_probe_stack_range.
24056 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
24057 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
24058 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
24059 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
24060 CODE_FOR_stack_protect_test_{si,di}.
24061 * config/i386/i386-options.c (ix86_option_override_internal):
24062 Do not initialize ix86_gen_allocate_stack_worker,
24063 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
24065 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
24067 * doc/invoke.texi (Link Options): Many editorial changes around
24070 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24072 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
24073 pre-Solaris 11 referene and most Studio compiler details.
24075 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
24078 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
24079 DImode to SImode in floating-point registers on 64-bit target.
24080 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
24081 register_operand in xmpyu patterns.
24083 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24085 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
24086 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
24087 OMP_CLAUSE__REDUCTEMP_.
24088 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
24089 OMP_CLAUSE__CONDTEMP_.
24090 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
24091 * tree-pretty-print.c (dump_omp_clause): Likewise.
24092 * tree-nested.c (convert_nonlocal_omp_clauses,
24093 convert_local_omp_clauses): Likewise.
24094 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
24095 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
24096 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
24098 (gimplify_omp_for): Warn and disable conditional modifier from
24099 lastprivate on loop iterators.
24100 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
24102 * omp-general.c (omp_extract_for_data): Initialize it.
24103 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
24105 (delete_omp_context): Delete it.
24106 (lower_lastprivate_conditional_clauses): New function.
24107 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
24108 handle lastprivate conditional clauses.
24109 (lower_reduction_clauses): Add CLIST argument, emit it into
24110 the critical section if any.
24111 (lower_omp_sections): Adjust lower_lastprivate_clauses and
24112 lower_reduction_clauses callers.
24113 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
24114 to lower_lastprivate_clauses.
24115 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
24116 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
24117 clist into a critical section if not emitted there already by
24118 lower_reduction_clauses.
24119 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
24121 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
24122 conditional variables.
24123 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
24125 (expand_omp_for_generic, expand_omp_for_static_nochunk,
24126 expand_omp_for_static_chunk): Handle lastprivate conditional.
24127 (expand_omp_for): Handle fd.lastprivate_conditional like
24130 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24132 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
24133 kernel does not exit cleanly.
24134 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
24136 2019-05-24 Jason Merrill <jason@redhat.com>
24139 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24141 2019-05-24 Richard Biener <rguenther@suse.de>
24144 * tree-loop-distribution.c (struct partition): Add location
24146 (partition_alloc): Initialize all fields.
24147 (generate_memset_builtin): Use the location recorded in the
24148 partition for the generated call.
24149 (generate_memcpy_builtin): Likewise.
24150 (classify_partition): Record the location of a single store
24151 as location for the partition.
24153 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
24155 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
24158 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
24161 * common/config/aarch64/aarch64-common.c
24162 (aarch64_rewrite_selected_cpu): Change local temporary variable
24163 type from unsigned long to uint64_t.
24164 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
24165 aarch64_get_extension_string_for_isa_flags): Change declaration to
24166 match new definition by replacing unsigned long with uint64_t.
24168 2019-05-24 Jakub Jelinek <jakub@redhat.com>
24171 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
24172 gen_attr_type just once instead of 4-7 times. Formatting fixes.
24173 Handle stack_protect_test_<mode> codegen similarly to corresponding
24176 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
24178 * config/i386/darwin.h: Reject -mfentry*.
24179 * doc/sourcebuild.texi: Document mfentry target support.
24181 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24183 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
24184 Rename to rs6000_global_entry_point_prologue_needed_p. Return
24185 false for PC-relative functions.
24186 (rs6000_output_function_prologue): Change called function name to
24187 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
24188 name,1" for PC-relative functions.
24189 (rs6000_elf_declare_function_name): Change called function name to
24190 rs6000_global_entry_point_prologue_needed_p.
24192 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
24195 * config/i386/i386.c (gen_rtx_cost):
24196 Use ix86_tune_cost instead of ix86_cost.
24198 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24199 Michael Meissner <meissner@linux.ibm.com>
24200 Segher Boessenkool <segher@kernel.crashing.org>
24202 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
24204 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
24205 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
24206 (rs6000_fndecl_pcrel_p): Likewise.
24207 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
24208 error if -mpcrel is requested without -mcpu=future.
24209 (rs6000_opt_masks): Add entry for pcrel.
24210 (rs6000_fndecl_pcrel_p): New function.
24211 (rs6000_pcrel_p): Likewise.
24212 * config/rs6000/rs6000.opt (mpcrel): New option.
24213 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
24215 2019-05-23 Jan Hubicka <jh@suse.cz>
24216 Martin Liska <mliska@suse.cz>
24218 PR tree-optimization/90576
24219 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
24221 (aliasing_component_refs_p): Fix three way size compare conditional;
24222 give up earlier in case we can not decide on equivalence.
24224 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
24225 Michael Meissner <meissner@linux.ibm.com>
24226 Segher Boessenkool <segher@kernel.crashing.org>
24228 * config.gcc: Add future cpu.
24229 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24230 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24232 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24233 (RS6000_CPU): New instantiation for future cpu.
24234 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24236 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24237 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24238 * config/rs6000/rs6000-tables.opt: Regenerate.
24239 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24240 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24241 (rs6000_machine_from_flags): Handle future cpu.
24242 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24243 PROCESSOR_POWER9 for now.
24244 (rs6000_adjust_cost): Likewise.
24245 (rs6000_issue_rate): Likewise.
24246 (rs6000_register_move_cost): Likewise.
24247 (rs6000_opt_masks): Add entry for future.
24248 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24249 (MASK_FUTURE): New #define.
24250 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24251 * config/rs6000/rs6000.opt (mfuture): New target option.
24252 * doc/invoke.texi (mcpu): Add future cpu.
24254 2019-05-23 Martin Liska <mliska@suse.cz>
24257 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24258 operation points to a temporary (pointed via tree_to_wide_ref)
24259 that is out of scope after the &.
24261 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24264 * doc/extend.texi (Function Names): Add missing word.
24266 2019-05-23 Richard Biener <rguenther@suse.de>
24268 PR tree-optimization/88440
24269 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24271 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24273 (generate_memcpy_builtin): Likewise.
24274 (distribute_loop): Pass in whether to only distribute patterns.
24275 (prepare_perfect_loop_nest): Also allow size optimization.
24276 (pass_loop_distribution::execute): When optimizing a loop
24277 nest for size allow pattern replacement.
24279 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24282 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24285 2019-05-23 Martin Liska <mliska@suse.cz>
24288 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24289 expression similarly to gimplify_decl_expr.
24291 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24293 * cse.c (cse_dump_path): s/dump_file/f.
24295 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24298 * diagnostic-format-json.cc: Include "selftest.h".
24299 (json_from_expanded_location): Only add "file" key for non-NULL
24301 (json_from_location_range): Don't add "start" and "finish"
24302 children if they are UNKNOWN_LOCATION.
24303 (selftest::test_unknown_location): New selftest.
24304 (selftest::test_bad_endpoints): New selftest.
24305 (selftest::diagnostic_format_json_cc_tests): New function.
24306 * json.cc (json::object::get): New function.
24307 (selftest::test_object_get): New selftest.
24308 (selftest::json_cc_tests): Call it.
24309 * json.h (json::object::get): New decl.
24310 * selftest-run-tests.c (selftest::run_tests): Call
24311 selftest::diagnostic_format_json_cc_tests.
24312 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24315 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24316 Andrew Stubbs <amd@codesourcery.com>
24318 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24319 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24320 (kernel): Rename to...
24321 (main_kernel): ... this.
24322 (load_image): Load _init_array and _fini_array kernels.
24323 (run): Add argument for kernel to run.
24324 (main): Run init_array_kernel before main_kernel, and
24325 fini_array_kernel after.
24326 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24327 amdgpu_hsa_kernel attribute on functions.
24328 (gcn_disable_constructors): Delete.
24329 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24330 * config/gcn/crt0.c (size_t): Define.
24331 (_init_array, _fini_array): New.
24332 (__preinit_array_start, __preinit_array_end,
24333 __init_array_start, __init_array_end,
24334 __fini_array_start, __fini_array_end): Declare weak references.
24336 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24338 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24340 2019-05-22 Jason Merrill <jason@redhat.com>
24342 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24344 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24347 * config/i386/i386-options.c (ix86_init_machine_status): Set
24348 stack_frame_required to true.
24349 * config/i386/i386.c (ix86_get_frame_size): New function.
24350 (ix86_frame_pointer_required): Replace get_frame_size with
24351 ix86_get_frame_size.
24352 (ix86_compute_frame_layout): Likewise.
24353 (ix86_find_max_used_stack_alignment): Changed to void. Set
24354 stack_frame_required.
24355 (ix86_finalize_stack_frame_flags): Always call
24356 ix86_find_max_used_stack_alignment. Replace get_frame_size with
24357 ix86_get_frame_size.
24358 * config/i386/i386.h (machine_function): Add stack_frame_required.
24360 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
24362 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
24364 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
24366 * common/config/aarch64/aarch64-common.c
24367 (struct aarch64_option_extension, struct processor_name_to_arch,
24368 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
24369 aarch64_contains_opt,
24370 aarch64_get_extension_string_for_isa_flags): Change type of
24371 variables storing flags to uint64_t.
24372 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
24373 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
24374 * config/aarch64/aarch64.c (struct processor,
24375 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
24376 aarch64_validate_march, aarch64_override_options,
24377 aarch64_option_print, aarch64_handle_attr_isa_flags,
24378 aarch64_declare_function_name, aarch64_start_file): Make flag
24379 variables uint64_t.
24380 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
24381 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
24382 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
24383 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
24384 * config/aarch64/driver-aarch64.c
24385 (struct aarch64_arch_extension, struct aarch64_core_data,
24386 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
24387 flag variables uint64_t.
24388 * doc/invoke.texi: Add documentation for new arguments.
24390 2019-05-22 Richard Biener <rguenther@suse.de>
24392 * alias.c (ao_ref_from_mem): Move stack-slot sharing
24394 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
24396 2019-05-22 Martin Liska <mliska@suse.cz>
24399 * doc/extend.texi: Document the change.
24401 2019-05-22 Richard Biener <rguenther@suse.de>
24403 PR tree-optimization/90450
24404 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
24405 (mem_ref_hasher::equal): Check it.
24406 (mem_ref_alloc): Initialize it.
24407 (gather_mem_refs_stmt): Set it.
24409 2019-05-22 Richard Biener <rguenther@suse.de>
24411 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
24413 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
24416 2019-05-22 Alan Modra <amodra@gmail.com>
24418 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
24419 (ASM_CPU_SPEC): Conditionally add -many.
24420 * config/rs6000/rs6000.c (rs6000_machine): New static var.
24421 (rs6000_machine_from_flags, emit_asm_machine): New functions..
24422 (rs6000_file_start): ..extracted from here, and modified to
24424 (rs6000_output_function_prologue): Emit .machine as necessary.
24426 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
24428 PR middle-end/90553
24429 * ira-lives.c (process_bb_node_lives): Consider defs
24430 for a call insn to be die before the call, not after.
24432 * function.c (assign_parm_setup_block): Raise alignment of
24433 stacked parameter only for STRICT_ALIGNMENT targets.
24435 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24437 * config/rs6000/constraints.md (define_register_constraint "wz"):
24439 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24440 RS6000_CONSTRAINT_wz.
24441 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24442 (rs6000_init_hard_regno_mode_ok): Adjust.
24443 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
24444 * doc/md.texi (Machine Constraints): Adjust.
24446 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24448 * config/rs6000/constraints.md (define_register_constraint "wl"):
24450 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24451 RS6000_CONSTRAINT_wl.
24452 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24453 (rs6000_init_hard_regno_mode_ok): Adjust.
24454 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
24455 * doc/md.texi (Machine Constraints): Adjust.
24457 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24459 * config/rs6000/constraints.md (define_register_constraint "wm"):
24461 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24462 RS6000_CONSTRAINT_wm.
24463 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24464 (rs6000_init_hard_regno_mode_ok): Adjust.
24465 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
24466 * doc/md.texi (Machine Constraints): Adjust.
24468 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24470 * config/rs6000/constraints.md (define_register_constraint "wk"):
24472 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24473 RS6000_CONSTRAINT_wk.
24474 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24475 (rs6000_init_hard_regno_mode_ok): Adjust.
24476 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
24477 * doc/md.texi (Machine Constraints): Adjust.
24479 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24481 * config/rs6000/constraints.md (define_register_constraint "wj"):
24483 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24484 RS6000_CONSTRAINT_wj.
24485 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24486 (rs6000_init_hard_regno_mode_ok): Adjust.
24487 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
24489 * config/rs6000/vsx.md: Ditto.
24490 * doc/md.texi (Machine Constraints): Adjust.
24492 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24494 * config/rs6000/constraints.md (define_register_constraint "wh"):
24496 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24497 RS6000_CONSTRAINT_wh.
24498 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24499 (rs6000_init_hard_regno_mode_ok): Adjust.
24500 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
24501 * doc/md.texi (Machine Constraints): Adjust.
24503 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24506 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
24507 Avoid calling gen_lowpart with CONST operand.
24509 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
24511 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
24512 field template_last_to_copy.
24513 (ssa_create_duplicates): Set it, and use it. Attempt to
24514 preserve more debug stmts.
24516 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24518 * config/i386/sse.md (VF1_AVX2): New mode iterator.
24519 (signbit<mode>2): New expander
24521 2019-05-21 James Clarke <jrtc27@jrtc27.com>
24524 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
24525 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
24527 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24529 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
24530 %ebx and %ecx bafore calling cpuid with leaf 1 or
24531 non-constant leaf argument.
24533 2019-05-21 Alan Modra <amodra@gmail.com>
24536 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
24537 power9 direct move cost.
24539 2019-05-21 Richard Biener <rguenther@suse.de>
24541 PR middle-end/90510
24542 * fold-const.c (fold_read_from_vector): New function.
24543 * fold-const.h (fold_read_from_vector): Declare.
24544 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
24545 single-element insert permutations. Canonicalize selector
24546 further and fix issue with last commit.
24548 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24550 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
24551 parameter with default value false to declaration.
24552 (split_edges_for_insertion): New inline function. Wrapper for
24553 split_critical_edges with for_edge_insertion_p = true.
24554 * tree-cfg.c (split_critical_edges): Don't split non-critical
24555 edges if for_edge_insertion_p is false. Fix whitespace.
24556 * tree-ssa-pre.c (pass_pre::execute): Call
24557 split_edges_for_insertion instead of split_critical_edges.
24558 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
24559 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
24560 (pass_data_sink_code): Update function name in the comment.
24562 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24564 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
24565 around is_value_included_in that knows how to handle BIT_AND_EXPR.
24566 (is_pred_expr_subset_of): Use the new function. Handle more cases where
24567 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
24570 2019-05-21 Martin Liska <mliska@suse.cz>
24572 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
24574 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
24575 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
24577 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24579 (rs6000_function_arg): Likewise.
24580 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
24581 (rs6000_expand_ternop_builtin): Use interval syntax.
24582 (get_element_number): Likewise.
24583 (altivec_expand_builtin): Likewise.
24584 (rs6000_get_function_versions_dispatcher): Quote target_clones.
24586 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24590 * function.h (struct function): Add calls_eh_return member.
24591 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
24592 gimplifying __builtin_eh_return call.
24593 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
24595 (expand_call_inline): Or in src_cfun->calls_eh_return into
24596 dst_cfun->calls_eh_return.
24597 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
24598 cfun->calls_eh_return.
24599 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
24600 * lto-streamer-out.c (output_struct_function_base): Write
24603 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
24605 PR rtl-optimization/43147
24606 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
24607 IX86_BUILTIN_SHUFPD.
24609 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24611 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
24612 (refs_may_alias_p_1): ... here; update stats.
24613 (refs_may_alias_p): Do not update stats here.
24615 2019-05-20 Richard Biener <rguenther@suse.de>
24617 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
24618 doesn't produce pointers.
24619 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
24620 the first operand points to.
24622 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24624 * tree-ssa-alias.c (compare_sizes): New function.
24625 (sompare_type_sizes): New function
24626 (aliasing_component_refs_p): Use it.
24627 (indirect_ref_may_alias_decl_p): Likewise.
24629 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24631 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
24633 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24635 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
24636 (LIBLSAN_EARLY_SPEC): Likewise.
24637 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
24639 2019-05-20 Martin Liska <mliska@suse.cz>
24641 * config/i386/i386.c (ix86_libc_has_fast_function):
24642 Add ATTRIBUTE_UNUSED for the argument.
24644 2019-05-20 Richard Biener <rguenther@suse.de>
24646 * gimple-match-head.c: Include vec-perm-indices.h.
24647 * generic-match-head.c: Likewise.
24648 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
24650 * fold-const.c (fold_vec_perm): Export.
24651 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
24652 (match.pd): ...here.
24654 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24656 * cfgloop.h (struct loop): Add simdlen member.
24657 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
24658 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
24659 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
24660 as new argument to autovectorize_vector_sizes target hook. If
24661 loop->simdlen, pick up vector size where the vectorization factor
24662 is equal to loop->simd, and if there is none, fall back to the first
24664 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
24666 * omp-low.c (omp_clause_aligned_alignment): Likewise.
24667 * omp-general.c (omp_max_vf): Likewise.
24668 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
24669 * tree-vect-slp.c (vect_slp_bb): Likewise.
24670 * target.def (autovectorize_vector_sizes): Add ALL argument and
24672 * doc/tm.texi: Adjust documentation.
24673 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
24674 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
24675 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
24677 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
24678 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
24679 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
24680 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
24681 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
24682 preferred vector size is not 512-bit or 256-bit, just put those
24683 unpreferred ones last.
24685 2019-05-20 Martin Liska <mliska@suse.cz>
24687 * targhooks.c (default_libc_has_fast_function): New function.
24688 * targhooks.h (default_libc_has_fast_function): Likewise.
24690 2019-05-20 Martin Liska <mliska@suse.cz>
24692 PR middle-end/90263
24693 * builtins.c (expand_builtin_memory_copy_args): When having a
24694 target with fast mempcpy implementation do now use memcpy.
24695 * config/i386/i386.c (ix86_libc_has_fast_function): New.
24696 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
24697 * doc/tm.texi: Likewise.
24698 * doc/tm.texi.in: Likewise.
24700 * expr.c (emit_block_move_hints): Add 2 new arguments.
24701 * expr.h (emit_block_move_hints): Bail out when libcall
24702 to memcpy would be used.
24704 2019-05-20 Martin Liska <mliska@suse.cz>
24706 * profile-count.c: Add vertical spacing in order
24707 to separate functions.
24708 * profile-count.h: Likewise.
24710 2019-05-20 Martin Liska <mliska@suse.cz>
24712 * profile-count.h: Do not use full qualified
24714 * profile-count.c (profile_count::to_frequency): Likewise.
24716 2019-05-20 Martin Liska <mliska@suse.cz>
24718 * profile-count.h (enum profile_quality): Use capital letters
24719 for enum value names. Use the adjusted names.
24720 * profile-count.c: Use the adjusted names.
24722 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24724 * config/rs6000/constraints.md (define_register_constraint "wH"):
24726 (define_register_constraint "wI"): Delete.
24727 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24728 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
24729 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24730 (rs6000_init_hard_regno_mode_ok): Adjust.
24731 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
24732 resp. "d", or with "wa" as appropriate, all with "p8v".
24733 * config/rs6000/vsx.md: Ditto.
24734 * doc/md.texi (Machine Constraints): Adjust.
24736 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24738 * config/rs6000/constraints.md (define_register_constraint "wy"):
24740 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24741 RS6000_CONSTRAINT_wy.
24742 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24743 (rs6000_init_hard_regno_mode_ok): Adjust.
24744 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
24745 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
24746 (define_mode_attr Fisa): New.
24747 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
24748 * doc/md.texi (Machine Constraints): Adjust.
24750 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24752 * config/rs6000/constraints.md (define_register_constraint "wu"):
24754 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24755 RS6000_CONSTRAINT_wu.
24756 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24757 (rs6000_init_hard_regno_mode_ok): Adjust.
24758 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
24760 (define_mode_attr Fa): Delete.
24761 * config/rs6000/vsx.md: Ditto.
24762 * doc/md.texi (Machine Constraints): Adjust.
24764 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24766 * config/rs6000/constraints.md (define_register_constraint "wJ"):
24768 (define_register_constraint "wK"): Delete.
24769 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24770 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
24771 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24772 (rs6000_init_hard_regno_mode_ok): Adjust.
24773 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
24774 Replace "wK" constraint by "wH" with "p9v".
24775 * config/rs6000/vsx.md: Ditto.
24776 * doc/md.texi (Machine Constraints): Adjust.
24778 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24780 * config/rs6000/constraints.md (define_register_constraint "wb"):
24782 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24783 RS6000_CONSTRAINT_wb.
24784 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24785 (rs6000_init_hard_regno_mode_ok): Adjust.
24786 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
24787 * config/rs6000/vsx.md: Ditto.
24788 * doc/md.texi (Machine Constraints): Adjust.
24790 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24792 * config/rs6000/constraints.md (define_register_constraint "wo"):
24794 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24795 RS6000_CONSTRAINT_wo.
24796 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24797 (rs6000_init_hard_regno_mode_ok): Adjust.
24798 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
24799 * config/rs6000/altivec.md: Ditto.
24800 * doc/md.texi (Machine Constraints): Adjust.
24802 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24804 * config/darwin-c.c (darwin_register_objc_includes): Do not
24805 prepend the sysroot when building gnu-runtime header search
24808 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24810 * config/darwin.c (darwin_file_end): Use switch_to_section ()
24811 instead of direct output of the asm.
24813 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24815 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24816 argument to be type bool (was int before).
24817 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24818 at first use. Use type bool for some variables. Fix a theoretical
24819 eh_return bug for svr4.
24821 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24823 * config/rs6000/rs6000.md (isa): New attribute.
24824 (enabled): New attribute.
24826 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24828 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24829 assemble_start_function and assemble_end_function.
24831 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24833 PR middle-end/89433
24834 * omp-general.c (oacc_verify_routine_clauses): Change formal
24835 parameters. Add checking if already marked with an OpenACC
24836 'routine' directive. Adjust all users.
24838 PR middle-end/89433
24839 * omp-general.c (oacc_build_routine_dims): Move some of its
24841 (oacc_verify_routine_clauses): ... this new function.
24842 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24844 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24846 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24847 formating of picbase labels to match other ports.
24849 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24851 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24852 in the generated code.
24854 2019-05-16 Martin Sebor <msebor@redhat.com>
24856 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24857 identifiers, keywords, operators, and types in diagnostics. Correct
24858 quoting, spelling, and sentence capitalization issues.
24859 (expand_builtin_atomic_is_lock_free): Same.
24860 (fold_builtin_next_arg): Same.
24861 * cfgexpand.c (expand_one_var): Same.
24862 (tree_conflicts_with_clobbers_p): Same.
24863 (expand_asm_stmt): Same.
24864 (verify_loop_structure): Same.
24865 * cgraphunit.c (process_function_and_variable_attributes): Same.
24866 * collect-utils.c (collect_execute): Same.
24867 * collect2.c (maybe_run_lto_and_relink): Same.
24868 (is_lto_object_file): Same.
24869 (scan_prog_file): Same.
24870 * convert.c (convert_to_real_1): Same.
24871 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24872 * except.c (verify_eh_tree): Same.
24873 * gcc.c (execute): Same.
24874 (eval_spec_function): Same.
24875 (run_attempt): Same.
24876 (driver::set_up_specs): Same.
24877 (compare_debug_auxbase_opt_spec_function): Same.
24878 * gcov-tool.c (unlink_gcda_file): Same.
24880 (do_rewrite): Same.
24881 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24882 * gimplify.c (gimplify_asm_expr): Same.
24883 (gimplify_adjust_omp_clauses): Same.
24884 * hsa-gen.c (gen_hsa_addr_insns): Same.
24885 (gen_hsa_insns_for_load): Same.
24886 (gen_hsa_cmp_insn_from_gimple): Same.
24887 (gen_hsa_insns_for_operation_assignment): Same.
24888 (gen_get_level): Same.
24889 (gen_hsa_alloca): Same.
24890 (omp_simple_builtin::generate): Same.
24891 (gen_hsa_atomic_for_builtin): Same.
24892 (gen_hsa_insns_for_call): Same.
24893 * input.c (dump_location_info): Same.
24894 * ipa-devirt.c (compare_virtual_tables): Same.
24895 * ira.c (ira_setup_eliminable_regset): Same.
24896 * lra-assigns.c (lra_assign): Same.
24897 * lra-constraints.c (lra_constraints): Same.
24898 * lto-streamer-in.c (lto_input_mode_table): Same.
24899 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24900 (merge_and_complain): Same.
24901 (compile_offload_image): Same.
24902 (compile_images_for_offload_targets): Same.
24903 (debug_objcopy): Same.
24906 * opts.c (print_specific_help): Same.
24907 (parse_no_sanitize_attribute): Same.
24908 (print_help): Same.
24909 (handle_param): Same.
24910 * plugin.c (add_new_plugin): Same.
24911 (parse_plugin_arg_opt): Same.
24912 (try_init_one_plugin): Same.
24913 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24914 operators, and types in diagnostics. Correct quoting and spelling
24916 * read-rtl-function.c (parse_edge_flag_token): Same.
24917 (function_reader::parse_enum_value): Same.
24918 * reg-stack.c (check_asm_stack_operands): Same.
24919 * regcprop.c (validate_value_data): Same.
24920 * sched-rgn.c (make_pass_sched_fusion): Same.
24921 * stmt.c (check_unique_operand_names): Same.
24922 * targhooks.c (default_target_option_pragma_parse): Same.
24923 * tlink.c (recompile_files): Same.
24924 * toplev.c (process_options): Same.
24925 (do_compile): Same.
24926 * trans-mem.c (diagnose_tm_1): Same.
24927 (ipa_tm_scan_irr_block): Same.
24928 (ipa_tm_diagnose_transaction): Same.
24929 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24930 format a tree code name in a diagnostic.
24931 (verify_types_in_gimple_min_lval): Same.
24932 (verify_types_in_gimple_reference): Same.
24933 (verify_gimple_call): Same.
24934 (verify_gimple_assign_unary): Same.
24935 (verify_gimple_assign_binary): Same.
24936 (verify_gimple_assign_ternary): Same.
24937 (verify_gimple_assign_single): Same.
24938 (verify_gimple_switch): Same.
24939 (verify_gimple_label): Same.
24940 (verify_gimple_phi): Same.
24941 (verify_gimple_in_seq): Same.
24942 (verify_eh_throw_stmt_node): Same.
24943 (collect_subblocks): Same.
24944 (gimple_verify_flow_info): Same.
24945 (do_warn_unused_result): Same.
24946 * tree-inline.c (expand_call_inline): Same.
24947 * tree-into-ssa.c (update_ssa): Same.
24948 * tree.c (tree_int_cst_elt_check_failed): Same.
24949 (tree_vec_elt_check_failed): Same.
24950 (omp_clause_operand_check_failed): Same.
24951 (verify_type_variant): Same.
24952 (verify_type): Same.
24953 * value-prof.c (verify_histograms): Same.
24954 * varasm.c (assemble_start_function): Same.
24956 2019-05-16 Martin Sebor <msebor@redhat.com>
24958 * config/i386/i386-expand.c (get_element_number): Quote keywords
24959 and other internal names in diagnostics. Adjust other diagnostic
24960 formatting issues noted by -Wformat-diag.
24961 * config/i386/i386-features.c
24962 (ix86_mangle_function_version_assembler_name): Same.
24963 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24964 * config/i386/i386.c (ix86_function_type_abi): Same.
24965 (ix86_function_ms_hook_prologue): Same.
24966 (classify_argument): Same.
24967 (ix86_expand_prologue): Same.
24968 (ix86_md_asm_adjust): Same.
24969 (ix86_memmodel_check): Same.
24971 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24973 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24974 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24977 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24980 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24981 intrinsics without SSE/SSE2/SSSE3.
24982 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24984 (*mmx_uavgv8qi3): Likewise.
24986 2019-05-17 Richard Biener <rguenther@suse.de>
24988 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24989 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24991 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24993 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24994 vec_sldw insn pattern.
24996 2019-05-17 Richard Biener <rguenther@suse.de>
24998 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
25000 2019-05-17 Martin Liska <mliska@suse.cz>
25003 * toplev.c (output_stack_usage): With LTO and sanitizer it
25004 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
25005 has no file location.
25007 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25010 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
25011 sz0 is equal to sz1, instead return false in that case.
25013 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
25014 has non-constant expression, force sctx.lane and use two
25015 argument IFN_GOMP_SIMD_LANE instead of single argument.
25016 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
25017 two argument IFN_GOMP_SIMD_LANE without lhs.
25018 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
25020 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
25022 (LOOP_REQUIRES_VERSIONING): Or in
25023 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
25024 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
25026 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
25027 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
25028 from simd if clause if needed.
25030 2019-05-16 Richard Biener <rguenther@suse.de>
25032 * tree-affine.c (expr_to_aff_combination): New function split
25034 (tree_to_aff_combination): ... here.
25035 (aff_combination_expand): Avoid building a GENERIC tree.
25037 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
25039 * cgraphunit.c (cgraph_node::expand_thunk): Remove
25040 assemble_start_function and assemble_end_function calls.
25041 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
25042 assemble_start_function and assemble_end_function.
25043 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
25044 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
25045 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
25046 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
25047 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
25048 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
25049 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
25050 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
25051 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
25052 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
25053 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
25054 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
25056 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
25057 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
25058 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
25059 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
25060 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
25061 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
25062 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
25063 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
25064 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
25065 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
25066 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
25067 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
25068 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
25069 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
25071 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
25072 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
25073 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
25075 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
25077 * tree-ssa-alias.c (alias_stats): Add
25078 aliasing_component_refs_p_may_alias and
25079 aliasing_component_refs_p_no_alias.
25080 (dump_alias_stats): Print aliasing_component_refs_p stats.
25081 (aliasing_component_refs_p): Update stats.
25083 2019-05-16 Martin Liska <mliska@suse.cz>
25086 * multiple_target.c (expand_target_clones): Do not allow
25087 target_clones being used with a symbol that is an alias.
25089 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
25091 PR tree-optimization/90394
25092 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
25093 positives rather than ICE for cases where (code2 == NE_EXPR
25094 && code1 == BIT_AND_EXPR).
25096 2019-05-16 Jakub Jelinek <jakub@redhat.com>
25099 * tree-core.h (struct tree_decl_common): Document
25100 decl_nonshareable_flag for PARM_DECLs.
25101 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
25102 * calls.c (expand_call): Don't try tail call if caller
25103 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
25104 passed on the stack and callee needs to pass any arguments on the
25106 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
25107 else if instead of series of mutually exclusive ifs. Handle
25108 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
25109 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
25111 * lto-streamer.h (LTO_major_version): Bump to 9.
25113 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
25115 PR tree-optimization/90106
25116 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
25117 new parameter as new internal function call, also move it to new
25119 (use_internal_fn): Pass internal function call to
25120 shrink_wrap_one_built_in_call_with_conds.
25122 2019-05-15 Jakub Jelinek <jakub@redhat.com>
25124 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
25126 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
25127 safelen_int and set loop->dont_vectorize.
25129 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25132 * config/i386/i386-builtin.def: Enable MMX intrinsics with
25134 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
25136 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
25137 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
25138 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
25141 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25144 * config/i386/mmx.md (*vec_dupv2sf): Changed to
25145 define_insn_and_split to support SSE emulation.
25146 (*vec_extractv2sf_0): Likewise.
25147 (*vec_extractv2sf_1): Likewise.
25148 (*vec_extractv2si_0): Likewise.
25149 (*vec_extractv2si_1): Likewise.
25150 (*vec_extractv2si_zext_mem): Likewise.
25151 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
25152 (vec_extractv2sf_1 splitter): Likewise.
25153 (vec_extractv2sfsf): Likewise.
25154 (vec_setv2si): Likewise.
25155 (vec_extractv2si_1 splitter): Likewise.
25156 (vec_extractv2sisi): Likewise.
25157 (vec_setv4hi): Likewise.
25158 (vec_extractv4hihi): Likewise.
25159 (vec_setv8qi): Likewise.
25160 (vec_extractv8qiqi): Likewise.
25161 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25162 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
25163 (vec_extractv2sisi): Likewise.
25164 (vec_extractv4hihi): Likewise.
25165 (vec_extractv8qiqi): Likewise.
25166 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
25167 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
25168 (vec_initv2sisi): Likewise.
25169 (vec_initv4hihi): Likewise.
25170 (vec_initv8qiqi): Likewise.
25171 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
25172 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
25173 (vec_setv4hi): Likewise.
25174 (vec_setv8qi): Likewise.
25176 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25179 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
25180 TARGET_MMX_WITH_SSE.
25181 (MMXMODE:*mov<mode>_internal): Likewise.
25182 (MMXMODE:movmisalign<mode>): Likewise.
25184 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
25187 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
25188 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
25189 (sse2_cvtpd2pi): Ditto.
25190 (sse2_cvttpd2pi): Ditto.
25191 (*vec_concatv2sf_sse4_1): Ditto.
25192 (*vec_concatv2sf_sse): Ditto.
25193 (*vec_concatv2si_sse4_1): Ditto.
25194 (*vec_concatv2si): Ditto.
25195 (*vec_concatv4si_0): Ditto.
25196 (*vec_concatv2di_0): Ditto.
25198 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25201 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
25203 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25206 * config/i386/sse.md (ssse3_palignrdi): Changed to
25207 define_insn_and_split to support SSE emulation.
25209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25212 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
25214 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25217 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
25218 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25221 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25224 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
25225 or TARGET_MMX_WITH_SSE.
25226 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25228 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25231 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25233 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25236 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25237 Changed to define_insn_and_split to support SSE emulation.
25239 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25242 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25243 Changed to define_insn_and_split to support SSE emulation.
25245 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25248 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25249 (*mmx_<emms>): This.
25250 (mmx_<emms>): New expander.
25252 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25255 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25257 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25259 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25262 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25264 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25267 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25269 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25272 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25273 TARGET_MMX_WITH_SSE.
25274 (*mmx_uavgv4hi3): Add SSE emulation.
25276 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25279 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25280 and TARGET_MMX_WITH_SSE.
25281 (*mmx_uavgv8qi3): Add SSE emulation.
25283 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25286 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25287 maskmovdqu for __MMX_WITH_SSE__.
25289 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25292 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25293 TARGET_MMX and TARGET_MMX_WITH_SSE.
25294 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25296 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25299 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25300 define_insn_and_split to support SSE emulation.
25302 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25305 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25306 and TARGET_MMX_WITH_SSE.
25307 (mmx_<code>v8qi3): Likewise.
25308 (smaxmin:<code>v4hi3): New.
25309 (umaxmin:<code>v8qi3): Likewise.
25310 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25311 (umaxmin:*mmx_<code>v8qi3): Likewise.
25313 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25316 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25317 TARGET_MMX_WITH_SSE.
25318 (*mmx_pinsrw): Add SSE emulation.
25320 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25323 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25325 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25328 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25329 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25332 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25335 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25336 (sse_cvttps2pi): Likewise.
25338 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25341 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25342 TARGET_MMX_WITH_SSE.
25343 (mmx_pshufw_1): Add SSE emulation.
25344 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25345 TARGET_MMX_WITH_SSE to support SSE emulation.
25347 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25350 * config/i386/constraints.md (Yw): New constraint.
25351 * config/i386/mmx.md (*vec_dupv2si): Changed to
25352 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
25353 support SSE emulation.
25355 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25358 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
25359 TARGET_MMX_WITH_SSE.
25360 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25362 (mmx_gt<mode>3): Likewise.
25364 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25367 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
25368 TARGET_MMX_WITH_SSE. Add SSE support.
25370 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25373 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
25374 TARGET_MMX_WITH_SSE.
25375 (any_logic:<code><mode>3): New.
25376 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
25379 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25382 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
25383 TARGET_MMX_WITH_SSE. Add SSE emulation.
25384 (mmx_<shift_insn><mode>3): Likewise.
25385 (ashr<mode>3): New.
25386 (<shift_insn><mode>3): Likewise.
25388 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25391 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
25392 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
25394 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25397 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
25398 TARGET_MMX_WITH_SSE.
25399 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
25402 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25405 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
25406 TARGET_MMX_WITH_SSE.
25408 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25411 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25414 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
25415 (plusminus:mmx_<plusminus_insn><mode>3): Check
25416 TARGET_MMX_WITH_SSE.
25417 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
25418 (<plusminus_insn><mode>3): New.
25419 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
25420 (*mmx_<plusminus_insn><mode>3): Likewise.
25422 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25425 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
25426 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
25428 * config/i386/mmx.m (mmx_punpckhbw): Changed to
25429 define_insn_and_split to support SSE emulation.
25430 (mmx_punpcklbw): Likewise.
25431 (mmx_punpckhwd): Likewise.
25432 (mmx_punpcklwd): Likewise.
25433 (mmx_punpckhdq): Likewise.
25434 (mmx_punpckldq): Likewise.
25436 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25437 Uros Bizjak <ubizjak@gmail.com>
25440 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
25442 (ix86_split_mmx_pack): Likewise.
25443 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
25445 (ix86_split_mmx_pack): Likewise.
25446 * config/i386/i386.md (mmx_isa): New.
25447 (enabled): Also check mmx_isa.
25448 * config/i386/mmx.md (any_s_truncate): New code iterator.
25449 (s_trunsuffix): New code attr.
25450 (mmx_packsswb): Removed.
25451 (mmx_packssdw): Likewise.
25452 (mmx_packuswb): Likewise.
25453 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
25454 MMX packsswb/packuswb with SSE2.
25455 (mmx_packssdw): Likewise.
25456 * config/i386/predicates.md (register_mmxmem_operand): New.
25458 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25461 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25462 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
25463 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
25464 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
25465 (ix86_vector_mode_supported_p): Likewise.
25466 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
25468 2019-05-15 Martin Liska <mliska@suse.cz>
25470 PR middle-end/90478
25471 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25472 Check for overflow.
25474 2019-05-15 Richard Biener <rguenther@suse.de>
25476 * tree-into-ssa.c (pass_build_ssa::execute): Run
25477 update_address_taken before going into SSA.
25479 2019-05-15 Richard Biener <rguenther@suse.de>
25481 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
25482 as __BIT_FIELD_REF with type with -gimple.
25484 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
25486 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
25487 semantically equivalent branches (left over after prior refactorings).
25489 2019-05-15 Richard Biener <rguenther@suse.de>
25491 PR tree-optimization/88828
25492 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
25495 2019-05-14 Richard Biener <rguenther@suse.de>
25497 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
25498 as __VIEW_CONVERT with -gimple.
25500 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25503 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
25506 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25508 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
25509 define_split to become a define_insn_and_split.
25511 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25513 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
25515 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
25516 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
25517 (sibcall_epilogue): Adjust.
25518 (epilogue): Adjust.
25520 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25522 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
25523 to unsupported ones.
25524 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
25525 * config.host: Likewise.
25526 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
25527 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
25528 __svr4__]: Remove "brand" fallback.
25529 [!KSTAT_DATA_STRING]: Remove.
25530 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
25532 (comdat_group): Likewise.
25533 (set_have_as_tls): Likewise.
25534 (gcc_cv_target_dl_iterate_phdr): Likewise.
25535 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
25536 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
25537 * configure: Regenerate.
25538 * doc/install.texi: Simplify Solaris target triplets.
25539 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
25540 (Specific, *-*-solaris2*): Document Solaris 10 removal.
25541 Remove Solaris 10 references.
25542 Remove obsolete Solaris bug reference.
25543 (Specific, sparc-sun-solaris2.10): Remove.
25545 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
25547 * config/i386/i386.md (any_div): New code iterator.
25548 (paired_mod): New code attribute.
25549 (sgnprefix): Handle DIV and UDIV RTXes.
25551 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
25552 and udivmod<mode>4 patterns using any_div code iterator.
25553 (divmod splitters): Macroize splitters using any_div code iterator.
25554 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
25555 (*udivmodsi4_pow2_zext_2): Ditto.
25556 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
25557 and *udivmod<mode>4_noext patterns using any_div code iterator.
25558 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
25559 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
25560 patterns using any_div code iterator.
25561 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
25562 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
25563 patterns using any_div code iterator.
25564 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
25565 udivmodhiqi3 patterns using any_extend code iterator.
25567 2019-05-14 Richard Biener <rguenther@suse.de>
25568 H.J. Lu <hongjiu.lu@intel.com>
25570 PR tree-optimization/88828
25571 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
25572 permuting in a single non-constant element not extracted
25575 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
25577 * internal-fn.def (SIGNBIT): New.
25578 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
25580 (signbitv4sf2): Likewise.
25582 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
25585 * config/mips/mips.c (mips_split_move): Skip forward SRC into
25586 next insn when the SRC reg is dead.
25588 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
25590 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
25591 (alloc_cand_and_find_basis): Ditto.
25592 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
25593 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
25594 (create_add_imm_cand, slsr_process_cast): Ditto.
25595 (slsr_process_copy, replace_mult_candidate): Ditto.
25596 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
25597 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
25598 (pass_strength_reduction::execute): Init the first NULL element.
25600 2019-05-13 Nathan Sidwell <nathan@acm.org>
25602 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
25603 (run_attempt): Reformat line break.
25605 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
25608 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
25609 data registers in sibcall epilogues.
25610 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25612 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
25615 * configure.ac (--enable-frame-pointer):
25616 Disable by default for cygwin and mingw.
25617 * configure: Regenerate.
25619 2019-05-13 Nathan Sidwell <nathan@acm.org>
25621 * dwarf2out.c (breakout_comdat_types): Move comment to correct
25623 (const_ok_for_output_1): Balance parens around #if/#else/#endif
25624 (gen_member_die): Move abstract origin check earlier. Only VARs
25625 can be static_inline_p. Simplify splicing control flow.
25627 2019-05-13 Richard Biener <rguenther@suse.de>
25629 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
25631 (vect_build_slp_tree_1): Likewise.
25633 2019-05-13 Richard Biener <rguenther@suse.de>
25635 PR tree-optimization/90402
25636 * tree-if-conv.c (tree_if_conversion): Value number only
25637 the loop body by making the latch an exit of the region
25639 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
25641 (do_rpo_vn): Deal with multiple edges into the entry block
25642 that are not backedges inside the region by skipping PHIs
25643 of the entry block.
25645 2019-05-13 Richard Biener <rguenther@suse.de>
25647 PR tree-optimization/90316
25648 * tree-ssa-pre.c (insert_aux): Fold into ...
25649 (insert): ... this function. Use a RPO walk to reduce the
25650 number of required iterations.
25652 2019-05-13 Martin Liska <mliska@suse.cz>
25654 PR tree-optimization/90416
25655 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
25656 string instead of passing the second part as va_arg argument.
25658 2019-05-13 Martin Liska <mliska@suse.cz>
25660 PR gcov-profile/90380
25661 * gcov.c (handle_cycle): Do not support zero cycle count,
25662 it should not be possible.
25663 (path_contains_zero_cycle_arc): New function.
25664 (circuit): Ignore zero cycle arc counts.
25666 2019-05-13 Martin Liska <mliska@suse.cz>
25668 PR gcov-profile/90380
25669 * gcov.c (enum loop_type): Remove the enum and
25671 (handle_cycle): Assert that we should not reach
25673 (circuit): Use loop_found instead of a tri-state loop_type.
25674 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
25677 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25680 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
25681 (ix86_output_indirect_branch_via_reg): Use output mechanism
25682 accounting for __USER_LABEL_PREFIX__.
25683 (ix86_output_indirect_branch_via_push): Likewise.
25684 (ix86_output_function_return): Likewise.
25685 (ix86_output_indirect_function_return): Likewise.
25687 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
25689 * doc/md.texi: Document use of code attributes in rtx patterns.
25690 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
25691 * read-rtl.c (find_code): Split out search loops into...
25692 (maybe_find_code): ...this new function.
25693 (check_code_iterator): Make the error message more informative.
25694 (check_code_attribute): New function.
25695 (rtx_reader::rtx_alloc_for_name): Likewise.
25696 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
25697 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
25698 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
25699 <max_opp> directly as an rtx code instead of via a match_operator.
25700 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
25701 (<su>abd<mode>_3): Update accordingly.
25703 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25705 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
25706 is given, print the state of the EH "save world" computation for
25709 2019-05-11 Jakub Jelinek <jakub@redhat.com>
25712 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
25713 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25715 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
25717 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
25718 Use pinsrd for TARGET_SSE4_1.
25719 * config/i386/sse.md (movdi_to_sse): Ditto.
25721 2019-05-10 Richard Biener <rguenther@suse.de>
25723 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
25724 (do_rpo_vn): Initialize next_value_id.
25726 2019-05-10 Martin Liska <mliska@suse.cz>
25728 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25731 2019-05-10 Jakub Jelinek <jakub@redhat.com>
25733 PR tree-optimization/90385
25734 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
25735 arguments of the exit phis.
25738 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
25739 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
25741 (copy_tree_body_r): Likewise.
25742 (copy_fn): Set id.do_not_fold to true.
25744 2019-05-10 Martin Liska <mliska@suse.cz>
25746 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
25747 Reapply changes from r269790.
25749 2019-05-10 Martin Liska <mliska@suse.cz>
25751 PR middle-end/90340
25752 * doc/invoke.texi: New params.
25753 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
25754 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
25755 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25757 * tree-switch-conversion.h (struct jump_table_cluster):
25760 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
25762 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
25764 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
25766 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
25768 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
25770 PR rtl-optimization/88879
25771 * sel-sched.c (sel_target_adjust_priority): Remove assert.
25773 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
25776 * config/arm/arm.c (callee_saved_reg_p): Move before
25777 thumb_find_work_register.
25778 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
25779 thumb_find_work_register. Only call df_get_live_out once.
25780 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
25781 (thumb_find_work_register): Use
25782 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
25783 algorithms to locate a spare call clobbered reg.
25785 2019-05-09 Martin Liska <mliska@suse.cz>
25787 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
25788 and MAX_EXPR in GIMPLE FE format.
25790 2019-05-09 Martin Liska <mliska@suse.cz>
25792 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
25793 * gimple-pretty-print.c (dump_gimple_bb_header):
25795 (pp_cfg_jump): Dump edge probability.
25796 * profile-count.c (profile_quality_as_string): Simplify
25797 with a static array.
25798 (parse_profile_quality): New function.
25799 (profile_count::dump): Simplify with a static array.
25800 (profile_count::from_gcov_type): Add new argument.
25801 * profile-count.h (parse_profile_quality): Likewise.
25802 * predict.h (set_hot_bb_threshold): New.
25803 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25805 * predict.c (get_hot_bb_threshold): Set from the new param.
25806 (set_hot_bb_threshold): New.
25808 2019-05-09 Richard Biener <rguenther@suse.de>
25810 PR tree-optimization/90395
25811 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
25812 rewrite vector stores that throw internally.
25814 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25816 * cif-code.def (CHKP): Remove.
25819 * configure.ac (--enable-frame-pointer): Disable by default for
25821 * configure: Regenerate.
25823 2019-05-09 Alan Modra <amodra@gmail.com>
25826 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25827 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25828 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25829 cost for general <-> vsx when direct moves are available.
25830 Cost union classes at minimal cost for any reg in the class.
25831 Correct calculation for moves between vsx, float, and altivec.
25832 Don't return a low cost for moves between special regs. Don't
25833 use hard coded register numbers.
25834 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25835 (rs6000_ira_change_pseudo_allocno_class): New function.
25836 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25837 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25839 (movsi_internal1): Don't disparage vector alternatives.
25840 (mov<mode>_internal): Likewise, excepting alternative that
25842 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25843 we <- b alternative.
25845 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25848 PR tree-optimization/89060
25849 * tree-ssa-live.h (live_vars_map): New typedef.
25850 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25851 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25852 (struct compute_live_vars_data): New type.
25853 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25854 live_vars_at_stmt, destroy_live_vars): New functions.
25855 * tree-tailcall.c: Include tree-ssa-live.h.
25856 (live_vars, live_vars_vec): New global variables.
25857 (find_tail_calls): Perform variable life analysis before punting.
25858 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25859 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25861 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25862 Perform variable life analysis to select variables that really need
25864 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25865 instead set id->eh_landing_pad_dest and assert it is the same.
25866 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25868 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25869 Richard Earnshaw <rearnsha@arm.com>
25872 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25874 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25875 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25876 register if both the epilogue and prologue can use call-clobbered
25878 (thumb1_unexpanded_epilogue): Use
25879 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25880 picking temporaries for restoring high regs to match that of the
25881 prologue where possible.
25882 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25883 the list of work registers. Detect if the return address is still live
25884 at the end of the prologue and avoid using it for a work register if so.
25885 If the return address is not live, add LR to the list of pushable regs
25886 after the first pass.
25888 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25890 PR tree-optimization/90078
25891 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25892 (INFTY): Increase the value for infinite cost.
25893 (struct comp_cost): Promote type of members to int64_t.
25894 (infinite_cost): Don't set complexity in initialization.
25895 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25896 overflows to infinite_cost.
25897 (adjust_setup_cost): Promote type of parameter and cost computation
25899 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25901 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25902 cost computation to int64_t.
25903 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25904 int64_t's format specifier in dump.
25906 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25908 PR tree-optimization/90240
25909 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25910 with respect to scaling factor pre-computed for each basic block.
25911 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25912 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25913 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25914 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25915 live range for array of loop's basic blocks. Cleanup aux field of
25916 loop's basic blocks.
25918 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25920 PR tree-optimization/90356
25921 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25923 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25925 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25926 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25927 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25928 (ix86_handle_option): Handle -mavx512bf16.
25929 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25931 * config/i386/avx512bf16vlintrin.h: New.
25932 * config/i386/avx512bf16intrin.h: New.
25933 * config/i386/cpuid.h (bit_AVX512BF16): New.
25934 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25935 * config/i386/i386-builtin-types.def: Add new types.
25936 * config/i386/i386-builtin.def: Add new builtins.
25937 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25939 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25940 (ix86_option_override_internal): Handle BF16.
25941 (ix86_valid_target_attribute_inner_p): Ditto.
25942 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25943 * config/i386/i386-builtin.c (enum processor_features): Add
25945 (static const _isa_names_table isa_names_table): Ditto.
25946 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25947 (PTA_AVX512BF16): Ditto.
25948 * config/i386/i386.opt: Add -mavx512bf16.
25949 * config/i386/immintrin.h: Include avx512bf16intrin.h
25950 and avx512bf16vlintrin.h.
25951 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25952 avx512f_cvtneps2bf16_<mode><mask_name>,
25953 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25954 * config/i386/subst.md (mask_half): Add new subst.
25955 * doc/invoke.texi: Document -mavx512bf16.
25957 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25959 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25960 Delete declaration.
25961 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25962 (rs6000_debug_legitimize_reload_address): Delete.
25963 (rs6000_legitimize_reload_address_ptr): Delete.
25964 (rs6000_option_override_internal): Adjust.
25965 (mem_operand_gpr): Adjust comment.
25966 (legitimate_lo_sum_address_p): Ditto.
25967 (rs6000_legitimize_reload_address): Delete.
25968 (rs6000_debug_legitimize_reload_address): Delete.
25969 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25971 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25974 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25975 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25976 to compute vector element selector for both constant and variable
25979 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25981 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25982 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25983 ashrdi3_cvt using SWI48 mode iterator.
25985 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25987 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25988 (aarch64_<su>abd<mode>_3): Likewise.
25989 (*aarch64_<su>abd<mode>_3): New define_insn.
25990 (<sur>sad<vsi2qi>): New define_expand.
25991 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25992 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25993 (build_vect_cond_expr): Likewise.
25995 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25997 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25998 clobbers outside of accessible_reg_set.
25999 * config/i386/i386.c (ix86_conditional_register_usage):
26000 Disable register sets by clearing corresponding bits in
26001 accessible_reg_set. Do not set corresponding bits in fixed_regs,
26002 call_used_regs and don't clear corresponding reg_names array members.
26004 2019-05-07 Richard Biener <rguenther@suse.de>
26006 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
26007 not specified still compute a comp_vectype for invariant
26010 2019-05-07 Richard Biener <rguenther@suse.de>
26012 PR tree-optimization/90316
26013 * tree-ssa-pre.c (translate_vuse_through_block): When
26014 same_valid is NULL do not bother to search for a virtual
26016 (phi_translate_1): When operands changed we cannot keep
26017 the same value-number so do not bother to ask whether
26018 that's possible from translate_vuse_through_block.
26020 2019-05-07 Martin Liska <mliska@suse.cz>
26022 * bitmap.c (bitmap_register): Come up with
26023 alloc_descriptor_max_uid and assign it for
26025 (register_overhead): Use get_descriptor as
26027 (release_overhead): New.
26028 (bitmap_elem_to_freelist): Call it.
26029 (bitmap_elt_clear_from): Likewise.
26030 (bitmap_obstack_free): Likewise.
26031 (bitmap_move): Sensitively release memory.
26032 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
26033 (bitmap_initialize): Initialize alloc_descriptor to zero.
26034 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
26036 2019-05-07 Richard Biener <rguenther@suse.de>
26038 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
26039 we build a SLP node. Remove max_size and limiting.
26040 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
26042 2019-05-07 Richard Biener <rguenther@suse.de>
26044 PR tree-optimization/90316
26045 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
26046 limit by reference.
26047 (walk_non_aliased_vuses): Take walking limit argument.
26048 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
26049 walking if it is reached instead of just counting.
26050 (get_continuation_for_phi): Likewise.
26051 (walk_non_aliased_vuses): Likewise, instead of leaving counter
26052 limiting to the callback.
26053 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
26054 (vn_reference_lookup_3): Likewise.
26055 (vn_reference_lookup_pieces): Likewise.
26056 (vn_reference_lookup): Likewise.
26057 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
26058 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
26059 (avail_exprs_stack::lookup_avail_expr): Likewise.
26061 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
26063 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
26064 for comparaible types in the second direction even if first one
26065 hits incomparable type.
26067 2019-05-07 Richard Biener <rguenther@suse.de>
26070 * lto-wrapper.c (debug_objcopy): Use the original filename
26071 including archive offset for the filename used for -save-temps.
26073 2019-05-07 Li Jia He <helijia@linux.ibm.com>
26075 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
26078 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
26079 Hongtao Liu <hongtao.liu@intel.com>
26083 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
26084 Modified, original implementation isn't correct.
26086 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26088 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
26089 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
26090 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
26091 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
26092 (FRAME_POINTER_REGNUM): Change numbering.
26093 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
26094 (alt_reg_names): Adjust.
26095 (rs6000_conditional_register_usage): Don't mark hard register 64 as
26097 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26098 (DWARF_FRAME_REGISTERS): Delete.
26099 (DWARF2_FRAME_REG_OUT): Fix whitespace.
26100 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26102 (REG_ALLOC_ORDER): Adjust.
26103 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
26104 (REG_CLASS_CONTENTS): Adjust.
26105 (RETURN_ADDR_RTX): Change comment.
26106 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
26108 (REGISTER_NAMES): Adjust.
26109 (ADDITIONAL_REGISTER_NAMES): Adjust.
26110 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26112 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26114 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
26116 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
26117 (DWARF_FRAME_REGISTERS): Adjust.
26118 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
26120 (REG_ALLOC_ORDER): Adjust.
26121 (enum reg_class): Delete SPR_REGS.
26122 (REG_CLASS_NAMES): Delete SPR_REGS.
26123 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
26124 (REGISTER_NAMES): Adjust.
26125 (ADDITIONAL_REGISTER_NAMES): Adjust.
26126 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
26127 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
26128 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
26129 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
26130 (htm_spr_regno): Delete.
26131 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
26133 (rs6000_dbx_register_number): Adjust.
26135 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26137 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
26139 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26141 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
26142 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
26144 2019-05-06 Jakub Jelinek <jakub@redhat.com>
26146 PR tree-optimization/88709
26147 PR tree-optimization/90271
26148 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
26149 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
26150 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
26152 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
26153 of the store merging group is larger than
26154 PARAM_STORE_MERGING_MAX_SIZE parameter.
26155 (split_group): Add bzero_first argument. If set, always emit first
26156 the first store which must be = {} of the whole area and then for the
26157 rest of the stores consider all zero bytes as paddings.
26158 (imm_store_chain_info::output_merged_store): Check if first store
26159 is = {} of the whole area and if yes, determine which setting of
26160 bzero_first for split_group gives smaller number of stores. Adjust
26161 split_group callers.
26162 (lhs_valid_for_store_merging_p): Allow decls.
26163 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
26165 (pass_store_merging::process_store): Likewise.
26167 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
26170 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
26171 handling of V1TImode.
26173 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
26176 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
26177 and enable_frame_pointer ...
26178 * configure.ac: ... here. Update help strings for
26179 --enable-frame-pointer.
26180 * configure: Regenerate.
26181 * config/i386/i386-options.c (ix86_option_override_internal): Remove
26182 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
26183 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
26184 (USE_X86_64_FRAME_POINTER): Ditto.
26186 2019-05-06 Martin Liska <mliska@suse.cz>
26188 * config.gcc: Append to target_gtfiles and fix indentation.
26190 2019-05-06 Richard Biener <rguenther@suse.de>
26192 PR tree-optimization/90358
26193 * tree-vect-stmts.c (get_group_load_store_type): Properly
26194 detect unused upper half of load.
26195 (vectorizable_load): Likewise.
26197 2019-05-06 Richard Biener <rguenther@suse.de>
26199 PR tree-optimization/88828
26200 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
26201 (simplify_vector_constructor): ...here. Handle constants in
26204 2019-05-06 Richard Biener <rguenther@suse.de>
26206 PR tree-optimization/90328
26207 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
26208 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
26209 is valid in the loop nest before using it.
26210 (initialize_data_dependence_relation): Adjust.
26211 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
26212 loop as loop-nest to dr_may_alias_p.
26214 2019-05-06 Richard Biener <rguenther@suse.de>
26216 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
26218 2019-05-06 Richard Biener <rguenther@suse.de>
26220 PR tree-optimization/90316
26221 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
26222 compute target on demand.
26223 (get_continuation_for_phi): Remove code walking stmts to
26224 get to a target virtual operand which could end up being
26227 2019-05-06 Martin Liska <mliska@suse.cz>
26230 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26231 when -mabi is selected to a non-default version.
26233 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26234 Martin Liska <mliska@suse.cz>
26236 * Makefile.in: Add lto-dump.texi.
26237 * cgraph.h: Add new functions get_visibility_string and
26238 get_symtab_type_string.
26239 * doc/gcc.texi: Include lto-dump section.
26240 * doc/lto-dump.texi: New file.
26241 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26242 (parse_dump_option): Factor out this function.
26243 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26244 (parse_dump_option): Export the function.
26245 * symtab.c (symtab_node::get_visibility_string): New function.
26246 (symtab_node::get_symtab_type_string): Likewise.
26248 2019-05-06 Martin Liska <mliska@suse.cz>
26250 * config/i386/i386-builtins.c: New file.
26251 * config/i386/i386-builtins.h: New file.
26252 * config/i386/i386-expand.c: New file.
26253 * config/i386/i386-expand.h: New file.
26254 * config/i386/i386-features.c: New file.
26255 * config/i386/i386-features.h: New file.
26256 * config/i386/i386-options.c: New file.
26257 * config/i386/i386-options.h: New file.
26258 * config.gcc: Add new files into extra_objs and
26260 * config/i386/i386.c: Split content of the file
26261 into newly introduced files.
26262 * config/i386/i386.h: Declare common variables
26264 * config/i386/t-i386: Define dependencies for new files.
26266 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26269 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26270 Restrict 'all' variant to 32-bit configurations.
26271 (unaligned_loadhiu): Likewise.
26272 (unaligned_storehi): Likewise.
26273 (unaligned_storesi): Likewise.
26274 (unaligned_loadhis): Disable when compiling for thumb1.
26276 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26278 PR tree-optimization/90269
26279 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26282 2019-05-03 Martin Liska <mliska@suse.cz>
26284 * hash-map.h: Add is_empty function.
26285 * hash-set.h: Likewise.
26286 * hash-table.h: Likewise.
26287 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26288 elements () == 0 (and similar usages).
26289 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26290 * gimplify.c (gimplify_bind_expr): Likewise.
26291 (gimplify_switch_expr): Likewise.
26292 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26293 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26294 * postreload-gcse.c (dump_hash_table): Likewise.
26295 (gcse_after_reload_main): Likewise.
26296 * predict.c (combine_predictions_for_bb): Likewise.
26297 * tree-parloops.c (reduction_phi): Likewise.
26298 (separate_decls_in_region): Likewise.
26299 (transform_to_exit_first_loop): Likewise.
26300 (gen_parallel_loop): Likewise.
26301 (gather_scalar_reductions): Likewise.
26302 (try_create_reduction_list): Likewise.
26303 * var-tracking.c (dump_vars): Likewise.
26304 (emit_notes_for_changes): Likewise.
26305 (vt_emit_notes): Likewise.
26307 2019-05-03 Richard Biener <rguenther@suse.de>
26309 PR tree-optimization/90316
26310 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26313 2019-05-03 Richard Biener <rguenther@suse.de>
26315 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26316 peeling for gaps by loading only lower halves of vectors
26318 (vectorizable_load): Likewise.
26320 2019-05-03 Richard Biener <rguenther@suse.de>
26322 PR middle-end/89518
26323 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26325 2019-05-03 Richard Biener <rguenther@suse.de>
26327 PR middle-end/87314
26328 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26329 Handle STRING_CST vs DECL or STRING_CST.
26331 2019-05-03 Richard Biener <rguenther@suse.de>
26333 PR tree-optimization/88963
26334 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26335 vector loads feeding only BIT_FIELD_REFs to component
26336 loads. Rewrite stores fed by CONSTRUCTORs to component
26339 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26341 * opts.h (finish_options): Remove lang_mask argument.
26342 (print_help, help_option_argument): Declare.
26343 * opts.c (print_help): Remove forward declaration, no longer static.
26344 (finish_options): Remove lang_mask argument, don't call print_help
26346 * opts-global.c (decode_options): Adjust finish_option caller, call
26349 PR tree-optimization/90303
26350 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26351 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
26353 2019-05-03 Richard Biener <rguenther@suse.de>
26355 PR tree-optimization/89698
26356 * gimple-fold.c (canonicalize_constructor_val): Early out
26357 for constants, handle unfolded INTEGER_CSTs as they appear in
26358 C++ virtual table ctors.
26360 2019-05-03 Richard Biener <rguenther@suse.de>
26362 * passes.c (execute_function_todo): Remove dead code.
26364 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26366 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
26367 the internal register number, for any "real" register.
26369 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26371 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
26372 correct numbers for TFHAR, TFIAR, TEXASR.
26374 2019-05-02 Richard Biener <rguenther@suse.de>
26376 PR tree-optimization/89653
26377 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
26378 update-address-taken before the pass.
26379 * passes.def (pass_tree_loop_init): Put comment before it.
26381 2019-05-02 Richard Biener <rguenther@suse.de>
26383 PR tree-optimization/89509
26384 * tree-ssa-structalias.c (compute_dependence_clique): Look
26385 at the first subvar when determining whether it is restrict.
26387 2019-05-02 Richard Biener <rguenther@suse.de>
26389 PR tree-optimization/90273
26390 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
26391 useless debug stmts.
26393 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26395 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
26397 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
26399 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
26400 VEC_COND_EXPR be inserted to emulate a conditional internal function.
26401 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
26402 (vectorizable_reduction): Use the functions above to vectorize in a
26403 fully masked loop codes that don't have a conditional internal
26406 2019-05-02 Martin Liska <mliska@suse.cz>
26408 * cgraphclones.c: Call valid_attribute_p with 1 for
26410 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
26411 it's for target attribute.
26412 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
26413 Add new boolean argument.
26414 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
26416 (ix86_valid_target_attribute_tree): Pass target_clone_attr
26417 to ix86_valid_target_attribute_inner_p.
26418 (ix86_valid_target_attribute_p): Pass flags argument to
26419 ix86_valid_target_attribute_inner_p.
26420 (get_builtin_code_for_version): Use 0 as it's target attribute.
26422 2019-05-02 Martin Liska <mliska@suse.cz>
26424 * gcc.c (process_command): Add dummy file only
26426 * opts-global.c (decode_options): Pass lang_mask.
26427 * opts.c (print_help): New function.
26428 (finish_options): Print --help if help_option_argument
26430 (common_handle_option): Factor out content of OPT__help_
26432 * opts.h (finish_options): Add new argument.
26434 2019-05-02 Martin Liska <mliska@suse.cz>
26437 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
26438 With -minline-all-stringops use inline expansion using 4B loop.
26439 * doc/invoke.texi: Document the change of
26440 -minline-all-stringops.
26442 2019-05-01 Jeff Law <law@redhat.com>
26444 PR tree-optimization/88797
26445 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
26446 PHI feeds a conditional on the RHS of an assignment.
26448 2019-04-30 Andrew Waterman <andrew@sifive.com>
26449 Jim Wilson <jimw@sifive.com>
26451 * config/riscv/constraints.md (L): New.
26452 * config/riscv/predicates.md (lui_operand): New.
26453 (sfb_alu_operand): New.
26454 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
26455 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
26456 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
26457 * config/riscv/risc.md (type): Add sfb_alu.
26458 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
26459 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
26460 (branch_zero<mode>): Delete.
26461 (mov<mode>cc): New.
26462 (mov<GPR:mode><X:mode>cc): Likewise.
26463 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
26465 2019-04-30 Nathan Sidwell <nathan@acm.org>
26467 * tree.h (MARK_TS_EXP): New.
26469 2019-04-30 Martin Liska <mliska@suse.cz>
26471 * opts.c (enable_warning_as_error): Provide hints
26472 for unknown options.
26474 2019-04-30 Martin Liska <mliska@suse.cz>
26477 * doc/invoke.texi: Add missing dash for gas-locview-support
26478 and gno-as-locview-support.
26480 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26483 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
26484 whitespace at the start of target attribute string.
26486 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26489 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26490 Define __ARM_FEATURE_ATOMICS.
26492 2019-04-30 Martin Liska <mliska@suse.cz>
26494 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
26495 into built_in_function enum. Remove code for endp == 2 and
26496 use BUILT_IN_* constants.
26497 (gimple_fold_builtin): Call the function with fcode.
26499 2019-04-30 Martin Liska <mliska@suse.cz>
26501 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
26502 DECL_FUNCTION_CODE into ix86_builtins enum before
26503 the switch statement.
26505 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26507 PR tree-optimization/89475
26508 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
26511 2019-04-30 Martin Liska <mliska@suse.cz>
26513 PR translation/90274
26514 * opts.c (print_filtered_help): Wrap string in _(...).
26516 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
26518 PR tree-optimization/90240
26520 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26522 PR tree-optimization/90078
26523 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26524 checks for infinite_cost overflow.
26526 2019-04-29 Jeff Law <law@redhat.com>
26528 * passes.def: Move -Wrestrict pass after copy propagation.
26530 2019-04-29 Maya Rashish <coypu@sdf.org>
26532 * config.gcc (default_gnu_indirect_function): Default to yes
26533 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
26534 sparc*-*-netbsd*, x86_64-*-netbsd*.
26536 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
26538 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
26539 where cond2 is NE_EXPR.
26540 (is_value_included_in): Update comment.
26542 2019-04-29 Richard Biener <rguenther@suse.de>
26544 PR tree-optimization/90278
26545 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
26546 EH on comparison simplification.
26548 2019-04-29 Jason Merrill <jason@redhat.com>
26550 PR c++/82081 - tail call optimization breaks noexcept
26551 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
26552 nothrow function to a might-throw function into a tail call.
26554 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
26556 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
26557 (DDR_INNER_LOOP): Likewise.
26558 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
26559 (initialize_data_dependence_relation): Likewise.
26560 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
26562 2019-04-29 Jakub Jelinek <jakub@redhat.com>
26564 PR rtl-optimization/90257
26565 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
26569 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26573 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26576 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26579 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26581 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26583 2019-04-29 Richard Biener <rguenther@suse.de>
26585 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
26588 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
26590 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
26591 varasm.h, and netbsd-protos.h.
26593 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
26596 * config/i386/i386-protos.h (ix86_data_alignment): Change
26597 the second argument type to unsigned int.
26598 * config/i386/i386.c (ix86_data_alignment): Change "align"
26599 argument type to unsigned int.
26601 2019-04-27 Martin Liska <mliska@suse.cz>
26603 PR middle-end/90258
26604 * opt-suggestions.c (option_proposer::build_option_suggestions):
26605 When get_valid_option_values returns empty values, add the
26606 misspelling candidate.
26608 2019-04-26 Jim Wilson <jimw@sifive.com>
26610 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
26612 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
26613 Pass orig_mode to riscv_build_integer.
26614 (riscv_split_integer): Pass mode to riscv_move_integer.
26615 (riscv_legitimize_const_move): Likewise.
26616 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
26617 promoted_mode. Replace force_reg call with code to load constant into
26618 promoted reg and then subreg it for the store.
26619 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
26620 riscv_move_integer.
26622 2018-04-26 Eugene Sharygin <eush@ispras.ru>
26624 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
26627 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
26629 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
26630 commentary about the encoding of precision.
26632 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
26634 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
26635 * config/i386/t-freebsd64: New file.
26636 * config.gcc: Add the t-freebsd64 for multilib support.
26638 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
26640 * doc/extend.texi (vector_size): Add missing comma after @xref.
26642 2019-04-25 Jakub Jelinek <jakub@redhat.com>
26644 * BASE-VER: Set to 10.0.0.
26646 2019-04-25 Richard Biener <rguenther@suse.de>
26648 PR middle-end/89765
26649 * gimplify.c (gimplify_expr): Avoid turning a lvalue
26650 VIEW_CONVERT_EXPR into one operating on an rvalue.
26652 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
26655 * config/i386/i386.c (feature_priority): Moved to file scope.
26656 (processor_features): Likewise.
26657 (processor_model): Likewise.
26658 (_arch_names_table): Likewise.
26659 (arch_names_table): Likewise.
26660 (_feature_list): Removed.
26661 (feature_list): Likewise.
26662 (_isa_names_table): Moved to file scope. Add priority.
26663 (isa_names_table): Likewise.
26664 (get_builtin_code_for_version): Replace feature_list with
26665 isa_names_table. Update error message for P_ZERO priority.
26667 2019-04-25 Richard Biener <rguenther@suse.de>
26669 * tree-pass.h (make_pass_phi_only_cprop): Remove.
26670 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
26672 2019-04-24 Jeff Law <law@redhat.com>
26674 PR tree-optimization/90037
26675 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
26676 * passes.def: Replace all instance of phi-only cprop with the
26677 lattice propagator. Move propagation pass from after erroneous
26678 path isolation to before erroneous path isolation.
26679 * tree-ssa-phionlycprop.c: Remove.
26681 2019-04-24 Richard Biener <rguenther@suse.de>
26683 PR middle-end/90213
26684 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
26685 by size and BITS_PER_UNIT on poly-wide-ints.
26687 2019-04-25 Richard Biener <rguenther@suse.de>
26689 PR middle-end/90194
26690 * match.pd: Add pattern to simplify view-conversion of an
26693 2019-04-24 Clement Chigot <clement.chigot@atos.net>
26695 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
26696 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
26697 for Go on 32 bit AIX.
26698 * config/rs6000/aix72.h: Likewise.
26700 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26703 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
26704 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
26706 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
26709 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
26710 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
26711 for restored hard frame pointer.
26712 (s390_sched_dependencies_evaluation): Implement new target hook.
26713 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
26715 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
26717 * config/arc/arc-options.def: Fix typos and spelling mistakes.
26718 * config/arc/arc.c (arc_init): Cleanup warning message.
26719 (arc_override_options): Likewise.
26721 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26724 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
26725 a register if both if_true and if_false are MEMs.
26727 PR tree-optimization/90208
26728 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
26729 after labels of new_bb, not before them.
26731 PR tree-optimization/90211
26732 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
26733 which are not SSA_NAMEs.
26735 2018-04-23 Sudakshina Das <sudi.das@arm.com>
26737 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
26739 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
26741 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26743 PR rtl-optimization/87979
26744 * modulo-sched.c (sms_schedule): Start ii value "mii" should
26747 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26749 PR rtl-optimization/84032
26750 * modulo-sched.c (ps_insn_find_column): Change condition so that
26751 branch will always be the last insn in a row inside partial
26754 2019-04-23 Richard Biener <rguenther@suse.de>
26757 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
26758 dest_single_pred_p argument.
26759 (remove_forwarder_block): Adjust.
26760 (remove_forwarder_block_with_phi): Likewise.
26762 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26763 Bernd Edlinger <bernd.edlinger@hotmail.de>
26764 Jakub Jelinek <jakub@redhat.com>
26767 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
26768 if used with general-regs-only.
26769 (arm_conditional_register_usage): Don't add non-general regs if
26771 (arm_valid_target_attribute_rec): Handle general-regs-only.
26772 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
26774 (TARGET_HARD_FLOAT_SUB): Define.
26775 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
26776 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
26777 (TARGET_REALLY_IWMMXT2): Likewise.
26778 * config/arm/arm.opt: Add -mgeneral-regs-only.
26779 * doc/extend.texi: Document ARM general-regs-only target.
26780 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
26782 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26784 PR tree-optimization/90078
26785 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26786 checks for infinite_cost overflow.
26788 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26790 PR tree-optimization/90021
26791 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
26792 and check univariate against it.
26793 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
26794 * tree-data-ref.c (add_other_self_distances): Pass new argument.
26796 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26800 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26803 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26806 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26808 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26810 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
26812 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
26813 names using operand format, rather than hard-wired.
26814 (speculation_barrier): Likewise.
26816 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26818 PR tree-optimization/88055
26819 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26820 (gen_one_condition): Use it if !HONOR_NANS.
26822 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26824 PR middle-end/90139
26825 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26826 assign_temp instead of gen_reg_rtx.
26828 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26830 PR translation/90118
26831 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26832 Add missing space before %<.
26834 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26836 PR rtl-optimization/87871
26837 * ira-lives.c (make_object_dead): Don't add conflicts to
26838 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26840 2019-04-18 Martin Sebor <msebor@redhat.com>
26842 PR middle-end/89797
26843 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26844 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26845 assuming type size fits in SHWI.
26847 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26850 * ipa-inline.c (flatten_function): New parameter UPDATE.
26851 (ipa_inline, early_inliner): Use it.
26853 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26855 * fold-const.c (int_const_binop): Return early on failure.
26857 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26859 PR middle-end/85164
26860 * combine.c (force_int_to_mode): Cast the argument rather than
26861 the result of known_alignment.
26862 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26864 2019-04-18 Richard Biener <rguenther@suse.de>
26867 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26869 (remove_forwarder_block): ... here.
26870 (remove_forwarder_block_with_phi): Also move debug stmts here.
26872 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26874 PR translation/79183
26875 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26876 inform where appropriate.
26878 2019-04-18 Richard Biener <rguenther@suse.de>
26880 * tree.c (get_qualified_type): Put found type variants at the
26881 head of the variant list.
26883 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26885 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26887 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26890 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26891 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26892 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26893 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26894 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26896 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26898 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26899 even for allocno's with no conflicts.
26900 (print_conflicts): Print an extra newline.
26902 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26904 * auto-inc-dec.c (attempt_change): Set the alignment of the
26905 temporary memory to that of the original.
26907 2019-04-17 Joao Moreira <jmoreira@suse.de>
26909 * targhooks.c (default_print_patchable_function_entry): Emit
26910 __patchable_function_entries section with writable flags to allow
26911 relocation resolution.
26913 2019-04-17 Jonny Grant <jg@jguk.org>
26915 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26917 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26919 PR middle-end/90095
26920 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26921 on lowpart SUBREGs.
26923 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26925 * config/arc/arc.c (arc_init): Format diagnostic string.
26926 (arc_override_options): Likewise.
26927 (check_if_valid_regno_const): Likewise.
26928 (arc_reorg): Likewise.
26930 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26933 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26935 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26937 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26938 (*movdi_update1): Use Pmode.
26939 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26940 (movdi_<mode>_update_stack): Rename to ...
26941 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26943 (*movsi_update1): Use Pmode.
26944 (*movsi_update2): Use Pmode.
26945 (movsi_update): Rename to ...
26946 (movsi_<mode>_update): ... this. Use Pmode.
26947 (movsi_update_stack): Fix condition.
26948 (*movhi_update1): Use Pmode. Fix argument to
26949 avoiding_indexed_address_p.
26950 (*movhi_update2): Ditto.
26951 (*movhi_update3): Ditto.
26952 (*movhi_update4): Ditto.
26953 (*movqi_update1): Ditto.
26954 (*movqi_update2): Ditto.
26955 (*movqi_update3): Ditto.
26956 (*movsf_update1, *movdf_update1): Merge, rename to...
26957 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26958 avoiding_indexed_address_p. Add "size" attribute.
26959 (*movsf_update2, *movdf_update2): Merge, rename to...
26960 (*mov<mode>_update2): This. Ditto.
26961 (*movsf_update3): Use Pmode. Fix argument to
26962 avoiding_indexed_address_p.
26963 (*movsf_update4): Ditto.
26964 (allocate_stack): Simplify condition. Adjust pattern names.
26966 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26969 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26970 whitespace at the start of target attribute string.
26972 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26975 * config/rs6000/power9.md: Add store forwarding bypass.
26977 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26980 * valtrack.c (dead_debug_insert_temp): Reset debug references
26981 to the return value of a call being removed.
26983 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26985 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26986 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26987 implement target hook.
26988 (arc_memory_move_cost): New function.
26989 (TARGET_REGISTER_MOVE_COST): Define.
26990 (TARGET_MEMORY_MOVE_COST): Likewise.
26991 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26992 (MEMORY_MOVE_COST): Likewise.
26994 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26996 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26997 (sibcall_value_insn): Likewise.
26998 * config/arc/constraints.md (Rs5): Remove.
27000 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27002 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
27003 for last two fake registers.
27004 (arc_conditional_register_usage): Make sure fake frame and arg
27005 pointer regs are in general regs class.
27006 (FRAME_POINTER_MASK): Remove.
27007 (RETURN_ADDR_MASK): Remove.
27008 (arc_must_save_register): Use hard frame regnum.
27009 (frame_restore_reg): Use hard_frame_pointer_rtx.
27010 (arc_save_callee_saves): Likewise.
27011 (arc_restore_callee_saves): Likewise.
27012 (arc_save_callee_enter): Likewise.
27013 (arc_restore_callee_leave): Likewise.
27014 (arc_save_callee_milli): Likewise.
27015 (arc_eh_return_address_location): Likewise.
27016 (arc_check_multi): Use hard frame regnum.
27017 (arc_can_eliminate): Likewise.
27018 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
27019 for register allocator.
27020 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
27021 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
27022 (FRAME_POINTER_REGNUM): Change it to a fake register.
27023 (HARD_FRAME_POINTER_REGNUM): Defined.
27024 (ARG_POINTER_REGNUM): Change it to a new fake register.
27025 (ELIMINABLE_REGS): Update.
27026 (REGISTER_NAMES): Update names.
27027 * config/arc/arc.md (LP_START): Remove.
27028 (LP_END): Likewise.
27029 (shift_si3_loop): Update pattern.
27031 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
27033 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
27034 to avoid delay slot scheduling.
27035 (arc_must_save_register): Don't save SP.
27036 * config/arc/arc.md (stack_tie): Remove.
27037 (UNSPEC_ARC_STKTIE): Likewise.
27039 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
27040 Shiva Chen <shiva0217@gmail.com>
27042 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
27043 code gen with large shift amount.
27045 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
27047 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
27050 2019-04-16 Jakub Jelinek <jakub@redhat.com>
27053 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
27054 print -m64/-mx32/-m32 if it is true.
27055 (ix86_debug_options, ix86_function_specific_print): Pass true as
27056 ADD_ABI_P to ix86_target_string.
27057 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
27058 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
27059 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
27061 PR rtl-optimization/90082
27062 * dce.c (can_delete_call): New function.
27063 (deletable_insn_p, mark_insn): Use it.
27065 PR tree-optimization/90090
27066 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
27068 (is_division_by_square): Likewise. Formatting fix.
27070 2019-04-16 Richard Biener <rguenther@suse.de>
27072 PR tree-optimization/56049
27073 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
27074 equality check if alias-set zero will prevail.
27076 2019-04-15 Jeff Law <law@redhat.com>
27078 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
27079 size and alignment as unsigned.
27081 2019-04-15 Richard Biener <rguenther@suse.de>
27084 * tree-loop-distribution.c (destroy_loop): Preserve correct
27087 2019-04-15 Richard Biener <rguenther@suse.de>
27089 PR tree-optimization/90071
27090 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
27091 abnormal operands from def stmts.
27093 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
27095 PR rtl-optimization/89794
27096 * combine.c (count_auto_inc): New function.
27097 (try_combine): Count how many auto_inc expressions there were in the
27098 original instructions. Ensure we have the same number in the new
27099 instructions. Remove the code that tried to ensure auto_inc side
27100 effects on i1 and i0 are not lost.
27102 2019-04-15 Richard Biener <rguenther@suse.de>
27105 * tree.h (auto_var_p): Declare.
27106 * tree.c (auto_var_p): New function, split out from ...
27107 (auto_var_in_fn_p): ... here.
27108 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
27110 (new_var_info): Initialize it.
27111 (set_uids_in_ptset): Also set the shadow variable uid if required.
27112 (ipa_pta_execute): Postprocess points-to solutions assigning
27113 shadow variable uids for locals that may reach their containing
27114 function recursively.
27115 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
27116 assert but instead check whether the points-to solution is
27119 2019-04-15 Martin Jambor <mjambor@suse.cz>
27122 * cgraph.c (clone_of_p): Loop over clone chain for each step in
27125 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27127 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
27129 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
27130 Kito Cheng <kito.cheng@gmail.com>
27131 Shiva Chen <shiva0217@gmail.com>
27133 * config/nds32/nds32-md-auxiliary.c
27134 (nds32_legitimize_pic_address): Use new PIC pattern.
27135 (nds32_legitimize_tls_address): Use new TLS pattern.
27136 (nds32_output_symrel): New.
27137 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
27138 (nds32_alloc_relax_group_id): Ditto.
27139 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
27140 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
27142 (nds32_group_tls_insn): Ditto.
27143 (nds32_group_float_insns): Ditto.
27144 * config/nds32/nds32.md (tls_le): New.
27147 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
27149 * configure: Add nds32 target for dwarf2 debug_line checking.
27150 * configure.ac: Regenerated.
27152 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
27155 * ipa-devirt.c (skip_in_fields_list_p): New.
27156 (odr_types_equivalent_p): Use it.
27158 2019-04-13 Jakub Jelinek <jakub@redhat.com>
27161 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
27162 instead of strncmp when checking for thumb and arm. Formatting fixes.
27164 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
27166 * doc/install.texi: Document --with-target-system-zlib.
27168 2019-04-12 Martin Sebor <msebor@redhat.com>
27174 * targhooks.c (default_vector_alignment): Avoid assuming
27175 argument fits in SHWI.
27176 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
27177 a shift expression.
27178 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
27180 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27182 PR rtl-optimization/89965
27183 * dce.c: Include rtl-iter.h.
27184 (struct check_argument_load_data): New type.
27185 (check_argument_load): New function.
27186 (find_call_stack_args): Check for loads from stack slots still tracked
27187 in sp_bytes and punt if any is found.
27189 * config/mips/loongson-mmiintrin.h: Fix up #error message.
27191 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
27193 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
27194 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
27196 2019-04-12 Martin Liska <mliska@suse.cz>
27198 PR middle-end/89970
27199 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
27201 (separate_attrs): Handle multiple 'default's.
27202 (expand_target_clones): Rework error handling code.
27204 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
27207 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
27208 mode of vector rather than mode of destination for move instruction.
27209 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
27210 Use QI inner mode with V16QI vector mode.
27212 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27215 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
27216 "invalid %%t operand" in output_operand_lossage message.
27218 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
27220 * config/s390/predicates.md (permute_pattern_operand): New
27222 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
27223 operand for the permute pattern.
27224 ("*vec_perm<mode>"): New insn definition.
27225 ("bswap<mode>"): Generate the permute pattern operand in the
27226 expander and perform the operand reloads for pre arch13 level
27228 ("*bswap<mode>_emu"): Rename to ...
27229 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27230 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27231 Add the USE operand for the permute pattern.
27232 ("*vec_set_bswap_vec<mode>"): Likewise.
27234 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27237 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27238 and gcc_unreachable if it fails, just call tree_to_uhwi which
27239 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27240 Start warning message with a lower-case letter. Formatting fixes.
27242 PR rtl-optimization/90026
27243 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27244 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27245 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27246 in cfglayout mode, use emit_barrier_after_bb.
27248 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27250 PR rtl-optimization/87763
27251 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27254 2019-04-11 Tom de Vries <tdevries@suse.de>
27256 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27257 max macro using statement expression.
27259 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27261 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27262 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27263 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27264 read_only_private_data_section using xcoff_private_rodata_section_name.
27265 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27267 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27270 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27272 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27274 PR rtl-optimization/89965
27275 * dce.c (sp_based_mem_offset): New function.
27276 (find_call_stack_args): Use sp_based_mem_offset.
27278 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27280 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27282 2019-04-11 Richard Biener <rguenther@suse.de>
27284 PR tree-optimization/90020
27285 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27286 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27287 * tree-ssa-pre.c (compute_avail): Use it to not put
27288 possibly trapping references after a call that might not
27289 return into EXP_GEN.
27290 * gcse.c (compute_hash_table_work): Do not elide
27291 marking a block containing a call if the call might not
27294 2019-04-11 Richard Biener <rguenther@suse.de>
27296 PR tree-optimization/90018
27297 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27298 Test both SLP and interleaving variants.
27300 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27302 * config/s390/8561.md: New file.
27303 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27304 Add arch13 cpu model.
27305 * config/s390/s390-opts.h (enum processor_type): Likewise.
27306 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27307 (s390_get_unit_mask): Likewise.
27308 (s390_is_fpd): Likewise.
27309 (s390_is_fxd): Likewise.
27310 * config/s390/s390.h (s390_tune_attr): Likewise.
27311 * config/s390/s390.md: Include arch13 pipeline description.
27312 * config/s390/s390.opt: Add arch13.
27314 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27316 PR rtl-optimization/87763
27317 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27319 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27321 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27323 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27324 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27325 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27326 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27328 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27330 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27331 "Although" in -fipa-icf documentation.
27333 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27334 of using multiple -g options.
27336 2019-04-10 Martin Liska <mliska@suse.cz>
27338 PR gcov-profile/89959
27339 * doc/gcov.texi: Make documentation of -x option
27342 2019-04-10 Richard Biener <rguenther@suse.de>
27344 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27346 (DR_GROUP_SAME_DR_STMT): Remove.
27347 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27348 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27349 replace with assert.
27350 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27351 (vect_record_grouped_load_vectors): Remove unreachable code.
27353 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
27356 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
27357 obsolete reference to N.
27359 2019-04-10 Jakub Jelinek <jakub@redhat.com>
27361 PR middle-end/90025
27362 * expr.c (store_expr): Set properly size on the MEM passed to
27366 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
27367 with strlen in between hostsz-3 and hostsz-1 inclusive when no
27368 translation is needed, and when translation is needed, only append
27369 ... if the string length is hostsz or more bytes long. Avoid using
27372 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
27375 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
27376 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
27378 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
27379 differences directly.
27380 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
27382 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27384 PR translation/90011
27385 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27387 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
27389 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27390 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
27391 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
27392 trailing space from -gsplit-dwarf diagnostics.
27394 PR tree-optimization/89998
27395 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
27396 instead of integer_type_node if possible, don't add ranges if return
27397 type is not compatible with int.
27398 * gimple-fold.c (gimple_fold_builtin_sprintf,
27399 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
27402 2019-04-09 Martin Liska <mliska@suse.cz>
27404 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
27405 * doc/install.texi: Document the new config.
27407 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
27409 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
27410 use gimple_expr_type for load and store calls. Skip over the
27411 condition argument in a conditional internal function.
27412 Protect use of TREE_INT_CST_LOW.
27414 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27417 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
27418 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
27419 trailing period from it too.
27421 2019-04-08 wu yuan <wuyuan5@huawei.com>
27423 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
27424 * config/aarch64/aarch64.md: Add "tsv110.md".
27425 * config/aarch64/tsv110.md: New file.
27427 2019-04-08 Richard Biener <rguenther@suse.de>
27429 PR tree-optimization/90006
27430 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
27433 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
27436 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
27438 (fma_root_node): Likewise.
27439 (func_fma_steering): Likewise.
27441 2019-04-08 Jakub Jelinek <jakub@redhat.com>
27443 PR rtl-optimization/89865
27444 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
27446 PR rtl-optimization/89865
27447 * config/i386/i386.md
27448 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
27449 numbers not to clash with the additional operands[4].
27450 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
27451 with extra register copy in the middle.
27453 2019-04-08 Martin Liska <mliska@suse.cz>
27455 PR gcov-profile/89961
27456 * doc/gcov.texi: Document data_file.
27457 * gcov.c (generate_results): Add data_info into JSON output.
27459 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
27461 PR tree-optimization/89725
27462 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
27463 loop's chrec as invariant symbol.
27464 * tree-chrec.h (chrec_contains_symbols): New parameter.
27465 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
27466 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
27467 function of loops not in DDR's loop_nest.
27468 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
27470 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
27473 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
27476 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
27479 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27480 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
27482 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
27484 * sched-deps.c (sched_macro_fuse_insns): Check return value of
27485 targetm.fixed_condition_code_regs.
27487 2019-04-05 Richard Biener <rguenther@suse.de>
27491 * tree-cfgcleanup.c (remove_forwarder_block): Always move
27492 debug bind stmts but reset them if they are not valid at the
27495 2019-04-05 Martin Liska <mliska@suse.cz>
27497 PR translation/89936
27498 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
27499 order to wrap keywords or arguments.
27500 * collect2.c (main): Likewise.
27501 (scan_prog_file): Likewise.
27502 (scan_libraries): Likewise.
27503 * common/config/riscv/riscv-common.c
27504 (riscv_subset_list::parsing_subset_version): Likewise.
27505 (riscv_subset_list::parse_std_ext): Likewise.
27506 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27508 * config/arm/arm.c (arm_option_override): Likewise.
27509 * config/cris/cris.c (cris_print_operand): Likewise.
27510 * config/darwin-c.c (darwin_pragma_options): Likewise.
27511 (darwin_pragma_unused): Likewise.
27512 (darwin_pragma_ms_struct): Likewise.
27513 * config/ft32/ft32.c (ft32_print_operand): Likewise.
27514 * config/i386/i386.c (print_reg): Likewise.
27515 (ix86_print_operand): Likewise.
27516 * config/i386/xm-djgpp.h: Likewise.
27517 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
27518 * config/m32c/m32c.c (m32c_option_override): Likewise.
27519 * config/msp430/msp430.c (msp430_option_override): Likewise.
27520 * config/nds32/nds32.c (nds32_option_override): Likewise.
27521 * config/nvptx/mkoffload.c (main): Likewise.
27522 * config/rx/rx.c (rx_print_operand): Likewise.
27523 (valid_psw_flag): Likewise.
27524 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
27525 (vms_pragma_nomember_alignment): Likewise.
27526 (vms_pragma_extern_model): Likewise.
27527 * lto-wrapper.c (compile_offload_image): Likewise.
27528 * omp-offload.c (oacc_parse_default_dims): Likewise.
27529 * symtab.c (symtab_node::verify_base): Likewise.
27530 * tlink.c (recompile_files): Likewise.
27531 (start_tweaking): Likewise.
27532 * tree-profile.c (parse_profile_filter): Likewise.
27534 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
27536 PR tree-optimization/89956
27537 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
27538 multiple negates of the same value.
27540 2019-04-04 Martin Sebor <msebor@redhat.com>
27542 PR middle-end/89957
27543 PR middle-end/89911
27544 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
27545 have the same precision since the function crashes otherwise.
27546 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
27547 has non-zero arguments.
27549 2019-04-04 Martin Sebor <msebor@redhat.com>
27551 PR middle-end/89934
27552 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
27553 out if the number of arguments is less than expected.
27555 2019-04-04 Jeff Law <law@redhat.com>
27557 PR rtl-optimization/89399
27558 * ree.c (combine_set_extension): Use single_set rather than
27559 digging into PATTERN for items on the candidate list.
27560 (combine_reaching_defs): Likewise.
27562 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
27564 PR rtl-optimization/46590
27565 * loop-invariant.c (find_defs): Move df_remove_problem and
27566 df_process_deferred_rescans to move_invariants.
27567 Move df_live_add_problem and df_live_set_all_dirty calls
27568 to move_invariants.
27569 (move_invariants): Likewise.
27570 (move_loop_invariants): Likewise, making the df_live calls
27571 conditional on -O. Remove the problem again if we added it
27574 2019-04-03 qing zhao <qing.zhao@oracle.com>
27576 PR tree-optimization/89730
27577 * ipa-inline.c (can_inline_edge_p): Delete the checking for
27578 -flive-patching=inline-only-static.
27579 (can_inline_edge_by_limits_p): Add the checking for
27580 -flive-patching=inline-only-static and grant always_inline
27581 even when -flive-patching=inline-only-static is specified.
27583 2019-04-03 Jeff Law <law@redhat.com>
27585 PR rtl-optimization/81025
27586 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
27588 2019-04-03 Richard Biener <rguenther@suse.de>
27590 PR tree-optimization/84101
27591 * tree-vect-stmts.c: Include explow.h for hard_function_value,
27592 regs.h for hard_regno_nregs.
27593 (cfun_returns): New helper.
27594 (vect_model_store_cost): When vectorizing a store to a decl
27595 we return and the function ABI returns in a multi-reg location
27596 account for the possible spilling that will happen.
27598 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
27600 * config/s390/s390.c (s390_legitimate_address_p): Reject long
27601 displacement addresses for vector mode operands.
27603 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
27605 * config/arc/arc.c (GMASK_LEN): Define.
27606 (arc_restore_callee_saves): Restore first blink when
27609 2019-04-03 Sudakshina Das <sudi.das@arm.com>
27611 * doc/extend.texi: Add deprecated comment on sign-return-address
27612 function attribute and add mbranch-protection.
27613 * doc/invoke.texi: Add bti to the options for mbranch-protection.
27615 2019-04-03 Richard Biener <rguenther@suse.de>
27618 * lto-wrapper.c (run_gcc): Avoid implicit rules making
27619 the all target phony.
27621 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
27625 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
27626 Return false for variable DImode shifts.
27627 (dimode_scalar_chain::compute_convert_gain): Do not handle
27628 register count operand in variable DImode shifts.
27629 (dimode_scalar_chain::make_vector_copies): Remove support to copy
27630 count argument of a variable shift instruction to a vector register.
27631 (dimode_scalar_chain::convert_reg): Remove support to convert
27632 count argument of a variable shift instruction.
27634 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27636 PR rtl-optimization/84206
27637 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
27638 iterating over loop headers.
27640 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27642 PR rtl-optimization/85876
27643 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
27644 beyond the original fence.
27646 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
27648 * config.gcc: Mark spu* targets as deprecated/obsolete.
27650 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27652 * config/s390/s390-builtin-types.def: New builtin function type
27653 definitions. Remove unused types.
27654 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
27655 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
27656 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
27657 overloaded builtins.
27658 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
27659 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
27660 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
27661 (vec_double, vec_signed, vec_unsigned): Define to use the new
27662 overloaded builtins.
27663 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
27666 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27668 * config/s390/s390-builtin-types.def: New builtin function type
27670 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
27671 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
27672 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
27673 (s390_vstrszh, s390_vstrszf): New low-level builtins.
27674 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
27675 constant definitions.
27676 * config/s390/vecintrin.h (vec_search_string_cc)
27677 (vec_search_string_until_zero_cc): New builtin name definitions.
27678 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
27680 ("vec_vstrs<mode>"): New insn definition.
27682 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27684 * config/s390/s390-builtin-types.def: Add new builtin function
27686 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
27687 New overloaded builtins.
27688 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
27690 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
27691 (UNSPEC_VEC_SLDBYTE): ... this.
27692 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
27693 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
27695 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
27696 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
27697 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
27699 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27701 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
27702 New insn definition.
27703 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
27704 * config/s390/vector.md (V_HW_HSD): ... here.
27706 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27708 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
27709 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
27710 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
27711 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
27712 New insn definitions.
27714 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27716 * config/s390/s390-builtin-types.def: Add new builtin function type.
27717 * config/s390/s390-builtins.def: Add overloaded builtin
27718 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
27719 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
27720 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
27721 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
27722 ("eltswap<mode>"): New expander.
27723 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
27726 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27728 * config/s390/s390-builtin-types.def: Add new builtin function types.
27729 * config/s390/s390-builtins.def: Add overloaded builtin
27730 s390_vec_revb. Add low-level builtins for vlbr and vstbr
27732 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
27733 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
27734 ("bswap<mode>"): New expander.
27735 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
27737 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27739 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
27740 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
27741 vector builtin version number in __VEC__.
27743 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27745 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
27747 (SFSI): New mode attribute.
27748 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
27749 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
27751 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
27752 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
27753 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
27754 ("floatsi<mode>2"): Add wcefb instruction.
27756 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27758 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
27759 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
27761 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
27762 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
27763 support 32 bit fp-int conversions. Rename to ...
27764 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27765 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27766 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
27767 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
27770 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27772 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
27773 if-then-else constructs if we can use the select instruction.
27774 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
27776 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27778 * config/s390/s390.md ("*popcountdi_arch13_cc")
27779 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
27781 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
27782 Append _z196 to make it ...
27783 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
27784 ("popcounthi2_z196"): ... this.
27785 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
27786 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
27788 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27790 * config/s390/s390.c (s390_canonicalize_comparison): Convert
27791 certain compares for arch13 in order to make use of the condition
27792 code result produced by the new instructions.
27793 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
27794 nxrk, and nxgrk instruction patterns.
27795 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
27796 (inv_no): Add new code iterator together with some attributes.
27797 ("*andc_split_<mode>"): Disable splitter for arch13.
27798 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
27799 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
27800 ("*<ANDOR:bitops_name>c<GPR:mode>")
27801 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
27802 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
27803 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
27804 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
27806 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27808 * common/config/s390/s390-common.c (processor_flags_table): New
27810 * config.gcc: Support arch13 with the --with-arch= configure flag.
27811 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27812 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
27813 * config/s390/s390.c (s390_get_sched_attrmask)
27814 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27815 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27816 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27817 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27818 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27820 * config/s390/s390.opt: Support arch13 as processor type in
27821 command line options.
27823 2019-04-02 Martin Liska <mliska@suse.cz>
27825 PR translation/89912
27826 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27827 Fix param description of graphite-max-arrays-per-scop.
27829 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27831 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27832 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27833 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27835 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27837 PR rtl-optimization/85412
27838 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27839 sel_sched_region_1, not after.
27841 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27843 PR rtl-optimization/86928
27844 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27845 compute_live if necessary.
27846 (sel_redirect_edge_and_branch): Likewise.
27848 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27850 PR rtl-optimization/89865
27851 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27852 register if it is a part of small class.
27854 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27856 PR rtl-optimization/87273
27857 * sel-sched-ir.c (merge_fences): Remove assert.
27859 2019-04-01 Richard Biener <rguenther@suse.de>
27861 PR tree-optimization/46590
27862 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27863 (dom_walker::m_reachability): Add in place of...
27864 (dom_walker::m_skip_unreachable_blocks): ...this.
27865 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27866 Move complex initialization ...
27867 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27868 lazily and initialize edge flags on each invocation.
27869 (dom_walker::bb_reachable): Use m_reachability.
27871 2019-04-01 Martin Liska <mliska@suse.cz>
27874 * opt-suggestions.c (option_proposer::build_option_suggestions):
27875 Add variant without any argument in order to provide better
27878 2019-04-01 Richard Biener <rguenther@suse.de>
27881 * gimple.c: Include langhooks.h.
27882 (gimple_get_alias_set): Treat enumeral types as the underlying
27885 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27886 Eric Botcazou <ebotcazou@adacore.com>
27888 PR rtl-optimization/89862
27889 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27890 that operates on the full registers for WORD_REGISTER_OPERATIONS
27893 2019-03-29 Jim Wilson <jimw@sifive.com>
27895 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27896 Clear MASK_RVC and then set if C subset supported.
27898 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27901 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27902 non-addressable complit into its initializer if it is volatile.
27904 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27906 * opts-common.c (integral_argument): Set errno properly in one case.
27908 2019-03-29 Martin Liska <mliska@suse.cz>
27910 * doc/invoke.texi: Remove -Wchkp from documentation.
27912 2019-03-29 Martin Liska <mliska@suse.cz>
27914 * dbgcnt.c (print_limit_reach): New function.
27917 2019-03-29 Martin Liska <mliska@suse.cz>
27919 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27920 (dbg_cnt_process_opt): Parse first tokens aas
27921 dbg_cnt_process_single_pair is also using strtok.
27923 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27925 PR rtl-optimization/87485
27926 * function.c (expand_function_end): Move stack_protect_epilogue
27927 before loading of return value into hard register(s).
27929 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27931 PR middle-end/89621
27932 * tree-inline.h (struct copy_body_data): Add
27933 dont_remap_vla_if_no_change flag.
27934 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27935 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27936 and remap_type_2 returns false.
27937 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27938 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27939 only from where it is copied to nested contexts.
27941 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27944 * config/i386/i386.md (RMW operation with LEA peephole):
27945 Use LEAMODE mode attribute instead of SWI mode iterator for
27948 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27951 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27952 Also process XEXP (src, 0) of a shift insn.
27954 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27956 PR middle-end/89725
27957 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27958 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27960 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27962 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27964 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27965 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27966 immediately after first one with df_analyze in between, but rather
27967 process all bbs, queueing ones that need second pass in a worklist,
27968 df_analyze, process queued debug insn changes and if second pass is
27969 needed, process bbs from worklist, df_analyze, process queued debug
27972 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27973 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27974 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27976 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27979 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27982 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27985 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27986 function for 32-bit MS_ABI.
27987 (function_value_ms_32): New function.
27989 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27991 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27992 (movdi): Call gen_movdi_symbol_save_scc.
27993 (gen_movdi_symbol_save_scc): New insn and split.
27995 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27997 PR rtl-optimization/89313
27998 * function.c (matching_constraint_num): New static function.
27999 (match_asm_constraints_1): Use it. Fixup white space and comment.
28000 Don't replace inputs with non-matching constraints which conflict
28001 with early clobber outputs.
28003 2019-03-27 Jeff Law <law@redhat.com>
28005 PR rtl-optimization/87761
28006 PR rtl-optimization/89826
28007 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
28009 (pass_cprop_hardreg::execute): Call df_analyze after adding the
28010 note problem to get REG_DEAD/REG_UNUSED notes updated.
28012 2019-03-27 Richard Biener <rguenther@suse.de>
28014 PR tree-optimization/89463
28015 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
28016 queue edges to remove.
28017 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
28018 dead stmts. Delay edge removal until PHIs are removed to
28019 make debug-stmt creation not confused by seemingly degenerate
28022 2019-03-27 Alan Modra <amodra@gmail.com>
28024 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
28026 * config/rs6000/darwin.h: Likewise.
28027 * config/rs6000/rs6000.c: Likewise.
28029 2019-03-27 Alan Modra <amodra@gmail.com>
28031 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
28032 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
28034 2019-03-26 Andrew Waterman <andrew@sifive.com>
28035 Jim Wilson <jimw@sifive.com>
28037 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
28038 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
28039 (generic_idivdi, generic_fmul_single, generic_fmul_double)
28040 (generic_fdiv, generic_fsqrt): Add check for generic tune.
28041 (generic_alu): Add auipc to type list.
28042 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
28043 (riscv_microarchitecture): Declare.
28044 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
28045 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
28047 (riscv_microarchitecture): New.
28048 (sifive_7_tune_info): New.
28049 (riscv_cpu_info_table): Add microarchitecture value for rocket and
28050 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
28052 (riscv_store_data_bypass_p): New.
28053 (riscv_option_override): Set riscv_microarchitecture from
28054 cpu->microarchitecture.
28055 * config/riscv/riscv.md: Include sifive-7.md.
28058 (auipc<mode>): Change type to auipc.
28059 (restore_stack_nonlocal): New.
28060 * config/riscv/sifive-7.md: New.
28061 * doc/invoke.texi (RISC-V Options): Update mtune docs.
28063 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
28066 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28067 Also process XEXP (src, 0) of a shift insn.
28069 2019-03-26 Richard Biener <rguenther@suse.de>
28071 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
28072 (copy_debug_stmt): Likewise.
28073 (expand_call_inline): Likewise.
28074 (copy_bb): Avoid redundant lookup & set of gimple_block.
28075 * gimple-low.c (lower_gimple_return): Likewise.
28076 (lower_builtin_setjmp): Likewise.
28078 2019-03-26 Jakub Jelinek <jakub@redhat.com>
28080 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
28081 is constant 0, turn into static const data member initialized to false.
28082 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
28083 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
28085 2019-03-26 Jason Merrill <jason@redhat.com>
28086 Jakub Jelinek <jakub@redhat.com>
28088 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
28090 (mem_alloc_description::release_object_overhead): Fix comment typos.
28091 * hash-table.h (hash_table::~hash_table): Call
28092 release_instance_overhead only if m_entries is non-NULL, otherwise
28093 call unregister_descriptor.
28095 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
28097 PR tree-optimization/81740
28098 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28099 In case of outer loop vectorization, check for backward dependence
28100 at the inner loop if outer loop dependence is reversed.
28102 2019-03-26 Alan Modra <amodra@gmail.com>
28104 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
28105 rs6000_vector_mem init. Correct wI and wJ comment.
28107 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
28109 PR rtl-optimization/88347
28110 PR rtl-optimization/88423
28111 * sched-deps.c (sched_analyze_insn): Take into account that for
28112 tablejumps the barrier appears after a label and a jump_table_data.
28114 2019-03-25 Martin Sebor <msebor@redhat.com>
28117 * c-common.c (check_user_alignment): Rename local. Correct maximum
28118 alignment in diagnostic. Avoid assuming argument fits in SHWI,
28119 convert it to UHWI when it fits.
28121 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
28124 * dwarf2out.c (premark_used_variables): New function.
28125 (prune_unused_types_walk): Do not mark not premarked external
28127 (prune_unused_types): Call premark_used_variables.
28129 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
28131 PR rtl-optimization/89676
28132 * lra-constraints.c (curr_insn_transform): Do match reload for
28133 early clobbers when the match was successful only for different
28136 2019-03-25 Martin Sebor <msebor@redhat.com>
28138 * doc/extend.texi (Common Type Attributes): Document vector_size.
28139 (Common Variable Attributes): Mention size constraint. Correct
28141 (Vector Extensions): Use @dfn when defining bas type. Clarify
28142 base type and size constraints.
28144 2019-03-25 Richard Biener <rguenther@suse.de>
28146 PR tree-optimization/89789
28147 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
28148 changes from non-undefined back to undefined.
28150 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
28152 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
28153 heap string and a gc string, but since this variable is unknown to
28154 ggc the gc string might get reused and corrupted. Fixed by always
28155 using a heap string.
28157 2019-03-25 Richard Biener <rguenther@suse.de>
28159 PR tree-optimization/89779
28160 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
28161 to remove IV defs, delay actual removal.
28162 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
28163 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
28164 very end, properly also reset loop control IV information.
28166 2019-03-25 Richard Biener <rguenther@suse.de>
28168 PR tree-optimization/89802
28169 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
28170 move EH data to folded stmt.
28172 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28174 * config/s390/s390-builtin-types.def: Remove few unused types and
28175 fix sort order for others.
28177 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
28179 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
28180 expected and found types with -mdebug during builtin matching.
28182 2019-03-25 Richard Biener <rguenther@suse.de>
28184 PR middle-end/89790
28185 * fold-const.c (operand_equal_p): Revert last change with
28188 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
28190 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
28191 notes for the result of the __tls_get_addr calls.
28192 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
28194 2019-03-24 Jeff Law <law@redhat.com>
28196 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
28198 PR rtl-optimization/87761
28199 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
28200 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
28202 (pass_cprop_hardreg::execute): Add df note problem and defer insn
28203 rescans. Reprocess blocks as needed, calling df_analyze before
28204 reprocessing. Always call df_analyze before fixing up debug bind
28207 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
28209 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
28212 2019-03-22 Andrew Pinski <apinski@marvell.com>
28214 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
28215 attrribute for uxtw.
28217 2019-03-26 Jeff Law <law@redhat.com>
28219 PR rtl-optimization/87761
28220 * config/mips/mips-protos.h (mips_split_move): Add new argument.
28221 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
28222 (mips_split_move): Accept new INSN argument. Try to forward SRC
28223 into the next instruction.
28224 (mips_split_move_insn): Pass INSN through to mips_split_move.
28226 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28228 PR rtl-optimization/89676
28229 * lra-constraints.c (curr_insn_transform): Do match reload for
28230 early clobbers even if the match was successful.
28232 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28235 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28237 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28239 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28241 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28243 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28244 <avx512>_fmsub_<mode>_mask3<round_name>,
28245 <avx512>_fnmadd_<mode>_mask3<round_name>,
28246 <avx512>_fnmsub_<mode>_mask3<round_name>,
28247 avx512f_vmfmadd_<mode>_mask3<round_name>,
28248 avx512f_vmfmsub_<mode>_mask3<round_name>,
28249 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28250 instead of register_operand and %v instead of v for match_operand 1.
28251 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28252 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28253 <round_nimm_predicate> instead of register_operand and %v instead of v
28254 for match_operand 1.
28256 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28257 <avx512>_fmadd_<mode>_mask3<round_name>,
28258 <avx512>_fmsub_<mode>_mask<round_name>,
28259 <avx512>_fmsub_<mode>_mask3<round_name>,
28260 <avx512>_fnmadd_<mode>_mask<round_name>,
28261 <avx512>_fnmadd_<mode>_mask3<round_name>,
28262 <avx512>_fnmsub_<mode>_mask<round_name>,
28263 <avx512>_fnmsub_<mode>_mask3<round_name>,
28264 <avx512>_fmaddsub_<mode>_mask<round_name>,
28265 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28266 <avx512>_fmsubadd_<mode>_mask<round_name>,
28267 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28268 <round_nimm_predicate> instead of nonimmediate_operand.
28269 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28270 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28271 Use register_operand instead of <round_nimm_predicate> for the
28272 operand that needs to match output.
28273 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28274 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28275 Likewise. Formatting fixes.
28278 * config/i386/i386.c (enum ix86_builtins): Remove
28279 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28280 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28281 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28282 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28283 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28284 __builtin_ia32_vfmsubss3_mask3): New builtins.
28285 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28286 avx512f_vmfmadd_<mode>_mask3<round_name>,
28287 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28288 *avx512f_vmfmsub_<mode>_mask<round_name>,
28289 avx512f_vmfmsub_<mode>_mask3<round_name>,
28290 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28291 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28292 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28293 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28294 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28295 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28296 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28297 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28298 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28299 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28300 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28301 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28302 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28303 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28304 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28305 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28306 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28307 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28308 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28309 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28310 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28311 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28312 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28313 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28314 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28315 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28316 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28317 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28319 2019-03-21 Martin Sebor <msebor@redhat.com>
28321 PR tree-optimization/89350
28322 * builtins.c (compute_objsize): Also ignore offsets whose upper
28324 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28325 (builtin_memref::builtin_memref): Initialize new member.
28326 Allow EXPR to be null.
28327 (builtin_memref::extend_offset_range): Replace local with a member.
28328 Avoid assuming pointer offsets are unsigned.
28329 (builtin_memref::set_base_and_offset): Determine base object
28330 before computing offset range.
28331 (builtin_access::builtin_access): Handle memset.
28332 (builtin_access::generic_overlap): Replace local with a member.
28333 (builtin_access::strcat_overlap): Same.
28334 (builtin_access::overlap): Same.
28335 (maybe_diag_overlap): Same.
28336 (maybe_diag_access_bounds): Same.
28337 (wrestrict_dom_walker::check_call): Handle memset.
28338 (check_bounds_or_overlap): Same.
28340 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28341 Jakub Jelinek <jakub@redhat.com>
28344 * tree.c (fld_type_variant, fld_incomplete_type_of,
28345 fld_process_array_type): Call fld->pset.add and don't call
28346 add_tree_to_fld_list if it returns true.
28347 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28348 non-marked types from TYPE_NEXT_VARIANT list.
28349 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28351 2019-03-21 Jakub Jelinek <jakub@redhat.com>
28353 * hash-table.h (hash_table): Add Lazy template parameter defaulted
28354 to false, if true, don't alloc_entries during construction, but defer
28355 it to the first method that needs m_entries allocated.
28356 (hash_table::hash_table, hash_table::~hash_table,
28357 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
28358 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
28359 hash_table::clear_slot, hash_table::traverse_noresize,
28360 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
28361 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
28363 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
28364 NO_INSERT instead of find_with_hash.
28365 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
28366 hash_set::m_table): Add Lazy to template params of hash_table.
28367 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
28368 * attribs.c (test_attribute_exclusions): Likewise.
28369 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
28370 hash_set. Add tests for hash_set with Lazy = true.
28372 2019-03-21 Richard Biener <rguenther@suse.de>
28374 PR tree-optimization/89779
28375 * tree.c (tree_nop_conversion): Consolidate and fix defensive
28376 checks with respect to released SSA names now having error_mark_node
28378 * fold-const.c (operand_equal_p): Likewise.
28380 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
28383 * config/s390/s390.c (global_not_special_regno_p): Move to make it
28385 (s390_optimize_register_info): Use global_not_special_regno_p to
28386 check for global regs.
28388 2019-03-20 Jakub Jelinek <jakub@redhat.com>
28391 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
28392 update this_alternative nor this_alternative_set.
28394 2019-03-19 Jim Wilson <jimw@sifive.com>
28397 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
28398 align, size, offset. Use them to handle a BLKmode reference. Update
28400 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
28402 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28404 PR rtl-optimization/89768
28405 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
28406 instead of GEN_INT.
28407 (unroll_loop_runtime_iterations): Likewise.
28409 2019-03-19 Martin Sebor <msebor@redhat.com>
28411 PR tree-optimization/89644
28412 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
28413 rather than endptr as an indicator of nul-termination.
28415 PR tree-optimization/89644
28416 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
28417 arrays in determining sequence sizes in strncpy and stpncpy.
28419 2019-03-19 Martin Liska <mliska@suse.cz>
28421 PR middle-end/89737
28422 * predict.c (combine_predictions_for_bb): Empty likely_edges and
28423 unlikely_edges if there's an edge that belongs to both these sets.
28425 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
28428 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
28429 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
28430 go via a stack temporary.
28432 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28435 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
28436 instead of gen_rtx_SUBREG.
28437 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
28439 2019-03-19 Richard Biener <rguenther@suse.de>
28442 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
28444 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
28448 * tree.c (free_lang_data_in_decl): Do not free context of C++
28451 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28454 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
28455 subs for the first alternative except when operands[3] is 1.
28458 * gimplify.c (gimplify_asm_expr): For output argument with
28459 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
28462 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
28464 PR rtl-optimization/89753
28465 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28466 explicit unrolling factor even more robust.
28468 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28471 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
28472 compensation use x2 += 1 instead of x2 -= -1 and when honoring
28473 signed zeros, do another copysign after the compensation.
28475 2019-03-18 Martin Sebor <msebor@redhat.com>
28477 PR tree-optimization/89720
28478 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
28479 more conservatively, the same as anti-range.
28481 2019-03-18 Richard Biener <rguenther@suse.de>
28483 PR middle-end/88945
28484 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
28485 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
28486 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
28487 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
28489 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
28491 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
28492 Extend queue to 1024 entries.
28493 Add "consumed" field.
28494 (gomp_print_output): Remove print_index parameter.
28495 Add final parameter.
28496 Change limit to unsigned.
28497 Use consumed field to implement circular buffer.
28498 Detect interrupted print in final pass.
28499 Flush output at the end.
28500 (run): Update gomp_print_output usage.
28501 (main): Initialize kernargs->output_data.consumed.
28503 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
28505 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
28506 calculation of the minimum number of scalar iterations for
28507 fully-predicated loops.
28509 2019-03-18 Martin Jambor <mjambor@suse.cz>
28511 PR tree-optimization/89546
28512 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
28513 any propagation to its children took place.
28515 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
28518 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
28519 parameter, and make use of it.
28520 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
28522 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28524 * config/arc/arc.opt (mcode-density-frame): Get the inital value
28525 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
28526 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28527 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28528 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
28529 match what the ops is doing.
28530 (push_multi_fp_blink): Likewise.
28531 * config/arc/arc.c (arc_override_options): Enable enter/leave when
28532 compiling for size and elf target.
28533 (arc_save_callee_enter): Adjust note to match what enter/leave
28536 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28538 * config/arc/arc.md (tst_movb): Fix constraint.
28540 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28542 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
28544 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28546 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
28547 * config/arc/arc.c (arc_conditional_register_usage): Remove all
28548 reg_alloc_order references.
28549 (size_alloc_order): Define.
28550 (arc_adjust_reg_alloc_order): New function.
28551 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
28553 (ADJUST_REG_ALLOC_ORDER): Define.
28554 (HONOR_REG_ALLOC_ORDER): Likewise.
28556 2019-03-18 Richard Biener <rguenther@suse.de>
28559 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
28560 loads and stores a bit more.
28562 2019-03-18 Richard Biener <rguenther@suse.de>
28565 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
28566 load pessimization to stores as well.
28568 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
28570 PR middle-end/86979
28571 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
28572 successor, use NULL as its av set.
28574 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28576 PR rtl-optimization/89721
28577 * lra-constraints (invariant_p): Return false if side_effects_p holds.
28579 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
28582 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28583 When handling vec_extract, use modular arithmetic to allow
28584 constant selectors greater than vector length.
28585 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
28586 V1TImode vectors to have constant selector values greater than 0.
28587 Use modular arithmetic to compute vector index.
28588 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
28589 index for in-memory vectors. Correct code generation for
28590 in-register vectors.
28591 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
28594 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
28598 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
28601 2019-03-15 Jakub Jelinek <jakub@redhat.com>
28604 * tree.c (inchash::add_expr): Strip any location wrappers.
28605 * fold-const.c (operand_equal_p): Move stripping of location wrapper
28606 after hash verification.
28609 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
28610 SIGN_EXTEND and ZERO_EXTEND.
28612 2019-03-14 Jason Merrill <jason@redhat.com>
28613 Jakub Jelinek <jakub@redhat.com>
28615 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
28616 than if is_empty (*slot).
28617 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
28618 existing elt and for elt removal.
28619 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
28620 of already removed elt.
28622 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
28625 * config/i386/i386.c (remove_partial_avx_dependency): Handle
28626 REG_EH_REGION note.
28628 2019-03-14 Martin Liska <mliska@suse.cz>
28631 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
28633 2019-03-14 Richard Biener <rguenther@suse.de>
28636 * config/i386/i386.c (make_resolver_func): Properly set
28637 DECL_CONTEXT on the RESULT_DECL.
28638 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
28640 2019-03-14 Richard Biener <rguenther@suse.de>
28642 * gimple-pretty-print.c: Include cfgloop.h.
28643 (dump_gimple_phi): Adjust.
28644 (dump_gimple_bb_header): Dump loop header for GIMPLE.
28645 (pp_cfg_jump): Adjust.
28646 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
28647 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
28648 (lower_phi_internal_fn): Remove.
28649 (verify_gimple_call): Remove IFN_PHI special-casing.
28650 (dump_function_to_file): Dump IL state.
28651 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
28652 done to deal with PHI nodes being present in non-SSA state.
28654 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28657 * multiple_target.c (create_dispatcher_calls): Change
28658 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
28659 In the node->iterate_referring loop, push *ref rather than ref, call
28660 ref->remove_reference () and always pass 0 to iterate_referring.
28662 PR rtl-optimization/89679
28663 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
28664 would contain a paradoxical SUBREG.
28666 2019-03-14 Richard Biener <rguenther@suse.de>
28668 PR tree-optimization/89710
28669 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
28672 2019-03-14 Martin Liska <mliska@suse.cz>
28674 * coverage.c (coverage_begin_function): Stream also
28676 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
28677 documentation about function declaration location.
28678 * gcov-dump.c (tag_function): Print whole range
28679 of function declaration.
28680 * gcov.c (struct function_info): Add end_column field.
28681 (function_info::function_info): Initialize it.
28682 (output_json_intermediate_file): Output {start,end}_column
28684 (read_graph_file): Read end_column.
28686 2019-03-14 Richard Biener <rguenther@suse.de>
28688 PR middle-end/89698
28689 * fold-const.c (operand_equal_p): For INDIRECT_REF check
28690 that the access types are similar.
28692 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28694 PR tree-optimization/89703
28695 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
28696 aren't compatible also with builtin_decl_explicit. Check pure
28697 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
28698 and BUILT_IN_STPNCPY{,_CHK}.
28700 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
28703 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
28704 addr32 prefix to VSIB address for X32.
28705 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
28707 (*avx512pf_gatherpf<mode>df_mask): Likewise.
28708 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
28709 (*avx512pf_scatterpf<mode>df_mask): Likewise.
28710 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
28711 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
28712 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
28713 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
28714 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
28715 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
28716 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
28717 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
28718 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
28719 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
28720 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
28721 (*avx512f_scatterdi<mode>): Likewise.
28723 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
28726 * lra-constraints.c (inherit_in_ebb): Update
28727 potential_reload_hard_regs along with live_hard_regs.
28729 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28732 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
28734 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
28736 2019-03-13 Martin Sebor <msebor@redhat.com>
28738 PR tree-optimization/89662
28739 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
28742 2019-03-13 Richard Biener <rguenther@suse.de>
28744 PR middle-end/89677
28745 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
28746 throw FP expressions at tree-affine.
28748 2019-03-14 Richard Biener <rguenther@suse.de>
28750 * tree-pretty-print.c (dump_generic_node): For -gimple properly
28751 dump negative integer constants using _Literal (type) -num.
28753 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28755 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
28756 nonlocal_value member.
28758 PR middle-end/88588
28759 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
28760 (ipa_simd_modify_function_body): Handle PHIs.
28762 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28764 * config/s390/s390.c (s390_option_override_internal): Use more
28765 aggressive inlining parameters.
28767 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28769 * config/s390/3906.md: New file.
28770 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28771 (LONGRUNNING_THRESHOLD): Remove.
28772 (MAX_SCHED_MIX_SCORE): Decrease.
28773 (MAX_SCHED_MIX_DISTANCE): Decrease.
28774 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
28775 (struct s390_sched_state): New struct to hold scheduling state.
28776 (S390_SCHED_STATE_NORMAL): Remove.
28777 (S390_SCHED_STATE_CRACKED): Remove.
28778 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
28779 (s390_get_sched_attrmask): Use new attribute.
28780 (s390_get_unit_mask): Use new units.
28781 (s390_is_fpd): New function.
28782 (s390_is_fxd): New function.
28783 (s390_is_longrunning): New function.
28784 (s390_sched_score): Use new functions.
28785 (s390_sched_reorder): Likewise.
28786 (s390_sched_variable_issue): Rework and use new functions.
28787 (s390_sched_init): Use new functions.
28788 * config/s390/s390.h (s390_tune_attr): Add z14.
28789 * config/s390/s390.md: Add z14.
28791 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28793 * config/s390/2964.md: Update pipeline description.
28794 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28795 (LONGRUNNING_THRESHOLD): Remove.
28796 (LATENCY_FACTOR): Remove.
28797 (s390_get_unit_mask): Add unit.
28798 (s390_sched_score): Use fxd/fpd.
28799 (s390_sched_variable_issue): Use fxd/fpd.
28801 2019-03-12 Martin Liska <mliska@suse.cz>
28803 * config/i386/i386.c: Reword an error message.
28805 2019-03-12 Martin Jambor <mjambor@suse.cz>
28807 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
28808 terminate with newline.
28810 2019-03-12 Jakub Jelinek <jakub@redhat.com>
28813 * config/s390/s390.md (tabort): Use %wd instead of
28814 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28815 letters and periods.
28816 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28817 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28820 PR middle-end/89663
28821 * builtins.c (expand_builtin_int_roundingfn,
28822 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28823 gcc_unreachable if validate_arglist fails.
28825 2019-03-12 Richard Biener <rguenther@suse.de>
28827 PR tree-optimization/89664
28828 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28829 free the occurance tree after the early out.
28831 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28833 PR middle-end/89655
28835 * vr-values.c (vr_values::update_value_range): If
28836 old_vr->varying_p (), don't update it, make new_vr also VARYING
28839 2019-03-11 Martin Liska <mliska@suse.cz>
28841 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28842 Fix double string quoting.
28844 2019-03-11 Martin Liska <mliska@suse.cz>
28846 * collect-utils.c (collect_wait): Wrap apostrophes
28847 in gcc internal format with %'.
28848 * collect2.c (main): Likewise.
28849 (scan_prog_file): Likewise.
28850 (scan_libraries): Likewise.
28851 * config/i386/i386.c (ix86_expand_call): Likewise.
28852 (ix86_handle_interrupt_attribute): Likewise.
28853 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28854 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28855 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28856 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28857 * symtab.c (symtab_node::verify_base): Likewise.
28858 * tree-cfg.c (verify_gimple_label): Likewise.
28859 * tree.c (verify_type_variant): Likewise.
28861 2019-03-11 Martin Liska <mliska@suse.cz>
28863 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28864 in a string format message and fix GNU coding style.
28865 (expand_builtin_set_thread_pointer): Likewise.
28866 * common/config/aarch64/aarch64-common.c
28867 (aarch64_rewrite_selected_cpu): Likewise.
28868 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28869 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28870 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28871 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28872 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28873 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28874 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28875 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28876 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28877 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28879 * common/config/riscv/riscv-common.c
28880 (riscv_subset_list::parsing_subset_version): Likewise.
28881 (riscv_subset_list::parse_std_ext): Likewise.
28882 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28883 (riscv_subset_list::parse): Likewise.
28884 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28885 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28886 (aarch64_override_options_internal): Likewise.
28887 (aarch64_validate_mcpu): Likewise.
28888 (aarch64_validate_march): Likewise.
28889 (aarch64_validate_mtune): Likewise.
28890 (aarch64_override_options): Likewise.
28891 * config/alpha/alpha.c (alpha_option_override): Likewise.
28892 * config/arc/arc.c (arc_init): Likewise.
28893 (parse_mrgf_banked_regs_option): Likewise.
28894 (arc_override_options): Likewise.
28895 (arc_expand_builtin_aligned): Likewise.
28896 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28897 (arm_expand_builtin): Likewise.
28898 * config/arm/arm.c (arm_option_check_internal): Likewise.
28899 (arm_configure_build_target): Likewise.
28900 (arm_option_override): Likewise.
28901 (arm_options_perform_arch_sanity_checks): Likewise.
28902 (arm_handle_cmse_nonsecure_entry): Likewise.
28903 (arm_handle_cmse_nonsecure_call): Likewise.
28904 (arm_tls_referenced_p): Likewise.
28905 (thumb1_expand_prologue): Likewise.
28906 * config/avr/avr.c (avr_option_override): Likewise.
28907 * config/bfin/bfin.c (bfin_option_override): Likewise.
28908 * config/c6x/c6x.c (c6x_option_override): Likewise.
28909 * config/cr16/cr16.c (cr16_override_options): Likewise.
28910 * config/cris/cris.c (cris_option_override): Likewise.
28911 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28912 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28913 * config/darwin.c (darwin_override_options): Likewise.
28914 * config/frv/frv.c (frv_expand_builtin): Likewise.
28915 * config/h8300/h8300.c (h8300_option_override): Likewise.
28916 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28917 (ix86_option_override_internal): Likewise.
28918 (warn_once_call_ms2sysv_xlogues): Likewise.
28919 (ix86_expand_prologue): Likewise.
28920 (split_stack_prologue_scratch_regno): Likewise.
28921 (ix86_warn_parameter_passing_abi): Likewise.
28922 * config/ia64/ia64.c (fix_range): Likewise.
28923 * config/m68k/m68k.c (m68k_option_override): Likewise.
28924 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28925 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28926 (mips_set_compression_mode): Likewise.
28927 * config/mmix/mmix.c (mmix_option_override): Likewise.
28928 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28929 * config/msp430/msp430.c (msp430_option_override): Likewise.
28930 * config/nds32/nds32.c (nds32_option_override): Likewise.
28931 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28932 (nios2_option_override): Likewise.
28933 (nios2_expand_custom_builtin): Likewise.
28934 * config/nvptx/mkoffload.c (main): Likewise.
28935 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28936 * config/pa/pa.c (fix_range): Likewise.
28937 (pa_option_override): Likewise.
28938 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28939 (riscv_option_override): Likewise.
28940 * config/rl78/rl78.c (rl78_option_override): Likewise.
28941 * config/rs6000/aix61.h: Likewise.
28942 * config/rs6000/aix71.h: Likewise.
28943 * config/rs6000/aix72.h: Likewise.
28944 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28945 * config/rs6000/freebsd64.h: Likewise.
28946 * config/rs6000/linux64.h: Likewise.
28947 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28948 (rs6000_expand_zeroop_builtin): Likewise.
28949 (rs6000_expand_mtfsb_builtin): Likewise.
28950 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28951 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28952 (rs6000_invalid_builtin): Likewise.
28953 (rs6000_expand_split_stack_prologue): Likewise.
28954 * config/rs6000/rtems.h: Likewise.
28955 * config/rx/rx.c (valid_psw_flag): Likewise.
28956 (rx_expand_builtin): Likewise.
28957 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28958 * config/s390/s390.c (s390_expand_builtin): Likewise.
28959 (s390_function_profiler): Likewise.
28960 (s390_option_override_internal): Likewise.
28961 (s390_option_override): Likewise.
28962 * config/sh/sh.c (sh_option_override): Likewise.
28963 (sh_builtin_saveregs): Likewise.
28964 (sh_fix_range): Likewise.
28965 * config/sh/vxworks.h: Likewise.
28966 * config/sparc/sparc.c (sparc_option_override): Likewise.
28967 * config/spu/spu.c (spu_option_override): Likewise.
28968 (fix_range): Likewise.
28969 * config/visium/visium.c (visium_option_override): Likewise.
28970 (visium_handle_interrupt_attr): Likewise.
28971 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28972 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28973 (dbg_cnt_process_opt): Likewise.
28974 * dwarf2out.c (output_dwarf_version): Likewise.
28975 * except.c (expand_eh_return): Likewise.
28976 * gcc.c (defined): Likewise.
28977 (driver_handle_option): Likewise.
28978 (process_command): Likewise.
28979 (compare_files): Likewise.
28980 (driver::prepare_infiles): Likewise.
28981 (driver::do_spec_on_infiles): Likewise.
28982 (driver::maybe_run_linker): Likewise.
28983 * omp-offload.c (oacc_parse_default_dims): Likewise.
28984 * opts-global.c (handle_common_deferred_options): Likewise.
28985 * opts.c (parse_sanitizer_options): Likewise.
28986 (common_handle_option): Likewise.
28987 (enable_warning_as_error): Likewise.
28988 * passes.c (enable_disable_pass): Likewise.
28989 * plugin.c (parse_plugin_arg_opt): Likewise.
28990 (default_plugin_dir_name): Likewise.
28991 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28992 (default_pch_valid_p): Likewise.
28993 * toplev.c (init_asm_output): Likewise.
28994 (process_options): Likewise.
28995 (toplev::run_self_tests): Likewise.
28996 * tree-cfg.c (verify_gimple_call): Likewise.
28997 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28998 (tree_inlinable_function_p): Likewise.
28999 * var-tracking.c (vt_find_locations): Likewise.
29001 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
29003 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
29004 only on the else branch.
29006 2019-03-11 Martin Liska <mliska@suse.cz>
29008 * gcov.c (output_intermediate_json_line): Print function
29010 (output_json_intermediate_file): Add new argument.
29011 * doc/gcov.texi: Document the change.
29013 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
29015 PR rtl-optimization/89588
29016 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
29017 explicit unrolling factor more robust.
29019 2019-03-11 Richard Biener <rguenther@suse.de>
29021 PR tree-optimization/89649
29022 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
29023 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
29024 on the prolog and epilog loops.
29025 (vect_loop_versioning): Return copy of loop.
29026 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
29027 on the non-vectorized version of the loop.
29029 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
29032 * config/i386/sse.md (*vec_extractv2di_0_sse):
29033 Add (=r,x) alternative and corresponding splitter.
29035 2019-03-10 Martin Jambor <mjambor@suse.cz>
29037 PR tree-optimization/85762
29038 PR tree-optimization/87008
29039 PR tree-optimization/85459
29040 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
29041 it points to if there is a type changing MEM_REF. Adjust all callers.
29042 (build_accesses_from_assign): Disable total scalarization if
29043 contains_vce_or_bfcref_p returns true through the new parameter, for
29046 2019-03-09 Jakub Jelinek <jakub@redhat.com>
29049 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
29050 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
29053 * common.opt (fdiagnostics-show-labels,
29054 fdiagnostics-show-line-numbers, fdiagnostics-format=,
29055 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
29056 gas-locview-support, ginline-points, ginternal-reset-location-views):
29057 Terminate description text with a dot.
29058 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
29059 * config/mcore/mcore.opt (m210, m340): Likewise.
29060 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
29061 mnops=): Start description text with a capital letter.
29062 * config/arc/arc.opt (msize-level=): Likewise.
29063 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
29064 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
29065 mnewlib): Likewise.
29066 * config/ft32/ft32.opt (msim): Likewise.
29067 (mft32b, mcompress): Likewise. Terminate description text with a dot.
29068 (mnodiv, mnopm): Terminate description text with a dot.
29069 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
29071 * config/i386/i386.opt (prefer_vector_width, instrument_return):
29073 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
29076 PR rtl-optimization/89634
29077 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
29078 are modified in BB_END (e->src) instruction.
29080 2019-03-08 David Malcolm <dmalcolm@redhat.com>
29083 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
29084 messages more amenable to translation, and improve wording.
29086 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
29088 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
29089 ud- and du-chains between phases.
29091 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
29094 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
29095 instead of POLY_INT_CST.
29097 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
29099 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
29102 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
29107 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
29108 (_mm_storeu_si64): Ditto.
29110 2019-03-08 Martin Liska <mliska@suse.cz>
29113 * config/i386/i386.c (ix86_option_override_internal): Disable
29114 jump tables when retpolines are used.
29116 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
29119 * ipa-split.c (execute_split_functions): Do not split
29120 'noinline' or 'section' function.
29122 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29125 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
29126 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
29127 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
29130 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
29131 from diagnostics. Formatting fixes.
29134 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
29135 warn_odr diagnostics.
29138 * lra-constraints.c (process_alt_operands): Avoid one space before
29139 " at the end of line and another after " on another line in a string
29141 * attribs.c (handle_dll_attribute): Likewise.
29142 * config/avr/avr-devices.c (avr_texinfo): Likewise.
29144 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
29145 warning_at or inform messages in G_() if there is no ?:.
29147 PR tree-optimization/89550
29148 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
29149 returned true. Formatting fixes.
29150 (expand_builtin_strnlen): Formatting fixes.
29151 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
29152 if warning_at returned true.
29153 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
29155 2019-03-08 Richard Biener <rguenther@suse.de>
29157 PR middle-end/89578
29158 * cfgloop.h (struct loop): Add owned_clique field.
29159 * cfgloopmanip.c (copy_loop_info): Copy it.
29160 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
29162 * tree-inline.c (copy_loops): Remap owned_clique.
29163 * lto-streamer-in.c (input_cfg): Stream owned_clique.
29164 * lto-streamer-out.c (output_cfg): Likewise.
29166 2019-03-08 Jakub Jelinek <jakub@redhat.com>
29169 * config/darwin.c: Include intl.h.
29170 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
29171 composing the message out of two separate parts.
29173 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29176 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
29177 doesn't start with a capital letter and doesn't end with a dot.
29178 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
29179 with a capital letter.
29180 (ix86_mangle_function_version_assembler_name): Likewise.
29181 (ix86_generate_version_dispatcher_body): Likewise.
29182 (fold_builtin_cpu): Likewise.
29183 (get_builtin_code_for_version): Likewise. Remove extraneous space.
29184 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
29185 translators, wrap full type name in %qs.
29187 PR translation/79999
29188 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
29189 depend clause with source (or sink) modifier.
29190 * omp-expand.c (expand_omp_ordered_sink): Likewise.
29193 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
29194 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
29195 (avx512f_load<mode>_mask): New define_expand.
29196 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
29197 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
29198 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
29199 __builtin_ia32_movess_mask): New builtins.
29200 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
29201 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
29202 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
29203 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
29205 2019-03-07 Martin Jambor <mjambor@suse.cz>
29208 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
29209 for extern inline functions.
29211 2019-03-07 Martin Jambor <mjambor@suse.cz>
29214 * cgraph.h (cgraph_node): New inline method former_thunk_p.
29215 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
29216 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
29217 have multiple callees. At the end check if declarations match as
29218 opposed to cgraph_nodes.
29220 2019-03-07 Martin Liska <mliska@suse.cz>
29222 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
29223 which is equivalent to searching for this in clones chain.
29224 * symtab.c (symtab_node::verify_base): Similarly compare ASM
29225 names with a neighbour and special case first node in a chain.
29227 2019-01-25 Jason Merrill <jason@redhat.com>
29229 PR c++/80916 - spurious "static but not defined" warning.
29230 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29231 for an internal symbol with DECL_EXTERNAL.
29233 2019-04-07 Richard Biener <rguenther@suse.de>
29235 PR middle-end/89618
29236 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29237 * tree-inline.c (copy_loops): Simplify.
29239 2019-03-07 Martin Liska <mliska@suse.cz>
29241 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29243 2019-03-07 Richard Biener <rguenther@suse.de>
29245 PR tree-optimization/89595
29246 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29247 stmt iterator as reference, take boolean output parameter to
29248 indicate whether the stmt was removed and thus the iterator
29250 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29251 stmts created by folding.
29253 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29256 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29259 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29261 PR rtl-optimization/88845
29262 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29264 * lra.c (remove_scratches_1): New function.
29265 (remove_scratches): Use it.
29266 (lra_emit_move): Likewise.
29268 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29270 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29271 unaligned_access variable.
29272 * config/arc/arc.c (arc_override_options): Set unaligned access
29273 default on for HS CPUs.
29274 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29276 2019-03-06 Martin Liska <mliska@suse.cz>
29278 PR gcov-profile/89577
29279 * doc/gcov.texi: Prefer to use --coverage.
29280 * doc/sourcebuild.texi: Likewise.
29282 2019-03-02 Jason Merrill <jason@redhat.com>
29284 PR c++/86485 - -Wmaybe-unused with empty class ?:
29285 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29287 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29290 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29293 PR middle-end/89590
29294 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29295 exactly one argument.
29297 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29298 Richard Sandiford <richard.sandiford@arm.com>
29300 PR tree-optimization/89570
29301 * match.pd (vec_cond into cond_op simplification): Don't use
29302 get_conditional_internal_fn, use as_internal_fn (cond_op).
29304 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29307 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29308 to decide when to split off a non-zero offset from a symbol.
29309 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29310 in function symbols.
29312 2019-03-05 Richard Biener <rguenther@suse.de>
29314 PR tree-optimization/89594
29315 * tree-if-conv.c (pass_if_conversion::execute): Handle
29316 case where .LOOP_VECTORIZED_FUNCTION was removed.
29318 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29321 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29322 instead alloca it only when needed with the needed size.
29324 PR tree-optimization/89570
29325 * match.pd (vec_cond into cond_op simplification): Guard with
29326 vectorized_internal_fn_supported_p test and #if GIMPLE.
29328 PR tree-optimization/89566
29329 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29330 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29331 Punt if get_user_idx_format succeeds, but idx_format argument is
29332 not provided or doesn't have pointer type, or if idx_args is above
29333 number of provided arguments.
29335 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29337 PR tree-optimization/89437
29338 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29340 2019-03-04 Richard Biener <rguenther@suse.de>
29342 PR middle-end/89572
29343 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29346 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29348 PR tree-optimization/89487
29349 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29350 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29351 (distribute_loop): Don't do runtime alias check if there is non-
29352 addressable data reference.
29353 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
29354 is a register variable.
29356 2019-03-02 Jakub Jelinek <jakub@redhat.com>
29359 * config/arm/arm.md (cmpsi2_addneg): Use
29360 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
29361 If operands[2] is 0 or INT_MIN, force use of subs.
29362 (*compare_scc splitter): Use gen_int_mode.
29363 (*negscc): Likewise.
29364 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
29366 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
29367 Monk Chiang <sh.chiang04@gmail.com>
29369 * common/config/riscv/riscv-common.c: Include sstream.
29370 (riscv_subset_list::to_string): New.
29371 (riscv_arch_str): Likewise.
29372 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
29373 * config.in: Regen.
29374 * config/riscv/riscv-protos.h (riscv_arch_str): New.
29375 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
29376 (riscv_emit_attribute): New.
29377 (riscv_file_start): Emit attribute if needed.
29378 (riscv_option_override): Init riscv_emit_attribute_p.
29379 * config/riscv/riscv.opt (mriscv-attribute): New option.
29380 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
29381 * configure: Regen.
29382 * doc/install.texi: Document --with-riscv-attribute.
29383 * doc/invoke.texi: Document -mriscv-attribute.
29385 * common/config/riscv/riscv-common.c:
29386 Include config/riscv/riscv-protos.h.
29387 (INCLUDE_STRING): Defined.
29388 (RISCV_DONT_CARE_VERSION): Defined.
29389 (riscv_subset_t): Declare.
29390 (riscv_subset_t::riscv_subset_t): New.
29391 (riscv_subset_list): Declare.
29392 (riscv_subset_list::riscv_subset_list): New.
29393 (riscv_subset_list::~riscv_subset_list): Likewise.
29394 (riscv_subset_list::parsing_subset_version): Likewise.
29395 (riscv_subset_list::parse_std_ext): Likewise.
29396 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29397 (riscv_subset_list::add): Likewise.
29398 (riscv_subset_list::lookup): Likewise.
29399 (riscv_subset_list::xlen): Likewise.
29400 (riscv_subset_list::parse): Likewise.
29401 (riscv_supported_std_ext): Likewise.
29402 (current_subset_list): Likewise.
29403 (riscv_parse_arch_string): Using riscv_subset_list::parse to
29406 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
29408 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29409 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
29410 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
29412 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
29414 PR rtl-optimization/85899
29415 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
29416 fallthru edges leading to the exit block.
29418 2019-03-01 Tamar Christina <tamar.christina@arm.com>
29421 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
29422 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
29424 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
29426 PR tree-optimization/89535
29427 * tree-vect-stmts.c (vectorizable_call): Record the vector types
29428 for each operand. Calculate the fallback choice for mask operands
29429 and pass it to vect_get_vec_def_for_operand.
29431 2019-03-01 Richard Biener <rguenther@suse.de>
29433 PR middle-end/89541
29434 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
29435 get virtual operands.
29436 (get_expr_operands): Handle CONST_DECL like other decls.
29438 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29440 PR middle-end/89503
29441 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
29442 on DECL_P and EXPR_P.
29444 2019-03-01 Richard Biener <rguenther@suse.de>
29446 PR middle-end/89497
29447 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
29448 argument, defaulted to zero.
29449 * passes.c (execute_function_todo): Pass down SSA update flags
29450 to cleanup_tree_cfg.
29451 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
29452 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
29454 (cleanup_tree_cfg): Get and pass down SSA update flags.
29456 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29459 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
29460 early_lto_debug argument.
29462 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
29464 PR tree-optimization/89536
29465 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
29466 only whether bit #0 of the value is 0 instead of the entire value.
29468 2019-02-28 Marek Polacek <polacek@redhat.com>
29470 PR c++/87068 - missing diagnostic with fallthrough statement.
29471 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
29472 at the end of a seq, save its location to walk_stmt_info.
29473 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
29476 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
29479 * tree.c (find_atomic_core_type): Move ahead in file.
29480 (check_base_type): Correctly compare alignments of atomic types.
29482 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
29485 * config/i386/i386.c (get_builtin_code_for_version): Identify
29486 Westmere from PCLMUL, instead of AES.
29488 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29491 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
29492 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
29495 2019-02-28 Tamar Christina <tamar.christina@arm.com>
29498 * config/aarch64/aarch64-option-extensions.def: Document it.
29499 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
29502 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29505 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
29506 builtins if they don't have a single scalar floating point argument.
29509 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
29511 PR rtl-optimization/89490
29512 * varasm.c (get_block_for_section): Bail out for mergeable sections.
29513 (default_use_anchors_for_symbol_p, output_object_block): Assert the
29514 block section is not mergeable.
29516 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29519 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
29520 old define_insn to ...
29521 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
29522 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
29523 Rename old define_insn to ...
29524 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
29525 (thumb2_casesi_internal_pic): New define_expand. Rename old
29527 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
29528 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
29529 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
29531 2019-02-27 Richard Biener <rguenther@suse.de>
29534 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
29536 2019-02-27 Richard Biener <rguenther@suse.de>
29538 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
29541 2019-02-27 Richard Biener <rguenther@suse.de>
29544 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
29545 parameter, prefix section name with .gnu.debuglto_ if true.
29546 (dwarf2out_finish): Pass false to output_comdat_type_unit.
29547 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
29549 2019-02-27 Richard Biener <rguenther@suse.de>
29552 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
29553 rather than on use_debug_types, doing what output_die does.
29554 (value_format): Likewise.
29556 2019-02-27 Martin Jambor <mjambor@suse.cz>
29557 Martin Sebor <msebor@redhat.com>
29559 * doc/invoke.texi (Warning Options): Reword description of
29560 -Wno-absolute-value.
29562 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29564 PR tree-optimization/89280
29565 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
29566 builtin_setjmp_setup_bb): New functions.
29567 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
29568 When visiting __builtin_setjmp_setup block, queue in special
29569 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
29570 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
29571 from visited after the loop if they don't have any visited successor
29574 2018-02-26 Steve Ellcey <sellcey@marvell.com>
29576 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
29578 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
29580 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29583 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
29584 with types other than sizetype/ssizetype.
29586 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29588 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
29589 (enum sparc_processor_type): ...this.
29590 (enum sparc_code_model_type): New enumeration type.
29591 (enum sparc_memory_model_type): Tweak comments.
29592 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
29594 (mcmodel): Use sparc_code_model enumeration and variable.
29595 (sparc_code_model): New enumeration.
29596 (mdebug): Add Undocumented marker.
29597 * config/sparc/sparc.h (enum cmodel): Delete.
29598 (sparc_cmodel): Likewise.
29599 (TARGET_CM_MEDLOW): Adjust to above renaming.
29600 (TARGET_CM_MEDMID): Likewise.
29601 (TARGET_CM_MEDANY): Likewise.
29602 (TARGET_CM_EMBMEDANY): Likewise.
29603 * config/sparc/sparc.c (sparc_cmodel): Delete.
29604 (sparc_option_override): Remove string/value mapping support for the
29605 code model. Move code and memory model support to after the handling
29606 of target flags. Do private machine setup last.
29607 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
29608 (sparc_legitimize_reload_address): Likewise.
29609 (sparc_output_mi_thunk): Likewise.
29610 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
29612 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29614 PR tree-optimization/89500
29615 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
29616 (handle_builtin_strlen): Remove noncst_bound variable. Always
29617 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
29618 cst if the first cst bytes starting at x are known to be non-zero,
29619 even if the string is not zero terminated. Don't try to modify
29620 *si for strnlen. Update strlen_to_stridx only for strlen or if
29621 we can prove strnlen returns the same value as strlen would.
29623 2019-02-26 Martin Liska <mliska@suse.cz>
29625 * alloc-pool.h (struct pool_usage): Remove extra
29627 * bitmap.h (struct bitmap_usage): Likewise.
29628 * ggc-common.c (struct ggc_usage): Likewise.
29629 * mem-stats.h (struct mem_usage): Likewise.
29630 (mem_alloc_description::dump): Print dash lines
29631 here and repeat header at the end of a table report.
29632 It's then more readable.
29633 * tree-phinodes.c (phinodes_print_statistics): Make
29634 horizontal alignment.
29635 * tree-ssanames.c (ssanames_print_statistics): Likewise.
29636 * vec.c (struct vec_usage): Remove extra print_dash_line.
29637 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
29639 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
29641 * doc/extend.texi (__builtin_object_size):
29642 Use @pxref instead of @xref inside parenthesis.
29643 (__builtin_has_attribute): Add missing comma after @xref.
29644 (__builtin_object_size): Ditto.
29645 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
29647 2019-02-26 Jeff Law <law@redhat.com>
29649 PR rtl-optimization/87761
29650 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
29651 detect obviously dead insns and delete them.
29653 2019-02-26 Richard Biener <rguenther@suse.de>
29655 PR tree-optimization/89505
29656 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
29657 to handle restrict pointed-to vars with multiple subvars
29660 2019-02-26 Richard Biener <rguenther@suse.de>
29662 PR tree-optimization/89489
29663 * tree-parloops.c (create_loop_fn): Copy over last_clique.
29665 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29667 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
29668 and move around comment.
29669 <BIT_AND_EXPR>: Likewise.
29670 <BIT_NOT_EXPR>: Add specific handling for boolean types.
29672 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29675 * config/i386/i386.c (remove_partial_avx_dependency): Call
29676 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
29677 after changing possibly many instructions to use that pseudo. Fix up
29678 insertion of v4sf_const0 setter at the start of bb.
29680 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29683 * doc/extend.texi (Variadic Pointer Args): New section.
29685 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29686 Martin Sebor <msebor@gmail.com>
29688 * common.opt (Wattribute-alias): Likewise.
29689 * doc/invoke.texi (Option Summary): List general form of
29690 -Wattribute-alias=. List positive form of -Wmissing-attributes.
29691 (-Wmissing-attributes): Invert entry, rewrite and correct default.
29692 Add cross-references.
29693 (-Wattribute-alias): Rewrite and correct default. Mention
29694 considered attributes (same as for -Wmissing-attributes).
29696 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
29698 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
29699 (_mm_cvtpd_ps): Likewise.
29700 (_mm_cvttpd_epi32): Likewise.
29703 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
29704 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
29707 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
29709 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29712 * common/config/aarch64/aarch64-common.c
29713 (struct aarch64_option_extension): Add is_synthetic.
29714 (all_extensions): Use it.
29715 (TARGET_OPTION_INIT_STRUCT): Define hook.
29716 (struct gcc_targetm_common): Moved to end.
29717 (all_extensions_by_on): New.
29718 (opt_ext_cmp, typedef opt_ext): New.
29719 (aarch64_option_init_struct): New.
29720 (aarch64_contains_opt): New.
29721 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
29722 * config/aarch64/aarch64-option-extensions.def
29723 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
29724 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
29725 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
29726 Set is_synthetic to false.
29727 (crypto): Set is_synthetic to true.
29728 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
29731 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29733 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29734 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
29735 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29736 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
29737 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
29738 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
29739 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
29740 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
29742 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
29743 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29744 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
29745 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
29746 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
29747 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
29748 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
29749 vfmlsl_laneq_high_f16): ... To this.
29750 * config/arm/neon.md: Update comments.
29752 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29754 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29755 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
29756 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29757 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
29758 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
29759 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
29760 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
29761 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
29763 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
29764 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29765 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
29766 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
29767 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
29768 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
29769 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
29770 vfmlslq_laneq_high_f16): ... To this.
29772 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
29774 PR rtl-optimization/86096
29775 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
29776 comparing mw_order values.
29778 2019-02-25 Jakub Jelinek <jakub@redhat.com>
29781 * config/arm/arm.md (*subsi3_carryin_const): Use
29782 arm_neg_immediate_operand predicate instead of
29783 arm_not_immediate_operand, "L" constraint instead of "K" and
29784 print it using %n2 instead of %B2.
29785 (*subsi3_carryin_const0): New define_insn.
29786 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
29787 instead of arm_not_operand and "I" constraint instead of "K" and
29788 print it using %n3 instead of %B2. Instead of using match_dup 2 add
29789 another match_operand and in the condition check that it is negation
29791 (*subsi3_carryin_compare_const0): New define_ins.
29792 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
29793 *subsi3_carryin_const.
29794 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
29795 split into *subsi3_carryin_compare_const0 if the highpart is zero.
29798 * config/arm.vfp.md (*negdf2_vfp): Use
29799 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
29800 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
29802 2019-02-24 Jakub Jelinek <jakub@redhat.com>
29804 PR rtl-optimization/89445
29805 * simplify-rtx.c (simplify_ternary_operation): Don't use
29806 simplify_merge_mask on operands that may trap.
29807 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
29808 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
29809 second operand is CONST_VECTOR, check if any element could be zero.
29810 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
29811 their operands can trap.
29813 2019-02-23 Martin Sebor <msebor@redhat.com>
29815 * gimple-ssa-sprintf.c (target_strtol): Rename...
29816 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29817 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29818 check for range error.
29820 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29823 * opts-common.c (prune_options): Also prune joined switches
29824 with Negative and RejectNegative.
29825 * config/i386/i386.opt (march=): Add Negative(march=).
29826 (mtune=): Add Negative(mtune=).
29827 * doc/options.texi: Document Negative used together with Joined
29828 and RejectNegative.
29830 2019-02-22 Martin Sebor <msebor@redhat.com>
29832 * doc/extend.texi (Other Builtins): Add
29833 __builtin_is_constant_evaluated.
29835 2019-02-22 Richard Biener <rguenther@suse.de>
29837 PR tree-optimization/87609
29838 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29840 2019-02-22 Jeff Law <law@redhat.com>
29842 PR rtl-optimization/87761
29843 * config/mips/mips.md: Add new combiner pattern to recognize
29844 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29846 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29849 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29850 destination register in peepholes generating patterns for ADDS/SUBS.
29851 (add<mode>3_compare0,
29852 *addsi3_compare0_uxtw, add<mode>3_compareC,
29853 add<mode>3_compareV_imm, add<mode>3_compareV,
29854 *adds_<optab><ALLX:mode>_<GPI:mode>,
29855 *subs_<optab><ALLX:mode>_<GPI:mode>,
29856 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29857 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29858 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29859 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29860 sub<mode>3_compare1): Allow stack pointer for source register.
29861 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29863 2019-02-22 Martin Sebor <msebor@redhat.com>
29865 PR tree-optimization/88993
29866 PR tree-optimization/88853
29867 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29869 (sprintf_dom_walker::call_info::is_string_func): New helper.
29870 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29871 for formatted string functions.
29872 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29874 2019-02-22 Martin Sebor <msebor@redhat.com>
29877 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29878 unreachable subexpressions.
29880 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29881 Hongtao Liu <hongtao.liu@intel.com>
29882 Sunil K Pandey <sunil.k.pandey@intel.com>
29885 * config/i386/i386-passes.def: Add
29886 pass_remove_partial_avx_dependency.
29887 * config/i386/i386-protos.h
29888 (make_pass_remove_partial_avx_dependency): New.
29889 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29891 (pass_data_remove_partial_avx_dependency): New.
29892 (pass_remove_partial_avx_dependency): Likewise.
29893 (make_pass_remove_partial_avx_dependency): Likewise.
29894 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29895 (*extendsfdf2): Add avx_partial_xmm_update.
29896 (truncdfsf2): Likewise.
29897 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29898 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29900 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29902 PR middle-end/85598
29903 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29906 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29909 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29910 (PTA_SKYLAKE): Add PTA_AES.
29911 (PTA_GOLDMONT): Likewise.
29913 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29915 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29916 instruction if enabled.
29917 (aarch64_override_options): Remove reference to return address key.
29919 2019-02-22 Richard Biener <rguenther@suse.de>
29921 PR tree-optimization/89440
29922 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29923 not necessary assert.
29925 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29928 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29929 (oacc_replace_fn_attrib_attr): ... this new function.
29930 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29931 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29933 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29935 * config/arm/arm-cpus.in (ares): Rename to...
29936 (neoverse-n1): ... This. Add ares as alias.
29937 * config/arm/arm-tables.opt: Regenerate.
29938 * config/arm/arm-tune.md: Likewise.
29939 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29941 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29943 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29944 * config/aarch64/aarch64-tune.md: Regenerate.
29945 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29947 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29949 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29950 (neoversen1_tunings): ... This.
29951 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29952 (neoverse-n1): New CPU.
29953 * config/aarch64/aarch64-tune.md: Regenerate.
29954 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29956 2019-02-22 Richard Biener <rguenther@suse.de>
29958 PR middle-end/87609
29959 * cfghooks.h (dependence_hash): New typedef.
29960 (struct copy_bb_data): New type.
29961 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29962 (duplicate_block): Likewise.
29963 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29964 (copy_bbs): Create and pass down copy_bb_data.
29965 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29966 (rtl_duplicate_bb): Likewise.
29967 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29968 remap dependence info.
29970 2019-02-22 Richard Biener <rguenther@suse.de>
29972 PR tree-optimization/87609
29973 * tree-core.h (tree_base): Document special clique values.
29974 * tree-inline.c (remap_dependence_clique): Do not use the
29975 special clique value of one.
29976 (maybe_set_dependence_info): Use clique one.
29977 (clear_dependence_clique): New callback.
29978 (compute_dependence_clique): Clear clique one from all refs
29979 before assigning it (again).
29981 2019-02-21 Martin Sebor <msebor@redhat.com>
29983 * doc/extend.texi (__clear_cache): Correct signature.
29985 2019-02-21 Ian Lance Taylor <iant@golang.org>
29988 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29989 than output_constant_def.
29990 (add_constant_to_table): New static function.
29991 (output_constant_def): Call add_constant_to_table.
29992 (tree_output_constant_def): Likewise.
29994 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29997 * builtins.c (fold_builtin_arith_overflow): If first two args are
29998 INTEGER_CSTs, set intres and ovfres to constants rather than calls
30001 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
30004 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
30005 error for -mindirect-branch/-mfunction-return with incompatible
30008 2019-02-21 Jakub Jelinek <jakub@redhat.com>
30011 * constraints.md (q): Remove.
30012 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
30015 2019-02-21 Martin Jambor <mjambor@suse.cz>
30018 * omp-general.c (omp_extract_for_data): Removed a duplicate call
30019 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
30020 (omp_adjust_for_condition): ...here. Added necessary parameters.
30021 * omp-general.h (omp_adjust_for_condition): Updated declaration.
30022 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
30023 proper values to new parameters of omp_adjust_for_condition.
30025 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30027 PR middle-end/89412
30028 * expr.c (expand_assignment): If result is a MEM, use change_address
30029 instead of simplify_gen_subreg.
30031 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30032 David Malcolm <dmalcolm@redhat.com>
30034 PR middle-end/89091
30035 * fold-const.c (decode_field_reference): Return NULL_TREE if
30036 lang_hooks.types.type_for_size returns NULL. Check it before
30037 overwriting *exp_. Use return NULL_TREE instead of return 0.
30039 2019-02-20 Jakub Jelinek <jakub@redhat.com>
30041 PR middle-end/88074
30042 PR middle-end/89415
30043 * toplev.c (do_compile): Double the emin/emax exponents to workaround
30046 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
30049 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
30050 TARGET_SSE in addition to TARGET_SSE_MATH.
30052 (ix86_excess_precision): Ditto.
30053 (ix86_float_exceptions_rounding_supported_p): Ditto.
30054 (use_rsqrt_p): Ditto.
30055 * config/i386/sse.md (rsqrt<mode>2): Ditto.
30057 2019-02-20 David Malcolm <dmalcolm@redhat.com>
30060 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
30061 linenum_arith_t when determining if two adjacent line spans are
30062 close enough to merge.
30063 (diagnostic_show_locus): Use linenum_arith_t when iterating over
30064 lines within each line_span.
30066 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
30069 * lra-constraints.c(uses_hard_regs_p): Fix handling of
30070 paradoxical SUBREGS.
30072 2019-02-20 Li Jia He <helijia@linux.ibm.com>
30075 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
30076 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
30077 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
30080 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
30082 * config/gcn/gcn.c (print_operand): Fix typo.
30084 2019-02-19 Richard Biener <rguenther@suse.de>
30086 PR middle-end/88074
30087 * toplev.c (do_compile): Initialize mpfr's exponent range
30088 based on available float modes.
30090 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
30092 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
30093 as long as the epilogue isn't completed.
30095 2019-02-18 Martin Sebor <msebor@redhat.com>
30097 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
30098 __has_cpp_attribute, and __has_include.
30100 2019-02-18 Martin Sebor <msebor@redhat.com>
30102 * doc/invoke.texi (-Wreturn-type): Correct and expand.
30104 2019-02-18 Martin Sebor <msebor@redhat.com>
30106 PR middle-end/89294
30107 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
30109 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
30111 2019-02-18 Richard Biener <rguenther@suse.de>
30113 PR tree-optimization/89296
30114 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
30115 of no-warning flag to cases that might emit the bogus warning.
30117 2019-02-18 Jakub Jelinek <jakub@redhat.com>
30120 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
30122 * config/arm/vfp.md (*movdi_vfp): Likewise.
30123 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
30124 "q" constraint for operands[0].
30127 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
30128 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
30129 pattern in a temporary buffer.
30130 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
30131 than 64-operands[2].
30134 * config/s390/s390.c (s390_indirect_branch_attrvalue,
30135 s390_indirect_branch_settings): Define unconditionally.
30136 (s390_set_current_function): Likewise, but guard the whole body except
30137 the s390_indirect_branch_settings call with
30138 #if S390_USE_TARGET_ATTRIBUTE.
30139 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
30141 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
30142 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
30143 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
30144 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
30145 HOST_WIDE_INT_1U instead of 1ULL.
30146 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
30147 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
30148 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
30149 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
30151 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
30154 2019-02-18 Martin Jambor <mjambor@suse.cz>
30156 PR tree-optimization/89209
30157 * tree-sra.c (create_access_replacement): New optional parameter
30158 reg_tree. Use it as a type if non-NULL and access type is not of
30160 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
30161 to create_access_replacement.
30162 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
30163 Check lacc is non-NULL before attempting to re-create it on the RHS.
30165 2019-02-18 Martin Liska <mliska@suse.cz>
30168 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
30170 (symbol_table::free_edge): Recycle m_summary_id.
30171 * cgraph.h (get_summary_id): New.
30172 (symbol_table::release_symbol): Set m_summary_id to -1
30174 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
30175 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
30176 function_summary to fast_function_summary.
30177 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
30178 * ipa-pure-const.c (class funct_state_summary_t):
30179 Switch from function_summary to fast_function_summary.
30180 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
30181 (class ipa_ref_opt_summary_t): Switch from function_summary
30182 to fast_function_summary.
30183 * symbol-summary.h (class function_summary_base): New class
30184 that is created from base of former function_summary.
30185 (function_summary_base::unregister_hooks): New.
30186 (class function_summary): Inherit from function_summary_base.
30187 (class call_summary_base): New class
30188 that is created from base of former call_summary.
30189 (class call_summary): Inherit from call_summary_base.
30190 (struct is_same): New.
30191 (class fast_function_summary): New summary class.
30192 (class fast_call_summary): New summary class.
30193 * vec.h (vec_safe_grow_cleared): New function.
30195 2019-02-18 Martin Liska <mliska@suse.cz>
30197 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
30198 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
30199 * doc/tm.texi: Document new target hook.
30200 * doc/tm.texi.in: Likewise.
30201 * target.def: Add new target macro.
30202 * gcc.c (find_fortran_preinclude_file): Do not search multilib
30205 2019-02-17 Alan Modra <amodra@gmail.com>
30208 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
30209 output reg on add insn.
30210 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
30212 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30215 * config/i386/sse.md (ssedoublemode): Remove V4HI.
30216 (PMULHRSW): Likewise.
30217 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
30219 (ssse3_pmulhrswv4hi3): New expander.
30221 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
30223 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
30224 MMX. Add isa attribute.
30226 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30228 PR rtl-optimization/66152
30229 * builtins.h (c_readstr): Declare.
30230 * builtins.c (c_readstr): Remove forward declaration. Add
30231 null_terminated_p argument, if false, read all bytes from the
30232 string instead of stopping after '\0'.
30233 * expr.c (string_cst_read_str): New function.
30234 (store_expr): Use string_cst_read_str instead of
30235 builtin_strncpy_read_str. Try to store by pieces the whole
30236 exp_len first, and only if that fails, split it up into
30237 store by pieces followed by clear_storage. Formatting fix.
30239 * config/i386/i386.md (*movqi_internal): Remove static from
30240 buf variable. Use output_asm_insn (buf, operands); return "";
30241 instead of return buf;.
30242 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30243 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30244 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30246 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30248 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30249 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30250 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30251 (CC1_SPEC): Likewise.
30252 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30254 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30256 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30257 the base address on 64-bit strict-alignment platforms.
30259 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30261 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30263 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30265 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30267 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30269 PR rtl-optimization/88308
30270 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30271 on copied instruction.
30273 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30275 * final.c (insn_current_reference_address): Replace test on JUMP_P
30276 with test on jump_to_label_p.
30277 * config/visium/visium-passes.def: New file.
30278 * config/visium/t-visium (PASSES_EXTRA): Define.
30279 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30280 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30281 (TRAMPOLINE_ALIGNMENT): Define.
30282 * config/visium/visium.c (visium_option_override): Do not register
30283 the machine-specific reorg pass here.
30284 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30286 (output_branch): Adjust threshold for long branch instruction.
30287 * config/visium/visium.md (cpu): Move around.
30288 (length): Adjust for the GR6.
30290 2019-02-15 Richard Biener <rguenther@suse.de>
30291 Jakub Jelinek <jakub@redhat.com>
30293 PR tree-optimization/89278
30294 * tree-loop-distribution.c: Include tree-eh.h.
30295 (generate_memset_builtin, generate_memcpy_builtin): Call
30296 rewrite_to_non_trapping_overflow on builtin->size before passing it
30297 to force_gimple_operand_gsi.
30299 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30302 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30304 * opth-gen.awk: Likewise.
30306 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30308 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30309 Enable MMX, SSE and SSE2 by default.
30310 * config/i386/i386.c (ix86_option_override_internal): Do not
30311 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30313 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30315 PR rtl-optimization/89354
30316 * combine.c (make_extraction): Punt if extraction_mode is narrower
30319 2019-02-14 Maya Rashish <coypu@sdf.org>
30321 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30322 * config/netbsd-d.c: New file.
30323 * config/t-netbsd: Add netbsd-d.o
30325 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30327 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30328 affects_type_identity to true for aarch64_vector_pcs.
30329 (aarch64_comp_type_attributes): New function.
30330 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30332 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30335 * config/arm/iterators.md (ANY64): Add V4HF.
30337 2019-02-14 Martin Liska <mliska@suse.cz>
30339 PR rtl-optimization/89242
30340 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30341 process a transformation.
30343 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30345 PR tree-optimization/89314
30346 * fold-const.c (fold_binary_loc): Cast strlen argument to
30347 const char * before dereferencing it. Formatting fixes.
30349 PR middle-end/89284
30350 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30352 2019-02-13 Ian Lance Taylor <iant@golang.org>
30354 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
30355 and set current index for other optimizations.
30357 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
30359 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
30360 nonimmediate_operand as operand 2 predicate.
30361 (vec_set<VF2_512_256:mode>_0): Ditto.
30362 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
30363 (*vec_concatv2si): Remove alternative 2.
30364 (*vec_concatv4si_0): Use vm constraint for alternative 0.
30365 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
30366 (vec_concatv2di): Split alternatives 4,5,6 to ...
30367 (*vec_concatv2di_0) ... new pattern.
30369 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
30372 * config/arm/arm.c (ldm_stm_operation_p) Set
30373 addr_reg_in_reglist correctly for first register.
30374 (load_multiple_sequence): Remove dead base check.
30375 (gen_ldm_seq): Correctly set write_back for Thumb-1.
30377 2019-02-13 Tamar Christina <tamar.christina@arm.com>
30380 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
30381 Expose as @aarch64_pred_mov.
30382 * config/aarch64/aarch64.c (aarch64_classify_address):
30383 Use expand_insn which legitimizes operands.
30385 2019-02-13 Martin Liska <mliska@suse.cz>
30387 * builtins.h (expand_builtin_with_bounds): Remove declaration.
30388 * calls.c (struct arg_data): Remove special_slot, pointer_arg
30389 and pointer_offset fields.
30390 (initialize_argument_information): Remove usage of dead
30392 * cgraph.h (struct cgraph_thunk_info): Remove
30393 add_pointer_bounds_args.
30394 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
30396 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
30398 * config/i386/i386.c (ix86_function_arg_advance): Remove
30400 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
30401 (def_builtin): Remove usage of dead fields.
30402 (ix86_add_new_builtins): Likewise.
30403 * ipa-fnsummary.c (compute_fn_summary): Likewise.
30404 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30405 (sem_function::init): Likewise.
30406 (sem_variable::merge): Likewise.
30407 * ipa-visibility.c (function_and_variable_visibility): Likewise.
30408 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
30409 * lto-cgraph.c (lto_output_node): Likewise.
30410 (lto_output_varpool_node): Likewise.
30411 (input_node): Likewise.
30412 (input_varpool_node): Likewise.
30413 * lto-streamer-out.c (lto_output): Likewise.
30414 * tree-inline.c (expand_call_inline): Remove usage of
30416 * tree-inline.h (struct copy_body_data): Likewise.
30417 * varpool.c (varpool_node::dump): Likewise.
30419 2019-02-13 Jakub Jelinek <jakub@redhat.com>
30421 PR middle-end/89303
30422 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
30423 into pt->vars_contains_escaped_heap instead of setting
30424 pt->vars_contains_escaped_heap to it.
30426 PR middle-end/89281
30427 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
30428 INTVAL (size), compare it to GET_MODE_MASK instead of
30429 1 << GET_MODE_BITSIZE.
30432 * config/i386/predicates.md (x86_64_immediate_operand): Allow
30433 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
30436 2019-02-13 Martin Liska <mliska@suse.cz>
30439 * cfgrtl.c (remove_barriers_from_footer): New function.
30440 (try_redirect_by_replacing_jump): Use it.
30441 (cfg_layout_redirect_edge_and_branch): Likewise.
30443 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30445 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
30446 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
30447 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
30448 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
30449 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
30450 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
30452 * config/rs6000/rs6000.c (builtin_function_type)
30453 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
30454 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
30455 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
30456 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
30457 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
30459 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
30461 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
30462 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
30464 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
30467 * config/i386/i386.md (*movoi_internal_avx): Revert revision
30468 268678 and revision 268657.
30469 (*movti_internal): Likewise.
30471 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
30474 * config/s390/s390.c (s390_decompose_address): Update comment.
30475 (s390_check_qrst_address): Reject invalid address forms after
30478 2019-02-12 Martin Liska <mliska@suse.cz>
30481 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
30482 we need default values of funct_state for a function that
30485 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
30487 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
30488 the object to pick the size of stores on strict-alignment platforms.
30490 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
30491 (*movdi_insn_sp32): Likewise.
30492 (*movdi_insn_sp64): Likewise.
30494 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
30497 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
30498 types that needs constructiong.
30499 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
30501 2019-02-12 Richard Biener <rguenther@suse.de>
30503 PR tree-optimization/89253
30504 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
30505 duplicate the loop.
30507 2019-02-11 David Malcolm <dmalcolm@redhat.com>
30510 * input.c (selftest::test_line_offset_overflow): New selftest.
30511 (selftest::input_c_tests): Call it.
30513 2019-02-11 Martin Sebor <msebor@redhat.com>
30515 PR tree-optimization/88771
30516 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
30517 when -Wstringop-overflow is set.
30518 (builtin_memref::builtin_memref): Adjust excessive upper bound
30519 only when lower bound is not excessive.
30520 (maybe_diag_overlap): Detect and diagnose excessive bounds via
30521 -Wstringop-ovefflow.
30522 (maybe_diag_offset_bounds): Rename...
30523 (maybe_diag_access_bounds): ...to this.
30524 (check_bounds_or_overlap): Adjust for name change above.
30526 2019-02-11 Martin Sebor <msebor@redhat.com>
30529 * builtins.c (max_object_size): Move from here...
30530 * builtins.h (max_object_size): ...and here...
30531 * tree.c (max_object_size): ...to here...
30532 * tree.h (max_object_size): ...and here.
30534 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
30536 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
30537 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
30538 for correct semantics.
30540 2019-02-11 Alan Modra <amodra@gmail.com>
30542 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
30543 -mlongcall and -mpltseq.
30544 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
30545 (RS/6000 and PowerPC Options <-mpltseq>): Document.
30546 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
30547 * config/rs6000/sysv4.opt (mpltseq): New option.
30548 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
30549 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
30550 support is lacking. Don't allow -mpltseq with -mbss-plt.
30551 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
30552 -mpltseq given for ELFv1.
30553 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
30554 Only use UNSPEC_PLTSEQ for inline PLT calls.
30555 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
30556 use UNSPEC_PLTSEQ for inline PLT calls.
30557 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
30558 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
30559 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
30560 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30561 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30562 (pltseq_mtctr_<mode>): Likewise.
30564 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30566 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
30568 * configure: Regenerate.
30570 2019-02-11 Jakub Jelinek <jakub@redhat.com>
30573 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
30576 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30578 * function.c (assign_parm_setup_block): Use the stored
30579 size, not the passed size, when allocating stack-space,
30580 also for a parameter with alignment larger than
30581 MAX_SUPPORTED_STACK_ALIGNMENT.
30583 2019-02-11 Martin Liska <mliska@suse.cz>
30586 * ipa-cp.c (build_toporder_info): Remove usage of a param.
30587 * ipa-inline.c (inline_small_functions): Likewise.
30588 * ipa-pure-const.c (propagate_pure_const): Likewise.
30589 (propagate_nothrow): Likewise.
30590 * ipa-reference.c (propagate): Likewise.
30591 * ipa-utils.c (struct searchc_env): Remove unused field.
30592 (searchc): Always search across AVAIL_INTERPOSABLE.
30593 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
30594 the only called IPA pure const can properly not propagate
30595 across interposable boundary.
30596 * ipa-utils.h (ipa_reduced_postorder): Remove param.
30598 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
30600 * config/nds32/nds32.md (call_internal, call_value_internal,
30601 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
30603 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30605 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
30608 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
30610 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
30613 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30615 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
30617 2019-02-10 Jakub Jelinek <jakub@redhat.com>
30619 PR tree-optimization/89268
30620 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
30621 if preds is non-NULL.
30623 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30626 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
30629 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30631 * config/nds32/nds32.md (trap): New pattern.
30633 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30635 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
30638 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30640 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
30643 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30645 * ipa-visibility.c (localize_node): Also do not localize
30646 LDPR_PREVAILING_DEF_IRONLY_EXP.
30648 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30651 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
30652 instead of type_with_linkage.
30654 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30657 * params.def (uninlined-function-insns, uninlined-function-time,
30658 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
30659 bound so we don't get overflows.
30661 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
30663 * config/rs6000/rs6000-string.c (expand_compare_loop,
30664 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
30667 2019-02-09 Jakub Jelinek <jakub@redhat.com>
30669 PR middle-end/89246
30670 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30671 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
30672 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
30674 2019-02-09 Alan Modra <amodra@gmail.com>
30677 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
30678 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
30681 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
30683 PR middle-end/88560
30684 * lra-constraints.c (process_alt_operands): Don't increase reject
30685 for memory when offset memory is required.
30687 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
30689 * config/s390/vector.md: Implement vector copysign.
30691 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30693 * expr.c (expand_constructor): Correct indentations.
30695 2019-02-08 Richard Biener <rguenther@suse.de>
30697 PR tree-optimization/89247
30698 * tree-if-conv.c: Include tree-cfgcleanup.h.
30699 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
30700 (tree_if_conversion): Pass through predicate vector.
30701 (pass_if_conversion::execute): Do CFG cleanup and SSA update
30702 inline, see if any if-converted loops we refrece in
30703 LOOP_VECTORIZED calls vanished and fixup.
30704 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
30706 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
30708 * config/s390/constraints.md (jdd): New constraint.
30710 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30713 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
30714 upper 16 vector registers without TARGET_AVX512VL.
30715 (*movti_internal): Likewise.
30717 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30719 PR rtl-optimization/89234
30720 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
30721 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
30722 (copy_reg_eh_region_note_backward): Likewise.
30724 2019-02-08 Richard Biener <rguenther@suse.de>
30726 PR middle-end/89223
30727 * tree-data-ref.c (initialize_matrix_A): Fail if constant
30728 doesn't fit in HWI.
30729 (analyze_subscript_affine_affine): Handle failure from
30730 initialize_matrix_A.
30732 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30734 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
30737 2019-02-07 David Malcolm <dmalcolm@redhat.com>
30739 PR tree-optimization/86637
30740 PR tree-optimization/89235
30741 * tree-vect-loop.c (optimize_mask_stores): Add an
30742 auto_purge_vect_location sentinel to ensure that vect_location is
30744 * tree-vectorizer.c
30745 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
30746 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
30747 to ensure that vect_location is purged on exit.
30748 (pass_slp_vectorize::execute): Likewise, replacing the manual
30750 * tree-vectorizer.h (class auto_purge_vect_location): New class.
30752 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30754 * config/aarch64/iterators.md (max_opp): New code_attr.
30755 (USMAX): New code iterator.
30756 * config/aarch64/predicates.md (aarch64_smin): New predicate.
30757 (aarch64_smax): Likewise.
30758 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
30759 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
30762 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
30765 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
30766 for TARGET_AVX512VL.
30767 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
30769 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
30771 * config/s390/s390-builtin-types.def: Add new types.
30772 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
30773 (s390_vec_xlw4): Make the memory operand into a const pointer.
30774 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
30776 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
30777 a new vector type with the alignment of the scalar memory operand.
30779 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
30780 Jakub Jelinek <jakub@redhat.com>
30783 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
30784 arm_count_ldrdstrd_insns): New declarations.
30785 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
30787 (valid_operands_ldrd_strd): New function.
30788 (arm_count_ldrdstrd_insns): New function.
30789 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
30790 sets instead of single DImode set and define new insns to match this.
30792 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30794 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
30795 Make it a C initializer.
30797 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30800 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
30802 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30804 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
30805 Use neon_dot<q> for type.
30806 (neon_<sup>dot_lane<vsi2qi>): Likewise.
30808 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30810 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
30811 Use neon_dot<q> for type.
30812 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
30813 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30815 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30817 PR rtl-optimization/89225
30818 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30821 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30823 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30824 after restoring registers saved to allocate the frame on Windows.
30826 2019-02-06 Richard Biener <rguenther@suse.de>
30828 PR tree-optimization/89182
30829 * graphite.h (cached_scalar_evolution_in_region): Declare.
30830 * graphite.c (struct seir_cache_key): New.
30831 (struct sese_scev_hash): Likewise.
30832 (seir_cache): New global.
30833 (cached_scalar_evolution_in_region): New function.
30834 (graphite_transform_loops): Allocate and release seir_cache.
30835 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30836 cached_scalar_evolution_in_region.
30837 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30839 (scop_detection::graphite_can_represent_expr: Use
30840 cached_scalar_evolution_in_region.
30841 (scop_detection::stmt_simple_for_scop_p): Likewise.
30842 (find_params_in_bb): Likewise.
30843 (gather_bbs::before_dom_children): Likewise.
30844 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30845 (add_loop_constraints): Likewise.
30847 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30849 PR middle-end/89210
30850 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30851 operand to new_unary_operation only if both element types are integral
30852 and it isn't a widening conversion. Return NULL_TREE if
30853 new_unary_operation failed.
30855 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30858 * config/s390/s390.md: Remove load and test FP splitter.
30860 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30863 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30864 expand_compare_loop, expand_block_compare_gpr,
30865 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30866 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30867 #include "profile-count.h" and "predict.h" for types and functions
30868 needed to work with REG_BR_PROB notes.
30870 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30873 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30874 for the long branch case.
30876 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30879 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30880 can throw, non-call exceptions are enabled and we can't delete
30881 dead exceptions or alter cfg. Set must_clean if
30882 delete_insn_and_edges returns true, don't set it blindly for calls.
30883 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30885 PR rtl-optimization/89195
30886 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30887 of the original MEM.
30889 2019-02-05 Martin Liska <mliska@suse.cz>
30891 PR gcov-profile/89000
30892 * gcov.c (function_summary): Remove argument.
30893 (file_summary): New function.
30894 (print_usage): Replace tabs with spaces.
30895 (generate_results): Use new function file_summary.
30897 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30900 * optabs.c (prepare_cmp_insn): Pass x and y to
30901 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30903 2019-02-05 Richard Biener <rguenther@suse.de>
30905 PR middle-end/89150
30906 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30907 (struct bitmap_element): Drop chain_prev so we properly recurse on
30908 the prev member, supporting tree views.
30909 (struct bitmap_head): GTY skip the obstack member.
30911 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30914 * doc/extend.texi (Vector Extensions): Add an example of using vector
30915 types together with x86 intrinsics.
30917 2019-02-04 Alan Modra <amodra@gmail.com>
30919 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30920 str[] size to 160, and comment.
30922 2019-02-04 Alan Modra <amodra@gmail.com>
30924 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30925 (rs6000_pltseq_template): Guard output of TLS markers with
30926 TARGET_TLS_MARKERS.
30927 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30928 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30929 to use inline PLT sequences.
30930 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30931 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30932 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30934 2019-02-04 Martin Liska <mliska@suse.cz>
30937 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30938 out when ipa_fn_summaries does not contain entry for callee.
30940 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30942 * config/sparc/sparc.h: Remove superfluous blank lines.
30943 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30944 (got_register_rtx): ...this.
30945 (sparc_got): Adjust to above renaming.
30946 (sparc_tls_got): Likewise.
30947 (sparc_delegitimize_address): Likewise.
30948 (sparc_output_mi_thunk): Likewise.
30949 (sparc_init_pic_reg): Likewise.
30950 (save_local_or_in_reg_p): Fix test on the GOT register.
30951 (USE_HIDDEN_LINKONCE): Move around.
30952 (get_pc_thunk_name): Likewise.
30953 (gen_load_pcrel_sym): Likewise.
30954 (load_got_register): Likewise.
30956 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30958 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30959 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30961 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30963 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30964 into consideration.
30966 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30968 * config.gcc (with_nds32_lib, glibc):
30969 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30970 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30971 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30973 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30976 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30977 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30978 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30979 (*rcpsf2_sse): Ditto.
30980 (*rsqrtsf2_sse): Ditto.
30981 (sse4_1_round<mode<2): Ditto.
30983 2019-02-03 Richard Biener <rguenther@suse.de>
30986 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30989 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30991 PR middle-end/87887
30992 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30993 Punt with warning on aggregate return or argument types. Ignore
30994 type/mode checking for uniform arguments.
30996 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30998 * combine.c (try_combine): Do not print "Can't combine" messages unless
30999 printing failed combination attempts.
31001 2019-02-01 Martin Jambor <mjambor@suse.cz>
31004 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
31005 segment and global segment variables before making them static.
31007 2019-02-01 Martin Jambor <mjambor@suse.cz>
31009 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
31010 missed optimization dump with dump_enabled_p.
31012 2019-02-01 Richard Biener <rguenther@suse.de>
31014 PR middle-end/88597
31015 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
31016 the instantiate cache.
31017 (instantiate_scev_binary): Elide second operand procesing
31018 if equal to the first.
31019 * tree-chrec.c (chrec_contains_symbols): Add visited set.
31020 (chrec_contains_undetermined): Likewise.
31021 (tree_contains_chrecs): Likewise.
31023 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
31025 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
31027 2019-02-01 Jakub Jelinek <jakub@redhat.com>
31029 PR tree-optimization/89143
31030 * wide-int-range.h (wide_int_range_absu): Declare.
31031 * wide-int-range.cc (wide_int_range_absu): New function.
31032 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
31034 PR tree-optimization/88107
31035 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
31036 instead of assertion that eh_region_outermost is non-NULL, if it
31037 is NULL, set *ALL to true and return NULL.
31038 (move_sese_region_to_fn): Adjust caller, if all is set, call
31039 duplicate_eh_regions with NULL region.
31041 2019-02-01 Richard Biener <rguenth@suse.de>
31043 PR rtl-optimization/88593
31044 * mode-switching.c (optimize_mode_switching): Free dominators before
31045 calling cleanup_cfg.
31047 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
31049 PR tree-optimization/88932
31050 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
31052 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31054 PR middle-end/89137
31055 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
31056 bogus clang warning.
31058 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
31061 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
31062 alternative to avoid partial SSE register stall for TARGET_AVX.
31063 (truncdfsf2): Ditto.
31064 (sse4_1_round<mode>2): Ditto.
31066 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
31068 PR tree-optimization/89008
31069 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
31070 process anything of the form X * 0.
31072 2019-01-31 Richard Biener <rguenther@suse.de>
31074 PR tree-optimization/89135
31075 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
31076 with abnormal preds.
31078 2019-01-31 Jakub Jelinek <jakub@redhat.com>
31081 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
31082 always_inline callees into no_sanitize_address callers.
31084 2019-01-31 Richard Biener <rguenther@suse.de>
31086 PR rtl-optimization/89115
31087 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
31089 2019-01-30 Martin Sebor <msebor@redhat.com>
31092 * doc/extend.texi (cast to a union): Correct and expand.
31094 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
31096 PR rtl-optimization/87246
31097 * lra-constraints.c (simplify_operand_subreg): Reload memory
31098 in subreg if the address became invalid.
31100 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
31103 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
31104 Disable for little-endian.
31106 2019-01-30 Richard Biener <rguenther@suse.de>
31108 PR rtl-optimization/89115
31109 * opts.c (default_options_optimization): Reduce
31110 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
31111 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
31114 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
31116 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
31117 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
31118 type of vector element when vec_extract is implemented by direct
31121 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
31123 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
31125 2019-01-30 Richard Biener <rguenther@suse.de>
31127 PR tree-optimization/89111
31128 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
31129 canonicalization to appropriately sized access types.
31131 2019-01-30 Jakub Jelinek <jakub@redhat.com>
31134 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
31135 for arguments to functions that are TU-local and shouldn't be
31136 referenced by assembly.
31138 2019-01-30 Ulrich Drepper <drepper@redhat.com>
31140 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
31143 2019-01-29 Martin Sebor <msebor@redhat.com>
31146 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
31148 2019-01-29 Jakub Jelinek <jakub@redhat.com>
31152 * omp-simd-clone.c (simd_clone_clauses_extract)
31153 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
31154 OMP_CLAUSE_ALIGNED_ALIGNMENT.
31156 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
31158 * config.gcc: Force .init_array for ARC.
31160 2019-01-29 Richard Biener <rguenther@suse.de>
31163 * dwarf2out.c (collect_skeleton_dies): New helper.
31164 (copy_decls_for_unworthy_types): Call it.
31165 (build_abbrev_table): Assert we do not try to replace
31166 DW_AT_signature refs with local refs.
31168 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31170 PR middle-end/89002
31171 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
31172 for lastprivate/linear IV, push gimplify context around gimplify_assign
31173 and, if it needed any temporaries, pop it into a gimple bind around the
31176 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
31178 * common.opt (-Wattribute-alias): Remove "no-" from name.
31179 Make -Wattribute-alias command line option and
31180 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
31182 2019-01-28 Jakub Jelinek <jakub@redhat.com>
31185 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
31186 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
31188 (bmi2): Add missing @opindex.
31189 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
31190 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
31191 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
31192 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
31193 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
31194 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
31195 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
31196 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
31197 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
31198 xsavec, xsaveopt and xsaves options.
31200 2019-01-28 Richard Biener <rguenther@suse.de>
31203 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
31206 2019-01-28 Richard Biener <rguenther@suse.de>
31208 PR tree-optimization/88739
31209 * tree-cfg.c (verify_types_in_gimple_reference): Verify
31210 BIT_FIELD_REFs only are applied to mode-precision operands
31211 when they are integral.
31212 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
31213 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
31214 BIT_FIELD_REFs of non-mode-precision integral operands.
31216 2019-01-27 Jakub Jelinek <jakub@redhat.com>
31219 * config/i386/sse.md
31220 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
31221 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
31222 first constants in pairs are multiples of 2. Formatting fixes.
31223 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
31224 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
31225 first constants in each quadruple are multiples of 4. Formatting fixes.
31227 2019-01-26 Martin Jambor <mjambor@suse.cz>
31230 * tree-inline.c: Include tree-cfgcleanup.h.
31231 (delete_unreachable_blocks_update_callgraph): Move...
31232 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31233 ...here, make externally visible, make second argument bool, adjust
31235 * tree-cfgcleanup.c: Include cgraph.h.
31236 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31238 * ipa-prop.c: Include tree-cfgcleanup.h.
31239 (ipcp_transform_function): Call
31240 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31242 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31244 PR rtl-optimization/88846
31245 * ira.c (process_set_for_memref_referenced_p): New.
31246 (memref_referenced_p): Add new param. Use
31247 process_set_for_memref_referenced_p. Add new switch cases.
31248 (memref_used_between_p): Pass new arg to memref_referenced_p.
31250 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31253 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31254 argument ABI_BREAK. Set to true if the calculated alignment has
31255 changed in gcc-9. Check bit-fields for their base type alignment.
31256 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31257 (aarch64_function_arg_boundary): Likewise.
31258 (aarch64_gimplify_va_arg_expr): Likewise.
31260 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31262 PR middle-end/89037
31263 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31264 instead of accessing TREE_INT_CST_ELT directly.
31266 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31268 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31269 fenv_exceptions description.
31271 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31273 PR rtl-optimization/87763
31274 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31275 Allow SUBREG when matching CC_NZmode compare.
31277 2019-01-25 Richard Biener <rguenther@suse.de>
31279 PR tree-optimization/89049
31280 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31281 Look at the pattern stmt to determine if the stmt is vectorized.
31283 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31285 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31286 (pred_mov<mode>): Handle all-register forms using both a new
31287 alternative and a split.
31289 2019-01-25 Richard Biener <rguenther@suse.de>
31291 PR tree-optimization/86865
31292 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31293 Reject non-do-while loops.
31295 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31297 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31298 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31299 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31300 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31301 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31302 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31303 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31304 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31305 vlogical_operand, gpc_reg_operand, int_reg_operand,
31306 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31307 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31308 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31309 (save_world_operation, restore_world_operation, lmw_operation,
31310 stmw_operation): Use MEM_P and REG_P.
31311 (tie_operand): Use MEM_P.
31312 (vrsave_operation, crsave_operation): Use REG_P.
31313 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31314 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31315 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31316 (call_operand): Use HARD_REGISTER_P.
31317 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31319 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31320 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31321 quad_aligned_load_p, replace_swapped_aligned_store,
31322 recombine_lvx_pattern, replace_swapped_aligned_load,
31323 recombine_stvx_pattern): Use MEM_P.
31324 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31325 Use MEM_P and SYMBOL_REF_P.
31326 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31327 (insn_is_swappable_p): Use REG_P and MEM_P.
31328 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31329 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31331 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31332 Use CONST_DOUBLE_P.
31333 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31335 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31336 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31337 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31338 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31340 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31341 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31342 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31343 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31344 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31345 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31346 rs6000_split_logical_di): Use CONST_INT_P.
31347 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31348 REG_P and SYMBOL_REF_P.
31349 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31350 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31351 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
31352 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
31353 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
31354 (small_data_operand, print_operand_address): Use CONST_INT_P and
31356 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
31357 (rs6000_init_hard_regno_mode_ok, direct_move_p):
31358 Use HARD_REGISTER_NUM_P.
31359 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
31360 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
31361 SUBREG_P and SYMBOL_REF_P.
31362 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
31363 and HARD_REGISTER_NUM_P.
31364 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
31366 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
31367 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
31369 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
31370 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
31371 find_addr_reg): Use REG_P.
31372 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
31373 (rs6000_emit_le_vsx_move): Use SUBREG_P.
31374 (offsettable_ok_by_alignment, constant_pool_expr_p,
31375 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
31376 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
31377 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
31378 rs6000_assemble_integer, create_TOC_reference,
31379 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
31380 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
31381 (rs6000_split_vec_extract_var): Use reg_or_subregno.
31382 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31383 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31384 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31385 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31386 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
31387 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
31388 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
31389 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
31390 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
31391 and cbranch<mode>4): Use CONST_INT_P.
31392 (multiple define_splits): Use REG_P and SUBREG_P.
31393 (define_expands call, call_value): Use MEM_P.
31394 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
31395 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
31396 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
31397 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
31398 and HARD_REGISTER_NUM_P.
31399 (multiple define_splits): Use HARD_REGISTER_NUM_P.
31401 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
31403 PR rtl-optimization/88948
31404 * rtl.h (prepare_copy_insn): New prototype.
31405 * gcse.c (prepare_copy_insn): New function, split out from
31406 process_insert_insn.
31407 (process_insert_insn): Use prepare_copy_insn.
31408 * store-motion.c (replace_store_insn): Use prepare_copy_insn
31409 instead of gen_move_insn.
31411 2019-01-24 Jakub Jelinek <jakub@redhat.com>
31414 * config/i386/i386.c (ix86_pic_register_p): Return true for
31415 UNSPEC_SET_GOT too.
31417 PR tree-optimization/88964
31418 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
31419 punt if HONOR_SNANS (chrec).
31421 PR middle-end/89015
31422 * tree-nested.c (convert_nonlocal_reference_stmt,
31423 convert_local_reference_stmt, convert_tramp_reference_stmt,
31424 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
31425 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
31426 or GIMPLE_OMP_TASK.
31428 PR tree-optimization/89027
31429 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
31430 for "omp simd array" variables.
31432 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
31435 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
31436 force the alignment of m_val.
31438 2019-01-24 Richard Biener <rguenther@suse.de>
31441 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
31442 When in "legacy" debug mode make sure to reset self-origins.
31444 2019-01-24 Martin Liska <mliska@suse.cz>
31446 PR gcov-profile/88994
31447 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
31448 result will be always smaller or equal to the original.
31449 * gcov.c (mangle_name): Fix else branch where we should
31450 also copy to PTR and shift the pointer.
31452 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31454 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
31455 * vr-values.c (find_case_label_ranges): Fix a comment typo.
31457 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
31459 * common/config/i386/i386-common.c
31460 (OPTION_MASK_ISA_ENQCMD_SET,
31461 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
31462 (ix86_handle_option): Handle -menqcmd.
31463 * config.gcc (enqcmdintrin.h): New header file.
31464 * config/i386/cpuid.h (bit_ENQCMD): New bit.
31465 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
31467 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
31469 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
31470 __builtin_ia32_enqcmds): New builtins.
31471 * config/i386/i386-c.c (__ENQCMD__): New macro.
31472 * config/i386/i386-option.c (ix86_target_string): Add
31474 (ix86_valid_target_attribute_inner_p): Likewise.
31475 * config/i386/i386-expand.c
31476 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
31477 IX86_BUILTIN_ENQCMDS.
31478 * config/i386/i386.h (TARGET_ENQCMD): New.
31479 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
31480 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
31481 (movdir64b_<mode>): Parameterize to enable share expansion code
31482 with ENQCMD in function ix86_expand_builtin.
31483 * config/i386/i386.opt: Add -menqcmd.
31484 * config/i386/immintrin.h: Include enqcmdintrin.h.
31485 * config/i386/enqcmdintrin.h: New intrinsic file.
31486 * doc/invoke.texi: Add -menqcmd.
31488 2019-01-23 Bin Cheng <bin.cheng@arm.com>
31489 Steve Ellcey <sellcey@marvell.com>
31492 * recog.c (address_operand): Return false on wrong mode for address.
31493 (constrain_operands): Check for mode with 'p' constraint.
31495 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
31498 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
31499 Disparage MMX alternative.
31500 (sse2_cvtpd2pi): Ditto.
31501 (sse2_cvttpd2pi): Ditto.
31503 2019-01-23 David Malcolm <dmalcolm@redhat.com>
31506 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
31507 use-after-free of the result of
31508 aarch64_get_extension_string_for_isa_flags.
31510 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31513 * doc/extend.texi: Document break and continue behavior in
31514 statement expressions.
31516 2019-01-23 Richard Biener <rguenther@suse.de>
31518 PR tree-optimization/89008
31519 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
31520 not leave another stray operand.
31522 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31524 * BASE-VER: Bump to 9.0.1.
31526 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
31528 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
31529 thunk that returns by reference, use the type of the return object
31530 of the thunk instead of that of the alias to build the dereference.
31532 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
31534 * config/arc/atomic.md: Add operand to DMB instruction.
31536 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31538 PR tree-optimization/88964
31539 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
31540 build_zero_cst instead of build_int_cst. Return false for loop
31541 invariants which honor signed zeros.
31543 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
31545 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
31547 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31550 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
31551 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
31552 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
31554 PR middle-end/88968
31555 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
31556 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
31559 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
31560 Disable for little endian.
31562 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31565 * config/arm/arm.c (arm_needs_double_word_align): Check
31566 DECL_BIT_FIELD_TYPE.
31568 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
31569 H.J. Lu <hongjiu.lu@intel.com>
31572 * config/i386/i386-builtin.def: Add mask2 to all builtin
31573 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
31575 * config/i386/i386.c (BDESC): Add mask2 to the definition.
31576 (BDESC_FIRST): Likewise.
31577 (define_builtin): Add an argument for mask2. Updated to handle
31578 both ix86_isa_flags and ix86_isa_flags2.
31579 (define_builtin_const): Likewise.
31580 (define_builtin_pure): Likewise.
31581 (define_builtin2): Deleted.
31582 (define_builtin_const2): Likewise.
31583 (builtin_description): Add a member, mask2.
31584 (bdesc_*): Add mask2 to builtin initializations.
31585 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
31586 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
31588 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
31590 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
31593 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
31596 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31599 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
31600 alignment is dominated by a bitfield with 64-bit aligned base type.
31601 (arm_function_arg): Emit a warning if the alignment has changed since
31602 earlier GCC releases.
31603 (arm_function_arg_boundary): Likewise.
31604 (arm_setup_incoming_varargs): Likewise.
31606 2019-01-22 Richard Biener <rguenther@suse.de>
31608 PR tree-optimization/88862
31609 * graphite-scop-detection.c
31610 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
31612 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
31614 * doc/extend.tex (AMD GCN Function Attributes): New section.
31615 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
31616 * doc/invoke.texi (AMD GCN Options): New section.
31617 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
31619 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
31621 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
31622 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
31624 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31626 PR tree-optimization/88044
31627 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
31628 is false in the first iteration, but !every_iteration, return false
31629 instead of true with niter->niter zero.
31631 PR rtl-optimization/88904
31632 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
31633 any nonequal registers before processing BB_END (b).
31636 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
31638 (expand_binop_directly, expand_doubleword_clz,
31639 expand_doubleword_popcount, expand_ctz, expand_ffs,
31640 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
31642 PR rtl-optimization/49429
31644 PR rtl-optimization/86334
31646 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
31647 addressable from here...
31648 (emit_block_op_via_libcall): ... to here.
31650 2019-01-22 Richard Biener <rguenther@suse.de>
31652 * tree-vect-loop.c (vect_analyze_loop_operations): Use
31653 auto_vec for cost vector to fix memleak.
31654 (vectorize_fold_left_reduction): Properly gather SLP defs.
31655 (vectorizable_comparison): Do not swap operands to properly
31658 2019-01-22 Alan Modra <amodra@gmail.com>
31661 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
31662 stays a reg. Allow a const_int.
31663 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
31664 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
31665 (IS_NOMARK_TLSGETADDR): Define.
31666 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
31667 (rs6000_output_tlsargs): New function.
31668 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
31669 __tls_get_addr call takes an arg.
31670 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
31671 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
31673 (call_value_nonlocal_sysv): ..or here, delete split.
31674 (tls_gdld_nomark): Delete.
31675 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
31676 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
31677 (call_value_nonlocal_sysv): Likewise.
31678 (call_value_nonlocal_sysv_secure): Likewise.
31679 (call_value_nonlocal_aix): Likewise.
31680 (call_value_indirect_aix): Likewise.
31681 (call_value_indirect_elfv2): Likewise.
31682 (call_value_local32, call_value_local64): Disable for no-mark tls.
31683 (call_value_local_aix): Likewise.
31685 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
31688 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
31689 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
31691 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
31693 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
31694 string contents as hash_map keys.
31696 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31699 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
31700 for rvalue context. Handle rvalues correctly. Use min_align_of_type
31701 instead of TYPE_ALIGN.
31702 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
31703 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
31704 pointer from TYPE_STUB_DECL.
31706 2019-01-21 Richard Biener <rguenther@suse.de>
31708 PR tree-optimization/88934
31709 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
31710 at the possibly non-constant operand.
31711 (vect_get_constant_vectors): Adjust.
31713 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
31716 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
31717 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
31718 instead of _X86INTRIN_H_INCLUDED.
31719 * onfig/i386/clwbintrin.h: Likewise.
31720 * config/i386/pkuintrin.h: Likewise.
31721 * config/i386/prfchwintrin.h: Likewise.
31722 * config/i386/rdseedintrin.h: Likewise.
31723 * config/i386/wbnoinvdintrin.h: Likewise.
31724 * config/i386/xsavecintrin.h: Likewise.
31725 * config/i386/xsavesintrin.h: Likewise.
31726 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
31727 * config/i386/xsaveintrin.h: Likewise.
31728 * config/i386/xsaveoptintrin.h: Likewise.
31729 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
31730 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
31731 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
31732 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
31733 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
31734 * config/i386/immintrin.h: Here.
31736 2019-01-20 Martin Jambor <mjambor@suse.cz>
31739 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
31740 with aa_walk_budget.
31741 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
31742 aa_walk_budget_p parameter.
31743 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
31744 walk. Updated all callers.
31745 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
31746 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
31748 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
31749 parameter info. Extract info from fbi. Pass fbi to recursive calls
31750 and to unmodified_parm.
31751 (phi_result_unknown_predicate): New parameter fbi, removed parameter
31752 info, updated call to will_be_nonconstant_expr_predicate.
31753 (param_change_prob): New parameter fbi, limit AA walking.
31754 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
31755 calls to various above functions.
31756 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
31757 parameter. Use it to limit AA walking.
31758 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
31759 fbi, limit AA walk.
31760 (detect_type_change): New parameter fbi, pass it on to
31761 detect_type_change_from_memory_writes.
31762 (detect_type_change_ssa): Likewise.
31763 (aa_overwalked): Removed.
31764 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
31765 accordingly, adjust to the neew AA limiting scheme.
31766 (parm_ref_data_preserved_p): Likewise.
31767 (ipa_compute_jump_functions_for_edge): Adjust call to
31769 (ipa_analyze_call_uses): Likewise.
31770 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
31771 (ipa_analyze_node): Initialize aa_walk_budget.
31772 (ipcp_transform_function): Likewise.
31773 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
31774 to get_dynamic_type.
31776 2019-01-19 Jakub Jelinek <jakub@redhat.com>
31778 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
31779 outside of #if CHECKING_P code.
31781 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
31783 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
31784 New function, split out from...
31785 (loop_versioning::analyze_stride): ...here.
31786 (loop_versioning::find_per_loop_multiplication): Use gassign.
31787 (loop_versioning::analyze_term_using_scevs): Return a success code.
31788 (loop_versioning::analyze_arbitrary_term): New function.
31789 (loop_versioning::analyze_address_fragment): Use
31790 analyze_arbitrary_term if all else fails.
31792 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
31795 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
31798 2019-01-18 Richard Biener <rguenther@suse.de>
31800 PR tree-optimization/88903
31801 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
31802 scalar stmts a SLP shift amount is composed of when detecting
31805 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
31808 * config/arm/arm-cpus.in (mp): New feature.
31809 (sec): New feature.
31810 (fgroup ARMv7ve): Add mp and sec features.
31811 (arch armv7-a): Add options to allow mp and sec extensions.
31812 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
31813 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
31814 extenstions to the base architecture.
31815 (cpu cortex-a8): Add sec extension to the base architecture.
31816 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31817 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31818 variants down to the base v7-a varaint.
31819 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31820 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31821 of permitted extensions for -march=armv7-a and for
31822 -mcpu=generic-armv7-a.
31824 2019-01-18 Martin Liska <mliska@suse.cz>
31826 * params.def: Fix comment.
31827 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31829 (gimple_gen_ic_func_profiler): Likewise.
31831 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31833 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31834 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31835 and put in error checks for stack protector guard options.
31836 (aarch64_stack_protect_guard): New.
31837 (TARGET_STACK_PROTECT_GUARD): Define.
31838 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31839 (reg_stack_protect_address<mode>): New.
31840 (stack_protect_set): Adjust for SSP_GLOBAL.
31841 (stack_protect_test): Likewise.
31842 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31843 (-mstack-protector-guard): Likewise.
31844 (-mstack-protector-guard-offset): Likewise.
31846 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31848 PR tree-optimization/86214
31849 * tree-inline.h (struct copy_body_data): Add
31850 add_clobbers_to_eh_landing_pads member.
31851 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31852 (copy_edges_for_bb): Call it if EH edge destination is <
31853 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31854 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31855 if flag_stack_reuse != SR_NONE and clear it afterwards.
31857 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31860 * doc/install.texi (with-multilib-list): Document for aarch64.
31862 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31865 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31866 (("..."))) with ("...").
31868 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31870 * doc/extend.texi (Built-in Functions for Memory Model Aware
31871 Atomic Operations): Document atomic fetch and nand.
31873 2019-01-18 Martin Liska <mliska@suse.cz>
31874 Richard Biener <rguenther@suse.de>
31876 PR middle-end/88587
31877 * cgraph.h (create_version_clone_with_body): Add new argument
31879 * cgraphclones.c (cgraph_node::create_version_clone): Add
31880 DECL_ATTRIBUTES to a newly created decl. And call
31881 valid_attribute_p so that proper cl_target_optimization_node
31882 is set for the newly created declaration.
31883 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31885 (expand_target_clones): Do not call valid_attribute_p, it must
31887 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31890 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31893 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31894 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31895 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31897 2019-01-17 Martin Sebor <msebor@redhat.com>
31899 PR middle-end/88273
31900 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31901 Handle anti-ranges the same as no range at all.
31903 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31905 * config/aarch64/aarch64.c (cgraph.h): New include.
31906 (intl.h): New include.
31907 (supported_simd_type): New function.
31908 (currently_supported_simd_type): Ditto.
31909 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31910 (aarch64_simd_clone_adjust): Ditto.
31911 (aarch64_simd_clone_usable): Ditto.
31912 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31913 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31914 (TARGET_SIMD_CLONE_USABLE): Ditto.
31915 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31916 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31919 2019-01-17 Martin Sebor <msebor@redhat.com>
31921 PR tree-optimization/88800
31922 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31923 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31924 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31925 redundant argument. Add new argument and issue diagnostics under
31926 its control. Detect out-of-bounds access even with warnings
31928 (check_bounds_or_overlap): Change return type. Add argument.
31929 (wrestrict_dom_walker::check_call): Adjust.
31930 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31931 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31932 check_bounds_or_overlap's return value.
31933 (handle_builtin_stxncpy): Same.
31934 (handle_builtin_strcat): Same.
31936 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31937 Kwok Cheung Yeung <kcy@codesourcery.com>
31938 Julian Brown <julian@codesourcery.com>
31939 Tom de Vries <tom@codesourcery.com>
31941 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31943 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31945 * doc/sourcebuild.texi: Document dg-require-effective-target
31946 llvm_binutils and offload_gcn.
31948 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31949 Kwok Cheung Yeung <kcy@codesourcery.com>
31950 Julian Brown <julian@codesourcery.com>
31951 Tom de Vries <tom@codesourcery.com>
31953 * doc/sourcebuild.texi: Document dg-required-effective-target
31956 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31957 Kwok Cheung Yeung <kcy@codesourcery.com>
31958 Julian Brown <julian@codesourcery.com>
31959 Tom de Vries <tom@codesourcery.com>
31960 Jan Hubicka <hubicka@ucw.cz>
31961 Martin Jambor <mjambor@suse.cz>
31963 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31964 * configure.ac: Check for dlopen.
31965 * configure: Regenerate.
31967 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31968 Kwok Cheung Yeung <kcy@codesourcery.com>
31969 Julian Brown <julian@codesourcery.com>
31970 Tom de Vries <tom@codesourcery.com>
31971 Jan Hubicka <hubicka@ucw.cz>
31972 Martin Jambor <mjambor@suse.cz>
31974 * common/config/gcn/gcn-common.c: New file.
31975 * config/gcn/driver-gcn.c: New file.
31976 * config/gcn/gcn-builtins.def: New file.
31977 * config/gcn/gcn-hsa.h: New file.
31978 * config/gcn/gcn-modes.def: New file.
31979 * config/gcn/gcn-opts.h: New file.
31980 * config/gcn/gcn-passes.def: New file.
31981 * config/gcn/gcn-protos.h: New file.
31982 * config/gcn/gcn-run.c: New file.
31983 * config/gcn/gcn-tree.c: New file.
31984 * config/gcn/gcn.c: New file.
31985 * config/gcn/gcn.h: New file.
31986 * config/gcn/gcn.opt: New file.
31987 * config/gcn/t-gcn-hsa: New file.
31989 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31990 Kwok Cheung Yeung <kcy@codesourcery.com>
31991 Julian Brown <julian@codesourcery.com>
31992 Tom de Vries <tom@codesourcery.com>
31993 Jan Hubicka <hubicka@ucw.cz>
31994 Martin Jambor <mjambor@suse.cz>
31996 * config/gcn/constraints.md: New file.
31997 * config/gcn/gcn-valu.md: New file.
31998 * config/gcn/gcn.md: New file.
31999 * config/gcn/predicates.md: New file.
32001 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
32003 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
32004 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
32005 (stmt_uses_0_or_null_in_undefined_way): Likewise.
32006 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
32008 2019-01-17 Tamar Christina <tamar.christina@arm.com>
32011 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
32012 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
32013 it and document registers.
32015 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32017 * config/aarch64/aarch64.c (ares_tunings): Define.
32018 * config/aarch64/aarch64-cores.def (ares): Use the above.
32020 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32024 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
32026 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
32027 (_mm512_fixupimm_round_pd): Update parameters and builtin.
32028 (_mm512_maskz_fixupimm_round_pd): Ditto.
32029 (_mm512_fixupimm_round_ps): Ditto.
32030 (_mm512_maskz_fixupimm_round_ps): Ditto.
32031 (_mm_fixupimm_round_sd): Ditto.
32032 (_mm_maskz_fixupimm_round_sd): Ditto.
32033 (_mm_fixupimm_round_ss): Ditto.
32034 (_mm_maskz_fixupimm_round_ss): Ditto.
32035 (_mm512_fixupimm_pd): Ditto.
32036 (_mm512_maskz_fixupimm_pd): Ditto.
32037 (_mm512_fixupimm_ps): Ditto.
32038 (_mm512_maskz_fixupimm_ps): Ditto.
32039 (_mm_fixupimm_sd): Ditto.
32040 (_mm_maskz_fixupimm_sd): Ditto.
32041 (_mm_fixupimm_ss): Ditto.
32042 (_mm_maskz_fixupimm_ss): Ditto.
32043 (_mm512_mask_fixupimm_round_pd): Update builtin.
32044 (_mm512_mask_fixupimm_round_ps): Ditto.
32045 (_mm_mask_fixupimm_round_sd): Ditto.
32046 (_mm_mask_fixupimm_round_ss): Ditto.
32047 (_mm512_mask_fixupimm_pd): Ditto.
32048 (_mm512_mask_fixupimm_ps): Ditto.
32049 (_mm_mask_fixupimm_sd): Ditto.
32050 (_mm_mask_fixupimm_ss): Ditto.
32051 * config/i386/avx512vlintrin.h:
32052 (_mm256_fixupimm_pd): Update parameters and builtin.
32053 (_mm256_maskz_fixupimm_pd): Ditto.
32054 (_mm256_fixupimm_ps): Ditto.
32055 (_mm256_maskz_fixupimm_ps): Ditto.
32056 (_mm_fixupimm_pd): Ditto.
32057 (_mm_maskz_fixupimm_pd): Ditto.
32058 (_mm_fixupimm_ps): Ditto.
32059 (_mm_maskz_fixupimm_ps): Ditto.
32060 (_mm256_mask_fixupimm_pd): Update builtin.
32061 (_mm256_mask_fixupimm_ps): Ditto.
32062 (_mm_mask_fixupimm_pd): Ditto.
32063 (_mm_mask_fixupimm_ps): Ditto.
32064 * config/i386/i386-builtin-types.def: Add new types and remove
32066 * config/i386/i386-builtin.def: Update builtin definitions.
32067 * config/i386/i386.c: Handle new builtin types and remove useless ones.
32068 * config/i386/sse.md: Update VFIXUPIMM* patterns.
32069 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32070 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32071 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
32072 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32073 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32074 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
32075 * config/i386/subst.md:
32076 (round_saeonly_sd_mask_operand4): Add new subst_attr.
32077 (round_saeonly_sd_mask_op4): Ditto.
32078 (round_saeonly_expand_operand5): Ditto.
32079 (round_saeonly_expand): Update.
32081 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32085 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
32087 * config/i386/sse.md: Combine VFIXUPIMM* patterns
32088 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32089 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32090 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
32091 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
32092 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
32093 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
32095 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
32099 2018-12-15 Jakub Jelinek <jakub@redhat.com>
32102 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
32103 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
32104 instead of UNSPEC_FIXUPIMM.
32106 2019-01-17 Richard Biener <rguenther@suse.de>
32109 * dwarf2out.c (want_pubnames): Never generate pubnames sections
32110 and friends for the LTO part of debug info.
32112 2019-01-17 Jakub Jelinek <jakub@redhat.com>
32114 PR tree-optimization/86214
32115 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
32118 PR rtl-optimization/88870
32119 * dce.c (deletable_insn_p): Never delete const/pure calls that can
32120 throw if we can't alter the cfg or delete dead exceptions.
32121 (mark_insn): Don't call find_call_stack_args for such calls.
32123 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
32125 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
32126 prototypes for vec_st.
32127 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
32128 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
32129 mainly on signed/unsigned long long and double.
32131 2019-01-16 David Malcolm <dmalcolm@redhat.com>
32134 * combine.c (delete_noop_moves): Convert to "bool" return,
32135 returning true if any edges are eliminated.
32136 (combine_instructions): Also return true if delete_noop_moves
32139 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32141 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
32142 correct max nunits for endian swap.
32143 (aarch64_expand_fcmla_builtin): Correct subreg code.
32144 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32145 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
32148 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
32150 * config/alpha/alpha.c (alpha_gimplify_va_arg):
32151 Handle split indirect COMPLEX_TYPE arguments.
32153 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
32156 * config/aarch64/aarch64-modes.def: Add comment about how the carry
32157 bit is set by add and compare.
32158 (CC_ADC): New CC_MODE.
32159 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
32160 to cache the code and mode of X. Adjust the shape of a CC_Cmode
32161 comparison. Add detection for CC_ADCmode.
32162 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
32164 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
32165 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
32166 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
32167 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
32168 to eliminate the need for zero-extending the operands.
32169 (add<mode>3_compareC_imm): Delete. Merge into ...
32170 (add<mode>3_compareC): ... this. Restructure the comparison to
32171 eliminate the need for zero-extending the operands.
32172 (add<mode>3_carryin): Use LTU for the overflow detection.
32173 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
32174 Reexpress comparison for overflow.
32175 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
32176 (add<mode>3_carryinC): Likewise.
32177 (add<mode>3_carryinV): Use LTU for carry between partials.
32178 * config/aarch64/predicates.md (aarch64_carry_operation): Update
32179 handling of CC_Cmode and add CC_ADCmode.
32180 (aarch64_borrow_operation): Likewise.
32182 2019-01-16 Tamar Christina <tamar.christina@arm.com>
32184 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
32185 Remove patternmode.
32186 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
32187 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32188 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
32189 Remove endianness conversion.
32191 2019-01-16 Martin Liska <mliska@suse.cz>
32193 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
32195 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
32197 * gcc.c (add_sysrooted_hdrs_prefix): New function.
32198 (path_prefix_reset): Move up in the source file.
32199 (find_fortran_preinclude_file): Make complex search for the
32200 fortran header files.
32202 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
32204 * godump.c (go_output_typedef): When outputting a typedef, refer
32205 to the underlying type by its name and not its structure.
32207 2019-01-15 David Malcolm <dmalcolm@redhat.com>
32210 * tree.c (build_function_type): Assert that arg_types is not
32213 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
32215 PR inline-asm/52813
32216 * doc/extend.texi: Document that listing the stack pointer in the
32217 clobber list of an asm is a deprecated feature.
32218 * common.opt (Wdeprecated): Moved from c-family/c.opt.
32219 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
32220 warning instead of an error for clobbers of the stack pointer.
32221 Add a note explaining why.
32223 2019-01-15 Richard Biener <rguenther@suse.de>
32226 * dwarf2out.c (gen_member_die): Do not generate inheritance
32229 2019-01-15 Richard Biener <rguenther@suse.de>
32231 PR tree-optimization/88855
32232 * tree-if-conv.c (combine_blocks): Collect
32233 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32235 2019-01-15 Tom de Vries <tdevries@suse.de>
32238 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32239 lhs == NULL_TREE for gang-level reduction.
32241 2019-01-15 Richard Biener <rguenther@suse.de>
32242 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32245 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32246 return true if SSA_NAME is already marked in visited bitmap.
32247 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32249 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32251 PR tree-optimization/88775
32252 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32253 equal == 0 equality pointer comparisons some more if compared in
32254 integral types and either one points to an automatic var and the
32255 other to a global, or we can prove at least one points to the middle
32256 or both point to start or both point to end.
32258 2019-01-14 Andi Kleen <ak@linux.intel.com>
32260 * Makefile.in: Lower autofdo sampling rate by 10x.
32261 * Makefile.tpl: Dito.
32263 2019-01-14 Tom Honermann <tom@honermann.net>
32265 * defaults.h: Define CHAR8_TYPE.
32267 2019-01-14 Martin Sebor <msebor@redhat.com>
32270 * doc/extend.texi (Darwin Format Checks): Clarify.
32272 2019-01-14 Richard Biener <rguenther@suse.de>
32274 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32275 whether we are in (simplify ...) or (match ...) context.
32277 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32279 PR rtl-optimization/88796
32280 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32281 * cfgexpand.c (stack_protect_prologue): Initialize
32282 crtl->stack_protect_guard_decl.
32283 * function.c (stack_protect_epilogue): Use it instead of calling
32284 targetm.stack_protect_guard again.
32285 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32286 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32287 crtl->stack_protect_guard_decl.
32288 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32289 on the returned MEM_EXPR.
32291 2019-01-12 Tom de Vries <tdevries@suse.de>
32293 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32294 vector length using -fopenacc-dim.
32296 2019-01-12 Tom de Vries <tdevries@suse.de>
32298 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32299 lengths into account.
32301 2019-01-12 Svante Signell <svante.signell@gmail.com>
32303 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32304 (TARGET_CAN_SPLIT_STACK): Define.
32305 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32307 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32309 * params.def (inline-unit-growth): Set to 40.
32311 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32313 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32315 2019-01-12 Tom de Vries <tdevries@suse.de>
32317 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32318 region calling vector-partitionable routine, set default_vector_length
32321 2019-01-12 Tom de Vries <tdevries@suse.de>
32323 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32324 variable default_vector_length.
32326 2019-01-12 Tom de Vries <tdevries@suse.de>
32328 PR middle-end/88703
32329 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32330 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32333 2019-01-12 Tom de Vries <tdevries@suse.de>
32335 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32336 (nvptx_goacc_validate_dims): Add used parameter.
32337 * doc/tm.texi: Regenerate.
32338 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32339 argument to call to targetm.goacc.validate_dims.
32340 (default_goacc_validate_dims): Add used
32342 * target.def (validate_dims): Add used parameter in DEFHOOK.
32343 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32345 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32347 PR middle-end/85956
32349 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32351 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
32352 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
32353 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
32354 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
32356 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
32358 PR rtl-optimization/87305
32360 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
32361 for little endian pseudos used as paradoxical subreg.
32363 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32365 PR tree-optimization/88693
32366 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
32367 for STRING_CSTs that don't contain any NUL characters in the first
32368 TREE_STRING_LENGTH bytes.
32370 2019-01-11 Alan Modra <amodra@gmail.com>
32374 * genattrtab.c (min_fn): Don't translate values.
32375 (min_attr_value): Return INT_MAX when the value can't be calculated.
32376 Return minimum among any values that can be calculated.
32377 (max_attr_value): Adjust.
32379 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32381 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
32383 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32385 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32386 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
32387 (aarch64_return_call_with_max_clobbers): New function.
32388 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
32389 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
32391 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
32392 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
32393 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
32394 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
32395 * cselib.c (cselib_process_insn): Add argument to
32396 targetm.hard_regno_call_part_clobbered call.
32397 * ira-conflicts.c (ira_build_conflicts): Ditto.
32398 * ira-costs.c (ira_tune_allocno_costs): Ditto.
32399 * lra-constraints.c (inherit_reload_reg): Ditto.
32400 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
32401 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
32402 argument. Call targetm.return_call_with_max_clobbers.
32403 Add argument to targetm.hard_regno_call_part_clobbered call.
32404 (calls_have_same_clobbers_p): New function.
32405 (process_bb_lives): Add call_insn and last_call_insn variables.
32406 Pass call_insn to check_pseudos_live_through_calls.
32407 Modify if stmt to check targetm.return_call_with_max_clobbers.
32408 Update setting of flush variable.
32409 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
32411 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
32412 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
32413 targetm.hard_regno_call_part_clobbered call.
32414 * reginfo.c (choose_hard_reg_mode): Ditto.
32415 * regrename.c (check_new_reg_p): Ditto.
32416 * reload.c (find_equiv_reg): Ditto.
32417 * reload1.c (emit_reload_insns): Ditto.
32418 * sched-deps.c (deps_analyze_insn): Ditto.
32419 * sel-sched.c (init_regs_for_mode): Ditto.
32420 (mark_unavailable_hard_regs): Ditto.
32421 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
32422 * target.def (hard_regno_call_part_clobbered): Add insn argument.
32423 (return_call_with_max_clobbers): New target function.
32424 * doc/tm.texi: Regenerate.
32425 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
32426 * hooks.c (hook_bool_uint_mode_false): Change to
32427 hook_bool_insn_uint_mode_false.
32428 * hooks.h (hook_bool_uint_mode_false): Ditto.
32430 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32432 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32433 (aarch64_remove_extra_call_preserved_regs): New function.
32434 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
32435 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
32436 * doc/tm.texi: Regenerate.
32437 * final.c (get_call_reg_set_usage): Call new hook.
32438 * target.def (remove_extra_call_preserved_regs): New hook.
32439 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
32440 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
32442 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32445 * passes.c (finish_optimization_passes): Call print_combine_total_stats
32446 inside of pass_combine_1 dump rather than pass_profile_1.
32448 2019-01-11 Tom de Vries <tdevries@suse.de>
32450 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
32451 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
32452 (PTX_NUM_PER_WORKER_BARRIERS): Define.
32453 (nvptx_apply_dim_limits): Prevent vector_length 64 and
32456 2019-01-11 Tom de Vries <tdevries@suse.de>
32458 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
32460 2019-01-11 Jan Beulich <jbeulich@suse.com>
32462 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
32463 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
32464 sse2_cvtsi2sd): Add {l}.
32465 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
32468 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32471 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
32473 (*float<floatunssuffix>v2div2sf2): New define_insn.
32474 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
32475 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
32476 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
32477 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
32478 match_operands with "const0_operand" "C".
32480 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32482 * config/aarch64/aarch64-builtins.c
32483 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
32484 (aarch64_init_simd_builtins): ...Here
32486 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
32488 PR rtl-optimization/87305
32490 (setup_live_pseudos_and_spill_after_risky_transforms): Check
32491 allocation for big endian pseudos used as paradoxical subregs and
32492 spill them if it is wrong.
32493 * lra-constraints.c (lra_constraints): Add a comment.
32495 2019-01-10 Richard Biener <rguenther@suse.de>
32497 PR tree-optimization/88792
32498 * tree-ssa-pre.c (get_representative_for): Do not return a
32501 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32503 PR middle-end/84877
32505 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
32506 (assign_parm_setup_block): Do the argument slot realignment here
32509 2019-01-10 Stefan Agner <stefan@agner.ch>
32512 * config/arm/arm.c (arm_option_override_internal): Force
32513 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
32515 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32518 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
32521 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32523 * config/arm/arm-builtins.c
32524 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
32525 (MAC_LANE_PAIR_QUALIFIERS): New.
32526 (arm_expand_builtin_args): Use it.
32527 (arm_expand_builtin_1): Likewise.
32528 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
32529 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
32530 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
32531 * config/arm/arm_neon.h:
32532 (vcadd_rot90_f16): New.
32533 (vcaddq_rot90_f16): New.
32534 (vcadd_rot270_f16): New.
32535 (vcaddq_rot270_f16): New.
32538 (vcmla_lane_f16): New.
32539 (vcmla_laneq_f16): New.
32540 (vcmlaq_lane_f16): New.
32541 (vcmlaq_laneq_f16): New.
32542 (vcmla_rot90_f16): New.
32543 (vcmlaq_rot90_f16): New.
32544 (vcmla_rot90_lane_f16): New.
32545 (vcmla_rot90_laneq_f16): New.
32546 (vcmlaq_rot90_lane_f16): New.
32547 (vcmlaq_rot90_laneq_f16): New.
32548 (vcmla_rot180_f16): New.
32549 (vcmlaq_rot180_f16): New.
32550 (vcmla_rot180_lane_f16): New.
32551 (vcmla_rot180_laneq_f16): New.
32552 (vcmlaq_rot180_lane_f16): New.
32553 (vcmlaq_rot180_laneq_f16): New.
32554 (vcmla_rot270_f16): New.
32555 (vcmlaq_rot270_f16): New.
32556 (vcmla_rot270_lane_f16): New.
32557 (vcmla_rot270_laneq_f16): New.
32558 (vcmlaq_rot270_lane_f16): New.
32559 (vcmlaq_rot270_laneq_f16): New.
32560 (vcadd_rot90_f32): New.
32561 (vcaddq_rot90_f32): New.
32562 (vcadd_rot270_f32): New.
32563 (vcaddq_rot270_f32): New.
32566 (vcmla_lane_f32): New.
32567 (vcmla_laneq_f32): New.
32568 (vcmlaq_lane_f32): New.
32569 (vcmlaq_laneq_f32): New.
32570 (vcmla_rot90_f32): New.
32571 (vcmlaq_rot90_f32): New.
32572 (vcmla_rot90_lane_f32): New.
32573 (vcmla_rot90_laneq_f32): New.
32574 (vcmlaq_rot90_lane_f32): New.
32575 (vcmlaq_rot90_laneq_f32): New.
32576 (vcmla_rot180_f32): New.
32577 (vcmlaq_rot180_f32): New.
32578 (vcmla_rot180_lane_f32): New.
32579 (vcmla_rot180_laneq_f32): New.
32580 (vcmlaq_rot180_lane_f32): New.
32581 (vcmlaq_rot180_laneq_f32): New.
32582 (vcmla_rot270_f32): New.
32583 (vcmlaq_rot270_f32): New.
32584 (vcmla_rot270_lane_f32): New.
32585 (vcmla_rot270_laneq_f32): New.
32586 (vcmlaq_rot270_lane_f32): New.
32587 (vcmlaq_rot270_laneq_f32): New.
32588 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
32589 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
32590 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
32591 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
32592 vcmlaq_lane270): New.
32593 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32594 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
32595 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
32596 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
32597 (arm_option_reconfigure_globals): Use them.
32598 * config/arm/iterators.md (VDF, VQ_HSF): New.
32599 (VCADD, VCMLA): New.
32600 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
32601 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
32603 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
32604 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
32606 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32608 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
32609 Add qualifier_lane_pair_index.
32610 (emit-rtl.h): Include.
32611 (TYPES_QUADOP_LANE_PAIR): New.
32612 (aarch64_simd_expand_args): Use it.
32613 (aarch64_simd_expand_builtin): Likewise.
32614 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
32616 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
32617 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
32618 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
32619 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
32620 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
32621 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
32622 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
32623 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
32624 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
32625 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
32626 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
32627 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
32628 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
32629 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
32630 Add __ARM_FEATURE_COMPLEX.
32631 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
32632 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
32633 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
32634 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
32635 fcmlaq_lane270): New.
32636 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32637 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
32638 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
32639 * config/aarch64/arm_neon.h:
32640 (vcadd_rot90_f16): New.
32641 (vcaddq_rot90_f16): New.
32642 (vcadd_rot270_f16): New.
32643 (vcaddq_rot270_f16): New.
32646 (vcmla_lane_f16): New.
32647 (vcmla_laneq_f16): New.
32648 (vcmlaq_lane_f16): New.
32649 (vcmlaq_rot90_lane_f16): New.
32650 (vcmla_rot90_laneq_f16): New.
32651 (vcmla_rot90_lane_f16): New.
32652 (vcmlaq_rot90_f16): New.
32653 (vcmla_rot90_f16): New.
32654 (vcmlaq_laneq_f16): New.
32655 (vcmla_rot180_laneq_f16): New.
32656 (vcmla_rot180_lane_f16): New.
32657 (vcmlaq_rot180_f16): New.
32658 (vcmla_rot180_f16): New.
32659 (vcmlaq_rot90_laneq_f16): New.
32660 (vcmlaq_rot270_laneq_f16): New.
32661 (vcmlaq_rot270_lane_f16): New.
32662 (vcmla_rot270_laneq_f16): New.
32663 (vcmlaq_rot270_f16): New.
32664 (vcmla_rot270_f16): New.
32665 (vcmlaq_rot180_laneq_f16): New.
32666 (vcmlaq_rot180_lane_f16): New.
32667 (vcmla_rot270_lane_f16): New.
32668 (vcadd_rot90_f32): New.
32669 (vcaddq_rot90_f32): New.
32670 (vcaddq_rot90_f64): New.
32671 (vcadd_rot270_f32): New.
32672 (vcaddq_rot270_f32): New.
32673 (vcaddq_rot270_f64): New.
32677 (vcmla_lane_f32): New.
32678 (vcmla_laneq_f32): New.
32679 (vcmlaq_lane_f32): New.
32680 (vcmlaq_laneq_f32): New.
32681 (vcmla_rot90_f32): New.
32682 (vcmlaq_rot90_f32): New.
32683 (vcmlaq_rot90_f64): New.
32684 (vcmla_rot90_lane_f32): New.
32685 (vcmla_rot90_laneq_f32): New.
32686 (vcmlaq_rot90_lane_f32): New.
32687 (vcmlaq_rot90_laneq_f32): New.
32688 (vcmla_rot180_f32): New.
32689 (vcmlaq_rot180_f32): New.
32690 (vcmlaq_rot180_f64): New.
32691 (vcmla_rot180_lane_f32): New.
32692 (vcmla_rot180_laneq_f32): New.
32693 (vcmlaq_rot180_lane_f32): New.
32694 (vcmlaq_rot180_laneq_f32): New.
32695 (vcmla_rot270_f32): New.
32696 (vcmlaq_rot270_f32): New.
32697 (vcmlaq_rot270_f64): New.
32698 (vcmla_rot270_lane_f32): New.
32699 (vcmla_rot270_laneq_f32): New.
32700 (vcmlaq_rot270_lane_f32): New.
32701 (vcmlaq_rot270_laneq_f32): New.
32702 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
32703 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
32704 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
32705 (FCADD, FCMLA): New.
32707 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
32709 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32713 * config/pa/pa.c: Change "can not" to "cannot".
32714 * gimple-ssa-evrp-analyze.c: Likewise.
32715 * ipa-icf.c: Likewise.
32716 * ipa-polymorphic-call.c: Likewise.
32717 * ipa-pure-const.c: Likewise.
32718 * lra-constraints.c: Likewise.
32719 * lra-remat.c: Likewise.
32720 * reload1.c: Likewise.
32721 * reorg.c: Likewise.
32722 * tree-ssa-uninit.c: Likewise.
32724 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32728 * Makefile.in: Mechanically replace "can not" with "cannot".
32729 * alias.c: Likewise.
32730 * builtins.c: Likewise.
32731 * calls.c: Likewise.
32732 * cgraph.c: Likewise.
32733 * cgraph.h: Likewise.
32734 * cgraphclones.c: Likewise.
32735 * cgraphunit.c: Likewise.
32736 * combine-stack-adj.c: Likewise.
32737 * combine.c: Likewise.
32738 * common/config/i386/i386-common.c: Likewise.
32739 * config/aarch64/aarch64.c: Likewise.
32740 * config/alpha/sync.md: Likewise.
32741 * config/arc/arc.c: Likewise.
32742 * config/arc/predicates.md: Likewise.
32743 * config/arm/arm-c.c: Likewise.
32744 * config/arm/arm.c: Likewise.
32745 * config/arm/arm.h: Likewise.
32746 * config/arm/arm.md: Likewise.
32747 * config/arm/cortex-r4f.md: Likewise.
32748 * config/csky/csky.c: Likewise.
32749 * config/csky/csky.h: Likewise.
32750 * config/darwin-f.c: Likewise.
32751 * config/epiphany/epiphany.md: Likewise.
32752 * config/i386/i386.c: Likewise.
32753 * config/i386/sol2.h: Likewise.
32754 * config/m68k/m68k.c: Likewise.
32755 * config/mcore/mcore.h: Likewise.
32756 * config/microblaze/microblaze.md: Likewise.
32757 * config/mips/20kc.md: Likewise.
32758 * config/mips/sb1.md: Likewise.
32759 * config/nds32/nds32.c: Likewise.
32760 * config/nds32/predicates.md: Likewise.
32761 * config/pa/pa.c: Likewise.
32762 * config/rs6000/e300c2c3.md: Likewise.
32763 * config/rs6000/rs6000.c: Likewise.
32764 * config/s390/s390.h: Likewise.
32765 * config/sh/sh.c: Likewise.
32766 * config/sh/sh.md: Likewise.
32767 * config/spu/vmx2spu.h: Likewise.
32768 * cprop.c: Likewise.
32769 * dbxout.c: Likewise.
32770 * df-scan.c: Likewise.
32771 * doc/cfg.texi: Likewise.
32772 * doc/extend.texi: Likewise.
32773 * doc/fragments.texi: Likewise.
32774 * doc/gty.texi: Likewise.
32775 * doc/invoke.texi: Likewise.
32776 * doc/lto.texi: Likewise.
32777 * doc/md.texi: Likewise.
32778 * doc/objc.texi: Likewise.
32779 * doc/rtl.texi: Likewise.
32780 * doc/tm.texi: Likewise.
32782 * emit-rtl.c: Likewise.
32783 * emit-rtl.h: Likewise.
32784 * except.c: Likewise.
32785 * expmed.c: Likewise.
32786 * expr.c: Likewise.
32787 * fold-const.c: Likewise.
32788 * genautomata.c: Likewise.
32789 * gimple-fold.c: Likewise.
32790 * hard-reg-set.h: Likewise.
32791 * ifcvt.c: Likewise.
32792 * ipa-comdats.c: Likewise.
32793 * ipa-cp.c: Likewise.
32794 * ipa-devirt.c: Likewise.
32795 * ipa-fnsummary.c: Likewise.
32796 * ipa-icf.c: Likewise.
32797 * ipa-inline-transform.c: Likewise.
32798 * ipa-inline.c: Likewise.
32799 * ipa-polymorphic-call.c: Likewise.
32800 * ipa-profile.c: Likewise.
32801 * ipa-prop.c: Likewise.
32802 * ipa-pure-const.c: Likewise.
32803 * ipa-reference.c: Likewise.
32804 * ipa-split.c: Likewise.
32805 * ipa-visibility.c: Likewise.
32807 * ira-build.c: Likewise.
32808 * ira-color.c: Likewise.
32809 * ira-conflicts.c: Likewise.
32810 * ira-costs.c: Likewise.
32811 * ira-int.h: Likewise.
32812 * ira-lives.c: Likewise.
32815 * loop-invariant.c: Likewise.
32816 * loop-unroll.c: Likewise.
32817 * lower-subreg.c: Likewise.
32818 * lra-assigns.c: Likewise.
32819 * lra-constraints.c: Likewise.
32820 * lra-eliminations.c: Likewise.
32821 * lra-lives.c: Likewise.
32822 * lra-remat.c: Likewise.
32823 * lra-spills.c: Likewise.
32825 * lto-cgraph.c: Likewise.
32826 * lto-streamer-out.c: Likewise.
32827 * postreload-gcse.c: Likewise.
32828 * predict.c: Likewise.
32829 * profile-count.h: Likewise.
32830 * profile.c: Likewise.
32831 * recog.c: Likewise.
32833 * reload.c: Likewise.
32834 * reload1.c: Likewise.
32835 * reorg.c: Likewise.
32836 * resource.c: Likewise.
32837 * rtl.def: Likewise.
32839 * rtlanal.c: Likewise.
32840 * sched-deps.c: Likewise.
32841 * sched-ebb.c: Likewise.
32842 * sched-rgn.c: Likewise.
32843 * sel-sched-ir.c: Likewise.
32844 * sel-sched.c: Likewise.
32845 * shrink-wrap.c: Likewise.
32846 * simplify-rtx.c: Likewise.
32847 * symtab.c: Likewise.
32848 * target.def: Likewise.
32849 * toplev.c: Likewise.
32850 * tree-call-cdce.c: Likewise.
32851 * tree-cfg.c: Likewise.
32852 * tree-complex.c: Likewise.
32853 * tree-core.h: Likewise.
32854 * tree-eh.c: Likewise.
32855 * tree-inline.c: Likewise.
32856 * tree-loop-distribution.c: Likewise.
32857 * tree-nrv.c: Likewise.
32858 * tree-profile.c: Likewise.
32859 * tree-sra.c: Likewise.
32860 * tree-ssa-alias.c: Likewise.
32861 * tree-ssa-dce.c: Likewise.
32862 * tree-ssa-dom.c: Likewise.
32863 * tree-ssa-forwprop.c: Likewise.
32864 * tree-ssa-loop-im.c: Likewise.
32865 * tree-ssa-loop-ivcanon.c: Likewise.
32866 * tree-ssa-loop-ivopts.c: Likewise.
32867 * tree-ssa-loop-niter.c: Likewise.
32868 * tree-ssa-phionlycprop.c: Likewise.
32869 * tree-ssa-phiopt.c: Likewise.
32870 * tree-ssa-propagate.c: Likewise.
32871 * tree-ssa-threadedge.c: Likewise.
32872 * tree-ssa-threadupdate.c: Likewise.
32873 * tree-ssa-uninit.c: Likewise.
32874 * tree-ssanames.c: Likewise.
32875 * tree-streamer-out.c: Likewise.
32876 * tree.c: Likewise.
32877 * tree.h: Likewise.
32878 * vr-values.c: Likewise.
32880 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32882 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32883 (ix86_split_xorsign): Ditto.
32884 * config/i386/i386.c (ix86_expand_xorsign): New function.
32885 (ix86_split_xorsign): Ditto.
32886 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32887 (xorsign<mode>3): New expander.
32888 (xorsign<mode>3_1): New insn_and_split pattern.
32889 * config/i386/sse.md (xorsign<mode>3): New expander.
32891 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32893 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32894 (*tablejump_sp64): Likewise.
32895 (*tablejump<P:mode>): ...this.
32896 (*call_address_sp32): Merge into...
32897 (*call_address_sp64): Likewise.
32898 (*call_address<P:mode>): ...this.
32899 (*call_symbolic_sp32): Merge into...
32900 (*call_symbolic_sp64): Likewise.
32901 (*call_symbolic<P:mode>): ...this.
32902 (call_value): Remove constraint and add predicate.
32903 (*call_value_address_sp32): Merge into...
32904 (*call_value_address_sp64): Likewise.
32905 (*call_value_address<P:mode>): ...this.
32906 (*call_value_symbolic_sp32): Merge into...
32907 (*call_value_symbolic_sp64): Likewise.
32908 (*call_value_symbolic<P:mode>): ...this.
32909 (*sibcall_symbolic_sp32): Merge into...
32910 (*sibcall_symbolic_sp64): Likewise.
32911 (*sibcall_symbolic<P:mode>): ...this.
32912 (sibcall_value): Remove constraint and add predicate.
32913 (*sibcall_value_symbolic_sp32): Merge into...
32914 (*sibcall_value_symbolic_sp64): Likewise.
32915 (*sibcall_value_symbolic<P:mode>): ...this.
32916 (window_save): Minor tweak.
32917 (*branch_sp32): Merge into...
32918 (*branch_sp64): Likewise.
32919 (*branch<P:mode>): ...this.
32921 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32922 James Clarke <jrtc27@jrtc27.com>
32925 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32926 consistently in TLS address generation and adjust code to the renaming
32927 of patterns. Mark calls to __tls_get_addr as const.
32928 * config/sparc/sparc.md (tgd_hi22): Turn into...
32929 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32930 (tgd_lo10): Turn into...
32931 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32932 (tgd_add32): Merge into...
32933 (tgd_add64): Likewise.
32934 (tgd_add<P:mode>): ...this and use Pmode throughout.
32935 (tldm_hi22): Turn into...
32936 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32937 (tldm_lo10): Turn into...
32938 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32939 (tldm_add32): Merge into...
32940 (tldm_add64): Likewise.
32941 (tldm_add<P:mode>): ...this and use Pmode throughout.
32942 (tldm_call32): Merge into...
32943 (tldm_call64): Likewise.
32944 (tldm_call<P:mode>): ...this and use Pmode throughout.
32945 (tldo_hix22): Turn into...
32946 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32947 (tldo_lox10): Turn into...
32948 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32949 (tldo_add32): Merge into...
32950 (tldo_add64): Likewise.
32951 (tldo_add<P:mode>): ...this and use Pmode throughout.
32952 (tie_hi22): Turn into...
32953 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32954 (tie_lo10): Turn into...
32955 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32956 (tie_ld64): Use DImode throughout.
32957 (tie_add32): Merge into...
32958 (tie_add64): Likewise.
32959 (tie_add<P:mode>): ...this and use Pmode throughout.
32960 (tle_hix22_sp32): Merge into...
32961 (tle_hix22_sp64): Likewise.
32962 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32963 (tle_lox22_sp32): Merge into...
32964 (tle_lox22_sp64): Likewise.
32965 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32966 (*tldo_ldub_sp32): Merge into...
32967 (*tldo_ldub_sp64): Likewise.
32968 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32969 (*tldo_ldub1_sp32): Merge into...
32970 (*tldo_ldub1_sp64): Likewise.
32971 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32972 (*tldo_ldub2_sp32): Merge into...
32973 (*tldo_ldub2_sp64): Likewise.
32974 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32975 (*tldo_ldsb1_sp32): Merge into...
32976 (*tldo_ldsb1_sp64): Likewise.
32977 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32978 (*tldo_ldsb2_sp32): Merge into...
32979 (*tldo_ldsb2_sp64): Likewise.
32980 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32981 (*tldo_ldub3_sp64): Use DImode throughout.
32982 (*tldo_ldsb3_sp64): Likewise.
32983 (*tldo_lduh_sp32): Merge into...
32984 (*tldo_lduh_sp64): Likewise.
32985 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32986 (*tldo_lduh1_sp32): Merge into...
32987 (*tldo_lduh1_sp64): Likewise.
32988 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32989 (*tldo_ldsh1_sp32): Merge into...
32990 (*tldo_ldsh1_sp64): Likewise.
32991 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32992 (*tldo_lduh2_sp64): Use DImode throughout.
32993 (*tldo_ldsh2_sp64): Likewise.
32994 (*tldo_lduw_sp32): Merge into...
32995 (*tldo_lduw_sp64): Likewise.
32996 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32997 (*tldo_lduw1_sp64): Use DImode throughout.
32998 (*tldo_ldsw1_sp64): Likewise.
32999 (*tldo_ldx_sp64): Likewise.
33000 (*tldo_stb_sp32): Merge into...
33001 (*tldo_stb_sp64): Likewise.
33002 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
33003 (*tldo_sth_sp32): Merge into...
33004 (*tldo_sth_sp64): Likewise.
33005 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
33006 (*tldo_stw_sp32): Merge into...
33007 (*tldo_stw_sp64): Likewise.
33008 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
33009 (*tldo_stx_sp64): Use DImode throughout.
33011 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33013 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
33014 check configure option to set BTI and Return Address Signing.
33015 * configure.ac: Add --enable-standard-branch-protection and
33016 --disable-standard-branch-protection.
33017 * configure: Regenerated.
33018 * doc/install.texi: Document the same.
33020 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33021 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33023 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
33024 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
33025 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
33027 * config/aarch64/aarch64-bti-insert.c: New file.
33028 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
33030 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
33032 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
33033 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
33034 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
33035 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
33037 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33039 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
33040 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
33041 Disable bti for -mbranch-protection=none.
33042 (aarch64_handle_standard_branch_protection): Enable bti for
33043 -mbranch-protection=standard.
33044 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
33045 -mbranch-protection.
33046 (aarch64_bti_enabled): Check if bti is enabled.
33047 * config/aarch64/aarch64.opt: Declare target variable.
33048 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
33050 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33052 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
33053 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
33054 (aarch64_expand_epilogue): Likewise.
33055 (aarch64_output_mi_thunk): Likewise.
33056 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
33057 TAILCALL_ADDR_REGS to x16 and x17.
33058 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
33060 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33062 * config/aarch64/aarch64-option-extensions.def: Define
33063 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
33064 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
33065 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
33066 (AARCH64_FL_PREDRES): New.
33067 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
33068 AARCH64_FL_PREDRES by default.
33069 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
33071 2018-01-09 Sudakshina Das <sudi.das@arm.com>
33073 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
33075 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
33076 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
33077 * doc/invoke.texi: Document ARMv8.5-A.
33079 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
33081 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
33082 (xorsign<mode>3): Likewise.
33084 2019-01-09 Jelinek <jakub@redhat.com>
33086 PR middle-end/88758
33087 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
33088 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
33090 PR rtl-optimization/88331
33091 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
33092 not currently_expanding_to_rtl.
33094 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
33096 * doc/invoke.texi (-Os): Remove trailing spaces.
33097 (-finline-functions): Remove reference to -O2.
33099 2019-01-08 Jakub Jelinek <jakub@redhat.com>
33101 PR rtl-optimization/79593
33102 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
33104 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
33105 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
33107 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
33110 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
33114 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
33115 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
33117 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
33120 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
33121 ix86_avx_u128_mode_entry.
33123 2019-01-08 Martin Liska <mliska@suse.cz>
33125 PR tree-optimization/88753
33126 * tree-switch-conversion.c (switch_conversion::build_one_array):
33127 Come up with local variable constructor. Convert first to
33128 type of constructor values.
33130 2019-01-08 Richard Biener <rguenther@suse.de>
33132 PR tree-optimization/86554
33133 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
33134 rpo_avail): Move earlier.
33135 (visit_nary_op): When value-numbering to expressions
33136 with different overflow behavior make sure there's an
33137 available expression on the path.
33139 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
33141 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
33142 aarch64_parse_branch_protection,
33143 struct aarch64_branch_protect_type,
33144 aarch64_handle_no_branch_protection,
33145 aarch64_handle_standard_branch_protection,
33146 aarch64_validate_mbranch_protection,
33147 aarch64_handle_pac_ret_protection,
33148 aarch64_handle_attr_branch_protection,
33149 accepted_branch_protection_string,
33150 aarch64_pac_ret_subtypes,
33151 aarch64_branch_protect_types,
33152 aarch64_handle_pac_ret_leaf): Define.
33153 (aarch64_override_options_after_change_1, aarch64_override_options):
33154 Add check for accepted_branch_protection_string.
33155 (aarch64_option_save): Save accepted_branch_protection_string.
33156 (aarch64_option_restore): Save accepted_branch_protection_string.
33157 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
33158 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
33159 msign-return-address.
33160 * doc/invoke.texi: Add mbranch-protection.
33162 2019-01-08 Alan Modra <amodra@gmail.com>
33165 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
33166 Delete "unknownp" parameter. Adjust callers. Handle
33167 CONST_INT, PLUS, MINUS, and MULT.
33168 (attr_value_aligned): Renamed from or_attr_value.
33169 (min_attr_value): Return INT_MIN for unhandled rtl case..
33170 (min_fn): ..and translate to INT_MAX here.
33171 (write_length_unit_log): Modify to cope without "unknown".
33172 (write_attr_value): Handle IF_THEN_ELSE.
33174 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33176 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
33177 optimization for masked stores.
33179 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33181 PR middle-end/88567
33182 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
33183 output vector directly to duplicate_and_interleave instead of
33184 going through a temporary. Postpone insertion of ctor_seq to
33185 the end of the loop.
33187 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
33190 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
33191 unsigned_p. Handle signed and unsigned overflow correction as
33193 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
33195 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
33197 (add<mode>3_compareV_imm): Make this callable for expanding.
33198 (subv<GPI:mode>4): Use register_operand for operand 1. Use
33199 aarch64_plus_operand for operand 2.
33200 (subv<GPI:mode>_insn): New insn pattern.
33201 (subv<GPI:mode>_imm): Likewise.
33202 (negv<GPI:mode>3): New expand pattern.
33203 (negv<GPI:mode>_insn): New insn pattern.
33204 (negv<GPI:mode>_cmp_only): Likewise.
33205 (cmpv<GPI:mode>_insn): Likewise.
33206 (subvti4): Use register_operand for operand 1. Update call to
33207 aarch64_expand_subvti.
33208 (usubvti4): Likewise.
33209 (negvti3): New expand pattern.
33210 (negdi_carryout): New insn pattern.
33211 (negvdi_carryinV): New insn pattern.
33212 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
33213 version the named version.
33214 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
33216 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
33218 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
33220 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
33221 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
33222 (sub<mode>3_carryinCV): Delete.
33223 (sub<GPI:mode>3_carryinV): New expand pattern.
33224 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
33226 2019-01-07 Richard Biener <rguenther@suse.de>
33228 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33229 of tree_operand_hash.
33231 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33233 PR tree-optimization/88598
33234 * tree.h (single_nonzero_element): Declare.
33235 * tree.c (single_nonzero_element): New function.
33236 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33237 if I is the only nonzero element of CST.
33239 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33241 PR tree-optimization/88598
33242 * tree.h (initializer_each_zero_or_onep): Declare.
33243 * tree.c (initializer_each_zero_or_onep): New function.
33244 (signed_or_unsigned_type_for): Handle float types too.
33245 (unsigned_type_for, signed_type_for): Update comments accordingly.
33246 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33247 x & { 0 or -1, 0 or -1, ... }.
33249 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33251 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33252 with x86_64-pc-linux-gnu.
33254 2019-01-07 Tom de Vries <tdevries@suse.de>
33257 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33259 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33262 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33264 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33265 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33266 TARGET_AVX512F as condition.
33269 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33270 const_not_ok_for_debug_p target hook.
33271 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33272 on UNSPEC and subexpressions thereof if all subexpressions of the
33273 UNSPEC are CONSTANT_P.
33275 PR tree-optimization/88676
33276 * tree-ssa-phiopt.c (two_value_replacement): New function.
33277 (tree_ssa_phiopt_worker): Call it.
33280 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33281 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33284 * tree-vect-generic.c: Include insn-config.h and recog.h.
33285 (expand_vector_piecewise): Add defaulted ret_type argument,
33286 if non-NULL, use that in preference to type for the result type.
33287 (expand_vector_parallel): Formatting fix.
33288 (do_vec_conversion, do_vec_narrowing_conversion,
33289 expand_vector_conversion): New functions.
33290 (expand_vector_operations_1): Call expand_vector_conversion
33291 for VEC_CONVERT ifn calls.
33292 * internal-fn.def (VEC_CONVERT): New internal function.
33293 * internal-fn.c (expand_VEC_CONVERT): New function.
33294 * fold-const-call.c (fold_const_vec_convert): New function.
33295 (fold_const_call): Use it for CFN_VEC_CONVERT.
33296 * doc/extend.texi (__builtin_convertvector): Document.
33298 2019-01-07 Tom de Vries <tdevries@suse.de>
33300 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33301 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33302 vector_red_partition, vector_red_sym): New global variables.
33303 (nvptx_option_override): Initialize vector_red_sym.
33304 (nvptx_declare_function_name): Restore red_partition register.
33305 (nvptx_file_end): Emit code to declare the vector reduction variables.
33306 (nvptx_output_red_partition): New function.
33307 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33308 large vector reductions.
33309 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33310 (nvptx_init_builtins): Add VECTOR_ADDR.
33311 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33312 Handle nvptx_expand_shared_addr.
33313 (nvptx_get_shared_red_addr): Add vector argument and handle large
33315 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33317 (nvptx_goacc_reduction_init): Likewise.
33318 (nvptx_goacc_reduction_fini): Likewise.
33319 (nvptx_goacc_reduction_teardown): Likewise.
33320 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33321 init,fini,teardown}.
33322 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33323 (nvptx_set_current_function): Init vector_red_partition.
33324 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33325 (nvptx_red_partition): New insn.
33326 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33328 2019-01-07 Tom de Vries <tdevries@suse.de>
33331 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33334 2019-01-07 Tom de Vries <tdevries@suse.de>
33336 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33337 (nvptx_option_override): Init oacc_bcast_partition.
33338 (nvptx_init_oacc_workers): New function.
33339 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33340 (nvptx_needs_shared_bcast): New function.
33341 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33342 to propagate state.
33343 (nvptx_shared_propagate): Initialize vector bcast partition and
33344 synchronization state.
33345 (nvptx_single): Generalize to enable vectors to use shared-memory
33346 to propagate state.
33347 (nvptx_process_pars): Likewise.
33348 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33349 * config/nvptx/nvptx.h (struct machine_function): Add
33350 bcast_partition and sync_bar members.
33352 2019-01-07 Tom de Vries <tdevries@suse.de>
33354 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
33355 (nvptx_apply_dim_limits): New function.
33356 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
33359 2019-01-07 Tom de Vries <tdevries@suse.de>
33361 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
33362 as late as possible.
33364 2019-01-07 Tom de Vries <tdevries@suse.de>
33366 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
33367 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
33368 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
33369 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
33370 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
33372 2019-01-07 Tom de Vries <tdevries@suse.de>
33374 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
33376 2019-01-07 Tom de Vries <tdevries@suse.de>
33378 * omp-offload.c (oacc_get_min_dim): New function.
33379 * omp-offload.h (oacc_get_min_dim): Declare.
33381 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
33384 * config/i386/i386.c (function_value_ms_64): Return small sturct in
33385 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
33387 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33391 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
33393 * ipa-inline.c (edge_badness): Use inlined_time instead of
33394 inline_summaries->get.
33396 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33398 * opts.c (enable_fdo_optimizations): Enable
33399 version-loops-for-strides, loop-interchange, unrol-and-jam
33400 and tree-loop-distribution.
33401 * invoke.texi: Document newly enabled options.
33403 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33405 * doc/invoke.texi (max-inline-insns-small): New parameters.
33406 * ipa-inline.c (want_early_inline_function_p): simplify.
33407 (want_inline_small_function_p): Fix pasto from previous patch;
33408 use max-inline-insns-small bound.
33409 * params.def (max-inline-insns-small): New param.
33410 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
33411 variables correctly.
33413 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33415 * doc/invoke.texi: Document max-inline-insns-size,
33416 uninlined-function-insns, uninlined-function-time,
33417 uninlined-thunk-insns and uninlined-thunk-time.
33418 * params.def: Add max-inline-insns-size,
33419 uninlined-function-insns, uninlined-function-time,
33420 uninlined-thunk-insns and uninlined-thunk-time.
33421 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
33423 * ipa-inline.c (can_inline_edge_by_limits_p,
33424 want_inline_small_function_p): Use new parameters.
33426 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33428 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
33430 2019-01-05 Jakub Jelinek <jakub@redhat.com>
33432 PR middle-end/82564
33434 * expr.c (expand_assignment): For calls returning VLA structures
33435 if to_rtx is not a MEM, force it into a stack temporary.
33438 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
33439 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
33440 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
33441 subexpressions of both operands.
33442 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
33443 subrtxes are CONSTANT_P.
33444 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
33445 2018-11-09 changes.
33447 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
33449 * params.def (hot-bb-count-ws-permille): Set to 990.
33451 2019-01-04 Martin Sebor <msebor@redhat.com>
33454 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
33457 2019-01-04 Martin Sebor <msebor@redhat.com>
33460 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
33462 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33464 * gdbinit.in: Turn off pagination for the skip commands, restore
33465 it to previous state afterwards.
33467 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33470 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
33471 of GET_MODE (opN) as modes of the libcall arguments.
33473 2019-01-04 Jan Beulich <jbeulich@suse.com>
33475 * config/i386/sse.md
33476 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
33477 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
33478 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33479 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33480 avx512f_vmcmp<mode>3<round_saeonly_name>,
33481 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
33482 avx512f_maskcmp<mode>3,
33483 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33484 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33485 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33486 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33487 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33488 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33489 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33490 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33491 <avx512>_testm<mode>3<mask_scalar_merge_name>,
33492 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
33493 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
33494 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
33495 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
33496 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
33497 avx512cd_maskb_vec_dup<mode>,
33498 avx512cd_maskw_vec_dup<mode>,
33499 avx512dq_fpclass<mode><mask_scalar_merge_name>,
33500 avx512dq_vmfpclass<mode>,
33501 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
33504 2019-01-03 Martin Sebor <msebor@redhat.com>
33506 PR tree-optimization/88659
33507 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
33509 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
33511 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
33512 unaligned vsx and avoid lxvd2x/stxvd2x.
33513 (gen_lvx_v4si_move): New function.
33515 2019-01-03 Tom de Vries <tdevries@suse.de>
33517 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
33518 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
33520 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
33522 2019-01-03 Tom de Vries <tdevries@suse.de>
33524 * config/nvptx/nvptx.c (struct offload_attrs): New.
33525 (populate_offload_attrs): New function. Factor mask extraction out of
33526 nvptx_reorg. Add extraction of dimensions.
33527 (nvptx_reorg): Use populate_offload_attrs.
33529 2019-01-03 Tom de Vries <tdevries@suse.de>
33531 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
33532 cases for oacc_min_dims_p and routine_p. Add asserts for
33533 oacc_default_dims_p and offload_region_p.
33535 2019-01-03 Tom de Vries <tdevries@suse.de>
33537 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
33538 factored out of ...
33539 (nvptx_goacc_validate_dims): ... here.
33541 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33543 PR tree-optimization/85574
33544 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
33546 (struct ssa_equip_hash_traits): Declare.
33547 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
33549 2019-01-03 Jakub Jelinek <jakub@redhat.com>
33552 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
33553 change it to qualified_type.
33555 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33557 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
33558 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
33560 2019-01-02 Martin Sebor <msebor@redhat.com>
33561 Jeff Law <law@redhat.com>
33563 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
33564 (get_range_strlen_tree): Update appropriately.
33566 * gimple-fold.h (get_range_strlen): Drop unused last argument.
33568 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
33569 rather than set_range_info.
33570 * tree-ssa-strlen.c (set_strlen_range): Extracted from
33571 maybe_set_strlen_range. Handle potentially boundary crossing
33572 cases more conservatively.
33573 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
33574 Call set_strlen_range.
33575 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
33577 PR middle-end/88663
33578 * gimple-fold.c (get_range_strlen): Update prototype to no longer
33579 need the flexp argument.
33580 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
33581 from calls to get_range_strlen. Update comments. Just update
33582 VAL for an unterminated const char array and let the reset of the
33583 code handle it normally. No longer try to set *flexp. Adjust
33585 (get_range_strlen): Update for the new get_range_strlen API.
33586 (get_maxval_strlen): Similarly.
33587 (gimple_fold_builtin_strlen): Handle update meaning of return value
33588 from get_range_strlen.
33589 * gimple-ssa-sprintf.c (get_string_length): Update for the new
33590 get_range_strlen API.
33592 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
33595 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
33596 false at WPA time when body was removed.
33598 2019-01-02 Martin Liska <mliska@suse.cz>
33600 PR tree-optimization/88650
33601 * predict.c (set_even_probabilities): Calculate probability
33602 remainer only when really used.
33604 2019-01-02 Richard Biener <rguenther@suse.de>
33606 PR middle-end/88651
33607 * tree-data-ref.c (analyze_subscript_affine_affine): Use
33608 widest_ints when mangling max_stmt_execution results.
33610 2019-01-02 Richard Biener <rguenther@suse.de>
33612 PR tree-optimization/88621
33613 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
33614 bitfields when canoncalizing.
33616 2019-01-02 Richard Biener <rguenther@suse.de>
33619 * config/i386/x86-tune-costs.h (intel_cost): Adjust
33620 cost of cheap SSE instruction.
33622 2019-01-02 Richard Biener <rguenther@suse.de>
33625 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
33626 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
33628 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
33629 set after UIDs before splitting them.
33631 2019-01-01 Martin Sebor <msebor@redhat.com>
33632 Jeff Law <law@redhat.com>
33634 * gimple-fold.c (get_range_strlen_tree): Record if the computed
33635 length is optimistic. If it is, then arrange to compute the
33636 conservative length as well.
33638 * gimple-fold.h (get_range_strlen): Update prototype.
33639 * builtins.c (check_access): Update call to get_range_strlen to use
33640 c_strlen_data pointer. Change various variable accesses to instead
33641 pull data from the c_strlen_data structure.
33642 (check_strncat_sizes, expand_builtin_strncat): Likewise.
33643 * calls.c (maybe_warn_nonstring_arg): Likewise.
33644 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
33645 minimum length if maximum lengh is unknown.
33646 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
33647 that used c_strlen, it's no longer needed. Restructure slightly.
33648 (format_string): Set unlikely range appropriately.
33649 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
33651 (get_range_strlen): Accept c_strlen_data pointer for external
33652 call sites as well. Pass through to call to internal get_range_strlen.
33653 Adjust minlen, maxlen and maxbound as needed.
33654 (get_maxval_strlen): Update comments.
33655 (gimple_fold_builtin_strlen): Update call to get_range_strlen
33656 to use c_strlen_data pointer. Change variable accesses to instead
33657 use c_strlen_data data members.
33659 * gimple-fold.c (get_range_strlen): Update prototype.
33660 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
33661 local variables. Use pdata to return information to caller.
33662 Update calls to get_range_strlen. Update pdata->maxbound.
33663 (get_range_strlen -- static version): Similarly.
33664 (get_range_strlen -- extern version): Update for internal
33665 get_range_strlen API change. Convert to external data format.
33666 (get_maxval_strlen): Similarly.
33668 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
33670 * coverage.c (get_coverage_counts): Use current_function_decl.
33671 * profile.c (read_thunk_profile): New function.
33672 (branch_prob): Add THUNK parameter.
33673 * tree-profile.c (tree_profiling): Handle thunks.
33674 * value-prof.c (init_node_map): Handle thunks.
33675 * value-prof.h (branch_prob): Upate prototype.
33676 (read_thunk_profile): Declare.
33678 2019-01-01 Jakub Jelinek <jakub@redhat.com>
33680 Update copyright years.
33682 * gcc.c (process_command): Update copyright notice dates.
33683 * gcov-dump.c (print_version): Ditto.
33684 * gcov.c (print_version): Ditto.
33685 * gcov-tool.c (print_version): Ditto.
33686 * gengtype.c (create_file): Ditto.
33687 * doc/cpp.texi: Bump @copying's copyright year.
33688 * doc/cppinternals.texi: Ditto.
33689 * doc/gcc.texi: Ditto.
33690 * doc/gccint.texi: Ditto.
33691 * doc/gcov.texi: Ditto.
33692 * doc/install.texi: Ditto.
33693 * doc/invoke.texi: Ditto.
33695 Copyright (C) 2019 Free Software Foundation, Inc.
33697 Copying and distribution of this file, with or without modification,
33698 are permitted in any medium without royalty provided the copyright
33699 notice and this notice are preserved.