1 2019-11-18 Tom Tromey <tromey@adacore.com>
3 * doc/tm.texi: Rebuild.
4 * doc/tm.texi.in (Misc): Don't document MODIFY_JNI_METHOD_CALL.
5 * config/i386/cygming.h (MODIFY_JNI_METHOD_CALL): Don't define.
7 2019-11-18 Richard Biener <rguenther@suse.de>
9 PR tree-optimization/92516
10 * tree-vect-slp.c (vect_analyze_slp_instance): Add bst_map
11 argument, hoist bst_map creation/destruction to ...
12 (vect_analyze_slp): ... here, forming a true graph with
13 SLP instances being the entries.
14 (vect_detect_hybrid_slp_stmts): Remove wrapper.
15 (vect_detect_hybrid_slp): Use one visited set for all
17 (vect_slp_analyze_node_operations): Simplify visited/lvisited
18 to hash-sets of slp_tree.
19 (vect_slp_analyze_operations): Likewise.
20 (vect_bb_slp_scalar_cost): Remove wrapper.
21 (vect_bb_vectorization_profitable_p): Use one visited set for
23 (vect_schedule_slp_instance): Elide bst_map use.
24 (vect_schedule_slp): Likewise.
26 2019-11-18 Richard Biener <rguenther@suse.de>
28 * tree-vect-slp.c (vect_analyze_slp_instance): When a CTOR
29 was vectorized with just external refs fail.
31 2019-11-18 Martin Liska <mliska@suse.cz>
34 * ipa-icf.c (sem_function::init): Unset m_checker
35 at the end of the function.
37 2019-11-18 Richard Biener <rguenther@suse.de>
39 PR tree-optimization/92558
40 * tree-vect-loop.c (vect_create_epilog_for_reduction): When
41 reducting the width of a reduction vector def update new_phis.
43 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
45 * configure.ac (gcc_cv_target_ldbl128): Set for powerpc*-*-linux-musl*
46 and s390*-*-linux-musl* targets.
47 * configure: Regenerate.
49 2019-11-18 Szabolcs Nagy <szabolcs.nagy@arm.com>
51 * config/s390/linux.h (MUSL_DYNAMIC_LINKER32): Define.
52 (MUSL_DYNAMIC_LINKER64): Define.
54 2019-11-18 Martin Liska <mliska@suse.cz>
56 * dbgcnt.c (dbg_cnt_set_limit_by_name): Provide error
57 message for an unknown counter.
58 (dbg_cnt_process_single_pair): Support 0 as minimum value.
59 (dbg_cnt_process_opt): Remove unreachable code.
61 2019-11-18 Martin Liska <mliska@suse.cz>
64 * ipa-icf-gimple.c (func_checker::compare_gimple_assign):
65 Compare LHS types of NOP_EXPR.
67 2019-11-18 Matthew Malcomson <matthew.malcomson@arm.com>
69 * run-rtl-passes.c (run_rtl_passes): Accept and handle empty
70 "initial_pass_name" argument -- by running "*clean_state" pass.
71 Also free the "initial_pass_name" when done.
73 2019-11-18 Richard Biener <rguenther@suse.de>
75 PR rtl-optimization/92462
76 * alias.c (find_base_term): Restrict the look through ANDs.
77 (find_base_value): Likewise.
79 2019-11-18 Georg-Johann Lay <avr@gjlay.de>
81 Add support for AVR devices from the 0-series.
84 * config/avr/avr-arch.h (avr_mcu_t) <flash_pm_offset>: New field.
85 * config/avr/avr-devices.c (avr_mcu_types): Adjust initializers.
86 * config/avr/avr-mcus.def (AVR_MCU): Add respective field.
87 * config/avr/specs.h (LINK_SPEC) <%(link_pm_base_address)>: Add.
88 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
89 <*cpp, *cpp_mcu, *cpp_avrlibc, *link_pm_base_address>: Emit code
91 * doc/avr-mmcu.texi: Regenerate.
93 2019-11-18 Hongtao Liu <hongtao.liu@intel.com>
96 * config/i386/i386-expand.c (ix86_expand_set_or_cpymem):
97 Replace TARGET_AVX128_OPTIMAL with TARGET_AVX256_SPLIT_REGS.
98 * config/i386/i386-option.c (ix86_vec_cost): Ditto.
99 (ix86_reassociation_width): Ditto.
100 * config/i386/i386-options.c (ix86_option_override_internal):
101 Replace TARGET_AVX128_OPTIAML with
102 ix86_tune_features[X86_TUNE_AVX128_OPTIMAL]
103 * config/i386/i386.h (TARGET_AVX256_SPLIT_REGS): New macro.
104 (TARGET_AVX128_OPTIMAL): Deleted.
105 * config/i386/x86-tune.def (X86_TUNE_AVX256_SPLIT_REGS): New
108 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
110 * config/rs6000/rs6000.md (cceq_ior_compare): Rename to...
111 (@cceq_ior_compare_<mode> for GPR): ... this. Allow GPR instead of
113 (cceq_rev_compare): Rename to...
114 (@cceq_rev_compare_<mode> for GPR): ... this. Allow GPR instead of
116 (define_split for <bd>tf_<mode>): Add SImode first argument to
117 gen_cceq_ior_compare.
119 2019-11-16 Segher Boessenkool <segher@kernel.crashing.org>
121 * common/config/powerpcspe: Delete.
123 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
125 * config/aarch64/aarch64-sve.md (aarch64_wrffr): Wrap the FFRT
126 output in UNSPEC_WRFFR.
128 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
130 * tree-data-ref.c (create_intersect_range_checks_index): Rewrite
131 the index tests to have the form (unsigned T) (B - A + bias) <= limit.
133 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
135 * tree-data-ref.c (create_intersect_range_checks_index)
136 (create_intersect_range_checks): Print dump messages.
138 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
140 * tree-data-ref.c (dump_alias_pair): New function.
141 (prune_runtime_alias_test_list): Use it to dump each merged alias pair.
143 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
145 * tree-data-ref.h (DR_ALIAS_MIXED_STEPS): New flag.
146 * tree-data-ref.c (prune_runtime_alias_test_list): Set it when
147 merging data references with different steps.
148 (create_intersect_range_checks_index): Take a
149 dr_with_seg_len_pair_t instead of two dr_with_seg_lens.
150 Bail out if DR_ALIAS_MIXED_STEPS is set.
151 (create_intersect_range_checks): Take a dr_with_seg_len_pair_t
152 instead of two dr_with_seg_lens. Update call to
153 create_intersect_range_checks_index.
154 (create_runtime_alias_checks): Update call accordingly.
156 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
158 * tree-data-ref.h (DR_ALIAS_RAW, DR_ALIAS_WAR, DR_ALIAS_WAW)
159 (DR_ALIAS_ARBITRARY, DR_ALIAS_SWAPPED, DR_ALIAS_UNSWAPPED): New flags.
160 (dr_with_seg_len_pair_t::sequencing): New enum.
161 (dr_with_seg_len_pair_t::flags): New member variable.
162 (dr_with_seg_len_pair_t::dr_with_seg_len_pair_t): Take a sequencing
163 parameter and initialize the flags member variable.
164 * tree-loop-distribution.c (compute_alias_check_pairs): Update
166 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
167 Ensure the two data references in an alias pair are in statement
168 order, if there is a defined order.
169 * tree-data-ref.c (prune_runtime_alias_test_list): Use
170 DR_ALIAS_SWAPPED and DR_ALIAS_UNSWAPPED to record whether we've
171 swapped the references in a dr_with_seg_len_pair_t. OR together
172 the flags when merging two dr_with_seg_len_pair_ts. After merging,
173 try to restore the original dr_with_seg_len order, updating the
176 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
178 * tree-data-ref.c (prune_runtime_alias_test_list): Delay
179 swapping the dr_as based on init values until we've decided
180 whether to merge them.
182 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
184 * tree-data-ref.c (prune_runtime_alias_test_list): Sort the
185 two accesses in each dr_with_seg_len_pair_t before trying to
186 combine separate dr_with_seg_len_pair_ts.
187 * tree-loop-distribution.c (compute_alias_check_pairs): Don't do
189 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
191 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
193 * config/aarch64/aarch64-sve.md
194 (scatter_store<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
195 (scatter_store<SVE_24:mode><v_int_container>): ...this.
196 (mask_scatter_store<SVE_FULL_S:mode><v_int_equiv>): Extend to...
197 (mask_scatter_store<SVE_4:mode><v_int_equiv>): ...this.
198 (mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>): Extend to...
199 (mask_scatter_store<SVE_2:mode><v_int_equiv>): ...this.
200 (*mask_scatter_store<mode><v_int_container>_<su>xtw_unpacked): New
202 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
203 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_sxtw): ...this.
204 (*mask_scatter_store<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
205 (*mask_scatter_store<SVE_2:mode><v_int_equiv>_uxtw): ...this.
207 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
209 * config/aarch64/iterators.md (SVE_2BHSI, SVE_2HSDI, SVE_4BHI)
210 (SVE_4HSI): New mode iterators.
211 (ANY_EXTEND2): New code iterator.
212 * config/aarch64/aarch64-sve.md
213 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>):
215 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_4HSI:mode><SVE_4BHI:mode>):
216 ...this, handling extension to partial modes as well as full modes.
217 Describe the extension as a predicated rather than unpredicated
219 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
220 Likewise extend to...
221 (@aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>):
222 ...this, making the same adjustments.
223 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
224 Likewise extend to...
225 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_sxtw)
226 ...this, making the same adjustments.
227 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
228 Likewise extend to...
229 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_uxtw)
230 ...this, making the same adjustments.
231 (*aarch64_gather_load_<ANY_EXTEND:optab><SVE_2HSDI:mode><SVE_2BHSI:mode>_<ANY_EXTEND2:su>xtw_unpacked):
233 (*aarch64_ldff1_gather<mode>_sxtw): Canonicalize to a constant
235 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
236 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
237 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw):
238 Describe the extension as a predicated rather than unpredicated
240 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw):
241 Likewise. Canonicalize to a constant extension predicate.
242 * config/aarch64/aarch64-sve-builtins-base.cc
243 (svld1_gather_extend_impl::expand): Add an extra predicate for
245 (svldff1_gather_extend_impl::expand): Likewise.
247 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
249 * config/aarch64/iterators.md (SVE_24, SVE_2, SVE_4): New mode
251 * config/aarch64/aarch64-sve.md
252 (gather_load<SVE_FULL_SD:mode><v_int_equiv>): Extend to...
253 (gather_load<SVE_24:mode><v_int_container>): ...this.
254 (mask_gather_load<SVE_FULL_S:mode><v_int_equiv>): Extend to...
255 (mask_gather_load<SVE_4:mode><v_int_container>): ...this.
256 (mask_gather_load<SVE_FULL_D:mode><v_int_equiv>): Extend to...
257 (mask_gather_load<SVE_2:mode><v_int_container>): ...this.
258 (*mask_gather_load<SVE_2:mode><v_int_container>_<su>xtw_unpacked):
260 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_sxtw): Extend to...
261 (*mask_gather_load<SVE_2:mode><v_int_equiv>_sxtw): ...this.
262 Allow the nominal extension predicate to be different from the
264 (*mask_gather_load<SVE_FULL_D:mode><v_int_equiv>_uxtw): Extend to...
265 (*mask_gather_load<SVE_2:mode><v_int_equiv>_uxtw): ...this.
267 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
269 * config/aarch64/aarch64-sve.md
270 (trunc<SVE_HSDI:mode><SVE_PARTIAL_I:mode>2): New pattern.
271 * config/aarch64/aarch64.c (aarch64_integer_truncation_p): New
273 (aarch64_sve_adjust_stmt_cost): Call it.
275 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
277 * config/aarch64/aarch64-sve.md
278 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>):
279 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
280 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
282 (@aarch64_load_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
283 ...this new pattern, handling extension to partial modes as well
284 as full modes. Describe the extension as a predicated rather than
285 unpredicated extension.
286 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
287 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
288 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>):
290 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><SVE_HSDI:mode><SVE_PARTIAL_I:mode>):
291 ...this new pattern, handling extension to partial modes as well
292 as full modes. Describe the extension as a predicated rather than
293 unpredicated extension.
294 * config/aarch64/aarch64-sve-builtins.cc
295 (function_expander::use_contiguous_load_insn): Add an extra
296 predicate for extending loads.
297 * config/aarch64/aarch64.c (aarch64_extending_load_p): New function.
298 (aarch64_sve_adjust_stmt_cost): Likewise.
299 (aarch64_add_stmt_cost): Use aarch64_sve_adjust_stmt_cost to adjust
300 the cost of SVE vector stmts.
302 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
304 * config/aarch64/iterators.md (SVE_HSDI): New mode iterator.
305 (narrower_mask): Handle VNx4HI, VNx2HI and VNx2SI.
306 * config/aarch64/aarch64-sve.md
307 (<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): New pattern.
308 (*<ANY_EXTEND:optab><SVE_PARTIAL_I:mode><SVE_HSDI:mode>2): Likewise.
309 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Update
310 comment. Avoid new narrower_mask ambiguity.
311 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
312 (*cond_uxt<mode>_2): Update comment.
313 (*cond_uxt<mode>_any): Likewise.
315 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
317 * config/aarch64/aarch64-modes.def: Define partial SVE vector
319 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_mode): New
321 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Handle the
322 new vector float modes.
323 (aarch64_sve_container_bits): New function.
324 (aarch64_sve_pred_mode): Likewise.
325 (aarch64_get_mask_mode): Use it.
326 (aarch64_sve_element_int_mode): Handle structure modes and partial
328 (aarch64_sve_container_int_mode): New function.
329 (aarch64_vectorize_related_mode): Return SVE modes when given
330 SVE modes. Handle partial modes, taking the preferred number
331 of units from the size of the given mode.
332 (aarch64_hard_regno_mode_ok): Allow partial modes to be stored
334 (aarch64_expand_sve_ld1rq): Use the mode form of aarch64_sve_pred_mode.
335 (aarch64_expand_sve_const_vector): Handle partial SVE vectors.
336 (aarch64_split_sve_subreg_move): Use the mode form of
337 aarch64_sve_pred_mode.
338 (aarch64_secondary_reload): Handle partial modes in the same way
339 as full big-endian vectors.
340 (aarch64_vector_mode_supported_p): Allow partial SVE vectors.
341 (aarch64_autovectorize_vector_modes): Try unpacked SVE vectors,
342 merging with the Advanced SIMD modes. If two modes have the
343 same size, try the Advanced SIMD mode first.
344 (aarch64_simd_valid_immediate): Use the container rather than
345 the element mode for INDEX constants.
346 (aarch64_simd_vector_alignment): Make the alignment of partial
347 SVE vector modes the same as their minimum size.
348 (aarch64_evpc_sel): Use the mode form of aarch64_sve_pred_mode.
349 * config/aarch64/aarch64-sve.md (mov<SVE_FULL:mode>): Extend to...
350 (mov<SVE_ALL:mode>): ...this.
351 (movmisalign<SVE_FULL:mode>): Extend to...
352 (movmisalign<SVE_ALL:mode>): ...this.
353 (*aarch64_sve_mov<mode>_le): Rename to...
354 (*aarch64_sve_mov<mode>_ldr_str): ...this.
355 (*aarch64_sve_mov<SVE_FULL:mode>_be): Rename and extend to...
356 (*aarch64_sve_mov<SVE_ALL:mode>_no_ldr_str): ...this. Handle
357 partial modes regardless of endianness.
358 (aarch64_sve_reload_be): Rename to...
359 (aarch64_sve_reload_mem): ...this and enable for little-endian.
360 Use aarch64_sve_pred_mode to get the appropriate predicate mode.
361 (@aarch64_pred_mov<SVE_FULL:mode>): Extend to...
362 (@aarch64_pred_mov<SVE_ALL:mode>): ...this.
363 (*aarch64_sve_mov<SVE_FULL:mode>_subreg_be): Extend to...
364 (*aarch64_sve_mov<SVE_ALL:mode>_subreg_be): ...this.
365 (@aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
366 (@aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
367 (*aarch64_sve_reinterpret<SVE_FULL:mode>): Extend to...
368 (*aarch64_sve_reinterpret<SVE_ALL:mode>): ...this.
369 (maskload<SVE_FULL:mode><vpred>): Extend to...
370 (maskload<SVE_ALL:mode><vpred>): ...this.
371 (maskstore<SVE_FULL:mode><vpred>): Extend to...
372 (maskstore<SVE_ALL:mode><vpred>): ...this.
373 (vec_duplicate<SVE_FULL:mode>): Extend to...
374 (vec_duplicate<SVE_ALL:mode>): ...this.
375 (*vec_duplicate<SVE_FULL:mode>_reg): Extend to...
376 (*vec_duplicate<SVE_ALL:mode>_reg): ...this.
377 (sve_ld1r<SVE_FULL:mode>): Extend to...
378 (sve_ld1r<SVE_ALL:mode>): ...this.
379 (vec_series<SVE_FULL_I:mode>): Extend to...
380 (vec_series<SVE_I:mode>): ...this.
381 (*vec_series<SVE_FULL_I:mode>_plus): Extend to...
382 (*vec_series<SVE_I:mode>_plus): ...this.
383 (@aarch64_pred_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Avoid
385 (@aarch64_cond_sxt<SVE_FULL_HSDI:mode><SVE_PARTIAL_I:mode>): Likewise.
386 (add<SVE_FULL_I:mode>3): Extend to...
387 (add<SVE_I:mode>3): ...this.
388 * config/aarch64/iterators.md (SVE_ALL, SVE_I): New mode iterators.
389 (Vetype, Vesize, VEL, Vel, vwcore): Handle partial SVE vector modes.
390 (VPRED, vpred): Likewise.
391 (Vctype): New iterator.
392 (vw): Remove SVE modes.
394 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
396 * config/aarch64/iterators.md (SVE_PARTIAL): Rename to...
397 (SVE_PARTIAL_I): ...this.
398 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
400 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
402 * config/aarch64/iterators.md (SVE_ALL): Rename to...
404 (SVE_I): Rename to...
405 (SVE_FULL_I): ...this.
406 (SVE_F): Rename to...
407 (SVE_FULL_F): ...this.
408 (SVE_BHSI): Rename to...
409 (SVE_FULL_BHSI): ...this.
410 (SVE_HSD): Rename to...
411 (SVE_FULL_HSD): ...this.
412 (SVE_HSDI): Rename to...
413 (SVE_FULL_HSDI): ...this.
414 (SVE_HSF): Rename to...
415 (SVE_FULL_HSF): ...this.
416 (SVE_SD): Rename to...
417 (SVE_FULL_SD): ...this.
418 (SVE_SDI): Rename to...
419 (SVE_FULL_SDI): ...this.
420 (SVE_SDF): Rename to...
421 (SVE_FULL_SDF): ...this.
422 (SVE_S): Rename to...
423 (SVE_FULL_S): ...this.
424 (SVE_D): Rename to...
425 (SVE_FULL_D): ...this.
426 * config/aarch64/aarch64-sve.md: Apply the above renaming throughout.
427 * config/aarch64/aarch64-sve2.md: Likewise.
429 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
431 * config/aarch64/aarch64.opt (--param=aarch64-sve-compare-costs):
433 * doc/invoke.texi: Document it.
434 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
435 By default, return VECT_COMPARE_COSTS for SVE.
437 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
439 * target.h (VECT_COMPARE_COSTS): New constant.
440 * target.def (autovectorize_vector_modes): Return a bitmask of flags.
441 * doc/tm.texi: Regenerate.
442 * targhooks.h (default_autovectorize_vector_modes): Update accordingly.
443 * targhooks.c (default_autovectorize_vector_modes): Likewise.
444 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_modes):
446 * config/arc/arc.c (arc_autovectorize_vector_modes): Likewise.
447 * config/arm/arm.c (arm_autovectorize_vector_modes): Likewise.
448 * config/i386/i386.c (ix86_autovectorize_vector_modes): Likewise.
449 * config/mips/mips.c (mips_autovectorize_vector_modes): Likewise.
450 * tree-vectorizer.h (_loop_vec_info::vec_outside_cost)
451 (_loop_vec_info::vec_inside_cost): New member variables.
452 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize them.
453 (vect_better_loop_vinfo_p, vect_joust_loop_vinfos): New functions.
454 (vect_analyze_loop): When autovectorize_vector_modes returns
455 VECT_COMPARE_COSTS, try vectorizing the loop with each available
456 vector mode and picking the one with the lowest cost.
457 (vect_estimate_min_profitable_iters): Record the computed costs
458 in the loop_vec_info.
460 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
462 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take an
463 element type rather than an element mode.
464 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
465 Use get_vectype_for_scalar_type to query the natural types
466 for a given element type rather than basing everything on
467 GET_MODE_SIZE (vinfo->vector_mode). Limit int_mode_for_size
468 query to MAX_FIXED_MODE_SIZE.
469 (duplicate_and_interleave): Update call accordingly.
470 * tree-vect-loop.c (vectorizable_reduction): Likewise.
472 2019-11-16 Richard Sandiford <richard.sandiford@arm.com>
474 * tree-vectorizer.h (vect_get_vector_types_for_stmt): Take an
475 optional maximum nunits.
476 (get_vectype_for_scalar_type): Likewise. Also declare a form that
478 (get_mask_type_for_scalar_type): Take an optional slp_tree.
479 (vect_get_mask_type_for_stmt): Likewise.
480 * tree-vect-data-refs.c (vect_analyze_data_refs): Don't store
481 the vector type in STMT_VINFO_VECTYPE for BB vectorization.
482 * tree-vect-patterns.c (vect_recog_bool_pattern): Use
483 vect_get_vector_types_for_stmt instead of STMT_VINFO_VECTYPE
484 to get an assumed vector type for data references.
485 * tree-vect-slp.c (vect_update_shared_vectype): New function.
486 (vect_update_all_shared_vectypes): Likewise.
487 (vect_build_slp_tree_1): Pass the group size to
488 vect_get_vector_types_for_stmt. Use vect_update_shared_vectype
489 for BB vectorization.
490 (vect_build_slp_tree_2): Call vect_update_all_shared_vectypes
491 before building the vectof from scalars.
492 (vect_analyze_slp_instance): Pass the group size to
493 get_vectype_for_scalar_type.
494 (vect_slp_analyze_node_operations_1): Don't recompute the vector
495 types for BB vectorization here; just handle the case in which
496 we deferred the choice for booleans.
497 (vect_get_constant_vectors): Pass the slp_tree to
498 get_vectype_for_scalar_type.
499 * tree-vect-stmts.c (vect_prologue_cost_for_slp_op): Likewise.
500 (vectorizable_call): Likewise.
501 (vectorizable_simd_clone_call): Likewise.
502 (vectorizable_conversion): Likewise.
503 (vectorizable_shift): Likewise.
504 (vectorizable_operation): Likewise.
505 (vectorizable_comparison): Likewise.
506 (vect_is_simple_cond): Take the slp_tree as argument and
507 pass it to get_vectype_for_scalar_type.
508 (vectorizable_condition): Update call accordingly.
509 (get_vectype_for_scalar_type): Take a group_size argument.
510 For BB vectorization, limit the the vector to that number
511 of elements. Also define an overload that takes an slp_tree.
512 (get_mask_type_for_scalar_type): Add an slp_tree argument and
513 pass it to get_vectype_for_scalar_type.
514 (vect_get_vector_types_for_stmt): Add a group_size argument
515 and pass it to get_vectype_for_scalar_type. Don't use the
516 cached vector type for BB vectorization if a group size is given.
517 Handle data references in that case.
518 (vect_get_mask_type_for_stmt): Take an slp_tree argument and
519 pass it to get_mask_type_for_scalar_type.
521 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
523 * ipa-inline.h (do_estimate_edge_time): Add nonspec_time
525 (estimate_edge_time): Use it.
526 * ipa-inline-analysis.c (do_estimate_edge_time): Add
527 ret_nonspec_time parameter.
529 2019-11-15 Szabolcs Nagy <szabolcs.nagy@arm.com>
531 * config/m68k/linux.h (MUSL_DYNAMIC_LINKER): Define.
533 2019-11-15 Nick Clifton <nickc@redhat.com>
534 Szabolcs Nagy <szabolcs.nagy@arm.com>
537 * config/microblaze/microblaze.c (print_operand): Print value as long.
539 2019-11-15 Jan Hubicka <hubicka@ucw.cz>
541 * ipa-inline.c (edge_badness, inline_small_functions): Revert
544 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
546 * config/gcn/gcn.h (FIXED_REGISTERS): Unfix frame pointer.
547 (CALL_USED_REGISTERS): Make frame pointer callee-saved.
549 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
551 * config/gcn/gcn.c (MAX_NORMAL_SGPR_COUNT, MAX_NORMAL_VGPR_COUNT): New.
552 (gcn_conditional_register_usage): Use constants in place of hard-coded
554 (gcn_hsa_declare_function_name): Set lower bound for number of
555 SGPRs/VGPRs in non-leaf kernels to MAX_NORMAL_SGPR_COUNT and
556 MAX_NORMAL_VGPR_COUNT.
558 2019-11-15 Martin Jambor <mjambor@suse.cz>
560 * ipa-utils.h (ipa_remove_useless_jump_functions): Remove stray
563 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
565 * config/gcn/gcn.c (default_requested_args): New.
566 (gcn_parse_amdgpu_hsa_kernel_attribute): Initialize requested args
567 set with default_requested_args.
568 (gcn_conditional_register_usage): Limit register usage of non-kernel
569 functions. Reassign fixed registers if a non-standard set of args is
571 * config/gcn/gcn.h (FIXED_REGISTERS): Fix registers according to ABI.
573 2019-11-15 Feng Xue <fxue@os.amperecomputing.com>
576 * ipa-prop.c (update_jump_functions_after_inlining): Invalidate
577 aggregate jump function when inlined-to caller has no edge summary.
579 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
581 * config/gcn/gcn.c (gcn_init_cumulative_args): Call reinit_regs.
583 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
585 * config/gcn/gcn.c (gcn_expand_prologue): Remove initialization and
587 (print_operand_address): Use v1 for zero vector offset.
589 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
591 PR tree-optimization/92515
592 * tree-vect-stmts.c (vectorizable_shift): Record incompatible op1
593 types when converting a vector/scalar shift into a vector/vector one,
594 using tree_nop_conversion_p instead of useless_type_conversion_p.
595 Move the conversion code to the transform block.
597 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
599 * read-rtl-function.c
600 (function_reader::add_fixup_source_location): Take additional
601 parameter of a column.
602 (function_reader::maybe_read_location): Optionally parse column
603 information and pass to add_fixup_source_location.
605 2019-11-15 Richard Biener <rguenther@suse.de>
607 PR tree-optimization/92512
608 * tree-vect-loop.c (check_reduction_path): Fix operand index
609 computability check. Add check for second use in COND_EXPRs.
611 2019-11-15 Richard Sandiford <richard.sandiford@arm.com>
614 * config/rs6000/rs6000-call.c (rs6000_gimple_fold_builtin): Use
615 VIEW_CONVERT_EXPR to reinterpret vectors as different types.
617 2019-11-15 Kwok Cheung Yeung <kcy@codesourcery.com>
619 * config/gcn/gcn.c (gcn_regno_reg_class): Return VCC_CONDITIONAL_REG
620 register class for VCC_LO and VCC_HI.
621 (gcn_spill_class): Use SGPR_REGS to spill registers in
624 2019-11-15 Richard Biener <rguenther@suse.de>
626 PR tree-optimization/92324
627 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
628 singedness of SLP reduction epilouge operations. Also reduce
629 the vector width for SLP reductions before doing elementwise
630 operations if possible.
632 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
634 * passes.c (skip_pass): Set epilogue_completed if skipping the
635 pro_and_epilogue pass.
637 2019-11-15 Matthew Malcomson <matthew.malcomson@arm.com>
639 * passes.c (should_skip_pass_p): Always run "dfinish".
641 2019-11-15 Richard Biener <rguenther@suse.de>
643 * ipa-inline.c (inline_small_functions): Move assignment
644 to next before call destroying edge.
646 2019-11-15 Richard Biener <rguenther@suse.de>
648 PR tree-optimization/92039
649 PR tree-optimization/91975
650 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Revert
651 previous change, treat invariants consistently as non-constant.
652 (tree_estimate_loop_size): Ternary ops with just the first op
653 constant are not optimized away.
655 2019-11-15 Jakub Jelinek <jakub@redhat.com>
657 * gimplify.c (gimplify_call_expr): Don't call
658 omp_resolve_declare_variant after gimplification.
659 * omp-general.c (omp_context_selector_matches): For isa that might
660 match in some other function, defer if in declare simd function.
661 (omp_context_compute_score): Don't look for " score" in construct
662 trait set. Set *score to -1 if it can't ever match.
663 (omp_resolve_declare_variant): If any variants need to be deferred,
664 don't punt immediately, but compute scores of all variants and if
665 ther eis a score winner that doesn't need to be deferred, return that.
667 2019-11-15 Luo Xiong Hu <luoxhu@linux.ibm.com>
669 * ipa-comdats.c: Fix comments typo.
670 * ipa-profile.c: Fix comments typo.
671 * tree-profile.c (gimple_gen_ic_profiler): Use the new variable
672 __gcov_indirect_call.counters and __gcov_indirect_call.callee.
673 (gimple_gen_ic_func_profiler): Likewise.
674 (pass_ipa_tree_profile::gate): Fix comments typo.
676 2019-11-15 Xiong Hu Luo <luoxhu@linux.ibm.com>
678 * ipa-inline.c (inline_small_functions): Update iterator of next.
680 2019-11-14 Kwok Cheung Yeung <kcy@codesourcery.com>
682 * lra-spills.c (assign_spill_hard_regs): Check that the spill
683 register is suitable for the mode.
685 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
687 * range-op.h (range_operator::fold_range): Return a bool.
688 * range-op.cc (range_operator::wi_fold): Assert supported type.
689 (range_operator::fold_range): Assert supported type and return true.
690 (operator_equal::fold_range): Return true.
691 (operator_not_equal::fold_range): Same.
692 (operator_lt::fold_range): Same.
693 (operator_le::fold_range): Same.
694 (operator_gt::fold_range): Same.
695 (operator_ge::fold_range): Same.
696 (operator_plus::op1_range): Adjust call to fold_range.
697 (operator_plus::op2_range): Same.
698 (operator_minus::op1_range): Same.
699 (operator_minus::op2_range): Same.
700 (operator_exact_divide::op1_range): Same.
701 (operator_lshift::fold_range): Return true and adjust fold_range call.
702 (operator_rshift::fold_range): Same.
703 (operator_cast::fold_range): Return true.
704 (operator_logical_and::fold_range): Same.
705 (operator_logical_or::fold_range): Same.
706 (operator_logical_not::fold_range): Same.
707 (operator_bitwise_not::fold_range): Adjust call to fold_range.
708 (operator_bitwise_not::op1_range): Same.
709 (operator_cst::fold_range): Return true.
710 (operator_identity::fold_range): Return true.
711 (operator_negate::fold_range): Return true and adjust fold_range call.
712 (operator_addr_expr::fold_range): Return true.
713 (operator_addr_expr::op1_range): Adjust call to fold_range.
715 * tree-vrp.c (range_fold_binary_symbolics_p): Adjust call to fold_range.
716 (range_fold_unary_symbolics_p): Same.
718 2019-11-14 Andrew MacLeod <amacleod@redhat.com>
720 PR tree-optimization/92506
721 * range-op.cc (range_operator::fold_range): Start with range undefined.
722 (operator_abs::wi_fold): Fix wrong line copy... With wrapv, abs with
725 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
727 * range-op.cc (*operator*::*range): Remove calls to
728 range_intersect, range_invert, and range_union in favor of calling
729 the in-place API methods.
731 * range.cc (range_intersect): Remove.
732 (range_union): Remove.
733 (range_invert): Remove.
734 * range.h (range_intersect): Remove.
735 (range_union): Remove.
736 (range_intersect): Remove.
738 2019-11-14 Ilya Leoshkevich <iii@linux.ibm.com>
740 PR rtl-optimization/92430
741 * cfgcleanup.c (pass_jump_after_combine::gate): New function.
742 (pass_jump_after_combine::execute): Perform jump threading
745 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
746 Doug Rupp <rupp@adacore.com>
747 Olivier Hainque <hainque@adacore.com>
749 * config.gcc: Collapse the arm-vxworks entries into
750 a single arm-wrs-vxworks7* one, bpabi based. Update
751 the default cpu from arm8 to armv7-a
752 * config/arm/vxworks.h (CC1_SPEC): Simplify, knowing that
753 we always use ARM_UNWIND_INFO.
754 (DWARF2_UNWIND_INFO): Remove redefinition.
755 (ARM_TARGET2_DWARF_FORMAT): Likewise.
756 (VXWORKS_PERSONALITY): Define, to "llvm".
757 (VXWORKS_EXTRA_LIBS_RTP): Define, to "-lllvm".
759 2019-11-14 Jerome Lambourg <lambourg@adacore.com>
761 * config/arm/vxworks.h (TARGET_OS_CPP_BUILTINS): Use
762 _VX_CPU instead of CPU and handle arm_arch8.
764 2019-11-14 Doug Rupp <rupp@adacore.com>
765 Olivier Hainque <hainque@adacore.com>
766 Jerome Lambourg <lambourg@adacore.com>
768 * config.gcc: Handle aarch64*-wrs-vxworks7*.
769 * config/aarch64/aarch64-vxworks.h: New file.
770 * config/aarch64/t-aarch64-vxworks: New file.
772 2019-11-06 Jerome Lambourg <lambourg@adacore.com>
773 Olivier Hainque <hainque@adacore.com>
775 * config/vx-common.h (USE_TM_CLONE_REGISTRY): Remove
776 definition, pointless with a VxWorks specific version
778 (DWARF2_UNWIND_INFO): Conditionalize on !ARM_UNWIND_INFO.
779 * config/vxworks.h (VX_CRTBEGIN_SPEC, VX_CRTEND_SPEC):
780 New local macros, controlling the addition of vxworks specific
781 crtstuff objects depending on the EH mechanism and kind of
783 (VXWORKS_STARTFILE_SPEC, VXWORKS_ENDFILE_SPEC): Use them.
785 2019-11-06 Pat Bernardi <bernardi@adacore.com>
786 Jerome Lambourg <lambourg@adacore.com>
787 Olivier Hainque <hainque@adacore.com>
789 * config.gcc: Add comment to introduce the TARGET_VXWORKS
790 common macro definitions, conveying VXWORKS7 or 64bit general
791 variations. Add a block to set gcc_cv_initfini_array
792 unconditionally to "yes" for VxWorks7.
793 config/vx-common.h (VXWORKS_CC1_SPEC): New macro, empty string
794 by default. Update some comments.
795 config/vxworks.h (VXWORKS_EXTRA_LIBS_RTP): New macro, empty by
796 default, to be added the end of VXWORKS_LIBS_RTP.
797 (VXWORKS_LIBS_RTP): Replace hardcoded part by VXWORKS_BASE_LIBS_RTP
798 and append VXWORKS_EXTRA_LIBS_RTP, both of which specific ports may
800 (VXWORKS_NET_LIBS_RTP): Account for VxWorks7 specificities.
801 (VXWORKS_CC1_SPEC): Common base definition, with VxWorks7 variation
802 to account for the now available TLS abilities.
803 (TARGET_LIBC_HAS_FUNCTION): Account for VxWorks7 abilities.
804 (VXWORKS_HAVE_TLS): Likewise.
806 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
808 * tree-vect-slp.c (vect_contains_pattern_stmt_p): New function.
809 (vect_slp_convert_to_external): Likewise.
810 (vect_slp_analyze_node_operations): If analysis fails, try building
811 the node from scalars instead.
813 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
815 * tree-cfg.c (verify_gimple_assign_unary): Handle conversions
816 between vector types.
817 * tree-vect-stmts.c (vectorizable_conversion): Extend the
818 non-widening and non-narrowing path to handle standard
819 conversion codes, if the target supports them.
820 * expr.c (convert_move): Try using the extend and truncate optabs
822 * optabs-tree.c (supportable_convert_operation): Likewise.
823 * config/aarch64/iterators.md (Vnarroqw): New iterator.
824 * config/aarch64/aarch64-simd.md (<optab><Vnarrowq><mode>2)
825 (trunc<mode><Vnarrowq>2): New patterns.
827 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
829 * tree-vect-stmts.c (vect_get_vector_types_for_stmt): Don't
830 require vectype and nunits_vectype to have the same size;
831 instead assert that nunits_vectype has at least as many
832 elements as vectype. Don't compute a separate nunits_vectype
833 if the scalar type is obviously the same as vectype's.
836 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
838 * config/aarch64/aarch64.c (aarch64_vectorize_related_mode): New
840 (aarch64_autovectorize_vector_modes): Also add V4HImode and V2SImode.
841 (TARGET_VECTORIZE_RELATED_MODE): Define.
843 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
845 * tree-vectorizer.h (vec_info::mode_set): New typedef.
846 (vec_info::used_vector_mode): New member variable.
847 (vect_chooses_same_modes_p): Declare.
848 * tree-vect-stmts.c (get_vectype_for_scalar_type): Record each
849 chosen vector mode in vec_info::used_vector_mode.
850 (vect_chooses_same_modes_p): New function.
851 * tree-vect-loop.c (vect_analyze_loop): Use it to avoid trying
852 the same vector statements multiple times.
853 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
855 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
857 * machmode.h (opt_machine_mode::operator==): New function.
858 (opt_machine_mode::operator!=): Likewise.
859 * tree-vectorizer.h (vec_info::vector_mode): Update comment.
860 (get_related_vectype_for_scalar_type): Delete.
861 (get_vectype_for_scalar_type_and_size): Declare.
862 * tree-vect-slp.c (vect_slp_bb_region): Print dump messages to say
863 whether analysis passed or failed, and with what vector modes.
864 Use related_vector_mode to check whether trying a particular
865 vector mode would be redundant with the autodetected mode,
866 and print a dump message if we decide to skip it.
867 * tree-vect-loop.c (vect_analyze_loop): Likewise.
868 (vect_create_epilog_for_reduction): Use
869 get_related_vectype_for_scalar_type instead of
870 get_vectype_for_scalar_type_and_size.
871 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Replace
873 (get_related_vectype_for_scalar_type): ...this new function.
874 Take a starting/"prevailing" vector mode rather than a vector size.
875 Take an optional nunits argument, with the same meaning as for
876 related_vector_mode. Use related_vector_mode when not
877 auto-detecting a mode, falling back to mode_for_vector if no
879 (get_vectype_for_scalar_type): Update accordingly.
880 (get_same_sized_vectype): Likewise.
881 * tree-vectorizer.c (get_vec_alignment_for_array_type): Likewise.
883 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
885 * tree-vect-stmts.c (vectorizable_call): Require the types
886 to have the same size.
888 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
890 * tree-vect-stmts.c (vectorizable_call): If an operand is
891 constant or external, use get_vectype_for_scalar_type
892 rather than get_same_sized_vectype to get its vector type.
893 (vectorizable_conversion, vectorizable_shift): Likewise.
894 (vectorizable_operation): Likewise.
896 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
898 * tree-vectorizer.h (vec_info::vector_size): Replace with...
899 (vec_info::vector_mode): ...this new field.
900 * tree-vect-loop.c (vect_update_vf_for_slp): Update accordingly.
901 (vect_analyze_loop, vect_transform_loop): Likewise.
902 * tree-vect-loop-manip.c (vect_do_peeling): Likewise.
903 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
904 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
905 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
906 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
908 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
910 * target.h (vector_sizes, auto_vector_sizes): Delete.
911 (vector_modes, auto_vector_modes): New typedefs.
912 * target.def (autovectorize_vector_sizes): Replace with...
913 (autovectorize_vector_modes): ...this new hook.
914 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
916 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): ...this new hook.
917 * doc/tm.texi: Regenerate.
918 * targhooks.h (default_autovectorize_vector_sizes): Delete.
919 (default_autovectorize_vector_modes): New function.
920 * targhooks.c (default_autovectorize_vector_sizes): Delete.
921 (default_autovectorize_vector_modes): New function.
922 * omp-general.c (omp_max_vf): Use autovectorize_vector_modes instead
923 of autovectorize_vector_sizes. Use the number of units in the mode
924 to calculate the maximum VF.
925 * omp-low.c (omp_clause_aligned_alignment): Use
926 autovectorize_vector_modes instead of autovectorize_vector_sizes.
927 Use a loop based on related_mode to iterate through all supported
928 vector modes for a given scalar mode.
929 * optabs-query.c (can_vec_mask_load_store_p): Use
930 autovectorize_vector_modes instead of autovectorize_vector_sizes.
931 * tree-vect-loop.c (vect_analyze_loop, vect_transform_loop): Likewise.
932 * tree-vect-slp.c (vect_slp_bb_region): Likewise.
933 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes):
935 (aarch64_autovectorize_vector_modes): ...this new function.
936 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
937 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
938 * config/arc/arc.c (arc_autovectorize_vector_sizes): Replace with...
939 (arc_autovectorize_vector_modes): ...this new function.
940 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
941 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
942 * config/arm/arm.c (arm_autovectorize_vector_sizes): Replace with...
943 (arm_autovectorize_vector_modes): ...this new function.
944 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
945 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
946 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Replace with...
947 (ix86_autovectorize_vector_modes): ...this new function.
948 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
949 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
950 * config/mips/mips.c (mips_autovectorize_vector_sizes): Replace with...
951 (mips_autovectorize_vector_modes): ...this new function.
952 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Delete.
953 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_MODES): Define.
955 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
957 * tree-vect-stmts.c (vectorizable_shift): Check the number
958 of vector elements as well as the type mode when deciding
959 whether an op1_vectype is compatible. Reuse the result of
960 this check when generating vector statements.
962 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
964 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): If
965 targetm.vectorize.preferred_simd_mode returns an integer mode,
966 use mode_for_vector to decide what the vector type's mode
967 should actually be. Use build_vector_type_for_mode instead
968 of build_vector_type.
970 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
972 * target.def (get_mask_mode): Take a vector mode itself as argument,
973 instead of properties about the vector mode.
974 * doc/tm.texi: Regenerate.
975 * targhooks.h (default_get_mask_mode): Update to reflect new
976 get_mode_mask interface.
977 * targhooks.c (default_get_mask_mode): Likewise. Use
978 related_int_vector_mode.
979 * optabs-query.c (can_vec_mask_load_store_p): Update call
981 * tree-vect-stmts.c (check_load_store_masking): Likewise, checking
982 first that the original mode really is a vector.
983 * tree.c (build_truth_vector_type_for): Likewise.
984 * config/aarch64/aarch64.c (aarch64_get_mask_mode): Update for new
985 get_mode_mask interface.
986 (aarch64_expand_sve_vcond): Update call accordingly.
987 * config/gcn/gcn.c (gcn_vectorize_get_mask_mode): Update for new
988 get_mode_mask interface.
989 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
991 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
993 * tree.h (build_truth_vector_type): Delete.
994 (build_same_sized_truth_vector_type): Likewise.
995 * tree.c (build_truth_vector_type): Rename to...
996 (build_truth_vector_type_for): ...this. Make static and take
997 a vector type as argument.
998 (truth_type_for): Update accordingly.
999 (build_same_sized_truth_vector_type): Delete.
1000 * tree-vect-generic.c (expand_vector_divmod): Use truth_type_for
1001 instead of build_same_sized_truth_vector_type.
1002 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
1003 (vect_record_loop_mask, vect_get_loop_mask): Likewise.
1004 * tree-vect-patterns.c (build_mask_conversion): Likeise.
1005 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1006 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1007 (vect_build_gather_load_calls, vectorizable_call): Likewise.
1008 (scan_store_can_perm_p, vectorizable_scan_store): Likewise.
1009 (vectorizable_store, vectorizable_condition): Likewise.
1010 (get_mask_type_for_scalar_type, get_same_sized_vectype): Likewise.
1011 (vect_get_mask_type_for_stmt): Use truth_type_for instead of
1012 build_truth_vector_type.
1013 * config/aarch64/aarch64-sve-builtins.cc (gimple_folder::convert_pred):
1014 Use truth_type_for instead of build_same_sized_truth_vector_type.
1015 * config/rs6000/rs6000-call.c (fold_build_vec_cmp): Likewise.
1017 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1019 * tree.h (build_truth_vector_type_for_mode): Declare.
1020 * tree.c (build_truth_vector_type_for_mode): New function,
1022 (build_truth_vector_type): ...here.
1023 (build_opaque_vector_type): Fix head comment.
1024 * tree-vectorizer.h (supportable_narrowing_operation): Remove
1026 (vect_halve_mask_nunits): Replace vec_info parameter with the
1027 mode of the new vector.
1028 (vect_double_mask_nunits): Likewise.
1029 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
1030 (vect_double_mask_nunits): Likewise.
1031 * tree-vect-loop-manip.c: Include insn-config.h, rtl.h and recog.h.
1032 (vect_maybe_permute_loop_masks): Remove vinfo parameter. Update call
1033 to vect_halve_mask_nunits, getting the required mode from the unpack
1035 (vect_set_loop_condition_masked): Update call accordingly.
1036 * tree-vect-stmts.c (supportable_narrowing_operation): Remove vec_info
1037 parameter and update call to vect_double_mask_nunits.
1038 (vectorizable_conversion): Update call accordingly.
1039 (simple_integer_narrowing): Likewise. Remove vec_info parameter.
1040 (vectorizable_call): Update call accordingly.
1041 (supportable_widening_operation): Update call to
1042 vect_halve_mask_nunits.
1043 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
1044 Use build_truth_vector_type_mode instead of build_truth_vector_type.
1046 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1048 * machmode.h (mode_for_int_vector): Delete.
1049 (related_int_vector_mode): Declare.
1050 * stor-layout.c (mode_for_int_vector): Delete.
1051 (related_int_vector_mode): New function.
1052 * optabs.c (expand_vec_perm_1): Use related_int_vector_mode
1053 instead of mode_for_int_vector.
1054 (expand_vec_perm_const): Likewise.
1055 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
1056 (aarch64_evpc_sve_tbl): Likewise.
1057 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
1058 (s390_expand_vcond): Likewise.
1060 2019-11-14 Richard Sandiford <richard.sandiford@arm.com>
1062 * target.def (related_mode): New hook.
1063 * doc/tm.texi.in (TARGET_VECTORIZE_RELATED_MODE): New hook.
1064 * doc/tm.texi: Regenerate.
1065 * targhooks.h (default_vectorize_related_mode): Declare.
1066 * targhooks.c (default_vectorize_related_mode): New function.
1067 * machmode.h (related_vector_mode): Declare.
1068 * stor-layout.c (related_vector_mode): New function.
1069 * expmed.c (extract_bit_field_1): Use it instead of mode_for_vector.
1070 * optabs-query.c (qimode_for_vec_perm): Likewise.
1071 * tree-vect-stmts.c (get_group_load_store_type): Likewise.
1072 (vectorizable_store, vectorizable_load): Likewise
1074 2019-11-14 Richard Henderson <richard.henderson@linaro.org>
1076 * config/arm/aarch-common-protos.h (arm_md_asm_adjust): Declare.
1077 * config/arm/aarch-common.c (arm_md_asm_adjust): New.
1078 * config/arm/arm-c.c (arm_cpu_builtins): Define
1079 __GCC_ASM_FLAG_OUTPUTS__.
1080 * config/arm/arm.c (TARGET_MD_ASM_ADJUST): New.
1081 * config/aarch64/aarch64-c.c (aarch64_define_unconditional_macros):
1082 Define __GCC_ASM_FLAG_OUTPUTS__.
1083 * config/aarch64/aarch64.c (TARGET_MD_ASM_ADJUST): New.
1084 * doc/extend.texi (FlagOutputOperands): Add documentation
1085 for ARM and AArch64.
1087 * config/arm/arm-modes.def (CC_NZ): Rename from CC_NOOV.
1088 * config/arm/predicates.md (nz_comparison_operator): Rename
1089 from noov_comparison_operator.
1090 * config/arm/arm.c (arm_select_cc_mode): Use CC_NZmode name.
1091 (arm_gen_dicompare_reg): Likewise.
1092 (maybe_get_arm_condition_code): Likewise.
1093 (thumb1_final_prescan_insn): Likewise.
1094 (arm_emit_coreregs_64bit_shift): Likewise.
1095 * config/arm/arm.md (addsi3_compare0): Likewise.
1096 (*addsi3_compare0_scratch, subsi3_compare0): Likewise.
1097 (*mulsi3_compare0, *mulsi3_compare0_v6): Likewise.
1098 (*mulsi3_compare0_scratch, *mulsi3_compare0_scratch_v6): Likewise.
1099 (*mulsi3addsi_compare0, *mulsi3addsi_compare0_v6): Likewise.
1100 (*mulsi3addsi_compare0_scratch): Likewise.
1101 (*mulsi3addsi_compare0_scratch_v6): Likewise.
1102 (*andsi3_compare0, *andsi3_compare0_scratch): Likewise.
1103 (*zeroextractsi_compare0_scratch): Likewise.
1104 (*ne_zeroextractsi, *ne_zeroextractsi_shifted): Likewise.
1105 (*ite_ne_zeroextractsi, *ite_ne_zeroextractsi_shifted): Likewise.
1106 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
1107 (andsi_not_shiftsi_si_scc): Likewise.
1108 (*andsi_notsi_si_compare0, *andsi_notsi_si_compare0_scratch): Likewise.
1109 (*iorsi3_compare0, *iorsi3_compare0_scratch): Likewise.
1110 (*xorsi3_compare0, *xorsi3_compare0_scratch): Likewise.
1111 (*shiftsi3_compare0, *shiftsi3_compare0_scratch): Likewise.
1112 (*not_shiftsi_compare0, *not_shiftsi_compare0_scratch): Likewise.
1113 (*notsi_compare0, *notsi_compare0_scratch): Likewise.
1114 (return_addr_mask, *check_arch2): Likewise.
1115 (*arith_shiftsi_compare0, *arith_shiftsi_compare0_scratch): Likewise.
1116 (*sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch): Likewise.
1117 (compare_scc splitters): Likewise.
1118 (movcond_addsi): Likewise.
1119 * config/arm/thumb2.md (thumb2_addsi3_compare0): Likewise.
1120 (*thumb2_addsi3_compare0_scratch): Likewise.
1121 (*thumb2_mulsi_short_compare0): Likewise.
1122 (*thumb2_mulsi_short_compare0_scratch): Likewise.
1123 (compare peephole2s): Likewise.
1124 * config/arm/thumb1.md (thumb1_cbz): Use CC_NZmode and
1125 nz_comparison_operator names.
1126 (cbranchsi4_insn): Likewise.
1128 * config/arm/constraints.md (c): Use cc_register predicate.
1130 * config/aarch64/constraints.md (c): New constraint.
1132 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1134 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time,
1135 ipa_merge_fn_summary_after_inlining): Micro optimize.
1137 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1139 * params.opt (max-inline-insns-single-O2): Set to 70 (instead of 30).
1141 2019-11-14 Jan Hubicka <hubicka@ucw.cz>
1143 * ipa-cp.c (ipa_vr_operation_and_type_effects): Move up in file.
1144 (ipa_value_range_from_jfunc): New function.
1145 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Add
1146 known_value_ranges parameter; use it to evalulate conditions.
1147 (evaluate_properties_for_edge): Compute known value ranges.
1148 (ipa_fn_summary_t::duplicate): Update use of
1149 evaluate_conditions_for_known_args.
1150 (estimate_ipcp_clone_size_and_time): Likewise.
1151 (ipa_merge_fn_summary_after_inlining): Likewise.
1152 * ipa-prop.h (ipa_value_range_from_jfunc): Declare.
1154 2019-11-14 Martin Liska <mliska@suse.cz>
1156 * ipa-inline.c (want_inline_small_function_p): Use
1157 CIF_MAX_INLINE_INSNS_AUTO_LIMIT instead
1158 of CIF_MAX_INLINE_INSNS_SINGLE_O2_LIMIT.
1160 2019-11-14 Martin Liska <mliska@suse.cz>
1162 * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn
1163 of a callee to get value of the param.
1164 * ipa-inline.c (inline_insns_auto): Use proper
1166 * opts.c (maybe_default_option): Do not overwrite param
1167 value if optimization level does not match. Note that
1168 params usually have default value set via Init() keyword.
1169 * params.opt: Remove -param=max-inline-insns-auto-O2.
1170 * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove.
1171 * doc/invoke.texi: Remove documentation of
1172 max-inline-insns-auto-O2.
1174 2019-11-14 Martin Liska <mliska@suse.cz>
1176 * tree-switch-conversion.c (switch_conversion::switch_conversion):
1177 Do not initialize m_other_count.
1178 (switch_conversion::collect): Do not count m_default_count and
1179 m_other_count as we use frequencies for edges.
1180 * tree-switch-conversion.h: Remove m_default_count and m_other_count.
1182 2019-11-14 Martin Liska <mliska@suse.cz>
1185 * doc/invoke.texi: Document -fallocation-dce.
1187 2019-11-14 Martin Liska <mliska@suse.cz>
1190 * config/i386/i386.h: Add PTA_AVX512VPOPCNTDQ to
1191 PTA_ICELAKE_CLIENT which is later interited by
1192 PTA_ICELAKE_SERVER and PTA_TIGERLAKE.
1194 2019-11-14 Martin Liska <mliska@suse.cz>
1196 * ipa-icf.c (sem_item_optimizer::execute): Save
1198 (sem_item_optimizer::parse_nonsingleton_classes):
1199 Return number of loaded symbols.
1200 (sem_item_optimizer::merge_classes): Print
1201 statistics about totally needed symbols.
1202 * ipa-icf.h (parse_nonsingleton_classes): Change return
1204 (merge_classes): Add one argument.
1206 2019-11-14 Martin Liska <mliska@suse.cz>
1208 * ipa-icf-gimple.c (func_checker::hash_operand): Improve
1209 func_checker::hash_operand by handling of FIELD_DECLs.
1211 2019-11-14 Martin Liska <mliska@suse.cz>
1213 * ipa-icf-gimple.h (func_checker::func_checker): Add
1214 default constructor.
1215 * ipa-icf.c (sem_function::init): Make operand_equal_p
1216 and hash_operand public.
1217 (sem_item::add_expr): Remove.
1218 (sem_item::add_type): Remove.
1219 (sem_function::hash_stmt): Use m_checker for hashing
1220 of GIMPLE statements.
1221 (sem_function::parse): Init with checker.
1222 (sem_variable::parse): Pass NULL as checker.
1223 (sem_item_optimizer::parse_funcs_and_vars):
1224 Pass checker to ::parse function.
1225 (sem_item_optimizer::parse_nonsingleton_classes): Likewise.
1226 (sem_variable::parse): New function.
1227 (sem_variable::get_hash): Only return computed hash value.
1228 (sem_variable::init): Initialize hash of a variable.
1229 * ipa-icf.h: Remove add_expr, add_type and add func_checker
1230 to couple of functions as a new argument.
1232 2019-11-14 Martin Liska <mliska@suse.cz>
1234 * ipa-icf-gimple.c (func_checker::compare_gimple_call): Update
1236 (func_checker::compare_gimple_assign): Likewise.
1238 2019-11-14 Jakub Jelinek <jakub@redhat.com>
1240 * config/i386/i386-options.c (ix86_omp_device_kind_arch_isa): Don't
1241 change sse4.2 to sse4_2 and sse4.1 to sse4.1.
1242 * config/i386/t-omp-device (omp-device-properties-i386): Likewise.
1244 * omp-general.c (omp_context_name_list_prop): New function.
1245 (omp_context_selector_matches): Use it. Return 0 if it returns
1247 (omp_context_selector_props_compare): Allow equivalency of an
1248 identifier and a string literal containing no embedded zeros.
1250 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1252 * range-op.cc (RANGE3): Remove.
1253 (range_tests): Remove all selftest that check for multi-ranges.
1254 Put tests in namespace selftest.
1255 * selftest.h: Move range_tests into namespace selftest.
1256 * value-range.h (class value_range): Unfriend range_tests.
1258 2019-11-14 Aldy Hernandez <aldyh@redhat.com>
1260 * tree-vrp.c (range_fold_binary_symbolics_p): Adapt for
1261 normalize_symbolics and normalize_addresses working in place.
1262 (range_fold_unary_symbolics_p): Same.
1263 (range_fold_unary_symbolics_p): Same.
1264 * value-range.cc (num_pairs): Same.
1265 (lower_bound): Same.
1266 (upper_bound): Same.
1268 (normalize_addresses): Same.
1269 (normalize_symbolics): Same.
1270 * value-range.h (normalize_symbolics): Same.
1271 (normalize_addresses): Same.
1273 2019-11-14 Feng Xue <fxue@os.amperecomputing.com>
1276 * ipa-prop.h (jump_func_type): New value IPA_JF_LOAD_AGG.
1277 (ipa_load_agg_data, ipa_agg_value, ipa_agg_value_set): New structs.
1278 (ipa_agg_jf_item): Add new field jftype and type, redefine field value.
1279 (ipa_agg_jump_function): Remove member function equal_to.
1280 (ipa_agg_jump_function_p): Remove typedef.
1281 (ipa_copy_agg_values, ipa_release_agg_values): New functions.
1282 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Dump
1283 information for aggregate jump function.
1284 (get_ssa_def_if_simple_copy): Add new parameter rhs_stmt to
1285 record last definition statement.
1286 (load_from_unmodified_param_or_agg): New function.
1287 (ipa_known_agg_contents_list): Add new field type and value, remove
1289 (build_agg_jump_func_from_list): Rename parameter const_count to
1290 value_count, build aggregate jump function from ipa_load_agg_data.
1291 (analyze_agg_content_value): New function.
1292 (extract_mem_content): Analyze memory store assignment to prepare
1293 information for aggregate jump function generation.
1294 (determine_known_aggregate_parts): Add new parameter fbi, remove
1295 parameter aa_walk_budeget_p.
1296 (update_jump_functions_after_inlining): Update aggregate jump function.
1297 (ipa_find_agg_cst_for_param): Change type of parameter agg.
1298 (try_make_edge_direct_simple_call): Add new parameter new_root.
1299 (try_make_edge_direct_virtual_call): Add new parameter new_root and
1301 (update_indirect_edges_after_inlining): Pass new argument to
1302 try_make_edge_direct_simple_call and try_make_edge_direct_virtual_call.
1303 (ipa_write_jump_function): Write aggregate jump function to file.
1304 (ipa_read_jump_function): Read aggregate jump function from file.
1305 (ipa_agg_value::equal_to): Migrate from ipa_agg_jf_item::equal_to.
1306 * ipa-cp.c (ipa_get_jf_arith_result): New function.
1307 (ipa_agg_value_from_node): Likewise.
1308 (ipa_agg_value_set_from_jfunc): Likewise.
1309 (propagate_vals_across_arith_jfunc): Likewise.
1310 (propagate_aggregate_lattice): Likewise.
1311 (ipa_get_jf_pass_through_result): Call ipa_get_jf_arith_result.
1312 (propagate_vals_across_pass_through): Call
1313 propagate_vals_across_arith_jfunc.
1314 (get_clone_agg_value): Move forward.
1315 (propagate_aggs_across_jump_function): Handle value propagation for
1316 aggregate jump function.
1317 (agg_jmp_p_vec_for_t_vec): Remove.
1318 (context_independent_aggregate_values): Replace vec<ipa_agg_jf_item>
1319 with vec<ipa_agg_value>.
1320 (copy_plats_to_inter, intersect_with_plats): Likewise.
1321 (agg_replacements_to_vector, intersect_with_agg_replacements): Likewise.
1322 (intersect_aggregate_with_edge): Likewise.
1323 (find_aggregate_values_for_callers_subset): Likewise.
1324 (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
1325 (estimate_local_effects): Replace vec<ipa_agg_jump_function> and
1326 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1327 (gather_context_independent_values): Likewise.
1328 (perform_estimation_of_a_value, decide_whether_version_node): Likewise.
1329 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Replace
1330 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1331 (evaluate_properties_for_edge): Likewise.
1332 (estimate_edge_devirt_benefit): Likewise.
1333 (estimate_edge_size_and_time): Likewise.
1334 (estimate_calls_size_and_time): Likewise.
1335 (ipa_call_context::ipa_call_context): Likewise.
1336 (estimate_ipcp_clone_size_and_time): Likewise.
1337 * ipa-fnsummary.h (ipa_call_context): Replace
1338 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1339 * ipa-inline-analysis.c (do_estimate_edge_time): Replace
1340 vec<ipa_agg_jump_function_p> with vec<ipa_agg_value_set>.
1341 (do_estimate_edge_size): Likewise.
1342 (do_estimate_edge_hints): Likewise.
1344 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1346 * ipa-cp.c (propagate_vr_across_jump_function): Propagate also across
1349 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1351 * ipa-profile.c (check_argument_count): Check properly that e_info
1352 is non-NULL; do not check descriptors.
1354 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1356 * ipa-inline-analysis.c (do_estimate_edge_time): Relax
1357 check for ipa profiles.
1359 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1362 * ipa-prop.c (update_indirect_edges_after_inlining):
1363 Mark parameter as used.
1364 * ipa-inline.c (recursive_inlining): Reset node cache
1366 (inline_small_functions): Remove checking ifdef.
1367 * ipa-inline-analysis.c (do_estimate_edge_time): Verify
1370 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1373 * ipa-profile.c (check_argument_count): Do not ICE when descriptors
1375 (ipa_profile): Fix reversed test.
1377 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1379 * ipa-cp.c (ignore_edge_p): Do not check caller flags.
1380 (propagate_constants_topo): Fix typo.
1382 2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1384 * Makefile.in (OBJS): Add value-range.o.
1385 (GTFILES): Add value-range.h.
1386 * gengtype.c (open_base_files): Add value-range.h to list of
1388 * tree-vrp.c: Move the following value_range related functions:
1389 ranges_from_anti_range, value_range, check, equal_p, symbolic_p,
1390 constant_p, set_undefined, set_varying, may_contain_p,
1391 singleton_p, type, dump, dump_value_range, debug, vrp_val_max,
1392 vrp_val_min, vrp_val_is_min, vrp_val_is_max, set, set_nonzero,
1393 set_zero, vrp_operand_equal_p, range_has_numeric_bounds_p,
1394 value_inside_range, ranges_from_anti_range, union_ranges,
1395 intersect_ranges, intersect_helper, union_helper, union_,
1396 normalize_addresses, normalize_symbolics, num_pairs, lower_bound,
1397 upper_bound, contains_p, invert, intersect...
1398 * value-range.cc: ...to here.
1399 * tree-vrp.h: Move class value_range, enum_value_range_kind, and
1400 associated inline methods from here...
1401 * value-range.h: ...to here.
1403 2019-11-13 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
1405 * config/mips/mips.md (rotr<mode>3): Sanitize the constant argument
1406 instead of asserting its value.
1408 (2019-11-13 Aldy Hernandez <aldyh@redhat.com>
1410 * gimple-fold.c (size_must_be_zero_p): Rewrite use of value_range
1411 constructors and set methods so value_range_kind is the last
1412 argument and defaults to VR_RANGE.
1413 * gimple-ssa-evrp-analyze.c (record_ranges_from_stmt): Same.
1414 * ipa-cp.c (propagate_vr_across_jump_function): Same.
1415 * ipa-prop.c (ipa_get_value_range): Same.
1416 (ipa_compute_jump_functions_for_edge): Same.
1417 * range-op.cc (value_range_from_overflowed_bounds): Same.
1418 (operator_cast::op1_range): Same.
1419 (range_tests): Same.
1420 * range.cc (range_nonzero): Same.
1421 * tree-ssanames.c (get_range_info): Same.
1422 * tree-vrp.c (value_range_equiv::set): Same.
1423 (value_range::value_range): Same.
1424 (value_range_equiv::value_range_equiv): Same.
1425 (value_range_equiv::update): Same.
1426 (value_range_equiv::deep_copy): Same.
1427 (value_range_equiv::move): Same.
1428 (value_range_equiv::set_undefined): Same.
1429 (value_range::set): Same.
1430 (value_range::set_nonzero): Same.
1431 (ranges_from_anti_range): Same.
1432 (extract_range_from_plus_minus_expr): Same.
1433 (value_range::intersect_helper): Same.
1434 (value_range_equiv::intersect): Same.
1435 (value_range::union_helper): Same.
1436 (value_range_equiv::union_): Same.
1437 (value_range::normalize_symbolics): Same.
1438 (value_range::invert): Same.
1439 (determine_value_range_1): Same.
1440 * tree-vrp.h (class value_range): Same.
1441 (class value_range_equiv): Same.
1442 * vr-values.c (set_value_range_to_nonnegative): Same.
1443 (set_value_range_to_truthvalue): Same.
1444 (vr_values::update_value_range): Same.
1445 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1446 (vr_values::extract_range_from_binary_expr): Same.
1447 (vr_values::extract_range_from_comparison): Same.
1448 (vr_values::extract_range_basic): Same.
1449 (vr_values::adjust_range_with_scev): Same.
1450 (vr_values::vrp_evaluate_conditional_warnv_with_ops): Same.
1451 (vr_values::extract_range_from_phi_node): Same.
1453 2019-11-13 Ulrich Drepper <drepper@redhat.com>
1455 * tree-dump.c (dequeue_and_dump): Print first tree operand
1456 for VIEW_CONVERT_EXPR.
1458 2019-11-13 Joseph Myers <joseph@codesourcery.com>
1460 * ginclude/float.c [__STDC_VERSION__ > 201710L] (FLT_NORM_MAX,
1461 DBL_NORM_MAX, LDBL_NORM_MAX): Define.
1462 * real.c (get_max_float): Add norm_max argument.
1463 * real.h (get_max_float): Update prototype.
1464 * builtins.c (fold_builtin_interclass_mathfn): Update calls to
1467 2019-11-13 Martin Liska <mliska@suse.cz>
1469 * dbgcnt.c (test_sorted_dbg_counters): New.
1470 (dbgcnt_c_tests): Likewise.
1471 * selftest-run-tests.c (selftest::run_tests): Likewise.
1472 * selftest.h (dbgcnt_c_tests): Likewise.
1474 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1475 Martin Jambor <mjambor@suse.cz>
1478 * ipa-cp.c (spread_undeadness): Check that IPA_NODE_REF exists.
1479 (identify_dead_nodes): Likewise.
1481 2019-11-13 Martin Liska <mliska@suse.cz>
1483 * ipa-icf.c (sem_function::equals_private): Do not overuse
1484 push/pop_cfun functions.
1486 2019-11-13 Martin Liska <mliska@suse.cz>
1488 * common.opt: Document change of -fdbg-cnt option.
1489 * dbgcnt.c (DEBUG_COUNTER): Remove.
1490 (dbg_cnt_is_enabled): Remove.
1491 (dbg_cnt): Work with new intervals.
1492 (dbg_cnt_set_limit_by_index): Set to new
1494 (dbg_cnt_set_limit_by_name): Likewise.
1495 (dbg_cnt_process_single_pair): Process new format.
1496 (dbg_cnt_process_opt): Likewise.
1497 (dbg_cnt_list_all_counters): Likewise.
1498 * doc/invoke.texi: Document change of -fdbg-cnt option.
1501 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1503 * ipa-inline.c (ipa_inline): Check that function is defined before
1506 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1507 Julian Brown <julian@codesourcery.com>
1509 * config/gcn/gcn.c (gcn_goacc_validate_dims): Ensure
1510 flag_worker_partitioning is not set.
1511 (TARGET_GOACC_WORKER_PARTITIONING): Remove target hook definition.
1512 * config/gcn/gcn.opt (macc-experimental-workers): Default to off.
1514 2019-11-13 Andrew Stubbs <ams@codesourcery.com>
1516 * config/gcn/gcn-run.c (heap_region): New global variable.
1517 (struct hsa_runtime_fn_info): Add hsa_memory_assign_agent_fn.
1518 (init_hsa_runtime_functions): Initialize hsa_memory_assign_agent.
1519 (get_kernarg_region): Move contents to ....
1520 (get_memory_region): .... here.
1521 (get_heap_region): New function.
1522 (init_device): Initialize the heap_region.
1523 (device_malloc): Add region parameter.
1524 (struct kernargs): Move heap ....
1525 (heap): ... to global scope.
1526 (main): Allocate heap separate to kernargs.
1528 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1530 * ipa-prop.c (ipa_print_node_jump_functions,
1531 ipa_print_node_params): Print info about missing summaries.
1533 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1535 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Include
1536 the cost of generating loop masks.
1538 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1540 * tree-vectorizer.h (vect_apply_runtime_profitability_check_p):
1542 * tree-vect-loop-manip.c (vect_loop_versioning): Use it.
1543 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
1544 (vect_transform_loop): Likewise.
1545 (vect_analyze_loop_costing): Don't take the cost of versioning
1546 into account for the static profitability threshold if it turns
1547 out that no versioning is needed.
1549 2019-11-13 Jan Hubicka <hubicka@ucw.cz>
1551 * ipa.c (cgraph_build_static_cdtor): Pass optimization_default_node
1552 and target_option_default_node to get -fprofile-generate ctors working
1555 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1557 * tree-vectorizer.h (vect_nop_conversion_p): Declare.
1558 * tree-vect-stmts.c (vect_nop_conversion_p): New function.
1559 (vectorizable_assignment): Don't add a cost for nop conversions.
1560 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
1562 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Likewise.
1564 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1566 * tree-vect-stmts.c (vect_model_promotion_demotion_cost): Take the
1567 number of ncopies as an additional argument.
1568 (vectorizable_conversion): Update call accordingly. Use "modifier"
1569 to check whether a conversion is between vectors with the same
1572 2019-11-13 Richard Sandiford <richard.sandiford@arm.com>
1574 * config/aarch64/aarch64-sve-builtins-functions.h
1575 (unary_count::expand): Use aarch64_sve_int_mode instead of
1576 mode_for_int_vector.
1578 2019-11-13 Martin Liska <mliska@suse.cz>
1580 * opts.c: Update comment about OPT_LEVELS_2_PLUS_SPEED_ONLY.
1582 2019-11-13 Martin Liska <mliska@suse.cz>
1584 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
1585 Remove call to finalize_options_struct.
1587 2019-11-13 Georg-Johann Lay <avr@gjlay.de>
1590 * config/avr/t-avr (avr-mcus): Do not depend on
1591 $(srcdir)/config/avr/t-multilib.
1593 2019-11-13 Richard Biener <rguenther@suse.de>
1595 PR tree-optimization/92473
1596 * tree-vect-loop.c (vect_create_epilog_for_reduction): Perform
1597 direct optab reduction in the correct type.
1599 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1601 * config/rs6000/rs6000.md (rs6000_set_fpscr_drn): Use ULL on big
1602 hexadecimal literal.
1604 2019-11-12 Segher Boessenkool <segher@kernel.crashing.org>
1606 * config/rs6000/vsx.md (xscmpexpdp_<code> for CMP_TEST): Handle
1607 UNORDERED if !HONOR_NANS (DFmode).
1608 (xscmpexpqp_<code>_<mode> for CMP_TEST and IEEE128): Handle UNORDERED
1609 if !HONOR_NANS (<MODE>mode).
1611 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1613 * ipa-cp.c (ignore_edge_p): Also look for optimize flag.
1614 (ipcp_verify_propagated_values): Likewise.
1615 (propagate_constants_across_call): Likewise.
1616 (propagate_constants_topo): Likewise.
1617 (ipcp_propagate_stage): Likewise.
1619 2019-11-12 Jan Hubicka <hubicka@ucw.cz>
1622 * ipa-profile.c (check_argument_count): Break out from ...;
1623 watch for missing summaries.
1624 (ipa_profile): Here.
1626 2019-11-12 Martin Sebor <msebor@redhat.com>
1628 PR tree-optimization/92412
1629 * targhooks.c (default_ref_may_alias_errno): Errono can only alias
1632 2019-11-12 Martin Sebor <msebor@redhat.com>
1635 * gimple-ssa-sprintf.c (format_result::alias_info): New struct.
1636 (directive::argno): New member.
1637 (format_result::aliases, format_result::alias_count): New data members.
1638 (format_result::append_alias): New member function.
1639 (fmtresult::dst_offset): New data member.
1640 (pass_sprintf_length::call_info::dst_origin): New data member.
1641 (pass_sprintf_length::call_info::dst_field, dst_offset): Same.
1642 (char_type_p, array_elt_at_offset, field_at_offset): New functions.
1643 (get_origin_and_offset): Same.
1644 (format_string): Call it.
1645 (format_directive): Call append_alias and set directive argument
1647 (maybe_warn_overlap): New function.
1648 (pass_sprintf_length::compute_format_length): Call it.
1649 (pass_sprintf_length::handle_gimple_call): Initialize new members.
1650 * gcc/tree-ssa-strlen.c (): Also enable when -Wrestrict is on.
1652 2019-11-12 Ilya Leoshkevich <iii@linux.ibm.com>
1654 PR rtl-optimization/92430
1655 * cfgcleanup.c (pass_jump_after_combine::execute): Free
1656 dominance info at the beginning.
1658 2019-11-12 Richard Biener <rguenther@suse.de>
1660 PR tree-optimization/92460
1661 * tree-vect-stmts.c (vectorizable_simd_clone_call): Unshare
1662 expression before gimplifying.
1664 2019-11-12 Richard Biener <rguenther@suse.de>
1666 PR tree-optimization/92461
1667 * tree-vect-loop.c (vect_create_epilog_for_reduction): Update
1668 stmt after propagation.
1670 2019-11-12 Martin Liska <mliska@suse.cz>
1672 * config/i386/i386-options.c (ix86_recompute_optlev_based_flags):
1673 Use SET_OPTION_IF_UNSET.
1674 (ix86_option_override_internal): Likewise.
1675 * opts.c (default_options_optimization): Likewise.
1676 (finish_options): Likewise.
1677 (enable_fdo_optimizations): Likewise.
1678 (common_handle_option): Likewise.
1680 2019-11-12 Martin Liska <mliska@suse.cz>
1682 * common/common-target.def: Remove option_validate_param and
1683 option_default_params.
1684 * common/common-targhooks.c (default_option_validate_param):
1686 * common/common-targhooks.h (default_option_validate_param):
1688 * common/config/aarch64/aarch64-common.c (TARGET_OPTION_DEFAULT_PARAMS):
1689 Remove usage of this.
1690 (TARGET_OPTION_VALIDATE_PARAM): Likewise.
1691 (aarch64_option_validate_param): Likewise.
1692 (aarch64_option_default_params): Likewise
1693 * common/config/bpf/bpf-common.c (bpf_option_default_params): Likewise.
1694 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1695 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1696 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1697 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1698 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1699 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1700 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1701 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1702 (TARGET_OPTION_DEFAULT_PARAMS): Likewise.
1703 * config/aarch64/aarch64.c (aarch64_override_options_internal): Validate
1705 * doc/tm.texi: Remove option_default_params and option_validate_param.
1706 * doc/tm.texi.in: Likewise.
1708 2019-11-12 Martin Liska <mliska@suse.cz>
1710 * common/common-target.def:
1711 Do not mention set_default_param_value
1712 and set_param_value.
1713 * doc/tm.texi: Likewise.
1715 2019-11-12 Martin Liska <mliska@suse.cz>
1717 * common.opt: Remove param_values.
1718 * config/i386/i386-options.c (ix86_valid_target_attribute_p):
1719 Remove finalize_options_struct.
1720 * gcc.c (driver::decode_argv): Do not call global_init_params
1722 (driver::finalize): Do not call params_c_finalize
1723 and finalize_options_struct.
1724 * opt-suggestions.c (option_proposer::get_completions): Remove
1725 special casing of params.
1726 (option_proposer::find_param_completions): Remove.
1727 (test_completion_partial_match): Update expected output.
1728 * opt-suggestions.h: Remove find_param_completions.
1729 * opts-common.c (add_misspelling_candidates): Add
1730 --param with a space.
1731 * opts.c (handle_param): Remove.
1732 (init_options_struct):. Remove init_options_struct and
1734 (finalize_options_struct): Remove.
1735 (common_handle_option): Use SET_OPTION_IF_UNSET.
1736 * opts.h (finalize_options_struct): Remove.
1737 * toplev.c (general_init): Do not call global_init_params.
1738 (toplev::finalize): Do not call params_c_finalize and
1739 finalize_options_struct.
1741 2019-11-12 Martin Liska <mliska@suse.cz>
1743 * Makefile.in: Remove PARAMS_H and params.list
1745 * params-enum.h: Remove.
1746 * params-list.h: Remove.
1747 * params-options.h: Remove.
1749 * params.def: Remove.
1751 * asan.c: Do not include params.h.
1752 * auto-profile.c: Likewise.
1753 * bb-reorder.c: Likewise.
1754 * builtins.c: Likewise.
1755 * cfgcleanup.c: Likewise.
1756 * cfgexpand.c: Likewise.
1757 * cfgloopanal.c: Likewise.
1758 * cgraph.c: Likewise.
1759 * combine.c: Likewise.
1760 * common/config/aarch64/aarch64-common.c: Likewise.
1761 * common/config/gcn/gcn-common.c: Likewise.
1762 * common/config/ia64/ia64-common.c: Likewise.
1763 * common/config/powerpcspe/powerpcspe-common.c: Likewise.
1764 * common/config/rs6000/rs6000-common.c: Likewise.
1765 * common/config/sh/sh-common.c: Likewise.
1766 * config/aarch64/aarch64.c: Likewise.
1767 * config/alpha/alpha.c: Likewise.
1768 * config/arm/arm.c: Likewise.
1769 * config/avr/avr.c: Likewise.
1770 * config/csky/csky.c: Likewise.
1771 * config/i386/i386-builtins.c: Likewise.
1772 * config/i386/i386-expand.c: Likewise.
1773 * config/i386/i386-features.c: Likewise.
1774 * config/i386/i386-options.c: Likewise.
1775 * config/i386/i386.c: Likewise.
1776 * config/ia64/ia64.c: Likewise.
1777 * config/rs6000/rs6000-logue.c: Likewise.
1778 * config/rs6000/rs6000.c: Likewise.
1779 * config/s390/s390.c: Likewise.
1780 * config/sparc/sparc.c: Likewise.
1781 * config/visium/visium.c: Likewise.
1782 * coverage.c: Likewise.
1783 * cprop.c: Likewise.
1785 * cselib.c: Likewise.
1787 * emit-rtl.c: Likewise.
1788 * explow.c: Likewise.
1789 * final.c: Likewise.
1790 * fold-const.c: Likewise.
1793 * ggc-common.c: Likewise.
1794 * ggc-page.c: Likewise.
1795 * gimple-loop-interchange.cc: Likewise.
1796 * gimple-loop-jam.c: Likewise.
1797 * gimple-loop-versioning.cc: Likewise.
1798 * gimple-ssa-split-paths.c: Likewise.
1799 * gimple-ssa-sprintf.c: Likewise.
1800 * gimple-ssa-store-merging.c: Likewise.
1801 * gimple-ssa-strength-reduction.c: Likewise.
1802 * gimple-ssa-warn-alloca.c: Likewise.
1803 * gimple-ssa-warn-restrict.c: Likewise.
1804 * graphite-isl-ast-to-gimple.c: Likewise.
1805 * graphite-optimize-isl.c: Likewise.
1806 * graphite-scop-detection.c: Likewise.
1807 * graphite-sese-to-poly.c: Likewise.
1808 * graphite.c: Likewise.
1809 * haifa-sched.c: Likewise.
1810 * hsa-gen.c: Likewise.
1811 * ifcvt.c: Likewise.
1812 * ipa-cp.c: Likewise.
1813 * ipa-fnsummary.c: Likewise.
1814 * ipa-inline-analysis.c: Likewise.
1815 * ipa-inline.c: Likewise.
1816 * ipa-polymorphic-call.c: Likewise.
1817 * ipa-profile.c: Likewise.
1818 * ipa-prop.c: Likewise.
1819 * ipa-split.c: Likewise.
1820 * ipa-sra.c: Likewise.
1821 * ira-build.c: Likewise.
1822 * ira-conflicts.c: Likewise.
1823 * loop-doloop.c: Likewise.
1824 * loop-invariant.c: Likewise.
1825 * loop-unroll.c: Likewise.
1826 * lra-assigns.c: Likewise.
1827 * lra-constraints.c: Likewise.
1828 * modulo-sched.c: Likewise.
1829 * opt-suggestions.c: Likewise.
1831 * postreload-gcse.c: Likewise.
1832 * predict.c: Likewise.
1833 * reload.c: Likewise.
1834 * reorg.c: Likewise.
1835 * resource.c: Likewise.
1836 * sanopt.c: Likewise.
1837 * sched-deps.c: Likewise.
1838 * sched-ebb.c: Likewise.
1839 * sched-rgn.c: Likewise.
1840 * sel-sched-ir.c: Likewise.
1841 * sel-sched.c: Likewise.
1842 * shrink-wrap.c: Likewise.
1844 * targhooks.c: Likewise.
1845 * toplev.c: Likewise.
1846 * tracer.c: Likewise.
1847 * trans-mem.c: Likewise.
1848 * tree-chrec.c: Likewise.
1849 * tree-data-ref.c: Likewise.
1850 * tree-if-conv.c: Likewise.
1851 * tree-inline.c: Likewise.
1852 * tree-loop-distribution.c: Likewise.
1853 * tree-parloops.c: Likewise.
1854 * tree-predcom.c: Likewise.
1855 * tree-profile.c: Likewise.
1856 * tree-scalar-evolution.c: Likewise.
1857 * tree-sra.c: Likewise.
1858 * tree-ssa-ccp.c: Likewise.
1859 * tree-ssa-dom.c: Likewise.
1860 * tree-ssa-dse.c: Likewise.
1861 * tree-ssa-ifcombine.c: Likewise.
1862 * tree-ssa-loop-ch.c: Likewise.
1863 * tree-ssa-loop-im.c: Likewise.
1864 * tree-ssa-loop-ivcanon.c: Likewise.
1865 * tree-ssa-loop-ivopts.c: Likewise.
1866 * tree-ssa-loop-manip.c: Likewise.
1867 * tree-ssa-loop-niter.c: Likewise.
1868 * tree-ssa-loop-prefetch.c: Likewise.
1869 * tree-ssa-loop-unswitch.c: Likewise.
1870 * tree-ssa-math-opts.c: Likewise.
1871 * tree-ssa-phiopt.c: Likewise.
1872 * tree-ssa-pre.c: Likewise.
1873 * tree-ssa-reassoc.c: Likewise.
1874 * tree-ssa-sccvn.c: Likewise.
1875 * tree-ssa-scopedtables.c: Likewise.
1876 * tree-ssa-sink.c: Likewise.
1877 * tree-ssa-strlen.c: Likewise.
1878 * tree-ssa-structalias.c: Likewise.
1879 * tree-ssa-tail-merge.c: Likewise.
1880 * tree-ssa-threadbackward.c: Likewise.
1881 * tree-ssa-threadedge.c: Likewise.
1882 * tree-ssa-uninit.c: Likewise.
1883 * tree-switch-conversion.c: Likewise.
1884 * tree-vect-data-refs.c: Likewise.
1885 * tree-vect-loop.c: Likewise.
1886 * tree-vect-slp.c: Likewise.
1887 * tree-vrp.c: Likewise.
1889 * value-prof.c: Likewise.
1890 * var-tracking.c: Likewise.
1892 2019-11-12 Martin Liska <mliska@suse.cz>
1894 * asan.c (asan_sanitize_stack_p): Replace old parameter syntax
1895 with the new one, include opts.h if needed. Use SET_OPTION_IF_UNSET
1897 (asan_sanitize_allocas_p): Likewise.
1898 (asan_emit_stack_protection): Likewise.
1899 (asan_protect_global): Likewise.
1900 (instrument_derefs): Likewise.
1901 (instrument_builtin_call): Likewise.
1902 (asan_expand_mark_ifn): Likewise.
1903 * auto-profile.c (auto_profile): Likewise.
1904 * bb-reorder.c (copy_bb_p): Likewise.
1905 (duplicate_computed_gotos): Likewise.
1906 * builtins.c (inline_expand_builtin_string_cmp): Likewise.
1907 * cfgcleanup.c (try_crossjump_to_edge): Likewise.
1908 (try_crossjump_bb): Likewise.
1909 * cfgexpand.c (defer_stack_allocation): Likewise.
1910 (stack_protect_classify_type): Likewise.
1911 (pass_expand::execute): Likewise.
1912 * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
1913 (estimate_reg_pressure_cost): Likewise.
1914 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.
1915 * combine.c (combine_instructions): Likewise.
1916 (record_value_for_reg): Likewise.
1917 * common/config/aarch64/aarch64-common.c (aarch64_option_validate_param): Likewise.
1918 (aarch64_option_default_params): Likewise.
1919 * common/config/ia64/ia64-common.c (ia64_option_default_params): Likewise.
1920 * common/config/powerpcspe/powerpcspe-common.c (rs6000_option_default_params): Likewise.
1921 * common/config/rs6000/rs6000-common.c (rs6000_option_default_params): Likewise.
1922 * common/config/sh/sh-common.c (sh_option_default_params): Likewise.
1923 * config/aarch64/aarch64.c (aarch64_output_probe_stack_range): Likewise.
1924 (aarch64_allocate_and_probe_stack_space): Likewise.
1925 (aarch64_expand_epilogue): Likewise.
1926 (aarch64_override_options_internal): Likewise.
1927 * config/alpha/alpha.c (alpha_option_override): Likewise.
1928 * config/arm/arm.c (arm_option_override): Likewise.
1929 (arm_valid_target_attribute_p): Likewise.
1930 * config/i386/i386-options.c (ix86_option_override_internal): Likewise.
1931 * config/i386/i386.c (get_probe_interval): Likewise.
1932 (ix86_adjust_stack_and_probe_stack_clash): Likewise.
1933 (ix86_max_noce_ifcvt_seq_cost): Likewise.
1934 * config/ia64/ia64.c (ia64_adjust_cost): Likewise.
1935 * config/rs6000/rs6000-logue.c (get_stack_clash_protection_probe_interval): Likewise.
1936 (get_stack_clash_protection_guard_size): Likewise.
1937 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
1938 * config/s390/s390.c (allocate_stack_space): Likewise.
1939 (s390_emit_prologue): Likewise.
1940 (s390_option_override_internal): Likewise.
1941 * config/sparc/sparc.c (sparc_option_override): Likewise.
1942 * config/visium/visium.c (visium_option_override): Likewise.
1943 * coverage.c (get_coverage_counts): Likewise.
1944 (coverage_compute_profile_id): Likewise.
1945 (coverage_begin_function): Likewise.
1946 (coverage_end_function): Likewise.
1947 * cse.c (cse_find_path): Likewise.
1948 (cse_extended_basic_block): Likewise.
1949 (cse_main): Likewise.
1950 * cselib.c (cselib_invalidate_mem): Likewise.
1951 * dse.c (dse_step1): Likewise.
1952 * emit-rtl.c (set_new_first_and_last_insn): Likewise.
1953 (get_max_insn_count): Likewise.
1954 (make_debug_insn_raw): Likewise.
1955 (init_emit): Likewise.
1956 * explow.c (compute_stack_clash_protection_loop_data): Likewise.
1957 * final.c (compute_alignments): Likewise.
1958 * fold-const.c (fold_range_test): Likewise.
1959 (fold_truth_andor): Likewise.
1960 (tree_single_nonnegative_warnv_p): Likewise.
1961 (integer_valued_real_single_p): Likewise.
1962 * gcse.c (want_to_gcse_p): Likewise.
1963 (prune_insertions_deletions): Likewise.
1964 (hoist_code): Likewise.
1965 (gcse_or_cprop_is_too_expensive): Likewise.
1966 * ggc-common.c: Likewise.
1967 * ggc-page.c (ggc_collect): Likewise.
1968 * gimple-loop-interchange.cc (MAX_NUM_STMT): Likewise.
1969 (MAX_DATAREFS): Likewise.
1970 (OUTER_STRIDE_RATIO): Likewise.
1971 * gimple-loop-jam.c (tree_loop_unroll_and_jam): Likewise.
1972 * gimple-loop-versioning.cc (loop_versioning::max_insns_for_loop): Likewise.
1973 * gimple-ssa-split-paths.c (is_feasible_trace): Likewise.
1974 * gimple-ssa-store-merging.c (imm_store_chain_info::try_coalesce_bswap): Likewise.
1975 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
1976 (imm_store_chain_info::output_merged_store): Likewise.
1977 (pass_store_merging::process_store): Likewise.
1978 * gimple-ssa-strength-reduction.c (find_basis_for_base_expr): Likewise.
1979 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple): Likewise.
1980 (scop_to_isl_ast): Likewise.
1981 * graphite-optimize-isl.c (get_schedule_for_node_st): Likewise.
1982 (optimize_isl): Likewise.
1983 * graphite-scop-detection.c (build_scops): Likewise.
1984 * haifa-sched.c (set_modulo_params): Likewise.
1985 (rank_for_schedule): Likewise.
1986 (model_add_to_worklist): Likewise.
1987 (model_promote_insn): Likewise.
1988 (model_choose_insn): Likewise.
1989 (queue_to_ready): Likewise.
1990 (autopref_multipass_dfa_lookahead_guard): Likewise.
1991 (schedule_block): Likewise.
1992 (sched_init): Likewise.
1993 * hsa-gen.c (init_prologue): Likewise.
1994 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Likewise.
1995 (cond_move_process_if_block): Likewise.
1996 * ipa-cp.c (ipcp_lattice::add_value): Likewise.
1997 (merge_agg_lats_step): Likewise.
1998 (devirtualization_time_bonus): Likewise.
1999 (hint_time_bonus): Likewise.
2000 (incorporate_penalties): Likewise.
2001 (good_cloning_opportunity_p): Likewise.
2002 (ipcp_propagate_stage): Likewise.
2003 * ipa-fnsummary.c (decompose_param_expr): Likewise.
2004 (set_switch_stmt_execution_predicate): Likewise.
2005 (analyze_function_body): Likewise.
2006 (compute_fn_summary): Likewise.
2007 * ipa-inline-analysis.c (estimate_growth): Likewise.
2008 * ipa-inline.c (caller_growth_limits): Likewise.
2009 (inline_insns_single): Likewise.
2010 (inline_insns_auto): Likewise.
2011 (can_inline_edge_by_limits_p): Likewise.
2012 (want_early_inline_function_p): Likewise.
2013 (big_speedup_p): Likewise.
2014 (want_inline_small_function_p): Likewise.
2015 (want_inline_self_recursive_call_p): Likewise.
2016 (edge_badness): Likewise.
2017 (recursive_inlining): Likewise.
2018 (compute_max_insns): Likewise.
2019 (early_inliner): Likewise.
2020 * ipa-polymorphic-call.c (csftc_abort_walking_p): Likewise.
2021 * ipa-profile.c (ipa_profile): Likewise.
2022 * ipa-prop.c (determine_known_aggregate_parts): Likewise.
2023 (ipa_analyze_node): Likewise.
2024 (ipcp_transform_function): Likewise.
2025 * ipa-split.c (consider_split): Likewise.
2026 * ipa-sra.c (allocate_access): Likewise.
2027 (process_scan_results): Likewise.
2028 (ipa_sra_summarize_function): Likewise.
2029 (pull_accesses_from_callee): Likewise.
2030 * ira-build.c (loop_compare_func): Likewise.
2031 (mark_loops_for_removal): Likewise.
2032 * ira-conflicts.c (build_conflict_bit_table): Likewise.
2033 * loop-doloop.c (doloop_optimize): Likewise.
2034 * loop-invariant.c (gain_for_invariant): Likewise.
2035 (move_loop_invariants): Likewise.
2036 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
2037 (decide_unroll_runtime_iterations): Likewise.
2038 (decide_unroll_stupid): Likewise.
2039 (expand_var_during_unrolling): Likewise.
2040 * lra-assigns.c (spill_for): Likewise.
2041 * lra-constraints.c (EBB_PROBABILITY_CUTOFF): Likewise.
2042 * modulo-sched.c (sms_schedule): Likewise.
2043 (DFA_HISTORY): Likewise.
2044 * opts.c (default_options_optimization): Likewise.
2045 (finish_options): Likewise.
2046 (common_handle_option): Likewise.
2047 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
2049 * predict.c (get_hot_bb_threshold): Likewise.
2050 (maybe_hot_count_p): Likewise.
2051 (probably_never_executed): Likewise.
2052 (predictable_edge_p): Likewise.
2053 (predict_loops): Likewise.
2054 (expr_expected_value_1): Likewise.
2055 (tree_predict_by_opcode): Likewise.
2056 (handle_missing_profiles): Likewise.
2057 * reload.c (find_equiv_reg): Likewise.
2058 * reorg.c (redundant_insn): Likewise.
2059 * resource.c (mark_target_live_regs): Likewise.
2060 (incr_ticks_for_insn): Likewise.
2061 * sanopt.c (pass_sanopt::execute): Likewise.
2062 * sched-deps.c (sched_analyze_1): Likewise.
2063 (sched_analyze_2): Likewise.
2064 (sched_analyze_insn): Likewise.
2065 (deps_analyze_insn): Likewise.
2066 * sched-ebb.c (schedule_ebbs): Likewise.
2067 * sched-rgn.c (find_single_block_region): Likewise.
2068 (too_large): Likewise.
2069 (haifa_find_rgns): Likewise.
2070 (extend_rgns): Likewise.
2071 (new_ready): Likewise.
2072 (schedule_region): Likewise.
2073 (sched_rgn_init): Likewise.
2074 * sel-sched-ir.c (make_region_from_loop): Likewise.
2075 * sel-sched-ir.h (MAX_WS): Likewise.
2076 * sel-sched.c (process_pipelined_exprs): Likewise.
2077 (sel_setup_region_sched_flags): Likewise.
2078 * shrink-wrap.c (try_shrink_wrapping): Likewise.
2079 * targhooks.c (default_max_noce_ifcvt_seq_cost): Likewise.
2080 * toplev.c (print_version): Likewise.
2081 (process_options): Likewise.
2082 * tracer.c (tail_duplicate): Likewise.
2083 * trans-mem.c (tm_log_add): Likewise.
2084 * tree-chrec.c (chrec_fold_plus_1): Likewise.
2085 * tree-data-ref.c (split_constant_offset): Likewise.
2086 (compute_all_dependences): Likewise.
2087 * tree-if-conv.c (MAX_PHI_ARG_NUM): Likewise.
2088 * tree-inline.c (remap_gimple_stmt): Likewise.
2089 * tree-loop-distribution.c (MAX_DATAREFS_NUM): Likewise.
2090 * tree-parloops.c (MIN_PER_THREAD): Likewise.
2091 (create_parallel_loop): Likewise.
2092 * tree-predcom.c (determine_unroll_factor): Likewise.
2093 * tree-scalar-evolution.c (instantiate_scev_r): Likewise.
2094 * tree-sra.c (analyze_all_variable_accesses): Likewise.
2095 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Likewise.
2096 * tree-ssa-dse.c (setup_live_bytes_from_ref): Likewise.
2097 (dse_optimize_redundant_stores): Likewise.
2098 (dse_classify_store): Likewise.
2099 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2100 * tree-ssa-loop-ch.c (ch_base::copy_headers): Likewise.
2101 * tree-ssa-loop-im.c (LIM_EXPENSIVE): Likewise.
2102 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
2103 (try_peel_loop): Likewise.
2104 (tree_unroll_loops_completely): Likewise.
2105 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2106 (CONSIDER_ALL_CANDIDATES_BOUND): Likewise.
2107 (MAX_CONSIDERED_GROUPS): Likewise.
2108 (ALWAYS_PRUNE_CAND_SET_BOUND): Likewise.
2109 * tree-ssa-loop-manip.c (can_unroll_loop_p): Likewise.
2110 * tree-ssa-loop-niter.c (MAX_ITERATIONS_TO_TRACK): Likewise.
2111 * tree-ssa-loop-prefetch.c (PREFETCH_BLOCK): Likewise.
2112 (L1_CACHE_SIZE_BYTES): Likewise.
2113 (L2_CACHE_SIZE_BYTES): Likewise.
2114 (should_issue_prefetch_p): Likewise.
2115 (schedule_prefetches): Likewise.
2116 (determine_unroll_factor): Likewise.
2117 (volume_of_references): Likewise.
2118 (add_subscript_strides): Likewise.
2119 (self_reuse_distance): Likewise.
2120 (mem_ref_count_reasonable_p): Likewise.
2121 (insn_to_prefetch_ratio_too_small_p): Likewise.
2122 (loop_prefetch_arrays): Likewise.
2123 (tree_ssa_prefetch_arrays): Likewise.
2124 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Likewise.
2125 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Likewise.
2126 (convert_mult_to_fma): Likewise.
2127 (math_opts_dom_walker::after_dom_children): Likewise.
2128 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Likewise.
2129 (hoist_adjacent_loads): Likewise.
2130 (gate_hoist_loads): Likewise.
2131 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
2132 (compute_partial_antic_aux): Likewise.
2133 * tree-ssa-reassoc.c (get_reassociation_width): Likewise.
2134 * tree-ssa-sccvn.c (vn_reference_lookup_pieces): Likewise.
2135 (vn_reference_lookup): Likewise.
2136 (do_rpo_vn): Likewise.
2137 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Likewise.
2138 * tree-ssa-sink.c (select_best_block): Likewise.
2139 * tree-ssa-strlen.c (new_stridx): Likewise.
2140 (new_addr_stridx): Likewise.
2141 (get_range_strlen_dynamic): Likewise.
2142 (class ssa_name_limit_t): Likewise.
2143 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Likewise.
2144 (create_variable_info_for_1): Likewise.
2145 (init_alias_vars): Likewise.
2146 * tree-ssa-tail-merge.c (find_clusters_1): Likewise.
2147 (tail_merge_optimize): Likewise.
2148 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path): Likewise.
2149 (thread_jumps::fsm_find_control_statement_thread_paths): Likewise.
2150 (thread_jumps::find_jump_threads_backwards): Likewise.
2151 * tree-ssa-threadedge.c (record_temporary_equivalences_from_stmts_at_dest): Likewise.
2152 * tree-ssa-uninit.c (compute_control_dep_chain): Likewise.
2153 * tree-switch-conversion.c (switch_conversion::check_range): Likewise.
2154 (jump_table_cluster::can_be_handled): Likewise.
2155 * tree-switch-conversion.h (jump_table_cluster::case_values_threshold): Likewise.
2156 (SWITCH_CONVERSION_BRANCH_RATIO): Likewise.
2157 (param_switch_conversion_branch_ratio): Likewise.
2158 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Likewise.
2159 (vect_enhance_data_refs_alignment): Likewise.
2160 (vect_prune_runtime_alias_test_list): Likewise.
2161 * tree-vect-loop.c (vect_analyze_loop_costing): Likewise.
2162 (vect_get_datarefs_in_loop): Likewise.
2163 (vect_analyze_loop): Likewise.
2164 * tree-vect-slp.c (vect_slp_bb): Likewise.
2165 * tree-vectorizer.h: Likewise.
2166 * tree-vrp.c (find_switch_asserts): Likewise.
2167 (vrp_prop::check_mem_ref): Likewise.
2168 * tree.c (wide_int_to_tree_1): Likewise.
2169 (cache_integer_cst): Likewise.
2170 * var-tracking.c (EXPR_USE_DEPTH): Likewise.
2171 (reverse_op): Likewise.
2172 (vt_find_locations): Likewise.
2174 2019-11-12 Martin Liska <mliska@suse.cz>
2176 * Makefile.in: Include params.opt.
2177 * flag-types.h (enum parloops_schedule_type): Add
2178 parloops_schedule_type used in params.opt.
2179 * params.opt: New file.
2181 2019-11-12 Martin Liska <mliska@suse.cz>
2183 * common.opt: Remove --param and --param= options.
2184 * opt-functions.awk: Mark CL_PARAMS for options
2185 that have Param keyword.
2186 * opts-common.c (decode_cmdline_options_to_array):
2187 Replace --param key=value with --param=key=value.
2188 * opts.c (print_filtered_help): Remove special
2190 (print_specific_help): Update title for params.
2191 (common_handle_option): Do not handle OPT__param.
2192 opts.h (SET_OPTION_IF_UNSET): New macro.
2193 * doc/options.texi: Document Param keyword.
2195 2019-11-12 Maciej W. Rozycki <macro@codesourcery.com>
2196 Frederik Harwath <frederik@codesourcery.com>
2197 Thomas Schwinge <thomas@codesourcery.com>
2200 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_SERIAL
2201 enumeration constant.
2202 (is_gimple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2203 (is_gimple_omp_offloaded): Likewise.
2204 * gimplify.c (omp_region_type): Add ORT_ACC_SERIAL enumeration
2205 constant. Adjust the value of ORT_NONE accordingly.
2206 (is_gimple_stmt): Handle OACC_SERIAL.
2207 (oacc_default_clause): Handle ORT_ACC_SERIAL.
2208 (gomp_needs_data_present): Likewise.
2209 (gimplify_adjust_omp_clauses): Likewise.
2210 (gimplify_omp_workshare): Handle OACC_SERIAL.
2211 (gimplify_expr): Likewise.
2212 * omp-expand.c (expand_omp_target):
2213 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2214 (build_omp_regions_1, omp_make_gimple_edges): Likewise.
2215 * omp-low.c (is_oacc_parallel): Rename function to...
2216 (is_oacc_parallel_or_serial): ... this.
2217 Handle GF_OMP_TARGET_KIND_OACC_SERIAL.
2218 (scan_sharing_clauses): Adjust accordingly.
2219 (scan_omp_for): Likewise.
2220 (lower_oacc_head_mark): Likewise.
2221 (convert_from_firstprivate_int): Likewise.
2222 (lower_omp_target): Likewise.
2223 (check_omp_nesting_restrictions): Handle
2224 GF_OMP_TARGET_KIND_OACC_SERIAL.
2225 (lower_oacc_reductions): Likewise.
2226 (lower_omp_target): Likewise.
2227 * tree.def (OACC_SERIAL): New tree code.
2228 * tree-pretty-print.c (dump_generic_node): Handle OACC_SERIAL.
2230 * doc/generic.texi (OpenACC): Document OACC_SERIAL.
2232 2019-11-12 Jakub Jelinek <jakub@redhat.com>
2235 * tree-complex.c (expand_complex_multiplication): If !HONOR_NANS,
2236 don't emit UNORDERED_EXPR guarded libcall. Formatting fixes.
2238 PR tree-optimization/92452
2239 * tree-vrp.c (vrp_prop::check_array_ref): If TRUNC_DIV_EXPR folds
2240 into NULL_TREE, set up_bound to NULL_TREE instead of computing
2243 2019-11-12 Andre Vieira <andre.simoesdiasvieira@arm.com>
2245 * tree-vect-loop.c (vect_transform_loop): Don't overwrite epilogues
2248 2019-11-12 Alan Modra <amodra@gmail.com>
2250 * config/rs6000/predicates.md (unspec_tls): Allow const0_rtx for got
2251 element of unspec vec.
2252 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Support
2254 * config/rs6000/rs6000.md (UNSPEC_TLSTLS_PCREL): New unspec.
2255 (tls_gd_pcrel, tls_ld_pcrel): New insns.
2256 (tls_dtprel, tls_tprel): Set attr prefixed when tls_size is not 16.
2257 (tls_got_tprel_pcrel, tls_tls_pcrel): New insns.
2259 2019-11-12 Alan Modra <amodra@gmail.com>
2261 * config/rs6000/rs6000.opt (mtls-markers): Delete.
2262 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Don't define.
2263 (IS_NOMARK_TLSGETADDR): Likewise.
2264 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Delete.
2265 * config/rs6000/rs6000.c (rs6000_output_tlsargs): Delete.
2266 (rs6000_legitimize_tls_address): Remove !TARGET_TLS_MARKERS code.
2267 (rs6000_call_template_1): Delete TARGET_TLS_MARKERS test and
2268 allow other UNSPECs besides UNSPEC_TLSGD and UNSPEC_TLSLD.
2269 (rs6000_indirect_call_template_1): Likewise.
2270 (rs6000_pltseq_template): Likewise.
2271 (rs6000_opt_vars): Remove "tls-markers" entry.
2272 * config/rs6000/rs6000.md (tls_gd<bits>): Replace TARGET_TLS_MARKERS
2274 (tls_gd_high<bits>, tls_gd_low<bits>): Likewise.
2275 (tls_ld<bits>, tls_ld_high<bits>, tls_ld_low<bits>): Likewise.
2276 (pltseq_plt_pcrel<mode>): Likewise.
2277 (call_value_local32): Remove IS_NOMARK_TLSGETADDR predicate test.
2278 (call_value_local64): Likewise.
2279 (call_value_indirect_nonlocal_sysv<mode>): Remove IS_NOMARK_TLSGETADDR
2280 output and length attribute sub-expression.
2281 (call_value_nonlocal_sysv<mode>),
2282 (call_value_nonlocal_sysv_secure<mode>),
2283 (call_value_local_aix<mode>, call_value_nonlocal_aix<mode>),
2284 (call_value_indirect_aix<mode>, call_value_indirect_elfv2<mode>),
2285 (call_value_indirect_pcrel<mode>): Likewise.
2286 * doc/install.texi (powerpc-*-*): Require binutils-2.20.
2287 * configure.ac (HAVE_AS_TLS_MARKERS): Delete test.
2288 * configure: Regenerate.
2289 * config.in: Regenerate.
2291 2019-11-11 Michael Meissner <meissner@linux.ibm.com>
2293 * config/rs6000/predicates.md (prefixed_memory): New predicate.
2294 * config/rs6000/rs6000.md (stack_protect_setdi): Deal with either
2295 address being a prefixed load/store.
2296 (stack_protect_testdi): Deal with either address being a prefixed
2299 2019-11-11 Jakub Jelinek <jakub@redhat.com>
2302 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Guard
2303 ALTIVEC_BUILTIN_VEC_VCMPGE_P argument swapping with n == 3 check. Use
2306 2019-11-11 Richard Sandiford <richard.sandiford@arm.com>
2308 PR tree-optimization/92420
2309 * tree-vect-stmts.c (get_negative_load_store_type): Move further
2311 (get_group_load_store_type): Use it for reversed SLP accesses.
2313 2019-11-11 Jan Hubicka <hubcika@ucw.cz>
2315 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipcp
2317 (ipcp_transformation_t::duplicate): Break out from ...
2318 (ipa_node_params_t::duplicate): ... here; add copying of agg
2320 * ipa-prop.h (ipcp_transformation): Add constructor and destructor.
2321 (ipcp_transformation_t): Add duplicate.
2323 2019-11-11 Janne Blomqvist <jb@gcc.gnu.org>
2326 * doc/install.texi: Document that the minimum MPFR version is
2329 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2331 * config/arc/arc.md (movsi_ne): Reorder instruction variants and
2332 use new register constraint letters.
2334 2019-11-11 Claudiu Zissulescu <claziss@gmail.com>
2336 * config/arc/arc.c (arc_legitimize_pic_address): Consider UNSPECs
2337 as well, if interesting recover the symbol and re-legitimize the
2340 2019-11-11 Martin Liska <mliska@suse.cz>
2342 * dbgcnt.def (DEBUG_COUNTER): Sort counters
2345 2019-11-11 Andre Vieira <andre.simoesdiasvieira@arm.com>
2347 * tree-vect-loop-manip.c (vect_do_peeling): Take epilogue gaps into
2348 account when checking if there are enough iterations to vectorize
2351 2019-11-11 Tobias Burnus <tobias@codesourcery.com>
2352 Kwok Cheung Yeung <kcy@codesourcery.com>
2354 * langhooks-def.h (LANG_HOOKS_OMP_CHECK_OPTIONAL_ARGUMENT):
2355 Renamed from LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT; update define.
2356 (LANG_HOOKS_DECLS): Rename also here.
2357 * langhooks.h (lang_hooks_for_decls): Rename
2358 omp_is_optional_argument to omp_check_optional_argument; take
2359 additional bool argument.
2360 * omp-general.h (omp_check_optional_argument): Likewise.
2361 * omp-general.h (omp_check_optional_argument): Likewise.
2362 * omp-low.c (lower_omp_target): Update calls; handle absent
2363 Fortran optional arguments with USE_DEVICE_ADDR/USE_DEVICE_PTR.
2365 2019-11-11 H.J. Lu <hjl.tools@gmail.com>
2368 * config/i386/intelmic-mkoffload.c (prepare_target_image): Put
2369 -fPIC and -shared the last to create offload image.
2371 2019-11-11 Thomas Schwinge <thomas@codesourcery.com>
2373 * gimplify.c (gimplify_scan_omp_clauses): Assert 'offset2' instead
2376 * Makefile.in (LANG_CONFIGUREFRAGS): Define.
2377 (config.status): Use/depend on it.
2378 * configure.ac (all_lang_configurefrags): Track, 'AC_SUBST'.
2379 * configure: Regenerate.
2381 2019-11-11 Jiufu Guo <guojiufu@linux.ibm.com>
2383 PR tree-optimization/88760
2384 * gcc/config/rs6000/rs6000.opt (-munroll-only-small-loops): New option.
2385 * gcc/common/config/rs6000/rs6000-common.c
2386 (rs6000_option_optimization_table) [OPT_LEVELS_2_PLUS_SPEED_ONLY]:
2387 Turn on -funroll-loops and -munroll-only-small-loops.
2388 [OPT_LEVELS_ALL]: Turn off -fweb and -frename-registers.
2389 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
2390 set of PARAM_MAX_UNROLL_TIMES and PARAM_MAX_UNROLLED_INSNS.
2391 Turn off -munroll-only-small-loops for explicit -funroll-loops.
2392 (TARGET_LOOP_UNROLL_ADJUST): Add loop unroll adjust hook.
2393 (rs6000_loop_unroll_adjust): Define it. Use -munroll-only-small-loops.
2395 2019-11-11 Kewen Lin <linkw@gcc.gnu.org>
2397 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
2398 Make scalar_load, vector_load, unaligned_load and
2399 vector_gather_load cost more to conform hardware latency and
2402 2019-11-10 Iain Sandoe <iain@sandoe.co.uk>
2404 * config/darwin.h (MACHO_SYMBOL_FLAG_LINKER_VIS): New.
2405 (MACHO_SYMBOL_LINKER_VIS_P): New.
2407 2019-11-10 Kwok Cheung Yeung <kcy@codesourcery.com>
2409 * lra-spills.c (assign_spill_hard_regs): Do not spill into
2410 registers in eliminable_regset.
2412 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2414 * ipa-inline.c (compute_uninlined_call_time,
2415 compute_inlined_call_time): Take edge frequency as
2416 parameter rather than computing it by itself.
2417 (big_speedup_p, edge_badness): Manually CSE sreal
2418 frequency calculations.
2420 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2422 * profile-count.c (profile_count::to_sreal_scale): Short circuit
2423 case where profiles are same.
2425 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2427 * cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
2429 2019-11-10 Jan Hubicka <hubicka@ucw.cz>
2431 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove ipa edge
2432 args summaries of inlined edge unless it holds info about
2433 described reference.
2435 2019-11-10 Segher Boessenkool <segher@kernel.crashing.org>
2437 * config/rs6000/rs6000.md (CC_any): New mode iterator.
2438 (*movcc_internal1): Rename to...
2439 (*movcc_<mode> for CC_any): ... this. Support moves of all CC modes.
2441 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2443 * cgraph.h (struct cgraph_node): Add ipcp_clone flag.
2444 (cgraph_node::create_virtual_clone): Copy it.
2445 * ipa-cp.c (ipcp_versionable_function_p): Watch for missing
2447 (ignore_edge_p): If caller has ipa-cp disabled, skip the edge, too.
2448 (ipcp_verify_propagated_values): Do not verify nodes where ipcp
2450 (propagate_constants_across_call): If callee is not analyzed, give up.
2451 (propagate_constants_topo): Lower to bottom latties of all callees of
2452 functions with ipa-cp disabled.
2453 (ipcp_propagate_stage): Skip functions with ipa-cp disabled.
2454 (cgraph_edge_brings_value_p): Check for availability first.
2455 (create_specialized_node): Set ipcp_clone.
2456 (ipcp_store_bits_results): Check that info is present.
2457 * ipa-fnsummary.c (evaluate_properties_for_edge): Do not analyze
2459 (ipa_call_context::duplicate_from, ipa_call_context::equal_to): Be
2460 conservative when callee summary is missing.
2461 (remap_edge_summaries): Lookup call summary only when needed.
2462 * ipa-icf.c (sem_function::param_used_p): Be ready for missing summary.
2463 * ipa-prpo.c (ipa_alloc_node_params, ipa_initialize_node_params):
2465 (ipa_analyze_node): Use get_create.
2466 (propagate_controlled_uses): Do not propagate when function is not
2468 (ipa_propagate_indirect_call_infos): Remove summary of inline clone.
2469 (ipa_read_node_info): Use get_create.
2470 * ipa-prop.h (IPA_NODE_REF): Use get.
2471 (IPA_NODE_REF_GET_CREATE): New.
2473 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2475 * ipa-fnsummary.c (evaluate_properties_for_edge): Call IPA_NODE_REF
2478 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2480 * tree.c (fld_incomplete_type_of): Clear TYPE_FINAL_P, TYPE_EMPTY_P,
2481 ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2482 (free_lang_data_in_binfo): Clear TREE_PUBLIC in BINFO
2483 (free_lang_data_in_type): Clear ENUM_IS_OPAQUE and ENUM_IS_SCOPED.
2485 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2487 * ipa-inline-analysis.c (do_estimate_growth_1): Add support for
2488 capping the growth cumulated.
2489 (offline_size): Break out from ...
2490 (estimate_growth): ... here.
2491 (check_callers): Add N, OFFLINE and MIN_SIZE and KNOWN_EDGE
2493 (growth_likely_positive): Turn to ...
2494 (growth_positive_p): Re-implement.
2495 * ipa-inline.h (growth_likely_positive): Remove.
2496 (growth_positive_p): Declare.
2497 * ipa-inline.c (want_inline_small_function_p): Use
2499 (want_inline_function_to_all_callers_p): Likewise.
2501 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2503 * ipa-fnsummary.c (ipa_call_context::estimate_size_and_time): Fix
2504 calculation of min_size.
2505 (ipa_update_overall_fn_summary): Likewise.
2507 2019-11-09 Jan Hubicka <hubicka@ucw.cz>
2509 * ipa-fnsummary.c (estimate_edge_size_and_time): Do not call
2510 estimate_edge_devirt_benefit when not computing hints;
2511 do not compute time when not asked for.
2512 (estimate_calls_size_and_time): Pass NULL hints and time when
2513 these are not computed; do not evaluate hint predicates when these are
2515 (ipa_merge_fn_summary_after_inlining): Do not re-evaluate edge
2518 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2520 PR tree-optimization/92401
2521 * gimple-match-head.c (gimple_resimplify1): Call const_unop only
2522 if res_op->code is an expression with code length 1.
2523 * gimple-match-head.c (gimple_resimplify2): Call const_binop only
2524 if res_op->code is an expression with code length 2.
2525 * gimple-match-head.c (gimple_resimplify3): Call fold_ternary only
2526 if res_op->code is an expression with code length 3.
2528 2019-11-09 Iain Sandoe <iain@sandoe.co.uk>
2530 * config/darwin.c (machopic_mcount_stub_name): Validate the
2531 symbol stub name when it is created.
2532 * config/i386/darwin.h (FUNCTION_PROFILER): Remove the symbol
2535 2019-11-09 Jakub Jelinek <jakub@redhat.com>
2537 * symtab.c: Fix comment typos.
2538 * cgraphunit.c: Likewise.
2539 * cgraph.h: Likewise.
2540 * cgraphclones.c: Likewise.
2541 * cgraph.c: Likewise.
2542 * varpool.c: Likewise.
2543 * tree-ssa-strlen.c: Likewise.
2544 * ipa-sra.c: Likewise.
2545 (scan_expr_access, check_all_callers_for_issues): Fix typo
2548 2019-11-08 Iain Sandoe <iain@sandoe.co.uk>
2550 * config/darwin-protos.h: Add include quard.
2552 2019-11-08 Andrew MacLeod <amacleod@redhat.com>
2554 * range-op.h (range_operator::fold_range): Return result in a
2555 reference parameter instead of by value.
2556 (range_operator::wi_fold): Same.
2557 * range-op.cc (range_operator::wi_fold): Return result in a reference
2558 parameter instead of by value.
2559 (range_operator::fold_range): Same.
2560 (value_range_from_overflowed_bounds): Same.
2561 (value_range_with_overflow): Same
2562 (create_possibly_reversed_range): Same.
2563 (operator_equal::fold_range): Same.
2564 (operator_not_equal::fold_range): Same.
2565 (operator_lt::fold_range): Same.
2566 (operator_le::fold_range): Same.
2567 (operator_gt::fold_range): Same.
2568 (operator_ge::fold_range): Same.
2569 (operator_plus::wi_fold): Same.
2570 (operator_plus::op1_range): Change call to fold_range.
2571 (operator_plus::op2_range): Change call to fold_range.
2572 (operator_minus::wi_fold): Return result via reference parameter.
2573 (operator_minus::op1_range): Change call to fold_range.
2574 (operator_minus::op2_range): Change call to fold_range.
2575 (operator_min::wi_fold): Return result via reference parameter.
2576 (operator_max::wi_fold): Same.
2577 (cross_product_operator::wi_cross_product): Same.
2578 (operator_mult::wi_fold): Same.
2579 (operator_div::wi_fold): Same.
2580 (operator_div op_floor_div): Fix whitespace.
2581 (operator_exact_divide::op1_range): Change call to fold_range.
2582 (operator_lshift::fold_range): Return result via reference parameter.
2583 (operator_lshift::wi_fold): Same.
2584 (operator_rshift::fold_range): Same.
2585 (operator_rshift::wi_fold): Same.
2586 (operator_cast::fold_range): Same.
2587 (operator_cast::op1_range): Change calls to fold_range.
2588 (operator_logical_and::fold_range): Return result via reference.
2589 (wi_optimize_and_or): Adjust call to value_range_with_overflow.
2590 (operator_bitwise_and::wi_fold): Return result via reference.
2591 (operator_logical_or::fold_range): Same.
2592 (operator_bitwise_or::wi_fold): Same.
2593 (operator_bitwise_xor::wi_fold): Same.
2594 (operator_trunc_mod::wi_fold): Same.
2595 (operator_logical_not::fold_range): Same.
2596 (operator_bitwise_not::fold_range): Same.
2597 (operator_bitwise_not::op1_range): Change call to fold_range.
2598 (operator_cst::fold_range): Return result via reference.
2599 (operator_identity::fold_range): Same.
2600 (operator_abs::wi_fold): Same.
2601 (operator_absu::wi_fold): Same.
2602 (operator_negate::fold_range): Same.
2603 (operator_negate::op1_range): Change call to fold_range.
2604 (operator_addr_expr::fold_range): Return result via reference.
2605 (operator_addr_expr::op1_range): Change call to fold_range.
2606 (operator_pointer_plus::wi_fold): Return result via reference.
2607 (operator_pointer_min_max::wi_fold): Same.
2608 (operator_pointer_and::wi_fold): Same.
2609 (operator_pointer_or::wi_fold): Same.
2610 (range_op_handler): Change call to fold_range.
2612 * tree-vrp.c (range_fold_binary_symbolics_p): Change call to
2614 (range_fold_unary_symbolics_p): Same.
2615 (range_fold_binary_expr): Same.
2616 (range_fold_unary_expr): Same.
2618 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2620 * tree-vect-loop.c (neutral_op_for_slp_reduction): Take the
2621 vector type as an argument rather than reading it from the
2623 (vect_create_epilog_for_reduction): Update accordingly.
2624 (vectorizable_reduction): Likewise.
2625 (vect_transform_cycle_phi): Likewise.
2627 2019-11-08 Segher Boessenkool <segher@kernel.crashing.org>
2629 * config/rs6000/predicates.md (branch_comparison_operator): Allow only
2630 the comparison codes that make sense for the mode used, and only the
2631 codes that can be done with a single branch instruction.
2633 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2635 PR tree-optimization/92351
2636 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): When we are
2637 peeling the main loop for alignment, make sure to set the misalignment
2638 of the epilogue's data references to DR_MISALIGNMENT_UNKNOWN.
2640 2019-11-08 Richard Biener <rguenther@suse.de>
2642 * dbgcnt.def (ivopts_loop): Add.
2643 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize): Check
2644 ivopts_loop before optimizing a loop.
2646 2019-11-08 Richard Biener <rguenther@suse.de>
2649 * tree-inline.c (declare_return_variable): Properly handle
2650 type mismatches for the return slot.
2652 2019-11-08 Eric Botcazou <ebotcazou@adacore.com>
2655 * config/sparc/sparc-protos.h (output_load_pcrel_sym): Declare.
2656 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Revert latest
2658 (got_helper_needed): New static variable.
2659 (output_load_pcrel_sym): New function.
2660 (get_pc_thunk_name): Remove after inlining...
2661 (load_got_register): ...here. Rework the initialization of the GOT
2662 register and of the GOT helper.
2663 (save_local_or_in_reg_p): Test the REGNO of the GOT register.
2664 (sparc_file_end): Test got_helper_needed to decide whether the GOT
2665 helper must be emitted. Use output_asm_insn instead of fprintf.
2666 (sparc_init_pic_reg): In PIC mode, always initialize the PIC register
2667 if optimization is enabled.
2668 * config/sparc/sparc.md (load_pcrel_sym<P:mode>): Emit the assembly
2669 by calling output_load_pcrel_sym.
2671 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2673 * tree-sra.c (create_access): Delay disqualifying the base
2674 for poly_int values until we know we have a base.
2676 2019-11-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
2678 * tree-vect-loop.c (vect_analyze_loop): Disable epilogue vectorization
2679 for loops with SIMDUID set. Enable epilogue vectorization for loops
2680 with SIMDLEN set after finding a main loop with a VF that matches it.
2682 2019-11-08 Jakub Jelinek <jakub@redhat.com>
2685 * gimple-ssa-store-merging.c (find_constituent_stores): For return
2686 value only, return non-NULL if there is a single non-clobber
2687 constituent store even if there are constituent clobbers and return
2688 one of clobber constituent stores if all constituent stores are
2690 (split_group): Handle clobbers.
2691 (imm_store_chain_info::output_merged_store): When computing
2692 bzero_first, look after all clobbers at the start. Don't count
2693 clobber stmts in orig_num_stmts, except if the first orig store is
2694 a clobber covering the whole area and split_stores cover the whole
2695 area, consider equal number of stmts ok. Punt if split_stores
2696 contains only ->orig stores and their number plus number of original
2697 clobbers is equal to original number of stmts. For ->orig, look past
2698 clobbers in the constituent stores.
2699 (imm_store_chain_info::output_merged_stores): Don't remove clobber
2701 (rhs_valid_for_store_merging_p): Don't return false for clobber stmt
2703 (store_valid_for_store_merging_p): Allow clobber stmts.
2704 (verify_clear_bit_region_be): Fix up a thinko in function comment.
2707 * function.c (assign_parm_setup_block, assign_parm_setup_stack): Don't
2708 copy TYPE_EMPTY_P arguments from data->entry_parm to data->stack_parm
2710 (assign_parms): For TREE_ADDRESSABLE parms with TYPE_EMPTY_P type
2711 force creation of a unique data.stack_parm slot.
2713 2019-11-08 Richard Biener <rguenther@suse.de>
2715 * genmatch.c (expr::gen_transform): Use the resimplify
2716 member function instead of hard-coding the gimple_resimplifyN variant.
2717 (dt_simplify::gen_1): Likewise.
2719 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2721 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
2724 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2726 * tree-inline.c (declare_return_variable): Check for poly_int_tree_p
2727 instead of INTEGER_CST.
2729 2019-11-08 Richard Biener <rguenther@suse.de>
2731 PR tree-optimization/92324
2732 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
2733 STMT_VINFO_REDUC_VECTYPE for all computations, inserting
2734 sign-conversions as necessary.
2735 (vectorizable_reduction): Reject conversions in the chain
2736 that are not sign-conversions, base analysis on a non-converting
2737 stmt and its operation sign. Set STMT_VINFO_REDUC_VECTYPE.
2738 * tree-vect-stmts.c (vect_stmt_relevant_p): Don't dump anything
2740 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype): New.
2741 (STMT_VINFO_REDUC_VECTYPE): Likewise.
2743 2019-11-08 Georg-Johann Lay <avr@gjlay.de>
2746 * config/avr/avr.opt (-mdouble=, -mlong-double=):
2747 Fix a missing '-' when displaying these options in the
2750 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2752 * config/aarch64/iterators.md (SVE_BH, SVE_BHS): Delete.
2754 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2756 * config/aarch64/aarch64-builtins.c
2757 (aarch64_builtin_vectorized_function): Remove bswap handling.
2759 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2761 * tree-core.h (tree_type_common::indivisible_p): New member variable.
2762 * tree.h (TYPE_INDIVISIBLE_P): New macro.
2763 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
2764 Treat the vector types as indivisible.
2766 2019-11-08 Richard Sandiford <richard.sandiford@arm.com>
2768 * optabs.def (gather_load_optab, mask_gather_load_optab)
2769 (scatter_store_optab, mask_scatter_store_optab): Turn into
2770 conversion optabs, with the offset mode given explicitly.
2771 * doc/md.texi: Update accordingly.
2772 * config/aarch64/aarch64-sve-builtins-base.cc
2773 (svld1_gather_impl::expand): Likewise.
2774 (svst1_scatter_impl::expand): Likewise.
2775 * internal-fn.c (gather_load_direct, scatter_store_direct): Likewise.
2776 (expand_scatter_store_optab_fn): Likewise.
2777 (direct_gather_load_optab_supported_p): Likewise.
2778 (direct_scatter_store_optab_supported_p): Likewise.
2779 (expand_gather_load_optab_fn): Likewise. Expect the mask argument
2781 (internal_fn_mask_index): Return 4 for IFN_MASK_GATHER_LOAD.
2782 (internal_gather_scatter_fn_supported_p): Replace the offset sign
2783 argument with the offset vector type. Require the two vector
2784 types to have the same number of elements but allow their element
2785 sizes to be different. Treat the optabs as conversion optabs.
2786 * internal-fn.h (internal_gather_scatter_fn_supported_p): Update
2787 prototype accordingly.
2788 * optabs-query.c (supports_at_least_one_mode_p): Replace with...
2789 (supports_vec_convert_optab_p): ...this new function.
2790 (supports_vec_gather_load_p): Update accordingly.
2791 (supports_vec_scatter_store_p): Likewise.
2792 * tree-vectorizer.h (vect_gather_scatter_fn_p): Take a vec_info.
2793 Replace the offset sign and bits parameters with a scalar type tree.
2794 * tree-vect-data-refs.c (vect_gather_scatter_fn_p): Likewise.
2795 Pass back the offset vector type instead of the scalar element type.
2796 Allow the offset to be wider than the memory elements. Search for
2797 an offset type that the target supports, stopping once we've
2798 reached the maximum of the element size and pointer size.
2799 Update call to internal_gather_scatter_fn_supported_p.
2800 (vect_check_gather_scatter): Update calls accordingly.
2801 When testing a new scale before knowing the final offset type,
2802 check whether the scale is supported for any signed or unsigned
2803 offset type. Check whether the target supports the source and
2804 target types of a conversion before deciding whether to look
2805 through the conversion. Record the chosen offset_vectype.
2806 * tree-vect-patterns.c (vect_get_gather_scatter_offset_type): Delete.
2807 (vect_recog_gather_scatter_pattern): Get the scalar offset type
2808 directly from the gs_info's offset_vectype instead. Pass a zero
2809 of the result type to IFN_GATHER_LOAD and IFN_MASK_GATHER_LOAD.
2810 * tree-vect-stmts.c (check_load_store_masking): Update call to
2811 internal_gather_scatter_fn_supported_p, passing the offset vector
2812 type recorded in the gs_info.
2813 (vect_truncate_gather_scatter_offset): Update call to
2814 vect_check_gather_scatter, leaving it to search for a valid
2816 (vect_use_strided_gather_scatters_p): Convert the offset to the
2817 element type of the gs_info's offset_vectype.
2818 (vect_get_gather_scatter_ops): Get the offset vector type directly
2820 (vect_get_strided_load_store_ops): Likewise.
2821 (vectorizable_load): Pass a zero of the result type to IFN_GATHER_LOAD
2822 and IFN_MASK_GATHER_LOAD.
2823 * config/aarch64/aarch64-sve.md (gather_load<mode>): Rename to...
2824 (gather_load<mode><v_int_equiv>): ...this.
2825 (mask_gather_load<mode>): Rename to...
2826 (mask_gather_load<mode><v_int_equiv>): ...this.
2827 (scatter_store<mode>): Rename to...
2828 (scatter_store<mode><v_int_equiv>): ...this.
2829 (mask_scatter_store<mode>): Rename to...
2830 (mask_scatter_store<mode><v_int_equiv>): ...this.
2832 2019-11-08 Kewen Lin <linkw@gcc.gnu.org>
2835 * config/rs6000/predicates.md
2836 (signed_or_equality_comparison_operator): New predicate.
2837 (unsigned_or_equality_comparison_operator): Likewise.
2838 * config/rs6000/rs6000.md (one_cmpl<mode>2): Remove expand.
2839 (one_cmpl<mode>3_internal): Rename to one_cmpl<mode>2.
2840 * config/rs6000/vector.md
2841 (vcond_mask_<mode><mode> for VEC_I and VEC_I): New expand.
2842 (vec_cmp<mode><mode> for VEC_I and VEC_I): Likewise.
2843 (vec_cmpu<mode><mode> for VEC_I and VEC_I): Likewise.
2844 (vcond_mask_<mode><VEC_int> for VEC_F): New expand for float
2845 vector modes and same-size integer vector modes.
2846 (vec_cmp<mode><VEC_int> for VEC_F): Likewise.
2847 (vector_lt<mode> for VEC_F): New expand.
2848 (vector_le<mode> for VEC_F): Likewise.
2849 (vector_ne<mode> for VEC_F): Likewise.
2850 (vector_unge<mode> for VEC_F): Likewise.
2851 (vector_ungt<mode> for VEC_F): Likewise.
2852 (vector_unle<mode> for VEC_F): Likewise.
2853 (vector_unlt<mode> for VEC_F): Likewise.
2854 (vector_uneq<mode>): Expose name.
2855 (vector_ltgt<mode>): Likewise.
2856 (vector_unordered<mode>): Likewise.
2857 (vector_ordered<mode>): Likewise.
2859 2019-11-08 Hongtao Liu <Hongtao.liu@intel.com>
2862 * config/i386/i386-expand.c (ix86_expand_vector_init_concat)
2863 Enhance ix86_expand_vector_init_concat.
2865 2019-11-08 Joseph Myers <joseph@codesourcery.com>
2867 * doc/invoke.texi (-Wold-style-definition): Document () not being
2868 considered an old-style definition for C2x.
2870 2019-11-07 John David Anglin <danglin@gcc.gnu.org>
2872 * config/pa/pa.md (memory_barrier): Revise to use ldcw barriers.
2874 (memory_barrier_coherent, memory_barrier_64, memory_barrier_32): New
2875 insn patterns using ldcw instruction.
2876 (memory_barrier): Remove insn pattern using sync instruction.
2877 * config/pa/pa.opt (coherent-ldcw): New option.
2878 (ordered): New option.
2880 2019-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2882 * config/rs6000/rs6000.c (validate_condition_mode): Don't assert for
2885 2019-11-07 Jakub Jelinek <jakub@redhat.com>
2887 * ipa-utils.c (ipa_merge_profiles): Fix fprintf format string
2888 typo - mistmatch -> mismatch.
2889 * ipa-profile.c (ipa_profile): Likewise.
2890 * ipa-devirt.c (compare_virtual_tables): Fix a comment typo
2891 - mistmatch -> mismatch.
2893 2018-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2895 * simplify-rtx.c (comparison_to_mask): New function.
2896 (mask_to_comparison): New function.
2897 (simplify_logical_relational_operation): New function.
2898 (simplify_binary_operation_1): Call
2899 simplify_logical_relational_operation.
2901 2019-11-07 Peter Bergner <bergner@linux.ibm.com>
2904 * config/rs6000/predicates.md (input_operand): Allow MODE_PARTIAL_INT
2905 modes for integer constants.
2907 2019-11-07 Jan Hubicka <jh@suse.cz>
2910 * ipa-fnsummary.c (analyze_function_body): Use get_create to copy
2913 2019-11-07 Jan Hubicka <jh@suse.cz>
2915 * optc-save-gen.awk: Generate cl_target_option_free
2916 and cl_optimization_option_free.
2917 * opth-en.awk: Declare cl_target_option_free
2918 and cl_optimization_option_free.
2919 * tree.c (free_node): Use it.
2921 2019-11-06 Jan Hubicka <jh@suse.cz>
2923 * lto-streamer-in.c: Include alloc-pool.h.
2924 (freeing_string_slot_hasher): Remove.
2925 (string_slot_allocator): New object allocator.
2926 (file_name_hash_table): Turn to hash_table<string_slot_hasher>.
2927 (file_name_obstack): New obstack.
2928 (canon_file_name): Allocate in obstack and allocator.
2929 (lto_reader_init): Initialize obstack and allocator.
2930 (lto_free_file_name_hash): New function.
2931 * lto-streamer.h (lto_free_file_name_hash): New.
2933 2019-11-07 Feng Xue <fxue@os.amperecomputing.com>
2935 PR tree-optimization/89134
2936 * doc/invoke.texi (min-loop-cond-split-prob): Document new --params.
2937 * params.def: Add min-loop-cond-split-prob.
2938 * tree-ssa-loop-split.c (split_loop): Remove niter parameter, move some
2939 outside checks on loop into the function.
2940 (split_info): New class.
2941 (find_vdef_in_loop, get_control_equiv_head_block): New functions.
2942 (find_control_dep_blocks, vuse_semi_invariant_p): Likewise.
2943 (ssa_semi_invariant_p, loop_iter_phi_semi_invariant_p): Likewise.
2944 (control_dep_semi_invariant_p, stmt_semi_invariant_p_1): Likewise.
2945 (stmt_semi_invariant_p, branch_removable_p): Likewise.
2946 (get_cond_invariant_branch, compute_added_num_insns): Likewise.
2947 (get_cond_branch_to_split_loop, do_split_loop_on_cond): Likewise.
2948 (split_loop_on_cond): Likewise.
2949 (tree_ssa_split_loops): Add loop split on conditional statement.
2951 2019-11-07 Andreas Krebbel <krebbel@linux.ibm.com>
2953 * config/s390/s390.md ("*cstorecc<mode>_z13"): New insn_and_split
2956 2019-11-07 Richard Biener <rguenther@suse.de>
2958 PR tree-optimization/92405
2959 * tree-vect-loop.c (vectorizable_reduction): Appropriately
2960 restrict lane-reducing ops to single stmt chains.
2962 2019-11-07 Martin Jambor <mjambor@suse.cz>
2965 * cif-code.def (MISMATCHED_ARGUMENTS): Removed.
2966 * cgraph.h (gimple_check_call_matching_types): Remove
2967 * cgraph.c (gimple_check_call_args): Likewise.
2968 (gimple_check_call_matching_types): Likewise.
2969 (symbol_table::create_edge): Do not call
2970 gimple_check_call_matching_types.
2971 (cgraph_edge::make_direct): Likewise.
2972 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2973 * value-prof.h (check_ic_target): Remove.
2974 * value-prof.c (check_ic_target): Remove.
2975 (gimple_ic_transform): Do nat call check_ic_target.
2976 * auto-profile.c (function_instance::find_icall_target_map): Likewise.
2977 (afdo_indirect_call): Likewise.
2978 * ipa-prop.c (update_indirect_edges_after_inlining): Do not call
2979 gimple_check_call_matching_types.
2980 * ipa-inline.c (early_inliner): Likewise.
2982 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2984 * config/arm/arm.md (arm_<simd32_op>): New define_expand.
2985 (arm_<simd32_op><add_clobber_q_name>_insn): New define_insn.
2986 * config/arm/arm_acle.h (__ssat16, __usat16): Define.
2987 * config/arm/arm_acle_builtins.def: Define builtins for the above.
2988 * config/arm/iterators.md (USSAT16): New int_iterator.
2989 (simd32_op): Handle UNSPEC_SSAT16, UNSPEC_USAT16.
2991 * config/arm/predicates.md (ssat16_imm): New predicate.
2992 (usat16_imm): Likewise.
2993 * config/arm/unspecs.md (UNSPEC_SSAT16, UNSPEC_USAT16): Define.
2995 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2997 * config/arm/arm.md (arm_<simd32_op><add_clobber_q_name>_insn):
2999 (arm_<simd32_op>): New define_expands.
3000 * config/arm/arm_acle.h (__smlad, __smladx, __smlsd, __smlsdx,
3001 __smuad, __smuadx): Define.
3002 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3003 * config/arm/iterators.md (SIMD32_TERNOP_Q): New int_iterator.
3004 (SIMD32_BINOP_Q): Likewise.
3005 (simd32_op): Handle the above.
3006 * config/arm/unspecs.md: Define unspecs for the above.
3008 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3010 * config/arm/aout.h (REGISTER_NAMES): Add apsrge.
3011 * config/arm/arm.md (APSRGE_REGNUM): Define.
3012 (arm_<simd32_op>): New define_insn.
3013 (arm_sel): Likewise.
3014 * config/arm/arm.h (FIXED_REGISTERS): Add entry for apsrge.
3015 (CALL_USED_REGISTERS): Likewise.
3016 (REG_ALLOC_ORDER): Likewise.
3017 (FIRST_PSEUDO_REGISTER): Update value.
3018 (ARM_GE_BITS_READ): Define.
3019 * config/arm/arm.c (arm_conditional_register_usage): Clear
3020 APSRGE_REGNUM from operand_reg_set.
3021 (arm_ge_bits_access): Define.
3022 * config/arm/arm-builtins.c (arm_check_builtin_call): Handle
3024 * config/arm/arm-protos.h (arm_ge_bits_access): Declare prototype.
3025 * config/arm/arm-fixed.md (add<mode>3): Convert to define_expand.
3026 FAIL if ARM_GE_BITS_READ.
3027 (*arm_add<mode>3): New define_insn.
3028 (sub<mode>3): Convert to define_expand. FAIL if ARM_GE_BITS_READ.
3029 (*arm_sub<mode>3): New define_insn.
3030 * config/arm/arm_acle.h (__sel, __sadd8, __ssub8, __uadd8, __usub8,
3031 __sadd16, __sasx, __ssax, __ssub16, __uadd16, __uasx, __usax,
3033 * config/arm/arm_acle_builtins.def: Define builtins for the above.
3034 * config/arm/iterators.md (SIMD32_GE): New int_iterator.
3035 (simd32_op): Handle the above.
3036 * config/arm/unspecs.md (UNSPEC_GE_SET): Define.
3037 (UNSPEC_SEL, UNSPEC_SADD8, UNSPEC_SSUB8, UNSPEC_UADD8, UNSPEC_USUB8,
3038 UNSPEC_SADD16, UNSPEC_SASX, UNSPEC_SSAX, UNSPEC_SSUB16, UNSPEC_UADD16,
3039 UNSPEC_UASX, UNSPEC_USAX, UNSPEC_USUB16): Define.
3041 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3043 * config/arm/arm.md (arm_smlabb_setq): New define_insn.
3044 (arm_smlabb): New define_expand.
3045 (*maddhisi4tb): Rename to...
3046 (maddhisi4tb): ... This.
3047 (*maddhisi4tt): Rename to...
3048 (maddhisi4tt): ... This.
3049 (arm_smlatb_setq): New define_insn.
3050 (arm_smlatb): New define_expand.
3051 (arm_smlatt_setq): New define_insn.
3052 (arm_smlatt): New define_expand.
3053 (arm_<smlaw_op><add_clobber_name>_insn): New define_insn.
3054 (arm_<smlaw_op>): New define_expand.
3055 * config/arm/arm_acle.h (__smlabb, __smlatb, __smlabt, __smlatt,
3056 __smlawb, __smlawt): Define.
3057 * config/arm_acle_builtins.def: Define builtins for the above.
3058 * config/arm/iterators.md (SMLAWBT): New int_iterator.
3059 (slaw_op): New int_attribute.
3060 * config/arm/unspecs.md (UNSPEC_SMLAWB, UNSPEC_SMLAWT): Define.
3062 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3064 * config/arm/arm.md (arm_<ss_op>): New define_expand.
3065 (arm_<ss_op><add_clobber_q_name>_insn): New define_insn.
3066 * config/arm/arm_acle.h (__qadd, __qsub, __qdbl): Define.
3067 * config/arm/arm_acle_builtins.def: Add builtins for qadd, qsub.
3068 * config/arm/iterators.md (SSPLUSMINUS): New code iterator.
3069 (ss_op): New code_attr.
3071 2019-11-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3073 * config/arm/aout.h (REGISTER_NAMES): Add apsrq.
3074 * config/arm/arm.md (APSRQ_REGNUM): Define.
3075 (add_setq): New define_subst.
3076 (add_clobber_q_name): New define_subst_attr.
3077 (add_clobber_q_pred): Likewise.
3078 (maddhisi4): Change to define_expand. Split into mult and add if
3080 (arm_maddhisi4): New define_insn.
3081 (*maddhisi4tb): Disable for ARM_Q_BIT_READ.
3082 (*maddhisi4tt): Likewise.
3083 (arm_ssat): New define_expand.
3084 (arm_usat): Likewise.
3085 (arm_get_apsr): New define_insn.
3086 (arm_set_apsr): Likewise.
3087 (arm_saturation_occurred): New define_expand.
3088 (arm_set_saturation): Likewise.
3089 (*satsi_<SAT:code>): Rename to...
3090 (satsi_<SAT:code><add_clobber_q_name>): ... This.
3091 (*satsi_<SAT:code>_shift): Disable for ARM_Q_BIT_READ.
3092 * config/arm/arm.h (FIXED_REGISTERS): Mark apsrq as fixed.
3093 (CALL_USED_REGISTERS): Mark apsrq.
3094 (FIRST_PSEUDO_REGISTER): Update value.
3095 (REG_ALLOC_ORDER): Add APSRQ_REGNUM.
3096 (machine_function): Add q_bit_access.
3097 (ARM_Q_BIT_READ): Define.
3098 * config/arm/arm.c (TARGET_CHECK_BUILTIN_CALL): Define.
3099 (arm_conditional_register_usage): Clear APSRQ_REGNUM from
3101 (arm_q_bit_access): Define.
3102 * config/arm/arm-builtins.c: Include stringpool.h.
3103 (arm_sat_binop_imm_qualifiers,
3104 arm_unsigned_sat_binop_unsigned_imm_qualifiers,
3105 arm_sat_occurred_qualifiers, arm_set_sat_qualifiers): Define.
3106 (SAT_BINOP_UNSIGNED_IMM_QUALIFIERS,
3107 UNSIGNED_SAT_BINOP_UNSIGNED_IMM_QUALIFIERS, SAT_OCCURRED_QUALIFIERS,
3108 SET_SAT_QUALIFIERS): Likewise.
3109 (arm_builtins): Define ARM_BUILTIN_SAT_IMM_CHECK.
3110 (arm_init_acle_builtins): Initialize __builtin_sat_imm_check.
3111 Handle 0 argument expander.
3112 (arm_expand_acle_builtin): Handle ARM_BUILTIN_SAT_IMM_CHECK.
3113 (arm_check_builtin_call): Define.
3114 * config/arm/arm.md (ssmulsa3, usmulusa3, usmuluha3,
3115 arm_ssatsihi_shift, arm_usatsihi): Disable when ARM_Q_BIT_READ.
3116 * config/arm/arm-protos.h (arm_check_builtin_call): Declare prototype.
3117 (arm_q_bit_access): Likewise.
3118 * config/arm/arm_acle.h (__ssat, __usat, __ignore_saturation,
3119 __saturation_occurred, __set_saturation_occurred): Define.
3120 * config/arm/arm_acle_builtins.def: Define builtins for ssat, usat,
3121 saturation_occurred, set_saturation_occurred.
3122 * config/arm/unspecs.md (UNSPEC_Q_SET): Define.
3123 (UNSPEC_APSR_READ): Likewise.
3124 (VUNSPEC_APSR_WRITE): Likewise.
3125 * config/arm/arm-fixed.md (ssadd<mode>3): Convert to define_expand.
3126 (*arm_ssadd<mode>3): New define_insn.
3127 (sssub<mode>3): Convert to define_expand.
3128 (*arm_sssub<mode>3): New define_insn.
3129 (ssmulsa3): Convert to define_expand.
3130 (*arm_ssmulsa3): New define_insn.
3131 (usmulusa3): Convert to define_expand.
3132 (*arm_usmulusa3): New define_insn.
3133 (ssmulha3): FAIL if ARM_Q_BIT_READ.
3134 (arm_ssatsihi_shift, arm_usatsihi): Disable for ARM_Q_BIT_READ.
3135 * config/arm/iterators.md (qaddsub_clob_q): New mode attribute.
3137 2019-11-07 Martin Liska <mliska@suse.cz>
3140 * cgraph.c (delete_function_version): Clear global
3141 variable version_info_node if equal to deleted
3144 2019-11-07 Martin Liska <mliska@suse.cz>
3146 * fold-const.c (operand_compare::operand_equal_p): Add comparison
3147 of CONSTRUCTOR_NO_CLEARING.
3148 (operand_compare::hash_operand): Likewise.
3150 2019-11-07 Georg-Johann Lay <avr@gjlay.de>
3152 Support 64-bit double and 64-bit long double configurations.
3155 * config.gcc (tm_defines) [avr]: Set from --with-double=,
3156 --with-long-double=.
3157 * config/avr/t-multilib: Remove.
3158 * config/avr/t-avr: Output of genmultilib.awk is now fully
3159 dynamically generated and no more part of the repo.
3160 (HAVE_DOUBLE_MULTILIB, HAVE_LONG_DOUBLE_MULTILIB): New variables.
3161 Pass them down to...
3162 * config/avr/genmultilib.awk: ...here and handle them.
3163 * config/avr/avr.opt (-mdouble=, avr_double). New option and var.
3164 (-mlong-double=, avr_long_double). New option and var.
3165 * common/config/avr/avr-common.c (opts.h, diagnostic.h): Include.
3166 (TARGET_OPTION_OPTIMIZATION_TABLE) <-mdouble=, -mlong-double=>:
3167 Set default as requested by --with-double=
3168 (TARGET_HANDLE_OPTION): Define to this...
3169 (avr_handle_option): ...new hook worker.
3170 * config/avr/avr.h (DOUBLE_TYPE_SIZE): Define to avr_double.
3171 (LONG_DOUBLE_TYPE_SIZE): Define to avr_long_double.
3172 (avr_double_lib): New proto for spec function.
3173 (EXTRA_SPEC_FUNCTIONS) <double-lib>: Add.
3174 (DRIVER_SELF_SPECS): Call %:double-lib.
3175 * config/avr/avr.c (avr_option_override): Assert
3176 sizeof(long double) >= sizeof(double) for the target.
3177 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
3178 [__HAVE_DOUBLE_MULTILIB__, __HAVE_LONG_DOUBLE_MULTILIB__]
3179 [__HAVE_DOUBLE64__, __HAVE_DOUBLE32__, __DEFAULT_DOUBLE__=]
3180 [__HAVE_LONG_DOUBLE64__, __HAVE_LONG_DOUBLE32__]
3181 [__HAVE_LONG_DOUBLE_IS_DOUBLE__, __DEFAULT_LONG_DOUBLE__=]:
3182 New built-in define depending on --with-double=, --with-long-double=.
3183 * config/avr/driver-avr.c (avr_double_lib): New spec function.
3184 * doc/invoke.tex (AVR Options) <-mdouble=,-mlong-double=>: Doc.
3185 * doc/install.texi (Cross-Compiler-Specific Options)
3186 <--with-double=, --with-long-double=>: Doc.
3188 2019-11-07 Richard Biener <rguenther@suse.de>
3190 * dbgcnt.def (gimple_unroll): New.
3191 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Check
3192 gimple_unroll debug counter before applying transform.
3193 (try_peel_loop): Likewise.
3195 2019-11-07 Kwok Cheung Yeung <kcy@codesourcery.com>
3197 * ira.c (setup_alloc_regs): Setup no_unit_alloc_regs for
3198 frame pointer in multiple registers.
3199 (ira_setup_eliminable_regset): Setup eliminable_regset,
3200 ira_no_alloc_regs and regs_ever_live for frame pointer in
3203 2019-11-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
3205 * config/rs6000/vsx.md (xxswapd_<mode>): Add support for V2DF and
3208 2019-11-06 Jan Hubicka <jh@suse.cz>
3210 * ggc-common.c (ggc_prune_overhead_list): Do not delete surviving
3212 * mem-stats.h (mem_alloc_description<T>::release_object_overhead):
3213 Do not silently ignore summary corruptions.
3215 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3217 * tree-vect-loop.c (vect_analyze_loop): Only try to vectorize
3218 the epilogue if there are peeled iterations for it to handle.
3220 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3222 * config/arc/arc.c (arc_split_ior): Add asserts.
3223 (arc_split_mov_const): Likewise.
3224 (arc_check_ior_const): Do not match known short immediate values.
3225 * config/arc/arc.md (movsi): Don't split predicated instructions
3228 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3230 * config/arc/arc.opt (mea): Update help string.
3231 * doc/invoke.texi(ARC): Update mea option info.
3233 2019-11-06 Claudiu Zissulescu <claziss@synopsys.com>
3235 * config/arc/arc.md (zero_extendqihi2_i): Cleanup pattern.
3236 (zero_extendqisi2_ac): Likewise.
3237 (zero_extendhisi2_i): Likewise.
3238 (extendqihi2_i): Likewise.
3239 (extendqisi2_ac): Likewise.
3240 (extendhisi2_i): Likewise.
3242 2019-11-06 Richard Biener <rguenther@suse.de>
3244 * tree-vect-loop.c (vectorizable_reduction): Remember reduction
3245 PHI. Use STMT_VINFO_REDUC_IDX to skip the reduction operand.
3246 Simplify single_defuse_cycle condition.
3248 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3250 * tree-vect-loop.c (vect_analyze_loop_2): When vectorizing an
3251 epilogue loop, make sure that the VF is small enough or that
3252 the epilogue loop can be fully-masked.
3254 2019-11-06 Richard Sandiford <richard.sandiford@arm.com>
3256 * tree-vect-loop.c (vect_analyze_loop): Break out of the main
3257 loop when we've finished, rather than returning directly from
3258 the loop. Use a local variable to track whether we're still
3259 searching for the preferred simdlen. Make vect_epilogues
3260 record whether the next iteration should try to treat the
3261 loop as an epilogue.
3263 2019-11-06 Vineet Gupta <vgupta@synopsys.com>
3265 * config/arc/arc-c.c (arc_cpu_cpp_builtins) : Add
3266 __arc_hard_float__, __ARC_HARD_FLOAT__,
3267 __arc_soft_float__, __ARC_SOFT_FLOAT__
3269 2019-11-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
3271 PR tree-optimization/92317
3272 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard2): Also
3273 update phi's with constant phi arguments.
3275 2019-11-06 Eric Botcazou <ebotcazou@adacore.com>
3276 Alexandre Oliva <oliva@adacore.com>
3278 * common.opt (-fcallgraph-info[=]): New option.
3279 * doc/invoke.texi (Developer options): Document it.
3280 * opts.c (common_handle_option): Handle it.
3281 * builtins.c (expand_builtin_alloca): Record allocation if
3282 -fcallgraph-info=da.
3283 * calls.c (expand_call): If -fcallgraph-info, record the call.
3284 (emit_library_call_value_1): Likewise.
3285 * flag-types.h (enum callgraph_info_type): New type.
3286 * explow.c: Include stringpool.h.
3287 (set_stack_check_libfunc): Set SET_SYMBOL_REF_DECL on the symbol.
3288 * function.c (allocate_stack_usage_info): New.
3289 (allocate_struct_function): Call it for -fcallgraph-info.
3290 (prepare_function_start): Call it otherwise.
3291 (record_final_call, record_dynamic_alloc): New.
3292 * function.h (struct callinfo_callee): New.
3293 (CALLEE_FROM_CGRAPH_P): New.
3294 (struct callinfo_dalloc): New.
3295 (struct stack_usage): Add callees and dallocs.
3296 (record_final_call, record_dynamic_alloc): Declare.
3297 * gimplify.c (gimplify_decl_expr): Record dynamically-allocated
3298 object if -fcallgraph-info=da.
3299 * optabs-libfuncs.c (build_libfunc_function): Keep SYMBOL_REF_DECL.
3300 * print-tree.h (print_decl_identifier): Declare.
3301 (PRINT_DECL_ORIGIN, PRINT_DECL_NAME, PRINT_DECL_UNIQUE_NAME): New.
3302 * print-tree.c: Include print-tree.h.
3303 (print_decl_identifier): New function.
3304 * toplev.c: Include print-tree.h.
3305 (callgraph_info_file): New global variable.
3306 (callgraph_info_external_printed): Likewise.
3307 (output_stack_usage): Rename to...
3308 (output_stack_usage_1): ... this. Make it static, add cf
3309 parameter. If -fcallgraph-info=su, print stack usage to cf.
3310 If -fstack-usage, use print_decl_identifier for
3312 (INDIRECT_CALL_NAME): New.
3313 (dump_final_node_vcg_start): New.
3314 (dump_final_callee_vcg, dump_final_node_vcg): New.
3315 (output_stack_usage): New.
3316 (lang_dependent_init): Open and start file if
3317 -fcallgraph-info. Allocated callgraph_info_external_printed.
3318 (finalize): If callgraph_info_file is not null, finish it,
3319 close it, and release callgraph_info_external_printed.
3321 2019-11-06 Gergö Barany <gergo@codesourcery.com>
3322 Frederik Harwath <frederik@codesourcery.com>
3323 Thomas Schwinge <thomas@codesourcery.com>
3325 * omp-low.c (struct omp_context): New fields
3326 local_reduction_clauses, outer_reduction_clauses.
3327 (new_omp_context): Initialize these.
3328 (scan_sharing_clauses): Record reduction clauses on OpenACC constructs.
3329 (scan_omp_for): Check reduction clauses for incorrect nesting.
3331 2019-11-06 Jakub Jelinek <jakub@redhat.com>
3334 * gimplify.c (gimplify_asm_expr): Reject VLA in output or input
3335 operands with non-memory constraints.
3337 2019-11-05 Martin Sebor <msebor@redhat.com>
3339 PR tree-optimization/92373
3340 * tree.c (component_ref_size): Only consider initializers of objects
3341 of matching struct types.
3342 Return null for instances of interior zero-length arrays.
3344 2019-11-05 Segher Boessenkool <segher@kernel.crashing.org>
3346 * doc/md.texi (Insn Splitting): Fix combiner documentation.
3348 2019-11-05 Jason Merrill <jason@redhat.com>
3350 PR tree-optimization/91825
3351 * expmed.c: Reduce -Wmaybe-uninitialized to warning.
3353 2019-11-05 Jim Wilson <jimw@sifive.com>
3356 * expr.c (emit_move_complex): Only use BLOCK_OP_NO_LIBCALL when
3357 optimize_insn_for_speed_p is true.
3359 2019-11-05 Martin Sebor <msebor@redhat.com>
3363 * tree-vrp.c (vrp_prop::check_array_ref): Handle VLAs with constant
3365 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Use a meaninful
3366 name and location for a temporary variable.
3368 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3370 * tree-vrp.c (value_range::value_range): Fix whitespace.
3371 (defined_ranges_p): Same.
3372 (range_fold_binary_symbolics_p): Same.
3373 (value_range::intersect_helper): Same.
3374 (value_range::union_helper): Same.
3375 * tree-vrp.h (range_fold_binary_expr): Same.
3377 2019-11-04 Martin Sebor <msebor@redhat.com>
3381 * tree-sra.c (get_access_for_expr): Fail for out-of-bounds offsets.
3382 * tree-vrp.c (vrp_prop::check_array_ref): Correct index and text
3383 of message printed in a warning for empty arrays.
3384 (vrp_prop::check_mem_ref): Also handle function parameters and
3387 2019-11-05 Richard Biener <rguenther@suse.de>
3389 PR tree-optimization/92371
3390 * tree-vect-loop.c (vectorizable_reduction): Set STMT_VINFO_REDUC_DEF
3391 on the original stmt of live stmts in the chain.
3392 (vectorizable_live_operation): Look at the original stmt when
3393 checking STMT_VINFO_REDUC_DEF.
3395 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3397 * gimple-fold.c, gimple-loop-versioning.cc,
3398 gimple-ssa-evrp-analyze.[ch], gimple-ssa-evrp.c,
3399 gimple-ssa-sprintf.c, ipa-cp.c, ipa-prop.c, ipa-prop.h,
3400 range-op.[hc]*, range.[hc]*, selftest.h, tree-ssa-dom.c,
3401 tree-ssa-strlen.c, tree-ssa-threadedge.c, tree-ssanames.[hc],
3402 tree-vrp.[hc], vr-values.[hc]: Global rename of value_range to
3403 value_range_equiv, and value_range_base to value_range.
3405 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3407 * expr.c (build_personality_function): Fix generated type to
3408 match actual personality functions.
3410 2019-11-05 Matthew Malcomson <matthew.malcomson@arm.com>
3412 * config/aarch64/aarch64.c (aarch64_handle_attr_cpu): Allocate
3413 enough bytes for the NULL character.
3415 2019-11-05 Richard Biener <rguenther@suse.de>
3417 PR tree-optimization/92280
3418 * match.pd (BIT_FIELD_REF of CTOR): Unless the original CTOR
3419 had a single use do not create a new CTOR.
3420 * tree-ssa-forwprop.c (simplify_bitfield_ref): Do not re-fold
3421 BIT_FIELD_REF of a CTOR via GENERIC.
3423 2019-11-05 Andreas Krebbel <krebbel@linux.ibm.com>
3425 * config/s390/s390.c (s390_vector_alignment): Check if the value
3426 fits into uhwi before using it.
3428 2019-11-05 Martin Liska <mliska@suse.cz>
3430 * symbol-summary.h: Use ggc_delete.
3432 2019-11-05 Anton Youdkevitch <anton.youdkevitch@bell-sw.com>
3434 * config/aarch64/aarch64.c (thunderx2t99_vector_cost):
3435 Change vec_perm field to 10.
3437 2019-11-05 Arnaud Charlet <charlet@adacore.com>
3439 * doc/install.texi: Further fix syntax for html generation.
3441 2019-11-05 Martin Liska <mliska@suse.cz>
3443 * symbol-summary.h: Rename allocator to m_allocator and
3446 2019-11-05 Richard Biener <rguenther@suse.de>
3448 PR tree-optimization/92324
3449 * tree-vect-loop.c (check_reduction_path): For MIN/MAX require
3450 all signed or unsigned operations.
3452 2019-11-05 Jan Hubicka <jh@suse.cz>
3454 * hsa-brig.c: Include alloc-pool.h
3455 * hsa-dump.c: Likewise.
3456 * hsa-gen.c: Likewise.
3457 * hse-regalloc.c: Likewise.
3458 * ipa-hsa.c: Likewise.
3459 * ipa-predicate.c: Likewise.
3460 * ipa-reference.c: Likewise.
3461 * ipa-sra.c: Likewise.
3462 * omp-expand.c: Likewise.
3463 * omp-general.c: Likewise.
3464 * omp-low.c: Likewise.
3465 * sumbol-summary.h (function_summary_base): Add allocator.
3466 (function_summary<T *>::function_summary): Update construction.
3467 (fast_function_summary<T *, V>::fast_function_summary): Likewise.
3468 (call_summary_base): Add allcator.
3469 (call_summary<T *>::call_summary): Update construction.
3470 (fast_call_summary<T *, V>::fast_call_summary): Likewise.
3472 2019-11-05 Jakub Jelinek <jakub@redhat.com>
3474 PR tree-optimization/91945
3475 * builtins.c (compute_objsize): For ARRAY_REF, only multiply off
3476 by tpsize if it is both non-NULL and INTEGER_CST, otherwise punt.
3479 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3481 * range-op.cc (wi_set_zero_nonzero_bits): Remove static qualifier.
3482 * range-op.h (wi_set_zero_nonzero_bits): New prototype.
3483 * tree-vrp.h (vrp_set_zero_nonzero_bits): Remove.
3484 * tree-vrp.c (wide_int_range_set_zero_nonzero_bits): Remove.
3485 (vrp_set_zero_nonzero_bits): Move to...
3486 * vr-values.c (vr_set_zero_nonzero_bits): ...here.
3487 (vr_values::simplify_bit_ops_using_ranges): Rename
3488 vrp_set_zero_nonzero_bits to vr_set_zero_nonzero_bits.
3490 2019-11-05 Martin Liska <mliska@suse.cz>
3493 * fold-const.c (operand_compare::hash_operand): Remove
3494 FIELD_DECL handling.
3496 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3498 * tree-vrp.h (vrp_bitmap_equal_p): Remove.
3499 * tree-vrp.c (vrp_bitmap_equal_p): Move before use and make
3502 2019-11-05 Aldy Hernandez <aldyh@redhat.com>
3504 * tree-vrp.c (value_range_base::operator==): Use equal_p to
3505 properly handle symbolics.
3506 (range_compatible_p): Remove.
3508 2019-11-04 Kamlesh Kumar <kamleshbhalui@gmail.com>
3510 * common.opt (-fabi-version): Document =14.
3511 * doc/invoke.texi (C++ Dialect Options): Likewise.
3513 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3515 * tree-vrp.c (value_range_base::set): Do not special case pointers.
3517 2019-11-04 Tobias Burnus <tobias@codesourcery.com>
3519 * config/gcn/gcn.c (gcn_omp_device_kind_arch_isa): New function.
3520 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3521 gcn_omp_device_kind_arch_isa.
3522 * config/gcn/t-omp-device: New file.
3523 * configure.ac: Support gcn for omp_device_property.
3524 * configure: Regenerate.
3526 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3528 * tree-vrp.h (vrp_val_min): Remove handle_pointers argument.
3529 (vrp_val_max): Same.
3530 (vrp_val_is_min): Same.
3531 (vrp_val_is_max): Same.
3532 (value_range_base::nonzero_p): Remove last argument to
3534 * tree-vrp.c (vrp_val_min): Remove handle_pointers argument.
3535 (vrp_val_max): Same.
3536 (vrp_val_is_min): Same.
3537 (vrp_val_is_max): Same.
3538 (value_range_base::set_varying): Remove last argument to vrp_val*.
3539 (value_range_base::dump): Same.
3540 (value_range_base::set): Same.
3541 (value_range_base::normalize_symbolics): Same.
3542 (value_range_base::num_pairs): Same.
3543 (value_range_base::lower_bound): Same.
3544 (value_range_base::upper_bound): Same.
3545 (ranges_from_anti_range): Remove handle_pointers argument.
3546 (value_range_base::singleton_p): Remove last argument to
3547 ranges_from_anti_range.
3549 2019-11-04 Jan Hubicka <jh@suse.cz>
3551 * ipa-reference.c (init_function_info): Initialize
3552 info->global.statics_read.
3554 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3556 * tree-vrp.c (value_range_base::invert): Use constructors to build
3559 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3561 * tree-vrp.c (range_int_cst_singleton_p): Remove.
3562 * tree-vrp.h (range_int_cst_singleton_p): Remove.
3564 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3566 * tree-vrp.c (value_range_base::normalize_addresses): Handle
3569 2019-11-04 Aldy Hernandez <aldyh@redhat.com>
3571 * tree-vrp.c (dump_assert_info): New.
3572 (dump_asserts_info): New.
3574 2019-11-04 Jan Hubicka <jh@suse.cz>
3576 * ipa-inline-transform.c: Include ipa-utils.h
3577 (inline_call): Set thunk_expansion flag.
3578 * ipa-utils.h (thunk_expansion): Declare.
3579 * ipa-devirt.c (thunk_expansion): New global var.
3580 (devirt_node_removal_hook): Do not invalidate cache while
3581 doing thunk expansion.
3583 2019-11-04 Tamar Christina <tamar.christina@arm.com>
3585 * tree-vect-slp.c (vectorize_slp_instance_root_stmt): Initialize rstmt.
3587 2019-11-04 Martin Sebor <msebor@redhat.com>
3589 PR tree-optimization/92349
3590 * tree-vrp.c (vrp_prop::check_array_ref): Avoid assuming struct
3591 memebers have constant sizes.
3593 2019-11-04 Andre Vieira <andre.simoesdiasvieira@arm.com>
3595 * tree-vect-loop.c (vect_analyze_loop): Remove orig_loop_vinfo
3597 * tree-vectorizer.h (vect_analyze_loop): Update declaration.
3598 * tree-vectorizer.c (try_vectorize_loop_1): Update calls to
3601 2019-11-04 Joel Hutton <Joel.Hutton@arm.com>
3603 * expr.c (store_constructor): Modify to handle single element vectors.
3604 * tree-vect-slp.c (vect_analyze_slp_instance): Add case for vector
3606 (vect_slp_check_for_constructors): New function.
3607 (vect_slp_analyze_bb_1): Call new function to check for vector
3609 (vectorize_slp_instance_root_stmt): New function.
3610 (vect_schedule_slp): Call new function to vectorize root stmt of vector
3612 * tree-vectorizer.h (SLP_INSTANCE_ROOT_STMT): New field.
3614 2019-11-04 Richard Biener <rguenther@suse.de>
3616 PR tree-optimization/92345
3617 * tree-vect-loop.c (vect_is_simple_reduction): Return whether
3618 we produced a reduction chain.
3619 (vect_analyze_scalar_cycles_1): Do not add reduction chains to
3620 LOOP_VINFO_REDUCTIONS.
3622 2019-11-04 Jan Hubicka <jh@suse.cz>
3624 * cgraphclones.c (cgraph_node::create_version_clone): Do not
3625 duplicate summaries.
3626 * ipa-fnsummary.c (ipa_fn_summary_alloc): Allocate size summary
3628 (ipa_fn_summary_t::duplicate): Use get instead of get_create to
3629 access call summaries.
3630 (dump_ipa_call_summary): Be ready for missing edge summaries.
3631 (analyze_function_body): Use get instead of get_create to access
3633 (estimate_calls_size_and_time): Do not access summaries of
3634 inlined edges; sanity check they are missing.
3635 (ipa_call_context::estimate_size_and_time): Use get instead
3636 of get_create to access node summary.
3637 (inline_update_callee_summaries): Do not update depth of
3639 (ipa_merge_fn_summary_after_inlining): Remove inline edge from
3641 (ipa_merge_fn_summary_after_inlining): Use get instead
3643 * ipa-fnsummary.h (ipa_remove_from_growth_caches): Declare.
3644 * ipa-inline-analyssi.c (edge_growth_cache): Turn to
3646 (initialize_growth_caches): Update.
3647 (do_estimate_edge_time): Remove redundant copy of context.
3648 (ipa_remove_from_growth_caches): New function.
3649 * ipa-inline.c (flatten_function): Update overall summary
3650 only when optimizing.
3651 (inline_to_all_callers): Update overall summary of function
3653 * ipa-inline.h (edge_growth_cache): Turn to fast summary.
3654 * symbol-summary.h (call_summary_base): Set m_initialize_when_cloning
3657 2019-11-04 Richard Biener <rguenther@suse.de>
3659 * system.h: Include malloc.h if INCLUDE_MALLOC_H and HAVE_MALLINFO.
3660 * ggc-common.c: Remove inclusion of malloc.h, define INCLUDE_MALLOC_H.
3662 2019-11-04 David Edelsohn <dje.gcc@gmail.com>
3664 * ggc-common.c: Include system.h before malloc.h.
3666 2019-11-04 Alexandre Oliva <oliva@adacore.com>
3668 * configure.ac: Pass --enable-obsolete=* and
3669 --enable-option-checking=* down to build configure, and fail
3670 if it fails. AC_SUBST HAVE_AUTO_BUILD.
3671 * configure: Rebuild.
3672 * Makefile.in [HAVE_AUTO_BUILD] (auto-build.h): New rule.
3673 [HAVE_AUTO_BUILD] (config.status): Depend on auto-build.h.
3675 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3677 * config.in: Regenerate.
3678 * config/msp430/msp430.c (msp430_option_override): Emit an error if
3679 -mtiny-printf is used without GCC being configured with
3680 --enable-newlib-nano-formatted-io.
3681 * config/msp430/msp430.h (LINK_SPEC): Pass
3682 "--wrap puts --wrap printf" when -mtiny-printf is used.
3683 * config/msp430/msp430.opt: Document -mtiny-printf.
3684 * configure: Regenerate.
3685 * configure.ac: Enable --enable-newlib-nano-formatted-io flag.
3686 Define HAVE_NEWLIB_NANO_FORMATTED_IO if
3687 --enable-newlib-nano-formatted-io is passed.
3688 * doc/invoke.texi: Document -mtiny-printf.
3690 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3692 * configure: Regenerate.
3694 2019-11-04 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3696 * config/msp430/driver-msp430.c
3697 (msp430_get_linker_devices_include_path): New spec function.
3698 * config/msp430/msp430-devices.c (msp430_dirname): New function.
3699 (extract_devices_dir_from_exec_prefix): New function.
3700 (extract_devices_dir_from_collect_gcc): New function.
3701 (msp430_check_env_var_for_devices): New function.
3702 (msp430_check_path_for_devices): Use xstrdup instead of ASTRDUP.
3703 (parse_devices_csv): Call msp430_check_env_var_for_devices if
3704 devices.csv was not found using other methods.
3705 * config/msp430/msp430-devices.h (msp430_check_env_var_for_devices):
3707 (msp430_dirname): Likewise.
3708 * config/msp430/msp430.c (msp430_register_pre_includes): New function.
3709 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Add
3710 msp430_get_linker_devices_include_path.
3711 (TARGET_EXTRA_PRE_INCLUDES): Define.
3712 * doc/invoke.texi: Document new ways of searching for support files.
3714 2019-11-04 Richard Biener <rguenther@suse.de>
3716 PR tree-optimization/92301
3717 * tree-vect-stmts.c (process_use): Force reduction PHI defs live
3718 as required by epilogue generation
3720 2019-11-04 Martin Liska <mliska@suse.cz>
3723 * fold-const.c (operand_compare::hash_operand): Fix field
3724 hashing of CONSTRUCTOR.
3726 2019-11-04 Martin Liska <mliska@suse.cz>
3728 * ggc.h (ggc_delete): New function.
3729 * ipa-fnsummary.c (ipa_free_fn_summary): Use it.
3730 * ipa-prop.c (ipa_free_all_edge_args): Likewise.
3731 (ipa_free_all_node_params): Likewise.
3732 * ipa-sra.c (ipa_sra_analysis): Likewise.
3734 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3736 * ipa-fnsummary.c (set_cond_stmt_execution_predicate,
3737 set_switch_stmt_execution_predicate, compute_bb_predicates,
3738 will_be_nonconstant_expr_predicate,
3739 phi_result_unknown_predicate,
3740 analyze_function_body): Pass arround params summary.
3741 (ipa_call_context::duplicate_from): New comment;
3742 only duplicate useful values.
3743 (ipa_call_context::equal_to): Only compare useful values.
3744 (remap_edge_summaries): Pass params_summary.
3745 (remap_hint_predicate): Likewise.
3746 (ipa_merge_fn_summary_after_inlining): Likewise.
3747 (inline_read_section): Initialize params summary used flags.
3748 * ipa-predicate.c (predicate::remap_after_inlining): Pass
3749 around param_summary.
3750 (add_condition): Initialized used params summary flags.
3751 * ipa-predicate.h (inline_param_summary::equals_to): Make const.
3752 (inline_param_summary::useless_p): New predicate.
3753 (remap_after_inlining, add_condition): Update prototype
3754 * ipa-prop.c (ipa_populate_param_decls): Watch overflow in
3756 (ipa_note_param_call): Add parameter POLYMORPHIC; update params
3758 (ipa_analyze_indirect_call_uses): Update use of ipa_note_param_call.
3759 (ipa_analyze_virtual_call_uses): Likewise.
3760 (update_indirect_edges_after_inlining): Update param summaries.
3761 (ipa_print_node_params): Print used flags.
3762 (ipa_read_indirect_edge_info): Update param summareis.
3763 * ipa-prop.h (ipa_param_descriptor): Add
3764 used_by_ipa_predicates, used_by_indirect_call
3765 and used_by_polymorphic_call.
3766 (ipa_set_param_used_by_ipa_predicates,
3767 ipa_set_param_used_by_indirect_call,
3768 ipa_set_param_used_by_polymorphic_call,
3769 ipa_is_param_used_by_ipa_predicates,
3770 ipa_is_param_used_by_indirect_call,
3771 ipa_is_param_used_by_polymorphic_call): New inline functions.
3773 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3775 * ipa-fnsummary.c (ipa_call_context::duplicate_from): New
3777 (ipa_call_context::release): Add ALL parameter.
3778 (ipa_call_context::equal_to): New member function.
3779 * ipa-fnsummary.h (ipa_call_context): Add empty constructor;
3780 duplicate_form, release, equal_to and exists_p member functoins.
3781 * ipa-inline-analysis.c (node_context_cache_entry): New
3783 (node_context_summary): Likewise.
3784 (node_context_cache, node_context_cache_hit, node_context_cache_miss,
3785 node_context_clear): New static vars.
3786 (initialize_growth_caches): New function.
3787 (free_growth_caches): Also delete node_context_cache; output stats.
3788 (do_estimate_edge_time): Cache contexts.
3789 (reset_node_cache): New function.
3790 * ipa-inline.c (reset_edge_caches): Reset also node cache.
3791 (inline_small_functions): Initialize growth caches.
3792 * ipa-inline.h (reset_node_cache, initialize_growth_caches):
3794 * ipa-predicate.h (inline_param_summary::equal_to): New.
3795 * ipa-prop.c (ipa_agg_jf_item::equal_to): New.
3796 * ipa-prop.h (ipa_agg_jf_item): Declare equal_to member function.
3797 (ipa_agg_jump_function): Implement equal_to member function.
3799 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3801 * ipa-fnsummary.c (inline_read_section): Set vector size
3804 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3806 * ipa-fnsummary.c (ipa_call_context): New constructor.
3807 (estimate_node_size_and_time): Turn to ...
3808 (ipa_call_context::estimate_size_and_time): ... this one.
3809 (ipa_call_context::release): New.
3810 * ipa-fnsummary.h (ipa_call_context): New class.
3811 (estimate_node_size_and_time): Remove.
3812 * ipa-inline-analysis.c (do_estimate_edge_time, do_estimate_edge_size,
3813 do_estimate_edge_hints): Update.
3815 2019-11-02 Jan Hubicka <hubicka@ucw.cz>
3817 * config.in: Regenerate.
3818 * configure: Regenerate.
3819 * configure.ac: Check for mallinfo.
3820 * ggc-common.c: Include malloc.h if available;
3822 (report_heap_memory_use): New functoin.
3823 * ggc-page.c (ggc_grow): Do not print "start".
3824 * ggc.h (report_heap_memory_use): Declare.
3825 * pases.c (execute_one_pass): Report memory after IPA passes.
3826 (ipa_read_summaries_1): Likewise.
3827 (ipa_read_optimization_summaries_1): Likewise.
3829 2019-11-02 Jakub Jelinek <jakub@redhat.com>
3831 * gimplify.h (omp_construct_selector_matches): Change return
3832 type to int, add a new SCORES argument.
3833 * gimplify.c (omp_construct_selector_matches): Likewise. If
3834 SCORES is non-NULL, compute scores of each construct.
3835 * omp-general.h (omp_get_context_selector): Declare.
3836 * omp-general.c (omp_maybe_offloaded, omp_context_selector_matches):
3837 Adjust omp_construct_selector_matches callers.
3838 (omp_get_context_selector): New function, moved from c-family/c-omp.c.
3839 (omp_context_compute_score): New function.
3840 (omp_resolve_declare_variant): Compute scores and decide based on
3844 * configure.ac: Don't look for omp-device-properties files from
3845 installed offloading compilers. Instead add tmake_file snippets
3846 for configured offloading targets and use files they generate.
3847 * Makefile.in (install): Don't depend on
3848 install-omp-device-properties.
3849 (install-omp-device-properties): Remove goal.
3850 * config/i386/t-omp-device: New file.
3851 * config/i386/t-intelmic (omp-device-properties): Remove goal.
3852 * config/nvptx/t-omp-device: New file.
3853 * config/nvptx/t-nvptx (omp-device-properties): Remove goal.
3854 * configure: Regenerated.
3856 * omp-general.h (omp_context_selector_set_compare): Declare.
3857 * omp-general.c (omp_construct_simd_compare,
3858 omp_context_selector_props_compare, omp_context_selector_set_compare,
3859 omp_context_selector_compare): New functions.
3860 (omp_resolve_declare_variant): Prune variants that are strict subset
3863 2019-11-01 Martin Sebor <msebor@redhat.com>
3869 * doc/invoke.texi (-Wzero-length-bounds): Document.
3870 * gimple-match-head.c (try_conditional_simplification): Use memcpy
3871 instead of a hand-rolled loop to avoid PR 92323.
3872 * tree-vrp.c (vrp_prop::check_array_ref): Handle trailing arrays
3874 (vrp_prop::check_mem_ref): Handle declared struct objects.
3875 * tree.c (last_field): New function.
3876 (array_at_struct_end_p): Handle MEM_REF.
3877 (get_initializer_for): New helper.
3878 (component_ref_size): Add argument. Rename locals. Call
3879 get_initializer_for instead of fold_ctor_reference. Correct handling
3880 of flexible array members.
3881 * wide-int.h (generic_wide_int <storage>::sign_mask): Assert invariant.
3883 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3885 * config/rs6000/rs6000-modes.def (V2SF, V2SI): New modes.
3886 * config/rs6000/vsx.md (UNSPEC_VSX_CVSPSXDS,
3887 UNSPEC_VSX_CVSPUXDS): Remove.
3888 (vsx_xvcvspdp): New define_expand, old define_insn split to...
3889 (vsx_xvcvspdp_be): ... this. New. And...
3890 (vsx_xvcvspdp_le): ... this. New.
3891 (vsx_xvcv<su>xwdp): New define_expand, old define_insn split to...
3892 (vsx_xvcv<su>xwdp_be): ... this. New. And...
3893 (vsx_xvcv<su>xwdp_le): ... this. New.
3894 (vsx_xvcvsp<su>xds): New define_expand, old define_insn split to...
3895 (vsx_xvcvsp<su>xds_be): ... this. New. And...
3896 (vsx_xvcvsp<su>xds_le): ... this. New.
3898 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3900 * config/rs6000/vsx.md (UNSPEC_VSX_CVSXWSP, UNSPEC_VSX_CVUXWSP,
3901 UNSPEC_VSX_XVCVSXDDP, UNSPEC_VSX_XVCVUXDDP,
3902 UNSPEC_VSX_XVCVDPSXDS, UNSPEC_VSX_XVCVDPUXDS,
3903 UNSPEC_VSX_XVCVSPSXWS): Remove.
3904 (vsx_xvcv<su>xddp, vsx_xvcvdp<su>xds, vsx_xvcvsp<su>xws,
3905 vsx_xvcv<su>xwsp): Update define_insn RTL patterns.
3907 2019-11-01 Kewen Lin <linkw@gcc.gnu.org>
3909 * config/rs6000/vsx.md (vsx_xvcdpsp): Remove define_insn.
3910 (UNSPEC_VSX_XVCDPSP): Remove.
3911 * config/rs6000/rs6000.c (rs6000_generate_float2_double_code):
3912 Replace gen_vsx_xvcdpsp by gen_vsx_xvcvdpsp.
3914 2019-11-01 Tobias Burnus <tobias@codesourcery.com>
3916 * hooks.c (hook_tree_tree_bool_null): New.
3917 * hooks.h (hook_tree_tree_bool_null): Declare.
3918 * langhooks-def.h (LANG_HOOKS_OMP_ARRAY_DATA): Define.
3919 (LANG_HOOKS_DECLS): Add it.
3920 * langhooks.h (lang_hooks_for_decls): Add omp_array_data.
3921 * omp-low.c (install_var_field): New mode for Fortran descriptor arrays.
3922 (lower_omp_target): Handle Fortran array with descriptor in
3923 OMP_CLAUSE_USE_DEVICE_ADDR/OMP_CLAUSE_USE_DEVICE_PTR.
3925 2019-10-31 Richard Sandiford <richard.sandiford@arm.com>
3927 * config/aarch64/aarch64-sve-builtins.cc (register_builtin_types):
3928 Assert that the type we store in abi_vector_types is its own
3930 (svbool_type_p): Don't apply TYPE_MAIN_VARIANT here.
3932 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3934 * config/arm/arm.c (arm_legitimize_address): Don't form negative offsets
3935 from a CONST_INT address when TARGET_THUMB2.
3937 2019-10-31 Richard Earnshaw <rearnsha@arm.com>
3939 * config/arm/arm.md (add_not_cin): New insn.
3940 (add_not_shift_cin): Likewise.
3942 2019-10-31 Martin Liska <mliska@suse.cz>
3944 * ipa-icf-gimple.c (func_checker::compare_tree_ssa_label): Remove.
3945 * ipa-icf-gimple.h: Remove declaration from compare_tree_ssa_label
3946 and compare_memory_operand.
3948 2019-10-31 Jakub Jelinek <jakub@redhat.com>
3950 * configure.ac: Compute and substitute omp_device_properties and
3951 omp_device_property_deps.
3952 * Makefile.in (generated_files): Add omp-device-properties.h.
3953 (omp-general.o): Depend on omp-device-properties.h.
3954 (omp_device_properties): New make variable.
3955 (omp-device-properties.h, s-omp-device-properties-h,
3956 install-omp-device-properties): New goals.
3957 (install): Depend on install-omp-device-properties for accelerators.
3958 * target.def (TARGET_OMP_DEVICE_KIND_ARCH_ISA): New target hook.
3959 * target.h (enum omp_device_kind_arch_isa): New enum.
3960 * doc/tm.texi.in: Add placeholder for TARGET_OMP_DEVICE_KIND_ARCH_ISA
3962 * omp-general.c: Include omp-device-properties.h.
3963 (omp_max_simt_vf): Expect OFFLOAD_TARGET_NAMES to be separated by
3964 colon instead of comma.
3965 (omp_offload_device_kind_arch_isa, omp_maybe_offloaded): New
3967 (omp_context_selector_matches): Implement device set arch/isa
3968 selectors, improve device set kind selector handling.
3969 * config/i386/i386-options.h (ix86_omp_device_kind_arch_isa): Declare.
3970 * config/i386/i386.c (TARGET_SIMD_CLONE_ADJUST,
3971 TARGET_SIMD_CLONE_USABLE): Formatting fix.
3972 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3973 ix86_omp_device_kind_arch_isa.
3974 * config/i386/i386-options.c (struct ix86_target_opts): Move type
3975 definition from ix86_target_string to file scope.
3976 (isa2_opts, isa_opts): Moved arrays from ix86_target_string function
3978 (ix86_omp_device_kind_arch_isa): New function.
3979 (ix86_target_string): Moved struct ix86_target_opts, isa2_opts and
3980 isa_opts definitions to file scope.
3981 * config/i386/t-intelmic (omp-device-properties): New goal.
3982 * config/nvptx/t-nvptx (omp-device-properties): Likewise.
3983 * config/nvptx/nvptx.c (nvptx_omp_device_kind_arch_isa): New function.
3984 (TARGET_OMP_DEVICE_KIND_ARCH_ISA): Redefine to
3985 nvptx_omp_device_kind_arch_isa.
3986 * configure: Regenerate.
3987 * doc/tm.texi: Regenerate.
3990 * tree.h (fndecl_built_in_p): Use fndecl_built_in_p instead of
3991 DECL_BUILT_IN in comment. Remove redundant ()s around return
3993 * tree.c (free_lang_data_in_decl): Check if var is FUNCTION_DECL
3994 before calling fndecl_built_in_p.
3995 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Check if
3996 TREE_OPERAND (fn, 0) is a FUNCTION_DECL before calling
3997 fndecl_built_in_p on it.
3999 2019-10-31 Andre Vieira <andre.simoesdiasvieira@arm.com>
4001 * params.def (PARAM_VECT_EPILOGUES_NOMASK): Enable by default.
4003 2019-10-31 Martin Liska <mliska@suse.cz>
4005 * config/arm/arm.c (arm_get_pcs_model): Remove usage
4006 of cgraph_local_info and use local_info_node instead.
4007 * config/bfin/bfin.c (bfin_load_pic_reg): Likewise.
4008 (bfin_function_ok_for_sibcall): Likewise.
4009 * config/c6x/c6x.c (c6x_function_ok_for_sibcall): Likewise.
4010 (must_reload_pic_reg_p): Likewise.
4012 2019-10-31 Jakub Jelinek <jakub@redhat.com>
4015 * tree.h (type_initializer_zero_p): Remove.
4016 * tree.c (type_initializer_zero_p): Remove.
4018 2019-10-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
4020 * doc/invoke.texi (-Wshadow, -Wshadow=global
4021 -Wshadow=local, -Wshadow=compatible-local): Update documentation.
4023 2019-10-30 Tobias Burnus <tobias@codesourcery.com>
4025 * gimplify.c (gimplify_scan_omp_clauses): Remove FE-generated
4026 GOMP_MAP_TO_PSET and GOMP_MAP_POINTER mapping for 'target update'
4027 and 'target exit data'.
4029 2019-10-30 Martin Jambor <mjambor@suse.cz>
4032 * cgraph.c (cgraph_edge::possibly_call_in_translation_unit_p): Fix
4033 availability comparison.
4035 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4037 * config/msp430/msp430.c (msp430_expand_helper): Support expansion of
4038 calls to __mspabi_mpy* functions.
4039 * config/msp430/msp430.md (mulhisi3): New define_expand.
4040 (umulhisi3): New define_expand.
4041 (*mulhisi3_inline): Use old mulhisi3 define_insn.
4042 (*umulhisi3_inline): Use old umulhisi3 define_insn.
4044 2019-10-30 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4046 * config/msp430/msp430.c (msp430_check_index_not_high_mem): New.
4047 (msp430_check_plus_not_high_mem): New.
4048 (msp430_op_not_in_high_mem): Use new functions to check if the operand
4049 might be in low memory.
4050 Indicate that a 16-bit absolute address is in lower memory.
4052 2019-10-30 Martin Jambor <mjambor@suse.cz>
4054 * ipa-prop.c (ipa_compute_jump_functions_for_bb): Fix the call to
4055 ultimate_alias_target.
4057 2019-10-30 Richard Biener <rguenther@suse.de>
4059 PR tree-optimization/92275
4060 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_loops):
4061 Copy all loop-closed PHIs.
4063 2019-10-30 Martin Liska <mliska@suse.cz>
4065 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Use
4066 const_tree as function argument.
4067 (func_checker::compare_decl): Likewise.
4068 (func_checker::operand_equal_p): Likewise.
4069 (func_checker::compare_variable_decl): Likewise.
4070 (func_checker::parse_labels): Likewise.
4071 * ipa-icf-gimple.h: Likewise.
4073 2019-10-30 Martin Liska <mliska@suse.cz>
4075 * ipa-icf-gimple.c (func_checker::compatible_types_p):
4076 Do not compare alias sets. It's handled by operand_equal_p.
4078 2019-10-30 Martin Liska <mliska@suse.cz>
4080 * ipa-icf-gimple.c (func_checker::func_checker): Do not
4081 initialize m_compare_polymorphic.
4082 (func_checker::compare_decl): Do not compare polymorphic types.
4083 * ipa-icf-gimple.h (m_compare_polymorphic): Remove.
4084 * ipa-icf.c (sem_function::equals_private): Do not call
4085 compare_polymorphic_p.
4087 2019-10-30 Martin Liska <mliska@suse.cz>
4089 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Call
4091 (func_checker::compare_memory_operand): Remove.
4092 (func_checker::compare_cst_or_decl): Remove.
4093 (func_checker::operand_equal_valueize): Do not handle
4095 (func_checker::compare_gimple_call): Call compare_operand.
4096 (func_checker::compare_gimple_assign): Likewise.
4097 * ipa-icf-gimple.h: Remove compare_cst_or_decl.
4098 * ipa-icf.c (sem_function::icf_handled_component_p): Remove.
4099 * ipa-icf.h (icf_handled_component_p): Remove.
4101 2019-10-30 Martin Liska <mliska@suse.cz>
4103 * ipa-icf-gimple.c (func_checker::hash_operand): New.
4104 (func_checker::compare_cst_or_decl): Remove handling
4106 (func_checker::compare_operand): Transform to ...
4107 (func_checker::operand_equal_p): ... this.
4108 * ipa-icf-gimple.h (class func_checker): Add
4109 operand_equal_p and hash_operand.
4110 * ipa-icf.c (sem_function::equals_private): Fix
4111 pushing and popping of cfun.
4113 2019-10-30 Martin Liska <mliska@suse.cz>
4115 * fold-const.c (operand_equal_p): Move to ...
4116 (operand_compare::operand_equal_p): ... here.
4117 (operand_compare::verify_hash_value): New.
4118 (add_expr): Move to ...
4119 (operand_compare::hash_operand): ... here.
4120 * fold-const.h (operand_equal_p): Move to the class.
4121 (class operand_compare): New.
4122 * tree.c (add_expr): Remove.
4124 2019-10-30 Martin Liska <mliska@suse.cz>
4126 * fold-const.c (operand_equal_p): Support OBJ_TYPE_REF.
4127 * tree.c (add_expr): Hash parts of OBJ_TYPE_REF.
4129 2019-10-30 Martin Liska <mliska@suse.cz>
4133 * cgraph.c (cgraph_node::get_create): Overwrite node->order
4134 from a first_clone in order to get proper LTO section
4136 (cgraph_node::get_untransformed_body):
4137 Use lto_get_section_data where symtab_node::order
4139 * cgraphclones.c (cgraph_node::find_replacement):
4140 Update also symbol order.
4141 * ipa-fnsummary.c (ipa_fn_summary_read):
4142 Use new function lto_get_summary_section_data.
4143 * ipa-hsa.c (ipa_hsa_read_summary): Likewise.
4144 * ipa-icf.c (sem_item_optimizer::read_summary):
4146 * ipa-prop.c (ipa_prop_read_jump_functions):
4148 (ipcp_read_transformation_summaries): Likewise.
4149 * ipa-sra.c (ipa_sra_read_summary): Likewise.
4150 * lto-cgraph.c (input_node): Add also order_base.
4151 (input_varpool_node): Likewise.
4152 (input_cgraph_1): Assign the order_base.
4153 (input_cgraph_opt_summary): Use new lto_get_summary_section_data.
4154 * lto-opts.c (lto_write_options): Pass new argument.
4155 * lto-section-in.c (lto_get_section_data): Add new argumente order.
4156 (lto_get_summary_section_data): New.
4157 (lto_get_raw_section_data): Add order argument.
4158 (lto_create_simple_input_block): Likewise.
4159 * lto-section-out.c (lto_destroy_simple_output_block):
4161 * lto-streamer-in.c (lto_input_toplevel_asms):
4162 Use lto_get_summary_section_data.
4163 (lto_input_mode_table): Likewise.
4164 * lto-streamer-out.c (produce_asm): Pass symtab_node::order.
4165 (lto_output_toplevel_asms): Pass new argument.
4166 (copy_function_or_variable): Likewise.
4167 (produce_lto_section):Likewise.
4168 (produce_symtab): Likewise.
4169 (lto_write_mode_table): Likewise.
4170 (produce_asm_for_decls): Likewise.
4171 * lto-streamer.c (lto_get_section_name): Concat symbol name
4173 * lto-streamer.h (lto_get_section_data): Add order argument.
4174 (lto_get_summary_section_data): New.
4175 (lto_get_raw_section_data): Add order argument.
4176 (lto_get_section_name): Likewise.
4177 * varpool.c (varpool_node::get_constructor): Pass order argument.
4179 2019-10-30 Jakub Jelinek <jakub@redhat.com>
4181 PR tree-optimization/92262
4182 * tree-ssa-loop-ivopts.c (get_debug_computation_at): Don't unshare
4183 ubase or cbase here.
4184 (remove_unused_ivs): Unshare comp before using it.
4186 2019-10-30 Jan Hubicka <hubicka@ucw.cz>
4188 * ipa-prop.c (update_jump_functions_after_inlining):
4189 Watch for missing summaries.
4191 2019-10-30 Richard Biener <rguenther@suse.de>
4193 PR tree-optimization/65930
4194 * tree-vect-loop.c (vect_is_simple_reduction): For reduction
4195 chains also allow a leading and trailing conversion.
4196 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
4197 intermediate reduction chains.
4198 (vect_analyze_slp_instance): Likewise. Build a SLP
4199 node for a trailing conversion manually.
4201 2019-10-30 Martin Liska <mliska@suse.cz>
4203 * cgraph.c (cgraph_node::local_info): Transform to ...
4204 (cgraph_node::local_info_node): ... this.
4205 (cgraph_node::dump): Remove cgraph_local_info and
4206 put its fields directly into cgraph_node.
4207 (cgraph_node::get_availability): Likewise.
4208 (cgraph_node::make_local): Likewise.
4209 (cgraph_node::verify_node): Likewise.
4210 * cgraph.h (struct GTY): Likewise.
4211 * cgraphclones.c (set_new_clone_decl_and_node_flags): Likewise.
4212 (duplicate_thunk_for_node): Likewise.
4213 (cgraph_node::create_clone): Likewise.
4214 (cgraph_node::create_virtual_clone): Likewise.
4215 (cgraph_node::create_version_clone): Likewise.
4216 * cgraphunit.c (cgraph_node::reset): Likewise.
4217 (cgraph_node::finalize_function): Likewise.
4218 (cgraph_node::add_new_function): Likewise.
4219 (analyze_functions): Likewise.
4220 * combine.c (setup_incoming_promotions): Likewise.
4221 * config/i386/i386.c (ix86_function_regparm): Likewise.
4222 (ix86_function_sseregparm): Likewise.
4223 (init_cumulative_args): Likewise.
4224 * ipa-cp.c (determine_versionability): Likewise.
4225 (count_callers): Likewise.
4226 (set_single_call_flag): Likewise.
4227 (initialize_node_lattices): Likewise.
4228 (estimate_local_effects): Likewise.
4229 (create_specialized_node): Likewise.
4230 (identify_dead_nodes): Likewise.
4231 * ipa-fnsummary.c (compute_fn_summary): Likewise.
4232 (ipa_fn_summary_generate): Likewise.
4233 * ipa-hsa.c (check_warn_node_versionable): Likewise.
4234 (process_hsa_functions): Likewise.
4235 * ipa-icf.c (set_local): Likewise.
4236 * ipa-inline-analysis.c (initialize_inline_failed): Likewise.
4237 * ipa-inline.c (speculation_useful_p): Likewise.
4238 * ipa-profile.c (ipa_propagate_frequency): Likewise.
4239 (ipa_profile): Likewise.
4240 * ipa-split.c (split_function): Likewise.
4241 (execute_split_functions): Likewise.
4242 * ipa-sra.c (ipa_sra_preliminary_function_checks): Likewise.
4243 (ipa_sra_ipa_function_checks): Likewise.
4244 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4245 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4246 * lto-cgraph.c (lto_output_node): Likewise.
4247 (input_overwrite_node): Likewise.
4248 * multiple_target.c (expand_target_clones): Likewise.
4249 * omp-simd-clone.c (simd_clone_create): Likewise.
4250 * trans-mem.c (expand_call_tm): Likewise.
4251 (ipa_tm_mayenterirr_function): Likewise.
4252 (ipa_tm_diagnose_tm_safe): Likewise.
4253 (ipa_tm_diagnose_transaction): Likewise.
4254 (ipa_tm_create_version): Likewise.
4255 (ipa_tm_transform_calls_redirect): Likewise.
4256 (ipa_tm_execute): Likewise.
4257 * tree-inline.c (expand_call_inline): Likewise.
4259 2019-10-29 Martin Liska <mliska@suse.cz>
4261 * symbol-summary.h (function_summary): Pass memory location
4262 to underlaying hash_map (or vec).
4263 (V>::fast_function_summary): Likewise.
4265 2019-10-29 Martin Liska <mliska@suse.cz>
4267 * ggc.h (ggc_alloc_no_dtor): New function.
4268 * ipa-fnsummary.c (ipa_free_fn_summary): Call
4269 destructor and ggc_free.
4270 (ipa_free_size_summary): Call delete instead
4272 * ipa-fnsummary.h: Use new function ggc_alloc_no_dtor.
4273 * ipa-prop.c (ipa_check_create_edge_args): Likewise.
4274 (ipa_free_all_edge_args): Call destructor and ggc_free.
4275 (ipa_free_all_node_params): Likewise.
4276 (ipcp_free_transformation_sum): Likewise.
4277 * ipa-prop.h (ipa_check_create_node_params):
4278 Call new ggc_alloc_no_dtor.
4279 * ipa-sra.c (ipa_sra_generate_summary): Likewise.
4280 (ipa_sra_analysis): Call destructor and ggc_free.
4281 Replace release with delete operator.
4282 * symbol-summary.h (release): Remove ..
4283 (V>::~fast_function_summary): and move logic here.
4284 Likewise for other classes.
4286 2019-10-29 Richard Biener <rguenther@suse.de>
4288 PR tree-optimization/92260
4289 * tree-vect-slp.c (vect_get_constant_vectors): Special-case
4292 2019-10-29 Andre Vieira <andre.simoesdiasvieira@arm.com>
4294 PR tree-optimization/88915
4295 * tree-ssa-loop-niter.h (simplify_replace_tree): Change declaration.
4296 * tree-ssa-loop-niter.c (simplify_replace_tree): Add context parameter
4297 and make the valueize function pointer also take a void pointer.
4298 * tree-ssa-sccvn.c (vn_valueize_wrapper): New function to wrap
4299 around vn_valueize, to call it without a context.
4300 (process_bb): Use vn_valueize_wrapper instead of vn_valueize.
4301 * tree-vect-loop.c (_loop_vec_info): Initialize epilogue_vinfos.
4302 (~_loop_vec_info): Release epilogue_vinfos.
4303 (vect_analyze_loop_costing): Use knowledge of main VF to estimate
4304 number of iterations of epilogue.
4305 (vect_analyze_loop_2): Adapt to analyse main loop for all supported
4306 vector sizes when vect-epilogues-nomask=1. Also keep track of lowest
4307 versioning threshold needed for main loop.
4308 (vect_analyze_loop): Likewise.
4309 (find_in_mapping): New helper function.
4310 (update_epilogue_loop_vinfo): New function.
4311 (vect_transform_loop): When vectorizing epilogues re-use analysis done
4312 on main loop and call update_epilogue_loop_vinfo to update it.
4313 * tree-vect-loop-manip.c (vect_update_inits_of_drs): No longer insert
4314 stmts on loop preheader edge.
4315 (vect_do_peeling): Enable skip-vectors when doing loop versioning if
4316 we decided to vectorize epilogues. Update epilogues NITERS and
4317 construct ADVANCE to update epilogues data references where needed.
4318 * tree-vectorizer.h (_loop_vec_info): Add epilogue_vinfos.
4319 (vect_do_peeling, vect_update_inits_of_drs,
4320 determine_peel_for_niter, vect_analyze_loop): Add or update
4322 * tree-vectorizer.c (try_vectorize_loop_1): Make sure to use already
4323 created loop_vec_info's for epilogues when available. Otherwise analyse
4324 epilogue separately.
4326 2019-10-29 Richard Biener <rguenther@suse.de>
4328 * doc/tree-ssa.texi (Immediate Uses): Fix FOR_EACH_IMM_USE_STMT
4331 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4333 * tree-vect-stmts.c (vectorizable_condition): Get the reduction
4334 index for the COND_EXPR from stmt_info rather than reduc_info.
4336 2019-10-29 Richard Biener <rguenther@suse.de>
4338 PR tree-optimization/65930
4339 * tree-vect-loop.c (check_reduction_path): Relax single-use
4340 check allowing out-of-loop uses.
4341 (vect_is_simple_reduction): SLP reduction chains cannot have
4342 intermediate stmts used outside of the loop.
4343 (vect_create_epilog_for_reduction): The adjustment might need
4345 (vectorizable_reduction): Annotate live stmts of the reduction
4346 chain with STMT_VINFO_REDUC_DEF.
4347 * tree-vect-stms.c (process_use): Remove no longer true asserts.
4349 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4351 * calls.c (pass_by_reference): Leave the target to decide whether
4352 POLY_INT_CST-sized arguments should be passed by value or reference,
4353 rather than forcing them to be passed by reference.
4354 (must_pass_in_stack_var_size): Likewise.
4355 * config/aarch64/aarch64.md (LAST_SAVED_REGNUM): Redefine from
4356 V31_REGNUM to P15_REGNUM.
4357 * config/aarch64/aarch64-protos.h (aarch64_init_cumulative_args):
4358 Take an extra "silent_p" parameter, defaulting to false.
4359 (aarch64_sve::svbool_type_p): Declare.
4360 (aarch64_sve::nvectors_if_data_type): Likewise.
4361 * config/aarch64/aarch64.h (NUM_PR_ARG_REGS): New macro.
4362 (aarch64_frame::reg_offset): Turn into poly_int64s.
4363 (aarch64_frame::save_regs_size): Likewise.
4364 (aarch64_frame::below_hard_fp_saved_regs_size): New field.
4365 (aarch64_frame::sve_callee_adjust): Likewise.
4366 (aarch64_frame::spare_reg_reg): Likewise.
4367 (ARM_PCS_SVE): New arm_pcs value.
4368 (CUMULATIVE_ARGS::aapcs_nprn): New field.
4369 (CUMULATIVE_ARGS::aapcs_nextnprn): Likewise.
4370 (CUMULATIVE_ARGS::silent_p): Likewise.
4371 (BITS_PER_SVE_PRED): New macro.
4372 * config/aarch64/aarch64.c (handle_aarch64_vector_pcs_attribute): New
4373 function. Reject aarch64_vector_pcs attributes on SVE functions.
4374 (aarch64_attribute_table): Use the above handler.
4375 (aarch64_sve_abi): New function.
4376 (aarch64_sve_argument_p): Likewise.
4377 (aarch64_returns_value_in_sve_regs_p): Likewise.
4378 (aarch64_takes_arguments_in_sve_regs_p): Likewise.
4379 (aarch64_fntype_abi): Check for SVE functions and return the SVE PCS
4380 descriptor for them.
4381 (aarch64_simd_decl_p): Delete.
4382 (aarch64_emit_cfi_for_reg_p): New function.
4383 (aarch64_reg_save_mode): Remove the fndecl argument and instead use
4384 crtl->abi to choose the mode for FP registers. Handle the SVE PCS.
4385 (aarch64_hard_regno_call_part_clobbered): Do not treat FP registers
4386 as partly clobbered for the SVE PCS.
4387 (aarch64_function_ok_for_sibcall): Check whether the two functions
4388 use the same ABI, rather than checking specifically for whether
4389 they're aarch64_vector_pcs functions.
4390 (aarch64_pass_by_reference): Raise an error for attempts to pass
4391 SVE arguments when SVE is disabled. Pass SVE arguments by reference
4392 if there are not enough free registers left, or if the argument is
4394 (aarch64_function_value): Handle SVE predicates, vectors and tuples.
4395 (aarch64_return_in_memory): Do not return SVE predicates, vectors and
4397 (aarch64_layout_arg): Take a function_arg_info rather than
4398 individual properties. Handle SVE predicates, vectors and tuples.
4399 Raise an error if they are passed to unprototyped functions.
4400 (aarch64_function_arg): If the silent_p flag is set, suppress the
4401 usual error about using float registers without TARGET_FLOAT.
4402 (aarch64_init_cumulative_args): Take a silent_p parameter and store
4403 it in the cumulative_args structure. Initialize aapcs_nprn and
4404 aapcs_nextnprn. If the silent_p flag is set, suppress the usual
4405 error about using float registers without TARGET_FLOAT.
4406 If the silent_p flag is not set, also raise an error about
4407 using SVE functions when SVE is disabled.
4408 (aarch64_function_arg_advance): Update the call to aarch64_layout_arg,
4409 and call it for SVE functions too. Update aapcs_nprn similarly
4410 to the other register counts.
4411 (aarch64_layout_frame): If a big-endian function needs to save
4412 and restore Z8-Z15, search for a spare predicate that it can use.
4413 Store SVE predicates at the bottom of the register save area,
4414 followed by SVE vectors, then followed by the normal slots.
4415 Keep pointing the hard frame pointer at the base of the normal slots,
4416 above the SVE vectors. Update the various frame creation and
4417 tear-down strategies for the new layout, initializing the new
4418 sve_callee_adjust field. Add an additional layout for frames
4419 whose saved registers are all SVE registers.
4420 (aarch64_register_saved_on_entry): Cope with poly_int64 reg_offsets.
4421 (aarch64_return_address_signing_enabled): Likewise.
4422 (aarch64_push_regs, aarch64_pop_regs): Update calls to
4423 aarch64_reg_save_mode.
4424 (aarch64_adjust_sve_callee_save_base): New function.
4425 (aarch64_add_cfa_expression): Move earlier in file. Take the
4426 saved register as an rtx rather than a register number and use
4427 its mode for the MEM slot.
4428 (aarch64_save_callee_saves): Remove the mode argument and instead
4429 use aarch64_reg_save_mode to get the mode of each save slot.
4430 Add a hard_fp_valid_p parameter. Cope with poly_int64 register
4431 offsets. Allow GP offsets to be saved at a VL-based offset from
4432 the stack, handling this case using the frame pointer if available
4433 or a temporary register otherwise. Use ST1D to save Z8-Z15 for
4434 big-endian SVE functions; use normal moves for other SVE saves.
4435 Only mark the save as frame-related if aarch64_emit_cfi_for_reg_p
4436 returns true. Add explicit CFA notes when not storing via the
4437 stack pointer. Do not try to pair SVE saves.
4438 (aarch64_restore_callee_saves): Cope with poly_int64 register
4439 offsets. Use LD1D to restore Z8-Z15 for big-endian SVE functions;
4440 use normal moves for other SVE restores. Only add CFA restore notes
4441 if aarch64_emit_cfi_for_reg_p returns true. Do not try to pair
4443 (aarch64_get_separate_components): Always keep the first SVE save
4444 in the prologue if we need to use it as a stack probe. Don't allow
4445 Z8-Z15 saves and loads to be shrink-wrapped for big-endian targets.
4446 Likewise the spare predicate register that they need. Update the
4447 offset calculation to account for the SVE save area. Use the
4448 appropriate range check for SVE LDR and STR instructions.
4449 (aarch64_components_for_bb): Cope with poly_int64 reg_offsets.
4450 (aarch64_process_components): Likewise. Update the offset
4451 calculation to account for the SVE save area. Only mark the
4452 save as frame-related if aarch64_emit_cfi_for_reg_p returns true.
4453 Do not try to pair SVE saves.
4454 (aarch64_allocate_and_probe_stack_space): Cope with poly_int64
4455 reg_offsets. When handling the final allocation, expect the
4456 first SVE register save to be part of the initial allocation
4457 and for it to act as a probe at SP. Account for the SVE callee
4458 save area in the dump information.
4459 (aarch64_expand_prologue): Update the frame diagram. Fold the
4460 SVE callee allocation into the initial allocation if stack clash
4461 protection is enabled. Use new variables to track the offset
4462 of the frame chain (and hard frame pointer) from the current
4463 stack pointer, and likewise the offset of the bottom of the
4464 register save area. Update calls to aarch64_save_callee_saves
4465 and aarch64_add_cfa_expression. Apply sve_callee_adjust before
4466 saving the FP&SIMD registers. Save the predicate registers.
4467 (aarch64_expand_epilogue): Take below_hard_fp_saved_regs_size
4468 into account when setting the stack pointer from the frame pointer,
4469 and when deciding whether we can inherit the initial adjustment
4470 amount from the prologue. Restore the predicate registers after
4471 the vector registers, then apply sve_callee_adjust, then restore
4472 the general registers.
4473 (aarch64_secondary_reload): Don't use secondary SVE reloads
4475 (aapcs_vfp_sub_candidate): Assert that the type is not an SVE type.
4476 (aarch64_short_vector_p): Return false for SVE types.
4477 (aarch64_vfp_is_call_or_return_candidate): Initialize *is_ha
4478 at the start of the function. Return false for SVE types.
4479 (aarch64_asm_output_variant_pcs): Output .variant_pcs for SVE
4481 (TARGET_STRICT_ARGUMENT_NAMING): Redefine to request strict naming.
4482 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<mode>_le): Extend
4483 to big-endian targets for bytewise moves.
4484 (*aarch64_sve_mov<mode>_be): Exclude the bytewise case.
4486 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4487 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
4488 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4490 * config.gcc (aarch64*-*-*): Add arm_sve.h to extra_headers.
4491 Add aarch64-sve-builtins.o, aarch64-sve-builtins-shapes.o and
4492 aarch64-sve-builtins-base.o to extra_objs. Add
4493 aarch64-sve-builtins.h and aarch64-sve-builtins.cc to target_gtfiles.
4494 * config/aarch64/t-aarch64 (aarch64-sve-builtins.o): New rule.
4495 (aarch64-sve-builtins-shapes.o): Likewise.
4496 (aarch64-sve-builtins-base.o): New rules.
4497 * config/aarch64/aarch64-c.c (aarch64_pragma_aarch64): New function.
4498 (aarch64_resolve_overloaded_builtin): Likewise.
4499 (aarch64_check_builtin_call): Likewise.
4500 (aarch64_register_pragmas): Install aarch64_resolve_overloaded_builtin
4501 and aarch64_check_builtin_call in targetm. Register the GCC aarch64
4503 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPRFOP): New macro.
4504 (aarch64_svprfop): New enum.
4505 (AARCH64_BUILTIN_SVE): New aarch64_builtin_class enum value.
4506 (aarch64_sve_int_mode, aarch64_sve_data_mode): Declare.
4507 (aarch64_fold_sve_cnt_pat, aarch64_output_sve_prefetch): Likewise.
4508 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4509 (aarch64_output_sve_ptrues, aarch64_sve_ptrue_svpattern_p): Likewise.
4510 (aarch64_sve_sqadd_sqsub_immediate_p, aarch64_sve_ldff1_operand_p)
4511 (aarch64_sve_ldnf1_operand_p, aarch64_sve_prefetch_operand_p)
4512 (aarch64_ptrue_all_mode, aarch64_convert_sve_data_to_pred): Likewise.
4513 (aarch64_expand_sve_dupq, aarch64_replace_reg_mode): Likewise.
4514 (aarch64_sve::init_builtins, aarch64_sve::handle_arm_sve_h): Likewise.
4515 (aarch64_sve::builtin_decl, aarch64_sve::builtin_type_p): Likewise.
4516 (aarch64_sve::mangle_builtin_type): Likewise.
4517 (aarch64_sve::resolve_overloaded_builtin): Likewise.
4518 (aarch64_sve::check_builtin_call, aarch64_sve::gimple_fold_builtin)
4519 (aarch64_sve::expand_builtin): Likewise.
4520 * config/aarch64/aarch64.c (aarch64_sve_data_mode): Make public.
4521 (aarch64_sve_int_mode): Likewise.
4522 (aarch64_ptrue_all_mode): New function.
4523 (aarch64_convert_sve_data_to_pred): Make public.
4524 (svprfop_token): New function.
4525 (aarch64_output_sve_prefetch): Likewise.
4526 (aarch64_fold_sve_cnt_pat): Likewise.
4527 (aarch64_output_sve_cnt_pat_immediate): Likewise.
4528 (aarch64_sve_move_pred_via_while): Use gen_while with UNSPEC_WHILE_LO
4529 instead of gen_while_ult.
4530 (aarch64_replace_reg_mode): Make public.
4531 (aarch64_init_builtins): Call aarch64_sve::init_builtins.
4532 (aarch64_fold_builtin): Handle AARCH64_BUILTIN_SVE.
4533 (aarch64_gimple_fold_builtin, aarch64_expand_builtin): Likewise.
4534 (aarch64_builtin_decl, aarch64_builtin_reciprocal): Likewise.
4535 (aarch64_mangle_type): Call aarch64_sve::mangle_type.
4536 (aarch64_sve_sqadd_sqsub_immediate_p): New function.
4537 (aarch64_sve_ptrue_svpattern_p): Likewise.
4538 (aarch64_sve_pred_valid_immediate): Check
4539 aarch64_sve_ptrue_svpattern_p.
4540 (aarch64_sve_ldff1_operand_p, aarch64_sve_ldnf1_operand_p)
4541 (aarch64_sve_prefetch_operand_p, aarch64_output_sve_ptrues): New
4543 * config/aarch64/aarch64.md (UNSPEC_LDNT1_SVE, UNSPEC_STNT1_SVE)
4544 (UNSPEC_LDFF1_GATHER, UNSPEC_PTRUE, UNSPEC_WHILE_LE, UNSPEC_WHILE_LS)
4545 (UNSPEC_WHILE_LT, UNSPEC_CLASTA, UNSPEC_UPDATE_FFR)
4546 (UNSPEC_UPDATE_FFRT, UNSPEC_RDFFR, UNSPEC_WRFFR)
4547 (UNSPEC_SVE_LANE_SELECT, UNSPEC_SVE_CNT_PAT, UNSPEC_SVE_PREFETCH)
4548 (UNSPEC_SVE_PREFETCH_GATHER, UNSPEC_SVE_COMPACT, UNSPEC_SVE_SPLICE):
4550 * config/aarch64/iterators.md (SI_ONLY, DI_ONLY, VNx8HI_ONLY)
4551 (VNx2DI_ONLY, SVE_PARTIAL, VNx8_NARROW, VNx8_WIDE, VNx4_NARROW)
4552 (VNx4_WIDE, VNx2_NARROW, VNx2_WIDE, PRED_HSD): New mode iterators.
4553 (UNSPEC_ADR, UNSPEC_BRKA, UNSPEC_BRKB, UNSPEC_BRKN, UNSPEC_BRKPA)
4554 (UNSPEC_BRKPB, UNSPEC_PFIRST, UNSPEC_PNEXT, UNSPEC_CNTP, UNSPEC_SADDV)
4555 (UNSPEC_UADDV, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTMAD)
4556 (UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_CMPEQ_WIDE): New unspecs.
4557 (UNSPEC_COND_CMPGE_WIDE, UNSPEC_COND_CMPGT_WIDE): Likewise.
4558 (UNSPEC_COND_CMPHI_WIDE, UNSPEC_COND_CMPHS_WIDE): Likewise.
4559 (UNSPEC_COND_CMPLE_WIDE, UNSPEC_COND_CMPLO_WIDE): Likewise.
4560 (UNSPEC_COND_CMPLS_WIDE, UNSPEC_COND_CMPLT_WIDE): Likewise.
4561 (UNSPEC_COND_CMPNE_WIDE, UNSPEC_COND_FCADD90, UNSPEC_COND_FCADD270)
4562 (UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90, UNSPEC_COND_FCMLA180)
4563 (UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN): Likewise.
4564 (UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX, UNSPEC_COND_FSCALE): Likewise.
4565 (UNSPEC_LASTA, UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE): Likewise.
4566 (UNSPEC_LSHIFTRT_WIDE, UNSPEC_LDFF1, UNSPEC_LDNF1): Likewise.
4567 (Vesize): Handle partial vector modes.
4568 (self_mask, narrower_mask, sve_lane_con, sve_lane_pair_con): New
4570 (UBINQOPS, ANY_PLUS, SAT_PLUS, ANY_MINUS, SAT_MINUS): New code
4572 (s, paired_extend, inc_dec): New code attributes.
4573 (SVE_INT_ADDV, CLAST, LAST): New int iterators.
4574 (SVE_INT_UNARY): Add UNSPEC_RBIT.
4575 (SVE_FP_UNARY, SVE_FP_UNARY_INT): New int iterators.
4576 (SVE_FP_BINARY, SVE_FP_BINARY_INT): Likewise.
4577 (SVE_COND_FP_UNARY): Add UNSPEC_COND_FRECPX.
4578 (SVE_COND_FP_BINARY): Add UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4580 (SVE_COND_FP_BINARY_INT, SVE_COND_FP_ADD): New int iterators.
4581 (SVE_COND_FP_SUB, SVE_COND_FP_MUL): Likewise.
4582 (SVE_COND_FP_BINARY_I1): Add UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4583 (SVE_COND_FP_BINARY_REG): Add UNSPEC_COND_FMULX.
4584 (SVE_COND_FCADD, SVE_COND_FP_MAXMIN, SVE_COND_FCMLA)
4585 (SVE_COND_INT_CMP_WIDE, SVE_FP_TERNARY_LANE, SVE_CFP_TERNARY_LANE)
4586 (SVE_WHILE, SVE_SHIFT_WIDE, SVE_LDFF1_LDNF1, SVE_BRK_UNARY)
4587 (SVE_BRK_BINARY, SVE_PITER): New int iterators.
4588 (optab): Handle UNSPEC_SADDV, UNSPEC_UADDV, UNSPEC_FRECPE,
4589 UNSPEC_FRECPS, UNSPEC_RSQRTE, UNSPEC_RSQRTS, UNSPEC_RBIT,
4590 UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART, UNSPEC_FMLA, UNSPEC_FMLS,
4591 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270,
4592 UNSPEC_FEXPA, UNSPEC_FTSMUL, UNSPEC_FTSSEL, UNSPEC_COND_FCADD90,
4593 UNSPEC_COND_FCADD270, UNSPEC_COND_FCMLA, UNSPEC_COND_FCMLA90,
4594 UNSPEC_COND_FCMLA180, UNSPEC_COND_FCMLA270, UNSPEC_COND_FMAX,
4595 UNSPEC_COND_FMIN, UNSPEC_COND_FMULX, UNSPEC_COND_FRECPX and
4597 (maxmin_uns): Handle UNSPEC_COND_FMAX and UNSPEC_COND_FMIN.
4598 (binqops_op, binqops_op_rev, last_op): New int attributes.
4599 (su): Handle UNSPEC_SADDV and UNSPEC_UADDV.
4600 (fn, ab): New int attributes.
4601 (cmp_op): Handle UNSPEC_COND_CMP*_WIDE and UNSPEC_WHILE_*.
4602 (while_optab_cmp, brk_op, sve_pred_op): New int attributes.
4603 (sve_int_op): Handle UNSPEC_SMUL_HIGHPART, UNSPEC_UMUL_HIGHPART,
4604 UNSPEC_ASHIFT_WIDE, UNSPEC_ASHIFTRT_WIDE, UNSPEC_LSHIFTRT_WIDE and
4606 (sve_fp_op): Handle UNSPEC_FRECPE, UNSPEC_FRECPS, UNSPEC_RSQRTE,
4607 UNSPEC_RSQRTS, UNSPEC_FMLA, UNSPEC_FMLS, UNSPEC_FEXPA, UNSPEC_FTSMUL,
4608 UNSPEC_FTSSEL, UNSPEC_COND_FMAX, UNSPEC_COND_FMIN, UNSPEC_COND_FMULX,
4609 UNSPEC_COND_FRECPX and UNSPEC_COND_FSCALE.
4610 (sve_fp_op_rev): Handle UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and
4612 (rot): Handle UNSPEC_COND_FCADD* and UNSPEC_COND_FCMLA*.
4613 (brk_reg_con, brk_reg_opno): New int attributes.
4614 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs2_operand): Handle
4615 UNSPEC_COND_FMAX, UNSPEC_COND_FMIN and UNSPEC_COND_FMULX.
4616 (sve_pred_fp_rhs2_immediate): Handle UNSPEC_COND_FMAX and
4618 (max_elem_bits): New int attribute.
4619 (min_elem_bits): Handle UNSPEC_RBIT.
4620 * config/aarch64/predicates.md (subreg_lowpart_operator): Handle
4621 TRUNCATE as well as SUBREG.
4622 (ascending_int_parallel, aarch64_simd_reg_or_minus_one)
4623 (aarch64_sve_ldff1_operand, aarch64_sve_ldnf1_operand)
4624 (aarch64_sve_prefetch_operand, aarch64_sve_ptrue_svpattern_immediate)
4625 (aarch64_sve_qadd_immediate, aarch64_sve_qsub_immediate)
4626 (aarch64_sve_gather_immediate_b, aarch64_sve_gather_immediate_h)
4627 (aarch64_sve_gather_immediate_w, aarch64_sve_gather_immediate_d)
4628 (aarch64_sve_sqadd_operand, aarch64_sve_gather_offset_b)
4629 (aarch64_sve_gather_offset_h, aarch64_sve_gather_offset_w)
4630 (aarch64_sve_gather_offset_d, aarch64_gather_scale_operand_b)
4631 (aarch64_gather_scale_operand_h): New predicates.
4632 * config/aarch64/constraints.md (UPb, UPd, UPh, UPw, Utf, Utn, vgb)
4633 (vgd, vgh, vgw, vsQ, vsS): New constraints.
4634 * config/aarch64/aarch64-sve.md: Add a note on the FFR handling.
4635 (*aarch64_sve_reinterpret<mode>): Allow any source register
4636 instead of requiring an exact match.
4637 (*aarch64_sve_ptruevnx16bi_cc, *aarch64_sve_ptrue<mode>_cc)
4638 (*aarch64_sve_ptruevnx16bi_ptest, *aarch64_sve_ptrue<mode>_ptest)
4639 (aarch64_wrffr, aarch64_update_ffr_for_load, aarch64_copy_ffr_to_ffrt)
4640 (aarch64_rdffr, aarch64_rdffr_z, *aarch64_rdffr_z_ptest)
4641 (*aarch64_rdffr_ptest, *aarch64_rdffr_z_cc, *aarch64_rdffr_cc)
4642 (aarch64_update_ffrt): New patterns.
4643 (@aarch64_load_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4644 (@aarch64_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4645 (@aarch64_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4646 (@aarch64_ld<fn>f1<mode>): New patterns.
4647 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx8_WIDE:mode><VNx8_NARROW:mode>)
4648 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4649 (@aarch64_ld<fn>f1_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4650 (@aarch64_ldnt1<mode>): New patterns.
4651 (gather_load<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4652 the scalar part of the address.
4653 (mask_gather_load<SVE_S:mode>): Use aarch64_sve_gather_offset_w for the
4654 scalar part of the addresse and add an alternative for handling
4656 (mask_gather_load<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4657 (*mask_gather_load<mode>_sxtw, *mask_gather_load<mode>_uxtw)
4658 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4659 (@aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4660 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4661 (*aarch64_gather_load_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4662 (@aarch64_ldff1_gather<SVE_S:mode>, @aarch64_ldff1_gather<SVE_D:mode>)
4663 (*aarch64_ldff1_gather<mode>_sxtw, *aarch64_ldff1_gather<mode>_uxtw)
4664 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx4_WIDE:mode><VNx4_NARROW:mode>)
4665 (@aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>)
4666 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_sxtw)
4667 (*aarch64_ldff1_gather_<ANY_EXTEND:optab><VNx2_WIDE:mode><VNx2_NARROW:mode>_uxtw)
4668 (@aarch64_sve_prefetch<mode>): New patterns.
4669 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx4SI_ONLY:mode>)
4670 (@aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>)
4671 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_sxtw)
4672 (*aarch64_sve_gather_prefetch<SVE_I:mode><VNx2DI_ONLY:mode>_uxtw)
4673 (@aarch64_store_trunc<VNx8_NARROW:mode><VNx8_WIDE:mode>)
4674 (@aarch64_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4675 (@aarch64_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4676 (@aarch64_stnt1<mode>): New patterns.
4677 (scatter_store<mode>): Use aarch64_sve_gather_offset_<Vesize> for
4678 the scalar part of the address.
4679 (mask_scatter_store<SVE_S:mode>): Use aarch64_sve_gather_offset_w for
4680 the scalar part of the addresse and add an alternative for handling
4682 (mask_scatter_store<SVE_D:mode>): Likewise aarch64_sve_gather_offset_d.
4683 (*mask_scatter_store<mode>_sxtw, *mask_scatter_store<mode>_uxtw)
4684 (@aarch64_scatter_store_trunc<VNx4_NARROW:mode><VNx4_WIDE:mode>)
4685 (@aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>)
4686 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_sxtw)
4687 (*aarch64_scatter_store_trunc<VNx2_NARROW:mode><VNx2_WIDE:mode>_uxtw):
4689 (vec_duplicate<mode>): Use QI as the mode of the input operand.
4690 (extract_last_<mode>): Generalize to...
4691 (@extract_<LAST:last_op>_<mode>): ...this.
4692 (*<SVE_INT_UNARY:optab><mode>2): Rename to...
4693 (@aarch64_pred_<SVE_INT_UNARY:optab><mode>): ...this.
4694 (@cond_<SVE_INT_UNARY:optab><mode>): New expander.
4695 (@aarch64_pred_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): New pattern.
4696 (@aarch64_cond_sxt<SVE_HSDI:mode><SVE_PARTIAL:mode>): Likewise.
4697 (@aarch64_pred_cnot<mode>, @cond_cnot<mode>): New expanders.
4698 (@aarch64_sve_<SVE_FP_UNARY_INT:optab><mode>): New pattern.
4699 (@aarch64_sve_<SVE_FP_UNARY:optab><mode>): Likewise.
4700 (*<SVE_COND_FP_UNARY:optab><mode>2): Rename to...
4701 (@aarch64_pred_<SVE_COND_FP_UNARY:optab><mode>): ...this.
4702 (@cond_<SVE_COND_FP_UNARY:optab><mode>): New expander.
4703 (*<SVE_INT_BINARY_IMM:optab><mode>3): Rename to...
4704 (@aarch64_pred_<SVE_INT_BINARY_IMM:optab><mode>): ...this.
4705 (@aarch64_adr<mode>, *aarch64_adr_sxtw): New patterns.
4706 (*aarch64_adr_uxtw_unspec): Likewise.
4707 (*aarch64_adr_uxtw): Rename to...
4708 (*aarch64_adr_uxtw_and): ...this.
4709 (@aarch64_adr<mode>_shift): New expander.
4710 (*aarch64_adr_shift_sxtw): New pattern.
4711 (aarch64_<su>abd<mode>_3): Rename to...
4712 (@aarch64_pred_<su>abd<mode>): ...this.
4713 (<su>abd<mode>_3): Update accordingly.
4714 (@aarch64_cond_<su>abd<mode>): New expander.
4715 (@aarch64_<SBINQOPS:su_optab><optab><mode>): New pattern.
4716 (@aarch64_<UBINQOPS:su_optab><optab><mode>): Likewise.
4717 (*<su>mul<mode>3_highpart): Rename to...
4718 (@aarch64_pred_<optab><mode>): ...this.
4719 (@cond_<MUL_HIGHPART:optab><mode>): New expander.
4720 (*cond_<MUL_HIGHPART:optab><mode>_2): New pattern.
4721 (*cond_<MUL_HIGHPART:optab><mode>_z): Likewise.
4722 (*<SVE_INT_BINARY_SD:optab><mode>3): Rename to...
4723 (@aarch64_pred_<SVE_INT_BINARY_SD:optab><mode>): ...this.
4724 (cond_<SVE_INT_BINARY_SD:optab><mode>): Add a "@" marker.
4725 (@aarch64_bic<mode>, @cond_bic<mode>): New expanders.
4726 (*v<ASHIFT:optab><mode>3): Rename to...
4727 (@aarch64_pred_<ASHIFT:optab><mode>): ...this.
4728 (@aarch64_sve_<SVE_SHIFT_WIDE:sve_int_op><mode>): New pattern.
4729 (@cond_<SVE_SHIFT_WIDE:sve_int_op><mode>): New expander.
4730 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_m): New pattern.
4731 (*cond_<SVE_SHIFT_WIDE:sve_int_op><mode>_z): Likewise.
4732 (@cond_asrd<mode>): New expander.
4733 (*cond_asrd<mode>_2, *cond_asrd<mode>_z): New patterns.
4734 (sdiv_pow2<mode>3): Expand to *cond_asrd<mode>_2.
4735 (*sdiv_pow2<mode>3): Delete.
4736 (@cond_<SVE_COND_FP_BINARY_INT:optab><mode>): New expander.
4737 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_2): New pattern.
4738 (*cond_<SVE_COND_FP_BINARY_INT:optab><mode>_any): Likewise.
4739 (@aarch64_sve_<SVE_FP_BINARY:optab><mode>): New pattern.
4740 (@aarch64_sve_<SVE_FP_BINARY_INT:optab><mode>): Likewise.
4741 (*<SVE_COND_FP_BINARY_REG:optab><mode>3): Rename to...
4742 (@aarch64_pred_<SVE_COND_FP_BINARY_REG:optab><mode>): ...this.
4743 (@aarch64_pred_<SVE_COND_FP_BINARY_INT:optab><mode>): New pattern.
4744 (cond_<SVE_COND_FP_BINARY:optab><mode>): Add a "@" marker.
4745 (*add<SVE_F:mode>3): Rename to...
4746 (@aarch64_pred_add<SVE_F:mode>): ...this and add alternatives
4748 (@aarch64_pred_<SVE_COND_FCADD:optab><mode>): New pattern.
4749 (@cond_<SVE_COND_FCADD:optab><mode>): New expander.
4750 (*cond_<SVE_COND_FCADD:optab><mode>_2): New pattern.
4751 (*cond_<SVE_COND_FCADD:optab><mode>_any): Likewise.
4752 (*sub<SVE_F:mode>3): Rename to...
4753 (@aarch64_pred_sub<SVE_F:mode>): ...this and add alternatives
4755 (@aarch64_pred_abd<SVE_F:mode>): New expander.
4756 (*fabd<SVE_F:mode>3): Rename to...
4757 (*aarch64_pred_abd<SVE_F:mode>): ...this.
4758 (@aarch64_cond_abd<SVE_F:mode>): New expander.
4759 (*mul<SVE_F:mode>3): Rename to...
4760 (@aarch64_pred_<SVE_F:optab><mode>): ...this and add alternatives
4762 (@aarch64_mul_lane_<SVE_F:mode>): New pattern.
4763 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><mode>3): Rename and generalize
4765 (@aarch64_pred_<SVE_COND_FP_MAXMIN:optab><mode>): ...this.
4766 (*<LOGICAL:optab><PRED_ALL:mode>3_ptest): New pattern.
4767 (*<nlogical><PRED_ALL:mode>3): Rename to...
4768 (aarch64_pred_<nlogical><PRED_ALL:mode>_z): ...this.
4769 (*<nlogical><PRED_ALL:mode>3_cc): New pattern.
4770 (*<nlogical><PRED_ALL:mode>3_ptest): Likewise.
4771 (*<logical_nn><PRED_ALL:mode>3): Rename to...
4772 (aarch64_pred_<logical_nn><mode>_z): ...this.
4773 (*<logical_nn><PRED_ALL:mode>3_cc): New pattern.
4774 (*<logical_nn><PRED_ALL:mode>3_ptest): Likewise.
4775 (*fma<SVE_I:mode>4): Rename to...
4776 (@aarch64_pred_fma<SVE_I:mode>): ...this.
4777 (*fnma<SVE_I:mode>4): Rename to...
4778 (@aarch64_pred_fnma<SVE_I:mode>): ...this.
4779 (@aarch64_<sur>dot_prod_lane<vsi2qi>): New pattern.
4780 (*<SVE_FP_TERNARY:optab><mode>4): Rename to...
4781 (@aarch64_pred_<SVE_FP_TERNARY:optab><mode>): ...this.
4782 (cond_<SVE_FP_TERNARY:optab><mode>): Add a "@" marker.
4783 (@aarch64_<SVE_FP_TERNARY_LANE:optab>_lane_<mode>): New pattern.
4784 (@aarch64_pred_<SVE_COND_FCMLA:optab><mode>): Likewise.
4785 (@cond_<SVE_COND_FCMLA:optab><mode>): New expander.
4786 (*cond_<SVE_COND_FCMLA:optab><mode>_4): New pattern.
4787 (*cond_<SVE_COND_FCMLA:optab><mode>_any): Likewise.
4788 (@aarch64_<FCMLA:optab>_lane_<mode>): Likewise.
4789 (@aarch64_sve_tmad<mode>): Likewise.
4790 (vcond_mask_<SVE_ALL:mode><vpred>): Add a "@" marker.
4791 (*aarch64_sel_dup<mode>): Rename to...
4792 (@aarch64_sel_dup<mode>): ...this.
4793 (@aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide): New pattern.
4794 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_cc): Likewise.
4795 (*aarch64_pred_cmp<cmp_op><SVE_I:mode>_wide_ptest): Likewise.
4796 (@while_ult<GPI:mode><PRED_ALL:mode>): Generalize to...
4797 (@while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>): ...this.
4798 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Generalize to.
4799 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_cc): ...this.
4800 (*while_<while_optab_cmp><GPI:mode><PRED_ALL:mode>_ptest): New pattern.
4801 (*fcm<cmp_op><mode>): Rename to...
4802 (@aarch64_pred_fcm<cmp_op><mode>): ...this. Make operand order
4803 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4804 (*fcmuo<mode>): Rename to...
4805 (@aarch64_pred_fcmuo<mode>): ...this. Make operand order
4806 match @aarch64_pred_cmp<cmp_op><SVE_I:mode>.
4807 (@aarch64_pred_fac<cmp_op><mode>): New expander.
4808 (@vcond_mask_<PRED_ALL:mode><mode>): New pattern.
4809 (fold_extract_last_<mode>): Generalize to...
4810 (@fold_extract_<last_op>_<mode>): ...this.
4811 (@aarch64_fold_extract_vector_<last_op>_<mode>): New pattern.
4812 (*reduc_plus_scal_<SVE_I:mode>): Replace with...
4813 (@aarch64_pred_reduc_<optab>_<mode>): ...this pattern, making the
4814 DImode result explicit.
4815 (reduc_plus_scal_<mode>): Update accordingly.
4816 (*reduc_<optab>_scal_<SVE_I:mode>): Rename to...
4817 (@aarch64_pred_reduc_<optab>_<SVE_I:mode>): ...this.
4818 (*reduc_<optab>_scal_<SVE_F:mode>): Rename to...
4819 (@aarch64_pred_reduc_<optab>_<SVE_F:mode>): ...this.
4820 (*aarch64_sve_tbl<mode>): Rename to...
4821 (@aarch64_sve_tbl<mode>): ...this.
4822 (@aarch64_sve_compact<mode>): New pattern.
4823 (*aarch64_sve_dup_lane<mode>): Rename to...
4824 (@aarch64_sve_dup_lane<mode>): ...this.
4825 (@aarch64_sve_dupq_lane<mode>): New pattern.
4826 (@aarch64_sve_splice<mode>): Likewise.
4827 (aarch64_sve_<perm_insn><mode>): Rename to...
4828 (@aarch64_sve_<perm_insn><mode>): ...this.
4829 (*aarch64_sve_ext<mode>): Rename to...
4830 (@aarch64_sve_ext<mode>): ...this.
4831 (aarch64_sve_<su>unpk<perm_hilo>_<SVE_BHSI:mode>): Add a "@" marker.
4832 (*aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): Rename
4834 (@aarch64_sve_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): ...this.
4835 (*aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4837 (@aarch64_sve_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
4839 (@cond_<optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>): New expander.
4840 (@cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): Likewise.
4841 (*cond_<optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>): New pattern.
4842 (*aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): Rename
4844 (@aarch64_sve_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): ...this.
4845 (aarch64_sve_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Add
4847 (@cond_<optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>): New expander.
4848 (@cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): Likewise.
4849 (*cond_<optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>): New
4851 (*aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): Rename to...
4852 (@aarch64_sve_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): ...this.
4853 (@cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New expander.
4854 (*cond_<optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>): New pattern.
4855 (aarch64_sve_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): Add a
4857 (@cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New expander.
4858 (*cond_<optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>): New pattern.
4859 (aarch64_sve_punpk<perm_hilo>_<mode>): Add a "@" marker.
4860 (@aarch64_brk<SVE_BRK_UNARY:brk_op>): New pattern.
4861 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_cc): Likewise.
4862 (*aarch64_brk<SVE_BRK_UNARY:brk_op>_ptest): Likewise.
4863 (@aarch64_brk<SVE_BRK_BINARY:brk_op>): Likewise.
4864 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_cc): Likewise.
4865 (*aarch64_brk<SVE_BRK_BINARY:brk_op>_ptest): Likewise.
4866 (@aarch64_sve_<SVE_PITER:sve_pred_op><mode>): Likewise.
4867 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_cc): Likewise.
4868 (*aarch64_sve_<SVE_PITER:sve_pred_op><mode>_ptest): Likewise.
4869 (aarch64_sve_cnt_pat): Likewise.
4870 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4871 (*aarch64_sve_incsi_pat): Likewise.
4872 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4873 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4874 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4875 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4876 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4877 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode>_pat): Likewise.
4878 (*aarch64_sve_decsi_pat): Likewise.
4879 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode>_pat): Likewise.
4880 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_pat): Likewise.
4881 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_pat): Likewise.
4882 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New expander.
4883 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_pat): New pattern.
4884 (@aarch64_pred_cntp<mode>): Likewise.
4885 (@aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4887 (*aarch64_sve_<ANY_PLUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4888 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4889 (@aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4891 (*aarch64_sve_<SAT_PLUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4893 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New expander.
4894 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4895 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New expander.
4896 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4897 (@aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New expander.
4898 (*aarch64_sve_<ANY_PLUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4899 (@aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp):
4901 (*aarch64_sve_<ANY_MINUS:inc_dec><DI_ONLY:mode><PRED_ALL:mode>_cntp)
4902 (*aarch64_incsi<PRED_ALL:mode>_cntp): New patterns.
4903 (@aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4905 (*aarch64_sve_<SAT_MINUS:inc_dec><SI_ONLY:mode><PRED_ALL:mode>_cntp):
4907 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New
4909 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx2DI_ONLY:mode>_cntp): New pattern.
4910 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New
4912 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx4SI_ONLY:mode>_cntp): New pattern.
4913 (@aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New
4915 (*aarch64_sve_<ANY_MINUS:inc_dec><VNx8HI_ONLY:mode>_cntp): New pattern.
4916 * config/aarch64/arm_sve.h: New file.
4917 * config/aarch64/aarch64-sve-builtins.h: Likewise.
4918 * config/aarch64/aarch64-sve-builtins.cc: Likewise.
4919 * config/aarch64/aarch64-sve-builtins.def: Likewise.
4920 * config/aarch64/aarch64-sve-builtins-base.h: Likewise.
4921 * config/aarch64/aarch64-sve-builtins-base.cc: Likewise.
4922 * config/aarch64/aarch64-sve-builtins-base.def: Likewise.
4923 * config/aarch64/aarch64-sve-builtins-functions.h: Likewise.
4924 * config/aarch64/aarch64-sve-builtins-shapes.h: Likewise.
4925 * config/aarch64/aarch64-sve-builtins-shapes.cc: Likewise.
4927 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4929 * config/aarch64/aarch64-sve.md (@aarch64_sve_rev<PRED_ALL:mode>):
4931 * config/aarch64/aarch64.c (aarch64_evpc_rev_global): Handle all
4934 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4936 * config/aarch64/aarch64.md (FFR_REGNUM, FFRT_REGNUM): New constants.
4937 * config/aarch64/aarch64.h (FIRST_PSEUDO_REGISTER): Bump to
4939 (FFR_REGS, PR_AND_FFR_REGS): New register classes.
4940 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for them.
4941 * config/aarch64/aarch64.c (pr_or_ffr_regnum_p): New function.
4942 (aarch64_hard_regno_nregs): Handle the new register classes.
4943 (aarch64_hard_regno_mode_ok): Likewise.
4944 (aarch64_regno_regclass): Likewise.
4945 (aarch64_class_max_nregs): Likewise.
4946 (aarch64_register_move_cost): Likewise.
4947 (aarch64_conditional_register_usage): Don't treat FFR and FFRT
4948 as general register_operands.
4950 2019-10-29 Martin Liska <mliska@suse.cz>
4952 * ggc-common.c: One can't subtract unsigned types
4953 in compare function.
4955 2019-10-29 Martin Liska <mliska@suse.cz>
4957 * cgraphunit.c (symbol_table::compile): Pass
4958 title as dump_memory_report argument.
4959 * toplev.c (dump_memory_report): New argument.
4960 (finalize): Pass new argument.
4961 * toplev.h (dump_memory_report): Add argument.
4963 2019-10-29 Martin Liska <mliska@suse.cz>
4965 * ggc-common.c: Move Leak to the first column.
4967 2019-10-29 Martin Liska <mliska@suse.cz>
4969 * cgraphunit.c (symbol_table::compile): Remove argument
4970 for dump_memory_report.
4971 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
4972 (compare_final): Remove in order to make report
4974 * ggc.h (dump_ggc_loc_statistics): Remove argument.
4975 * mem-stats.h (mem_alloc_description::get_list):
4977 (mem_alloc_description::dump): Likewise here.
4978 * toplev.c (dump_memory_report): Remove final
4980 (finalize): Likewise.
4981 * toplev.h (dump_memory_report): Remove argument.
4983 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4985 * config/aarch64/aarch64.c (aarch64_sve_cmp_immediate_p)
4986 (aarch64_simd_shift_imm_p): Accept scalars as well as vectors.
4987 * config/aarch64/predicates.md (aarch64_sve_cmp_vsc_immediate)
4988 (aarch64_sve_cmp_vsd_immediate): Accept "const_int", but don't
4991 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
4993 * coretypes.h (string_int_pair): New typedef.
4994 * langhooks-def.h (LANG_HOOKS_SIMULATE_ENUM_DECL): Define.
4995 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Include it.
4996 * langhooks.h (lang_hooks_for_types::simulate_enum_decl): New hook.
4998 2019-10-29 Richard Sandiford <richard.sandiford@arm.com>
5000 * langhooks.h (lang_hooks::simulate_builtin_function_decl): New hook.
5001 (simulate_builtin_function_decl): Declare.
5002 * langhooks-def.h (LANG_HOOKS_SIMULATE_BUILTIN_FUNCTION_DECL): Define.
5003 (LANG_HOOKS_INITIALIZER): Include it.
5004 * langhooks.c (add_builtin_function_common): Rename to...
5005 (build_builtin_function): ...this. Add a location parameter and use
5006 it instead of BUILTINS_LOCATION. Remove the hook parameter and return
5008 (add_builtin_function): Update accordingly, passing the returned
5009 decl to the lang hook.
5010 (add_builtin_function_ext_scope): Likewise
5011 (simulate_builtin_function_decl): New function.
5013 2019-10-29 Jakub Jelinek <jakub@redhat.com>
5015 * doc/install.texi (--enable-offload-targets): Fix up a typo in the
5016 example, use actual names of supported offload targets.
5019 * config/i386/sse.md (iptr): Revert 2019-10-27 change.
5021 2019-10-28 Martin Sebor <msebor@redhat.com>
5023 * tree-ssa-strlen.c (get_addr_stridx): Add argument and use it.
5024 (handle_store): Pass argument to get_addr_stridx.
5026 2019-10-28 Martin Sebor <msebor@redhat.com>
5028 PR tree-optimization/92226
5029 * tree-ssa-strlen.c (compare_nonzero_chars): Return -1 also when
5030 the offset is in the open range outlined by SI's length.
5032 2019-10-28 Martin Sebor <msebor@redhat.com>
5035 * doc/cpp.texi (__has_builtin): Document.
5036 * doc/extend.texi (__builtin_frob_return_addr): Correct spelling.
5038 2019-10-28 Mihailo Stojanovic <mistojanovic@wavecomp.com>
5041 * config/mips/mips.md (<u>mulditi3): Generate patterns for high
5042 doubleword and low doubleword result of multiplication on
5045 * config/mips/mips.c (DIRECT_BUILTIN_PURE): New macro. Add a
5046 pure qualifier to the built-in.
5047 (MSA_BUILTIN_PURE): New macro. Add a pure qualifier to the MSA
5049 (struct mips_builtin_description): Add is_pure flag.
5050 (mips_init_builtins): Mark built-in as pure if the flag in the
5051 corresponding mips_builtin_description struct is set.
5053 * config/mips/mips-msa.md (msa_insert_<msaftm_f>): Add an
5054 alternative which covers the floating-point input value. Also
5055 forbid the split of insert.d pattern for floating-point values.
5057 2019-10-28 Andrew Burgess <andrew.burgess@embecosm.com>
5059 * config.gcc: Add riscv-sr.o to extra_objs for riscv.
5060 * config/riscv/riscv-sr.c: New file.
5061 * config/riscv/riscv.c (riscv_reorg): New function.
5062 (TARGET_MACHINE_DEPENDENT_REORG): Define.
5063 * config/riscv/riscv.h (SIBCALL_REG_P): Define.
5064 (riscv_remove_unneeded_save_restore_calls): Declare.
5065 * config/riscv/t-riscv (riscv-sr.o): New build rule.
5067 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5069 PR tree-optimization/92163
5070 * tree-ssa-dse.c (delete_dead_or_redundant_assignment): New param
5071 need_eh_cleanup with default value NULL. Gate on need_eh_cleanup
5072 before calling bitmap_set_bit.
5073 (dse_optimize_redundant_stores): Pass global need_eh_cleanup to
5074 delete_dead_or_redundant_assignment.
5075 (dse_dom_walker::dse_optimize_stmt): Likewise.
5076 * tree-ssa-dse.h (delete_dead_or_redundant_assignment): Adjust prototype.
5078 2019-10-28 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5081 * tree-vect-stmts.c (vectorizable_condition): Support
5082 EXTRACT_LAST_REDUCTION with fully-masked loops.
5084 2019-10-28 Richard Biener <rguenther@suse.de>
5086 PR tree-optimization/92252
5087 * tree-vect-slp.c (vect_get_and_check_slp_defs): Adjust
5088 STMT_VINFO_REDUC_IDX when swapping operands.
5090 2019-10-28 Richard Biener <rguenther@suse.de>
5092 PR tree-optimization/92241
5093 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): When
5094 we failed to update the reduction index do not use the pattern
5095 stmts for the reduction chain.
5096 (vectorizable_reduction): When the reduction chain is corrupt,
5098 * tree-vect-patterns.c (vect_mark_pattern_stmts): Stop when we
5099 fail to update the reduction chain.
5101 2019-10-28 Richard Biener <rguenther@suse.de>
5103 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
5104 STMT_VINFO_REDUC_IDX from the actual stmt.
5105 (vect_transform_reduction): Likewise.
5106 (vectorizable_reduction): Compute the reduction chain length,
5107 do not recompute the reduction operand index. Remove no longer
5108 necessary restriction for condition reduction chains.
5110 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5113 * config/i386/sse.md (REDUC_SSE_SMINMAX_MODE): Use TARGET_SSE4_2
5114 condition for V2DImode.
5116 2019-10-28 Uroš Bizjak <ubizjak@gmail.com>
5118 * config/i386/sse.md (sse_cvtss2si<rex64namesuffix>_2):
5119 Remove %k operand modifier.
5120 (*vec_extractv2df_1_sse): Remove %q operand modifier.
5122 2019-10-28 Ilya Leoshkevich <iii@linux.ibm.com>
5124 PR rtl-optimization/92007
5125 * cfgcleanup.c (thread_jump): Add an assertion that we don't
5126 call it after reload if hot/cold partitioning has been done.
5127 (class pass_postreload_jump): Rename to
5128 pass_jump_after_combine.
5129 (make_pass_postreload_jump): Rename to
5130 make_pass_jump_after_combine.
5131 * passes.def(pass_postreload_jump): Move before reload, rename
5132 to pass_jump_after_combine.
5133 * tree-pass.h (make_pass_postreload_jump): Rename to
5134 make_pass_jump_after_combine.
5136 2019-10-25 Jan Hubicka <hubicka@ucw.cz>
5139 * ipa-fnsummary.c (ipa_merge_fn_summary_after_inlining): Check
5140 for missing EDGE_REF
5141 * ipa-prop.c (update_jump_functions_after_inlining): Likewise.
5143 2019-10-25 Jiufu Guo <guojiufu@linux.ibm.com>
5145 PR tree-optimization/88760
5146 * config/rs6000/rs6000-common.c (rs6000_option_optimization_table):
5147 Enable -funroll-loops for -O2 and above.
5148 * config/rs6000/rs6000.c (rs6000_option_override_internal): Set
5149 PARAM_MAX_UNROLL_TIMES to 2 and PARAM_MAX_UNROLLED_INSNS to 20, and
5150 do not turn on web and rngreg implicitly, if the unroller is not
5153 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5155 * ipa-prop.c (ipa_propagate_indirect_call_infos): Do not remove
5158 2019-10-27 Eric Botcazou <ebotcazou@adacore.com>
5160 * cgraph.c (cgraph_node::rtl_info): Fix cut&pasto in comment.
5161 * cgraph.h (cgraph_node::rtl_info): Likewise.
5163 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5165 * ipa-cp.c (propagate_constants_across_call): If args are not available
5166 just drop everything to varying.
5167 (find_aggregate_values_for_callers_subset): Watch for missing
5169 (find_more_scalar_values_for_callers_subs): Likewise.
5170 * ipa-prop.c (ipa_compute_jump_functions_for_edge,
5171 update_jump_functions_after_inlining, propagate_controlled_uses):
5172 Watch for missing summaries.
5173 (ipa_propagate_indirect_call_infos): Remove summary after propagation
5175 (ipa_write_node_info): Watch for missing summaries.
5176 (ipa_read_edge_info): Create new ref.
5177 (ipa_edge_args_sum_t): Add remove.
5178 (IPA_EDGE_REF_GET_CREATE): New macro.
5179 * ipa-fnsummary.c (evaluate_properties_for_edge): Watch for missing
5181 (remap_edge_change_prob): Likewise.
5183 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5185 * ipa-inline-transform.c (inline_call): update function summaries
5186 after expanidng thunk.
5188 2019-10-27 Jan Hubicka <hubicka@ucw.cz>
5190 * ipa-icf.c (sem_function::merge): Update function summaries.
5191 * ipa-prop.h (ipa_get_param): Do not sanity check for WPA.
5193 2019-10-27 Hongtao Liu <hongtao.liu@intel.com>
5195 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3,
5196 <sse>_vm<multdiv_mnemonic><mode>3): Remove <iptr> since
5197 operand already has scalar mode.
5198 (iptr): Remove SF/DF.
5200 2019-10-26 Segher Boessenkool <segher@kernel.crashing.org>
5203 * config/rs6000/rs6000-logue.c (rs6000_emit_allocate_stack): Don't add
5204 an immediate to r0; use r11 instead. Save and restore r11 to r0 around
5207 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5209 * config/i386/sse.md
5210 (<sse>_vm<plusminus_insn><mode>3<mask_scalar_name><round_scalar_name>,
5211 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name><round_scalar_name>,
5212 <sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>,
5213 <sse>_vm<code><mode>3<mask_scalar_name><round_saeonly_scalar_name>,
5214 <sse>_vmmaskcmp<mode>3):
5215 Change predicates from vector_operand to nonimmediate_operand,
5216 constraints xBm to xm, since scalar operations don't need
5217 memory address alignment.
5218 (avx512f_vmcmp<mode>3<round_saeonly_name>,
5219 avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Replace
5220 round_saeonly_nimm_predicate with
5221 round_saeonly_nimm_scalar_predicate.
5222 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
5223 fmai_vmfnmadd_<mode><round_name>,fmai_vmfnmsub_<mode><round_name>,
5224 *fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
5225 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>,
5226 avx512f_vmfmadd_<mode>_mask3<round_name>,
5227 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
5228 *avx512f_vmfmsub_<mode>_mask<round_name>,
5229 avx512f_vmfmsub_<mode>_mask3<round_name>,
5230 *avx512f_vmfmsub_<mode>_maskz_1<round_name>,
5231 *avx512f_vmfnmadd_<mode>_mask<round_name>,
5232 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
5233 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
5234 *avx512f_vmfnmsub_<mode>_mask<round_name>,
5235 *avx512f_vmfnmsub_<mode>_mask3<round_name>,
5236 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>,
5237 cvtusi2<ssescalarmodesuffix>32<round_name>,
5238 cvtusi2<ssescalarmodesuffix>64<round_name>, ): Replace
5239 round_nimm_predicate with round_nimm_scalr_predicate.
5240 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>,
5241 avx512f_sfixupimm<mode>_mask<round_saeonly_name>,
5242 avx512er_vmrcp28<mode><round_saeonly_name>,
5243 avx512er_vmrsqrt28<mode><round_saeonly_name>,
5244 ): Replace round_saeonly_nimm_predicate with
5245 round_saeonly_nimm_scalar_predicate.
5246 (avx512dq_vmfpclass<mode><mask_scalar_merge_name>): Replace
5247 vector_operand with nonimmediate_operand.
5248 * config/i386/subst.md (round_scalar_nimm_predicate,
5249 round_saeonly_scalar_nimm_predicate): Replace
5250 vector_operand with nonimmediate_operand.
5252 2019-10-26 Hongtao Liu <hongtao.liu@intel.com>
5255 * config/i386/i386.md (*rcpsf2_sse): Add
5256 avx_partial_xmm_update, prefer m constraint for TARGET_AVX.
5257 (*rsqrtsf2_sse): Ditto.
5258 (*sqrt<mode>2_sse): Ditto.
5259 (sse4_1_round<mode>2): separate constraint vm, add
5260 avx_partail_xmm_update, prefer m constraint for TARGET_AVX.
5261 * config/i386/sse.md (*sse_vmrcpv4sf2"): New define_insn used
5263 (*<sse>_vmsqrt<mode>2<mask_scalar_name><round_scalar_name>*):
5265 (*sse_vmrsqrtv4sf2): Ditto.
5266 (*avx512f_rndscale<mode><round_saeonly_name>): Ditto.
5267 (*sse4_1_round<ssescalarmodesuffix>): Ditto.
5268 (sse4_1_round<ssescalarmodesuffix>): Add m constraint and
5269 <iptr> pointer size modifier since vround support memory operand.
5271 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
5274 * config/avr/gen-avr-mmcu-specs.c (str_prefix_p): Remove unused
5277 2019-10-25 Cesar Philippidis <cesar@codesourcery.com>
5278 Tobias Burnus <tobias@codesourcery.com>
5280 * gimplify.c (oacc_default_clause): Privatize fortran common blocks.
5281 (omp_notice_variable): Defer the expansion of DECL_VALUE_EXPR for
5284 2019-10-25 Richard Biener <rguenther@suse.de>
5286 PR tree-optimization/92222
5287 * tree-vect-slp.c (_slp_oprnd_info::first_pattern): Remove.
5288 (_slp_oprnd_info::second_pattern): Likewise.
5289 (_slp_oprnd_info::any_pattern): New.
5290 (vect_create_oprnd_info): Adjust.
5291 (vect_get_and_check_slp_defs): Compute whether any stmt is
5293 (vect_build_slp_tree_2): Avoid building up a node from scalars
5294 if any of the operand defs, not just the first, is in a pattern.
5296 2019-10-25 Richard Biener <rguenther@suse.de>
5298 * tree-vect-slp.c (vect_get_and_check_slp_defs): Only fail
5299 swapping if we actually have to modify the IL on a shared stmt.
5300 (vect_build_slp_tree_2): Never fail swapping on shared stmts
5301 because we no longer modify the IL.
5303 2019-10-25 Martin Liska <mliska@suse.cz>
5305 * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'.
5307 2019-10-25 Richard Sandiford <richard.sandiford@arm.com>
5309 * tree-vect-loop.c (vectorizable_reduction): Restrict the
5310 LOOP_VINFO_CAN_FULLY_MASK_P handling to cases that will be
5311 handled by vect_transform_reduction. Allow fully-masked loops
5312 to be used with reduction chains.
5313 * tree-vect-stmts.c (vectorizable_operation): Handle reduction
5314 operations in fully-masked loops.
5315 (vectorizable_condition): Reject EXTRACT_LAST_REDUCTION
5316 operations in fully-masked loops.
5318 2019-10-25 Richard Biener <rguenther@suse.de>
5320 * tree-vect-loop.c (vectorizable_reduction): Verify
5321 STMT_VINFO_REDUC_IDX on the to be vectorized stmts is set up
5323 * tree-vect-patterns.c (vect_mark_pattern_stmts): Transfer
5324 STMT_VINFO_REDUC_IDX from the original stmts to the pattern
5327 2019-10-24 Jakub Jelinek <jakub@redhat.com>
5329 * gimplify.h (omp_construct_selector_matches): Declare.
5330 * gimplify.c (struct gimplify_omp_ctx): Add code member.
5331 (gimplify_call_expr): Call omp_resolve_declare_variant and remap
5332 called function if needed for flag_openmp.
5333 (gimplify_scan_omp_clauses): Set ctx->code.
5334 (omp_construct_selector_matches): New function.
5335 * omp-general.h (omp_constructor_traits_to_codes,
5336 omp_context_selector_matches, omp_resolve_declare_variant): Declare.
5337 * omp-general.c (omp_constructor_traits_to_codes,
5338 omp_context_selector_matches, omp_resolve_declare_variant): New
5341 * config/arc/arc.c (hwloop_optimize): Add missing space in string
5343 * config/rx/rx.c (rx_print_operand): Likewise.
5344 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5345 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Likewise.
5346 * ipa-sra.c (create_parameter_descriptors, process_scan_results):
5348 * genemit.c (emit_c_code): Likewise.
5349 * plugin.c (try_init_one_plugin): Likewise. Formatting fix.
5351 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5353 * symbols-summary.h (fast_function_summary<T *, V>::release,
5354 fast_call_summary<T *, V>::release): Free m_vector.
5356 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5358 * cgraphunit.c (symbol_table::process_new_functions): Call
5359 ipa_free_size_summary.
5360 * ipa-cp.c (ipcp_cloning_candidate_p): Update.
5361 (devirtualization_time_bonus): Update.
5362 (ipcp_propagate_stage): Update.
5363 * ipa-fnsummary.c (ipa_size_summaries): New.
5364 (ipa_fn_summary_alloc): Alloc size summary.
5365 (dump_ipa_call_summary): Update.
5366 (ipa_dump_fn_summary): Update.
5367 (analyze_function_body): Update.
5368 (compute_fn_summary): Likewise.
5369 (ipa_get_stack_frame_offset): New function.
5370 (inline_update_callee_summaries): Do not update frame offsets.
5371 (ipa_merge_fn_summary_after_inlining): Update frame offsets here;
5372 remove call and function summary.
5373 (ipa_update_overall_fn_summary): Update.
5374 (inline_read_section): Update.
5375 (ipa_fn_summary_write): Update.
5376 (ipa_free_fn_summary): Do not remove summaries.
5377 (ipa_free_size_summary): New.
5378 (release summary pass): Also run at WPA.
5379 * ipa-fnsummary.h (ipa_size_summary): Declare.
5380 (ipa_fn_summary): Remove size, self_size, stack_frame_offset,
5381 estimated_self_stack_size.
5382 (ipa_size_summary_t): New type.
5383 (ipa_size_summaries): Declare.
5384 (ipa_free_size_summary): Declare.
5385 (ipa_get_stack_frame_offset): Declare.
5386 * ipa-icf.c (sem_function::merge): Update.
5387 * ipa-inline-analysis.c (estimate_size_after_inlining): Update.
5388 (estimate_growth): Update.
5389 (growth_likely_positive): Update.
5390 (clone_inlined_nodes): Update.
5391 (inline_call): Update.
5392 * ipa-inline.c (caller_growth_limits): Update.
5393 (edge_badness): Update.
5394 (recursive_inlining): Update.
5395 (inline_small_functions): Update.
5396 (inline_to_all_callers_1): Update.
5397 * ipa-prop.h (ipa_edge_args_sum_t): Update comment.
5399 2019-10-24 Segher Boessenkool <segher@kernel.crashing.org>
5401 * config/rs6000/altivec.md (altivec_vavgu<VI_char>): Rename to...
5402 (uavg<mode>3_ceil): ... This.
5403 (altivec_vavgs<VI_char>): Rename to...
5404 (avg<mode>3_ceil): ... This.
5405 * config/rs6000/rs6000-builtin.def (VAVGUB, VAVGSB, VAVGUH, VAVGSH,
5406 VAVGUW, VAVGSW): Adjust.
5408 2019-10-24 Nathan Sidwell <nathan@acm.org>
5410 * dumpfile.c (dump_begin): Reorder decls to use RAII.
5412 2019-10-24 Martin Liska <mliska@suse.cz>
5414 * symbol-summary.h (gt_pch_nx): Mark all functions
5415 with gcc_unreachable as we do not expect to be called.
5417 2019-10-24 Richard Biener <rguenther@suse.de>
5419 * tree-vect-slp.c (vect_get_and_check_slp_defs): For reduction
5420 chains try harder with operand swapping and instead of
5421 putting a shifted chain into the reduction operands put
5422 a repetition of the final reduction op there as if we'd
5423 reassociate the expression.
5425 2019-10-24 Jan Hubicka <hubicka@ucw.cz>
5427 * ipa-reference.c (ipa_reference_optimization_summary_d): Rename
5428 statics_not_read and statics_not_written to statics_read and
5429 statics_written respectively.
5430 (no_module_statics): New static var.
5431 (ipa_reference_get_not_read_global): Rename to ...
5432 (ipa_reference_get_read_global): ... this.
5433 (ipa_reference_get_not_written_global): Rename to ...
5434 (ipa_reference_get_written_global): ... this.
5435 (dump_static_vars_set_to_file): Dump no_module_statics.
5436 (copy_static_var_set): Add for propagation parameter.
5437 (ipa_init): Initialize no_module_statics.
5438 (ipa_ref_opt_summary_t::duplicate): Update.
5439 (ipa_ref_opt_summary_t::remove): Update.
5440 (propagate): Update.
5441 (write_node_summary_p): Look correctly for bitmap differences.
5442 (ipa_reference_write_optimization_summary): Update.
5443 (ipa_reference_read_optimization_summary): Update.
5445 (ipa_reference_get_not_read_global): Rename to ...
5446 (ipa_reference_get_read_global): ... this.
5447 (ipa_reference_get_not_written_global): Rename to ...
5448 (ipa_reference_get_written_global): ... this.
5449 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Update.
5450 (call_may_clobber_ref_p_1): Update.
5452 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5454 * config/msp430/msp430.c (msp430_hard_regno_nregs_has_padding): Remove
5456 (msp430_hard_regno_nregs_with_padding): Remove.
5458 2019-10-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5460 * config/msp430/constraints.md: Allow post_inc for "Ya" constraint.
5461 * config/msp430/msp430.md (430x_shift_left): Use RLAM when the constant
5462 shift amount is between 1 and 4.
5463 (430x_arithmetic_shift_right): Use RRAM when the constant shift amount
5466 2019-10-24 Richard Biener <rguenther@suse.de>
5468 PR tree-optimization/92205
5469 * tree-vect-loop.c (vectorizable_reduction): Restrict
5470 search for alternate vectype_in to lane-reducing patterns
5473 2019-10-24 Richard Biener <rguenther@suse.de>
5475 PR tree-optimization/92203
5476 * treee-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt):
5477 Skip eliminating conversion stmts inserted by insertion.
5479 2019-10-24 Ilya Leoshkevich <iii@linux.ibm.com>
5481 * config/s390/s390.c (s390_get_thread_pointer): Use
5482 gen_get_thread_pointer.
5483 (s390_expand_split_stack_prologue): Likewise.
5484 * config/s390/s390.md (UNSPEC_GET_TP): New UNSPEC.
5485 (*get_tp_31): New 31-bit splitter for UNSPEC_GET_TP.
5486 (*get_tp_64): New 64-bit splitter for UNSPEC_GET_TP.
5487 (get_thread_pointer<mode>): Use UNSPEC_GET_TP, use
5490 2019-10-24 Richard Biener <rguenther@suse.de>
5492 * tree-vect-slp.c (vect_analyze_slp): When reduction group
5493 SLP discovery fails try to handle the reduction as part
5494 of SLP reduction discovery.
5496 2019-10-23 Michael Meissner <meissner@linux.ibm.com>
5498 * config/rs6000/rs6000-protos.h (rs6000_adjust_insn_length): New
5500 * config/rs6000/rs6000.c (rs6000_insn_cost): Use num_insns insn
5501 attribute if it exists, rather than the insn size. If we use the
5502 insn size, adjust the size to remove the extra size that prefixed
5504 (rs6000_adjust_insn_length): New function.
5505 * config/rs6000/rs6000.h (ADJUST_INSN_LENGTH): New target hook to
5506 update the instruction sized if prefixed instructions are used.
5507 * config/rs6000/rs6000.md (prefixed_length attribute): Delete.
5508 (non_prefixed_length attribute): Delete.
5509 (num_insns attribute): New insn attribute to return the number of
5511 (max_prefixed_insns attribute): New insn attribute to return the
5512 maximum number of prefixed instructions in an insn.
5513 (length attribute): Do not adjust for prefix instructions here,
5514 punt to ADJUST_INSN_LENGTH.
5515 (mov<mode>_64bit): Set max_prefixed_insns and num_insns.
5516 (movtd_64bit_nodm): Set max_prefixed_insns and num_insns.
5517 (mov<mode>_ppc64): Set max_prefixed_insns and num_insns.
5518 * config/rs6000/vsx.md: (vsx_mov<mode>_64bit): Set
5519 max_prefixed_insns and num_insns.
5521 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Reformat.
5522 (movtd_64bit_nodm): Reformat.
5523 (mov<mode>_32bit): Reformat.
5524 (mov<mode>_softfloat): Reformat.
5525 (FMOVE128_GPR splitter): Reformat.
5526 (DIFD splitter): Reformat.
5527 (TI2 splitter): Reformat.
5528 * config/rs6000/predicates.md (lwa_operand): If the bottom two
5529 bits of the offset for the memory address are non-zero, use PLWA
5530 if prefixed instructions are available.
5532 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5534 * lto-streamer-out.c (cmp_symbol_files): Watch for overflow.
5536 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5538 * ipa-reference.c (varpool_removal_hook, ipa_reference_c_finalize): Fix
5541 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5543 * lto-streamer-out.c (output_constructor): Push CTORS_OUT timevar.
5544 (cmp_symbol_files): New.
5545 (lto_output): Copy sections in file order.
5546 * lto-streamer.h (lto_file_decl_data): Add field order.
5548 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5550 * ipa-reference.h (ipa_reference_var_uid): Move offline.
5551 * ipa-reference.c (reference_vars_map_t): new type.
5552 (ipa_reference_vars_map, ipa_reference_vars_uids): New static vars.
5553 (ipa_reference_var_uid): Implement.
5554 (varpool_node_hooks): New static var.
5555 (varpool_removal_hook): New function.
5556 (is_improper): Do not check bitmap for id==-1
5557 (get_static_name): Update.
5558 (ipa_init): Initialize new datastructures.
5559 (analyze_function): Do not recompute ids.
5560 (propagate): Free reference_vars_to_consider.
5561 (stream_out_bitmap): Update.
5562 (ipa_reference_read_optimization_summary): Update.
5564 2019-10-23 qing zhao <qing.zhao@oracle.com>
5566 PR gcov-profile/91971
5567 * coverage.c (coverage_init): Mangle the full path of filename when
5568 filename is a absolute path.
5570 2019-10-23 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5572 * config/msp430/msp430-protos.h (msp430_has_hwmult): New.
5573 * config/msp430/msp430.c (msp430_no_hwmult): Remove.
5574 (msp430_has_hwmult): New.
5575 (msp430_output_labelref):
5576 s/msp430_hwmult_type != MSP430_HWMULT_NONE/msp430_has_hwmult ()/
5577 * config/msp430/msp430.md (mulhisi3): Likewise.
5578 (umulhisi3): Likewise.
5579 (mulsidi3): Likewise.
5580 (umulsidi3): Likewise.
5582 2019-10-23 Jan Hubicka <hubicka@ucw.cz>
5585 * params.def (inline-heuristics-hint-percent): Set to 600.
5587 2019-10-23 Richard Biener <rguenther@suse.de>
5589 PR tree-optimization/65930
5590 * tree-vect-loop.c (check_reduction_path): Allow conversions
5591 that only change the sign.
5592 (vectorizable_reduction): Relax latch def stmts we handle further.
5594 2019-10-23 Jakub Jelinek <jakub@redhat.com>
5597 * tree-ssa-loop-ivopts.c (get_debug_computation_at): New function.
5598 (remove_unused_ivs): Use it instead of get_computation_at. When
5599 choosing best candidate, only consider candidates where
5600 get_debug_computation_at actually returns non-NULL.
5602 2019-10-23 Eric Botcazou <ebotcazou@adacore.com>
5604 PR tree-optimization/92131
5605 * tree-vrp.c (extract_range_from_plus_minus_expr): If the resulting
5606 range would be symbolic, drop to varying for any explicit overflow
5607 in the constant part or if neither range is a singleton.
5609 2019-10-23 Martin Liska <mliska@suse.cz>
5612 * fibonacci_heap.h (fibonacci_node::fibonacci_node):
5615 2019-10-23 Richard Sandiford <richard.sandiford@arm.com>
5617 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use
5618 int_mode_for_mode rather than mode_for_int_vector for scalars.
5620 2019-10-23 Richard Biener <rguenther@suse.de>
5622 PR tree-optimization/92179
5623 * tree-vect-stmts.c (vectorizable_shift): For shift args
5624 that are all the same remove type restriction in the SLP case.
5625 Adjust SLP code to handle converting of the shift arg to
5626 only apply in case the modes are different.
5628 2019-10-23 Martin Liska <mliska@suse.cz>
5631 * ipa-inline.c (recursive_inlining): Do not print
5632 when curr->count is not initialized.
5634 2019-10-23 Richard Biener <rguenther@suse.de>
5636 * tree-vect-slp.c (vect_build_slp_tree_2): Do not build
5637 op from scalars in case there's a constant operand in its
5640 2019-10-23 Iain Sandoe <iain@sandoe.co.uk>
5642 * config/rs6000/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Guard
5643 against out of range max skip or log values.
5645 2019-10-22 Giuliano Belinassi <giuliano.belinassi@usp.br>
5647 * cgraph.c (dump_graphviz): Change name to dump_name
5649 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5651 * config/arm/arm.md (rsbsi_carryin_reg): New pattern.
5652 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
5653 subtraction from a carry operation.
5655 2019-10-22 Richard Earnshaw <rearnsha@arm.com>
5657 * config/arm/predicates.md (arm_borrow_operation): Handle CC_ADCmode.
5659 2019-10-22 Richard Biener <rguenther@suse.de>
5661 PR tree-optimization/92173
5662 * tree-vect-loop.c (vectorizable_reduction): If
5663 vect_transform_reduction cannot handle code-generation try without
5664 the single-def-use-cycle optimization. Pass optab_vector to
5665 optab_for_tree_code to get vector shifts as that's what we'd
5668 2019-10-22 Michael Matz <matz@suse.de>
5671 * gimple-loop-jam.c (any_access_function_variant_p): New function.
5672 (adjust_unroll_factor): Use it to constrain safety, new parameter.
5673 (tree_loop_unroll_and_jam): Adjust call and profitable unroll factor.
5675 2019-10-22 Richard Biener <rguenther@suse.de>
5677 PR tree-optimization/92173
5678 * tree-vect-loop.c (vectorizable_reduction): If
5679 vect_transform_reduction cannot handle code-generation try without
5680 the single-def-use-cycle optimization. Pass optab_vector to
5681 optab_for_tree_code to get vector shifts as that's what we'd
5684 2019-10-22 Martin Liska <mliska@suse.cz>
5686 * diagnostic-format-json.cc (json_from_expanded_location):
5687 Use json::integer_number.
5688 * gcov.c (output_intermediate_json_line): Use new
5689 json::integer_number.
5690 (output_json_intermediate_file): Likewise.
5691 * json.cc (number::print): Move to ...
5692 (float_number::print): ... this.
5693 (integer_number::print): New.
5694 (test_writing_numbers): Move to ...
5695 (test_writing_float_numbers): ... this.
5696 (test_writing_integer_numbers): New.
5697 (json_cc_tests): Register test_writing_integer_numbers.
5698 * json.h (class value): Add forward declaration
5699 for float_number and integer_number.
5700 (enum kind): Add JSON_INTEGER and JSON_FLOAT.
5701 (class number): Move to ...
5702 (class float_number): ... this.
5703 (class integer_number): New.
5704 * optinfo-emit-json.cc (optrecord_json_writer::impl_location_to_json):
5705 Use json::integer_number.
5706 (optrecord_json_writer::location_to_json): Likewise.
5707 (optrecord_json_writer::profile_count_to_json): Likewise.
5708 (optrecord_json_writer::pass_to_json): Likewise.
5710 2019-10-22 Richard Sandiford <richard.sandiford@arm.com>
5712 * tree-vect-slp.c (vect_slp_bb_region): Check whether
5713 autodetected_vector_size rather than vector_size is zero.
5714 * tree-vect-loop.c (vect_analyze_loop): Likewise.
5715 Set autodetected_vector_size immediately after calling
5716 vect_analyze_loop_2. Check for a fatal error before advancing
5719 2019-10-21 Jason Merrill <jason@redhat.com>
5721 * lock-and-run.sh: Check for process existence rather than timeout.
5723 2019-10-21 Jozef Lawrynowicz <jozef.l@mittosystems.com>
5725 * expr.c (expand_expr_real_2): Don't widen constant op1 when expanding
5726 widening multiplication.
5728 2019-10-21 Richard Earnshaw <rearnsha@arm.com>
5730 * config/arm/iterators.md (t2_binop0): Fix typo in comment.
5731 * config/arm/arm.md (addsi3_carryin_shift): Simplify selection of the
5733 (subsi3_carryin_shift): Separate into register and constant controlled
5734 alternatives. Use shift_amount_operand for operand 4. Set shift
5735 attribute and simplify type attribute.
5736 (subsi3_carryin_shift_alt): Likewise.
5737 (rsbsi3_carryin_shift): Likewise.
5738 (rsbsi3_carryin_shift_alt): Likewise.
5739 (andsi_not_shiftsi_si): Enable for TARGET_32BIT. Separate constant
5740 and register controlled shifts into distinct alternatives.
5741 (andsi_not_shiftsi_si_scc_no_reuse): Likewise.
5742 (andsi_not_shiftsi_si_scc): Likewise.
5743 (arm_cmpsi_negshiftsi_si): Likewise.
5744 (not_shiftsi): Remove redundant M constraint from alternative 1.
5745 (not_shiftsi_compare0): Likewise.
5746 (arm_cmpsi_insn): Remove redundant alternative 2.
5747 (cmpsi_shift_swp): Likewise.
5748 (sub_shiftsi): Likewise.
5749 (sub_shiftsi_compare0_scratch): Likewise.
5750 * config/arm/thumb2.md (thumb_andsi_not_shiftsi_si): Delete pattern.
5751 (thumb2_cmpsi_neg_shiftsi): Likewise.
5753 2019-10-21 Richard Biener <rguenther@suse.de>
5755 PR tree-optimization/92162
5756 * tree-vect-loop.c (vect_create_epilog_for_reduction): Lookup
5757 STMT_VINFO_REDUC_IDX in reduc_info.
5758 * tree-vect-stmts.c (vectorizable_condition): Likewise.
5760 2019-10-21 Richard Biener <rguenther@suse.de>
5762 * tree-vectorizer.h (_slp_tree::ops): New member.
5763 (SLP_TREE_SCALAR_OPS): New.
5764 (vect_get_slp_defs): Adjust prototype.
5765 * tree-vect-slp.c (vect_free_slp_tree): Release
5766 SLP_TREE_SCALAR_OPS.
5767 (vect_create_new_slp_node): Initialize it. New overload for
5768 initializing by an operands array.
5769 (_slp_oprnd_info::ops): New member.
5770 (vect_create_oprnd_info): Initialize it.
5771 (vect_free_oprnd_info): Release it.
5772 (vect_get_and_check_slp_defs): Populate the operands array.
5773 Do not swap operands in the IL when not necessary.
5774 (vect_build_slp_tree_2): Build SLP nodes for invariant operands.
5775 Record SLP_TREE_SCALAR_OPS for all invariant nodes. Also
5776 swap operands in the operands array. Do not swap operands in
5778 (vect_slp_rearrange_stmts): Re-arrange SLP_TREE_SCALAR_OPS as well.
5779 (vect_gather_slp_loads): Fix.
5780 (vect_detect_hybrid_slp_stmts): Likewise.
5781 (vect_slp_analyze_node_operations_1): Search for a internal
5782 def child for computing reduction SLP_TREE_NUMBER_OF_VEC_STMTS.
5783 (vect_slp_analyze_node_operations): Skip ops-only stmts for
5784 the def-type push/pop dance.
5785 (vect_get_constant_vectors): Compute number_of_vectors here.
5786 Use SLP_TREE_SCALAR_OPS and simplify greatly.
5787 (vect_get_slp_vect_defs): Use gimple_get_lhs also for PHIs.
5788 (vect_get_slp_defs): Simplify greatly.
5789 * tree-vect-loop.c (vectorize_fold_left_reduction): Simplify.
5790 (vect_transform_reduction): Likewise.
5791 * tree-vect-stmts.c (vect_get_vec_defs): Simplify.
5792 (vectorizable_call): Likewise.
5793 (vectorizable_operation): Likewise.
5794 (vectorizable_load): Likewise.
5795 (vectorizable_condition): Likewise.
5796 (vectorizable_comparison): Likewise.
5798 2019-10-21 Richard Biener <rguenther@suse.de>
5800 PR tree-optimization/92161
5801 * tree-vect-loop.c (vect_analyze_loop_2): Reset stmts def-type
5804 2019-10-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5806 * config/aarch64/aarch64.md (UNSPEC_RNDR, UNSPEC_RNDRRS): Define.
5807 (aarch64_rndr): New define_insn.
5808 (aarch64_rndrrs): Likewise.
5809 * config/aarch64/aarch64.h (AARCH64_ISA_RNG): Define.
5810 (TARGET_RNG): Likewise.
5811 * config/aarch64/aarch64.c (aarch64_expand_builtin): Use IGNORE
5813 * config/aarch64/aarch64-protos.h (aarch64_general_expand_builtin):
5814 Add fourth argument in prototype.
5815 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins):
5816 Add AARCH64_BUILTIN_RNG_RNDR, AARCH64_BUILTIN_RNG_RNDRRS.
5817 (aarch64_init_rng_builtins): Define.
5818 (aarch64_general_init_builtins): Call aarch64_init_rng_builtins.
5819 (aarch64_expand_rng_builtin): Define.
5820 (aarch64_general_expand_builtin): Use IGNORE argument, handle
5822 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5823 __ARM_FEATURE_RNG when TARGET_RNG.
5824 * config/aarch64/arm_acle.h (__rndr, __rndrrs): Define.
5826 2019-10-21 Andre Vieira <andre.simoesdiasvieira@arm.com>
5828 * tree-vect-stmts (ensure_base_align): Only change alignment if new
5829 alignment is more restrictive.
5831 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5833 * tree-vectorizer.h (vec_info::vector_size): New member variable.
5834 (vect_update_max_nunits): Update comment.
5835 (current_vector_size): Delete.
5836 * tree-vect-stmts.c (current_vector_size): Likewise.
5837 (get_vectype_for_scalar_type): Use vec_info::vector_size instead
5838 of current_vector_size.
5839 (get_mask_type_for_scalar_type): Likewise.
5840 * tree-vectorizer.c (try_vectorize_loop_1): Likewise.
5841 * tree-vect-loop.c (vect_update_vf_for_slp): Likewise.
5842 (vect_analyze_loop, vect_halve_mask_nunits): Likewise.
5843 (vect_double_mask_nunits, vect_transform_loop): Likewise.
5844 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5845 (vect_make_slp_decision, vect_slp_bb_region): Likewise.
5847 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5849 * tree-vectorizer.h (vect_double_mask_nunits): Take a vec_info.
5850 * tree-vect-loop.c (vect_double_mask_nunits): Likewise.
5851 * tree-vect-stmts.c (supportable_narrowing_operation): Update call
5854 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5856 * tree-vectorizer.h (vect_halve_mask_nunits): Take a vec_info.
5857 * tree-vect-loop.c (vect_halve_mask_nunits): Likewise.
5858 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Update
5860 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
5862 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5864 * tree-vect-loop-manip.c (vect_maybe_permute_loop_masks): Take
5866 (vect_set_loop_condition_masked): Update call accordingly.
5868 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5870 * tree-vectorizer.h (supportable_narrowing_operation): Take a vec_info.
5871 * tree-vect-stmts.c (supportable_narrowing_operation): Likewise.
5872 (simple_integer_narrowing): Update call accordingly.
5873 (vectorizable_conversion): Likewise.
5875 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5877 * tree-vect-stmts.c (simple_integer_narrowing): Take a vec_info.
5878 (vectorizable_call): Update call accordingly.
5880 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5882 * tree-vectorizer.h (can_duplicate_and_interleave_p): Take a vec_info.
5883 * tree-vect-slp.c (can_duplicate_and_interleave_p): Likewise.
5884 (duplicate_and_interleave): Update call accordingly.
5885 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5887 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5889 * tree-vectorizer.h (duplicate_and_interleave): Take a vec_info.
5890 * tree-vect-slp.c (duplicate_and_interleave): Likewise.
5891 (vect_get_constant_vectors): Update call accordingly.
5892 * tree-vect-loop.c (get_initial_defs_for_reduction): Likewise.
5894 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5896 * tree-vectorizer.h (get_vectype_for_scalar_type): Take a vec_info.
5897 * tree-vect-stmts.c (get_vectype_for_scalar_type): Likewise.
5898 (vect_prologue_cost_for_slp_op): Update call accordingly.
5899 (vect_get_vec_def_for_operand, vect_get_gather_scatter_ops)
5900 (vect_get_strided_load_store_ops, vectorizable_simd_clone_call)
5901 (vect_supportable_shift, vect_is_simple_cond, vectorizable_comparison)
5902 (get_mask_type_for_scalar_type): Likewise.
5903 (vect_get_vector_types_for_stmt): Likewise.
5904 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
5905 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
5906 (get_initial_def_for_reduction, build_vect_cond_expr): Likewise.
5907 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Likewise.
5908 (vect_split_statement, vect_convert_input): Likewise.
5909 (vect_recog_widen_op_pattern, vect_recog_pow_pattern): Likewise.
5910 (vect_recog_over_widening_pattern, vect_recog_mulhs_pattern): Likewise.
5911 (vect_recog_average_pattern, vect_recog_cast_forwprop_pattern)
5912 (vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern)
5913 (vect_synth_mult_by_constant, vect_recog_mult_pattern): Likewise.
5914 (vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern)
5915 (check_bool_pattern, adjust_bool_pattern_cast, adjust_bool_pattern)
5916 (search_type_for_mask_1, vect_recog_bool_pattern): Likewise.
5917 (vect_recog_mask_conversion_pattern): Likewise.
5918 (vect_add_conversion_to_pattern): Likewise.
5919 (vect_recog_gather_scatter_pattern): Likewise.
5920 * tree-vect-slp.c (vect_build_slp_tree_2): Likewise.
5921 (vect_analyze_slp_instance, vect_get_constant_vectors): Likewise.
5923 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5925 * tree-vectorizer.h (get_mask_type_for_scalar_type): Take a vec_info.
5926 * tree-vect-stmts.c (get_mask_type_for_scalar_type): Likewise.
5927 (vect_check_load_store_mask): Update call accordingly.
5928 (vect_get_mask_type_for_stmt): Likewise.
5929 * tree-vect-patterns.c (check_bool_pattern): Likewise.
5930 (search_type_for_mask_1, vect_recog_mask_conversion_pattern): Likewise.
5931 (vect_convert_mask_for_vectype): Likewise.
5933 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5935 * tree-vect-patterns.c (vect_supportable_direct_optab_p): Take
5937 (vect_recog_dot_prod_pattern): Update call accordingly.
5938 (vect_recog_sad_pattern, vect_recog_pow_pattern): Likewise.
5939 (vect_recog_widen_sum_pattern): Likewise.
5941 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5943 * tree-vectorizer.h (vect_supportable_shift): Take a vec_info.
5944 * tree-vect-stmts.c (vect_supportable_shift): Likewise.
5945 * tree-vect-patterns.c (vect_synth_mult_by_constant): Update call
5948 2019-10-21 Richard Sandiford <richard.sandiford@arm.com>
5950 * tree-vectorizer.c (get_vec_alignment_for_array_type): Use
5951 get_vectype_for_scalar_type_and_size instead of
5952 get_vectype_for_scalar_type.
5954 2019-10-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
5956 * common.opt (-fcommon): Fix description.
5958 2019-10-20 Jakub Jelinek <jakub@redhat.com>
5960 * config/i386/i386-protos.h (ix86_pre_reload_split): Declare.
5961 * config/i386/i386.c (ix86_pre_reload_split): New function.
5962 * config/i386/i386.md (*fix_trunc<mode>_i387_1, *add<mode>3_eq,
5963 *add<mode>3_ne, *add<mode>3_eq_0, *add<mode>3_ne_0, *add<mode>3_eq,
5964 *add<mode>3_ne, *add<mode>3_eq_1, *add<mode>3_eq_0, *add<mode>3_ne_0,
5965 *anddi3_doubleword, *andndi3_doubleword, *<code>di3_doubleword,
5966 *one_cmpldi2_doubleword, *ashl<dwi>3_doubleword_mask,
5967 *ashl<dwi>3_doubleword_mask_1, *ashl<mode>3_mask, *ashl<mode>3_mask_1,
5968 *<shift_insn><mode>3_mask, *<shift_insn><mode>3_mask_1,
5969 *<shift_insn><dwi>3_doubleword_mask,
5970 *<shift_insn><dwi>3_doubleword_mask_1, *<rotate_insn><mode>3_mask,
5971 *<rotate_insn><mode>3_mask_1, *<btsc><mode>_mask, *<btsc><mode>_mask_1,
5972 *btr<mode>_mask, *btr<mode>_mask_1, *jcc_bt<mode>, *jcc_bt<mode>_1,
5973 *jcc_bt<mode>_mask, *popcounthi2_1, frndintxf2_<rounding>,
5974 *fist<mode>2_<rounding>_1, *<code><mode>3_1, *<code>di3_doubleword):
5975 Use ix86_pre_reload_split instead of can_create_pseudo_p in condition.
5976 * config/i386/sse.md (*sse4_1_<code>v8qiv8hi2<mask_name>_2,
5977 *avx2_<code>v8qiv8si2<mask_name>_2,
5978 *sse4_1_<code>v4qiv4si2<mask_name>_2,
5979 *sse4_1_<code>v4hiv4si2<mask_name>_2,
5980 *avx512f_<code>v8qiv8di2<mask_name>_2,
5981 *avx2_<code>v4qiv4di2<mask_name>_2, *avx2_<code>v4hiv4di2<mask_name>_2,
5982 *sse4_1_<code>v2hiv2di2<mask_name>_2,
5983 *sse4_1_<code>v2siv2di2<mask_name>_2, sse4_2_pcmpestr,
5984 sse4_2_pcmpistr): Likewise.
5986 2019-10-20 Gerald Pfeifer <gerald@pfeifer.com>
5988 * doc/install.texi (Configuration, --enable-objc-gc): hboehm.info
5989 now defaults to https.
5991 2019-10-20 Jan Hubicka <hubicka@ucw.cz>
5993 * tree-ssa-alias.c (nonoverlapping_refs_since_match_p): Do not
5994 skip non-zero array accesses.
5996 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
5998 * tree-vect-slp.c (vect_slp_analyze_bb_1): Take a bb_vec_info
5999 and return a boolean success value. Move the allocation and
6000 initialization of the bb_vec_info to...
6001 (vect_slp_bb_region): ...here. Update call accordingly.
6002 (vect_slp_bb): Apply PARAM_SLP_MAX_INSNS_IN_BB here rather
6003 than in vect_slp_analyze_bb_1.
6005 2019-10-20 Richard Sandiford <richard.sandiford@arm.com>
6007 * tree-vect-slp.c (vect_slp_analyze_bb_1): Call save_datarefs
6008 when processing the given datarefs for the first time and
6009 check_datarefs subsequently.
6010 (vect_slp_bb_region): New function, split out of...
6011 (vect_slp_bb): ...here. Don't recompute the region bounds and
6012 dataref sets when retrying with a different vector size.
6014 2019-10-19 Jakub Jelinek <jakub@redhat.com>
6015 Uroš Bizjak <ubizjak@gmail.com>
6018 * config/i386/predicates.md (int_nonimmediate_operand): New special
6020 * config/i386/i386.md (*add<mode>3_eq, *add<mode>3_ne,
6021 *add<mode>3_eq_0, *add<mode>3_ne_0, *sub<mode>3_eq, *sub<mode>3_ne,
6022 *sub<mode>3_eq_1, *sub<mode>3_eq_0, *sub<mode>3_ne_0): New
6023 define_insn_and_split patterns.
6025 2019-10-19 Iain Sandoe <iain@sandoe.co.uk>
6027 * config/rs6000/rs6000.md: Delete out--of-date comment about
6028 special-casing integer loads.
6030 2019-10-19 JeanHeyd Meneide <phdofthehouse@gmail.com>
6032 * escaped_string.h (escaped_string): New header.
6033 * tree.c (escaped_string): Remove escaped_string class.
6035 2019-10-18 Martin Sebor <msebor@redhat.com>
6037 PR tree-optimization/92157
6038 * tree-ssa-strlen.c (handle_builtin_string_cmp): Be prepared for
6039 compute_string_length to return a negative result.
6041 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6043 * config/arm/arm.md (negv<SIDI:mode>3): New expansion rule.
6044 (negvsi3, negvdi3): Delete.
6045 (negdi2_compare): Delete.
6047 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6049 * config/arm/arm.md (subvdi4): Decompose calculation into 32-bit
6051 (subdi3_compare1): Delete pattern.
6052 (subvsi3_borrow): New insn pattern.
6053 (subvsi3_borrow_imm): Likewise.
6055 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6057 * config/arm/arm.md (subv<mode>4): Delete.
6058 (subvdi4): New expander pattern.
6059 (subvsi4): Likewise. Handle some immediate values.
6060 (subvsi3_intmin): New insn pattern.
6061 (subvsi3): Likewise.
6062 (subvsi3_imm1): Likewise.
6063 * config/arm/arm.c (select_cc_mode): Also allow minus for CC_V
6066 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6068 * config/arm/arm.md (usubvdi4): Allow registers or integers for
6069 incoming operands. Early split the calculation into SImode
6071 (usubvsi3_borrow): New insn pattern.
6072 (usubvsi3_borrow_imm): Likewise.
6074 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6076 * config/arm/arm.md (usubv<mode>4): Delete expansion.
6077 (usubvsi4): New pattern. Allow some immediate values for inputs.
6078 (usubvdi4): New pattern.
6080 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6082 * config/arm/arm.c (arm_select_cc_mode): Allow either the first
6083 or second operand of the PLUS inside a DImode equality test to be
6084 sign-extend when selecting CC_Vmode.
6085 * config/arm/arm.md (addvdi4): Early-split the operation into SImode
6087 (addsi3_cin_vout_reg, addsi3_cin_vout_imm, addsi3_cin_vout_0): New
6089 (addsi3_cin_vout_reg_insn, addsi3_cin_vout_imm_insn): New patterns.
6090 (addsi3_cin_vout_0): Likewise.
6091 (adddi3_compareV): Delete.
6093 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6095 * config/arm/arm.md (addsi3_compareV_reg_nosum): New insn.
6096 (addsi3_compareV_imm_nosum): New insn. Also add peephole2 patterns
6097 to transform this back into the summation version when that leads
6100 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6102 * config/arm/arm.md (addv<mode>4): Delete.
6103 (addvsi4): New pattern. Handle immediate values that the architecture
6105 (addvdi4): New pattern.
6106 (addsi3_compareV): Rename to ...
6107 (addsi3_compareV_reg): ... this. Add constraints for thumb2 variants
6108 and use COMPARE rather than NE.
6109 (addsi3_compareV_imm): New pattern.
6110 * config/arm/arm.c (arm_select_cc_mode): Return CC_Vmode for
6111 a signed-overflow check.
6113 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6115 * config/arm/arm-modes.def (CC_ADC): New CC mode.
6116 * config/arm/arm.c (arm_select_cc_mode): Detect selection of
6118 (maybe_get_arm_condition_code): Handle CC_ADCmode.
6119 * config/arm/arm.md (uaddvdi4): Early expansion of unsigned addition
6121 (addsi3_cin_cout_reg, addsi3_cin_cout_imm, addsi3_cin_cout_0): New
6123 (addsi3_cin_cout_reg_insn, addsi3_cin_cout_0_insn): New insn patterns
6124 (addsi3_cin_cout_imm_insn): Likewise.
6125 (adddi3_compareC): Delete insn.
6126 * config/arm/predicates.md (arm_carry_operation): Handle CC_ADCmode.
6128 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6130 * config/arm/arm.md (adddi3): Call gen_addsi3_compare_op1.
6131 * (uaddv<mode>4): Delete expansion pattern.
6132 (uaddvsi4): New pattern.
6133 (uaddvdi4): Likewise.
6134 (addsi3_compareC): Delete pattern, change callers to use
6136 (addsi3_compare_op1): No-longer anonymous. Clean up constraints to
6137 reduce the number of alternatives and re-work type attribute handling.
6138 (addsi3_compare_op2): Clean up constraints to reduce the number of
6139 alternatives and re-work type attribute handling.
6140 (compare_addsi2_op0): Likewise.
6141 (compare_addsi2_op1): Likewise.
6143 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6145 * config/arm/arm-modes.def (CC_NCV, CC_CZ): Delete CC modes.
6146 * config/arm/arm.c (arm_select_cc_mode): Remove old selection code
6147 for DImode operands.
6148 (arm_gen_dicompare_reg): Remove unreachable expansion code.
6149 (maybe_get_arm_condition_code): Remove support for CC_CZmode and
6151 * config/arm/arm.md (arm_cmpdi_insn): Delete.
6152 (arm_cmpdi_unsigned): Delete.
6154 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6156 * config/arm/arm.c (arm_const_double_prefer_rsbs_rsc): New function.
6157 (arm_canonicalize_comparison): For GT/LE/GTU/GEU, use the constant
6158 unchanged only if that will be cheaper.
6159 (arm_select_cc_mode): Recognize a swapped comparison that will
6160 be regenerated using RSBS or RSCS. Relax restriction on selecting
6162 (arm_gen_dicompare_reg): Handle LE/GT/LEU/GEU comparisons against
6164 (arm_gen_compare_reg): Handle compare (CONST, X) when the mode
6166 (maybe_get_arm_condition_code): CC_RSBmode now returns the same codes
6168 * config/arm/arm.md (rsb_imm_compare_scratch): New pattern.
6169 (rscsi3_<CC_EXTEND>out_scratch): New pattern.
6171 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6173 * config/arm/arm-modes.def (CC_NV, CC_B): New CC modes.
6174 * config/arm/arm.c (arm_select_cc_mode): Recognize constructs that
6176 (arm_gen_dicompare_reg): New code to early expand the sub-operations
6177 of EQ, NE, LT, GE, LTU and GEU.
6178 * config/arm/iterators.md (CC_EXTEND): New code attribute.
6179 * config/arm/predicates.md (arm_adcimm_operand): New predicate..
6180 * config/arm/arm.md (cmpsi3_carryin_<CC_EXTEND>out): New pattern.
6181 (cmpsi3_imm_carryin_<CC_EXTEND>out): Likewise.
6182 (cmpsi3_0_carryin_<CC_EXTEND>out): Likewise.
6184 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6186 * config/arm/arm.md (cbranchdi4): Accept reg_or_int_operand for
6188 (cstoredi4): Similarly, but for operand 3.
6189 * config/arm/arm.c (arm_canoncialize_comparison): Allow
6190 canonicalization of unsigned compares with a constant on Arm.
6191 Prefer using const+1 and adjusting the comparison over swapping the
6192 operands whenever the original constant was not valid.
6193 (arm_gen_dicompare_reg): If Y is not a valid operand, force it to a
6195 (arm_validize_comparison): Do not force invalid DImode operands to
6198 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6200 * config/arm/arm.c (arm_select_cc_mode): For DImode equality tests
6201 return CC_Zmode if comparing against a constant where one word is
6203 (arm_gen_compare_reg): Split DImode handling to ...
6204 (arm_gen_dicompare_reg): ... here. Handle equality comparisons
6205 against simple constants.
6206 * config/arm/arm.md (arm_cmpdi_zero): Delete pattern.
6208 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6210 * config/arm/arm.md (subsi3_carryin_shift_alt): New pattern.
6211 (rsbsi3_carryin_shift_alt): Likewise.
6213 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6215 * config/arm/arm.md (negscc_borrow): New pattern.
6216 (mov_negscc): Don't split if the insn would match negscc_borrow.
6217 * config/arm/thumb2.md (thumb2_mov_negscc): Likewise.
6218 (thumb2_mov_negscc_strict_it): Likewise.
6220 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6222 * config/arm/arm.c (arm_insn_cost): New function.
6223 (TARGET_INSN_COST): Override default definition.
6225 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6227 * config/arm/arm.c (arm_rtx_costs_internal, case MINUS): Handle
6230 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6232 * config/arm/arm.c (strip_carry_operation): New function.
6233 (arm_rtx_costs_internal, case PLUS): Handle addtion with carry-in
6236 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6238 * config/arm/predicates.md (arm_carry_operation): New special
6240 * config/arm/iterators.md (LTUGEU): Delete iterator.
6241 (cnb): Delete code attribute.
6242 (optab): Delete ltu and geu elements.
6243 * config/arm/arm.md (addsi3_carryin): Renamed from
6244 addsi3_carryin_<optab>. Remove iterator and use arm_carry_operand.
6245 (add0si3_carryin): Similarly, but from add0si3_carryin_<optab>.
6246 (addsi3_carryin_alt2): Similarly, but from addsi3_carryin_alt2_<optab>.
6247 (addsi3_carryin_clobercc): Similarly.
6248 (addsi3_carryin_shift): Similarly. Do not allow register shifts in
6251 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6253 * config/arm/arm.md (arm_subdi3): Delete insn.
6254 (zextendsidi_negsi, negdi_extendsidi): Delete insn_and_split.
6256 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6258 * config/arm/arm-modes.def (CC_RSB): New CC mode.
6259 * config/arm/predicates.md (arm_borrow_operation): Handle CC_RSBmode.
6260 * config/arm/arm.c (arm_select_cc_mode): Detect when we should
6262 (maybe_get_arm_condition_code): Handle CC_RSBmode.
6263 * config/arm/arm.md (subsi3_carryin): Make this pattern available to
6265 (subdi3): Rewrite to early-expand the sub-operations.
6266 (rsb_im_compare): New pattern.
6268 (negdi2_insn): Delete.
6269 (arm_negsi2): Correct type attribute to alu_imm.
6270 (negsi2_0compare): New insn pattern.
6271 (negsi2_carryin): New insn pattern.
6273 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6275 * config/arm/arm.md (addsi3_carryin_alt2): Use arm_not_operand for
6278 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6280 * config/arm/arm.md (addsi3_carryin_shift_<optab>): Reorder operands
6281 to match canonical form.
6283 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6285 * config/arm/arm.md (zero_extend<mode>di2): Convert to define_expand.
6286 (extend<mode>di2): Likewise.
6288 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6290 * config/arm/arm-protos.h (arm_decompose_di_binop): New prototype.
6291 * config/arm/arm.c (arm_decompose_di_binop): New function.
6292 * config/arm/arm.md (adddi3): Also accept any const_int for op2.
6293 If not generating Thumb-1 code, decompose the operation into 32-bit
6295 * add0si_carryin_<optab>: New pattern.
6297 2019-10-18 Richard Earnshaw <rearnsha@arm.com>
6299 * arm.md (adddi3): Only accept register operands.
6300 (arm_adddi3): Convert to simple insn with no split. Do not accept
6302 (adddi_sesidi_di): Delete patern.
6303 (adddi_zesidi_di): Likewise.
6304 (uaddv<mode>4): Use LTU as condition for branch.
6305 (adddi3_compareV): Convert to simple insn with no split.
6306 (addsi3_compareV_upper): Delete pattern.
6307 (adddi3_compareC): Convert to simple insn with no split. Correct
6308 flags setting expression.
6309 (addsi3_compareC_upper): Delete pattern.
6310 (addsi3_compareC): Correct flags setting expression.
6311 (subdi3_compare1): Convert to simple insn with no split.
6312 (subsi3_carryin_compare): Delete pattern.
6313 (arm_subdi3): Convert to simple insn with no split.
6314 (subdi_zesidi): Delete pattern.
6315 (subdi_di_sesidi): Delete pattern.
6316 (subdi_zesidi_di): Delete pattern.
6317 (subdi_sesidi_di): Delete pattern.
6318 (subdi_zesidi_zesidi): Delete pattern.
6319 (negvdi3): Use s_register_operand.
6320 (negdi2_compare): Convert to simple insn with no split.
6321 (negdi2_insn): Likewise.
6322 (negsi2_carryin_compare): Delete pattern.
6323 (negdi_zero_extendsidi): Delete pattern.
6324 (arm_cmpdi_insn): Convert to simple insn with no split.
6325 (negdi2): Don't call gen_negdi2_neon.
6326 * config/arm/neon.md (adddi3_neon): Delete pattern.
6327 (subdi3_neon): Delete pattern.
6328 (negdi2_neon): Delete pattern.
6329 (splits for negdi2_neon): Delete splits.
6331 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6334 * ggc-page.c (release_pages): Read g->alloc_size before free rather
6337 2019-10-18 Andre Vieira <andre.simoesdiasvieira@arm.com>
6339 * config/arm/t-multilib: Add rule to regenerate mutlilib header file
6340 with any change to t-multilib, t-aprofile and t-rmprofile. Also add
6341 new multilib variants and new mappings.
6343 2019-10-18 Georg-Johann Lay <avr@gjlay.de>
6346 * config/avr/avr.c (avr_out_lpm): Do not shortcut-return.
6348 2019-10-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6349 Richard Sandiford <richard.sandiford@arm.com>
6352 * tree-vectorizer.h (scalar_cond_masked_key): New struct,
6353 and define hashmap traits for it.
6354 (loop_vec_info::scalar_cond_masked_set): New member.
6355 (vect_record_loop_mask): Adjust prototype.
6356 * tree-vectorizer.c (scalar_cond_masked_key::get_cond_ops_from_tree):
6358 * tree-vect-loop.c (vectorizable_reduction): Pass NULL as last arg to
6359 vect_record_loop_mask.
6360 (vectorizable_live_operation): Likewise.
6361 (vect_record_loop_mask): New param scalar_mask. Add entry
6362 cond, loop_mask to scalar_cond_masked_set if scalar_mask is non NULL.
6363 * tree-vect-stmts.c (check_load_store_masking): New param scalar_mask.
6364 Pass it as last arg to vect_record_loop_mask.
6365 (vectorizable_call): Pass scalar_mask as last arg to
6366 vect_record_loop_mask.
6367 (vectorizable_store): Likewise.
6368 (vectorizable_load): Likewise.
6369 (vectorizable_condition): Check if another part of vectorized code
6370 applies loop_mask to condition or to it's inverse, and if yes,
6371 apply loop_mask to result of vector comparison.
6373 2019-10-17 John David Anglin <danglin@gcc.gnu.org>
6375 * config/pa/pa.c (pa_output_indirect_call): Fix typos in last change.
6377 2019-10-18 Jakub Jelinek <jakub@redhat.com>
6379 PR tree-optimization/92056
6380 * tree-ssa-strlen.c (determine_min_objsize): Call init_object_sizes
6381 before calling compute_builtin_object_size.
6383 2019-10-17 Iain Sandoe <iain@sandoe.co.uk>
6386 * config/rs6000/darwin.md (movdi_low, movsi_low_st): Delete.
6387 (movdi_low_st): Delete.
6388 * config/rs6000/rs6000.c
6389 (darwin_rs6000_legitimate_lo_sum_const_p): New.
6390 (mem_operand_gpr): Validate Mach-O LO_SUM cases separately.
6391 * config/rs6000/rs6000.md (movsi_low): Delete.
6393 2019-10-17 Jason Merrill <jason@redhat.com>
6395 * gimplify.h (get_initialized_tmp_var): Add default argument to
6397 * gimplify.c (gimplify_self_mod_expr, gimplify_omp_atomic): Remove
6398 NULL post_p argument.
6399 * targhooks (std_gimplify_va_arg_expr): Likewise.
6401 2019-10-17 Richard Biener <rguenther@suse.de>
6403 * tree-vectorizer.h (_stmt_vec_info::cond_reduc_code): Remove.
6404 (STMT_VINFO_VEC_COND_REDUC_CODE): Likewise.
6405 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Do not
6406 initialize STMT_VINFO_VEC_COND_REDUC_CODE.
6407 * tree-vect-loop.c (vect_is_simple_reduction): Set
6408 STMT_VINFO_REDUC_CODE.
6409 (vectorizable_reduction): Remove dead and redundant code, use
6410 STMT_VINFO_REDUC_CODE instead of STMT_VINFO_VEC_COND_REDUC_CODE.
6412 2019-10-17 Georg-Johann Lay <avr@gjlay.de>
6414 Fix breakage introduced by r276985.
6416 * config/avr/avr.c (avr_option_override): Remove set of
6417 PARAM_ALLOW_STORE_DATA_RACES.
6418 * common/config/avr/avr-common.c (avr_option_optimization_table)
6419 [OPT_LEVELS_ALL]: Turn on -fallow-store-data-races.
6421 2019-10-17 H.J. Lu <hongjiu.lu@intel.com>
6423 * config/i386/i386.h (processor_costs): Add clear_ratio.
6424 (CLEAR_RATIO): Remove MIN and use ix86_cost->clear_ratio.
6425 * config/i386/x86-tune-costs.h: Set clear_ratio to the minimum
6426 of 6 and move_ratio in all cost models.
6428 2019-10-17 Richard Biener <rguenther@suse.de>
6430 * tree-vect-loop.c (check_reduction_path): Compute reduction
6432 (vect_is_simple_reduction): Remove special-case of single-stmt
6433 reduction path detection.
6435 2019-10-17 Richard Earnshaw <rearnsha@arm.com>
6437 * config/arm/arm-cpus.in (marvel-pj4): Add +fp to the architecture.
6439 2019-10-17 Yuliang Wang <yuliang.wang@arm.com>
6441 * config/aarch64/aarch64-sve2.md (aarch64_sve2_eor3<mode>)
6442 (aarch64_sve2_nor<mode>, aarch64_sve2_nand<mode>)
6443 (aarch64_sve2_bsl<mode>, aarch64_sve2_nbsl<mode>)
6444 (aarch64_sve2_bsl1n<mode>, aarch64_sve2_bsl2n<mode>):
6445 New combine patterns.
6446 * config/aarch64/iterators.md (BSL_DUP): New int iterator for the
6448 (bsl_1st, bsl_2nd, bsl_dup, bsl_mov): Attributes for the above.
6450 2019-10-17 Aldy Hernandez <aldyh@redhat.com>
6452 * tree-vrp.c (value_range_base::dump): Display +INF for both
6453 pointers and integers when appropriate.
6455 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6457 * tree-vect-loop.c (vect_analyze_loop_2): Use same condition to decide
6458 when to use versioning threshold.
6460 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6462 * tree-vect-loop.c (determine_peel_for_niter): New function contained
6463 outlined code from ...
6464 (vect_analyze_loop_2): ... here.
6466 2019-10-17 Andre Vieira <andre.simoesdiasvieira@arm.com>
6468 * tree-vect-loop.c (vect_transform_loop): Move code from here...
6469 * tree-vect-loop-manip.c (vect_loop_versioning): ... to here.
6470 * tree-vectorizer.h (vect_loop_versioning): Remove unused parameters.
6472 2019-10-17 Richard Biener <rguenther@suse.de>
6474 * tree-vect-loop.c (needs_fold_left_reduction_p): Export.
6475 (vect_is_simple_reduction): Move all validity checks ...
6476 (vectorizable_reduction): ... here. Compute whether we
6477 need a fold-left reduction here.
6478 * tree-vect-patterns.c (vect_reassociating_reduction_p): Merge
6479 both overloads, check needs_fold_left_reduction_p directly.
6480 * tree-vectorizer.h (needs_fold_left_reduction_p): Declare.
6482 2019-10-17 Richard Biener <rguenther@suse.de>
6484 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Fix
6485 TARGET_MEM_REF creation.
6487 2019-10-17 Richard Biener <rguenther@suse.de>
6489 PR tree-optimization/92129
6490 * tree-vect-loop.c (vectorizable_reduction): Also fail
6491 on GIMPLE_SINGLE_RHS.
6493 2019-10-17 Jakub Jelinek <jakub@redhat.com>
6495 PR tree-optimization/92056
6496 * tree-object-size.c (cond_expr_object_size): Return early if then_
6497 processing resulted in unknown size.
6499 PR tree-optimization/92115
6500 * tree-ssa-ifcombine.c (ifcombine_ifandif): Force condition into
6501 temporary if it could trap.
6503 2019-10-17 Richard Biener <rguenther@suse.de>
6506 * dwarf2out.c (gen_formal_parameter_die): Also try to match
6507 context_die against a DW_TAG_GNU_formal_parameter_pack parent.
6509 2019-10-16 Jakub Jelinek <jakub@redhat.com>
6511 * tree-ssa-strlen.c (maybe_invalidate): Use
6512 HOST_WIDE_INT_PRINT_UNSIGNED instead of "%zu".
6514 2019-10-16 Andrew Burgess <andrew.burgess@embecosm.com>
6515 Jim Wilson <jimw@sifive.com>
6517 * config/riscv/riscv.h (REG_CLASS_CONTENTS): Add argument passing
6518 regs to SIBCALL_REGS.
6519 * config/riscv/riscv.c (riscv_regno_to_class): Change argument
6520 passing regs to SIBCALL_REGS.
6522 2019-10-16 Martin Sebor <msebor@redhat.com>
6524 PR tree-optimization/83821
6525 * tree-ssa-strlen.c (maybe_invalidate): Add argument. Consider
6526 the length of a string when available.
6527 (handle_builtin_memset) Add argument.
6528 (handle_store, strlen_check_and_optimize_call): Same.
6529 (check_and_optimize_stmt): Same. Pass it to callees.
6531 2019-10-16 Martin Sebor <msebor@redhat.com>
6533 PR tree-optimization/91996
6534 * tree-ssa-strlen.c (maybe_warn_pointless_strcmp): Improve location
6536 (compare_nonzero_chars): Add an overload.
6537 (count_nonzero_bytes): Add an argument. Call overload above.
6538 Handle non-constant lengths in some range.
6539 (handle_store): Add an argument.
6540 (check_and_optimize_stmt): Pass an argument to handle_store.
6542 2019-10-16 Richard Earnshaw <rearnsha@arm.com>
6544 * config/arm/arm.c (neon_valid_immediate): Clear bytes before use.
6546 2019-10-16 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6548 * config/mips/mips.c (mips_expand_builtin_insn): Force the
6549 operands which correspond to the same input-output register to
6550 have the same pseudo assigned to them.
6552 2019-10-16 Ilya Leoshkevich <iii@linux.ibm.com>
6554 * cfgrtl.c (find_partition_fixes): Remove bbs_in_cold_partition.
6556 2019-10-16 Wilco Dijkstra <wdijkstr@arm.com>
6558 * config/aarch64/aarch64.c (aarch64_classify_symbol):
6559 Apply reasonable limit to symbol offsets.
6561 2019-10-16 Richard Biener <rguenther@suse.de>
6563 * tree-vect-loop.c (vect_valid_reduction_input_p): Remove.
6564 (vect_is_simple_reduction): Delay checking to
6565 vectorizable_reduction and relax the checking.
6566 (vectorizable_reduction): Check we have a simple use. Check
6567 for bogus condition reductions.
6568 * tree-vect-stmts.c (vect_transform_stmt): Make sure we
6569 are looking at the last stmt in a pattern sequence when
6570 filling in backedge PHI values.
6572 2019-10-16 Peter Bergner <bergner@linux.ibm.com>
6573 Jiufu Guo <guojiufu@linux.ibm.com>
6576 * config/rs6000/rs6000.c (rs6000_can_inline_p): Prohibit inlining if
6577 the callee explicitly disables some isa_flags the caller is using.
6579 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6581 * function-abi.cc (expr_callee_abi): Assert for POINTER_TYPE_P.
6583 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6585 * genmodes.c (mode_data::order): New field.
6586 (blank_mode): Update accordingly.
6587 (VECTOR_MODES_WITH_PREFIX): Add an order parameter.
6588 (make_vector_modes): Likewise.
6589 (VECTOR_MODES): Update use accordingly.
6590 (cmp_modes): Sort by the new order field ahead of sorting by size.
6591 * config/aarch64/aarch64-modes.def (VNx2QI, VN2xHI, VNx2SI)
6592 (VNx4QI, VNx4HI, VNx8QI): New partial vector modes.
6593 * config/aarch64/aarch64.c (VEC_PARTIAL): New flag value.
6594 (aarch64_classify_vector_mode): Handle the new partial modes.
6595 (aarch64_vl_bytes): New function.
6596 (aarch64_hard_regno_nregs): Use it instead of BYTES_PER_SVE_VECTOR
6597 when counting the number of registers in an SVE mode.
6598 (aarch64_class_max_nregs): Likewise.
6599 (aarch64_hard_regno_mode_ok): Don't allow partial vectors
6601 (aarch64_classify_address): Treat partial vectors analogously
6603 (aarch64_print_address_internal): Consolidate the printing of
6604 MUL VL addresses, using aarch64_vl_bytes as the number of
6605 bytes represented by "VL".
6606 (aarch64_vector_mode_supported_p): Reject partial vector modes.
6608 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6610 * config/aarch64/aarch64.c (aarch64_layout_frame): Use is_constant
6611 rather than known_lt when choosing frame layouts.
6613 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6615 * config/aarch64/aarch64.c (aarch64_layout_frame): Assert
6616 that all the adjustments add up to the full frame size.
6617 Use crtl->outgoing_args_size directly as the final adjustment
6620 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6622 * config/aarch64/aarch64.c (aarch64_layout_frame): Use a local
6623 "frame" reference instead of always referring directly to
6624 "cfun->machine->frame".
6626 2019-10-16 Richard Biener <rguenther@suse.de>
6628 PR tree-optimization/92119
6629 * tree-vect-patterns.c (vect_recog_rotate_pattern): Guard
6630 against missing bswap lhs.
6632 2019-10-16 Richard Sandiford <richard.sandiford@arm.com>
6635 * poly-int.h (constant_lower_bound_with_limit): New function.
6636 (constant_upper_bound_with_limit): Likewise.
6637 * doc/poly-int.texi: Document them.
6638 * tree-vrp.c (value_range_base::set): Convert POLY_INT_CST bounds
6639 into the worst-case INTEGER_CST bounds.
6641 2019-10-16 Feng Xue <fxue@os.amperecomputing.com>
6644 * doc/invoke.texi (ipa-max-param-expr-ops): Document new option.
6645 * params.def (PARAM_IPA_MAX_PARAM_EXPR_OPS): New.
6646 * ipa-predicat.h (struct expr_eval_op): New struct.
6647 (expr_eval_ops): New typedef.
6648 (struct condition): Add type and param_ops fields, remove size field.
6649 (add_condition): Replace size parameter with type parameter, add
6650 param_ops parameter.
6651 * ipa-predicat.c (expr_eval_ops_equal_p): New function.
6652 (predicate::add_clause): Add comparisons on type and param_ops.
6653 (dump_condition): Add debug dump for param_ops.
6654 (remap_after_inlining): Adjust call arguments to add_condition.
6655 (add_condition): Replace size parameter with type parameter, add
6656 param_ops parameter. Unshare constant value used in conditions.
6657 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Fold
6658 parameter expressions using param_ops.
6659 (decompose_param_expr): New function.
6660 (set_cond_stmt_execution_predicate): Use call to decompose_param_expr
6661 to replace call to unmodified_parm_or_parm_agg_item.
6662 (set_switch_stmt_execution_predicate): Likewise.
6663 (will_be_nonconstant_expr_predicate): Likewise. Replace usage of size
6665 (inline_read_section): Read param_ops from summary stream.
6666 (ipa_fn_summary_write): Write param_ops to summary stream.
6668 2019-10-15 Segher Boessenkool <segher@kernel.crashing.org>
6670 PR rtl-optimization/92107
6671 * genattrtab.c (write_attr_value) <do_operator>: Parenthesize the
6674 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6676 * config/darwin.c: Update description of fix and continue.
6678 2019-10-15 Iain Sandoe <iain@sandoe.co.uk>
6680 * config/darwin.c (darwin_binds_local_p): Update to call
6681 default_binds_local_p_3 () directly. amend comments.
6683 2019-10-15 Richard Biener <rguenther@suse.de>
6685 * lto-streamer-out.c (lto_variably_modified_type_p): New.
6686 (tree_is_indexable): Use it.
6687 * tree-streamer-out.c (pack_ts_type_common_value_fields):
6688 Stream variably_modified_type_p as TYPE_LANG_FLAG_0.
6689 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
6691 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6693 * config/msp430/msp430.md (zero_extendqipsi2): New.
6694 (zero_extendqisi2): Optimize case where src register and base dst
6695 register are the same.
6696 (zero_extendhipsi2): Don't use 430X insn for rYs->r case.
6697 (zero_extendpsisi2): Optimize r->m case.
6698 Add unnamed insn patterns to catch insns combine searches for when
6699 optimizing pointer manipulation.
6701 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6703 * config/msp430/msp430.md: Group zero_extend* insns together.
6705 2019-10-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
6707 * config/msp430/constraints.md: Allow post_inc operand for "Ya"
6709 * config/msp430/msp430.c (msp430_legitimate_address_p): Handle
6711 (msp430_subreg): Likewise.
6712 (msp430_split_addsi): Likewise.
6713 (msp430_print_operand_addr): Likewise.
6714 * config/msp430/msp430.h (HAVE_POST_INCREMENT): Define.
6715 (USE_STORE_POST_INCREMENT): Define.
6716 * config/msp430/msp430.md: Use the msp430_general_dst_operand or
6717 msp430_general_dst_nonv_operand predicates for the lvalues of insns.
6718 * config/msp430/predicates.md (msp430_nonpostinc_operand): New.
6719 (msp430_general_dst_operand): New.
6720 (msp430_general_dst_nonv_operand): New.
6721 (msp430_nonsubreg_operand): Remove.
6722 (msp430_nonsubreg_dst_operand): New.
6723 (msp430_nonsubreg_or_imm_operand): Allow reg or mem operands in place
6724 of defunct msp430_nonsubreg_operand.
6725 (msp430_nonsubregnonpostinc_or_imm_operand): New.
6727 2019-10-15 Richard Biener <rguenther@suse.de>
6729 PR tree-optimization/91929
6730 * tree-ssa-pre.c (pre_expr_d::loc): New member.
6731 (get_or_alloc_expr_for_name): Initialize it.
6732 (get_or_alloc_expr_for_constant): Likewise.
6733 (phi_translate_1): Copy it.
6734 (create_expression_by_pieces): Use the original location
6735 of the expression for the inserted stmt.
6736 (compute_avail): Record the location of the stmt for the
6737 expressions created.
6739 2019-10-15 Richard Sandiford <richard.sandiford@arm.com>
6741 * tree-ssa-strlen.c (count_nonzero_bytes): Check tree_fits_uhwi_p
6742 before using tree_to_uhwi.
6744 2019-10-15 Ilya Leoshkevich <iii@linux.ibm.com>
6746 * config/s390/s390.md: Run %a0:DI splitters only after reload.
6748 2019-10-15 Richard Biener <rguenther@suse.de>
6750 PR tree-optimization/92094
6751 * tree-vect-loop.c (vectorizable_reduction): For nested cycles
6752 do not adjust the reduction definition def type.
6753 * tree-vect-stmts.c (vect_transform_stmt): Verify the scalar stmt
6754 defines the latch argument of the PHI.
6756 2019-10-15 Hongyu Wang <hongtao.wang@intel.com>
6759 * config/i386/avx512fintrin.h (_mm_mask_roundscale_ss,
6760 _mm_maskz_roundscale_ss, _mm_maskz_roundscale_round_ss,
6761 _mm_maskz_roundscale_round_ss, _mm_mask_roundscale_sd,
6762 _mm_maskz_roundscale_sd, _mm_mask_roundscale_round_sd,
6763 _mm_maskz_roundscale_round_sd): New intrinsics.
6764 (_mm_roundscale_ss, _mm_roundscale_round_ss): Use
6765 __builtin_ia32_rndscales?_mask_round builtins instead of
6766 __builtin_ia32_rndscales?_round.
6767 * config/i386/i386-builtin.def (__builtin_ia32_rndscaless_round,
6768 __builtin_ia32_rndscalesd_round): Remove.
6769 (__builtin_ia32_rndscaless_mask_round,
6770 __builtin_ia32_rndscalesd_mask_round): New intrinsics.
6771 * config/i386/sse.md
6772 (avx512f_rndscale<mode><round_saeonly_name>): Renamed to ...
6773 (avx512f_rndscale<mode><mask_scalar_name><round_saeonly_scalar_name>):
6774 ... this, adjust and add subst atrributes to make it maskable.
6776 2019-10-15 Richard Biener <rguenther@suse.de>
6779 * common.opt (fallow-store-data-races): New.
6780 * params.def (PARAM_ALLOW_STORE_DATA_RACES): Remove.
6781 * params.h (ALLOW_STORE_DATA_RACES): Likewise.
6782 * doc/invoke.texi (fallow-store-data-races): Document.
6783 (--param allow-store-data-races): Remove docs.
6784 * opts.c (default_options_table): Enable -fallow-store-data-races
6786 (default_options_optimization): Do not enable --param
6787 allow-store-data-races at -Ofast.
6788 * tree-if-conv.c (ifcvt_memrefs_wont_trap): Use flag_store_data_races
6789 instead of PARAM_ALLOW_STORE_DATA_RACES.
6790 * tree-ssa-loop-im.c (execute_sm): Likewise.
6792 2019-10-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
6794 PR tree-optimization/92085
6795 * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
6796 instead of calling it unconditionally after
6797 delete_dead_or_redundant_assignment and fix indentation.
6799 2019-10-15 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
6801 * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
6803 (*fmsub<SDF:mode>4): Likewise.
6804 *fnmsub<SDF:mode>4): Likewise.
6805 (*fnmadd<SDF:mode>4): Likewise.
6807 2019-10-14 Joel Hutton <Joel.Hutton@arm.com>
6809 * doc/tree-ssa.texi: Update renamed macro name.
6811 2019-10-14 Mihailo Stojanovic <mistojanovic@wavecomp.com>
6813 * config/mips/mips.c (mips_cannot_force_const_mem): Reject
6816 2019-10-14 Iain Sandoe <iain@sandoe.co.uk>
6818 * config/darwin.c: Use unsigned ints for the picbase label
6819 counters, initialise the vars explicitly.
6820 (update_pic_label_number_if_needed): Move a variable declaration
6821 to where it's needed.
6822 (machopic_output_function_base_name): Use a more strict checking
6823 assert, and and unsigned int for the picbase label counter.
6824 (machopic_get_function_picbase): Likewise.
6826 2019-10-14 Richard Biener <rguenther@suse.de>
6829 * dse.c (scan_insn): Use param max_active_local_stores.
6830 (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
6831 based on optimization level.
6832 * loop-invariant.c (move_loop_invariants): Adjust
6833 LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
6834 * opts.c (default_options_optimization): Do not adjust
6835 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
6836 LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
6838 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6840 * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
6842 2019-10-14 Wilco Dijkstra <wdijkstr@arm.com>
6844 * config/arm/arm.c (arm_option_override): Don't override sched
6847 2019-10-14 Richard Biener <rguenther@suse.de>
6849 PR tree-optimization/92069
6850 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
6851 cycles do not set vect_nested_cycle on the latch definition.
6853 2019-10-14 Richard Sandiford <richard.sandiford@arm.com>
6855 * function-abi.h (expr_callee_abi): Declare.
6856 * function-abi.cc (expr_callee_abi): New function.
6858 2019-10-14 Aldy Hernandez <aldyh@redhat.com>
6860 * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
6862 * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
6863 non-zero being represented as [1,MAX].
6865 2019-10-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
6867 * tree-sra.c (dump_access): Add missing braces.
6869 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6871 * config/darwin.c (machopic_indirection_name): Rework the
6872 function to emit linker-visible symbols only for indirections
6873 in the data section. Clean up the code and update comments.
6875 2019-10-13 Iain Sandoe <iain@sandoe.co.uk>
6877 * config/darwin.c (machopic_indirect_data_reference): Remove
6880 2019-10-13 Nathan Sidwell <nathan@acm.org>
6882 * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
6884 2019-10-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6886 * doc/sourcebuild.texi (Test Directives, Add Options): Remove
6889 2019-10-12 Jan Hubicka <hubicka@ucw.cz>
6891 * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
6892 so non-virutal are before virutals.
6893 (output_function): Avoid body modifications.
6895 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6897 * config/pa/pa.c (pa_output_call): Load descriptor address to register
6898 %r22. Load function address before global pointer.
6899 (pa_attr_length_indirect_call): Adjust length of inline versions of
6901 (pa_output_indirect_call): Remove fast inline version of $$dyncall
6902 before normal cases. Update inline $$dyncall sequences to preserve
6903 function descriptor address in register %r22.
6904 (TRAMPOLINE_CODE_SIZE): Adjust.
6905 (pa_asm_trampoline_template): Revise 32-bit trampoline. Don't assume
6906 register %r22 contains trampoline address.
6907 (pa_trampoline_init): Adjust offsets.
6908 (pa_trampoline_adjust_address): Likewise.
6909 * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
6911 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6914 * config/darwin.c (machopic_indirection): New field to flag
6915 non-lazy-symbol-pointers in the data section.
6916 (machopic_indirection_name): Compute if an indirection should
6917 appear in the data section.
6918 (machopic_output_data_section_indirection): New callback split
6919 from machopic_output_indirection.
6920 (machopic_output_stub_indirection): Likewise.
6921 (machopic_output_indirection): Retain the code for non-lazy
6922 symbol pointers in their regular section.
6923 (machopic_finish): Use the new callbacks to order the indirection
6926 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6928 * config/darwin-protos.h (machopic_finish): Delete.
6929 * config/darwin.c (machopic_finish): Make static.
6931 2019-10-12 Iain Sandoe <iain@sandoe.co.uk>
6933 * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
6934 sections when building kernel extension code.
6936 2019-10-12 Palmer Dabbelt <palmer@sifive.com>
6938 * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
6941 2019-10-12 John David Anglin <danglin@gcc.gnu.org>
6943 * config/pa/pa.c (pa_option_override): Remove trailing comma
6946 2019-10-12 Jakub Jelinek <jakub@redhat.com>
6949 * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
6950 <case VEC_COND_EXPR>: Return false with *handled = false.
6951 (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
6952 recursing on the first operand.
6953 * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
6954 instead of tree_could_trap_p.
6955 * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
6957 2019-10-11 Jim Wilson <jimw@sifive.com>
6959 PR rtl-optimization/91860
6960 * combine.c (subst): If new_rtx is a constant, also check for
6961 SIGN_EXTEND when deciding whether to call simplify_unary_operation.
6963 2019-10-11 Richard Sandiford <richard.sandiford@arm.com>
6965 * expr.c (store_expr): Use rtx_to_poly_int64 rather than
6966 INTVAL when calling store_bit_field.
6968 2019-10-11 Wilco Dijkstra <wdijkstr@arm.com>
6970 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
6973 2019-10-11 Bernd Edlinger <bernd.edlinger@hotmail.de>
6975 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
6976 vectorizable_live_operation.
6977 (vectorizable_live_operation): Adjust parameters.
6978 * tree-vect-stmts.c (vect_init_vector,
6979 vect_gen_widened_results_half): Fix typo in function comment.
6980 (can_vectorize_live_stmts): Adjust function comment.
6981 Adjust parameters. Adjust call to vectorizable_live_operation.
6982 (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
6983 (vect_transform_stmt): Adjust function comment. Adjust call to
6984 can_vectorize_live_stmts.
6985 * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
6987 2019-10-11 Richard Biener <rguenther@suse.de>
6989 PR tree-optimization/90883
6990 PR tree-optimization/91091
6991 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
6992 alias-sets both for recording VN table entries and continuing
6993 walking after translating through copies. Handle same-sized
6994 reads from SSA names by returning the plain SSA name.
6995 (eliminate_dom_walker::eliminate_stmt): Properly handle
6996 non-size precision stores in redundant store elimination.
6998 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7000 * ggc-page.c (release_pages): Output statistics when !quiet_flag.
7001 (ggc_collect): Dump later to not interfere with release_page dump.
7002 (ggc_trim): New function.
7003 * ggc-none.c (ggc_trim): New.
7004 * ggc.h (ggc_trim): Declare.
7006 2019-10-11 Richard Biener <rguenther@suse.de>
7008 PR tree-optimization/92066
7009 PR tree-optimization/92046
7010 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7011 Fix bogus cost model check.
7013 2019-10-11 Tobias Burnus <tobias@codesourcery.com>
7015 * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
7016 (LANG_HOOKS_DECLS): Add it.
7017 * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
7018 update comment for omp_is_optional_argument.
7019 * omp-general.c (omp_is_allocatable_or_ptr): New.
7020 * omp-general.h (omp_is_allocatable_or_ptr): Declare.
7021 * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
7022 Fortran's optional arguments and allocatable/pointer scalars
7023 with use_device_addr.
7025 2019-10-11 Ilya Leoshkevich <iii@linux.ibm.com>
7028 * config/s390/2827.md: Add new opcodes.
7029 * config/s390/2964.md: Likewise.
7030 * config/s390/3906.md: Likewise.
7031 * config/s390/8561.md: Likewise.
7032 * config/s390/s390-builtins.def (s390_vfchesb): Use
7033 the new vec_cmpgev4sf_quiet_nocc.
7034 (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
7035 (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
7036 (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
7037 (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
7038 (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
7039 (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
7040 (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
7041 * config/s390/s390-modes.def (CCSFPS): New mode.
7042 * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
7043 (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
7044 (s390_branch_condition_mask): Reuse CCS for CCSFPS.
7045 (s390_expand_vec_compare): Use non-signaling patterns where
7047 (s390_reverse_condition): Support CCSFPS.
7048 * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
7049 * config/s390/vector.md: (VFCMP_HW_OP): Remove.
7050 (asm_fcmp_op): Likewise.
7051 (*smaxv2df3_vx): Use pattern for quiet comparison.
7052 (*sminv2df3_vx): Likewise.
7053 (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
7054 (*vec_cmpeq<mode>_quiet_nocc): New pattern.
7055 (vec_cmpgt<mode>_quiet_nocc): Likewise.
7056 (vec_cmplt<mode>_quiet_nocc): New expander.
7057 (vec_cmpge<mode>_quiet_nocc): New pattern.
7058 (vec_cmple<mode>_quiet_nocc): New expander.
7059 (*vec_cmpeq<mode>_signaling_nocc): New pattern.
7060 (*vec_cmpgt<mode>_signaling_nocc): Likewise.
7061 (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
7062 (*vec_cmpge<mode>_signaling_nocc): Likewise.
7063 (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
7064 (vec_cmpungt<mode>): New expander.
7065 (vec_cmpunge<mode>): Likewise.
7066 (vec_cmpuneq<mode>): Use quiet patterns.
7067 (vec_cmpltgt<mode>): Allow only on z14+.
7068 (vec_cmpordered<mode>): Use quiet patterns.
7069 (vec_cmpunordered<mode>): Likewise.
7070 (VEC_CMP_EXPAND): Add ungt and unge.
7072 2019-10-11 Jan Hubicka <hubicka@ucw.cz>
7074 * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
7076 * lto-streamer-out.c: Include tree-dfa.h.
7077 (output_cfg): Do not use cfun.
7078 (lto_prepare_function_for_streaming): New.
7079 (output_function): Do not push cfun; do not initialize loop optimizer.
7080 * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
7081 * passes.c (ipa_write_summaries): Use it.
7082 (ipa_write_optimization_summaries): Do not modify bodies.
7083 * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
7084 * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
7085 * tree-ssa-dse.c (pass_dse::execute): Update use of
7086 renumber_gimple_stmt_uids.
7087 * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
7089 2019-10-11 Kewen Lin <linkw@gcc.gnu.org>
7091 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
7092 vec_promote_demote cost to 1 for non-Power7 VSX architectures.
7094 2019-10-10 Joseph Myers <joseph@codesourcery.com>
7096 * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
7098 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
7099 Also define DFP macros for these conditions.
7100 [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
7101 DEC128_SUBNORMAL_MIN): Do not define.
7102 [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
7103 (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
7105 2019-10-10 Xiong Hu Luo <luoxhu@linux.ibm.com>
7106 Sandra Loosemore <sandra@codesourcery.com>
7109 * doc/lto.texi (IPA): Reference to the IPA passes.
7110 * doc/passes.texi (Pass manager): Add node IPA passes and
7111 description for each IPA pass.
7113 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7115 * ipa-reference.c: Do not include splay-tree.h
7116 (reference_vars_to_consider): Turn to hash map.
7117 (get_static_name, ipa_init, analyze_function, propagate,
7118 stream_out_bitmap, ipa_reference_write_optimization_summary,
7119 ipa_reference_write_optimization_summary): Update.
7121 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7123 * ipa-reference.c (propagate): Fix releasing of IPA summaries.
7125 2019-10-10 Iain Sandoe <iain@sandoe.co.uk>
7127 * config/darwin.c: Lookup Objective C metadata and force indirection
7130 2019-10-10 Michael Meissner <meissner@linux.ibm.com>
7132 * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
7134 (mem_operand_gpr): Add check for prefixed addresses.
7135 (mem_operand_ds_form): Add check for prefixed addresses.
7136 (rs6000_legitimate_offset_address_p): If we support prefixed
7137 addresses, check for a 34-bit offset instead of 16-bit.
7138 (rs6000_legitimate_address_p): Add check for prefixed addresses.
7139 Do not allow load/store with update if the address is prefixed.
7140 (rs6000_mode_dependent_address): If we support prefixed
7141 addresses, check for a 34-bit offset instead of 16-bit.
7143 2019-10-10 Ilya Leoshkevich <iii@linux.ibm.com>
7146 * config/s390/vector.md (vcond_comparison_operator): New
7148 (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
7150 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7153 * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
7155 * configure.ac (--with-documentation-root-url): New option.
7156 * configure: Regenerate.
7157 * diagnostic-format-json.cc (json_end_diagnostic): If there is an
7158 option URL, add it as a new string field of the diagnostic option.
7159 * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
7160 (print_option_information): If get_option_url is non-NULL, call
7161 it, and if the result is non-NULL, potentially emit an escape
7162 sequence to markup the option text with the resulting URL.
7163 * diagnostic.h (diagnostic_context::get_option_url): New callback.
7164 * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
7165 example of JSON output.
7166 * opts-diagnostic.h (get_option_url): New decl.
7167 * opts.c (get_option_url): New function.
7168 * toplev.c (general_init): Initialize the get_option_url callback.
7170 2019-10-10 David Malcolm <dmalcolm@redhat.com>
7173 * common.opt (fdiagnostics-urls=): New option.
7174 (diagnostic-url.h): Add SourceInclude.
7175 (diagnostic_url_rule): New enum.
7176 * diagnostic-color.c: Include "diagnostic-url.h".
7177 (diagnostic_urls_enabled_p): New function.
7178 * diagnostic-url.h: New file.
7179 * diagnostic.c: Include "diagnostic-url.h".
7180 (diagnostic_urls_init): New function.
7181 * diagnostic.h (diagnostic_urls_init): New decl.
7182 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
7183 -fdiagnostics-urls to the list.
7184 (-fdiagnostics-urls): New option.
7185 * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
7186 (driver::global_initializations): Call diagnostic_urls_init.
7187 * opts-global.c (init_options_once): Likewise.
7188 * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
7189 * pretty-print.c (pretty_printer::pretty_printer): Initialize
7191 (pp_begin_url): New function.
7192 (pp_end_url): New function.
7193 (selftest::test_urls): New selftest.
7194 (selftest::pretty_print_c_tests): Call it.
7195 * pretty-print.h (pretty_printer::show_urls): New field.
7196 (pp_begin_url): New decl.
7197 (pp_end_url): New decl.
7199 2019-10-10 Uroš Bizjak <ubizjak@gmail.com>
7202 * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
7204 2019-10-10 Oleg Endo <olegendo@gcc.gnu.org>
7207 * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
7208 * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
7209 also for TARGET_FPU_SH4_300.
7210 (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
7212 * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
7213 (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
7214 (*negsf2_i): Split into ...
7215 (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
7216 (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
7217 (**abssf2_i): Split into ...
7218 (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
7219 (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
7220 (*negdf2_i): Split into ...
7221 (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
7222 (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
7223 (**abssf2_i): Split into ...
7224 (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
7226 2019-10-10 Richard Biener <rguenther@suse.de>
7229 * opts.c (finish_options): Do not influence global --params
7230 from options that are adjustable per function.
7231 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
7232 Apply --param adjustment based on active cost-model.
7233 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
7234 further store-sinking when vectorization or if-conversion
7237 2019-10-10 Jan Hubicka <hubicka@ucw.cz>
7240 * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
7241 rather than ggc_alloc_cleared to alloc symbol table.
7242 * toplev.c (general_init): Likewise.
7243 * cgraph.h (symbol_table): Explicitly construct every field.
7245 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7247 * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
7249 * config.gcc: Add z15 as option for --with-arch and --with-tune
7251 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
7252 error reporting for unsupported builtins.
7253 * config/s390/s390-opts.h (enum processor_type): Rename
7254 PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
7255 * config/s390/8561.md: Rename arch13 to z15 throughout the file.
7256 * config/s390/driver-native.c (s390_host_detect_local_cpu):
7258 * config/s390/s390-builtins.def: Likewise.
7259 * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
7260 (s390_expand_builtin): Add missing check for unsupported builtins.
7261 (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
7262 (s390_rtx_costs): Likewise.
7263 (s390_get_sched_attrmask): Rename arch13 to z15.
7264 (s390_get_unit_mask): Likewise.
7265 (s390_is_fpd): Likewise.
7266 (s390_is_fxd): Likewise.
7267 * config/s390/s390.h (enum processor_flags): Likewise.
7268 * config/s390/s390.md: Likewise.
7269 * config/s390/vector.md: Likewise.
7270 * config/s390/vx-builtins.md: Likewise.
7271 * config/s390/s390.opt: Add z15 to processor_type value.
7273 2019-10-10 Andreas Krebbel <krebbel@linux.ibm.com>
7276 * config/s390/s390-protos.h (s390_output_split_stack_data): Add
7278 * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
7279 ("split_stack_data", "split_stack_call")
7280 ("split_stack_call_<mode>", "split_stack_cond_call")
7281 ("split_stack_cond_call_<mode>"): Remove.
7282 ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
7284 * config/s390/s390.c (s390_output_split_stack_data): New function.
7285 (s390_expand_split_stack_prologue): Use the merged expander.
7287 2019-10-09 Martin Sebor <msebor@redhat.com>
7289 PR tree-optimization/90879
7290 * builtins.c (check_access): Avoid using maxbound when null.
7291 * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
7292 * doc/invoke.texi (-Wstring-compare): Document new warning option.
7293 * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
7295 (get_range_strlen): Overwrite initial maxbound when non-null.
7296 * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
7298 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
7299 (used_only_for_zero_equality): New function.
7300 (handle_builtin_memcmp): Call it.
7301 (determine_min_objsize): Return an integer instead of tree.
7302 (get_len_or_size, strxcmp_eqz_result): New functions.
7303 (maybe_warn_pointless_strcmp): New function.
7304 (handle_builtin_string_cmp): Call it. Fold zero-equality of strcmp
7305 between a longer string and a smaller array.
7306 (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
7308 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7310 * config/darwin.c (darwin_override_options): Make the check for
7311 Objective-C ABI version more specific for 64bit code.
7313 2019-10-09 Iain Sandoe <iain@sandoe.co.uk>
7315 * config/darwin.c (machopic_indirect_data_reference): Set flag to
7316 indicate that the new symbol is an indirection.
7317 (machopic_indirect_call_target): Likewise.
7318 * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
7319 (MACHO_SYMBOL_INDIRECTION_P): New.
7320 (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
7322 2019-10-08 Jason Merrill <jason@redhat.com>
7324 * doc/invoke.texi: Document -fconcepts-ts.
7326 2019-10-09 Richard Biener <rguenther@suse.de>
7328 * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
7329 allow stmts other than GIMPLE_ASSIGN in nested cycles.
7331 2019-10-08 Richard Biener <rguenther@suse.de>
7333 * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
7334 (_stmt_vec_info::force_single_cycle): Likewise.
7335 (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
7336 (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
7337 * tree-vect-loop.c (vectorizable_reduction): Set
7338 STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
7339 (vect_transform_reduction): Use them to remove redundant code.
7340 (vect_transform_cycle_phi): Likewise.
7342 2019-10-08 Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
7344 PR tree-optimization/90836
7345 * match.pd (popcount): New pattern.
7347 2019-10-08 Martin Sebor <msebor@redhat.com>
7351 * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
7352 again once nbytes has been set. Set the access size when not yet set.
7354 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7356 * config/darwin.c (machopic_select_section): Remove dead code for
7357 old Objective-C section selection method, replace with unreachable.
7359 2019-10-08 Iain Sandoe <iain@sandoe.co.uk>
7361 * config/darwin.c (machopic_indirect_data_reference): Check for
7362 required indirections before making direct access to defined
7364 (machopic_output_indirection): Place the indirected pointes for
7365 required indirections into the non-lazy symbol pointers section.
7366 (darwin_encode_section_info):
7367 * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
7368 (MACHO_SYMBOL_MUST_INDIRECT_P): New.
7370 2019-10-08 Uroš Bizjak <ubizjak@gmail.com>
7373 * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
7374 instead of ALL_SSE_REG to check if function call preserves some
7375 256-bit SSE registers.
7377 2019-10-08 Tulio Magno Quites Machado Filho <tuliom@linux.ibm.com>
7379 * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
7380 LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
7381 MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
7383 2019-10-08 Richard Biener <rguenther@suse.de>
7385 * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
7386 (_stmt_vec_info::is_reduc_info): Add.
7387 (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
7388 (vectorizable_condition): Remove.
7389 (vectorizable_shift): Likewise.
7390 (vectorizable_reduction): Adjust.
7391 (info_for_reduction): New.
7392 * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
7393 (vect_analyze_scalar_cycles_1): ... here.
7394 (vect_analyze_loop_operations): Adjust.
7395 (needs_fold_left_reduction_p): Simplify for single caller.
7396 (vect_is_simple_reduction): Likewise. Remove stmt restriction
7397 for nested cycles not part of double reductions.
7398 (vect_model_reduction_cost): Pass in the reduction type.
7399 (info_for_reduction): New function.
7400 (vect_create_epilog_for_reduction): Use it, access reduction
7401 meta off the stmt info it returns. Use STMT_VINFO_REDUC_TYPE
7402 instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7403 (vectorize_fold_left_reduction): Remove pointless assert.
7404 (vectorizable_reduction): Analyze the full reduction when
7405 visiting the outermost PHI. Simplify. Use STMT_VINFO_REDUC_TYPE
7406 instead of STMT_VINFO_VEC_REDUCTION_TYPE. Direct reduction
7407 stmt code-generation to vectorizable_* in most cases. Verify
7408 code-generation only for cases handled by
7409 vect_transform_reductuon.
7410 (vect_transform_reduction): Use info_for_reduction to get at
7411 reduction meta. Simplify.
7412 (vect_transform_cycle_phi): Likewise.
7413 (vectorizable_live_operation): Likewise.
7414 * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
7415 at the PHI node for STMT_VINFO_REDUC_TYPE.
7416 * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
7417 longer necessary code.
7418 * tree-vect-stmts.c (vectorizable_shift): Make static again.
7419 (vectorizable_condition): Likewise. Get at reduction related
7420 info via info_for_reduction.
7421 (vect_analyze_stmt): Adjust.
7422 (vect_transform_stmt): Likewise.
7423 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
7424 STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
7426 2019-10-08 Joseph Myers <joseph@codesourcery.com>
7428 * doc/invoke.texi (-ffp-int-builtin-inexact): Document
7429 -fno-fp-int-builtin-inexact default for C2X.
7431 2019-10-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7432 Richard Biener <rguenther@suse.de>
7434 PR tree-optimization/91532
7435 * tree-if-conv.c: Include tree-ssa-dse.h.
7436 (ifcvt_local_dce): Change param from bb to loop,
7437 and call dse_classify_store.
7438 (tree_if_conversion): Pass loop instead of loop->header as arg
7440 * tree-ssa-dse.c: Include tree-ssa-dse.h.
7441 (delete_dead_or_redundant_assignment): Remove static qualifier from
7442 declaration, and add prototype in tree-ssa-dse.h.
7443 (dse_store_status): Move to tree-ssa-dse.h.
7444 (dse_classify_store): Remove static qualifier and add new tree param
7445 stop_at_vuse, and add prototype in tree-ssa-dse.h.
7446 * tree-ssa-dse.h: New header.
7448 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7450 * config/darwin.c (machopic_output_indirection): Don't put
7451 hidden symbol indirections into the .data section, use the
7452 non-lazy symbol pointers section as normal.
7453 (darwin_encode_section_info): Record if a symbol is hidden.
7454 * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
7455 (MACHO_SYMBOL_HIDDEN_VIS_P): New.
7457 2019-10-07 Iain Sandoe <iain@sandoe.co.uk>
7459 * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
7460 predicates instead of accessing bits directly.
7461 (machopic_indirect_call_target): Likewise.
7462 (machopic_output_indirection): Likewise.
7463 (darwin_encode_section_info): Improve description. Use renamed
7464 symbol flags. Use predicate macros for variables and functions.
7466 Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
7467 Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
7468 Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
7469 (MACHO_SYMBOL_VARIABLE_P): New.
7470 (MACHO_SYMBOL_DEFINED_P):New.
7471 (MACHO_SYMBOL_STATIC_P): New.
7472 * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
7473 (SYMBOL_FLAG_SUBT_DEP): New.
7474 * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
7476 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7478 * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
7479 (msp430_expand_epilogue): Likewise.
7480 * config/msp430/predicates.md: Likewise.
7481 * config/msp430/msp430.md: Likewise.
7482 Replace blocks of 8 spaces with tabs.
7484 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7486 * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
7487 * config/msp430/msp430.c (msp430_split_addsi): New.
7488 * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
7489 a block of C code for splitting addsi.
7491 2019-10-07 Uroš Bizjak <ubizjak@gmail.com>
7493 * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
7494 ix86_expand_rounddf_32): Reorder functions.
7495 * config/i386/i386-protos.h: Update.
7497 2019-10-07 Jozef Lawrynowicz <jozef.l@mittosystems.com>
7499 * config.in: Regenerate.
7500 * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
7501 Add new "Yx" constraint.
7502 * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
7504 * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
7506 * config/msp430/msp430.c (msp430_option_override): Allow the lower
7507 code/data region to be selected in the small memory model.
7508 (msp430_section_attr): Don't warn if the "section" and "lower"
7509 attributes are used together.
7510 (msp430_handle_generic_attribute): Likewise.
7511 (msp430_var_in_low_mem): New function.
7512 (TARGET_ENCODE_SECTION_INFO): Define.
7513 (msp430_encode_section_info): New function.
7514 (gen_prefix): Return early in the small memory model.
7515 Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
7516 ".lower" prefix if -m{code,data}-region=lower have been passed.
7517 (msp430_output_aligned_decl_common): Emit common symbols when
7518 -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
7520 (TARGET_ASM_FILE_END): Define.
7521 (msp430_file_end): New function.
7522 (msp430_do_not_relax_short_jumps): Allow relaxation when
7523 function will be in the lower region.
7524 (msp430_op_not_in_high_mem): New function.
7525 (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
7526 the 'X' operand selector.
7527 Clarify comment for 'x' operand selector.
7528 * config/msp430/msp430.h (LINK_SPEC): Propagate
7529 -m{code,data}-region to the linker via spec function
7530 msp430_propagate_region_opt.
7531 (msp430_propagate_region_opt): New prototype.
7532 (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
7533 (SYMBOL_FLAG_LOW_MEM): Define.
7534 * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
7536 (zero_extendqihi2): Fix operand number used by "%X" selector.
7537 (zero_extendqisi2): Likewise.
7538 (zero_extendhisi2): Likewise.
7539 (movqi): Use "Yx" constraint in place of "%X" operand selector.
7544 (addhi3_cy): Likewise.
7545 (addchi4_cy): Likewise.
7549 (bic<mode>3): Likewise.
7550 (and<mode>3): Likewise.
7551 (ior<mode>3): Likewise.
7552 (xor<mode>3): Likewise.
7553 (slli_1): Add missing "%X" operand selector.
7561 (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
7563 (cbranchhi4_real): Likewise.
7564 (cbranchqi4_reversed): Likewise.
7565 (cbranchhi4_reversed): Likewise.
7566 (*bitbranch<mode>4): Likewise.
7567 (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
7568 * config/msp430/msp430.opt (mcode-region=): Set default to
7569 MSP430_REGION_LOWER. Improve docstring.
7570 (mdata-region=): Likewise.
7571 (muse-lower-region-prefix): New option.
7572 * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
7573 mdata-region=none multilib.
7574 (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
7575 mdata-region=none multilib.
7576 MULTILIB_EXCEPTIONS: Remove.
7577 MULTILIB_REQUIRED: Define.
7578 * configure: Regenerate.
7579 * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
7580 HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
7581 * doc/extend.texi: Clarify comment for {upper,lower,either}
7582 function attributes.
7583 Add separate description for "lower" variable attribute.
7585 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7588 * optabs-tree.c (vcond_icode_p): New function.
7589 (vcond_eq_icode_p): Likewise.
7590 (expand_vec_cond_expr_p): Use vcond_icode_p and
7592 * optabs.c (can_vcond_compare_p): New function.
7593 * optabs.h (can_vcond_compare_p): Likewise.
7595 2019-10-07 Ilya Leoshkevich <iii@linux.ibm.com>
7598 * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
7599 caller passes a non-trapping condition.
7600 (is_gimple_condexpr): Allow trapping conditions.
7601 (is_gimple_condexpr_1): New helper function.
7602 (is_gimple_condexpr_for_cond): New function, acts like old
7604 * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
7605 * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
7606 VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
7607 * gimplify.c (gimplify_cond_expr): Use
7608 is_gimple_condexpr_for_cond.
7609 (gimplify_expr): Allow is_gimple_condexpr_for_cond.
7610 * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
7612 (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
7613 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
7614 is_gimple_condexpr_for_cond, remove pointless tmp check
7615 (forward_propagate_into_cond): Remove pointless tmp check.
7617 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7619 * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
7620 match that of other gsi_next_* functions. Adjust the comment.
7621 (gsi_start_nonvirtual_phis): New function.
7622 * ipa-icf.c (sem_function::compare_phi_node): Update uses of
7623 gsi_next_nonvirtual_phi accordingly. (No functional change.)
7625 2019-10-07 Vladislav Ivanishin <vlad@ispras.ru>
7627 * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
7628 setjmp situation here. Fix a verb's ending: "the exact variables or
7629 elements for which there are warnings depends" -> "... depend".
7631 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7633 * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
7635 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7637 * ipa-prop.c (ipa_vr::nonzero_p): New.
7638 (ipcp_update_vr): Use nonzero_p instead of open-coding check for
7640 * ipa-prop.h (class ipa_vr): Add nonzero_p.
7641 * tree-vrp.c (range_has_numeric_bounds_p): New.
7642 (range_int_cst_p): Use range_has_numeric_bounds_p.
7643 (get_range_op_handler): New.
7644 (supported_types_p): New.
7645 (defined_ranges_p): New.
7646 (drop_undefines_to_varying): New.
7647 (range_fold_binary_symbolics_p): New.
7648 (range_fold_unary_symbolics_p): New.
7649 (range_fold_unary_expr): Extract out into above functions.
7650 (range_fold_binary_expr): Same.
7651 (value_range_base::normalize_addresses): New.
7652 (value_range_base::normalize_symbolics): Normalize addresses.
7653 * tree-vrp.h (class value_range_base): Add normalize_addresses.
7655 2019-10-07 Aldy Hernandez <aldyh@redhat.com>
7657 * tree-vrp.c (value_range_base::singleton_p): Use
7658 value_range_base::num_pairs instead of vrp_val_is* to check
7659 if a range has one sub-range.
7661 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7663 * ira-lives.c (check_and_make_def_conflict): Handle cases in which
7664 DEF is not a true earlyclobber but is tied to a specific input
7665 operand, and so is effectively earlyclobber wrt inputs that have
7667 (make_early_clobber_and_input_conflicts): Pass this case to the above.
7669 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7671 * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
7672 (pod_mode): Mark operators likewise.
7673 (scalar_int_mode): Mark non-default constructors and
7674 operators with CONSTEXPR.
7675 (scalar_float_mode, scalar_mode, complex_mode): Likewise.
7676 (fixed_size_mode): Likewise.
7678 2019-10-07 Richard Sandiford <richard.sandiford@arm.com>
7681 * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
7682 and wrap the unspec_volatile in a parallel.
7683 (*avx_vzeroupper): New define_insn. Use a match_parallel around
7684 the unspec_volatile.
7685 * config/i386/predicates.md (vzeroupper_pattern): Expect the
7686 unspec_volatile to be wrapped in a parallel.
7687 * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
7688 (ix86_add_reg_usage_to_vzerouppers): New functions.
7689 (rest_of_handle_insert_vzeroupper): Use them to add register
7690 usage information to the vzeroupper instructions.
7692 2019-10-07 Richard Biener <rguenther@suse.de>
7694 PR tree-optimization/91975
7695 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
7698 2019-10-06 Richard Sandiford <richard.sandiford@arm.com>
7700 * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
7701 function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
7703 2019-10-06 Iain Sandoe <iain@sandoe.co.uk>
7705 * config/darwin.c (darwin_override_options): Adjust objective-c
7706 ABI version error messages to avoid punctuation and contracted
7709 2019-10-05 Jan Hubicka <hubicka@ucw.cz>
7711 * ipa-inline.c: Fix type; compute size rather than self_size
7712 for size of caller function.
7714 2019-10-05 Iain Sandoe <iain@sandoe.co.uk>
7717 * config/darwin.c (darwin_rodata_section): Add relocation flag,
7718 choose const_data section for constants with relocations.
7719 (machopic_select_section): Pass relocation flag to
7720 darwin_rodata_section ().
7722 2019-10-05 Jakub Jelinek <jakub@redhat.com>
7724 PR tree-optimization/91734
7725 * generic-match-head.c: Include fold-const-call.h.
7726 * match.pd (sqrt(x) cmp c): Check the boundary value and
7727 in case inexact computation of c*c affects comparison of the boundary,
7728 turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
7729 or GT_EXPR into GE_EXPR. Punt for sqrt comparisons against NaN and
7730 for -frounding-math. For c2, try the next smaller or larger floating
7731 point constant depending on comparison code and if it has the same
7732 sqrt as c2, use it instead of c2.
7734 2019-10-04 Martin Sebor <msebor@redhat.com>
7737 * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
7738 MEM_REF right operand. Avoid failing for MEM_REF assignments from
7739 uninitialized objects.
7741 2019-10-04 Martin Sebor <msebor@redhat.com>
7743 * builtins.c (compute_objsize): Add an argument.
7744 * tree-object-size.c (addr_object_size): Same.
7745 (compute_builtin_object_size): Same.
7746 * tree-object-size.h (compute_builtin_object): Same.
7748 2019-10-04 Jan Hubicka <hubicka@ucw.cz>
7750 * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
7752 2019-10-04 Rafael Tsuha <rafael.tsuha@usp.br>
7754 * match.pd (sinh (x) / cosh (x)): New simplification rule.
7756 2019-10-04 Martin Jambor <mjambor@suse.cz>
7758 * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
7759 fntype when switching to calling memcpy instead of memset.
7761 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7763 * hash-table.h (hash_table::empty_slow): Don't assign
7764 size_t values to int variables.
7766 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7768 * expr.c (convert_mode_scalar): Remove shadowing local var.
7769 (emit_block_move): Rename local vars.
7770 (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
7771 (emit_push_insn): Rename local vars.
7772 (expand_assignment): Fix wrong mode in assign_stack_temp. Remove
7773 shadowing local vars.
7774 (store_constructor): Remove shadowing local vars. Rename local var.
7775 (store_field, expand_cond_expr_using_cmove,
7776 expand_expr_real_2): Remove shadowing local vars.
7777 (expand_expr_real_1,
7778 do_store_flag): Remove shadowing local vars. Rename local vars.
7780 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7782 * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
7784 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7786 * genmatch.c (commutate): Rename local var.
7787 (lower_cond): Reuse local var.
7788 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
7789 dt_operand::gen, dt_operand::gen_gimple_expr,
7790 dt_simplify::gen): Add a param. Rename generated vars.
7791 (decision_tree::insert_operand,
7792 (capture_info::walk_match, capture_info::walk_result,
7793 capture_info::walk_c_expr): Rename local vars.
7794 (expr::gen_transform): Rename generated vars.
7795 Use snprintf. Rename local vars.
7796 (capture::gen_transform, dt_operand::get_name,
7797 dt_operand::gen_opname): Rename generated vars.
7798 (write_predicate): Adjust call to gen_kids.
7799 (parser::get_internal_capture_id): Rename generated vars.
7800 (parser::parse_expr): Rename local vars.
7801 (parser::parse_if): Remove local var.
7802 (parser::parse_pattern, add_operator): Rename local vars.
7804 2019-10-04 Joseph Myers <joseph@codesourcery.com>
7806 * builtins.def (DEF_C2X_BUILTIN): New macro.
7807 (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
7808 (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
7809 (strndup): Use DEF_C2X_BUILTIN.
7810 * coretypes.h (enum function_class): Add function_c2x_misc.
7812 2019-10-04 Maya Rashish <coypu@sdf.org>
7814 * ira-color.c (update_costs_from_allocno): Call
7815 ira_init_register_move_cost_if_necessary.
7817 2019-10-04 Jeff Law <law@redhat.com>
7819 * config/h8300/h8300.md (cpymemsi): Disable.
7820 (movmd, movmd_internal_<mode>, movstr, movsd):
7821 (movstr, movsd, stpcpy_internal_<mode>: Likewise.
7822 (movmd splitter, movsd splitter): Likewise.
7824 * range-op.cc (range_tests): Avoid two tests when ints and
7825 shorts are the same size.
7827 2019-10-04 Richard Biener <rguenther@suse.de>
7830 * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
7833 2019-10-04 Richard Biener <rguenther@suse.de>
7835 PR tree-optimization/91982
7836 * tree-vect-loop.c (vectorizable_live_operation): Also guard
7837 against EXTRACT_LAST_REDUCTION.
7838 * tree-vect-stmts.c (vect_transform_stmt): Likewise.
7840 2019-10-04 Aldy Hernandez <aldyh@redhat.com>
7842 * range-op.o (value_range_from_overflowed_bounds): Rename from
7843 adjust_overflow_bound.
7844 (value_range_with_overflow): Rename from
7845 create_range_with_overflow.
7846 (create_possibly_reversed_range): Adjusted for above renames.
7847 (operator_*::wi_fold): Same.
7848 (cross_product_operator::wi_cross_productor): Same.
7850 2019-10-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
7852 * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
7853 -Wshadow=compatible-local): Fix description.
7854 Add an example where -Wshadow=compatible-local does not
7857 2019-10-03 John David Anglin <danglin@gcc.gnu.org>
7859 * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
7861 * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
7862 (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
7864 2019-10-03 Aaron Sawdey <acsawdey@linux.ibm.com>
7866 * expr.c (emit_block_move_hints): Slightly cleaner fix to
7867 can_move_by_pieces issue.
7869 2019-10-03 Iain Sandoe <iain@sandoe.co.uk>
7872 * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
7873 (darwin_driver_init): Use the sysroot provided by SDKROOT when that
7874 is available and the user has not set one on the command line.
7876 2019-10-03 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
7879 * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
7880 instead of REGNO equality check on addr.reg.
7882 2019-10-03 Jan Hubicka <hubicka@ucw.cz>
7884 * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
7885 PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
7886 * doc/invoke.texi (inline-heuristics-hint-percent,
7887 inline-heuristics-hint-percent-O2): Document.
7888 * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
7890 (can_inline_edge_by_limits_p): Use it.
7892 2019-10-03 Richard Sandiford <richard.sandiford@arm.com>
7894 * config/arm/arm.c (arm_print_value): Use real_to_decimal
7895 to print CONST_DOUBLEs.
7897 2019-10-03 Andrea Corallo <andrea.corallo@arm.com>
7899 * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
7900 * ipa-prop.c (ipcp_free_transformation_sum): New function.
7901 * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
7903 2019-10-03 Aldy Hernandez <aldyh@redhat.com>
7905 * Makefile.in (OBJS): Add range.o and range-op.o.
7906 Remove wide-int-range.o.
7907 * function-tests.c (test_ranges): New.
7908 (function_tests_c_tests): Call test_ranges.
7909 * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
7910 range_fold_unary_expr instead of extract_range_from_unary_expr.
7911 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
7912 * range-op.cc: New file.
7913 * range-op.h: New file.
7914 * range.cc: New file.
7915 * range.h: New file.
7916 * selftest.h (range_tests): New prototype.
7917 * ssa.h: Include range.h.
7918 * tree-vrp.c (value_range_base::value_range_base): New
7920 (value_range_base::singleton_p): Do not call
7921 ranges_from_anti_range until sure we will need to.
7922 (value_range_base::type): Rename gcc_assert to
7923 gcc_checking_assert.
7924 (vrp_val_is_max): New argument.
7925 (vrp_val_is_min): Same.
7926 (wide_int_range_set_zero_nonzero_bits): Move from
7928 (extract_range_into_wide_ints): Remove.
7929 (extract_range_from_multiplicative_op): Remove.
7930 (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
7931 from extract_range_from_binary_expr.
7932 (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
7933 from extract_range_from_binary_expr.
7934 (extract_range_from_binary_expr): Remove.
7935 (normalize_for_range_ops): New.
7936 (range_fold_binary_expr): New.
7937 (range_fold_unary_expr): New.
7938 (value_range_base::num_pairs): New.
7939 (value_range_base::lower_bound): New.
7940 (value_range_base::upper_bound): New.
7941 (value_range_base::upper_bound): New.
7942 (value_range_base::contains_p): New.
7943 (value_range_base::invert): New.
7944 (value_range_base::union_): New.
7945 (value_range_base::intersect): New.
7946 (range_compatible_p): New.
7947 (value_range_base::operator==): New.
7948 (determine_value_range_1): Call range_fold_*expr instead of
7949 extract_range_from_*expr.
7950 * tree-vrp.h (class value_range_base): Add new constructors.
7951 Add methods for union_, intersect, operator==, contains_p,
7952 num_pairs, lower_bound, upper_bound, invert.
7953 (vrp_val_is_min): Add handle_pointers argument.
7954 (vrp_val_is_max): Same.
7955 (extract_range_from_unary_expr): Remove.
7956 (extract_range_from_binary_expr): Remove.
7957 (range_fold_unary_expr): New.
7958 (range_fold_binary_expr): New.
7959 * vr-values.c (vr_values::extract_range_from_binary_expr): Call
7960 range_fold_binary_expr instead of extract_range_from_binary_expr.
7961 (vr_values::extract_range_basic): Same.
7962 (vr_values::extract_range_from_unary_expr): Call
7963 range_fold_unary_expr instead of extract_range_from_unary_expr.
7964 * wide-int-range.cc: Remove.
7965 * wide-int-range.h: Remove.
7967 2019-10-02 Michael Meissner <meissner@linux.ibm.com>
7969 * config/rs6000/rs6000.c (mem_operand_gpr): Use
7970 SIGNED_16BIT_OFFSET_EXTRA_P macro.
7971 (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
7972 (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7975 2019-10-02 Joseph Myers <joseph@codesourcery.com>
7977 * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
7978 condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
7979 (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
7980 * glimits.h: Likewise.
7982 2019-10-03 Jakub Jelinek <jakub@redhat.com>
7984 PR rtl-optimization/91976
7985 * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
7986 size is not CONST_INT_P, set pieces_ok to false in that case. Simplify
7987 CONST_INT_P (size) && pieces_ok to pieces_ok. Formatting fix.
7989 2019-10-02 Martin Sebor <msebor@redhat.com>
7991 PR tree-optimization/80936
7992 * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
7994 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
7996 * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
7997 instead of reg_class_contents[ALL_REGS].
7999 2019-09-30 Jason Merrill <jason@redhat.com>
8001 Add some hash_map_safe_* functions like vec_safe_*.
8002 * hash-map.h (default_hash_map_size): New variable.
8003 (create_ggc): Use it as default argument.
8004 (hash_map_maybe_create, hash_map_safe_get)
8005 (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
8007 2019-10-02 Jan Hubicka <hubicka@ucw.cz>
8009 * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
8010 MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
8011 * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
8012 (can_inline_edge_by_limits_p): Use it.
8013 (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
8014 (want_inline_small_function_p): Use O2 bounds.
8015 (edge_badness): LIkewise.
8016 * opts.c (default_options): Add OPT_finline_functions.
8017 * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
8018 PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
8020 * doc/invoke.texi (-finline-functions): Update documentation.
8021 (max-inline-insns-single-O2, max-inline-insns-auto-O2,
8022 inline-min-speedup-O2): Document.
8023 (early-inlining-insns-O2): Simplify docs.
8025 2019-10-02 Alexander Monakov <amonakov@ispras.ru>
8027 PR rtl-optimization/87047
8028 * ifcvt.c (average_cost): New static function. Use it...
8029 (noce_process_if_block): ... here.
8031 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8033 * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
8034 * config/rs6000/rs6000-string.c (expand_block_move): Add
8036 * config/rs6000/rs6000.md (movmemsi): Add new pattern.
8037 (cpymemsi): Add might_overlap parm to expand_block_move() call.
8039 2019-10-02 Aaron Sawdey <acsawdey@linux.ibm.com>
8041 * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
8042 (expand_builtin_memcpy): Use might_overlap parm.
8043 (expand_builtin_mempcpy_args): Use might_overlap parm.
8044 (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
8045 (expand_builtin_memory_copy_args): Add might_overlap parm.
8046 * expr.c (emit_block_move_via_cpymem): Rename to
8047 emit_block_move_via_pattern, add might_overlap parm, use cpymem
8048 or movmem optab as appropriate.
8049 (emit_block_move_hints): Add might_overlap parm, do the right
8050 thing for might_overlap==true.
8051 * expr.h (emit_block_move_hints): Update prototype.
8053 2019-10-02 Eric Botcazou <ebotcazou@adacore.com>
8055 * tree-eh.h (unsplit_eh_edges): Declare.
8056 * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
8057 (unsplit_eh_edges): New function wrapping unsplit_all_eh.
8058 * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
8059 (struct store_immediate_info): Add lp_nr field.
8060 (store_immediate_info::store_immediate_info): Add NR2 parameter and
8061 initialize lp_nr with it.
8062 (struct merged_store_group): Add lp_nr and only_constants fields.
8063 (merged_store_group::merged_store_group): Initialize them.
8064 (merged_store_group::can_be_merged_into): Deal with them.
8065 (pass_store_merging): Rename terminate_and_release_chain into
8066 terminate_and_process_chain.
8067 (pass_store_merging::terminate_and_process_all_chains): Adjust to above
8068 renaming and remove useless assertions.
8069 (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
8070 (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
8071 (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
8072 instead of always recomputing it and compare lp_nr.
8073 (imm_store_chain_info::output_merged_store): If the group is in an
8074 active EH region, register new stores if they can throw. Moreover,
8075 if the insertion has created new basic blocks, adjust the PHI nodes
8076 of the post landing pad.
8077 (imm_store_chain_info::output_merged_stores): If the original stores
8078 are in an active EH region, deregister them.
8079 (lhs_valid_for_store_merging_p): Prettify.
8080 (adjust_bit_pos): New function extracted from...
8081 (mem_valid_for_store_merging): ...here. Use it for the base address
8082 and also for the offset if it is the addition of a constant.
8083 (lp_nr_for_store): New function.
8084 (pass_store_merging::process_store): Change return type to bool.
8085 Call lp_nr_for_store to initialize the store info. Propagate the
8086 return status of various called functions to the return value.
8087 (store_valid_for_store_merging_p): New predicate.
8088 (enum basic_block_status): New enumeration.
8089 (get_status_for_store_merging): New function.
8090 (pass_store_merging::execute): If the function can throw and catch
8091 non-call exceptions, unsplit the EH edges on entry and clean up the
8092 CFG on exit if something changed. Call get_status_for_store_merging
8093 for every basic block and keep the chains open across basic blocks
8094 when possible. Terminate and process open chains at the end, if any.
8096 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8098 * reginfo.c (globalize_reg): Fix shadowed variable in
8101 2019-10-02 Martin Jambor <mjambor@suse.cz>
8103 * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
8104 do not compute some stuff when set.
8105 (cgraph_node::create_edge): Likewise.
8106 (cgraph_node::create_indirect_edge): Renamed last parameter to
8107 coning_p and flipped its meaning, don't even calculate
8108 inline_failed when set.
8109 * cgraph.h (cgraph_node::create_edge): Add new parameter.
8110 (symbol_table::::create_edge): Likewise.
8111 (cgraph_node::create_indirect_edge): Rename last parameter, flip
8113 * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
8114 call graph edge creating functions.
8116 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8119 * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
8122 2019-10-02 Shahab Vahedi <shahab@synopsys.com>
8124 * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
8126 2019-10-02 Richard Biener <rguenther@suse.de>
8128 * tree-vectorizer.h (vect_transform_reduction): Declare.
8129 * tree-vect-stmts.c (vect_transform_stmt): Use it.
8130 * tree-vect-loop.c (vectorizable_reduction): Split out reduction
8131 stmt transform to ...
8132 (vect_transform_reduction): ... this.
8134 2019-10-02 Tobias Burnus <tobias@codesourcery.com>
8136 * omp-low.c (lower_omp_target): Dereference optional argument
8137 to work with the right pointer.
8139 2019-10-02 Kwok Cheung Yeung <kcy@codesourcery.com>
8141 * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
8143 (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
8144 * langhooks.h (omp_is_optional_argument): New hook.
8145 * omp-general.c (omp_is_optional_argument): New.
8146 * omp-general.h (omp_is_optional_argument): New declaration.
8147 * omp-low.c (lower_omp_target): Create temporary for received value
8148 and take the address for new_var if the original variable was a
8149 DECL_BY_REFERENCE. Use size of referenced object when a
8150 pass-by-reference optional argument used as argument to firstprivate.
8152 2019-10-02 Jakub Jelinek <jakub@redhat.com>
8154 PR tree-optimization/91940
8155 * tree-vect-patterns.c: Include tree-vector-builder.h and
8157 (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
8158 unpromoting the argument back to uint16_t, or by converting into a
8159 rotate, or into shifts plus ior.
8161 2019-10-02 Richard Biener <rguenther@suse.de>
8163 * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
8165 (vect_transform_cycle_phi): Declare.
8166 * tree-vect-stmts.c (vect_transform_stmt): Call
8167 vect_transform_cycle_phi.
8168 * tree-vect-loop.c (vectorizable_reduction): Split out
8169 PHI transformation stage to ...
8170 (vect_transform_cycle_phi): ... here.
8172 2019-10-02 Richard Sandiford <richard.sandiford@arm.com>
8175 * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
8176 eliminable registers.
8177 (make_hard_regno_live): Likewise, and don't make them live.
8179 2019-10-01 David Malcolm <dmalcolm@redhat.com>
8181 * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
8182 Call pp_emit_prefix.
8183 (layout::print_source_line): Likewise.
8184 (layout::start_annotation_line): Likewise.
8185 (diagnostic_show_locus): Remove call to temporarily clear the
8187 (selftest::test_one_liner_fixit_remove): Add test coverage for the
8188 interaction of pp_set_prefix with rulers and fix-it hints.
8189 * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
8190 prefix when calling diagnostic_show_locus, rather than destroying
8192 (print_parseable_fixits): Temporarily clear prefix.
8193 * pretty-print.c (pp_format): Save and restore line_length, rather
8194 than assuming it is zero.
8195 (pp_output_formatted_text): Remove assertion that line_length is
8198 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8200 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
8202 (nonoverlapping_refs_since_match_p): ... this; handle also
8204 (alias_stats): Update stats.
8205 (dump_alias_stats): Likewise.
8206 (cheap_array_ref_low_bound): New function.
8207 (aliasing_matching_component_refs_p): Add partial_overlap
8209 pass it to nonoverlapping_refs_since_match_p.
8210 (aliasing_component_refs_walk): Update call of
8211 aliasing_matching_component_refs_p
8212 (nonoverlapping_array_refs_p): New function.
8213 (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
8214 indirect_refs_may_alias_p): Update calls of
8215 nonoverlapping_refs_since_match_p.
8217 2019-10-01 Maya Rashish <coypu@sdf.org>
8220 * ira-color.c (allocno_copy_cost_saving): Call
8221 ira_init_register_move_cost_if_necessary.
8223 2019-10-01 Maciej W. Rozycki <macro@wdc.com>
8225 * Makefile.in (gnat_install_lib): New variable.
8226 * configure.ac: Substitute it.
8227 * configure: Regenerate.
8229 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8232 * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
8233 is matched with non-C++ type
8235 2019-10-01 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
8237 * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
8240 2019-10-01 Jan Hubicka <hubicka@ucw.cz>
8242 * doc/invoke.texi (early-inlining-insns-O2): Document.
8243 (early-inlining-insns): Update.
8244 * params.def (early-inlining-insns-O2): New bound.
8245 (early-inlining-insns): Update docs.
8246 * ipa-inline.c (want_early_inline_function_p): Use new bound.
8248 2019-10-01 Oleg Endo <olegendo@gcc.gnu.org>
8251 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
8252 sh_check_add_incdec_notes to preserve REG_INC notes when replacing
8253 a memory access insn.
8255 2019-10-01 Bill Schmidt <wschmidt@linux.ibm.com>
8257 * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
8260 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8263 * config/s390/s390.c (s390_expand_vec_compare): Use
8264 gen_vec_cmpordered and gen_vec_cmpunordered.
8265 * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
8266 vec_unordered): Delete.
8267 (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
8268 (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
8269 (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
8270 (vec_cmp<code>): Generic dispatcher.
8272 2019-10-01 Ilya Leoshkevich <iii@linux.ibm.com>
8275 * config/s390/vector.md (V_HW): Add V1TI in order to make
8276 vcond$a$b generate vcondv1tiv1tf.
8278 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8280 PR rtl-optimization/91948
8281 * ira-build.c (ira_create_allocno): Initialize
8282 ALLOCNO_CROSSED_CALLS_ABIS.
8283 * ira-color.c (allocno_reload_assign): Pass hard_regno rather
8284 than regno to ira_need_caller_save_p.
8286 2019-10-01 Alexandre Oliva <oliva@adacore.com>
8288 * config/i386/i386-options.c
8289 (ix86_recompute_optlev_based_flags): New, moved out of...
8290 (ix86_option_override_internal): ... this. Call it.
8291 (ix86_override_options_after_change): Call it here too.
8294 * dwarf2out.c (override_type_for_decl_p): New.
8295 (gen_variable_die): Use it.
8297 2019-10-01 Richard Biener <rguenther@suse.de>
8299 * tree-vect-loop.c (vectorizable_reduction): Move variables
8300 to where they are used.
8302 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8304 * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
8305 (build_def_use): Use PC instead of CC0 in a comment.
8307 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8309 * rtl.def (CLOBBER_HIGH): Delete.
8310 * doc/rtl.texi (clobber_high): Remove documentation.
8311 * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
8312 (reg_is_clobbered_by_clobber_high): Delete.
8313 (gen_hard_reg_clobber_high): Likewise.
8314 * alias.c (record_set): Remove CLOBBER_HIGH handling.
8315 * cfgexpand.c (expand_gimple_stmt): Likewise.
8316 * combine-stack-adj.c (single_set_for_csa): Likewise.
8317 * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
8318 (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
8319 (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
8320 * cse.c (invalidate_reg): Remove clobber_high parameter.
8321 (invalidate): Update call accordingly.
8322 (canonicalize_insn): Remove CLOBBER_HIGH handling.
8323 (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
8324 (count_reg_usage, insn_live_p): Likewise.
8325 * cselib.h (cselib_invalidate_rtx): Remove sett argument.
8326 * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
8327 (cselib_invalidate_rtx_note_stores): Update call accordingly.
8328 (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
8329 (cselib_invalidate_regno, cselib_process_insn): Likewise.
8330 * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
8331 (mark_nonreg_stores_2): Likewise.
8332 * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
8333 (df_get_call_refs): Likewise.
8334 * dwarf2out.c (mem_loc_descriptor): Likewise.
8335 * emit-rtl.c (verify_rtx_sharing): Likewise.
8336 (copy_insn_1, copy_rtx_if_shared_1): Likewise.
8337 (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
8338 * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
8339 * genemit.c (gen_exp, gen_insn): Likewise.
8340 * genrecog.c (validate_pattern, remove_clobbers): Likewise.
8341 * haifa-sched.c (haifa_classify_rtx): Likewise.
8342 * ira-build.c (create_insn_allocnos): Likewise.
8343 * ira-costs.c (scan_one_insn): Likewise.
8344 * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
8345 (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
8346 * jump.c (mark_jump_label_1): Likewise.
8347 * lra-int.h (lra_insn_reg::clobber_high): Delete.
8348 * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
8350 (mark_not_eliminable): Likewise.
8351 * lra-lives.c (process_bb_lives): Likewise.
8352 * lra.c (new_insn_reg): Remove clobber_high parameter.
8353 (collect_non_operand_hard_regs): Likewise. Update call to new
8354 insn_reg. Remove CLOBBER_HIGH handling.
8355 (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling. Update call
8356 to collect_non_operand_hard_regs.
8357 (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
8358 Update call to new_insn_reg.
8359 (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
8360 * postreload.c (reload_cse_simplify, reload_combine_note_use)
8361 (move2add_note_store): Likewise.
8362 * print-rtl.c (print_pattern): Likewise.
8363 * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
8364 (if_test_bypass_p): Likewise.
8365 * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
8366 * reginfo.c (reg_scan_mark_refs): Likewise.
8367 * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
8368 (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
8369 (forget_old_reloads_1): Likewise.
8370 * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
8371 (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
8372 (dbr_schedule): Likewise.
8373 * resource.c (update_live_status, mark_referenced_resources)
8374 (mark_set_resources): Likewise.
8375 * rtl.c (copy_rtx): Likewise.
8376 * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
8377 (note_pattern_stores): Likewise.
8378 (reg_is_clobbered_by_clobber_high): Delete.
8379 * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
8380 CLOBBER_HIGH handling.
8382 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8385 * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
8386 * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
8387 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8388 Handle ARM_PCS_TLSDESC.
8389 (aarch64_tlsdesc_abi_id): New function.
8390 * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
8391 rtx instead of a list of clobbers and clobber_highs.
8392 (tlsdesc_small_<mode>): Update accordingly.
8394 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8396 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
8397 extra callee_abi argument.
8398 * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
8399 Insert a CALLEE_ABI unspec into the call pattern as the second
8400 element in the PARALLEL.
8401 (aarch64_simd_call_p): Delete.
8402 (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
8403 the new CALLEE_ABI element of the PARALLEL.
8404 (aarch64_init_cumulative_args): Get the arm_pcs of the callee
8405 from the function type, if given.
8406 (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
8407 (aarch64_function_arg): Likewise. Return the arm_pcs of the callee
8408 when passed the function_arg_info end marker.
8409 (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
8410 final argument of gen_sibcall.
8411 * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
8412 (call): Make operand 2 a const_int_operand and pass it to expand_call.
8413 Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
8415 (call_value): Likewise operand 3.
8416 (sibcall): Likewise operand 2. Place the unspec before rather than
8418 (sibcall_value): Likewise operand 3.
8419 (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
8420 (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
8421 (*sibcall_insn, *sibcall_value_insn): Likewise. Remove empty
8423 (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
8425 2019-10-01 Richard Sandiford <richard.sandiford@arm.com>
8427 * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
8428 choose_hard_reg_mode.
8429 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8431 2019-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8433 * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
8434 (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
8435 (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
8437 2019-09-30 David Malcolm <dmalcolm@redhat.com>
8439 * diagnostic-show-locus.c (line_label::line_label): Initialize
8441 (line_label::comparator): Reverse the sort order by m_state_idx,
8442 so that when the list is walked backwards the labels appear in
8443 order of insertion into the rich_location.
8444 (line_label::m_has_vbar): New field.
8445 (layout::print_any_labels): When dealing with multiple labels at
8446 the same line and column, only print vertical bars for the one
8447 with the highest label_line.
8448 (selftest::test_one_liner_labels): Update test for multiple labels
8449 to expect the labels to be in the order of insertion into the
8450 rich_location. Add a test for many such labels, where the column
8451 numbers are out-of-order relative to the insertion order.
8453 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8455 * config/i386/i386.h (ix86_frame::expensive_p): New field.
8456 (ix86_frame::expensive_count): Likewise.
8457 * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
8458 of use_fast_prologue_epilogue robust against incidental changes
8461 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
8464 * config/s390/vector.md (vec_unordered<mode>): Call
8465 gen_vec_ordered<mode>.
8467 2019-09-30 Yuliang Wang <yuliang.wang@arm.com>
8469 * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
8470 New pattern for ASRD.
8471 * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
8472 * internal-fn.def (IFN_DIV_POW2): New internal function.
8473 * optabs.def (sdiv_pow2_optab): New optab.
8474 * tree-vect-patterns.c (vect_recog_divmod_pattern):
8475 Modify pattern to support new operation.
8476 * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
8477 * doc/sourcebuild.texi (vect_sdiv_pow2_si):
8478 Document new target selector.
8480 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8482 * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
8483 to test whether we're compiling a vector PCS function and to test
8484 whether the function needs to save a particular register.
8485 Remove the vector PCS handling of df_set_regs_ever_live.
8486 (aarch64_components_for_bb): Use crtl->abi to test whether
8487 the function needs to save a particular register.
8488 (aarch64_process_components): Use crtl->abi to test whether
8489 we're compiling a vector PCS function.
8490 (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
8491 (aarch64_epilogue_uses): Remove handling of vector PCS functions.
8493 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8495 * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
8497 * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
8498 whether the block calls a function that clobbers more registers
8499 than the current function is allowed to.
8500 (aarch64_use_simple_return_insn_p): Delete.
8501 * config/aarch64/aarch64.md (simple_return): Remove condition.
8503 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8505 * function-abi.h (function_abi_aggregator): New class.
8506 * function-abi.cc (function_abi_aggregator::caller_save_regs): New
8508 * ira.c (update_equiv_regs_prescan): New function. Call
8509 set_paradoxical_subreg here rather than...
8510 (update_equiv_regs): ...here.
8511 (ira): Call update_equiv_regs_prescan.
8513 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8515 * hard-reg-set.h (regs_invalidated_by_call): Only define if
8517 (call_used_or_fixed_regs): Likewise.
8518 (call_used_or_fixed_reg_p): Likewise.
8519 * reginfo.c (regs_invalidated_by_call): New macro.
8521 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8523 * shrink-wrap.c: Include function-abi.h.
8524 (requires_stack_frame_p): Use crtl->abi to test whether the
8525 current function can use a register without saving it first.
8527 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8529 * sel-sched-ir.h (_def::crosses_call): Replace with...
8530 (_def::crossed_call_abis): ..this new field.
8531 (def_list_add): Take a mask of ABIs instead of a crosses_call
8533 * sel-sched-ir.c (def_list_add): Likewise. Update initialization
8534 of _def accordingly.
8535 * sel-sched.c: Include function-abi.h.
8536 (hard_regs_data::regs_for_call_clobbered): Delete.
8537 (reg_rename::crosses_call): Replace with...
8538 (reg_rename::crossed_call_abis): ...this new field.
8539 (fur_static_params::crosses_call): Replace with...
8540 (fur_static_params::crossed_call_abis): ...this new field.
8541 (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
8542 (init_hard_regs_data): Use crtl->abi to test which registers the
8543 current function would need to save before it uses them.
8544 (mark_unavailable_hard_regs): Update handling of call-clobbered
8545 registers, using call_clobbers_in_region to find out which registers
8546 might be call-clobbered (but without taking -fipa-ra into account
8547 for now). Remove separate handling of partially call-clobbered
8549 (verify_target_availability): Use crossed_call_abis instead of
8551 (get_spec_check_type_for_insn, find_used_regs): Likewise.
8552 (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
8554 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8556 * sched-deps.c (deps_analyze_insn): Use the ABI of the target
8557 function to test whether a register is fully or partly clobbered.
8559 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8561 * rtlanal.c: Include function-abi.h.
8562 (reg_set_p): Use insn_callee_abi to get the ABI of the called
8563 function and clobbers_reg_p to test whether the register
8565 (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
8566 to get the ABI of the called function and full_reg_clobbers to
8567 get the set of fully call-clobbered registers. Warn about the
8568 pitfalls of using this mode.
8570 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8572 * reload.c: Include function-abi.h.
8573 (find_equiv_reg): Use clobbers_reg_p to test whether either
8574 of the equivalent registers is clobbered by a call.
8575 * reload1.c: Include function-abi.h.
8576 (reg_reloaded_call_part_clobbered): Delete.
8577 (reload): Use crtl->abi to test which registers would need
8578 saving in the prologue before use.
8579 (find_reg): Likewise.
8580 (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
8581 (reload_as_needed): Likewise. Use full_and_partial_reg_clobbers
8582 instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
8584 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8586 * regrename.h (du_head::call_clobber_mask): New field.
8587 (du_head::need_caller_save_reg): Replace with...
8588 (du_head::call_abis): ...this new field.
8589 * regrename.c: Include function-abi.h.
8590 (call_clobbered_in_chain_p): New function.
8591 (check_new_reg_p): Use crtl->abi when deciding whether a register
8592 is free for use after RA. Use call_clobbered_in_chain_p to test
8593 whether a candidate register would be clobbered by a call.
8594 (find_rename_reg): Don't add call-clobber conflicts here.
8595 (rename_chains): Check call_abis instead of need_caller_save_reg.
8596 (merge_chains): Update for changes to du_head.
8597 (build_def_use): Use insn_callee_abi to get the ABI of the call insn
8598 target. Record the ABI identifier in call_abis and the set of
8599 fully or partially clobbered registers in call_clobber_mask.
8600 Add fully-clobbered registers to hard_conflicts here rather
8601 than in find_rename_reg.
8602 * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
8603 (rename_single_chain): Check call_abis instead of need_caller_save_reg.
8604 * config/aarch64/falkor-tag-collision-avoidance.c: Include
8606 * config/c6x/c6x.c: Likewise.
8608 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8610 * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
8611 mode of the register when deciding whether it is no longer
8612 available after a call.
8614 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8616 * recog.c: Include function-abi.h.
8617 (peep2_find_free_register): Use crtl->abi when deciding whether
8618 a register is free for use after RA.
8620 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8622 * postreload-gcse.c: Include regs.h and function-abi.h.
8623 (record_opr_changes): Use insn_callee_abi to get the ABI of the
8624 call insn target. Conservatively assume that partially-clobbered
8625 registers are altered.
8627 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8629 * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
8630 when deciding whether a register is free for use after RA.
8631 (reload_combine): Remove unnecessary use of fixed_reg_set.
8632 (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
8633 call insn target. Use reg_mode when testing whether a register
8634 is no longer available.
8636 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8638 * target.def (return_call_with_max_clobbers): Delete.
8639 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8640 * doc/tm.texi: Regenerate.
8641 * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
8642 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
8643 * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
8644 (lra_reg::call_insn): Delete.
8645 * lra.c: Include function-abi.h.
8646 (initialize_lra_reg_info_element): Don't initialize the fields above.
8647 (lra): Use crtl->abi to test whether the current function needs to
8648 save a register in the prologue. Remove special pre-inheritance
8649 lra_create_live_ranges pass for flag_ipa_ra.
8650 * lra-assigns.c: Include function-abi.h
8651 (find_hard_regno_for_1): Use crtl->abi to test whether the current
8652 function needs to save a register in the prologue.
8653 (lra_assign): Assert that registers aren't allocated to a
8654 conflicting register, rather than checking only for overlaps
8655 with call_used_or_fixed_regs. Do this even for flag_ipa_ra,
8656 and for registers that are not live across a call.
8657 * lra-constraints.c (last_call_for_abi): New variable.
8658 (full_and_partial_call_clobbers): Likewise.
8659 (setup_next_usage_insn): Remove the register from
8660 full_and_partial_call_clobbers.
8661 (need_for_call_save_p): Use call_clobbered_in_region_p to test
8662 whether the register needs a caller save.
8663 (need_for_split_p): Use full_and_partial_reg_clobbers instead
8664 of call_used_or_fixed_regs.
8665 (inherit_in_ebb): Initialize and maintain last_call_for_abi and
8666 full_and_partial_call_clobbers.
8667 * lra-lives.c (check_pseudos_live_through_calls): Replace
8668 last_call_used_reg_set and call_insn arguments with an abi argument.
8669 Remove handling of lra_reg::call_insn. Use function_abi::mode_clobbers
8670 as the set of conflicting registers.
8671 (calls_have_same_clobbers_p): Delete.
8672 (process_bb_lives): Track the ABI of the last call instead of an
8673 insn/HARD_REG_SET pair. Update calls to
8674 check_pseudos_live_through_calls. Use eh_edge_abi to calculate
8675 the set of registers that could be clobbered by an EH edge.
8676 Include partially-clobbered as well as fully-clobbered registers.
8677 (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
8678 * lra-remat.c: Include function-abi.h.
8679 (call_used_regs_arr_len, call_used_regs_arr): Delete.
8680 (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
8681 registers and bitmap_view to combine them into dead_regs.
8682 (call_used_input_regno_present_p): Take a function_abi argument
8683 and use it to test whether a register is call-clobbered.
8684 (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
8685 call insn target. Update tje call to call_used_input_regno_present_p.
8686 (do_remat): Likewise.
8687 (lra_remat): Remove the initialization of call_used_regs_arr_len
8688 and call_used_regs_arr.
8690 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8692 * loop-iv.c: Include regs.h and function-abi.h.
8693 (simplify_using_initial_values): Use insn_callee_abi to get the
8694 ABI of the call insn target. Conservatively assume that
8695 partially-clobbered registers are altered.
8697 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8699 * function-abi.h (call_clobbers_in_region): Declare.
8700 (call_clobbered_in_region_p): New function.
8701 * function-abi.cc (call_clobbers_in_region): Likewise.
8702 * ira-int.h: Include function-abi.h.
8703 (ira_allocno::crossed_calls_abis): New field.
8704 (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
8705 (ira_need_caller_save_regs): New function.
8706 (ira_need_caller_save_p): Likewise.
8707 * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
8708 of call_used_or_fixed_regs.
8709 (do_reload): Use crtl->abi to test whether the current function
8710 needs to save a register in the prologue. Count registers that
8711 need to be saved rather than registers that don't.
8712 * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
8713 Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8714 (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
8715 (propagate_some_info_from_allocno): Likewise.
8716 (copy_info_to_removed_store_destinations): Likewise.
8717 (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
8718 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
8719 (ira_build): Use ira_need_caller_save_regs instead of
8720 call_used_or_fixed_regs.
8721 * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
8722 whether the current function would need to save a register
8724 (calculate_spill_cost): Likewise.
8725 (allocno_reload_assign): Use ira_need_caller_save_regs and
8726 ira_need_caller_save_p instead of call_used_or_fixed_regs.
8727 * ira-conflicts.c (ira_build_conflicts): Use
8728 ira_need_caller_save_regs rather than call_used_or_fixed_regs
8729 as the set of call-clobbered registers. Remove the
8730 call_used_or_fixed_regs mask from the calculation of
8731 temp_hard_reg_set and mask its use instead. Remove special
8732 handling of partially-clobbered registers.
8733 * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
8734 * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
8735 calculate the set of conflicting registers for calls that
8736 can throw. Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
8737 Use full_and_partial_reg_clobbers rather than full_reg_clobbers
8738 for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
8739 Use eh_edge_abi to calculate the set of registers that could
8740 be clobbered by an EH edge. Include partially-clobbered as
8741 well as fully-clobbered registers.
8743 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8745 * haifa-sched.c: Include function-abi.h.
8746 (alloc_global_sched_pressure_data): Use crtl->abi to check whether
8747 the function would need to save a register before using it.
8749 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8751 * gcse.c: Include function-abi.h.
8752 (compute_hash_table_work): Use insn_callee_abi to get the ABI of
8753 the call insn target. Invalidate partially call-clobbered
8754 registers as well as fully call-clobbered ones.
8756 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8758 * function.c (aggregate_value_p): Work out which ABI the
8759 function is using before testing which registers are at least
8760 partly preserved by a call.
8762 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8764 * early-remat.c: Include regs.h and function-abi.h.
8765 (early_remat::maybe_add_candidate): Don't check for call-clobbered
8767 (early_remat::restrict_remat_for_unavail_regs): New function.
8768 (early_remat::restrict_remat_for_call): Likewise.
8769 (early_remat::process_block): Before calling emit_remat_insns
8770 for a previous call in the block, invalidate any candidates
8771 that would clobber call-preserved registers.
8772 (early_remat::emit_remat_insns_for_block): Likewise for the
8773 final call in a block. Do the same thing for live-in registers
8774 when calling emit_remat_insns at the head of a block.
8776 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8778 * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
8779 whether the current function needs to save at least part of a
8780 register before using it.
8781 (df_get_exit_block_use_set): Likewise for epilogue restores.
8783 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8785 * df-problems.c: Include regs.h and function-abi.h.
8786 (df_rd_problem_data): Rename sparse_invalidated_by_call to
8787 sparse_invalidated_by_eh and dense_invalidated_by_call to
8788 dense_invalidated_by_eh.
8789 (df_print_bb_index): Update accordingly.
8790 (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
8791 (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
8792 that are clobbered by an EH edge. Clobber partially-clobbered
8793 registers as well as fully-clobbered ones.
8794 (df_md_confluence_n): Likewise.
8795 (df_rd_local_compute): Likewise. Update for changes to
8797 * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
8798 of registers that are clobbered by an EH edge. Includde partially-
8799 clobbered registers as well as fully-clobbered ones.
8801 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8803 * cselib.c (cselib_process_insn): If we know what mode a
8804 register was set in, check whether it is clobbered in that
8805 mode by a call. Only fall back to reg_raw_mode if that fails.
8807 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8809 * cse.c: Include regs.h and function-abi.h.
8810 (invalidate_for_call): Take the call insn as an argument.
8811 Use insn_callee_abi to get the ABI of the call and invalidate
8812 partially clobbered registers as well as fully clobbered ones.
8813 (cse_insn): Update call accordingly.
8815 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8817 * combine.c: Include function-abi.h.
8818 (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
8819 of the target of call insns. Invalidate partially-clobbered
8820 registers as well as fully-clobbered ones.
8822 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8824 * cfgloopanal.c: Include regs.h and function-abi.h.
8825 (init_set_costs): Use default_function_abi to test whether
8826 a general register is call-clobbered.
8828 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8830 * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
8831 instead of the call-clobbered sets.
8833 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8835 * caller-save.c (setup_save_areas): Remove redundant |s of
8837 (save_call_clobbered_regs): Likewise. Use the call ABI rather
8838 than call_used_or_fixed_regs to decide whether a REG_RETURNED
8841 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8843 * rtl.h (predefined_function_abi): Declare.
8844 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8845 instead of a boolean call_save flag.
8846 * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
8848 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8849 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8850 * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
8851 * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8852 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
8853 * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
8854 * reginfo.c (init_reg_modes_target): Likewise.
8855 (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
8856 instead of a boolean call_save flag.
8857 * targhooks.c: Include function-abi.h.
8858 (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
8859 using eh_edge_abi to choose the mode.
8861 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8863 * target.def (hard_regno_call_part_clobbered): Take an ABI
8864 identifier instead of an rtx_insn.
8865 * doc/tm.texi: Regenerate.
8866 * hooks.h (hook_bool_insn_uint_mode_false): Delete.
8867 (hook_bool_uint_uint_mode_false): New function.
8868 * hooks.c (hook_bool_insn_uint_mode_false): Delete.
8869 (hook_bool_uint_uint_mode_false): New function.
8870 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
8871 Take an ABI identifier instead of an rtx_insn.
8872 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
8873 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
8874 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
8875 * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
8876 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
8878 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
8879 * cselib.c: Include function-abi.h.
8880 (cselib_process_insn): Update call to
8881 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8882 to get the appropriate ABI identifier.
8883 * function-abi.cc (predefined_function_abi::initialize): Update call
8884 to targetm.hard_regno_call_part_clobbered.
8885 * ira-conflicts.c (ira_build_conflicts): Likewise.
8886 * ira-costs.c (ira_tune_allocno_costs): Likewise.
8887 * lra-constraints.c: Include function-abi.h.
8888 (need_for_call_save_p): Update call to
8889 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8890 to get the appropriate ABI identifier.
8891 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
8892 * regcprop.c (copyprop_hardreg_forward_1): Update call
8893 to targetm.hard_regno_call_part_clobbered.
8894 * reginfo.c (choose_hard_reg_mode): Likewise.
8895 * regrename.c (check_new_reg_p): Likewise.
8896 * reload.c (find_equiv_reg): Likewise.
8897 * reload1.c (emit_reload_insns): Likewise.
8898 * sched-deps.c: Include function-abi.h.
8899 (deps_analyze_insn): Update call to
8900 targetm.hard_regno_call_part_clobbered, using insn_callee_abi
8901 to get the appropriate ABI identifier.
8902 * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
8903 call to targetm.hard_regno_call_part_clobbered.
8904 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
8906 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8908 * config/i386/i386.c: Include function-abi.h.
8909 (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
8910 if they preserve some 256-bit or 512-bit SSE registers.
8912 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8914 * target.def (insn_callee_abi): New hook.
8915 (remove_extra_call_preserved_regs): Delete.
8916 * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
8917 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8918 * doc/tm.texi: Regenerate.
8919 * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
8920 * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
8921 * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
8923 (aarch64_remove_extra_call_preserved_regs): Delete.
8924 (aarch64_insn_callee_abi): New function.
8925 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
8926 (TARGET_INSN_CALLEE_ABI): New macro.
8927 * rtl.h (get_call_fndecl): Declare.
8928 (cgraph_rtl_info): Fix formatting. Tweak comment for
8929 function_used_regs. Remove function_used_regs_valid.
8930 * rtlanal.c (get_call_fndecl): Moved from final.c
8931 * function-abi.h (insn_callee_abi): Declare.
8932 (target_function_abi_info): Mention insn_callee_abi.
8933 * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
8934 way to get_call_reg_set_usage did.
8935 (insn_callee_abi): New function.
8936 * regs.h (get_call_reg_set_usage): Delete.
8937 * final.c: Include function-abi.h.
8938 (collect_fn_hard_reg_usage): Add fixed and stack registers to
8939 function_used_regs before the main loop rather than afterwards.
8940 Use insn_callee_abi instead of get_call_reg_set_usage. Exit early
8941 if function_used_regs ends up not being useful.
8942 (get_call_fndecl): Move to rtlanal.c
8943 (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
8944 * caller-save.c: Include function-abi.h.
8945 (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
8946 instead of get_call_reg_set_usage.
8947 * cfgcleanup.c: Include function-abi.h.
8948 (old_insns_match_p): Use insn_callee_abi instead of
8949 get_call_reg_set_usage.
8950 * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
8952 * cgraph.c (cgraph_node::rtl_info): Likewise. Initialize
8954 * df-scan.c: Include function-abi.h.
8955 (df_get_call_refs): Use insn_callee_abi instead of
8956 get_call_reg_set_usage.
8957 * ira-lives.c: Include function-abi.h.
8958 (process_bb_node_lives): Use insn_callee_abi instead of
8959 get_call_reg_set_usage.
8960 * lra-lives.c: Include function-abi.h.
8961 (process_bb_lives): Use insn_callee_abi instead of
8962 get_call_reg_set_usage.
8963 * postreload.c: Include function-abi.h.
8964 (reload_combine): Use insn_callee_abi instead of
8965 get_call_reg_set_usage.
8966 * regcprop.c: Include function-abi.h.
8967 (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
8968 get_call_reg_set_usage.
8969 * resource.c: Include function-abi.h.
8970 (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
8971 instead of get_call_reg_set_usage.
8972 * var-tracking.c: Include function-abi.h.
8973 (dataflow_set_clear_at_call): Use insn_callee_abi instead of
8974 get_call_reg_set_usage.
8976 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8978 * target.def (fntype_abi): New target hook.
8979 * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
8980 * doc/tm.texi: Regenerate.
8981 * target.h (predefined_function_abi): Declare.
8982 * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
8984 * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
8985 * config/aarch64/aarch64.c: Include function-abi.h.
8986 (aarch64_simd_abi, aarch64_fntype_abi): New functions.
8987 (TARGET_FNTYPE_ABI): Define.
8989 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
8991 * Makefile.in (OBJS): Add function-abi.o.
8992 (GTFILES): Add function-abi.h.
8993 * function-abi.cc: New file.
8994 * function-abi.h: Likewise.
8995 * emit-rtl.h (rtl_data::abi): New field.
8996 * function.c: Include function-abi.h.
8997 (prepare_function_start): Initialize crtl->abi.
8998 * read-rtl-function.c: Include regs.h and function-abi.h.
8999 (read_rtl_function_body): Initialize crtl->abi.
9000 (read_rtl_function_body_from_file_range): Likewise.
9001 * reginfo.c: Include function-abi.h.
9002 (init_reg_sets_1): Initialize default_function_abi.
9003 (globalize_reg): Call add_full_reg_clobber for each predefined ABI
9004 when making a register global.
9005 * target-globals.h (this_target_function_abi_info): Declare.
9006 (target_globals::function_abi_info): New field.
9007 (restore_target_globals): Copy it.
9008 * target-globals.c: Include function-abi.h.
9009 (default_target_globals): Initialize the function_abi_info field.
9010 (target_globals): Allocate it.
9011 (save_target_globals): Free it.
9013 2019-09-30 Nick Clifton <nickc@redhat.com>
9016 * config/frv/frv.c (frv_register_move_cost): Add break statements
9017 to avoid falling through to the wrong cases. Tidy code.
9019 2019-09-30 Richard Sandiford <richard.sandiford@arm.com>
9021 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
9022 For multi-registers modes, test how big each register part is.
9024 2019-09-30 Nick Clifton <nickc@redhat.com>
9027 * config/iq2000/iq2000.c (iq2000_select_section): Delete.
9028 (TARGET_ASM_SELECT_SECTION): Remove definition.
9029 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
9031 2019-09-30 Ilya Leoshkevich <iii@linux.ibm.com>
9033 * emit-rtl.c (init_raw_REG): New function.
9034 (gen_raw_REG): Use init_raw_REG.
9035 * gengenrtl.c (gendef): Emit init_* functions and alloca_*
9037 * rtl.c (rtx_alloc_stat_v): Use rtx_init.
9038 * rtl.h (rtx_init): New function.
9039 (rtx_alloca): New function.
9040 (init_raw_REG): New function.
9041 (alloca_raw_REG): New macro.
9043 2019-09-30 Michael Meissner <meissner@linux.ibm.com>
9045 * config/rs6000/predicates.md (pcrel_address): Delete predicate.
9046 (pcrel_local_address): Replace pcrel_address predicate, use the
9047 new function address_to_insn_form.
9048 (pcrel_external_address): Replace with new implementation using
9049 address_to_insn_form..
9050 (prefixed_mem_operand): Delete predicate which is now unused.
9051 (pcrel_external_mem_operand): Delete predicate which is now
9053 * config/rs6000/rs6000-protos.h (enum insn_form): New
9055 (enum non_prefixed_form): New enumeration.
9056 (address_to_insn_form): New declaration.
9057 (prefixed_load_p): New declaration.
9058 (prefixed_store_p): New declaration.
9059 (prefixed_paddi_p): New declaration.
9060 (rs6000_asm_output_opcode): New declaration.
9061 (rs6000_final_prescan_insn): Move declaration and update calling
9063 (address_is_prefixed): New helper inline function.
9064 * config/rs6000/rs6000.c(print_operand_address): Check for either
9065 PC-relative local symbols or PC-relative external symbols.
9066 (rs6000_emit_move): Support loading PC-relative addresses.
9067 (mode_supports_prefixed_address_p): Delete, no longer used.
9068 (rs6000_prefixed_address_mode_p): Delete, no longer used.
9069 (address_to_insn_form): New function to decode an address format.
9070 (reg_to_non_prefixed): New function to identify what the
9071 non-prefixed memory instruction format is for a register.
9072 (prefixed_load_p): New function to identify prefixed loads.
9073 (prefixed_store_p): New function to identify prefixed stores.
9074 (prefixed_paddi_p): New function to identify prefixed load
9076 (next_insn_prefixed_p): New static state variable.
9077 (rs6000_final_prescan_insn): New function to determine if an insn
9078 uses a prefixed instruction.
9079 (rs6000_asm_output_opcode): New function to emit 'p' in front of a
9080 prefixed instruction.
9081 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
9082 (ASM_OUTPUT_OPCODE): New target hook.
9083 * config/rs6000/rs6000.md (prefixed): New insn attribute for
9084 prefixed instructions.
9085 (prefixed_length): New insn attribute for the size of prefixed
9087 (non_prefixed_length): New insn attribute for the size of
9088 non-prefixed instructions.
9089 (pcrel_local_addr): New insn to load up a local PC-relative
9091 (pcrel_extern_addr): New insn to load up an external PC-relative
9093 (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
9094 GPR and loading a 128-bit floating point type to a GPR.
9096 2019-09-30 Richard Biener <rguenther@suse.de>
9098 * gimple.c (gimple_get_lhs): For PHIs return the result.
9099 * tree-vectorizer.h (vectorizable_live_operation): Also get the
9100 SLP instance as argument.
9101 * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
9102 double-reduction PHIs with vectorizable_lc_phi.
9103 (vect_analyze_loop_operations): Adjust.
9104 (vect_create_epilog_for_reduction): Remove all code not dealing
9105 with reduction LC PHI or epilogue generation.
9106 (vectorizable_live_operation): Call vect_create_epilog_for_reduction
9107 for live stmts of reductions.
9108 * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
9109 do not handle defs that are not vect_internal_def.
9110 (can_vectorize_live_stmts): Adjust.
9111 (vect_analyze_stmt): When the vectorized stmt defined a value
9112 used on backedges adjust the backedge uses of vectorized PHIs.
9114 2019-09-30 Martin Jambor <mjambor@suse.cz>
9117 * tree-inline.c (force_value_to_type): New function.
9118 (setup_one_parameter): Use force_value_to_type to convert type.
9119 * tree-inline.c (force_value_to_type): Declare.
9120 * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
9121 with register type mismatches.
9123 2019-09-30 Andreas Tobler <andreast@gcc.gnu.org>
9125 * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
9127 Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
9128 * config/rs6000/t-freebsd64: Make use of the above define and build
9129 the 32-bit libraries with secure-plt.
9131 2019-09-30 Jakub Jelinek <jakub@redhat.com>
9134 * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
9135 gen_int_mode instead of GEN_INT.
9137 2019-09-29 Iain Sandoe <iain@sandoe.co.uk>
9139 * config/darwin.c (gen_macho_low): Amend to include the mode
9141 (machopic_indirect_data_reference): Amend gen_macho_low call
9142 to include mode argument
9143 * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
9144 * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
9145 the macho_high expander and two define_insn entries.
9147 2019-09-29 Jakub Jelinek <jakub@redhat.com>
9150 * optc-save-gen.awk: Fix up printing string option differences.
9152 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9154 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
9155 vec_perm cost to 1 for non-Power7 VSX architectures.
9157 2019-09-29 Kewen Lin <linkw@gcc.gnu.org>
9159 * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
9160 (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
9161 (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
9163 2019-09-28 Iain Sandoe <iain@sandoe.co.uk>
9165 * config/darwin.c (gen_macho_high): Amend to include the mode
9167 (machopic_indirect_data_reference): Amend gen_macho_high call
9168 to include mode argument.
9169 (machopic_legitimize_pic_address): Likewise.
9170 * config/rs6000/rs6000.c (rs6000_legitimize_address):
9171 * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
9172 the macho_high expander and two define_insn entries.
9174 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9177 * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
9179 2019-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9182 * config/sh/sh.c (parse_validate_atomic_model_option): Use
9183 std::string::compare instead of std::string::find.
9185 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
9187 * configure: Regenerate.
9189 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9192 * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
9193 variables as shared.
9195 2019-09-27 Iain Sandoe <iain@sandoe.co.uk>
9197 * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
9198 replaces the expander and two define_insn entries.
9199 (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
9201 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
9203 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9205 * fibonacci_heap.h (fibonacci_heap::empty): Make const.
9206 (fibonacci_heap::nodes): Likewise.
9207 (fibonacci_heap::min_key): Likewise.
9208 (fibonacci_heap::min): Likewise.
9210 2019-09-27 David Malcolm <dmalcolm@redhat.com>
9212 * cgraph.c (cgraph_node::get_fun): Make const.
9213 * cgraph.h (cgraph_node::get_fun): Likewise.
9215 2019-09-27 Jakub Jelinek <jakub@redhat.com>
9218 * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
9221 2019-09-27 Richard Biener <rguenther@suse.de>
9223 * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
9224 (STMT_VINFO_REDUC_FN): Likewise.
9225 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
9226 STMT_VINFO_REDUC_FN.
9227 * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
9228 for condition reductions.
9229 (vect_create_epilog_for_reduction): Compute all required state
9230 from the stmt to be vectorized.
9231 (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
9232 invocation and remove then dead code. For single def-use chains
9233 record only a single vector stmt.
9235 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9237 * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
9238 (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
9239 (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
9240 (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
9241 (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
9242 (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
9243 (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
9244 (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
9245 (aarch64_general_builtin_rsqrt): Declare.
9246 * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
9248 (aarch64_mangle_builtin_type): Rename to...
9249 (aarch64_general_mangle_builtin_type): ...this.
9250 (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
9251 (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
9252 (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
9253 aarch64_general_add_builtin instead of add_builtin_function.
9254 (aarch64_init_builtins): Rename to...
9255 (aarch64_general_init_builtins): ...this. Use
9256 aarch64_general_add_builtin instead of add_builtin_function.
9257 (aarch64_builtin_decl): Rename to...
9258 (aarch64_general_builtin_decl): ...this and remove the unused
9260 (aarch64_expand_builtin): Rename to...
9261 (aarch64_general_expand_builtin): ...this and remove the unused
9263 (aarch64_builtin_rsqrt): Rename to...
9264 (aarch64_general_builtin_rsqrt): ...this.
9265 (aarch64_fold_builtin): Rename to...
9266 (aarch64_general_fold_builtin): ...this. Take the function subcode
9267 and return type as arguments. Remove the "ignored" argument.
9268 (aarch64_gimple_fold_builtin): Rename to...
9269 (aarch64_general_gimple_fold_builtin): ...this. Take the function
9270 subcode and gcall as arguments, and return the new function call.
9271 * config/aarch64/aarch64.c (aarch64_init_builtins)
9272 (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
9273 (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
9274 (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
9275 instead of aarch64_builtin_rsqrt.
9276 (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
9277 instead of aarch64_mangle_builtin_type.
9279 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9281 * target.def (check_builtin_call): New target hook.
9282 * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
9283 * doc/tm.texi: Regenerate.
9285 2019-09-27 Richard Sandiford <richard.sandiford@arm.com>
9287 PR tree-optimization/91909
9288 * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
9289 reduc_index parameter. When handling COND_REDUCTION, make sure
9290 that the reduction phi operand is in the correct arm of the
9292 (vectorizable_reduction): Pass reduc_index to the above.
9294 2019-09-27 Yuliang Wang <yuliang.wang@arm.com>
9296 * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
9297 New combine pattern.
9299 2019-09-26 Max Filippov <jcmvbkbc@gmail.com>
9301 * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
9302 loop instruction into new basic block before the loop when basic
9303 block that precedes the loop is empty.
9305 2019-09-26 Jakub Jelinek <jakub@redhat.com>
9307 * function.c (gimplify_parameters): Use build_clobber function.
9308 * tree-ssa.c (execute_update_addresses_taken): Likewise.
9309 * tree-inline.c (expand_call_inline): Likewise.
9310 * tree-sra.c (clobber_subtree): Likewise.
9311 * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
9312 * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
9313 lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
9314 lower_omp_target): Likewise.
9315 * omp-expand.c (expand_omp_for_generic): Likewise.
9316 * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
9318 2019-09-26 Will Schmidt <will_schmidt@vnet.ibm.com>
9320 * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
9321 LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
9322 LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
9323 LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
9324 LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
9325 LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
9326 LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
9327 LD_ELEMREV_V16QI): Use the PURE attribute.
9329 2019-09-26 Iain Sandoe <iain@sandoe.co.uk>
9331 * config/rs6000/darwin.md: Replace the expanders for
9332 load_macho_picbase and reload_macho_picbase with use of '@'
9333 and <mode> in their respective define_insns.
9334 (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
9335 * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
9336 Pmode to gen_load_macho_picbase.
9337 * config/rs6000/rs6000.md: Likewise.
9339 2019-09-25 Richard Biener <rguenther@suse.de>
9341 PR tree-optimization/91896
9342 * tree-vect-loop.c (vectorizable_reduction): The single
9343 def-use cycle optimization cannot apply when there's more
9344 than one pattern stmt involved.
9346 2019-09-26 Richard Biener <rguenther@suse.de>
9348 * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
9349 loop-closed PHIs that are vect_internal_def.
9350 (vect_create_epilog_for_reduction): Exit early for nested cycles.
9352 (vectorizable_lc_phi): New.
9353 * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
9354 (vect_transform_stmt): Likewise.
9355 * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
9356 (vectorizable_lc_phi): Declare.
9358 2019-09-26 Richard Biener <rguenther@suse.de>
9360 * tree-vect-loop.c (vect_analyze_loop_operations): Also call
9361 vectorizable_reduction for vect_double_reduction_def.
9362 (vect_transform_loop): Likewise.
9363 (vect_create_epilog_for_reduction): Move double-reduction
9364 PHI creation and preheader argument setting of PHIs ...
9365 (vectorizable_reduction): ... here. Also process
9366 vect_double_reduction_def PHIs, creating the vectorized
9367 PHI nodes, remembering the scalar adjustment computed for
9368 the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
9369 Remember the original reduction code in STMT_VINFO_REDUC_CODE.
9370 * tree-vectorizer.c (vec_info::new_stmt_vec_info):
9371 Initialize STMT_VINFO_REDUC_CODE.
9372 * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
9373 (_stmt_vec_info::reduc_code): Likewise.
9374 (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
9375 (STMT_VINFO_REDUC_CODE): Likewise.
9377 2019-09-26 Matt Turner <mattst88@gmail.com>
9380 * config/aarch64/aarch64.opt (march=): Add Negative(march=).
9381 (mtune=): Add Negative(mtune=).
9382 (mcpu=): Add Negative(mcpu=).
9383 * config/arm/arm.opt: Likewise.
9385 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9387 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9388 * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
9390 * config/arm/arm_acle.h: Define builtins for the above.
9391 * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
9392 (simd32_op): Handle the above.
9393 * config/arm/unspecs.md: Define unspecs for the above.
9395 2019-09-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9397 * config/arm/arm.md (arm_<simd32_op>): New define_insn.
9398 (arm_<sup>xtb16): Likewise.
9399 (arm_usada8): Likewise.
9400 * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
9401 __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
9402 __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
9403 __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
9404 __sxtb16, __uxtab16, __uxtb16): Define.
9405 * config/arm/arm_acle_builtins.def: Define builtins for the above.
9406 * config/arm/unspecs.md: Define unspecs for the above.
9407 * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
9408 (USXTB16): Likewise.
9409 (simd32_op): New int_attribute.
9410 (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
9411 * doc/sourcebuild.exp (arm_simd32_ok): Document.
9413 2019-09-26 Martin Jambor <mjambor@suse.cz>
9415 * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
9418 2019-09-26 Martin Jambor <mjambor@suse.cz>
9420 * ipa-sra.c (process_scan_results): Fix continue condition.
9422 2019-09-26 Martin Liska <mliska@suse.cz>
9424 PR tree-optimization/91885
9425 * tree-vectorizer.c (try_vectorize_loop_1): Add
9426 TODO_update_ssa_only_virtuals similarly to what slp pass does.
9428 2019-09-26 Richard Sandiford <richard.sandiford@arm.com>
9430 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
9431 aarch64_plus_immediate rather than aarch64_uimm12_shift
9432 to test for valid PLUS immediates.
9434 2019-09-25 Martin Jambor <mjambor@suse.cz>
9436 * tree-sra.c (no_accesses_p): Remove.
9437 (no_accesses_representant): Likewise.
9439 2019-09-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9441 * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
9443 (vaba_s16): Likewise.
9444 (vaba_s32): Likewise.
9445 (vaba_u8): Likewise.
9446 (vaba_u16): Likewise.
9447 (vaba_u32): Likewise.
9448 (vabal_high_s8): Likewise.
9449 (vabal_high_s16): Likewise.
9450 (vabal_high_s32): Likewise.
9451 (vabal_high_u8): Likewise.
9452 (vabal_high_u16): Likewise.
9453 (vabal_high_u32): Likewise.
9454 (vabal_s8): Likewise.
9455 (vabal_s16): Likewise.
9456 (vabal_s32): Likewise.
9457 (vabal_u8): Likewise.
9458 (vabal_u16): Likewise.
9459 (vabal_u32): Likewise.
9460 (vabaq_s8): Likewise.
9461 (vabaq_s16): Likewise.
9462 (vabaq_s32): Likewise.
9463 (vabaq_u8): Likewise.
9464 (vabaq_u16): Likewise.
9465 (vabaq_u32): Likewise.
9466 (vabd_s8): Likewise.
9467 (vabd_s16): Likewise.
9468 (vabd_s32): Likewise.
9469 (vabd_u8): Likewise.
9470 (vabd_u16): Likewise.
9471 (vabd_u32): Likewise.
9472 (vabdl_high_s8): Likewise.
9473 (vabdl_high_s16): Likewise.
9474 (vabdl_high_s32): Likewise.
9475 (vabdl_high_u8): Likewise.
9476 (vabdl_high_u16): Likewise.
9477 (vabdl_high_u32): Likewise.
9478 (vabdl_s8): Likewise.
9479 (vabdl_s16): Likewise.
9480 (vabdl_s32): Likewise.
9481 (vabdl_u8): Likewise.
9482 (vabdl_u16): Likewise.
9483 (vabdl_u32): Likewise.
9484 (vabdq_s8): Likewise.
9485 (vabdq_s16): Likewise.
9486 (vabdq_s32): Likewise.
9487 (vabdq_u8): Likewise.
9488 (vabdq_u16): Likewise.
9489 (vabdq_u32): Likewise.
9490 (vaddlv_s8): Likewise.
9491 (vaddlv_s16): Likewise.
9492 (vaddlv_u8): Likewise.
9493 (vaddlv_u16): Likewise.
9494 (vaddlvq_s8): Likewise.
9495 (vaddlvq_s16): Likewise.
9496 (vaddlvq_s32): Likewise.
9497 (vaddlvq_u8): Likewise.
9498 (vaddlvq_u16): Likewise.
9499 (vaddlvq_u32): Likewise.
9500 (vcvtx_f32_f64): Likewise.
9501 (vcvtx_high_f32_f64): Likewise.
9502 (vcvtxd_f32_f64): Likewise.
9503 (vmla_n_f32): Likewise.
9504 (vmla_n_s16): Likewise.
9505 (vmla_n_s32): Likewise.
9506 (vmla_n_u16): Likewise.
9507 (vmla_n_u32): Likewise.
9508 (vmla_s8): Likewise.
9509 (vmla_s16): Likewise.
9510 (vmla_s32): Likewise.
9511 (vmla_u8): Likewise.
9512 (vmla_u16): Likewise.
9513 (vmla_u32): Likewise.
9514 (vmlal_high_n_s16): Likewise.
9515 (vmlal_high_n_s32): Likewise.
9516 (vmlal_high_n_u16): Likewise.
9517 (vmlal_high_n_u32): Likewise.
9518 (vmlal_high_s8): Likewise.
9519 (vmlal_high_s16): Likewise.
9520 (vmlal_high_s32): Likewise.
9521 (vmlal_high_u8): Likewise.
9522 (vmlal_high_u16): Likewise.
9523 (vmlal_high_u32): Likewise.
9524 (vmlal_n_s16): Likewise.
9525 (vmlal_n_s32): Likewise.
9526 (vmlal_n_u16): Likewise.
9527 (vmlal_n_u32): Likewise.
9528 (vmlal_s8): Likewise.
9529 (vmlal_s16): Likewise.
9530 (vmlal_s32): Likewise.
9531 (vmlal_u8): Likewise.
9532 (vmlal_u16): Likewise.
9533 (vmlal_u32): Likewise.
9534 (vmlaq_n_f32): Likewise.
9535 (vmlaq_n_s16): Likewise.
9536 (vmlaq_n_s32): Likewise.
9537 (vmlaq_n_u16): Likewise.
9538 (vmlaq_n_u32): Likewise.
9539 (vmlaq_s8): Likewise.
9540 (vmlaq_s16): Likewise.
9541 (vmlaq_s32): Likewise.
9542 (vmlaq_u8): Likewise.
9543 (vmlaq_u16): Likewise.
9544 (vmlaq_u32): Likewise.
9545 (vmls_n_f32): Likewise.
9546 (vmls_n_s16): Likewise.
9547 (vmls_n_s32): Likewise.
9548 (vmls_n_u16): Likewise.
9549 (vmls_n_u32): Likewise.
9550 (vmls_s8): Likewise.
9551 (vmls_s16): Likewise.
9552 (vmls_s32): Likewise.
9553 (vmls_u8): Likewise.
9554 (vmls_u16): Likewise.
9555 (vmls_u32): Likewise.
9556 (vmlsl_high_n_s16): Likewise.
9557 (vmlsl_high_n_s32): Likewise.
9558 (vmlsl_high_n_u16): Likewise.
9559 (vmlsl_high_n_u32): Likewise.
9560 (vmlsl_high_s8): Likewise.
9561 (vmlsl_high_s16): Likewise.
9562 (vmlsl_high_s32): Likewise.
9563 (vmlsl_high_u8): Likewise.
9564 (vmlsl_high_u16): Likewise.
9565 (vmlsl_high_u32): Likewise.
9566 (vmlsl_n_s16): Likewise.
9567 (vmlsl_n_s32): Likewise.
9568 (vmlsl_n_u16): Likewise.
9569 (vmlsl_n_u32): Likewise.
9570 (vmlsl_s8): Likewise.
9571 (vmlsl_s16): Likewise.
9572 (vmlsl_s32): Likewise.
9573 (vmlsl_u8): Likewise.
9574 (vmlsl_u16): Likewise.
9575 (vmlsl_u32): Likewise.
9576 (vmlsq_n_f32): Likewise.
9577 (vmlsq_n_s16): Likewise.
9578 (vmlsq_n_s32): Likewise.
9579 (vmlsq_n_u16): Likewise.
9580 (vmlsq_n_u32): Likewise.
9581 (vmlsq_s8): Likewise.
9582 (vmlsq_s16): Likewise.
9583 (vmlsq_s32): Likewise.
9584 (vmlsq_u8): Likewise.
9585 (vmlsq_u16): Likewise.
9586 (vmlsq_u32): Likewise.
9587 (vmovl_high_s8): Likewise.
9588 (vmovl_high_s16): Likewise.
9589 (vmovl_high_s32): Likewise.
9590 (vmovl_high_u8): Likewise.
9591 (vmovl_high_u16): Likewise.
9592 (vmovl_high_u32): Likewise.
9593 (vmovl_s8): Likewise.
9594 (vmovl_s16): Likewise.
9595 (vmovl_s32): Likewise.
9596 (vmovl_u8): Likewise.
9597 (vmovl_u16): Likewise.
9598 (vmovl_u32): Likewise.
9599 (vmovn_high_s16): Likewise.
9600 (vmovn_high_s32): Likewise.
9601 (vmovn_high_s64): Likewise.
9602 (vmovn_high_u16): Likewise.
9603 (vmovn_high_u32): Likewise.
9604 (vmovn_high_u64): Likewise.
9605 (vmovn_s16): Likewise.
9606 (vmovn_s32): Likewise.
9607 (vmovn_s64): Likewise.
9608 (vmovn_u16): Likewise.
9609 (vmovn_u32): Likewise.
9610 (vmovn_u64): Likewise.
9611 (vmull_high_n_s16): Likewise.
9612 (vmull_high_n_s32): Likewise.
9613 (vmull_high_n_u16): Likewise.
9614 (vmull_high_n_u32): Likewise.
9615 (vmull_high_p8): Likewise.
9616 (vmull_high_s8): Likewise.
9617 (vmull_high_s16): Likewise.
9618 (vmull_high_s32): Likewise.
9619 (vmull_high_u8): Likewise.
9620 (vmull_high_u16): Likewise.
9621 (vmull_high_u32): Likewise.
9622 (vmull_n_s16): Likewise.
9623 (vmull_n_s32): Likewise.
9624 (vmull_n_u16): Likewise.
9625 (vmull_n_u32): Likewise.
9626 (vmull_p8): Likewise.
9627 (vmull_s8): Likewise.
9628 (vmull_s16): Likewise.
9629 (vmull_s32): Likewise.
9630 (vmull_u8): Likewise.
9631 (vmull_u16): Likewise.
9632 (vmull_u32): Likewise.
9633 (vpadal_s8): Likewise.
9634 (vpadal_s16): Likewise.
9635 (vpadal_s32): Likewise.
9636 (vpadal_u8): Likewise.
9637 (vpadal_u16): Likewise.
9638 (vpadal_u32): Likewise.
9639 (vpadalq_s8): Likewise.
9640 (vpadalq_s16): Likewise.
9641 (vpadalq_s32): Likewise.
9642 (vpadalq_u8): Likewise.
9643 (vpadalq_u16): Likewise.
9644 (vpadalq_u32): Likewise.
9645 (vpaddl_s8): Likewise.
9646 (vpaddl_s16): Likewise.
9647 (vpaddl_s32): Likewise.
9648 (vpaddl_u8): Likewise.
9649 (vpaddl_u16): Likewise.
9650 (vpaddl_u32): Likewise.
9651 (vpaddlq_s8): Likewise.
9652 (vpaddlq_s16): Likewise.
9653 (vpaddlq_s32): Likewise.
9654 (vpaddlq_u8): Likewise.
9655 (vpaddlq_u16): Likewise.
9656 (vpaddlq_u32): Likewise.
9657 (vpaddq_s8): Likewise.
9658 (vpaddq_s16): Likewise.
9659 (vpaddq_s32): Likewise.
9660 (vpaddq_s64): Likewise.
9661 (vpaddq_u8): Likewise.
9662 (vpaddq_u16): Likewise.
9663 (vpaddq_u32): Likewise.
9664 (vpaddq_u64): Likewise.
9665 (vqdmulh_n_s16): Likewise.
9666 (vqdmulh_n_s32): Likewise.
9667 (vqdmulhq_n_s16): Likewise.
9668 (vqdmulhq_n_s32): Likewise.
9669 (vqmovn_high_s16): Likewise.
9670 (vqmovn_high_s32): Likewise.
9671 (vqmovn_high_s64): Likewise.
9672 (vqmovn_high_u16): Likewise.
9673 (vqmovn_high_u32): Likewise.
9674 (vqmovn_high_u64): Likewise.
9675 (vqmovun_high_s16): Likewise.
9676 (vqmovun_high_s32): Likewise.
9677 (vqmovun_high_s64): Likewise.
9678 (vqrdmulh_n_s16): Likewise.
9679 (vqrdmulh_n_s32): Likewise.
9680 (vqrdmulhq_n_s16): Likewise.
9681 (vqrdmulhq_n_s32): Likewise.
9682 (vrsqrte_u32): Likewise.
9683 (vrsqrteq_u32): Likewise.
9684 (vtst_p8): Likewise.
9685 (vtst_p16): Likewise.
9686 (vtst_p64): Likewise.
9687 (vtstq_p8): Likewise.
9688 (vtstq_p16): Likewise.
9689 (vtstq_p64): Likewise.
9690 (vaddlv_s32): Likewise.
9691 (vaddlv_u32): Likewise.
9692 (vqtbl1_p8): Likewise.
9693 (vqtbl1_s8): Likewise.
9694 (vqtbl1_u8): Likewise.
9695 (vqtbl1q_p8): Likewise.
9696 (vqtbl1q_s8): Likewise.
9697 (vqtbl1q_u8): Likewise.
9698 (vqtbx1_s8): Likewise.
9699 (vqtbx1_u8): Likewise.
9700 (vqtbx1_p8): Likewise.
9701 (vqtbx1q_s8): Likewise.
9702 (vqtbx1q_u8): Likewise.
9703 (vqtbx1q_p8): Likewise.
9704 (vtbl1_s8): Likewise.
9705 (vtbl1_u8): Likewise.
9706 (vtbl1_p8): Likewise.
9707 (vtbl2_s8): Likewise.
9708 (vtbl2_u8): Likewise.
9709 (vtbl2_p8): Likewise.
9710 (vtbl3_s8): Likewise.
9711 (vtbl3_u8): Likewise.
9712 (vtbl3_p8): Likewise.
9713 (vtbl4_s8): Likewise.
9714 (vtbl4_u8): Likewise.
9715 (vtbl4_p8): Likewise.
9716 (vtbx2_s8): Likewise.
9717 (vtbx2_u8): Likewise.
9718 (vtbx2_p8): Likewise.
9719 (vld1_f32): Likewise.
9720 (vld1_f64): Likewise.
9721 (vld1_p8): Likewise.
9722 (vld1_p16): Likewise.
9723 (vld1_p64): Likewise.
9724 (vld1_s8): Likewise.
9725 (vld1_s16): Likewise.
9726 (vld1_s32): Likewise.
9727 (vld1_s64): Likewise.
9728 (vld1_u8): Likewise.
9729 (vld1_u16): Likewise.
9730 (vld1_u32): Likewise.
9731 (vld1_u64): Likewise.
9732 (vld1q_f32): Likewise.
9733 (vld1q_f64): Likewise.
9734 (vld1q_p8): Likewise.
9735 (vld1q_p16): Likewise.
9736 (vld1q_p64): Likewise.
9737 (vld1q_s8): Likewise.
9738 (vld1q_s16): Likewise.
9739 (vld1q_s32): Likewise.
9740 (vld1q_s64): Likewise.
9741 (vld1q_u8): Likewise.
9742 (vld1q_u16): Likewise.
9743 (vld1q_u32): Likewise.
9744 (vld1q_u64): Likewise.
9745 (vpmax_s8): Likewise.
9746 (vpmax_s16): Likewise.
9747 (vpmax_s32): Likewise.
9748 (vpmax_u8): Likewise.
9749 (vpmax_u16): Likewise.
9750 (vpmax_u32): Likewise.
9751 (vpmaxq_s8): Likewise.
9752 (vpmaxq_s16): Likewise.
9753 (vpmaxq_s32): Likewise.
9754 (vpmaxq_u8): Likewise.
9755 (vpmaxq_u16): Likewise.
9756 (vpmaxq_u32): Likewise.
9757 (vpmax_f32): Likewise.
9758 (vpmaxq_f32): Likewise.
9759 (vpmaxq_f64): Likewise.
9760 (vpmaxqd_f64): Likewise.
9761 (vpmaxs_f32): Likewise.
9762 (vpmaxnm_f32): Likewise.
9763 (vpmaxnmq_f32): Likewise.
9764 (vpmaxnmq_f64): Likewise.
9765 (vpmaxnmqd_f64): Likewise.
9766 (vpmaxnms_f32): Likewise.
9767 (vpmin_s8): Likewise.
9768 (vpmin_s16): Likewise.
9769 (vpmin_s32): Likewise.
9770 (vpmin_u8): Likewise.
9771 (vpmin_u16): Likewise.
9772 (vpmin_u32): Likewise.
9773 (vpminq_s8): Likewise.
9774 (vpminq_s16): Likewise.
9775 (vpminq_s32): Likewise.
9776 (vpminq_u8): Likewise.
9777 (vpminq_u16): Likewise.
9778 (vpminq_u32): Likewise.
9779 (vpmin_f32): Likewise.
9780 (vpminq_f32): Likewise.
9781 (vpminq_f64): Likewise.
9782 (vpminqd_f64): Likewise.
9783 (vpmins_f32): Likewise.
9784 (vpminnm_f32): Likewise.
9785 (vpminnmq_f32): Likewise.
9786 (vpminnmq_f64): Likewise.
9787 (vpminnmqd_f64): Likewise.
9788 (vpminnms_f32): Likewise.
9789 (vmla_f32): Likewise.
9790 (vmlaq_f32): Likewise.
9791 (vmlaq_f64): Likewise.
9792 (vmls_f32): Likewise.
9793 (vmlsq_f32): Likewise.
9794 (vmlsq_f64): Likewise.
9795 (vqtbl2_s8): Likewise.
9796 (vqtbl2_u8): Likewise.
9797 (vqtbl2_p8): Likewise.
9798 (vqtbl2q_s8): Likewise.
9799 (vqtbl2q_u8): Likewise.
9800 (vqtbl2q_p8): Likewise.
9801 (vqtbl3_s8): Likewise.
9802 (vqtbl3_u8): Likewise.
9803 (vqtbl3_p8): Likewise.
9804 (vqtbl3q_s8): Likewise.
9805 (vqtbl3q_u8): Likewise.
9806 (vqtbl3q_p8): Likewise.
9807 (vqtbl4_s8): Likewise.
9808 (vqtbl4_u8): Likewise.
9809 (vqtbl4_p8): Likewise.
9810 (vqtbl4q_s8): Likewise.
9811 (vqtbl4q_u8): Likewise.
9812 (vqtbl4q_p8): Likewise.
9813 (vqtbx2_s8): Likewise.
9814 (vqtbx2_u8): Likewise.
9815 (vqtbx2_p8): Likewise.
9816 (vqtbx2q_s8): Likewise.
9817 (vqtbx2q_u8): Likewise.
9818 (vqtbx2q_p8): Likewise.
9819 (vqtbx3_s8): Likewise.
9820 (vqtbx3_u8): Likewise.
9821 (vqtbx3_p8): Likewise.
9822 (vqtbx3q_s8): Likewise.
9823 (vqtbx3q_u8): Likewise.
9824 (vqtbx3q_p8): Likewise.
9825 (vqtbx4_s8): Likewise.
9826 (vqtbx4_u8): Likewise.
9827 (vqtbx4_p8): Likewise.
9828 (vqtbx4q_s8): Likewise.
9829 (vqtbx4q_u8): Likewise.
9830 (vqtbx4q_p8): Likewise.
9831 (vrev16_p8): Likewise.
9832 (vrev16_s8): Likewise.
9833 (vrev16_u8): Likewise.
9834 (vrev16q_p8): Likewise.
9835 (vrev16q_s8): Likewise.
9836 (vrev16q_u8): Likewise.
9837 (vrev32_p8): Likewise.
9838 (vrev32_p16): Likewise.
9839 (vrev32_s8): Likewise.
9840 (vrev32_s16): Likewise.
9841 (vrev32_u8): Likewise.
9842 (vrev32_u16): Likewise.
9843 (vrev32q_p8): Likewise.
9844 (vrev32q_p16): Likewise.
9845 (vrev32q_s8): Likewise.
9846 (vrev32q_s16): Likewise.
9847 (vrev32q_u8): Likewise.
9848 (vrev32q_u16): Likewise.
9849 (vrev64_f32): Likewise.
9850 (vrev64_p8): Likewise.
9851 (vrev64_p16): Likewise.
9852 (vrev64_s8): Likewise.
9853 (vrev64_s16): Likewise.
9854 (vrev64_s32): Likewise.
9855 (vrev64_u8): Likewise.
9856 (vrev64_u16): Likewise.
9857 (vrev64_u32): Likewise.
9858 (vrev64q_f32): Likewise.
9859 (vrev64q_p8): Likewise.
9860 (vrev64q_p16): Likewise.
9861 (vrev64q_s8): Likewise.
9862 (vrev64q_s16): Likewise.
9863 (vrev64q_s32): Likewise.
9864 (vrev64q_u8): Likewise.
9865 (vrev64q_u16): Likewise.
9866 (vrev64q_u32): Likewise.
9867 (vsha1cq_u32): Likewise.
9868 (vsha1mq_u32): Likewise.
9869 (vsha1pq_u32): Likewise.
9870 (vsha1h_u32): Likewise.
9871 (vsha1su0q_u32): Likewise.
9872 (vsha1su1q_u32): Likewise.
9873 (vsha256hq_u32): Likewise.
9874 (vsha256h2q_u32): Likewise.
9875 (vsha256su0q_u32): Likewise.
9876 (vsha256su1q_u32): Likewise.
9877 (vmull_p64): Likewise.
9878 (vmull_high_p64): Likewise.
9879 (vsqrt_f32): Likewise.
9880 (vsqrtq_f32): Likewise.
9881 (vsqrt_f64): Likewise.
9882 (vsqrtq_f64): Likewise.
9883 (vst1_f32): Likewise.
9884 (vst1_f64): Likewise.
9885 (vst1_p8): Likewise.
9886 (vst1_p16): Likewise.
9887 (vst1_p64): Likewise.
9888 (vst1_s8): Likewise.
9889 (vst1_s16): Likewise.
9890 (vst1_s32): Likewise.
9891 (vst1_s64): Likewise.
9892 (vst1_u8): Likewise.
9893 (vst1_u16): Likewise.
9894 (vst1_u32): Likewise.
9895 (vst1_u64): Likewise.
9896 (vst1q_f32): Likewise.
9897 (vst1q_f64): Likewise.
9898 (vst1q_p8): Likewise.
9899 (vst1q_p16): Likewise.
9900 (vst1q_p64): Likewise.
9901 (vst1q_s8): Likewise.
9902 (vst1q_s16): Likewise.
9903 (vst1q_s32): Likewise.
9904 (vst1q_s64): Likewise.
9905 (vst1q_u8): Likewise.
9906 (vst1q_u16): Likewise.
9907 (vst1q_u32): Likewise.
9908 (vst1q_u64): Likewise.
9909 (vst1_s64_x2): Likewise.
9910 (vst1_u64_x2): Likewise.
9911 (vst1_f64_x2): Likewise.
9912 (vst1_s8_x2): Likewise.
9913 (vst1_p8_x2): Likewise.
9914 (vst1_s16_x2): Likewise.
9915 (vst1_p16_x2): Likewise.
9916 (vst1_s32_x2): Likewise.
9917 (vst1_u8_x2): Likewise.
9918 (vst1_u16_x2): Likewise.
9919 (vst1_u32_x2): Likewise.
9920 (vst1_f16_x2): Likewise.
9921 (vst1_f32_x2): Likewise.
9922 (vst1_p64_x2): Likewise.
9923 (vst1q_s8_x2): Likewise.
9924 (vst1q_p8_x2): Likewise.
9925 (vst1q_s16_x2): Likewise.
9926 (vst1q_p16_x2): Likewise.
9927 (vst1q_s32_x2): Likewise.
9928 (vst1q_s64_x2): Likewise.
9929 (vst1q_u8_x2): Likewise.
9930 (vst1q_u16_x2): Likewise.
9931 (vst1q_u32_x2): Likewise.
9932 (vst1q_u64_x2): Likewise.
9933 (vst1q_f16_x2): Likewise.
9934 (vst1q_f32_x2): Likewise.
9935 (vst1q_f64_x2): Likewise.
9936 (vst1q_p64_x2): Likewise.
9937 (vst1_s64_x3): Likewise.
9938 (vst1_u64_x3): Likewise.
9939 (vst1_f64_x3): Likewise.
9940 (vst1_s8_x3): Likewise.
9941 (vst1_p8_x3): Likewise.
9942 (vst1_s16_x3): Likewise.
9943 (vst1_p16_x3): Likewise.
9944 (vst1_s32_x3): Likewise.
9945 (vst1_u8_x3): Likewise.
9946 (vst1_u16_x3): Likewise.
9947 (vst1_u32_x3): Likewise.
9948 (vst1_f16_x3): Likewise.
9949 (vst1_f32_x3): Likewise.
9950 (vst1_p64_x3): Likewise.
9951 (vst1q_s8_x3): Likewise.
9952 (vst1q_p8_x3): Likewise.
9953 (vst1q_s16_x3): Likewise.
9954 (vst1q_p16_x3): Likewise.
9955 (vst1q_s32_x3): Likewise.
9956 (vst1q_s64_x3): Likewise.
9957 (vst1q_u8_x3): Likewise.
9958 (vst1q_u16_x3): Likewise.
9959 (vst1q_u32_x3): Likewise.
9960 (vst1q_u64_x3): Likewise.
9961 (vst1q_f16_x3): Likewise.
9962 (vst1q_f32_x3): Likewise.
9963 (vst1q_f64_x3): Likewise.
9964 (vst1q_p64_x3): Likewise.
9965 (vst2_s64): Likewise.
9966 (vst2_u64): Likewise.
9967 (vst2_f64): Likewise.
9968 (vst2_s8): Likewise.
9969 (vst2_p8): Likewise.
9970 (vst2_s16): Likewise.
9971 (vst2_p16): Likewise.
9972 (vst2_s32): Likewise.
9973 (vst2_u8): Likewise.
9974 (vst2_u16): Likewise.
9975 (vst2_u32): Likewise.
9976 (vst2_f16): Likewise.
9977 (vst2_f32): Likewise.
9978 (vst2_p64): Likewise.
9979 (vst2q_s8): Likewise.
9980 (vst2q_p8): Likewise.
9981 (vst2q_s16): Likewise.
9982 (vst2q_p16): Likewise.
9983 (vst2q_s32): Likewise.
9984 (vst2q_s64): Likewise.
9985 (vst2q_u8): Likewise.
9986 (vst2q_u16): Likewise.
9987 (vst2q_u32): Likewise.
9988 (vst2q_u64): Likewise.
9989 (vst2q_f16): Likewise.
9990 (vst2q_f32): Likewise.
9991 (vst2q_f64): Likewise.
9992 (vst2q_p64): Likewise.
9993 (vst3_s64): Likewise.
9994 (vst3_u64): Likewise.
9995 (vst3_f64): Likewise.
9996 (vst3_s8): Likewise.
9997 (vst3_p8): Likewise.
9998 (vst3_s16): Likewise.
9999 (vst3_p16): Likewise.
10000 (vst3_s32): Likewise.
10001 (vst3_u8): Likewise.
10002 (vst3_u16): Likewise.
10003 (vst3_u32): Likewise.
10004 (vst3_f16): Likewise.
10005 (vst3_f32): Likewise.
10006 (vst3_p64): Likewise.
10007 (vst3q_s8): Likewise.
10008 (vst3q_p8): Likewise.
10009 (vst3q_s16): Likewise.
10010 (vst3q_p16): Likewise.
10011 (vst3q_s32): Likewise.
10012 (vst3q_s64): Likewise.
10013 (vst3q_u8): Likewise.
10014 (vst3q_u16): Likewise.
10015 (vst3q_u32): Likewise.
10016 (vst3q_u64): Likewise.
10017 (vst3q_f16): Likewise.
10018 (vst3q_f32): Likewise.
10019 (vst3q_f64): Likewise.
10020 (vst3q_p64): Likewise.
10021 (vst4_s64): Likewise.
10022 (vst4_u64): Likewise.
10023 (vst4_f64): Likewise.
10024 (vst4_s8): Likewise.
10025 (vst4_p8): Likewise.
10026 (vst4_s16): Likewise.
10027 (vst4_p16): Likewise.
10028 (vst4_s32): Likewise.
10029 (vst4_u8): Likewise.
10030 (vst4_u16): Likewise.
10031 (vst4_u32): Likewise.
10032 (vst4_f16): Likewise.
10033 (vst4_f32): Likewise.
10034 (vst4_p64): Likewise.
10035 (vst4q_s8): Likewise.
10036 (vst4q_p8): Likewise.
10037 (vst4q_s16): Likewise.
10038 (vst4q_p16): Likewise.
10039 (vst4q_s32): Likewise.
10040 (vst4q_s64): Likewise.
10041 (vst4q_u8): Likewise.
10042 (vst4q_u16): Likewise.
10043 (vst4q_u32): Likewise.
10044 (vst4q_u64): Likewise.
10045 (vst4q_f16): Likewise.
10046 (vst4q_f32): Likewise.
10047 (vst4q_f64): Likewise.
10048 (vst4q_p64): Likewise.
10049 (vtbx4_s8): Likewise.
10050 (vtbx4_u8): Likewise.
10051 (vtbx4_p8): Likewise.
10052 (vtrn_f32): Likewise.
10053 (vtrn_p8): Likewise.
10054 (vtrn_p16): Likewise.
10055 (vtrn_s8): Likewise.
10056 (vtrn_s16): Likewise.
10057 (vtrn_s32): Likewise.
10058 (vtrn_u8): Likewise.
10059 (vtrn_u16): Likewise.
10060 (vtrn_u32): Likewise.
10061 (vtrnq_f32): Likewise.
10062 (vtrnq_p8): Likewise.
10063 (vtrnq_p16): Likewise.
10064 (vtrnq_s8): Likewise.
10065 (vtrnq_s16): Likewise.
10066 (vtrnq_s32): Likewise.
10067 (vtrnq_u8): Likewise.
10068 (vtrnq_u16): Likewise.
10069 (vtrnq_u32): Likewise.
10070 (vrsqrte_f16): Likewise.
10071 (vrsqrteq_f16): Likewise.
10072 (vsqrt_f16): Likewise.
10073 (vsqrtq_f16): Likewise.
10074 (vabd_f16): Likewise.
10075 (vabdq_f16): Likewise.
10076 (vpadd_f16): Likewise.
10077 (vpaddq_f16): Likewise.
10078 (vpmax_f16): Likewise.
10079 (vpmaxq_f16): Likewise.
10080 (vpmaxnm_f16): Likewise.
10081 (vpmaxnmq_f16): Likewise.
10082 (vpmin_f16): Likewise.
10083 (vpminq_f16): Likewise.
10084 (vpminnm_f16): Likewise.
10085 (vpminnmq_f16): Likewise.
10086 (vrsqrts_f16): Likewise.
10087 (vrsqrtsq_f16): Likewise.
10089 2019-09-25 Richard Biener <rguenther@suse.de>
10091 PR tree-optimization/91896
10092 * tree-vect-loop.c (vectorizable_reduction): The single
10093 def-use cycle optimization cannot apply when there's more
10094 than one pattern stmt involved.
10096 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10098 * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
10099 the 'P' mode iterator, replacing the (removed) SI and DI variants.
10100 (reload_macho_picbase_<mode>): Likewise.
10102 2019-09-24 Iain Sandoe <iain@sandoe.co.uk>
10104 * config/rs6000/rs6000.md: Move darwin.md include until
10105 after the definition of the mode iterators.
10107 2019-09-23 Martin Sebor <msebor@redhat.com>
10109 PR tree-optimization/91570
10110 * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
10111 non-constant minlen, maxlen and maxbound.
10113 2019-09-24 Richard Biener <rguenther@suse.de>
10115 * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
10117 (_stmt_vec_info::cond_reduc_code): ... this.
10118 (_stmt_vec_info::induc_cond_initial_val): Add.
10119 (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
10120 (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
10121 (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
10122 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
10123 * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
10124 the reduction code.
10125 (vect_create_epilog_for_reduction): Drop special
10126 induction condition reduction params, pass in reduction code
10128 (vectorizable_reduction): Perform condition reduction kind
10129 selection only at analysis time. Adjust passing on state.
10131 2019-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10133 * config/aarch64/aarch64.md (mov<mode>): Don't call
10134 aarch64_split_dimode_const_store on volatile MEM.
10136 2019-09-24 Stamatis Markianos-Wright <stam.markianos-wright@arm.com>
10138 * config/aarch64/aarch64-option-extensions.def (fp16fml):
10139 Update hwcap string for fp16fml.
10141 2019-09-24 Jakub Jelinek <jakub@redhat.com>
10143 PR middle-end/91866
10144 * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
10145 (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
10147 2019-09-24 Martin Liska <mliska@suse.cz>
10149 * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
10150 instead of if-elseif-elseif-...
10151 * gimple-expr.c (extract_ops_from_tree): Likewise.
10152 * gimple.c (get_gimple_rhs_num_ops): Likewise.
10153 * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
10155 2019-09-24 Martin Jambor <mjambor@suse.cz>
10158 * ipa-param-manipulation.c (carry_over_param): Make a method of
10159 ipa_param_body_adjustments, remove now unnecessary argument. Also copy
10160 in case of a context mismatch.
10161 (ipa_param_body_adjustments::common_initialization): Adjust call to
10163 * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
10164 private method carry_over_param.
10166 2019-09-24 Martin Jambor <mjambor@suse.cz>
10169 * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
10171 2019-09-24 Richard Biener <rguenther@suse.de>
10173 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
10176 2019-09-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10178 * config/arm/t-arm (arm-builtins.o): Add dependency on
10179 arm_acle_builtins.def.
10181 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10184 * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
10185 canonical CONST_INTs. Use gen_rtvec.
10187 2019-09-23 Richard Biener <rguenther@suse.de>
10189 * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
10190 avoid adjusting by + 0 or * 1.
10191 (vect_create_epilog_for_reduction): Get reduction code only
10192 when necessary. Deal with adjustment_def only when necessary.
10194 2019-09-23 Richard Sandiford <richard.sandiford@arm.com>
10196 * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
10199 2019-09-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10202 * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
10205 2019-09-22 Iain Sandoe <iain@sandoe.co.uk>
10207 * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
10208 code. Merge code blocks with common conditionals. Use declared
10209 macro instead of a magic number for PIC level.
10211 2019-09-21 Martin Sebor <msebor@redhat.com>
10213 PR middle-end/91830
10214 * gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
10215 Simplify computation of the offset of the referenced subobject.
10217 2019-09-21 Iain Sandoe <iain@sandoe.co.uk>
10219 * config/darwin.c (machopic_legitimize_pic_address): Check
10220 for lra not reload.
10222 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10224 * ira-conflicts.c (can_use_same_reg_p): New function.
10225 (process_reg_shuffles): Take an insn parameter. Ignore cases
10226 in which input operand op_num could seemingly never be allocated
10227 to the same register as the destination.
10228 (add_insn_allocno_copies): Update call to process_reg_shuffles.
10230 2019-09-21 Richard Sandiford <richard.sandiford@arm.com>
10232 * simplify-rtx.c (neg_const_int): Replace with...
10233 (neg_poly_int_rtx): ...this new function.
10234 (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
10235 to all CONST_SCALAR_INTs and to CONST_POLY_INT.
10236 (simplify_plus_minus): Likewise for constant terms here.
10238 2019-09-20 Jonas Pfeil <jonas.pfeil@uli-ulm.de>
10240 * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
10241 HOST_WIDE_PRINT_UNSIGNED.
10243 2019-09-20 John David Anglin <danglin@gcc.gnu.org>
10245 * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
10248 2019-09-20 Maya Rashish <coypu@sdf.org>
10251 * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
10252 Define to speculation_safe_value_not_needed.
10254 2019-09-20 Richard Biener <rguenther@suse.de>
10255 Uros Bizjak <ubizjak@gmail.com>
10258 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
10260 (general_scalar_chain::convert_op): Force not suitable memory
10261 operands to a register.
10263 2019-09-20 Richard Biener <rguenther@suse.de>
10265 PR tree-optimization/91821
10266 * tree-vect-loop.c (check_reduction_path): Check we can compute
10268 (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
10269 * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
10270 operands in canonical order.
10271 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
10272 STMT_VINFO_REDUC_IDX.
10273 * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
10274 (STMT_VINFO_REDUC_IDX): Likewise.
10276 2019-09-20 Eric Botcazou <ebotcazou@adacore.com>
10279 * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10281 2019-09-20 Richard Biener <rguenther@suse.de>
10283 PR tree-optimization/91822
10284 * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
10286 * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
10287 for reduc_index in nested cycles, adjust vectorizable_condition
10289 * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
10291 (vect_analyze_stmt): Adjust.
10292 (vect_transform_stmt): Likewise.
10294 2019-09-20 Richard Biener <rguenther@suse.de>
10297 * config/i386/i386-features.c (general_scalar_chain::convert_registers):
10298 Ensure there's a sequence point between allocating the new register
10299 and passing a reference to a reg via regno_reg_rtx.
10301 2019-09-20 Martin Jambor <mjambor@suse.cz>
10303 * coretypes.h (cgraph_edge): Declare.
10304 * ipa-param-manipulation.c: Rewrite.
10305 * ipa-param-manipulation.h: Likewise.
10306 * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
10307 (OBJS): Added ipa-sra.o.
10308 * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
10309 and ref_p, added fields param_adjustments and performed_splits.
10310 (struct cgraph_clone_info): Remove ags_to_skip and
10311 combined_args_to_skip, new field param_adjustments.
10312 (cgraph_node::create_clone): Changed parameters to use
10313 ipa_param_adjustments.
10314 (cgraph_node::create_virtual_clone): Likewise.
10315 (cgraph_node::create_virtual_clone_with_body): Likewise.
10316 (tree_function_versioning): Likewise.
10317 (cgraph_build_function_type_skip_args): Removed.
10318 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
10319 using ipa_param_adjustments.
10320 (clone_of_p): Likewise.
10321 * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
10322 (build_function_decl_skip_args): Likewise.
10323 (duplicate_thunk_for_node): Adjust parameters using
10324 ipa_param_body_adjustments, copy param_adjustments instead of
10326 (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
10327 (cgraph_node::create_virtual_clone): Likewise.
10328 (cgraph_node::create_version_clone_with_body): Likewise.
10329 (cgraph_materialize_clone): Likewise.
10330 (symbol_table::materialize_all_clones): Likewise.
10331 * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
10332 ipa_replace_map check.
10333 * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
10334 (initialize_node_lattices): Make aware that some parameters might have
10335 already been removed.
10336 (want_remove_some_param_p): New function.
10337 (create_specialized_node): Convert to using ipa_param_adjustments and
10338 deal with possibly pre-existing adjustments.
10339 * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
10340 (output_node_opt_summary): Do not stream removed fields. Stream
10341 parameter adjustments instead of argumetns to skip.
10342 (input_node_opt_summary): Likewise.
10343 (input_node_opt_summary): Likewise.
10344 * lto-section-in.c (lto_section_name): Added ipa-sra section.
10345 * lto-streamer.h (lto_section_type): Likewise.
10346 * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
10348 (copy_decl_to_var): Declare.
10349 * tree-inline.c (update_clone_info): Do not remap old_tree.
10350 (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
10351 statements, walk all extra generated statements and remap their
10353 (redirect_all_calls): Add killed SSA names to a hash set.
10354 (remap_ssa_name): Do not remap killed SSA names.
10355 (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
10356 half of functionality moved to ipa_param_body_adjustments.
10357 (copy_decl_to_var): Make exported.
10358 (copy_body): Destroy killed_new_ssa_names hash set.
10359 (expand_call_inline): Remap performed splits.
10360 (update_clone_info): Likewise.
10361 (tree_function_versioning): Simplify tree_map processing. Updated to
10362 accept ipa_param_adjustments and use ipa_param_body_adjustments.
10363 * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
10364 for the new interface.
10365 (simd_clone_clauses_extract): Likewise, make args an auto_vec.
10366 (simd_clone_compute_base_data_type): Likewise.
10367 (simd_clone_init_simd_arrays): Adjust for the new interface.
10368 (simd_clone_adjust_argument_types): Likewise.
10369 (struct modify_stmt_info): Likewise.
10370 (ipa_simd_modify_stmt_ops): Likewise.
10371 (ipa_simd_modify_function_body): Likewise.
10372 (simd_clone_adjust): Likewise.
10373 * tree-sra.c: Removed IPA-SRA. Include tree-sra.h.
10374 (type_internals_preclude_sra_p): Make public.
10375 * tree-sra.h: New file.
10376 * ipa-inline-transform.c (save_inline_function_body): Update to
10377 refelct new tree_function_versioning signature.
10378 * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
10379 ipa_param_adjustments to get current parameter indices.
10380 (ipcp_modif_dom_walker::before_dom_children): Likewise.
10381 (ipcp_update_bits): Likewise.
10382 (ipcp_update_vr): Likewise.
10383 * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
10384 * ipa-sra.c: New file.
10385 * multiple_target.c (create_target_clone): Update to reflet new type
10386 of create_version_clone_with_body.
10387 * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
10388 tree_function_versioning.
10389 (modify_function): Update to reflect new type of
10390 tree_function_versioning.
10391 * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
10392 * passes.def: Remove old IPA-SRA and add new one.
10393 * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
10394 (make_pass_ipa_sra): Declare.
10395 * dbgcnt.def: Remove eipa_sra. Added ipa_sra_params and
10397 * doc/invoke.texi (ipa-sra-max-replacements): New.
10399 2019-09-19 Martin Sebor <msebor@redhat.com>
10401 PR middle-end/91631
10402 * builtins.c (component_size): Correct trailing array computation,
10403 rename to component_ref_size and move...
10404 (compute_objsize): Adjust.
10405 * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
10406 (builtin_access::strict): Do not consider memmove.
10407 (builtin_access::write_off): New function.
10408 (builtin_memref::builtin_memref): Initialize refsize.
10409 (builtin_memref::set_base_and_offset): Adjust refoff and compute
10411 (builtin_memref::offset_out_of_bounds): Use ooboff input values.
10413 (builtin_access::builtin_access): Initialize dstoff to destination
10414 refeence offset here instead of in maybe_diag_overlap. Adjust
10415 referencess even to unrelated objects. Adjust sizrange of bounded
10416 string functions to reflect bound. For strcat, adjust destination
10417 sizrange by that of source.
10418 (builtin_access::strcat_overlap): Adjust offsets and sizes
10419 to reflect the increase in destination sizrange above.
10420 (builtin_access::overlap): Do not set dstoff here but instead
10421 in builtin_access::builtin_access.
10422 (check_bounds_or_overlap): Use builtin_access::write_off.
10423 (maybe_diag_access_bounds): Add argument. Add informational notes.
10424 (dump_builtin_memref, dump_builtin_access): New functions.
10425 * tree.c (component_ref_size): ...to here.
10426 * tree.h (component_ref_size): Declare.
10427 * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
10428 nul in the size of the source string.
10430 2019-09-19 Lewis Hyatt <lhyatt@gmail.com>
10433 * doc/cpp.texi: Document support for extended characters in
10435 * doc/cppopts.texi: Likewise.
10437 2019-09-19 Richard Biener <rguenther@suse.de>
10439 * tree-vect-loop.c (vect_is_slp_reduction): Remove.
10440 (check_reduction_path): New overload having the path as result.
10441 (vect_is_simple_reduction): From the detected reduction
10442 path build a SLP reduction chain if possible.
10444 2019-09-19 Richard Biener <rguenther@suse.de>
10447 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
10448 Force operand to a register if it isn't nonimmediate_operand.
10450 2019-09-19 Wilco Dijkstra <wdijkstr@arm.com>
10452 * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
10453 * config/arm/iterators.md (optab): Add and, ior, xor entries.
10454 (logical_op): Remove code attribute.
10455 (logical_OP): Likewise.
10457 2019-09-19 Martin Liska <mliska@suse.cz>
10459 * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
10460 Use proper casting.
10462 2019-09-19 Richard Henderson <richard.henderson@linaro.org>
10464 * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
10467 * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
10468 for NE comparison of TImode values.
10469 (aarch64_emit_load_exclusive): Add support for TImode.
10470 (aarch64_emit_store_exclusive): Likewise.
10471 (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
10472 * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
10473 Change iterator from ALLI to ALLI_TI.
10474 (@atomic_compare_and_swap<JUST_TI>): New.
10475 (@atomic_compare_and_swap<JUST_TI>_lse): New.
10476 (aarch64_load_exclusive_pair): New.
10477 (aarch64_store_exclusive_pair): New.
10478 * config/aarch64/iterators.md (JUST_TI): New.
10480 * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
10481 strong_zero_p for aarch64_track_speculation; unify some code paths;
10482 use aarch64_gen_compare_reg instead of open-coding.
10484 * config/aarch64/aarch64.opt (-moutline-atomics): New.
10485 * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
10486 (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
10487 (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
10488 (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
10489 (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
10490 * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
10491 (atomic_<atomic_op><ALLI>): Likewise.
10492 (atomic_fetch_<atomic_op><ALLI>): Likewise.
10493 (atomic_<atomic_op>_fetch<ALLI>): Likewise.
10494 * doc/invoke.texi: Document -moutline-atomics.
10496 2019-09-19 Feng Xue <fxue@os.amperecomputing.com>
10498 * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
10499 trivial predicate for condition branch.
10500 (set_switch_stmt_execution_predicate): Do not compute trivial predicate
10502 (compute_bb_predicates): Update predicate based on post-dominating
10504 (analyze_function_body): Calculate post-dominating information.
10506 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10508 * tree-vectorizer.h (vectorizable_condition): Take an int
10509 reduction index instead of a boolean flag.
10510 * tree-vect-stmts.c (vectorizable_condition): Likewise.
10511 Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
10512 reductions if the reduction accumulator is the "then" rather
10513 than the "else" value.
10514 (vect_analyze_stmt): Update call accordingly.
10515 (vect_transform_stmt): Likewise.
10516 * tree-vect-loop.c (vectorizable_reduction): Likewise,
10517 asserting that the index is > 0.
10519 2019-09-19 Martin Liska <mliska@suse.cz>
10521 * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
10522 (sort_congruence_classes_by_decl_uid): Likewise.
10523 (sort_congruence_class_groups_by_decl_uid): Use std::pair for
10525 (sem_item_optimizer::merge_classes): Likewise.
10527 2019-09-19 Richard Biener <rguenther@suse.de>
10529 PR tree-optimization/91812
10530 * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
10533 2019-09-19 Richard Sandiford <richard.sandiford@arm.com>
10535 * defaults.h (TARGET_UNIT): New macro.
10536 (target_unit): New type.
10537 * rtl.h (native_encode_rtx, native_decode_rtx)
10538 (native_decode_vector_rtx, subreg_size_lsb): Declare.
10539 (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
10540 * rtlanal.c (subreg_lsb_1): Delete.
10541 (subreg_size_lsb): New function.
10542 * simplify-rtx.c: Include rtx-vector-builder.h
10543 (simplify_immed_subreg): Delete.
10544 (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
10545 (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
10547 (simplify_subreg): Use them.
10548 (test_vector_subregs_modes, test_vector_subregs_repeating)
10549 (test_vector_subregs_fore_back, test_vector_subregs_stepped)
10550 (test_vector_subregs): New functions.
10551 (test_vector_ops): Call test_vector_subregs for integer vector
10552 modes with at least 2 elements.
10554 2019-09-19 Richard Biener <rguenther@suse.de>
10556 * tree-parloops.c (parloops_is_slp_reduction): Do not set
10557 LOOP_VINFO_OPERANDS_SWAPPED.
10558 (parloops_is_simple_reduction): Likewise.
10559 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
10560 initialize operands_swapped.
10561 (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
10562 (vect_is_slp_reduction): Do not swap operands.
10563 * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
10564 (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
10566 2019-09-19 Hongtao Liu <hongtao.liu@intel.com>
10569 * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
10570 Add avx_partial_xmm_update.
10572 2019-09-18 Jim Wilson <jimw@sifive.com>
10575 * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
10576 (riscv_move_integer): Likewise.
10577 * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
10578 riscv_move_integer arg.
10579 (riscv_legitimize_move): Likewise.
10580 (riscv_force_temporary): New parameter in_splitter. Don't call
10582 (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
10584 (riscv_add_offset): Likewise.
10585 (riscv_split_symbol): New parameter in_splitter. Pass to
10586 riscv_force_temporary.
10587 (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
10589 (riscv_move_integer): New parameter in_splitter. New local
10590 can_create_psuedo. Don't call riscv_split_integer or force_reg when
10592 (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
10593 riscv_split_symbol, and riscv_force_temporary args.
10594 * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
10595 riscv_move_integer arg.
10596 (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
10598 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10601 * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
10602 hard register store cost to 6.
10604 2019-09-18 H.J. Lu <hongjiu.lu@intel.com>
10607 * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
10608 pseudo register store cost from 3 to 6 to make it the same as
10611 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10614 * config/arm/arm.md (<logical_op>di3): Expand explicitly.
10615 (one_cmpldi2): Likewise.
10616 * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
10617 of the constant parts is simple.
10618 * config/arm/iterators.md (LOGICAL): Add new code iterator.
10619 (logical_op): Add new code attribute.
10620 (logical_OP): Likewise.
10621 * config/arm/predicates.md (arm_anddi_operand): Add predicate.
10622 (arm_iordi_operand): Add predicate.
10623 (arm_xordi_operand): Add predicate.
10625 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10627 * config/arm/arm.md (maddsidi4): Remove expander.
10628 (mulsidi3adddi): Remove pattern.
10629 (mulsidi3adddi_v6): Likewise.
10630 (mulsidi3_nov6): Likewise.
10631 (mulsidi3_v6): Likewise.
10632 (umulsidi3): Remove expander.
10633 (umulsidi3_nov6): Remove pattern.
10634 (umulsidi3_v6): Likewise.
10635 (umulsidi3adddi): Likewise.
10636 (umulsidi3adddi_v6): Likewise.
10637 (<Us>mulsidi3): Add combined expander.
10638 (<Us>maddsidi4): Likewise.
10639 (<US>mull): Add combined umull and smull pattern.
10640 (<US>mlal): Likewise.
10641 * config/arm/iterators.md (Us): Add new iterator.
10643 2019-09-18 Richard Biener <rguenther@suse.de>
10645 * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
10647 (vectorize_fold_left_reduction): Remove assert.
10648 (vectorizable_reduction): Also expect COND_EXPR non-reduction
10649 operand in position 2. Remove assert.
10651 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10653 * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
10654 (smulsi3_highpart_nov6): Remove pattern.
10655 (smulsi3_highpart_v6): Likewise.
10656 (umulsi3_highpart): Likewise.
10657 (umulsi3_highpart_nov6): Likewise.
10658 (umulsi3_highpart_v6): Likewise.
10659 (<US>mull_high): Add new combined multiply pattern.
10661 2019-09-18 Wilco Dijkstra <wdijkstr@arm.com>
10663 * config/arm/arm.md (arm_mulsi3): Remove pattern.
10664 (arm_mulsi3_v6): Likewise.
10665 (mulsi3addsi_v6): Likewise.
10666 (mulsi3subsi): Likewise.
10667 (mul): Add new multiply pattern.
10671 2019-09-18 Richard Biener <rguenther@suse.de>
10673 * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
10674 (parloops_valid_reduction_input_p): Copy from
10675 valid_reduction_input_p.
10676 (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
10677 (parloops_needs_fold_left_reduction_p): Copy from
10678 needs_fold_left_reduction_p.
10679 (parloops_is_simple_reduction): Copy from
10680 vect_is_simple_reduction.
10681 (parloops_force_simple_reduction): Copy from
10682 vect_force_simple_reduction.
10683 (gather_scalar_reductions): Adjust.
10684 * tree-vect-loop.c (vect_force_simple_reduction): Make static.
10685 * tree-vectorizer.h (vect_force_simple_reduction): Remove.
10687 2019-09-18 Richard Biener <rguenther@suse.de>
10689 * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
10690 * tree-vect-loop.c (get_initial_def_for_reduction): Make
10692 (vect_create_epilog_for_reduction): Remove dead code.
10694 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10696 * varasm.c (assemble_real): Generate canonical const_ints.
10698 2019-09-18 Richard Biener <rguenther@suse.de>
10701 * lto-streamer-in.c (input_eh_regions): Move EH init to
10702 lto_materialize_function.
10703 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
10706 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10708 * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
10711 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10713 * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
10714 of checking specifically for INTEGER_CST.
10716 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10718 * stor-layout.c (compute_record_mode): Operate on poly_uint64
10719 sizes instead of uhwi sizes.
10721 2019-09-18 Richard Sandiford <richard.sandiford@arm.com>
10723 * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
10724 (add_const_value_attribute): Handle CONST_POLY_INT.
10726 2019-09-18 Martin Liska <mliska@suse.cz>
10728 * dbgcnt.def (store_merging): New counter.
10729 * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
10730 Use it in store merging.
10732 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10734 * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
10736 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10737 * config/arm/arm.c (arm_sched_variable_issue): New function.
10738 (TARGET_SCHED_VARIABLE_ISSUE): New macro.
10740 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10742 * config/arm/types.md (no_reservation): New reservation.
10743 * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
10745 * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
10746 * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
10747 * config/aarch64/tsv110.md (tsv110_alu): Likewise.
10748 * config/arm/arm1020e.md (1020alu_op): Likewise.
10749 * config/arm/arm1026ejs.md (alu_op): Likewise.
10750 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
10751 * config/arm/arm926ejs.md (9_alu_op): Likewise.
10752 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
10753 * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
10754 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
10755 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
10756 * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
10757 * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
10758 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
10759 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
10760 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
10761 * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
10762 * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
10763 * config/arm/fa526.md (526_alu_op): Likewise.
10764 * config/arm/fa606te.md (606te_alu_op): Likewise.
10765 * config/arm/fa626te.md (626te_alu_op): Likewise.
10766 * config/arm/fa726te.md (726te_alu_op): Likewise.
10767 * config/arm/xgene1.md (xgene1_nop): Likewise.
10769 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10771 * config/arm/thumb1.md (*thumb1_tablejump): Change type from
10772 "no_insn" to "branch".
10774 2019-09-17 Richard Sandiford <richard.sandiford@arm.com>
10776 * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
10778 2019-09-17 Richard Biener <rguenther@suse.de>
10781 * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
10782 was missing generate locations only once.
10784 2019-09-17 Feng Xue <fxue@os.amperecomputing.com>
10787 * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
10789 * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
10790 * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
10791 for switch default case using range analysis information.
10793 2019-09-17 Christophe Lyon <christophe.lyon@linaro.org>
10796 * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
10797 mode attributed is supported by FDPIC.
10799 2019-09-17 Richard Biener <rguenther@suse.de>
10801 PR tree-optimization/91790
10802 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
10803 use the correct DR for setting up realignment.
10805 2019-09-16 Uroš Bizjak <ubizjak@gmail.com>
10808 * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
10809 * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
10810 * config/i386/sync.md (atomic_store<mode>): emit XCHG for
10811 TARGET_USE_XCHG_FOR_ATOMIC_STORE.
10813 2019-09-16 Jason Merrill <jason@redhat.com>
10815 * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
10817 2019-09-16 Martin Liska <mliska@suse.cz>
10819 * gimple-fold.c (or_comparisons_1): Remove rules moved
10821 * match.pd: ... here.
10823 2019-09-16 Martin Liska <mliska@suse.cz>
10825 * gimple-fold.c (or_comparisons_1): Remove rules
10827 * match.pd: ... here.
10829 2019-09-16 Martin Liska <mliska@suse.cz>
10831 * genmatch.c (dt_node::append_simplify): Do not print
10832 warning when we have duplicate patterns belonging
10833 to a same simplify rule.
10834 * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
10835 (maybe_fold_comparisons_from_match_pd): Handle
10836 tcc_comparison as a results.
10837 * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
10839 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10840 Qi Feng <ffengqi@linux.ibm.com>
10842 PR middle-end/88784
10843 * match.pd (x > y && x != XXX_MIN): Optimize into 'x > y'.
10844 (x > y && x == XXX_MIN): Optimize into 'false'.
10845 (x <= y && x == XXX_MIN): Optimize into 'x == XXX_MIN'.
10846 (x < y && x != XXX_MAX): Optimize into 'x < y'.
10847 (x < y && x == XXX_MAX): Optimize into 'false'.
10848 (x >= y && x == XXX_MAX): Optimize into 'x == XXX_MAX'.
10849 (x > y || x != XXX_MIN): Optimize into 'x != XXX_MIN'.
10850 (x <= y || x != XXX_MIN): Optimize into 'true'.
10851 (x <= y || x == XXX_MIN): Optimize into 'x <= y'.
10852 (x < y || x != XXX_MAX): Optimize into 'x != XXX_MAX'.
10853 (x >= y || x != XXX_MAX): Optimize into 'true'.
10854 (x >= y || x == XXX_MAX): Optimize into 'x >= y'.
10856 2019-09-16 Li Jia He <helijia@linux.ibm.com>
10857 Martin Liska <mliska@suse.cz>
10859 * gimple-fold.c (and_comparisons_1): Add type as first
10861 (and_var_with_comparison): Likewise.
10862 (and_var_with_comparison_1): Likewise.
10863 (or_comparisons_1): Likewise.
10864 (or_var_with_comparison): Likewise.
10865 (or_var_with_comparison_1): Likewise.
10866 (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
10867 (maybe_fold_or_comparisons): Likewise.
10868 (maybe_fold_comparisons_from_match_pd): New.
10869 * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
10870 (maybe_fold_or_comparisons): Likewise.
10871 * gimple.c (gimple_size): Make it public and add num_ops argument.
10872 (gimple_init): New function.
10873 (gimple_alloc): Call gimple_init.
10874 * gimple.h (gimple_size): New.
10875 (gimple_init): Likewise.
10876 * tree-if-conv.c (fold_or_predicates): Pass type.
10877 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
10878 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
10879 (optimize_vec_cond_expr): Likewise.
10880 (ovce_extract_ops): Return type of conditional expression.
10881 * tree-ssanames.c (init_ssa_name_imm_use): New.
10882 (make_ssa_name_fn): Use init_ssa_name_imm_use.
10883 * tree-ssanames.h (init_ssa_name_imm_use): New.
10885 2019-09-16 Richard Biener <rguenther@suse.de>
10887 PR tree-optimization/91756
10888 PR tree-optimization/87132
10889 * tree-ssa-alias.h (enum translate_flags): New.
10890 (get_continuation_for_phi): Use it instead of simple bool flag.
10891 (walk_non_aliased_vuses): Likewise.
10892 * tree-ssa-alias.c (maybe_skip_until): Adjust.
10893 (get_continuation_for_phi): When looking across backedges only
10894 disallow valueization.
10895 (walk_non_aliased_vuses): Adjust.
10896 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
10899 2019-09-14 Kewen Lin <linkw@gcc.gnu.org>
10901 PR middle-end/80791
10902 * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
10903 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10904 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10905 * target.def (have_count_reg_decr_p): New hook.
10906 (doloop_cost_for_generic): Likewise.
10907 (doloop_cost_for_address): Likewise.
10908 * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
10909 (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
10910 (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
10911 * doc/tm.texi: Regenerate.
10912 * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
10914 (record_group): Init doloop_p.
10915 (add_candidate_1): Add optional argument doloop, change the handlings
10917 (add_candidate): Likewise.
10918 (generic_predict_doloop_p): Update attribute.
10919 (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
10920 LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
10921 UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
10923 (get_computation_cost): Update for doloop IV cand extra cost.
10924 (determine_group_iv_cost_cond): Update for doloop IV cand.
10925 (determine_iv_cost): Likewise.
10926 (ivopts_estimate_reg_pressure): Likewise.
10927 (may_eliminate_iv): Update handlings for doloop IV cand.
10928 (add_iv_candidate_for_doloop): New function.
10929 (find_iv_candidates): Call function add_iv_candidate_for_doloop.
10930 (iv_ca_set_no_cp): Update for doloop IV cand.
10931 (iv_ca_set_cp): Likewise.
10932 (iv_ca_dump): Dump register cost.
10933 (find_doloop_use): New function.
10934 (analyze_and_mark_doloop_use): Likewise.
10935 (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
10937 2019-09-13 Bernd Edlinger <bernd.edlinger@hotmail.de>
10939 PR middle-end/91708
10940 * cse.c (cse_insn): Do not replace anything with a
10943 2019-09-13 Ian Lance Taylor <iant@golang.org>
10945 * doc/invoke.texi (Optimize Options): Fix typo.
10947 2019-09-12 Uroš Bizjak <ubizjak@gmail.com>
10949 PR tree-optimization/89386
10950 * config/i386/sse.md (smulhrs<mode>3): New expander.
10951 (smulhrsv4hi3): Ditto.
10953 2019-09-12 Richard Biener <rguenther@suse.de>
10955 PR tree-optimization/91750
10956 * tree-vect-loop.c (vectorizable_induction): Compute IV increments
10957 in the type of the evolution.
10959 2019-09-12 Yuliang Wang <yuliang.wang@arm.com>
10961 PR tree-optimization/89386
10962 * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
10963 (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
10964 (<su>mulh<r>s<mode>3): New pattern for MULHRS.
10965 * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
10966 (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
10967 (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
10968 UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
10969 (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
10970 (su, r): Handle the unspecs above.
10971 (bt): New int attribute.
10972 * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
10973 * internal-fn.c (first_commutative_argument): Commutativity info for
10975 * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
10976 (umulhrs_optab): New optabs.
10977 * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
10978 (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
10979 * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
10981 (vect_vect_recog_func_ptrs): Add it.
10983 2019-09-11 Michael Meissner <meissner@linux.ibm.com>
10985 * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
10988 2019-09-11 Nathan Sidwell <nathan@acm.org>
10990 * tree.h (MARK_TS_TYPE_NON_COMMON): New.
10991 * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
10993 2019-09-11 Richard Biener <rguenther@suse.de>
10995 * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
10996 * lto-wrapper.c (merge_and_complain): Pick up -g.
10997 (append_compiler_options): Likewise.
10998 (run_gcc): Re-instantiate handling -g0 at link-time.
10999 * doc/invoke.texi (flto): Document debug info generation.
11001 2019-09-11 Richard Biener <rguenther@suse.de>
11003 PR tree-optimization/90387
11004 * vr-values.c (vr_values::extract_range_basic): After inlining
11005 simplify non-constant __builtin_constant_p to false.
11007 2019-09-11 Eric Botcazou <ebotcazou@adacore.com>
11009 PR rtl-optimization/89795
11010 * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
11011 inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
11013 2019-09-11 Jakub Jelinek <jakub@redhat.com>
11015 PR tree-optimization/91723
11016 * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
11017 instead of pointer equality when checking if argument vectypes are
11020 PR middle-end/91725
11021 * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
11022 of get_nonzero_bits, only call it for integral types.
11024 2019-09-11 Richard Biener <rguenther@suse.de>
11027 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11029 * match.pd: Add flag_unsafe_math_optimizations check
11030 before deciding on the widest type in a binary math operation.
11032 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11034 * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
11035 and CALL_REALLY_USED_REGISTERS must be defined, and that
11036 CALL_REALLY_USED_REGISTERS is preferred.
11037 * doc/tm.texi: Regenerate.
11038 * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
11039 (call_really_used_regs): Likewise.
11040 * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
11041 CALL_REALLY_USED_REGISTERS are defined.
11042 (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
11043 initial value if defined.
11044 (initial_call_really_used_regs): Delete.
11045 (saved_call_really_used_regs): Likewise.
11046 (CALL_REALLY_USED_REGNO_P): Likewise.
11047 (init_reg_sets): Remove handling of call_really_used_regs.
11048 (save_register_info, restore_register_info, globalize_reg): Likewise.
11049 (init_reg_sets_1): Likewise. Use call_used_regs instead of
11050 CALL_REALLY_USED_REGNO_P. Don't set call_used_regs for registers
11051 outside operand_reg_set.
11052 (fix_register): Don't change call_used_regs if
11053 CALL_REALLY_USED_REGISTERS is defined.
11054 * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
11055 * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
11056 instead of call_really_used_regs.
11057 (csky_conditional_register_usage): Remove the old handling of
11058 call_used_regs and change the handling of call_really_used_regs
11059 to use call_used_regs instead.
11060 * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
11061 * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
11062 making a register fixed.
11063 * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
11064 * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
11065 instead of call_really_used_regs.
11066 (m32r_conditional_register_usage): Don't set call_used_regs when
11067 making a register fixed.
11068 * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
11069 * config/mips/mips.c (mips_global_pointer): Use call_used_regs
11070 instead of call_really_used_regs.
11071 (mips_interrupt_extra_call_saved_reg_p): Likewise.
11072 (mips_cfun_call_saved_reg_p): Likewise.
11073 (mips_swap_registers): Remove the old handling of call_used_regs
11074 and change the handling of call_really_used_regs to use call_used_regs
11076 (mips_conditional_register_usage): Likewise.
11077 * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
11078 * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
11079 instead of call_really_used_regs.
11080 (mn10300_get_live_callee_saved_regs): Likewise.
11081 (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
11082 (mn10300_conditional_register_usage): Don't set call_used_regs when
11083 making a register fixed.
11084 * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
11085 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
11086 Remove the old handling of call_used_regs and change the handling
11087 of call_really_used_regs to use call_used_regs instead.
11088 * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
11089 * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
11090 instead of call_really_used_regs.
11091 (s390_register_info_gprtofpr, s390_register_info): Likewise.
11092 (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
11093 (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
11094 (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
11095 (s390_conditional_register_usage): Remove the old handling of
11096 call_used_regs and change the handling of call_really_used_regs
11097 to use call_used_regs instead.
11098 * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
11099 * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
11100 (sh_fix_range, reg_unused_after): Likewise.
11101 (sh_conditional_register_usage): Remove the old handling of
11102 call_used_regs and change the handling of call_really_used_regs
11103 to use call_used_regs instead.
11104 * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
11105 * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
11106 call_used_regs when making a register fixed.
11107 * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
11108 * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
11109 call_used_regs when making a register fixed.
11110 * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
11111 * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
11112 set call_used_regs when making a register fixed.
11113 * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
11114 * config/visium/visium.c (visium_conditional_register_usage): Remove
11115 the old handling of call_used_regs and change the handling of
11116 call_really_used_regs to use call_used_regs instead.
11118 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11120 * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
11121 (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
11122 * reginfo.c (call_used_regs): New macro.
11124 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11126 * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
11128 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11129 (bpf_expand_epilogue): Likewise.
11130 * config/c6x/c6x.c (c6x_save_reg): Likewise.
11131 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
11132 (ft32_expand_epilogue): Likewise.
11133 * config/i386/i386.c (ix86_save_reg): Likewise.
11134 * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
11135 (moxie_expand_epilogue): Likewise.
11136 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11137 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11138 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11140 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11142 * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
11143 * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
11144 instead of testing call_used_regs directly.
11145 * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
11146 (aarch64_components_for_bb): Likewise.
11147 * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
11148 * config/arc/arc.c (arc_must_save_register): Likewise.
11149 (arc_epilogue_uses): Likewise.
11150 * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
11151 (legitimize_pic_address, callee_saved_reg_p): Likewise.
11152 (arm_compute_save_reg0_reg12_mask): Likewise.
11153 (arm_compute_save_core_reg_mask): Likewise.
11154 (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
11155 (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
11156 (cmse_nonsecure_entry_clear_before_return): Likewise.
11157 (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
11158 (arm_expand_epilogue): Likewise.
11159 * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
11160 (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
11161 (_reg_unused_after): Likewise.
11162 * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
11163 (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
11164 (add_to_reg, hwloop_optimize): Likewise.
11165 * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
11166 (bpf_expand_epilogue): Likewise.
11167 * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
11168 * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
11169 * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
11170 * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
11171 (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
11172 (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
11173 * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
11174 * config/frv/frv.c (frv_stack_info): Likewise.
11175 * config/ft32/ft32.c (ft32_compute_frame): Likewise.
11176 (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
11177 * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
11178 (move_callee_saved_registers): Likewise.
11179 * config/h8300/h8300.c (byte_reg): Likewise.
11180 * config/i386/i386-options.c (ix86_set_current_function): Likewise.
11181 * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
11182 (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
11183 * config/i386/predicates.md (sibcall_memory_operand): Likewise.
11184 * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
11185 (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
11186 * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
11187 * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
11188 * config/m32c/m32c.c (need_to_save): Likewise.
11189 * config/m68k/m68k.c (m68k_save_reg): Likewise.
11190 * config/mcore/mcore.c (calc_live_regs): Likewise.
11191 * config/microblaze/microblaze.c (microblaze_must_save_register):
11193 * config/mmix/mmix.c (mmix_local_regno): Likewise.
11194 (mmix_initial_elimination_offset, mmix_reorg): Likewise.
11195 (mmix_use_simple_return, mmix_expand_prologue): Likewise.
11196 (mmix_expand_epilogue): Likewise.
11197 * config/moxie/moxie.c (moxie_compute_frame): Likewise.
11198 (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
11199 * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
11200 * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
11201 (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
11202 * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
11203 * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
11204 * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
11205 * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
11206 * config/pru/pru.c (prologue_saved_reg_p): Likewise.
11207 * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
11208 (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
11209 * config/rl78/rl78.c (need_to_save): Likewise.
11210 * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
11211 (rs6000_stack_info, generate_set_vrsave): Likewise.
11212 (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
11213 * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
11214 * config/rx/rx.c (rx_get_stack_layout): Likewise.
11215 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
11216 * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
11217 * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
11218 (save_local_or_in_reg_p): Likewise.
11219 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
11220 (xstormy16_epilogue_uses): Likewise.
11221 * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
11222 * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
11223 * config/v850/v850.c (compute_register_save_size): Likewise.
11224 * config/vax/vax.c (vax_expand_prologue): Likewise.
11225 * config/visium/visium.c (visium_save_reg_p): Likewise.
11226 * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
11227 * cselib.c (cselib_process_insn): Likewise.
11228 * df-scan.c (df_get_entry_block_def_set): Likewise.
11229 * function.c (aggregate_value_p): Likewise.
11230 * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
11231 * ira-lives.c (process_bb_node_lives): Likewise.
11232 * ira.c (do_reload): Likewise.
11233 * lra-lives.c (process_bb_lives): Likewise.
11234 * lra-remat.c (lra_remat): Likewise.
11235 * lra.c (lra): Likewise.
11236 * postreload.c (reload_combine_recognize_pattern): Likewise.
11237 (reload_cse_move2add): Likewise.
11238 * recog.c (peep2_find_free_register): Likewise.
11239 * regrename.c (check_new_reg_p): Likewise.
11240 * reload.c (find_equiv_reg): Likewise.
11241 * reload1.c (reload, find_reg): Likewise.
11242 * sel-sched.c (init_hard_regs_data): Likewise.
11244 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11246 * config/frv/frv.c (frv_ifcvt_modify_tests): Use
11247 regs_invalidated_by_call & ~fixed_reg_set instead of
11248 call_used_or_fixed_regs & ~fixed_reg_set.
11249 * config/sh/sh.c (output_stack_adjust): Likewise.
11251 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11253 * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
11254 (call_used_reg_set): Delete.
11255 (call_used_or_fixed_regs): New macro.
11256 * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
11257 of call_used_reg_set.
11258 * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
11259 instead of call_used_regs.
11260 (save_call_clobbered_regs): Likewise.
11261 * cfgcleanup.c (old_insns_match_p): Likewise.
11262 * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
11263 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11265 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11266 * config/sh/sh.c (output_stack_adjust): Likewise.
11267 * final.c (collect_fn_hard_reg_usage): Likewise.
11268 * ira-build.c (ira_build): Likewise.
11269 * ira-color.c (calculate_saved_nregs): Likewise.
11270 (allocno_reload_assign, calculate_spill_cost): Likewise.
11271 * ira-conflicts.c (ira_build_conflicts): Likewise.
11272 * ira-costs.c (ira_tune_allocno_costs): Likewise.
11273 * ira-lives.c (process_bb_node_lives): Likewise.
11274 * ira.c (setup_reg_renumber): Likewise.
11275 * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
11276 * lra-constraints.c (need_for_call_save_p): Likewise.
11277 (need_for_split_p, inherit_in_ebb): Likewise.
11278 * lra-lives.c (process_bb_lives): Likewise.
11279 * lra-remat.c (call_used_input_regno_present_p): Likewise.
11280 * postreload.c (reload_combine): Likewise.
11281 * regrename.c (find_rename_reg): Likewise.
11282 * reload1.c (reload_as_needed): Likewise.
11283 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11284 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11285 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11287 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11289 * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
11290 (no_caller_save_reg_set): Delete.
11291 * caller-save.c (init_caller_save): Don't initialize it.
11292 * ira-conflicts.c (ira_build_conflicts): Calculate
11293 no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
11295 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11297 * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
11298 (target_hard_regs::x_savable_regs): New field.
11299 (call_fixed_reg_set): Delete.
11300 (savable_regs): New macro,
11301 * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
11302 (init_reg_sets_1): Likewise. Initialize savable_regs.
11303 * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
11304 for all registers. Set savable_regs instead of call_fixed_reg_set.
11305 (setup_save_areas, save_call_clobbered_regs): Replace uses of
11306 ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
11307 * config/sh/sh.c (output_stack_adjust): Likewise.
11309 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11311 * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
11312 * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
11313 * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
11315 2019-09-10 Richard Sandiford <richard.sandiford@arm.com>
11317 * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
11318 * rtlanal.c (get_call_rtx_from): Likewise.
11319 * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
11320 than the pattern to get_call_rtx_from.
11321 * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
11322 an rtx_insn * instead of an rtx.
11323 * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
11325 2019-09-10 Martin Liska <mliska@suse.cz>
11327 * common.opt: Use newly added WarnRemoved.
11328 * config/aarch64/aarch64.opt: Likewise.
11329 * config/arm/arm.opt: Likewise.
11330 * config/i386/i386.opt: Likewise.
11331 * config/ia64/ia64.opt: Likewise.
11332 * config/rs6000/rs6000.opt: Likewise.
11333 * doc/options.texi: Document WarnRemoved properly.
11334 * dwarf2out.c (gen_producer_string): Handle renamed
11335 OPT_SPECIAL_warn_removed.
11336 * lto-opts.c (lto_write_options): Likewise.
11337 * lto-wrapper.c (merge_and_complain): Likewise.
11338 * opts-common.c (decode_cmdline_option): Likewise.
11339 (prune_options): Likewise.
11340 (read_cmdline_option): Likewise.
11341 (control_warning_option): Likewise.
11342 * opts.c (print_filtered_help): Likewise.
11343 * optc-gen.awk: Parse for WarnRemoved and make usage
11344 of Deprecated an error.
11345 * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
11347 2019-09-10 Arnaud Charlet <charlet@adacore.com>
11349 * doc/install.texi: Fix syntax for html generation.
11351 2019-09-10 Jakub Jelinek <jakub@redhat.com>
11353 PR middle-end/91680
11354 * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
11355 the shift type to type.
11357 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11359 * config/arm/arm.md (stack_protect_combined_set_insn): Handle
11361 (stack_protect_combined_test_insn): Likewise.
11363 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11364 Mickaël Guêné <mickael.guene@st.com>
11366 * config/arm/arm.c (arm_load_tp): Add FDPIC support.
11367 * config/arm/arm.md (FDPIC_REGNUM): New constant.
11368 (load_tp_soft_fdpic): New pattern.
11369 (load_tp_soft): Disable in FDPIC mode.
11371 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11372 Mickaël Guêné <mickael.guene@st.com>
11374 * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
11375 TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
11376 (arm_call_tls_get_addr): Add FDPIC support.
11377 (legitimize_tls_address): Likewise.
11378 (arm_emit_tls_decoration): Likewise.
11380 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11381 Mickaël Guêné <mickael.guene@st.com>
11383 * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
11385 (arm_trampoline_init): Likewise.
11386 (arm_trampoline_adjust_address): Likewise.
11387 * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
11389 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11390 Mickaël Guêné <mickael.guene@st.com>
11392 * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
11393 (legitimize_pic_address): Enforce binding rules on function
11394 pointers in FDPIC mode.
11395 (arm_assemble_integer): Likewise.
11397 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11398 Mickaël Guêné <mickael.guene@st.com>
11400 * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
11401 * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
11404 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11405 Mickaël Guêné <mickael.guene@st.com>
11407 * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
11410 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11411 Mickaël Guêné <mickael.guene@st.com>
11413 * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
11415 * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
11417 * config/arm/arm.c (arm_option_override): Define pic register to
11419 (arm_function_ok_for_sibcall): Disable sibcall optimization if we
11420 have no decl or go through PLT.
11421 (calculate_pic_address_constant): New function.
11422 (legitimize_pic_address): Call calculate_pic_address_constant.
11423 (arm_load_pic_register): Handle TARGET_FDPIC.
11424 (arm_is_segment_info_known): New function.
11425 (arm_pic_static_addr): Add support for FDPIC.
11426 (arm_load_function_descriptor): New function.
11427 (arm_emit_call_insn): Add support for FDPIC.
11428 (arm_assemble_integer): Add support for FDPIC.
11429 * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
11430 Define. (FDPIC_REGNUM): New define.
11431 * config/arm/arm.md (call): Add support for FDPIC.
11432 (call_value): Likewise.
11433 (restore_pic_register_after_call): New pattern.
11434 (untyped_call): Disable if FDPIC.
11435 (untyped_return): Likewise.
11436 * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
11438 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11439 Mickaël Guêné <mickael.guene@st.com>
11441 * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
11442 * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
11443 (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
11444 * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
11445 (CC1_SPEC): Use FDPIC_CC1_SPEC.
11446 (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
11447 * config/arm/uclinuxfdpiceabi.h: New file.
11449 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11451 * config.gcc: Handle *-*-uclinuxfdpiceabi.
11453 2019-09-10 Christophe Lyon <christophe.lyon@st.com>
11454 Mickaël Guêné <mickael.guene@st.com>
11456 * config/arm/arm.opt: Add -mfdpic option.
11457 * doc/invoke.texi: Add documentation for -mfdpic.
11459 2019-09-09 Bernd Edlinger <bernd.edlinger@hotmail.de>
11461 * expmed.c (extract_bit_field): Update function comment
11463 * expr.c (expand_expr_real): Update function comment
11465 (expand_misaligned_mem_ref): New helper function.
11466 (expand_expr_real_2): Use expand_misaligned_mem_ref.
11467 Remove duplicate assignment to "base" at case MEM_REF.
11468 Remove a shadowed variable "unsignedp" at case VCE.
11470 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11472 * regset.h (regs_invalidated_by_call_regset): Delete.
11473 (fixed_reg_set_regset): Likewise.
11474 * reginfo.c (regs_invalidated_by_call_regset): Likewise.
11475 (fixed_reg_set_regset, persistent_obstack): Likewise.
11476 (init_reg_sets_1, globalize_reg): Update accordingly.
11477 * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
11478 instead of a bitmap.
11479 * df-core.c (df_print_regset, df_print_word_regset): Likewise.
11480 * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
11481 instead of regs_invalidated_by_call_regset.
11482 (df_lr_confluence_n, df_md_confluence_n): Likewise.
11483 * df-scan.c (df_scan_start_dump): Likewise.
11484 * dse.c (copy_fixed_regs): Likewise.
11485 * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
11487 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11489 * array-traits.h: New file.
11490 * coretypes.h (array_traits, bitmap_view): New types.
11491 * bitmap.h: Include "array-traits.h"
11492 (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11493 (base_bitmap_view, bitmap_view): New classes.
11494 * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
11495 * hard-reg-set.h: Include array-traits.h.
11496 (array_traits<HARD_REG_SET>): New struct.
11497 * regset.h (IOR_REG_SET_HRS): New macro.
11498 * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
11499 rather than iterating over each hard register.
11500 * sched-deps.c (sched_analyze_insn): Likewise.
11501 * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
11503 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11505 * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
11506 instead of a HARD_REG_SET *.
11507 * ira-build.c (ior_hard_reg_conflicts): Likewise.
11508 (ira_build): Update call accordingly.
11509 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
11511 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11513 * hard-reg-set.h (HARD_REG_SET::operator==): New function.
11514 (HARD_REG_SET::operator!=): Likewise.
11515 (hard_reg_set_equal_p): Delete.
11516 * cfgcleanup.c (old_insns_match_p): Use == instead of
11517 hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
11518 * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
11519 (add_allocno_hard_regs_to_forest): Likewise.
11520 (setup_allocno_available_regs_num): Likewise.
11521 * ira.c (setup_pressure_classes): Likewise.
11522 (setup_allocno_and_important_classes): Likewise.
11523 (setup_reg_class_relations): Likewise.
11524 * lra-lives.c (process_bb_lives): Likewise.
11525 * reg-stack.c (change_stack, convert_regs_1): Likewise.
11527 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11529 * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
11530 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
11531 Use "|~" instead of IOR_COMPL_HARD_REG_SET.
11532 * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
11534 * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
11535 * ira.c (setup_reg_renumber): Likewise.
11536 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11537 * regrename.c (regrename_find_superclass): Likewise.
11538 * reload1.c (find_reg): Likewise.
11540 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11542 * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
11543 * caller-save.c (setup_save_areas): Use "&~" instead of
11544 AND_COMPL_HARD_REG_SET.
11545 (save_call_clobbered_regs): Likewise.
11546 * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
11548 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11549 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11550 * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
11551 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11552 (mips_conditional_register_usage): Likewise.
11553 * config/sh/sh.c (output_stack_adjust): Likewise.
11554 * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
11555 (setup_profitable_hard_regs): Likewise.
11556 (get_conflict_and_start_profitable_regs): Likewise.
11557 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11558 (ira_build_conflicts): Likewise.
11559 * ira-costs.c (restrict_cost_classes): Likewise.
11560 (setup_regno_cost_classes_by_aclass): Likewise.
11561 * ira-lives.c (process_bb_node_lives): Likewise.
11562 * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
11563 (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
11564 (setup_allocno_and_important_classes, setup_class_translate_array)
11565 (setup_reg_class_relations, setup_prohibited_class_mode_regs):
11567 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11568 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11569 (process_alt_operands, inherit_in_ebb): Likewise.
11570 * lra-eliminations.c (update_reg_eliminate): Likewise.
11571 * lra-lives.c (process_bb_lives): Likewise.
11572 * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
11573 * resource.c (find_dead_or_set_registers): Likewise.
11574 (mark_target_live_regs): Likewise.
11575 * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
11576 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11577 (implicit_clobber_conflict_p): Likewise.
11578 * shrink-wrap.c (requires_stack_frame_p): Likewise.
11579 (try_shrink_wrapping): Likewise.
11581 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11583 * hard-reg-set.h (HARD_REG_SET::operator|): New function.
11584 (HARD_REG_SET::operator|=): Likewise.
11585 (IOR_HARD_REG_SET): Delete.
11586 * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
11588 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11589 * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
11590 * final.c (collect_fn_hard_reg_usage): Likewise.
11591 * hw-doloop.c (scan_loop, optimize_loop): Likewise.
11592 * ira-build.c (merge_hard_reg_conflicts): Likewise.
11593 (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
11594 (propagate_some_info_from_allocno): Likewise.
11595 (copy_info_to_removed_store_destinations): Likewise.
11596 * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
11597 (allocno_reload_assign, ira_reassign_pseudos): Likewise.
11598 (fast_allocation): Likewise.
11599 * ira-conflicts.c (ira_build_conflicts): Likewise.
11600 * ira-lives.c (make_object_dead, process_single_reg_class_operands)
11601 (process_bb_node_lives): Likewise.
11602 * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
11603 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11604 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11605 * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
11606 * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
11607 * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
11608 (process_bb_lives): Likewise.
11609 * lra-spills.c (assign_spill_hard_regs): Likewise.
11610 * postreload.c (reload_combine): Likewise.
11611 * reginfo.c (init_reg_sets_1): Likewise.
11612 * regrename.c (merge_overlapping_regs, find_rename_reg)
11613 (merge_chains): Likewise.
11614 * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
11615 (find_reload_regs, finish_spills, choose_reload_regs_init)
11616 (emit_reload_insns): Likewise.
11617 * reorg.c (redundant_insn): Likewise.
11618 * resource.c (find_dead_or_set_registers, mark_set_resources)
11619 (mark_target_live_regs): Likewise.
11620 * rtlanal.c (find_all_hard_reg_sets): Likewise.
11621 * sched-deps.c (sched_analyze_insn): Likewise.
11622 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11623 (find_best_reg_for_expr): Likewise.
11624 * shrink-wrap.c (try_shrink_wrapping): Likewise.
11626 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11628 * hard-reg-set.h (HARD_REG_SET::operator&): New function.
11629 (HARD_REG_SET::operator&): Likewise.
11630 (AND_HARD_REG_SET): Delete.
11631 * caller-save.c (setup_save_areas): Use "&" instead of
11633 (save_call_clobbered_regs): Likewise.
11634 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11635 * config/m32c/m32c.c (reduce_class): Likewise.
11636 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11637 * final.c (get_call_reg_set_usage): Likewise.
11638 * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
11639 (setup_left_conflict_sizes_p): Likewise.
11640 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11641 (ira_build_conflicts): Likewise.
11642 * ira-costs.c (restrict_cost_classes): Likewise.
11643 * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
11644 (setup_reg_class_relations): Likewise.
11645 * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
11646 * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
11647 * resource.c (find_dead_or_set_registers): Likewise.
11648 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11650 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11652 * hard-reg-set.h (HARD_REG_SET::operator~): New function.
11653 (COMPL_HARD_REG_SET): Delete.
11654 * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
11655 of COMPL_HARD_REG_SET.
11656 (try_rename_operands): Likewise.
11657 * config/sh/sh.c (push_regs): Likewise.
11658 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11659 * lra-constraints.c (contains_reg_p): Likewise.
11660 * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
11662 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11664 * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
11665 * caller-save.c (save_call_clobbered_regs): Use assignment instead
11666 of COPY_HARD_REG_SET.
11667 * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
11668 (epiphany_conditional_register_usage): Likewise.
11669 * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
11670 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11671 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
11672 * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
11673 * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
11674 * config/mips/mips.c (mips_class_max_nregs): Likewise.
11675 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
11676 * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
11677 * config/sh/sh.c (output_stack_adjust): Likewise.
11678 * final.c (collect_fn_hard_reg_usage): Likewise.
11679 (get_call_reg_set_usage): Likewise.
11680 * ira-build.c (ira_create_object, remove_low_level_allocnos)
11681 (ira_flattening): Likewise.
11682 * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
11683 (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
11684 (get_conflict_and_start_profitable_regs, allocno_reload_assign)
11685 (ira_reassign_pseudos): Likewise.
11686 * ira-conflicts.c (print_allocno_conflicts): Likewise.
11687 (ira_build_conflicts): Likewise.
11688 * ira-costs.c (restrict_cost_classes): Likewise.
11689 (setup_regno_cost_classes_by_aclass): Likewise.
11690 * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
11691 (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
11692 (setup_stack_reg_pressure_class, setup_pressure_classes)
11693 (setup_allocno_and_important_classes, setup_class_translate_array)
11694 (setup_reg_class_relations, setup_prohibited_class_mode_regs)
11695 (ira_setup_eliminable_regset): Likewise.
11696 * lra-assigns.c (find_hard_regno_for_1): Likewise.
11697 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
11698 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
11699 (process_alt_operands, inherit_in_ebb): Likewise.
11700 * lra-lives.c (process_bb_lives): Likewise.
11701 * lra-spills.c (assign_spill_hard_regs): Likewise.
11702 * lra.c (lra): Likewise.
11703 * mode-switching.c (new_seginfo): Likewise.
11704 * postreload.c (reload_combine): Likewise.
11705 * reg-stack.c (straighten_stack): Likewise.
11706 * reginfo.c (save_register_info, restore_register_info): Likewise.
11707 (init_reg_sets_1, record_subregs_of_mode): Likewise
11708 * regrename.c (create_new_chain, rename_chains): Likewise.
11709 * reload1.c (order_regs_for_reload, find_reg): Likewise.
11710 (find_reload_regs): Likewise.
11711 * resource.c (find_dead_or_set_registers): Likewise.
11712 (mark_target_live_regs): Likewise.
11713 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
11715 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11717 * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
11718 (note_pattern_stores): Declare.
11719 (note_stores): Take an rtx_insn *.
11720 * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
11721 (find_all_hard_reg_sets): Pass the insn rather than its pattern to
11722 note_stores. Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
11723 (note_stores): Take an rtx_insn * as argument and process
11724 CALL_INSN_FUNCTION_USAGE. Rename old function to...
11725 (note_pattern_stores): ...this.
11726 (find_first_parameter_load): Pass the insn rather than
11727 its pattern to note_stores.
11728 * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
11729 * caller-save.c (setup_save_areas, save_call_clobbered_regs)
11730 (insert_one_insn): Likewise.
11731 * combine.c (combine_instructions): Likewise.
11732 (likely_spilled_retval_p): Likewise.
11733 (try_combine): Use note_pattern_stores instead of note_stores.
11734 (record_dead_and_set_regs): Pass the insn rather than its pattern
11736 (reg_dead_at_p): Likewise.
11737 * config/bfin/bfin.c (workaround_speculation): Likewise.
11738 * config/c6x/c6x.c (maybe_clobber_cond): Likewise. Take an rtx_insn *
11739 rather than an rtx.
11740 * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
11741 instead of note_stores.
11742 (frv_optimize_membar_local): Pass the insn rather than its pattern
11744 * config/gcn/gcn.c (gcn_md_reorg): Likewise.
11745 * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
11746 * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
11747 (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
11748 (mips_reorg_process_insns): Likewise.
11749 * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
11750 * config/sh/sh.c (flow_dependent_p): Likewise. Take rtx_insn *s
11752 * cse.c (delete_trivially_dead_insns): Pass the insn rather than
11753 its pattern to note_stores.
11754 * cselib.c (cselib_record_sets): Use note_pattern_stores instead
11756 * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
11757 the insn to note_stores.
11758 (prescan_insns_for_dce): Update call accordingly.
11759 * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
11761 * df-problems.c (can_move_insns_across): Likewise.
11762 * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
11763 * function.c (assign_parm_setup_reg): Likewise.
11764 * gcse-common.c (record_last_mem_set_info_common): Likewise.
11765 * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
11766 (single_set_gcse): Likewise.
11767 * ira.c (validate_equiv_mem): Likewise.
11768 (update_equiv_regs): Use note_pattern_stores rather than note_stores
11770 * loop-doloop.c (doloop_optimize): Pass the insn rather than its
11771 pattern to note_stores.
11772 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
11773 * loop-iv.c (simplify_using_initial_values): Likewise.
11774 * mode-switching.c (optimize_mode_switching): Likewise.
11775 * optabs.c (emit_libcall_block_1): Likewise.
11776 (expand_atomic_compare_and_swap): Likewise.
11777 * postreload-gcse.c (load_killed_in_block_p): Likewise.
11778 (record_opr_changes): Likewise. Remove explicit handling of
11779 CALL_INSN_FUNCTION_USAGE.
11780 * postreload.c (reload_combine, reload_cse_move2add): Likewise.
11781 * regcprop.c (kill_clobbered_values): Likewise.
11782 (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
11784 * regrename.c (build_def_use): Likewise.
11785 * reload1.c (reload): Use note_pattern_stores instead of note_stores
11786 for mark_not_eliminable.
11787 (reload_as_needed): Pass the insn rather than its pattern
11789 (emit_output_reload_insns): Likewise.
11790 * resource.c (mark_target_live_regs): Likewise.
11791 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
11792 * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
11793 instead of note_stores.
11794 * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
11795 its pattern to note_stores.
11796 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
11797 * var-tracking.c (adjust_insn, add_with_sets): Likewise.
11799 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11801 * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
11802 than a #define. Use a structure rather than an array as the
11803 fallback definition. Remove special cases for low array sizes.
11804 (const_hard_reg_set): New typedef.
11805 (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
11806 (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
11807 (hard_reg_set_empty_p): Likewise.
11808 (SET_HARD_REG_BIT): Use a function rather than a macro to
11809 handle the case in which HARD_REG_SET is a structure.
11810 (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
11811 (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
11812 (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
11813 (IOR_COMPL_HARD_REG_SET): Likewise.
11814 (hard_reg_set_iterator::pset): Constify the pointer target.
11815 (hard_reg_set_iter_init): Take a const_hard_reg_set instead
11816 of a "const HARD_REG_SET". Update the handling of non-integer
11818 * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
11819 * reload.h: Likewise.
11820 * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
11821 * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
11822 of a "const HARD_REG_SET".
11823 (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
11824 (range_in_hard_reg_set_p): Likewise.
11825 * ira-costs.c (restrict_cost_classes): Likewise.
11826 * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
11827 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
11828 Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
11829 * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
11830 use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
11831 (rws_insn_set, rws_insn_test): In the CHECKING_P version,
11832 take an unsigned int and open-code the HARD_REG_SET operations.
11834 2019-09-09 Richard Sandiford <richard.sandiford@arm.com>
11836 * Makefile.in (OBJS): Remove bt-load.o.
11837 * doc/invoke.texi (fbranch-target-load-optimize): Delete.
11838 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11839 * common.opt (fbranch-target-load-optimize): Mark as Ignore and
11840 document that the option no longer does anything.
11841 (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
11842 * target.def (branch_target_register_class): Delete.
11843 (branch_target_register_callee_saved): Likewise.
11844 * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
11845 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
11846 * doc/tm.texi: Regenerate.
11847 * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
11848 (make_pass_branch_target_load_optimize2): Likewise.
11849 * passes.def (pass_branch_target_load_optimize1): Likewise.
11850 (pass_branch_target_load_optimize2): Likewise.
11851 * targhooks.h (default_branch_target_register_class): Likewise.
11852 * targhooks.c (default_branch_target_register_class): Likewise.
11853 * opt-suggestions.c (test_completion_valid_options): Remove
11854 -fbtr-bb-exclusive from the list of test options.
11855 * bt-load.c: Remove.
11857 2019-09-09 Barnaby Wilks <barnaby.wilks@arm.com>
11859 * match.pd: Add flag_unsafe_math_optimizations check
11860 before deciding on the widest type in a binary math operation.
11862 2019-09-09 Martin Liska <mliska@suse.cz>
11864 * config/i386/i386.opt: Update comment of removed
11865 options that are preserved only for backward
11868 2019-09-09 Jakub Jelinek <jakub@redhat.com>
11871 * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
11872 instead of __v16qs.
11875 * config/i386/avxintrin.h (__v32qs): New typedef.
11876 * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
11877 instead of __v32qi.
11879 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11881 * doc/invoke.texi (Option Summary): Cover eBPF.
11882 (eBPF Options): New section.
11883 * doc/extend.texi (BPF Built-in Functions): Likewise.
11884 (BPF Kernel Helpers): Likewise.
11886 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11888 * config.gcc: Support for bpf-*-* targets.
11889 * common/config/bpf/bpf-common.c: New file.
11890 * config/bpf/t-bpf: Likewise.
11891 * config/bpf/predicates.md: Likewise.
11892 * config/bpf/constraints.md: Likewise.
11893 * config/bpf/bpf.opt: Likewise.
11894 * config/bpf/bpf.md: Likewise.
11895 * config/bpf/bpf.h: Likewise.
11896 * config/bpf/bpf.c: Likewise.
11897 * config/bpf/bpf-protos.h: Likewise.
11898 * config/bpf/bpf-opts.h: Likewise.
11899 * config/bpf/bpf-helpers.h: Likewise.
11900 * config/bpf/bpf-helpers.def: Likewise.
11902 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11904 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11907 2019-09-09 Jose E. Marchesi <jose.marchesi@oracle.com>
11909 * opt-functions.awk (integer_range_info): Make sure values are in
11910 numeric context before operating with them.
11912 2019-09-08 Segher Boessenkool <segher@kernel.crashing.org>
11914 * genemit.c (gen_split): Print the filename and line number where the
11915 splitter (or peephole2) was defined, to the dump file.
11917 2019-09-07 Jakub Jelinek <jakub@redhat.com>
11919 PR tree-optimization/91665
11920 * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
11921 incompatible with the type of PHI result.
11923 2019-09-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
11926 * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
11927 gen_unaligned_storedi for 4-byte aligned addresses.
11929 2019-09-06 Jim Wilson <jimw@sifive.com>
11931 * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
11934 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11936 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
11938 2019-09-06 Segher Boessenkool <segher@kernel.crashing.org>
11940 * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
11941 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
11943 2019-09-06 Uroš Bizjak <ubizjak@gmail.com>
11946 * config/i386/x86-tune-costs.h (skylake_cost): Raise the
11947 cost of SSE->integer and integer->SSE moves from 2 to 6.
11948 (core_cost): Ditto.
11950 2019-09-06 Jakub Jelinek <jakub@redhat.com>
11952 * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
11953 before testing TYPE_TRANSPARENT_AGGR.
11954 * calls.c (initialize_argument_information, load_register_parameters):
11957 2019-09-06 Richard Earnshaw <rearnsha@arm.com>
11959 * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
11961 (cmp_ior): Likewise.
11963 2019-09-06 Martin Liska <mliska@suse.cz>
11965 * doc/match-and-simplify.texi: Separate tuples with ;.
11967 2019-09-06 Martin Liska <mliska@suse.cz>
11970 * Makefile.in: Remove tlink.o.
11971 * collect2.c (do_link): New function isolated
11974 * collect2.h (do_tlink): Remove declaration of do_tlink.
11975 * doc/extend.texi: Remove documentation of -frepo.
11976 * doc/invoke.texi: Likewise.
11977 * doc/sourcebuild.texi: Remove cleanup-repo-files.
11980 2019-09-05 Jakub Jelinek <jakub@redhat.com>
11981 Jim Wilson <jimw@sifive.com>
11984 * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
11985 extend<SHORT:mode><SUPERQI:mode>2): Don't split if
11986 paradoxical_subreg_p (operands[0]).
11987 (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
11988 use as intermediate value.
11990 2019-09-05 Andrew Stubbs <ams@codesourcery.com>
11992 * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
11993 (sync_compare_and_swap<mode>_insn): Likewise.
11995 2019-09-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
11997 PR middle-end/91615
11998 * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
11999 without movmisalign optab.
12001 2019-09-05 Jakub Jelinek <jakub@redhat.com>
12003 PR middle-end/91001
12004 PR middle-end/91105
12005 PR middle-end/91106
12006 * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
12007 types, use type of their first field instead of type of
12008 args[i].tree_value.
12010 2019-09-05 Richard Biener <rguenther@suse.de>
12012 PR rtl-optimization/91656
12013 * postreload-gcse.c (record_last_mem_set_info): Revert addition
12016 2019-09-05 Richard Biener <rguenther@suse.de>
12018 PR middle-end/90501
12019 * tree-inline.c (declare_return_variable): Mark the return
12020 slot as addressable after building an address of it.
12022 2019-09-05 Arnaud Charlet <charlet@adacore.com>
12024 * doc/install.texi: Update and clarify requirements to build GNAT.
12026 2019-09-05 Richard Sandiford <richard.sandiford@arm.com>
12028 PR middle-end/91577
12029 * cfgexpand.c (discover_nonconstant_array_refs): Force the source
12030 of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
12031 call to be in memory.
12032 (pass_expand::execute): Call discover_nonconstant_array_refs before
12033 setting currently_expanding_to_rtl.
12035 2019-09-04 Caroline Tice <cmtice@google.com>
12037 * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
12038 specified together.
12040 2019-09-04 Marek Polacek <polacek@redhat.com>
12042 * doc/invoke.texi: Remove -fdeduce-init-list documentation.
12044 2019-09-04 Uroš Bizjak <ubizjak@gmail.com>
12047 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12048 for QI and HImode moves between SSE and general registers.
12050 2019-09-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12053 * doc/invoke.texi: Document -Wenum-conversion.
12055 2019-09-04 Richard Biener <rguenther@suse.de>
12057 PR rtl-optimization/36262
12058 * postreload-gcse.c: Include intl.h and gcse.h.
12059 (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
12060 to avoid linear list walk.
12061 (record_last_mem_set_info): Gate off if not computing transparentness.
12062 (get_bb_avail_insn): If transparentness isn't computed give up
12064 (gcse_after_reload_main): Skip compute_transp and extended PRE
12065 if gcse_or_cprop_is_too_expensive says so.
12067 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12069 * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
12071 (msp430_select_section): Handle decls with the "noinit" attribute with
12072 default_elf_select_section.
12073 Handle SECCAT_RODATA_MERGE_* section types with
12074 default_elf_select_section.
12075 Add comments about handling of unsupported section types.
12076 (msp430_section_type_flags): Remove handling of the noinit section.
12078 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12080 * config/msp430/msp430.c (msp430_attr): Remove warnings about
12081 conflicting msp430-specific attributes.
12082 (msp430_section_attr): Likewise.
12083 Add warnings about conflicts with generic "noinit" and "section"
12085 Fix grammar in -mlarge error message.
12086 (msp430_data_attr): Rename to msp430_persist_attr.
12087 Add warnings about conflicts with generic "noinit" and "section"
12089 Add warning for when variable is not initialized.
12090 Chain conditionals which prevent the attribute being added.
12091 (ATTR_EXCL): New helper.
12092 (attr_reent_exclusions): New exclusion table.
12093 (attr_naked_exclusions): Likewise.
12094 (attr_crit_exclusions): Likewise.
12095 (attr_lower_exclusions): Likewise.
12096 (attr_upper_exclusions): Likewise.
12097 (attr_either_exclusions): Likewise.
12098 (attr_persist_exclusions): Likewise.
12099 (msp430_attribute_table): Update with exclusion rules.
12100 (msp430_output_aligned_decl_common): Don't output common symbol if decl
12103 2019-09-03 Jozef Lawrynowicz <jozef.l@mittosystems.com>
12105 * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
12106 (msp430_handle_generic_attribute): New function.
12107 * doc/tm.texi: Regenerate.
12108 * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
12109 * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12110 * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
12111 * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
12113 2019-09-03 Kamlesh Kumar <kamleshbhalui@gmail.com>
12115 PR tree-optimization/91504
12116 * match.pd: Add ((~a & b) ^a) --> (a | b).
12118 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12121 * config/i386/i386-expand.c (split_double_mode): If there is more than
12122 one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
12123 already split matching MEM operand instead of calling adjust_address
12126 2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
12128 * config.gcc: Obsolete spu target. Remove references to spu.
12129 * configure.ac: Remove references to spu.
12130 * configure: Regenerate.
12131 * config/spu/: Remove directory.
12132 * common/config/spu/: Remove directory.
12134 * doc/extend.texi: Remove references to spu.
12135 * doc/invoke.texi: Likewise.
12136 * doc/md.texi: Likewise.
12137 * doc/sourcebuild.texi: Likewise.
12139 2019-09-03 Bernd Edlinger <bernd.edlinger@hotmail.de>
12141 PR middle-end/91603
12142 PR middle-end/91612
12143 PR middle-end/91613
12144 * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
12145 and SSA_NAME referring to CONSTANT_P correctly.
12147 2019-09-03 Richard Biener <rguenther@suse.de>
12149 * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
12150 (vn_nary_op_insert): Likewise.
12151 * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
12152 (vn_nary_op_lookup): Likewise.
12153 (vn_nary_op_insert): Likewise.
12155 2019-09-03 Ilya Leoshkevich <iii@linux.ibm.com>
12157 * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
12158 (*op0, 1) instead of XEXP (*op1, 0).
12160 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12162 * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
12163 (aarch64_fjcvtzs): New define_insn.
12164 * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
12165 * config/aarch64/aarch64-builtins.c (aarch64_builtins):
12167 (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
12168 (aarch64_expand_builtin): Handle AARCH64_JSCVT.
12169 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12170 __ARM_FEATURE_JCVT where appropriate.
12171 * config/aarch64/arm_acle.h (__jcvt): Define.
12173 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12175 * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
12176 UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
12177 (aarch64_<frintnzs_op><mode>): New define_insn.
12178 * config/aarch64/aarch64.h (TARGET_FRINT): Define.
12179 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
12180 __ARM_FEATURE_FRINT when appropriate.
12181 * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
12182 frint32x, frint64z, frint64x.
12183 * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
12184 __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
12185 * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
12186 vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
12187 vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
12188 vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
12189 * config/aarch64/iterators.md (VSFDF): Define.
12190 (FRINTNZX): Likewise.
12191 (frintnzs_op): Likewise.
12193 2019-09-03 Dennis Zhang <dennis.zhang@arm.com>
12195 * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
12196 for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
12198 * config/aarch64/aarch64-tune.md: Regenerated.
12199 * doc/invoke.texi: Document the new processors.
12201 2019-09-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12203 * config/aarch64/aarch64-option-extensions.def (sb): Add feature
12207 (sve2-sm4): Likewise.
12208 (sveaes): Likewise.
12209 (svesha3): Likewise.
12210 (svebitperm): Likewise.
12212 2019-09-03 Jakub Jelinek <jakub@redhat.com>
12213 Richard Biener <rguenther@suse.de>
12215 PR tree-optimization/91597
12216 * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
12217 BIT_AND_EXPR optimization for pointers, even if both operand
12218 ranges don't include NULL, the result can be NULL.
12220 2019-09-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12222 PR middle-end/91605
12223 * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
12224 (non_mem_decl_p): ...this.
12225 (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
12226 (expand_assignment): Call mem_ref_referes_to_non_mem_p
12227 unconditionally as before.
12229 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12232 * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
12233 * rtl.def (LTGT): Likewise. Add note about floating-point exceptions.
12234 * tree.def (LTGT_EXPR): Likewise.
12235 * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
12237 2019-09-02 Jakub Jelinek <jakub@redhat.com>
12240 * fold-const.c (range_check_type): For enumeral and boolean
12241 type, pass 1 to type_for_size langhook instead of
12242 TYPE_UNSIGNED (etype). Return unsigned_type_for result whenever
12243 etype isn't TYPE_UNSIGNED INTEGER_TYPE.
12244 (build_range_check): Don't call unsigned_type_for for pointer types.
12245 * match.pd (X / C1 op C2): Don't call unsigned_type_for on
12246 range_check_type result.
12248 2019-09-02 Eric Botcazou <ebotcazou@adacore.com>
12250 * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
12251 (replace_ref): Do not replace a chain of only two candidates which are
12252 valid memory references.
12254 2019-09-02 Martin Liska <mliska@suse.cz>
12256 * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
12257 Bail out when we'll end up with the same number of clusters as
12259 (bit_test_cluster::find_bit_tests): Likewise for bit tests.
12260 (jump_table_cluster::can_be_handled): Remove the guard
12261 as it's already handled in ::is_enabled. Allocate output
12262 after early bail out.
12264 2019-09-02 Martin Liska <mliska@suse.cz>
12266 PR gcov-profile/91601
12267 * gcov.c (path_contains_zero_cycle_arc): Rename to ...
12268 (path_contains_zero_or_negative_cycle_arc): ... this and handle
12269 also negative edges.
12270 (circuit): Handle also negative edges as they can happen
12271 in some situations.
12273 2019-09-01 Eric Botcazou <ebotcazou@adacore.com>
12276 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
12277 during LRA/reload in PIC mode if the PIC register hasn't been used yet.
12278 (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
12280 2019-09-01 Jakub Jelinek <jakub@redhat.com>
12282 PR middle-end/91623
12283 * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
12284 EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
12285 zeros or negative elements and use NE_EXPR instead of LT_EXPR against
12289 * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
12290 GIMPLE_ASM TREE_LIST operands.
12292 2019-08-31 Gerald Pfeifer <gerald@pfeifer.com>
12294 * doc/generic.texi (Unary and Binary Expressions): Mark up
12295 an instance of TYPE_MIN.
12297 2019-08-31 Stafford Horne <shorne@gmail.com>
12299 * config/or1k/constraints.md (t): New constraint.
12300 * config/or1k/or1k.h (GOT_REGS): New register class.
12301 * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
12303 2019-08-30 Jim Wilson <jimw@sifive.com>
12305 * config/riscv/riscv.c (riscv_option_override): If -msave-restore
12306 and -fpic and -mplt then disable -msave-restore and warn.
12308 2019-08-30 Martin Sebor <msebor@redhat.com>
12310 PR middle-end/91599
12311 * tree-ssa-strlen.c (handle_store): Use a fallback location if
12312 the statement doesn't have one.
12313 * gimple-pretty-print.c (percent_G_format): Same.
12315 PR middle-end/91584
12316 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
12317 before using them to validate MEM_REF offset.
12319 2019-08-30 Marek Polacek <polacek@redhat.com>
12321 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
12323 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12325 * config/arm/arm.md (unaligned_loaddi,
12326 unaligned_storedi): New unspec insn patterns.
12327 * config/arm/neon.md (unaligned_storev8qi): Likewise.
12328 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
12329 and unaligned_storedi for 4-byte aligned memory.
12330 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
12331 4-byte aligned memory.
12333 2019-08-30 Martin Jambor <mjambor@suse.cz>
12335 tree-optimization/91579
12336 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
12337 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
12339 (arg_needs_copy_p): Removed.
12340 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
12342 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
12344 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12346 * config/i386/i386-features.c
12347 (general_scalar_chain::compute_convert_gain):
12348 Correct cost for double-word shifts.
12349 (general_scalar_to_vector_candidate_p): Reject count operands
12350 greater or equal to mode bitsize.
12352 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
12354 * config/i386/i386.c (inline_secondary_memory_needed): Return true
12355 for moves between SSE and non-general registers and between
12356 mask and non-general registers.
12357 (ix86_register_move_cost): Remove stalled comment.
12359 2019-08-29 Richard Biener <rguenther@suse.de>
12361 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12362 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
12364 2019-08-29 Richard Biener <rguenther@suse.de>
12367 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
12368 Do not emit scalar copies for debug-insns, instead replace
12369 their uses with the reg copy used in the chain or reset them
12370 if there is a reaching definition outside of the chain as well.
12372 2019-08-29 Jakub Jelinek <jakub@redhat.com>
12375 * config/i386/i386-expand.c (expand_vec_perm_movs,
12376 expand_vec_perm_blend, expand_vec_perm_vpermil,
12377 expand_vec_perm_pshufb, expand_vec_perm_1,
12378 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
12379 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
12380 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
12381 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
12382 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
12383 comments - replace ix86_expand_vec_perm_builtin_1 with
12384 ix86_expand_vec_perm_const_1.
12385 (expand_vec_perm2_vperm2f128_vblend): New function.
12386 (ix86_expand_vec_perm_const_1): New forward declaration. Call
12387 expand_vec_perm2_vperm2f128_vblend as last resort.
12388 (canonicalize_perm): Formatting fix.
12390 PR tree-optimization/91351
12391 * tree-cfg.c (generate_range_test): Use range_check_type instead of
12393 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
12394 range_check_type returns NULL.
12395 * tree-switch-conversion.c (switch_conversion::build_one_array):
12396 Use range_check_type instead of unsigned_type_for, don't perform
12397 linear opt if it returns NULL.
12398 (bit_test_cluster::find_bit_tests): Formatting fix.
12399 (bit_test_cluster::emit): Use range_check_type instead of
12401 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
12404 2019-08-29 Richard Biener <rguenther@suse.de>
12406 PR tree-optimization/91568
12407 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
12408 (vect_update_max_nunits): Add overload for poly_uint64.
12409 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
12410 (vect_build_slp_tree): Record max_nunits into the subtree
12411 and merge it upwards.
12412 (vect_print_slp_tree): Print max_nunits.
12414 2019-08-28 Marek Polacek <polacek@redhat.com>
12416 Implement P1152R4: Deprecating some uses of volatile.
12418 * doc/invoke.texi: Document -Wvolatile.
12420 2019-08-28 Marek Polacek <polacek@redhat.com>
12422 PR c++/91360 - Implement C++20 P1143R2: constinit.
12423 * doc/invoke.texi: Document -Wc++20-compat.
12425 2019-08-28 Martin Sebor <msebor@redhat.com>
12427 PR tree-optimization/91457
12428 * builtins.c (component_size): New function.
12429 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
12430 * builtins.h (compute_objsize): Add argument.
12431 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
12432 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
12433 (vrp_prop::check_mem_ref): Same.
12434 (vrp_prop::search_for_addr_array): Set no-warning bit.
12435 (check_array_bounds): Same.
12437 2019-08-28 Martin Sebor <msebor@redhat.com>
12440 * opts-common.c (option_enabled): Correct checking for language
12443 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
12445 * config/i386/i386.c (ix86_register_move_cost): Do not
12446 limit the cost of moves to/from XMM register to minimum 8.
12448 2019-08-28 Martin Jambor <mjambor@suse.cz>
12451 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
12452 checking assert a normal assert to test it really is redundant.
12453 * ipa-prop.c (compute_complex_assign_jump_func): Removed
12455 (update_jump_functions_after_inlining): Removed combining unary
12456 arithmetic operations with an ancestor jump function.
12457 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
12460 2019-08-28 Richard Biener <rguenther@suse.de>
12462 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
12463 add the MD problem.
12465 2019-08-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
12466 Richard Biener <rguenther@suse.de>
12468 * expr.c (expand_assignment): Handle misaligned DECLs.
12469 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
12470 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
12472 (assign_parm_setup_stack): Allocate properly aligned stack slots.
12473 * varasm.c (build_constant_desc): Align constants of misaligned types.
12474 * config/arm/predicates.md (aligned_operand): New predicate.
12475 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
12476 aligned_operand to check restrictions on memory addresses.
12477 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
12478 * config/arm/vec-common.md (mov<VALL>): Likewise.
12480 2019-08-28 Jakub Jelinek <jakub@redhat.com>
12483 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
12484 V_128 iterator instead of VI_128.
12486 2019-08-28 Martin Liska <mliska@suse.cz>
12488 PR tree-optimization/90970
12489 * builtins.c (check_access): Remove assignment to maxread
12490 as it hasn't been used since when it was introduced in r255755.
12492 2019-08-27 Martin Sebor <msebor@redhat.com>
12494 PR tree-optimization/91567
12495 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
12496 of unknown strings.
12497 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
12498 to PTRDIFF_MAX - 2.
12500 2019-08-27 Jeff Law <law@redhat.com>
12502 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
12503 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
12505 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
12508 * config/i386/i386-features.c (convert_scalars_to_vector):
12509 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
12510 crtl->stack_realign_processed. Update crtl->drap_reg by calling
12511 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
12512 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
12514 2019-08-27 Richard Biener <rguenther@suse.de>
12516 * config/i386/i386-features.h
12517 (general_scalar_chain::~general_scalar_chain): Add.
12518 (general_scalar_chain::insns_conv): New bitmap.
12519 (general_scalar_chain::n_sse_to_integer): New.
12520 (general_scalar_chain::n_integer_to_sse): Likewise.
12521 (general_scalar_chain::make_vector_copies): Adjust signature.
12522 * config/i386/i386-features.c
12523 (general_scalar_chain::general_scalar_chain): Outline,
12524 initialize new members.
12525 (general_scalar_chain::~general_scalar_chain): New.
12526 (general_scalar_chain::mark_dual_mode_def): Record insns
12527 we need to insert conversions at and count them.
12528 (general_scalar_chain::compute_convert_gain): Account
12529 for conversion instructions at chain boundary.
12530 (general_scalar_chain::make_vector_copies): Generate a single
12531 copy for a def by a specific insn.
12532 (general_scalar_chain::convert_registers): First populate
12533 defs_map, then make copies at out-of chain insns.
12535 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
12537 * config/arm/arm.md (stack_protect_set_insn): Add security-related
12539 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
12541 2019-08-27 Martin Liska <mliska@suse.cz>
12543 * cgraph.c (cgraph_node::remove): Remove dead assignment before
12545 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
12546 Enclose in anonymous namespace.
12547 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
12548 hard_register initialization in braces.
12549 * tree-vrp.h (value_range_base::supports_type_p): Return false
12550 for function with boolean return type.
12552 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
12554 * config/i386/i386.c (emit_i387_cw_initialization)
12555 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
12557 2019-08-26 Martin Sebor <msebor@redhat.com>
12560 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
12561 (sprintf_dom_walker): Remove class.
12562 (get_int_range): Make argument const.
12563 (directive::fmtfunc, directive::set_precision): Same.
12564 (format_none): Same.
12565 (build_intmax_type_nodes): Same.
12566 (adjust_range_for_overflow): Same.
12567 (format_floating): Same.
12568 (format_character): Same.
12569 (format_string): Same.
12570 (format_plain): Same.
12571 (get_int_range): Cast away constness.
12572 (format_integer): Same.
12573 (get_string_length): Call get_range_strlen_dynamic. Handle
12574 null lendata.maxbound.
12575 (should_warn_p): Adjust argument scope qualifier.
12576 (maybe_warn): Same.
12577 (format_directive): Same.
12578 (parse_directive): Same.
12579 (is_call_safe): Same.
12580 (try_substitute_return_value): Same.
12581 (sprintf_dom_walker::handle_printf_call): Rename...
12582 (handle_printf_call): ...to this. Initialize target to host charmap
12583 here instead of in pass_sprintf_length::execute.
12584 (struct call_info): Make global.
12585 (sprintf_dom_walker::compute_format_length): Make global.
12586 (sprintf_dom_walker::handle_gimple_call): Same.
12587 * passes.def (pass_sprintf_length): Replace with pass_strlen.
12588 * print-rtl.c (print_pattern): Reduce the number of spaces to
12589 avoid -Wformat-truncation.
12590 * tree-pass.h (make_pass_warn_printf): New function.
12591 * tree-ssa-strlen.c (strlen_optimize): New variable.
12592 (get_string_length): Add comments.
12593 (get_range_strlen_dynamic): New function.
12594 (check_and_optimize_call): New function.
12595 (handle_integral_assign): New function.
12596 (strlen_check_and_optimize_stmt): Factor code out into
12597 strlen_check_and_optimize_call and handle_integral_assign.
12598 (strlen_dom_walker::evrp): New member.
12599 (strlen_dom_walker::before_dom_children): Use evrp member.
12600 (strlen_dom_walker::after_dom_children): Use evrp member.
12601 (printf_strlen_execute): New function.
12602 (pass_strlen::gate): Update to handle printf calls.
12603 (dump_strlen_info): New function.
12604 (pass_data_warn_printf): New variable.
12605 (pass_warn_printf): New class.
12606 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
12607 (handle_printf_call): Same.
12608 * tree-vrp.c (value_range_base::type): Adjust assertion.
12609 * vr-values.c (vr_values::update_value_range): Use type of the first
12610 argument rather than the second.
12612 2019-08-26 Richard Biener <rguenther@suse.de>
12614 * config/i386/i386-features.c (general_remove_non_convertible_regs):
12616 (convert_scalars_to_vector): Do not call it.
12618 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12619 Uros Bizjak <ubizjak@gmail.com>
12621 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
12622 CASE_MATHFN_FLOATN for roundeven.
12623 * config/i386/i386.c (ix86_i387_mode_needed): Add case
12625 (ix86_mode_needed): Likewise.
12626 (ix86_mode_after): Likewise.
12627 (ix86_mode_entry): Likewise.
12628 (ix86_mode_exit): Likewise.
12629 (ix86_emit_mode_set): Likewise.
12630 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
12631 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
12632 (ix86_entity): Add I387_ROUNDEVEN.
12633 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
12634 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
12635 (define_int_iterator): Likewise.
12636 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
12637 (define_constant): Define ROUND_ROUNDEVEN mode.
12638 (define_attr): Add roundeven mode for i387_cw.
12639 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
12640 * internal-fn.def (ROUNDEVEN): New builtin function.
12641 * optabs.def (roundeven_optab): New optab.
12643 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
12645 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
12647 * builtins.def: Added function definitions for roundeven function
12649 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
12650 function call. Adjust condition for floor, ceil, trunc and round.
12651 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
12652 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
12653 (integer_valued_real_call_p): Added case for roundeven function.
12654 * real.c (is_even): New function. Returns true if real number is even,
12655 otherwise returns false.
12656 (is_halfway_below): New function. Returns true if real number is
12657 halfway between two integers, else return false.
12658 (real_roundeven): New function. Round real number to nearest integer,
12659 rounding halfway cases towards even.
12660 * real.h (real_value): Added descriptive comments. Added function
12661 declaration for roundeven function.
12662 * doc/extend.texi (Other Builtins): List roundeven variants among
12663 functions which can be handled as builtins.
12665 2019-08-26 Richard Biener <rguenther@suse.de>
12669 * config/i386/i386-features.h (general_scalar_chain::defs_map):
12671 (general_scalar_chain::replace_with_subreg): Remove.
12672 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12673 (general_scalar_chain::convert_reg): Adjust signature.
12674 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
12675 iterate over all defs of a reg.
12676 (general_scalar_chain::replace_with_subreg): Remove.
12677 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
12678 (general_scalar_chain::make_vector_copies): Populate defs_map,
12679 place copy only after defs that are used as vectors in the chain.
12680 (general_scalar_chain::convert_reg): Emit a copy for a specific
12681 def in a specific instruction.
12682 (general_scalar_chain::convert_op): All reg uses are converted here.
12683 (general_scalar_chain::convert_insn): Emit copies for scalar
12684 uses of defs here. Replace uses with the copies we created.
12685 Replace and convert the def. Adjust REG_DEAD notes, remove
12686 REG_EQUIV/EQUAL notes.
12687 (general_scalar_chain::convert_registers): Only handle copies
12688 into the chain here.
12690 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12692 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
12694 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
12696 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
12697 Add nop_convert case.
12698 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
12699 Fold all statements if requested.
12700 * tree-ssa-propagate.h (class substitute_and_fold_engine):
12701 Allow to fold all statements.
12702 * tree-vrp.c (class vrp_folder):
12703 Let substitute_and_fold_engine fold all statements.
12705 2019-08-26 Richard Biener <rguenther@suse.de>
12707 PR tree-optimization/91526
12708 * passes.def: Note that after late FRE we do TODO_update_address_taken.
12709 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
12710 TODO_update_address_taken.
12712 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
12714 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
12717 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
12719 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
12720 machine mode for unspec_volatile operand.
12722 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
12724 * doc/invoke.texi (mneon-for-64bits): Deprecate option.
12725 * config/arm/arm.opt (mneon-for-64bits): Deprecate option.
12726 * config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
12727 (prefer_neon_for_64bits): Remove.
12728 * config/arm/arm.c (prefer_neon_for_64bits): Remove.
12729 (tune_params): Remove PREF_NEON_64_FALSE uses.
12730 (arm_option_override): Remove prefer_neon selection code.
12731 (arm_print_tune_info): Remove prefer_neon_for_64bits.
12732 * config/arm/arm-protos.h (tune_params): Remove
12733 prefer_neon_for_64bits.
12734 (prefer_neon_for_64bits): Remove.
12736 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
12739 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
12740 and issue any diagnostics needed before collecting the pre-PCH
12743 2019-08-23 Jakub Jelinek <jakub@redhat.com>
12745 PR middle-end/91283
12746 * common.opt (fexcess-precision=): Add Optimization flag. Use
12747 flag_excess_precision variable instead of
12748 flag_excess_precision_cmdline.
12749 * flags.h (class target_flag_state): Remove x_flag_excess_precision
12751 (flag_excess_precision): Don't define.
12752 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
12753 flag_excess_precision_cmdline. Remove comment.
12754 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
12755 and x_flag_excess_precision instead of
12756 frontend_set_flag_excess_precision_cmdline and
12757 x_flag_excess_precision_cmdline.
12758 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
12759 x_flag_excess_precision_cmdline.
12760 * toplev.c (init_excess_precision): Remove.
12761 (lang_dependent_init_target): Don't call it.
12763 2019-08-23 Martin Liska <mliska@suse.cz>
12765 * lto-wrapper.c (run_gcc): When setting jobserver
12766 set also parallel to 1. This was done so before r273908.
12768 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
12770 * config/arm/arm-cpus.in (cortex-m35p): New entry.
12771 (cortex-a76ae): Likewise.
12772 (cortex-a77): Likewise
12773 * config/arm/arm-tables.opt: Regenerate.
12774 * config/arm/arm-tune.md: Likewise.
12775 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
12776 cortex-a77 CPU options.
12778 2019-08-23 Martin Liska <mliska@suse.cz>
12780 * profile.c (instrument_values): Do not set
12781 0 as last argument.
12782 * tree-profile.c (gimple_gen_interval_profiler): Remove
12784 (gimple_gen_pow2_profiler): Likewise.
12785 (gimple_gen_topn_values_profiler): Likewise.
12786 (gimple_gen_ic_profiler): Likewise.
12787 (gimple_gen_time_profiler): Likewise.
12788 (gimple_gen_average_profiler): Likewise.
12789 (gimple_gen_ior_profiler): Likewise.
12790 * value-prof.c (dump_histogram_value): Use default
12791 in switch statement instead of HIST_TYPE_MAX.
12792 (stream_in_histogram_value): Likewise.
12793 (gimple_duplicate_stmt_histograms): Do not
12794 use NULL for implicitly set arguments.
12795 (gimple_divmod_values_to_profile): Do not use
12796 reserve+quick_push.
12797 (gimple_indirect_call_to_profile): Likewise.
12798 (gimple_find_values_to_profile): Use implicit
12799 function call arguments.
12800 * value-prof.h (gimple_alloc_histogram_value):
12801 Set default values.
12802 (gimple_gen_interval_profiler): Remove last argument.
12803 (gimple_gen_pow2_profiler): Likewise.
12804 (gimple_gen_topn_values_profiler): Likewise.
12805 (gimple_gen_ic_profiler): Likewise.
12806 (gimple_gen_time_profiler): Likewise.
12807 (gimple_gen_average_profiler): Likewise.
12808 (gimple_gen_ior_profiler): Likewise.
12810 2019-08-22 Martin Sebor <msebor@redhat.com>
12812 PR middle-end/91490
12813 * builtins.c (c_strlen): Rename argument and introduce new local.
12814 Set no-warning bit on original argument.
12815 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
12816 Fold empty and zero constructors into empty strings.
12817 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
12818 for missing initializers.
12819 * tree.c (build_string_literal): Handle optional argument.
12820 * tree.h (build_string_literal): Add defaulted argument.
12821 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
12822 no-warning bit on original expression.
12824 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12827 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12828 and UNSPEC_DARN_RAW.
12829 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
12831 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
12832 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
12833 (darn): Use an unspec_volatile, and UNSPECV_DARN.
12835 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
12837 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
12838 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
12839 * config/rs6000/rs6000.md (unspec): ... here.
12840 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
12841 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12842 cmpeqb, *cmpeqb_internal): Delete, move to...
12843 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
12844 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
12845 cmpeqb, *cmpeqb_internal): ... here.
12847 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12849 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
12850 intrinsics if __ARM_FP.
12851 Use __ARM_FEATURE_CRC32 ifdef guard.
12853 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12855 * config/arm/arm.md (neon_for_64bits): Remove.
12856 (avoid_neon_for_64bits): Remove.
12857 (arm_adddi3): Always split early.
12858 (arm_subdi3): Always split early.
12859 (negdi2): Remove Neon expansion.
12860 (split zero_extend): Split before reload.
12861 (split sign_extend): Split before reload.
12863 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12865 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
12866 (qhs_extenddi_cstr): Likewise.
12867 * config/arm/arm.md (ashldi3): Always expand early.
12868 (ashlsi3): Likewise.
12869 (ashrsi3): Likewise.
12870 (zero_extend<mode>di2): Remove Neon variants.
12871 (extend<mode>di2): Likewise.
12872 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
12873 (signed_shift_di3_neon): Likewise.
12874 (unsigned_shift_di3_neon): Likewise.
12875 (ashrdi3_neon_imm_noclobber): Likewise.
12876 (lshrdi3_neon_imm_noclobber): Likewise.
12877 (<shift>di3_neon): Likewise.
12878 (split extend): Remove DI extend split patterns.
12880 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
12882 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
12883 (split not): Add DImode not splitter.
12884 (anddi3): Remove pattern.
12885 (anddi3_insn): Likewise.
12886 (anddi_zesidi_di): Likewise.
12887 (anddi_sesdi_di): Likewise.
12888 (anddi_notdi_di): Likewise.
12889 (anddi_notzesidi_di): Likewise.
12890 (anddi_notsesidi_di): Likewise.
12891 (iordi3): Likewise.
12892 (iordi3_insn): Likewise.
12893 (iordi_zesidi_di): Likewise.
12894 (iordi_sesidi_di): Likewise.
12895 (xordi3): Likewise.
12896 (xordi3_insn): Likewise.
12897 (xordi_sesidi_di): Likewise.
12898 (xordi_zesidi_di): Likewise.
12899 (one_cmpldi2): Likewise.
12900 (one_cmpldi2_insn): Likewise.
12901 * config/arm/constraints.md: Remove De, Df, Dg constraints.
12902 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
12904 (iwmmxt_xordi3): Likewise.
12905 (iwmmxt_anddi3): Likewise.
12906 * config/arm/neon.md (orndi3_neon): Remove pattern.
12907 (anddi_notdi_di): Likewise.
12908 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
12909 (arm_iordi_operand_neon): Likewise.
12910 (arm_xordi_operand_neon): Likewise.
12911 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
12912 (iordi_notzesidi_di): Likewise.
12913 (iordi_notdi_zesidi): Likewise.
12914 (iordi_notsesidi_di): Likewise.
12916 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
12918 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
12920 (iorsi3_compare0_scratch): Likewise.
12922 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
12924 * config/aarch64/aarch64-simd-builtins.def:
12927 * config/aarch64/aarch64-simd.md:
12928 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
12929 (aarch64_st1x4<VALLDIF:mode>): Likewise.
12930 (aarch64_ld1_x4_<mode>): Likewise.
12931 (aarch64_st1_x4_<mode>): Likewise.
12932 * config/aarch64/arm_neon.h:
12933 (vld1_s8_x4): New function.
12934 (vld1q_s8_x4): Likewise.
12935 (vld1_s16_x4): Likewise.
12936 (vld1q_s16_x4): Likewise.
12937 (vld1_s32_x4): Likewise.
12938 (vld1q_s32_x4): Likewise.
12939 (vld1_u8_x4): Likewise.
12940 (vld1q_u8_x4): Likewise.
12941 (vld1_u16_x4): Likewise.
12942 (vld1q_u16_x4): Likewise.
12943 (vld1_u32_x4): Likewise.
12944 (vld1q_u32_x4): Likewise.
12945 (vld1_f16_x4): Likewise.
12946 (vld1q_f16_x4): Likewise.
12947 (vld1_f32_x4): Likewise.
12948 (vld1q_f32_x4): Likewise.
12949 (vld1_p8_x4): Likewise.
12950 (vld1q_p8_x4): Likewise.
12951 (vld1_p16_x4): Likewise.
12952 (vld1q_p16_x4): Likewise.
12953 (vld1_s64_x4): Likewise.
12954 (vld1_u64_x4): Likewise.
12955 (vld1_p64_x4): Likewise.
12956 (vld1q_s64_x4): Likewise.
12957 (vld1q_u64_x4): Likewise.
12958 (vld1q_p64_x4): Likewise.
12959 (vld1_f64_x4): Likewise.
12960 (vld1q_f64_x4): Likewise.
12961 (vst1_s8_x4): Likewise.
12962 (vst1q_s8_x4): Likewise.
12963 (vst1_s16_x4): Likewise.
12964 (vst1q_s16_x4): Likewise.
12965 (vst1_s32_x4): Likewise.
12966 (vst1q_s32_x4): Likewise.
12967 (vst1_u8_x4): Likewise.
12968 (vst1q_u8_x4): Likewise.
12969 (vst1_u16_x4): Likewise.
12970 (vst1q_u16_x4): Likewise.
12971 (vst1_u32_x4): Likewise.
12972 (vst1q_u32_x4): Likewise.
12973 (vst1_f16_x4): Likewise.
12974 (vst1q_f16_x4): Likewise.
12975 (vst1_f32_x4): Likewise.
12976 (vst1q_f32_x4): Likewise.
12977 (vst1_p8_x4): Likewise.
12978 (vst1q_p8_x4): Likewise.
12979 (vst1_p16_x4): Likewise.
12980 (vst1q_p16_x4): Likewise.
12981 (vst1_s64_x4): Likewise.
12982 (vst1_u64_x4): Likewise.
12983 (vst1_p64_x4): Likewise.
12984 (vst1q_s64_x4): Likewise.
12985 (vst1q_u64_x4): Likewise.
12986 (vst1q_p64_x4): Likewise.
12987 (vst1_f64_x4): Likewise.
12988 (vst1q_f64_x4): Likewise.
12990 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12992 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
12994 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12995 Richard Sandiford <richard.sandiford@arm.com>
12998 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
12999 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
13001 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
13004 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
13005 in reg if it fails aarch64_plus_operand predicate.
13007 2019-08-21 Richard Biener <rguenther@suse.de>
13009 PR tree-optimization/91482
13010 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
13011 BUILT_IN_ASSUME_ALIGNED calls.
13013 2019-08-21 Richard Biener <rguenther@suse.de>
13017 * config/i386/i386-features.c
13018 (general_scalar_chain::make_vector_copies): Copy stack temporary
13019 rtx when using it multiple times.
13020 (general_scalar_chain::convert_reg): Likewise.
13022 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13024 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
13026 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
13028 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
13029 catch more redundant zero initialization cases.
13030 (dse_dom_walker::dse_optimize_stmt): Likewise.
13032 2019-08-20 Richard Biener <rguenther@suse.de>
13035 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
13036 by collect2 when targetm.have_ctors_dtors which avoids dragging
13037 in temporary filenames from LTO input objects.
13039 2019-08-20 Richard Biener <rguenther@suse.de>
13041 PR tree-optimization/37242
13042 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
13043 to (T)a + (T)b if we know that a + b does not overflow.
13045 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
13047 PR rtl-optimization/91347
13048 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
13049 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
13051 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13053 * calls.h (function_arg_info): Add a pass_by_reference field,
13054 defaulting to false.
13055 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
13056 when applying pass-by-reference semantics.
13057 (initialize_argument_information): Likewise.
13058 (emit_library_call_value_1): Likewise.
13059 * function.c (assign_parm_data_one): Remove passed_pointer field.
13060 (assign_parm_find_data_types): Don't set it.
13061 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
13062 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
13063 arg.pass_by_reference instead of passed_pointer.
13065 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13067 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
13068 into a single function_arg_info, updating its fields when we
13069 apply pass-by-reference and promotion semantics. Use the
13070 function_arg_info to track the mode rather than keeping it in
13071 a separate local variable.
13072 (initialize_argument_information): Likewise. Base the final
13073 arg_to_skip on this new function_arg_info rather than creating
13074 a new one from scratch.
13076 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13078 * function.c (assign_parm_data_one): Replace passed_type,
13079 promoted_mode and named_arg with a function_arg_info field.
13080 (assign_parm_find_data_types): Remove local variables and
13081 assign directly to "data". Make data->passed_mode shadow
13082 data->arg.mode until promotion, then assign the promoted
13083 mode to data->arg.mode.
13084 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
13085 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
13086 (assign_parm_remove_parallels, assign_parm_setup_block_p)
13087 (assign_parm_setup_block, assign_parm_setup_reg)
13088 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
13089 arg.mode instead of promoted_mode, arg.type instead of passed_type
13090 and arg.named instead of named_arg. Use data->arg for
13091 function_arg_info structures that had the field values passed_type,
13092 promoted_mode and named_arg. Base other function_arg_infos on
13093 data->arg, changing the necessary properties.
13095 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13097 * calls.h (apply_pass_by_reference_rules): Declare.
13098 * calls.c (apply_pass_by_reference_rules): New function.
13099 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
13100 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
13101 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
13102 * function.c (assign_parm_find_data_types): Likewise.
13103 * var-tracking.c (prepare_call_arguments): Likewise.
13105 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13107 * target.def (must_pass_in_stack): Take a function_arg_info instead
13108 of a mode and a type.
13109 * doc/tm.texi: Regenerate.
13110 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
13111 instead of a mode and a type.
13112 (must_pass_in_stack_var_size_or_pad): Likewise.
13113 * calls.c (must_pass_in_stack_var_size): Likewise.
13114 (must_pass_in_stack_var_size_or_pad): Likewise.
13115 (initialize_argument_information): Update call to
13116 targetm.calls.must_pass_in_stack.
13117 (must_pass_va_arg_on_stack): Likewise.
13118 * function.c (assign_parm_find_entry_rtl): Likewise.
13119 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
13120 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13121 (alpha_function_arg_advance): Likewise.
13122 * config/cr16/cr16.c (cr16_function_arg): Likewise.
13123 (cr16_function_arg_advance): Likewise.
13124 * config/cris/cris.c (cris_pass_by_reference): Likewise.
13125 (cris_arg_partial_bytes): Likewise.
13126 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13127 * config/lm32/lm32.c (lm32_function_arg): Likewise.
13128 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
13129 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
13130 * config/mips/mips.c (mips_pass_by_reference): Likewise.
13131 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
13132 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
13133 * config/sh/sh.c (sh_pass_by_reference): Likewise.
13134 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13135 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
13136 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
13137 instead of a mode and a type.
13138 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
13139 (fr30_num_arg_regs): Likewise.
13140 (fr30_setup_incoming_varargs): Update calls accordingly.
13141 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
13142 (fr30_function_arg_advance): Likewise.
13143 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
13144 instead of a mode and a type.
13145 * config/gcn/gcn.c (num_arg_regs): Likewise.
13146 (gcn_function_arg, gcn_function_arg_advance): Update calls to
13147 num_arg_regs and targetm.calls.must_pass_in_stack.
13148 (gcn_arg_partial_bytes): Likewise.
13149 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
13150 function_arg_info instead of a mode and a type.
13151 (classify_argument): Update call accordingly.
13152 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
13153 function_arg_info instead of a mode and a type.
13154 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
13156 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
13157 (rs6000_parm_needs_stack): Update call accordingly.
13158 (setup_incoming_varargs): Likewise.
13160 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13162 * target.def (callee_copies): Take a function_arg_info instead
13163 of a mode, type and named flag.
13164 * doc/tm.texi: Regenerate.
13165 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
13166 instead of a mode, type and named flag.
13167 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13168 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13169 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13170 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
13171 instead of a mode, type and named flag.
13172 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
13173 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
13174 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
13175 * calls.h (reference_callee_copied): Take a function_arg_info
13176 instead of a mode, type and named flag.
13177 * calls.c (reference_callee_copied): Likewise.
13178 (initialize_argument_information): Update call accordingly.
13179 (emit_library_call_value_1): Likewise.
13180 * function.c (gimplify_parameters): Likewise.
13181 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
13182 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
13183 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
13184 * config/c6x/c6x.c (c6x_callee_copies): Delete.
13185 (TARGET_CALLEE_COPIES): Define to
13186 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13187 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
13188 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13189 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13190 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
13191 instead of a mode, type and named flag.
13192 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
13193 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13194 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13195 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
13196 * config/msp430/msp430.c (msp430_callee_copies): Delete.
13197 (TARGET_CALLEE_COPIES): Define to
13198 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
13199 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
13200 instead of a mode, type and named flag.
13201 * config/sh/sh.c (sh_callee_copies): Likewise.
13202 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
13203 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
13204 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
13206 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13208 * target.def (function_arg_advance): Take a function_arg_info instead
13209 of a mode, type and named flag.
13210 * doc/tm.texi: Regenerate.
13211 * targhooks.h (default_function_arg_advance): Take a function_arg_info
13212 instead of a mode, type and named flag.
13213 * targhooks.c (default_function_arg_advance): Likewise.
13214 * calls.c (initialize_argument_information): Update call to
13215 targetm.calls.function_arg_advance.
13216 (emit_library_call_value_1): Likewise.
13217 * dse.c (get_call_args): Likewise.
13218 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13219 * function.c (assign_parms, gimplify_parameters): Likewise.
13220 * var-tracking.c (prepare_call_arguments): Likewise.
13221 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
13222 function_arg_info instead of a mode, type and named flag.
13223 (aarch64_setup_incoming_varargs): Update call accordingly.
13224 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
13225 function_arg_info instead of a mode, type and named flag.
13226 (alpha_setup_incoming_varargs): Update call accordingly.
13227 * config/arc/arc.c (arc_function_arg_advance): Take a
13228 function_arg_info instead of a mode, type and named flag.
13229 (arc_setup_incoming_varargs): Update call accordingly.
13230 * config/arm/arm.c (arm_function_arg_advance): Take a
13231 function_arg_info instead of a mode, type and named flag.
13232 (cmse_func_args_or_return_in_stack): Update call accordingly.
13233 (arm_function_ok_for_sibcall): Likewise.
13234 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13235 * config/avr/avr.c (avr_function_arg_advance): Take a
13236 function_arg_info instead of a mode, type and named flag.
13237 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
13238 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
13239 (c6x_call_saved_register_used): Update call accordingly.
13240 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
13241 function_arg_info instead of a mode, type and named flag.
13242 * config/cris/cris.c (cris_function_arg_advance): Likewise.
13243 * config/csky/csky.c (csky_function_arg_advance): Likewise.
13244 (csky_setup_incoming_varargs): Update call accordingly.
13245 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
13246 function_arg_info instead of a mode, type and named flag.
13247 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
13248 * config/frv/frv.c (frv_function_arg_advance): Likewise.
13249 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
13250 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
13251 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
13252 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
13253 (ix86_setup_incoming_varargs): Update call accordingly.
13254 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
13255 function_arg_info instead of a mode, type and named flag.
13256 (ia64_setup_incoming_varargs): Update call accordingly.
13257 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
13258 function_arg_info instead of a mode, type and named flag.
13259 (iq2000_expand_prologue): Update call accordingly.
13260 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
13261 function_arg_info instead of a mode, type and named flag.
13262 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
13263 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
13264 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
13265 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
13266 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
13268 (microblaze_expand_prologue): Update call accordingly.
13269 * config/mips/mips.c (mips_function_arg_advance): Take a
13270 function_arg_info instead of a mode, type and named flag.
13271 (mips_setup_incoming_varargs): Update call accordingly.
13272 (mips_output_args_xfer): Likewise.
13273 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
13274 function_arg_info instead of a mode, type and named flag.
13275 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
13276 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
13277 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
13278 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
13279 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
13280 (nios2_setup_incoming_varargs): Update call accordingly.
13281 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
13282 function_arg_info instead of a mode, type and named flag.
13283 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
13284 * config/pa/pa.c (pa_function_arg_advance): Likewise.
13285 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
13286 * config/pru/pru.c (pru_function_arg_advance): Likewise.
13287 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
13288 (riscv_setup_incoming_varargs): Update call accordingly.
13289 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
13290 function_arg_info instead of a mode, type and named flag.
13291 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
13293 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
13294 (rs6000_parm_needs_stack): Update call accordingly.
13295 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
13296 instead of a mode, type and named flag.
13297 * config/s390/s390.c (s390_function_arg_advance): Likewise.
13298 (s390_call_saved_register_used): Update call accordingly.
13299 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
13300 instead of a mode, type and named flag.
13301 (sh_output_mi_thunk): Update call accordingly.
13302 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
13303 function_arg_info instead of a mode, type and named flag.
13304 * config/spu/spu.c (spu_function_arg_advance): Likewise.
13305 (spu_setup_incoming_varargs): Update call accordingly.
13306 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
13307 function_arg_info instead of a mode, type and named flag.
13308 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
13309 (tilegx_setup_incoming_varargs): Update call accordingly.
13310 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
13311 function_arg_info instead of a mode, type and named flag.
13312 (tilegx_setup_incoming_varargs): Update call accordingly.
13313 * config/v850/v850.c (v850_function_arg_advance): Take a
13314 function_arg_info instead of a mode, type and named flag.
13315 * config/vax/vax.c (vax_function_arg_advance): Likewise.
13316 * config/visium/visium.c (visium_function_arg_advance): Likewise.
13317 (visium_setup_incoming_varargs): Update call accordingly.
13318 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
13319 function_arg_info instead of a mode, type and named flag.
13321 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13323 * target.def (function_arg, function_incoming_arg): Take a
13324 function_arg_info instead of a mode, tree and named flag.
13325 * doc/tm.texi: Regenerate.
13326 * targhooks.h (default_function_arg): Take a function_arg_info
13327 instead of a mode, tree and named flag.
13328 (default_function_incoming_arg): Likewise.
13329 * targhooks.c (default_function_arg): Likewise.
13330 (default_function_incoming_arg): Likewise.
13331 * calls.h (function_arg_info::end_marker_p): New function.
13332 (function_arg_info::end_marker): Likewise.
13333 * calls.c (prepare_call_address, initialize_argument_information)
13334 (expand_call, emit_library_call_value_1): Update calls to
13335 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
13336 * dse.c: Include calls.h.
13337 (get_call_args): Update call to targetm.calls.function_arg.
13338 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13339 * var-tracking.c (prepare_call_arguments): Likewise.
13340 * function.c (assign_parm_find_entry_rtl): Update call to
13341 targetm.calls.function_incoming_arg.
13342 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
13343 function_arg_info instead of a mode, tree and named flag.
13344 * config/alpha/alpha.c (alpha_function_arg): Likewise.
13345 * config/arc/arc.c (arc_function_arg): Likewise.
13346 * config/arm/arm.c (arm_function_arg): Likewise.
13347 (cmse_func_args_or_return_in_stack): Update call accordingly.
13348 (arm_function_ok_for_sibcall): Likewise.
13349 (cmse_nonsecure_call_clear_caller_saved): Likewise.
13350 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
13351 instead of a mode, tree and named flag.
13352 * config/bfin/bfin.c (bfin_function_arg): Likewise.
13353 * config/c6x/c6x.c (c6x_function_arg): Likewise.
13354 (c6x_call_saved_register_used): Update call accordingly.
13355 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
13356 instead of a mode, tree and named flag.
13357 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
13358 (cris_function_arg_1): Likewise.
13359 * config/csky/csky.c (csky_function_arg): Likewise.
13360 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
13361 * config/fr30/fr30.c (fr30_function_arg): Likewise.
13362 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
13363 (frv_function_arg_1): Likewise.
13364 * config/ft32/ft32.c (ft32_function_arg): Likewise.
13365 * config/gcn/gcn.c (gcn_function_arg): Likewise.
13366 * config/h8300/h8300.c (h8300_function_arg): Likewise.
13367 * config/i386/i386.c (ix86_function_arg): Likewise.
13368 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
13369 (ia64_function_arg_1): Likewise.
13370 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
13371 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
13373 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
13374 instead of a mode, tree and named flag.
13375 * config/m32c/m32c.c (m32c_function_arg): Likewise.
13376 * config/m32r/m32r.c (m32r_function_arg): Likewise.
13377 * config/m68k/m68k.c (m68k_function_arg): Likewise.
13378 * config/mcore/mcore.c (mcore_function_arg): Likewise.
13379 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
13380 (microblaze_expand_prologue): Update call accordingly.
13381 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
13382 instead of a mode, tree and named flag.
13383 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
13384 (mmix_function_arg_1): Likewise.
13385 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
13386 * config/moxie/moxie.c (moxie_function_arg): Likewise.
13387 * config/msp430/msp430.c (msp430_function_arg): Likewise.
13388 * config/nds32/nds32.c (nds32_function_arg): Likewise.
13389 * config/nios2/nios2.c (nios2_function_arg): Likewise.
13390 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
13391 (nvptx_function_incoming_arg): Likewise.
13392 * config/or1k/or1k.c (or1k_function_arg): Likewise.
13393 * config/pa/pa.c (pa_function_arg): Likewise.
13394 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
13395 * config/pru/pru.c (pru_function_arg): Likewise.
13396 * config/riscv/riscv.c (riscv_function_arg): Likewise.
13397 * config/rl78/rl78.c (rl78_function_arg): Likewise.
13398 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
13399 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
13400 (rs6000_parm_needs_stack): Update call accordingly.
13401 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
13402 instead of a mode, tree and named flag.
13403 * config/s390/s390.c (s390_function_arg): Likewise.
13404 (s390_call_saved_register_used): Update call accordingly.
13405 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
13406 instead of a mode, tree and named flag.
13407 (sh_output_mi_thunk): Update call accordingly.
13408 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
13409 (sparc_function_incoming_arg): Take a function_arg_info instead of
13410 a mode, tree and named flag.
13411 * config/spu/spu.c (spu_function_arg): Likewise.
13412 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
13413 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
13414 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
13415 * config/v850/v850.c (v850_function_arg): Likewise.
13416 * config/vax/vax.c (vax_function_arg): Likewise.
13417 * config/visium/visium.c (visium_function_arg): Likewise.
13418 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
13419 (xtensa_function_incoming_arg): Likewise.
13421 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13423 * target.def (setup_incoming_varargs): Take a function_arg_info
13424 instead of a mode and tree.
13425 * doc/tm.texi: Regenerate.
13426 * targhooks.h (default_setup_incoming_varargs): Take a
13427 function_arg_info instead of a mode and tree.
13428 * targhooks.c (default_setup_incoming_varargs): Likewise.
13429 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
13430 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
13431 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
13432 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
13433 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
13434 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
13435 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
13436 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
13438 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
13439 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
13440 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
13441 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
13442 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
13443 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
13444 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
13445 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
13446 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
13447 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
13448 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
13449 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
13450 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
13451 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
13452 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
13453 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
13454 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
13455 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
13456 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
13457 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
13458 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
13459 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
13460 * function.c (assign_parms_setup_varargs): Update call to
13461 targetm.calls.setup_incoming_varargs.
13463 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13465 * target.def (pass_by_reference): Take a function_arg_info instead
13466 of a mode, type and named flag.
13467 * doc/tm.texi: Regenerate.
13468 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
13470 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
13471 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
13472 function_arg_info instead of a mode, type and named flag.
13473 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
13474 * calls.h (pass_by_reference): Take a function_arg_info instead of a
13475 mode, type and named flag.
13476 * calls.c (pass_by_reference): Likewise.
13477 (pass_va_arg_by_reference): Update call accordingly.
13478 (initialize_argument_information): Likewise.
13479 (emit_library_call_value_1): Likewise.
13480 * function.c (assign_parm_find_data_types): Likewise.
13481 * var-tracking.c (prepare_call_arguments): Likewise.
13482 * stor-layout.c: Include calls.h.
13483 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
13484 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
13485 function_arg_info instead of a mode, type and named flag.
13486 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
13487 * config/arc/arc.c (arc_pass_by_reference): Likewise.
13488 * config/arm/arm.c (arm_pass_by_reference): Likewise.
13489 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
13490 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
13491 (c6x_call_saved_register_used): Update call to pass_by_reference.
13492 * config/cris/cris.c (cris_pass_by_reference): Take a
13493 function_arg_info instead of a mode, type and named flag.
13494 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
13495 function_arg_info instead of a mode, type and named flag.
13496 (epiphany_arg_partial_bytes): Update call accordingly.
13497 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
13498 function_arg_info instead of a mode, type and named flag.
13499 (ft32_arg_partial_bytes): Update call accordingly.
13500 * config/i386/i386.c (ix86_pass_by_reference): Take a
13501 function_arg_info instead of a mode, type and named flag.
13502 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
13503 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
13504 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
13505 (m32r_return_in_memory): Update call accordingly.
13506 * config/mips/mips.c (mips_pass_by_reference): Take a
13507 function_arg_info instead of a mode, type and named flag.
13508 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
13509 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
13510 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
13511 (moxie_arg_partial_bytes): Update call accordingly.
13512 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
13513 function_arg_info instead of a mode, type and named flag.
13514 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
13515 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
13516 * config/pa/pa.c (pa_pass_by_reference): Likewise.
13517 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
13518 (riscv_return_in_memory): Update call accordingly.
13519 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
13520 function_arg_info instead of a mode, type and named flag.
13521 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
13522 (rs6000_parm_needs_stack): Update call to pass_by_reference.
13523 * config/s390/s390.c (s390_pass_by_reference): Take a
13524 function_arg_info instead of a mode, type and named flag.
13525 (s390_call_saved_register_used): Update call accordingly.
13526 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
13527 instead of a mode, type and named flag.
13528 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
13529 * config/spu/spu.c (spu_pass_by_reference): Likewise.
13530 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
13531 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
13532 * config/v850/v850.c (v850_pass_by_reference): Likewise.
13533 * config/visium/visium.c (visium_pass_by_reference): Likewise.
13535 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13537 * target.def (arg_partial_bytes): Take a function_arg_info instead
13538 of a mode, type and named flag.
13539 * doc/tm.texi: Regenerate.
13540 * target.h (function_arg_info): Declare.
13541 * calls.h (function_arg_info): New class.
13542 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13543 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
13544 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
13545 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
13546 * calls.c (initialize_argument_information): Update call to
13547 targetm.calls.partial_bytes.
13548 (emit_library_call_value_1): Likewise.
13549 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
13550 * function.c (assign_parm_find_entry_rtl): Likewise.
13551 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
13552 function_arg_info instead of a mode, type and named flag.
13553 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
13554 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
13555 (cmse_func_args_or_return_in_stack): Update accordingly.
13556 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
13557 function_arg_info instead of a mode, type and named flag.
13558 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
13559 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
13560 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
13561 * config/fr30/fr30.c: Include calls.h.
13562 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
13563 type and named flag.
13564 * config/frv/frv.c: Include calls.h.
13565 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
13566 type and named flag.
13567 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
13568 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
13569 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
13570 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
13571 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
13572 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
13573 * config/microblaze/microblaze.c (function_arg_partial_bytes):
13575 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
13576 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
13577 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
13578 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
13579 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
13580 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
13581 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
13582 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
13583 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
13584 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
13585 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
13586 (rs6000_parm_needs_stack): Update call accordingly.
13587 * config/sh/sh.c (sh_arg_partial_bytes): Take a
13588 function_arg_info instead of a mode, type and named flag.
13589 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
13590 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
13592 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13594 * calls.h (must_pass_va_arg_in_stack): Declare.
13595 * calls.c (must_pass_va_arg_in_stack): New function.
13596 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
13597 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
13598 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
13600 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13602 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
13604 * calls.h (pass_va_arg_by_reference): Declare.
13605 * calls.c (pass_va_arg_by_reference): New function.
13606 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
13607 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
13608 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
13609 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
13610 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
13611 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
13612 (mips_gimplify_va_arg_expr): Likewise.
13613 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
13614 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
13615 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
13616 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
13617 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
13618 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
13619 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
13620 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
13621 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
13622 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
13623 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
13625 2019-08-20 Richard Biener <rguenther@suse.de>
13628 * config/i386/i386-features.c (general_scalar_chain::convert_op):
13629 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
13630 (convert_scalars_to_vector): Add timode_p parameter and use it
13631 to guard TImode-only operation.
13632 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
13633 (pass_stv::execute): Pass down timode_p.
13635 2019-08-20 Lili Cui <lili.cui@intel.com>
13637 * common/config/i386/i386-common.c
13638 (processor_names): Add tigerlake and cooperlake.
13639 (processor_alias_table): Add tigerlake and cooperlake.
13640 * config.gcc: Add -march=tigerlake and cooperlake.
13641 * config/i386/driver-i386.c
13642 (host_detect_local_cpu): Detect tigerlake and cooperlake.
13643 Add "has_avx" to classify processor.
13644 * config/i386/i386-builtins.c (processor_model) :
13645 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
13646 (arch_names_table): Add tigerlake and cooperlake.
13647 (get_builtin_code_for_version): Handle PROCESSOR_TIGERLAKE
13648 and PROCESSOR_COOPERLAKE.
13649 * config/i386/i386-c.c
13650 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
13651 * config/i386/i386-options.c
13652 (m_TIGERLAKE): Define.
13653 (m_COOPERLAKE): Ditto.
13654 (m_CORE_AVX512): Ditto.
13655 (processor_cost_table): Add cascadelake.
13656 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
13657 * config/i386/i386.h
13658 (ix86_size_cost): Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
13659 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13660 (PTA_MOVDIRI): Ditto.
13661 (PTA_MOVDIR64B): Ditto.
13662 (PTA_COOPERLAKE): Ditto.
13663 (PTA_TIGERLAKE): Ditto.
13664 (processor_type): Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
13665 * doc/extend.texi: Add tigerlake and cooperlake.
13666 * doc/invoke.texi: Add tigerlake and cooperlake.
13668 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
13670 * doc/install.texi (Specific, alpha): Remove note to use
13671 binutils 2.11.2 or later.
13673 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
13675 PR middle-end/89544
13676 * function.c (assign_parm_find_stack_rtl): Use larger alignment
13679 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
13681 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
13682 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
13683 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
13684 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
13685 * config/aarch64/constraints.md (Dt): New constraint
13686 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
13688 2019-08-19 Richard Biener <rguenther@suse.de>
13690 PR tree-optimization/91403
13691 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
13692 cases we can handle with tail-recursion...
13693 (follow_ssa_edge_expr): ... here. Do so.
13695 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
13698 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
13699 implemented for -fsanitize=kernel-address, and merge check logic
13700 with -fsanitize=address.
13702 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
13704 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
13705 for cpu and machine. Factor 64/32b builtins.
13707 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
13709 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
13710 gone, point to sourceforge.net.
13712 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13714 * doc/ux.texi (User Experience Guidelines): Update reference.
13716 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
13718 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
13721 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
13723 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
13724 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
13726 2019-08-16 Martin Sebor <msebor@redhat.com>
13728 * tree.def (TYPE_SIZE): Clarify.
13729 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
13731 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
13733 PR tree-optimization/91109
13734 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
13735 * lra.c (lra): Use lra_need_for_scratch_reg_p.
13736 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
13738 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
13740 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
13741 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
13742 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
13743 (uavg<mode>3_ceil): New expander.
13744 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
13745 mode iterator when creating CONST1_RTX.
13746 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
13747 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
13748 mode iterator for const1_operand predicate.
13750 2019-08-16 Richard Biener <rguenther@suse.de>
13752 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
13753 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
13755 (follow_ssa_edge_in_condition_phi_branch): Likewise.
13756 (analyze_evolution_in_loop): Likewise.
13757 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
13758 (follow_ssa_edge_expr): ... here. Refactor code.
13760 2019-08-16 Richard Biener <rguenther@suse.de>
13763 * config/i386/i386-features.c
13764 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
13766 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13769 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
13770 only if subst_name matches curr_attr string.
13772 2019-08-16 Richard Biener <rguenther@suse.de>
13774 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
13775 stmt at gsi_p, instead replace it with a NOP removed later.
13776 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
13777 that became dead because of that.
13779 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
13781 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
13782 for which we can't represent a range.
13783 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
13785 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
13786 Set VR_UNDEFINED if type is not supported.
13787 * tree-ssanames.c (get_range_info): Pass type to set_varying.
13788 * tree-vrp.c (value_range_base::check): Assert that a varying has
13790 (value_range_base::equal_p): Early bail for undefines.
13791 (value_range_base::set_varying): Accept a type.
13792 (value_range::set_varying): Same.
13793 (value_range_base::type): VARYING can have a type, while UNDEFINE
13795 (value_range_base::dump): Print type for VARYING nodes.
13796 (value_range_base::set): Add type to VARYING.
13797 (extract_range_from_multiplicative_op): Pass type to set_varying.
13798 (extract_range_from_binary_expr): Same.
13799 (value_range_base::intersect_helper): Same.
13800 (value_range_base::union_helper): Same.
13801 (value_range_base::normalize_symbolics): Same.
13802 (determine_value_range_1): Same.
13803 * tree-vrp.h (class value_range_base): Add type to set_varying.
13804 Add prototype for dump(void).
13805 Add prototype for supports_type_p.
13806 (class value_range): Add type to set_varying.
13807 Add prototype for dump(void).
13808 * vr-values.c (set_value_range_to_truthvalue): Pass type to
13810 (vr_values::get_lattice_entry): Set varying even if propagation
13812 Pass type to set_varying.
13813 (vr_values::get_value_range): Remove vr_const_varying.
13814 Reallocate the lattice if needed.
13815 (vr_values::update_value_range): Pass type to set_varying.
13816 (vr_values::extract_range_for_var_from_comparison_expr): Same.
13817 (vr_values::extract_range_from_binary_expr): Same.
13818 (vr_values::extract_range_from_unary_expr): Same.
13819 (vr_values::extract_range_from_cond_expr): Same.
13820 (vr_values::check_for_binary_op_overflow): Same.
13821 (vr_values::extract_range_basic): Same.
13822 (vr_values::extract_range_from_assignment): Same.
13823 (vr_values::vr_values): Increase size of num_vr_values.
13824 (vr_values::extract_range_from_phi_node): Pass type to
13827 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
13830 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
13831 for costs of hard register moves.
13832 (ix86_register_move_cost): Likewise.
13833 * config/i386/i386.h (processor_costs): Move costs of hard
13834 register moves to hard_register. Add int_load, int_store,
13835 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13836 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
13837 for costs of RTL expressions.
13838 * config/i386/x86-tune-costs.h: Move costs of hard register
13839 moves to hard_register. Duplicate int_load, int_store,
13840 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
13841 sse_load, sse_store for costs of RTL expressions.
13843 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
13845 * target.def (setup_incoming_vararg_bounds): Remove.
13846 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
13847 * doc/tm.texi: Regenerate.
13848 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
13849 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
13850 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
13851 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
13853 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13855 MSP430: Fix lines over 80 characters long in
13856 config/msp430/*.{c,h} files
13858 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
13859 specifier in string.
13860 (msp430_select_hwmult_lib): Split line more than 80 characters long.
13861 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
13862 redundant old comment.
13863 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
13864 Split line more than 80 characters long.
13865 * config/msp430/msp430.c (msp430_option_override): Likewise.
13866 (msp430_return_in_memory): Likewise.
13867 (msp430_gimplify_va_arg_expr): Likewise.
13868 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
13869 (msp430_legitimate_constant): Likewise.
13870 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
13871 (msp430_attr): Likewise.
13872 (msp430_data_attr): Likewise.
13873 (msp430_start_function): Likewise.
13874 (gen_prefix): Likewise.
13875 (msp430_init_sections): Likewise.
13876 (msp430_select_section): Likewise.
13877 (msp430_function_section): Likewise.
13878 (msp430_unique_section): Likewise.
13879 (msp430_output_aligned_decl_common): Likewise.
13880 (msp430_do_not_relax_short_jumps): Likewise.
13881 (msp430_init_builtins): Likewise.
13882 (msp430_expand_delay_cycles): Likewise.
13883 (msp430_expand_prologue): Likewise.
13884 (msp430_expand_epilogue): Likewise.
13885 (msp430_expand_helper): Likewise.
13886 (msp430_split_movsi): Likewise.
13887 (msp430_print_operand): Likewise.
13888 (msp430_return_addr_rtx): Likewise.
13889 (msp430x_extendhisi): Likewise.
13890 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
13891 (ASM_SPEC): Likewise.
13892 Remove very obvious comments.
13893 (LIB_SPEC): Split line more than 80 characters long.
13894 (EH_RETURN_HANDLER_RTX): Likewise.
13895 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13897 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
13899 MSP430: Fix whitespace errors and incorrect indentation in
13900 config/msp430/*.{c,h} files
13902 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
13903 (msp430_select_hwmult_lib): Likewise.
13904 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
13905 (msp430_extract_mcu_data): Likewise.
13906 (struct t_msp430_mcu_data): Likewise.
13907 * config/msp430/msp430.c (struct machine_function): Remove whitespace
13908 before left square bracket.
13909 (msp430_option_override): Fix indentation.
13910 (msp430_hard_regno_nregs_with_padding): Likewise.
13911 (msp430_initial_elimination_offset): Likewise.
13912 (msp430_special_register_convention_p): Remove whitespace before left
13913 square bracket and after exclamation mark.
13914 (msp430_evaluate_arg): Likewise.
13915 (msp430_callee_copies): Fix indentation.
13916 (msp430_gimplify_va_arg_expr): Likewise.
13917 (msp430_function_arg_advance): Remove whitespace before left square
13919 (reg_ok_for_addr): Likewise.
13920 (msp430_preserve_reg_p): Likewise.
13921 (msp430_compute_frame_info): Likewise.
13922 (msp430_asm_output_addr_const_extra): Add space between function name
13923 and open parenthesis.
13924 (has_section_name): Fix indentation.
13925 (msp430_attr): Remove trailing whitespace.
13926 (msp430_section_attr): Likewise.
13927 (msp430_data_attr): Likewise.
13928 (struct msp430_attribute_table): Fix comment and whitespace.
13929 (msp430_start_function): Remove whitespace before left square bracket.
13930 Add space between function name and open parenthesis.
13931 (msp430_select_section): Remove trailing whitespace.
13932 (msp430_section_type_flags): Remove trailing whitespace.
13933 (msp430_unique_section): Remove space before closing parenthesis.
13934 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
13935 (msp430_builtins): Remove whitespace before left square bracket.
13936 (msp430_init_builtins): Fix indentation.
13937 (msp430_expand_prologue): Remove whitespace before left square bracket.
13938 Remove space before closing parenthesis.
13939 (msp430_expand_epilogue): Remove whitespace before left square bracket.
13940 (msp430_split_movsi): Remove space before closing parenthesis.
13941 (helper_function_name_mappings): Fix indentation.
13942 (msp430_use_f5_series_hwmult): Fix whitespace.
13943 (use_32bit_hwmult): Likewise.
13944 (msp430_no_hwmult): Likewise.
13945 (msp430_output_labelref): Remove whitespace before left square bracket.
13946 (msp430_print_operand_raw): Likewise.
13947 (msp430_print_operand_addr): Likewise.
13948 (msp430_print_operand): Add two spaces after '.' in comment.
13949 Fix trailing whitespace.
13950 (msp430x_extendhisi): Fix indentation.
13951 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
13953 (PC_REGNUM): Likewise.
13954 (STACK_POINTER_REGNUM): Likewise.
13955 (CC_REGNUM): Likewise.
13957 2019-08-15 Richard Biener <rguenther@suse.de>
13960 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
13962 (general_scalar_chain::make_vector_copies): Use it.
13964 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
13966 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
13968 2019-08-15 Martin Liska <mliska@suse.cz>
13970 * tree-ssa-dce.c (propagate_necessity): We can't reach now
13971 operators with no arguments.
13972 (eliminate_unnecessary_stmts): Likewise here.
13974 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
13976 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
13977 <case COMPARE>: Revert 2019-08-14 change.
13978 (convertible_comparison_p): Revert 2019-08-14 change. Return false
13979 for (TARGET_64BIT || mode != DImode).
13981 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
13983 * tree-vrp.c (value_range_base::set): Merge in code from
13984 value_range_base::set_and_canonicalize.
13985 Enforce canonicalization at set time.
13986 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
13987 (value_range_base::set_undefined): Inline call to set().
13988 (value_range_base::set_varying): Same.
13989 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
13990 (vrp_val_max): New argument handle_pointers.
13991 (vrp_val_min): Same.
13992 (ranges_from_anti_range): Same.
13993 (extract_range_into_wide_ints): Use tree argument instead of sign
13995 (extract_range_from_multiplicative_op): Take in tree type instead
13996 of precision and sign. Adapt function for canonicalized ranges.
13997 (extract_range_from_binary_expr): Pass type to
13998 extract_range_from_multiplicative_op.
13999 Adapt for canonicalized ranges.
14000 (extract_range_from_unary_expr): Same.
14001 (value_range_base::intersect_helper): Adjust for canonicalized
14003 (value_range_base::union_helper): Same.
14004 (value_range_base::normalize_symbolics): New.
14005 * tree-vrp.h (class value_range_base): Remove
14006 set_and_canonicalize.
14007 New prototype for normalize_symbolics.
14008 (class value_range): Remove set_and_canonicalize.
14009 (vrp_val_min): Adjust prototype.
14010 (vrp_val_max): Same.
14012 (vr_values::extract_range_for_var_from_comparison_expr): Call set
14013 instead of set_and_canonicalize.
14015 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14017 PR middle-end/91444
14018 * tree-vect-stmts.c (vectorizable_call): Check that the function
14019 is a BUILT_IN_MD function before passing it to
14020 targetm.vectorize.builtin_md_vectorized_function.
14022 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14024 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
14025 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
14026 (aarch64_select_early_remat_modes): Use it.
14028 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14030 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
14031 16 for SVE predicates even if they are fixed-length.
14033 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14035 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
14036 operand order match the MOV /Z alias.
14038 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14040 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
14041 the vector pattern as an aarch64_svpattern argument. Update the
14042 overloaded caller accordingly.
14043 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
14044 (aarch64_output_sve_vector_inc_dec): Likewise.
14046 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14048 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
14049 multiplication case, try to compute VG * (lowest set bit) directly
14050 rather than always basing the multiplication on VG. Use
14051 expand_mult for the multiplication if we can.
14053 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14055 * config/aarch64/aarch64-protos.h
14056 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
14057 (aarch64_sve_inc_dec_immediate_p): Rename to...
14058 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14059 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
14060 (aarch64_output_sve_scalar_inc_dec): Declare.
14061 (aarch64_output_sve_inc_dec_immediate): Rename to...
14062 (aarch64_output_sve_vector_inc_dec): ...this.
14063 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
14064 (aarch64_output_sve_scalar_inc_dec): New functions.
14065 (aarch64_output_sve_addvl_addpl): Remove the base and offset
14066 arguments. Only handle true ADDVL and ADDPL instructions;
14067 don't emit an INC or DEC.
14068 (aarch64_sve_inc_dec_immediate_p): Rename to...
14069 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
14070 (aarch64_output_sve_inc_dec_immediate): Rename to...
14071 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
14072 aarch64_sve_vector_inc_dec_immediate_p.
14073 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
14074 (aarch64_sve_plus_immediate): New predicates.
14075 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
14076 rather than aarch64_sve_addvl_addpl_immediate.
14077 (aarch64_sve_inc_dec_immediate): Rename to...
14078 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
14079 aarch64_sve_vector_inc_dec_immediate_p.
14080 (aarch64_sve_add_operand): Update accordingly.
14081 * config/aarch64/constraints.md (Uai): New constraint.
14082 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
14083 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
14084 operand into a register if it satisfies aarch64_sve_plus_immediate.
14085 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
14086 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
14087 * config/aarch64/aarch64-sve.md (add<mode>3): Call
14088 aarch64_output_sve_vector_inc_dec instead of
14089 aarch64_output_sve_inc_dec_immediate.
14091 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14093 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
14094 (UNSPEC_REVW): New constants.
14095 (elem_bits): New mode attribute.
14096 (SVE_INT_UNARY): New int iterator.
14097 (optab): Handle UNSPEC_REV[BHW].
14098 (sve_int_op): New int attribute.
14099 (min_elem_bits): Handle VNx16QI and the predicate modes.
14100 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
14101 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
14102 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
14103 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
14104 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
14105 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
14106 unspecs based on the total width of the reversed data.
14107 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
14108 reinterpret followed by a subreg on big-endian targets.
14110 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14111 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14113 * config/aarch64/aarch64-sve.md
14114 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
14115 alternatives in which one of the inputs is in the same register
14118 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14120 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
14121 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
14123 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14125 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
14126 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
14128 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14129 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14131 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
14132 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
14133 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
14135 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14136 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14138 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
14139 Add an alternative that uses reversed shifts.
14141 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14143 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
14146 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14148 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
14149 a commutativity marker.
14151 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14152 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14154 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
14155 (aarch64_prepare_sve_cond_int_fma): Declare.
14156 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
14157 (aarch64_prepare_sve_int_fma): New functions.
14158 (aarch64_prepare_sve_cond_int_fma): Likewise.
14159 * config/aarch64/aarch64-sve.md
14160 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
14161 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
14162 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
14163 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
14164 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
14165 (*madd<mode>): Rename to...
14166 (*fma<mode>4): ...this.
14167 (*msub<mode>): Rename to...
14168 (*fnma<mode>4): ...this.
14170 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14171 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14173 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
14174 Print 2.0 naturally.
14175 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
14176 * config/aarch64/predicates.md
14177 (aarch64_sve_float_negated_arith_immediate): New predicate,
14178 renamed from aarch64_sve_float_arith_with_sub_immediate.
14179 (aarch64_sve_float_arith_with_sub_immediate): Test for both
14180 positive and negative constants.
14181 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
14182 or an aarch64_sve_float_arith_with_sub_immediate.
14183 * config/aarch64/constraints.md (vsN): Use
14184 aarch64_sve_float_negated_arith_immediate.
14185 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
14187 (sve_pred_fp_rhs2_immediate): New int attribute.
14188 * config/aarch64/aarch64-sve.md
14189 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
14190 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
14191 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
14192 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
14193 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
14194 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
14196 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14197 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14199 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
14200 (*aarch64_cond_abd<SVE_F:mode>_3)
14201 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
14203 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14204 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14206 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
14207 (*aarch64_cond_<su>abd<mode>_any): New patterns.
14209 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
14210 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14212 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
14213 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
14214 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
14215 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
14217 * optabs.h (create_convert_operand_from): Expand comment.
14218 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
14219 when mapping scalar rtxes to vector operands.
14220 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
14221 ashiftrt and lshiftrt.
14222 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
14223 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
14224 (*cond_<optab><mode>_any_const): New patterns.
14226 2019-08-15 Martin Liska <mliska@suse.cz>
14229 * cgraph.c (cgraph_node::remove): When setting
14230 n->origin = NULL for all nested functions, reset
14233 2019-08-15 Martin Liska <mliska@suse.cz>
14235 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
14238 2019-08-15 Martin Liska <mliska@suse.cz>
14241 * passes.c (order): Remove.
14242 (uid_hash_t): Likewise).
14243 (remove_cgraph_node_from_order): Remove from set
14244 of pointers (cgraph_node *).
14245 (insert_cgraph_node_to_order): New.
14246 (duplicate_cgraph_node_to_order): New.
14247 (do_per_function_toporder): Register all 3 cgraph hooks.
14248 Skip removed_nodes now as we know about all of them.
14250 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
14252 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
14253 <case E_V8QImode>: Use vector_set path for
14254 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14255 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
14256 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14258 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
14260 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
14262 2019-08-14 Martin Sebor <msebor@redhat.com>
14264 PR tree-optimization/91294
14265 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
14266 source length as exact.
14268 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
14270 * doc/extend.texi: Add "noinit" attribute documentation.
14271 * doc/sourcebuild.texi: Add noinit effective target documentation.
14272 * varasm.c (default_section_type_flags): Add support for "noinit"
14274 (default_elf_select_section): Add support for "noinit" attribute.
14275 * config/msp430/msp430.c (msp430_attribute_table): Remove
14278 2019-08-14 Richard Biener <rguenther@suse.de>
14279 Uroš Bizjak <ubizjak@gmail.com>
14282 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
14284 (scalar_chain::smode): New member.
14285 (scalar_chain::vmode): Likewise.
14286 (dimode_scalar_chain): Rename to...
14287 (general_scalar_chain): ... this.
14288 (general_scalar_chain::general_scalar_chain): Take mode arguments.
14289 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
14290 base with TImode and V1TImode.
14291 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
14292 (general_scalar_chain::vector_const_cost): Adjust for SImode
14294 (general_scalar_chain::compute_convert_gain): Likewise. Add
14295 {S,U}{MIN,MAX} support.
14296 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
14297 (general_scalar_chain::make_vector_copies): Likewise. Handle
14298 non-DImode chains appropriately.
14299 (general_scalar_chain::convert_reg): Likewise.
14300 (general_scalar_chain::convert_op): Likewise.
14301 (general_scalar_chain::convert_insn): Likewise. Add
14302 fatal_insn_not_found if the result is not recognized.
14303 (convertible_comparison_p): Pass in the scalar mode and use that.
14304 (general_scalar_to_vector_candidate_p): Likewise. Rename from
14305 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
14306 (scalar_to_vector_candidate_p): Remove by inlining into single
14308 (general_remove_non_convertible_regs): Rename from
14309 dimode_remove_non_convertible_regs.
14310 (remove_non_convertible_regs): Remove by inlining into single caller.
14311 (convert_scalars_to_vector): Handle SImode and DImode chains
14312 in addition to TImode chains.
14313 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
14314 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
14315 (*<maxmin>di3_doubleword): Likewise.
14317 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14318 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14320 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
14321 (*cond_bic<mode>_any): New patterns.
14323 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14325 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
14326 take the equivalent mask, as well as a bit count.
14327 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
14328 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
14329 (aarch64_sve_pred_and_operand): New predicates.
14330 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
14332 * config/aarch64/aarch64-sve.md
14333 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
14334 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
14336 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14338 * config/aarch64/aarch64-sve.md
14339 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14340 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
14343 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14344 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14346 * config/aarch64/aarch64-sve.md
14347 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
14348 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
14350 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14351 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14353 * config/aarch64/aarch64-sve.md
14354 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
14355 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
14357 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14359 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
14360 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
14363 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14364 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14366 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
14368 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14369 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14371 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
14372 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
14373 (aarch64_print_operand): Add support for %I.
14374 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
14375 Bitcast floating-point constants to the corresponding integer constant.
14376 (aarch64_float_const_representable_p): Handle vectors as well
14378 (aarch64_expand_sve_vcond): Make sure that the operands are valid
14379 for the new vcond_mask_<mode><vpred> expander.
14380 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
14381 test aarch64_float_const_representable_p.
14382 (aarch64_sve_reg_or_dup_imm): New predicate.
14383 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
14384 gen_vcond_mask_<mode><vpred> instead of
14385 gen_aarch64_sve_dup<mode>_const.
14386 (vcond_mask_<mode><vpred>): Turn into a define_expand that
14387 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
14388 for operands 1 and 2 respectively. Force operand 2 into a
14389 register if operand 1 is a register. Fold old define_insn...
14390 (aarch64_sve_dup<mode>_const): ...and this define_insn...
14391 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
14392 floating-point constants that can be moved as integers. Add
14393 alternatives for MOV /M and FMOV /M.
14394 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
14395 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
14396 1 and 2 respectively.
14397 * config/aarch64/constraints.md (Ufc): Handle vectors as well
14399 (vss): New constraint.
14401 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14403 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
14404 (aarch64_sve_float_maxmin_operand): New predicates.
14405 * config/aarch64/constraints.md (vsB): New constraint.
14407 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
14408 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
14409 UNSPEC_COND_FMINNM.
14410 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
14411 Use aarch64_sve_float_maxmin_operand for operand 2.
14412 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
14413 Add alternatives for the constant forms.
14415 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14417 * config/aarch64/constraints.md (vsb): New constraint.
14418 (vsm): Generalize description.
14419 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
14421 (sve_imm_con): Handle smax, smin, umax and umin.
14422 (sve_imm_prefix): New code attribute.
14423 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
14424 (aarch64_sve_vsb_operand): New predicates.
14425 (aarch64_sve_mul_immediate): Rename to...
14426 (aarch64_sve_vsm_immediate): ...this.
14427 (aarch64_sve_mul_operand): Rename to...
14428 (aarch64_sve_vsm_operand): ...this.
14429 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
14430 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
14431 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
14432 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
14433 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
14434 add movprfx support for the immediate alternatives.
14435 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
14437 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
14440 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14442 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
14443 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
14444 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
14446 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14448 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
14449 (optab, sve_int_op): Handle them.
14450 * config/aarch64/aarch64-sve.md: Expand comment.
14452 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14454 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
14455 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
14456 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
14458 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14460 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
14461 (aarch64_expand_sve_const_pred_trn): New functions.
14462 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
14463 use the above functions when the parameter is true.
14464 (aarch64_expand_sve_const_pred): Update call accordingly.
14465 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
14467 (@aarch64_sve_<perm_insn><mode>): ...this.
14469 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14471 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
14473 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
14474 (aarch64_sve_emit_int_cmp): New functions.
14475 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
14476 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
14477 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
14478 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
14479 (UNSPEC_PRED_Z): New unspec.
14480 (set_clobber_cc_nzc): Delete.
14481 * config/aarch64/aarch64-sve.md: Add a block comment about
14483 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
14484 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
14485 the old pattern with that name. Use UNSPEC_PRED_Z instead of
14486 UNSPEC_MERGE_PTRUE.
14487 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
14488 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
14489 check for compatible predicates.
14490 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
14491 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
14492 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
14495 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14497 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
14498 * config/aarch64/aarch64-sve.md: Add a section describing it.
14499 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
14500 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
14501 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
14502 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
14503 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
14504 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
14505 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
14506 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
14507 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
14508 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
14509 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
14510 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
14511 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
14512 (aarch64_evpc_rev_local): Update accordingly.
14514 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14516 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
14518 (SVE_BHSI, SVE_SDI): Tweak comment.
14519 (SVE_HSDI): Likewise. Fix definition.
14520 (SVE_SDF): New mode iterator.
14521 (elem_bits): New mode attribute.
14522 (SVE_COND_FCVT): New int iterator.
14523 * config/aarch64/aarch64-sve.md
14524 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
14525 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
14526 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
14527 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
14528 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
14529 ...these new patterns.
14530 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
14531 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
14532 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
14534 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
14535 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
14536 ...these new patterns.
14537 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
14538 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
14539 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
14540 ...this new pattern.
14541 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
14542 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
14543 ...this new pattern.
14544 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
14546 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14548 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
14549 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
14550 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
14552 (optab, su): Handle them.
14553 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
14554 * config/aarch64/aarch64-sve.md
14555 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
14556 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
14557 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
14558 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
14559 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
14560 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
14561 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
14562 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
14563 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
14565 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
14566 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
14567 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
14568 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
14569 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
14570 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
14571 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
14572 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
14573 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
14574 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
14575 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
14576 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
14577 of UNSPEC_FLOAT_CONVERT.
14578 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
14579 aarch64_sve_extend<mode><Vwide>2.
14581 2019-08-14 Richard Biener <rguenther@suse.de>
14584 * config/i386/i386-features.c
14585 (dimode_scalar_chain::compute_convert_gain): Compute and dump
14586 individual instruction gain. Fix reg-reg copy GRP cost. Use
14587 ix86_cost->sse_op for vector instruction costs.
14589 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14591 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
14592 (cmp_op): Handle it.
14593 (SVE_COND_FP_CMP): Rename to...
14594 (SVE_COND_FP_CMP_I0): ...this.
14595 (SVE_FP_CMP): Remove.
14596 * config/aarch64/aarch64-sve.md
14597 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
14598 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
14599 using unspecs to represent the comparison.
14600 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
14601 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
14603 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
14604 (aarch64_unspec_cond_code): Move after integer code. Handle
14606 (aarch64_emit_sve_predicated_cond): Replace with...
14607 (aarch64_emit_sve_fp_cond): ...this new function.
14608 (aarch64_emit_sve_or_conds): Replace with...
14609 (aarch64_emit_sve_or_fp_conds): ...this new function.
14610 (aarch64_emit_sve_inverted_cond): Replace with...
14611 (aarch64_emit_sve_invert_fp_cond): ...this new function.
14612 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
14614 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14616 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
14617 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
14618 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
14619 SVE_HSD instead of SVE_SD.
14621 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14622 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14624 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
14626 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
14628 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
14629 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
14630 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
14631 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
14632 (*div<SVE_F:mode>3): Generalize to...
14633 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
14635 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14636 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14638 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
14640 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
14642 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
14644 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
14646 * config/aarch64/aarch64-sve.md: Add a block comment about the
14647 handling of predicated FP operations.
14648 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
14649 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
14650 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14651 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
14652 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
14654 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
14655 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
14657 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
14658 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
14659 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
14660 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
14661 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
14662 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
14663 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
14664 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
14665 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
14666 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
14667 strictness operands. Use aarch64_sve_pred_dominates_p to check
14668 whether the predicate on the conditional operation is suitable
14669 for merging. Split patterns into the canonical equal-predicate form.
14670 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
14671 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
14673 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14674 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14676 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
14677 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
14678 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
14680 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
14681 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
14684 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14685 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
14687 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
14688 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
14689 actually has, rather than relying on REG_EQUAL notes.
14690 Make the insn operand order match the SVE operand order.
14691 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
14692 the SVE operand order.
14694 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14696 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
14697 (aarch64_emit_set_immediate): Likewise.
14698 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
14699 (aarch64_pfalse_reg): Likewise.
14700 (aarch64_convert_sve_data_to_pred): New function.
14701 (aarch64_sve_move_pred_via_while): Take an optional target register
14702 and the required register mode.
14703 (aarch64_expand_sve_const_pred_1): New function.
14704 (aarch64_expand_sve_const_pred): Likewise.
14705 (aarch64_expand_mov_immediate): Build an all-true predicate
14706 if the significant bits of the immediate are all true. Use
14707 aarch64_expand_sve_const_pred for all compile-time predicate constants.
14708 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
14709 before register allocation.
14710 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
14711 a VNx16BI PTRUE when splitting the memory alternative.
14712 (vec_duplicate<mode>): Update accordingly.
14713 (*pred_cmp<cmp_op><mode>): Rename to...
14714 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
14716 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
14718 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
14719 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
14720 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
14721 (UNSPEC_PTEST): New unspec.
14722 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
14723 * config/aarch64/iterators.md (data_bytes): New mode attribute.
14724 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
14725 * config/aarch64/aarch64-sve.md: Add a new section describing the
14726 handling of UNSPEC_PTEST.
14727 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
14728 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
14729 (ptest_ptrue<mode>): Replace with...
14730 (aarch64_ptest<mode>): ...this new pattern.
14731 (cbranch<mode>4): Update after above changes.
14732 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
14733 UNSPEC_PTEST_PTRUE.
14734 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
14735 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
14736 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
14738 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
14741 * builtins.c (builtin_with_linkage_p): New function.
14742 * builtins.h (builtin_with_linkage_p): New function.
14743 * symtab.c (write_symbol): Remove redundant assert.
14744 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
14745 Remove FIXME and use builtin_with_linkage_p.
14747 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14749 PR middle-end/91421
14750 * tree-core.h (function_decl::function_code): Change type to
14752 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
14753 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
14754 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
14755 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
14756 is BUILT_IN_NORMAL.
14757 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
14758 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
14759 (fndecl_built_in_p): Change the type of the "name" argument to
14761 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
14762 after check for DECL_BUILT_IN_CLASS.
14763 * cgraphclones.c (build_function_decl_skip_args): Use
14764 set_decl_built_in_function.
14765 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
14766 * ipa-split.c (split_function): Likewise.
14767 * langhooks.c (add_builtin_function_common): Likewise.
14768 * omp-simd-clone.c (simd_clone_create): Likewise.
14769 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
14770 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
14771 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
14772 DECL_FUNCTION_CODE.
14773 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
14774 instead of DECL_FUNCTION_CODE.
14775 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
14776 instead of DECL_FUNCTION_CODE.
14777 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
14778 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
14779 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
14780 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
14781 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
14782 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
14783 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
14784 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
14785 (alpha_gimple_fold_builtin): Likewise.
14786 * config/arc/arc.c (arc_expand_builtin): Likewise.
14787 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
14788 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
14789 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
14790 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
14791 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
14792 * config/frv/frv.c (frv_expand_builtin): Likewise.
14793 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
14794 (gcn_expand_builtin): Likewise.
14795 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
14796 (fold_builtin_cpu): Likewise.
14797 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
14798 * config/i386/i386.c (ix86_fold_builtin): Likewise.
14799 (ix86_gimple_fold_builtin): Likewise.
14800 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
14801 (ia64_expand_builtin): Likewise.
14802 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
14803 * config/mips/mips.c (mips_expand_builtin): Likewise.
14804 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
14805 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
14806 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
14807 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
14808 * config/pa/pa.c (pa_expand_builtin): Likewise.
14809 * config/pru/pru.c (pru_expand_builtin): Likewise.
14810 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
14811 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
14813 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
14814 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
14815 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
14816 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
14817 (rs6000_builtin_reciprocal): Likewise.
14818 * config/rx/rx.c (rx_expand_builtin): Likewise.
14819 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
14820 * config/s390/s390.c (s390_expand_builtin): Likewise.
14821 * config/sh/sh.c (sh_expand_builtin): Likewise.
14822 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
14823 (sparc_fold_builtin): Likewise.
14824 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
14825 * config/spu/spu.c (spu_expand_builtin): Likewise.
14826 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
14827 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
14828 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
14829 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
14830 (xtensa_expand_builtin): Likewise.
14832 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14834 PR middle-end/91421
14835 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
14836 before the DECL_FUNCTION_CODE.
14837 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
14838 to check for a BUILT_IN_ALLOCA call.
14839 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
14840 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
14841 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
14842 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
14843 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
14844 for BUILT_IN_NORMAL functions.
14845 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
14846 test for BUILT_IN_TM_ABORT.
14847 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
14848 to check for a BUILT_IN_STACK_RESTORE call.
14849 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
14850 * tree-ssa-threadedge.c
14851 (record_temporary_equivalences_from_stmts_at_dest): Check for a
14852 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
14853 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
14854 test for a BUILT_IN_NORMAL call instead of a negative test for
14855 an internal function call.
14857 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14859 * tree.h (build_vector_a_then_b): Declare.
14860 * tree.c (build_vector_a_then_b): New function.
14861 * fold-const-call.c (fold_while_ult): Likewise.
14862 (fold_const_call): Use it to handle IFN_WHILE_ULT.
14863 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
14864 (aarch64_svpattern): New enum.
14865 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
14866 constants through aarch64_expand_mov_immediate.
14867 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
14868 than general_operand as the predicate for operand 1.
14869 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
14870 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
14872 (simd_immediate_info::simd_immediate_info): New overload that
14873 takes a scalar_int_mode and an svpattern.
14874 (simd_immediate_info::u): Add a "pattern" field.
14875 (svpattern_token): New function.
14876 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
14877 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
14878 (aarch64_sve_move_pred_via_while): New functions.
14879 (aarch64_expand_mov_immediate): Try using
14880 aarch64_sve_move_pred_via_while for predicates that contain N ones
14881 followed by M zeros but that do not correspond to a VLnnn pattern.
14882 (aarch64_sve_pred_valid_immediate): New function.
14883 (aarch64_simd_valid_immediate): Use it instead of dealing directly
14884 with PTRUE and PFALSE.
14885 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
14888 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
14890 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
14892 (darwin_override_options): Likewise.
14893 * config/darwin.h: Likewise.
14894 * config/darwin.opt: Likewise.
14895 * config/i386/i386.c (output_pic_addr_const): Likewise.
14896 * config/rs6000/darwin.h: Likewise.
14897 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
14898 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
14899 ... this TARGET_MACHO_SYMBOL_STUBS.
14900 (FUNCTION_PROFILER):Likewise.
14901 * config/i386/i386.h: Likewise.
14903 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
14905 * config/i386/i386-expand.c (ix86_expand_vector_extract)
14906 <case E_V2SImode>: Use vec_extr path for
14907 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
14908 <case E_V8QImode>: Ditto.
14909 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
14910 Use SWI48 mode iterator. Use %k to output operand 0.
14911 (*mmx_pextrw): New insn pattern.
14912 (*mmx_pextrb): Ditto.
14913 (*mmx_pextrb_zext): Ditto.
14915 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
14917 * target.def (libc_has_function, libc_has_fast_function): Improve
14918 documentation strings.
14919 * doc/tm.texi: Regenerate.
14921 2019-08-13 Caroline Tice <cmtice@google.com>
14924 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
14925 vtv_end.o or vtv_end_preinit.o files if !static.
14927 2019-08-13 Olivier Hainque <hainque@adacore.com>
14929 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
14931 2019-08-13 Olivier Hainque <hainque@adacore.com>
14933 * rtlanal.c (tablejump_casesi_pattern): New function, to
14934 determine if a tablejump insn is a casesi dispatcher. Extracted
14935 from patch_jump_insn.
14936 * rtl.h (tablejump_casesi_pattern): Declare.
14937 * cfgrtl.c (patch_jump_insn): Use it.
14938 * dwarf2cfi.c (create_trace_edges): Use it.
14940 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14943 * config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
14944 operand is larger than a long int.
14946 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
14948 * machmode.h (opt_mode::else_mode): New function.
14949 (opt_mode::else_blk): Use it.
14950 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
14951 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
14952 (aarch64_gen_stepped_int_parallel): Likewise.
14953 (aarch64_stepped_int_parallel_p): Likewise.
14954 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14956 * config/aarch64/aarch64.c
14957 (aarch64_expand_sve_widened_duplicate): Delete.
14958 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
14959 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
14960 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
14961 argument. Use early returns in the !CONST_INT_P handling.
14962 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
14963 than handling some inline.
14964 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
14966 (aarch64_simd_container_mode): ...here.
14967 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
14968 (aarch64_sve_ld1rq_operand_p): New functions.
14969 * config/aarch64/predicates.md (descending_int_parallel)
14970 (aarch64_sve_ld1rq_operand): New predicates.
14971 * config/aarch64/constraints.md (UtQ): New constraint.
14972 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
14973 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
14974 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
14975 (@aarch64_sve_reinterpret<mode>): New expander.
14976 (*aarch64_sve_reinterpret<mode>): New pattern.
14977 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
14978 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
14979 (*sve_ld1rq<Vesize>): Replace with...
14980 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
14982 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
14984 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
14987 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
14989 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
14990 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
14991 (msp430_check_path_for_devices): New.
14992 (parse_devices_csv_1): New.
14993 (parse_devices_csv): New.
14994 (msp430_extract_mcu_data): Try to find devices.csv and search for the
14995 MCU data in devices.csv before using the hard-coded data.
14996 Warn if devices.csv isn't found and the MCU wasn't found in the
14997 hard-coded data either.
14998 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
14999 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
15000 Search for devices.csv on -I and -L paths.
15001 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
15002 msp430_set_driver_var.
15003 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
15004 -mdevices-csv-loc=.
15005 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
15006 searched for devices.csv.
15007 (mwarn-devices-csv): Document option.
15009 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15011 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
15012 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
15013 Use a single Dn alternative instead of separate Dz and Dm
15014 alternatives. Use aarch64_output_sve_move_immediate.
15015 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
15017 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
15018 for predicates too.
15019 (aarch64_output_sve_mov_immediate): Handle predicate modes.
15020 (aarch64_output_ptrue): Delete.
15022 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15024 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
15026 (simd_immediate_info::value, simd_immediate_info::step)
15027 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
15029 (simd_immediate_info::u): ...this new union.
15030 (simd_immediate_info::simd_immediate_info): Update accordingly.
15031 (aarch64_output_simd_mov_immediate): Likewise.
15032 (aarch64_output_sve_mov_immediate): Likewise.
15034 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
15036 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
15038 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
15039 (msp430_select_cpu): New spec function.
15040 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
15042 * config/msp430/msp430-devices.c: New file.
15043 * config/msp430/msp430-devices.h: New file.
15044 * config/msp430/msp430.c: Remove msp430_mcu_data.
15045 (msp430_option_override): Use msp430_extract_mcu_data to extract
15047 (msp430_use_f5_series_hwmult): Likewise.
15048 (use_32bit_hwmult): Likewise.
15049 (msp430_no_hwmult): Likewise.
15050 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
15052 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
15054 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
15055 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
15056 Remove hard-coded MCU multilib data.
15058 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15060 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
15061 based on the mode instead of testing properties of it.
15063 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15065 * doc/md.texi: Document the x and y constraints for AArch64.
15066 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
15067 (FP_LO8_REGS): New reg_class.
15068 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
15069 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
15070 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
15071 * config/aarch64/predicates.md (aarch64_simd_register): Use
15072 FP_REGNUM_P instead of checking the classes manually.
15073 * config/aarch64/constraints.md (y): New constraint.
15075 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
15077 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
15078 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
15079 * config/aarch64/aarch64-simd.md
15080 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
15081 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
15082 from the asm template.
15083 * config/aarch64/aarch64-sve.md
15084 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
15085 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
15086 from the asm template.
15087 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
15088 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
15089 from the asm template.
15090 * config/aarch64/aarch64-simd-builtins.def: Update comment.
15092 2019-08-13 Martin Liska <mliska@suse.cz>
15094 * value-prof.c (gimple_ic_transform): Add new line.
15095 Print details with MSG_NOTE.
15097 2019-08-13 Martin Liska <mliska@suse.cz>
15099 * doc/invoke.texi: Document automatic detection of jobserver.
15100 * lto-wrapper.c (run_gcc): Detect jobserver always.
15102 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
15104 * config/i386/i386-expand.c (ix86_expand_vector_set)
15105 <case E_V2SImode>: Use vec_merge path for
15106 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
15107 <case E_V8QImode>: Ditto.
15108 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
15109 (*mmx_pinsrb): Ditto.
15111 2019-08-12 Jakub Jelinek <jakub@redhat.com>
15115 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
15116 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
15117 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
15118 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
15119 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
15121 2019-08-12 Richard Biener <rguenther@suse.de>
15124 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
15127 2019-08-12 Richard Biener <rguenther@suse.de>
15130 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
15131 lang_mask option, always use CL_DRIVER.
15132 (get_options_from_collect_gcc_options): Adjust.
15133 (find_and_merge_options): Likewise.
15134 (run_gcc): Likewise.
15136 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15138 * ipa-predicate.c (add_condition): Restore inverted test.
15140 2019-08-10 Jakub Jelinek <jakub@redhat.com>
15142 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
15143 (enum omp_clause_device_type_kind): New enum.
15144 (struct tree_omp_clause): Add subcode.device_type_kind.
15145 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
15146 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15147 for device_type clause.
15148 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
15149 * tree-pretty-print.c (dump_omp_clause): Likewise.
15152 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
15155 2019-08-09 Vladimir Makarov <vmakarov@redhat.com>
15157 * reload1.c (finish_spills): Do not check ira_conflicts_p when
15158 handling spilled pseudos.
15160 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15163 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
15164 to preserve the contents of the original insns.
15166 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
15168 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
15169 (addsi3_compare_op2): Likewise.
15171 2019-08-09 Martin Liska <mliska@suse.cz>
15173 * alias.c (alias_ptr_types_compatible_p): Strengten
15174 type comparison in LTO mode.
15176 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
15178 PR middle-end/90313
15179 * tree-tailcall.c (find_tail_calls): Reject calls that might
15180 read from an escaped RESULT_DECL.
15182 2019-08-09 Martin Liska <mliska@suse.cz>
15184 * doc/invoke.texi: Document the option value.
15185 * lto-wrapper.c (run_gcc): Set auto_parallel
15186 only with -flto=auto.
15188 2019-08-09 Martin Liska <mliska@suse.cz>
15190 * opts.c (common_handle_option): Error for an invalid argument
15193 2019-08-09 Martin Liska <mliska@suse.cz>
15195 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
15196 use dump_printf to report optimization.
15197 (sem_variable::merge): Likwise.
15198 (sem_item_optimizer::merge_classes): Use dump_printf to report
15201 2019-08-09 Martin Liska <mliska@suse.cz>
15203 * value-prof.c (gimple_divmod_fixed_value_transform):
15204 Use dump_printf_loc.
15205 (gimple_mod_pow2_value_transform): Likewise.
15206 (gimple_mod_subtract_transform): Likewise.
15207 (init_node_map): Likewise.
15208 (gimple_ic_transform): Likewise.
15209 (gimple_stringops_transform): Likewise.
15211 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
15213 * doc/extend.texi: Add const qualifier to ld intrinsics.
15215 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15217 * config/rs6000/dfp.md (D64_D128): Rename to ...
15218 (DDTD): ... this, throughout.
15219 (dfp_suffix): Rename to ...
15220 (q): ... this, throughout.
15222 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
15224 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
15225 (dfp_suffix): Ditto.
15226 (adddd3, addtd3): Merge to ...
15227 (add<mode>3 for D64_D128): ... this.
15228 (subdd3, subtd3): Merge to ...
15229 (sub<mode>3 for D64_D128): ... this.
15230 (muldd3, multd3): Merge to ...
15231 (mul<mode>3 for D64_D128): ... this.
15232 (divdd3, divtd3): Merge to ...
15233 (div<mode>3 for D64_D128): ... this.
15234 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
15235 (*cmp<mode>_internal1 for D64_D128): ... this.
15236 (ftruncdd2, ftrunctd2): Merge to ...
15237 (ftrunc<mode>2 for D64_D128): ... this.
15238 (fixdddi2, fixtddi2): Merge to ...
15239 (fix<mode>di2 for D64_D128): ... this.
15241 2019-08-08 Jim Wilson <jimw@sifive.com>
15244 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
15245 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
15246 Pass into recursive call.
15247 (riscv_flatten_aggregate_argument): New arg. Pass to
15248 riscv_flatten_aggregate_field.
15249 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
15250 riscv_flatten_aggregate_argument twice, with false and true as last
15251 arg. Process result twice. Compare results and warn if different.
15252 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
15254 2019-08-08 Martin Liska <mliska@suse.cz>
15257 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
15258 * lto-wrapper.c (jobserver_active_p): Likewise.
15260 2019-08-08 Martin Liska <mliska@suse.cz>
15262 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
15263 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
15264 (create_version_clone_with_body): Likewise.
15266 2019-08-08 Jakub Jelinek <jakub@redhat.com>
15268 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
15269 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
15270 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
15271 GOVD_EXPLICIT flags.
15272 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
15273 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
15274 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
15275 call install_var_field with mask 11 instead of 3.
15276 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
15277 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
15279 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15281 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
15282 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
15284 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15286 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
15287 MOVPRFX alternatives. Make the GPR alternatives more expensive
15290 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15292 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
15293 Disparage the GPR alternative relative to the FPR one.
15294 Fix handling of 8-bit and 16-bit FPR values.
15296 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15298 * config/aarch64/iterators.md (BITWISEV): Delete.
15299 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
15300 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
15301 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15302 UNSPEC_FMINNMV, UNSPEC_FMINV.
15303 (bit_reduc_op): Delete.
15304 (sve_int_op): New int attribute.
15305 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
15306 UNSPEC_FMINNMV, UNSPEC_FMINV.
15307 * config/aarch64/aarch64-sve.md
15308 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15309 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
15310 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
15311 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
15312 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
15313 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
15315 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
15316 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
15317 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
15318 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
15319 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
15322 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15324 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
15325 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
15326 (fms<mode>4, *fms<mode>4): Replace with...
15327 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
15328 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
15329 Use unspecs instead of rtx codes.
15330 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
15331 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
15333 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15335 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
15337 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
15338 * config/aarch64/aarch64-sve.md
15339 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
15340 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
15341 use a single unspec for the rhs.
15342 (*<su><maxmin><mode>3): Delete.
15343 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
15345 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15347 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
15348 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
15349 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
15350 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
15351 (optab, sve_fp_op): Handle them.
15352 (SVE_FP_UNARY): Delete.
15353 (optab): Remove sqrt entry.
15354 (sve_fp_op): Remove neg, abs and sqrt entries.
15355 (SVE_COND_FP_UNARY): New int iterator.
15356 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
15357 (*<frint_pattern><mode>2): Delete.
15358 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15359 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15360 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
15361 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
15363 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15365 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
15367 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15369 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
15370 (UNSPEC_COND_FADD): ...this.
15371 (UNSPEC_COND_SUB): Rename to...
15372 (UNSPEC_COND_FSUB): ...this.
15373 (UNSPEC_COND_MUL): Rename to...
15374 (UNSPEC_COND_FMUL): ...this.
15375 (UNSPEC_COND_DIV): Rename to...
15376 (UNSPEC_COND_FDIV): ...this.
15377 (UNSPEC_COND_MAX): Rename to...
15378 (UNSPEC_COND_FMAXNM): ...this.
15379 (UNSPEC_COND_MIN): Rename to...
15380 (UNSPEC_COND_FMINNM): ...this.
15381 (UNSPEC_COND_LT): Rename to...
15382 (UNSPEC_COND_FCMLT): ...this.
15383 (UNSPEC_COND_LE): Rename to...
15384 (UNSPEC_COND_FCMLE): ...this.
15385 (UNSPEC_COND_EQ): Rename to...
15386 (UNSPEC_COND_FCMEQ): ...this.
15387 (UNSPEC_COND_NE): Rename to...
15388 (UNSPEC_COND_FCMNE): ...this.
15389 (UNSPEC_COND_GE): Rename to...
15390 (UNSPEC_COND_FCMGE): ...this.
15391 (UNSPEC_COND_GT): Rename to...
15392 (UNSPEC_COND_FCMGT): ...this.
15393 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
15394 (sve_fp_op_rev): Update accordingly.
15395 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
15397 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15399 * config/aarch64/aarch64-sve.md: Reorganize contents and add
15401 * config/aarch64/check-sve-md.awk: New file.
15402 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
15403 (insn-conditions.md): Depend on it.
15405 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
15408 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
15409 (*negsi2_cmpz_zext): Ditto.
15411 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15413 * config/aarch64/iterators.md (commutative): Remove.
15415 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
15418 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
15419 processing COLLECT_GCC_OPTIONS.
15420 (run_gcc): Likewise.
15422 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
15424 PR tree-optimization/91109
15425 * lra-remat.c (update_scratch_ops): Remove assignment of the
15428 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
15430 * data-streamer.h (streamer_write_poly_uint64): Declare.
15431 (streamer_read_poly_uint64): Likewise.
15432 * data-streamer-in.c (streamer_read_poly_uint64): New function.
15433 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
15434 * ipa-predicate.h (condition::size): Turn into a poly_int64.
15435 (add_condition): Take a poly_int64 size.
15436 * ipa-predicate.c (add_condition): Likewise.
15437 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
15438 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
15439 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
15440 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
15441 condition::size as a poly_int64.
15442 (unmodified_parm_1): Take a poly_int64 size pointer.
15443 (unmodified_parm): Likewise.
15444 (unmodified_parm_or_parm_agg_item): Likewise.
15445 (set_cond_stmt_execution_predicate): Update accordingly.
15446 (set_switch_stmt_execution_predicate): Likewise.
15447 (will_be_nonconstant_expr_predicate): Likewise.
15448 (will_be_nonconstant_predicate): Likewise.
15449 (inline_read_section): Stream condition::size as a poly_int.
15450 (ipa_fn_summary_write): Likewise.
15452 2019-08-07 Martin Liska <mliska@suse.cz>
15454 * fold-const.c (twoval_comparison_p): Replace int
15455 with bool as a return type.
15456 (simple_operand_p): Likewise.
15457 (operand_equal_p): Replace int with bool as a return type.
15458 * fold-const.h (operand_equal_p): Likewise.
15460 2019-08-07 Jakub Jelinek <jakub@redhat.com>
15462 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
15463 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
15464 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
15465 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
15466 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
15467 * tree-pretty-print.c (dump_omp_clause): Likewise.
15468 * tree-nested.c (convert_nonlocal_omp_clauses,
15469 convert_local_omp_clauses): Likewise.
15470 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
15472 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
15473 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
15474 clause with array or reference to array types, no matter what type
15475 except for reference it has.
15477 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
15479 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
15481 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
15483 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
15484 (arch_canonicalize): Support rv32g and rv64g and fix error
15487 2019-08-06 Martin Liska <mliska@suse.cz>
15489 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
15490 and DECL_IS_OPERATOR_DELETE_P.
15492 2019-08-06 Jakub Jelinek <jakub@redhat.com>
15494 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
15495 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
15496 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
15497 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
15498 (gimplify_omp_for): Don't do C++ random access iterator clause
15499 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
15500 don't predetermine the artificial iterator in case of C++ random
15501 access iterators as lastprivate, but private. For OMP_LOOP, force
15502 bind expr around simd body and force for_pre_body before the
15503 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
15504 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
15505 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
15506 diff var of C++ random access iterators. Handle
15507 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
15508 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
15509 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
15510 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
15511 * omp-low.c (lower_rec_input_clauses): For
15512 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
15513 variables instead of default constructing them.
15514 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
15515 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
15516 is_taskloop_ctx check from the assert to the guarding condition.
15518 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
15520 * config/riscv/multilib-generator: (canonical_order): New.
15521 (arch_canonicalize): Dito.
15522 Apply arch_canonicalize for alts.
15524 2019-08-05 Martin Sebor <msebor@redhat.com>
15526 * doc/extend.texi (Common Variable Attributes): Document alias
15529 2019-08-05 Marek Polacek <polacek@redhat.com>
15531 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
15532 * doc/invoke.texi: Document -Wcomma-subscript.
15534 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15536 * tree-core.h (tree_function_decl): Make function_code an
15537 independent field. Group the remaining bitfields into bytes
15538 and move decl_type so that it contines to be at a byte boundary.
15539 Leave 12 bits for future expansion.
15541 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15543 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
15544 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
15545 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
15548 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
15550 * gimple.h (gimple_move_vops): Declare.
15551 * gimple.c (gimple_move_vops): New function
15552 * gimple-fold.c (replace_call_with_call_and_fold)
15553 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
15554 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
15555 (gimple_fold_call): Use it.
15556 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
15557 * tree-call-cdce.c (use_internal_fn): Likewise.
15558 * tree-if-conv.c (predicate_load_or_store): Likewise.
15559 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
15560 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
15561 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
15562 (update_call_from_tree): Likewise.
15563 * tree-vect-stmts.c (vectorizable_load): Likewise.
15564 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
15566 2019-08-05 Martin Liska <mliska@suse.cz>
15569 * tree-ssa-dce.c (propagate_necessity): Handle new operators
15570 with not arguments.
15571 (eliminate_unnecessary_stmts): Likewise.
15573 2019-08-05 Richard Biener <rguenther@suse.de>
15575 PR middle-end/91169
15576 * fold-const.c (get_array_ctor_element_at_index): Create
15577 offset_ints according to the sign of the index type and treat
15578 that as signed if it is obviously so.
15580 2019-08-05 Jakub Jelinek <jakub@redhat.com>
15583 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
15584 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
15585 _mm256_storeu2_m128i): New function.
15587 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
15589 * config/riscv/riscv.c (riscv_promote_function_mode): New.
15590 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
15592 2019-08-05 Alan Modra <amodra@gmail.com>
15595 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
15596 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
15598 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
15600 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
15601 bug that was fixed in Tcl 8.6.1.
15603 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
15605 * config/rs6000/future.md: New file.
15606 * config/rs6000/rs6000.md: Include future.md.
15607 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
15609 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
15611 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
15612 check to use targetm.slow_unaligned_access instead.
15614 * function.c (assign_param_data_one): Remove unused data members.
15616 2019-08-02 Steve Ellcey <sellcey@marvell.com>
15618 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
15619 build_distinct_type_copy.
15620 (simd_clone_adjust_argument_types): Ditto.
15621 (simd_clone_adjust): Call build_distinct_type_copy here.
15622 (expand_simd_clones): Ditto.
15624 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15627 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
15629 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
15631 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
15632 from 'const void *'.
15633 (sort_locs_in_loop_postorder_cmp): Likewise.
15635 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
15637 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
15638 (hot-bb-count-ws-permille): Likewise.
15639 (hot-bb-frequency-fraction): Likewise.
15640 (unlikely-bb-count-fraction): Likewise.
15641 * params.def (hot-bb-count-fraction): Rework description.
15642 (hot-bb-count-ws-permille): Likewise.
15643 (hot-bb-frequency-fraction): Likewise.
15644 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
15645 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
15647 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
15650 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
15653 2019-08-02 Richard Biener <rguenther@suse.de>
15655 * vec.h (vec::sort): Add gcc_qsort_r support.
15656 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
15657 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
15658 to gcc_qsort_r style callback.
15659 (sort_locs_in_loop_postorder_cmp): Likewise.
15660 (analyze_memory_references): Use gcc_sort_r interfaces.
15661 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
15663 2019-08-02 Martin Liska <mliska@suse.cz>
15666 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
15667 to detect working job server.
15668 (driver::detect_jobserver): Test whether jobserver
15669 is active from GCC driver. That will prevent situation where
15670 GCC is invoked from a LD plugin and the linker already uses
15671 file descriptors suggested by make. That leads to a wrong
15673 * gcc.h (driver): Add detect_jobserver.
15674 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
15675 not scanning for --jobserver-auth prefix.
15677 2019-08-02 Jakub Jelinek <jakub@redhat.com>
15679 PR tree-optimization/91201
15680 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
15681 V16QImode extraction without sse4.1 try to use V4SImode lowpart
15684 2019-08-01 Martin Sebor <msebor@redhat.com>
15687 * tree.c (type_initializer_zero_p): Define.
15688 * tree.h (type_initializer_zero_p): New function.
15690 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15692 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
15694 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
15696 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
15697 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
15698 * predict.c (maybe_hot_count_p): Likewise.
15699 (maybe_hot_bb_p): Tweak comment.
15700 (maybe_hot_edge_p): Likewise.
15701 (probably_never_executed): Likewise. Minor tweak.
15702 (probably_never_executed_bb_p): Likewise.
15703 (unlikely_executed_edge_p): Likewise.
15704 (probably_never_executed_edge_p): Likewise.
15705 (optimize_function_for_size_p): Likewise.
15706 (optimize_function_for_speed_p): Likewise.
15707 (function_optimization_type): Likewise.
15708 (optimize_bb_for_size_p): Likewise.
15709 (optimize_bb_for_speed_p): Likewise.
15710 (bb_optimization_type): Likewise.
15711 (optimize_edge_for_size_p): Likewise.
15712 (optimize_edge_for_speed_p): Likewise.
15713 (optimize_insn_for_size_p): Likewise.
15714 (optimize_insn_for_speed_p): Likewise.
15715 (optimize_loop_for_size_p): Likewise.
15716 (optimize_loop_for_speed_p): Likewise.
15717 (optimize_loop_nest_for_speed_p): Likewise.
15718 (optimize_loop_nest_for_size_p): Likewise.
15719 (predictable_edge_p): Likewise.
15720 (handle_missing_profiles): Minor tweak.
15722 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
15724 * config/rs6000/predicates.md (pcrel_external_address): Update
15727 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15730 * config/i386/mmx.md (usadv8qi): New expander.
15732 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
15735 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
15736 with reserved names that are in a system header.
15738 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
15740 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
15741 (*vec_extractv2si_0_zext_sse4): New insn pattern.
15742 (*vec_extractv2si_0_zext): Ditto.
15743 (*vec_extractv2si_1): Add (rm,x) alternative.
15744 (*vec_extractv2si_1_zext): New insn pattern.
15745 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
15748 2019-08-01 Richard Biener <rguenther@suse.de>
15750 * domwalk.c (bb_postorder): Remove static variable.
15751 (cmp_bb_postorder): Adjust.
15752 (sort_bbs_postorder): Adjust and use gcc_sort_r.
15753 (dom_walker::walk): Adjust.
15755 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
15757 * sort.cc (sort_r_ctx): New struct.
15758 (reorder23): Make templated on context type.
15759 (reorder45): Ditto.
15760 (cmp1): Ditto. Adjust signature.
15762 (mergesort): Ditto.
15763 [CHECKING_P] (cmp2to3): New static function. Use it...
15764 (gcc_qsort) [CHECKING_P]: ...here.
15765 (gcc_sort_r): New function.
15766 * system.h (sort_r_cmp_fn): New function typedef.
15767 (qsort_chk): Adjust signature.
15768 (gcc_sort_r): Declare.
15769 * vec.c (qsort_chk_error): Adjust.
15770 (qsort_chk): Adjust.
15772 2019-08-01 Richard Biener <rguenther@suse.de>
15774 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
15775 (compute_antic): Localize it here.
15777 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
15779 * common/config/riscv/riscv-common.c: Check -march string ends
15782 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
15784 * ipa-devirt.c (type_warning_cmp): Make static.
15785 (decl_warning_cmp): Ditto.
15787 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
15790 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
15791 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
15792 use of deleted rs6000_dejagnu_cpu_index variable.
15793 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
15794 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15795 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
15796 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
15797 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
15798 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
15800 2019-07-31 Richard Biener <rguenther@suse.de>
15802 PR tree-optimization/91280
15803 * tree-ssa-structalias.c (get_constraint_for_component_ref):
15804 Decompose MEM_REF manually for offset handling.
15806 2019-07-31 Richard Biener <rguenther@suse.de>
15808 PR tree-optimization/91293
15809 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
15810 of reduction stmts.
15812 2019-07-31 Matt Thomas <matt@3am-software.com>
15813 Nick Hudson <nick@nthcliff.demon.co.uk>
15814 Matthew Green <mrg@eterna.com.au>
15815 Maya Rashish <coypu@sdf.org>
15817 * config.gcc (hppa*-*-netbsd*): New target.
15818 * config/pa/pa-netbsd.h: New file.
15819 * config/pa/pa32-netbsd.h: New file.
15821 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15823 PR tree-optimization/91201
15824 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
15826 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
15828 * config/gcn/gcn-valu.md
15829 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
15830 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
15831 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
15832 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
15833 struct ilist. Add nops for delayeduse insns.
15834 * config/gcn/gcn.md (delayeduse): New attribute.
15835 (*movbi): Remove s_waitcnt from stores.
15836 (*mov<mode>_insn): Likewise.
15837 (*movti_insn): Likewise. Add delayeduse attribute.
15838 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
15839 (atomic_store<mode>): Remove or adjust s_waitcnt.
15841 2019-07-31 Richard Biener <rguenther@suse.de>
15843 * vr-values.h (vr_values::swap_vr_value): New.
15844 (vr_values::free_value_range): likewise.
15845 * vr-values.c (vr_values::swap_vr_value): Implement.
15846 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
15847 Do not return a range or take a var.
15848 (evrp_range_analyzer::stack): Change back to recording a non-const
15850 * gimple-ssa-evrp-analyze.c
15851 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
15853 (evrp_range_analyzer::pop_to_marker): Adjust.
15854 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
15855 (evrp_range_analyzer::pop_value_range): Likewise. Free the
15856 no longer needed value-range.
15858 2019-07-31 Martin Liska <mliska@suse.cz>
15860 * tree-ssa-dce.c (propagate_necessity): Delete operator can
15861 have size and (or) alignment as 2nd and later arguments.
15862 Mark all of them as necessary.
15864 2019-07-31 Richard Biener <rguenther@suse.de>
15866 PR tree-optimization/91178
15867 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15868 Use tail-recursion.
15870 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15872 PR tree-optimization/91201
15873 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
15874 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
15876 (reduc_plus_scal_<mode>): Improve formatting by introducing
15879 2019-07-31 Sudakshina Das <sudi.das@arm.com>
15881 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
15882 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
15883 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
15884 (aarch64_init_tme_builtins): New.
15885 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
15886 (aarch64_expand_builtin_tme): New.
15887 (aarch64_expand_builtin): Handle TME builtins.
15888 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
15889 __ARM_FEATURE_TME when enabled.
15890 * config/aarch64/aarch64-option-extensions.def: Add "tme".
15891 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
15893 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
15894 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
15896 (tstart, ttest, tcommit, tcancel): New instructions.
15897 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
15898 (__tcancel, __ttest): New.
15899 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
15900 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
15901 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
15902 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
15903 * config/arm/types.md: Add new tme type attr.
15904 * doc/invoke.texi: Document "tme".
15906 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
15908 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
15909 warn_unused_result attribute.
15910 (cmse_check_address_range): Add warn_unused_result attribute.
15912 2019-07-31 Richard Biener <rguenther@suse.de>
15914 PR tree-optimization/91257
15915 * tree-vrp.c (union_ranges): Unify equality and less tests
15916 by using compare_values. Re-order cheap tests first.
15918 2019-07-31 Jakub Jelinek <jakub@redhat.com>
15920 PR middle-end/91301
15921 * gimplify.c (gimplify_omp_for): If for class iterator on
15922 distribute parallel for there is no data sharing clause
15923 on inner_for_stmt, look for private clause on combined
15924 parallel too and if found, move it to inner_for_stmt.
15926 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
15928 * lra-int.h (lra_operand_data): Remove early_clobber field.
15929 (lra_insn_reg): Likewise.
15930 * lra.c (debug_operand_data): Update accordingly.
15931 (setup_operand_alternative): Likewise.
15932 (new_insn_reg): Likewise. Remove early_clobber parameter.
15933 (collect_non_operand_hard_regs): Update call accordingly.
15934 Don't assign to lra_insn_reg::early_clobber.
15935 (add_regs_to_insn_regno_info): Remove early_clobber parameter
15936 and update calls to new_insn_reg.
15937 (lra_update_insn_regno_info): Update calls accordingly.
15938 * lra-constraints.c (update_and_check_small_class_inputs): Take the
15939 alternative number as a parameter and test whether the operand
15940 is earlyclobbered in that particular alternative.
15941 (process_alt_operands): Update call accordingly. Use per-alternative
15942 checks for earyclobber here too.
15943 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
15944 against zero for IRA_UNKNOWN_ALT.
15946 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
15948 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
15950 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
15952 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
15953 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
15955 2019-07-30 Martin Liska <mliska@suse.cz>
15958 * cgraph.c (cgraph_edge::make_direct): Use
15959 edge->indirect_unknown_callee as edge->resolve_speculation can
15960 deallocate edge which is this pointer.
15962 2019-07-30 Richard Biener <rguenther@suse.de>
15964 PR tree-optimization/91257
15965 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
15967 2019-07-30 Martin Liska <mliska@suse.cz>
15969 * doc/invoke.texi: Document new behavior.
15970 * lto-wrapper.c (cpuset_popcount): New function
15971 is a copy of libgomp/config/linux/proc.c.
15972 (init_num_threads): Likewise.
15973 (run_gcc): Automatically detect core count for -flto.
15974 (jobserver_active_p): New function.
15976 2019-07-30 Richard Biener <rguenther@suse.de>
15978 PR tree-optimization/91257
15979 * bitmap.h (bitmap_ior_into_and_free): Declare.
15980 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
15981 whether to add the unliked element to the freelist.
15982 (bitmap_list_insert_element_after): Add defaulted param for
15983 an already allocated element.
15984 (bitmap_ior_into_and_free): New function.
15985 * tree-ssa-structalias.c (condense_visit): Reduce the
15986 ponts-to and edge bitmaps of the SCC members in a
15987 logarithmic fashion rather than all to one.
15989 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
15991 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
15992 parameter. When nonnull, make sure that the addition or subtraction
15993 has the same condition.
15994 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
15995 for CFN_COND_MUL too.
15997 2019-07-30 Richard Biener <rguenther@suse.de>
15999 PR tree-optimization/91291
16000 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
16003 2019-07-30 Jakub Jelinek <jakub@redhat.com>
16005 PR middle-end/91216
16006 * omp-low.c (global_nonaddressable_vars): New variable.
16007 (use_pointer_for_field): For global decls, if they are non-addressable,
16008 remember it in the global_nonaddressable_vars bitmap, if they are
16009 addressable and in the global_nonaddressable_vars bitmap, ignore their
16010 TREE_ADDRESSABLE bit.
16011 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
16012 vars in global_nonaddressable_vars bitmap.
16013 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
16016 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
16017 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
16018 comparison to unsigned HOST_WIDE_INT before shifting it left.
16020 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
16022 * config/i386/i386.md (movstrict<mode>): Use register_operand
16023 predicate for operand 0. Add expander condition. Assert that
16024 operand 0 is a SUBREG RTX.
16025 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
16026 Update operand constraints and insn condition.
16027 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
16028 (zero_extendqihi2_and): Do not call gen_movstrictqi.
16029 (*setcc_qi_slp): Use register_operand predicate for operand 0.
16030 Update operand 0 constraints.
16031 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
16033 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16035 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
16036 when -m{code,data}-region are used without -mlarge.
16037 * config/msp430/msp430.c (msp430_option_override): Error when a
16038 non-default code or data region is used without -mlarge.
16039 (msp430_section_attr): Emit a warning and do not add upper/lower/either
16040 attributes when they are used without -mlarge.
16042 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16045 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
16047 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16049 PR middle-end/91242
16050 * wide-int.h (generic_wide_int::sext_elt): New function.
16051 * inchash.h (hash::add_wide_int): Use it instead of elt.
16053 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16055 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
16057 * config/arm/arm.md (<crc_variant>): Rename to...
16058 (arm_<crc_variant>): ... This.
16059 (<cdp>): Rename to...
16060 (arm_<cdp>): ... This.
16061 (<ldc>): Rename to...
16062 (arm_<ldc>): ... This.
16063 (<stc>): Rename to...
16064 (arm_<stc>): ... This.
16065 (<mcr>): Rename to...
16066 (arm_<mcr>): ... This.
16067 (<mrc>): Rename to...
16068 (arm_<mrc>): ... This.
16069 (<mcrr>): Rename to...
16070 (arm_<mcrr>): ... This.
16071 (<mrrc>): Rename to...
16072 (arm_<mrrc>): ... This.
16074 2019-07-29 Richard Biener <rguenther@suse.de>
16076 PR tree-optimization/91257
16077 * tree-ssa-sccvn.h (struct vn_avail): New.
16078 (struct vn_ssa_aux): Add avail member.
16079 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
16080 member, add m_avail_freelist one.
16081 (rpo_elim::~rpo_elim): Remove.
16082 (rpo_elim::eliminate_avail): Adjust to new avail tracking
16084 (rpo_elim::eliminate_push_avail): Likewise.
16085 (do_unwind): Likewise.
16086 (do_rpo_vn): Likewise.
16088 2019-07-29 Richard Biener <rguenther@suse.de>
16090 PR tree-optimization/91257
16091 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
16092 most cases, instead call compare_values which handles the
16093 symbolic ranges we handle specially.
16094 (compare_values_warnv): Do not call operand_less_p but open-code
16095 the effective fold calls. Avoid converting so much.
16097 2019-07-29 Martin Liska <mliska@suse.cz>
16099 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
16100 remove LHS of operator new call. It's handled latter.
16102 2019-07-29 Richard Biener <rguenther@suse.de>
16104 PR tree-optimization/91267
16105 * vr-values.c (vr_values::update_value_range): Add early return
16106 for effectively VARYING lattice entry.
16108 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16111 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
16112 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
16113 necessary if keep_all_vdefs_p is true.
16114 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
16115 that keep_all_vdefs_p is false.
16116 (mark_all_reaching_defs_necessary): Likewise.
16117 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
16119 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16121 * common.opt (Og): Change the initial value of flag_dse to 0.
16122 * opts.c (default_options_table): Move OPT_ftree_dse from
16123 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
16124 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
16125 entry before the OPT_ftree_sra entry.
16126 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
16127 of flags disabled by Og.
16129 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16131 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
16134 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16136 * doc/sourcebuild.texi (check-function-bodies): Document.
16138 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16140 * simplify-rtx.c (simplify_const_unary_operation): Fold a
16141 VEC_DUPLICATE of a fixed-length vector even if the result
16142 is variable-length. Likewise fold a duplicate of a
16143 variable-length vector if the variable-length vector is
16144 itself a duplicate of a fixed-length sequence.
16145 (test_vector_ops_duplicate): Test more cases.
16147 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
16149 * vector-builder.h (vector_builder): Add a shape template parameter.
16150 (vector_builder::new_unary_operation): New function, generalizing
16151 the old tree_vector_builder function.
16152 (vector_builder::new_binary_operation): Likewise.
16153 (vector_builder::binary_encoded_nelts): Likewise.
16154 * int-vector-builder.h (int_vector_builder): Update template
16155 parameters to vector_builder.
16156 (int_vector_builder::shape_nelts): New function.
16157 * rtx-vector-builder.h (rtx_vector_builder): Update template
16158 parameters to vector_builder.
16159 (rtx_vector_builder::shape_nelts): New function.
16160 (rtx_vector_builder::nelts_of): Likewise.
16161 (rtx_vector_builder::npatterns_of): Likewise.
16162 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
16163 * tree-vector-builder.h (tree_vector_builder): Update template
16164 parameters to vector_builder.
16165 (tree_vector_builder::shape_nelts): New function.
16166 (tree_vector_builder::nelts_of): Likewise.
16167 (tree_vector_builder::npatterns_of): Likewise.
16168 (tree_vector_builder::nelts_per_pattern_of): Likewise.
16169 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
16170 (tree_vector_builder::new_binary_operation): Delete.
16171 (tree_vector_builder::binary_encoded_nelts): Likewise.
16172 * simplify-rtx.c: Include rtx-vector-builder.h.
16173 (distributes_over_addition_p): New function.
16174 (simplify_const_unary_operation)
16175 (simplify_const_binary_operation): Generalize handling of vector
16176 constants to include variable-length vectors.
16177 (test_vector_ops_series): Add more tests.
16179 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
16182 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
16183 than INDENTIFIER_POINTER.
16185 2019-07-28 Martin Liska <mliska@suse.cz>
16188 * cgraph.c (symbol_table::create_edge): Always allocate
16190 (symbol_table::free_edge): Store summary_id to
16191 edge_released_summary_ids if != -1;
16192 * cgraph.h (NEXT_FREE_NODE): Remove.
16193 (SET_NEXT_FREE_NODE): Likewise.
16194 (NEXT_FREE_EDGE): Likewise.
16195 (symbol_table::release_symbol): Store summary_id to
16196 cgraph_released_summary_ids if != -1;
16197 (symbol_table::allocate_cgraph_symbol): Always allocate
16200 2019-07-28 Alan Modra <amodra@gmail.com>
16202 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
16205 2019-07-28 Alan Modra <amodra@gmail.com>
16208 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
16210 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
16211 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
16212 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
16214 2019-07-28 Alan Modra <amodra@gmail.com>
16217 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
16218 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
16219 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
16220 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
16221 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
16222 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
16223 in asm_default spec.
16224 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
16225 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
16227 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
16229 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
16231 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16234 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
16235 * config/aarch64/aarch64-option-extensions.def: Add new comments
16236 and restore easier to read options.
16238 2019-07-26 Tamar Christina <tamar.christina@arm.com>
16240 * convert.c (convert_to_real_1): Move part of conversion code...
16241 * match.pd: ...To here.
16243 2019-07-26 Martin Jambor <mjambor@suse.cz>
16246 * ipa-inline-transform.c (check_speculations_1): New function.
16247 (push_all_edges_in_set_to_vec): Likewise.
16248 (check_speculations): Use check_speculations_1, new parameter
16250 (inline_call): Pass new_edges to check_speculations.
16251 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
16253 (speculation_useful_p): Early return true if edge is inlined, remove
16254 later checks for inline_failed.
16256 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
16258 PR rtl-optimization/91223
16259 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
16260 matching with INOUT operand.
16262 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16264 * stmt.c (expand_case): Try to narrow the index type if it's larger
16265 than a word. Tidy up.
16267 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
16269 * cif-code.def (NEVER_CALL): New code.
16270 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
16271 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
16273 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
16275 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
16276 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
16278 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16280 * ipa-devirt.c (add_type_duplicate): Fix return value.
16282 2019-07-25 Richard Biener <rguenther@suse.de>
16284 * tree-vrp.c (extract_range_from_multiplicative_op): Add
16285 type parameter and use it instead of guessing expression
16286 type from the first operand.
16287 (extract_range_from_binary_expr): Pass expr_type down.
16289 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16291 * config/arm/arm.md (SATrev): Change to code attribute.
16292 (*satsi_<SAT:code>): Adjust for the above.
16293 (*satsi_<SAT:code>_shift): Likewise.
16295 2019-07-25 Richard Biener <rguenther@suse.de>
16297 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
16298 Make value_range * temporary const.
16299 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
16301 (evrp_range_analyzer::record_ranges_from_): Likewise.
16302 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
16303 deal with having recorded a const one.
16304 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
16305 Return a const value_range *.
16306 (evrp_range_analyzer::pop_value_range): Likewise.
16307 (evrp_range_analyzer::stack): Record const value_range *s.
16308 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
16310 * gimple-ssa-sprintf.c (get_int_range): Likewise.
16311 (format_integer): Likewise.
16312 (sprintf_dom_walker::handle_gimple_call): Likewise.
16313 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
16314 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
16315 (vrp_prop::get_value_range): Adjust.
16316 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
16317 modifying the lattice in-place.
16318 (vrp_prop::visit_stmt): Likewise.
16319 * vr-values.c (vr_values::get_lattice_entry): New private method.
16320 (vr_values::get_value_range): Wrap it and return a const
16322 (vr_values::set_def_to_varying): New.
16323 (vr_values::set_defs_to_varying): Use it.
16324 (vr_values::update_value_range): Likewise.
16325 (vr_values::vrp_stmt_computes_nonzero): Adjust.
16326 (values::op_with_constant_singleton_va): Likewise.
16327 (vr_values::extract_range_for_var_from_co): Likewise.
16328 (vr_values::extract_range_from_ssa_name): Likewise.
16329 (vr_values::extract_range_from_cond_expr): Likewise.
16330 (vr_values::extract_range_basic): Likewise.
16331 (compare_ranges): Take const value_range *, adjust.
16332 (compare_range_with_value): Likewise.
16333 (vrp_valueize): Adjust.
16334 (vrp_valueize_1): Likewise.
16335 (vr_values::get_vr_for_comparison): Return a const value_range *.
16336 (vr_values::compare_name_with_value): Adjust.
16337 (vr_values::compare_names): Likewise.
16338 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
16340 (vr_values::vrp_evaluate_conditional): Likewise.
16341 (find_case_label_ranges): Take a const value_range *.
16342 (vr_values::vrp_visit_switch_stmt): Adjust.
16343 (vr_values::extract_range_from_phi_node): Likewise.
16344 (vr_values::simplify_div_or_mod_using_ran): Likewise.
16345 (vr_values::simplify_abs_using_ranges): Likewise.
16346 (test_for_singularity): Take a const value_range *.
16347 (range_fits_type_p): Likewise.
16348 (vr_values::simplify_cond_using_ranges_1): Adjust.
16349 (vr_values::simplify_cond_using_ranges_2): Likewise.
16350 (vr_values::simplify_switch_using_ranges): Likewise.
16351 (vr_values::simplify_float_conversion_usi): Likewise.
16352 (vr_values::two_valued_val_range_p): Likewise.
16353 * vr-values.h (vr_values::get_value_range): Return a const
16355 (vr_values::set_def_to_varying): New.
16356 (vr_values::get_lattice_entry): New private method.
16357 (vr_values::get_vr_for_comparison): Return a const value_range *.
16359 2019-07-25 Martin Liska <mliska@suse.cz>
16360 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
16363 * common.opt: Add -fallocation-dce
16364 * gimple.c (gimple_call_operator_delete_p): New.
16365 * gimple.h (gimple_call_operator_delete_p): Likewise.
16366 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
16367 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
16368 DECL_IS_OPERATOR_DELETE_P.
16369 (mark_all_reaching_defs_necessary_1): Likewise.
16370 (propagate_necessity): Likewise.
16371 (eliminate_unnecessary_stmts): Handle
16372 gimple_call_operator_delete_p.
16373 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
16374 Add packing of OPERATOR_DELETE.
16375 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
16377 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
16378 (DECL_SET_IS_OPERATOR_DELETE): New.
16379 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
16381 2019-07-25 Martin Liska <mliska@suse.cz>
16383 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
16384 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
16385 * coverage.c (coverage_begin_function): Likewise.
16386 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
16387 * gimple.c (gimple_call_nonnull_result_p): Likewise.
16388 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
16389 (sem_item::hash_referenced_symbol_properties): Likewise.
16390 * lto-streamer-out.c (hash_tree): Likewise.
16391 * predict.c (expr_expected_value_1): Likewise.
16392 * tree-inline.c (expand_call_inline): Likewise.
16393 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
16394 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
16395 * tree-core.h (enum function_decl_type): New enum.
16396 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
16397 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
16398 (set_function_decl_type): Likewise.
16399 (DECL_IS_OPERATOR_NEW_P): New.
16400 (DECL_SET_IS_OPERATOR_NEW): Likewise.
16401 (DECL_LAMBDA_FUNCTION): Likewise.
16402 (DECL_LAMBDA_FUNCTION_P): Likewise.
16403 (DECL_IS_OPERATOR_NEW): Remove.
16404 (DECL_SET_LAMBDA_FUNCTION): Likewise.
16406 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
16408 * ipa-profile.c (get_most_common_single_value): Use
16409 get_nth_most_common_value.
16410 * profile.c (sort_hist_value): New function.
16411 (compute_value_histograms): Call sort_hist_value to sort the
16412 values after loading from disk.
16413 * value-prof.c (get_most_common_single_value): Rename to ...
16414 get_nth_most_common_value. Add input params n, return
16415 the n_th value and count.
16416 (gimple_divmod_fixed_value_transform): Use
16417 get_nth_most_common_value.
16418 (gimple_ic_transform): Likewise.
16419 (gimple_stringops_transform): Likewise.
16420 * value-prof.h (get_most_common_single_value): Add input params
16423 2019-07-25 Richard Biener <rguenther@suse.de>
16425 PR tree-optimization/91236
16426 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
16427 size of CONSTRUCTOR write. Fix buffer size we pass to
16428 native_encode_expr.
16430 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16432 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
16433 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
16436 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16438 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
16439 explicitly disabled with --disable-initfini-array.
16441 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16443 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
16446 2019-07-24 Martin Sebor <msebor@redhat.com>
16448 PR tree-optimization/91183
16449 PR tree-optimization/86688
16450 * builtins.c (compute_objsize): Handle MEM_REF.
16451 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
16452 (get_min_string_length): Remove.
16453 (count_nonzero_bytes): New function.
16454 (handle_char_store): Rename...
16455 (handle_store): to this. Handle multibyte stores via integer types.
16456 (strlen_check_and_optimize_stmt): Adjust conditional and the called
16459 2019-07-24 Martin Sebor <msebor@redhat.com>
16462 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
16463 (diagnostic_report_diagnostic): Same.
16464 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
16465 (diagnostic_context::lang_mask): New data member.
16466 * ipa-pure-const.c (suggest_attribute): Use
16467 lang_hooks.option_lang_mask ().
16468 * opts-common.c (option_enabled): Handle new argument.
16469 (get_option_state): Pass an additional argument.
16470 * opts.c (print_filtered_help): Print supported languages for
16471 unsupported options. Adjust printing of current state.
16472 * opts.h (option_enabled): Add argument.
16473 * toplev.c (print_switch_values): Use lang_mask.
16474 (general_init): Set global_dc->lang_mask.
16476 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16479 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
16481 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
16483 * cgraphunit.c (symbol_table::compile): Start and stop
16484 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
16485 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
16487 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
16489 * gimplify.c (flag_instrument_functions_exclude_p): Include
16490 namespace/class information in the printable name.
16491 * opts.c (add_comma_separated_to_vector): Add NUL terminator
16492 to tokens entered into the vector.
16494 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
16496 * tree-nested.c (build_simple_mem_ref_notrap): New function.
16497 (get_static_chain): Call it instead of build_simple_mem_ref.
16498 (get_frame_field): Likewise.
16499 (get_nonlocal_debug_decl): Likewise.
16500 (convert_nonlocal_reference_op): Likewise.
16502 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
16504 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
16506 (arc_compute_frame_size): Millicode is disabled when compiling
16508 (arc_return_address_register): Likewise.
16509 (arc_compute_function_type): Likewise.
16510 (arc_compute_frame_size): Likewise.
16511 (secondary_reload_info): Likewise.
16512 (arc_get_unalign): Likewise.
16513 (arc_can_use_return_insn): Declare.
16514 * config/arc/arc.c (AUX_LP_START): Define
16515 (AUX_LP_END): Likewise.
16516 (arc_frame_info): Update gmask member to 64-bit datum.
16517 (GMASK_LEN): Update.
16518 (arc_compute_function_type): Make it static, move it forward.
16519 (arc_must_save_register): Update, consider the extra regs.
16520 (arc_compute_millicode_save_restore_regs): Update to use the 64
16522 (arc_compute_frame_size): Likewise.
16523 (arc_enter_leave_p): Likewise.
16524 (arc_save_callee_saves): Likewise.
16525 (arc_restore_callee_saves): Likewise.
16526 (arc_save_callee_enter): Likewise.
16527 (arc_restore_callee_leave): Likewise.
16528 (arc_save_callee_milli): Likewise.
16529 (arc_restore_callee_milli): Likewise.
16530 (arc_expand_prologue): Add new interrupt handling.
16531 (arc_return_address_register): Make it static, move it forward.
16532 (arc_expand_epilogue): Add new interrupt handling.
16533 (arc_get_unalign): Delete.
16534 (arc_epilogue_uses): Make sure we do not remove the extra
16535 saved/restored registers when interrupt.
16536 (arc_can_use_return_insn): New function.
16537 (push_reg): Likewise.
16538 (pop_reg): Likewise.
16539 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
16541 (arc_restore_callee_saves): Likewise, but restoring.
16542 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
16543 (R33_REG): Likewise.
16544 (R34_REG): Likewise.
16545 (R35_REG): Likewise.
16546 (R36_REG): Likewise.
16547 (R37_REG): Likewise.
16548 (R38_REG): Likewise.
16549 (R39_REG): Likewise.
16550 (R45_REG): Likewise.
16551 (R46_REG): Likewise.
16552 (R47_REG): Likewise.
16553 (R48_REG): Likewise.
16554 (R49_REG): Likewise.
16555 (R50_REG): Likewise.
16556 (R51_REG): Likewise.
16557 (R52_REG): Likewise.
16558 (R53_REG): Likewise.
16559 (R54_REG): Likewise.
16560 (R55_REG): Likewise.
16561 (R56_REG): Likewise.
16562 (R58_REG): Likewise.
16563 (type): Add rtie attribute.
16564 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
16565 (movsi_insn): Accept moves to lp_count.
16566 (rtie): Update pattern.
16567 (simple_return): Simplify it, don't use this pattern as a return
16569 (arc600_rtie): New pattern.
16570 (p_return_i): Clean up.
16571 (return): Likewise.
16572 * config/arc/builtins.def (rtie): Only available for non ARC6xx
16574 * config/arc/predicates.md (move_src_operand): Consider lp_count
16577 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
16579 * config/s390/predicates.md (addv_const_operand): New predicate.
16580 * config/s390/s390-modes.def (CCO): New condition code mode.
16581 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
16582 (s390_branch_condition_mask): Likewise.
16583 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
16584 ("mulv<mode>4"): New expanders.
16585 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
16586 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
16587 pattern definitions.
16589 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16591 PR middle-end/91166
16592 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
16593 (define_predicates): Add entry for uniform_vector_p.
16594 (vec_same_elem_p): New match pattern.
16596 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
16599 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
16600 * config/i386/darwin32-biarch.h .. to here.
16601 * config/i386/darwin64-biarch.h: Adjust comments.
16602 * config/rs6000/darwin32-biarch.h: Likewise.
16603 * config/rs6000/darwin64-biarch.h: Likewise.
16604 * config.gcc: Missed commit from r273746
16605 (*-*-darwin*): Don't include CPU t-darwin here.
16606 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16607 an error message if i686-darwin configuration is attempted for
16610 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
16613 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
16614 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
16615 an error message if i686-darwin configuration is attempted for
16617 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
16618 (powerpc-*-darwin*): Use biarch files where needed.
16619 (powerpc64-*-darwin*): Likewise.
16620 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
16621 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16623 * config/i386/darwin32-biarch.h: New.
16624 * config/i386/darwin64.h: Rename.
16625 * config/i386/darwin64-biarch.h: To this.
16626 * config/i386/t-darwin: Rename.
16627 * config/i386/t-darwin32-biarch: To this.
16628 * config/i386/t-darwin64: Rename.
16629 * config/i386/t-darwin64-biarch: To this.
16630 * config/rs6000/darwin32-biarch.h: New.
16631 * config/rs6000/darwin64.h: Rename.
16632 * config/rs6000/darwin64-biarch.h: To this.
16633 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
16635 * config/rs6000/t-darwin8: Rename.
16636 * config/rs6000/t-darwin32-biarch: To this.
16637 * config/rs6000/t-darwin64 Rename.
16638 * config/rs6000/t-darwin64-biarch: To this.
16640 2019-07-23 Martin Sebor <msebor@redhat.com>
16642 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
16644 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16646 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
16647 (rh): New alias for it.
16649 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
16651 * gdbhooks.py: Pass replace=True to
16652 gdb.printing.register_pretty_printer.
16654 2019-07-23 Richard Biener <rguenther@suse.de>
16657 * lto-streamer-in.c (input_function): Drop inline-entry markers
16658 that ended up with an unknown location block.
16660 2019-07-23 Richard Biener <rguenther@suse.de>
16662 PR tree-optimization/83518
16663 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
16664 init from a constant even when partial defs are already recorded.
16666 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16668 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
16669 * config/i386/znver1.md: Enable patterns for znver2 and add store
16670 variants which use extra AGU unit.
16672 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16674 * config/i386/i386-options.c (ix86_option_override_internal): Default
16675 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
16676 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
16679 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
16681 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
16682 (znver2_costs): Update 256 bit SSE costs and multiplication.
16684 2019-07-23 Jan Beulich <jbeulich@suse.com>
16686 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
16687 Require only AVX512F.
16688 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
16689 alternative expanding to vpternlog.
16691 2019-07-23 Martin Liska <mliska@suse.cz>
16693 * dwarf2out.c (gen_producer_string): Canonize -flto=N
16694 to -flto in dwarf producer string.
16696 2019-07-23 Richard Biener <rguenther@suse.de>
16698 * tree-cfg.c (label_for_bb): Remove global var.
16699 (main_block_label): Take label_for_bb as argument.
16700 (cleanup_dead_labels_eh): Likewise, adjust.
16701 (cleanup_dead_labels): Adjust.
16703 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16705 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
16706 Configurations): Add documentation for __builtin_mtfsf.
16708 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
16710 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
16711 * config/riscv/riscv.c (riscv_constant_alignment): Use
16712 riscv_align_data_type.
16713 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
16714 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16715 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
16716 * config/riscv/riscv.opt (malign-data): New.
16717 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
16719 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
16721 * cgraph.c (dump_graphviz): New function.
16722 * cgraph.h (dump_graphviz): New function.
16723 * symtab.c (dump_graphviz): New function.
16725 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
16727 * config/aarch64/aarch64-simd.md
16728 (*aarch64_simd_sra<mode>): New.
16729 * config/aarch64/iterators.md
16730 (SHIFTRT): New iterator.
16731 (sra_op): New attribute.
16733 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
16735 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
16736 callee-saved regs R4->R10 in an interrupt function that calls another
16739 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
16741 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
16742 (_mm_blendv_epi8): New.
16744 2019-07-22 Richard Biener <rguenther@suse.de>
16746 PR tree-optimization/91221
16747 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
16748 restrict partial-def handling of empty constructors and
16749 memset to refs with known offset.
16751 2019-07-22 Jan Beulich <jbeulich@suse.com>
16753 * config/i386/sse.md (ternlogsuffix): New.
16754 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
16756 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
16758 2019-07-22 Martin Liska <mliska@suse.cz>
16760 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
16762 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
16764 2019-07-22 Martin Liska <mliska@suse.cz>
16766 * lto-section-in.c (lto_get_section_data):
16767 Use new function get_compression.
16768 * lto-streamer-out.c (produce_lto_section): Use
16769 set_compression to encode compression algorithm.
16770 * lto-streamer.h (struct lto_section): Do not
16771 use bitfields in the format.
16773 2019-07-22 Martin Liska <mliska@suse.cz>
16776 * opts-common.c (decode_cmdline_option): Decode
16777 argument of -Werror and check it for a wrong language.
16778 * opts-global.c (complain_wrong_lang): Remove such case.
16780 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
16782 * config/arc/arc.c (prepare_move_operands): Always use an
16783 intermediate register when storing a TLS symbols.
16785 2019-07-22 Stafford Horne <shorne@gmail.com>
16787 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
16790 2019-07-22 Stafford Horne <shorne@gmail.com>
16792 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
16793 and munordered-float validations.
16794 * config/or1k/constraints.md (d): New register constraint.
16795 * config/or1k/predicates.md (fp_comparison_operator): New.
16796 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
16798 (or1k_expand_compare): Normalize unordered comparisons.
16799 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
16800 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
16801 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
16802 * config/or1k/or1k.md (type): Add fpu.
16803 (fpu): New instruction reservation.
16804 (F, f, fr, fi, FI, FOP, fop): New.
16805 (<fop><F:mode>3): New ALU instruction definition.
16806 (float<fi><F:mode>2): New conversion instruction definition.
16807 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
16808 (fpcmpcc): New code iterator.
16809 (*sf_fp_insn): New instruction definition.
16810 (cstore<F:mode>4): New expand definition.
16811 (cbranch<F:mode>4): New expand definition.
16812 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
16813 munordered-float): New options.
16814 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
16817 2019-07-22 Stafford Horne <shorne@gmail.com>
16819 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
16820 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
16821 documenation to be more clear.
16822 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
16824 * config/or1k/or1k.opt (mrori): New option.
16825 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
16826 msfimm, mshftimm): Rewrite documentation to be more clear.
16827 * config/or1k/or1k.md (insn_support): Add ror and rori.
16828 (enabled): Add conditions for ror and rori.
16829 (rotrsi3): Replace condition for shftimm with ror and rori.
16831 2019-07-22 Stafford Horne <shorne@gmail.com>
16834 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
16835 (extend<mode>si2): Update predicate.
16836 * config/or1k/predicates.md (volatile_mem_operand): New.
16837 (reg_or_mem_operand): New.
16839 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
16841 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
16842 * config/rs6000/rs6000-call.c: ... to here.
16844 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16846 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
16849 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16851 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
16853 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16855 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
16857 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16859 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
16860 (any_memory_operand): New predicate.
16861 (reg_or_mem_operand): Use it.
16863 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16866 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
16868 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
16870 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
16871 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
16873 2019-07-20 Jakub Jelinek <jakub@redhat.com>
16875 * tree.def (OMP_LOOP): New tree code.
16876 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
16877 (enum omp_clause_bind_kind): New enum.
16878 (struct tree_omp_clause): Add subcode.bind_kind.
16879 * tree.h (OMP_LOOP_CHECK): Rename to ...
16880 (OMP_LOOPING_CHECK): ... this.
16881 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
16882 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
16883 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
16884 (OMP_CLAUSE_BIND_KIND): Define.
16885 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
16886 bind clause entries.
16887 (walk_tree_1): Handle OMP_CLAUSE_BIND.
16888 * tree-pretty-print.c (dump_omp_clause): Likewise.
16889 (dump_generic_node): Handle OMP_LOOP.
16890 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
16891 (in_omp_construct): New variable.
16892 (is_gimple_stmt): Handle OMP_LOOP.
16893 (gimplify_scan_omp_clauses): For lastprivate don't set
16894 check_non_private if code == OMP_LOOP. For reduction clause
16895 on OMP_LOOP combined with parallel or teams propagate as shared
16896 on the combined construct. Handle OMP_CLAUSE_BIND.
16897 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
16898 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
16899 for constructs from a loop construct to gimplify_scan_omp_clauses.
16900 Don't predetermine iterator linear on OMP_SIMD from loop construct.
16901 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
16902 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
16903 to match the implicit ORT_TARGET construct around whole body.
16904 Temporarily clear in_omp_construct when processing body.
16905 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
16906 etc. temporarily set in_omp_construct when processing body.
16907 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
16908 * omp-low.c (struct omp_context): Add loop_p.
16909 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
16910 in that the original var might be private.
16911 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
16912 (check_omp_nesting_restrictions): Adjust nesting restrictions for
16913 addition of loop construct.
16914 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
16916 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
16917 lastprivate non-addressable iterator of a collapse(1) simd.
16919 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
16921 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
16924 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
16926 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
16927 refer to default conditions. Warn for the 'y' spec which is ignored
16928 by current linkers.
16930 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
16932 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
16933 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16934 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16935 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16936 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16937 init_cumulative_args, rs6000_promote_function_mode,
16938 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16939 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16940 rs6000_function_arg_boundary, rs6000_parm_offset,
16941 rs6000_parm_start, rs6000_arg_size,
16942 rs6000_darwin64_record_arg_advance_flush,
16943 rs6000_darwin64_record_arg_advance_recurse,
16944 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16945 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16946 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16947 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16948 rs6000_finish_function_arg, rs6000_function_arg,
16949 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16950 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16951 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16952 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16953 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16954 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16955 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
16956 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
16957 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
16958 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
16959 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
16960 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
16961 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
16962 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
16963 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
16964 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
16965 get_element_number, altivec_expand_vec_set_builtin,
16966 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
16967 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
16968 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
16969 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
16970 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
16971 rs6000_expand_builtin, rs6000_vector_type,
16972 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
16973 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
16974 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
16976 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
16977 cpu_supports_info, builtin_hash_struct, builtin_hasher,
16978 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
16979 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
16980 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
16981 init_cumulative_args, rs6000_promote_function_mode,
16982 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
16983 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
16984 rs6000_function_arg_boundary, rs6000_parm_offset,
16985 rs6000_parm_start, rs6000_arg_size,
16986 rs6000_darwin64_record_arg_advance_flush,
16987 rs6000_darwin64_record_arg_advance_recurse,
16988 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
16989 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
16990 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
16991 rs6000_mixed_function_arg, rs6000_psave_function_arg,
16992 rs6000_finish_function_arg, rs6000_function_arg,
16993 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
16994 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
16995 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
16996 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
16997 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
16998 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
16999 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
17000 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
17001 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
17002 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
17003 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
17004 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
17005 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
17006 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
17007 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
17008 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
17009 get_element_number, altivec_expand_vec_set_builtin,
17010 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
17011 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
17012 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
17013 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
17014 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
17015 rs6000_expand_builtin, rs6000_vector_type,
17016 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
17017 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
17018 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
17019 to here from rs6000.c.
17020 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
17021 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
17022 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
17023 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
17024 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
17025 rs6000_return_in_memory, rs6000_return_in_msb,
17026 rs6000_pass_by_reference, setup_incoming_varargs,
17027 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
17028 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
17029 rs6000_function_arg_padding, rs6000_function_arg,
17030 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
17031 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
17032 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
17033 rs6000_passes_long_double, rs6000_passes_vector,
17034 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
17035 altivec_builtin_mask_for_load) Add declarations.
17036 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
17037 * config/config.gcc: Add new source file rs6000-call.c to garbage
17038 collector and extra_objs.
17040 2019-07-19 Jeff Law <law@redhat.com>
17042 PR tree-optimization/86061
17043 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
17044 strncpy. Drop some trivial dead code.
17045 (maybe_trim_memstar_call): Handle strncpy.
17047 2019-07-19 Richard Biener <rguenther@suse.de>
17049 PR tree-optimization/91211
17050 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
17051 memset encoding size.
17053 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
17056 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
17058 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
17061 * ipa-inline.c (recursive_inlining): Fix limits check.
17063 2019-07-19 Richard Biener <rguenther@suse.de>
17065 PR tree-optimization/91200
17066 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
17067 no PHI nodes in middle-bb.
17069 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
17071 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
17073 * config/aarch64/aarch64-option-extensions.def: Likewise.
17075 2019-07-19 Jakub Jelinek <jakub@redhat.com>
17077 PR middle-end/91190
17078 * function.c (insert_temp_slot_address): Store into the hash table
17079 a copy of address to avoid RTL sharing issues.
17081 2019-07-19 Richard Biener <rguenther@suse.de>
17083 PR tree-optimization/91207
17085 2019-07-17 Richard Biener <rguenther@suse.de>
17087 PR tree-optimization/91178
17088 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17089 loads with a gap larger than the vector size always use
17091 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17092 avoid loading vectors that are only contained in the gap
17093 and thus are not needed.
17095 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17097 * config/i386/i386.md (*addqi_2_slp): Remove.
17098 (*<code>qi_2_slp): Ditto.
17100 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
17102 * config/rs6000/predicates.md (prefixed_mem_operand): Call
17103 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
17104 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
17105 Rename function from rs6000_prefixed_address.
17106 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17108 (TARGET_TOC): Likewise.
17109 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17111 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17113 (TARGET_TOC): Likewise.
17114 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17116 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17118 (TARGET_TOC): Likewise.
17119 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
17120 check to require -mcmodel=medium for pc-relative addressing.
17121 (create_TOC_reference): Add assertion for TARGET_TOC.
17122 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
17124 (rs6000_emit_move): Likewise.
17125 (TOC_alias_set): Rename TOC alias set static variable from 'set'
17126 to 'TOC_alias_set'.
17127 (get_TOC_alias_set): Likewise.
17128 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
17130 (rs6000_can_eliminate): Likewise.
17131 (rs6000_prefixed_address_mode_p): Rename function from
17132 rs6000_prefixed_address.
17133 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
17134 TARGET_HAS_TOC and not pc-relative.
17135 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
17136 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
17138 (TARGET_TOC): Likewise.
17139 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
17142 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
17145 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
17146 for operand 0. Do not use (match_dup) to match operand 1 with
17147 operand 0. Add check in insn constraint that either input operand
17148 matches operand 0. Use SWI12 mode iterator to also handle
17150 (*and<mode>_1_slp): Ditto.
17151 (*<code>qi_1_slp): Ditto.
17152 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
17153 Do not use (match_dup) to match operand 1 with operand 0. Add
17154 check in insn constraint that operand 1 matches operand 0.
17155 Use SWI12 mode iterator to also handle HImode operands.
17156 (*ashl<mode>3_1_slp): Ditto.
17157 (*<shift_insn><mode>3_1_slp): Ditto.
17158 (*<rotate_insn><mode>3_1_slp): Ditto.
17160 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17162 * config/arm/arm-builtins.c
17163 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
17164 (arm_expand_unop_builtin): Likewise.
17165 * config/arm/crypto.md
17166 (crypto_sha1h): Convert from define_insn to define_expand.
17167 (crypto_<crypto_pattern>): Likewise.
17168 (crypto_sha1h_lb): New define_insn.
17169 (crypto_<crypto_pattern>_lb): Likewise.
17171 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
17174 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
17175 (vsha1cq_u32): Likewise.
17176 (vsha1pq_u32): Likewise.
17177 (vsha1mq_u32): Likewise.
17178 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
17180 (crypto_sha1c): Correct vec select.
17181 (crypto_sha1m): Likewise.
17182 (crypto_sha1p): Likewise.
17184 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
17186 * config/arm/predicates.md (arm_borrow_operation): New predicate.
17187 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
17188 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
17189 (subdi_zesidi_zesidi): Likewise.
17190 (negdi2_compare, negdi2_insn): Likewise.
17191 (negdi_extensidi): Likewise.
17192 (negdi_zero_extendsidi): Likewise.
17193 (arm_cmpdi_insn): Likewise.
17194 (subsi3_carryin): Use arm_borrow_operation.
17195 (subsi3_carryin_const): Likewise.
17196 (subsi3_carryin_const0): Likewise.
17197 (subsi3_carryin_compare): Likewise.
17198 (subsi3_carryin_compare_const): Likewise.
17199 (subsi3_carryin_compare_const0): Likewise.
17200 (subsi3_carryin_shift): Likewise.
17201 (rsbsi3_carryin_shift): Likewise.
17202 (negsi2_carryin_compare): Likewise.
17204 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
17206 PR tree-optimization/91137
17207 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
17208 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
17209 Init, use and fini the above new field.
17210 (determine_base_object_1): New function.
17211 (determine_base_object): Reimplement using walk_tree.
17213 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
17215 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
17216 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
17217 CLEANUP_FORCE_FAST_DCE is set.
17218 * ifcvt.c (rest_of_handle_if_conversion): Pass
17219 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
17220 if-conversion succeeded.
17222 2019-07-18 Richard Biener <rguenther@suse.de>
17224 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
17225 branches to make code less indented.
17227 2019-07-17 Alexandre Oliva <oliva@adacore.com>
17229 PR middle-end/81824
17230 * attribs.c (decls_mismatched_attributes): Simplify the logic
17231 that avoids duplicates and false positives.
17233 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
17235 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
17236 data into data section when generating PIC code.
17237 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
17238 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
17239 generating code for SOM targets earlier than HP-UX 11. Otherwise,
17240 return 2 for SOM and 0 for other targets.
17242 2019-07-17 Jeff Law <law@redhat.com>
17244 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
17245 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
17246 avoid unexpected switch statement fallthru.
17248 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17250 * config/i386/i386.md (*add<dwi>3_doubleword):
17251 Remove redundant constraints.
17252 (*add<mode>_1): Ditto.
17255 (*addqi_1_slp): Ditto.
17256 (*add<mode>_2): Ditto.
17257 (*addv<mode>4): Ditto.
17258 (*sub<dwi>3_doubleword): Ditto.
17259 (*sub<mode>_1): Ditto.
17260 (*subqi_1_slp): Ditto.
17261 (*sub<mode>_2): Ditto.
17262 (*subv<mode>4): Ditto.
17263 (*sub<mode>_3): Ditto.
17264 (@add<mode>3_carry): Ditto.
17265 (@sub<mode>3_carry): Ditto.
17266 (*add<mode>3_cc_overflow_1): Ditto.
17267 (*add<mode>3_zext_cc_overflow_2): Ditto.
17269 (*and<mode>_1): Ditto.
17271 (*andqi_1_slp): Ditto.
17273 (*andqi_2_maybe_si): Ditto.
17274 (*and<mode>_2): Ditto.
17275 (*andqi_2_slp): Ditto.
17276 (*<code><mode>_1): Ditto.
17277 (*<code>qi_1): Ditto.
17278 (*<code>qi_1_slp): Ditto.
17279 (*<code><mode>_2): Ditto.
17280 (*<code>qi_2_slp): Ditto.
17282 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
17284 * alias.c (record_component_aliases): Do not simplify pointed-to
17285 types of ODR types.
17287 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
17289 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
17290 partial reg stall on alternative 2.
17292 2019-07-17 Richard Biener <rguenther@suse.de>
17294 PR tree-optimization/91178
17295 * tree-ssa.c (release_defs_bitset): Iterate from higher to
17296 lower SSA names to avoid quadratic behavior in the common case.
17297 * tree-data-ref.c (split_constant_offset): Add limit argument
17298 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17299 (split_constant_offset_1): Add limit argument and use it to
17300 limit SSA def walking. Optimize the common plus/minus case.
17302 2019-07-17 Richard Biener <rguenther@suse.de>
17304 PR tree-optimization/91178
17305 * tree-vect-stmts.c (get_group_load_store_type): For SLP
17306 loads with a gap larger than the vector size always use
17308 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
17309 avoid loading vectors that are only contained in the gap
17310 and thus are not needed.
17312 2019-07-17 Richard Biener <rguenther@suse.de>
17314 PR tree-optimization/91180
17315 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
17316 computation for memset partial defs.
17318 2019-07-17 Jakub Jelinek <jakub@redhat.com>
17320 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
17321 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
17322 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
17323 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
17324 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
17325 * omp-grid.c (grid_process_grid_body,
17326 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
17327 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
17328 == GF_OMP_FOR_KIND_SIMD.
17329 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
17330 check_omp_nesting_restrictions, scan_omp_1_stmt,
17331 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
17332 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
17333 omp_find_scan): Likewise.
17334 * omp-expand.c (expand_omp_for): Likewise.
17335 * omp-general.c (omp_extract_for_data): Likewise.
17337 PR tree-optimization/91157
17338 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
17339 a vector boolean with scalar mode.
17340 (expand_vector_condition): Handle first operand being a vector boolean
17342 (expand_vector_operations_1): For comparisons, don't bail out early
17343 if the return type is vector boolean with scalar mode, but comparison
17344 operand type is not.
17346 2019-07-17 Richard Biener <rguenther@suse.de>
17348 PR tree-optimization/91181
17349 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
17350 IFN_LOADs as calls.
17352 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
17354 * config/i386/i386.md (*testdi_1): Match CCZmode for
17355 constants that might have the SImode sign bit set.
17356 (*testqi_1_maybe_si): Remove "!" constraint modifier.
17357 Use correct constraints for pentium pairing.
17358 (*test<mode>_1): Ditto.
17360 2019-07-16 Jeff Law <law@redhat.com>
17362 PR rtl-optimization/91173
17363 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
17364 SSA_NAME with a constant value, fold its value into the offset
17365 and clear the base before calling gen_addr_rtx.
17367 2019-07-16 Jakub Jelinek <jakub@redhat.com>
17369 PR rtl-optimization/91164
17370 * dse.c (rest_of_handle_dse): If dead edges have been purged,
17371 invalidate dominance info.
17373 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17375 * read-md.h (md_reader::record_potential_iterator_use): Add a
17376 file_location parameter.
17377 * read-rtl.c (attribute_use::loc): New field.
17378 (map_attr_string): Take a file_location parameter. Report cases
17379 in which attributes map to multiple distinct values.
17380 (apply_attribute_uses): Update call accordingly.
17381 (md_reader::handle_overloaded_name): Likewise.
17382 (md_reader::apply_iterator_to_string): Likewise. Skip empty
17384 (record_attribute_use): Take a file_location parameter.
17385 Initialize attribute_use::loc.
17386 (md_reader::record_potential_iterator_use): Take a file_location
17387 parameter. Update call to record_attribute_use.
17388 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
17389 (rtx_reader::read_rtx_code): Likewise.
17390 (rtx_reader::read_rtx_operand): Likewise. Record a location
17391 for implicitly-expanded empty strings.
17393 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17395 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
17396 Use file_location instead of separate fields.
17397 (md_reader::set_md_ptr_loc): Take a file_location instead of a
17398 separate filename and line number.
17399 * read-md.c (ptr_loc): As above.
17400 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
17401 (md_reader::fprint_md_ptr_loc): Likewise.
17402 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
17403 instead of a separate filename and line number.
17404 (md_reader::read_string): Update call accordingly.
17406 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17408 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
17409 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
17410 leaving the choice between SFDF and P implicit.
17411 (*mov<mode>_update2): Likewise.
17412 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
17413 rather than leaving the choice betweem IBM128 and GPR implicit.
17414 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
17415 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
17417 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
17418 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
17419 * config/rs6000/vsx.md
17420 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
17421 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
17422 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
17423 and VSX_EXTRACT_I implicit.
17425 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
17427 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
17428 Explicitly use <MOVEP1:MODE> for the mode attribute.
17430 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
17433 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
17435 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
17438 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
17439 .machine directive.
17441 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
17443 * config/i386/i386.md (@test<mode>_ccno_1):
17444 Rename from test<mode>_ccno_1.
17445 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
17446 (*testqi_1_maybe_si): Remove modrm attribute.
17447 (*test<mode>_1): Ditto.
17448 * config/i386/i386-expand.c (ix86_split_idivmod): Use
17449 gen_test_ccno_1 and gen_extend_insn.
17451 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
17453 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
17456 2019-07-15 Richard Biener <rguenther@suse.de>
17458 PR middle-end/91162
17459 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
17460 node make sure to replace all uses with something valid.
17462 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
17464 PR tree-optimization/88497
17465 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
17466 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
17467 function undistribute_bitref_for_vector.
17468 (undistribute_bitref_for_vector): New function.
17469 (cleanup_vinfo_map): Likewise.
17470 (sort_by_mach_mode): Likewise.
17472 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
17474 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
17475 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
17476 and testdi_ccno_1 using SWI48 mode attribute.
17477 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
17478 x86_64_szext_general_operand.
17479 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
17480 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
17481 instead of genera_operand mode attribute.
17483 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
17485 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
17486 fopen and fclose to their respective types.
17487 (DotFn.invoke): Ditto.
17489 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
17491 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
17492 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
17493 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
17494 (array_index_predicate): Remove.
17495 (analyze_function_body): Account cost for variable ofsetted array
17497 (estimate_node_size_and_time): Do not compute array index hint.
17498 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
17499 (inline_read_section): Do not read array index hint.
17500 (ipa_fn_summary_write): Do not write array index hint.
17501 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
17502 * ipa-cp.c (hint_time_bonus): Remove.
17503 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
17504 (ipa_fnsummary): Remove array_index.
17505 * ipa-inline.c (want_inline_small_function_p): Do not use
17507 (edge_badness): Likewise.
17508 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
17510 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
17513 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
17514 superfluous "builtin function" phrasing.
17516 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
17518 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
17520 (aliasing_component_refs_walk): Break out from ...
17521 (aliasing_component_refs_p): ... here.
17523 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
17526 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
17527 "builtin function" phrasing.
17529 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17532 * recog.h (temporary_volatile_ok): New class.
17533 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
17534 volatile_ok temporarily to true using temporary_volatile_ok.
17535 * expr.c (emit_block_move_via_cpymem): Likewise.
17536 * optabs.c (maybe_legitimize_operand): Likewise.
17538 2019-07-13 Jakub Jelinek <jakub@redhat.com>
17540 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
17541 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
17542 uses inside of order(concurrent) constructs.
17543 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
17544 OMP_CLAUSE_ORDER is seen.
17545 * omp-low.c (struct omp_context): Add order_concurrent member.
17546 (scan_sharing_clauses): Set ctx->order_concurrent if
17547 OMP_CLAUSE_ORDER is seen.
17548 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
17549 of simd order(concurrent). Diagnose constructs not allowed inside of
17550 for order(concurrent).
17551 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
17552 complaining about static double setjmp (double); or class static
17553 methods or non-global namespace setjmps.
17554 (omp_runtime_api_call): New function.
17555 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
17556 order(concurrent) loops.
17558 2019-07-12 Martin Sebor <msebor@redhat.com>
17560 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
17561 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
17562 * tree-vrp.c (vrp_prop::check_mem_ref): Use
17563 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
17565 2019-07-12 Jan Hubicka <jh@suse.cz>
17567 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
17568 (indirect_refs_may_alias_p): ... here.
17569 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
17570 mem refs in the access paths.
17572 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
17574 PR tree-optimization/89430
17575 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
17576 store elimination for local variable without address escape.
17578 2019-07-12 Jeff Law <law@redhat.com>
17580 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
17581 for the ".far" section.
17583 2019-07-12 Richard Biener <rguenther@suse.de>
17585 PR tree-optimization/91145
17586 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
17589 2019-07-12 Alexandre Oliva <oliva@adacore.com>
17591 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
17592 rather than this_state as the lowering context for the ELSE
17593 seq in a GIMPLE_EH_ELSE.
17595 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17597 * vector-builder.h (vector_builder::elt): Allow already-supplied
17598 elements to be read back before building is complete.
17600 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17602 PR rtl-optimization/91136
17603 * df-core.c (ACCESSING REFS): Fix typos in comment.
17604 * resource.c (mark_target_live_reg): Add artificial defs that occur at
17605 the beginning of the block to the initial set of live registers.
17607 2019-07-12 Richard Biener <rguenther@suse.de>
17609 * fold-const.h (get_array_ctor_element_at_index): Adjust.
17610 * fold-const.c (get_array_ctor_element_at_index): Add
17611 ctor_idx output parameter informing the caller where in
17612 the constructor the element was (not) found. Add early exit
17613 for when the ctor is sorted.
17614 * gimple-fold.c (fold_array_ctor_reference): Support constant
17615 folding across multiple array elements.
17617 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
17619 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
17620 doesn't have location, set the current location to the function's end.
17622 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17624 * config/aarch64/aarch64.md (*compare_condjump<mode>)
17625 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
17626 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
17627 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
17628 * config/aarch64/aarch64-simd.md
17629 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
17630 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
17631 * config/aarch64/aarch64-sve.md
17632 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
17633 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
17635 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
17637 * doc/md.texi: Document that @ patterns can have different
17638 numbers of operands.
17639 * genemit.c (handle_overloaded_gen): Handle this case.
17640 * genopinit.c (handle_overloaded_gen): Likewise.
17641 * gensupport.c (replace_operands_with_dups): Iterate over
17642 the new rtx's format rather than the old one's.
17644 2019-07-12 Jakub Jelinek <jakub@redhat.com>
17646 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
17647 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17648 order clause entries.
17649 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
17650 * tree-pretty-print.c (dump_omp_clause): Likewise.
17651 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
17653 * omp-low.c (scan_sharing_clauses): Likewise.
17654 * tree-nested.c (convert_nonlocal_omp_clauses,
17655 convert_local_omp_clauses): Likewise.
17657 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
17659 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
17660 fallthrough target of current basic block isn't the placed
17663 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
17666 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
17667 (_mm512_storeu_epi64): Likewise.
17668 (_mm512_loadu_epi32): Likewise.
17669 (_mm512_storeu_epi32): Likewise.
17670 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
17671 (_mm_storeu_epi64): Likewise.
17672 (_mm256_storeu_epi32): Likewise.
17673 (_mm_storeu_epi32): Likewise.
17675 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17677 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
17679 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
17681 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
17684 2019-07-11 Jakub Jelinek <jakub@redhat.com>
17687 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
17688 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17689 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
17690 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
17691 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
17692 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
17694 (ufix_truncv2dfv2si2<mask_name>): Change into ...
17695 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
17696 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
17698 (sse2_cvttpd2dq<mask_name>): Change into ...
17699 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
17700 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
17701 (*sse2_cvtpd2dq<mask_name>): Change into ...
17702 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
17703 Add "C" constraint to const0_operand.
17704 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
17705 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
17709 * config/i386/i386-builtin-types.def
17710 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
17711 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
17712 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
17713 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
17714 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
17715 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
17716 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
17717 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
17718 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
17719 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
17720 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
17721 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
17722 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
17723 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
17724 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
17725 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
17726 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
17727 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
17728 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
17729 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
17730 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
17731 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
17732 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
17733 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
17734 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
17735 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
17736 __builtin_ia32_vpdpbusd_v4si_maskz,
17737 __builtin_ia32_vpdpbusds_v16si_mask,
17738 __builtin_ia32_vpdpbusds_v16si_maskz,
17739 __builtin_ia32_vpdpbusds_v8si_mask,
17740 __builtin_ia32_vpdpbusds_v8si_maskz,
17741 __builtin_ia32_vpdpbusds_v4si_mask,
17742 __builtin_ia32_vpdpbusds_v4si_maskz,
17743 __builtin_ia32_vpdpwssd_v16si_mask,
17744 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
17745 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
17746 __builtin_ia32_vpdpwssd_v4si_maskz,
17747 __builtin_ia32_vpdpwssds_v16si_mask,
17748 __builtin_ia32_vpdpwssds_v16si_maskz,
17749 __builtin_ia32_vpdpwssds_v8si_mask,
17750 __builtin_ia32_vpdpwssds_v8si_maskz,
17751 __builtin_ia32_vpdpwssds_v4si_mask,
17752 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
17753 suffixed types rather than *_INT.
17754 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
17755 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
17756 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
17757 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
17758 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
17759 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
17761 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
17763 * tree-vrp.c (intersect_ranges): If we know the intersection is
17764 empty, there is no need to conservatively add anything else to
17767 2019-07-11 Richard Biener <rguenther@suse.de>
17769 PR middle-end/91131
17770 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
17771 when the object is volatile and we have not cleared it even though
17772 there are no nonzero elements.
17774 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
17776 * config/rs6000/predicates.md (cint34_operand): Update
17777 SIGNED_34BIT_OFFSET_P call.
17778 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
17779 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
17780 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
17781 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
17782 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
17784 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
17785 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
17786 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
17787 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
17788 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
17790 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
17792 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
17793 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
17794 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
17795 (DEF_MIN_OSX_VERSION): New.
17797 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17799 * fold-const.c (fold_relational_const): Fix folding of
17800 vector-to-scalar NE_EXPRs.
17801 (test_vector_folding): Add more tests.
17803 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
17806 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
17807 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
17808 (vec_setv2di_internal): Reexpress as...
17809 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
17810 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
17811 rather than gen_neon_vset_lane<mode>.
17813 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
17816 * lra-constraints.c (process_alt_operands): Don't match user
17817 defined regs only if they are early clobbers.
17819 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
17821 * wide-int.h (wi::lshift): Reject negative values for the fast path.
17823 2019-07-10 Richard Biener <rguenther@suse.de>
17825 PR tree-optimization/91126
17826 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
17827 native encoding offset for BYTES_BIG_ENDIAN.
17828 (vn_reference_lookup_3): Likewise.
17830 2019-07-10 Richard Biener <rguenther@suse.de>
17832 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
17833 LHS whenever possible.
17835 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
17837 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
17838 from ...; work also on duplicated types.
17839 (nonoverlapping_component_refs_since_match): ... here
17840 (ncr_type_uid): Break out from ...
17841 (ncr_compar): ... here; look for TYPE_UID of canonical type if
17843 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
17844 the types and nonoverlapping_component_refs_p_1 to disambiguate.
17846 2019-07-09 Martin Sebor <msebor@redhat.com>
17848 PR tree-optimization/90989
17849 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
17850 optimization to just single character stores.
17852 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
17854 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
17855 Swap operands only once.
17857 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
17859 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
17860 for both call instructions.
17862 2019-07-09 John Darrington <john@darrington.wattle.id.au>
17864 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
17865 rather than GET_MODE_BITSIZE to better handle partial integer modes.
17867 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
17869 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
17870 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
17871 function from rs6000-logue.c back to rs6000.c.
17872 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
17874 2019-07-09 Martin Sebor <msebor@redhat.com>
17877 * auto-profile.c: Change class-key of PODs to struct and others
17879 * basic-block.h: Same.
17880 * bitmap.c (bitmap_alloc): Same.
17882 * builtins.c (expand_builtin_prefetch): Same.
17883 (expand_builtin_interclass_mathfn): Same.
17884 (expand_builtin_strlen): Same.
17885 (expand_builtin_mempcpy_args): Same.
17886 (expand_cmpstr): Same.
17887 (expand_builtin___clear_cache): Same.
17888 (expand_ifn_atomic_bit_test_and): Same.
17889 (expand_builtin_thread_pointer): Same.
17890 (expand_builtin_set_thread_pointer): Same.
17891 * caller-save.c (setup_save_areas): Same.
17892 (replace_reg_with_saved_mem): Same.
17893 (insert_restore): Same.
17894 (insert_save): Same.
17895 (add_used_regs): Same.
17896 * cfg.c (get_bb_copy): Same.
17897 (set_loop_copy): Same.
17900 * cfgexpand.c (alloc_stack_frame_space): Same.
17901 (add_stack_var): Same.
17902 (add_stack_var_conflict): Same.
17903 (add_scope_conflicts_1): Same.
17904 (update_alias_info_with_stack_vars): Same.
17905 (expand_used_vars): Same.
17906 * cfghooks.c (redirect_edge_and_branch_force): Same.
17907 (delete_basic_block): Same.
17908 (split_edge): Same.
17909 (make_forwarder_block): Same.
17910 (force_nonfallthru): Same.
17911 (duplicate_block): Same.
17912 (lv_flush_pending_stmts): Same.
17913 * cfghooks.h: Same.
17914 * cfgloop.c (flow_loops_cfg_dump): Same.
17915 (flow_loop_nested_p): Same.
17916 (superloop_at_depth): Same.
17917 (get_loop_latch_edges): Same.
17918 (flow_loop_dump): Same.
17919 (flow_loops_dump): Same.
17920 (flow_loops_free): Same.
17921 (flow_loop_nodes_find): Same.
17922 (establish_preds): Same.
17923 (flow_loop_tree_node_add): Same.
17924 (flow_loop_tree_node_remove): Same.
17925 (flow_loops_find): Same.
17926 (find_subloop_latch_edge_by_profile): Same.
17927 (find_subloop_latch_edge_by_ivs): Same.
17928 (mfb_redirect_edges_in_set): Same.
17929 (form_subloop): Same.
17930 (merge_latch_edges): Same.
17931 (disambiguate_multiple_latches): Same.
17932 (disambiguate_loops_with_multiple_latches): Same.
17933 (flow_bb_inside_loop_p): Same.
17934 (glb_enum_p): Same.
17935 (get_loop_body_with_size): Same.
17936 (get_loop_body): Same.
17937 (fill_sons_in_loop): Same.
17938 (get_loop_body_in_dom_order): Same.
17939 (get_loop_body_in_custom_order): Same.
17940 (release_recorded_exits): Same.
17941 (get_loop_exit_edges): Same.
17942 (num_loop_branches): Same.
17943 (remove_bb_from_loops): Same.
17944 (find_common_loop): Same.
17945 (delete_loop): Same.
17946 (cancel_loop): Same.
17947 (verify_loop_structure): Same.
17948 (loop_preheader_edge): Same.
17949 (loop_exit_edge_p): Same.
17950 (single_exit): Same.
17951 (loop_exits_to_bb_p): Same.
17952 (loop_exits_from_bb_p): Same.
17953 (get_loop_location): Same.
17954 (record_niter_bound): Same.
17955 (get_estimated_loop_iterations_int): Same.
17956 (max_stmt_executions_int): Same.
17957 (likely_max_stmt_executions_int): Same.
17958 (get_estimated_loop_iterations): Same.
17959 (get_max_loop_iterations): Same.
17960 (get_max_loop_iterations_int): Same.
17961 (get_likely_max_loop_iterations): Same.
17962 * cfgloop.h (simple_loop_desc): Same.
17964 (loop_depth): Same.
17965 (loop_outer): Same.
17966 (loop_iterator::next): Same.
17967 (loop_outermost): Same.
17968 * cfgloopanal.c (mark_irreducible_loops): Same.
17969 (num_loop_insns): Same.
17970 (average_num_loop_insns): Same.
17971 (expected_loop_iterations_unbounded): Same.
17972 (expected_loop_iterations): Same.
17973 (mark_loop_exit_edges): Same.
17974 (single_likely_exit): Same.
17975 * cfgloopmanip.c (fix_bb_placement): Same.
17976 (fix_bb_placements): Same.
17977 (remove_path): Same.
17978 (place_new_loop): Same.
17980 (scale_loop_frequencies): Same.
17981 (scale_loop_profile): Same.
17982 (create_empty_if_region_on_edge): Same.
17983 (create_empty_loop_on_edge): Same.
17986 (fix_loop_placements): Same.
17987 (copy_loop_info): Same.
17988 (duplicate_loop): Same.
17989 (duplicate_subloops): Same.
17990 (loop_redirect_edge): Same.
17991 (can_duplicate_loop_p): Same.
17992 (duplicate_loop_to_header_edge): Same.
17993 (mfb_keep_just): Same.
17994 (has_preds_from_loop): Same.
17995 (create_preheader): Same.
17996 (create_preheaders): Same.
17997 (lv_adjust_loop_entry_edge): Same.
17998 (loop_version): Same.
17999 * cfgloopmanip.h: Same.
18001 * cgraphbuild.c: Same.
18002 * combine.c (make_extraction): Same.
18003 * config/i386/i386-features.c: Same.
18004 * config/i386/i386-features.h: Same.
18005 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
18006 (ix86_emit_outlined_ms2sysv_restore): Same.
18007 (ix86_noce_conversion_profitable_p): Same.
18008 (ix86_init_cost): Same.
18009 (ix86_simd_clone_usable): Same.
18010 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
18012 * coretypes.h: Same.
18013 * data-streamer-in.c (string_for_index): Change class-key of PODs
18014 to struct and others to class.
18015 (streamer_read_indexed_string): Same.
18016 (streamer_read_string): Same.
18017 (bp_unpack_indexed_string): Same.
18018 (bp_unpack_string): Same.
18019 (streamer_read_uhwi): Same.
18020 (streamer_read_hwi): Same.
18021 (streamer_read_gcov_count): Same.
18022 (streamer_read_wide_int): Same.
18023 * data-streamer.h (streamer_write_bitpack): Same.
18024 (bp_unpack_value): Same.
18025 (streamer_write_char_stream): Same.
18026 (streamer_write_hwi_in_range): Same.
18027 (streamer_write_record_start): Same.
18028 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
18029 (add_cross_iteration_register_deps): Same.
18030 (build_intra_loop_deps): Same.
18031 * df-core.c (df_analyze): Same.
18032 (loop_post_order_compute): Same.
18033 (loop_inverted_post_order_compute): Same.
18034 * df-problems.c (df_rd_alloc): Same.
18035 (df_rd_simulate_one_insn): Same.
18036 (df_rd_local_compute): Same.
18037 (df_rd_init_solution): Same.
18038 (df_rd_confluence_n): Same.
18039 (df_rd_transfer_function): Same.
18040 (df_rd_free): Same.
18041 (df_rd_dump_defs_set): Same.
18042 (df_rd_top_dump): Same.
18043 (df_lr_alloc): Same.
18044 (df_lr_reset): Same.
18045 (df_lr_local_compute): Same.
18046 (df_lr_init): Same.
18047 (df_lr_confluence_n): Same.
18048 (df_lr_free): Same.
18049 (df_lr_top_dump): Same.
18050 (df_lr_verify_transfer_functions): Same.
18051 (df_live_alloc): Same.
18052 (df_live_reset): Same.
18053 (df_live_init): Same.
18054 (df_live_confluence_n): Same.
18055 (df_live_finalize): Same.
18056 (df_live_free): Same.
18057 (df_live_top_dump): Same.
18058 (df_live_verify_transfer_functions): Same.
18059 (df_mir_alloc): Same.
18060 (df_mir_reset): Same.
18061 (df_mir_init): Same.
18062 (df_mir_confluence_n): Same.
18063 (df_mir_free): Same.
18064 (df_mir_top_dump): Same.
18065 (df_word_lr_alloc): Same.
18066 (df_word_lr_reset): Same.
18067 (df_word_lr_init): Same.
18068 (df_word_lr_confluence_n): Same.
18069 (df_word_lr_free): Same.
18070 (df_word_lr_top_dump): Same.
18071 (df_md_alloc): Same.
18072 (df_md_simulate_one_insn): Same.
18073 (df_md_reset): Same.
18074 (df_md_init): Same.
18075 (df_md_free): Same.
18076 (df_md_top_dump): Same.
18077 * df-scan.c (df_insn_delete): Same.
18078 (df_insn_rescan): Same.
18079 (df_notes_rescan): Same.
18080 (df_sort_and_compress_mws): Same.
18081 (df_install_mws): Same.
18082 (df_refs_add_to_chains): Same.
18083 (df_ref_create_structure): Same.
18084 (df_ref_record): Same.
18085 (df_def_record_1): Same.
18086 (df_find_hard_reg_defs): Same.
18087 (df_uses_record): Same.
18088 (df_get_conditional_uses): Same.
18089 (df_get_call_refs): Same.
18090 (df_recompute_luids): Same.
18091 (df_get_entry_block_def_set): Same.
18092 (df_entry_block_defs_collect): Same.
18093 (df_get_exit_block_use_set): Same.
18094 (df_exit_block_uses_collect): Same.
18095 (df_mws_verify): Same.
18096 (df_bb_verify): Same.
18097 * df.h (df_scan_get_bb_info): Same.
18098 * doc/tm.texi: Same.
18099 * dse.c (record_store): Same.
18100 * dumpfile.h: Same.
18101 * emit-rtl.c (const_fixed_hasher::equal): Same.
18102 (set_mem_attributes_minus_bitpos): Same.
18103 (change_address): Same.
18104 (adjust_address_1): Same.
18105 (offset_address): Same.
18106 * emit-rtl.h: Same.
18107 * except.c (dw2_build_landing_pads): Same.
18108 (sjlj_emit_dispatch_table): Same.
18109 * explow.c (allocate_dynamic_stack_space): Same.
18110 (emit_stack_probe): Same.
18111 (probe_stack_range): Same.
18112 * expmed.c (store_bit_field_using_insv): Same.
18113 (store_bit_field_1): Same.
18114 (store_integral_bit_field): Same.
18115 (extract_bit_field_using_extv): Same.
18116 (extract_bit_field_1): Same.
18117 (emit_cstore): Same.
18118 * expr.c (emit_block_move_via_cpymem): Same.
18119 (expand_cmpstrn_or_cmpmem): Same.
18120 (set_storage_via_setmem): Same.
18121 (emit_single_push_insn_1): Same.
18122 (expand_assignment): Same.
18123 (store_constructor): Same.
18124 (expand_expr_real_2): Same.
18125 (expand_expr_real_1): Same.
18126 (try_casesi): Same.
18128 * function.c (try_fit_stack_local): Same.
18129 (assign_stack_local_1): Same.
18130 (assign_stack_local): Same.
18131 (cut_slot_from_list): Same.
18132 (insert_slot_to_list): Same.
18133 (max_slot_level): Same.
18134 (move_slot_to_level): Same.
18135 (temp_address_hasher::equal): Same.
18136 (remove_unused_temp_slot_addresses): Same.
18137 (assign_temp): Same.
18138 (combine_temp_slots): Same.
18139 (update_temp_slot_address): Same.
18140 (preserve_temp_slots): Same.
18141 * function.h: Same.
18143 * gcc-rich-location.h: Same.
18145 * genattrtab.c (check_attr_test): Same.
18146 (check_attr_value): Same.
18147 (convert_set_attr_alternative): Same.
18148 (convert_set_attr): Same.
18149 (check_defs): Same.
18150 (copy_boolean): Same.
18151 (get_attr_value): Same.
18152 (expand_delays): Same.
18153 (make_length_attrs): Same.
18155 (make_alternative_compare): Same.
18156 (simplify_test_exp): Same.
18157 (tests_attr_p): Same.
18158 (get_attr_order): Same.
18159 (clear_struct_flag): Same.
18161 (compares_alternatives_p): Same.
18164 (find_attrs_to_cache): Same.
18165 (write_test_expr): Same.
18166 (walk_attr_value): Same.
18167 (write_attr_get): Same.
18168 (eliminate_known_true): Same.
18169 (write_insn_cases): Same.
18170 (write_attr_case): Same.
18171 (write_attr_valueq): Same.
18172 (write_attr_value): Same.
18173 (write_dummy_eligible_delay): Same.
18174 (next_comma_elt): Same.
18176 (make_internal_attr): Same.
18177 (copy_rtx_unchanging): Same.
18178 (gen_insn_reserv): Same.
18179 (check_tune_attr): Same.
18180 (make_automaton_attrs): Same.
18181 (handle_arg): Same.
18182 * genextract.c (gen_insn): Same.
18183 (VEC_char_to_string): Same.
18184 * genmatch.c (print_operand): Same.
18186 (parser::parse_operation): Same.
18187 (parser::parse_capture): Same.
18188 (parser::parse_c_expr): Same.
18189 (parser::parse_simplify): Same.
18191 * genoutput.c (output_operand_data): Same.
18192 (output_get_insn_name): Same.
18193 (compare_operands): Same.
18194 (place_operands): Same.
18195 (process_template): Same.
18196 (validate_insn_alternatives): Same.
18197 (validate_insn_operands): Same.
18198 (gen_expand): Same.
18199 (note_constraint): Same.
18200 * genpreds.c (write_one_predicate_function): Same.
18201 (add_constraint): Same.
18202 (process_define_register_constraint): Same.
18203 (write_lookup_constraint_1): Same.
18204 (write_lookup_constraint_array): Same.
18205 (write_insn_constraint_len): Same.
18206 (write_reg_class_for_constraint_1): Same.
18207 (write_constraint_satisfied_p_array): Same.
18208 * genrecog.c (optimize_subroutine_group): Same.
18209 * gensupport.c (process_define_predicate): Same.
18210 (queue_pattern): Same.
18211 (remove_from_queue): Same.
18212 (process_rtx): Same.
18213 (is_predicable): Same.
18214 (change_subst_attribute): Same.
18215 (subst_pattern_match): Same.
18216 (alter_constraints): Same.
18217 (alter_attrs_for_insn): Same.
18218 (shift_output_template): Same.
18219 (alter_output_for_subst_insn): Same.
18220 (process_one_cond_exec): Same.
18222 (process_define_cond_exec): Same.
18223 (mnemonic_htab_callback): Same.
18224 (gen_mnemonic_attr): Same.
18225 (read_md_rtx): Same.
18226 * ggc-page.c: Same.
18227 * gimple-loop-interchange.cc (dump_reduction): Same.
18228 (dump_induction): Same.
18229 (loop_cand::~loop_cand): Same.
18230 (free_data_refs_with_aux): Same.
18231 (tree_loop_interchange::interchange_loops): Same.
18232 (tree_loop_interchange::map_inductions_to_loop): Same.
18233 (tree_loop_interchange::move_code_to_inner_loop): Same.
18234 (compute_access_stride): Same.
18235 (compute_access_strides): Same.
18236 (proper_loop_form_for_interchange): Same.
18237 (tree_loop_interchange_compute_ddrs): Same.
18238 (prune_datarefs_not_in_loop): Same.
18239 (prepare_data_references): Same.
18240 (pass_linterchange::execute): Same.
18241 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
18242 (unroll_jam_possible_p): Same.
18243 (fuse_loops): Same.
18244 (adjust_unroll_factor): Same.
18245 (tree_loop_unroll_and_jam): Same.
18246 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
18247 (loop_versioning::expensive_stmt_p): Same.
18248 (loop_versioning::version_for_unity): Same.
18249 (loop_versioning::dump_inner_likelihood): Same.
18250 (loop_versioning::find_per_loop_multiplication): Same.
18251 (loop_versioning::analyze_term_using_scevs): Same.
18252 (loop_versioning::record_address_fragment): Same.
18253 (loop_versioning::analyze_expr): Same.
18254 (loop_versioning::analyze_blocks): Same.
18255 (loop_versioning::prune_conditions): Same.
18256 (loop_versioning::merge_loop_info): Same.
18257 (loop_versioning::add_loop_to_queue): Same.
18258 (loop_versioning::decide_whether_loop_is_versionable): Same.
18259 (loop_versioning::make_versioning_decisions): Same.
18260 (loop_versioning::implement_versioning_decisions): Same.
18261 * gimple-ssa-evrp-analyze.c
18262 (evrp_range_analyzer::record_ranges_from_phis): Same.
18263 * gimple-ssa-store-merging.c (split_store::split_store): Same.
18264 (count_multiple_uses): Same.
18265 (split_group): Same.
18266 (imm_store_chain_info::output_merged_store): Same.
18267 (pass_store_merging::process_store): Same.
18268 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
18269 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
18271 (alloca_call_type): Same.
18272 (pass_walloca::execute): Same.
18273 * gimple-streamer-in.c (input_phi): Same.
18274 (input_gimple_stmt): Same.
18275 * gimple-streamer.h: Same.
18276 * godump.c (go_force_record_alignment): Same.
18277 (go_format_type): Same.
18278 (go_output_type): Same.
18279 (go_output_fndecl): Same.
18280 (go_output_typedef): Same.
18281 (keyword_hash_init): Same.
18282 (find_dummy_types): Same.
18283 * graph.c (draw_cfg_nodes_no_loops): Same.
18284 (draw_cfg_nodes_for_loop): Same.
18285 * hard-reg-set.h (hard_reg_set_iter_next): Same.
18286 * hsa-brig.c: Same.
18287 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
18288 * hsa-dump.c (dump_hsa_cfun): Same.
18289 * hsa-gen.c (gen_function_def_parameters): Same.
18290 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
18291 * input.c (dump_line_table_statistics): Same.
18292 (test_lexer): Same.
18294 * internal-fn.c (get_multi_vector_move): Same.
18295 (expand_load_lanes_optab_fn): Same.
18296 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
18297 (expand_GOMP_SIMT_EXIT): Same.
18298 (expand_GOMP_SIMT_LAST_LANE): Same.
18299 (expand_GOMP_SIMT_ORDERED_PRED): Same.
18300 (expand_GOMP_SIMT_VOTE_ANY): Same.
18301 (expand_GOMP_SIMT_XCHG_BFLY): Same.
18302 (expand_GOMP_SIMT_XCHG_IDX): Same.
18303 (expand_addsub_overflow): Same.
18304 (expand_neg_overflow): Same.
18305 (expand_mul_overflow): Same.
18306 (expand_call_mem_ref): Same.
18307 (expand_mask_load_optab_fn): Same.
18308 (expand_scatter_store_optab_fn): Same.
18309 (expand_gather_load_optab_fn): Same.
18310 * ipa-cp.c (ipa_get_parm_lattices): Same.
18311 (print_all_lattices): Same.
18312 (ignore_edge_p): Same.
18313 (build_toporder_info): Same.
18314 (free_toporder_info): Same.
18315 (push_node_to_stack): Same.
18316 (ipcp_lattice<valtype>::set_contains_variable): Same.
18317 (set_agg_lats_to_bottom): Same.
18318 (ipcp_bits_lattice::meet_with): Same.
18319 (set_single_call_flag): Same.
18320 (initialize_node_lattices): Same.
18321 (ipa_get_jf_ancestor_result): Same.
18322 (ipcp_verify_propagated_values): Same.
18323 (propagate_scalar_across_jump_function): Same.
18324 (propagate_context_across_jump_function): Same.
18325 (propagate_bits_across_jump_function): Same.
18326 (ipa_vr_operation_and_type_effects): Same.
18327 (propagate_vr_across_jump_function): Same.
18328 (set_check_aggs_by_ref): Same.
18329 (set_chain_of_aglats_contains_variable): Same.
18330 (merge_aggregate_lattices): Same.
18331 (agg_pass_through_permissible_p): Same.
18332 (propagate_aggs_across_jump_function): Same.
18333 (call_passes_through_thunk_p): Same.
18334 (propagate_constants_across_call): Same.
18335 (devirtualization_time_bonus): Same.
18336 (good_cloning_opportunity_p): Same.
18337 (context_independent_aggregate_values): Same.
18338 (gather_context_independent_values): Same.
18339 (perform_estimation_of_a_value): Same.
18340 (estimate_local_effects): Same.
18341 (value_topo_info<valtype>::add_val): Same.
18342 (add_all_node_vals_to_toposort): Same.
18343 (value_topo_info<valtype>::propagate_effects): Same.
18344 (ipcp_propagate_stage): Same.
18345 (ipcp_discover_new_direct_edges): Same.
18346 (same_node_or_its_all_contexts_clone_p): Same.
18347 (cgraph_edge_brings_value_p): Same.
18348 (gather_edges_for_value): Same.
18349 (create_specialized_node): Same.
18350 (find_more_scalar_values_for_callers_subset): Same.
18351 (find_more_contexts_for_caller_subset): Same.
18352 (copy_plats_to_inter): Same.
18353 (intersect_aggregates_with_edge): Same.
18354 (find_aggregate_values_for_callers_subset): Same.
18355 (cgraph_edge_brings_all_agg_vals_for_node): Same.
18356 (decide_about_value): Same.
18357 (decide_whether_version_node): Same.
18358 (spread_undeadness): Same.
18359 (identify_dead_nodes): Same.
18360 (ipcp_store_vr_results): Same.
18361 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
18362 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
18363 (redirect_to_unreachable): Same.
18364 (edge_set_predicate): Same.
18365 (evaluate_conditions_for_known_args): Same.
18366 (evaluate_properties_for_edge): Same.
18367 (ipa_fn_summary_t::duplicate): Same.
18368 (ipa_call_summary_t::duplicate): Same.
18369 (dump_ipa_call_summary): Same.
18370 (ipa_dump_fn_summary): Same.
18371 (eliminated_by_inlining_prob): Same.
18372 (set_cond_stmt_execution_predicate): Same.
18373 (set_switch_stmt_execution_predicate): Same.
18374 (compute_bb_predicates): Same.
18375 (will_be_nonconstant_expr_predicate): Same.
18376 (phi_result_unknown_predicate): Same.
18377 (analyze_function_body): Same.
18378 (compute_fn_summary): Same.
18379 (estimate_edge_devirt_benefit): Same.
18380 (estimate_edge_size_and_time): Same.
18381 (estimate_calls_size_and_time): Same.
18382 (estimate_node_size_and_time): Same.
18383 (remap_edge_change_prob): Same.
18384 (remap_edge_summaries): Same.
18385 (ipa_merge_fn_summary_after_inlining): Same.
18386 (ipa_fn_summary_generate): Same.
18387 (inline_read_section): Same.
18388 (ipa_fn_summary_read): Same.
18389 (ipa_fn_summary_write): Same.
18390 * ipa-fnsummary.h: Same.
18391 * ipa-hsa.c (ipa_hsa_read_section): Same.
18392 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
18393 * ipa-icf.c (sem_function::param_used_p): Same.
18394 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
18395 * ipa-inline.c (edge_badness): Same.
18396 (inline_small_functions): Same.
18397 * ipa-polymorphic-call.c
18398 (ipa_polymorphic_call_context::stream_out): Same.
18399 * ipa-predicate.c (predicate::remap_after_duplication): Same.
18400 (predicate::remap_after_inlining): Same.
18401 (predicate::stream_out): Same.
18402 * ipa-predicate.h: Same.
18403 * ipa-profile.c (ipa_profile_read_summary): Same.
18404 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
18405 (count_formal_params): Same.
18406 (ipa_dump_param): Same.
18407 (ipa_alloc_node_params): Same.
18408 (ipa_print_node_jump_functions_for_edge): Same.
18409 (ipa_print_node_jump_functions): Same.
18410 (ipa_load_from_parm_agg): Same.
18411 (get_ancestor_addr_info): Same.
18412 (ipa_compute_jump_functions_for_edge): Same.
18413 (ipa_analyze_virtual_call_uses): Same.
18414 (ipa_analyze_stmt_uses): Same.
18415 (ipa_analyze_params_uses_in_bb): Same.
18416 (update_jump_functions_after_inlining): Same.
18417 (try_decrement_rdesc_refcount): Same.
18418 (ipa_impossible_devirt_target): Same.
18419 (update_indirect_edges_after_inlining): Same.
18420 (combine_controlled_uses_counters): Same.
18421 (ipa_edge_args_sum_t::duplicate): Same.
18422 (ipa_write_jump_function): Same.
18423 (ipa_write_indirect_edge_info): Same.
18424 (ipa_write_node_info): Same.
18425 (ipa_read_edge_info): Same.
18426 (ipa_prop_read_section): Same.
18427 (read_replacements_section): Same.
18428 * ipa-prop.h (ipa_get_param_count): Same.
18429 (ipa_get_param): Same.
18430 (ipa_get_type): Same.
18431 (ipa_get_param_move_cost): Same.
18432 (ipa_set_param_used): Same.
18433 (ipa_get_controlled_uses): Same.
18434 (ipa_set_controlled_uses): Same.
18435 (ipa_get_cs_argument_count): Same.
18436 * ipa-pure-const.c (analyze_function): Same.
18437 (pure_const_read_summary): Same.
18439 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
18440 * ipa-split.c (test_nonssa_use): Same.
18441 (dump_split_point): Same.
18442 (dominated_by_forbidden): Same.
18443 (split_part_set_ssa_name_p): Same.
18444 (find_split_points): Same.
18445 * ira-build.c (finish_loop_tree_nodes): Same.
18446 (low_pressure_loop_node_p): Same.
18447 * ira-color.c (ira_reuse_stack_slot): Same.
18449 * ira.c (setup_reg_equiv): Same.
18450 (print_insn_chain): Same.
18452 * loop-doloop.c (doloop_condition_get): Same.
18454 (record_reg_sets): Same.
18455 (doloop_optimize): Same.
18456 * loop-init.c (loop_optimizer_init): Same.
18457 (fix_loop_structure): Same.
18458 * loop-invariant.c (merge_identical_invariants): Same.
18459 (compute_always_reached): Same.
18460 (find_exits): Same.
18461 (may_assign_reg_p): Same.
18462 (find_invariants_bb): Same.
18463 (find_invariants_body): Same.
18464 (replace_uses): Same.
18465 (can_move_invariant_reg): Same.
18466 (free_inv_motion_data): Same.
18467 (move_single_loop_invariants): Same.
18468 (change_pressure): Same.
18469 (mark_ref_regs): Same.
18470 (calculate_loop_reg_pressure): Same.
18471 * loop-iv.c (biv_entry_hasher::equal): Same.
18472 (iv_extend_to_rtx_code): Same.
18473 (check_iv_ref_table_size): Same.
18474 (clear_iv_info): Same.
18475 (latch_dominating_def): Same.
18476 (iv_get_reaching_def): Same.
18477 (iv_constant): Same.
18483 (get_biv_step): Same.
18485 (analyzed_for_bivness_p): Same.
18486 (record_biv): Same.
18487 (iv_analyze_biv): Same.
18488 (iv_analyze_expr): Same.
18489 (iv_analyze_def): Same.
18490 (iv_analyze_op): Same.
18491 (iv_analyze): Same.
18492 (iv_analyze_result): Same.
18494 (eliminate_implied_conditions): Same.
18495 (simplify_using_initial_values): Same.
18496 (shorten_into_mode): Same.
18497 (canonicalize_iv_subregs): Same.
18498 (determine_max_iter): Same.
18499 (check_simple_exit): Same.
18500 (find_simple_exit): Same.
18501 (get_simple_loop_desc): Same.
18502 * loop-unroll.c (report_unroll): Same.
18503 (decide_unrolling): Same.
18504 (unroll_loops): Same.
18505 (loop_exit_at_end_p): Same.
18506 (decide_unroll_constant_iterations): Same.
18507 (unroll_loop_constant_iterations): Same.
18508 (compare_and_jump_seq): Same.
18509 (unroll_loop_runtime_iterations): Same.
18510 (decide_unroll_stupid): Same.
18511 (unroll_loop_stupid): Same.
18512 (referenced_in_one_insn_in_loop_p): Same.
18513 (reset_debug_uses_in_loop): Same.
18514 (analyze_iv_to_split_insn): Same.
18515 * lra-eliminations.c (lra_debug_elim_table): Same.
18516 (setup_can_eliminate): Same.
18518 (lra_get_elimination_hard_regno): Same.
18519 (lra_eliminate_regs_1): Same.
18520 (eliminate_regs_in_insn): Same.
18521 (update_reg_eliminate): Same.
18522 (init_elimination): Same.
18523 (lra_eliminate): Same.
18525 * lra-lives.c (initiate_live_solver): Same.
18526 * lra-remat.c (create_remat_bb_data): Same.
18527 * lra-spills.c (lra_spill): Same.
18528 * lra.c (lra_set_insn_recog_data): Same.
18529 (lra_set_used_insn_alternative_by_uid): Same.
18530 (init_reg_info): Same.
18531 (expand_reg_info): Same.
18532 * lto-cgraph.c (output_symtab): Same.
18533 (read_identifier): Same.
18534 (get_alias_symbol): Same.
18535 (input_node): Same.
18536 (input_varpool_node): Same.
18538 (input_edge): Same.
18539 (input_cgraph_1): Same.
18540 (input_refs): Same.
18541 (input_symtab): Same.
18542 (input_offload_tables): Same.
18543 (output_cgraph_opt_summary): Same.
18544 (input_edge_opt_summary): Same.
18545 (input_cgraph_opt_section): Same.
18546 * lto-section-in.c (lto_free_raw_section_data): Same.
18547 (lto_create_simple_input_block): Same.
18548 (lto_free_function_in_decl_state_for_node): Same.
18549 * lto-streamer-in.c (lto_tag_check_set): Same.
18550 (lto_location_cache::revert_location_cache): Same.
18551 (lto_location_cache::input_location): Same.
18552 (lto_input_location): Same.
18553 (stream_input_location_now): Same.
18554 (lto_input_tree_ref): Same.
18555 (lto_input_eh_catch_list): Same.
18556 (input_eh_region): Same.
18557 (lto_init_eh): Same.
18558 (make_new_block): Same.
18560 (fixup_call_stmt_edges): Same.
18561 (input_struct_function_base): Same.
18562 (input_function): Same.
18563 (lto_read_body_or_constructor): Same.
18564 (lto_read_tree_1): Same.
18565 (lto_read_tree): Same.
18566 (lto_input_scc): Same.
18567 (lto_input_tree_1): Same.
18568 (lto_input_toplevel_asms): Same.
18569 (lto_input_mode_table): Same.
18570 (lto_reader_init): Same.
18571 (lto_data_in_create): Same.
18572 * lto-streamer-out.c (output_cfg): Same.
18573 * lto-streamer.h: Same.
18574 * modulo-sched.c (duplicate_insns_of_cycles): Same.
18575 (generate_prolog_epilog): Same.
18576 (mark_loop_unsched): Same.
18577 (dump_insn_location): Same.
18578 (loop_canon_p): Same.
18579 (sms_schedule): Same.
18580 * omp-expand.c (expand_omp_for_ordered_loops): Same.
18581 (expand_omp_for_generic): Same.
18582 (expand_omp_for_static_nochunk): Same.
18583 (expand_omp_for_static_chunk): Same.
18584 (expand_omp_simd): Same.
18585 (expand_omp_taskloop_for_inner): Same.
18586 (expand_oacc_for): Same.
18587 (expand_omp_atomic_pipeline): Same.
18588 (mark_loops_in_oacc_kernels_region): Same.
18589 * omp-offload.c (oacc_xform_loop): Same.
18590 * omp-simd-clone.c (simd_clone_adjust): Same.
18591 * optabs-query.c (get_traditional_extraction_insn): Same.
18592 * optabs.c (expand_vector_broadcast): Same.
18593 (expand_binop_directly): Same.
18594 (expand_twoval_unop): Same.
18595 (expand_twoval_binop): Same.
18596 (expand_unop_direct): Same.
18597 (emit_indirect_jump): Same.
18598 (emit_conditional_move): Same.
18599 (emit_conditional_neg_or_complement): Same.
18600 (emit_conditional_add): Same.
18601 (vector_compare_rtx): Same.
18602 (expand_vec_perm_1): Same.
18603 (expand_vec_perm_const): Same.
18604 (expand_vec_cond_expr): Same.
18605 (expand_vec_series_expr): Same.
18606 (maybe_emit_atomic_exchange): Same.
18607 (maybe_emit_sync_lock_test_and_set): Same.
18608 (expand_atomic_compare_and_swap): Same.
18609 (expand_atomic_load): Same.
18610 (expand_atomic_store): Same.
18611 (maybe_emit_op): Same.
18612 (valid_multiword_target_p): Same.
18613 (create_integer_operand): Same.
18614 (maybe_legitimize_operand_same_code): Same.
18615 (maybe_legitimize_operand): Same.
18616 (create_convert_operand_from_type): Same.
18617 (can_reuse_operands_p): Same.
18618 (maybe_legitimize_operands): Same.
18619 (maybe_gen_insn): Same.
18620 (maybe_expand_insn): Same.
18621 (maybe_expand_jump_insn): Same.
18622 (expand_insn): Same.
18623 * optabs.h (create_expand_operand): Same.
18624 (create_fixed_operand): Same.
18625 (create_output_operand): Same.
18626 (create_input_operand): Same.
18627 (create_convert_operand_to): Same.
18628 (create_convert_operand_from): Same.
18630 * poly-int.h: Same.
18631 * predict.c (optimize_insn_for_speed_p): Same.
18632 (optimize_loop_for_size_p): Same.
18633 (optimize_loop_for_speed_p): Same.
18634 (optimize_loop_nest_for_speed_p): Same.
18635 (get_base_value): Same.
18636 (predicted_by_loop_heuristics_p): Same.
18637 (predict_extra_loop_exits): Same.
18638 (predict_loops): Same.
18639 (predict_paths_for_bb): Same.
18640 (predict_paths_leading_to): Same.
18641 (propagate_freq): Same.
18642 (pass_profile::execute): Same.
18644 * profile-count.c (profile_count::differs_from_p): Same.
18645 (profile_probability::differs_lot_from_p): Same.
18646 * profile-count.h: Same.
18647 * profile.c (branch_prob): Same.
18648 * regrename.c (free_chain_data): Same.
18649 (mark_conflict): Same.
18650 (create_new_chain): Same.
18651 (merge_overlapping_regs): Same.
18652 (init_rename_info): Same.
18653 (merge_chains): Same.
18654 (regrename_analyze): Same.
18655 (regrename_do_replace): Same.
18656 (scan_rtx_reg): Same.
18657 (record_out_operands): Same.
18658 (build_def_use): Same.
18659 * regrename.h: Same.
18661 * reload1.c (init_reload): Same.
18662 (maybe_fix_stack_asms): Same.
18663 (copy_reloads): Same.
18664 (count_pseudo): Same.
18665 (count_spilled_pseudo): Same.
18667 (find_reload_regs): Same.
18668 (select_reload_regs): Same.
18669 (spill_hard_reg): Same.
18670 (fixup_eh_region_note): Same.
18671 (set_reload_reg): Same.
18672 (allocate_reload_reg): Same.
18673 (compute_reload_subreg_offset): Same.
18674 (reload_adjust_reg_for_icode): Same.
18675 (emit_input_reload_insns): Same.
18676 (emit_output_reload_insns): Same.
18677 (do_input_reload): Same.
18678 (inherit_piecemeal_p): Same.
18680 * sanopt.c (maybe_get_dominating_check): Same.
18681 (maybe_optimize_ubsan_ptr_ifn): Same.
18682 (can_remove_asan_check): Same.
18683 (maybe_optimize_asan_check_ifn): Same.
18684 (sanopt_optimize_walker): Same.
18685 * sched-deps.c (add_dependence_list): Same.
18686 (chain_to_prev_insn): Same.
18687 (add_insn_mem_dependence): Same.
18688 (create_insn_reg_set): Same.
18689 (maybe_extend_reg_info_p): Same.
18690 (sched_analyze_reg): Same.
18691 (sched_analyze_1): Same.
18692 (get_implicit_reg_pending_clobbers): Same.
18693 (chain_to_prev_insn_p): Same.
18694 (deps_analyze_insn): Same.
18695 (deps_start_bb): Same.
18696 (sched_free_deps): Same.
18698 (init_deps_reg_last): Same.
18700 * sched-ebb.c: Same.
18701 * sched-int.h: Same.
18702 * sched-rgn.c (add_branch_dependences): Same.
18703 (concat_insn_mem_list): Same.
18705 (sched_rgn_compute_dependencies): Same.
18706 * sel-sched-ir.c (reset_target_context): Same.
18707 (copy_deps_context): Same.
18708 (init_id_from_df): Same.
18709 (has_dependence_p): Same.
18710 (change_loops_latches): Same.
18711 (bb_top_order_comparator): Same.
18712 (make_region_from_loop_preheader): Same.
18713 (sel_init_pipelining): Same.
18714 (get_loop_nest_for_rgn): Same.
18715 (make_regions_from_the_rest): Same.
18716 (sel_is_loop_preheader_p): Same.
18717 * sel-sched-ir.h (inner_loop_header_p): Same.
18718 (get_all_loop_exits): Same.
18719 * selftest.h: Same.
18720 * sese.c (sese_build_liveouts): Same.
18721 (sese_insert_phis_for_liveouts): Same.
18722 * sese.h (defined_in_sese_p): Same.
18723 * sreal.c (sreal::stream_out): Same.
18725 * streamer-hooks.h: Same.
18726 * target-globals.c (save_target_globals): Same.
18727 * target-globals.h: Same.
18728 * target.def: Same.
18730 * targhooks.c (default_has_ifunc_p): Same.
18731 (default_empty_mask_is_expensive): Same.
18732 (default_init_cost): Same.
18733 * targhooks.h: Same.
18735 * tree-affine.c (aff_combination_mult): Same.
18736 (aff_combination_expand): Same.
18737 (aff_combination_constant_multiple_p): Same.
18738 * tree-affine.h: Same.
18739 * tree-cfg.c (build_gimple_cfg): Same.
18740 (replace_loop_annotate_in_block): Same.
18741 (replace_uses_by): Same.
18743 (dump_cfg_stats): Same.
18744 (gimple_duplicate_sese_region): Same.
18745 (gimple_duplicate_sese_tail): Same.
18746 (move_block_to_fn): Same.
18747 (replace_block_vars_by_duplicates): Same.
18748 (move_sese_region_to_fn): Same.
18749 (print_loops_bb): Same.
18750 (print_loop): Same.
18751 (print_loops): Same.
18753 (debug_loops): Same.
18754 * tree-cfg.h: Same.
18755 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
18756 (chrec_fold_multiply_poly_poly): Same.
18757 (chrec_evaluate): Same.
18758 (chrec_component_in_loop_num): Same.
18759 (reset_evolution_in_loop): Same.
18760 (is_multivariate_chrec): Same.
18761 (chrec_contains_symbols): Same.
18762 (nb_vars_in_chrec): Same.
18763 (chrec_convert_1): Same.
18764 (chrec_convert_aggressive): Same.
18765 * tree-chrec.h: Same.
18766 * tree-core.h: Same.
18767 * tree-data-ref.c (dump_data_dependence_relation): Same.
18768 (canonicalize_base_object_address): Same.
18769 (data_ref_compare_tree): Same.
18770 (prune_runtime_alias_test_list): Same.
18771 (get_segment_min_max): Same.
18772 (create_intersect_range_checks): Same.
18773 (conflict_fn_no_dependence): Same.
18774 (object_address_invariant_in_loop_p): Same.
18775 (analyze_ziv_subscript): Same.
18776 (analyze_siv_subscript_cst_affine): Same.
18777 (analyze_miv_subscript): Same.
18778 (analyze_overlapping_iterations): Same.
18779 (build_classic_dist_vector_1): Same.
18780 (add_other_self_distances): Same.
18781 (same_access_functions): Same.
18782 (build_classic_dir_vector): Same.
18783 (subscript_dependence_tester_1): Same.
18784 (subscript_dependence_tester): Same.
18785 (access_functions_are_affine_or_constant_p): Same.
18786 (get_references_in_stmt): Same.
18787 (loop_nest_has_data_refs): Same.
18788 (graphite_find_data_references_in_stmt): Same.
18789 (find_data_references_in_bb): Same.
18790 (get_base_for_alignment): Same.
18791 (find_loop_nest_1): Same.
18792 (find_loop_nest): Same.
18793 * tree-data-ref.h (dr_alignment): Same.
18794 (ddr_dependence_level): Same.
18795 * tree-if-conv.c (fold_build_cond_expr): Same.
18796 (add_to_predicate_list): Same.
18797 (add_to_dst_predicate_list): Same.
18798 (phi_convertible_by_degenerating_args): Same.
18799 (idx_within_array_bound): Same.
18800 (all_preds_critical_p): Same.
18801 (pred_blocks_visited_p): Same.
18802 (predicate_bbs): Same.
18803 (build_region): Same.
18804 (if_convertible_loop_p_1): Same.
18805 (is_cond_scalar_reduction): Same.
18806 (predicate_scalar_phi): Same.
18807 (remove_conditions_and_labels): Same.
18808 (combine_blocks): Same.
18809 (version_loop_for_if_conversion): Same.
18810 (versionable_outer_loop_p): Same.
18811 (ifcvt_local_dce): Same.
18812 (tree_if_conversion): Same.
18813 (pass_if_conversion::gate): Same.
18814 * tree-if-conv.h: Same.
18815 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
18816 * tree-loop-distribution.c (bb_top_order_cmp): Same.
18818 (stmt_has_scalar_dependences_outside_loop): Same.
18819 (copy_loop_before): Same.
18820 (create_bb_after_loop): Same.
18821 (const_with_all_bytes_same): Same.
18822 (generate_memset_builtin): Same.
18823 (generate_memcpy_builtin): Same.
18824 (destroy_loop): Same.
18825 (build_rdg_partition_for_vertex): Same.
18826 (compute_access_range): Same.
18827 (data_ref_segment_size): Same.
18828 (latch_dominated_by_data_ref): Same.
18829 (compute_alias_check_pairs): Same.
18830 (fuse_memset_builtins): Same.
18831 (finalize_partitions): Same.
18832 (find_seed_stmts_for_distribution): Same.
18833 (prepare_perfect_loop_nest): Same.
18834 * tree-parloops.c (lambda_transform_legal_p): Same.
18835 (loop_parallel_p): Same.
18836 (reduc_stmt_res): Same.
18837 (add_field_for_name): Same.
18838 (create_call_for_reduction_1): Same.
18839 (replace_uses_in_bb_by): Same.
18840 (transform_to_exit_first_loop_alt): Same.
18841 (try_transform_to_exit_first_loop_alt): Same.
18842 (transform_to_exit_first_loop): Same.
18844 (gen_parallel_loop): Same.
18845 (gather_scalar_reductions): Same.
18846 (get_omp_data_i_param): Same.
18847 (try_create_reduction_list): Same.
18848 (oacc_entry_exit_single_gang): Same.
18849 (parallelize_loops): Same.
18850 * tree-pass.h: Same.
18851 * tree-predcom.c (determine_offset): Same.
18852 (last_always_executed_block): Same.
18853 (split_data_refs_to_components): Same.
18854 (suitable_component_p): Same.
18855 (valid_initializer_p): Same.
18856 (find_looparound_phi): Same.
18857 (insert_looparound_copy): Same.
18858 (add_looparound_copies): Same.
18859 (determine_roots_comp): Same.
18860 (predcom_tmp_var): Same.
18861 (initialize_root_vars): Same.
18862 (initialize_root_vars_store_elim_1): Same.
18863 (initialize_root_vars_store_elim_2): Same.
18864 (finalize_eliminated_stores): Same.
18865 (initialize_root_vars_lm): Same.
18866 (remove_stmt): Same.
18867 (determine_unroll_factor): Same.
18868 (execute_pred_commoning_cbck): Same.
18869 (base_names_in_chain_on): Same.
18870 (combine_chains): Same.
18871 (pcom_stmt_dominates_stmt_p): Same.
18872 (try_combine_chains): Same.
18873 (prepare_initializers_chain_store_elim): Same.
18874 (prepare_initializers_chain): Same.
18875 (prepare_initializers): Same.
18876 (prepare_finalizers_chain): Same.
18877 (prepare_finalizers): Same.
18878 (insert_init_seqs): Same.
18879 * tree-scalar-evolution.c (loop_phi_node_p): Same.
18880 (compute_overall_effect_of_inner_loop): Same.
18881 (add_to_evolution_1): Same.
18882 (add_to_evolution): Same.
18883 (follow_ssa_edge_binary): Same.
18884 (follow_ssa_edge_expr): Same.
18885 (backedge_phi_arg_p): Same.
18886 (follow_ssa_edge_in_condition_phi_branch): Same.
18887 (follow_ssa_edge_in_condition_phi): Same.
18888 (follow_ssa_edge_inner_loop_phi): Same.
18889 (follow_ssa_edge): Same.
18890 (analyze_evolution_in_loop): Same.
18891 (analyze_initial_condition): Same.
18892 (interpret_loop_phi): Same.
18893 (interpret_condition_phi): Same.
18894 (interpret_rhs_expr): Same.
18895 (interpret_expr): Same.
18896 (interpret_gimple_assign): Same.
18897 (analyze_scalar_evolution_1): Same.
18898 (analyze_scalar_evolution): Same.
18899 (analyze_scalar_evolution_for_address_of): Same.
18900 (get_instantiated_value_entry): Same.
18901 (loop_closed_phi_def): Same.
18902 (instantiate_scev_name): Same.
18903 (instantiate_scev_poly): Same.
18904 (instantiate_scev_binary): Same.
18905 (instantiate_scev_convert): Same.
18906 (instantiate_scev_not): Same.
18907 (instantiate_scev_r): Same.
18908 (instantiate_scev): Same.
18909 (resolve_mixers): Same.
18910 (initialize_scalar_evolutions_analyzer): Same.
18911 (scev_reset_htab): Same.
18912 (scev_reset): Same.
18913 (derive_simple_iv_with_niters): Same.
18914 (simple_iv_with_niters): Same.
18915 (expression_expensive_p): Same.
18916 (final_value_replacement_loop): Same.
18917 * tree-scalar-evolution.h (block_before_loop): Same.
18918 * tree-ssa-address.h: Same.
18919 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
18920 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
18921 (record_edge_info): Same.
18922 * tree-ssa-live.c (var_map_base_fini): Same.
18923 (remove_unused_locals): Same.
18924 * tree-ssa-live.h: Same.
18925 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
18926 (pass_ch_vect::execute): Same.
18927 (pass_ch::process_loop_p): Same.
18928 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
18929 (movement_possibility): Same.
18930 (outermost_invariant_loop): Same.
18932 (determine_max_movement): Same.
18933 (invariantness_dom_walker::before_dom_children): Same.
18934 (move_computations): Same.
18935 (may_move_till): Same.
18936 (force_move_till_op): Same.
18937 (force_move_till): Same.
18938 (memref_free): Same.
18939 (record_mem_ref_loc): Same.
18940 (set_ref_stored_in_loop): Same.
18941 (mark_ref_stored): Same.
18942 (sort_bbs_in_loop_postorder_cmp): Same.
18943 (sort_locs_in_loop_postorder_cmp): Same.
18944 (analyze_memory_references): Same.
18945 (mem_refs_may_alias_p): Same.
18946 (find_ref_loc_in_loop_cmp): Same.
18947 (rewrite_mem_ref_loc::operator): Same.
18948 (first_mem_ref_loc_1::operator): Same.
18949 (sm_set_flag_if_changed::operator): Same.
18950 (execute_sm_if_changed_flag_set): Same.
18951 (execute_sm): Same.
18952 (hoist_memory_references): Same.
18953 (ref_always_accessed::operator): Same.
18954 (refs_independent_p): Same.
18955 (record_dep_loop): Same.
18956 (ref_indep_loop_p_1): Same.
18957 (ref_indep_loop_p): Same.
18958 (can_sm_ref_p): Same.
18959 (find_refs_for_sm): Same.
18960 (loop_suitable_for_sm): Same.
18961 (store_motion_loop): Same.
18962 (store_motion): Same.
18963 (fill_always_executed_in): Same.
18964 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
18965 (estimated_unrolled_size): Same.
18966 (loop_edge_to_cancel): Same.
18967 (remove_exits_and_undefined_stmts): Same.
18968 (remove_redundant_iv_tests): Same.
18969 (unloop_loops): Same.
18970 (estimated_peeled_sequence_size): Same.
18971 (try_peel_loop): Same.
18972 (canonicalize_loop_induction_variables): Same.
18973 (canonicalize_induction_variables): Same.
18974 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
18976 (stmt_after_inc_pos): Same.
18977 (contains_abnormal_ssa_name_p): Same.
18978 (niter_for_exit): Same.
18981 (find_givs_in_bb): Same.
18982 (find_induction_variables): Same.
18983 (find_interesting_uses_cond): Same.
18984 (outermost_invariant_loop_for_expr): Same.
18985 (idx_find_step): Same.
18986 (add_candidate_1): Same.
18987 (add_iv_candidate_derived_from_uses): Same.
18988 (alloc_use_cost_map): Same.
18989 (prepare_decl_rtl): Same.
18990 (generic_predict_doloop_p): Same.
18991 (computation_cost): Same.
18992 (determine_common_wider_type): Same.
18993 (get_computation_aff_1): Same.
18994 (get_use_type): Same.
18995 (determine_group_iv_cost_address): Same.
18997 (difference_cannot_overflow_p): Same.
18998 (may_eliminate_iv): Same.
18999 (determine_set_costs): Same.
19000 (cheaper_cost_pair): Same.
19001 (compare_cost_pair): Same.
19002 (iv_ca_cand_for_group): Same.
19003 (iv_ca_recount_cost): Same.
19004 (iv_ca_set_remove_invs): Same.
19005 (iv_ca_set_no_cp): Same.
19006 (iv_ca_set_add_invs): Same.
19007 (iv_ca_set_cp): Same.
19008 (iv_ca_add_group): Same.
19009 (iv_ca_cost): Same.
19010 (iv_ca_compare_deps): Same.
19011 (iv_ca_delta_reverse): Same.
19012 (iv_ca_delta_commit): Same.
19013 (iv_ca_cand_used_p): Same.
19014 (iv_ca_delta_free): Same.
19016 (iv_ca_free): Same.
19017 (iv_ca_dump): Same.
19018 (iv_ca_extend): Same.
19019 (iv_ca_narrow): Same.
19020 (iv_ca_prune): Same.
19021 (cheaper_cost_with_cand): Same.
19022 (iv_ca_replace): Same.
19023 (try_add_cand_for): Same.
19024 (get_initial_solution): Same.
19025 (try_improve_iv_set): Same.
19026 (find_optimal_iv_set_1): Same.
19027 (create_new_iv): Same.
19028 (rewrite_use_compare): Same.
19029 (remove_unused_ivs): Same.
19030 (determine_scaling_factor): Same.
19031 * tree-ssa-loop-ivopts.h: Same.
19032 * tree-ssa-loop-manip.c (create_iv): Same.
19033 (compute_live_loop_exits): Same.
19034 (add_exit_phi): Same.
19035 (add_exit_phis): Same.
19036 (find_uses_to_rename_use): Same.
19037 (find_uses_to_rename_def): Same.
19038 (find_uses_to_rename_in_loop): Same.
19039 (rewrite_into_loop_closed_ssa): Same.
19040 (check_loop_closed_ssa_bb): Same.
19041 (split_loop_exit_edge): Same.
19042 (ip_end_pos): Same.
19043 (ip_normal_pos): Same.
19044 (copy_phi_node_args): Same.
19045 (gimple_duplicate_loop_to_header_edge): Same.
19046 (can_unroll_loop_p): Same.
19047 (determine_exit_conditions): Same.
19048 (scale_dominated_blocks_in_loop): Same.
19049 (niter_for_unrolled_loop): Same.
19050 (tree_transform_and_unroll_loop): Same.
19051 (rewrite_all_phi_nodes_with_iv): Same.
19052 * tree-ssa-loop-manip.h: Same.
19053 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
19054 (number_of_iterations_ne): Same.
19055 (assert_no_overflow_lt): Same.
19056 (assert_loop_rolls_lt): Same.
19057 (number_of_iterations_lt): Same.
19058 (adjust_cond_for_loop_until_wrap): Same.
19059 (tree_simplify_using_condition): Same.
19060 (simplify_using_initial_conditions): Same.
19061 (simplify_using_outer_evolutions): Same.
19062 (loop_only_exit_p): Same.
19063 (ssa_defined_by_minus_one_stmt_p): Same.
19064 (number_of_iterations_popcount): Same.
19065 (number_of_iterations_exit): Same.
19066 (find_loop_niter): Same.
19067 (finite_loop_p): Same.
19068 (chain_of_csts_start): Same.
19069 (get_val_for): Same.
19070 (loop_niter_by_eval): Same.
19071 (derive_constant_upper_bound_ops): Same.
19072 (do_warn_aggressive_loop_optimizations): Same.
19073 (record_estimate): Same.
19074 (get_cst_init_from_scev): Same.
19075 (record_nonwrapping_iv): Same.
19076 (idx_infer_loop_bounds): Same.
19077 (infer_loop_bounds_from_ref): Same.
19078 (infer_loop_bounds_from_array): Same.
19079 (infer_loop_bounds_from_pointer_arith): Same.
19080 (infer_loop_bounds_from_signedness): Same.
19081 (bound_index): Same.
19082 (discover_iteration_bound_by_body_walk): Same.
19083 (maybe_lower_iteration_bound): Same.
19084 (estimate_numbers_of_iterations): Same.
19085 (estimated_loop_iterations): Same.
19086 (estimated_loop_iterations_int): Same.
19087 (max_loop_iterations): Same.
19088 (max_loop_iterations_int): Same.
19089 (likely_max_loop_iterations): Same.
19090 (likely_max_loop_iterations_int): Same.
19091 (estimated_stmt_executions_int): Same.
19092 (max_stmt_executions): Same.
19093 (likely_max_stmt_executions): Same.
19094 (estimated_stmt_executions): Same.
19095 (stmt_dominates_stmt_p): Same.
19096 (nowrap_type_p): Same.
19097 (loop_exits_before_overflow): Same.
19098 (scev_var_range_cant_overflow): Same.
19099 (scev_probably_wraps_p): Same.
19100 (free_numbers_of_iterations_estimates): Same.
19101 * tree-ssa-loop-niter.h: Same.
19102 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
19103 (idx_analyze_ref): Same.
19104 (analyze_ref): Same.
19105 (gather_memory_references_ref): Same.
19106 (mark_nontemporal_store): Same.
19107 (emit_mfence_after_loop): Same.
19108 (may_use_storent_in_loop_p): Same.
19109 (mark_nontemporal_stores): Same.
19110 (should_unroll_loop_p): Same.
19111 (volume_of_dist_vector): Same.
19112 (add_subscript_strides): Same.
19113 (self_reuse_distance): Same.
19114 (insn_to_prefetch_ratio_too_small_p): Same.
19115 * tree-ssa-loop-split.c (split_at_bb_p): Same.
19116 (patch_loop_exit): Same.
19117 (find_or_create_guard_phi): Same.
19118 (easy_exit_values): Same.
19119 (connect_loop_phis): Same.
19120 (connect_loops): Same.
19121 (compute_new_first_bound): Same.
19122 (split_loop): Same.
19123 (tree_ssa_split_loops): Same.
19124 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
19125 (is_maybe_undefined): Same.
19126 (tree_may_unswitch_on): Same.
19127 (simplify_using_entry_checks): Same.
19128 (tree_unswitch_single_loop): Same.
19129 (tree_unswitch_loop): Same.
19130 (tree_unswitch_outer_loop): Same.
19131 (empty_bb_without_guard_p): Same.
19132 (used_outside_loop_p): Same.
19133 (get_vop_from_header): Same.
19134 (hoist_guard): Same.
19135 * tree-ssa-loop.c (gate_oacc_kernels): Same.
19136 (get_lsm_tmp_name): Same.
19137 * tree-ssa-loop.h: Same.
19138 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
19139 (build_and_add_sum): Same.
19140 (no_side_effect_bb): Same.
19142 (linearize_expr): Same.
19143 (should_break_up_subtract): Same.
19144 (linearize_expr_tree): Same.
19145 * tree-ssa-scopedtables.c: Same.
19146 * tree-ssa-scopedtables.h: Same.
19147 * tree-ssa-structalias.c (condense_visit): Same.
19148 (label_visit): Same.
19149 (dump_pred_graph): Same.
19150 (perform_var_substitution): Same.
19151 (move_complex_constraints): Same.
19152 (remove_preds_and_fake_succs): Same.
19153 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
19154 (determine_bb_domination_status): Same.
19155 (duplicate_thread_path): Same.
19156 (thread_through_all_blocks): Same.
19157 * tree-ssa-threadupdate.h: Same.
19158 * tree-streamer-in.c (streamer_read_string_cst): Same.
19159 (input_identifier): Same.
19160 (unpack_ts_type_common_value_fields): Same.
19161 (unpack_ts_block_value_fields): Same.
19162 (unpack_ts_translation_unit_decl_value_fields): Same.
19163 (unpack_ts_omp_clause_value_fields): Same.
19164 (streamer_read_tree_bitfields): Same.
19165 (streamer_alloc_tree): Same.
19166 (lto_input_ts_common_tree_pointers): Same.
19167 (lto_input_ts_vector_tree_pointers): Same.
19168 (lto_input_ts_poly_tree_pointers): Same.
19169 (lto_input_ts_complex_tree_pointers): Same.
19170 (lto_input_ts_decl_minimal_tree_pointers): Same.
19171 (lto_input_ts_decl_common_tree_pointers): Same.
19172 (lto_input_ts_decl_non_common_tree_pointers): Same.
19173 (lto_input_ts_decl_with_vis_tree_pointers): Same.
19174 (lto_input_ts_field_decl_tree_pointers): Same.
19175 (lto_input_ts_function_decl_tree_pointers): Same.
19176 (lto_input_ts_type_common_tree_pointers): Same.
19177 (lto_input_ts_type_non_common_tree_pointers): Same.
19178 (lto_input_ts_list_tree_pointers): Same.
19179 (lto_input_ts_vec_tree_pointers): Same.
19180 (lto_input_ts_exp_tree_pointers): Same.
19181 (lto_input_ts_block_tree_pointers): Same.
19182 (lto_input_ts_binfo_tree_pointers): Same.
19183 (lto_input_ts_constructor_tree_pointers): Same.
19184 (lto_input_ts_omp_clause_tree_pointers): Same.
19185 (streamer_read_tree_body): Same.
19186 * tree-streamer.h: Same.
19187 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
19188 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
19189 (vect_analyze_possibly_independent_ddr): Same.
19190 (vect_analyze_data_ref_dependence): Same.
19191 (vect_compute_data_ref_alignment): Same.
19192 (vect_enhance_data_refs_alignment): Same.
19193 (vect_analyze_data_ref_access): Same.
19194 (vect_check_gather_scatter): Same.
19195 (vect_find_stmt_data_reference): Same.
19196 (vect_create_addr_base_for_vector_ref): Same.
19197 (vect_setup_realignment): Same.
19198 (vect_supportable_dr_alignment): Same.
19199 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
19200 (adjust_phi_and_debug_stmts): Same.
19201 (vect_set_loop_mask): Same.
19202 (add_preheader_seq): Same.
19203 (vect_maybe_permute_loop_masks): Same.
19204 (vect_set_loop_masks_directly): Same.
19205 (vect_set_loop_condition_masked): Same.
19206 (vect_set_loop_condition_unmasked): Same.
19207 (slpeel_duplicate_current_defs_from_edges): Same.
19208 (slpeel_add_loop_guard): Same.
19209 (slpeel_can_duplicate_loop_p): Same.
19210 (create_lcssa_for_virtual_phi): Same.
19212 (vect_update_ivs_after_vectorizer): Same.
19213 (vect_gen_vector_loop_niters_mult_vf): Same.
19214 (slpeel_update_phi_nodes_for_loops): Same.
19215 (slpeel_update_phi_nodes_for_guard1): Same.
19216 (find_guard_arg): Same.
19217 (slpeel_update_phi_nodes_for_guard2): Same.
19218 (slpeel_update_phi_nodes_for_lcssa): Same.
19219 (vect_do_peeling): Same.
19220 (vect_create_cond_for_alias_checks): Same.
19221 (vect_loop_versioning): Same.
19222 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
19223 (vect_inner_phi_in_double_reduction_p): Same.
19224 (vect_analyze_scalar_cycles_1): Same.
19225 (vect_fixup_scalar_cycles_with_patterns): Same.
19226 (vect_get_loop_niters): Same.
19227 (bb_in_loop_p): Same.
19228 (vect_get_max_nscalars_per_iter): Same.
19229 (vect_verify_full_masking): Same.
19230 (vect_compute_single_scalar_iteration_cost): Same.
19231 (vect_analyze_loop_form_1): Same.
19232 (vect_analyze_loop_form): Same.
19233 (vect_active_double_reduction_p): Same.
19234 (vect_analyze_loop_operations): Same.
19235 (neutral_op_for_slp_reduction): Same.
19236 (vect_is_simple_reduction): Same.
19237 (vect_model_reduction_cost): Same.
19238 (get_initial_def_for_reduction): Same.
19239 (get_initial_defs_for_reduction): Same.
19240 (vect_create_epilog_for_reduction): Same.
19241 (vectorize_fold_left_reduction): Same.
19242 (vectorizable_reduction): Same.
19243 (vectorizable_induction): Same.
19244 (vectorizable_live_operation): Same.
19245 (loop_niters_no_overflow): Same.
19246 (vect_get_loop_mask): Same.
19247 (vect_transform_loop_stmt): Same.
19248 (vect_transform_loop): Same.
19249 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
19250 (vect_determine_precisions): Same.
19251 (vect_pattern_recog_1): Same.
19252 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
19253 * tree-vect-stmts.c (stmt_vectype): Same.
19254 (process_use): Same.
19255 (vect_init_vector_1): Same.
19256 (vect_truncate_gather_scatter_offset): Same.
19257 (get_group_load_store_type): Same.
19258 (vect_build_gather_load_calls): Same.
19259 (vect_get_strided_load_store_ops): Same.
19260 (vectorizable_simd_clone_call): Same.
19261 (vectorizable_store): Same.
19262 (permute_vec_elements): Same.
19263 (vectorizable_load): Same.
19264 (vect_transform_stmt): Same.
19265 (supportable_widening_operation): Same.
19266 * tree-vectorizer.c (vec_info::replace_stmt): Same.
19267 (vec_info::free_stmt_vec_info): Same.
19268 (vect_free_loop_info_assumptions): Same.
19269 (vect_loop_vectorized_call): Same.
19270 (set_uid_loop_bbs): Same.
19271 (vectorize_loops): Same.
19272 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
19273 * tree.c (add_tree_to_fld_list): Same.
19274 (fld_type_variant_equal_p): Same.
19275 (fld_decl_context): Same.
19276 (fld_incomplete_type_of): Same.
19277 (free_lang_data_in_binfo): Same.
19278 (need_assembler_name_p): Same.
19279 (find_decls_types_r): Same.
19280 (get_eh_types_for_runtime): Same.
19281 (find_decls_types_in_eh_region): Same.
19282 (find_decls_types_in_node): Same.
19283 (assign_assembler_name_if_needed): Same.
19284 * value-prof.c (stream_out_histogram_value): Same.
19285 * value-prof.h: Same.
19286 * var-tracking.c (use_narrower_mode): Same.
19287 (prepare_call_arguments): Same.
19288 (vt_expand_loc_callback): Same.
19289 (resolve_expansions_pending_recursion): Same.
19290 (vt_expand_loc): Same.
19291 * varasm.c (const_hash_1): Same.
19292 (compare_constant): Same.
19293 (tree_output_constant_def): Same.
19294 (simplify_subtraction): Same.
19295 (get_pool_constant): Same.
19296 (output_constant_pool_2): Same.
19297 (output_constant_pool_1): Same.
19298 (mark_constants_in_pattern): Same.
19299 (mark_constant_pool): Same.
19300 (get_section_anchor): Same.
19301 * vr-values.c (compare_range_with_value): Same.
19302 (vr_values::extract_range_from_phi_node): Same.
19303 * vr-values.h: Same.
19304 * web.c (unionfind_union): Same.
19305 * wide-int.h: Same.
19307 2019-07-09 Martin Sebor <msebor@redhat.com>
19310 * align.h: Change class-key from class to struct and vice versa
19311 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
19312 * alloc-pool.h: Same.
19313 * asan.c (shadow_mem_size): Same.
19314 * auto-profile.c: Same.
19315 * basic-block.h: Same.
19317 * cfgexpand.c (set_rtl): Same.
19318 (expand_one_stack_var_at): Same.
19319 * cfghooks.h: Same.
19322 * config/i386/i386.h: Same.
19323 * df-problems.c (df_print_bb_index): Same.
19325 * df.h (df_single_use): Same.
19326 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
19327 (layout::annotation_line_showed_range_p): Same.
19328 (get_printed_columns): Same.
19329 (correction::ensure_terminated): Same.
19330 (line_corrections::~line_corrections): Same.
19333 * dump-context.h: Same.
19334 * dumpfile.h: Same.
19335 * dwarf2out.c: Same.
19336 * edit-context.c: Same.
19337 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
19339 * function.c (assign_stack_local): Same.
19340 * function.h: Same.
19342 * gcov.c (block_info::block_info): Same.
19343 * genattrtab.c: Same.
19344 * genextract.c: Same.
19345 * genmatch.c (comparison_code_p): Same.
19346 (id_base::id_base): Same.
19347 (decision_tree::print): Same.
19348 * genoutput.c: Same.
19349 * genpreds.c (write_one_predicate_function): Same.
19350 * genrecog.c (validate_pattern): Same.
19351 (find_operand_positions): Same.
19352 (optimize_subroutine_group): Same.
19353 (merge_pattern_transition::merge_pattern_transition): Same.
19354 (merge_pattern_info::merge_pattern_info): Same.
19355 (merge_state_result::merge_state_result): Same.
19356 (merge_into_state): Same.
19357 * gensupport.c: Same.
19358 * gensupport.h: Same.
19359 * ggc-common.c (init_ggc_heuristics): Same.
19360 * ggc-tests.c (test_union): Same.
19361 * gimple-loop-interchange.cc (dump_induction): Same.
19362 * gimple-loop-versioning.cc: Same.
19363 * gimple-match.h (gimple_match_cond::any_else): Same.
19364 * gimple-ssa-backprop.c: Same.
19365 * gimple-ssa-sprintf.c: Same.
19366 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
19368 (store_immediate_info::store_immediate_info): Same.
19369 (merged_store_group::apply_stores): Same.
19370 (get_location_for_stmts): Same.
19371 * gimple-ssa-strength-reduction.c: Same.
19372 * gimple-ssa-warn-alloca.c: Same.
19373 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
19374 * godump.c (go_type_decl): Same.
19375 * hash-map-tests.c (test_map_of_strings_to_int): Same.
19376 * hash-map.h: Same.
19377 * hash-set-tests.c (test_set_of_strings): Same.
19378 * hsa-brig.c: Same.
19379 * hsa-common.h: Same.
19380 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
19381 * input.c (assert_loceq): Same.
19384 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
19385 * ipa-fnsummary.h: Same.
19386 * ipa-inline.h: Same.
19387 * ipa-prop.h: Same.
19388 * ipa-split.c (visit_bb): Same.
19389 * ira-int.h (minmax_set_iter_next): Same.
19390 * loop-invariant.c: Same.
19392 * lra-eliminations.c: Same.
19394 * lra-lives.c (mark_regno_dead): Same.
19395 * lra-remat.c: Same.
19396 * lra-spills.c: Same.
19397 * lto-streamer.h: Same.
19398 * mem-stats.h: Same.
19399 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
19400 * omp-low.c (omp_clause_aligned_alignment): Same.
19401 * optabs-query.h (get_vcond_eq_icode): Same.
19403 * opts.c (wrap_help): Same.
19404 * poly-int.h: Same.
19405 * predict.c (predict_paths_leading_to_edge): Same.
19406 * pretty-print.h: Same.
19407 * profile-count.h: Same.
19409 * read-rtl-function.c: Same.
19412 * regrename.c: Same.
19413 * regrename.h: Same.
19415 * rtl-iter.h: Same.
19416 * rtl.h (costs_add_n_insns): Same.
19418 * sched-int.h: Same.
19419 * sel-sched-ir.h: Same.
19420 * selftest.h: Same.
19421 * sese.h (vec_find): Same.
19423 * target-globals.h: Same.
19424 * tree-affine.c (aff_combination_find_elt): Same.
19425 * tree-affine.h: Same.
19426 * tree-data-ref.h: Same.
19427 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
19428 * tree-predcom.c: Same.
19429 * tree-scalar-evolution.c (find_var_scev_info): Same.
19430 * tree-ssa-alias.h: Same.
19431 * tree-ssa-ccp.c: Same.
19432 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
19433 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
19434 (rewrite_mem_refs): Same.
19435 (execute_sm_if_changed): Same.
19436 (hoist_memory_references): Same.
19437 * tree-ssa-loop-ivopts.c (operator<=): Same.
19438 * tree-ssa-loop.h: Same.
19439 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
19440 * tree-ssa-structalias.c: Same.
19441 * tree-switch-conversion.h (cluster::cluster): Same.
19442 (simple_cluster::simple_cluster): Same.
19443 * tree-vect-patterns.c (type_conversion_p): Same.
19444 * tree-vectorizer.c (dump_stmt_cost): Same.
19445 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
19446 * tree.c (protected_set_expr_location): Same.
19447 * tree.h (desired_pro_or_demotion_p): Same.
19448 (fndecl_built_in_p): Same.
19449 * unique-ptr-tests.cc: Same.
19450 * var-tracking.c (delete_variable_part): Same.
19451 * varasm.c (assemble_real): Same.
19452 (tree_output_constant_def): Same.
19454 * wide-int-bitmask.h: Same.
19455 * wide-int.h (decompose): Same.
19457 2019-07-09 Richard Biener <rguenther@suse.de>
19459 PR tree-optimization/91114
19460 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
19461 find a vector type isn't fatal.
19463 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19465 * config/aarch64/aarch64-simd.md
19466 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
19467 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
19468 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
19469 (*aarch64_crypto_aese_fused,
19470 *aarch64_crypto_aesd_fused): Update to new definition.
19471 * config/aarch64/aarch64.c
19472 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
19474 2019-07-09 Richard Biener <rguenther@suse.de>
19476 * gimple-match.h (gimple_match_op::resimplify): New.
19477 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
19478 gimple_resimplify4, gimple_resimplify5): Remove.
19479 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
19480 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
19482 (gimple_match_op::resimplify): New.
19483 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
19484 according to availability. Use gimple_match_op::resimplify.
19486 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
19488 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
19490 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
19492 * config/arm/crypto.md:
19493 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
19494 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
19495 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
19496 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
19498 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
19499 * config/arm/aarch-common-protos.h
19500 (aarch_crypto_can_dual_issue): Remove.
19501 * config/arm/aarch-common.c
19502 (aarch_crypto_can_dual_issue): Likewise.
19503 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
19504 * config/arm/cortex-a53.md: Likewise.
19505 * config/arm/cortex-a57.md: Likewise.
19506 * config/arm/iterators.md:
19507 (CRYPTO_BINARY): Redefine.
19508 (CRYPTO_UNARY): Removed.
19509 (CRYPTO_AES, CRYPTO_AESMC): New.
19511 2019-07-09 Richard Biener <rguenther@suse.de>
19513 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
19514 (vn_reference_lookup_3): If the main ref has no access path recorded
19515 but orig_ref has use it to do access-path based disambiguation.
19516 (vn_reference_lookup_pieces): Adjust.
19517 (vn_reference_lookup): Pass down original ref if we valueized.
19519 2019-07-09 Martin Liska <mliska@suse.cz>
19521 * doc/extend.texi: Document influence on loop
19524 2019-07-09 Martin Liska <mliska@suse.cz>
19526 * lto-compress.c (lto_normalized_zstd_level): Do not use
19527 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
19528 of libzstd. One can use 0 as a default compression level.
19530 2019-07-09 Martin Liska <mliska@suse.cz>
19532 * doc/invoke.texi: Add link from -fprofile-dir option.
19533 Use better wording for 'gcno filename'.
19535 2019-07-08 Martin Sebor <msebor@redhat.com>
19537 PR middle-end/71924
19538 PR middle-end/90549
19539 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
19541 (args_loc_t): New type.
19542 (args_loc_t, locmap_t): same.
19543 (diag_returned_locals): New function.
19544 (is_addr_local): Same.
19545 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
19546 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
19547 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
19549 2019-07-08 Jakub Jelinek <jakub@redhat.com>
19551 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
19552 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
19553 and casts in offset when different, both through gimple stmts
19554 and through trees. Rewritten using loops to minimize code duplication
19557 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
19559 * emit-rtl.c (set_insn_locations): New function moved from...
19560 * function.c (set_insn_locations): ...here.
19561 * ira-emit.c (emit_moves): Propagate location of the first instruction
19562 to the inserted move instructions.
19563 * reg-stack.c (compensate_edge): Set the location if the sequence is
19564 inserted on the edge.
19565 * rtl.h (set_insn_locations): Declare.
19567 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19569 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
19570 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
19573 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
19575 PR rtl-optimization/88233
19576 * common.opt (fsplit-wide-types-early): New option.
19577 * common/config/rs6000/rs6000-common.c
19578 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
19580 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
19581 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
19582 flag_split_wide_types_early.
19583 (pass_data_lower_subreg3): New.
19584 (pass_lower_subreg3): New.
19585 (make_pass_lower_subreg3): New.
19586 * passes.def (pass_lower_subreg2): Move after the loop passes.
19587 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
19588 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
19589 the pass pipeline; its previous place is taken by ...
19590 (make_pass_lower_subreg3): ... this.
19592 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19594 * config/s390/s390.c (s390_shift_truncation_mask): Define.
19595 (TARGET_SHIFT_TRUNCATION_MASK): Define.
19597 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
19599 * config/s390/constraints.md: Add new jsc constraint.
19600 * config/s390/predicates.md: New predicates.
19601 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
19602 * config/s390/s390.c (s390_valid_shift_count): New function.
19603 (print_shift_count_operand): Use s390_valid_shift_count.
19604 (print_operand): Likewise.
19605 * config/s390/s390.md: Use new predicate.
19606 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
19607 * config/s390/vector.md: Use new predicate.
19609 2019-07-08 Andrew Waterman <andrew@sifive.com>
19610 Jim Wilson <jimw@sifive.com>
19612 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
19613 bitsize instead of BITS_PER_WORD.
19615 2019-07-08 Martin Liska <mliska@suse.cz>
19617 * collect2.c (defined): Revert to before r254460.
19618 (scan_prog_file): Revert to before r254460.
19620 2019-07-08 Richard Biener <rguenther@suse.de>
19622 PR tree-optimization/83518
19623 * tree-ssa-sccvn.c: Include splay-tree.h.
19624 (struct pd_range, struct pd_data): New.
19625 (struct vn_walk_cb_data): Add data to track partial definitions.
19626 (vn_walk_cb_data::~vn_walk_cb_data): New.
19627 (vn_walk_cb_data::push_partial_def): New.
19628 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
19629 (vn_reference_lookup_2): When partial defs are registered give up.
19630 (vn_reference_lookup_3): Track partial defs for memset and
19631 constructor zeroing and for defs from constants.
19633 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19635 * doc/install.texi (bootstrap-Og): Document.
19637 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
19639 * config/riscv/pic.md (*local_pic_load_s<mode>)
19640 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
19641 referenced by <mode>, giving...
19642 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
19643 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
19644 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
19645 use <X:MODE> for the mode attribute.
19647 2019-07-07 Jeff Law <law@redhat.com>
19649 PR tree-optimization/91090
19650 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
19651 in handling of ranges to simplify switch statements.
19653 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19655 * config/darwin.c (darwin_override_options): Make a final check on PIC
19658 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
19660 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
19661 on for kernel code.
19663 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19666 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
19667 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
19668 instead of matching them to "l" output operands.
19670 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
19672 * config/mips/mips.c (mips_split_move): Zero-initialize addr
19673 and check whether addr.reg is nonnull before using it.
19675 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19677 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
19678 ctx->for_simd_scan_phase simd copy the outer var to the privatized
19679 variable(s). For conditional lastprivate look through outer
19680 GIMPLE_OMP_SCAN context.
19681 (lower_omp_1): For conditional lastprivate look through outer
19682 GIMPLE_OMP_SCAN context.
19684 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
19685 member to combined_into_simd_safelen1.
19686 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
19687 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
19688 clauses if ctx->combined_into_simd_safelen1 put statements after the
19689 predicate conditionalized block rather than into it.
19691 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19693 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
19695 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
19696 Make the choice of <mode> explicit, giving...
19697 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
19699 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19701 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
19702 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
19704 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
19705 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
19706 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
19707 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
19708 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
19709 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
19710 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
19711 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
19712 (*avx512f_scatterdi<mode>): Likewise.
19713 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
19715 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19717 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
19718 specify the mode iterator referenced by <mode>, giving...
19719 (*push1_h8300hs_<QHI:mode>): ...this.
19721 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19723 * config/gcn/gcn-valu.md
19724 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
19725 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
19726 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
19727 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
19728 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
19729 but using the _exec comparison patterns.
19730 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
19731 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
19732 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
19733 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
19734 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
19735 but using the _exec comparison patterns.
19737 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
19739 * config/arm/sync.md
19740 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
19741 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
19742 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
19743 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
19744 <SIDI:cas_cmp_str>.
19746 2019-07-06 Jakub Jelinek <jakub@redhat.com>
19748 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
19749 (maybe_lookup_ctx): Add forward declaration.
19750 (omp_find_scan): Likewise. Walk into body of simd if composited
19751 with worksharing loop.
19752 (scan_omp_simd_scan): New function.
19753 (scan_omp_1_stmt): Call it.
19754 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
19755 ctx->for_simd_scan_phase.
19756 (lower_rec_input_clauses): Do much less work for inscan reductions
19757 in ctx->for_simd_scan_phase is_simd regions.
19758 (lower_omp_scan): Set is_simd also on simd constructs composited
19759 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
19760 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
19761 emit their body after in simd constructs composited with worksharing
19763 (lower_omp_for_scan): Handle worksharing loop composited with simd.
19765 * omp-low.c (omp_find_scan): Make static.
19766 (lower_omp_for_scan): Fix order of merge arguments in input phase of
19767 the second loop, var2 represents the first partial sum and so needs
19768 to go before rprivb[ivar].
19770 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
19772 * config/rs6000/rs6000-logue.c: Remove unused code.
19774 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19776 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
19778 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
19781 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
19782 check with a frame laid out check.
19784 2019-07-05 Richard Biener <rguenther@suse.de>
19786 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
19787 when comparing against a store with possibly the same value.
19789 2019-07-05 Richard Biener <rguenther@suse.de>
19791 PR tree-optimization/91091
19792 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
19793 (walk_non_aliased_vuses): Likewise.
19794 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
19795 (get_continuation_for_phi): New tbaa_p parameter and pass
19797 (walk_non_aliased_vuses): Likewise.
19798 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
19799 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
19800 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
19802 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
19803 (adjust_offsets_for_equal_base_address): New function.
19804 (vn_reference_lookup_3): Use it to catch more base equivalences.
19805 Handle and pass down tbaa_p flag.
19806 (vn_reference_lookup_pieces): Adjust.
19807 (vn_reference_lookup): Remove alias-set altering, instead pass
19808 down false as tbaa_p.
19810 2019-07-05 Richard Biener <rguenther@suse.de>
19812 PR tree-optimization/91091
19813 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
19814 accesses can happen with -fno-strict-aliasing.
19816 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
19818 * tree-ssa-alias.c (alias_stats): Add
19819 nonoverlapping_component_refs_since_match_p_must_overlap.
19820 (dump_alias_stats): Print it.
19821 (nonoverlapping_component_refs_since_match_p): Add early exit.
19822 (nonoverlapping_component_refs_p): Do not account early exit.
19824 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19826 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
19827 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
19828 (emit_eh_dispatch): Delete.
19829 (lower_catch): Emit the eh_dispatch manually and set the location of
19830 the first catch statement onto it.
19831 (lower_eh_filter): Emit the eh_dispatch manually and set location.
19832 (lower_eh_dispatch): Propagate location.
19833 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
19834 (eliminate_build): Likewise.
19836 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
19838 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
19839 phi nodes if possible.
19840 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
19841 location info on the newly created statement.
19842 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
19843 newly created increment if needed.
19845 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19847 PR middle-end/78884
19848 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
19849 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
19850 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
19851 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
19852 ctx->add_safelen1 is set.
19854 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
19855 GOMP_loop_start at the start of second worksharing loop in a scan.
19856 For nowait, don't emit GOMP_loop_end_nowait at the end of first
19857 worksharing loop in a scan even if there are conditional lastprivates,
19858 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
19860 2019-07-04 Jan Hubicka <jh@suse.cz>
19862 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
19863 Fix check for match in the ref walk.
19865 2019-07-04 Martin Liska <mliska@suse.cz>
19867 * tree-ssa-loop-niter.c
19868 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
19869 (estimate_numbers_of_iterations):
19870 Support __builtin_expect_with_probability for analysis
19871 of # of loop iterations.
19873 2019-07-04 Alexandre Oliva <oliva@adacore.com>
19875 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
19876 * except.c: Likewise.
19877 * expr.c (expand_expr_real_1): Reject it.
19878 * gimplify.c (gimplify_expr): Gimplify it, within
19880 * tree-dump.c (dequeue_and_dump): Dump it.
19881 * tree-pretty-print.c (dump_generic_node): Likewise.
19882 * tree.c (block_may_fallthru): Handle it.
19883 * tree.def (EH_ELSE_EXPR): Introduce it.
19884 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
19885 with GIMPLE_EH_ELSE as try/finally/else.
19887 2019-07-04 Richard Biener <rguenther@suse.de>
19890 * tree-pass.h (execute_all_ipa_transforms): Add a flag
19891 parameter whether to disable GC collection.
19892 * passes.c (execute_one_ipa_transform_pass): Likewise, and
19894 (execute_all_ipa_transforms): Likewise and pass it down.
19895 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
19896 collection from applying IPA transforms.
19897 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
19898 from applying IPA transforms.
19900 2019-07-04 Richard Biener <rguenther@suse.de>
19902 PR tree-optimization/90911
19903 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
19904 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
19905 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
19906 scalar_loop_scaling.
19907 (vect_transform_loop): Scale scalar loop profile if needed.
19908 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
19909 the loop copy from if-conversion adjust edge probabilities
19910 and scale the vectorized loop body profile, queue the scalar
19911 profile for updating after peeling.
19913 2019-07-04 Jan Hubicka <jh@suse.cz>
19915 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
19916 parameters; return early for must-alias.
19917 (indirect_ref_may_alias_decl_p): Likewise; when establishing
19918 outer types match, try nonoverlapping_component_refs
19919 if must-alias is not obvious.
19920 (indirect_refs_may_alias_p): Likewise.
19921 (refs_may_alias_p_2): Likewise.
19923 2019-07-04 Richard Biener <rguenther@suse.de>
19925 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
19927 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
19929 (struct vn_walk_cb_data): New callback data struct.
19930 (vn_reference_lookup_2): Adjust.
19931 (vn_reference_lookup_3): Likewise.
19932 (vn_reference_lookup_pieces): Likewise.
19933 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
19934 (visit_reference_op_load): Adjust.
19936 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19938 PR tree-optimization/91063
19939 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
19940 stmt from stmts sequence before calling vect_init_vector_1.
19943 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19946 * fwprop.c (reg_single_def_p): New function.
19947 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
19948 (forward_propagate_into): New parameter reg_prop_only
19949 with default value false.
19950 Propagate def's src into loop only if SET_SRC and SET_DEST
19951 of def_set have single definitions.
19952 Likewise if reg_prop_only is set to true.
19953 (fwprop): New param fwprop_addr_p.
19954 Integrate fwprop_addr into fwprop.
19955 (fwprop_addr): Remove.
19956 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
19958 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
19959 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
19960 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
19962 2019-07-04 Jakub Jelinek <jakub@redhat.com>
19964 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
19965 in worksharing loop scans.
19967 PR tree-optimization/91074
19968 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
19971 PR rtl-optimization/90756
19972 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
19975 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
19977 * config/aarch64/aarch64.md: Remove redundant constraints from
19978 define_expand but keep some patterns untouched if they are
19979 specially selected by TARGET_SECONDARY_RELOAD hook.
19980 * config/aarch64/aarch64-sve.md: Likewise.
19981 * config/aarch64/atomics.md: Remove redundant constraints from
19983 * config/aarch64/aarch64-simd.md: Likewise.
19985 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19987 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
19988 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
19989 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
19991 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
19994 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
19996 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
19997 (STARTFILE_SPEC): Split crt3 into a separate spec.
19998 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
19999 (DARWIN_CRT2_SPEC): New.
20000 (DARWIN_CRT3_SPEC): New.
20001 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
20002 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
20003 (DARWIN_CRT3_SPEC): New.
20005 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
20007 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
20008 Change the RTL attribute "length" from "4" to "*" to allow the
20009 length attribute to be adjusted automatically for prefixed load,
20010 store, and add immediate instructions.
20011 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
20013 (extendsi<mode>2, EXTSI iterator): Likewise.
20014 (movsi_internal1): Likewise.
20015 (movsi_from_sf): Likewise.
20016 (movdi_from_sf_zero_ext): Likewise.
20017 (mov<mode>_internal): Likewise.
20018 (movcc_internal1, QHI iterator): Likewise.
20019 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
20020 (movsf_from_si): Likewise.
20021 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
20022 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
20023 (mov<mode>, FMOVE128 iterator): Likewise.
20024 (movdi_internal64): Likewise.
20025 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
20027 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
20028 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
20029 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
20030 (vsx_splat_v4sf): Likewise.
20032 2019-07-03 Mark Wielaard <mark@klomp.org>
20035 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
20036 DW_AT_addr_base if there is actually a .debug_addr section with
20038 (output_addr_table): Add DWARF5 table header generation here after
20039 checking there are actually any addresses from...
20040 (dwarf2out_finish): ...here.
20042 2019-07-03 Richard Biener <rguenther@suse.de>
20044 PR middle-end/91069
20045 * match.pd (vec_perm -> bit_insert): Fix element read from
20048 2019-07-03 Martin Liska <mliska@suse.cz>
20050 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
20051 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
20053 * generic-match-head.c: Include dbgcnt.h.
20054 * gimple-match-head.c: Likewise.
20056 2019-07-03 Martin Liska <mliska@suse.cz>
20058 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
20059 (GCOV_COUNTER_V_TOPN): New.
20060 (GCOV_COUNTER_V_INDIR): Use _topn.
20061 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
20062 (GCOV_TOPN_VALUES): New.
20063 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
20064 (GCOV_TOPN_VALUES_COUNTERS): New.
20065 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
20067 (gimple_init_gcov_profiler): Rename variables from one_value
20069 (gimple_gen_one_value_profiler): Remove.
20070 (gimple_gen_topn_values_profiler): New function.
20071 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
20072 names instead of SINGLE_VALUE.
20073 (stream_out_histogram_value): Likewise.
20074 (stream_in_histogram_value): Likewise.
20075 (get_most_common_single_value): Likewise.
20076 (gimple_divmod_fixed_value_transform): Likewise.
20077 (gimple_stringops_transform): Likewise.
20078 (gimple_divmod_values_to_profile): Likewise.
20079 (gimple_stringops_values_to_profile): Likewise.
20080 (gimple_find_values_to_profile): Likewise.
20081 * value-prof.h (enum hist_type): Rename to TOPN.
20082 (gimple_gen_one_value_profiler): Remove.
20083 (gimple_gen_topn_values_profiler): New.
20085 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
20087 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
20088 if it has the DW_AT_data_member_location attribute.
20090 2019-07-03 Richard Biener <rguenther@suse.de>
20092 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
20095 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
20097 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
20098 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
20099 (tlsdesc_small_sve_<mode>): Likewise.
20101 2019-07-03 Martin Liska <mliska@suse.cz>
20103 * Makefile.in: Define ZSTD_LIB.
20104 * common.opt: Adjust compression level
20105 to support also zstd levels.
20106 * config.in: Regenerate.
20107 * configure: Likewise.
20108 * configure.ac: Add --with-zstd and --with-zstd-include options
20110 * doc/install.texi: Mention zstd dependency.
20111 * gcc.c: Print supported LTO compression algorithms.
20112 * lto-compress.c (lto_normalized_zstd_level): Likewise.
20113 (lto_compression_zstd): Likewise.
20114 (lto_uncompression_zstd): Likewise.
20115 (lto_end_compression): Dispatch in between zlib and zstd.
20116 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
20117 (lto_uncompression_zlib): Make it static.
20118 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
20119 * lto-section-in.c (lto_get_section_data): Pass info
20120 about used compression.
20121 * lto-streamer-out.c: By default use zstd when possible.
20122 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
20123 (TV_IPA_LTO_COMPRESS): Likewise for compression.
20125 2019-07-03 Martin Liska <mliska@suse.cz>
20127 * lto-section-in.c (lto_get_section_data): Add "lto" section.
20128 * lto-section-out.c (lto_destroy_simple_output_block): Never
20129 compress LTO_section_lto section.
20130 * lto-streamer-out.c (produce_asm): Do not set major_version
20132 (lto_output_toplevel_asms): Likewise.
20133 (produce_lto_section): New function.
20134 (lto_output): Call produce_lto_section.
20135 (lto_write_mode_table): Do not set major_version and
20137 (produce_asm_for_decls): Likewise.
20138 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
20140 (struct lto_header): Remove.
20141 (struct lto_section): New struct.
20142 (struct lto_simple_header): Do not inherit from lto_header.
20143 (struct lto_file_decl_data): Add lto_section_header field.
20145 2019-07-03 Martin Liska <mliska@suse.cz>
20147 * lra-eliminations.c (eliminate_regs_in_insn): Remove
20149 * reg-stack.c (check_asm_stack_operands): Likewise.
20150 * tree-ssa-structalias.c (create_function_info_for): Likewise.
20151 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
20152 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
20153 force_expand_binop.
20155 2019-07-03 Martin Liska <mliska@suse.cz>
20157 PR tree-optimization/90892
20158 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
20159 in string constants.
20161 2019-07-03 Martin Liska <mliska@suse.cz>
20163 PR middle-end/90899
20164 * multiple_target.c (create_dispatcher_calls): Add to comdat
20165 group only if set for ifunc.
20167 2019-07-03 Martin Liska <mliska@suse.cz>
20170 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
20171 Define local_object_name in outer scope in order to handle
20172 use-after-scope issue.
20174 2019-07-03 Martin Liska <mliska@suse.cz>
20176 * common.opt: Add fprofile-note.
20177 * coverage.c (coverage_init): Append the option
20179 * doc/invoke.texi: Document -fprofile-note.
20181 2019-07-03 Jakub Jelinek <jakub@redhat.com>
20183 PR tree-optimization/91033
20184 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
20185 vect_analyze_data_refs): Add bool * arguments.
20186 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
20187 if failure is due to scatter/gather, set *fatal to false if non-NULL.
20188 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
20189 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
20190 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
20191 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
20192 vect_analyze_data_refs caller.
20194 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
20196 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
20197 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
20198 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
20199 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
20200 OMP_CLAUSE__SCANTEMP_ entry.
20201 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
20202 * tree-pretty-print.c (dump_omp_clause): Likewise.
20203 * tree-nested.c (convert_nonlocal_omp_clauses,
20204 convert_local_omp_clauses): Likewise.
20205 * omp-general.h (struct omp_for_data): Add have_scantemp and
20206 have_nonctrl_scantemp members.
20207 * omp-general.c (omp_extract_for_data): Initialize them.
20208 * omp-low.c (struct omp_context): Add scan_exclusive member.
20209 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
20210 result again with GF_OMP_FOR_KIND_MASK. Initialize also
20211 ctx->scan_exclusive.
20212 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
20213 of !ctx->scan_inclusive.
20214 (lower_rec_input_clauses): Simplify gimplification of dtors using
20215 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
20216 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
20217 loops. Don't add barrier for reduction_omp_orig_ref if
20218 ctx->scan_??xclusive.
20219 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
20220 (lower_omp_scan): Use ctx->scan_exclusive instead
20221 of !ctx->scan_inclusive. Handle worksharing loops with inscan
20222 reductions. Use new_vard != new_var instead of repeated
20223 omp_is_reference calls.
20224 (omp_find_scan, lower_omp_for_scan): New functions.
20225 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
20227 * omp-expand.c (expand_omp_scantemp_alloc): New function.
20228 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
20229 and fd->have_scantemp.
20231 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
20232 on worksharing loop propagate it as shared clause to containing
20235 * omp-expand.c (expand_omp_for_static_nochunk,
20236 expand_omp_for_static_chunk): For nowait worksharing loop with
20237 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
20240 2019-07-02 qing zhao <qing.zhao@oracle.com>
20242 PR preprocessor/90581
20243 * doc/cppopts.texi: Add document for -fmax-include-depth.
20244 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
20246 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
20248 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
20249 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
20250 (mmx_packssdw): Ditto.
20251 (mmx_punpckhbw): Ditto.
20252 (mmx_punpcklbw): Ditto.
20253 (mmx_punpckhwd): Ditto.
20254 (mmx_punpcklwd): Ditto.
20255 (mmx_punpckhdq): Ditto.
20256 (mmx_punpckldq): Ditto.
20257 (*vec_dupv4hi): Ditto.
20258 (*vec_dupv2si): Ditto.
20259 (mmx_pmovmskb): Ditto.
20260 * config/i386/sse.md (sse_cvtpi2ps): Use
20261 TARGET_SSE2 && SSE_REG_P in split condition.
20262 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
20263 TARGET_SSSE3 && SSE_REGNO_P in split condition.
20264 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
20265 (ssse3_pshufbv8qi3): Ditto.
20266 (ssse3_palignrdi): Ditto.
20268 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
20270 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
20271 with inlined save and restore.
20273 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
20275 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
20276 to be inserted on single successor edge of the entry block. Then call
20277 commit_edge_insertions instead of inserting the instructions manually.
20278 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
20279 RTL expansion and rebuild jump labels chain.
20281 2019-07-02 Richard Biener <rguenther@suse.de>
20283 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
20285 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20287 * tree.c (build_common_tree_nodes): Initialize them.
20288 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
20289 Make declarations comments.
20290 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
20291 chrec_known): Remove definitions.
20292 (initialize_scalar_evolutions_analyzer): Remove.
20293 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
20294 * tree-streamer.c (preload_common_nodes): Do not preload
20295 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
20297 2019-07-02 Jan Hubicka <jh@suse.cz>
20299 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
20302 2019-07-02 Jan Hubicka <jh@suse.cz>
20304 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
20306 (nonoverlapping_component_refs_since_match_p): ... this one;
20307 handle also non-decl bases; return -1 if search gave up.
20308 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
20309 nonoverlapping_component_refs_of_decl_p_no_alias to
20310 nonoverlapping_component_refs_since_match_p_may_alias,
20311 nonoverlapping_component_refs_since_match_p_no_alias.
20312 (dump_alias_stats): Update dumping.
20313 (aliasing_matching_component_refs_p): Break out from ...;
20314 dispatch to nonoverlapping_component_refs_for_decl_p
20315 and nonoverlapping_component_refs_since_match_p.
20316 (aliasing_component_refs_p): ... here; call
20317 nonoverlapping_component_refs_p in scenarios where we can not
20318 precisely determine base match.
20319 (decl_refs_may_alias_p): Use
20320 nonoverlapping_component_refs_since_match_p.
20321 (indirect_ref_may_alias_decl_p): Do not call
20322 nonoverlapping_component_refs_p.
20323 (indirect_refs_may_alias_p): Likewise.
20325 2019-07-02 Jan Hubicka <jh@suse.cz>
20327 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
20328 to clobber of return value.
20330 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20332 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
20333 for is_neon_type instructions that have not already been categorized.
20335 2019-07-02 Richard Biener <rguenther@suse.de>
20337 PR tree-optimization/58483
20338 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
20339 for MEM_REF base hashing.
20340 (equal_mem_array_ref_p): Likewise for base comparison.
20342 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20344 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
20345 parameterized name.
20346 (signbit<mode>2): Use that name. Simplify.
20348 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
20350 PR middle-end/66726
20351 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
20352 Tune heuristic from PR71016 to allow MIN / MAX.
20354 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20356 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
20357 parameterized name.
20358 (abs<mode>2): Use that name. Simplify.
20360 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20362 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
20363 parameterized name.
20364 (neg<mode>2): Use that name. Simplify.
20366 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20368 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
20370 (abs<mode>2): Use that name. Simplify.
20372 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20374 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
20376 (neg<mode>2): Use that name. Simplify.
20378 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
20380 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
20381 ("enabled" attribute): Handle sse_noavx isa attribute.
20382 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
20383 Use TARGET_SSE && SSE_REGNO_P in split condition.
20384 (*vec_dupv2sf): Ditto.
20386 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20388 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
20390 (floatsi<mode>2): Use that name. Simplify.
20392 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20394 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
20395 parameterized name.
20396 (extenddf<mode>2_vsx): Make this a parameterized name.
20397 (extenddf<mode>2): Use those names. Simplify.
20399 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20401 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
20403 (eh_return): Use that name. Simplify.
20405 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20407 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
20408 (doloop_end): Use that name. Simplify.
20410 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20412 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
20413 parameterized name.
20414 (indirect_jump): Use that name. Simplify.
20416 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20418 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
20419 parameterized name.
20420 (abs<mode>2): Use that name. Simplify.
20422 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20424 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
20425 parameterized name.
20426 (fix_trunc<mode>si2): Use that name. Simplify.
20428 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20430 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
20431 (allocate_stack): Use that name. Simplify.
20433 2019-07-01 Martin Sebor <msebor@redhat.com>
20435 PR middle-end/90923
20436 * hash-map.h (hash_map::put): On insertion invoke element ctor.
20437 (hash_map::get_or_insert): Same. Reformat comment.
20438 * hash-set.h (hash_set::add): On insertion invoke element ctor.
20439 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20440 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
20441 * hash-table.h (hash_table::operator=): Prevent copy assignment.
20442 (hash_table::hash_table (const hash_table&)): Use copy ctor
20443 instead of assignment to copy elements.
20445 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
20446 John David Anglin <danglin@gcc.gnu.org>
20449 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
20450 using saved frame pointer.
20452 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
20454 PR middle-end/64242
20455 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
20456 Add frame clobber and schedule blockage.
20458 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
20460 * doc/invoke.texi (Link Options): Further editorial changes to
20461 -flinker-output docs.
20463 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
20465 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
20466 Load both operands of a PLUS into registers separately.
20468 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
20470 * config/s390/vector.md: Fix shift count operand printing.
20472 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20474 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
20476 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20478 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
20479 Use recog_data to test for an output operand.
20481 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20483 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
20484 exclude any others that are disparaged or that are bound to need
20486 (ira_get_dup_out_num): Expand comment.
20488 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20490 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
20491 constraint string for each operand/alternative combo. Only handle
20492 '%' at the start of constraint strings, and look for it outside
20495 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
20497 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
20498 alternative_mask instead of HARD_REG_SET to represent a
20499 bitmask of alternatives.
20500 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
20501 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
20503 2019-07-01 Martin Liska <mliska@suse.cz>
20505 * edit-context.c (test_applying_fixits_unreadable_file): Do not
20506 use () for a constructor call.
20507 (test_applying_fixits_line_out_of_range): Likewise.
20508 * ggc-page.c (alloc_page): Use (void *) for %p printf format
20510 (free_page): Likewise.
20512 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
20514 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
20515 parameter names to match usage (no functional change).
20516 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
20518 2019-07-01 Richard Biener <rguenther@suse.de>
20520 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
20522 (pass_fre::execute): Honor it.
20523 * passes.def: Adjust pass_fre invocations to allow iterating,
20524 add non-iterating pass_fre before late threading/dom.
20526 2019-07-01 Richard Biener <rguenther@suse.de>
20528 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
20529 TARGET_MEM_REF handling to also handle address-taken ones.
20531 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
20533 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20534 hardware attributes): Document avx512vp2intersect.
20536 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20538 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
20539 (abs<mode>2): New expander.
20540 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
20541 Use CODE_FOR_ssse3_absv8qi2.
20542 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
20543 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
20545 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20547 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
20548 to sse, sse_noavx and avx. Update all uses.
20550 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
20552 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
20553 (*mmx_<plusminus_insn><mode>3): Ditto.
20554 (*mmx_mulv4hi3"): Ditto.
20555 (*mmx_smulv4hi3_highpart): Ditto.
20556 (*mmx_umulv4hi3_highpart): Ditto.
20557 (*mmx_pmaddwd): Ditto.
20558 (*sse2_umulv1siv1di3): Ditto.
20559 (*mmx_<code>v4hi3): Ditto.
20560 (*mmx_<code>v8qi3): Ditto.
20561 (mmx_ashr<mode>3): Ditto.
20562 ("mmx_<shift_insn><mode>3): Ditto.
20563 (*mmx_eq<mode>3): Ditto.
20564 (mmx_gt<mode>3): Ditto.
20565 (mmx_andnot<mode>3): Ditto.
20566 (*mmx_<code><mode>3): Ditto.
20567 (*mmx_pinsrw): Ditto.
20568 (*mmx_pextrw): Ditto.
20569 (mmx_pshufw_1): Ditto.
20570 (*mmx_uavgv8qi3): Ditto.
20571 (*mmx_uavgv4hi3): Ditto.
20572 ("mmx_psadbw): Ditto.
20573 * config/i386/sse.md (sse_cvtps2pi): Ditto.
20574 (sse_cvttps2pi): Ditto.
20575 (ssse3_pmaddubsw): Ditto.
20576 (*ssse3_pmulhrswv4hi3): Ditto.
20577 (ssse3_psign<mode>3): Ditto.
20579 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
20581 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
20582 adjustment for bit-fields to all aggregate types.
20584 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
20586 * config/rs6000/predicates.md (pcrel_address): Use
20587 SYMBOL_REF_LOCAL_P to determine if a label is local.
20588 (pcrel_external_address): New predicate.
20589 (non_prefixed_mem_operand): Delete, predicate not used.
20590 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
20591 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
20593 (SYMBOL_REF_PCREL_P): Likewise.
20596 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
20598 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
20599 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
20600 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
20602 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20604 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
20605 override on extra_headers.
20607 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
20609 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
20610 * config/darwin-driver.c (darwin_default_min_version): Remove newline
20612 (darwin_driver_init): Likewise.
20614 2019-06-28 Jan Beulich <jbeulich@suse.com>
20616 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20617 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
20618 Eliminate redundant alternative.
20620 2019-06-28 Jan Beulich <jbeulich@suse.com>
20622 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
20623 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
20624 Use vector_operand.
20626 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
20628 * config/arc/arc.c (arc_rtx_costs): All short instructions are
20629 having a lower cost regardless of the speed option.
20631 2019-06-28 Jan Beulich <jbeulich@suse.com>
20633 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
20634 vector_operand plus, on both alternatives, "Bm" constraint.
20636 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
20638 * config/arm/arm.md: Remove redundant constraints from
20639 define_expand but leave reload_inm and reload_outm patterns
20640 untouched since they need special constraints to work.
20641 * config/arm/arm-fixed.md: Remove redundant constraints from
20643 * config/arm/iwmmxt.md: Likewise.
20644 * config/arm/neon.md: Likewise.
20645 * config/arm/sync.md: Likewise.
20646 * config/arm/thumb1.md: Likewise.
20647 * config/arm/vec-common.md: Likewise.
20649 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
20651 * doc/install.texi: Document --disable-tm-clone-registry.
20653 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20656 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
20659 PR tree-optimization/91010
20660 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
20661 return true. Otherwise, don't call operand_equal_p if offset1 or
20662 offset2 is NULL and just return false.
20664 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20666 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
20667 user-specified float mode choice for kernel mode code.
20669 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20671 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
20674 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
20676 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
20677 use longcall for 64b code.
20679 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
20681 * builtins.c (get_memory_rtx): Fix comment.
20682 * optabs.def (movmem_optab): Change to cpymem_optab.
20683 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
20684 (emit_block_move_hints): Change movmem to cpymem.
20685 * defaults.h: Change movmem to cpymem.
20686 * targhooks.c (get_move_ratio): Change movmem to cpymem.
20687 (default_use_by_pieces_infrastructure_p): Ditto.
20688 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
20689 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
20691 * config/aarch64/aarch64.h: Change movmem to cpymem.
20692 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
20693 * config/alpha/alpha.h: Change movmem to cpymem in comment.
20694 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
20696 * config/arc/arc-protos.h: Change movmem to cpymem.
20697 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
20698 * config/arc/arc.h: Change movmem to cpymem in comment.
20699 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
20700 * config/arm/arm-protos.h: Change movmem to cpymem in names.
20701 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
20702 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
20703 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
20704 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
20705 * config/avr/avr-protos.h: Change movmem to cpymem.
20706 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
20707 avr_out_movmem): Change movmem to cpymem.
20708 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
20709 Change movmem to cpymem.
20710 * config/bfin/bfin-protos.h: Change movmem to cpymem.
20711 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
20712 Change movmem to cpymem.
20713 * config/bfin/bfin.h: Change movmem to cpymem in comment.
20714 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
20715 * config/c6x/c6x-protos.h: Change movmem to cpymem.
20716 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
20717 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
20718 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
20719 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
20720 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
20721 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
20722 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
20723 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
20724 expand_small_cpymem_or_setmem,
20725 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
20726 expand_set_or_cpymem_constant_prologue,
20727 ix86_expand_set_or_cpymem): Change movmem to cpymem.
20728 * config/i386/i386-protos.h: Change movmem to cpymem.
20729 * config/i386/i386.h: Change movmem to cpymem in comment.
20730 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
20731 (setmem<mode>): Change expansion function name.
20732 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
20733 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
20734 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
20735 * config/m32c/m32c-protos.h: Change movmem to cpymem.
20736 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
20737 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
20738 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
20740 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
20741 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
20742 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
20743 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
20744 Change movmem to cpymem.
20745 * config/mips/mips.h: Change movmem to cpymem.
20746 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
20747 * config/nds32/nds32-memory-manipulation.c
20748 (nds32_expand_movmemsi_loop_unknown_size,
20749 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
20750 nds32_expand_movmemsi_unroll,
20751 nds32_expand_movmemsi): Change movmem to cpymem.
20752 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
20753 * config/nds32/nds32-protos.h: Change movmem to cpymem.
20754 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
20755 (pa_adjust_insn_length): Change call to compute_movmem_length.
20756 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
20757 movmemdi, movmemdi_prereload,
20758 movmemdi_postreload): Change movmem to cpymem.
20759 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
20760 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
20761 * config/riscv/riscv.c: Change movmem to cpymem in comment.
20762 * config/riscv/riscv.h: Change movmem to cpymem.
20763 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
20764 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
20765 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
20767 * config/s390/s390-protos.h: Change movmem to cpymem.
20768 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
20769 s390_expand_insv): Change movmem to cpymem.
20770 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
20771 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
20772 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
20773 * config/sparc/sparc.h: Change movmem to cpymem in comment.
20774 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
20775 for nonexistent function.
20776 * config/vax/vax.h: Change movmem to cpymem in comment.
20777 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
20778 * config/visium/visium.h: Change movmem to cpymem in comment.
20779 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
20780 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
20781 * doc/md.texi: Change movmem to cpymem and update description to match.
20782 * doc/rtl.texi: Change movmem to cpymem.
20783 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
20784 * doc/tm.texi: Regenerate.
20786 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
20788 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
20789 -fvariable-expansion-in-unroller by default.
20790 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
20793 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
20796 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20797 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20799 * config.gcc(rs6000-*-*): Define target_gtfiles.
20801 2019-06-27 Jan Hubicka <jh@suse.cz>
20803 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
20804 (add_type_duplicate): When odr hash is not allocated, to nothing.
20805 (odr_based_tbaa_p): New function.
20806 (set_type_canonical_for_odr_type): New function.
20807 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
20808 set_type_canonical_for_odr_type): New.
20809 * tree.c (gimple_canonical_types_compatible_p): ODR types with
20810 ODR based TBAA are not equivalent to non-ODR types.
20812 2019-06-27 Martin Liska <mliska@suse.cz>
20814 PR tree-optimization/90974
20815 PR rtl-optimization/90975
20816 PR rtl-optimization/90976
20818 PR tree-optimization/91017
20819 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
20821 * lra.c (lra_set_insn_recog_data): Remove a leftover from
20822 initial commit of IRA.
20823 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
20825 * tree-vect-loop.c (vect_create_epilog_for_reduction):
20826 Remove unused mode1.
20827 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
20830 2019-06-27 Jakub Jelinek <jakub@redhat.com>
20833 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
20834 instead of register_operand for operands[1], add m to its constraints
20835 if operands[2] uses "C" constraint. Ensure in condition that if
20836 operands[2] is not 0, then operands[1] is not a MEM. For last two
20837 alternatives, use unaligned loads instead of aligned if operands[1] is
20838 misaligned_operand.
20840 2019-06-27 Martin Liska <mliska@suse.cz>
20842 * asan.c (asan_emit_allocas_unpoison): Remove obviously
20844 * bt-load.c (move_btr_def): Likewise.
20845 * builtins.c (expand_builtin_apply_args_1): Likewise.
20846 (expand_builtin_apply): Likewise.
20847 * cfgexpand.c (expand_asm_stmt): Likewise.
20848 (construct_init_block): Likewise.
20849 * cfghooks.c (verify_flow_info): Likewise.
20850 * cfgloopmanip.c (remove_path): Likewise.
20851 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
20852 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
20853 * combine.c (simplify_if_then_else): Likewise.
20854 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
20855 (choose_basereg): Likewise.
20856 (ix86_expand_prologue): Likewise.
20857 (ix86_preferred_output_reload_class): Likewise.
20858 * cselib.c (cselib_record_sets): Likewise.
20859 * df-scan.c (df_scan_alloc): Likewise.
20860 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
20861 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
20862 * emit-rtl.c (try_split): Likewise.
20863 * graphite-scop-detection.c (assign_parameter_index_in_region):
20865 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
20866 * ira-color.c (setup_profitable_hard_regs): Likewise.
20867 * ira.c (rtx_moveable_p): Likewise.
20868 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
20869 * read-rtl.c (read_subst_mapping): Likewise.
20870 * regrename.c (scan_rtx): Likewise.
20871 * reorg.c (fill_slots_from_thread): Likewise.
20872 * tree-inline.c (tree_function_versioning): Likewise.
20873 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
20874 * tree-ssa-sink.c (statement_sink_location): Likewise.
20875 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
20876 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
20877 (vect_create_epilog_for_reduction): Likewise.
20878 * tree.c (build_nonstandard_integer_type): Likewise.
20880 2019-06-27 Richard Biener <rguenther@suse.de>
20882 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
20884 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
20886 PR tree-optimization/89772
20887 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
20888 out-of-bound accesses checking.
20890 2019-06-27 Martin Liska <mliska@suse.cz>
20892 PR tree-optimization/91014
20893 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
20894 when LHS is NULL_TREE.
20896 2019-06-27 Martin Liska <mliska@suse.cz>
20898 * symbol-summary.h (traverse): Pass
20899 argument a to the call of callback.
20900 (gt_ggc_mx): Mark arguments as unused.
20901 (gt_pch_nx): Likewise.
20903 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
20906 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
20909 2019-06-26 Jeff Law <law@redhat.com>
20911 PR tree-optimization/90883
20912 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
20913 (delete_dead_or_redundant_assignment): Likewise.
20915 PR tree-optimization/90883
20916 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
20917 * tree-ssa-dse.c: Update various comments to distinguish between
20918 dead and redundant stores.
20919 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
20920 (dse_optimize_redundant_stores): New function.
20921 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
20922 Distinguish between dead and redundant calls in dump output. All
20924 (delete_dead_or_redundant_assignment): Similarly for assignments.
20925 (dse_optimize_stmt): Handle _CHK variants. For statements which
20926 store 0 into multiple memory locations, try to prove a subsequent
20927 store is redundant.
20929 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
20932 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
20933 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
20935 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20937 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
20938 (branch_islands): New extern.
20939 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
20940 * config/rs6000/rs6000.c: .. here.
20942 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
20944 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
20945 (powerpc*-*-*) ... to here.
20947 2019-06-26 Jeff Law <law@redhat.com>
20949 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
20950 memcpy, memmove and memset builtins.
20951 (maybe_trim_memstar_call): Likewise.
20953 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20955 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
20957 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
20959 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
20961 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20963 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
20965 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
20967 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
20970 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
20972 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
20974 2019-06-26 Richard Biener <rguenther@suse.de>
20977 * tree-inline.c (remap_ssa_name): Copy SSA range info.
20979 2019-06-26 Richard Biener <rguenther@suse.de>
20981 * lto-streamer.h (lto_bitmap_alloc): Remove.
20982 (lto_bitmap_free): Likewise.
20983 * lto-streamer.c (lto_bitmap_alloc): Remove.
20984 (lto_bitmap_free): Likewise.
20985 (lto_obstack): Likewise.
20986 (lto_obstack_initialized): Likewise.
20987 * lto-streamer-out.c (lto_output): Use own obstack for local
20988 bitmap, free it consistently.
20990 2019-06-26 Jakub Jelinek <jakub@redhat.com>
20993 * config/i386/sse.md
20994 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
20995 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
20996 insns if operands[2] is misaligned_operand.
20998 2019-06-26 Li Jia He <helijia@linux.ibm.com>
21000 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
21002 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
21005 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
21007 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
21009 2019-06-26 Martin Liska <mliska@suse.cz>
21011 PR tree-optimization/90973
21012 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
21013 epilogue_cost_vec instead of prologue_cost_vec for
21016 2019-06-26 Martin Liska <mliska@suse.cz>
21018 * bb-reorder.c (connect_better_edge_p): Add missing else
21019 statement in the middle of if-else statements.
21021 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
21022 H.J. Lu <hongjiu.lu@intel.com>
21023 Olga Makhotina <olga.makhotina@intel.com>
21025 * common/config/i386/i386-common.c
21026 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
21027 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
21028 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
21029 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
21030 (ix86_handle_option): Handle -mavx512vp2intersect.
21031 * config/i386/avx512vp2intersectintrin.h: New.
21032 * config/i386/avx512vp2intersectvlintrin.h: New.
21033 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
21034 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
21035 AVX512VP2INTERSECT.
21036 * config/i386/i386-builtin-types.def: Add new types.
21037 * config/i386/i386-builtin.def: Add new builtins.
21038 * config/i386/i386-builtins.c: (enum processor_features): Add
21039 F_AVX512VP2INTERSECT.
21040 (static const _isa_names_table isa_names_table): Ditto.
21041 * config/i386/i386-c.c (ix86_target_macros_internal): Define
21042 __AVX512VP2INTERSECT__.
21043 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
21044 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
21045 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
21046 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
21047 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
21048 * config/i386/i386-options.c (ix86_target_string): Add
21049 -mavx512vp2intersect.
21050 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
21051 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
21052 P2HImode and P2QImode.
21053 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
21054 number for P2QImode and P2HImode.
21055 (ix86_regmode_natural_size): New function.
21056 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
21057 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
21058 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
21059 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
21060 * config/i386/i386.opt: Add -mavx512vp2intersect.
21061 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
21062 avx512vp2intersectvlintrin.h.
21063 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
21064 (define_mode_iterator VI48_AVX512VP2VL): New.
21065 (avx512vp2intersect_2intersect<mode>,
21066 avx512vp2intersect_2intersectv16si): New define_insn patterns.
21067 * config.gcc: Add avx512vp2intersectvlintrin.h and
21068 avx512vp2intersectintrin.h to extra_headers.
21069 * doc/invoke.texi: Document -mavx512vp2intersect.
21071 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
21073 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
21075 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
21077 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
21078 savres_routine_syms, savres_routine_name, morestack_ref,
21079 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21080 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21081 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21082 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21083 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21084 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21085 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21086 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21087 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21088 get_stack_clash_protection_probe_interval,
21089 get_stack_clash_protection_guard_size,
21090 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21091 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21092 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21093 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21094 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21095 gen_frame_mem_offset, rs6000_savres_routine_name,
21096 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21097 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21098 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21099 rs6000_global_entry_point_prologue_needed_p,
21100 rs6000_get_separate_components, rs6000_components_for_bb,
21101 rs6000_disqualify_components, rs6000_emit_prologue_components,
21102 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21103 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21104 rs6000_output_savres_externs, rs6000_output_function_prologue,
21105 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21106 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21107 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21108 rs6000_output_function_epilogue, gen_add3_const,
21109 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21110 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21112 (machine_function): Moved to rs6000.h.
21113 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
21115 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
21116 savres_routine_syms, savres_routine_name, morestack_ref,
21117 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
21118 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
21119 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
21120 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
21121 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
21122 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
21123 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
21124 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
21125 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
21126 get_stack_clash_protection_probe_interval,
21127 get_stack_clash_protection_guard_size,
21128 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
21129 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
21130 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
21131 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
21132 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
21133 gen_frame_mem_offset, rs6000_savres_routine_name,
21134 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
21135 ptr_regno_for_savres, rs6000_emit_savres_rtx,
21136 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
21137 rs6000_global_entry_point_prologue_needed_p,
21138 rs6000_get_separate_components, rs6000_components_for_bb,
21139 rs6000_disqualify_components, rs6000_emit_prologue_components,
21140 rs6000_emit_epilogue_components, rs6000_set_handled_components,
21141 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
21142 rs6000_output_savres_externs, rs6000_output_function_prologue,
21143 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
21144 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
21145 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
21146 rs6000_output_function_epilogue, gen_add3_const,
21147 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
21148 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
21149 to here from rs6000.c.
21150 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
21151 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
21152 quad_address_offset_p) Moved to here from rs6000.c.
21153 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
21154 * config/config.gcc: Add new source file rs6000-logue.c to garbage
21157 2019-06-25 Martin Liska <mliska@suse.cz>
21159 * hash-table.c (hashtab_chk_error): Move here from ...
21160 * hash-table.h (hashtab_chk_error): ... here.
21162 2019-06-25 Martin Liska <mliska@suse.cz>
21164 PR tree-optimization/90978
21165 * df-scan.c (df_update_entry_block_defs): Remove dead else
21167 (df_update_exit_block_uses): Likewise.
21169 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
21170 Andrew Stubbs <ams@codesourcery.com>
21172 * config.gcc (thread_file): Set to gcn for AMD GCN.
21173 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
21174 (TARGET_EMUTLS_VAR_INIT): New hook.
21176 2019-06-25 Martin Jambor <mjambor@suse.cz>
21179 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
21181 2019-06-25 Richard Biener <rguenther@suse.de>
21183 PR tree-optimization/90930
21184 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
21185 into parallel form in the last pass instance.
21187 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
21189 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
21190 (arc_legitimize_pic_address): Simplify and cleanup the function.
21191 (SYMBOLIC_CONST): Remove.
21192 (prepare_pic_move): Likewise.
21193 (prepare_move_operands): Handle complex mov cases here.
21194 (arc_legitimize_address_0): Remove call to
21195 arc_legitimize_pic_address.
21196 (arc_legitimize_address): Remove call to
21197 arc_legitimize_tls_address.
21198 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
21199 (movhi_insn): Likewise.
21201 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21203 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
21205 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
21206 format of "__intN" types for UINTMAX_TYPE.
21207 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
21208 format of "__intN" types for SIZETYPE.
21209 * tree.c (build_common_tree_nodes): Accept "__intN__"
21210 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
21211 * doc/invoke.texi: Document that __intN__ disables pedantic
21214 2019-06-25 Jan Hubicka <jh@suse.cz>
21216 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
21217 base2_alias_set is non-zero before doing TBAA based disambiguation.
21219 2019-06-25 Martin Liska <mliska@suse.cz>
21221 PR tree-optimization/90973
21222 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
21223 of prologue and epilogue.
21225 2019-06-24 Jan Hubicka <jh@suse.cz>
21227 * ipa-utils.h (type_with_linkage_p): Verify that type is
21229 (odr_type_p): Remove extra return.
21230 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
21231 hash STRING_FLAG only for arrays and integers.
21232 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
21233 Update analogously.
21234 * tree-streamer-out.c (pack_ts_type_common_value_fields):
21236 * print-tree.c (print_node): Print cxx-odr-p
21238 * tree.c (need_assembler_name_p): Also check that type
21240 (verify_type_variant): Update verification of SRING_FLAG;
21241 also check CXX_ODR_P.
21242 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
21243 (TYPE_STRING_FLAG): Use it.
21244 (TYPE_CXX_ODR_P): New macro.
21245 * dwarf2out.c (gen_array_type_die): First check that type
21246 is an array and then test string flag.
21248 2019-06-24 Richard Biener <rguenther@suse.de>
21250 PR tree-optimization/90972
21251 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
21252 in common code, dealing with STRING_CST properly.
21254 2019-06-24 Richard Biener <rguenther@suse.de>
21256 PR tree-optimization/90930
21257 PR tree-optimization/90316
21258 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
21259 decrement of limit.
21261 2019-06-24 Martin Sebor <msebor@redhat.com>
21263 * tree-pretty-print.h: Remove unnecessary punctuation characters
21265 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
21267 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
21269 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
21270 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
21271 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
21273 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21275 * config/rs6000/darwin.h: Handle GCC target pragma.
21277 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
21279 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
21281 2019-06-22 Jeff Law <law@redhat.com>
21283 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21285 2019-06-22 Jan Hubicka <jh@suse.cz>
21287 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
21288 give up on bitfields; continue searching for different refs
21291 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21293 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21294 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
21295 containing the offset as possible simd lane access. Look through
21296 widening conversion. Move the
21297 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
21299 2019-06-21 Richard Biener <rguenther@suse.de>
21301 PR tree-optimization/90930
21302 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
21303 flag on new stmts to avoid re-processing them.
21305 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
21307 PR c++/90875 - added -Wswitch-outside-range option
21308 * doc/invoke.texi (Wswitch-outside-range): Document.
21310 2019-06-21 Jeff Law <law@redhat.com>
21312 PR tree-optimization/90949
21313 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
21314 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
21316 2019-06-21 Richard Biener <rguenther@suse.de>
21319 * dwarf2out.c (prune_unused_types_walk): Always consider
21320 function-local extern declarations as used.
21322 2019-06-21 Richard Biener <rguenther@suse.de>
21324 PR tree-optimization/90913
21325 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
21326 the scalar variant of if-conversion versioning.
21328 2019-06-21 Jakub Jelinek <jakub@redhat.com>
21330 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
21331 create another "omp scan inscan exclusive" array if
21332 !ctx->scan_inclusive.
21333 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
21334 (lower_omp_scan): Likewise.
21335 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
21336 2-bit bitfield for simd_lane_access_p member.
21337 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
21338 aux == (void *)-4 as simd lane access.
21339 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
21340 comment with permutations to show the canonical permutation order.
21341 (vectorizable_scan_store): Handle exclusive scan.
21342 (vectorizable_store): Call vectorizable_scan_store even for
21343 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
21345 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
21346 "omp simd array" arrays with one byte elements.
21348 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
21350 * config/alpha/alpha.md (@unaligned_store<mode>):
21351 Rename from unaligned_store<mode>.
21352 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
21353 * config/alpha/sync.md (@load_locked_<mode>): Rename
21354 from load_locked_<mode>.
21355 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
21356 (@atomic_compare_and_swap<mode>_1): Rename
21357 from atomic_compare_and_swap<mode>_1.
21358 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
21359 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
21360 Use gen_reload_in_aligned and gen_unaligned_store.
21361 (emit_load_locked): Remove.
21362 (emit_store_conditional): Ditto.
21363 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
21364 (alpha_split_compare_and_swap): Ditto.
21365 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
21366 (alpha_split_compare_and_swap_12): Use gen_load_locked
21367 and gen_store_conditional.
21368 (alpha_split_atomic_exchange): Ditto.
21369 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
21370 (alpha_split_atomic_exchange_12): Use gen_load_locked
21371 and gen_store_conditional.
21373 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
21375 * config/aarch64/aarch64-errata.h: New file.
21376 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
21377 (CA53_ERR_843419_SPEC): Delete.
21378 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
21379 * config/aarch64/aarch64-linux.h: Likewise.
21380 * config/aarch64/aarch64-netbsd.h: Likewise.
21381 * config/aarch64/aarch64-freebsd.h: Likewise.
21383 2019-06-20 Marek Polacek <polacek@redhat.com>
21385 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
21387 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
21389 * config/rs6000/rs6000.md (isa attribute): Add support for
21390 for a future processor.
21392 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
21395 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
21396 standard scalar operation pattern for V2DF.
21397 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
21398 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
21399 (*ieee_<ieee_maxmin><mode>3): Likewise.
21400 (vec_setv2df_0): Likewise.
21402 2019-06-20 Jan Hubicka <jh@suse.cz>
21404 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
21405 parameter; it has no use in gimple memory model.
21406 (indirect_ref_may_alias_decl_p): Update.
21408 2019-06-20 Martin Liska <mliska@suse.cz>
21410 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
21413 2019-06-20 Jakub Jelinek <jakub@redhat.com>
21415 * tree-vect-stmts.c (enum scan_store_kind): New type.
21416 (scan_store_can_perm_p): Change last argument from int * to
21417 vec<enum scan_store_kind> *, record precisely which permutations
21418 need whole vector left shift or that plus VEC_COND_EXPR.
21419 (vectorizable_scan_store): Adjust caller, use whole vector left shift
21420 and additional VEC_COND_EXPR only for those iterations that need it.
21422 2019-06-20 Alexandre Oliva <oliva@adacore.com>
21424 * config.gcc: Fix ARM --with-fpu checking and error message.
21426 2019-06-19 Marek Polacek <polacek@redhat.com>
21428 PR c++/60364 - noreturn after first decl not diagnosed.
21429 * attribs.c (get_attribute_namespace): No longer static.
21430 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
21432 (attr_noreturn_exclusions): Make it extern.
21433 * attribs.h (get_attribute_namespace): Declare.
21434 * tree-inline.c (function_attribute_inlinable_p): Use
21435 get_attribute_name.
21437 2019-06-19 Martin Sebor <msebor@redhat.com>
21439 PR tree-optimization/90626
21440 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
21442 PR tree-optimization/90626
21443 * tree-ssa-strlen.c (strxcmp_unequal): New function.
21444 (handle_builtin_string_cmp): Call it.
21446 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21448 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
21449 and DARWIN_NOPIE_SPEC.
21450 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
21451 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
21452 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
21453 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
21454 (DARWIN_EXPORT_DYNAMIC): Delete.
21455 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
21456 and pie options processing to darwin.h.
21457 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
21459 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
21461 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
21462 in computing the number of options to be moved.
21464 2019-06-19 Maya Rashish <coypu@sdf.org>
21466 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
21467 (CLEAR_INSN_CACHE) Use it.
21469 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
21471 * config/i386/i386.md (cmpstrnsi): Remove dead code.
21473 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
21475 PR middle-end/84521
21476 * builtins.c (expand_builtin_setjmp_setup): Save
21477 hard_frame_pointer_rtx.
21478 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
21480 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
21482 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
21484 (remove_reg_equal_offset_note): Remove unused function.
21485 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
21487 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21488 (arc_builtin_setjmp_frame_value): Remove function.
21489 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21490 (avr_builtin_setjmp_frame_value): Remove function.
21491 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21492 (ix86_builtin_setjmp_frame_value): Remove function.
21493 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
21494 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21495 (sparc_builtin_setjmp_frame_value): Remove function.
21496 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
21497 (vax_builtin_setjmp_frame_value): Remove function.
21498 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
21499 pointer if has_nonlocal_label.
21501 2019-06-19 Jakub Jelinek <jakub@redhat.com>
21503 * doc/md.texi: Document vec_shl_<mode> pattern.
21504 * optabs.def (vec_shl_optab): New optab.
21505 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
21506 argument, if == vec_shl_optab, check for left whole vector shift
21507 pattern rather than right shift.
21508 (expand_vec_perm_const): Add vec_shl_optab support.
21509 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
21511 * tree-vect-generic.c (lower_vec_perm): Support permutations which
21512 can be handled by vec_shl_optab.
21513 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
21514 (check_scan_store): Use it.
21515 (vectorizable_scan_store): If target can't do normal permutations,
21516 try to use whole vector left shifts and if needed a VEC_COND_EXPR
21518 * config/i386/sse.md (vec_shl_<mode>): New expander.
21520 * omp-low.c (lower_rec_input_clauses): Handle references properly
21522 (lower_omp_scan): Likewise.
21524 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
21526 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
21527 mem_mode is BLKmode.
21529 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
21532 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
21533 pointer adjustment for the case of no callee-saved registers and
21534 stack frame bigger than 128 bytes.
21536 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
21538 PR middle-end/90862
21539 * omp-low.c (check_omp_nesting_restrictions): Handle
21540 GF_OMP_TARGET_KIND_OACC_DECLARE.
21542 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
21544 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
21545 (@add<mode>3_carry): Rename from add<mode>3_carry.
21546 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
21547 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
21548 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
21549 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
21550 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
21551 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
21552 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
21553 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
21554 (cmpstrnsi): Use gen_cmp_1.
21555 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
21556 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
21557 (@umonitor_<mode>): Rename from umonitor_<mode>.
21558 * config/i386/i386-expand.c (ix86_expand_copysign):
21559 Use gen_copysign3_const and gen_copysign3_var.
21560 (ix86_expand_xorsign): Use gen_xorsign3_1.
21561 (ix86_expand_branch): Use gen_sub3_carry_ccc,
21562 gen_sub3_carry_ccgz and gen_cmp1.
21563 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
21564 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
21565 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
21566 (ix86_split_lshr): Ditto.
21567 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
21569 2019-06-18 Jason Merrill <jason@redhat.com>
21571 * tree.c (build_constructor): Add MEM_STAT_DECL.
21573 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21575 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
21576 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
21577 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
21578 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
21579 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
21580 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
21581 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
21582 Use CC_NZC instead of CC.
21583 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
21584 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
21585 (aarch64_print_operand): Handle E_CC_NZCmode.
21586 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
21587 of gen_set_clobber_cc.
21589 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21591 * config/aarch64/aarch64-sve.md: Tabify file.
21593 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21595 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
21596 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
21597 * config/aarch64/aarch64-sve.md: Use it.
21599 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21601 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
21602 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
21603 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
21604 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
21605 (aarch64_expand_sve_vec_cmp_int): Use it.
21606 (aarch64_expand_sve_vec_cmp_float): Likewise.
21607 * config/aarch64/aarch64-sve.md: Likewise throughout.
21609 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21610 Kugan Vivekanandarajah <kuganv@linaro.org>
21612 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
21613 (*cond_<optab><mode>_z): Fold into...
21614 (*cond_<optab><mode>_any): ...here. Also handle cases in which
21615 operand 4 can be tied to operand 0 (either inherently or via RA).
21617 2019-06-18 Richard Biener <rguenther@suse.de>
21620 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
21621 as if optimized away.
21623 2019-06-18 Tom de Vries <tdevries@suse.de>
21625 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
21626 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
21627 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
21629 (define_insn "@set_softstack_<mode>"): ... this.
21630 (define_insn "omp_simt_enter_<mode>"): Rename to ...
21631 (define_insn "@omp_simt_enter_<mode>"): ... this.
21632 (define_insn "omp_simt_exit_<mode>"): Rename to ...
21633 (define_insn "@omp_simt_exit_<mode>"): ... this.
21635 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
21637 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
21638 vf parameter. Restore the previous iv step of nscalars_step,
21639 but give it iv_type rather than compare_type. Tweak code order
21640 to match the comments.
21641 (vect_set_loop_condition_masked): Update accordingly.
21642 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
21643 for iv_precision. Tweak comment formatting.
21645 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21647 * config/darwin.c: Strip trailing whitespace.
21649 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
21651 * config/darwin.c (darwin_emit_unwind_label): New default to false.
21652 (darwin_override_options): Set darwin_emit_unwind_label as needed.
21654 2019-06-18 Martin Jambor <mjambor@suse.cz>
21657 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
21658 caller does not have flag_ipa_cp set.
21660 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
21662 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
21663 from "*fold_left_plus_<mode>", updated operands order.
21664 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
21665 * internal-fn.c (mask_fold_left_direct): New define.
21666 (expand_mask_fold_left_optab_fn): Likewise.
21667 (direct_mask_fold_left_optab_supported_p): Likewise.
21668 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
21669 * optabs.def (mask_fold_left_plus_optab): New optab.
21670 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
21671 masked internal_fn for a reduction ifn.
21672 (vectorize_fold_left_reduction): Add support for masking reductions.
21674 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
21676 PR middle-end/80791
21677 * target.def (predict_doloop_p): New hook.
21678 * targhooks.h (default_predict_doloop_p): New declaration.
21679 * targhooks.c (default_predict_doloop_p): New function.
21680 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
21681 * doc/tm.texi: Regenerate.
21682 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
21683 (TARGET_PREDICT_DOLOOP_P): New macro.
21684 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
21686 2019-06-17 Jakub Jelinek <jakub@redhat.com>
21688 * omp-low.c (struct omp_context): Add scan_inclusive field.
21689 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
21691 (struct omplow_simd_context): Add lastlane member.
21692 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
21693 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
21695 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
21696 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
21697 (lower_omp_scan): New function.
21698 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
21699 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
21700 check 3rd argument if present rather than 2nd.
21701 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
21702 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
21704 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
21705 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
21707 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
21708 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
21709 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
21711 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
21712 IFN_GOMP_SIMD_LANE argument.
21713 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
21714 encoded ->aux value.
21715 * tree-vect-stmts.c: Include attribs.h.
21716 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
21717 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
21719 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
21720 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
21722 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
21725 * config/i386/i386.md (*nabstf2_1): New insn pattern.
21726 (*nabs<mode>2_1): Ditto.
21727 (nabs sse-reg splitter): New splitter.
21728 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
21730 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21732 PR bootstrap/90873.
21733 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
21736 2019-06-17 Tom de Vries <tdevries@suse.de>
21738 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
21739 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
21740 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
21742 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
21744 (define_insn "omp_simt_enter_insn"): Rename to ...
21745 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
21746 match_operand 0, 1 and 2, as well as the unspec_volatile result.
21747 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
21748 gen_omp_simt_enter_si.
21749 (define_expand "omp_simt_exit"): New.
21750 (define_insn "omp_simt_exit"): Rename to ...
21751 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
21754 2019-06-17 Matthew Green <mrg@eterna.com.au>
21755 Maya Rashish <coypu@sdf.org>
21757 * config.gcc (aarch64*-*-netbsd*): New target.
21758 * config/aarch64/aarch64-netbsd.h: New file.
21759 * config/aarch64/t-aarch64-netbsd: Likewise.
21761 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21763 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
21764 the access path from base to first VIEW_CONVERT_EXPR or
21767 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
21769 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
21770 access path on BIT_FIELD_REFs.
21772 2019-06-17 Martin Liska <mliska@suse.cz>
21775 * ipa-utils.h (odr_type_p): Remove dead code.
21777 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21779 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
21780 alternative Solaris 11.4 format.
21781 * configure: Regenerate.
21783 2019-06-17 Tom de Vries <tdevries@suse.de>
21785 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
21786 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
21788 (define_insn "call_value_insn"): Rename to ...
21789 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
21791 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
21794 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
21796 PR middle-end/64242
21797 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
21798 frame clobbers and schedule block.
21799 (builtin_longjmp): Likewise.
21801 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21803 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
21804 describe how to perform MSPABI compliant 64-bit shift.
21805 * config/msp430/msp430.md (ashldi3): New define_expand.
21806 (ashrdi3): New define_expand.
21807 (lshrdi3): New define_expand.
21809 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
21811 * doc/sourcebuild.texi: Document new effective target keyword
21814 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21816 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
21817 indirect_refs_may_alias_p): Revert accidental commits.
21819 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
21820 at the end of structures.
21822 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21824 * config/darwin.c (machopic_indirect_call_target): Use renamed
21825 darwin_picsymbol_stubs to decide on output.
21826 (darwin_override_options): Handle darwin_picsymbol_stubs.
21827 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
21828 (LD64_VERSION): Revise default.
21829 * config/darwin.opt: (mpic-symbol-stubs): New option.
21830 (darwin_picsymbol_stubs): New variable.
21831 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
21832 rename to TARGET_MACHO_PICSYM_STUBS.
21833 * config/i386/i386.c (output_pic_addr_const): Likewise.
21834 * config/i386/i386.h Likewise.
21835 * config/rs6000/darwin.h: Likewise.
21836 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
21837 darwin_picsymbol_stubs.
21839 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
21841 * config/darwin.opt (prebind, noprebind, seglinkedit,
21842 noseglinkedit): Add RejectNegative.
21844 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
21846 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
21847 in my previous patch.
21849 2019-06-16 Tom de Vries <tdevries@suse.de>
21851 PR tree-optimization/89376
21852 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
21854 2019-06-15 Maya Rashish <coypu@sdf.org>
21856 * doc/invoke.texi (Spec Files): Update location of the
21859 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
21861 * doc/extend.texi (Common Function Attributes): Clarify
21862 no_sanitize. Fix grammar.
21864 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
21866 * tree-ssa-alias.c (alias_stats): Add
21867 nonoverlapping_component_refs_p_may_alias,
21868 nonoverlapping_component_refs_p_no_alias,
21869 nonoverlapping_component_refs_of_decl_p_may_alias,
21870 nonoverlapping_component_refs_of_decl_p_no_alias.
21871 (dump_alias_stats): Dump them.
21872 (nonoverlapping_component_refs_of_decl_p): Add stats.
21873 (nonoverlapping_component_refs_p): Add stats; do not stop on first
21876 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
21878 * config/i386/i386.md (and<mode>3): Generate zero-extends for
21879 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
21881 (*anddi3_doubleword): Split before reload. Merge with
21882 anddi->zext pre-reload splitter.
21883 (*andndi3_doubleword): Split before reload.
21884 (*<code>di3_doubleword): Ditto.
21885 (*one_cmpldi2_doubleword): Ditto.
21887 2019-06-15 Jakub Jelinek <jakub@redhat.com>
21889 PR middle-end/90779
21890 * gimplify.c: Include omp-offload.h and context.h.
21891 (gimplify_bind_expr): Add "omp declare target" attributes
21892 to static block scope variables inside of target region or target
21895 2019-06-15 Tom de Vries <tdevries@suse.de>
21897 PR tree-optimization/90009
21898 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
21899 Return NULL if bb contains IFN_UNIQUE.
21901 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
21903 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
21904 (un): New define_mode_attr.
21905 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
21906 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
21907 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
21909 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
21911 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
21913 * config/darwin.opt: Add RejectNegative where needed, reorder
21914 and add minimal functional descriptions.
21916 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21918 PR rtl-optimization/90765
21919 * calls.c (update_stack_alignment_for_call): New function.
21920 (expand_call): Call update_stack_alignment_for_call when
21921 outgoing parameter is passed in the stack.
21922 (emit_library_call_value_1): Likewise.
21923 * function.c (locate_and_pad_parm): Don't update
21924 stack_alignment_needed and preferred_stack_boundary.
21926 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
21929 * config/i386/i386-features.c
21930 (dimode_scalar_chain::compute_convert_gain): Replace
21931 mmxsse_to_integer with sse_to_integer.
21932 * config/i386/i386.c (ix86_register_move_cost): Verify that
21933 moves between MMX and non-MMX units require secondary memory.
21934 Correct costs of moves between SSE and integer units.
21935 * config/i386/i386.h (processor_costs): Rename cost of moving
21936 SSE register to integer to sse_to_integer. Rename cost of
21938 2019-06-14 Matt Thomas <matt@3am-software.com>
21939 Matthew Green <mrg@eterna.com.au>
21940 Nick Hudson <skrll@netbsd.org>
21941 Maya Rashish <coypu@sdf.org>
21942 Richard Earnshaw <rearnsha@arm.com>
21944 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
21945 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
21946 * config/arm/netbsd-eabi.h: New file.
21947 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
21949 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
21950 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
21951 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
21952 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
21954 2019-06-14 Richard Biener <rguenther@suse.de>
21956 * tree-loop-distribution.c (classify_partition): Return
21957 whether a reduction appeared in all partitions and do not
21958 stop builtin detection because of this.
21959 (distribute_loop): Sort a non-builtin partition last if
21960 there's a reduction in all partitions and make sure the
21961 partition prevailing as last is not a builtin.
21963 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
21966 * ipa-prop.c (add_to_agg_contents_list): New function.
21967 (clobber_by_agg_contents_list_p): Likewise.
21968 (extract_mem_content): Likewise.
21969 (get_place_in_agg_contents_list): Delete.
21970 (determine_known_aggregate_parts): Renamed from
21971 determine_locally_known_aggregate_parts. New parameter
21974 2019-06-13 Martin Sebor <msebor@redhat.com>
21976 PR tree-optimization/90662
21977 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
21980 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
21983 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
21984 dbase is not TARGET_MEM_REF.
21986 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
21988 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
21990 (and<mode>3): Use gen_extend_insn instead of indirect functions.
21991 Do not generate DImode extends for 32bit targets.
21992 (and->zext post-reload splitter): Use gen_extend_insn
21993 instead of indirect functions.
21994 (anddi->zext pre-reload splitter): New.
21995 (*zext<mode>_doubleword_and): Remove.
21996 (*zext<mode>_doubleword): Ditto.
21997 (*zextsi_doubleword): Dittto.
21999 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
22001 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
22002 Use gen_sub3_insn instead of indirect function.
22003 (ix86_expand_ashl_const): Use gen_add2_insn instead of
22005 (ix86_adjust_counter): Ditto.
22007 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
22008 Lijia He <helijia@linux.ibm.com>
22010 PR tree-optimization/77820
22011 * tree-ssa-threadedge.c
22012 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
22014 (thread_across_edge): Add call to
22015 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
22017 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
22019 * config/darwin-driver.c (validate_macosx_version_min): New.
22020 (darwin_default_min_version): Cleanup and validate supplied version.
22021 (darwin_driver_init): Likewise and push cleaned version into opts.
22023 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
22025 PR tree-optimization/90869
22026 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
22027 converts in MEM_REF referencing decl rather than view converts
22028 from decl type to MEM_REF type.
22030 2019-06-13 Richard Biener <rguenther@suse.de>
22032 PR tree-optimization/90856
22033 * tree-sra.c (build_ref_for_model): Only use
22034 build_reconstructed_reference when address-spaces are the same.
22036 2019-06-13 Jakub Jelinek <jakub@redhat.com>
22038 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
22039 wrap ei variable name in the declaration in ()s.
22040 (nvptx_single): Actually use mode_label variable. Formatting fix.
22042 2019-06-13 Richard Biener <rguenther@suse.de>
22044 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
22045 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
22046 also return the condition stmt.
22047 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
22048 loop we can version and version that, reusing the loop version
22049 created by if-conversion instead of versioning again.
22051 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
22053 * gimple-loop-versioning.cc (prune_loop_conditions): Use
22055 * tree-vrp (value_range_base::may_contain_p): Call into
22056 value_inside_range.
22057 (value_inside_range): Make private inside value_range_base class.
22058 Take min/max from *this.
22059 (range_includes_p): Remove.
22060 * tree-vrp.h (value_range_base): Add value_inside_range.
22061 (range_includes_p): Remove.
22062 (range_includes_zero_p): Call may_contain_p.
22063 * vr-values.c (compare_range_with_value): Same.
22065 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
22067 * doc/extend.texi (ARC Function Attributes): Update info.
22069 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
22071 PR tree-optimization/89713
22072 * doc/invoke.texi (-ffinite-loops): Document new option.
22073 * common.opt (-ffinite-loops): New option.
22074 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
22075 IFN_GOACC_LOOP calls as necessary.
22076 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
22078 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
22079 IFN_GOACC_LOOP call is not used.
22080 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
22082 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22085 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
22086 compare_type is not with Pmode size, we will create an IV with
22087 Pmode size with truncated use (i.e. converted to the correct type).
22088 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
22089 (vect_iv_limit_for_full_masking): New. Factored out of
22090 vect_set_loop_condition_masked.
22091 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
22092 (vect_iv_limit_for_full_masking): Declare.
22094 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22097 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
22098 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
22099 (get_alias_ptr_type_for_ptr_address): Likewise.
22100 (add_iv_candidate_for_use): Add scaled index candidate if useful.
22101 * tree-ssa-address.c (preferred_mem_scale_factor): New.
22102 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
22105 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
22107 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
22109 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
22111 * common/config/pru/pru-common.c: New file.
22112 * config.gcc: Add PRU target.
22113 * config/pru/alu-zext.md: New file.
22114 * config/pru/constraints.md: New file.
22115 * config/pru/predicates.md: New file.
22116 * config/pru/pru-opts.h: New file.
22117 * config/pru/pru-passes.c: New file.
22118 * config/pru/pru-pragma.c: New file.
22119 * config/pru/pru-protos.h: New file.
22120 * config/pru/pru.c: New file.
22121 * config/pru/pru.h: New file.
22122 * config/pru/pru.md: New file.
22123 * config/pru/pru.opt: New file.
22124 * config/pru/t-pru: New file.
22125 * doc/extend.texi: Document PRU pragmas.
22126 * doc/invoke.texi: Document PRU-specific options.
22127 * doc/md.texi: Document PRU asm constraints.
22129 2019-06-12 Martin Sebor <msebor@redhat.com>
22131 PR middle-end/90676
22132 * tree-pretty-print.c (dump_mem_ref): New function. Include
22133 MEM_REF type in output when different size than operand.
22134 (dump_generic_node): Move code to dump_mem_ref and call it.
22136 2019-06-12 Martin Sebor <msebor@redhat.com>
22138 PR tree-optimization/90662
22139 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
22142 2019-06-12 Tom de Vries <tdevries@suse.de>
22144 PR tree-optimization/90009
22145 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
22147 2019-06-12 Martin Liska <mliska@suse.cz>
22149 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
22151 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
22152 * mem-stats.h (mem_alloc_description::mem_alloc_description):
22153 Do not sanitize created maps.
22155 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
22157 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
22158 value_range::singleton_p.
22159 * tree-vrp.c (value_range_constant_singleton): Remove.
22160 * tree-vrp.h (value_range_constant_singleton): Remove.
22161 * vr-values.c (vr_values::singleton): Use
22162 value_range::singleton_p.
22164 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22167 * cfgexpand.c (align_local_variable): Add really_expand argument,
22168 don't SET_DECL_ALIGN if it is false.
22169 (add_stack_var): Add really_expand argument, pass it through to
22170 align_local_variable.
22171 (expand_one_stack_var_1): Pass true as really_expand to
22172 align_local_variable.
22173 (expand_one_ssa_partition): Pass true as really_expand to
22175 (expand_one_var): Pass really_expand through to add_stack_var.
22177 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
22179 * config/arm/iterators.md (VABAL): New int iterator.
22180 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
22181 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
22182 UNSPEC_VABAL_U values.
22184 2019-06-12 Martin Liska <mliska@suse.cz>
22186 * value-prof.c (stream_out_histogram_value): Only first value
22189 2019-06-12 Jakub Jelinek <jakub@redhat.com>
22192 * symtab.c (symtab_node::set_section): Allow being called on aliases
22193 as long as they aren't analyzed yet.
22195 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
22197 * config/mips/mips.c (mips_final_postscan_insn): Modify call
22198 to `mips_set_text_contents_type' to indicate whether a
22199 non-debug insn follows.
22201 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
22203 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
22204 enabling -mpcrel by default.
22205 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
22206 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
22207 that the test against -mcpu=future is done first. Then test if
22208 -mprefixed-addr is on for -mpcrel.
22209 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
22211 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22214 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
22215 instead of and.u%d.
22217 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22219 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
22221 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
22223 PR c++/90449 - add -Winaccessible-base option.
22224 * doc/invoke.texi (Winaccessible-base): Document.
22226 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
22228 PR tree-optimization/62041
22229 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
22231 2019-06-11 Jason Merrill <jason@redhat.com>
22233 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
22234 * tree.c (get_tree_code_name): Likewise.
22235 * print-tree.c (print_node): Only briefly print a node with an
22238 2019-06-11 Jakub Jelinek <jakub@redhat.com>
22241 * trans-mem.c (tm_memopt_compute_available): Add assertion
22242 that blocks is not empty. Formatting fix.
22244 2019-06-11 Martin Liska <mliska@suse.cz>
22247 * hash-table.h: Extend create_gcc, add one parameter
22248 that is passed into hash_table::hash_table.
22250 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
22252 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
22254 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
22255 Emit clobber also for non-sse operations.
22256 (ix86_split_fp_absneg_operator): New function.
22257 * config/i386/i386.md (SSEMODEF): New mode iterator.
22258 (ssevecmodef): New mode attribute.
22259 (<code>tf2): Use absneg code iterator.
22260 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
22261 Add three-operand AVX alternatives.
22262 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
22263 Use absneg code iterator and X87MODEF mode iterator.
22264 (absneg fp_reg non-sse splitter): Call absneg code iterator
22265 and X87MODEF mode iterator.
22266 (absneg general_reg non-sse splitter): Use absneg code iterator
22267 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
22268 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
22269 code iterator. Add three-operand AVX alternative.
22270 (absneg sse_reg splitter): Use absneg code iterator
22271 and SSEMODEF mode iterator. Handle AVX operands.
22272 (absneg fp_reg splitter): Use absneg code iterator
22273 and MODEF mode iterator.
22274 (absneg general_reg splitter): Merge splitters using MODEF mode
22275 iterator. Use absneg code iterator. Call
22276 ix86_split_fp_absneg_operator.
22277 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
22278 Do not enable for non-sse modes before reload.
22279 (CSGNMODE): Remove.
22280 (CSGNVMODE): Ditto.
22281 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
22282 ssevecmodef mode attribute instaed of CSGNVMODE.
22283 (copysign<mode>3_const): Ditto.
22284 (copysign<mode>3_var): Ditto.
22285 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
22286 Use absneg code iterator. Simplify code using std::swap.
22287 * config/i386/predicates.md (absneg_operator): Remove.
22289 2019-06-10 Martin Sebor <msebor@redhat.com>
22291 * gimple-fold.c (get_range_strlen): Update comment that didn't
22292 make it into r267503 or related commits.
22294 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
22296 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
22297 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
22299 2019-06-10 Jakub Jelinek <jakub@redhat.com>
22301 * tree.def (OMP_SCAN): New tree code.
22302 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
22303 OMP_CLAUSE_EXCLUSIVE.
22304 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
22305 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
22306 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
22307 OMP_CLAUSE_{IN,EX}CLUSIVE.
22308 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22309 * tree-nested.c (convert_nonlocal_reference_stmt,
22310 convert_local_reference_stmt, convert_gimple_call): Handle
22312 * tree-pretty-print.c (dump_omp_clause): Handle
22313 OMP_CLAUSE_{IN,EX}CLUSIVE.
22314 (dump_generic_node): Handle OMP_SCAN.
22315 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
22316 * gimple.h (gomp_scan): New type.
22317 (is_a_helper <gomp_scan *>::test,
22318 is_a_helper <const gomp_scan *>::test): New templates.
22319 (gimple_build_omp_scan): Declare.
22320 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
22321 gimple_omp_scan_set_clauses): New inline functions.
22322 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
22323 * gimple.c (gimple_build_omp_scan): New function.
22324 (gimple_copy): Handle GIMPLE_OMP_SCAN.
22325 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
22326 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
22327 GIMPLE_OMP_TASKGROUP.
22328 (dump_gimple_omp_scan): New function.
22329 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
22330 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
22331 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
22332 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
22333 (is_gimple_stmt): Handle OMP_SCAN.
22334 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
22335 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
22336 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
22337 mentioned in nested #pragma omp scan. Handle
22338 OMP_CLAUSE_{IN,EX}CLUSIVE.
22339 (gimplify_expr): Handle OMP_SCAN.
22340 * omp-low.c (check_omp_nesting_restrictions): For parent context,
22341 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
22343 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
22346 2019-06-10 Martin Liska <mliska@suse.cz>
22348 * ipa-cp.c (ignore_edge_p): New function.
22349 (build_toporder_info): Use it.
22350 * ipa-inline.c (ignore_edge_p): New function.
22351 (inline_small_functions): Use it.
22352 * ipa-pure-const.c (ignore_edge_for_nothrow):
22353 Verify opt_for_fn for caller and callee.
22354 (ignore_edge_for_pure_const): Likewise.
22355 * ipa-reference.c (ignore_edge_p): Extend to check
22357 * ipa-utils.c (searchc): Refactor.
22358 * ipa-utils.h: Fix coding style.
22360 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22362 * config/arc/arc.c (arc_rtx_costs): Update costs.
22364 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
22366 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
22367 (arc_split_ior): Likewise.
22368 (arc_check_mov_const): Likewise.
22369 (arc_split_mov_const): Likewise.
22370 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
22371 (arc_rtx_costs): Replace check Crr with Cax constraint.
22372 (prepare_move_operands): Cleanup, remove unused code.
22373 (arc_split_ior): New function.
22374 (arc_check_ior_const): Likewise.
22375 (arc_split_mov_const): Likewise.
22376 (arc_check_mov_const): Likewise.
22377 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
22378 in define_insn_and_split pattern.
22379 (iorsi3): Likewise.
22380 (mulsi3_v2): Add new matching variant.
22381 (andsi3_i): Cleanup pattern.
22382 (rotrsi3_cnt1): Update pattern.
22383 (rotrsi3_cnt8): New pattern.
22384 (ashlsi2_cnt8): Likewise.
22385 (ashlsi2_cnt16): Likewise.
22386 * config/arc/constraints.md (C0p): Update constraint.
22388 (C0x): New pattern.
22389 (Cax): New pattern.
22391 2019-06-10 Martin Liska <mliska@suse.cz>
22393 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
22394 Update coding style.
22395 (sem_item_optimizer::dump_cong_classes):
22396 Print how many items are in a non-singular class. Improve
22399 2019-06-10 Martin Liska <mliska@suse.cz>
22401 * value-prof.c (dump_histogram_value): Change dump format.
22402 (gimple_mod_subtract_transform): Remove legacy comment.
22404 2019-06-10 Martin Liska <mliska@suse.cz>
22406 * value-prof.c (dump_histogram_value): Print histogram values
22409 2019-06-10 Martin Liska <mliska@suse.cz>
22411 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
22412 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
22413 * ipa-profile.c (ipa_profile_generate_summary):
22414 Use get_most_common_single_value.
22415 * tree-profile.c (gimple_init_gcov_profiler):
22416 Instrument with __gcov_one_value_profiler_v2
22417 and __gcov_indirect_call_profiler_v4.
22418 * value-prof.c (dump_histogram_value):
22419 Print all values for HIST_TYPE_SINGLE_VALUE.
22420 (stream_out_histogram_value): Update assert for
22422 (stream_in_histogram_value): Set number of
22423 counters for HIST_TYPE_SINGLE_VALUE.
22424 (get_most_common_single_value): New.
22425 (gimple_divmod_fixed_value_transform):
22426 Use get_most_common_single_value.
22427 (gimple_ic_transform): Likewise.
22428 (gimple_stringops_transform): Likewise.
22429 (gimple_find_values_to_profile): Set number
22430 of counters for HIST_TYPE_SINGLE_VALUE.
22431 * value-prof.h (get_most_common_single_value): New.
22433 2019-06-10 Martin Liska <mliska@suse.cz>
22435 * hash-map.h: Pass default value to hash_table ctor.
22436 * hash-table.h: Add default value to call of a ctor.
22438 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
22440 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
22441 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
22443 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
22446 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
22447 Call pa_output_function_label.
22448 (TARGET_ASM_FUNCTION_PROLOGUE): define.
22449 * config/pa/pa-protos.h (pa_output_function_label): Declare.
22450 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
22452 (pa_linux_output_function_prologue): Declare.
22453 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
22454 (pa_output_function_label): New.
22455 (pa_output_function_prologue): Revise to use pa_output_function_label.
22456 (pa_linux_output_function_prologue): New.
22457 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
22459 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
22461 * tree-vrp.h (value_range_base::intersect): New.
22462 (value_range::intersect_helper): Move from here...
22463 (value_range_base::intersect_helper): ...to here.
22464 * tree-vrp.c (value_range::intersect_helper): Rename to...
22465 (value_range_base::intersect_helper): ...this, and rewrite to
22466 return a value instead of modifying THIS in place.
22467 Also, move equivalence handling...
22468 (value_range::intersect): ...here, while calling intersect_helper.
22469 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
22471 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
22473 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
22475 2019-06-07 Jakub Jelinek <jakub@redhat.com>
22477 * Makefile.in (genprogerr): Add condmd.
22478 (genprog): Remove it here.
22480 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
22482 * doc/invoke.texi (AMD GCN Options): Add gfx906.
22484 2019-06-07 Richard Biener <rguenther@suse.de>
22487 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
22488 that appear after user labels.
22490 2019-06-07 Martin Liska <mliska@suse.cz>
22492 * cselib.c (cselib_init): Disable hash table
22494 * hash-set.h: Pass new default argument to m_table.
22495 * hash-table.c: Add global variable with hash table
22496 sanitization limit.
22497 * hash-table.h (Allocator>::hash_table): Add new argument
22499 (hashtab_chk_error): New.
22500 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
22501 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
22502 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
22504 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22506 * common.opt (flto-odr-type-merging): Ignore.
22507 * invoke.texi (-flto-odr-type-merging): Remove.
22508 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
22509 (can_be_vtable_hashed_p): Remove.
22510 (hash_odr_vtable): Remove.
22511 (odr_vtable_hasher::hash): Remove.
22512 (types_same_for_odr): Remove.
22513 (types_odr_comparable): Remove.
22514 (odr_vtable_hasher::equal): Remove.
22515 (odr_vtable_hash_type, odr_vtable_hash): Remove.
22516 (add_type_duplicate): Do not synchronize vtable and name hashtables.
22517 (get_odr_type): Do not use vtable hash.
22518 (dump_odr_type): Remove commented out code.
22519 (build_type_inheritance_graph): Do not allocate vtable hash.
22520 (rebuild_type_inheritance_graph): Do not delete vtable hash.
22521 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
22522 (odr_type_p): Likewise.
22523 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
22526 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
22528 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
22529 immediately after same_types_for_tbaa_p returns -1 and continue
22530 looking for possible exact match; if matching types are arrays
22531 watch for partial overlaps.
22532 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
22533 (indirect_refs_may_alias_p): Do type based disambiguation first;
22536 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
22538 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
22540 2019-06-07 Martin Liska <mliska@suse.cz>
22542 * doc/invoke.texi: Remove param.
22543 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
22545 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
22546 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
22547 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
22548 * profile.c (instrument_values): Remove
22549 HIST_TYPE_INDIR_CALL_TOPN.
22550 * tree-profile.c (init_ic_make_global_vars):
22551 Always build __gcov_indirect_call only.
22552 (gimple_init_gcov_profiler): Remove usage
22553 of PARAM_INDIR_CALL_TOPN_PROFILE.
22554 (gimple_gen_ic_profiler): Likewise.
22555 * value-prof.c (dump_histogram_value): Likewise.
22556 (stream_in_histogram_value): Likewise.
22557 (gimple_indirect_call_to_profile): Likewise.
22558 (gimple_find_values_to_profile): Likewise.
22559 * value-prof.h (enum hist_type): Likewise.
22561 2019-06-07 Martin Liska <mliska@suse.cz>
22563 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
22566 2019-06-07 Martin Liska <mliska@suse.cz>
22568 PR tree-optimization/78902
22569 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
22570 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
22571 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22572 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
22573 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
22574 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22575 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
22576 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
22577 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22578 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
22579 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
22580 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
22581 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
22583 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
22584 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
22585 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
22586 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22587 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
22588 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
22589 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22590 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
22591 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
22592 warn_unused_result attribute.
22593 (BUILT_IN_STRDUP): Likewise.
22594 (BUILT_IN_STRNDUP): Likewise.
22595 (BUILT_IN_ALLOCA): Likewise.
22596 (BUILT_IN_CALLOC): Likewise.
22597 (BUILT_IN_MALLOC): Likewise.
22598 (BUILT_IN_REALLOC): Likewise.
22600 2019-06-06 Jim Wilson <jimw@sifive.com>
22603 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
22604 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
22605 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
22607 2019-06-06 Martin Sebor <msebor@redhat.com>
22609 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
22610 (handle_builtin_malloc): Remove trailing spaces.
22611 (handle_builtin_memset): Same.
22612 (handle_builtin_memcmp): Same.
22613 (compute_string_length): Same.
22614 (determine_min_objsize): Same.
22615 (handle_builtin_string_cmp): Same.
22616 (handle_char_store): Same. Break up excessively long line.
22618 2019-06-06 Martin Jambor <mjambor@suse.cz>
22620 * tree-sra.c (build_reconstructed_reference): Drop the alignment
22623 2019-06-06 Martin Jambor <mjambor@suse.cz>
22625 * tree-sra.c (struct access): New field grp_same_access_path.
22626 (dump_access): Dump it.
22627 (build_reconstructed_reference): New function.
22628 (build_ref_for_model): Use it if possible.
22629 (path_comparable_for_same_access): New function.
22630 (same_access_path_p): Likewise.
22631 (sort_and_splice_var_accesses): Set the new flag.
22632 (analyze_access_subtree): Likewise.
22633 (propagate_subaccesses_across_link): Propagate zero value of the new
22634 flag down the access tree.
22636 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
22638 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
22639 * config/gcn/gcn.opt (gpu_type): Add gfx906.
22640 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
22641 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
22644 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22646 PR tree-optimization/90332
22647 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
22648 Handle VALS containing two vectors.
22649 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
22651 (@aarch64_combinez<mode>): ... This.
22652 (*aarch64_combinez_be<mode>): Rename to...
22653 (@aarch64_combinez_be<mode>): ... This.
22654 (vec_init<mode><Vhalf>): New define_expand.
22655 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
22657 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22659 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
22660 library functions only when not optimizing for size.
22661 (ashlsi3): Likewise.
22662 (ashrhi3): Likewise.
22663 (ashrsi3): Likewise.
22664 (lshrhi3): Likewise.
22665 (lshrsi3): Likewise.
22667 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
22669 PR rtl-optimization/88751
22670 * ira.c (ira): Use the number of the actually referenced registers
22671 when calculating the threshold.
22673 2019-06-06 Jakub Jelinek <jakub@redhat.com>
22675 * configure: Regenerate.
22677 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
22679 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
22680 register if it is in memory, so the shift can be emulated with a rotate
22682 (ashrhi3): Likewise.
22683 (lshrhi3): Likewise.
22685 2019-06-06 Martin Liska <mliska@suse.cz>
22687 PR tree-optimization/87954
22688 * match.pd: Simplify mult where both arguments are 0 or 1.
22690 2019-06-06 Richard Biener <rguenther@suse.de>
22692 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
22693 put equivalences on UNDEFINED ranges.
22694 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
22695 Make sure to drop defs of stmts added during simplification
22698 2019-06-06 Richard Biener <rguenther@suse.de>
22700 * tree-ssa-structalias.c: Include tree-cfg.h.
22701 (make_heapvar): Do not make heap vars artificial.
22702 (find_func_aliases_for_builtin_call): Handle stack allocation
22704 (find_func_aliases): Delay processing of simple enough returns
22706 (set_uids_in_ptset): Adjust.
22707 (find_what_var_points_to): Likewise.
22708 (solve_constraints): Do not dump points-to sets here.
22709 (compute_points_to_sets): Post-process return statements,
22710 amending the escaped solution. Dump points-to sets afterwards.
22711 (ipa_pta_execute): Dump points-to sets.
22713 2019-06-06 Martin Liska <mliska@suse.cz>
22716 * doc/install.texi: Fix HTML headers and
22717 titles for 'Installing GCC' pages.
22719 2019-06-06 Martin Liska <mliska@suse.cz>
22721 * ipa-icf-gimple.h (dump_message_1): Remove.
22722 (dump_message): Likewise.
22723 (return_false_with_message_1): Print also file.
22724 (return_false_with_msg): Likewise.
22725 (return_with_result): Likewise.
22726 (return_with_debug): Likewise.
22727 * ipa-icf.c (sem_function::equals_private): Remove call
22730 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22732 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
22733 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
22734 memory operand for it.
22735 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
22737 2019-06-05 Martin Sebor <msebor@redhat.com>
22739 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
22740 Adjust quoting and hyphenation.
22741 * convert.c (convert_to_real_1): Same.
22742 * gcc.c (driver_wrong_lang_callback): Same.
22743 (driver::handle_unrecognized_options): Same.
22744 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
22745 * opts-common.c (cmdline_handle_error): Same.
22746 (read_cmdline_option): Same.
22747 * opts-global.c (complain_wrong_lang): Same.
22748 (print_ignored_options): Same.
22749 (handle_common_deferred_options): Same.
22750 * pretty-print.h: Same.
22751 * print-rtl.c (debug_bb_n_slim): Same.
22752 * sched-rgn.c (make_pass_sched_fusion): Same.
22753 * tree-cfg.c (verify_gimple_assign_unary): Same.
22754 (verify_gimple_label): Same.
22755 * tree-ssa-operands.c (verify_ssa_operands): Same.
22756 * varasm.c (do_assemble_alias): Same.
22757 (assemble_alias): Same.
22759 2019-06-05 Richard Henderson <rth@twiddle.net>
22761 * config/alpha/alpha.c (direct_return): Move down after
22762 struct machine_function definition; use saved frame_size;
22764 (struct machine_function): Add sa_mask, sa_size, frame_size.
22765 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
22766 (alpha_compute_frame_layout): ... new function.
22767 (TARGET_COMPUTE_FRAME_LAYOUT): New.
22768 (alpha_initial_elimination_offset): Use saved sa_size.
22769 (alpha_vms_initial_elimination_offset): Likewise.
22770 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
22771 (alpha_expand_prologue): Use saved frame data. Merge integer
22772 and fp register save loops.
22773 (alpha_expand_epilogue): Likewise.
22774 (alpha_start_function): Use saved frame data.
22775 * config/alpha/alpha-protos.h (direct_return): Update.
22776 (alpha_sa_size): Remove.
22778 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
22780 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
22781 multiplication by a power-of-two value.
22782 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
22783 and turn the modulo operation into a masking operation.
22785 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22788 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
22789 with VOIDmode inner operands.
22791 2019-06-05 Richard Biener <rguenther@suse.de>
22793 PR middle-end/90726
22794 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
22795 turn an expression graph into a tree.
22797 2019-06-05 Jakub Jelinek <jakub@redhat.com>
22799 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
22801 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
22802 treat it like explicit monotonic schedule modifier.
22803 (expand_omp_for): Initialize has_lastprivate_conditional.
22804 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
22807 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
22808 references, lookup in in hash map MEM_REF operand instead of the
22810 (lower_omp_1): When looking for lastprivate conditional assignments,
22811 handle MEM_REFs with REFERENCE_TYPE operands.
22813 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
22814 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
22815 and references a VLA. Handle references to non-VLAs if is_simd
22816 all privatization clauses like reductions.
22817 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
22818 If omp_is_reference, use always omp simd arrays and set
22819 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
22820 fails, emit reference initialization.
22822 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
22825 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
22826 _mm_mask_fpclass_sd_mask): New intrinsics.
22827 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
22828 * config/i386/i386-builtin.def
22829 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
22831 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
22832 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
22833 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
22834 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
22835 case QI_FTYPE_V2SF_INT): Ditto.
22836 * config/i386/sse.md
22837 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
22838 Extended to insnstructions with mask operands.
22840 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22842 * config/rs6000/constraints.md (define_register_constraint "wp"):
22844 (define_register_constraint "wq"): Delete.
22845 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22846 (rs6000_init_hard_regno_mode_ok): Adjust.
22847 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22848 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
22849 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
22850 (define_mode_attr VSa): Delete.
22851 (define_mode_attr VSisa): New.
22852 (rest of file): Adjust.
22853 * doc/md.texi (Machine Constraints): Adjust.
22855 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22857 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
22858 (define_attr "enabled"): Handle those new isa values.
22860 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22862 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
22863 (define_mode_attr VSr5): Delete.
22864 (define_mode_attr VStype_sqrt): Delete.
22865 (define_mode_iterator VSX_SPDP): Delete.
22866 (define_mode_attr VS_spdp_res): Delete.
22867 (define_mode_attr VS_spdp_insn): Delete.
22868 (define_mode_attr VS_spdp_type): Delete.
22869 (*vsx_sqrt<mode>2): Adjust.
22870 (vsx_<VS_spdp_insn>): Delete, split to...
22871 (vsx_xscvdpsp): ... this. New. And...
22872 (vsx_xvcvspdp): ... this. New. And...
22873 (vsx_xvcvdpsp): ... this. New.
22875 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22877 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
22879 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
22880 (rest of file): Adjust.
22882 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22884 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
22885 (vsx_extract_<mode>_var): Ditto.
22887 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22889 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
22892 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22894 * config/rs6000/constraints.md (define_register_constraint "ww"):
22896 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22897 (rs6000_init_hard_regno_mode_ok): Adjust.
22898 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22899 RS6000_CONSTRAINT_ww.
22900 * config/rs6000/rs6000.md: Adjust.
22901 * config/rs6000/vsx.md: Adjust.
22902 * doc/md.texi (Machine Constraints): Adjust.
22904 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22906 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
22907 (define_mode_attr sd): New.
22908 (define_mode_attr s): New.
22909 (define_mode_attr Ftrad): Delete.
22910 (define_mode_attr Fvsx): Delete.
22911 (define_mode_attr Fs): Delete.
22912 (rest of file): Use the new mode attributes.
22913 * config.rs6000/vsx.md: Use the new mode attributes.
22915 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22917 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
22920 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22922 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
22923 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
22924 used with VSX_B, VSX_D, or VSX_F, with just "wa".
22926 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
22929 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
22930 C++ with strict ANSI requirements.
22932 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
22934 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
22935 computations when step is 1.
22937 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22939 * config/rs6000/constraints.md (define_register_constraint "wf"):
22941 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22942 (rs6000_init_hard_regno_mode_ok): Adjust.
22943 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22944 RS6000_CONSTRAINT_wf.
22945 * config/rs6000/rs6000.md: Adjust.
22946 * config/rs6000/vsx.md: Adjust.
22947 * doc/md.texi (Machine Constraints): Adjust.
22949 2019-06-04 Andrew Pinski <apinski@marvell.com>
22951 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
22954 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22956 * config/rs6000/constraints.md (define_register_constraint "wd"):
22958 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22959 (rs6000_init_hard_regno_mode_ok): Adjust.
22960 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22961 RS6000_CONSTRAINT_wd.
22962 * config/rs6000/rs6000.md: Adjust.
22963 * config/rs6000/vsx.md: Adjust.
22964 * doc/md.texi (Machine Constraints): Adjust.
22966 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22968 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
22969 (rest of file): Adjust.
22971 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22973 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
22974 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
22975 (vsx_splat_<mode>_reg): Adjust.
22977 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22979 * config/rs6000/constraints.md (define_register_constraint "ws"):
22981 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22982 (rs6000_init_hard_regno_mode_ok): Adjust.
22983 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22984 RS6000_CONSTRAINT_ws.
22985 * config/rs6000/rs6000.md: Adjust.
22986 * config/rs6000/vsx.md: Adjust.
22987 * doc/md.texi (Machine Constraints): Adjust.
22989 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
22991 * config/rs6000/constraints.md (define_register_constraint "wv"):
22993 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
22994 (rs6000_init_hard_regno_mode_ok): Adjust.
22995 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
22996 RS6000_CONSTRAINT_wv.
22997 * config/rs6000/rs6000.md: Adjust.
22998 * config/rs6000/vsx.md: Adjust.
22999 * doc/md.texi (Machine Constraints): Adjust.
23001 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
23003 * config/rs6000/constraints.md (define_register_constraint "wi"):
23005 (define_register_constraint "wt"): Delete.
23006 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23007 (rs6000_init_hard_regno_mode_ok): Adjust.
23008 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23009 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
23010 * config/rs6000/rs6000.md: Adjust.
23011 * config/rs6000/vsx.md: Adjust.
23012 * doc/md.texi (Machine Constraints): Adjust.
23014 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
23016 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
23018 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
23019 default_elf_asm_output_external.
23021 2019-06-04 Martin Liska <mliska@suse.cz>
23023 * ipa-icf.c (INCLUDE_LIST): Remove.
23024 (sem_item_optimizer::execute): Remove call to init_wpa.
23025 * ipa-icf.h (init_wpa): Remove.
23027 2019-06-04 Jakub Jelinek <jakub@redhat.com>
23029 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
23030 conditional on combined for simd.
23031 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
23033 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
23034 constructs, don't remove lastprivate_conditional_map, but instead set
23035 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
23036 to parent construct temporaries.
23037 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
23038 like !ctx->lastprivate_conditional_map.
23039 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
23040 use up->outer context instead of up.
23041 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
23042 gimple_omp_for_combined_p.
23043 (expand_omp_for_static_nochunk): Likewise.
23044 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
23045 probably moved over into expand_omp_for_generic rather than being copied
23048 2019-06-04 Martin Liska <mliska@suse.cz>
23050 * value-prof.c (dump_histogram_value): Fix typo.
23051 (gimple_mod_subtract_transform): Likewise.
23053 2019-06-04 Richard Biener <rguenther@suse.de>
23055 PR middle-end/90726
23056 * tree-chrec.c (chrec_contains_symbols): Add to visited.
23057 (tree_contains_chrecs): Likewise.
23058 (chrec_contains_symbols_defined_in_loop): Move here and avoid
23059 exponential behaivor from ...
23060 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
23062 (expression_expensive_p): Avoid exponential behavior and compute
23063 expanded size, rejecting any expansion.
23064 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
23065 (idx_contains_abnormal_ssa_name_p): Likewise.
23066 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
23067 (contains_abnormal_ssa_name_p): Simplify and use
23068 walk_tree_without_duplicates.
23070 2019-06-04 Richard Biener <rguenther@suse.de>
23072 PR tree-optimization/90738
23074 2019-06-03 Richard Biener <rguenther@suse.de>
23076 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23077 full reference tree and record in ref->ref.
23078 (vn_reference_lookup_3): Pass in original ref to
23079 ao_ref_init_from_vn_reference.
23080 (vn_reference_lookup): Likewise.
23081 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23082 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23083 Handle non-decl bases in the original reference.
23085 2019-06-04 Martin Liska <mliska@suse.cz>
23087 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
23088 number of references.
23089 (sem_item_optimizer::do_congruence_step):
23090 (sem_item_optimizer::worklist_push): Dump how references
23092 (sem_item_optimizer::worklist_pop): Use heap.
23093 (sem_item_optimizer::process_cong_reduction): Likewise.
23094 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
23096 2019-06-04 Martin Liska <mliska@suse.cz>
23098 * ipa-icf.h (struct sem_usage_pair_hash): New.
23099 (sem_usage_pair_hash::hash): Likewise.
23100 (sem_usage_pair_hash::equal): Likewise.
23101 (struct sem_usage_hash): Likewise.
23102 * ipa-icf.c (sem_item::sem_item): Initialize
23103 referenced_by_count.
23104 (sem_item::add_reference): Register a reference
23105 in ref_map and not in target->usages.
23106 (sem_item::setup): Remove initialization of
23108 (sem_item::~sem_item): Remove usage of dead vectors.
23109 (sem_item::dump): Remove dump of references.
23110 (sem_item_optimizer::sem_item_optimizer): Initialize
23112 (sem_item_optimizer::read_section): Remove useless
23114 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
23115 (sem_item_optimizer::build_graph): Pass m_references
23116 to ::add_reference.
23117 (sem_item_optimizer::verify_classes): Remove usage of dead
23119 (sem_item_optimizer::traverse_congruence_split): Return true
23120 when a class is split.
23121 (sem_item_optimizer::do_congruence_step_for_index): Use
23122 hash_map for look up of (sem_item *, index). That brings
23123 significant speed up.
23124 (sem_item_optimizer::do_congruence_step): Return true
23125 when a split is done.
23126 (congruence_class::is_class_used): Use referenced_by_count.
23128 2019-06-04 Alan Modra <amodra@gmail.com>
23131 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
23134 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23136 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
23137 * config/rs6000/rs6000.c (direct_move_p): Adjust.
23138 (rs6000_secondary_reload_simple_move): Adjust.
23139 (rs6000_opt_masks): Neuter the "mfpgpr" option.
23140 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
23141 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
23144 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
23145 (floatunssi<mode>2_lfiwzx): Adjust.
23146 (fix_trunc<mode>si2_stfiwx): Adjust.
23147 (fixuns_trunc<mode>si2_stfiwx): Adjust.
23148 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
23149 (mfpgpr): Mark as deprecated.
23150 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
23151 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
23152 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
23154 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
23156 * config/rs6000/constraints.md (define_register_constraint "wg"):
23158 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
23159 RS6000_CONSTRAINT_wg.
23160 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
23161 (rs6000_init_hard_regno_mode_ok): Adjust.
23162 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
23163 Delete "wg" alternatives.
23164 * doc/md.texi (Machine Constraints): Adjust.
23166 2019-06-03 Alan Modra <amodra@gmail.com>
23168 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
23169 (get_uncond_jump_length): Assert length less than INT_MAX and
23172 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23174 PR middle-end/64242
23175 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
23177 (expand_builtin_nonlocal_goto): Likewise.
23179 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
23181 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
23182 (aarch64_asm_output_external): Declare.
23183 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
23184 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
23185 (aarch64_asm_output_alias): New.
23186 (aarch64_asm_output_external): New.
23187 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
23188 (ASM_OUTPUT_EXTERNAL): Define.
23190 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
23191 * tree-vrp.h (value_range_base::nonzero_p): New.
23192 (value_range_base::set_nonnull): Rename to...
23193 (value_range_base::set_nonzero): ...this.
23194 (value_range_base::set_null): Rename to...
23195 (value_range_base::set_zero): ...this.
23196 (value_range::set_nonnull): Remove.
23197 (value_range::set_null): Remove.
23198 * tree-vrp.c (range_is_null): Remove.
23199 (range_is_nonnull): Remove.
23200 (extract_range_from_binary_expr): Use value_range_base::*zero_p
23201 instead of range_is_*null.
23202 (extract_range_from_unary_expr): Same.
23203 (value_range_base::set_nonnull): Rename to...
23204 (value_range_base::set_nonzero): ...this.
23205 (value_range::set_nonnull): Remove.
23206 (value_range_base::set_null): Rename to...
23207 (value_range_base::set_zero): ...this.
23208 (value_range::set_null): Remove.
23209 (extract_range_from_binary_expr): Rename set_*null uses to
23211 (extract_range_from_unary_expr): Same.
23212 (union_helper): Same.
23213 * vr-values.c (get_value_range): Use set_*zero instead of
23215 (vr_values::extract_range_from_binary_expr): Same.
23216 (vr_values::extract_range_basic): Same.
23218 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
23221 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
23223 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23225 * config/aarch64/iterators.md (MAX_OPP): New code attr.
23226 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
23228 (aarch64_<su>abd<mode>_3): ... This.
23229 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
23231 2019-06-03 Richard Biener <rguenther@suse.de>
23233 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
23234 full reference tree and record in ref->ref.
23235 (vn_reference_lookup_3): Pass in original ref to
23236 ao_ref_init_from_vn_reference.
23237 (vn_reference_lookup): Likewise.
23238 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
23239 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
23240 Handle non-decl bases in the original reference.
23242 2019-06-03 Martin Liska <mliska@suse.cz>
23244 * doc/generic.texi: Remove Java Trees.
23246 2019-06-03 Martin Liska <mliska@suse.cz>
23248 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
23249 returns 0 when operands are equal.
23251 2019-06-03 Richard Biener <rguenther@suse.de>
23253 PR tree-optimization/90716
23254 * tree-loop-distribution.c (destroy_loop): Process blocks in
23257 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23260 * vector-builder.h (vector_builder::count_dups): New method.
23261 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
23263 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
23264 (vec_init<mode><Vel>): New pattern.
23265 * config/aarch64/aarch64.c (emit_insr): New function.
23266 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
23267 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
23268 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
23269 (aarch64_sve_expand_vector_init): Define two overloaded functions.
23271 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23273 PR tree-optimization/90681
23274 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
23275 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
23276 special case for SLP, but fail on non-groupped loads.
23278 2019-06-03 Martin Liska <mliska@suse.cz>
23280 * cfg.c (debug): Use TDF_DETAILS for debug and
23281 print edge info only once.
23283 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
23286 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
23288 2019-06-01 Martin Sebor <msebor@redhat.com>
23290 PR middle-end/90694
23291 * tree-pretty-print.c (dump_generic_node): Add parentheses.
23293 2019-05-31 Jan Hubicka <jh@suse.cz>
23295 * alias.c: Include ipa-utils.h.
23296 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
23297 * ipa-devirt.c (prevailing_odr_type): New.
23298 * ipa-utils.h (previaling_odr_type): Declare.
23300 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
23301 Hongtao Liu <hongtao.liu@intel.com>
23304 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
23305 NOTE_INSN_DELETED_LABEL check.
23307 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
23308 Robert Suchanek <robert.suchanek@mips.com>
23310 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
23311 and 3rd operands of the fmadd/fmsub/maddv builtin.
23313 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23315 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
23316 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23317 on OMP_SIMD if not nested inside of worksharing loop that also has
23318 lastprivate conditional clause for the same decl.
23319 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
23320 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
23322 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
23324 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
23326 (lower_lastprivate_clauses): Likewise.
23327 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
23328 calling lower_rec_input_clauses.
23329 (lower_omp_for): Likewise.
23330 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
23331 clause on simd construct.
23332 * omp-expand.c (expand_omp_simd): Initialize cond_var if
23333 OMP_CLAUSE__CONDTEMP_ clause is present.
23335 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
23338 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
23341 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
23342 TEX_D32, TEX_D64 or TEX_D128.
23344 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23346 * match.pd (~(vec?cst1:cst2)): New transformation.
23348 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
23350 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
23351 ((size_t)(A /[ex] B) CMP C): New transformation.
23353 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
23355 * doc/md.texi: Document define_insn_and_rewrite.
23356 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
23357 * gensupport.c (queue_elem): Update comment.
23358 (replace_operands_with_dups): New function.
23359 (gen_rewrite_sequence): Likewise.
23360 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
23361 * read-rtl.c (apply_subst_iterator): Likewise.
23362 (add_condition_to_rtx, named_rtx_p): Likewise.
23363 (rtx_reader::read_rtx_operand): Likewise.
23364 * config/aarch64/aarch64-sve.md
23365 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
23366 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
23367 define_insn_and_rewrite.
23368 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
23369 Remove separate define_split.
23371 2019-05-31 Jan Hubicka <jh@suse.cz>
23373 * tree-ssa-alias.c (type_has_components_p): New function.
23374 (aliasing_component_refs_p): Use it.
23376 2019-05-31 Martin Liska <mliska@suse.cz>
23378 * gdbhooks.py: Add const_tree to TreePrinter.
23380 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
23383 * common.opt (feliminate-unused-debug-symbols): Enable by default.
23384 * doc/invoke.texi (Debugging Options): Document new default of
23385 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
23387 2019-05-31 Jakub Jelinek <jakub@redhat.com>
23389 PR tree-optimization/90671
23390 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
23391 template_block used to be empty on the first call, don't use
23392 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
23393 seq with bb_seq and set it with set_bb_seq.
23395 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
23397 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
23399 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23400 Michael Meissner <meissner@linux.ibm.com>
23402 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
23403 (prefixed_mem_operand): Likewise.
23404 (non_prefixed_mem_operand): Likewise.
23405 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
23407 * config/rs6000/rs6000.c (print_operand_address): Handle
23408 PC-relative addresses.
23409 (mode_supports_prefixed_address_p): New function.
23410 (rs6000_prefixed_address): New function.
23411 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
23412 (SYMBOL_REF_PCREL_P): Likewise.
23414 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23416 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
23417 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
23418 (gimplify_omp_for): If worksharing loop with lastprivate conditional
23419 is nested inside of parallel region, add _condtemp_ clause to both.
23420 * tree-nested.c (convert_nonlocal_omp_clauses,
23421 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
23423 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
23425 * omp-general.c (omp_extract_for_data): Compute it.
23426 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
23427 (lower_rec_input_clauses): Likewise.
23428 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
23429 clause is already present, just add one further one after it.
23430 (lower_lastprivate_clauses): Handle cond_ptr with array type.
23431 (lower_send_shared_vars): Clear _condtemp_ vars.
23432 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
23433 or section or taskgroup.
23434 * omp-expand.c (determine_parallel_type): Disallow combining only if
23435 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
23436 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
23437 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23438 expand_omp_for_static_chunk, expand_omp_for): Use
23439 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
23440 determine if a special set of API routines are needed and if condtemp
23441 needs to be initialized, while always initialize cond_var if
23442 fd->lastprivate_conditional is non-zero.
23444 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23445 Michael Meissner <meissner@linux.ibm.com>
23447 * config/rs6000/constraints.md (eI): New constraint.
23448 * config/rs6000/predicates.md (cint34_operand): New predicate.
23449 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
23450 (SIGNED_34BIT_OFFSET_P): Likewise.
23451 * doc/md.texi (eI): Document constraint.
23453 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
23455 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
23457 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
23458 Michael Meissner <meissner@linux.ibm.com>
23460 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
23461 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
23462 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
23463 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
23464 (OTHER_FUTURE_MASKS): Likewise.
23465 (POWERPC_MASKS): Likewise.
23466 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
23467 specified without -mprefixed-addr or -mcpu=future. Error if
23468 -mprefixed-addr is specified without -mcpu=future.
23469 (rs6000_opt_masks): Add entry for prefixed-addr.
23470 * rs6000.opt (mprefixed-addr): New option.
23472 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
23474 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
23475 cfun->is_thunk check.
23477 2019-05-30 Jakub Jelinek <jakub@redhat.com>
23479 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
23482 2019-05-30 Martin Liska <mliska@suse.cz>
23484 * gdbinit.in: Fix 'ptc' command. Add trt
23485 that prints TREE_TYPE($).
23487 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
23488 Alan Modra <amodra@gmail.com>
23490 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
23492 (rs6000_indirect_call_template_1): ...and here.
23493 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
23494 plt16_ha, plt16_lo, mtctr indirect calls. Use
23495 rs6000_pltseq_enum.
23496 (rs6000_decl_ok_for_sibcall): New function.
23497 (rs6000_function_ok_for_sibcall): Refactor.
23498 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
23499 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
23500 when pcrel. Reorganize.
23501 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
23502 * rs6000.h (rs6000_pltseq_enum): New enum.
23503 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
23504 (*pltseq_tocsave): Use rs6000_pltseq_enum.
23505 (*pltseq_plt16_ha): Likewise.
23506 (*pltseq_plt16_lo): Likewise.
23507 (*pltseq_mtctr): Likewise.
23508 (*pltseq_plt_pcrel): New insn.
23509 (*call_local_aix): Handle @notoc calls.
23510 (*call_value_local_aix): Likewise.
23511 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
23512 (*call_value_nonlocal_aix): Likewise.
23513 (*call_indirect_pcrel): New insn.
23514 (*call_value_indirect_pcrel): Likewise.
23516 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
23518 * config/i386/sse.md (*save_multiple<mode>): Rename from
23519 save_multiple<mode>.
23520 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
23521 (*restore_multiple_and_return<mode>): Rename from
23522 restore_multiple_and_return<mode>.
23523 (*restore_multiple_leave_return<mode>): Rename from
23524 restore_multiple_leave_return<mode>.
23526 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
23528 * config.gcc (rx-*-linux*): New target.
23529 * config/rx/elf.opt: New file.
23530 * config/rx/linux.h: Likewise.
23531 * config/rx/t-linux: Likewise.
23532 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
23534 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
23535 (ASM_APP_OFF): Likewise.
23536 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
23539 2019-05-29 Jan Hubicka <jh@suse.cz>
23541 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
23542 variants are pointer equivalent.
23544 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23546 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
23547 * config/aarch64/aarch64-sve2.md: New file.
23548 (<u>avg<mode>3_floor): New pattern.
23549 (<u>avg<mode>3_ceil): Likewise.
23550 (*<sur>h<addsub><mode>): Likewise.
23551 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
23552 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
23554 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23557 * optc-save-gen.awk: In cl_optimization_print, use correct condition
23558 for var_opt_string printing. In cl_optimization_print_diff, print
23559 (null) instead of invoking undefined behavior if one of the
23560 var_opt_string pointers is NULL and use && instead of first || in the
23561 guarding condition. For var_target_other options, handle const char *
23562 target variables similarly to const char * optimize node variables.
23564 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
23566 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
23567 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
23568 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
23569 Add autib1716 and pacib1716 initialisation.
23570 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
23571 for autib1716 and pacib1716.
23572 * config/aarch64/aarch64-protos.h (aarch64_key_type,
23573 aarch64_post_cfi_startproc): Define.
23574 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
23575 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
23576 aarch64_handle_pac_ret_protection): Set default sign key to A.
23577 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
23578 aarch64_expand_prologue): Add check for b-key.
23579 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
23580 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
23581 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
23582 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
23583 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
23584 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
23585 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23586 * config/aarch64/aarch64.md (do_return): Add check for b-key.
23587 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
23588 pauth_hint_num_a with pauth_hint_num.
23589 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
23590 pauth_hint_num_a with pauth_hint_num.
23591 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
23592 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
23593 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23594 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
23595 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
23596 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
23597 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
23598 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
23599 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
23600 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
23601 UNSPEC_AUTIA1716 respectively.
23602 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
23603 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
23604 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
23605 * doc/invoke.texi (-mbranch-protection): Add b-key type.
23606 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
23607 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
23609 2019-05-29 Jakub Jelinek <jakub@redhat.com>
23611 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
23612 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
23613 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
23614 explicit clause on combined parallel into implicit shared clause.
23615 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
23616 and firstprivate if the decl has one too from combined parallel to
23617 the worksharing construct.
23619 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
23620 Michael Meissner <meissner@linux.ibm.com>
23622 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
23624 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
23626 * rtl.h (LABEL_REF_P): New #define.
23628 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
23630 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
23632 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
23634 * internal-fn.c: Marked mask_load_direct as vectorizable.
23635 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
23636 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
23637 combined even if masks different with allow_slp_p param.
23638 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
23639 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
23640 dissolve SLP-only vectorizable groups when SLP has been discarded.
23641 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
23642 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
23644 (vect_build_slp_tree_1): Fixed comment typo.
23645 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
23646 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
23647 loads for SLP only.
23648 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
23650 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
23652 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23654 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
23655 Remove obsolete use_thunk reference.
23656 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
23657 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
23658 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
23659 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
23660 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
23661 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
23662 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
23663 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
23664 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
23666 2019-05-28 Nathan Sidwell <nathan@acm.org>
23668 * tree.h (IDENTIFIER_ANON_P): New.
23669 (anon_aggrname_format, anon_aggname_p): Don't declare.
23670 (make_anon_name): Declare.
23671 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
23672 (hash_tree): Likewise.
23673 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
23674 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
23675 (anon_cnt, make_anon_name): New.
23677 2019-05-28 Martin Liska <mliska@suse.cz>
23680 * opts-global.c (decode_options): Print help for all
23681 help_option_arguments.
23682 * opts.c (print_help): Add new argument.
23683 (common_handle_option): Remember all values into
23684 help_option_arguments.
23685 * opts.h (print_help): Add new argument.
23687 2019-05-28 Martin Liska <mliska@suse.cz>
23690 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
23691 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
23692 (func_checker::compare_bb): Call compare_loops.
23694 2019-05-27 Jakub Jelinek <jakub@redhat.com>
23696 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
23697 on sections construct.
23698 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
23700 (lower_omp_sections): Handle lastprivate conditional.
23701 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
23702 lastprivate_conditional_map.
23703 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
23705 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
23706 critical, taskgroup and section regions when looking for a region
23707 with non-NULL lastprivate_conditional_map.
23709 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23711 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
23712 (*ix86_gen_sub3): Ditto.
23713 (*ix86_gen_sub3_carry): Ditto.
23714 (*ix86_gen_one_cmpl2): Ditto.
23715 (*ix86_gen_andsp): Ditto.
23716 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
23717 (gen_and2_insn): New static function.
23718 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
23719 Use gen_add3_insn instead of ix86_gen_add3.
23720 (ix86_expand_split_stack_prologue): Use gen_add2_insn
23721 instead of ix86_gen_add3.
23722 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
23723 Use gen_sub3_insn instead of ix86_gen_sub3.
23724 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
23725 instead of ix86_gen_add3.
23726 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
23727 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
23728 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
23729 * config/i386/i386-options.c (ix86_option_override_internal):
23730 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
23731 ix86_gen_one_cmpl2 and ix86_gen_andsp.
23733 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
23735 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
23736 and DW_OP_GNU_const_index opcodes.
23738 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
23740 * config/i386/i386.h (STACK_SIZE_MODE): Define.
23742 2019-05-27 Richard Biener <rguenther@suse.de>
23744 PR tree-optimization/90637
23745 * tree-ssa-sink.c (statement_sink_location): Honor the
23746 computed sink location for single-uses.
23748 2019-05-27 Richard Biener <rguenther@suse.de>
23750 PR middle-end/90610
23751 * match.pd (vec_perm): Avoid clobbering op0 when not generating
23754 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23756 * config/i386/i386.md (@sub<mode>3_carry): Rename
23757 from sub<mode>3_carry.
23758 (@leave_<mode>): New expander.
23759 (*leave): Rename from leave.
23760 (*leave_rex64): Rename from leave_rex64.
23761 (@monitorx_<mode>): Rename from monitorx_<mode>.
23762 (@clzero_<mode>): Rename from clzero_<mode>.
23763 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
23764 from sse3_monitor_<mode>.
23765 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
23766 (*ix86_gen_leave): Ditto.
23767 (*ix86_gen_monitor): Ditto.
23768 (*ix86_gen_monitorx): Ditto.
23769 (*ix86_gen_clzero): Ditto.
23770 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
23771 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
23772 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
23773 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
23774 Use gen_sse3_monitor instead of ix86_gen_monitor.
23775 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
23776 instead of ix86_gen_monitorx.
23777 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
23778 instead of ix86_gen_clzero.
23779 * config/i386/i386-options.c (ix86_option_override_internal):
23780 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
23781 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
23783 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23785 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
23786 Rename from tls_global_dynamic_64_<mode>.
23787 (@tls_local_dynamic_base_64_<mode>): Rename from
23788 tls_local_dynamic_base_64_<mode>.
23789 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
23790 Remove indirect function.
23791 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
23792 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
23793 instead of ix86_gen_tls_global_dynamic_64.
23794 Use gen_tls_local_dynamic_base_64 instead of
23795 ix86_gen_tls_local_dynamic_base_64.
23796 * config/i386/i386-options.c (ix86_option_override_internal):
23797 Do not initialize ix86_gen_tls_global_dynamic_64 and
23798 ix86_gen_tls_local_dynamic_base_64.
23800 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
23802 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
23803 Rename from pro_epilogue_adjust_stack_<mode>_add.
23804 (@pro_epilogue_adjust_stack_sub_<mode>)
23805 Rename from pro_epilogue_adjust_stack_<mode>_sub.
23806 (@allocate_stack_worker_probe_<mode>):
23807 Rename from allocate_stack_worker_probe_<mode>.
23808 (allocate_stack): Use gen_allocate_stack_worker_probe.
23809 (probe_stack): Use gen_probe_stack_1.
23810 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
23811 (@adjust_stack_and_probe_<mode>): Rename from
23812 adjust_stack_and_probe<mode>.
23813 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
23814 (stack_protect_set): Use gen_stack_protect_set_1.
23815 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
23816 (stack_protect_test): Use gen_stack_protect_test_1.
23817 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
23818 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
23819 Remove indirect function.
23820 (*ix86_gen_adjust_stack_and_probe): Ditto.
23821 (*ix86_gen_probe_stack_range): Ditto.
23822 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
23823 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
23824 (ix86_adjust_stack_and_probe_stack_clash): Use
23825 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
23826 (ix86_adjust_stack_and_probe): Ditto.
23827 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
23828 of ix86_gen_probe_stack_range.
23829 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
23830 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
23831 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
23832 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
23833 CODE_FOR_stack_protect_test_{si,di}.
23834 * config/i386/i386-options.c (ix86_option_override_internal):
23835 Do not initialize ix86_gen_allocate_stack_worker,
23836 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
23838 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
23840 * doc/invoke.texi (Link Options): Many editorial changes around
23843 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23845 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
23846 pre-Solaris 11 referene and most Studio compiler details.
23848 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
23851 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
23852 DImode to SImode in floating-point registers on 64-bit target.
23853 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
23854 register_operand in xmpyu patterns.
23856 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23858 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
23859 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
23860 OMP_CLAUSE__REDUCTEMP_.
23861 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
23862 OMP_CLAUSE__CONDTEMP_.
23863 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
23864 * tree-pretty-print.c (dump_omp_clause): Likewise.
23865 * tree-nested.c (convert_nonlocal_omp_clauses,
23866 convert_local_omp_clauses): Likewise.
23867 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
23868 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
23869 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
23871 (gimplify_omp_for): Warn and disable conditional modifier from
23872 lastprivate on loop iterators.
23873 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
23875 * omp-general.c (omp_extract_for_data): Initialize it.
23876 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
23878 (delete_omp_context): Delete it.
23879 (lower_lastprivate_conditional_clauses): New function.
23880 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
23881 handle lastprivate conditional clauses.
23882 (lower_reduction_clauses): Add CLIST argument, emit it into
23883 the critical section if any.
23884 (lower_omp_sections): Adjust lower_lastprivate_clauses and
23885 lower_reduction_clauses callers.
23886 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
23887 to lower_lastprivate_clauses.
23888 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
23889 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
23890 clist into a critical section if not emitted there already by
23891 lower_reduction_clauses.
23892 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
23894 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
23895 conditional variables.
23896 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
23898 (expand_omp_for_generic, expand_omp_for_static_nochunk,
23899 expand_omp_for_static_chunk): Handle lastprivate conditional.
23900 (expand_omp_for): Handle fd.lastprivate_conditional like
23903 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23905 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
23906 kernel does not exit cleanly.
23907 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
23909 2019-05-24 Jason Merrill <jason@redhat.com>
23912 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
23914 2019-05-24 Richard Biener <rguenther@suse.de>
23917 * tree-loop-distribution.c (struct partition): Add location
23919 (partition_alloc): Initialize all fields.
23920 (generate_memset_builtin): Use the location recorded in the
23921 partition for the generated call.
23922 (generate_memcpy_builtin): Likewise.
23923 (classify_partition): Record the location of a single store
23924 as location for the partition.
23926 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
23928 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
23931 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
23934 * common/config/aarch64/aarch64-common.c
23935 (aarch64_rewrite_selected_cpu): Change local temporary variable
23936 type from unsigned long to uint64_t.
23937 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
23938 aarch64_get_extension_string_for_isa_flags): Change declaration to
23939 match new definition by replacing unsigned long with uint64_t.
23941 2019-05-24 Jakub Jelinek <jakub@redhat.com>
23944 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
23945 gen_attr_type just once instead of 4-7 times. Formatting fixes.
23946 Handle stack_protect_test_<mode> codegen similarly to corresponding
23949 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
23951 * config/i386/darwin.h: Reject -mfentry*.
23952 * doc/sourcebuild.texi: Document mfentry target support.
23954 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23956 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
23957 Rename to rs6000_global_entry_point_prologue_needed_p. Return
23958 false for PC-relative functions.
23959 (rs6000_output_function_prologue): Change called function name to
23960 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
23961 name,1" for PC-relative functions.
23962 (rs6000_elf_declare_function_name): Change called function name to
23963 rs6000_global_entry_point_prologue_needed_p.
23965 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
23968 * config/i386/i386.c (gen_rtx_cost):
23969 Use ix86_tune_cost instead of ix86_cost.
23971 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23972 Michael Meissner <meissner@linux.ibm.com>
23973 Segher Boessenkool <segher@kernel.crashing.org>
23975 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
23977 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
23978 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
23979 (rs6000_fndecl_pcrel_p): Likewise.
23980 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
23981 error if -mpcrel is requested without -mcpu=future.
23982 (rs6000_opt_masks): Add entry for pcrel.
23983 (rs6000_fndecl_pcrel_p): New function.
23984 (rs6000_pcrel_p): Likewise.
23985 * config/rs6000/rs6000.opt (mpcrel): New option.
23986 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
23988 2019-05-23 Jan Hubicka <jh@suse.cz>
23989 Martin Liska <mliska@suse.cz>
23991 PR tree-optimization/90576
23992 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
23994 (aliasing_component_refs_p): Fix three way size compare conditional;
23995 give up earlier in case we can not decide on equivalence.
23997 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
23998 Michael Meissner <meissner@linux.ibm.com>
23999 Segher Boessenkool <segher@kernel.crashing.org>
24001 * config.gcc: Add future cpu.
24002 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
24003 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
24005 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
24006 (RS6000_CPU): New instantiation for future cpu.
24007 * config/rs6000/rs6000-opts.h (enum processor_type): Add
24009 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
24010 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
24011 * config/rs6000/rs6000-tables.opt: Regenerate.
24012 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
24013 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
24014 (rs6000_machine_from_flags): Handle future cpu.
24015 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
24016 PROCESSOR_POWER9 for now.
24017 (rs6000_adjust_cost): Likewise.
24018 (rs6000_issue_rate): Likewise.
24019 (rs6000_register_move_cost): Likewise.
24020 (rs6000_opt_masks): Add entry for future.
24021 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
24022 (MASK_FUTURE): New #define.
24023 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
24024 * config/rs6000/rs6000.opt (mfuture): New target option.
24025 * doc/invoke.texi (mcpu): Add future cpu.
24027 2019-05-23 Martin Liska <mliska@suse.cz>
24030 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
24031 operation points to a temporary (pointed via tree_to_wide_ref)
24032 that is out of scope after the &.
24034 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
24037 * doc/extend.texi (Function Names): Add missing word.
24039 2019-05-23 Richard Biener <rguenther@suse.de>
24041 PR tree-optimization/88440
24042 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
24044 * tree-loop-distribution.c (generate_memset_builtin): Fold the
24046 (generate_memcpy_builtin): Likewise.
24047 (distribute_loop): Pass in whether to only distribute patterns.
24048 (prepare_perfect_loop_nest): Also allow size optimization.
24049 (pass_loop_distribution::execute): When optimizing a loop
24050 nest for size allow pattern replacement.
24052 2019-05-23 Jakub Jelinek <jakub@redhat.com>
24055 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
24058 2019-05-23 Martin Liska <mliska@suse.cz>
24061 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
24062 expression similarly to gimplify_decl_expr.
24064 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24066 * cse.c (cse_dump_path): s/dump_file/f.
24068 2019-05-22 David Malcolm <dmalcolm@redhat.com>
24071 * diagnostic-format-json.cc: Include "selftest.h".
24072 (json_from_expanded_location): Only add "file" key for non-NULL
24074 (json_from_location_range): Don't add "start" and "finish"
24075 children if they are UNKNOWN_LOCATION.
24076 (selftest::test_unknown_location): New selftest.
24077 (selftest::test_bad_endpoints): New selftest.
24078 (selftest::diagnostic_format_json_cc_tests): New function.
24079 * json.cc (json::object::get): New function.
24080 (selftest::test_object_get): New selftest.
24081 (selftest::json_cc_tests): Call it.
24082 * json.h (json::object::get): New decl.
24083 * selftest-run-tests.c (selftest::run_tests): Call
24084 selftest::diagnostic_format_json_cc_tests.
24085 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
24088 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
24089 Andrew Stubbs <amd@codesourcery.com>
24091 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
24092 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
24093 (kernel): Rename to...
24094 (main_kernel): ... this.
24095 (load_image): Load _init_array and _fini_array kernels.
24096 (run): Add argument for kernel to run.
24097 (main): Run init_array_kernel before main_kernel, and
24098 fini_array_kernel after.
24099 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
24100 amdgpu_hsa_kernel attribute on functions.
24101 (gcn_disable_constructors): Delete.
24102 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
24103 * config/gcn/crt0.c (size_t): Define.
24104 (_init_array, _fini_array): New.
24105 (__preinit_array_start, __preinit_array_end,
24106 __init_array_start, __init_array_end,
24107 __fini_array_start, __fini_array_end): Declare weak references.
24109 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
24111 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
24113 2019-05-22 Jason Merrill <jason@redhat.com>
24115 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
24117 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
24120 * config/i386/i386-options.c (ix86_init_machine_status): Set
24121 stack_frame_required to true.
24122 * config/i386/i386.c (ix86_get_frame_size): New function.
24123 (ix86_frame_pointer_required): Replace get_frame_size with
24124 ix86_get_frame_size.
24125 (ix86_compute_frame_layout): Likewise.
24126 (ix86_find_max_used_stack_alignment): Changed to void. Set
24127 stack_frame_required.
24128 (ix86_finalize_stack_frame_flags): Always call
24129 ix86_find_max_used_stack_alignment. Replace get_frame_size with
24130 ix86_get_frame_size.
24131 * config/i386/i386.h (machine_function): Add stack_frame_required.
24133 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
24135 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
24137 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
24139 * common/config/aarch64/aarch64-common.c
24140 (struct aarch64_option_extension, struct processor_name_to_arch,
24141 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
24142 aarch64_contains_opt,
24143 aarch64_get_extension_string_for_isa_flags): Change type of
24144 variables storing flags to uint64_t.
24145 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
24146 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
24147 * config/aarch64/aarch64.c (struct processor,
24148 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
24149 aarch64_validate_march, aarch64_override_options,
24150 aarch64_option_print, aarch64_handle_attr_isa_flags,
24151 aarch64_declare_function_name, aarch64_start_file): Make flag
24152 variables uint64_t.
24153 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
24154 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
24155 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
24156 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
24157 * config/aarch64/driver-aarch64.c
24158 (struct aarch64_arch_extension, struct aarch64_core_data,
24159 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
24160 flag variables uint64_t.
24161 * doc/invoke.texi: Add documentation for new arguments.
24163 2019-05-22 Richard Biener <rguenther@suse.de>
24165 * alias.c (ao_ref_from_mem): Move stack-slot sharing
24167 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
24169 2019-05-22 Martin Liska <mliska@suse.cz>
24172 * doc/extend.texi: Document the change.
24174 2019-05-22 Richard Biener <rguenther@suse.de>
24176 PR tree-optimization/90450
24177 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
24178 (mem_ref_hasher::equal): Check it.
24179 (mem_ref_alloc): Initialize it.
24180 (gather_mem_refs_stmt): Set it.
24182 2019-05-22 Richard Biener <rguenther@suse.de>
24184 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
24186 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
24189 2019-05-22 Alan Modra <amodra@gmail.com>
24191 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
24192 (ASM_CPU_SPEC): Conditionally add -many.
24193 * config/rs6000/rs6000.c (rs6000_machine): New static var.
24194 (rs6000_machine_from_flags, emit_asm_machine): New functions..
24195 (rs6000_file_start): ..extracted from here, and modified to
24197 (rs6000_output_function_prologue): Emit .machine as necessary.
24199 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
24201 PR middle-end/90553
24202 * ira-lives.c (process_bb_node_lives): Consider defs
24203 for a call insn to be die before the call, not after.
24205 * function.c (assign_parm_setup_block): Raise alignment of
24206 stacked parameter only for STRICT_ALIGNMENT targets.
24208 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24210 * config/rs6000/constraints.md (define_register_constraint "wz"):
24212 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24213 RS6000_CONSTRAINT_wz.
24214 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24215 (rs6000_init_hard_regno_mode_ok): Adjust.
24216 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
24217 * doc/md.texi (Machine Constraints): Adjust.
24219 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24221 * config/rs6000/constraints.md (define_register_constraint "wl"):
24223 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24224 RS6000_CONSTRAINT_wl.
24225 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24226 (rs6000_init_hard_regno_mode_ok): Adjust.
24227 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
24228 * doc/md.texi (Machine Constraints): Adjust.
24230 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24232 * config/rs6000/constraints.md (define_register_constraint "wm"):
24234 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24235 RS6000_CONSTRAINT_wm.
24236 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24237 (rs6000_init_hard_regno_mode_ok): Adjust.
24238 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
24239 * doc/md.texi (Machine Constraints): Adjust.
24241 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24243 * config/rs6000/constraints.md (define_register_constraint "wk"):
24245 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24246 RS6000_CONSTRAINT_wk.
24247 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24248 (rs6000_init_hard_regno_mode_ok): Adjust.
24249 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
24250 * doc/md.texi (Machine Constraints): Adjust.
24252 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24254 * config/rs6000/constraints.md (define_register_constraint "wj"):
24256 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24257 RS6000_CONSTRAINT_wj.
24258 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24259 (rs6000_init_hard_regno_mode_ok): Adjust.
24260 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
24262 * config/rs6000/vsx.md: Ditto.
24263 * doc/md.texi (Machine Constraints): Adjust.
24265 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
24267 * config/rs6000/constraints.md (define_register_constraint "wh"):
24269 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24270 RS6000_CONSTRAINT_wh.
24271 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24272 (rs6000_init_hard_regno_mode_ok): Adjust.
24273 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
24274 * doc/md.texi (Machine Constraints): Adjust.
24276 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24279 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
24280 Avoid calling gen_lowpart with CONST operand.
24282 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
24284 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
24285 field template_last_to_copy.
24286 (ssa_create_duplicates): Set it, and use it. Attempt to
24287 preserve more debug stmts.
24289 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24291 * config/i386/sse.md (VF1_AVX2): New mode iterator.
24292 (signbit<mode>2): New expander
24294 2019-05-21 James Clarke <jrtc27@jrtc27.com>
24297 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
24298 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
24300 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
24302 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
24303 %ebx and %ecx bafore calling cpuid with leaf 1 or
24304 non-constant leaf argument.
24306 2019-05-21 Alan Modra <amodra@gmail.com>
24309 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
24310 power9 direct move cost.
24312 2019-05-21 Richard Biener <rguenther@suse.de>
24314 PR middle-end/90510
24315 * fold-const.c (fold_read_from_vector): New function.
24316 * fold-const.h (fold_read_from_vector): Declare.
24317 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
24318 single-element insert permutations. Canonicalize selector
24319 further and fix issue with last commit.
24321 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24323 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
24324 parameter with default value false to declaration.
24325 (split_edges_for_insertion): New inline function. Wrapper for
24326 split_critical_edges with for_edge_insertion_p = true.
24327 * tree-cfg.c (split_critical_edges): Don't split non-critical
24328 edges if for_edge_insertion_p is false. Fix whitespace.
24329 * tree-ssa-pre.c (pass_pre::execute): Call
24330 split_edges_for_insertion instead of split_critical_edges.
24331 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
24332 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
24333 (pass_data_sink_code): Update function name in the comment.
24335 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
24337 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
24338 around is_value_included_in that knows how to handle BIT_AND_EXPR.
24339 (is_pred_expr_subset_of): Use the new function. Handle more cases where
24340 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
24343 2019-05-21 Martin Liska <mliska@suse.cz>
24345 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
24347 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
24348 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
24350 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24352 (rs6000_function_arg): Likewise.
24353 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
24354 (rs6000_expand_ternop_builtin): Use interval syntax.
24355 (get_element_number): Likewise.
24356 (altivec_expand_builtin): Likewise.
24357 (rs6000_get_function_versions_dispatcher): Quote target_clones.
24359 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24363 * function.h (struct function): Add calls_eh_return member.
24364 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
24365 gimplifying __builtin_eh_return call.
24366 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
24368 (expand_call_inline): Or in src_cfun->calls_eh_return into
24369 dst_cfun->calls_eh_return.
24370 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
24371 cfun->calls_eh_return.
24372 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
24373 * lto-streamer-out.c (output_struct_function_base): Write
24376 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
24378 PR rtl-optimization/43147
24379 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
24380 IX86_BUILTIN_SHUFPD.
24382 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24384 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
24385 (refs_may_alias_p_1): ... here; update stats.
24386 (refs_may_alias_p): Do not update stats here.
24388 2019-05-20 Richard Biener <rguenther@suse.de>
24390 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
24391 doesn't produce pointers.
24392 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
24393 the first operand points to.
24395 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
24397 * tree-ssa-alias.c (compare_sizes): New function.
24398 (sompare_type_sizes): New function
24399 (aliasing_component_refs_p): Use it.
24400 (indirect_ref_may_alias_decl_p): Likewise.
24402 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24404 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
24406 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24408 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
24409 (LIBLSAN_EARLY_SPEC): Likewise.
24410 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
24412 2019-05-20 Martin Liska <mliska@suse.cz>
24414 * config/i386/i386.c (ix86_libc_has_fast_function):
24415 Add ATTRIBUTE_UNUSED for the argument.
24417 2019-05-20 Richard Biener <rguenther@suse.de>
24419 * gimple-match-head.c: Include vec-perm-indices.h.
24420 * generic-match-head.c: Likewise.
24421 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
24423 * fold-const.c (fold_vec_perm): Export.
24424 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
24425 (match.pd): ...here.
24427 2019-05-20 Jakub Jelinek <jakub@redhat.com>
24429 * cfgloop.h (struct loop): Add simdlen member.
24430 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
24431 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
24432 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
24433 as new argument to autovectorize_vector_sizes target hook. If
24434 loop->simdlen, pick up vector size where the vectorization factor
24435 is equal to loop->simd, and if there is none, fall back to the first
24437 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
24439 * omp-low.c (omp_clause_aligned_alignment): Likewise.
24440 * omp-general.c (omp_max_vf): Likewise.
24441 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
24442 * tree-vect-slp.c (vect_slp_bb): Likewise.
24443 * target.def (autovectorize_vector_sizes): Add ALL argument and
24445 * doc/tm.texi: Adjust documentation.
24446 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
24447 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
24448 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
24450 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
24451 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
24452 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
24453 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
24454 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
24455 preferred vector size is not 512-bit or 256-bit, just put those
24456 unpreferred ones last.
24458 2019-05-20 Martin Liska <mliska@suse.cz>
24460 * targhooks.c (default_libc_has_fast_function): New function.
24461 * targhooks.h (default_libc_has_fast_function): Likewise.
24463 2019-05-20 Martin Liska <mliska@suse.cz>
24465 PR middle-end/90263
24466 * builtins.c (expand_builtin_memory_copy_args): When having a
24467 target with fast mempcpy implementation do now use memcpy.
24468 * config/i386/i386.c (ix86_libc_has_fast_function): New.
24469 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
24470 * doc/tm.texi: Likewise.
24471 * doc/tm.texi.in: Likewise.
24473 * expr.c (emit_block_move_hints): Add 2 new arguments.
24474 * expr.h (emit_block_move_hints): Bail out when libcall
24475 to memcpy would be used.
24477 2019-05-20 Martin Liska <mliska@suse.cz>
24479 * profile-count.c: Add vertical spacing in order
24480 to separate functions.
24481 * profile-count.h: Likewise.
24483 2019-05-20 Martin Liska <mliska@suse.cz>
24485 * profile-count.h: Do not use full qualified
24487 * profile-count.c (profile_count::to_frequency): Likewise.
24489 2019-05-20 Martin Liska <mliska@suse.cz>
24491 * profile-count.h (enum profile_quality): Use capital letters
24492 for enum value names. Use the adjusted names.
24493 * profile-count.c: Use the adjusted names.
24495 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24497 * config/rs6000/constraints.md (define_register_constraint "wH"):
24499 (define_register_constraint "wI"): Delete.
24500 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24501 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
24502 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24503 (rs6000_init_hard_regno_mode_ok): Adjust.
24504 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
24505 resp. "d", or with "wa" as appropriate, all with "p8v".
24506 * config/rs6000/vsx.md: Ditto.
24507 * doc/md.texi (Machine Constraints): Adjust.
24509 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24511 * config/rs6000/constraints.md (define_register_constraint "wy"):
24513 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24514 RS6000_CONSTRAINT_wy.
24515 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24516 (rs6000_init_hard_regno_mode_ok): Adjust.
24517 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
24518 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
24519 (define_mode_attr Fisa): New.
24520 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
24521 * doc/md.texi (Machine Constraints): Adjust.
24523 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24525 * config/rs6000/constraints.md (define_register_constraint "wu"):
24527 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24528 RS6000_CONSTRAINT_wu.
24529 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24530 (rs6000_init_hard_regno_mode_ok): Adjust.
24531 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
24533 (define_mode_attr Fa): Delete.
24534 * config/rs6000/vsx.md: Ditto.
24535 * doc/md.texi (Machine Constraints): Adjust.
24537 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24539 * config/rs6000/constraints.md (define_register_constraint "wJ"):
24541 (define_register_constraint "wK"): Delete.
24542 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24543 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
24544 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24545 (rs6000_init_hard_regno_mode_ok): Adjust.
24546 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
24547 Replace "wK" constraint by "wH" with "p9v".
24548 * config/rs6000/vsx.md: Ditto.
24549 * doc/md.texi (Machine Constraints): Adjust.
24551 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24553 * config/rs6000/constraints.md (define_register_constraint "wb"):
24555 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24556 RS6000_CONSTRAINT_wb.
24557 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24558 (rs6000_init_hard_regno_mode_ok): Adjust.
24559 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
24560 * config/rs6000/vsx.md: Ditto.
24561 * doc/md.texi (Machine Constraints): Adjust.
24563 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
24565 * config/rs6000/constraints.md (define_register_constraint "wo"):
24567 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
24568 RS6000_CONSTRAINT_wo.
24569 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
24570 (rs6000_init_hard_regno_mode_ok): Adjust.
24571 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
24572 * config/rs6000/altivec.md: Ditto.
24573 * doc/md.texi (Machine Constraints): Adjust.
24575 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24577 * config/darwin-c.c (darwin_register_objc_includes): Do not
24578 prepend the sysroot when building gnu-runtime header search
24581 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
24583 * config/darwin.c (darwin_file_end): Use switch_to_section ()
24584 instead of direct output of the asm.
24586 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24588 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
24589 argument to be type bool (was int before).
24590 (rs6000_emit_epilogue): Simplify some code. Declare some variables
24591 at first use. Use type bool for some variables. Fix a theoretical
24592 eh_return bug for svr4.
24594 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
24596 * config/rs6000/rs6000.md (isa): New attribute.
24597 (enabled): New attribute.
24599 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
24601 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
24602 assemble_start_function and assemble_end_function.
24604 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
24606 PR middle-end/89433
24607 * omp-general.c (oacc_verify_routine_clauses): Change formal
24608 parameters. Add checking if already marked with an OpenACC
24609 'routine' directive. Adjust all users.
24611 PR middle-end/89433
24612 * omp-general.c (oacc_build_routine_dims): Move some of its
24614 (oacc_verify_routine_clauses): ... this new function.
24615 * omp-general.h (oacc_verify_routine_clauses): New prototype.
24617 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24619 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
24620 formating of picbase labels to match other ports.
24622 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
24624 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
24625 in the generated code.
24627 2019-05-16 Martin Sebor <msebor@redhat.com>
24629 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
24630 identifiers, keywords, operators, and types in diagnostics. Correct
24631 quoting, spelling, and sentence capitalization issues.
24632 (expand_builtin_atomic_is_lock_free): Same.
24633 (fold_builtin_next_arg): Same.
24634 * cfgexpand.c (expand_one_var): Same.
24635 (tree_conflicts_with_clobbers_p): Same.
24636 (expand_asm_stmt): Same.
24637 (verify_loop_structure): Same.
24638 * cgraphunit.c (process_function_and_variable_attributes): Same.
24639 * collect-utils.c (collect_execute): Same.
24640 * collect2.c (maybe_run_lto_and_relink): Same.
24641 (is_lto_object_file): Same.
24642 (scan_prog_file): Same.
24643 * convert.c (convert_to_real_1): Same.
24644 * dwarf2out.c (dwarf2out_begin_prologue): Same.
24645 * except.c (verify_eh_tree): Same.
24646 * gcc.c (execute): Same.
24647 (eval_spec_function): Same.
24648 (run_attempt): Same.
24649 (driver::set_up_specs): Same.
24650 (compare_debug_auxbase_opt_spec_function): Same.
24651 * gcov-tool.c (unlink_gcda_file): Same.
24653 (do_rewrite): Same.
24654 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
24655 * gimplify.c (gimplify_asm_expr): Same.
24656 (gimplify_adjust_omp_clauses): Same.
24657 * hsa-gen.c (gen_hsa_addr_insns): Same.
24658 (gen_hsa_insns_for_load): Same.
24659 (gen_hsa_cmp_insn_from_gimple): Same.
24660 (gen_hsa_insns_for_operation_assignment): Same.
24661 (gen_get_level): Same.
24662 (gen_hsa_alloca): Same.
24663 (omp_simple_builtin::generate): Same.
24664 (gen_hsa_atomic_for_builtin): Same.
24665 (gen_hsa_insns_for_call): Same.
24666 * input.c (dump_location_info): Same.
24667 * ipa-devirt.c (compare_virtual_tables): Same.
24668 * ira.c (ira_setup_eliminable_regset): Same.
24669 * lra-assigns.c (lra_assign): Same.
24670 * lra-constraints.c (lra_constraints): Same.
24671 * lto-streamer-in.c (lto_input_mode_table): Same.
24672 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
24673 (merge_and_complain): Same.
24674 (compile_offload_image): Same.
24675 (compile_images_for_offload_targets): Same.
24676 (debug_objcopy): Same.
24679 * opts.c (print_specific_help): Same.
24680 (parse_no_sanitize_attribute): Same.
24681 (print_help): Same.
24682 (handle_param): Same.
24683 * plugin.c (add_new_plugin): Same.
24684 (parse_plugin_arg_opt): Same.
24685 (try_init_one_plugin): Same.
24686 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
24687 operators, and types in diagnostics. Correct quoting and spelling
24689 * read-rtl-function.c (parse_edge_flag_token): Same.
24690 (function_reader::parse_enum_value): Same.
24691 * reg-stack.c (check_asm_stack_operands): Same.
24692 * regcprop.c (validate_value_data): Same.
24693 * sched-rgn.c (make_pass_sched_fusion): Same.
24694 * stmt.c (check_unique_operand_names): Same.
24695 * targhooks.c (default_target_option_pragma_parse): Same.
24696 * tlink.c (recompile_files): Same.
24697 * toplev.c (process_options): Same.
24698 (do_compile): Same.
24699 * trans-mem.c (diagnose_tm_1): Same.
24700 (ipa_tm_scan_irr_block): Same.
24701 (ipa_tm_diagnose_transaction): Same.
24702 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
24703 format a tree code name in a diagnostic.
24704 (verify_types_in_gimple_min_lval): Same.
24705 (verify_types_in_gimple_reference): Same.
24706 (verify_gimple_call): Same.
24707 (verify_gimple_assign_unary): Same.
24708 (verify_gimple_assign_binary): Same.
24709 (verify_gimple_assign_ternary): Same.
24710 (verify_gimple_assign_single): Same.
24711 (verify_gimple_switch): Same.
24712 (verify_gimple_label): Same.
24713 (verify_gimple_phi): Same.
24714 (verify_gimple_in_seq): Same.
24715 (verify_eh_throw_stmt_node): Same.
24716 (collect_subblocks): Same.
24717 (gimple_verify_flow_info): Same.
24718 (do_warn_unused_result): Same.
24719 * tree-inline.c (expand_call_inline): Same.
24720 * tree-into-ssa.c (update_ssa): Same.
24721 * tree.c (tree_int_cst_elt_check_failed): Same.
24722 (tree_vec_elt_check_failed): Same.
24723 (omp_clause_operand_check_failed): Same.
24724 (verify_type_variant): Same.
24725 (verify_type): Same.
24726 * value-prof.c (verify_histograms): Same.
24727 * varasm.c (assemble_start_function): Same.
24729 2019-05-16 Martin Sebor <msebor@redhat.com>
24731 * config/i386/i386-expand.c (get_element_number): Quote keywords
24732 and other internal names in diagnostics. Adjust other diagnostic
24733 formatting issues noted by -Wformat-diag.
24734 * config/i386/i386-features.c
24735 (ix86_mangle_function_version_assembler_name): Same.
24736 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
24737 * config/i386/i386.c (ix86_function_type_abi): Same.
24738 (ix86_function_ms_hook_prologue): Same.
24739 (classify_argument): Same.
24740 (ix86_expand_prologue): Same.
24741 (ix86_md_asm_adjust): Same.
24742 (ix86_memmodel_check): Same.
24744 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
24746 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
24747 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
24750 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
24753 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
24754 intrinsics without SSE/SSE2/SSSE3.
24755 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
24757 (*mmx_uavgv8qi3): Likewise.
24759 2019-05-17 Richard Biener <rguenther@suse.de>
24761 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
24762 VEC_PERM_EXPR as __VEC_PERM with -gimple.
24764 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
24766 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
24767 vec_sldw insn pattern.
24769 2019-05-17 Richard Biener <rguenther@suse.de>
24771 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
24773 2019-05-17 Martin Liska <mliska@suse.cz>
24776 * toplev.c (output_stack_usage): With LTO and sanitizer it
24777 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
24778 has no file location.
24780 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24783 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
24784 sz0 is equal to sz1, instead return false in that case.
24786 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
24787 has non-constant expression, force sctx.lane and use two
24788 argument IFN_GOMP_SIMD_LANE instead of single argument.
24789 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
24790 two argument IFN_GOMP_SIMD_LANE without lhs.
24791 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
24793 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
24795 (LOOP_REQUIRES_VERSIONING): Or in
24796 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
24797 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
24799 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
24800 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
24801 from simd if clause if needed.
24803 2019-05-16 Richard Biener <rguenther@suse.de>
24805 * tree-affine.c (expr_to_aff_combination): New function split
24807 (tree_to_aff_combination): ... here.
24808 (aff_combination_expand): Avoid building a GENERIC tree.
24810 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
24812 * cgraphunit.c (cgraph_node::expand_thunk): Remove
24813 assemble_start_function and assemble_end_function calls.
24814 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
24815 assemble_start_function and assemble_end_function.
24816 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
24817 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
24818 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
24819 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
24820 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
24821 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
24822 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
24823 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
24824 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
24825 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
24826 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
24827 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
24829 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
24830 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
24831 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
24832 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
24833 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
24834 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
24835 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
24836 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
24837 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
24838 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
24839 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
24840 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
24841 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
24842 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
24844 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
24845 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
24846 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
24848 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
24850 * tree-ssa-alias.c (alias_stats): Add
24851 aliasing_component_refs_p_may_alias and
24852 aliasing_component_refs_p_no_alias.
24853 (dump_alias_stats): Print aliasing_component_refs_p stats.
24854 (aliasing_component_refs_p): Update stats.
24856 2019-05-16 Martin Liska <mliska@suse.cz>
24859 * multiple_target.c (expand_target_clones): Do not allow
24860 target_clones being used with a symbol that is an alias.
24862 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
24864 PR tree-optimization/90394
24865 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
24866 positives rather than ICE for cases where (code2 == NE_EXPR
24867 && code1 == BIT_AND_EXPR).
24869 2019-05-16 Jakub Jelinek <jakub@redhat.com>
24872 * tree-core.h (struct tree_decl_common): Document
24873 decl_nonshareable_flag for PARM_DECLs.
24874 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
24875 * calls.c (expand_call): Don't try tail call if caller
24876 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
24877 passed on the stack and callee needs to pass any arguments on the
24879 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
24880 else if instead of series of mutually exclusive ifs. Handle
24881 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
24882 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
24884 * lto-streamer.h (LTO_major_version): Bump to 9.
24886 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
24888 PR tree-optimization/90106
24889 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
24890 new parameter as new internal function call, also move it to new
24892 (use_internal_fn): Pass internal function call to
24893 shrink_wrap_one_built_in_call_with_conds.
24895 2019-05-15 Jakub Jelinek <jakub@redhat.com>
24897 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
24899 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
24900 safelen_int and set loop->dont_vectorize.
24902 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24905 * config/i386/i386-builtin.def: Enable MMX intrinsics with
24907 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
24909 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
24910 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
24911 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
24914 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24917 * config/i386/mmx.md (*vec_dupv2sf): Changed to
24918 define_insn_and_split to support SSE emulation.
24919 (*vec_extractv2sf_0): Likewise.
24920 (*vec_extractv2sf_1): Likewise.
24921 (*vec_extractv2si_0): Likewise.
24922 (*vec_extractv2si_1): Likewise.
24923 (*vec_extractv2si_zext_mem): Likewise.
24924 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
24925 (vec_extractv2sf_1 splitter): Likewise.
24926 (vec_extractv2sfsf): Likewise.
24927 (vec_setv2si): Likewise.
24928 (vec_extractv2si_1 splitter): Likewise.
24929 (vec_extractv2sisi): Likewise.
24930 (vec_setv4hi): Likewise.
24931 (vec_extractv4hihi): Likewise.
24932 (vec_setv8qi): Likewise.
24933 (vec_extractv8qiqi): Likewise.
24934 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24935 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
24936 (vec_extractv2sisi): Likewise.
24937 (vec_extractv4hihi): Likewise.
24938 (vec_extractv8qiqi): Likewise.
24939 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
24940 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
24941 (vec_initv2sisi): Likewise.
24942 (vec_initv4hihi): Likewise.
24943 (vec_initv8qiqi): Likewise.
24944 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
24945 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
24946 (vec_setv4hi): Likewise.
24947 (vec_setv8qi): Likewise.
24949 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24952 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
24953 TARGET_MMX_WITH_SSE.
24954 (MMXMODE:*mov<mode>_internal): Likewise.
24955 (MMXMODE:movmisalign<mode>): Likewise.
24957 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
24960 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
24961 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
24962 (sse2_cvtpd2pi): Ditto.
24963 (sse2_cvttpd2pi): Ditto.
24964 (*vec_concatv2sf_sse4_1): Ditto.
24965 (*vec_concatv2sf_sse): Ditto.
24966 (*vec_concatv2si_sse4_1): Ditto.
24967 (*vec_concatv2si): Ditto.
24968 (*vec_concatv4si_0): Ditto.
24969 (*vec_concatv2di_0): Ditto.
24971 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24974 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
24976 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24979 * config/i386/sse.md (ssse3_palignrdi): Changed to
24980 define_insn_and_split to support SSE emulation.
24982 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24985 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
24987 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24990 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
24991 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
24994 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
24997 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
24998 or TARGET_MMX_WITH_SSE.
24999 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
25001 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25004 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
25006 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25009 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
25010 Changed to define_insn_and_split to support SSE emulation.
25012 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25015 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
25016 Changed to define_insn_and_split to support SSE emulation.
25018 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25021 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
25022 (*mmx_<emms>): This.
25023 (mmx_<emms>): New expander.
25025 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25028 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
25030 (*sse2_umulv1siv1di3): Add SSE2 emulation.
25032 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25035 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
25037 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25040 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
25042 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25045 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
25046 TARGET_MMX_WITH_SSE.
25047 (*mmx_uavgv4hi3): Add SSE emulation.
25049 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25052 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
25053 and TARGET_MMX_WITH_SSE.
25054 (*mmx_uavgv8qi3): Add SSE emulation.
25056 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25059 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
25060 maskmovdqu for __MMX_WITH_SSE__.
25062 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25065 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
25066 TARGET_MMX and TARGET_MMX_WITH_SSE.
25067 (*mmx_umulv4hi3_highpart): Add SSE emulation.
25069 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25072 * config/i386/mmx.md (mmx_pmovmskb): Changed to
25073 define_insn_and_split to support SSE emulation.
25075 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25078 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
25079 and TARGET_MMX_WITH_SSE.
25080 (mmx_<code>v8qi3): Likewise.
25081 (smaxmin:<code>v4hi3): New.
25082 (umaxmin:<code>v8qi3): Likewise.
25083 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
25084 (umaxmin:*mmx_<code>v8qi3): Likewise.
25086 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25089 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
25090 TARGET_MMX_WITH_SSE.
25091 (*mmx_pinsrw): Add SSE emulation.
25093 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25096 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
25098 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25101 * config/i386/sse.md (sse_cvtpi2ps): Changed to
25102 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
25105 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25108 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
25109 (sse_cvttps2pi): Likewise.
25111 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25114 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
25115 TARGET_MMX_WITH_SSE.
25116 (mmx_pshufw_1): Add SSE emulation.
25117 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
25118 TARGET_MMX_WITH_SSE to support SSE emulation.
25120 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25123 * config/i386/constraints.md (Yw): New constraint.
25124 * config/i386/mmx.md (*vec_dupv2si): Changed to
25125 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
25126 support SSE emulation.
25128 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25131 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
25132 TARGET_MMX_WITH_SSE.
25133 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25135 (mmx_gt<mode>3): Likewise.
25137 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25140 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
25141 TARGET_MMX_WITH_SSE. Add SSE support.
25143 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25146 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
25147 TARGET_MMX_WITH_SSE.
25148 (any_logic:<code><mode>3): New.
25149 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
25152 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25155 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
25156 TARGET_MMX_WITH_SSE. Add SSE emulation.
25157 (mmx_<shift_insn><mode>3): Likewise.
25158 (ashr<mode>3): New.
25159 (<shift_insn><mode>3): Likewise.
25161 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25164 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
25165 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
25167 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25170 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
25171 TARGET_MMX_WITH_SSE.
25172 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
25175 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25178 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
25179 TARGET_MMX_WITH_SSE.
25181 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
25184 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25187 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
25188 (plusminus:mmx_<plusminus_insn><mode>3): Check
25189 TARGET_MMX_WITH_SSE.
25190 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
25191 (<plusminus_insn><mode>3): New.
25192 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
25193 (*mmx_<plusminus_insn><mode>3): Likewise.
25195 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25198 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
25199 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
25201 * config/i386/mmx.m (mmx_punpckhbw): Changed to
25202 define_insn_and_split to support SSE emulation.
25203 (mmx_punpcklbw): Likewise.
25204 (mmx_punpckhwd): Likewise.
25205 (mmx_punpcklwd): Likewise.
25206 (mmx_punpckhdq): Likewise.
25207 (mmx_punpckldq): Likewise.
25209 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25210 Uros Bizjak <ubizjak@gmail.com>
25213 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
25215 (ix86_split_mmx_pack): Likewise.
25216 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
25218 (ix86_split_mmx_pack): Likewise.
25219 * config/i386/i386.md (mmx_isa): New.
25220 (enabled): Also check mmx_isa.
25221 * config/i386/mmx.md (any_s_truncate): New code iterator.
25222 (s_trunsuffix): New code attr.
25223 (mmx_packsswb): Removed.
25224 (mmx_packssdw): Likewise.
25225 (mmx_packuswb): Likewise.
25226 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
25227 MMX packsswb/packuswb with SSE2.
25228 (mmx_packssdw): Likewise.
25229 * config/i386/predicates.md (register_mmxmem_operand): New.
25231 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
25234 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25235 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
25236 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
25237 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
25238 (ix86_vector_mode_supported_p): Likewise.
25239 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
25241 2019-05-15 Martin Liska <mliska@suse.cz>
25243 PR middle-end/90478
25244 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25245 Check for overflow.
25247 2019-05-15 Richard Biener <rguenther@suse.de>
25249 * tree-into-ssa.c (pass_build_ssa::execute): Run
25250 update_address_taken before going into SSA.
25252 2019-05-15 Richard Biener <rguenther@suse.de>
25254 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
25255 as __BIT_FIELD_REF with type with -gimple.
25257 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
25259 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
25260 semantically equivalent branches (left over after prior refactorings).
25262 2019-05-15 Richard Biener <rguenther@suse.de>
25264 PR tree-optimization/88828
25265 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
25268 2019-05-14 Richard Biener <rguenther@suse.de>
25270 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
25271 as __VIEW_CONVERT with -gimple.
25273 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25276 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
25279 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25281 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
25282 define_split to become a define_insn_and_split.
25284 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
25286 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
25288 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
25289 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
25290 (sibcall_epilogue): Adjust.
25291 (epilogue): Adjust.
25293 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25295 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
25296 to unsupported ones.
25297 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
25298 * config.host: Likewise.
25299 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
25300 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
25301 __svr4__]: Remove "brand" fallback.
25302 [!KSTAT_DATA_STRING]: Remove.
25303 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
25305 (comdat_group): Likewise.
25306 (set_have_as_tls): Likewise.
25307 (gcc_cv_target_dl_iterate_phdr): Likewise.
25308 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
25309 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
25310 * configure: Regenerate.
25311 * doc/install.texi: Simplify Solaris target triplets.
25312 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
25313 (Specific, *-*-solaris2*): Document Solaris 10 removal.
25314 Remove Solaris 10 references.
25315 Remove obsolete Solaris bug reference.
25316 (Specific, sparc-sun-solaris2.10): Remove.
25318 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
25320 * config/i386/i386.md (any_div): New code iterator.
25321 (paired_mod): New code attribute.
25322 (sgnprefix): Handle DIV and UDIV RTXes.
25324 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
25325 and udivmod<mode>4 patterns using any_div code iterator.
25326 (divmod splitters): Macroize splitters using any_div code iterator.
25327 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
25328 (*udivmodsi4_pow2_zext_2): Ditto.
25329 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
25330 and *udivmod<mode>4_noext patterns using any_div code iterator.
25331 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
25332 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
25333 patterns using any_div code iterator.
25334 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
25335 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
25336 patterns using any_div code iterator.
25337 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
25338 udivmodhiqi3 patterns using any_extend code iterator.
25340 2019-05-14 Richard Biener <rguenther@suse.de>
25341 H.J. Lu <hongjiu.lu@intel.com>
25343 PR tree-optimization/88828
25344 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
25345 permuting in a single non-constant element not extracted
25348 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
25350 * internal-fn.def (SIGNBIT): New.
25351 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
25353 (signbitv4sf2): Likewise.
25355 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
25358 * config/mips/mips.c (mips_split_move): Skip forward SRC into
25359 next insn when the SRC reg is dead.
25361 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
25363 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
25364 (alloc_cand_and_find_basis): Ditto.
25365 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
25366 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
25367 (create_add_imm_cand, slsr_process_cast): Ditto.
25368 (slsr_process_copy, replace_mult_candidate): Ditto.
25369 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
25370 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
25371 (pass_strength_reduction::execute): Init the first NULL element.
25373 2019-05-13 Nathan Sidwell <nathan@acm.org>
25375 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
25376 (run_attempt): Reformat line break.
25378 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
25381 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
25382 data registers in sibcall epilogues.
25383 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25385 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
25388 * configure.ac (--enable-frame-pointer):
25389 Disable by default for cygwin and mingw.
25390 * configure: Regenerate.
25392 2019-05-13 Nathan Sidwell <nathan@acm.org>
25394 * dwarf2out.c (breakout_comdat_types): Move comment to correct
25396 (const_ok_for_output_1): Balance parens around #if/#else/#endif
25397 (gen_member_die): Move abstract origin check earlier. Only VARs
25398 can be static_inline_p. Simplify splicing control flow.
25400 2019-05-13 Richard Biener <rguenther@suse.de>
25402 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
25404 (vect_build_slp_tree_1): Likewise.
25406 2019-05-13 Richard Biener <rguenther@suse.de>
25408 PR tree-optimization/90402
25409 * tree-if-conv.c (tree_if_conversion): Value number only
25410 the loop body by making the latch an exit of the region
25412 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
25414 (do_rpo_vn): Deal with multiple edges into the entry block
25415 that are not backedges inside the region by skipping PHIs
25416 of the entry block.
25418 2019-05-13 Richard Biener <rguenther@suse.de>
25420 PR tree-optimization/90316
25421 * tree-ssa-pre.c (insert_aux): Fold into ...
25422 (insert): ... this function. Use a RPO walk to reduce the
25423 number of required iterations.
25425 2019-05-13 Martin Liska <mliska@suse.cz>
25427 PR tree-optimization/90416
25428 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
25429 string instead of passing the second part as va_arg argument.
25431 2019-05-13 Martin Liska <mliska@suse.cz>
25433 PR gcov-profile/90380
25434 * gcov.c (handle_cycle): Do not support zero cycle count,
25435 it should not be possible.
25436 (path_contains_zero_cycle_arc): New function.
25437 (circuit): Ignore zero cycle arc counts.
25439 2019-05-13 Martin Liska <mliska@suse.cz>
25441 PR gcov-profile/90380
25442 * gcov.c (enum loop_type): Remove the enum and
25444 (handle_cycle): Assert that we should not reach
25446 (circuit): Use loop_found instead of a tri-state loop_type.
25447 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
25450 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25453 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
25454 (ix86_output_indirect_branch_via_reg): Use output mechanism
25455 accounting for __USER_LABEL_PREFIX__.
25456 (ix86_output_indirect_branch_via_push): Likewise.
25457 (ix86_output_function_return): Likewise.
25458 (ix86_output_indirect_function_return): Likewise.
25460 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
25462 * doc/md.texi: Document use of code attributes in rtx patterns.
25463 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
25464 * read-rtl.c (find_code): Split out search loops into...
25465 (maybe_find_code): ...this new function.
25466 (check_code_iterator): Make the error message more informative.
25467 (check_code_attribute): New function.
25468 (rtx_reader::rtx_alloc_for_name): Likewise.
25469 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
25470 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
25471 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
25472 <max_opp> directly as an rtx code instead of via a match_operator.
25473 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
25474 (<su>abd<mode>_3): Update accordingly.
25476 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
25478 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
25479 is given, print the state of the EH "save world" computation for
25482 2019-05-11 Jakub Jelinek <jakub@redhat.com>
25485 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
25486 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
25488 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
25490 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
25491 Use pinsrd for TARGET_SSE4_1.
25492 * config/i386/sse.md (movdi_to_sse): Ditto.
25494 2019-05-10 Richard Biener <rguenther@suse.de>
25496 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
25497 (do_rpo_vn): Initialize next_value_id.
25499 2019-05-10 Martin Liska <mliska@suse.cz>
25501 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25504 2019-05-10 Jakub Jelinek <jakub@redhat.com>
25506 PR tree-optimization/90385
25507 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
25508 arguments of the exit phis.
25511 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
25512 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
25514 (copy_tree_body_r): Likewise.
25515 (copy_fn): Set id.do_not_fold to true.
25517 2019-05-10 Martin Liska <mliska@suse.cz>
25519 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
25520 Reapply changes from r269790.
25522 2019-05-10 Martin Liska <mliska@suse.cz>
25524 PR middle-end/90340
25525 * doc/invoke.texi: New params.
25526 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
25527 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
25528 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
25530 * tree-switch-conversion.h (struct jump_table_cluster):
25533 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
25535 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
25537 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
25539 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
25541 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
25543 PR rtl-optimization/88879
25544 * sel-sched.c (sel_target_adjust_priority): Remove assert.
25546 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
25549 * config/arm/arm.c (callee_saved_reg_p): Move before
25550 thumb_find_work_register.
25551 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
25552 thumb_find_work_register. Only call df_get_live_out once.
25553 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
25554 (thumb_find_work_register): Use
25555 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
25556 algorithms to locate a spare call clobbered reg.
25558 2019-05-09 Martin Liska <mliska@suse.cz>
25560 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
25561 and MAX_EXPR in GIMPLE FE format.
25563 2019-05-09 Martin Liska <mliska@suse.cz>
25565 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
25566 * gimple-pretty-print.c (dump_gimple_bb_header):
25568 (pp_cfg_jump): Dump edge probability.
25569 * profile-count.c (profile_quality_as_string): Simplify
25570 with a static array.
25571 (parse_profile_quality): New function.
25572 (profile_count::dump): Simplify with a static array.
25573 (profile_count::from_gcov_type): Add new argument.
25574 * profile-count.h (parse_profile_quality): Likewise.
25575 * predict.h (set_hot_bb_threshold): New.
25576 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
25578 * predict.c (get_hot_bb_threshold): Set from the new param.
25579 (set_hot_bb_threshold): New.
25581 2019-05-09 Richard Biener <rguenther@suse.de>
25583 PR tree-optimization/90395
25584 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
25585 rewrite vector stores that throw internally.
25587 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
25589 * cif-code.def (CHKP): Remove.
25592 * configure.ac (--enable-frame-pointer): Disable by default for
25594 * configure: Regenerate.
25596 2019-05-09 Alan Modra <amodra@gmail.com>
25599 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
25600 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
25601 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
25602 cost for general <-> vsx when direct moves are available.
25603 Cost union classes at minimal cost for any reg in the class.
25604 Correct calculation for moves between vsx, float, and altivec.
25605 Don't return a low cost for moves between special regs. Don't
25606 use hard coded register numbers.
25607 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
25608 (rs6000_ira_change_pseudo_allocno_class): New function.
25609 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
25610 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
25612 (movsi_internal1): Don't disparage vector alternatives.
25613 (mov<mode>_internal): Likewise, excepting alternative that
25615 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
25616 we <- b alternative.
25618 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25621 PR tree-optimization/89060
25622 * tree-ssa-live.h (live_vars_map): New typedef.
25623 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
25624 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
25625 (struct compute_live_vars_data): New type.
25626 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
25627 live_vars_at_stmt, destroy_live_vars): New functions.
25628 * tree-tailcall.c: Include tree-ssa-live.h.
25629 (live_vars, live_vars_vec): New global variables.
25630 (find_tail_calls): Perform variable life analysis before punting.
25631 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
25632 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
25634 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
25635 Perform variable life analysis to select variables that really need
25637 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
25638 instead set id->eh_landing_pad_dest and assert it is the same.
25639 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
25641 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
25642 Richard Earnshaw <rearnsha@arm.com>
25645 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
25647 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
25648 (thumb1_compute_save_core_reg_mask): Don't force a spare work
25649 register if both the epilogue and prologue can use call-clobbered
25651 (thumb1_unexpanded_epilogue): Use
25652 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
25653 picking temporaries for restoring high regs to match that of the
25654 prologue where possible.
25655 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
25656 the list of work registers. Detect if the return address is still live
25657 at the end of the prologue and avoid using it for a work register if so.
25658 If the return address is not live, add LR to the list of pushable regs
25659 after the first pass.
25661 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25663 PR tree-optimization/90078
25664 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
25665 (INFTY): Increase the value for infinite cost.
25666 (struct comp_cost): Promote type of members to int64_t.
25667 (infinite_cost): Don't set complexity in initialization.
25668 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
25669 overflows to infinite_cost.
25670 (adjust_setup_cost): Promote type of parameter and cost computation
25672 (struct ainc_cost_data, struct iv_ca): Promote type of member to
25674 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
25675 cost computation to int64_t.
25676 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
25677 int64_t's format specifier in dump.
25679 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
25681 PR tree-optimization/90240
25682 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
25683 with respect to scaling factor pre-computed for each basic block.
25684 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
25685 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
25686 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
25687 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
25688 live range for array of loop's basic blocks. Cleanup aux field of
25689 loop's basic blocks.
25691 2019-05-08 Jakub Jelinek <jakub@redhat.com>
25693 PR tree-optimization/90356
25694 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
25696 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
25698 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
25699 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
25700 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
25701 (ix86_handle_option): Handle -mavx512bf16.
25702 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
25704 * config/i386/avx512bf16vlintrin.h: New.
25705 * config/i386/avx512bf16intrin.h: New.
25706 * config/i386/cpuid.h (bit_AVX512BF16): New.
25707 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
25708 * config/i386/i386-builtin-types.def: Add new types.
25709 * config/i386/i386-builtin.def: Add new builtins.
25710 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25712 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
25713 (ix86_option_override_internal): Handle BF16.
25714 (ix86_valid_target_attribute_inner_p): Ditto.
25715 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
25716 * config/i386/i386-builtin.c (enum processor_features): Add
25718 (static const _isa_names_table isa_names_table): Ditto.
25719 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
25720 (PTA_AVX512BF16): Ditto.
25721 * config/i386/i386.opt: Add -mavx512bf16.
25722 * config/i386/immintrin.h: Include avx512bf16intrin.h
25723 and avx512bf16vlintrin.h.
25724 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
25725 avx512f_cvtneps2bf16_<mode><mask_name>,
25726 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
25727 * config/i386/subst.md (mask_half): Add new subst.
25728 * doc/invoke.texi: Document -mavx512bf16.
25730 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
25732 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
25733 Delete declaration.
25734 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
25735 (rs6000_debug_legitimize_reload_address): Delete.
25736 (rs6000_legitimize_reload_address_ptr): Delete.
25737 (rs6000_option_override_internal): Adjust.
25738 (mem_operand_gpr): Adjust comment.
25739 (legitimate_lo_sum_address_p): Ditto.
25740 (rs6000_legitimize_reload_address): Delete.
25741 (rs6000_debug_legitimize_reload_address): Delete.
25742 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
25744 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
25747 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
25748 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
25749 to compute vector element selector for both constant and variable
25752 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25754 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
25755 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
25756 ashrdi3_cvt using SWI48 mode iterator.
25758 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
25760 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
25761 (aarch64_<su>abd<mode>_3): Likewise.
25762 (*aarch64_<su>abd<mode>_3): New define_insn.
25763 (<sur>sad<vsi2qi>): New define_expand.
25764 * config/aarch64/iterators.md: Added MAX_OPP attribute.
25765 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
25766 (build_vect_cond_expr): Likewise.
25768 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
25770 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
25771 clobbers outside of accessible_reg_set.
25772 * config/i386/i386.c (ix86_conditional_register_usage):
25773 Disable register sets by clearing corresponding bits in
25774 accessible_reg_set. Do not set corresponding bits in fixed_regs,
25775 call_used_regs and don't clear corresponding reg_names array members.
25777 2019-05-07 Richard Biener <rguenther@suse.de>
25779 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
25780 not specified still compute a comp_vectype for invariant
25783 2019-05-07 Richard Biener <rguenther@suse.de>
25785 PR tree-optimization/90316
25786 * tree-ssa-pre.c (translate_vuse_through_block): When
25787 same_valid is NULL do not bother to search for a virtual
25789 (phi_translate_1): When operands changed we cannot keep
25790 the same value-number so do not bother to ask whether
25791 that's possible from translate_vuse_through_block.
25793 2019-05-07 Martin Liska <mliska@suse.cz>
25795 * bitmap.c (bitmap_register): Come up with
25796 alloc_descriptor_max_uid and assign it for
25798 (register_overhead): Use get_descriptor as
25800 (release_overhead): New.
25801 (bitmap_elem_to_freelist): Call it.
25802 (bitmap_elt_clear_from): Likewise.
25803 (bitmap_obstack_free): Likewise.
25804 (bitmap_move): Sensitively release memory.
25805 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
25806 (bitmap_initialize): Initialize alloc_descriptor to zero.
25807 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
25809 2019-05-07 Richard Biener <rguenther@suse.de>
25811 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
25812 we build a SLP node. Remove max_size and limiting.
25813 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
25815 2019-05-07 Richard Biener <rguenther@suse.de>
25817 PR tree-optimization/90316
25818 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
25819 limit by reference.
25820 (walk_non_aliased_vuses): Take walking limit argument.
25821 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
25822 walking if it is reached instead of just counting.
25823 (get_continuation_for_phi): Likewise.
25824 (walk_non_aliased_vuses): Likewise, instead of leaving counter
25825 limiting to the callback.
25826 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
25827 (vn_reference_lookup_3): Likewise.
25828 (vn_reference_lookup_pieces): Likewise.
25829 (vn_reference_lookup): Likewise.
25830 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
25831 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
25832 (avail_exprs_stack::lookup_avail_expr): Likewise.
25834 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
25836 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
25837 for comparaible types in the second direction even if first one
25838 hits incomparable type.
25840 2019-05-07 Richard Biener <rguenther@suse.de>
25843 * lto-wrapper.c (debug_objcopy): Use the original filename
25844 including archive offset for the filename used for -save-temps.
25846 2019-05-07 Li Jia He <helijia@linux.ibm.com>
25848 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
25851 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
25852 Hongtao Liu <hongtao.liu@intel.com>
25856 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
25857 Modified, original implementation isn't correct.
25859 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25861 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
25862 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
25863 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
25864 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
25865 (FRAME_POINTER_REGNUM): Change numbering.
25866 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
25867 (alt_reg_names): Adjust.
25868 (rs6000_conditional_register_usage): Don't mark hard register 64 as
25870 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25871 (DWARF_FRAME_REGISTERS): Delete.
25872 (DWARF2_FRAME_REG_OUT): Fix whitespace.
25873 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25875 (REG_ALLOC_ORDER): Adjust.
25876 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
25877 (REG_CLASS_CONTENTS): Adjust.
25878 (RETURN_ADDR_RTX): Change comment.
25879 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
25881 (REGISTER_NAMES): Adjust.
25882 (ADDITIONAL_REGISTER_NAMES): Adjust.
25883 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25885 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25887 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
25889 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
25890 (DWARF_FRAME_REGISTERS): Adjust.
25891 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
25893 (REG_ALLOC_ORDER): Adjust.
25894 (enum reg_class): Delete SPR_REGS.
25895 (REG_CLASS_NAMES): Delete SPR_REGS.
25896 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
25897 (REGISTER_NAMES): Adjust.
25898 (ADDITIONAL_REGISTER_NAMES): Adjust.
25899 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
25900 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
25901 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
25902 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
25903 (htm_spr_regno): Delete.
25904 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
25906 (rs6000_dbx_register_number): Adjust.
25908 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25910 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
25912 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
25914 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
25915 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
25917 2019-05-06 Jakub Jelinek <jakub@redhat.com>
25919 PR tree-optimization/88709
25920 PR tree-optimization/90271
25921 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
25922 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
25923 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
25925 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
25926 of the store merging group is larger than
25927 PARAM_STORE_MERGING_MAX_SIZE parameter.
25928 (split_group): Add bzero_first argument. If set, always emit first
25929 the first store which must be = {} of the whole area and then for the
25930 rest of the stores consider all zero bytes as paddings.
25931 (imm_store_chain_info::output_merged_store): Check if first store
25932 is = {} of the whole area and if yes, determine which setting of
25933 bzero_first for split_group gives smaller number of stores. Adjust
25934 split_group callers.
25935 (lhs_valid_for_store_merging_p): Allow decls.
25936 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
25938 (pass_store_merging::process_store): Likewise.
25940 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
25943 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
25944 handling of V1TImode.
25946 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
25949 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
25950 and enable_frame_pointer ...
25951 * configure.ac: ... here. Update help strings for
25952 --enable-frame-pointer.
25953 * configure: Regenerate.
25954 * config/i386/i386-options.c (ix86_option_override_internal): Remove
25955 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
25956 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
25957 (USE_X86_64_FRAME_POINTER): Ditto.
25959 2019-05-06 Martin Liska <mliska@suse.cz>
25961 * config.gcc: Append to target_gtfiles and fix indentation.
25963 2019-05-06 Richard Biener <rguenther@suse.de>
25965 PR tree-optimization/90358
25966 * tree-vect-stmts.c (get_group_load_store_type): Properly
25967 detect unused upper half of load.
25968 (vectorizable_load): Likewise.
25970 2019-05-06 Richard Biener <rguenther@suse.de>
25972 PR tree-optimization/88828
25973 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
25974 (simplify_vector_constructor): ...here. Handle constants in
25977 2019-05-06 Richard Biener <rguenther@suse.de>
25979 PR tree-optimization/90328
25980 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
25981 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
25982 is valid in the loop nest before using it.
25983 (initialize_data_dependence_relation): Adjust.
25984 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
25985 loop as loop-nest to dr_may_alias_p.
25987 2019-05-06 Richard Biener <rguenther@suse.de>
25989 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
25991 2019-05-06 Richard Biener <rguenther@suse.de>
25993 PR tree-optimization/90316
25994 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
25995 compute target on demand.
25996 (get_continuation_for_phi): Remove code walking stmts to
25997 get to a target virtual operand which could end up being
26000 2019-05-06 Martin Liska <mliska@suse.cz>
26003 * config/i386/i386-options.c (ix86_option_override_internal): Error only
26004 when -mabi is selected to a non-default version.
26006 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
26007 Martin Liska <mliska@suse.cz>
26009 * Makefile.in: Add lto-dump.texi.
26010 * cgraph.h: Add new functions get_visibility_string and
26011 get_symtab_type_string.
26012 * doc/gcc.texi: Include lto-dump section.
26013 * doc/lto-dump.texi: New file.
26014 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
26015 (parse_dump_option): Factor out this function.
26016 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
26017 (parse_dump_option): Export the function.
26018 * symtab.c (symtab_node::get_visibility_string): New function.
26019 (symtab_node::get_symtab_type_string): Likewise.
26021 2019-05-06 Martin Liska <mliska@suse.cz>
26023 * config/i386/i386-builtins.c: New file.
26024 * config/i386/i386-builtins.h: New file.
26025 * config/i386/i386-expand.c: New file.
26026 * config/i386/i386-expand.h: New file.
26027 * config/i386/i386-features.c: New file.
26028 * config/i386/i386-features.h: New file.
26029 * config/i386/i386-options.c: New file.
26030 * config/i386/i386-options.h: New file.
26031 * config.gcc: Add new files into extra_objs and
26033 * config/i386/i386.c: Split content of the file
26034 into newly introduced files.
26035 * config/i386/i386.h: Declare common variables
26037 * config/i386/t-i386: Define dependencies for new files.
26039 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
26042 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
26043 Restrict 'all' variant to 32-bit configurations.
26044 (unaligned_loadhiu): Likewise.
26045 (unaligned_storehi): Likewise.
26046 (unaligned_storesi): Likewise.
26047 (unaligned_loadhis): Disable when compiling for thumb1.
26049 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
26051 PR tree-optimization/90269
26052 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
26055 2019-05-03 Martin Liska <mliska@suse.cz>
26057 * hash-map.h: Add is_empty function.
26058 * hash-set.h: Likewise.
26059 * hash-table.h: Likewise.
26060 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
26061 elements () == 0 (and similar usages).
26062 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
26063 * gimplify.c (gimplify_bind_expr): Likewise.
26064 (gimplify_switch_expr): Likewise.
26065 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
26066 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
26067 * postreload-gcse.c (dump_hash_table): Likewise.
26068 (gcse_after_reload_main): Likewise.
26069 * predict.c (combine_predictions_for_bb): Likewise.
26070 * tree-parloops.c (reduction_phi): Likewise.
26071 (separate_decls_in_region): Likewise.
26072 (transform_to_exit_first_loop): Likewise.
26073 (gen_parallel_loop): Likewise.
26074 (gather_scalar_reductions): Likewise.
26075 (try_create_reduction_list): Likewise.
26076 * var-tracking.c (dump_vars): Likewise.
26077 (emit_notes_for_changes): Likewise.
26078 (vt_emit_notes): Likewise.
26080 2019-05-03 Richard Biener <rguenther@suse.de>
26082 PR tree-optimization/90316
26083 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
26086 2019-05-03 Richard Biener <rguenther@suse.de>
26088 * tree-vect-stmts.c (get_group_load_store_type): Avoid
26089 peeling for gaps by loading only lower halves of vectors
26091 (vectorizable_load): Likewise.
26093 2019-05-03 Richard Biener <rguenther@suse.de>
26095 PR middle-end/89518
26096 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
26098 2019-05-03 Richard Biener <rguenther@suse.de>
26100 PR middle-end/87314
26101 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
26102 Handle STRING_CST vs DECL or STRING_CST.
26104 2019-05-03 Richard Biener <rguenther@suse.de>
26106 PR tree-optimization/88963
26107 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
26108 vector loads feeding only BIT_FIELD_REFs to component
26109 loads. Rewrite stores fed by CONSTRUCTORs to component
26112 2019-05-03 Jakub Jelinek <jakub@redhat.com>
26114 * opts.h (finish_options): Remove lang_mask argument.
26115 (print_help, help_option_argument): Declare.
26116 * opts.c (print_help): Remove forward declaration, no longer static.
26117 (finish_options): Remove lang_mask argument, don't call print_help
26119 * opts-global.c (decode_options): Adjust finish_option caller, call
26122 PR tree-optimization/90303
26123 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
26124 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
26126 2019-05-03 Richard Biener <rguenther@suse.de>
26128 PR tree-optimization/89698
26129 * gimple-fold.c (canonicalize_constructor_val): Early out
26130 for constants, handle unfolded INTEGER_CSTs as they appear in
26131 C++ virtual table ctors.
26133 2019-05-03 Richard Biener <rguenther@suse.de>
26135 * passes.c (execute_function_todo): Remove dead code.
26137 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26139 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
26140 the internal register number, for any "real" register.
26142 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
26144 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
26145 correct numbers for TFHAR, TFIAR, TEXASR.
26147 2019-05-02 Richard Biener <rguenther@suse.de>
26149 PR tree-optimization/89653
26150 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
26151 update-address-taken before the pass.
26152 * passes.def (pass_tree_loop_init): Put comment before it.
26154 2019-05-02 Richard Biener <rguenther@suse.de>
26156 PR tree-optimization/89509
26157 * tree-ssa-structalias.c (compute_dependence_clique): Look
26158 at the first subvar when determining whether it is restrict.
26160 2019-05-02 Richard Biener <rguenther@suse.de>
26162 PR tree-optimization/90273
26163 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
26164 useless debug stmts.
26166 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
26168 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
26170 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
26172 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
26173 VEC_COND_EXPR be inserted to emulate a conditional internal function.
26174 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
26175 (vectorizable_reduction): Use the functions above to vectorize in a
26176 fully masked loop codes that don't have a conditional internal
26179 2019-05-02 Martin Liska <mliska@suse.cz>
26181 * cgraphclones.c: Call valid_attribute_p with 1 for
26183 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
26184 it's for target attribute.
26185 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
26186 Add new boolean argument.
26187 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
26189 (ix86_valid_target_attribute_tree): Pass target_clone_attr
26190 to ix86_valid_target_attribute_inner_p.
26191 (ix86_valid_target_attribute_p): Pass flags argument to
26192 ix86_valid_target_attribute_inner_p.
26193 (get_builtin_code_for_version): Use 0 as it's target attribute.
26195 2019-05-02 Martin Liska <mliska@suse.cz>
26197 * gcc.c (process_command): Add dummy file only
26199 * opts-global.c (decode_options): Pass lang_mask.
26200 * opts.c (print_help): New function.
26201 (finish_options): Print --help if help_option_argument
26203 (common_handle_option): Factor out content of OPT__help_
26205 * opts.h (finish_options): Add new argument.
26207 2019-05-02 Martin Liska <mliska@suse.cz>
26210 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
26211 With -minline-all-stringops use inline expansion using 4B loop.
26212 * doc/invoke.texi: Document the change of
26213 -minline-all-stringops.
26215 2019-05-01 Jeff Law <law@redhat.com>
26217 PR tree-optimization/88797
26218 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
26219 PHI feeds a conditional on the RHS of an assignment.
26221 2019-04-30 Andrew Waterman <andrew@sifive.com>
26222 Jim Wilson <jimw@sifive.com>
26224 * config/riscv/constraints.md (L): New.
26225 * config/riscv/predicates.md (lui_operand): New.
26226 (sfb_alu_operand): New.
26227 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
26228 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
26229 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
26230 * config/riscv/risc.md (type): Add sfb_alu.
26231 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
26232 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
26233 (branch_zero<mode>): Delete.
26234 (mov<mode>cc): New.
26235 (mov<GPR:mode><X:mode>cc): Likewise.
26236 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
26238 2019-04-30 Nathan Sidwell <nathan@acm.org>
26240 * tree.h (MARK_TS_EXP): New.
26242 2019-04-30 Martin Liska <mliska@suse.cz>
26244 * opts.c (enable_warning_as_error): Provide hints
26245 for unknown options.
26247 2019-04-30 Martin Liska <mliska@suse.cz>
26250 * doc/invoke.texi: Add missing dash for gas-locview-support
26251 and gno-as-locview-support.
26253 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26256 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
26257 whitespace at the start of target attribute string.
26259 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26262 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
26263 Define __ARM_FEATURE_ATOMICS.
26265 2019-04-30 Martin Liska <mliska@suse.cz>
26267 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
26268 into built_in_function enum. Remove code for endp == 2 and
26269 use BUILT_IN_* constants.
26270 (gimple_fold_builtin): Call the function with fcode.
26272 2019-04-30 Martin Liska <mliska@suse.cz>
26274 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
26275 DECL_FUNCTION_CODE into ix86_builtins enum before
26276 the switch statement.
26278 2019-04-30 Jakub Jelinek <jakub@redhat.com>
26280 PR tree-optimization/89475
26281 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
26284 2019-04-30 Martin Liska <mliska@suse.cz>
26286 PR translation/90274
26287 * opts.c (print_filtered_help): Wrap string in _(...).
26289 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
26291 PR tree-optimization/90240
26293 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26295 PR tree-optimization/90078
26296 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26297 checks for infinite_cost overflow.
26299 2019-04-29 Jeff Law <law@redhat.com>
26301 * passes.def: Move -Wrestrict pass after copy propagation.
26303 2019-04-29 Maya Rashish <coypu@sdf.org>
26305 * config.gcc (default_gnu_indirect_function): Default to yes
26306 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
26307 sparc*-*-netbsd*, x86_64-*-netbsd*.
26309 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
26311 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
26312 where cond2 is NE_EXPR.
26313 (is_value_included_in): Update comment.
26315 2019-04-29 Richard Biener <rguenther@suse.de>
26317 PR tree-optimization/90278
26318 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
26319 EH on comparison simplification.
26321 2019-04-29 Jason Merrill <jason@redhat.com>
26323 PR c++/82081 - tail call optimization breaks noexcept
26324 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
26325 nothrow function to a might-throw function into a tail call.
26327 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
26329 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
26330 (DDR_INNER_LOOP): Likewise.
26331 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
26332 (initialize_data_dependence_relation): Likewise.
26333 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
26335 2019-04-29 Jakub Jelinek <jakub@redhat.com>
26337 PR rtl-optimization/90257
26338 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
26342 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
26346 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
26349 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
26352 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
26354 * lra-spills.c (lra_final_code_change): Remove useless move insns.
26356 2019-04-29 Richard Biener <rguenther@suse.de>
26358 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
26361 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
26363 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
26364 varasm.h, and netbsd-protos.h.
26366 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
26369 * config/i386/i386-protos.h (ix86_data_alignment): Change
26370 the second argument type to unsigned int.
26371 * config/i386/i386.c (ix86_data_alignment): Change "align"
26372 argument type to unsigned int.
26374 2019-04-27 Martin Liska <mliska@suse.cz>
26376 PR middle-end/90258
26377 * opt-suggestions.c (option_proposer::build_option_suggestions):
26378 When get_valid_option_values returns empty values, add the
26379 misspelling candidate.
26381 2019-04-26 Jim Wilson <jimw@sifive.com>
26383 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
26385 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
26386 Pass orig_mode to riscv_build_integer.
26387 (riscv_split_integer): Pass mode to riscv_move_integer.
26388 (riscv_legitimize_const_move): Likewise.
26389 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
26390 promoted_mode. Replace force_reg call with code to load constant into
26391 promoted reg and then subreg it for the store.
26392 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
26393 riscv_move_integer.
26395 2018-04-26 Eugene Sharygin <eush@ispras.ru>
26397 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
26400 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
26402 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
26403 commentary about the encoding of precision.
26405 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
26407 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
26408 * config/i386/t-freebsd64: New file.
26409 * config.gcc: Add the t-freebsd64 for multilib support.
26411 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
26413 * doc/extend.texi (vector_size): Add missing comma after @xref.
26415 2019-04-25 Jakub Jelinek <jakub@redhat.com>
26417 * BASE-VER: Set to 10.0.0.
26419 2019-04-25 Richard Biener <rguenther@suse.de>
26421 PR middle-end/89765
26422 * gimplify.c (gimplify_expr): Avoid turning a lvalue
26423 VIEW_CONVERT_EXPR into one operating on an rvalue.
26425 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
26428 * config/i386/i386.c (feature_priority): Moved to file scope.
26429 (processor_features): Likewise.
26430 (processor_model): Likewise.
26431 (_arch_names_table): Likewise.
26432 (arch_names_table): Likewise.
26433 (_feature_list): Removed.
26434 (feature_list): Likewise.
26435 (_isa_names_table): Moved to file scope. Add priority.
26436 (isa_names_table): Likewise.
26437 (get_builtin_code_for_version): Replace feature_list with
26438 isa_names_table. Update error message for P_ZERO priority.
26440 2019-04-25 Richard Biener <rguenther@suse.de>
26442 * tree-pass.h (make_pass_phi_only_cprop): Remove.
26443 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
26445 2019-04-24 Jeff Law <law@redhat.com>
26447 PR tree-optimization/90037
26448 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
26449 * passes.def: Replace all instance of phi-only cprop with the
26450 lattice propagator. Move propagation pass from after erroneous
26451 path isolation to before erroneous path isolation.
26452 * tree-ssa-phionlycprop.c: Remove.
26454 2019-04-24 Richard Biener <rguenther@suse.de>
26456 PR middle-end/90213
26457 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
26458 by size and BITS_PER_UNIT on poly-wide-ints.
26460 2019-04-25 Richard Biener <rguenther@suse.de>
26462 PR middle-end/90194
26463 * match.pd: Add pattern to simplify view-conversion of an
26466 2019-04-24 Clement Chigot <clement.chigot@atos.net>
26468 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
26469 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
26470 for Go on 32 bit AIX.
26471 * config/rs6000/aix72.h: Likewise.
26473 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26476 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
26477 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
26479 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
26482 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
26483 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
26484 for restored hard frame pointer.
26485 (s390_sched_dependencies_evaluation): Implement new target hook.
26486 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
26488 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
26490 * config/arc/arc-options.def: Fix typos and spelling mistakes.
26491 * config/arc/arc.c (arc_init): Cleanup warning message.
26492 (arc_override_options): Likewise.
26494 2019-04-24 Jakub Jelinek <jakub@redhat.com>
26497 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
26498 a register if both if_true and if_false are MEMs.
26500 PR tree-optimization/90208
26501 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
26502 after labels of new_bb, not before them.
26504 PR tree-optimization/90211
26505 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
26506 which are not SSA_NAMEs.
26508 2018-04-23 Sudakshina Das <sudi.das@arm.com>
26510 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
26512 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
26514 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26516 PR rtl-optimization/87979
26517 * modulo-sched.c (sms_schedule): Start ii value "mii" should
26520 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
26522 PR rtl-optimization/84032
26523 * modulo-sched.c (ps_insn_find_column): Change condition so that
26524 branch will always be the last insn in a row inside partial
26527 2019-04-23 Richard Biener <rguenther@suse.de>
26530 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
26531 dest_single_pred_p argument.
26532 (remove_forwarder_block): Adjust.
26533 (remove_forwarder_block_with_phi): Likewise.
26535 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26536 Bernd Edlinger <bernd.edlinger@hotmail.de>
26537 Jakub Jelinek <jakub@redhat.com>
26540 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
26541 if used with general-regs-only.
26542 (arm_conditional_register_usage): Don't add non-general regs if
26544 (arm_valid_target_attribute_rec): Handle general-regs-only.
26545 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
26547 (TARGET_HARD_FLOAT_SUB): Define.
26548 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
26549 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
26550 (TARGET_REALLY_IWMMXT2): Likewise.
26551 * config/arm/arm.opt: Add -mgeneral-regs-only.
26552 * doc/extend.texi: Document ARM general-regs-only target.
26553 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
26555 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26557 PR tree-optimization/90078
26558 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
26559 checks for infinite_cost overflow.
26561 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
26563 PR tree-optimization/90021
26564 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
26565 and check univariate against it.
26566 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
26567 * tree-data-ref.c (add_other_self_distances): Pass new argument.
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-21 Iain Sandoe <iain@sandoe.co.uk>
26585 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
26586 names using operand format, rather than hard-wired.
26587 (speculation_barrier): Likewise.
26589 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
26591 PR tree-optimization/88055
26592 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
26593 (gen_one_condition): Use it if !HONOR_NANS.
26595 2019-04-19 Jakub Jelinek <jakub@redhat.com>
26597 PR middle-end/90139
26598 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
26599 assign_temp instead of gen_reg_rtx.
26601 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
26603 PR translation/90118
26604 * config/aarch64/aarch64.c (aarch64_override_options_internal):
26605 Add missing space before %<.
26607 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
26609 PR rtl-optimization/87871
26610 * ira-lives.c (make_object_dead): Don't add conflicts to
26611 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
26613 2019-04-18 Martin Sebor <msebor@redhat.com>
26615 PR middle-end/89797
26616 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
26617 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
26618 assuming type size fits in SHWI.
26620 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
26623 * ipa-inline.c (flatten_function): New parameter UPDATE.
26624 (ipa_inline, early_inliner): Use it.
26626 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26628 * fold-const.c (int_const_binop): Return early on failure.
26630 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
26632 PR middle-end/85164
26633 * combine.c (force_int_to_mode): Cast the argument rather than
26634 the result of known_alignment.
26635 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
26637 2019-04-18 Richard Biener <rguenther@suse.de>
26640 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
26642 (remove_forwarder_block): ... here.
26643 (remove_forwarder_block_with_phi): Also move debug stmts here.
26645 2019-04-18 Jakub Jelinek <jakub@redhat.com>
26647 PR translation/79183
26648 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
26649 inform where appropriate.
26651 2019-04-18 Richard Biener <rguenther@suse.de>
26653 * tree.c (get_qualified_type): Put found type variants at the
26654 head of the variant list.
26656 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26658 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
26660 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
26663 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
26664 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
26665 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
26666 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
26667 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
26669 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
26671 * ira-conflicts.c (print_allocno_conflicts): Always print something,
26672 even for allocno's with no conflicts.
26673 (print_conflicts): Print an extra newline.
26675 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26677 * auto-inc-dec.c (attempt_change): Set the alignment of the
26678 temporary memory to that of the original.
26680 2019-04-17 Joao Moreira <jmoreira@suse.de>
26682 * targhooks.c (default_print_patchable_function_entry): Emit
26683 __patchable_function_entries section with writable flags to allow
26684 relocation resolution.
26686 2019-04-17 Jonny Grant <jg@jguk.org>
26688 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
26690 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26692 PR middle-end/90095
26693 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
26694 on lowpart SUBREGs.
26696 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
26698 * config/arc/arc.c (arc_init): Format diagnostic string.
26699 (arc_override_options): Likewise.
26700 (check_if_valid_regno_const): Likewise.
26701 (arc_reorg): Likewise.
26703 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
26706 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
26708 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
26710 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
26711 (*movdi_update1): Use Pmode.
26712 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
26713 (movdi_<mode>_update_stack): Rename to ...
26714 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
26716 (*movsi_update1): Use Pmode.
26717 (*movsi_update2): Use Pmode.
26718 (movsi_update): Rename to ...
26719 (movsi_<mode>_update): ... this. Use Pmode.
26720 (movsi_update_stack): Fix condition.
26721 (*movhi_update1): Use Pmode. Fix argument to
26722 avoiding_indexed_address_p.
26723 (*movhi_update2): Ditto.
26724 (*movhi_update3): Ditto.
26725 (*movhi_update4): Ditto.
26726 (*movqi_update1): Ditto.
26727 (*movqi_update2): Ditto.
26728 (*movqi_update3): Ditto.
26729 (*movsf_update1, *movdf_update1): Merge, rename to...
26730 (*mov<mode>_update1): This. Use Pmode. Fix argument to
26731 avoiding_indexed_address_p. Add "size" attribute.
26732 (*movsf_update2, *movdf_update2): Merge, rename to...
26733 (*mov<mode>_update2): This. Ditto.
26734 (*movsf_update3): Use Pmode. Fix argument to
26735 avoiding_indexed_address_p.
26736 (*movsf_update4): Ditto.
26737 (allocate_stack): Simplify condition. Adjust pattern names.
26739 2019-04-17 Jakub Jelinek <jakub@redhat.com>
26742 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
26743 whitespace at the start of target attribute string.
26745 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
26748 * config/rs6000/power9.md: Add store forwarding bypass.
26750 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
26753 * valtrack.c (dead_debug_insert_temp): Reset debug references
26754 to the return value of a call being removed.
26756 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26758 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
26759 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
26760 implement target hook.
26761 (arc_memory_move_cost): New function.
26762 (TARGET_REGISTER_MOVE_COST): Define.
26763 (TARGET_MEMORY_MOVE_COST): Likewise.
26764 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
26765 (MEMORY_MOVE_COST): Likewise.
26767 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26769 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
26770 (sibcall_value_insn): Likewise.
26771 * config/arc/constraints.md (Rs5): Remove.
26773 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26775 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
26776 for last two fake registers.
26777 (arc_conditional_register_usage): Make sure fake frame and arg
26778 pointer regs are in general regs class.
26779 (FRAME_POINTER_MASK): Remove.
26780 (RETURN_ADDR_MASK): Remove.
26781 (arc_must_save_register): Use hard frame regnum.
26782 (frame_restore_reg): Use hard_frame_pointer_rtx.
26783 (arc_save_callee_saves): Likewise.
26784 (arc_restore_callee_saves): Likewise.
26785 (arc_save_callee_enter): Likewise.
26786 (arc_restore_callee_leave): Likewise.
26787 (arc_save_callee_milli): Likewise.
26788 (arc_eh_return_address_location): Likewise.
26789 (arc_check_multi): Use hard frame regnum.
26790 (arc_can_eliminate): Likewise.
26791 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
26792 for register allocator.
26793 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
26794 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
26795 (FRAME_POINTER_REGNUM): Change it to a fake register.
26796 (HARD_FRAME_POINTER_REGNUM): Defined.
26797 (ARG_POINTER_REGNUM): Change it to a new fake register.
26798 (ELIMINABLE_REGS): Update.
26799 (REGISTER_NAMES): Update names.
26800 * config/arc/arc.md (LP_START): Remove.
26801 (LP_END): Likewise.
26802 (shift_si3_loop): Update pattern.
26804 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
26806 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
26807 to avoid delay slot scheduling.
26808 (arc_must_save_register): Don't save SP.
26809 * config/arc/arc.md (stack_tie): Remove.
26810 (UNSPEC_ARC_STKTIE): Likewise.
26812 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
26813 Shiva Chen <shiva0217@gmail.com>
26815 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
26816 code gen with large shift amount.
26818 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
26820 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
26823 2019-04-16 Jakub Jelinek <jakub@redhat.com>
26826 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
26827 print -m64/-mx32/-m32 if it is true.
26828 (ix86_debug_options, ix86_function_specific_print): Pass true as
26829 ADD_ABI_P to ix86_target_string.
26830 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
26831 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
26832 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
26834 PR rtl-optimization/90082
26835 * dce.c (can_delete_call): New function.
26836 (deletable_insn_p, mark_insn): Use it.
26838 PR tree-optimization/90090
26839 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
26841 (is_division_by_square): Likewise. Formatting fix.
26843 2019-04-16 Richard Biener <rguenther@suse.de>
26845 PR tree-optimization/56049
26846 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
26847 equality check if alias-set zero will prevail.
26849 2019-04-15 Jeff Law <law@redhat.com>
26851 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
26852 size and alignment as unsigned.
26854 2019-04-15 Richard Biener <rguenther@suse.de>
26857 * tree-loop-distribution.c (destroy_loop): Preserve correct
26860 2019-04-15 Richard Biener <rguenther@suse.de>
26862 PR tree-optimization/90071
26863 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
26864 abnormal operands from def stmts.
26866 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
26868 PR rtl-optimization/89794
26869 * combine.c (count_auto_inc): New function.
26870 (try_combine): Count how many auto_inc expressions there were in the
26871 original instructions. Ensure we have the same number in the new
26872 instructions. Remove the code that tried to ensure auto_inc side
26873 effects on i1 and i0 are not lost.
26875 2019-04-15 Richard Biener <rguenther@suse.de>
26878 * tree.h (auto_var_p): Declare.
26879 * tree.c (auto_var_p): New function, split out from ...
26880 (auto_var_in_fn_p): ... here.
26881 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
26883 (new_var_info): Initialize it.
26884 (set_uids_in_ptset): Also set the shadow variable uid if required.
26885 (ipa_pta_execute): Postprocess points-to solutions assigning
26886 shadow variable uids for locals that may reach their containing
26887 function recursively.
26888 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
26889 assert but instead check whether the points-to solution is
26892 2019-04-15 Martin Jambor <mjambor@suse.cz>
26895 * cgraph.c (clone_of_p): Loop over clone chain for each step in
26898 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26900 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
26902 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
26903 Kito Cheng <kito.cheng@gmail.com>
26904 Shiva Chen <shiva0217@gmail.com>
26906 * config/nds32/nds32-md-auxiliary.c
26907 (nds32_legitimize_pic_address): Use new PIC pattern.
26908 (nds32_legitimize_tls_address): Use new TLS pattern.
26909 (nds32_output_symrel): New.
26910 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
26911 (nds32_alloc_relax_group_id): Ditto.
26912 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
26913 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
26915 (nds32_group_tls_insn): Ditto.
26916 (nds32_group_float_insns): Ditto.
26917 * config/nds32/nds32.md (tls_le): New.
26920 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
26922 * configure: Add nds32 target for dwarf2 debug_line checking.
26923 * configure.ac: Regenerated.
26925 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
26928 * ipa-devirt.c (skip_in_fields_list_p): New.
26929 (odr_types_equivalent_p): Use it.
26931 2019-04-13 Jakub Jelinek <jakub@redhat.com>
26934 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
26935 instead of strncmp when checking for thumb and arm. Formatting fixes.
26937 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
26939 * doc/install.texi: Document --with-target-system-zlib.
26941 2019-04-12 Martin Sebor <msebor@redhat.com>
26947 * targhooks.c (default_vector_alignment): Avoid assuming
26948 argument fits in SHWI.
26949 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
26950 a shift expression.
26951 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
26953 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26955 PR rtl-optimization/89965
26956 * dce.c: Include rtl-iter.h.
26957 (struct check_argument_load_data): New type.
26958 (check_argument_load): New function.
26959 (find_call_stack_args): Check for loads from stack slots still tracked
26960 in sp_bytes and punt if any is found.
26962 * config/mips/loongson-mmiintrin.h: Fix up #error message.
26964 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
26966 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
26967 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
26969 2019-04-12 Martin Liska <mliska@suse.cz>
26971 PR middle-end/89970
26972 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
26974 (separate_attrs): Handle multiple 'default's.
26975 (expand_target_clones): Rework error handling code.
26977 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
26980 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
26981 mode of vector rather than mode of destination for move instruction.
26982 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
26983 Use QI inner mode with V16QI vector mode.
26985 2019-04-12 Jakub Jelinek <jakub@redhat.com>
26988 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
26989 "invalid %%t operand" in output_operand_lossage message.
26991 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
26993 * config/s390/predicates.md (permute_pattern_operand): New
26995 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
26996 operand for the permute pattern.
26997 ("*vec_perm<mode>"): New insn definition.
26998 ("bswap<mode>"): Generate the permute pattern operand in the
26999 expander and perform the operand reloads for pre arch13 level
27001 ("*bswap<mode>_emu"): Rename to ...
27002 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
27003 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
27004 Add the USE operand for the permute pattern.
27005 ("*vec_set_bswap_vec<mode>"): Likewise.
27007 2019-04-12 Jakub Jelinek <jakub@redhat.com>
27010 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
27011 and gcc_unreachable if it fails, just call tree_to_uhwi which
27012 verifies that too. Test TREE_CHAIN instead of list_length > 1.
27013 Start warning message with a lower-case letter. Formatting fixes.
27015 PR rtl-optimization/90026
27016 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
27017 successors, look for BARRIERs inside of the whole BB_FOOTER chain
27018 rather than just at the start of it. If e->src BB_FOOTER is not NULL
27019 in cfglayout mode, use emit_barrier_after_bb.
27021 2018-04-11 Steve Ellcey <sellcey@marvell.com>
27023 PR rtl-optimization/87763
27024 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
27027 2019-04-11 Tom de Vries <tdevries@suse.de>
27029 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
27030 max macro using statement expression.
27032 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
27034 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
27035 * xcoffout.c (xcoff_private_rodata_section_name): Define.
27036 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
27037 read_only_private_data_section using xcoff_private_rodata_section_name.
27038 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
27040 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
27043 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
27045 2019-04-11 Jakub Jelinek <jakub@redhat.com>
27047 PR rtl-optimization/89965
27048 * dce.c (sp_based_mem_offset): New function.
27049 (find_call_stack_args): Use sp_based_mem_offset.
27051 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
27053 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
27055 2019-04-11 Richard Biener <rguenther@suse.de>
27057 PR tree-optimization/90020
27058 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
27059 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
27060 * tree-ssa-pre.c (compute_avail): Use it to not put
27061 possibly trapping references after a call that might not
27062 return into EXP_GEN.
27063 * gcse.c (compute_hash_table_work): Do not elide
27064 marking a block containing a call if the call might not
27067 2019-04-11 Richard Biener <rguenther@suse.de>
27069 PR tree-optimization/90018
27070 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
27071 Test both SLP and interleaving variants.
27073 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
27075 * config/s390/8561.md: New file.
27076 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27077 Add arch13 cpu model.
27078 * config/s390/s390-opts.h (enum processor_type): Likewise.
27079 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
27080 (s390_get_unit_mask): Likewise.
27081 (s390_is_fpd): Likewise.
27082 (s390_is_fxd): Likewise.
27083 * config/s390/s390.h (s390_tune_attr): Likewise.
27084 * config/s390/s390.md: Include arch13 pipeline description.
27085 * config/s390/s390.opt: Add arch13.
27087 2018-04-10 Steve Ellcey <sellcey@marvell.com>
27089 PR rtl-optimization/87763
27090 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
27092 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
27094 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
27096 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
27097 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
27098 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
27099 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
27101 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
27103 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
27104 "Although" in -fipa-icf documentation.
27106 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
27107 of using multiple -g options.
27109 2019-04-10 Martin Liska <mliska@suse.cz>
27111 PR gcov-profile/89959
27112 * doc/gcov.texi: Make documentation of -x option
27115 2019-04-10 Richard Biener <rguenther@suse.de>
27117 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
27119 (DR_GROUP_SAME_DR_STMT): Remove.
27120 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
27121 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
27122 replace with assert.
27123 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
27124 (vect_record_grouped_load_vectors): Remove unreachable code.
27126 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
27129 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
27130 obsolete reference to N.
27132 2019-04-10 Jakub Jelinek <jakub@redhat.com>
27134 PR middle-end/90025
27135 * expr.c (store_expr): Set properly size on the MEM passed to
27139 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
27140 with strlen in between hostsz-3 and hostsz-1 inclusive when no
27141 translation is needed, and when translation is needed, only append
27142 ... if the string length is hostsz or more bytes long. Avoid using
27145 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
27148 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
27149 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
27151 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
27152 differences directly.
27153 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
27155 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27157 PR translation/90011
27158 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
27160 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
27162 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
27163 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
27164 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
27165 trailing space from -gsplit-dwarf diagnostics.
27167 PR tree-optimization/89998
27168 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
27169 instead of integer_type_node if possible, don't add ranges if return
27170 type is not compatible with int.
27171 * gimple-fold.c (gimple_fold_builtin_sprintf,
27172 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
27175 2019-04-09 Martin Liska <mliska@suse.cz>
27177 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
27178 * doc/install.texi: Document the new config.
27180 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
27182 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
27183 use gimple_expr_type for load and store calls. Skip over the
27184 condition argument in a conditional internal function.
27185 Protect use of TREE_INT_CST_LOW.
27187 2019-04-09 Jakub Jelinek <jakub@redhat.com>
27190 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
27191 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
27192 trailing period from it too.
27194 2019-04-08 wu yuan <wuyuan5@huawei.com>
27196 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
27197 * config/aarch64/aarch64.md: Add "tsv110.md".
27198 * config/aarch64/tsv110.md: New file.
27200 2019-04-08 Richard Biener <rguenther@suse.de>
27202 PR tree-optimization/90006
27203 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
27206 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
27209 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
27211 (fma_root_node): Likewise.
27212 (func_fma_steering): Likewise.
27214 2019-04-08 Jakub Jelinek <jakub@redhat.com>
27216 PR rtl-optimization/89865
27217 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
27219 PR rtl-optimization/89865
27220 * config/i386/i386.md
27221 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
27222 numbers not to clash with the additional operands[4].
27223 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
27224 with extra register copy in the middle.
27226 2019-04-08 Martin Liska <mliska@suse.cz>
27228 PR gcov-profile/89961
27229 * doc/gcov.texi: Document data_file.
27230 * gcov.c (generate_results): Add data_info into JSON output.
27232 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
27234 PR tree-optimization/89725
27235 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
27236 loop's chrec as invariant symbol.
27237 * tree-chrec.h (chrec_contains_symbols): New parameter.
27238 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
27239 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
27240 function of loops not in DDR's loop_nest.
27241 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
27243 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
27246 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
27249 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
27252 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
27253 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
27255 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
27257 * sched-deps.c (sched_macro_fuse_insns): Check return value of
27258 targetm.fixed_condition_code_regs.
27260 2019-04-05 Richard Biener <rguenther@suse.de>
27264 * tree-cfgcleanup.c (remove_forwarder_block): Always move
27265 debug bind stmts but reset them if they are not valid at the
27268 2019-04-05 Martin Liska <mliska@suse.cz>
27270 PR translation/89936
27271 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
27272 order to wrap keywords or arguments.
27273 * collect2.c (main): Likewise.
27274 (scan_prog_file): Likewise.
27275 (scan_libraries): Likewise.
27276 * common/config/riscv/riscv-common.c
27277 (riscv_subset_list::parsing_subset_version): Likewise.
27278 (riscv_subset_list::parse_std_ext): Likewise.
27279 * config/aarch64/aarch64.c (aarch64_override_options_internal):
27281 * config/arm/arm.c (arm_option_override): Likewise.
27282 * config/cris/cris.c (cris_print_operand): Likewise.
27283 * config/darwin-c.c (darwin_pragma_options): Likewise.
27284 (darwin_pragma_unused): Likewise.
27285 (darwin_pragma_ms_struct): Likewise.
27286 * config/ft32/ft32.c (ft32_print_operand): Likewise.
27287 * config/i386/i386.c (print_reg): Likewise.
27288 (ix86_print_operand): Likewise.
27289 * config/i386/xm-djgpp.h: Likewise.
27290 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
27291 * config/m32c/m32c.c (m32c_option_override): Likewise.
27292 * config/msp430/msp430.c (msp430_option_override): Likewise.
27293 * config/nds32/nds32.c (nds32_option_override): Likewise.
27294 * config/nvptx/mkoffload.c (main): Likewise.
27295 * config/rx/rx.c (rx_print_operand): Likewise.
27296 (valid_psw_flag): Likewise.
27297 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
27298 (vms_pragma_nomember_alignment): Likewise.
27299 (vms_pragma_extern_model): Likewise.
27300 * lto-wrapper.c (compile_offload_image): Likewise.
27301 * omp-offload.c (oacc_parse_default_dims): Likewise.
27302 * symtab.c (symtab_node::verify_base): Likewise.
27303 * tlink.c (recompile_files): Likewise.
27304 (start_tweaking): Likewise.
27305 * tree-profile.c (parse_profile_filter): Likewise.
27307 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
27309 PR tree-optimization/89956
27310 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
27311 multiple negates of the same value.
27313 2019-04-04 Martin Sebor <msebor@redhat.com>
27315 PR middle-end/89957
27316 PR middle-end/89911
27317 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
27318 have the same precision since the function crashes otherwise.
27319 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
27320 has non-zero arguments.
27322 2019-04-04 Martin Sebor <msebor@redhat.com>
27324 PR middle-end/89934
27325 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
27326 out if the number of arguments is less than expected.
27328 2019-04-04 Jeff Law <law@redhat.com>
27330 PR rtl-optimization/89399
27331 * ree.c (combine_set_extension): Use single_set rather than
27332 digging into PATTERN for items on the candidate list.
27333 (combine_reaching_defs): Likewise.
27335 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
27337 PR rtl-optimization/46590
27338 * loop-invariant.c (find_defs): Move df_remove_problem and
27339 df_process_deferred_rescans to move_invariants.
27340 Move df_live_add_problem and df_live_set_all_dirty calls
27341 to move_invariants.
27342 (move_invariants): Likewise.
27343 (move_loop_invariants): Likewise, making the df_live calls
27344 conditional on -O. Remove the problem again if we added it
27347 2019-04-03 qing zhao <qing.zhao@oracle.com>
27349 PR tree-optimization/89730
27350 * ipa-inline.c (can_inline_edge_p): Delete the checking for
27351 -flive-patching=inline-only-static.
27352 (can_inline_edge_by_limits_p): Add the checking for
27353 -flive-patching=inline-only-static and grant always_inline
27354 even when -flive-patching=inline-only-static is specified.
27356 2019-04-03 Jeff Law <law@redhat.com>
27358 PR rtl-optimization/81025
27359 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
27361 2019-04-03 Richard Biener <rguenther@suse.de>
27363 PR tree-optimization/84101
27364 * tree-vect-stmts.c: Include explow.h for hard_function_value,
27365 regs.h for hard_regno_nregs.
27366 (cfun_returns): New helper.
27367 (vect_model_store_cost): When vectorizing a store to a decl
27368 we return and the function ABI returns in a multi-reg location
27369 account for the possible spilling that will happen.
27371 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
27373 * config/s390/s390.c (s390_legitimate_address_p): Reject long
27374 displacement addresses for vector mode operands.
27376 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
27378 * config/arc/arc.c (GMASK_LEN): Define.
27379 (arc_restore_callee_saves): Restore first blink when
27382 2019-04-03 Sudakshina Das <sudi.das@arm.com>
27384 * doc/extend.texi: Add deprecated comment on sign-return-address
27385 function attribute and add mbranch-protection.
27386 * doc/invoke.texi: Add bti to the options for mbranch-protection.
27388 2019-04-03 Richard Biener <rguenther@suse.de>
27391 * lto-wrapper.c (run_gcc): Avoid implicit rules making
27392 the all target phony.
27394 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
27398 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
27399 Return false for variable DImode shifts.
27400 (dimode_scalar_chain::compute_convert_gain): Do not handle
27401 register count operand in variable DImode shifts.
27402 (dimode_scalar_chain::make_vector_copies): Remove support to copy
27403 count argument of a variable shift instruction to a vector register.
27404 (dimode_scalar_chain::convert_reg): Remove support to convert
27405 count argument of a variable shift instruction.
27407 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27409 PR rtl-optimization/84206
27410 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
27411 iterating over loop headers.
27413 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
27415 PR rtl-optimization/85876
27416 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
27417 beyond the original fence.
27419 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
27421 * config.gcc: Mark spu* targets as deprecated/obsolete.
27423 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27425 * config/s390/s390-builtin-types.def: New builtin function type
27426 definitions. Remove unused types.
27427 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
27428 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
27429 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
27430 overloaded builtins.
27431 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
27432 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
27433 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
27434 (vec_double, vec_signed, vec_unsigned): Define to use the new
27435 overloaded builtins.
27436 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
27439 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27441 * config/s390/s390-builtin-types.def: New builtin function type
27443 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
27444 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
27445 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
27446 (s390_vstrszh, s390_vstrszf): New low-level builtins.
27447 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
27448 constant definitions.
27449 * config/s390/vecintrin.h (vec_search_string_cc)
27450 (vec_search_string_until_zero_cc): New builtin name definitions.
27451 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
27453 ("vec_vstrs<mode>"): New insn definition.
27455 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27457 * config/s390/s390-builtin-types.def: Add new builtin function
27459 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
27460 New overloaded builtins.
27461 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
27463 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
27464 (UNSPEC_VEC_SLDBYTE): ... this.
27465 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
27466 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
27468 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
27469 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
27470 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
27472 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27474 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
27475 New insn definition.
27476 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
27477 * config/s390/vector.md (V_HW_HSD): ... here.
27479 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27481 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
27482 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
27483 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
27484 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
27485 New insn definitions.
27487 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27489 * config/s390/s390-builtin-types.def: Add new builtin function type.
27490 * config/s390/s390-builtins.def: Add overloaded builtin
27491 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
27492 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
27493 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
27494 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
27495 ("eltswap<mode>"): New expander.
27496 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
27499 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27501 * config/s390/s390-builtin-types.def: Add new builtin function types.
27502 * config/s390/s390-builtins.def: Add overloaded builtin
27503 s390_vec_revb. Add low-level builtins for vlbr and vstbr
27505 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
27506 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
27507 ("bswap<mode>"): New expander.
27508 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
27510 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27512 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
27513 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
27514 vector builtin version number in __VEC__.
27516 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27518 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
27520 (SFSI): New mode attribute.
27521 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
27522 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
27524 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
27525 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
27526 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
27527 ("floatsi<mode>2"): Add wcefb instruction.
27529 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27531 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
27532 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
27534 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
27535 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
27536 support 32 bit fp-int conversions. Rename to ...
27537 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27538 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
27539 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
27540 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
27543 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27545 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
27546 if-then-else constructs if we can use the select instruction.
27547 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
27549 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27551 * config/s390/s390.md ("*popcountdi_arch13_cc")
27552 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
27554 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
27555 Append _z196 to make it ...
27556 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
27557 ("popcounthi2_z196"): ... this.
27558 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
27559 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
27561 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27563 * config/s390/s390.c (s390_canonicalize_comparison): Convert
27564 certain compares for arch13 in order to make use of the condition
27565 code result produced by the new instructions.
27566 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
27567 nxrk, and nxgrk instruction patterns.
27568 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
27569 (inv_no): Add new code iterator together with some attributes.
27570 ("*andc_split_<mode>"): Disable splitter for arch13.
27571 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
27572 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
27573 ("*<ANDOR:bitops_name>c<GPR:mode>")
27574 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
27575 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
27576 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
27577 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
27579 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
27581 * common/config/s390/s390-common.c (processor_flags_table): New
27583 * config.gcc: Support arch13 with the --with-arch= configure flag.
27584 * config/s390/driver-native.c (s390_host_detect_local_cpu):
27585 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
27586 * config/s390/s390.c (s390_get_sched_attrmask)
27587 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
27588 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
27589 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
27590 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
27591 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
27593 * config/s390/s390.opt: Support arch13 as processor type in
27594 command line options.
27596 2019-04-02 Martin Liska <mliska@suse.cz>
27598 PR translation/89912
27599 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
27600 Fix param description of graphite-max-arrays-per-scop.
27602 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
27604 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
27605 (ASAN_CC1_SPEC): Use it in 64-bit mode.
27606 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
27608 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27610 PR rtl-optimization/85412
27611 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
27612 sel_sched_region_1, not after.
27614 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27616 PR rtl-optimization/86928
27617 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
27618 compute_live if necessary.
27619 (sel_redirect_edge_and_branch): Likewise.
27621 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
27623 PR rtl-optimization/89865
27624 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
27625 register if it is a part of small class.
27627 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
27629 PR rtl-optimization/87273
27630 * sel-sched-ir.c (merge_fences): Remove assert.
27632 2019-04-01 Richard Biener <rguenther@suse.de>
27634 PR tree-optimization/46590
27635 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
27636 (dom_walker::m_reachability): Add in place of...
27637 (dom_walker::m_skip_unreachable_blocks): ...this.
27638 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
27639 Move complex initialization ...
27640 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
27641 lazily and initialize edge flags on each invocation.
27642 (dom_walker::bb_reachable): Use m_reachability.
27644 2019-04-01 Martin Liska <mliska@suse.cz>
27647 * opt-suggestions.c (option_proposer::build_option_suggestions):
27648 Add variant without any argument in order to provide better
27651 2019-04-01 Richard Biener <rguenther@suse.de>
27654 * gimple.c: Include langhooks.h.
27655 (gimple_get_alias_set): Treat enumeral types as the underlying
27658 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
27659 Eric Botcazou <ebotcazou@adacore.com>
27661 PR rtl-optimization/89862
27662 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
27663 that operates on the full registers for WORD_REGISTER_OPERATIONS
27666 2019-03-29 Jim Wilson <jimw@sifive.com>
27668 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
27669 Clear MASK_RVC and then set if C subset supported.
27671 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27674 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
27675 non-addressable complit into its initializer if it is volatile.
27677 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
27679 * opts-common.c (integral_argument): Set errno properly in one case.
27681 2019-03-29 Martin Liska <mliska@suse.cz>
27683 * doc/invoke.texi: Remove -Wchkp from documentation.
27685 2019-03-29 Martin Liska <mliska@suse.cz>
27687 * dbgcnt.c (print_limit_reach): New function.
27690 2019-03-29 Martin Liska <mliska@suse.cz>
27692 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
27693 (dbg_cnt_process_opt): Parse first tokens aas
27694 dbg_cnt_process_single_pair is also using strtok.
27696 2019-03-29 Jakub Jelinek <jakub@redhat.com>
27698 PR rtl-optimization/87485
27699 * function.c (expand_function_end): Move stack_protect_epilogue
27700 before loading of return value into hard register(s).
27702 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27704 PR middle-end/89621
27705 * tree-inline.h (struct copy_body_data): Add
27706 dont_remap_vla_if_no_change flag.
27707 * tree-inline.c (remap_type_3, remap_type_2): New functions.
27708 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
27709 and remap_type_2 returns false.
27710 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
27711 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
27712 only from where it is copied to nested contexts.
27714 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27717 * config/i386/i386.md (RMW operation with LEA peephole):
27718 Use LEAMODE mode attribute instead of SWI mode iterator for
27721 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
27724 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
27725 Also process XEXP (src, 0) of a shift insn.
27727 2019-03-28 David Malcolm <dmalcolm@redhat.com>
27729 PR middle-end/89725
27730 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
27731 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
27733 2019-03-28 Jakub Jelinek <jakub@redhat.com>
27735 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
27737 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
27738 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
27739 immediately after first one with df_analyze in between, but rather
27740 process all bbs, queueing ones that need second pass in a worklist,
27741 df_analyze, process queued debug insn changes and if second pass is
27742 needed, process bbs from worklist, df_analyze, process queued debug
27745 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
27746 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
27747 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
27749 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
27752 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
27755 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
27758 * config/i386/i386.c (ix86_function_value_1): Call the newly added
27759 function for 32-bit MS_ABI.
27760 (function_value_ms_32): New function.
27762 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
27764 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
27765 (movdi): Call gen_movdi_symbol_save_scc.
27766 (gen_movdi_symbol_save_scc): New insn and split.
27768 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
27770 PR rtl-optimization/89313
27771 * function.c (matching_constraint_num): New static function.
27772 (match_asm_constraints_1): Use it. Fixup white space and comment.
27773 Don't replace inputs with non-matching constraints which conflict
27774 with early clobber outputs.
27776 2019-03-27 Jeff Law <law@redhat.com>
27778 PR rtl-optimization/87761
27779 PR rtl-optimization/89826
27780 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
27782 (pass_cprop_hardreg::execute): Call df_analyze after adding the
27783 note problem to get REG_DEAD/REG_UNUSED notes updated.
27785 2019-03-27 Richard Biener <rguenther@suse.de>
27787 PR tree-optimization/89463
27788 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
27789 queue edges to remove.
27790 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
27791 dead stmts. Delay edge removal until PHIs are removed to
27792 make debug-stmt creation not confused by seemingly degenerate
27795 2019-03-27 Alan Modra <amodra@gmail.com>
27797 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
27799 * config/rs6000/darwin.h: Likewise.
27800 * config/rs6000/rs6000.c: Likewise.
27802 2019-03-27 Alan Modra <amodra@gmail.com>
27804 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
27805 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
27807 2019-03-26 Andrew Waterman <andrew@sifive.com>
27808 Jim Wilson <jimw@sifive.com>
27810 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
27811 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
27812 (generic_idivdi, generic_fmul_single, generic_fmul_double)
27813 (generic_fdiv, generic_fsqrt): Add check for generic tune.
27814 (generic_alu): Add auipc to type list.
27815 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
27816 (riscv_microarchitecture): Declare.
27817 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
27818 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
27820 (riscv_microarchitecture): New.
27821 (sifive_7_tune_info): New.
27822 (riscv_cpu_info_table): Add microarchitecture value for rocket and
27823 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
27825 (riscv_store_data_bypass_p): New.
27826 (riscv_option_override): Set riscv_microarchitecture from
27827 cpu->microarchitecture.
27828 * config/riscv/riscv.md: Include sifive-7.md.
27831 (auipc<mode>): Change type to auipc.
27832 (restore_stack_nonlocal): New.
27833 * config/riscv/sifive-7.md: New.
27834 * doc/invoke.texi (RISC-V Options): Update mtune docs.
27836 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
27839 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
27840 Also process XEXP (src, 0) of a shift insn.
27842 2019-03-26 Richard Biener <rguenther@suse.de>
27844 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
27845 (copy_debug_stmt): Likewise.
27846 (expand_call_inline): Likewise.
27847 (copy_bb): Avoid redundant lookup & set of gimple_block.
27848 * gimple-low.c (lower_gimple_return): Likewise.
27849 (lower_builtin_setjmp): Likewise.
27851 2019-03-26 Jakub Jelinek <jakub@redhat.com>
27853 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
27854 is constant 0, turn into static const data member initialized to false.
27855 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
27856 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
27858 2019-03-26 Jason Merrill <jason@redhat.com>
27859 Jakub Jelinek <jakub@redhat.com>
27861 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
27863 (mem_alloc_description::release_object_overhead): Fix comment typos.
27864 * hash-table.h (hash_table::~hash_table): Call
27865 release_instance_overhead only if m_entries is non-NULL, otherwise
27866 call unregister_descriptor.
27868 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
27870 PR tree-optimization/81740
27871 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27872 In case of outer loop vectorization, check for backward dependence
27873 at the inner loop if outer loop dependence is reversed.
27875 2019-03-26 Alan Modra <amodra@gmail.com>
27877 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
27878 rs6000_vector_mem init. Correct wI and wJ comment.
27880 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
27882 PR rtl-optimization/88347
27883 PR rtl-optimization/88423
27884 * sched-deps.c (sched_analyze_insn): Take into account that for
27885 tablejumps the barrier appears after a label and a jump_table_data.
27887 2019-03-25 Martin Sebor <msebor@redhat.com>
27890 * c-common.c (check_user_alignment): Rename local. Correct maximum
27891 alignment in diagnostic. Avoid assuming argument fits in SHWI,
27892 convert it to UHWI when it fits.
27894 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
27897 * dwarf2out.c (premark_used_variables): New function.
27898 (prune_unused_types_walk): Do not mark not premarked external
27900 (prune_unused_types): Call premark_used_variables.
27902 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
27904 PR rtl-optimization/89676
27905 * lra-constraints.c (curr_insn_transform): Do match reload for
27906 early clobbers when the match was successful only for different
27909 2019-03-25 Martin Sebor <msebor@redhat.com>
27911 * doc/extend.texi (Common Type Attributes): Document vector_size.
27912 (Common Variable Attributes): Mention size constraint. Correct
27914 (Vector Extensions): Use @dfn when defining bas type. Clarify
27915 base type and size constraints.
27917 2019-03-25 Richard Biener <rguenther@suse.de>
27919 PR tree-optimization/89789
27920 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
27921 changes from non-undefined back to undefined.
27923 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
27925 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
27926 heap string and a gc string, but since this variable is unknown to
27927 ggc the gc string might get reused and corrupted. Fixed by always
27928 using a heap string.
27930 2019-03-25 Richard Biener <rguenther@suse.de>
27932 PR tree-optimization/89779
27933 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
27934 to remove IV defs, delay actual removal.
27935 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
27936 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
27937 very end, properly also reset loop control IV information.
27939 2019-03-25 Richard Biener <rguenther@suse.de>
27941 PR tree-optimization/89802
27942 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
27943 move EH data to folded stmt.
27945 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27947 * config/s390/s390-builtin-types.def: Remove few unused types and
27948 fix sort order for others.
27950 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
27952 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
27953 expected and found types with -mdebug during builtin matching.
27955 2019-03-25 Richard Biener <rguenther@suse.de>
27957 PR middle-end/89790
27958 * fold-const.c (operand_equal_p): Revert last change with
27961 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
27963 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
27964 notes for the result of the __tls_get_addr calls.
27965 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
27967 2019-03-24 Jeff Law <law@redhat.com>
27969 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
27971 PR rtl-optimization/87761
27972 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
27973 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
27975 (pass_cprop_hardreg::execute): Add df note problem and defer insn
27976 rescans. Reprocess blocks as needed, calling df_analyze before
27977 reprocessing. Always call df_analyze before fixing up debug bind
27980 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
27982 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
27985 2019-03-22 Andrew Pinski <apinski@marvell.com>
27987 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
27988 attrribute for uxtw.
27990 2019-03-26 Jeff Law <law@redhat.com>
27992 PR rtl-optimization/87761
27993 * config/mips/mips-protos.h (mips_split_move): Add new argument.
27994 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
27995 (mips_split_move): Accept new INSN argument. Try to forward SRC
27996 into the next instruction.
27997 (mips_split_move_insn): Pass INSN through to mips_split_move.
27999 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
28001 PR rtl-optimization/89676
28002 * lra-constraints.c (curr_insn_transform): Do match reload for
28003 early clobbers even if the match was successful.
28005 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28008 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
28010 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
28012 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
28014 2019-03-22 Jakub Jelinek <jakub@redhat.com>
28016 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
28017 <avx512>_fmsub_<mode>_mask3<round_name>,
28018 <avx512>_fnmadd_<mode>_mask3<round_name>,
28019 <avx512>_fnmsub_<mode>_mask3<round_name>,
28020 avx512f_vmfmadd_<mode>_mask3<round_name>,
28021 avx512f_vmfmsub_<mode>_mask3<round_name>,
28022 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
28023 instead of register_operand and %v instead of v for match_operand 1.
28024 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
28025 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
28026 <round_nimm_predicate> instead of register_operand and %v instead of v
28027 for match_operand 1.
28029 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
28030 <avx512>_fmadd_<mode>_mask3<round_name>,
28031 <avx512>_fmsub_<mode>_mask<round_name>,
28032 <avx512>_fmsub_<mode>_mask3<round_name>,
28033 <avx512>_fnmadd_<mode>_mask<round_name>,
28034 <avx512>_fnmadd_<mode>_mask3<round_name>,
28035 <avx512>_fnmsub_<mode>_mask<round_name>,
28036 <avx512>_fnmsub_<mode>_mask3<round_name>,
28037 <avx512>_fmaddsub_<mode>_mask<round_name>,
28038 <avx512>_fmaddsub_<mode>_mask3<round_name>,
28039 <avx512>_fmsubadd_<mode>_mask<round_name>,
28040 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
28041 <round_nimm_predicate> instead of nonimmediate_operand.
28042 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
28043 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
28044 Use register_operand instead of <round_nimm_predicate> for the
28045 operand that needs to match output.
28046 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
28047 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
28048 Likewise. Formatting fixes.
28051 * config/i386/i386.c (enum ix86_builtins): Remove
28052 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
28053 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
28054 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
28055 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
28056 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
28057 __builtin_ia32_vfmsubss3_mask3): New builtins.
28058 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
28059 avx512f_vmfmadd_<mode>_mask3<round_name>,
28060 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
28061 *avx512f_vmfmsub_<mode>_mask<round_name>,
28062 avx512f_vmfmsub_<mode>_mask3<round_name>,
28063 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
28064 *avx512f_vmfnmadd_<mode>_mask<round_name>,
28065 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
28066 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
28067 *avx512f_vmfnmsub_<mode>_mask<round_name>,
28068 avx512f_vmfnmsub_<mode>_mask3<round_name>,
28069 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
28070 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
28071 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
28072 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
28073 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
28074 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
28075 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
28076 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
28077 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
28078 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
28079 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
28080 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
28081 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
28082 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
28083 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
28084 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
28085 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
28086 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
28087 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
28088 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
28089 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
28090 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
28092 2019-03-21 Martin Sebor <msebor@redhat.com>
28094 PR tree-optimization/89350
28095 * builtins.c (compute_objsize): Also ignore offsets whose upper
28097 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
28098 (builtin_memref::builtin_memref): Initialize new member.
28099 Allow EXPR to be null.
28100 (builtin_memref::extend_offset_range): Replace local with a member.
28101 Avoid assuming pointer offsets are unsigned.
28102 (builtin_memref::set_base_and_offset): Determine base object
28103 before computing offset range.
28104 (builtin_access::builtin_access): Handle memset.
28105 (builtin_access::generic_overlap): Replace local with a member.
28106 (builtin_access::strcat_overlap): Same.
28107 (builtin_access::overlap): Same.
28108 (maybe_diag_overlap): Same.
28109 (maybe_diag_access_bounds): Same.
28110 (wrestrict_dom_walker::check_call): Handle memset.
28111 (check_bounds_or_overlap): Same.
28113 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
28114 Jakub Jelinek <jakub@redhat.com>
28117 * tree.c (fld_type_variant, fld_incomplete_type_of,
28118 fld_process_array_type): Call fld->pset.add and don't call
28119 add_tree_to_fld_list if it returns true.
28120 (free_lang_data_in_type): Similarly with self-recursive call. Purge
28121 non-marked types from TYPE_NEXT_VARIANT list.
28122 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
28124 2019-03-21 Jakub Jelinek <jakub@redhat.com>
28126 * hash-table.h (hash_table): Add Lazy template parameter defaulted
28127 to false, if true, don't alloc_entries during construction, but defer
28128 it to the first method that needs m_entries allocated.
28129 (hash_table::hash_table, hash_table::~hash_table,
28130 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
28131 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
28132 hash_table::clear_slot, hash_table::traverse_noresize,
28133 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
28134 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
28136 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
28137 NO_INSERT instead of find_with_hash.
28138 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
28139 hash_set::m_table): Add Lazy to template params of hash_table.
28140 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
28141 * attribs.c (test_attribute_exclusions): Likewise.
28142 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
28143 hash_set. Add tests for hash_set with Lazy = true.
28145 2019-03-21 Richard Biener <rguenther@suse.de>
28147 PR tree-optimization/89779
28148 * tree.c (tree_nop_conversion): Consolidate and fix defensive
28149 checks with respect to released SSA names now having error_mark_node
28151 * fold-const.c (operand_equal_p): Likewise.
28153 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
28156 * config/s390/s390.c (global_not_special_regno_p): Move to make it
28158 (s390_optimize_register_info): Use global_not_special_regno_p to
28159 check for global regs.
28161 2019-03-20 Jakub Jelinek <jakub@redhat.com>
28164 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
28165 update this_alternative nor this_alternative_set.
28167 2019-03-19 Jim Wilson <jimw@sifive.com>
28170 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
28171 align, size, offset. Use them to handle a BLKmode reference. Update
28173 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
28175 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28177 PR rtl-optimization/89768
28178 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
28179 instead of GEN_INT.
28180 (unroll_loop_runtime_iterations): Likewise.
28182 2019-03-19 Martin Sebor <msebor@redhat.com>
28184 PR tree-optimization/89644
28185 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
28186 rather than endptr as an indicator of nul-termination.
28188 PR tree-optimization/89644
28189 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
28190 arrays in determining sequence sizes in strncpy and stpncpy.
28192 2019-03-19 Martin Liska <mliska@suse.cz>
28194 PR middle-end/89737
28195 * predict.c (combine_predictions_for_bb): Empty likely_edges and
28196 unlikely_edges if there's an edge that belongs to both these sets.
28198 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
28201 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
28202 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
28203 go via a stack temporary.
28205 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28208 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
28209 instead of gen_rtx_SUBREG.
28210 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
28212 2019-03-19 Richard Biener <rguenther@suse.de>
28215 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
28217 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
28221 * tree.c (free_lang_data_in_decl): Do not free context of C++
28224 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28227 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
28228 subs for the first alternative except when operands[3] is 1.
28231 * gimplify.c (gimplify_asm_expr): For output argument with
28232 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
28235 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
28237 PR rtl-optimization/89753
28238 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28239 explicit unrolling factor even more robust.
28241 2019-03-19 Jakub Jelinek <jakub@redhat.com>
28244 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
28245 compensation use x2 += 1 instead of x2 -= -1 and when honoring
28246 signed zeros, do another copysign after the compensation.
28248 2019-03-18 Martin Sebor <msebor@redhat.com>
28250 PR tree-optimization/89720
28251 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
28252 more conservatively, the same as anti-range.
28254 2019-03-18 Richard Biener <rguenther@suse.de>
28256 PR middle-end/88945
28257 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
28258 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
28259 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
28260 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
28262 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
28264 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
28265 Extend queue to 1024 entries.
28266 Add "consumed" field.
28267 (gomp_print_output): Remove print_index parameter.
28268 Add final parameter.
28269 Change limit to unsigned.
28270 Use consumed field to implement circular buffer.
28271 Detect interrupted print in final pass.
28272 Flush output at the end.
28273 (run): Update gomp_print_output usage.
28274 (main): Initialize kernargs->output_data.consumed.
28276 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
28278 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
28279 calculation of the minimum number of scalar iterations for
28280 fully-predicated loops.
28282 2019-03-18 Martin Jambor <mjambor@suse.cz>
28284 PR tree-optimization/89546
28285 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
28286 any propagation to its children took place.
28288 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
28291 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
28292 parameter, and make use of it.
28293 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
28295 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28297 * config/arc/arc.opt (mcode-density-frame): Get the inital value
28298 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
28299 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28300 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
28301 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
28302 match what the ops is doing.
28303 (push_multi_fp_blink): Likewise.
28304 * config/arc/arc.c (arc_override_options): Enable enter/leave when
28305 compiling for size and elf target.
28306 (arc_save_callee_enter): Adjust note to match what enter/leave
28309 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28311 * config/arc/arc.md (tst_movb): Fix constraint.
28313 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28315 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
28317 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
28319 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
28320 * config/arc/arc.c (arc_conditional_register_usage): Remove all
28321 reg_alloc_order references.
28322 (size_alloc_order): Define.
28323 (arc_adjust_reg_alloc_order): New function.
28324 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
28326 (ADJUST_REG_ALLOC_ORDER): Define.
28327 (HONOR_REG_ALLOC_ORDER): Likewise.
28329 2019-03-18 Richard Biener <rguenther@suse.de>
28332 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
28333 loads and stores a bit more.
28335 2019-03-18 Richard Biener <rguenther@suse.de>
28338 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
28339 load pessimization to stores as well.
28341 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
28343 PR middle-end/86979
28344 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
28345 successor, use NULL as its av set.
28347 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
28349 PR rtl-optimization/89721
28350 * lra-constraints (invariant_p): Return false if side_effects_p holds.
28352 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
28355 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
28356 When handling vec_extract, use modular arithmetic to allow
28357 constant selectors greater than vector length.
28358 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
28359 V1TImode vectors to have constant selector values greater than 0.
28360 Use modular arithmetic to compute vector index.
28361 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
28362 index for in-memory vectors. Correct code generation for
28363 in-register vectors.
28364 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
28367 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
28371 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
28374 2019-03-15 Jakub Jelinek <jakub@redhat.com>
28377 * tree.c (inchash::add_expr): Strip any location wrappers.
28378 * fold-const.c (operand_equal_p): Move stripping of location wrapper
28379 after hash verification.
28382 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
28383 SIGN_EXTEND and ZERO_EXTEND.
28385 2019-03-14 Jason Merrill <jason@redhat.com>
28386 Jakub Jelinek <jakub@redhat.com>
28388 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
28389 than if is_empty (*slot).
28390 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
28391 existing elt and for elt removal.
28392 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
28393 of already removed elt.
28395 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
28398 * config/i386/i386.c (remove_partial_avx_dependency): Handle
28399 REG_EH_REGION note.
28401 2019-03-14 Martin Liska <mliska@suse.cz>
28404 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
28406 2019-03-14 Richard Biener <rguenther@suse.de>
28409 * config/i386/i386.c (make_resolver_func): Properly set
28410 DECL_CONTEXT on the RESULT_DECL.
28411 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
28413 2019-03-14 Richard Biener <rguenther@suse.de>
28415 * gimple-pretty-print.c: Include cfgloop.h.
28416 (dump_gimple_phi): Adjust.
28417 (dump_gimple_bb_header): Dump loop header for GIMPLE.
28418 (pp_cfg_jump): Adjust.
28419 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
28420 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
28421 (lower_phi_internal_fn): Remove.
28422 (verify_gimple_call): Remove IFN_PHI special-casing.
28423 (dump_function_to_file): Dump IL state.
28424 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
28425 done to deal with PHI nodes being present in non-SSA state.
28427 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28430 * multiple_target.c (create_dispatcher_calls): Change
28431 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
28432 In the node->iterate_referring loop, push *ref rather than ref, call
28433 ref->remove_reference () and always pass 0 to iterate_referring.
28435 PR rtl-optimization/89679
28436 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
28437 would contain a paradoxical SUBREG.
28439 2019-03-14 Richard Biener <rguenther@suse.de>
28441 PR tree-optimization/89710
28442 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
28445 2019-03-14 Martin Liska <mliska@suse.cz>
28447 * coverage.c (coverage_begin_function): Stream also
28449 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
28450 documentation about function declaration location.
28451 * gcov-dump.c (tag_function): Print whole range
28452 of function declaration.
28453 * gcov.c (struct function_info): Add end_column field.
28454 (function_info::function_info): Initialize it.
28455 (output_json_intermediate_file): Output {start,end}_column
28457 (read_graph_file): Read end_column.
28459 2019-03-14 Richard Biener <rguenther@suse.de>
28461 PR middle-end/89698
28462 * fold-const.c (operand_equal_p): For INDIRECT_REF check
28463 that the access types are similar.
28465 2019-03-14 Jakub Jelinek <jakub@redhat.com>
28467 PR tree-optimization/89703
28468 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
28469 aren't compatible also with builtin_decl_explicit. Check pure
28470 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
28471 and BUILT_IN_STPNCPY{,_CHK}.
28473 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
28476 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
28477 addr32 prefix to VSIB address for X32.
28478 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
28480 (*avx512pf_gatherpf<mode>df_mask): Likewise.
28481 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
28482 (*avx512pf_scatterpf<mode>df_mask): Likewise.
28483 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
28484 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
28485 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
28486 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
28487 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
28488 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
28489 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
28490 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
28491 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
28492 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
28493 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
28494 (*avx512f_scatterdi<mode>): Likewise.
28496 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
28499 * lra-constraints.c (inherit_in_ebb): Update
28500 potential_reload_hard_regs along with live_hard_regs.
28502 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28505 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
28507 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
28509 2019-03-13 Martin Sebor <msebor@redhat.com>
28511 PR tree-optimization/89662
28512 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
28515 2019-03-13 Richard Biener <rguenther@suse.de>
28517 PR middle-end/89677
28518 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
28519 throw FP expressions at tree-affine.
28521 2019-03-14 Richard Biener <rguenther@suse.de>
28523 * tree-pretty-print.c (dump_generic_node): For -gimple properly
28524 dump negative integer constants using _Literal (type) -num.
28526 2019-03-13 Jakub Jelinek <jakub@redhat.com>
28528 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
28529 nonlocal_value member.
28531 PR middle-end/88588
28532 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
28533 (ipa_simd_modify_function_body): Handle PHIs.
28535 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28537 * config/s390/s390.c (s390_option_override_internal): Use more
28538 aggressive inlining parameters.
28540 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28542 * config/s390/3906.md: New file.
28543 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28544 (LONGRUNNING_THRESHOLD): Remove.
28545 (MAX_SCHED_MIX_SCORE): Decrease.
28546 (MAX_SCHED_MIX_DISTANCE): Decrease.
28547 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
28548 (struct s390_sched_state): New struct to hold scheduling state.
28549 (S390_SCHED_STATE_NORMAL): Remove.
28550 (S390_SCHED_STATE_CRACKED): Remove.
28551 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
28552 (s390_get_sched_attrmask): Use new attribute.
28553 (s390_get_unit_mask): Use new units.
28554 (s390_is_fpd): New function.
28555 (s390_is_fxd): New function.
28556 (s390_is_longrunning): New function.
28557 (s390_sched_score): Use new functions.
28558 (s390_sched_reorder): Likewise.
28559 (s390_sched_variable_issue): Rework and use new functions.
28560 (s390_sched_init): Use new functions.
28561 * config/s390/s390.h (s390_tune_attr): Add z14.
28562 * config/s390/s390.md: Add z14.
28564 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
28566 * config/s390/2964.md: Update pipeline description.
28567 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
28568 (LONGRUNNING_THRESHOLD): Remove.
28569 (LATENCY_FACTOR): Remove.
28570 (s390_get_unit_mask): Add unit.
28571 (s390_sched_score): Use fxd/fpd.
28572 (s390_sched_variable_issue): Use fxd/fpd.
28574 2019-03-12 Martin Liska <mliska@suse.cz>
28576 * config/i386/i386.c: Reword an error message.
28578 2019-03-12 Martin Jambor <mjambor@suse.cz>
28580 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
28581 terminate with newline.
28583 2019-03-12 Jakub Jelinek <jakub@redhat.com>
28586 * config/s390/s390.md (tabort): Use %wd instead of
28587 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
28588 letters and periods.
28589 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
28590 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
28593 PR middle-end/89663
28594 * builtins.c (expand_builtin_int_roundingfn,
28595 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
28596 gcc_unreachable if validate_arglist fails.
28598 2019-03-12 Richard Biener <rguenther@suse.de>
28600 PR tree-optimization/89664
28601 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
28602 free the occurance tree after the early out.
28604 2019-03-11 Jakub Jelinek <jakub@redhat.com>
28606 PR middle-end/89655
28608 * vr-values.c (vr_values::update_value_range): If
28609 old_vr->varying_p (), don't update it, make new_vr also VARYING
28612 2019-03-11 Martin Liska <mliska@suse.cz>
28614 * config/aarch64/aarch64.c (aarch64_override_options_internal):
28615 Fix double string quoting.
28617 2019-03-11 Martin Liska <mliska@suse.cz>
28619 * collect-utils.c (collect_wait): Wrap apostrophes
28620 in gcc internal format with %'.
28621 * collect2.c (main): Likewise.
28622 (scan_prog_file): Likewise.
28623 (scan_libraries): Likewise.
28624 * config/i386/i386.c (ix86_expand_call): Likewise.
28625 (ix86_handle_interrupt_attribute): Likewise.
28626 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
28627 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
28628 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
28629 * lto-wrapper.c (find_crtoffloadtable): Likewise.
28630 * symtab.c (symtab_node::verify_base): Likewise.
28631 * tree-cfg.c (verify_gimple_label): Likewise.
28632 * tree.c (verify_type_variant): Likewise.
28634 2019-03-11 Martin Liska <mliska@suse.cz>
28636 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
28637 in a string format message and fix GNU coding style.
28638 (expand_builtin_set_thread_pointer): Likewise.
28639 * common/config/aarch64/aarch64-common.c
28640 (aarch64_rewrite_selected_cpu): Likewise.
28641 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
28642 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
28643 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
28644 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
28645 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
28646 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
28647 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
28648 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
28649 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
28650 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
28652 * common/config/riscv/riscv-common.c
28653 (riscv_subset_list::parsing_subset_version): Likewise.
28654 (riscv_subset_list::parse_std_ext): Likewise.
28655 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
28656 (riscv_subset_list::parse): Likewise.
28657 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
28658 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
28659 (aarch64_override_options_internal): Likewise.
28660 (aarch64_validate_mcpu): Likewise.
28661 (aarch64_validate_march): Likewise.
28662 (aarch64_validate_mtune): Likewise.
28663 (aarch64_override_options): Likewise.
28664 * config/alpha/alpha.c (alpha_option_override): Likewise.
28665 * config/arc/arc.c (arc_init): Likewise.
28666 (parse_mrgf_banked_regs_option): Likewise.
28667 (arc_override_options): Likewise.
28668 (arc_expand_builtin_aligned): Likewise.
28669 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
28670 (arm_expand_builtin): Likewise.
28671 * config/arm/arm.c (arm_option_check_internal): Likewise.
28672 (arm_configure_build_target): Likewise.
28673 (arm_option_override): Likewise.
28674 (arm_options_perform_arch_sanity_checks): Likewise.
28675 (arm_handle_cmse_nonsecure_entry): Likewise.
28676 (arm_handle_cmse_nonsecure_call): Likewise.
28677 (arm_tls_referenced_p): Likewise.
28678 (thumb1_expand_prologue): Likewise.
28679 * config/avr/avr.c (avr_option_override): Likewise.
28680 * config/bfin/bfin.c (bfin_option_override): Likewise.
28681 * config/c6x/c6x.c (c6x_option_override): Likewise.
28682 * config/cr16/cr16.c (cr16_override_options): Likewise.
28683 * config/cris/cris.c (cris_option_override): Likewise.
28684 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
28685 * config/darwin-c.c (macosx_version_as_macro): Likewise.
28686 * config/darwin.c (darwin_override_options): Likewise.
28687 * config/frv/frv.c (frv_expand_builtin): Likewise.
28688 * config/h8300/h8300.c (h8300_option_override): Likewise.
28689 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
28690 (ix86_option_override_internal): Likewise.
28691 (warn_once_call_ms2sysv_xlogues): Likewise.
28692 (ix86_expand_prologue): Likewise.
28693 (split_stack_prologue_scratch_regno): Likewise.
28694 (ix86_warn_parameter_passing_abi): Likewise.
28695 * config/ia64/ia64.c (fix_range): Likewise.
28696 * config/m68k/m68k.c (m68k_option_override): Likewise.
28697 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
28698 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
28699 (mips_set_compression_mode): Likewise.
28700 * config/mmix/mmix.c (mmix_option_override): Likewise.
28701 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
28702 * config/msp430/msp430.c (msp430_option_override): Likewise.
28703 * config/nds32/nds32.c (nds32_option_override): Likewise.
28704 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
28705 (nios2_option_override): Likewise.
28706 (nios2_expand_custom_builtin): Likewise.
28707 * config/nvptx/mkoffload.c (main): Likewise.
28708 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
28709 * config/pa/pa.c (fix_range): Likewise.
28710 (pa_option_override): Likewise.
28711 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
28712 (riscv_option_override): Likewise.
28713 * config/rl78/rl78.c (rl78_option_override): Likewise.
28714 * config/rs6000/aix61.h: Likewise.
28715 * config/rs6000/aix71.h: Likewise.
28716 * config/rs6000/aix72.h: Likewise.
28717 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
28718 * config/rs6000/freebsd64.h: Likewise.
28719 * config/rs6000/linux64.h: Likewise.
28720 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
28721 (rs6000_expand_zeroop_builtin): Likewise.
28722 (rs6000_expand_mtfsb_builtin): Likewise.
28723 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
28724 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
28725 (rs6000_invalid_builtin): Likewise.
28726 (rs6000_expand_split_stack_prologue): Likewise.
28727 * config/rs6000/rtems.h: Likewise.
28728 * config/rx/rx.c (valid_psw_flag): Likewise.
28729 (rx_expand_builtin): Likewise.
28730 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
28731 * config/s390/s390.c (s390_expand_builtin): Likewise.
28732 (s390_function_profiler): Likewise.
28733 (s390_option_override_internal): Likewise.
28734 (s390_option_override): Likewise.
28735 * config/sh/sh.c (sh_option_override): Likewise.
28736 (sh_builtin_saveregs): Likewise.
28737 (sh_fix_range): Likewise.
28738 * config/sh/vxworks.h: Likewise.
28739 * config/sparc/sparc.c (sparc_option_override): Likewise.
28740 * config/spu/spu.c (spu_option_override): Likewise.
28741 (fix_range): Likewise.
28742 * config/visium/visium.c (visium_option_override): Likewise.
28743 (visium_handle_interrupt_attr): Likewise.
28744 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
28745 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
28746 (dbg_cnt_process_opt): Likewise.
28747 * dwarf2out.c (output_dwarf_version): Likewise.
28748 * except.c (expand_eh_return): Likewise.
28749 * gcc.c (defined): Likewise.
28750 (driver_handle_option): Likewise.
28751 (process_command): Likewise.
28752 (compare_files): Likewise.
28753 (driver::prepare_infiles): Likewise.
28754 (driver::do_spec_on_infiles): Likewise.
28755 (driver::maybe_run_linker): Likewise.
28756 * omp-offload.c (oacc_parse_default_dims): Likewise.
28757 * opts-global.c (handle_common_deferred_options): Likewise.
28758 * opts.c (parse_sanitizer_options): Likewise.
28759 (common_handle_option): Likewise.
28760 (enable_warning_as_error): Likewise.
28761 * passes.c (enable_disable_pass): Likewise.
28762 * plugin.c (parse_plugin_arg_opt): Likewise.
28763 (default_plugin_dir_name): Likewise.
28764 * targhooks.c (default_expand_builtin_saveregs): Likewise.
28765 (default_pch_valid_p): Likewise.
28766 * toplev.c (init_asm_output): Likewise.
28767 (process_options): Likewise.
28768 (toplev::run_self_tests): Likewise.
28769 * tree-cfg.c (verify_gimple_call): Likewise.
28770 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
28771 (tree_inlinable_function_p): Likewise.
28772 * var-tracking.c (vt_find_locations): Likewise.
28774 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
28776 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
28777 only on the else branch.
28779 2019-03-11 Martin Liska <mliska@suse.cz>
28781 * gcov.c (output_intermediate_json_line): Print function
28783 (output_json_intermediate_file): Add new argument.
28784 * doc/gcov.texi: Document the change.
28786 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
28788 PR rtl-optimization/89588
28789 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
28790 explicit unrolling factor more robust.
28792 2019-03-11 Richard Biener <rguenther@suse.de>
28794 PR tree-optimization/89649
28795 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
28796 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
28797 on the prolog and epilog loops.
28798 (vect_loop_versioning): Return copy of loop.
28799 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
28800 on the non-vectorized version of the loop.
28802 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
28805 * config/i386/sse.md (*vec_extractv2di_0_sse):
28806 Add (=r,x) alternative and corresponding splitter.
28808 2019-03-10 Martin Jambor <mjambor@suse.cz>
28810 PR tree-optimization/85762
28811 PR tree-optimization/87008
28812 PR tree-optimization/85459
28813 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
28814 it points to if there is a type changing MEM_REF. Adjust all callers.
28815 (build_accesses_from_assign): Disable total scalarization if
28816 contains_vce_or_bfcref_p returns true through the new parameter, for
28819 2019-03-09 Jakub Jelinek <jakub@redhat.com>
28822 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
28823 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
28826 * common.opt (fdiagnostics-show-labels,
28827 fdiagnostics-show-line-numbers, fdiagnostics-format=,
28828 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
28829 gas-locview-support, ginline-points, ginternal-reset-location-views):
28830 Terminate description text with a dot.
28831 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
28832 * config/mcore/mcore.opt (m210, m340): Likewise.
28833 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
28834 mnops=): Start description text with a capital letter.
28835 * config/arc/arc.opt (msize-level=): Likewise.
28836 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
28837 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
28838 mnewlib): Likewise.
28839 * config/ft32/ft32.opt (msim): Likewise.
28840 (mft32b, mcompress): Likewise. Terminate description text with a dot.
28841 (mnodiv, mnopm): Terminate description text with a dot.
28842 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
28844 * config/i386/i386.opt (prefer_vector_width, instrument_return):
28846 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
28849 PR rtl-optimization/89634
28850 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
28851 are modified in BB_END (e->src) instruction.
28853 2019-03-08 David Malcolm <dmalcolm@redhat.com>
28856 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
28857 messages more amenable to translation, and improve wording.
28859 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
28861 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
28862 ud- and du-chains between phases.
28864 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
28867 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
28868 instead of POLY_INT_CST.
28870 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
28872 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
28875 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
28880 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
28881 (_mm_storeu_si64): Ditto.
28883 2019-03-08 Martin Liska <mliska@suse.cz>
28886 * config/i386/i386.c (ix86_option_override_internal): Disable
28887 jump tables when retpolines are used.
28889 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
28892 * ipa-split.c (execute_split_functions): Do not split
28893 'noinline' or 'section' function.
28895 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28898 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
28899 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
28900 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
28903 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
28904 from diagnostics. Formatting fixes.
28907 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
28908 warn_odr diagnostics.
28911 * lra-constraints.c (process_alt_operands): Avoid one space before
28912 " at the end of line and another after " on another line in a string
28914 * attribs.c (handle_dll_attribute): Likewise.
28915 * config/avr/avr-devices.c (avr_texinfo): Likewise.
28917 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
28918 warning_at or inform messages in G_() if there is no ?:.
28920 PR tree-optimization/89550
28921 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
28922 returned true. Formatting fixes.
28923 (expand_builtin_strnlen): Formatting fixes.
28924 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
28925 if warning_at returned true.
28926 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
28928 2019-03-08 Richard Biener <rguenther@suse.de>
28930 PR middle-end/89578
28931 * cfgloop.h (struct loop): Add owned_clique field.
28932 * cfgloopmanip.c (copy_loop_info): Copy it.
28933 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
28935 * tree-inline.c (copy_loops): Remap owned_clique.
28936 * lto-streamer-in.c (input_cfg): Stream owned_clique.
28937 * lto-streamer-out.c (output_cfg): Likewise.
28939 2019-03-08 Jakub Jelinek <jakub@redhat.com>
28942 * config/darwin.c: Include intl.h.
28943 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
28944 composing the message out of two separate parts.
28946 2019-03-07 Jakub Jelinek <jakub@redhat.com>
28949 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
28950 doesn't start with a capital letter and doesn't end with a dot.
28951 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
28952 with a capital letter.
28953 (ix86_mangle_function_version_assembler_name): Likewise.
28954 (ix86_generate_version_dispatcher_body): Likewise.
28955 (fold_builtin_cpu): Likewise.
28956 (get_builtin_code_for_version): Likewise. Remove extraneous space.
28957 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
28958 translators, wrap full type name in %qs.
28960 PR translation/79999
28961 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
28962 depend clause with source (or sink) modifier.
28963 * omp-expand.c (expand_omp_ordered_sink): Likewise.
28966 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
28967 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
28968 (avx512f_load<mode>_mask): New define_expand.
28969 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
28970 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
28971 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
28972 __builtin_ia32_movess_mask): New builtins.
28973 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
28974 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
28975 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
28976 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
28978 2019-03-07 Martin Jambor <mjambor@suse.cz>
28981 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
28982 for extern inline functions.
28984 2019-03-07 Martin Jambor <mjambor@suse.cz>
28987 * cgraph.h (cgraph_node): New inline method former_thunk_p.
28988 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
28989 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
28990 have multiple callees. At the end check if declarations match as
28991 opposed to cgraph_nodes.
28993 2019-03-07 Martin Liska <mliska@suse.cz>
28995 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
28996 which is equivalent to searching for this in clones chain.
28997 * symtab.c (symtab_node::verify_base): Similarly compare ASM
28998 names with a neighbour and special case first node in a chain.
29000 2019-01-25 Jason Merrill <jason@redhat.com>
29002 PR c++/80916 - spurious "static but not defined" warning.
29003 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
29004 for an internal symbol with DECL_EXTERNAL.
29006 2019-04-07 Richard Biener <rguenther@suse.de>
29008 PR middle-end/89618
29009 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
29010 * tree-inline.c (copy_loops): Simplify.
29012 2019-03-07 Martin Liska <mliska@suse.cz>
29014 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
29016 2019-03-07 Richard Biener <rguenther@suse.de>
29018 PR tree-optimization/89595
29019 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
29020 stmt iterator as reference, take boolean output parameter to
29021 indicate whether the stmt was removed and thus the iterator
29023 (dom_opt_dom_walker::before_dom_children): Re-iterate over
29024 stmts created by folding.
29026 2019-03-07 Jakub Jelinek <jakub@redhat.com>
29029 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
29032 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
29034 PR rtl-optimization/88845
29035 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
29037 * lra.c (remove_scratches_1): New function.
29038 (remove_scratches): Use it.
29039 (lra_emit_move): Likewise.
29041 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
29043 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
29044 unaligned_access variable.
29045 * config/arc/arc.c (arc_override_options): Set unaligned access
29046 default on for HS CPUs.
29047 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
29049 2019-03-06 Martin Liska <mliska@suse.cz>
29051 PR gcov-profile/89577
29052 * doc/gcov.texi: Prefer to use --coverage.
29053 * doc/sourcebuild.texi: Likewise.
29055 2019-03-02 Jason Merrill <jason@redhat.com>
29057 PR c++/86485 - -Wmaybe-unused with empty class ?:
29058 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
29060 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29063 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
29066 PR middle-end/89590
29067 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
29068 exactly one argument.
29070 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29071 Richard Sandiford <richard.sandiford@arm.com>
29073 PR tree-optimization/89570
29074 * match.pd (vec_cond into cond_op simplification): Don't use
29075 get_conditional_internal_fn, use as_internal_fn (cond_op).
29077 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
29080 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
29081 to decide when to split off a non-zero offset from a symbol.
29082 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
29083 in function symbols.
29085 2019-03-05 Richard Biener <rguenther@suse.de>
29087 PR tree-optimization/89594
29088 * tree-if-conv.c (pass_if_conversion::execute): Handle
29089 case where .LOOP_VECTORIZED_FUNCTION was removed.
29091 2019-03-05 Jakub Jelinek <jakub@redhat.com>
29094 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
29095 instead alloca it only when needed with the needed size.
29097 PR tree-optimization/89570
29098 * match.pd (vec_cond into cond_op simplification): Guard with
29099 vectorized_internal_fn_supported_p test and #if GIMPLE.
29101 PR tree-optimization/89566
29102 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
29103 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
29104 Punt if get_user_idx_format succeeds, but idx_format argument is
29105 not provided or doesn't have pointer type, or if idx_args is above
29106 number of provided arguments.
29108 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
29110 PR tree-optimization/89437
29111 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
29113 2019-03-04 Richard Biener <rguenther@suse.de>
29115 PR middle-end/89572
29116 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
29119 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
29121 PR tree-optimization/89487
29122 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
29123 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
29124 (distribute_loop): Don't do runtime alias check if there is non-
29125 addressable data reference.
29126 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
29127 is a register variable.
29129 2019-03-02 Jakub Jelinek <jakub@redhat.com>
29132 * config/arm/arm.md (cmpsi2_addneg): Use
29133 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
29134 If operands[2] is 0 or INT_MIN, force use of subs.
29135 (*compare_scc splitter): Use gen_int_mode.
29136 (*negscc): Likewise.
29137 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
29139 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
29140 Monk Chiang <sh.chiang04@gmail.com>
29142 * common/config/riscv/riscv-common.c: Include sstream.
29143 (riscv_subset_list::to_string): New.
29144 (riscv_arch_str): Likewise.
29145 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
29146 * config.in: Regen.
29147 * config/riscv/riscv-protos.h (riscv_arch_str): New.
29148 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
29149 (riscv_emit_attribute): New.
29150 (riscv_file_start): Emit attribute if needed.
29151 (riscv_option_override): Init riscv_emit_attribute_p.
29152 * config/riscv/riscv.opt (mriscv-attribute): New option.
29153 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
29154 * configure: Regen.
29155 * doc/install.texi: Document --with-riscv-attribute.
29156 * doc/invoke.texi: Document -mriscv-attribute.
29158 * common/config/riscv/riscv-common.c:
29159 Include config/riscv/riscv-protos.h.
29160 (INCLUDE_STRING): Defined.
29161 (RISCV_DONT_CARE_VERSION): Defined.
29162 (riscv_subset_t): Declare.
29163 (riscv_subset_t::riscv_subset_t): New.
29164 (riscv_subset_list): Declare.
29165 (riscv_subset_list::riscv_subset_list): New.
29166 (riscv_subset_list::~riscv_subset_list): Likewise.
29167 (riscv_subset_list::parsing_subset_version): Likewise.
29168 (riscv_subset_list::parse_std_ext): Likewise.
29169 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
29170 (riscv_subset_list::add): Likewise.
29171 (riscv_subset_list::lookup): Likewise.
29172 (riscv_subset_list::xlen): Likewise.
29173 (riscv_subset_list::parse): Likewise.
29174 (riscv_supported_std_ext): Likewise.
29175 (current_subset_list): Likewise.
29176 (riscv_parse_arch_string): Using riscv_subset_list::parse to
29179 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
29181 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
29182 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
29183 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
29185 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
29187 PR rtl-optimization/85899
29188 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
29189 fallthru edges leading to the exit block.
29191 2019-03-01 Tamar Christina <tamar.christina@arm.com>
29194 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
29195 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
29197 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
29199 PR tree-optimization/89535
29200 * tree-vect-stmts.c (vectorizable_call): Record the vector types
29201 for each operand. Calculate the fallback choice for mask operands
29202 and pass it to vect_get_vec_def_for_operand.
29204 2019-03-01 Richard Biener <rguenther@suse.de>
29206 PR middle-end/89541
29207 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
29208 get virtual operands.
29209 (get_expr_operands): Handle CONST_DECL like other decls.
29211 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29213 PR middle-end/89503
29214 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
29215 on DECL_P and EXPR_P.
29217 2019-03-01 Richard Biener <rguenther@suse.de>
29219 PR middle-end/89497
29220 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
29221 argument, defaulted to zero.
29222 * passes.c (execute_function_todo): Pass down SSA update flags
29223 to cleanup_tree_cfg.
29224 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
29225 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
29227 (cleanup_tree_cfg): Get and pass down SSA update flags.
29229 2019-03-01 Jakub Jelinek <jakub@redhat.com>
29232 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
29233 early_lto_debug argument.
29235 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
29237 PR tree-optimization/89536
29238 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
29239 only whether bit #0 of the value is 0 instead of the entire value.
29241 2019-02-28 Marek Polacek <polacek@redhat.com>
29243 PR c++/87068 - missing diagnostic with fallthrough statement.
29244 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
29245 at the end of a seq, save its location to walk_stmt_info.
29246 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
29249 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
29252 * tree.c (find_atomic_core_type): Move ahead in file.
29253 (check_base_type): Correctly compare alignments of atomic types.
29255 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
29258 * config/i386/i386.c (get_builtin_code_for_version): Identify
29259 Westmere from PCLMUL, instead of AES.
29261 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29264 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
29265 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
29268 2019-02-28 Tamar Christina <tamar.christina@arm.com>
29271 * config/aarch64/aarch64-option-extensions.def: Document it.
29272 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
29275 2019-02-28 Jakub Jelinek <jakub@redhat.com>
29278 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
29279 builtins if they don't have a single scalar floating point argument.
29282 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
29284 PR rtl-optimization/89490
29285 * varasm.c (get_block_for_section): Bail out for mergeable sections.
29286 (default_use_anchors_for_symbol_p, output_object_block): Assert the
29287 block section is not mergeable.
29289 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29292 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
29293 old define_insn to ...
29294 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
29295 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
29296 Rename old define_insn to ...
29297 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
29298 (thumb2_casesi_internal_pic): New define_expand. Rename old
29300 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
29301 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
29302 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
29304 2019-02-27 Richard Biener <rguenther@suse.de>
29307 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
29309 2019-02-27 Richard Biener <rguenther@suse.de>
29311 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
29314 2019-02-27 Richard Biener <rguenther@suse.de>
29317 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
29318 parameter, prefix section name with .gnu.debuglto_ if true.
29319 (dwarf2out_finish): Pass false to output_comdat_type_unit.
29320 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
29322 2019-02-27 Richard Biener <rguenther@suse.de>
29325 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
29326 rather than on use_debug_types, doing what output_die does.
29327 (value_format): Likewise.
29329 2019-02-27 Martin Jambor <mjambor@suse.cz>
29330 Martin Sebor <msebor@redhat.com>
29332 * doc/invoke.texi (Warning Options): Reword description of
29333 -Wno-absolute-value.
29335 2019-02-27 Jakub Jelinek <jakub@redhat.com>
29337 PR tree-optimization/89280
29338 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
29339 builtin_setjmp_setup_bb): New functions.
29340 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
29341 When visiting __builtin_setjmp_setup block, queue in special
29342 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
29343 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
29344 from visited after the loop if they don't have any visited successor
29347 2018-02-26 Steve Ellcey <sellcey@marvell.com>
29349 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
29351 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
29353 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29356 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
29357 with types other than sizetype/ssizetype.
29359 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29361 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
29362 (enum sparc_processor_type): ...this.
29363 (enum sparc_code_model_type): New enumeration type.
29364 (enum sparc_memory_model_type): Tweak comments.
29365 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
29367 (mcmodel): Use sparc_code_model enumeration and variable.
29368 (sparc_code_model): New enumeration.
29369 (mdebug): Add Undocumented marker.
29370 * config/sparc/sparc.h (enum cmodel): Delete.
29371 (sparc_cmodel): Likewise.
29372 (TARGET_CM_MEDLOW): Adjust to above renaming.
29373 (TARGET_CM_MEDMID): Likewise.
29374 (TARGET_CM_MEDANY): Likewise.
29375 (TARGET_CM_EMBMEDANY): Likewise.
29376 * config/sparc/sparc.c (sparc_cmodel): Delete.
29377 (sparc_option_override): Remove string/value mapping support for the
29378 code model. Move code and memory model support to after the handling
29379 of target flags. Do private machine setup last.
29380 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
29381 (sparc_legitimize_reload_address): Likewise.
29382 (sparc_output_mi_thunk): Likewise.
29383 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
29385 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29387 PR tree-optimization/89500
29388 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
29389 (handle_builtin_strlen): Remove noncst_bound variable. Always
29390 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
29391 cst if the first cst bytes starting at x are known to be non-zero,
29392 even if the string is not zero terminated. Don't try to modify
29393 *si for strnlen. Update strlen_to_stridx only for strlen or if
29394 we can prove strnlen returns the same value as strlen would.
29396 2019-02-26 Martin Liska <mliska@suse.cz>
29398 * alloc-pool.h (struct pool_usage): Remove extra
29400 * bitmap.h (struct bitmap_usage): Likewise.
29401 * ggc-common.c (struct ggc_usage): Likewise.
29402 * mem-stats.h (struct mem_usage): Likewise.
29403 (mem_alloc_description::dump): Print dash lines
29404 here and repeat header at the end of a table report.
29405 It's then more readable.
29406 * tree-phinodes.c (phinodes_print_statistics): Make
29407 horizontal alignment.
29408 * tree-ssanames.c (ssanames_print_statistics): Likewise.
29409 * vec.c (struct vec_usage): Remove extra print_dash_line.
29410 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
29412 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
29414 * doc/extend.texi (__builtin_object_size):
29415 Use @pxref instead of @xref inside parenthesis.
29416 (__builtin_has_attribute): Add missing comma after @xref.
29417 (__builtin_object_size): Ditto.
29418 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
29420 2019-02-26 Jeff Law <law@redhat.com>
29422 PR rtl-optimization/87761
29423 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
29424 detect obviously dead insns and delete them.
29426 2019-02-26 Richard Biener <rguenther@suse.de>
29428 PR tree-optimization/89505
29429 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
29430 to handle restrict pointed-to vars with multiple subvars
29433 2019-02-26 Richard Biener <rguenther@suse.de>
29435 PR tree-optimization/89489
29436 * tree-parloops.c (create_loop_fn): Copy over last_clique.
29438 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
29440 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
29441 and move around comment.
29442 <BIT_AND_EXPR>: Likewise.
29443 <BIT_NOT_EXPR>: Add specific handling for boolean types.
29445 2019-02-26 Jakub Jelinek <jakub@redhat.com>
29448 * config/i386/i386.c (remove_partial_avx_dependency): Call
29449 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
29450 after changing possibly many instructions to use that pseudo. Fix up
29451 insertion of v4sf_const0 setter at the start of bb.
29453 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29456 * doc/extend.texi (Variadic Pointer Args): New section.
29458 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
29459 Martin Sebor <msebor@gmail.com>
29461 * common.opt (Wattribute-alias): Likewise.
29462 * doc/invoke.texi (Option Summary): List general form of
29463 -Wattribute-alias=. List positive form of -Wmissing-attributes.
29464 (-Wmissing-attributes): Invert entry, rewrite and correct default.
29465 Add cross-references.
29466 (-Wattribute-alias): Rewrite and correct default. Mention
29467 considered attributes (same as for -Wmissing-attributes).
29469 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
29471 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
29472 (_mm_cvtpd_ps): Likewise.
29473 (_mm_cvttpd_epi32): Likewise.
29476 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
29477 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
29480 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
29482 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29485 * common/config/aarch64/aarch64-common.c
29486 (struct aarch64_option_extension): Add is_synthetic.
29487 (all_extensions): Use it.
29488 (TARGET_OPTION_INIT_STRUCT): Define hook.
29489 (struct gcc_targetm_common): Moved to end.
29490 (all_extensions_by_on): New.
29491 (opt_ext_cmp, typedef opt_ext): New.
29492 (aarch64_option_init_struct): New.
29493 (aarch64_contains_opt): New.
29494 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
29495 * config/aarch64/aarch64-option-extensions.def
29496 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
29497 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
29498 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
29499 Set is_synthetic to false.
29500 (crypto): Set is_synthetic to true.
29501 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
29504 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29506 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29507 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
29508 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29509 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
29510 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
29511 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
29512 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
29513 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
29515 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
29516 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29517 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
29518 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
29519 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
29520 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
29521 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
29522 vfmlsl_laneq_high_f16): ... To this.
29523 * config/arm/neon.md: Update comments.
29525 2019-02-25 Tamar Christina <tamar.christina@arm.com>
29527 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
29528 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
29529 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
29530 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
29531 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
29532 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
29533 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
29534 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
29536 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
29537 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
29538 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
29539 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
29540 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
29541 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
29542 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
29543 vfmlslq_laneq_high_f16): ... To this.
29545 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
29547 PR rtl-optimization/86096
29548 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
29549 comparing mw_order values.
29551 2019-02-25 Jakub Jelinek <jakub@redhat.com>
29554 * config/arm/arm.md (*subsi3_carryin_const): Use
29555 arm_neg_immediate_operand predicate instead of
29556 arm_not_immediate_operand, "L" constraint instead of "K" and
29557 print it using %n2 instead of %B2.
29558 (*subsi3_carryin_const0): New define_insn.
29559 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
29560 instead of arm_not_operand and "I" constraint instead of "K" and
29561 print it using %n3 instead of %B2. Instead of using match_dup 2 add
29562 another match_operand and in the condition check that it is negation
29564 (*subsi3_carryin_compare_const0): New define_ins.
29565 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
29566 *subsi3_carryin_const.
29567 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
29568 split into *subsi3_carryin_compare_const0 if the highpart is zero.
29571 * config/arm.vfp.md (*negdf2_vfp): Use
29572 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
29573 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
29575 2019-02-24 Jakub Jelinek <jakub@redhat.com>
29577 PR rtl-optimization/89445
29578 * simplify-rtx.c (simplify_ternary_operation): Don't use
29579 simplify_merge_mask on operands that may trap.
29580 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
29581 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
29582 second operand is CONST_VECTOR, check if any element could be zero.
29583 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
29584 their operands can trap.
29586 2019-02-23 Martin Sebor <msebor@redhat.com>
29588 * gimple-ssa-sprintf.c (target_strtol): Rename...
29589 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
29590 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
29591 check for range error.
29593 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
29596 * opts-common.c (prune_options): Also prune joined switches
29597 with Negative and RejectNegative.
29598 * config/i386/i386.opt (march=): Add Negative(march=).
29599 (mtune=): Add Negative(mtune=).
29600 * doc/options.texi: Document Negative used together with Joined
29601 and RejectNegative.
29603 2019-02-22 Martin Sebor <msebor@redhat.com>
29605 * doc/extend.texi (Other Builtins): Add
29606 __builtin_is_constant_evaluated.
29608 2019-02-22 Richard Biener <rguenther@suse.de>
29610 PR tree-optimization/87609
29611 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
29613 2019-02-22 Jeff Law <law@redhat.com>
29615 PR rtl-optimization/87761
29616 * config/mips/mips.md: Add new combiner pattern to recognize
29617 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
29619 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
29622 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
29623 destination register in peepholes generating patterns for ADDS/SUBS.
29624 (add<mode>3_compare0,
29625 *addsi3_compare0_uxtw, add<mode>3_compareC,
29626 add<mode>3_compareV_imm, add<mode>3_compareV,
29627 *adds_<optab><ALLX:mode>_<GPI:mode>,
29628 *subs_<optab><ALLX:mode>_<GPI:mode>,
29629 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
29630 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
29631 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
29632 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
29633 sub<mode>3_compare1): Allow stack pointer for source register.
29634 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
29636 2019-02-22 Martin Sebor <msebor@redhat.com>
29638 PR tree-optimization/88993
29639 PR tree-optimization/88853
29640 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
29642 (sprintf_dom_walker::call_info::is_string_func): New helper.
29643 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
29644 for formatted string functions.
29645 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
29647 2019-02-22 Martin Sebor <msebor@redhat.com>
29650 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
29651 unreachable subexpressions.
29653 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
29654 Hongtao Liu <hongtao.liu@intel.com>
29655 Sunil K Pandey <sunil.k.pandey@intel.com>
29658 * config/i386/i386-passes.def: Add
29659 pass_remove_partial_avx_dependency.
29660 * config/i386/i386-protos.h
29661 (make_pass_remove_partial_avx_dependency): New.
29662 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
29664 (pass_data_remove_partial_avx_dependency): New.
29665 (pass_remove_partial_avx_dependency): Likewise.
29666 (make_pass_remove_partial_avx_dependency): Likewise.
29667 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
29668 (*extendsfdf2): Add avx_partial_xmm_update.
29669 (truncdfsf2): Likewise.
29670 (*float<SWI48:mode><MODEF:mode>2): Likewise.
29671 (SF/DF conversion splitters): Disabled for TARGET_AVX.
29673 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
29675 PR middle-end/85598
29676 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
29679 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
29682 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
29683 (PTA_SKYLAKE): Add PTA_AES.
29684 (PTA_GOLDMONT): Likewise.
29686 2019-02-22 Sudakshina Das <sudi.das@arm.com>
29688 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
29689 instruction if enabled.
29690 (aarch64_override_options): Remove reference to return address key.
29692 2019-02-22 Richard Biener <rguenther@suse.de>
29694 PR tree-optimization/89440
29695 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
29696 not necessary assert.
29698 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
29701 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
29702 (oacc_replace_fn_attrib_attr): ... this new function.
29703 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
29704 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
29706 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29708 * config/arm/arm-cpus.in (ares): Rename to...
29709 (neoverse-n1): ... This. Add ares as alias.
29710 * config/arm/arm-tables.opt: Regenerate.
29711 * config/arm/arm-tune.md: Likewise.
29712 * doc/invoke.txt (ARM Options): Document neoverse-n1.
29714 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29716 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
29717 * config/aarch64/aarch64-tune.md: Regenerate.
29718 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
29720 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29722 * config/aarch64/aarch64.c (ares_tunings): Rename to...
29723 (neoversen1_tunings): ... This.
29724 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
29725 (neoverse-n1): New CPU.
29726 * config/aarch64/aarch64-tune.md: Regenerate.
29727 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
29729 2019-02-22 Richard Biener <rguenther@suse.de>
29731 PR middle-end/87609
29732 * cfghooks.h (dependence_hash): New typedef.
29733 (struct copy_bb_data): New type.
29734 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
29735 (duplicate_block): Likewise.
29736 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
29737 (copy_bbs): Create and pass down copy_bb_data.
29738 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
29739 (rtl_duplicate_bb): Likewise.
29740 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
29741 remap dependence info.
29743 2019-02-22 Richard Biener <rguenther@suse.de>
29745 PR tree-optimization/87609
29746 * tree-core.h (tree_base): Document special clique values.
29747 * tree-inline.c (remap_dependence_clique): Do not use the
29748 special clique value of one.
29749 (maybe_set_dependence_info): Use clique one.
29750 (clear_dependence_clique): New callback.
29751 (compute_dependence_clique): Clear clique one from all refs
29752 before assigning it (again).
29754 2019-02-21 Martin Sebor <msebor@redhat.com>
29756 * doc/extend.texi (__clear_cache): Correct signature.
29758 2019-02-21 Ian Lance Taylor <iant@golang.org>
29761 * varasm.c (decode_addr_const): Call lookup_constant_def rather
29762 than output_constant_def.
29763 (add_constant_to_table): New static function.
29764 (output_constant_def): Call add_constant_to_table.
29765 (tree_output_constant_def): Likewise.
29767 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29770 * builtins.c (fold_builtin_arith_overflow): If first two args are
29771 INTEGER_CSTs, set intres and ovfres to constants rather than calls
29774 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
29777 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
29778 error for -mindirect-branch/-mfunction-return with incompatible
29781 2019-02-21 Jakub Jelinek <jakub@redhat.com>
29784 * constraints.md (q): Remove.
29785 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
29788 2019-02-21 Martin Jambor <mjambor@suse.cz>
29791 * omp-general.c (omp_extract_for_data): Removed a duplicate call
29792 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
29793 (omp_adjust_for_condition): ...here. Added necessary parameters.
29794 * omp-general.h (omp_adjust_for_condition): Updated declaration.
29795 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
29796 proper values to new parameters of omp_adjust_for_condition.
29798 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29800 PR middle-end/89412
29801 * expr.c (expand_assignment): If result is a MEM, use change_address
29802 instead of simplify_gen_subreg.
29804 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29805 David Malcolm <dmalcolm@redhat.com>
29807 PR middle-end/89091
29808 * fold-const.c (decode_field_reference): Return NULL_TREE if
29809 lang_hooks.types.type_for_size returns NULL. Check it before
29810 overwriting *exp_. Use return NULL_TREE instead of return 0.
29812 2019-02-20 Jakub Jelinek <jakub@redhat.com>
29814 PR middle-end/88074
29815 PR middle-end/89415
29816 * toplev.c (do_compile): Double the emin/emax exponents to workaround
29819 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
29822 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
29823 TARGET_SSE in addition to TARGET_SSE_MATH.
29825 (ix86_excess_precision): Ditto.
29826 (ix86_float_exceptions_rounding_supported_p): Ditto.
29827 (use_rsqrt_p): Ditto.
29828 * config/i386/sse.md (rsqrt<mode>2): Ditto.
29830 2019-02-20 David Malcolm <dmalcolm@redhat.com>
29833 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
29834 linenum_arith_t when determining if two adjacent line spans are
29835 close enough to merge.
29836 (diagnostic_show_locus): Use linenum_arith_t when iterating over
29837 lines within each line_span.
29839 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
29842 * lra-constraints.c(uses_hard_regs_p): Fix handling of
29843 paradoxical SUBREGS.
29845 2019-02-20 Li Jia He <helijia@linux.ibm.com>
29848 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
29849 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
29850 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
29853 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
29855 * config/gcn/gcn.c (print_operand): Fix typo.
29857 2019-02-19 Richard Biener <rguenther@suse.de>
29859 PR middle-end/88074
29860 * toplev.c (do_compile): Initialize mpfr's exponent range
29861 based on available float modes.
29863 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
29865 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
29866 as long as the epilogue isn't completed.
29868 2019-02-18 Martin Sebor <msebor@redhat.com>
29870 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
29871 __has_cpp_attribute, and __has_include.
29873 2019-02-18 Martin Sebor <msebor@redhat.com>
29875 * doc/invoke.texi (-Wreturn-type): Correct and expand.
29877 2019-02-18 Martin Sebor <msebor@redhat.com>
29879 PR middle-end/89294
29880 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
29882 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
29884 2019-02-18 Richard Biener <rguenther@suse.de>
29886 PR tree-optimization/89296
29887 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
29888 of no-warning flag to cases that might emit the bogus warning.
29890 2019-02-18 Jakub Jelinek <jakub@redhat.com>
29893 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
29895 * config/arm/vfp.md (*movdi_vfp): Likewise.
29896 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
29897 "q" constraint for operands[0].
29900 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
29901 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
29902 pattern in a temporary buffer.
29903 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
29904 than 64-operands[2].
29907 * config/s390/s390.c (s390_indirect_branch_attrvalue,
29908 s390_indirect_branch_settings): Define unconditionally.
29909 (s390_set_current_function): Likewise, but guard the whole body except
29910 the s390_indirect_branch_settings call with
29911 #if S390_USE_TARGET_ATTRIBUTE.
29912 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
29914 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
29915 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
29916 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
29917 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
29918 HOST_WIDE_INT_1U instead of 1ULL.
29919 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
29920 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
29921 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
29922 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
29924 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
29927 2019-02-18 Martin Jambor <mjambor@suse.cz>
29929 PR tree-optimization/89209
29930 * tree-sra.c (create_access_replacement): New optional parameter
29931 reg_tree. Use it as a type if non-NULL and access type is not of
29933 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
29934 to create_access_replacement.
29935 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
29936 Check lacc is non-NULL before attempting to re-create it on the RHS.
29938 2019-02-18 Martin Liska <mliska@suse.cz>
29941 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
29943 (symbol_table::free_edge): Recycle m_summary_id.
29944 * cgraph.h (get_summary_id): New.
29945 (symbol_table::release_symbol): Set m_summary_id to -1
29947 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
29948 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
29949 function_summary to fast_function_summary.
29950 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
29951 * ipa-pure-const.c (class funct_state_summary_t):
29952 Switch from function_summary to fast_function_summary.
29953 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
29954 (class ipa_ref_opt_summary_t): Switch from function_summary
29955 to fast_function_summary.
29956 * symbol-summary.h (class function_summary_base): New class
29957 that is created from base of former function_summary.
29958 (function_summary_base::unregister_hooks): New.
29959 (class function_summary): Inherit from function_summary_base.
29960 (class call_summary_base): New class
29961 that is created from base of former call_summary.
29962 (class call_summary): Inherit from call_summary_base.
29963 (struct is_same): New.
29964 (class fast_function_summary): New summary class.
29965 (class fast_call_summary): New summary class.
29966 * vec.h (vec_safe_grow_cleared): New function.
29968 2019-02-18 Martin Liska <mliska@suse.cz>
29970 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
29971 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
29972 * doc/tm.texi: Document new target hook.
29973 * doc/tm.texi.in: Likewise.
29974 * target.def: Add new target macro.
29975 * gcc.c (find_fortran_preinclude_file): Do not search multilib
29978 2019-02-17 Alan Modra <amodra@gmail.com>
29981 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
29982 output reg on add insn.
29983 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
29985 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29988 * config/i386/sse.md (ssedoublemode): Remove V4HI.
29989 (PMULHRSW): Likewise.
29990 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
29992 (ssse3_pmulhrswv4hi3): New expander.
29994 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
29996 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
29997 MMX. Add isa attribute.
29999 2019-02-16 Jakub Jelinek <jakub@redhat.com>
30001 PR rtl-optimization/66152
30002 * builtins.h (c_readstr): Declare.
30003 * builtins.c (c_readstr): Remove forward declaration. Add
30004 null_terminated_p argument, if false, read all bytes from the
30005 string instead of stopping after '\0'.
30006 * expr.c (string_cst_read_str): New function.
30007 (store_expr): Use string_cst_read_str instead of
30008 builtin_strncpy_read_str. Try to store by pieces the whole
30009 exp_len first, and only if that fails, split it up into
30010 store by pieces followed by clear_storage. Formatting fix.
30012 * config/i386/i386.md (*movqi_internal): Remove static from
30013 buf variable. Use output_asm_insn (buf, operands); return "";
30014 instead of return buf;.
30015 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
30016 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
30017 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
30019 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30021 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
30022 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
30023 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
30024 (CC1_SPEC): Likewise.
30025 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
30027 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30029 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
30030 the base address on 64-bit strict-alignment platforms.
30032 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
30034 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
30036 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30038 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
30040 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
30042 PR rtl-optimization/88308
30043 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
30044 on copied instruction.
30046 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
30048 * final.c (insn_current_reference_address): Replace test on JUMP_P
30049 with test on jump_to_label_p.
30050 * config/visium/visium-passes.def: New file.
30051 * config/visium/t-visium (PASSES_EXTRA): Define.
30052 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
30053 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
30054 (TRAMPOLINE_ALIGNMENT): Define.
30055 * config/visium/visium.c (visium_option_override): Do not register
30056 the machine-specific reorg pass here.
30057 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
30059 (output_branch): Adjust threshold for long branch instruction.
30060 * config/visium/visium.md (cpu): Move around.
30061 (length): Adjust for the GR6.
30063 2019-02-15 Richard Biener <rguenther@suse.de>
30064 Jakub Jelinek <jakub@redhat.com>
30066 PR tree-optimization/89278
30067 * tree-loop-distribution.c: Include tree-eh.h.
30068 (generate_memset_builtin, generate_memcpy_builtin): Call
30069 rewrite_to_non_trapping_overflow on builtin->size before passing it
30070 to force_gimple_operand_gsi.
30072 2019-02-15 Jakub Jelinek <jakub@redhat.com>
30075 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
30077 * opth-gen.awk: Likewise.
30079 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
30081 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
30082 Enable MMX, SSE and SSE2 by default.
30083 * config/i386/i386.c (ix86_option_override_internal): Do not
30084 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
30086 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30088 PR rtl-optimization/89354
30089 * combine.c (make_extraction): Punt if extraction_mode is narrower
30092 2019-02-14 Maya Rashish <coypu@sdf.org>
30094 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
30095 * config/netbsd-d.c: New file.
30096 * config/t-netbsd: Add netbsd-d.o
30098 2018-02-14 Steve Ellcey <sellcey@marvell.com>
30100 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
30101 affects_type_identity to true for aarch64_vector_pcs.
30102 (aarch64_comp_type_attributes): New function.
30103 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
30105 2019-02-14 Tamar Christina <tamar.christina@arm.com>
30108 * config/arm/iterators.md (ANY64): Add V4HF.
30110 2019-02-14 Martin Liska <mliska@suse.cz>
30112 PR rtl-optimization/89242
30113 * dce.c (delete_unmarked_insns): Call free_dominance_info we
30114 process a transformation.
30116 2019-02-14 Jakub Jelinek <jakub@redhat.com>
30118 PR tree-optimization/89314
30119 * fold-const.c (fold_binary_loc): Cast strlen argument to
30120 const char * before dereferencing it. Formatting fixes.
30122 PR middle-end/89284
30123 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
30125 2019-02-13 Ian Lance Taylor <iant@golang.org>
30127 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
30128 and set current index for other optimizations.
30130 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
30132 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
30133 nonimmediate_operand as operand 2 predicate.
30134 (vec_set<VF2_512_256:mode>_0): Ditto.
30135 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
30136 (*vec_concatv2si): Remove alternative 2.
30137 (*vec_concatv4si_0): Use vm constraint for alternative 0.
30138 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
30139 (vec_concatv2di): Split alternatives 4,5,6 to ...
30140 (*vec_concatv2di_0) ... new pattern.
30142 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
30145 * config/arm/arm.c (ldm_stm_operation_p) Set
30146 addr_reg_in_reglist correctly for first register.
30147 (load_multiple_sequence): Remove dead base check.
30148 (gen_ldm_seq): Correctly set write_back for Thumb-1.
30150 2019-02-13 Tamar Christina <tamar.christina@arm.com>
30153 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
30154 Expose as @aarch64_pred_mov.
30155 * config/aarch64/aarch64.c (aarch64_classify_address):
30156 Use expand_insn which legitimizes operands.
30158 2019-02-13 Martin Liska <mliska@suse.cz>
30160 * builtins.h (expand_builtin_with_bounds): Remove declaration.
30161 * calls.c (struct arg_data): Remove special_slot, pointer_arg
30162 and pointer_offset fields.
30163 (initialize_argument_information): Remove usage of dead
30165 * cgraph.h (struct cgraph_thunk_info): Remove
30166 add_pointer_bounds_args.
30167 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
30169 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
30171 * config/i386/i386.c (ix86_function_arg_advance): Remove
30173 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
30174 (def_builtin): Remove usage of dead fields.
30175 (ix86_add_new_builtins): Likewise.
30176 * ipa-fnsummary.c (compute_fn_summary): Likewise.
30177 * ipa-icf.c (sem_function::equals_wpa): Likewise.
30178 (sem_function::init): Likewise.
30179 (sem_variable::merge): Likewise.
30180 * ipa-visibility.c (function_and_variable_visibility): Likewise.
30181 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
30182 * lto-cgraph.c (lto_output_node): Likewise.
30183 (lto_output_varpool_node): Likewise.
30184 (input_node): Likewise.
30185 (input_varpool_node): Likewise.
30186 * lto-streamer-out.c (lto_output): Likewise.
30187 * tree-inline.c (expand_call_inline): Remove usage of
30189 * tree-inline.h (struct copy_body_data): Likewise.
30190 * varpool.c (varpool_node::dump): Likewise.
30192 2019-02-13 Jakub Jelinek <jakub@redhat.com>
30194 PR middle-end/89303
30195 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
30196 into pt->vars_contains_escaped_heap instead of setting
30197 pt->vars_contains_escaped_heap to it.
30199 PR middle-end/89281
30200 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
30201 INTVAL (size), compare it to GET_MODE_MASK instead of
30202 1 << GET_MODE_BITSIZE.
30205 * config/i386/predicates.md (x86_64_immediate_operand): Allow
30206 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
30209 2019-02-13 Martin Liska <mliska@suse.cz>
30212 * cfgrtl.c (remove_barriers_from_footer): New function.
30213 (try_redirect_by_replacing_jump): Use it.
30214 (cfg_layout_redirect_edge_and_branch): Likewise.
30216 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
30218 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
30219 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
30220 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
30221 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
30222 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
30223 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
30225 * config/rs6000/rs6000.c (builtin_function_type)
30226 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
30227 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
30228 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
30229 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
30230 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
30232 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
30234 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
30235 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
30237 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
30240 * config/i386/i386.md (*movoi_internal_avx): Revert revision
30241 268678 and revision 268657.
30242 (*movti_internal): Likewise.
30244 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
30247 * config/s390/s390.c (s390_decompose_address): Update comment.
30248 (s390_check_qrst_address): Reject invalid address forms after
30251 2019-02-12 Martin Liska <mliska@suse.cz>
30254 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
30255 we need default values of funct_state for a function that
30258 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
30260 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
30261 the object to pick the size of stores on strict-alignment platforms.
30263 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
30264 (*movdi_insn_sp32): Likewise.
30265 (*movdi_insn_sp64): Likewise.
30267 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
30270 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
30271 types that needs constructiong.
30272 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
30274 2019-02-12 Richard Biener <rguenther@suse.de>
30276 PR tree-optimization/89253
30277 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
30278 duplicate the loop.
30280 2019-02-11 David Malcolm <dmalcolm@redhat.com>
30283 * input.c (selftest::test_line_offset_overflow): New selftest.
30284 (selftest::input_c_tests): Call it.
30286 2019-02-11 Martin Sebor <msebor@redhat.com>
30288 PR tree-optimization/88771
30289 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
30290 when -Wstringop-overflow is set.
30291 (builtin_memref::builtin_memref): Adjust excessive upper bound
30292 only when lower bound is not excessive.
30293 (maybe_diag_overlap): Detect and diagnose excessive bounds via
30294 -Wstringop-ovefflow.
30295 (maybe_diag_offset_bounds): Rename...
30296 (maybe_diag_access_bounds): ...to this.
30297 (check_bounds_or_overlap): Adjust for name change above.
30299 2019-02-11 Martin Sebor <msebor@redhat.com>
30302 * builtins.c (max_object_size): Move from here...
30303 * builtins.h (max_object_size): ...and here...
30304 * tree.c (max_object_size): ...to here...
30305 * tree.h (max_object_size): ...and here.
30307 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
30309 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
30310 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
30311 for correct semantics.
30313 2019-02-11 Alan Modra <amodra@gmail.com>
30315 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
30316 -mlongcall and -mpltseq.
30317 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
30318 (RS/6000 and PowerPC Options <-mpltseq>): Document.
30319 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
30320 * config/rs6000/sysv4.opt (mpltseq): New option.
30321 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
30322 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
30323 support is lacking. Don't allow -mpltseq with -mbss-plt.
30324 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
30325 -mpltseq given for ELFv1.
30326 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
30327 Only use UNSPEC_PLTSEQ for inline PLT calls.
30328 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
30329 use UNSPEC_PLTSEQ for inline PLT calls.
30330 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
30331 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
30332 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
30333 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30334 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30335 (pltseq_mtctr_<mode>): Likewise.
30337 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30339 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
30341 * configure: Regenerate.
30343 2019-02-11 Jakub Jelinek <jakub@redhat.com>
30346 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
30349 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30351 * function.c (assign_parm_setup_block): Use the stored
30352 size, not the passed size, when allocating stack-space,
30353 also for a parameter with alignment larger than
30354 MAX_SUPPORTED_STACK_ALIGNMENT.
30356 2019-02-11 Martin Liska <mliska@suse.cz>
30359 * ipa-cp.c (build_toporder_info): Remove usage of a param.
30360 * ipa-inline.c (inline_small_functions): Likewise.
30361 * ipa-pure-const.c (propagate_pure_const): Likewise.
30362 (propagate_nothrow): Likewise.
30363 * ipa-reference.c (propagate): Likewise.
30364 * ipa-utils.c (struct searchc_env): Remove unused field.
30365 (searchc): Always search across AVAIL_INTERPOSABLE.
30366 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
30367 the only called IPA pure const can properly not propagate
30368 across interposable boundary.
30369 * ipa-utils.h (ipa_reduced_postorder): Remove param.
30371 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
30373 * config/nds32/nds32.md (call_internal, call_value_internal,
30374 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
30376 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
30378 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
30381 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
30383 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
30386 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30388 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
30390 2019-02-10 Jakub Jelinek <jakub@redhat.com>
30392 PR tree-optimization/89268
30393 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
30394 if preds is non-NULL.
30396 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30399 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
30402 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30404 * config/nds32/nds32.md (trap): New pattern.
30406 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
30408 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
30411 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
30413 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
30416 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30418 * ipa-visibility.c (localize_node): Also do not localize
30419 LDPR_PREVAILING_DEF_IRONLY_EXP.
30421 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30424 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
30425 instead of type_with_linkage.
30427 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
30430 * params.def (uninlined-function-insns, uninlined-function-time,
30431 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
30432 bound so we don't get overflows.
30434 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
30436 * config/rs6000/rs6000-string.c (expand_compare_loop,
30437 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
30440 2019-02-09 Jakub Jelinek <jakub@redhat.com>
30442 PR middle-end/89246
30443 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30444 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
30445 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
30447 2019-02-09 Alan Modra <amodra@gmail.com>
30450 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
30451 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
30454 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
30456 PR middle-end/88560
30457 * lra-constraints.c (process_alt_operands): Don't increase reject
30458 for memory when offset memory is required.
30460 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
30462 * config/s390/vector.md: Implement vector copysign.
30464 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30466 * expr.c (expand_constructor): Correct indentations.
30468 2019-02-08 Richard Biener <rguenther@suse.de>
30470 PR tree-optimization/89247
30471 * tree-if-conv.c: Include tree-cfgcleanup.h.
30472 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
30473 (tree_if_conversion): Pass through predicate vector.
30474 (pass_if_conversion::execute): Do CFG cleanup and SSA update
30475 inline, see if any if-converted loops we refrece in
30476 LOOP_VECTORIZED calls vanished and fixup.
30477 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
30479 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
30481 * config/s390/constraints.md (jdd): New constraint.
30483 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
30486 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
30487 upper 16 vector registers without TARGET_AVX512VL.
30488 (*movti_internal): Likewise.
30490 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30492 PR rtl-optimization/89234
30493 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
30494 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
30495 (copy_reg_eh_region_note_backward): Likewise.
30497 2019-02-08 Richard Biener <rguenther@suse.de>
30499 PR middle-end/89223
30500 * tree-data-ref.c (initialize_matrix_A): Fail if constant
30501 doesn't fit in HWI.
30502 (analyze_subscript_affine_affine): Handle failure from
30503 initialize_matrix_A.
30505 2019-02-08 Jakub Jelinek <jakub@redhat.com>
30507 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
30510 2019-02-07 David Malcolm <dmalcolm@redhat.com>
30512 PR tree-optimization/86637
30513 PR tree-optimization/89235
30514 * tree-vect-loop.c (optimize_mask_stores): Add an
30515 auto_purge_vect_location sentinel to ensure that vect_location is
30517 * tree-vectorizer.c
30518 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
30519 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
30520 to ensure that vect_location is purged on exit.
30521 (pass_slp_vectorize::execute): Likewise, replacing the manual
30523 * tree-vectorizer.h (class auto_purge_vect_location): New class.
30525 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30527 * config/aarch64/iterators.md (max_opp): New code_attr.
30528 (USMAX): New code iterator.
30529 * config/aarch64/predicates.md (aarch64_smin): New predicate.
30530 (aarch64_smax): Likewise.
30531 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
30532 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
30535 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
30538 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
30539 for TARGET_AVX512VL.
30540 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
30542 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
30544 * config/s390/s390-builtin-types.def: Add new types.
30545 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
30546 (s390_vec_xlw4): Make the memory operand into a const pointer.
30547 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
30549 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
30550 a new vector type with the alignment of the scalar memory operand.
30552 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
30553 Jakub Jelinek <jakub@redhat.com>
30556 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
30557 arm_count_ldrdstrd_insns): New declarations.
30558 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
30560 (valid_operands_ldrd_strd): New function.
30561 (arm_count_ldrdstrd_insns): New function.
30562 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
30563 sets instead of single DImode set and define new insns to match this.
30565 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30567 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
30568 Make it a C initializer.
30570 2019-02-07 Tamar Christina <tamar.christina@arm.com>
30573 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
30575 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30577 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
30578 Use neon_dot<q> for type.
30579 (neon_<sup>dot_lane<vsi2qi>): Likewise.
30581 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30583 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
30584 Use neon_dot<q> for type.
30585 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
30586 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
30588 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
30590 PR rtl-optimization/89225
30591 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
30594 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
30596 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
30597 after restoring registers saved to allocate the frame on Windows.
30599 2019-02-06 Richard Biener <rguenther@suse.de>
30601 PR tree-optimization/89182
30602 * graphite.h (cached_scalar_evolution_in_region): Declare.
30603 * graphite.c (struct seir_cache_key): New.
30604 (struct sese_scev_hash): Likewise.
30605 (seir_cache): New global.
30606 (cached_scalar_evolution_in_region): New function.
30607 (graphite_transform_loops): Allocate and release seir_cache.
30608 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
30609 cached_scalar_evolution_in_region.
30610 * graphite-scop-detection.c (scop_detection::can_represent_loop):
30612 (scop_detection::graphite_can_represent_expr: Use
30613 cached_scalar_evolution_in_region.
30614 (scop_detection::stmt_simple_for_scop_p): Likewise.
30615 (find_params_in_bb): Likewise.
30616 (gather_bbs::before_dom_children): Likewise.
30617 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
30618 (add_loop_constraints): Likewise.
30620 2019-02-06 Jakub Jelinek <jakub@redhat.com>
30622 PR middle-end/89210
30623 * fold-const-call.c (fold_const_vec_convert): Pass true as last
30624 operand to new_unary_operation only if both element types are integral
30625 and it isn't a widening conversion. Return NULL_TREE if
30626 new_unary_operation failed.
30628 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
30631 * config/s390/s390.md: Remove load and test FP splitter.
30633 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30636 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
30637 expand_compare_loop, expand_block_compare_gpr,
30638 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
30639 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
30640 #include "profile-count.h" and "predict.h" for types and functions
30641 needed to work with REG_BR_PROB notes.
30643 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
30646 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
30647 for the long branch case.
30649 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30652 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
30653 can throw, non-call exceptions are enabled and we can't delete
30654 dead exceptions or alter cfg. Set must_clean if
30655 delete_insn_and_edges returns true, don't set it blindly for calls.
30656 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
30658 PR rtl-optimization/89195
30659 * combine.c (make_extraction): For MEMs, don't extract bytes outside
30660 of the original MEM.
30662 2019-02-05 Martin Liska <mliska@suse.cz>
30664 PR gcov-profile/89000
30665 * gcov.c (function_summary): Remove argument.
30666 (file_summary): New function.
30667 (print_usage): Replace tabs with spaces.
30668 (generate_results): Use new function file_summary.
30670 2019-02-05 Jakub Jelinek <jakub@redhat.com>
30673 * optabs.c (prepare_cmp_insn): Pass x and y to
30674 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
30676 2019-02-05 Richard Biener <rguenther@suse.de>
30678 PR middle-end/89150
30679 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
30680 (struct bitmap_element): Drop chain_prev so we properly recurse on
30681 the prev member, supporting tree views.
30682 (struct bitmap_head): GTY skip the obstack member.
30684 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
30687 * doc/extend.texi (Vector Extensions): Add an example of using vector
30688 types together with x86 intrinsics.
30690 2019-02-04 Alan Modra <amodra@gmail.com>
30692 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
30693 str[] size to 160, and comment.
30695 2019-02-04 Alan Modra <amodra@gmail.com>
30697 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
30698 (rs6000_pltseq_template): Guard output of TLS markers with
30699 TARGET_TLS_MARKERS.
30700 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
30701 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
30702 to use inline PLT sequences.
30703 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
30704 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
30705 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
30707 2019-02-04 Martin Liska <mliska@suse.cz>
30710 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
30711 out when ipa_fn_summaries does not contain entry for callee.
30713 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
30715 * config/sparc/sparc.h: Remove superfluous blank lines.
30716 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
30717 (got_register_rtx): ...this.
30718 (sparc_got): Adjust to above renaming.
30719 (sparc_tls_got): Likewise.
30720 (sparc_delegitimize_address): Likewise.
30721 (sparc_output_mi_thunk): Likewise.
30722 (sparc_init_pic_reg): Likewise.
30723 (save_local_or_in_reg_p): Fix test on the GOT register.
30724 (USE_HIDDEN_LINKONCE): Move around.
30725 (get_pc_thunk_name): Likewise.
30726 (gen_load_pcrel_sym): Likewise.
30727 (load_got_register): Likewise.
30729 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
30731 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
30732 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
30734 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30736 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
30737 into consideration.
30739 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
30741 * config.gcc (with_nds32_lib, glibc):
30742 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
30743 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
30744 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
30746 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
30749 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
30750 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
30751 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
30752 (*rcpsf2_sse): Ditto.
30753 (*rsqrtsf2_sse): Ditto.
30754 (sse4_1_round<mode<2): Ditto.
30756 2019-02-03 Richard Biener <rguenther@suse.de>
30759 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
30762 2019-02-02 Jakub Jelinek <jakub@redhat.com>
30764 PR middle-end/87887
30765 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
30766 Punt with warning on aggregate return or argument types. Ignore
30767 type/mode checking for uniform arguments.
30769 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
30771 * combine.c (try_combine): Do not print "Can't combine" messages unless
30772 printing failed combination attempts.
30774 2019-02-01 Martin Jambor <mjambor@suse.cz>
30777 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
30778 segment and global segment variables before making them static.
30780 2019-02-01 Martin Jambor <mjambor@suse.cz>
30782 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
30783 missed optimization dump with dump_enabled_p.
30785 2019-02-01 Richard Biener <rguenther@suse.de>
30787 PR middle-end/88597
30788 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
30789 the instantiate cache.
30790 (instantiate_scev_binary): Elide second operand procesing
30791 if equal to the first.
30792 * tree-chrec.c (chrec_contains_symbols): Add visited set.
30793 (chrec_contains_undetermined): Likewise.
30794 (tree_contains_chrecs): Likewise.
30796 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
30798 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
30800 2019-02-01 Jakub Jelinek <jakub@redhat.com>
30802 PR tree-optimization/89143
30803 * wide-int-range.h (wide_int_range_absu): Declare.
30804 * wide-int-range.cc (wide_int_range_absu): New function.
30805 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
30807 PR tree-optimization/88107
30808 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
30809 instead of assertion that eh_region_outermost is non-NULL, if it
30810 is NULL, set *ALL to true and return NULL.
30811 (move_sese_region_to_fn): Adjust caller, if all is set, call
30812 duplicate_eh_regions with NULL region.
30814 2019-02-01 Richard Biener <rguenth@suse.de>
30816 PR rtl-optimization/88593
30817 * mode-switching.c (optimize_mode_switching): Free dominators before
30818 calling cleanup_cfg.
30820 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
30822 PR tree-optimization/88932
30823 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
30825 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30827 PR middle-end/89137
30828 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
30829 bogus clang warning.
30831 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
30834 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
30835 alternative to avoid partial SSE register stall for TARGET_AVX.
30836 (truncdfsf2): Ditto.
30837 (sse4_1_round<mode>2): Ditto.
30839 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
30841 PR tree-optimization/89008
30842 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
30843 process anything of the form X * 0.
30845 2019-01-31 Richard Biener <rguenther@suse.de>
30847 PR tree-optimization/89135
30848 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
30849 with abnormal preds.
30851 2019-01-31 Jakub Jelinek <jakub@redhat.com>
30854 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
30855 always_inline callees into no_sanitize_address callers.
30857 2019-01-31 Richard Biener <rguenther@suse.de>
30859 PR rtl-optimization/89115
30860 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
30862 2019-01-30 Martin Sebor <msebor@redhat.com>
30865 * doc/extend.texi (cast to a union): Correct and expand.
30867 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
30869 PR rtl-optimization/87246
30870 * lra-constraints.c (simplify_operand_subreg): Reload memory
30871 in subreg if the address became invalid.
30873 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
30876 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
30877 Disable for little-endian.
30879 2019-01-30 Richard Biener <rguenther@suse.de>
30881 PR rtl-optimization/89115
30882 * opts.c (default_options_optimization): Reduce
30883 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
30884 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
30887 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
30889 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
30890 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
30891 type of vector element when vec_extract is implemented by direct
30894 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
30896 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
30898 2019-01-30 Richard Biener <rguenther@suse.de>
30900 PR tree-optimization/89111
30901 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
30902 canonicalization to appropriately sized access types.
30904 2019-01-30 Jakub Jelinek <jakub@redhat.com>
30907 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
30908 for arguments to functions that are TU-local and shouldn't be
30909 referenced by assembly.
30911 2019-01-30 Ulrich Drepper <drepper@redhat.com>
30913 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
30916 2019-01-29 Martin Sebor <msebor@redhat.com>
30919 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
30921 2019-01-29 Jakub Jelinek <jakub@redhat.com>
30925 * omp-simd-clone.c (simd_clone_clauses_extract)
30926 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
30927 OMP_CLAUSE_ALIGNED_ALIGNMENT.
30929 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
30931 * config.gcc: Force .init_array for ARC.
30933 2019-01-29 Richard Biener <rguenther@suse.de>
30936 * dwarf2out.c (collect_skeleton_dies): New helper.
30937 (copy_decls_for_unworthy_types): Call it.
30938 (build_abbrev_table): Assert we do not try to replace
30939 DW_AT_signature refs with local refs.
30941 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30943 PR middle-end/89002
30944 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
30945 for lastprivate/linear IV, push gimplify context around gimplify_assign
30946 and, if it needed any temporaries, pop it into a gimple bind around the
30949 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
30951 * common.opt (-Wattribute-alias): Remove "no-" from name.
30952 Make -Wattribute-alias command line option and
30953 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
30955 2019-01-28 Jakub Jelinek <jakub@redhat.com>
30958 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
30959 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
30961 (bmi2): Add missing @opindex.
30962 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
30963 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
30964 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
30965 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
30966 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
30967 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
30968 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
30969 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
30970 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
30971 xsavec, xsaveopt and xsaves options.
30973 2019-01-28 Richard Biener <rguenther@suse.de>
30976 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
30979 2019-01-28 Richard Biener <rguenther@suse.de>
30981 PR tree-optimization/88739
30982 * tree-cfg.c (verify_types_in_gimple_reference): Verify
30983 BIT_FIELD_REFs only are applied to mode-precision operands
30984 when they are integral.
30985 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
30986 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
30987 BIT_FIELD_REFs of non-mode-precision integral operands.
30989 2019-01-27 Jakub Jelinek <jakub@redhat.com>
30992 * config/i386/sse.md
30993 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
30994 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
30995 first constants in pairs are multiples of 2. Formatting fixes.
30996 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
30997 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
30998 first constants in each quadruple are multiples of 4. Formatting fixes.
31000 2019-01-26 Martin Jambor <mjambor@suse.cz>
31003 * tree-inline.c: Include tree-cfgcleanup.h.
31004 (delete_unreachable_blocks_update_callgraph): Move...
31005 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
31006 ...here, make externally visible, make second argument bool, adjust
31008 * tree-cfgcleanup.c: Include cgraph.h.
31009 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
31011 * ipa-prop.c: Include tree-cfgcleanup.h.
31012 (ipcp_transform_function): Call
31013 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
31015 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
31017 PR rtl-optimization/88846
31018 * ira.c (process_set_for_memref_referenced_p): New.
31019 (memref_referenced_p): Add new param. Use
31020 process_set_for_memref_referenced_p. Add new switch cases.
31021 (memref_used_between_p): Pass new arg to memref_referenced_p.
31023 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
31026 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
31027 argument ABI_BREAK. Set to true if the calculated alignment has
31028 changed in gcc-9. Check bit-fields for their base type alignment.
31029 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
31030 (aarch64_function_arg_boundary): Likewise.
31031 (aarch64_gimplify_va_arg_expr): Likewise.
31033 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31035 PR middle-end/89037
31036 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
31037 instead of accessing TREE_INT_CST_ELT directly.
31039 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
31041 * doc/sourcebuild.texi (Environment attributes): Add fenv and
31042 fenv_exceptions description.
31044 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
31046 PR rtl-optimization/87763
31047 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
31048 Allow SUBREG when matching CC_NZmode compare.
31050 2019-01-25 Richard Biener <rguenther@suse.de>
31052 PR tree-optimization/89049
31053 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
31054 Look at the pattern stmt to determine if the stmt is vectorized.
31056 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
31058 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
31059 (pred_mov<mode>): Handle all-register forms using both a new
31060 alternative and a split.
31062 2019-01-25 Richard Biener <rguenther@suse.de>
31064 PR tree-optimization/86865
31065 * graphite-scop-detection.c (scop_detection::can_represent_loop):
31066 Reject non-do-while loops.
31068 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
31070 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
31071 * config/rs6000/constraints.md (Q constraint): Use REG_P.
31072 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
31073 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31074 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
31075 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31076 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
31077 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
31078 vlogical_operand, gpc_reg_operand, int_reg_operand,
31079 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
31080 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
31081 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
31082 (save_world_operation, restore_world_operation, lmw_operation,
31083 stmw_operation): Use MEM_P and REG_P.
31084 (tie_operand): Use MEM_P.
31085 (vrsave_operation, crsave_operation): Use REG_P.
31086 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
31087 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
31088 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
31089 (call_operand): Use HARD_REGISTER_P.
31090 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
31092 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
31093 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
31094 quad_aligned_load_p, replace_swapped_aligned_store,
31095 recombine_lvx_pattern, replace_swapped_aligned_load,
31096 recombine_stvx_pattern): Use MEM_P.
31097 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
31098 Use MEM_P and SYMBOL_REF_P.
31099 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
31100 (insn_is_swappable_p): Use REG_P and MEM_P.
31101 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
31102 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
31104 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
31105 Use CONST_DOUBLE_P.
31106 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
31108 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
31109 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
31110 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
31111 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
31113 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31114 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
31115 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
31116 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
31117 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
31118 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
31119 rs6000_split_logical_di): Use CONST_INT_P.
31120 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
31121 REG_P and SYMBOL_REF_P.
31122 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
31123 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
31124 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
31125 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
31126 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
31127 (small_data_operand, print_operand_address): Use CONST_INT_P and
31129 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
31130 (rs6000_init_hard_regno_mode_ok, direct_move_p):
31131 Use HARD_REGISTER_NUM_P.
31132 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
31133 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
31134 SUBREG_P and SYMBOL_REF_P.
31135 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
31136 and HARD_REGISTER_NUM_P.
31137 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
31139 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
31140 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
31142 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
31143 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
31144 find_addr_reg): Use REG_P.
31145 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
31146 (rs6000_emit_le_vsx_move): Use SUBREG_P.
31147 (offsettable_ok_by_alignment, constant_pool_expr_p,
31148 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
31149 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
31150 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
31151 rs6000_assemble_integer, create_TOC_reference,
31152 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
31153 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
31154 (rs6000_split_vec_extract_var): Use reg_or_subregno.
31155 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
31156 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
31157 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31158 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
31159 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
31160 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
31161 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
31162 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
31163 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
31164 and cbranch<mode>4): Use CONST_INT_P.
31165 (multiple define_splits): Use REG_P and SUBREG_P.
31166 (define_expands call, call_value): Use MEM_P.
31167 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
31168 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
31169 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
31170 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
31171 and HARD_REGISTER_NUM_P.
31172 (multiple define_splits): Use HARD_REGISTER_NUM_P.
31174 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
31176 PR rtl-optimization/88948
31177 * rtl.h (prepare_copy_insn): New prototype.
31178 * gcse.c (prepare_copy_insn): New function, split out from
31179 process_insert_insn.
31180 (process_insert_insn): Use prepare_copy_insn.
31181 * store-motion.c (replace_store_insn): Use prepare_copy_insn
31182 instead of gen_move_insn.
31184 2019-01-24 Jakub Jelinek <jakub@redhat.com>
31187 * config/i386/i386.c (ix86_pic_register_p): Return true for
31188 UNSPEC_SET_GOT too.
31190 PR tree-optimization/88964
31191 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
31192 punt if HONOR_SNANS (chrec).
31194 PR middle-end/89015
31195 * tree-nested.c (convert_nonlocal_reference_stmt,
31196 convert_local_reference_stmt, convert_tramp_reference_stmt,
31197 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
31198 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
31199 or GIMPLE_OMP_TASK.
31201 PR tree-optimization/89027
31202 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
31203 for "omp simd array" variables.
31205 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
31208 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
31209 force the alignment of m_val.
31211 2019-01-24 Richard Biener <rguenther@suse.de>
31214 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
31215 When in "legacy" debug mode make sure to reset self-origins.
31217 2019-01-24 Martin Liska <mliska@suse.cz>
31219 PR gcov-profile/88994
31220 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
31221 result will be always smaller or equal to the original.
31222 * gcov.c (mangle_name): Fix else branch where we should
31223 also copy to PTR and shift the pointer.
31225 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
31227 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
31228 * vr-values.c (find_case_label_ranges): Fix a comment typo.
31230 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
31232 * common/config/i386/i386-common.c
31233 (OPTION_MASK_ISA_ENQCMD_SET,
31234 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
31235 (ix86_handle_option): Handle -menqcmd.
31236 * config.gcc (enqcmdintrin.h): New header file.
31237 * config/i386/cpuid.h (bit_ENQCMD): New bit.
31238 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
31240 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
31242 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
31243 __builtin_ia32_enqcmds): New builtins.
31244 * config/i386/i386-c.c (__ENQCMD__): New macro.
31245 * config/i386/i386-option.c (ix86_target_string): Add
31247 (ix86_valid_target_attribute_inner_p): Likewise.
31248 * config/i386/i386-expand.c
31249 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
31250 IX86_BUILTIN_ENQCMDS.
31251 * config/i386/i386.h (TARGET_ENQCMD): New.
31252 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
31253 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
31254 (movdir64b_<mode>): Parameterize to enable share expansion code
31255 with ENQCMD in function ix86_expand_builtin.
31256 * config/i386/i386.opt: Add -menqcmd.
31257 * config/i386/immintrin.h: Include enqcmdintrin.h.
31258 * config/i386/enqcmdintrin.h: New intrinsic file.
31259 * doc/invoke.texi: Add -menqcmd.
31261 2019-01-23 Bin Cheng <bin.cheng@arm.com>
31262 Steve Ellcey <sellcey@marvell.com>
31265 * recog.c (address_operand): Return false on wrong mode for address.
31266 (constrain_operands): Check for mode with 'p' constraint.
31268 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
31271 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
31272 Disparage MMX alternative.
31273 (sse2_cvtpd2pi): Ditto.
31274 (sse2_cvttpd2pi): Ditto.
31276 2019-01-23 David Malcolm <dmalcolm@redhat.com>
31279 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
31280 use-after-free of the result of
31281 aarch64_get_extension_string_for_isa_flags.
31283 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31286 * doc/extend.texi: Document break and continue behavior in
31287 statement expressions.
31289 2019-01-23 Richard Biener <rguenther@suse.de>
31291 PR tree-optimization/89008
31292 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
31293 not leave another stray operand.
31295 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31297 * BASE-VER: Bump to 9.0.1.
31299 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
31301 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
31302 thunk that returns by reference, use the type of the return object
31303 of the thunk instead of that of the alias to build the dereference.
31305 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
31307 * config/arc/atomic.md: Add operand to DMB instruction.
31309 2019-01-23 Jakub Jelinek <jakub@redhat.com>
31311 PR tree-optimization/88964
31312 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
31313 build_zero_cst instead of build_int_cst. Return false for loop
31314 invariants which honor signed zeros.
31316 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
31318 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
31320 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31323 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
31324 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
31325 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
31327 PR middle-end/88968
31328 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
31329 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
31332 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
31333 Disable for little endian.
31335 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31338 * config/arm/arm.c (arm_needs_double_word_align): Check
31339 DECL_BIT_FIELD_TYPE.
31341 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
31342 H.J. Lu <hongjiu.lu@intel.com>
31345 * config/i386/i386-builtin.def: Add mask2 to all builtin
31346 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
31348 * config/i386/i386.c (BDESC): Add mask2 to the definition.
31349 (BDESC_FIRST): Likewise.
31350 (define_builtin): Add an argument for mask2. Updated to handle
31351 both ix86_isa_flags and ix86_isa_flags2.
31352 (define_builtin_const): Likewise.
31353 (define_builtin_pure): Likewise.
31354 (define_builtin2): Deleted.
31355 (define_builtin_const2): Likewise.
31356 (builtin_description): Add a member, mask2.
31357 (bdesc_*): Add mask2 to builtin initializations.
31358 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
31359 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
31361 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
31363 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
31366 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
31369 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
31372 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
31373 alignment is dominated by a bitfield with 64-bit aligned base type.
31374 (arm_function_arg): Emit a warning if the alignment has changed since
31375 earlier GCC releases.
31376 (arm_function_arg_boundary): Likewise.
31377 (arm_setup_incoming_varargs): Likewise.
31379 2019-01-22 Richard Biener <rguenther@suse.de>
31381 PR tree-optimization/88862
31382 * graphite-scop-detection.c
31383 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
31385 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
31387 * doc/extend.tex (AMD GCN Function Attributes): New section.
31388 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
31389 * doc/invoke.texi (AMD GCN Options): New section.
31390 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
31392 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
31394 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
31395 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
31397 2019-01-22 Jakub Jelinek <jakub@redhat.com>
31399 PR tree-optimization/88044
31400 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
31401 is false in the first iteration, but !every_iteration, return false
31402 instead of true with niter->niter zero.
31404 PR rtl-optimization/88904
31405 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
31406 any nonequal registers before processing BB_END (b).
31409 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
31411 (expand_binop_directly, expand_doubleword_clz,
31412 expand_doubleword_popcount, expand_ctz, expand_ffs,
31413 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
31415 PR rtl-optimization/49429
31417 PR rtl-optimization/86334
31419 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
31420 addressable from here...
31421 (emit_block_op_via_libcall): ... to here.
31423 2019-01-22 Richard Biener <rguenther@suse.de>
31425 * tree-vect-loop.c (vect_analyze_loop_operations): Use
31426 auto_vec for cost vector to fix memleak.
31427 (vectorize_fold_left_reduction): Properly gather SLP defs.
31428 (vectorizable_comparison): Do not swap operands to properly
31431 2019-01-22 Alan Modra <amodra@gmail.com>
31434 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
31435 stays a reg. Allow a const_int.
31436 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
31437 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
31438 (IS_NOMARK_TLSGETADDR): Define.
31439 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
31440 (rs6000_output_tlsargs): New function.
31441 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
31442 __tls_get_addr call takes an arg.
31443 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
31444 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
31446 (call_value_nonlocal_sysv): ..or here, delete split.
31447 (tls_gdld_nomark): Delete.
31448 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
31449 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
31450 (call_value_nonlocal_sysv): Likewise.
31451 (call_value_nonlocal_sysv_secure): Likewise.
31452 (call_value_nonlocal_aix): Likewise.
31453 (call_value_indirect_aix): Likewise.
31454 (call_value_indirect_elfv2): Likewise.
31455 (call_value_local32, call_value_local64): Disable for no-mark tls.
31456 (call_value_local_aix): Likewise.
31458 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
31461 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
31462 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
31464 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
31466 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
31467 string contents as hash_map keys.
31469 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31472 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
31473 for rvalue context. Handle rvalues correctly. Use min_align_of_type
31474 instead of TYPE_ALIGN.
31475 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
31476 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
31477 pointer from TYPE_STUB_DECL.
31479 2019-01-21 Richard Biener <rguenther@suse.de>
31481 PR tree-optimization/88934
31482 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
31483 at the possibly non-constant operand.
31484 (vect_get_constant_vectors): Adjust.
31486 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
31489 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
31490 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
31491 instead of _X86INTRIN_H_INCLUDED.
31492 * onfig/i386/clwbintrin.h: Likewise.
31493 * config/i386/pkuintrin.h: Likewise.
31494 * config/i386/prfchwintrin.h: Likewise.
31495 * config/i386/rdseedintrin.h: Likewise.
31496 * config/i386/wbnoinvdintrin.h: Likewise.
31497 * config/i386/xsavecintrin.h: Likewise.
31498 * config/i386/xsavesintrin.h: Likewise.
31499 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
31500 * config/i386/xsaveintrin.h: Likewise.
31501 * config/i386/xsaveoptintrin.h: Likewise.
31502 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
31503 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
31504 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
31505 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
31506 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
31507 * config/i386/immintrin.h: Here.
31509 2019-01-20 Martin Jambor <mjambor@suse.cz>
31512 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
31513 with aa_walk_budget.
31514 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
31515 aa_walk_budget_p parameter.
31516 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
31517 walk. Updated all callers.
31518 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
31519 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
31521 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
31522 parameter info. Extract info from fbi. Pass fbi to recursive calls
31523 and to unmodified_parm.
31524 (phi_result_unknown_predicate): New parameter fbi, removed parameter
31525 info, updated call to will_be_nonconstant_expr_predicate.
31526 (param_change_prob): New parameter fbi, limit AA walking.
31527 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
31528 calls to various above functions.
31529 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
31530 parameter. Use it to limit AA walking.
31531 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
31532 fbi, limit AA walk.
31533 (detect_type_change): New parameter fbi, pass it on to
31534 detect_type_change_from_memory_writes.
31535 (detect_type_change_ssa): Likewise.
31536 (aa_overwalked): Removed.
31537 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
31538 accordingly, adjust to the neew AA limiting scheme.
31539 (parm_ref_data_preserved_p): Likewise.
31540 (ipa_compute_jump_functions_for_edge): Adjust call to
31542 (ipa_analyze_call_uses): Likewise.
31543 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
31544 (ipa_analyze_node): Initialize aa_walk_budget.
31545 (ipcp_transform_function): Likewise.
31546 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
31547 to get_dynamic_type.
31549 2019-01-19 Jakub Jelinek <jakub@redhat.com>
31551 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
31552 outside of #if CHECKING_P code.
31554 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
31556 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
31557 New function, split out from...
31558 (loop_versioning::analyze_stride): ...here.
31559 (loop_versioning::find_per_loop_multiplication): Use gassign.
31560 (loop_versioning::analyze_term_using_scevs): Return a success code.
31561 (loop_versioning::analyze_arbitrary_term): New function.
31562 (loop_versioning::analyze_address_fragment): Use
31563 analyze_arbitrary_term if all else fails.
31565 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
31568 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
31571 2019-01-18 Richard Biener <rguenther@suse.de>
31573 PR tree-optimization/88903
31574 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
31575 scalar stmts a SLP shift amount is composed of when detecting
31578 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
31581 * config/arm/arm-cpus.in (mp): New feature.
31582 (sec): New feature.
31583 (fgroup ARMv7ve): Add mp and sec features.
31584 (arch armv7-a): Add options to allow mp and sec extensions.
31585 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
31586 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
31587 extenstions to the base architecture.
31588 (cpu cortex-a8): Add sec extension to the base architecture.
31589 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
31590 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
31591 variants down to the base v7-a varaint.
31592 * config/arm/t-multilib (v7_a_arch_variants): New variable.
31593 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
31594 of permitted extensions for -march=armv7-a and for
31595 -mcpu=generic-armv7-a.
31597 2019-01-18 Martin Liska <mliska@suse.cz>
31599 * params.def: Fix comment.
31600 * tree-profile.c (gimple_init_gcov_profiler): Bump function
31602 (gimple_gen_ic_func_profiler): Likewise.
31604 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31606 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
31607 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
31608 and put in error checks for stack protector guard options.
31609 (aarch64_stack_protect_guard): New.
31610 (TARGET_STACK_PROTECT_GUARD): Define.
31611 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
31612 (reg_stack_protect_address<mode>): New.
31613 (stack_protect_set): Adjust for SSP_GLOBAL.
31614 (stack_protect_test): Likewise.
31615 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
31616 (-mstack-protector-guard): Likewise.
31617 (-mstack-protector-guard-offset): Likewise.
31619 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31621 PR tree-optimization/86214
31622 * tree-inline.h (struct copy_body_data): Add
31623 add_clobbers_to_eh_landing_pads member.
31624 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
31625 (copy_edges_for_bb): Call it if EH edge destination is <
31626 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
31627 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
31628 if flag_stack_reuse != SR_NONE and clear it afterwards.
31630 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
31633 * doc/install.texi (with-multilib-list): Document for aarch64.
31635 2019-01-18 Jakub Jelinek <jakub@redhat.com>
31638 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
31639 (("..."))) with ("...").
31641 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31643 * doc/extend.texi (Built-in Functions for Memory Model Aware
31644 Atomic Operations): Document atomic fetch and nand.
31646 2019-01-18 Martin Liska <mliska@suse.cz>
31647 Richard Biener <rguenther@suse.de>
31649 PR middle-end/88587
31650 * cgraph.h (create_version_clone_with_body): Add new argument
31652 * cgraphclones.c (cgraph_node::create_version_clone): Add
31653 DECL_ATTRIBUTES to a newly created decl. And call
31654 valid_attribute_p so that proper cl_target_optimization_node
31655 is set for the newly created declaration.
31656 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
31658 (expand_target_clones): Do not call valid_attribute_p, it must
31660 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
31663 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31666 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
31667 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
31668 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
31670 2019-01-17 Martin Sebor <msebor@redhat.com>
31672 PR middle-end/88273
31673 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
31674 Handle anti-ranges the same as no range at all.
31676 2018-01-17 Steve Ellcey <sellcey@cavium.com>
31678 * config/aarch64/aarch64.c (cgraph.h): New include.
31679 (intl.h): New include.
31680 (supported_simd_type): New function.
31681 (currently_supported_simd_type): Ditto.
31682 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
31683 (aarch64_simd_clone_adjust): Ditto.
31684 (aarch64_simd_clone_usable): Ditto.
31685 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
31686 (TARGET_SIMD_CLONE_ADJUST): Ditto.
31687 (TARGET_SIMD_CLONE_USABLE): Ditto.
31688 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
31689 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
31692 2019-01-17 Martin Sebor <msebor@redhat.com>
31694 PR tree-optimization/88800
31695 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
31696 NO_WARNING bit here. Avoid folding out-of-bounds calls.
31697 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
31698 redundant argument. Add new argument and issue diagnostics under
31699 its control. Detect out-of-bounds access even with warnings
31701 (check_bounds_or_overlap): Change return type. Add argument.
31702 (wrestrict_dom_walker::check_call): Adjust.
31703 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
31704 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
31705 check_bounds_or_overlap's return value.
31706 (handle_builtin_stxncpy): Same.
31707 (handle_builtin_strcat): Same.
31709 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31710 Kwok Cheung Yeung <kcy@codesourcery.com>
31711 Julian Brown <julian@codesourcery.com>
31712 Tom de Vries <tom@codesourcery.com>
31714 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
31716 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31718 * doc/sourcebuild.texi: Document dg-require-effective-target
31719 llvm_binutils and offload_gcn.
31721 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31722 Kwok Cheung Yeung <kcy@codesourcery.com>
31723 Julian Brown <julian@codesourcery.com>
31724 Tom de Vries <tom@codesourcery.com>
31726 * doc/sourcebuild.texi: Document dg-required-effective-target
31729 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31730 Kwok Cheung Yeung <kcy@codesourcery.com>
31731 Julian Brown <julian@codesourcery.com>
31732 Tom de Vries <tom@codesourcery.com>
31733 Jan Hubicka <hubicka@ucw.cz>
31734 Martin Jambor <mjambor@suse.cz>
31736 * config.gcc: Add amdgcn*-*-amdhsa configuration.
31737 * configure.ac: Check for dlopen.
31738 * configure: Regenerate.
31740 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31741 Kwok Cheung Yeung <kcy@codesourcery.com>
31742 Julian Brown <julian@codesourcery.com>
31743 Tom de Vries <tom@codesourcery.com>
31744 Jan Hubicka <hubicka@ucw.cz>
31745 Martin Jambor <mjambor@suse.cz>
31747 * common/config/gcn/gcn-common.c: New file.
31748 * config/gcn/driver-gcn.c: New file.
31749 * config/gcn/gcn-builtins.def: New file.
31750 * config/gcn/gcn-hsa.h: New file.
31751 * config/gcn/gcn-modes.def: New file.
31752 * config/gcn/gcn-opts.h: New file.
31753 * config/gcn/gcn-passes.def: New file.
31754 * config/gcn/gcn-protos.h: New file.
31755 * config/gcn/gcn-run.c: New file.
31756 * config/gcn/gcn-tree.c: New file.
31757 * config/gcn/gcn.c: New file.
31758 * config/gcn/gcn.h: New file.
31759 * config/gcn/gcn.opt: New file.
31760 * config/gcn/t-gcn-hsa: New file.
31762 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
31763 Kwok Cheung Yeung <kcy@codesourcery.com>
31764 Julian Brown <julian@codesourcery.com>
31765 Tom de Vries <tom@codesourcery.com>
31766 Jan Hubicka <hubicka@ucw.cz>
31767 Martin Jambor <mjambor@suse.cz>
31769 * config/gcn/constraints.md: New file.
31770 * config/gcn/gcn-valu.md: New file.
31771 * config/gcn/gcn.md: New file.
31772 * config/gcn/predicates.md: New file.
31774 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
31776 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
31777 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
31778 (stmt_uses_0_or_null_in_undefined_way): Likewise.
31779 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
31781 2019-01-17 Tamar Christina <tamar.christina@arm.com>
31784 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
31785 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
31786 it and document registers.
31788 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31790 * config/aarch64/aarch64.c (ares_tunings): Define.
31791 * config/aarch64/aarch64-cores.def (ares): Use the above.
31793 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31797 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
31799 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
31800 (_mm512_fixupimm_round_pd): Update parameters and builtin.
31801 (_mm512_maskz_fixupimm_round_pd): Ditto.
31802 (_mm512_fixupimm_round_ps): Ditto.
31803 (_mm512_maskz_fixupimm_round_ps): Ditto.
31804 (_mm_fixupimm_round_sd): Ditto.
31805 (_mm_maskz_fixupimm_round_sd): Ditto.
31806 (_mm_fixupimm_round_ss): Ditto.
31807 (_mm_maskz_fixupimm_round_ss): Ditto.
31808 (_mm512_fixupimm_pd): Ditto.
31809 (_mm512_maskz_fixupimm_pd): Ditto.
31810 (_mm512_fixupimm_ps): Ditto.
31811 (_mm512_maskz_fixupimm_ps): Ditto.
31812 (_mm_fixupimm_sd): Ditto.
31813 (_mm_maskz_fixupimm_sd): Ditto.
31814 (_mm_fixupimm_ss): Ditto.
31815 (_mm_maskz_fixupimm_ss): Ditto.
31816 (_mm512_mask_fixupimm_round_pd): Update builtin.
31817 (_mm512_mask_fixupimm_round_ps): Ditto.
31818 (_mm_mask_fixupimm_round_sd): Ditto.
31819 (_mm_mask_fixupimm_round_ss): Ditto.
31820 (_mm512_mask_fixupimm_pd): Ditto.
31821 (_mm512_mask_fixupimm_ps): Ditto.
31822 (_mm_mask_fixupimm_sd): Ditto.
31823 (_mm_mask_fixupimm_ss): Ditto.
31824 * config/i386/avx512vlintrin.h:
31825 (_mm256_fixupimm_pd): Update parameters and builtin.
31826 (_mm256_maskz_fixupimm_pd): Ditto.
31827 (_mm256_fixupimm_ps): Ditto.
31828 (_mm256_maskz_fixupimm_ps): Ditto.
31829 (_mm_fixupimm_pd): Ditto.
31830 (_mm_maskz_fixupimm_pd): Ditto.
31831 (_mm_fixupimm_ps): Ditto.
31832 (_mm_maskz_fixupimm_ps): Ditto.
31833 (_mm256_mask_fixupimm_pd): Update builtin.
31834 (_mm256_mask_fixupimm_ps): Ditto.
31835 (_mm_mask_fixupimm_pd): Ditto.
31836 (_mm_mask_fixupimm_ps): Ditto.
31837 * config/i386/i386-builtin-types.def: Add new types and remove
31839 * config/i386/i386-builtin.def: Update builtin definitions.
31840 * config/i386/i386.c: Handle new builtin types and remove useless ones.
31841 * config/i386/sse.md: Update VFIXUPIMM* patterns.
31842 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31843 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31844 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
31845 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31846 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31847 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
31848 * config/i386/subst.md:
31849 (round_saeonly_sd_mask_operand4): Add new subst_attr.
31850 (round_saeonly_sd_mask_op4): Ditto.
31851 (round_saeonly_expand_operand5): Ditto.
31852 (round_saeonly_expand): Update.
31854 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31858 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
31860 * config/i386/sse.md: Combine VFIXUPIMM* patterns
31861 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31862 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31863 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
31864 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
31865 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
31866 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
31868 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
31872 2018-12-15 Jakub Jelinek <jakub@redhat.com>
31875 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
31876 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
31877 instead of UNSPEC_FIXUPIMM.
31879 2019-01-17 Richard Biener <rguenther@suse.de>
31882 * dwarf2out.c (want_pubnames): Never generate pubnames sections
31883 and friends for the LTO part of debug info.
31885 2019-01-17 Jakub Jelinek <jakub@redhat.com>
31887 PR tree-optimization/86214
31888 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
31891 PR rtl-optimization/88870
31892 * dce.c (deletable_insn_p): Never delete const/pure calls that can
31893 throw if we can't alter the cfg or delete dead exceptions.
31894 (mark_insn): Don't call find_call_stack_args for such calls.
31896 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
31898 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
31899 prototypes for vec_st.
31900 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
31901 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
31902 mainly on signed/unsigned long long and double.
31904 2019-01-16 David Malcolm <dmalcolm@redhat.com>
31907 * combine.c (delete_noop_moves): Convert to "bool" return,
31908 returning true if any edges are eliminated.
31909 (combine_instructions): Also return true if delete_noop_moves
31912 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31914 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
31915 correct max nunits for endian swap.
31916 (aarch64_expand_fcmla_builtin): Correct subreg code.
31917 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
31918 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
31921 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
31923 * config/alpha/alpha.c (alpha_gimplify_va_arg):
31924 Handle split indirect COMPLEX_TYPE arguments.
31926 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
31929 * config/aarch64/aarch64-modes.def: Add comment about how the carry
31930 bit is set by add and compare.
31931 (CC_ADC): New CC_MODE.
31932 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
31933 to cache the code and mode of X. Adjust the shape of a CC_Cmode
31934 comparison. Add detection for CC_ADCmode.
31935 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
31937 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
31938 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
31939 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
31940 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
31941 to eliminate the need for zero-extending the operands.
31942 (add<mode>3_compareC_imm): Delete. Merge into ...
31943 (add<mode>3_compareC): ... this. Restructure the comparison to
31944 eliminate the need for zero-extending the operands.
31945 (add<mode>3_carryin): Use LTU for the overflow detection.
31946 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
31947 Reexpress comparison for overflow.
31948 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
31949 (add<mode>3_carryinC): Likewise.
31950 (add<mode>3_carryinV): Use LTU for carry between partials.
31951 * config/aarch64/predicates.md (aarch64_carry_operation): Update
31952 handling of CC_Cmode and add CC_ADCmode.
31953 (aarch64_borrow_operation): Likewise.
31955 2019-01-16 Tamar Christina <tamar.christina@arm.com>
31957 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
31958 Remove patternmode.
31959 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
31960 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
31961 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
31962 Remove endianness conversion.
31964 2019-01-16 Martin Liska <mliska@suse.cz>
31966 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
31968 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
31970 * gcc.c (add_sysrooted_hdrs_prefix): New function.
31971 (path_prefix_reset): Move up in the source file.
31972 (find_fortran_preinclude_file): Make complex search for the
31973 fortran header files.
31975 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
31977 * godump.c (go_output_typedef): When outputting a typedef, refer
31978 to the underlying type by its name and not its structure.
31980 2019-01-15 David Malcolm <dmalcolm@redhat.com>
31983 * tree.c (build_function_type): Assert that arg_types is not
31986 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
31988 PR inline-asm/52813
31989 * doc/extend.texi: Document that listing the stack pointer in the
31990 clobber list of an asm is a deprecated feature.
31991 * common.opt (Wdeprecated): Moved from c-family/c.opt.
31992 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
31993 warning instead of an error for clobbers of the stack pointer.
31994 Add a note explaining why.
31996 2019-01-15 Richard Biener <rguenther@suse.de>
31999 * dwarf2out.c (gen_member_die): Do not generate inheritance
32002 2019-01-15 Richard Biener <rguenther@suse.de>
32004 PR tree-optimization/88855
32005 * tree-if-conv.c (combine_blocks): Collect
32006 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
32008 2019-01-15 Tom de Vries <tdevries@suse.de>
32011 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
32012 lhs == NULL_TREE for gang-level reduction.
32014 2019-01-15 Richard Biener <rguenther@suse.de>
32015 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32018 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
32019 return true if SSA_NAME is already marked in visited bitmap.
32020 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
32022 2019-01-15 Jakub Jelinek <jakub@redhat.com>
32024 PR tree-optimization/88775
32025 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
32026 equal == 0 equality pointer comparisons some more if compared in
32027 integral types and either one points to an automatic var and the
32028 other to a global, or we can prove at least one points to the middle
32029 or both point to start or both point to end.
32031 2019-01-14 Andi Kleen <ak@linux.intel.com>
32033 * Makefile.in: Lower autofdo sampling rate by 10x.
32034 * Makefile.tpl: Dito.
32036 2019-01-14 Tom Honermann <tom@honermann.net>
32038 * defaults.h: Define CHAR8_TYPE.
32040 2019-01-14 Martin Sebor <msebor@redhat.com>
32043 * doc/extend.texi (Darwin Format Checks): Clarify.
32045 2019-01-14 Richard Biener <rguenther@suse.de>
32047 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
32048 whether we are in (simplify ...) or (match ...) context.
32050 2019-01-14 Jakub Jelinek <jakub@redhat.com>
32052 PR rtl-optimization/88796
32053 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
32054 * cfgexpand.c (stack_protect_prologue): Initialize
32055 crtl->stack_protect_guard_decl.
32056 * function.c (stack_protect_epilogue): Use it instead of calling
32057 targetm.stack_protect_guard again.
32058 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
32059 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
32060 crtl->stack_protect_guard_decl.
32061 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
32062 on the returned MEM_EXPR.
32064 2019-01-12 Tom de Vries <tdevries@suse.de>
32066 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
32067 vector length using -fopenacc-dim.
32069 2019-01-12 Tom de Vries <tdevries@suse.de>
32071 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
32072 lengths into account.
32074 2019-01-12 Svante Signell <svante.signell@gmail.com>
32076 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
32077 (TARGET_CAN_SPLIT_STACK): Define.
32078 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
32080 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
32082 * params.def (inline-unit-growth): Set to 40.
32084 2019-01-12 Jakub Jelinek <jakub@redhat.com>
32086 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
32088 2019-01-12 Tom de Vries <tdevries@suse.de>
32090 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
32091 region calling vector-partitionable routine, set default_vector_length
32094 2019-01-12 Tom de Vries <tdevries@suse.de>
32096 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
32097 variable default_vector_length.
32099 2019-01-12 Tom de Vries <tdevries@suse.de>
32101 PR middle-end/88703
32102 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
32103 from oacc_default_dims, as oacc_validate_dims would do it, and apply
32106 2019-01-12 Tom de Vries <tdevries@suse.de>
32108 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
32109 (nvptx_goacc_validate_dims): Add used parameter.
32110 * doc/tm.texi: Regenerate.
32111 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
32112 argument to call to targetm.goacc.validate_dims.
32113 (default_goacc_validate_dims): Add used
32115 * target.def (validate_dims): Add used parameter in DEFHOOK.
32116 * targhooks.h (default_goacc_validate_dims): Add used parameter.
32118 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32120 PR middle-end/85956
32122 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
32124 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
32125 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
32126 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
32127 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
32129 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
32131 PR rtl-optimization/87305
32133 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
32134 for little endian pseudos used as paradoxical subreg.
32136 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32138 PR tree-optimization/88693
32139 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
32140 for STRING_CSTs that don't contain any NUL characters in the first
32141 TREE_STRING_LENGTH bytes.
32143 2019-01-11 Alan Modra <amodra@gmail.com>
32147 * genattrtab.c (min_fn): Don't translate values.
32148 (min_attr_value): Return INT_MAX when the value can't be calculated.
32149 Return minimum among any values that can be calculated.
32150 (max_attr_value): Adjust.
32152 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32154 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
32156 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32158 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32159 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
32160 (aarch64_return_call_with_max_clobbers): New function.
32161 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
32162 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
32164 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
32165 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
32166 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
32167 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
32168 * cselib.c (cselib_process_insn): Add argument to
32169 targetm.hard_regno_call_part_clobbered call.
32170 * ira-conflicts.c (ira_build_conflicts): Ditto.
32171 * ira-costs.c (ira_tune_allocno_costs): Ditto.
32172 * lra-constraints.c (inherit_reload_reg): Ditto.
32173 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
32174 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
32175 argument. Call targetm.return_call_with_max_clobbers.
32176 Add argument to targetm.hard_regno_call_part_clobbered call.
32177 (calls_have_same_clobbers_p): New function.
32178 (process_bb_lives): Add call_insn and last_call_insn variables.
32179 Pass call_insn to check_pseudos_live_through_calls.
32180 Modify if stmt to check targetm.return_call_with_max_clobbers.
32181 Update setting of flush variable.
32182 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
32184 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
32185 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
32186 targetm.hard_regno_call_part_clobbered call.
32187 * reginfo.c (choose_hard_reg_mode): Ditto.
32188 * regrename.c (check_new_reg_p): Ditto.
32189 * reload.c (find_equiv_reg): Ditto.
32190 * reload1.c (emit_reload_insns): Ditto.
32191 * sched-deps.c (deps_analyze_insn): Ditto.
32192 * sel-sched.c (init_regs_for_mode): Ditto.
32193 (mark_unavailable_hard_regs): Ditto.
32194 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
32195 * target.def (hard_regno_call_part_clobbered): Add insn argument.
32196 (return_call_with_max_clobbers): New target function.
32197 * doc/tm.texi: Regenerate.
32198 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
32199 * hooks.c (hook_bool_uint_mode_false): Change to
32200 hook_bool_insn_uint_mode_false.
32201 * hooks.h (hook_bool_uint_mode_false): Ditto.
32203 2019-01-11 Steve Ellcey <sellcey@marvell.com>
32205 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
32206 (aarch64_remove_extra_call_preserved_regs): New function.
32207 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
32208 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
32209 * doc/tm.texi: Regenerate.
32210 * final.c (get_call_reg_set_usage): Call new hook.
32211 * target.def (remove_extra_call_preserved_regs): New hook.
32212 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
32213 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
32215 2019-01-11 Jakub Jelinek <jakub@redhat.com>
32218 * passes.c (finish_optimization_passes): Call print_combine_total_stats
32219 inside of pass_combine_1 dump rather than pass_profile_1.
32221 2019-01-11 Tom de Vries <tdevries@suse.de>
32223 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
32224 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
32225 (PTX_NUM_PER_WORKER_BARRIERS): Define.
32226 (nvptx_apply_dim_limits): Prevent vector_length 64 and
32229 2019-01-11 Tom de Vries <tdevries@suse.de>
32231 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
32233 2019-01-11 Jan Beulich <jbeulich@suse.com>
32235 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
32236 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
32237 sse2_cvtsi2sd): Add {l}.
32238 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
32241 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32244 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
32246 (*float<floatunssuffix>v2div2sf2): New define_insn.
32247 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
32248 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
32249 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
32250 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
32251 match_operands with "const0_operand" "C".
32253 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32255 * config/aarch64/aarch64-builtins.c
32256 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
32257 (aarch64_init_simd_builtins): ...Here
32259 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
32261 PR rtl-optimization/87305
32263 (setup_live_pseudos_and_spill_after_risky_transforms): Check
32264 allocation for big endian pseudos used as paradoxical subregs and
32265 spill them if it is wrong.
32266 * lra-constraints.c (lra_constraints): Add a comment.
32268 2019-01-10 Richard Biener <rguenther@suse.de>
32270 PR tree-optimization/88792
32271 * tree-ssa-pre.c (get_representative_for): Do not return a
32274 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32276 PR middle-end/84877
32278 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
32279 (assign_parm_setup_block): Do the argument slot realignment here
32282 2019-01-10 Stefan Agner <stefan@agner.ch>
32285 * config/arm/arm.c (arm_option_override_internal): Force
32286 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
32288 2019-01-10 Jakub Jelinek <jakub@redhat.com>
32291 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
32294 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32296 * config/arm/arm-builtins.c
32297 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
32298 (MAC_LANE_PAIR_QUALIFIERS): New.
32299 (arm_expand_builtin_args): Use it.
32300 (arm_expand_builtin_1): Likewise.
32301 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
32302 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
32303 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
32304 * config/arm/arm_neon.h:
32305 (vcadd_rot90_f16): New.
32306 (vcaddq_rot90_f16): New.
32307 (vcadd_rot270_f16): New.
32308 (vcaddq_rot270_f16): New.
32311 (vcmla_lane_f16): New.
32312 (vcmla_laneq_f16): New.
32313 (vcmlaq_lane_f16): New.
32314 (vcmlaq_laneq_f16): New.
32315 (vcmla_rot90_f16): New.
32316 (vcmlaq_rot90_f16): New.
32317 (vcmla_rot90_lane_f16): New.
32318 (vcmla_rot90_laneq_f16): New.
32319 (vcmlaq_rot90_lane_f16): New.
32320 (vcmlaq_rot90_laneq_f16): New.
32321 (vcmla_rot180_f16): New.
32322 (vcmlaq_rot180_f16): New.
32323 (vcmla_rot180_lane_f16): New.
32324 (vcmla_rot180_laneq_f16): New.
32325 (vcmlaq_rot180_lane_f16): New.
32326 (vcmlaq_rot180_laneq_f16): New.
32327 (vcmla_rot270_f16): New.
32328 (vcmlaq_rot270_f16): New.
32329 (vcmla_rot270_lane_f16): New.
32330 (vcmla_rot270_laneq_f16): New.
32331 (vcmlaq_rot270_lane_f16): New.
32332 (vcmlaq_rot270_laneq_f16): New.
32333 (vcadd_rot90_f32): New.
32334 (vcaddq_rot90_f32): New.
32335 (vcadd_rot270_f32): New.
32336 (vcaddq_rot270_f32): New.
32339 (vcmla_lane_f32): New.
32340 (vcmla_laneq_f32): New.
32341 (vcmlaq_lane_f32): New.
32342 (vcmlaq_laneq_f32): New.
32343 (vcmla_rot90_f32): New.
32344 (vcmlaq_rot90_f32): New.
32345 (vcmla_rot90_lane_f32): New.
32346 (vcmla_rot90_laneq_f32): New.
32347 (vcmlaq_rot90_lane_f32): New.
32348 (vcmlaq_rot90_laneq_f32): New.
32349 (vcmla_rot180_f32): New.
32350 (vcmlaq_rot180_f32): New.
32351 (vcmla_rot180_lane_f32): New.
32352 (vcmla_rot180_laneq_f32): New.
32353 (vcmlaq_rot180_lane_f32): New.
32354 (vcmlaq_rot180_laneq_f32): New.
32355 (vcmla_rot270_f32): New.
32356 (vcmlaq_rot270_f32): New.
32357 (vcmla_rot270_lane_f32): New.
32358 (vcmla_rot270_laneq_f32): New.
32359 (vcmlaq_rot270_lane_f32): New.
32360 (vcmlaq_rot270_laneq_f32): New.
32361 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
32362 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
32363 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
32364 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
32365 vcmlaq_lane270): New.
32366 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
32367 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
32368 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
32369 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
32370 (arm_option_reconfigure_globals): Use them.
32371 * config/arm/iterators.md (VDF, VQ_HSF): New.
32372 (VCADD, VCMLA): New.
32373 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
32374 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
32376 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
32377 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
32379 2019-01-10 Tamar Christina <tamar.christina@arm.com>
32381 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
32382 Add qualifier_lane_pair_index.
32383 (emit-rtl.h): Include.
32384 (TYPES_QUADOP_LANE_PAIR): New.
32385 (aarch64_simd_expand_args): Use it.
32386 (aarch64_simd_expand_builtin): Likewise.
32387 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
32389 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
32390 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
32391 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
32392 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
32393 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
32394 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
32395 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
32396 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
32397 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
32398 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
32399 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
32400 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
32401 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
32402 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
32403 Add __ARM_FEATURE_COMPLEX.
32404 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
32405 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
32406 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
32407 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
32408 fcmlaq_lane270): New.
32409 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
32410 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
32411 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
32412 * config/aarch64/arm_neon.h:
32413 (vcadd_rot90_f16): New.
32414 (vcaddq_rot90_f16): New.
32415 (vcadd_rot270_f16): New.
32416 (vcaddq_rot270_f16): New.
32419 (vcmla_lane_f16): New.
32420 (vcmla_laneq_f16): New.
32421 (vcmlaq_lane_f16): New.
32422 (vcmlaq_rot90_lane_f16): New.
32423 (vcmla_rot90_laneq_f16): New.
32424 (vcmla_rot90_lane_f16): New.
32425 (vcmlaq_rot90_f16): New.
32426 (vcmla_rot90_f16): New.
32427 (vcmlaq_laneq_f16): New.
32428 (vcmla_rot180_laneq_f16): New.
32429 (vcmla_rot180_lane_f16): New.
32430 (vcmlaq_rot180_f16): New.
32431 (vcmla_rot180_f16): New.
32432 (vcmlaq_rot90_laneq_f16): New.
32433 (vcmlaq_rot270_laneq_f16): New.
32434 (vcmlaq_rot270_lane_f16): New.
32435 (vcmla_rot270_laneq_f16): New.
32436 (vcmlaq_rot270_f16): New.
32437 (vcmla_rot270_f16): New.
32438 (vcmlaq_rot180_laneq_f16): New.
32439 (vcmlaq_rot180_lane_f16): New.
32440 (vcmla_rot270_lane_f16): New.
32441 (vcadd_rot90_f32): New.
32442 (vcaddq_rot90_f32): New.
32443 (vcaddq_rot90_f64): New.
32444 (vcadd_rot270_f32): New.
32445 (vcaddq_rot270_f32): New.
32446 (vcaddq_rot270_f64): New.
32450 (vcmla_lane_f32): New.
32451 (vcmla_laneq_f32): New.
32452 (vcmlaq_lane_f32): New.
32453 (vcmlaq_laneq_f32): New.
32454 (vcmla_rot90_f32): New.
32455 (vcmlaq_rot90_f32): New.
32456 (vcmlaq_rot90_f64): New.
32457 (vcmla_rot90_lane_f32): New.
32458 (vcmla_rot90_laneq_f32): New.
32459 (vcmlaq_rot90_lane_f32): New.
32460 (vcmlaq_rot90_laneq_f32): New.
32461 (vcmla_rot180_f32): New.
32462 (vcmlaq_rot180_f32): New.
32463 (vcmlaq_rot180_f64): New.
32464 (vcmla_rot180_lane_f32): New.
32465 (vcmla_rot180_laneq_f32): New.
32466 (vcmlaq_rot180_lane_f32): New.
32467 (vcmlaq_rot180_laneq_f32): New.
32468 (vcmla_rot270_f32): New.
32469 (vcmlaq_rot270_f32): New.
32470 (vcmlaq_rot270_f64): New.
32471 (vcmla_rot270_lane_f32): New.
32472 (vcmla_rot270_laneq_f32): New.
32473 (vcmlaq_rot270_lane_f32): New.
32474 (vcmlaq_rot270_laneq_f32): New.
32475 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
32476 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
32477 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
32478 (FCADD, FCMLA): New.
32480 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
32482 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32486 * config/pa/pa.c: Change "can not" to "cannot".
32487 * gimple-ssa-evrp-analyze.c: Likewise.
32488 * ipa-icf.c: Likewise.
32489 * ipa-polymorphic-call.c: Likewise.
32490 * ipa-pure-const.c: Likewise.
32491 * lra-constraints.c: Likewise.
32492 * lra-remat.c: Likewise.
32493 * reload1.c: Likewise.
32494 * reorg.c: Likewise.
32495 * tree-ssa-uninit.c: Likewise.
32497 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
32501 * Makefile.in: Mechanically replace "can not" with "cannot".
32502 * alias.c: Likewise.
32503 * builtins.c: Likewise.
32504 * calls.c: Likewise.
32505 * cgraph.c: Likewise.
32506 * cgraph.h: Likewise.
32507 * cgraphclones.c: Likewise.
32508 * cgraphunit.c: Likewise.
32509 * combine-stack-adj.c: Likewise.
32510 * combine.c: Likewise.
32511 * common/config/i386/i386-common.c: Likewise.
32512 * config/aarch64/aarch64.c: Likewise.
32513 * config/alpha/sync.md: Likewise.
32514 * config/arc/arc.c: Likewise.
32515 * config/arc/predicates.md: Likewise.
32516 * config/arm/arm-c.c: Likewise.
32517 * config/arm/arm.c: Likewise.
32518 * config/arm/arm.h: Likewise.
32519 * config/arm/arm.md: Likewise.
32520 * config/arm/cortex-r4f.md: Likewise.
32521 * config/csky/csky.c: Likewise.
32522 * config/csky/csky.h: Likewise.
32523 * config/darwin-f.c: Likewise.
32524 * config/epiphany/epiphany.md: Likewise.
32525 * config/i386/i386.c: Likewise.
32526 * config/i386/sol2.h: Likewise.
32527 * config/m68k/m68k.c: Likewise.
32528 * config/mcore/mcore.h: Likewise.
32529 * config/microblaze/microblaze.md: Likewise.
32530 * config/mips/20kc.md: Likewise.
32531 * config/mips/sb1.md: Likewise.
32532 * config/nds32/nds32.c: Likewise.
32533 * config/nds32/predicates.md: Likewise.
32534 * config/pa/pa.c: Likewise.
32535 * config/rs6000/e300c2c3.md: Likewise.
32536 * config/rs6000/rs6000.c: Likewise.
32537 * config/s390/s390.h: Likewise.
32538 * config/sh/sh.c: Likewise.
32539 * config/sh/sh.md: Likewise.
32540 * config/spu/vmx2spu.h: Likewise.
32541 * cprop.c: Likewise.
32542 * dbxout.c: Likewise.
32543 * df-scan.c: Likewise.
32544 * doc/cfg.texi: Likewise.
32545 * doc/extend.texi: Likewise.
32546 * doc/fragments.texi: Likewise.
32547 * doc/gty.texi: Likewise.
32548 * doc/invoke.texi: Likewise.
32549 * doc/lto.texi: Likewise.
32550 * doc/md.texi: Likewise.
32551 * doc/objc.texi: Likewise.
32552 * doc/rtl.texi: Likewise.
32553 * doc/tm.texi: Likewise.
32555 * emit-rtl.c: Likewise.
32556 * emit-rtl.h: Likewise.
32557 * except.c: Likewise.
32558 * expmed.c: Likewise.
32559 * expr.c: Likewise.
32560 * fold-const.c: Likewise.
32561 * genautomata.c: Likewise.
32562 * gimple-fold.c: Likewise.
32563 * hard-reg-set.h: Likewise.
32564 * ifcvt.c: Likewise.
32565 * ipa-comdats.c: Likewise.
32566 * ipa-cp.c: Likewise.
32567 * ipa-devirt.c: Likewise.
32568 * ipa-fnsummary.c: Likewise.
32569 * ipa-icf.c: Likewise.
32570 * ipa-inline-transform.c: Likewise.
32571 * ipa-inline.c: Likewise.
32572 * ipa-polymorphic-call.c: Likewise.
32573 * ipa-profile.c: Likewise.
32574 * ipa-prop.c: Likewise.
32575 * ipa-pure-const.c: Likewise.
32576 * ipa-reference.c: Likewise.
32577 * ipa-split.c: Likewise.
32578 * ipa-visibility.c: Likewise.
32580 * ira-build.c: Likewise.
32581 * ira-color.c: Likewise.
32582 * ira-conflicts.c: Likewise.
32583 * ira-costs.c: Likewise.
32584 * ira-int.h: Likewise.
32585 * ira-lives.c: Likewise.
32588 * loop-invariant.c: Likewise.
32589 * loop-unroll.c: Likewise.
32590 * lower-subreg.c: Likewise.
32591 * lra-assigns.c: Likewise.
32592 * lra-constraints.c: Likewise.
32593 * lra-eliminations.c: Likewise.
32594 * lra-lives.c: Likewise.
32595 * lra-remat.c: Likewise.
32596 * lra-spills.c: Likewise.
32598 * lto-cgraph.c: Likewise.
32599 * lto-streamer-out.c: Likewise.
32600 * postreload-gcse.c: Likewise.
32601 * predict.c: Likewise.
32602 * profile-count.h: Likewise.
32603 * profile.c: Likewise.
32604 * recog.c: Likewise.
32606 * reload.c: Likewise.
32607 * reload1.c: Likewise.
32608 * reorg.c: Likewise.
32609 * resource.c: Likewise.
32610 * rtl.def: Likewise.
32612 * rtlanal.c: Likewise.
32613 * sched-deps.c: Likewise.
32614 * sched-ebb.c: Likewise.
32615 * sched-rgn.c: Likewise.
32616 * sel-sched-ir.c: Likewise.
32617 * sel-sched.c: Likewise.
32618 * shrink-wrap.c: Likewise.
32619 * simplify-rtx.c: Likewise.
32620 * symtab.c: Likewise.
32621 * target.def: Likewise.
32622 * toplev.c: Likewise.
32623 * tree-call-cdce.c: Likewise.
32624 * tree-cfg.c: Likewise.
32625 * tree-complex.c: Likewise.
32626 * tree-core.h: Likewise.
32627 * tree-eh.c: Likewise.
32628 * tree-inline.c: Likewise.
32629 * tree-loop-distribution.c: Likewise.
32630 * tree-nrv.c: Likewise.
32631 * tree-profile.c: Likewise.
32632 * tree-sra.c: Likewise.
32633 * tree-ssa-alias.c: Likewise.
32634 * tree-ssa-dce.c: Likewise.
32635 * tree-ssa-dom.c: Likewise.
32636 * tree-ssa-forwprop.c: Likewise.
32637 * tree-ssa-loop-im.c: Likewise.
32638 * tree-ssa-loop-ivcanon.c: Likewise.
32639 * tree-ssa-loop-ivopts.c: Likewise.
32640 * tree-ssa-loop-niter.c: Likewise.
32641 * tree-ssa-phionlycprop.c: Likewise.
32642 * tree-ssa-phiopt.c: Likewise.
32643 * tree-ssa-propagate.c: Likewise.
32644 * tree-ssa-threadedge.c: Likewise.
32645 * tree-ssa-threadupdate.c: Likewise.
32646 * tree-ssa-uninit.c: Likewise.
32647 * tree-ssanames.c: Likewise.
32648 * tree-streamer-out.c: Likewise.
32649 * tree.c: Likewise.
32650 * tree.h: Likewise.
32651 * vr-values.c: Likewise.
32653 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
32655 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
32656 (ix86_split_xorsign): Ditto.
32657 * config/i386/i386.c (ix86_expand_xorsign): New function.
32658 (ix86_split_xorsign): Ditto.
32659 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
32660 (xorsign<mode>3): New expander.
32661 (xorsign<mode>3_1): New insn_and_split pattern.
32662 * config/i386/sse.md (xorsign<mode>3): New expander.
32664 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32666 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
32667 (*tablejump_sp64): Likewise.
32668 (*tablejump<P:mode>): ...this.
32669 (*call_address_sp32): Merge into...
32670 (*call_address_sp64): Likewise.
32671 (*call_address<P:mode>): ...this.
32672 (*call_symbolic_sp32): Merge into...
32673 (*call_symbolic_sp64): Likewise.
32674 (*call_symbolic<P:mode>): ...this.
32675 (call_value): Remove constraint and add predicate.
32676 (*call_value_address_sp32): Merge into...
32677 (*call_value_address_sp64): Likewise.
32678 (*call_value_address<P:mode>): ...this.
32679 (*call_value_symbolic_sp32): Merge into...
32680 (*call_value_symbolic_sp64): Likewise.
32681 (*call_value_symbolic<P:mode>): ...this.
32682 (*sibcall_symbolic_sp32): Merge into...
32683 (*sibcall_symbolic_sp64): Likewise.
32684 (*sibcall_symbolic<P:mode>): ...this.
32685 (sibcall_value): Remove constraint and add predicate.
32686 (*sibcall_value_symbolic_sp32): Merge into...
32687 (*sibcall_value_symbolic_sp64): Likewise.
32688 (*sibcall_value_symbolic<P:mode>): ...this.
32689 (window_save): Minor tweak.
32690 (*branch_sp32): Merge into...
32691 (*branch_sp64): Likewise.
32692 (*branch<P:mode>): ...this.
32694 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32695 James Clarke <jrtc27@jrtc27.com>
32698 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
32699 consistently in TLS address generation and adjust code to the renaming
32700 of patterns. Mark calls to __tls_get_addr as const.
32701 * config/sparc/sparc.md (tgd_hi22): Turn into...
32702 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
32703 (tgd_lo10): Turn into...
32704 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
32705 (tgd_add32): Merge into...
32706 (tgd_add64): Likewise.
32707 (tgd_add<P:mode>): ...this and use Pmode throughout.
32708 (tldm_hi22): Turn into...
32709 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
32710 (tldm_lo10): Turn into...
32711 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
32712 (tldm_add32): Merge into...
32713 (tldm_add64): Likewise.
32714 (tldm_add<P:mode>): ...this and use Pmode throughout.
32715 (tldm_call32): Merge into...
32716 (tldm_call64): Likewise.
32717 (tldm_call<P:mode>): ...this and use Pmode throughout.
32718 (tldo_hix22): Turn into...
32719 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
32720 (tldo_lox10): Turn into...
32721 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
32722 (tldo_add32): Merge into...
32723 (tldo_add64): Likewise.
32724 (tldo_add<P:mode>): ...this and use Pmode throughout.
32725 (tie_hi22): Turn into...
32726 (tie_hi22<P:mode>): ...this and use Pmode throughout.
32727 (tie_lo10): Turn into...
32728 (tie_lo10<P:mode>): ...this and use Pmode throughout.
32729 (tie_ld64): Use DImode throughout.
32730 (tie_add32): Merge into...
32731 (tie_add64): Likewise.
32732 (tie_add<P:mode>): ...this and use Pmode throughout.
32733 (tle_hix22_sp32): Merge into...
32734 (tle_hix22_sp64): Likewise.
32735 (tle_hix22<P:mode>): ...this and use Pmode throughout.
32736 (tle_lox22_sp32): Merge into...
32737 (tle_lox22_sp64): Likewise.
32738 (tle_lox22<P:mode>): ...this and use Pmode throughout.
32739 (*tldo_ldub_sp32): Merge into...
32740 (*tldo_ldub_sp64): Likewise.
32741 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
32742 (*tldo_ldub1_sp32): Merge into...
32743 (*tldo_ldub1_sp64): Likewise.
32744 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
32745 (*tldo_ldub2_sp32): Merge into...
32746 (*tldo_ldub2_sp64): Likewise.
32747 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
32748 (*tldo_ldsb1_sp32): Merge into...
32749 (*tldo_ldsb1_sp64): Likewise.
32750 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
32751 (*tldo_ldsb2_sp32): Merge into...
32752 (*tldo_ldsb2_sp64): Likewise.
32753 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
32754 (*tldo_ldub3_sp64): Use DImode throughout.
32755 (*tldo_ldsb3_sp64): Likewise.
32756 (*tldo_lduh_sp32): Merge into...
32757 (*tldo_lduh_sp64): Likewise.
32758 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
32759 (*tldo_lduh1_sp32): Merge into...
32760 (*tldo_lduh1_sp64): Likewise.
32761 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
32762 (*tldo_ldsh1_sp32): Merge into...
32763 (*tldo_ldsh1_sp64): Likewise.
32764 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
32765 (*tldo_lduh2_sp64): Use DImode throughout.
32766 (*tldo_ldsh2_sp64): Likewise.
32767 (*tldo_lduw_sp32): Merge into...
32768 (*tldo_lduw_sp64): Likewise.
32769 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
32770 (*tldo_lduw1_sp64): Use DImode throughout.
32771 (*tldo_ldsw1_sp64): Likewise.
32772 (*tldo_ldx_sp64): Likewise.
32773 (*tldo_stb_sp32): Merge into...
32774 (*tldo_stb_sp64): Likewise.
32775 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
32776 (*tldo_sth_sp32): Merge into...
32777 (*tldo_sth_sp64): Likewise.
32778 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
32779 (*tldo_stw_sp32): Merge into...
32780 (*tldo_stw_sp64): Likewise.
32781 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
32782 (*tldo_stx_sp64): Use DImode throughout.
32784 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32786 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
32787 check configure option to set BTI and Return Address Signing.
32788 * configure.ac: Add --enable-standard-branch-protection and
32789 --disable-standard-branch-protection.
32790 * configure: Regenerated.
32791 * doc/install.texi: Document the same.
32793 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32794 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32796 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
32797 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
32798 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
32800 * config/aarch64/aarch64-bti-insert.c: New file.
32801 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
32803 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
32805 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
32806 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
32807 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
32808 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
32810 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32812 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
32813 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
32814 Disable bti for -mbranch-protection=none.
32815 (aarch64_handle_standard_branch_protection): Enable bti for
32816 -mbranch-protection=standard.
32817 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
32818 -mbranch-protection.
32819 (aarch64_bti_enabled): Check if bti is enabled.
32820 * config/aarch64/aarch64.opt: Declare target variable.
32821 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
32823 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32825 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
32826 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
32827 (aarch64_expand_epilogue): Likewise.
32828 (aarch64_output_mi_thunk): Likewise.
32829 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
32830 TAILCALL_ADDR_REGS to x16 and x17.
32831 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
32833 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32835 * config/aarch64/aarch64-option-extensions.def: Define
32836 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
32837 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
32838 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
32839 (AARCH64_FL_PREDRES): New.
32840 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
32841 AARCH64_FL_PREDRES by default.
32842 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
32844 2018-01-09 Sudakshina Das <sudi.das@arm.com>
32846 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
32848 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
32849 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
32850 * doc/invoke.texi: Document ARMv8.5-A.
32852 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
32854 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
32855 (xorsign<mode>3): Likewise.
32857 2019-01-09 Jelinek <jakub@redhat.com>
32859 PR middle-end/88758
32860 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
32861 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
32863 PR rtl-optimization/88331
32864 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
32865 not currently_expanding_to_rtl.
32867 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
32869 * doc/invoke.texi (-Os): Remove trailing spaces.
32870 (-finline-functions): Remove reference to -O2.
32872 2019-01-08 Jakub Jelinek <jakub@redhat.com>
32874 PR rtl-optimization/79593
32875 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
32877 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
32878 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
32880 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
32883 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
32887 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
32888 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
32890 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
32893 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
32894 ix86_avx_u128_mode_entry.
32896 2019-01-08 Martin Liska <mliska@suse.cz>
32898 PR tree-optimization/88753
32899 * tree-switch-conversion.c (switch_conversion::build_one_array):
32900 Come up with local variable constructor. Convert first to
32901 type of constructor values.
32903 2019-01-08 Richard Biener <rguenther@suse.de>
32905 PR tree-optimization/86554
32906 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
32907 rpo_avail): Move earlier.
32908 (visit_nary_op): When value-numbering to expressions
32909 with different overflow behavior make sure there's an
32910 available expression on the path.
32912 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
32914 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
32915 aarch64_parse_branch_protection,
32916 struct aarch64_branch_protect_type,
32917 aarch64_handle_no_branch_protection,
32918 aarch64_handle_standard_branch_protection,
32919 aarch64_validate_mbranch_protection,
32920 aarch64_handle_pac_ret_protection,
32921 aarch64_handle_attr_branch_protection,
32922 accepted_branch_protection_string,
32923 aarch64_pac_ret_subtypes,
32924 aarch64_branch_protect_types,
32925 aarch64_handle_pac_ret_leaf): Define.
32926 (aarch64_override_options_after_change_1, aarch64_override_options):
32927 Add check for accepted_branch_protection_string.
32928 (aarch64_option_save): Save accepted_branch_protection_string.
32929 (aarch64_option_restore): Save accepted_branch_protection_string.
32930 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
32931 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
32932 msign-return-address.
32933 * doc/invoke.texi: Add mbranch-protection.
32935 2019-01-08 Alan Modra <amodra@gmail.com>
32938 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
32939 Delete "unknownp" parameter. Adjust callers. Handle
32940 CONST_INT, PLUS, MINUS, and MULT.
32941 (attr_value_aligned): Renamed from or_attr_value.
32942 (min_attr_value): Return INT_MIN for unhandled rtl case..
32943 (min_fn): ..and translate to INT_MAX here.
32944 (write_length_unit_log): Modify to cope without "unknown".
32945 (write_attr_value): Handle IF_THEN_ELSE.
32947 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32949 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
32950 optimization for masked stores.
32952 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
32954 PR middle-end/88567
32955 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
32956 output vector directly to duplicate_and_interleave instead of
32957 going through a temporary. Postpone insertion of ctor_seq to
32958 the end of the loop.
32960 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
32963 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
32964 unsigned_p. Handle signed and unsigned overflow correction as
32966 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
32968 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
32970 (add<mode>3_compareV_imm): Make this callable for expanding.
32971 (subv<GPI:mode>4): Use register_operand for operand 1. Use
32972 aarch64_plus_operand for operand 2.
32973 (subv<GPI:mode>_insn): New insn pattern.
32974 (subv<GPI:mode>_imm): Likewise.
32975 (negv<GPI:mode>3): New expand pattern.
32976 (negv<GPI:mode>_insn): New insn pattern.
32977 (negv<GPI:mode>_cmp_only): Likewise.
32978 (cmpv<GPI:mode>_insn): Likewise.
32979 (subvti4): Use register_operand for operand 1. Update call to
32980 aarch64_expand_subvti.
32981 (usubvti4): Likewise.
32982 (negvti3): New expand pattern.
32983 (negdi_carryout): New insn pattern.
32984 (negvdi_carryinV): New insn pattern.
32985 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
32986 version the named version.
32987 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
32989 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
32991 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
32993 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
32994 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
32995 (sub<mode>3_carryinCV): Delete.
32996 (sub<GPI:mode>3_carryinV): New expand pattern.
32997 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
32999 2019-01-07 Richard Biener <rguenther@suse.de>
33001 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
33002 of tree_operand_hash.
33004 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33006 PR tree-optimization/88598
33007 * tree.h (single_nonzero_element): Declare.
33008 * tree.c (single_nonzero_element): New function.
33009 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
33010 if I is the only nonzero element of CST.
33012 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
33014 PR tree-optimization/88598
33015 * tree.h (initializer_each_zero_or_onep): Declare.
33016 * tree.c (initializer_each_zero_or_onep): New function.
33017 (signed_or_unsigned_type_for): Handle float types too.
33018 (unsigned_type_for, signed_type_for): Update comments accordingly.
33019 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
33020 x & { 0 or -1, 0 or -1, ... }.
33022 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
33024 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
33025 with x86_64-pc-linux-gnu.
33027 2019-01-07 Tom de Vries <tdevries@suse.de>
33030 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
33032 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
33035 2019-01-07 Jakub Jelinek <jakub@redhat.com>
33037 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
33038 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
33039 TARGET_AVX512F as condition.
33042 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
33043 const_not_ok_for_debug_p target hook.
33044 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
33045 on UNSPEC and subexpressions thereof if all subexpressions of the
33046 UNSPEC are CONSTANT_P.
33048 PR tree-optimization/88676
33049 * tree-ssa-phiopt.c (two_value_replacement): New function.
33050 (tree_ssa_phiopt_worker): Call it.
33053 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
33054 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
33057 * tree-vect-generic.c: Include insn-config.h and recog.h.
33058 (expand_vector_piecewise): Add defaulted ret_type argument,
33059 if non-NULL, use that in preference to type for the result type.
33060 (expand_vector_parallel): Formatting fix.
33061 (do_vec_conversion, do_vec_narrowing_conversion,
33062 expand_vector_conversion): New functions.
33063 (expand_vector_operations_1): Call expand_vector_conversion
33064 for VEC_CONVERT ifn calls.
33065 * internal-fn.def (VEC_CONVERT): New internal function.
33066 * internal-fn.c (expand_VEC_CONVERT): New function.
33067 * fold-const-call.c (fold_const_vec_convert): New function.
33068 (fold_const_call): Use it for CFN_VEC_CONVERT.
33069 * doc/extend.texi (__builtin_convertvector): Document.
33071 2019-01-07 Tom de Vries <tdevries@suse.de>
33073 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
33074 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
33075 vector_red_partition, vector_red_sym): New global variables.
33076 (nvptx_option_override): Initialize vector_red_sym.
33077 (nvptx_declare_function_name): Restore red_partition register.
33078 (nvptx_file_end): Emit code to declare the vector reduction variables.
33079 (nvptx_output_red_partition): New function.
33080 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
33081 large vector reductions.
33082 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
33083 (nvptx_init_builtins): Add VECTOR_ADDR.
33084 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
33085 Handle nvptx_expand_shared_addr.
33086 (nvptx_get_shared_red_addr): Add vector argument and handle large
33088 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
33090 (nvptx_goacc_reduction_init): Likewise.
33091 (nvptx_goacc_reduction_fini): Likewise.
33092 (nvptx_goacc_reduction_teardown): Likewise.
33093 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
33094 init,fini,teardown}.
33095 (nvptx_init_axis_predicate): Initialize vector_red_partition.
33096 (nvptx_set_current_function): Init vector_red_partition.
33097 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
33098 (nvptx_red_partition): New insn.
33099 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
33101 2019-01-07 Tom de Vries <tdevries@suse.de>
33104 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
33107 2019-01-07 Tom de Vries <tdevries@suse.de>
33109 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
33110 (nvptx_option_override): Init oacc_bcast_partition.
33111 (nvptx_init_oacc_workers): New function.
33112 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
33113 (nvptx_needs_shared_bcast): New function.
33114 (nvptx_find_par): Generalize to enable vectors to use shared-memory
33115 to propagate state.
33116 (nvptx_shared_propagate): Initialize vector bcast partition and
33117 synchronization state.
33118 (nvptx_single): Generalize to enable vectors to use shared-memory
33119 to propagate state.
33120 (nvptx_process_pars): Likewise.
33121 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
33122 * config/nvptx/nvptx.h (struct machine_function): Add
33123 bcast_partition and sync_bar members.
33125 2019-01-07 Tom de Vries <tdevries@suse.de>
33127 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
33128 (nvptx_apply_dim_limits): New function.
33129 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
33132 2019-01-07 Tom de Vries <tdevries@suse.de>
33134 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
33135 as late as possible.
33137 2019-01-07 Tom de Vries <tdevries@suse.de>
33139 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
33140 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
33141 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
33142 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
33143 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
33145 2019-01-07 Tom de Vries <tdevries@suse.de>
33147 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
33149 2019-01-07 Tom de Vries <tdevries@suse.de>
33151 * omp-offload.c (oacc_get_min_dim): New function.
33152 * omp-offload.h (oacc_get_min_dim): Declare.
33154 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
33157 * config/i386/i386.c (function_value_ms_64): Return small sturct in
33158 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
33160 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33164 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
33166 * ipa-inline.c (edge_badness): Use inlined_time instead of
33167 inline_summaries->get.
33169 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33171 * opts.c (enable_fdo_optimizations): Enable
33172 version-loops-for-strides, loop-interchange, unrol-and-jam
33173 and tree-loop-distribution.
33174 * invoke.texi: Document newly enabled options.
33176 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33178 * doc/invoke.texi (max-inline-insns-small): New parameters.
33179 * ipa-inline.c (want_early_inline_function_p): simplify.
33180 (want_inline_small_function_p): Fix pasto from previous patch;
33181 use max-inline-insns-small bound.
33182 * params.def (max-inline-insns-small): New param.
33183 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
33184 variables correctly.
33186 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33188 * doc/invoke.texi: Document max-inline-insns-size,
33189 uninlined-function-insns, uninlined-function-time,
33190 uninlined-thunk-insns and uninlined-thunk-time.
33191 * params.def: Add max-inline-insns-size,
33192 uninlined-function-insns, uninlined-function-time,
33193 uninlined-thunk-insns and uninlined-thunk-time.
33194 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
33196 * ipa-inline.c (can_inline_edge_by_limits_p,
33197 want_inline_small_function_p): Use new parameters.
33199 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
33201 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
33203 2019-01-05 Jakub Jelinek <jakub@redhat.com>
33205 PR middle-end/82564
33207 * expr.c (expand_assignment): For calls returning VLA structures
33208 if to_rtx is not a MEM, force it into a stack temporary.
33211 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
33212 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
33213 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
33214 subexpressions of both operands.
33215 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
33216 subrtxes are CONSTANT_P.
33217 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
33218 2018-11-09 changes.
33220 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
33222 * params.def (hot-bb-count-ws-permille): Set to 990.
33224 2019-01-04 Martin Sebor <msebor@redhat.com>
33227 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
33230 2019-01-04 Martin Sebor <msebor@redhat.com>
33233 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
33235 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33237 * gdbinit.in: Turn off pagination for the skip commands, restore
33238 it to previous state afterwards.
33240 2019-01-04 Jakub Jelinek <jakub@redhat.com>
33243 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
33244 of GET_MODE (opN) as modes of the libcall arguments.
33246 2019-01-04 Jan Beulich <jbeulich@suse.com>
33248 * config/i386/sse.md
33249 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
33250 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
33251 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33252 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
33253 avx512f_vmcmp<mode>3<round_saeonly_name>,
33254 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
33255 avx512f_maskcmp<mode>3,
33256 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33257 <avx512>_cvt<ssemodesuffix>2mask<mode>,
33258 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33259 *<avx512>_cvtmask2<ssemodesuffix><mode>,
33260 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33261 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
33262 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33263 <avx512>_gt<mode>3<mask_scalar_merge_name>,
33264 <avx512>_testm<mode>3<mask_scalar_merge_name>,
33265 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
33266 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
33267 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
33268 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
33269 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
33270 avx512cd_maskb_vec_dup<mode>,
33271 avx512cd_maskw_vec_dup<mode>,
33272 avx512dq_fpclass<mode><mask_scalar_merge_name>,
33273 avx512dq_vmfpclass<mode>,
33274 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
33277 2019-01-03 Martin Sebor <msebor@redhat.com>
33279 PR tree-optimization/88659
33280 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
33282 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
33284 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
33285 unaligned vsx and avoid lxvd2x/stxvd2x.
33286 (gen_lvx_v4si_move): New function.
33288 2019-01-03 Tom de Vries <tdevries@suse.de>
33290 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
33291 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
33293 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
33295 2019-01-03 Tom de Vries <tdevries@suse.de>
33297 * config/nvptx/nvptx.c (struct offload_attrs): New.
33298 (populate_offload_attrs): New function. Factor mask extraction out of
33299 nvptx_reorg. Add extraction of dimensions.
33300 (nvptx_reorg): Use populate_offload_attrs.
33302 2019-01-03 Tom de Vries <tdevries@suse.de>
33304 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
33305 cases for oacc_min_dims_p and routine_p. Add asserts for
33306 oacc_default_dims_p and offload_region_p.
33308 2019-01-03 Tom de Vries <tdevries@suse.de>
33310 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
33311 factored out of ...
33312 (nvptx_goacc_validate_dims): ... here.
33314 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33316 PR tree-optimization/85574
33317 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
33319 (struct ssa_equip_hash_traits): Declare.
33320 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
33322 2019-01-03 Jakub Jelinek <jakub@redhat.com>
33325 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
33326 change it to qualified_type.
33328 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
33330 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
33331 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
33333 2019-01-02 Martin Sebor <msebor@redhat.com>
33334 Jeff Law <law@redhat.com>
33336 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
33337 (get_range_strlen_tree): Update appropriately.
33339 * gimple-fold.h (get_range_strlen): Drop unused last argument.
33341 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
33342 rather than set_range_info.
33343 * tree-ssa-strlen.c (set_strlen_range): Extracted from
33344 maybe_set_strlen_range. Handle potentially boundary crossing
33345 cases more conservatively.
33346 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
33347 Call set_strlen_range.
33348 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
33350 PR middle-end/88663
33351 * gimple-fold.c (get_range_strlen): Update prototype to no longer
33352 need the flexp argument.
33353 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
33354 from calls to get_range_strlen. Update comments. Just update
33355 VAL for an unterminated const char array and let the reset of the
33356 code handle it normally. No longer try to set *flexp. Adjust
33358 (get_range_strlen): Update for the new get_range_strlen API.
33359 (get_maxval_strlen): Similarly.
33360 (gimple_fold_builtin_strlen): Handle update meaning of return value
33361 from get_range_strlen.
33362 * gimple-ssa-sprintf.c (get_string_length): Update for the new
33363 get_range_strlen API.
33365 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
33368 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
33369 false at WPA time when body was removed.
33371 2019-01-02 Martin Liska <mliska@suse.cz>
33373 PR tree-optimization/88650
33374 * predict.c (set_even_probabilities): Calculate probability
33375 remainer only when really used.
33377 2019-01-02 Richard Biener <rguenther@suse.de>
33379 PR middle-end/88651
33380 * tree-data-ref.c (analyze_subscript_affine_affine): Use
33381 widest_ints when mangling max_stmt_execution results.
33383 2019-01-02 Richard Biener <rguenther@suse.de>
33385 PR tree-optimization/88621
33386 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
33387 bitfields when canoncalizing.
33389 2019-01-02 Richard Biener <rguenther@suse.de>
33392 * config/i386/x86-tune-costs.h (intel_cost): Adjust
33393 cost of cheap SSE instruction.
33395 2019-01-02 Richard Biener <rguenther@suse.de>
33398 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
33399 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
33401 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
33402 set after UIDs before splitting them.
33404 2019-01-01 Martin Sebor <msebor@redhat.com>
33405 Jeff Law <law@redhat.com>
33407 * gimple-fold.c (get_range_strlen_tree): Record if the computed
33408 length is optimistic. If it is, then arrange to compute the
33409 conservative length as well.
33411 * gimple-fold.h (get_range_strlen): Update prototype.
33412 * builtins.c (check_access): Update call to get_range_strlen to use
33413 c_strlen_data pointer. Change various variable accesses to instead
33414 pull data from the c_strlen_data structure.
33415 (check_strncat_sizes, expand_builtin_strncat): Likewise.
33416 * calls.c (maybe_warn_nonstring_arg): Likewise.
33417 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
33418 minimum length if maximum lengh is unknown.
33419 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
33420 that used c_strlen, it's no longer needed. Restructure slightly.
33421 (format_string): Set unlikely range appropriately.
33422 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
33424 (get_range_strlen): Accept c_strlen_data pointer for external
33425 call sites as well. Pass through to call to internal get_range_strlen.
33426 Adjust minlen, maxlen and maxbound as needed.
33427 (get_maxval_strlen): Update comments.
33428 (gimple_fold_builtin_strlen): Update call to get_range_strlen
33429 to use c_strlen_data pointer. Change variable accesses to instead
33430 use c_strlen_data data members.
33432 * gimple-fold.c (get_range_strlen): Update prototype.
33433 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
33434 local variables. Use pdata to return information to caller.
33435 Update calls to get_range_strlen. Update pdata->maxbound.
33436 (get_range_strlen -- static version): Similarly.
33437 (get_range_strlen -- extern version): Update for internal
33438 get_range_strlen API change. Convert to external data format.
33439 (get_maxval_strlen): Similarly.
33441 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
33443 * coverage.c (get_coverage_counts): Use current_function_decl.
33444 * profile.c (read_thunk_profile): New function.
33445 (branch_prob): Add THUNK parameter.
33446 * tree-profile.c (tree_profiling): Handle thunks.
33447 * value-prof.c (init_node_map): Handle thunks.
33448 * value-prof.h (branch_prob): Upate prototype.
33449 (read_thunk_profile): Declare.
33451 2019-01-01 Jakub Jelinek <jakub@redhat.com>
33453 Update copyright years.
33455 * gcc.c (process_command): Update copyright notice dates.
33456 * gcov-dump.c (print_version): Ditto.
33457 * gcov.c (print_version): Ditto.
33458 * gcov-tool.c (print_version): Ditto.
33459 * gengtype.c (create_file): Ditto.
33460 * doc/cpp.texi: Bump @copying's copyright year.
33461 * doc/cppinternals.texi: Ditto.
33462 * doc/gcc.texi: Ditto.
33463 * doc/gccint.texi: Ditto.
33464 * doc/gcov.texi: Ditto.
33465 * doc/install.texi: Ditto.
33466 * doc/invoke.texi: Ditto.
33468 Copyright (C) 2019 Free Software Foundation, Inc.
33470 Copying and distribution of this file, with or without modification,
33471 are permitted in any medium without royalty provided the copyright
33472 notice and this notice are preserved.