re PR target/91560 (Try harder for AVX non-AVX2 cross-lane permutations)
[gcc.git] / gcc / ChangeLog
1 2019-08-29 Jakub Jelinek <jakub@redhat.com>
2
3 PR target/91560
4 * config/i386/i386-expand.c (expand_vec_perm_movs,
5 expand_vec_perm_blend, expand_vec_perm_vpermil,
6 expand_vec_perm_pshufb, expand_vec_perm_1,
7 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
8 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
9 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
10 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
11 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
12 comments - replace ix86_expand_vec_perm_builtin_1 with
13 ix86_expand_vec_perm_const_1.
14 (expand_vec_perm2_vperm2f128_vblend): New function.
15 (ix86_expand_vec_perm_const_1): New forward declaration. Call
16 expand_vec_perm2_vperm2f128_vblend as last resort.
17 (canonicalize_perm): Formatting fix.
18
19 PR tree-optimization/91351
20 * tree-cfg.c (generate_range_test): Use range_check_type instead of
21 unsigned_type_for.
22 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
23 range_check_type returns NULL.
24 * tree-switch-conversion.c (switch_conversion::build_one_array):
25 Use range_check_type instead of unsigned_type_for, don't perform
26 linear opt if it returns NULL.
27 (bit_test_cluster::find_bit_tests): Formatting fix.
28 (bit_test_cluster::emit): Use range_check_type instead of
29 unsigned_type_for.
30 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
31 returns NULL.
32
33 2019-08-29 Richard Biener <rguenther@suse.de>
34
35 PR tree-optimization/91568
36 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
37 (vect_update_max_nunits): Add overload for poly_uint64.
38 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
39 (vect_build_slp_tree): Record max_nunits into the subtree
40 and merge it upwards.
41 (vect_print_slp_tree): Print max_nunits.
42
43 2019-08-28 Marek Polacek <polacek@redhat.com>
44
45 Implement P1152R4: Deprecating some uses of volatile.
46 PR c++/91361
47 * doc/invoke.texi: Document -Wvolatile.
48
49 2019-08-28 Marek Polacek <polacek@redhat.com>
50
51 PR c++/91360 - Implement C++20 P1143R2: constinit.
52 * doc/invoke.texi: Document -Wc++20-compat.
53
54 2019-08-28 Martin Sebor <msebor@redhat.com>
55
56 PR tree-optimization/91457
57 * builtins.c (component_size): New function.
58 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
59 * builtins.h (compute_objsize): Add argument.
60 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
61 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
62 (vrp_prop::check_mem_ref): Same.
63 (vrp_prop::search_for_addr_array): Set no-warning bit.
64 (check_array_bounds): Same.
65
66 2019-08-28 Martin Sebor <msebor@redhat.com>
67
68 PR driver/80545
69 * opts-common.c (option_enabled): Correct checking for language
70 options.
71
72 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
73
74 * config/i386/i386-features.c
75 (general_scalar_chain::compute_convert_gain):
76 Correct cost for double-word shifts.
77 (general_scalar_to_vector_candidate_p): Reject count operands
78 greater or equal to mode bitsize.
79
80 2019-08-28 Martin Jambor <mjambor@suse.cz>
81
82 PR ipa/91468
83 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
84 checking assert a normal assert to test it really is redundant.
85 * ipa-prop.c (compute_complex_assign_jump_func): Removed
86 redundant test.
87 (update_jump_functions_after_inlining): Removed combining unary
88 arithmetic operations with an ancestor jump function.
89 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
90 instead of t.
91
92 2019-08-28 Richard Biener <rguenther@suse.de>
93
94 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
95 add the MD problem.
96
97 2019-09-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
98 Richard Biener <rguenther@suse.de>
99
100 * expr.c (expand_assignment): Handle misaligned DECLs.
101 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
102 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
103 too.
104 (assign_parm_setup_stack): Allocate properly aligned stack slots.
105 * varasm.c (build_constant_desc): Align constants of misaligned types.
106 * config/arm/predicates.md (aligned_operand): New predicate.
107 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
108 aligned_operand to check restrictions on memory addresses.
109 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
110 * config/arm/vec-common.md (mov<VALL>): Likewise.
111
112 2019-08-28 Jakub Jelinek <jakub@redhat.com>
113
114 PR libgomp/91530
115 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
116 V_128 iterator instead of VI_128.
117
118 2019-08-28 Martin Liska <mliska@suse.cz>
119
120 PR tree-optimization/90970
121 * builtins.c (check_access): Remove assignment to maxread
122 as it hasn't been used since when it was introduced in r255755.
123
124 2019-08-27 Martin Sebor <msebor@redhat.com>
125
126 PR tree-optimization/91567
127 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
128 of unknown strings.
129 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
130 to PTRDIFF_MAX - 2.
131
132 2019-08-27 Jeff Law <law@redhat.com>
133
134 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
135 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
136
137 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
138
139 PR target/91528
140 * config/i386/i386-features.c (convert_scalars_to_vector):
141 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
142 crtl->stack_realign_processed. Update crtl->drap_reg by calling
143 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
144 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
145
146 2019-08-27 Richard Biener <rguenther@suse.de>
147
148 * config/i386/i386-features.h
149 (general_scalar_chain::~general_scalar_chain): Add.
150 (general_scalar_chain::insns_conv): New bitmap.
151 (general_scalar_chain::n_sse_to_integer): New.
152 (general_scalar_chain::n_integer_to_sse): Likewise.
153 (general_scalar_chain::make_vector_copies): Adjust signature.
154 * config/i386/i386-features.c
155 (general_scalar_chain::general_scalar_chain): Outline,
156 initialize new members.
157 (general_scalar_chain::~general_scalar_chain): New.
158 (general_scalar_chain::mark_dual_mode_def): Record insns
159 we need to insert conversions at and count them.
160 (general_scalar_chain::compute_convert_gain): Account
161 for conversion instructions at chain boundary.
162 (general_scalar_chain::make_vector_copies): Generate a single
163 copy for a def by a specific insn.
164 (general_scalar_chain::convert_registers): First populate
165 defs_map, then make copies at out-of chain insns.
166
167 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
168
169 * config/arm/arm.md (stack_protect_set_insn): Add security-related
170 comment.
171 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
172
173 2019-08-27 Martin Liska <mliska@suse.cz>
174
175 * cgraph.c (cgraph_node::remove): Remove dead assignment before
176 loop.
177 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
178 Enclose in anonymous namespace.
179 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
180 hard_register initialization in braces.
181 * tree-vrp.h (value_range_base::supports_type_p): Return false
182 for function with boolean return type.
183
184 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
185
186 * config/i386/i386.c (emit_i387_cw_initialization)
187 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
188
189 2019-08-26 Martin Sebor <msebor@redhat.com>
190
191 PR c++/83431
192 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
193 (sprintf_dom_walker): Remove class.
194 (get_int_range): Make argument const.
195 (directive::fmtfunc, directive::set_precision): Same.
196 (format_none): Same.
197 (build_intmax_type_nodes): Same.
198 (adjust_range_for_overflow): Same.
199 (format_floating): Same.
200 (format_character): Same.
201 (format_string): Same.
202 (format_plain): Same.
203 (get_int_range): Cast away constness.
204 (format_integer): Same.
205 (get_string_length): Call get_range_strlen_dynamic. Handle
206 null lendata.maxbound.
207 (should_warn_p): Adjust argument scope qualifier.
208 (maybe_warn): Same.
209 (format_directive): Same.
210 (parse_directive): Same.
211 (is_call_safe): Same.
212 (try_substitute_return_value): Same.
213 (sprintf_dom_walker::handle_printf_call): Rename...
214 (handle_printf_call): ...to this. Initialize target to host charmap
215 here instead of in pass_sprintf_length::execute.
216 (struct call_info): Make global.
217 (sprintf_dom_walker::compute_format_length): Make global.
218 (sprintf_dom_walker::handle_gimple_call): Same.
219 * passes.def (pass_sprintf_length): Replace with pass_strlen.
220 * print-rtl.c (print_pattern): Reduce the number of spaces to
221 avoid -Wformat-truncation.
222 * tree-pass.h (make_pass_warn_printf): New function.
223 * tree-ssa-strlen.c (strlen_optimize): New variable.
224 (get_string_length): Add comments.
225 (get_range_strlen_dynamic): New function.
226 (check_and_optimize_call): New function.
227 (handle_integral_assign): New function.
228 (strlen_check_and_optimize_stmt): Factor code out into
229 strlen_check_and_optimize_call and handle_integral_assign.
230 (strlen_dom_walker::evrp): New member.
231 (strlen_dom_walker::before_dom_children): Use evrp member.
232 (strlen_dom_walker::after_dom_children): Use evrp member.
233 (printf_strlen_execute): New function.
234 (pass_strlen::gate): Update to handle printf calls.
235 (dump_strlen_info): New function.
236 (pass_data_warn_printf): New variable.
237 (pass_warn_printf): New class.
238 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
239 (handle_printf_call): Same.
240 * tree-vrp.c (value_range_base::type): Adjust assertion.
241 * vr-values.c (vr_values::update_value_range): Use type of the first
242 argument rather than the second.
243
244 2019-08-26 Richard Biener <rguenther@suse.de>
245
246 * config/i386/i386-features.c (general_remove_non_convertible_regs):
247 Remove.
248 (convert_scalars_to_vector): Do not call it.
249
250 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
251 Uros Bizjak <ubizjak@gmail.com>
252
253 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
254 CASE_MATHFN_FLOATN for roundeven.
255 * config/i386/i386.c (ix86_i387_mode_needed): Add case
256 I387_ROUNDEVEN.
257 (ix86_mode_needed): Likewise.
258 (ix86_mode_after): Likewise.
259 (ix86_mode_entry): Likewise.
260 (ix86_mode_exit): Likewise.
261 (ix86_emit_mode_set): Likewise.
262 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
263 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
264 (ix86_entity): Add I387_ROUNDEVEN.
265 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
266 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
267 (define_int_iterator): Likewise.
268 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
269 (define_constant): Define ROUND_ROUNDEVEN mode.
270 (define_attr): Add roundeven mode for i387_cw.
271 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
272 * internal-fn.def (ROUNDEVEN): New builtin function.
273 * optabs.def (roundeven_optab): New optab.
274
275 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
276
277 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
278 for ROUNDEVEN.
279 * builtins.def: Added function definitions for roundeven function
280 variants.
281 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
282 function call. Adjust condition for floor, ceil, trunc and round.
283 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
284 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
285 (integer_valued_real_call_p): Added case for roundeven function.
286 * real.c (is_even): New function. Returns true if real number is even,
287 otherwise returns false.
288 (is_halfway_below): New function. Returns true if real number is
289 halfway between two integers, else return false.
290 (real_roundeven): New function. Round real number to nearest integer,
291 rounding halfway cases towards even.
292 * real.h (real_value): Added descriptive comments. Added function
293 declaration for roundeven function.
294 * doc/extend.texi (Other Builtins): List roundeven variants among
295 functions which can be handled as builtins.
296
297 2019-08-26 Richard Biener <rguenther@suse.de>
298
299 PR target/91522
300 PR target/91527
301 * config/i386/i386-features.h (general_scalar_chain::defs_map):
302 New member.
303 (general_scalar_chain::replace_with_subreg): Remove.
304 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
305 (general_scalar_chain::convert_reg): Adjust signature.
306 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
307 iterate over all defs of a reg.
308 (general_scalar_chain::replace_with_subreg): Remove.
309 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
310 (general_scalar_chain::make_vector_copies): Populate defs_map,
311 place copy only after defs that are used as vectors in the chain.
312 (general_scalar_chain::convert_reg): Emit a copy for a specific
313 def in a specific instruction.
314 (general_scalar_chain::convert_op): All reg uses are converted here.
315 (general_scalar_chain::convert_insn): Emit copies for scalar
316 uses of defs here. Replace uses with the copies we created.
317 Replace and convert the def. Adjust REG_DEAD notes, remove
318 REG_EQUIV/EQUAL notes.
319 (general_scalar_chain::convert_registers): Only handle copies
320 into the chain here.
321
322 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
323
324 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
325
326 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
327
328 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
329 Add nop_convert case.
330 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
331 Fold all statements if requested.
332 * tree-ssa-propagate.h (class substitute_and_fold_engine):
333 Allow to fold all statements.
334 * tree-vrp.c (class vrp_folder):
335 Let substitute_and_fold_engine fold all statements.
336
337 2019-08-26 Richard Biener <rguenther@suse.de>
338
339 PR tree-optimization/91526
340 * passes.def: Note that after late FRE we do TODO_update_address_taken.
341 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
342 TODO_update_address_taken.
343
344 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
345
346 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
347 __STDC_HOSTED__.
348
349 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
350
351 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
352 machine mode for unspec_volatile operand.
353
354 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
355
356 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
357 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
358 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
359 (prefer_neon_for_64bits): Remove.
360 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
361 (tune_params): Remove PREF_NEON_64_FALSE uses.
362 (arm_option_override): Remove prefer_neon selection code.
363 (arm_print_tune_info): Remove prefer_neon_for_64bits.
364 * gcc/config/arm/arm-protos.h (tune_params): Remove
365 prefer_neon_for_64bits.
366 (prefer_neon_for_64bits): Remove.
367
368 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
369
370 PR pch/61250
371 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
372 and issue any diagnostics needed before collecting the pre-PCH
373 state.
374
375 2019-08-23 Jakub Jelinek <jakub@redhat.com>
376
377 PR middle-end/91283
378 * common.opt (fexcess-precision=): Add Optimization flag. Use
379 flag_excess_precision variable instead of
380 flag_excess_precision_cmdline.
381 * flags.h (class target_flag_state): Remove x_flag_excess_precision
382 member.
383 (flag_excess_precision): Don't define.
384 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
385 flag_excess_precision_cmdline. Remove comment.
386 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
387 and x_flag_excess_precision instead of
388 frontend_set_flag_excess_precision_cmdline and
389 x_flag_excess_precision_cmdline.
390 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
391 x_flag_excess_precision_cmdline.
392 * toplev.c (init_excess_precision): Remove.
393 (lang_dependent_init_target): Don't call it.
394
395 2019-08-23 Martin Liska <mliska@suse.cz>
396
397 * lto-wrapper.c (run_gcc): When setting jobserver
398 set also parallel to 1. This was done so before r273908.
399
400 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
401
402 * config/arm/arm-cpus.in (cortex-m35p): New entry.
403 (cortex-a76ae): Likewise.
404 (cortex-a77): Likewise
405 * config/arm/arm-tables.opt: Regenerate.
406 * config/arm/arm-tune.md: Likewise.
407 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
408 cortex-a77 CPU options.
409
410 2019-08-23 Martin Liska <mliska@suse.cz>
411
412 * profile.c (instrument_values): Do not set
413 0 as last argument.
414 * tree-profile.c (gimple_gen_interval_profiler): Remove
415 last argument.
416 (gimple_gen_pow2_profiler): Likewise.
417 (gimple_gen_topn_values_profiler): Likewise.
418 (gimple_gen_ic_profiler): Likewise.
419 (gimple_gen_time_profiler): Likewise.
420 (gimple_gen_average_profiler): Likewise.
421 (gimple_gen_ior_profiler): Likewise.
422 * value-prof.c (dump_histogram_value): Use default
423 in switch statement instead of HIST_TYPE_MAX.
424 (stream_in_histogram_value): Likewise.
425 (gimple_duplicate_stmt_histograms): Do not
426 use NULL for implicitly set arguments.
427 (gimple_divmod_values_to_profile): Do not use
428 reserve+quick_push.
429 (gimple_indirect_call_to_profile): Likewise.
430 (gimple_find_values_to_profile): Use implicit
431 function call arguments.
432 * value-prof.h (gimple_alloc_histogram_value):
433 Set default values.
434 (gimple_gen_interval_profiler): Remove last argument.
435 (gimple_gen_pow2_profiler): Likewise.
436 (gimple_gen_topn_values_profiler): Likewise.
437 (gimple_gen_ic_profiler): Likewise.
438 (gimple_gen_time_profiler): Likewise.
439 (gimple_gen_average_profiler): Likewise.
440 (gimple_gen_ior_profiler): Likewise.
441
442 2019-08-22 Martin Sebor <msebor@redhat.com>
443
444 PR middle-end/91490
445 * builtins.c (c_strlen): Rename argument and introduce new local.
446 Set no-warning bit on original argument.
447 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
448 Fold empty and zero constructors into empty strings.
449 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
450 for missing initializers.
451 * tree.c (build_string_literal): Handle optional argument.
452 * tree.h (build_string_literal): Add defaulted argument.
453 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
454 no-warning bit on original expression.
455
456 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
457
458 PR target/91481
459 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
460 and UNSPEC_DARN_RAW.
461 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
462 UNSPECV_DARN_RAW.
463 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
464 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
465 (darn): Use an unspec_volatile, and UNSPECV_DARN.
466
467 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
468
469 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
470 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
471 * config/rs6000/rs6000.md (unspec): ... here.
472 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
473 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
474 cmpeqb, *cmpeqb_internal): Delete, move to...
475 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
476 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
477 cmpeqb, *cmpeqb_internal): ... here.
478
479 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
480
481 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
482 intrinsics if __ARM_FP.
483 Use __ARM_FEATURE_CRC32 ifdef guard.
484
485 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
486
487 * config/arm/arm.md (neon_for_64bits): Remove.
488 (avoid_neon_for_64bits): Remove.
489 (arm_adddi3): Always split early.
490 (arm_subdi3): Always split early.
491 (negdi2): Remove Neon expansion.
492 (split zero_extend): Split before reload.
493 (split sign_extend): Split before reload.
494
495 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
496
497 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
498 (qhs_extenddi_cstr): Likewise.
499 * config/arm/arm.md (ashldi3): Always expand early.
500 (ashlsi3): Likewise.
501 (ashrsi3): Likewise.
502 (zero_extend<mode>di2): Remove Neon variants.
503 (extend<mode>di2): Likewise.
504 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
505 (signed_shift_di3_neon): Likewise.
506 (unsigned_shift_di3_neon): Likewise.
507 (ashrdi3_neon_imm_noclobber): Likewise.
508 (lshrdi3_neon_imm_noclobber): Likewise.
509 (<shift>di3_neon): Likewise.
510 (split extend): Remove DI extend split patterns.
511
512 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
513
514 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
515 (split not): Add DImode not splitter.
516 (anddi3): Remove pattern.
517 (anddi3_insn): Likewise.
518 (anddi_zesidi_di): Likewise.
519 (anddi_sesdi_di): Likewise.
520 (anddi_notdi_di): Likewise.
521 (anddi_notzesidi_di): Likewise.
522 (anddi_notsesidi_di): Likewise.
523 (iordi3): Likewise.
524 (iordi3_insn): Likewise.
525 (iordi_zesidi_di): Likewise.
526 (iordi_sesidi_di): Likewise.
527 (xordi3): Likewise.
528 (xordi3_insn): Likewise.
529 (xordi_sesidi_di): Likewise.
530 (xordi_zesidi_di): Likewise.
531 (one_cmpldi2): Likewise.
532 (one_cmpldi2_insn): Likewise.
533 * config/arm/constraints.md: Remove De, Df, Dg constraints.
534 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
535 alternative.
536 (iwmmxt_xordi3): Likewise.
537 (iwmmxt_anddi3): Likewise.
538 * config/arm/neon.md (orndi3_neon): Remove pattern.
539 (anddi_notdi_di): Likewise.
540 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
541 (arm_iordi_operand_neon): Likewise.
542 (arm_xordi_operand_neon): Likewise.
543 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
544 (iordi_notzesidi_di): Likewise.
545 (iordi_notdi_zesidi): Likewise.
546 (iordi_notsesidi_di): Likewise.
547
548 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
549
550 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
551 insn.
552 (iorsi3_compare0_scratch): Likewise.
553
554 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
555
556 * config/aarch64/aarch64-simd-builtins.def:
557 (ld1x4): New.
558 (st1x4): Likewise.
559 * config/aarch64/aarch64-simd.md:
560 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
561 (aarch64_st1x4<VALLDIF:mode>): Likewise.
562 (aarch64_ld1_x4_<mode>): Likewise.
563 (aarch64_st1_x4_<mode>): Likewise.
564 * config/aarch64/arm_neon.h:
565 (vld1_s8_x4): New function.
566 (vld1q_s8_x4): Likewise.
567 (vld1_s16_x4): Likewise.
568 (vld1q_s16_x4): Likewise.
569 (vld1_s32_x4): Likewise.
570 (vld1q_s32_x4): Likewise.
571 (vld1_u8_x4): Likewise.
572 (vld1q_u8_x4): Likewise.
573 (vld1_u16_x4): Likewise.
574 (vld1q_u16_x4): Likewise.
575 (vld1_u32_x4): Likewise.
576 (vld1q_u32_x4): Likewise.
577 (vld1_f16_x4): Likewise.
578 (vld1q_f16_x4): Likewise.
579 (vld1_f32_x4): Likewise.
580 (vld1q_f32_x4): Likewise.
581 (vld1_p8_x4): Likewise.
582 (vld1q_p8_x4): Likewise.
583 (vld1_p16_x4): Likewise.
584 (vld1q_p16_x4): Likewise.
585 (vld1_s64_x4): Likewise.
586 (vld1_u64_x4): Likewise.
587 (vld1_p64_x4): Likewise.
588 (vld1q_s64_x4): Likewise.
589 (vld1q_u64_x4): Likewise.
590 (vld1q_p64_x4): Likewise.
591 (vld1_f64_x4): Likewise.
592 (vld1q_f64_x4): Likewise.
593 (vst1_s8_x4): Likewise.
594 (vst1q_s8_x4): Likewise.
595 (vst1_s16_x4): Likewise.
596 (vst1q_s16_x4): Likewise.
597 (vst1_s32_x4): Likewise.
598 (vst1q_s32_x4): Likewise.
599 (vst1_u8_x4): Likewise.
600 (vst1q_u8_x4): Likewise.
601 (vst1_u16_x4): Likewise.
602 (vst1q_u16_x4): Likewise.
603 (vst1_u32_x4): Likewise.
604 (vst1q_u32_x4): Likewise.
605 (vst1_f16_x4): Likewise.
606 (vst1q_f16_x4): Likewise.
607 (vst1_f32_x4): Likewise.
608 (vst1q_f32_x4): Likewise.
609 (vst1_p8_x4): Likewise.
610 (vst1q_p8_x4): Likewise.
611 (vst1_p16_x4): Likewise.
612 (vst1q_p16_x4): Likewise.
613 (vst1_s64_x4): Likewise.
614 (vst1_u64_x4): Likewise.
615 (vst1_p64_x4): Likewise.
616 (vst1q_s64_x4): Likewise.
617 (vst1q_u64_x4): Likewise.
618 (vst1q_p64_x4): Likewise.
619 (vst1_f64_x4): Likewise.
620 (vst1q_f64_x4): Likewise.
621
622 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
623
624 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
625
626 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
627 Richard Sandiford <richard.sandiford@arm.com>
628
629 PR target/88839
630 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
631 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
632
633 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
634
635 PR target/90724
636 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
637 in reg if it fails aarch64_plus_operand predicate.
638
639 2019-08-21 Richard Biener <rguenther@suse.de>
640
641 PR tree-optimization/91482
642 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
643 BUILT_IN_ASSUME_ALIGNED calls.
644
645 2019-08-21 Richard Biener <rguenther@suse.de>
646
647 PR target/91498
648 PR target/91503
649 * config/i386/i386-features.c
650 (general_scalar_chain::make_vector_copies): Copy stack temporary
651 rtx when using it multiple times.
652 (general_scalar_chain::convert_reg): Likewise.
653
654 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
655
656 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
657
658 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
659
660 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
661 catch more redundant zero initialization cases.
662 (dse_dom_walker::dse_optimize_stmt): Likewise.
663
664 2019-08-20 Richard Biener <rguenther@suse.de>
665
666 PR lto/91307
667 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
668 by collect2 when targetm.have_ctors_dtors which avoids dragging
669 in temporary filenames from LTO input objects.
670
671 2019-08-20 Richard Biener <rguenther@suse.de>
672
673 PR tree-optimization/37242
674 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
675 to (T)a + (T)b if we know that a + b does not overflow.
676
677 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
678
679 PR rtl-optimization/91347
680 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
681 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
682
683 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
684
685 * calls.h (function_arg_info): Add a pass_by_reference field,
686 defaulting to false.
687 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
688 when applying pass-by-reference semantics.
689 (initialize_argument_information): Likewise.
690 (emit_library_call_value_1): Likewise.
691 * function.c (assign_parm_data_one): Remove passed_pointer field.
692 (assign_parm_find_data_types): Don't set it.
693 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
694 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
695 arg.pass_by_reference instead of passed_pointer.
696
697 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
698
699 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
700 into a single function_arg_info, updating its fields when we
701 apply pass-by-reference and promotion semantics. Use the
702 function_arg_info to track the mode rather than keeping it in
703 a separate local variable.
704 (initialize_argument_information): Likewise. Base the final
705 arg_to_skip on this new function_arg_info rather than creating
706 a new one from scratch.
707
708 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
709
710 * function.c (assign_parm_data_one): Replace passed_type,
711 promoted_mode and named_arg with a function_arg_info field.
712 (assign_parm_find_data_types): Remove local variables and
713 assign directly to "data". Make data->passed_mode shadow
714 data->arg.mode until promotion, then assign the promoted
715 mode to data->arg.mode.
716 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
717 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
718 (assign_parm_remove_parallels, assign_parm_setup_block_p)
719 (assign_parm_setup_block, assign_parm_setup_reg)
720 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
721 arg.mode instead of promoted_mode, arg.type instead of passed_type
722 and arg.named instead of named_arg. Use data->arg for
723 function_arg_info structures that had the field values passed_type,
724 promoted_mode and named_arg. Base other function_arg_infos on
725 data->arg, changing the necessary properties.
726
727 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
728
729 * calls.h (apply_pass_by_reference_rules): Declare.
730 * calls.c (apply_pass_by_reference_rules): New function.
731 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
732 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
733 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
734 * function.c (assign_parm_find_data_types): Likewise.
735 * var-tracking.c (prepare_call_arguments): Likewise.
736
737 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
738
739 * target.def (must_pass_in_stack): Take a function_arg_info instead
740 of a mode and a type.
741 * doc/tm.texi: Regenerate.
742 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
743 instead of a mode and a type.
744 (must_pass_in_stack_var_size_or_pad): Likewise.
745 * calls.c (must_pass_in_stack_var_size): Likewise.
746 (must_pass_in_stack_var_size_or_pad): Likewise.
747 (initialize_argument_information): Update call to
748 targetm.calls.must_pass_in_stack.
749 (must_pass_va_arg_on_stack): Likewise.
750 * function.c (assign_parm_find_entry_rtl): Likewise.
751 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
752 * config/alpha/alpha.c (alpha_function_arg): Likewise.
753 (alpha_function_arg_advance): Likewise.
754 * config/cr16/cr16.c (cr16_function_arg): Likewise.
755 (cr16_function_arg_advance): Likewise.
756 * config/cris/cris.c (cris_pass_by_reference): Likewise.
757 (cris_arg_partial_bytes): Likewise.
758 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
759 * config/lm32/lm32.c (lm32_function_arg): Likewise.
760 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
761 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
762 * config/mips/mips.c (mips_pass_by_reference): Likewise.
763 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
764 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
765 * config/sh/sh.c (sh_pass_by_reference): Likewise.
766 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
767 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
768 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
769 instead of a mode and a type.
770 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
771 (fr30_num_arg_regs): Likewise.
772 (fr30_setup_incoming_varargs): Update calls accordingly.
773 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
774 (fr30_function_arg_advance): Likewise.
775 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
776 instead of a mode and a type.
777 * config/gcn/gcn.c (num_arg_regs): Likewise.
778 (gcn_function_arg, gcn_function_arg_advance): Update calls to
779 num_arg_regs and targetm.calls.must_pass_in_stack.
780 (gcn_arg_partial_bytes): Likewise.
781 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
782 function_arg_info instead of a mode and a type.
783 (classify_argument): Update call accordingly.
784 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
785 function_arg_info instead of a mode and a type.
786 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
787 Likewise.
788 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
789 (rs6000_parm_needs_stack): Update call accordingly.
790 (setup_incoming_varargs): Likewise.
791
792 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
793
794 * target.def (callee_copies): Take a function_arg_info instead
795 of a mode, type and named flag.
796 * doc/tm.texi: Regenerate.
797 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
798 instead of a mode, type and named flag.
799 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
800 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
801 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
802 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
803 instead of a mode, type and named flag.
804 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
805 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
806 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
807 * calls.h (reference_callee_copied): Take a function_arg_info
808 instead of a mode, type and named flag.
809 * calls.c (reference_callee_copied): Likewise.
810 (initialize_argument_information): Update call accordingly.
811 (emit_library_call_value_1): Likewise.
812 * function.c (gimplify_parameters): Likewise.
813 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
814 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
815 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
816 * config/c6x/c6x.c (c6x_callee_copies): Delete.
817 (TARGET_CALLEE_COPIES): Define to
818 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
819 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
820 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
821 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
822 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
823 instead of a mode, type and named flag.
824 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
825 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
826 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
827 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
828 * config/msp430/msp430.c (msp430_callee_copies): Delete.
829 (TARGET_CALLEE_COPIES): Define to
830 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
831 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
832 instead of a mode, type and named flag.
833 * config/sh/sh.c (sh_callee_copies): Likewise.
834 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
835 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
836 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
837
838 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
839
840 * target.def (function_arg_advance): Take a function_arg_info instead
841 of a mode, type and named flag.
842 * doc/tm.texi: Regenerate.
843 * targhooks.h (default_function_arg_advance): Take a function_arg_info
844 instead of a mode, type and named flag.
845 * targhooks.c (default_function_arg_advance): Likewise.
846 * calls.c (initialize_argument_information): Update call to
847 targetm.calls.function_arg_advance.
848 (emit_library_call_value_1): Likewise.
849 * dse.c (get_call_args): Likewise.
850 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
851 * function.c (assign_parms, gimplify_parameters): Likewise.
852 * var-tracking.c (prepare_call_arguments): Likewise.
853 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
854 function_arg_info instead of a mode, type and named flag.
855 (aarch64_setup_incoming_varargs): Update call accordingly.
856 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
857 function_arg_info instead of a mode, type and named flag.
858 (alpha_setup_incoming_varargs): Update call accordingly.
859 * config/arc/arc.c (arc_function_arg_advance): Take a
860 function_arg_info instead of a mode, type and named flag.
861 (arc_setup_incoming_varargs): Update call accordingly.
862 * config/arm/arm.c (arm_function_arg_advance): Take a
863 function_arg_info instead of a mode, type and named flag.
864 (cmse_func_args_or_return_in_stack): Update call accordingly.
865 (arm_function_ok_for_sibcall): Likewise.
866 (cmse_nonsecure_call_clear_caller_saved): Likewise.
867 * config/avr/avr.c (avr_function_arg_advance): Take a
868 function_arg_info instead of a mode, type and named flag.
869 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
870 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
871 (c6x_call_saved_register_used): Update call accordingly.
872 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
873 function_arg_info instead of a mode, type and named flag.
874 * config/cris/cris.c (cris_function_arg_advance): Likewise.
875 * config/csky/csky.c (csky_function_arg_advance): Likewise.
876 (csky_setup_incoming_varargs): Update call accordingly.
877 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
878 function_arg_info instead of a mode, type and named flag.
879 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
880 * config/frv/frv.c (frv_function_arg_advance): Likewise.
881 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
882 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
883 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
884 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
885 (ix86_setup_incoming_varargs): Update call accordingly.
886 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
887 function_arg_info instead of a mode, type and named flag.
888 (ia64_setup_incoming_varargs): Update call accordingly.
889 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
890 function_arg_info instead of a mode, type and named flag.
891 (iq2000_expand_prologue): Update call accordingly.
892 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
893 function_arg_info instead of a mode, type and named flag.
894 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
895 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
896 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
897 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
898 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
899 Likewise.
900 (microblaze_expand_prologue): Update call accordingly.
901 * config/mips/mips.c (mips_function_arg_advance): Take a
902 function_arg_info instead of a mode, type and named flag.
903 (mips_setup_incoming_varargs): Update call accordingly.
904 (mips_output_args_xfer): Likewise.
905 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
906 function_arg_info instead of a mode, type and named flag.
907 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
908 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
909 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
910 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
911 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
912 (nios2_setup_incoming_varargs): Update call accordingly.
913 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
914 function_arg_info instead of a mode, type and named flag.
915 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
916 * config/pa/pa.c (pa_function_arg_advance): Likewise.
917 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
918 * config/pru/pru.c (pru_function_arg_advance): Likewise.
919 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
920 (riscv_setup_incoming_varargs): Update call accordingly.
921 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
922 function_arg_info instead of a mode, type and named flag.
923 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
924 Likewise.
925 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
926 (rs6000_parm_needs_stack): Update call accordingly.
927 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
928 instead of a mode, type and named flag.
929 * config/s390/s390.c (s390_function_arg_advance): Likewise.
930 (s390_call_saved_register_used): Update call accordingly.
931 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
932 instead of a mode, type and named flag.
933 (sh_output_mi_thunk): Update call accordingly.
934 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
935 function_arg_info instead of a mode, type and named flag.
936 * config/spu/spu.c (spu_function_arg_advance): Likewise.
937 (spu_setup_incoming_varargs): Update call accordingly.
938 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
939 function_arg_info instead of a mode, type and named flag.
940 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
941 (tilegx_setup_incoming_varargs): Update call accordingly.
942 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
943 function_arg_info instead of a mode, type and named flag.
944 (tilegx_setup_incoming_varargs): Update call accordingly.
945 * config/v850/v850.c (v850_function_arg_advance): Take a
946 function_arg_info instead of a mode, type and named flag.
947 * config/vax/vax.c (vax_function_arg_advance): Likewise.
948 * config/visium/visium.c (visium_function_arg_advance): Likewise.
949 (visium_setup_incoming_varargs): Update call accordingly.
950 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
951 function_arg_info instead of a mode, type and named flag.
952
953 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
954
955 * target.def (function_arg, function_incoming_arg): Take a
956 function_arg_info instead of a mode, tree and named flag.
957 * doc/tm.texi: Regenerate.
958 * targhooks.h (default_function_arg): Take a function_arg_info
959 instead of a mode, tree and named flag.
960 (default_function_incoming_arg): Likewise.
961 * targhooks.c (default_function_arg): Likewise.
962 (default_function_incoming_arg): Likewise.
963 * calls.h (function_arg_info::end_marker_p): New function.
964 (function_arg_info::end_marker): Likewise.
965 * calls.c (prepare_call_address, initialize_argument_information)
966 (expand_call, emit_library_call_value_1): Update calls to
967 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
968 * dse.c: Include calls.h.
969 (get_call_args): Update call to targetm.calls.function_arg.
970 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
971 * var-tracking.c (prepare_call_arguments): Likewise.
972 * function.c (assign_parm_find_entry_rtl): Update call to
973 targetm.calls.function_incoming_arg.
974 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
975 function_arg_info instead of a mode, tree and named flag.
976 * config/alpha/alpha.c (alpha_function_arg): Likewise.
977 * config/arc/arc.c (arc_function_arg): Likewise.
978 * config/arm/arm.c (arm_function_arg): Likewise.
979 (cmse_func_args_or_return_in_stack): Update call accordingly.
980 (arm_function_ok_for_sibcall): Likewise.
981 (cmse_nonsecure_call_clear_caller_saved): Likewise.
982 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
983 instead of a mode, tree and named flag.
984 * config/bfin/bfin.c (bfin_function_arg): Likewise.
985 * config/c6x/c6x.c (c6x_function_arg): Likewise.
986 (c6x_call_saved_register_used): Update call accordingly.
987 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
988 instead of a mode, tree and named flag.
989 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
990 (cris_function_arg_1): Likewise.
991 * config/csky/csky.c (csky_function_arg): Likewise.
992 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
993 * config/fr30/fr30.c (fr30_function_arg): Likewise.
994 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
995 (frv_function_arg_1): Likewise.
996 * config/ft32/ft32.c (ft32_function_arg): Likewise.
997 * config/gcn/gcn.c (gcn_function_arg): Likewise.
998 * config/h8300/h8300.c (h8300_function_arg): Likewise.
999 * config/i386/i386.c (ix86_function_arg): Likewise.
1000 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1001 (ia64_function_arg_1): Likewise.
1002 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1003 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1004 accordingly.
1005 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1006 instead of a mode, tree and named flag.
1007 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1008 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1009 * config/m68k/m68k.c (m68k_function_arg): Likewise.
1010 * config/mcore/mcore.c (mcore_function_arg): Likewise.
1011 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
1012 (microblaze_expand_prologue): Update call accordingly.
1013 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
1014 instead of a mode, tree and named flag.
1015 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
1016 (mmix_function_arg_1): Likewise.
1017 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
1018 * config/moxie/moxie.c (moxie_function_arg): Likewise.
1019 * config/msp430/msp430.c (msp430_function_arg): Likewise.
1020 * config/nds32/nds32.c (nds32_function_arg): Likewise.
1021 * config/nios2/nios2.c (nios2_function_arg): Likewise.
1022 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
1023 (nvptx_function_incoming_arg): Likewise.
1024 * config/or1k/or1k.c (or1k_function_arg): Likewise.
1025 * config/pa/pa.c (pa_function_arg): Likewise.
1026 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1027 * config/pru/pru.c (pru_function_arg): Likewise.
1028 * config/riscv/riscv.c (riscv_function_arg): Likewise.
1029 * config/rl78/rl78.c (rl78_function_arg): Likewise.
1030 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
1031 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
1032 (rs6000_parm_needs_stack): Update call accordingly.
1033 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
1034 instead of a mode, tree and named flag.
1035 * config/s390/s390.c (s390_function_arg): Likewise.
1036 (s390_call_saved_register_used): Update call accordingly.
1037 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
1038 instead of a mode, tree and named flag.
1039 (sh_output_mi_thunk): Update call accordingly.
1040 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
1041 (sparc_function_incoming_arg): Take a function_arg_info instead of
1042 a mode, tree and named flag.
1043 * config/spu/spu.c (spu_function_arg): Likewise.
1044 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1045 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
1046 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
1047 * config/v850/v850.c (v850_function_arg): Likewise.
1048 * config/vax/vax.c (vax_function_arg): Likewise.
1049 * config/visium/visium.c (visium_function_arg): Likewise.
1050 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
1051 (xtensa_function_incoming_arg): Likewise.
1052
1053 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1054
1055 * target.def (setup_incoming_varargs): Take a function_arg_info
1056 instead of a mode and tree.
1057 * doc/tm.texi: Regenerate.
1058 * targhooks.h (default_setup_incoming_varargs): Take a
1059 function_arg_info instead of a mode and tree.
1060 * targhooks.c (default_setup_incoming_varargs): Likewise.
1061 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
1062 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1063 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1064 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
1065 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
1066 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1067 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
1068 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
1069 Likewise.
1070 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1071 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1072 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
1073 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1074 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1075 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1076 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1077 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1078 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1079 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1080 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1081 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1082 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1083 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1084 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1085 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1086 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1087 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1088 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1089 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1090 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1091 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1092 * function.c (assign_parms_setup_varargs): Update call to
1093 targetm.calls.setup_incoming_varargs.
1094
1095 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1096
1097 * target.def (pass_by_reference): Take a function_arg_info instead
1098 of a mode, type and named flag.
1099 * doc/tm.texi: Regenerate.
1100 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1101 accordingly.
1102 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1103 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1104 function_arg_info instead of a mode, type and named flag.
1105 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1106 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1107 mode, type and named flag.
1108 * calls.c (pass_by_reference): Likewise.
1109 (pass_va_arg_by_reference): Update call accordingly.
1110 (initialize_argument_information): Likewise.
1111 (emit_library_call_value_1): Likewise.
1112 * function.c (assign_parm_find_data_types): Likewise.
1113 * var-tracking.c (prepare_call_arguments): Likewise.
1114 * stor-layout.c: Include calls.h.
1115 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1116 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1117 function_arg_info instead of a mode, type and named flag.
1118 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1119 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1120 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1121 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1122 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1123 (c6x_call_saved_register_used): Update call to pass_by_reference.
1124 * config/cris/cris.c (cris_pass_by_reference): Take a
1125 function_arg_info instead of a mode, type and named flag.
1126 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1127 function_arg_info instead of a mode, type and named flag.
1128 (epiphany_arg_partial_bytes): Update call accordingly.
1129 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1130 function_arg_info instead of a mode, type and named flag.
1131 (ft32_arg_partial_bytes): Update call accordingly.
1132 * config/i386/i386.c (ix86_pass_by_reference): Take a
1133 function_arg_info instead of a mode, type and named flag.
1134 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1135 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1136 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1137 (m32r_return_in_memory): Update call accordingly.
1138 * config/mips/mips.c (mips_pass_by_reference): Take a
1139 function_arg_info instead of a mode, type and named flag.
1140 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1141 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1142 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1143 (moxie_arg_partial_bytes): Update call accordingly.
1144 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1145 function_arg_info instead of a mode, type and named flag.
1146 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1147 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1148 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1149 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1150 (riscv_return_in_memory): Update call accordingly.
1151 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1152 function_arg_info instead of a mode, type and named flag.
1153 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1154 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1155 * config/s390/s390.c (s390_pass_by_reference): Take a
1156 function_arg_info instead of a mode, type and named flag.
1157 (s390_call_saved_register_used): Update call accordingly.
1158 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1159 instead of a mode, type and named flag.
1160 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1161 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1162 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1163 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1164 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1165 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1166
1167 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1168
1169 * target.def (arg_partial_bytes): Take a function_arg_info instead
1170 of a mode, type and named flag.
1171 * doc/tm.texi: Regenerate.
1172 * target.h (function_arg_info): Declare.
1173 * calls.h (function_arg_info): New class.
1174 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1175 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1176 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1177 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1178 * calls.c (initialize_argument_information): Update call to
1179 targetm.calls.partial_bytes.
1180 (emit_library_call_value_1): Likewise.
1181 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1182 * function.c (assign_parm_find_entry_rtl): Likewise.
1183 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1184 function_arg_info instead of a mode, type and named flag.
1185 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1186 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1187 (cmse_func_args_or_return_in_stack): Update accordingly.
1188 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1189 function_arg_info instead of a mode, type and named flag.
1190 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1191 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1192 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1193 * config/fr30/fr30.c: Include calls.h.
1194 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1195 type and named flag.
1196 * config/frv/frv.c: Include calls.h.
1197 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1198 type and named flag.
1199 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1200 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1201 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1202 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1203 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1204 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1205 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1206 Likewise.
1207 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1208 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1209 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1210 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1211 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1212 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1213 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1214 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1215 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1216 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1217 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1218 (rs6000_parm_needs_stack): Update call accordingly.
1219 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1220 function_arg_info instead of a mode, type and named flag.
1221 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1222 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1223
1224 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1225
1226 * calls.h (must_pass_va_arg_in_stack): Declare.
1227 * calls.c (must_pass_va_arg_in_stack): New function.
1228 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1229 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1230 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1231 Likewise.
1232 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1233
1234 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1235
1236 * calls.h (pass_va_arg_by_reference): Declare.
1237 * calls.c (pass_va_arg_by_reference): New function.
1238 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1239 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1240 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1241 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1242 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1243 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1244 (mips_gimplify_va_arg_expr): Likewise.
1245 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1246 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1247 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1248 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1249 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1250 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1251 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1252 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1253 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1254 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1255 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1256
1257 2019-08-20 Richard Biener <rguenther@suse.de>
1258
1259 PR target/91498
1260 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1261 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1262 (convert_scalars_to_vector): Add timode_p parameter and use it
1263 to guard TImode-only operation.
1264 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1265 (pass_stv::execute): Pass down timode_p.
1266
1267 2019-08-20 Lili Cui <lili.cui@intel.com>
1268
1269 * common/config/i386/i386-common.c
1270 (processor_names): Add tigerlake and cooperlake.
1271 (processor_alias_table): Add tigerlake and cooperlake.
1272 * config.gcc: Add -march=tigerlake and cooperlake.
1273 * config/i386/driver-i386.c
1274 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1275 Add "has_avx" to classify processor.
1276 * config/i386/i386-builtins.c (processor_model) :
1277 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1278 (arch_names_table): Add tigerlake and cooperlake.
1279 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1280 and PROCESSOR_COOPERLAKE.
1281 * config/i386/i386-c.c
1282 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1283 * config/i386/i386-options.c
1284 (m_TIGERLAKE) : Define.
1285 (m_COOPERLAKE) : Ditto.
1286 (m_CORE_AVX512): Ditto.
1287 (processor_cost_table): Add cascadelake.
1288 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1289 * config/i386/i386.h
1290 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1291 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1292 (PTA_MOVDIRI): Ditto.
1293 (PTA_MOVDIR64B): Ditto.
1294 (PTA_COOPERLAKE) : Ditto.
1295 (PTA_TIGERLAKE) : Ditto.
1296 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1297 * doc/extend.texi: Add tigerlake and cooperlake.
1298 * doc/invoke.texi: Add tigerlake and cooperlake.
1299
1300 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1301
1302 * doc/install.texi (Specific, alpha): Remove note to use
1303 binutils 2.11.2 or later.
1304
1305 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1306
1307 PR middle-end/89544
1308 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1309 when possible.
1310
1311 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1312
1313 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1314 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1315 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1316 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1317 * config/aarch64/constraints.md (Dt): New constraint
1318 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1319
1320 2019-08-19 Richard Biener <rguenther@suse.de>
1321
1322 PR tree-optimization/91403
1323 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1324 cases we can handle with tail-recursion...
1325 (follow_ssa_edge_expr): ... here. Do so.
1326
1327 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1328
1329 PR target/91441
1330 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1331 implemented for -fsanitize=kernel-address, and merge check logic
1332 with -fsanitize=address.
1333
1334 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1335
1336 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1337 for cpu and machine. Factor 64/32b builtins.
1338
1339 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1340
1341 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1342 gone, point to sourceforge.net.
1343
1344 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1345
1346 * doc/ux.texi (User Experience Guidelines): Update reference.
1347
1348 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1349
1350 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1351 not LGPL".
1352
1353 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1354
1355 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1356 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1357
1358 2019-08-16 Martin Sebor <msebor@redhat.com>
1359
1360 * tree.def (TYPE_SIZE): Clarify.
1361 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1362
1363 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1364
1365 PR tree-optimization/91109
1366 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1367 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1368 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1369
1370 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1371
1372 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1373 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1374 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1375 (uavg<mode>3_ceil): New expander.
1376 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1377 mode iterator when creating CONST1_RTX.
1378 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1379 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1380 mode iterator for const1_operand predicate.
1381
1382 2019-08-16 Richard Biener <rguenther@suse.de>
1383
1384 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1385 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1386 follow_ssa_edge.
1387 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1388 (analyze_evolution_in_loop): Likewise.
1389 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1390 (follow_ssa_edge_expr): ... here. Refactor code.
1391
1392 2019-08-16 Richard Biener <rguenther@suse.de>
1393
1394 PR target/91469
1395 * config/i386/i386-features.c
1396 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1397
1398 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1399
1400 PR other/91255
1401 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1402 only if subst_name matches curr_attr string.
1403
1404 2019-08-16 Richard Biener <rguenther@suse.de>
1405
1406 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1407 stmt at gsi_p, instead replace it with a NOP removed later.
1408 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1409 that became dead because of that.
1410
1411 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1412
1413 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1414 for which we can't represent a range.
1415 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1416 set_varying.
1417 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1418 Set VR_UNDEFINED if type is not supported.
1419 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1420 * tree-vrp.c (value_range_base::check): Assert that a varying has
1421 min/max set.
1422 (value_range_base::equal_p): Early bail for undefines.
1423 (value_range_base::set_varying): Accept a type.
1424 (value_range::set_varying): Same.
1425 (value_range_base::type): VARYING can have a type, while UNDEFINE
1426 is typeless.
1427 (value_range_base::dump): Print type for VARYING nodes.
1428 (value_range_base::set): Add type to VARYING.
1429 (extract_range_from_multiplicative_op): Pass type to set_varying.
1430 (extract_range_from_binary_expr): Same.
1431 (value_range_base::intersect_helper): Same.
1432 (value_range_base::union_helper): Same.
1433 (value_range_base::normalize_symbolics): Same.
1434 (determine_value_range_1): Same.
1435 * tree-vrp.h (class value_range_base): Add type to set_varying.
1436 Add prototype for dump(void).
1437 Add prototype for supports_type_p.
1438 (class value_range): Add type to set_varying.
1439 Add prototype for dump(void).
1440 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1441 set_varying.
1442 (vr_values::get_lattice_entry): Set varying even if propagation
1443 finished.
1444 Pass type to set_varying.
1445 (vr_values::get_value_range): Remove vr_const_varying.
1446 Reallocate the lattice if needed.
1447 (vr_values::update_value_range): Pass type to set_varying.
1448 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1449 (vr_values::extract_range_from_binary_expr): Same.
1450 (vr_values::extract_range_from_unary_expr): Same.
1451 (vr_values::extract_range_from_cond_expr): Same.
1452 (vr_values::check_for_binary_op_overflow): Same.
1453 (vr_values::extract_range_basic): Same.
1454 (vr_values::extract_range_from_assignment): Same.
1455 (vr_values::vr_values): Increase size of num_vr_values.
1456 (vr_values::extract_range_from_phi_node): Pass type to
1457 set_varying.
1458
1459 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1460
1461 PR target/90878
1462 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1463 for costs of hard register moves.
1464 (ix86_register_move_cost): Likewise.
1465 * config/i386/i386.h (processor_costs): Move costs of hard
1466 register moves to hard_register. Add int_load, int_store,
1467 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1468 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1469 for costs of RTL expressions.
1470 * config/i386/x86-tune-costs.h: Move costs of hard register
1471 moves to hard_register. Duplicate int_load, int_store,
1472 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1473 sse_load, sse_store for costs of RTL expressions.
1474
1475 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1476
1477 * target.def (setup_incoming_vararg_bounds): Remove.
1478 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1479 * doc/tm.texi: Regenerate.
1480 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1481 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1482 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1483 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1484
1485 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1486
1487 MSP430: Fix lines over 80 characters long in
1488 config/msp430/*.{c,h} files
1489
1490 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1491 specifier in string.
1492 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1493 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1494 redundant old comment.
1495 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1496 Split line more than 80 characters long.
1497 * config/msp430/msp430.c (msp430_option_override): Likewise.
1498 (msp430_return_in_memory): Likewise.
1499 (msp430_gimplify_va_arg_expr): Likewise.
1500 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1501 (msp430_legitimate_constant): Likewise.
1502 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1503 (msp430_attr): Likewise.
1504 (msp430_data_attr): Likewise.
1505 (msp430_start_function): Likewise.
1506 (gen_prefix): Likewise.
1507 (msp430_init_sections): Likewise.
1508 (msp430_select_section): Likewise.
1509 (msp430_function_section): Likewise.
1510 (msp430_unique_section): Likewise.
1511 (msp430_output_aligned_decl_common): Likewise.
1512 (msp430_do_not_relax_short_jumps): Likewise.
1513 (msp430_init_builtins): Likewise.
1514 (msp430_expand_delay_cycles): Likewise.
1515 (msp430_expand_prologue): Likewise.
1516 (msp430_expand_epilogue): Likewise.
1517 (msp430_expand_helper): Likewise.
1518 (msp430_split_movsi): Likewise.
1519 (msp430_print_operand): Likewise.
1520 (msp430_return_addr_rtx): Likewise.
1521 (msp430x_extendhisi): Likewise.
1522 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1523 (ASM_SPEC): Likewise.
1524 Remove very obvious comments.
1525 (LIB_SPEC): Split line more than 80 characters long.
1526 (EH_RETURN_HANDLER_RTX): Likewise.
1527 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1528
1529 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1530
1531 MSP430: Fix whitespace errors and incorrect indentation in
1532 config/msp430/*.{c,h} files
1533
1534 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1535 (msp430_select_hwmult_lib): Likewise.
1536 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1537 (msp430_extract_mcu_data): Likewise.
1538 (struct t_msp430_mcu_data): Likewise.
1539 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1540 before left square bracket.
1541 (msp430_option_override): Fix indentation.
1542 (msp430_hard_regno_nregs_with_padding): Likewise.
1543 (msp430_initial_elimination_offset): Likewise.
1544 (msp430_special_register_convention_p): Remove whitespace before left
1545 square bracket and after exclamation mark.
1546 (msp430_evaluate_arg): Likewise.
1547 (msp430_callee_copies): Fix indentation.
1548 (msp430_gimplify_va_arg_expr): Likewise.
1549 (msp430_function_arg_advance): Remove whitespace before left square
1550 bracket.
1551 (reg_ok_for_addr): Likewise.
1552 (msp430_preserve_reg_p): Likewise.
1553 (msp430_compute_frame_info): Likewise.
1554 (msp430_asm_output_addr_const_extra): Add space between function name
1555 and open parenthesis.
1556 (has_section_name): Fix indentation.
1557 (msp430_attr): Remove trailing whitespace.
1558 (msp430_section_attr): Likewise.
1559 (msp430_data_attr): Likewise.
1560 (struct msp430_attribute_table): Fix comment and whitespace.
1561 (msp430_start_function): Remove whitespace before left square bracket.
1562 Add space between function name and open parenthesis.
1563 (msp430_select_section): Remove trailing whitespace.
1564 (msp430_section_type_flags): Remove trailing whitespace.
1565 (msp430_unique_section): Remove space before closing parenthesis.
1566 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1567 (msp430_builtins): Remove whitespace before left square bracket.
1568 (msp430_init_builtins): Fix indentation.
1569 (msp430_expand_prologue): Remove whitespace before left square bracket.
1570 Remove space before closing parenthesis.
1571 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1572 (msp430_split_movsi): Remove space before closing parenthesis.
1573 (helper_function_name_mappings): Fix indentation.
1574 (msp430_use_f5_series_hwmult): Fix whitespace.
1575 (use_32bit_hwmult): Likewise.
1576 (msp430_no_hwmult): Likewise.
1577 (msp430_output_labelref): Remove whitespace before left square bracket.
1578 (msp430_print_operand_raw): Likewise.
1579 (msp430_print_operand_addr): Likewise.
1580 (msp430_print_operand): Add two spaces after '.' in comment.
1581 Fix trailing whitespace.
1582 (msp430x_extendhisi): Fix indentation.
1583 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1584 tab.
1585 (PC_REGNUM): Likewise.
1586 (STACK_POINTER_REGNUM): Likewise.
1587 (CC_REGNUM): Likewise.
1588
1589 2019-08-15 Richard Biener <rguenther@suse.de>
1590
1591 PR target/91454
1592 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1593 helper.
1594 (general_scalar_chain::make_vector_copies): Use it.
1595
1596 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1597
1598 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1599
1600 2019-08-15 Martin Liska <mliska@suse.cz>
1601
1602 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1603 operators with no arguments.
1604 (eliminate_unnecessary_stmts): Likewise here.
1605
1606 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1607
1608 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1609 <case COMPARE>: Revert 2019-08-14 change.
1610 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1611 for (TARGET_64BIT || mode != DImode).
1612
1613 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1614
1615 * tree-vrp.c (value_range_base::set): Merge in code from
1616 value_range_base::set_and_canonicalize.
1617 Enforce canonicalization at set time.
1618 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1619 (value_range_base::set_undefined): Inline call to set().
1620 (value_range_base::set_varying): Same.
1621 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1622 (vrp_val_max): New argument handle_pointers.
1623 (vrp_val_min): Same.
1624 (ranges_from_anti_range): Same.
1625 (extract_range_into_wide_ints): Use tree argument instead of sign
1626 and precision.
1627 (extract_range_from_multiplicative_op): Take in tree type instead
1628 of precision and sign. Adapt function for canonicalized ranges.
1629 (extract_range_from_binary_expr): Pass type to
1630 extract_range_from_multiplicative_op.
1631 Adapt for canonicalized ranges.
1632 (extract_range_from_unary_expr): Same.
1633 (value_range_base::intersect_helper): Adjust for canonicalized
1634 ranges.
1635 (value_range_base::union_helper): Same.
1636 (value_range_base::normalize_symbolics): New.
1637 * tree-vrp.h (class value_range_base): Remove
1638 set_and_canonicalize.
1639 New prototype for normalize_symbolics.
1640 (class value_range): Remove set_and_canonicalize.
1641 (vrp_val_min): Adjust prototype.
1642 (vrp_val_max): Same.
1643 * vr-values.c
1644 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1645 instead of set_and_canonicalize.
1646
1647 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1648
1649 PR middle-end/91444
1650 * tree-vect-stmts.c (vectorizable_call): Check that the function
1651 is a BUILT_IN_MD function before passing it to
1652 targetm.vectorize.builtin_md_vectorized_function.
1653
1654 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1655
1656 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1657 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1658 (aarch64_select_early_remat_modes): Use it.
1659
1660 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1661
1662 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1663 16 for SVE predicates even if they are fixed-length.
1664
1665 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1666
1667 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1668 operand order match the MOV /Z alias.
1669
1670 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1671
1672 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1673 the vector pattern as an aarch64_svpattern argument. Update the
1674 overloaded caller accordingly.
1675 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1676 (aarch64_output_sve_vector_inc_dec): Likewise.
1677
1678 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1679
1680 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1681 multiplication case, try to compute VG * (lowest set bit) directly
1682 rather than always basing the multiplication on VG. Use
1683 expand_mult for the multiplication if we can.
1684
1685 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1686
1687 * config/aarch64/aarch64-protos.h
1688 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1689 (aarch64_sve_inc_dec_immediate_p): Rename to...
1690 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1691 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1692 (aarch64_output_sve_scalar_inc_dec): Declare.
1693 (aarch64_output_sve_inc_dec_immediate): Rename to...
1694 (aarch64_output_sve_vector_inc_dec): ...this.
1695 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1696 (aarch64_output_sve_scalar_inc_dec): New functions.
1697 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1698 arguments. Only handle true ADDVL and ADDPL instructions;
1699 don't emit an INC or DEC.
1700 (aarch64_sve_inc_dec_immediate_p): Rename to...
1701 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1702 (aarch64_output_sve_inc_dec_immediate): Rename to...
1703 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1704 aarch64_sve_vector_inc_dec_immediate_p.
1705 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1706 (aarch64_sve_plus_immediate): New predicates.
1707 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1708 rather than aarch64_sve_addvl_addpl_immediate.
1709 (aarch64_sve_inc_dec_immediate): Rename to...
1710 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1711 aarch64_sve_vector_inc_dec_immediate_p.
1712 (aarch64_sve_add_operand): Update accordingly.
1713 * config/aarch64/constraints.md (Uai): New constraint.
1714 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1715 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1716 operand into a register if it satisfies aarch64_sve_plus_immediate.
1717 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1718 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1719 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1720 aarch64_output_sve_vector_inc_dec instead of
1721 aarch64_output_sve_inc_dec_immediate.
1722
1723 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1724
1725 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1726 (UNSPEC_REVW): New constants.
1727 (elem_bits): New mode attribute.
1728 (SVE_INT_UNARY): New int iterator.
1729 (optab): Handle UNSPEC_REV[BHW].
1730 (sve_int_op): New int attribute.
1731 (min_elem_bits): Handle VNx16QI and the predicate modes.
1732 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1733 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1734 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1735 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1736 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1737 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1738 unspecs based on the total width of the reversed data.
1739 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1740 reinterpret followed by a subreg on big-endian targets.
1741
1742 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1743 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1744
1745 * config/aarch64/aarch64-sve.md
1746 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1747 alternatives in which one of the inputs is in the same register
1748 as the output.
1749
1750 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1751
1752 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1753 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1754
1755 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1756
1757 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1758 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1759
1760 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1761 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1762
1763 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1764 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1765 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1766
1767 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1768 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1769
1770 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1771 Add an alternative that uses reversed shifts.
1772
1773 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1774
1775 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1776 struct.
1777
1778 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1779
1780 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1781 a commutativity marker.
1782
1783 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1784 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1785
1786 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1787 (aarch64_prepare_sve_cond_int_fma): Declare.
1788 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1789 (aarch64_prepare_sve_int_fma): New functions.
1790 (aarch64_prepare_sve_cond_int_fma): Likewise.
1791 * config/aarch64/aarch64-sve.md
1792 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1793 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1794 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1795 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1796 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1797 (*madd<mode>): Rename to...
1798 (*fma<mode>4): ...this.
1799 (*msub<mode>): Rename to...
1800 (*fnma<mode>4): ...this.
1801
1802 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1803 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1804
1805 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1806 Print 2.0 naturally.
1807 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1808 * config/aarch64/predicates.md
1809 (aarch64_sve_float_negated_arith_immediate): New predicate,
1810 renamed from aarch64_sve_float_arith_with_sub_immediate.
1811 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1812 positive and negative constants.
1813 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1814 or an aarch64_sve_float_arith_with_sub_immediate.
1815 * config/aarch64/constraints.md (vsN): Use
1816 aarch64_sve_float_negated_arith_immediate.
1817 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1818 iterator.
1819 (sve_pred_fp_rhs2_immediate): New int attribute.
1820 * config/aarch64/aarch64-sve.md
1821 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1822 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1823 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1824 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1825 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1826 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1827
1828 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1829 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1830
1831 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1832 (*aarch64_cond_abd<SVE_F:mode>_3)
1833 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1834
1835 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1836 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1837
1838 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1839 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1840
1841 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1842 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1843
1844 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1845 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1846 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1847 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1848 optabs.
1849 * optabs.h (create_convert_operand_from): Expand comment.
1850 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1851 when mapping scalar rtxes to vector operands.
1852 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1853 ashiftrt and lshiftrt.
1854 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1855 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1856 (*cond_<optab><mode>_any_const): New patterns.
1857
1858 2019-08-15 Martin Liska <mliska@suse.cz>
1859
1860 PR ipa/91438
1861 * cgraph.c (cgraph_node::remove): When setting
1862 n->origin = NULL for all nested functions, reset
1863 also next_nested.
1864
1865 2019-08-15 Martin Liska <mliska@suse.cz>
1866
1867 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1868 and next_nested.
1869
1870 2019-08-15 Martin Liska <mliska@suse.cz>
1871
1872 PR ipa/91404
1873 * passes.c (order): Remove.
1874 (uid_hash_t): Likewise).
1875 (remove_cgraph_node_from_order): Remove from set
1876 of pointers (cgraph_node *).
1877 (insert_cgraph_node_to_order): New.
1878 (duplicate_cgraph_node_to_order): New.
1879 (do_per_function_toporder): Register all 3 cgraph hooks.
1880 Skip removed_nodes now as we know about all of them.
1881
1882 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1883
1884 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1885 <case E_V8QImode>: Use vector_set path for
1886 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1887 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1888 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1889
1890 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1891
1892 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1893
1894 2019-08-14 Martin Sebor <msebor@redhat.com>
1895
1896 PR tree-optimization/91294
1897 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1898 source length as exact.
1899
1900 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1901
1902 * doc/extend.texi: Add "noinit" attribute documentation.
1903 * doc/sourcebuild.texi: Add noinit effective target documentation.
1904 * varasm.c (default_section_type_flags): Add support for "noinit"
1905 section.
1906 (default_elf_select_section): Add support for "noinit" attribute.
1907 * config/msp430/msp430.c (msp430_attribute_table): Remove
1908 "noinit" entry.
1909
1910 2019-08-14 Richard Biener <rguenther@suse.de>
1911 Uroš Bizjak <ubizjak@gmail.com>
1912
1913 PR target/91154
1914 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1915 mode arguments.
1916 (scalar_chain::smode): New member.
1917 (scalar_chain::vmode): Likewise.
1918 (dimode_scalar_chain): Rename to...
1919 (general_scalar_chain): ... this.
1920 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1921 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1922 base with TImode and V1TImode.
1923 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1924 (general_scalar_chain::vector_const_cost): Adjust for SImode
1925 chains.
1926 (general_scalar_chain::compute_convert_gain): Likewise. Add
1927 {S,U}{MIN,MAX} support.
1928 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1929 (general_scalar_chain::make_vector_copies): Likewise. Handle
1930 non-DImode chains appropriately.
1931 (general_scalar_chain::convert_reg): Likewise.
1932 (general_scalar_chain::convert_op): Likewise.
1933 (general_scalar_chain::convert_insn): Likewise. Add
1934 fatal_insn_not_found if the result is not recognized.
1935 (convertible_comparison_p): Pass in the scalar mode and use that.
1936 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1937 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1938 (scalar_to_vector_candidate_p): Remove by inlining into single
1939 caller.
1940 (general_remove_non_convertible_regs): Rename from
1941 dimode_remove_non_convertible_regs.
1942 (remove_non_convertible_regs): Remove by inlining into single caller.
1943 (convert_scalars_to_vector): Handle SImode and DImode chains
1944 in addition to TImode chains.
1945 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
1946 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
1947 (*<maxmin>di3_doubleword): Likewise.
1948
1949 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1950 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1951
1952 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
1953 (*cond_bic<mode>_any): New patterns.
1954
1955 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1956
1957 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
1958 take the equivalent mask, as well as a bit count.
1959 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
1960 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
1961 (aarch64_sve_pred_and_operand): New predicates.
1962 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
1963 code attribute.
1964 * config/aarch64/aarch64-sve.md
1965 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
1966 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
1967
1968 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1969
1970 * config/aarch64/aarch64-sve.md
1971 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
1972 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
1973 New patterns.
1974
1975 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1976 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1977
1978 * config/aarch64/aarch64-sve.md
1979 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
1980 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
1981
1982 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1983 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1984
1985 * config/aarch64/aarch64-sve.md
1986 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
1987 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
1988
1989 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1990
1991 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
1992 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
1993 New pattern.
1994
1995 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
1996 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1997
1998 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
1999
2000 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2001 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2002
2003 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2004 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2005 (aarch64_print_operand): Add support for %I.
2006 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2007 Bitcast floating-point constants to the corresponding integer constant.
2008 (aarch64_float_const_representable_p): Handle vectors as well
2009 as scalars.
2010 (aarch64_expand_sve_vcond): Make sure that the operands are valid
2011 for the new vcond_mask_<mode><vpred> expander.
2012 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
2013 test aarch64_float_const_representable_p.
2014 (aarch64_sve_reg_or_dup_imm): New predicate.
2015 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
2016 gen_vcond_mask_<mode><vpred> instead of
2017 gen_aarch64_sve_dup<mode>_const.
2018 (vcond_mask_<mode><vpred>): Turn into a define_expand that
2019 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
2020 for operands 1 and 2 respectively. Force operand 2 into a
2021 register if operand 1 is a register. Fold old define_insn...
2022 (aarch64_sve_dup<mode>_const): ...and this define_insn...
2023 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
2024 floating-point constants that can be moved as integers. Add
2025 alternatives for MOV /M and FMOV /M.
2026 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
2027 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
2028 1 and 2 respectively.
2029 * config/aarch64/constraints.md (Ufc): Handle vectors as well
2030 as scalars.
2031 (vss): New constraint.
2032
2033 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2034
2035 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
2036 (aarch64_sve_float_maxmin_operand): New predicates.
2037 * config/aarch64/constraints.md (vsB): New constraint.
2038 (vsM): Fix typo.
2039 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
2040 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
2041 UNSPEC_COND_FMINNM.
2042 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
2043 Use aarch64_sve_float_maxmin_operand for operand 2.
2044 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
2045 Add alternatives for the constant forms.
2046
2047 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2048
2049 * config/aarch64/constraints.md (vsb): New constraint.
2050 (vsm): Generalize description.
2051 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
2052 iterator.
2053 (sve_imm_con): Handle smax, smin, umax and umin.
2054 (sve_imm_prefix): New code attribute.
2055 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
2056 (aarch64_sve_vsb_operand): New predicates.
2057 (aarch64_sve_mul_immediate): Rename to...
2058 (aarch64_sve_vsm_immediate): ...this.
2059 (aarch64_sve_mul_operand): Rename to...
2060 (aarch64_sve_vsm_operand): ...this.
2061 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
2062 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
2063 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
2064 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
2065 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
2066 add movprfx support for the immediate alternatives.
2067 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
2068 of the above.
2069 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
2070 for operand 3.
2071
2072 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2073
2074 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
2075 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
2076 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
2077
2078 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2079
2080 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2081 (optab, sve_int_op): Handle them.
2082 * config/aarch64/aarch64-sve.md: Expand comment.
2083
2084 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2085
2086 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2087 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2088 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2089
2090 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2091
2092 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2093 (aarch64_expand_sve_const_pred_trn): New functions.
2094 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2095 use the above functions when the parameter is true.
2096 (aarch64_expand_sve_const_pred): Update call accordingly.
2097 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2098 Rename to...
2099 (@aarch64_sve_<perm_insn><mode>): ...this.
2100
2101 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2102
2103 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2104 Declare.
2105 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2106 (aarch64_sve_emit_int_cmp): New functions.
2107 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2108 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2109 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2110 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2111 (UNSPEC_PRED_Z): New unspec.
2112 (set_clobber_cc_nzc): Delete.
2113 * config/aarch64/aarch64-sve.md: Add a block comment about
2114 UNSPEC_PRED_Z.
2115 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2116 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2117 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2118 UNSPEC_MERGE_PTRUE.
2119 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2120 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2121 check for compatible predicates.
2122 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2123 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2124 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2125 comparisons above.
2126
2127 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2128
2129 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2130 * config/aarch64/aarch64-sve.md: Add a section describing it.
2131 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2132 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2133 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2134 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2135 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2136 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2137 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2138 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2139 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2140 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2141 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2142 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2143 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2144 (aarch64_evpc_rev_local): Update accordingly.
2145
2146 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2147
2148 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2149 iterators.
2150 (SVE_BHSI, SVE_SDI): Tweak comment.
2151 (SVE_HSDI): Likewise. Fix definition.
2152 (SVE_SDF): New mode iterator.
2153 (elem_bits): New mode attribute.
2154 (SVE_COND_FCVT): New int iterator.
2155 * config/aarch64/aarch64-sve.md
2156 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2157 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2158 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2159 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2160 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2161 ...these new patterns.
2162 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2163 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2164 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2165 Merge into...
2166 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2167 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2168 ...these new patterns.
2169 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2170 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2171 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2172 ...this new pattern.
2173 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2174 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2175 ...this new pattern.
2176 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2177
2178 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2179
2180 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2181 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2182 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2183 unspecs.
2184 (optab, su): Handle them.
2185 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2186 * config/aarch64/aarch64-sve.md
2187 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2188 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2189 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2190 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2191 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2192 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2193 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2194 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2195 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2196 FIXUORS.
2197 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2198 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2199 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2200 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2201 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2202 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2203 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2204 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2205 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2206 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2207 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2208 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2209 of UNSPEC_FLOAT_CONVERT.
2210 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2211 aarch64_sve_extend<mode><Vwide>2.
2212
2213 2019-08-14 Richard Biener <rguenther@suse.de>
2214
2215 PR target/91154
2216 * config/i386/i386-features.c
2217 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2218 individual instruction gain. Fix reg-reg copy GRP cost. Use
2219 ix86_cost->sse_op for vector instruction costs.
2220
2221 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2222
2223 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2224 (cmp_op): Handle it.
2225 (SVE_COND_FP_CMP): Rename to...
2226 (SVE_COND_FP_CMP_I0): ...this.
2227 (SVE_FP_CMP): Remove.
2228 * config/aarch64/aarch64-sve.md
2229 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2230 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2231 using unspecs to represent the comparison.
2232 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2233 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2234 accordingly.
2235 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2236 (aarch64_unspec_cond_code): Move after integer code. Handle
2237 UNORDERED.
2238 (aarch64_emit_sve_predicated_cond): Replace with...
2239 (aarch64_emit_sve_fp_cond): ...this new function.
2240 (aarch64_emit_sve_or_conds): Replace with...
2241 (aarch64_emit_sve_or_fp_conds): ...this new function.
2242 (aarch64_emit_sve_inverted_cond): Replace with...
2243 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2244 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2245
2246 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2247
2248 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2249 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2250 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2251 SVE_HSD instead of SVE_SD.
2252
2253 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2254 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2255
2256 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2257 iterator.
2258 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2259 attributes.
2260 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2261 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2262 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2263 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2264 (*div<SVE_F:mode>3): Generalize to...
2265 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2266
2267 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2268 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2269
2270 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2271 constants.
2272 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2273 predicate.
2274 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2275 Declare.
2276 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2277 function.
2278 * config/aarch64/aarch64-sve.md: Add a block comment about the
2279 handling of predicated FP operations.
2280 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2281 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2282 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2283 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2284 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2285 operand.
2286 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2287 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2288 operand.
2289 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2290 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2291 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2292 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2293 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2294 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2295 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2296 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2297 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2298 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2299 strictness operands. Use aarch64_sve_pred_dominates_p to check
2300 whether the predicate on the conditional operation is suitable
2301 for merging. Split patterns into the canonical equal-predicate form.
2302 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2303 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2304
2305 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2306 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2307
2308 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2309 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2310 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2311 rtx codes.
2312 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2313 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2314 unspecs.
2315
2316 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2317 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2318
2319 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2320 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2321 actually has, rather than relying on REG_EQUAL notes.
2322 Make the insn operand order match the SVE operand order.
2323 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2324 the SVE operand order.
2325
2326 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2327
2328 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2329 (aarch64_emit_set_immediate): Likewise.
2330 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2331 (aarch64_pfalse_reg): Likewise.
2332 (aarch64_convert_sve_data_to_pred): New function.
2333 (aarch64_sve_move_pred_via_while): Take an optional target register
2334 and the required register mode.
2335 (aarch64_expand_sve_const_pred_1): New function.
2336 (aarch64_expand_sve_const_pred): Likewise.
2337 (aarch64_expand_mov_immediate): Build an all-true predicate
2338 if the significant bits of the immediate are all true. Use
2339 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2340 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2341 before register allocation.
2342 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2343 a VNx16BI PTRUE when splitting the memory alternative.
2344 (vec_duplicate<mode>): Update accordingly.
2345 (*pred_cmp<cmp_op><mode>): Rename to...
2346 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2347
2348 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2349
2350 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2351 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2352 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2353 (UNSPEC_PTEST): New unspec.
2354 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2355 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2356 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2357 * config/aarch64/aarch64-sve.md: Add a new section describing the
2358 handling of UNSPEC_PTEST.
2359 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2360 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2361 (ptest_ptrue<mode>): Replace with...
2362 (aarch64_ptest<mode>): ...this new pattern.
2363 (cbranch<mode>4): Update after above changes.
2364 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2365 UNSPEC_PTEST_PTRUE.
2366 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2367 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2368 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2369
2370 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2371
2372 PR lto/91287
2373 * builtins.c (builtin_with_linkage_p): New function.
2374 * builtins.h (builtin_with_linkage_p): New function.
2375 * symtab.c (write_symbol): Remove redundant assert.
2376 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2377 Remove FIXME and use builtin_with_linkage_p.
2378
2379 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2380
2381 PR middle-end/91421
2382 * tree-core.h (function_decl::function_code): Change type to
2383 unsigned int.
2384 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2385 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2386 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2387 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2388 is BUILT_IN_NORMAL.
2389 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2390 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2391 (fndecl_built_in_p): Change the type of the "name" argument to
2392 unsigned int.
2393 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2394 after check for DECL_BUILT_IN_CLASS.
2395 * cgraphclones.c (build_function_decl_skip_args): Use
2396 set_decl_built_in_function.
2397 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2398 * ipa-split.c (split_function): Likewise.
2399 * langhooks.c (add_builtin_function_common): Likewise.
2400 * omp-simd-clone.c (simd_clone_create): Likewise.
2401 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2402 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2403 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2404 DECL_FUNCTION_CODE.
2405 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2406 instead of DECL_FUNCTION_CODE.
2407 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2408 instead of DECL_FUNCTION_CODE.
2409 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2410 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2411 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2412 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2413 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2414 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2415 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2416 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2417 (alpha_gimple_fold_builtin): Likewise.
2418 * config/arc/arc.c (arc_expand_builtin): Likewise.
2419 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2420 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2421 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2422 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2423 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2424 * config/frv/frv.c (frv_expand_builtin): Likewise.
2425 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2426 (gcn_expand_builtin): Likewise.
2427 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2428 (fold_builtin_cpu): Likewise.
2429 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2430 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2431 (ix86_gimple_fold_builtin): Likewise.
2432 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2433 (ia64_expand_builtin): Likewise.
2434 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2435 * config/mips/mips.c (mips_expand_builtin): Likewise.
2436 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2437 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2438 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2439 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2440 * config/pa/pa.c (pa_expand_builtin): Likewise.
2441 * config/pru/pru.c (pru_expand_builtin): Likewise.
2442 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2443 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2444 Likewise.
2445 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2446 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2447 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2448 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2449 (rs6000_builtin_reciprocal): Likewise.
2450 * config/rx/rx.c (rx_expand_builtin): Likewise.
2451 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2452 * config/s390/s390.c (s390_expand_builtin): Likewise.
2453 * config/sh/sh.c (sh_expand_builtin): Likewise.
2454 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2455 (sparc_fold_builtin): Likewise.
2456 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2457 * config/spu/spu.c (spu_expand_builtin): Likewise.
2458 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2459 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2460 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2461 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2462 (xtensa_expand_builtin): Likewise.
2463
2464 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2465
2466 PR middle-end/91421
2467 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2468 before the DECL_FUNCTION_CODE.
2469 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2470 to check for a BUILT_IN_ALLOCA call.
2471 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2472 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2473 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2474 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2475 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2476 for BUILT_IN_NORMAL functions.
2477 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2478 test for BUILT_IN_TM_ABORT.
2479 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2480 to check for a BUILT_IN_STACK_RESTORE call.
2481 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2482 * tree-ssa-threadedge.c
2483 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2484 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2485 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2486 test for a BUILT_IN_NORMAL call instead of a negative test for
2487 an internal function call.
2488
2489 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2490
2491 * tree.h (build_vector_a_then_b): Declare.
2492 * tree.c (build_vector_a_then_b): New function.
2493 * fold-const-call.c (fold_while_ult): Likewise.
2494 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2495 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2496 (aarch64_svpattern): New enum.
2497 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2498 constants through aarch64_expand_mov_immediate.
2499 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2500 than general_operand as the predicate for operand 1.
2501 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2502 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2503 insn_type.
2504 (simd_immediate_info::simd_immediate_info): New overload that
2505 takes a scalar_int_mode and an svpattern.
2506 (simd_immediate_info::u): Add a "pattern" field.
2507 (svpattern_token): New function.
2508 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2509 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2510 (aarch64_sve_move_pred_via_while): New functions.
2511 (aarch64_expand_mov_immediate): Try using
2512 aarch64_sve_move_pred_via_while for predicates that contain N ones
2513 followed by M zeros but that do not correspond to a VLnnn pattern.
2514 (aarch64_sve_pred_valid_immediate): New function.
2515 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2516 with PTRUE and PFALSE.
2517 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2518 forms.
2519
2520 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2521
2522 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2523 flag.
2524 (darwin_override_options): Likewise.
2525 * config/darwin.h: Likewise.
2526 * config/darwin.opt: Likewise.
2527 * config/i386/i386.c (output_pic_addr_const): Likewise.
2528 * config/rs6000/darwin.h: Likewise.
2529 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2530 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2531 ... this TARGET_MACHO_SYMBOL_STUBS.
2532 (FUNCTION_PROFILER):Likewise.
2533 * config/i386/i386.h: Likewise.
2534
2535 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2536
2537 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2538 <case E_V2SImode>: Use vec_extr path for
2539 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2540 <case E_V8QImode>: Ditto.
2541 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2542 Use SWI48 mode iterator. Use %k to output operand 0.
2543 (*mmx_pextrw): New insn pattern.
2544 (*mmx_pextrb): Ditto.
2545 (*mmx_pextrb_zext): Ditto.
2546
2547 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2548
2549 * target.def (libc_has_function, libc_has_fast_function): Improve
2550 documentation strings.
2551 * doc/tm.texi: Regenerate.
2552
2553 2019-08-13 Caroline Tice <cmtice@google.com>
2554
2555 PR other/91396
2556 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2557 vtv_end.o or vtv_end_preinit.o files if !static.
2558
2559 2019-08-13 Olivier Hainque <hainque@adacore.com>
2560
2561 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2562
2563 2019-08-13 Olivier Hainque <hainque@adacore.com>
2564
2565 * rtlanal.c (tablejump_casesi_pattern): New function, to
2566 determine if a tablejump insn is a casesi dispatcher. Extracted
2567 from patch_jump_insn.
2568 * rtl.h (tablejump_casesi_pattern): Declare.
2569 * cfgrtl.c (patch_jump_insn): Use it.
2570 * dwarf2cfi.c (create_trace_edges): Use it.
2571
2572 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2573
2574 PR target/81800
2575 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2576 operand is larger than a long int.
2577
2578 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2579
2580 * machmode.h (opt_mode::else_mode): New function.
2581 (opt_mode::else_blk): Use it.
2582 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2583 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2584 (aarch64_gen_stepped_int_parallel): Likewise.
2585 (aarch64_stepped_int_parallel_p): Likewise.
2586 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2587 argument.
2588 * config/aarch64/aarch64.c
2589 (aarch64_expand_sve_widened_duplicate): Delete.
2590 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2591 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2592 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2593 argument. Use early returns in the !CONST_INT_P handling.
2594 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2595 than handling some inline.
2596 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2597 from...
2598 (aarch64_simd_container_mode): ...here.
2599 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2600 (aarch64_sve_ld1rq_operand_p): New functions.
2601 * config/aarch64/predicates.md (descending_int_parallel)
2602 (aarch64_sve_ld1rq_operand): New predicates.
2603 * config/aarch64/constraints.md (UtQ): New constraint.
2604 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2605 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2606 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2607 (@aarch64_sve_reinterpret<mode>): New expander.
2608 (*aarch64_sve_reinterpret<mode>): New pattern.
2609 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2610 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2611 (*sve_ld1rq<Vesize>): Replace with...
2612 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2613
2614 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2615
2616 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2617 16:12.
2618
2619 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2620
2621 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2622 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2623 (msp430_check_path_for_devices): New.
2624 (parse_devices_csv_1): New.
2625 (parse_devices_csv): New.
2626 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2627 MCU data in devices.csv before using the hard-coded data.
2628 Warn if devices.csv isn't found and the MCU wasn't found in the
2629 hard-coded data either.
2630 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2631 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2632 Search for devices.csv on -I and -L paths.
2633 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2634 msp430_set_driver_var.
2635 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2636 -mdevices-csv-loc=.
2637 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2638 searched for devices.csv.
2639 (mwarn-devices-csv): Document option.
2640
2641 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2642
2643 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2644 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2645 Use a single Dn alternative instead of separate Dz and Dm
2646 alternatives. Use aarch64_output_sve_move_immediate.
2647 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2648 function.
2649 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2650 for predicates too.
2651 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2652 (aarch64_output_ptrue): Delete.
2653
2654 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2655
2656 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2657 INDEX.
2658 (simd_immediate_info::value, simd_immediate_info::step)
2659 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2660 with...
2661 (simd_immediate_info::u): ...this new union.
2662 (simd_immediate_info::simd_immediate_info): Update accordingly.
2663 (aarch64_output_simd_mov_immediate): Likewise.
2664 (aarch64_output_sve_mov_immediate): Likewise.
2665
2666 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2667
2668 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2669 extra_gcc_objs.
2670 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2671 (msp430_select_cpu): New spec function.
2672 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2673 MCU data.
2674 * config/msp430/msp430-devices.c: New file.
2675 * config/msp430/msp430-devices.h: New file.
2676 * config/msp430/msp430.c: Remove msp430_mcu_data.
2677 (msp430_option_override): Use msp430_extract_mcu_data to extract
2678 MCU data.
2679 (msp430_use_f5_series_hwmult): Likewise.
2680 (use_32bit_hwmult): Likewise.
2681 (msp430_no_hwmult): Likewise.
2682 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2683 assembler.
2684 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2685 and -mcpu option.
2686 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2687 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2688 Remove hard-coded MCU multilib data.
2689
2690 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2691
2692 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2693 based on the mode instead of testing properties of it.
2694
2695 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2696
2697 * doc/md.texi: Document the x and y constraints for AArch64.
2698 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2699 (FP_LO8_REGS): New reg_class.
2700 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2701 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2702 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2703 * config/aarch64/predicates.md (aarch64_simd_register): Use
2704 FP_REGNUM_P instead of checking the classes manually.
2705 * config/aarch64/constraints.md (y): New constraint.
2706
2707 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2708
2709 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2710 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2711 * config/aarch64/aarch64-simd.md
2712 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2713 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2714 from the asm template.
2715 * config/aarch64/aarch64-sve.md
2716 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2717 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2718 from the asm template.
2719 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2720 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2721 from the asm template.
2722 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2723
2724 2019-08-13 Martin Liska <mliska@suse.cz>
2725
2726 * value-prof.c (gimple_ic_transform): Add new line.
2727 Print details with MSG_NOTE.
2728
2729 2019-08-13 Martin Liska <mliska@suse.cz>
2730
2731 * doc/invoke.texi: Document automatic detection of jobserver.
2732 * lto-wrapper.c (run_gcc): Detect jobserver always.
2733
2734 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2735
2736 * config/i386/i386-expand.c (ix86_expand_vector_set)
2737 <case E_V2SImode>: Use vec_merge path for
2738 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2739 <case E_V8QImode>: Ditto.
2740 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2741 (*mmx_pinsrb): Ditto.
2742
2743 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2744
2745 PR target/83250
2746 PR target/91340
2747 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2748 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2749 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2750 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2751 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2752
2753 2019-08-12 Richard Biener <rguenther@suse.de>
2754
2755 PR lto/91375
2756 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2757 flag_devirtualize.
2758
2759 2019-08-12 Richard Biener <rguenther@suse.de>
2760
2761 PR driver/91130
2762 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2763 lang_mask option, always use CL_DRIVER.
2764 (get_options_from_collect_gcc_options): Adjust.
2765 (find_and_merge_options): Likewise.
2766 (run_gcc): Likewise.
2767
2768 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2769
2770 * ipa-predicate.c (add_condition): Restore inverted test.
2771
2772 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2773
2774 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2775 (enum omp_clause_device_type_kind): New enum.
2776 (struct tree_omp_clause): Add subcode.device_type_kind.
2777 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2778 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2779 for device_type clause.
2780 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2781 * tree-pretty-print.c (dump_omp_clause): Likewise.
2782
2783 PR target/91408
2784 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2785 vector_operand.
2786
2787 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2788
2789 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2790 handling spilled pseudos.
2791
2792 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2793
2794 PR target/91386
2795 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2796 to preserve the contents of the original insns.
2797
2798 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2799
2800 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2801 (addsi3_compare_op2): Likewise.
2802
2803 2019-08-09 Martin Liska <mliska@suse.cz>
2804
2805 * alias.c (alias_ptr_types_compatible_p): Strengten
2806 type comparison in LTO mode.
2807
2808 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2809
2810 PR middle-end/90313
2811 * tree-tailcall.c (find_tail_calls): Reject calls that might
2812 read from an escaped RESULT_DECL.
2813
2814 2019-08-09 Martin Liska <mliska@suse.cz>
2815
2816 * doc/invoke.texi: Document the option value.
2817 * lto-wrapper.c (run_gcc): Set auto_parallel
2818 only with -flto=auto.
2819
2820 2019-08-09 Martin Liska <mliska@suse.cz>
2821
2822 * opts.c (common_handle_option): Error for an invalid argument
2823 to -flto=.
2824
2825 2019-08-09 Martin Liska <mliska@suse.cz>
2826
2827 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2828 use dump_printf to report optimization.
2829 (sem_variable::merge): Likwise.
2830 (sem_item_optimizer::merge_classes): Use dump_printf to report
2831 ICF hits.
2832
2833 2019-08-09 Martin Liska <mliska@suse.cz>
2834
2835 * value-prof.c (gimple_divmod_fixed_value_transform):
2836 Use dump_printf_loc.
2837 (gimple_mod_pow2_value_transform): Likewise.
2838 (gimple_mod_subtract_transform): Likewise.
2839 (init_node_map): Likewise.
2840 (gimple_ic_transform): Likewise.
2841 (gimple_stringops_transform): Likewise.
2842
2843 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2844
2845 * doc/extend.texi: Add const qualifier to ld intrinsics.
2846
2847 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2848
2849 * config/rs6000/dfp.md (D64_D128): Rename to ...
2850 (DDTD): ... this, throughout.
2851 (dfp_suffix): Rename to ...
2852 (q): ... this, throughout.
2853
2854 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2855
2856 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2857 (dfp_suffix): Ditto.
2858 (adddd3, addtd3): Merge to ...
2859 (add<mode>3 for D64_D128): ... this.
2860 (subdd3, subtd3): Merge to ...
2861 (sub<mode>3 for D64_D128): ... this.
2862 (muldd3, multd3): Merge to ...
2863 (mul<mode>3 for D64_D128): ... this.
2864 (divdd3, divtd3): Merge to ...
2865 (div<mode>3 for D64_D128): ... this.
2866 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2867 (*cmp<mode>_internal1 for D64_D128): ... this.
2868 (ftruncdd2, ftrunctd2): Merge to ...
2869 (ftrunc<mode>2 for D64_D128): ... this.
2870 (fixdddi2, fixtddi2): Merge to ...
2871 (fix<mode>di2 for D64_D128): ... this.
2872
2873 2019-08-08 Jim Wilson <jimw@sifive.com>
2874
2875 PR target/91229
2876 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2877 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2878 Pass into recursive call.
2879 (riscv_flatten_aggregate_argument): New arg. Pass to
2880 riscv_flatten_aggregate_field.
2881 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2882 riscv_flatten_aggregate_argument twice, with false and true as last
2883 arg. Process result twice. Compare results and warn if different.
2884 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2885
2886 2019-08-08 Martin Liska <mliska@suse.cz>
2887
2888 PR bootstrap/91352
2889 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2890 * lto-wrapper.c (jobserver_active_p): Likewise.
2891
2892 2019-08-08 Martin Liska <mliska@suse.cz>
2893
2894 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2895 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2896 (create_version_clone_with_body): Likewise.
2897
2898 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2899
2900 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2901 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2902 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2903 GOVD_EXPLICIT flags.
2904 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2905 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2906 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2907 call install_var_field with mask 11 instead of 3.
2908 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2909 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2910
2911 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2912
2913 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2914 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2915
2916 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2917
2918 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2919 MOVPRFX alternatives. Make the GPR alternatives more expensive
2920 than the FPR ones.
2921
2922 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2923
2924 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2925 Disparage the GPR alternative relative to the FPR one.
2926 Fix handling of 8-bit and 16-bit FPR values.
2927
2928 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2929
2930 * config/aarch64/iterators.md (BITWISEV): Delete.
2931 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2932 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2933 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2934 UNSPEC_FMINNMV, UNSPEC_FMINV.
2935 (bit_reduc_op): Delete.
2936 (sve_int_op): New int attribute.
2937 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2938 UNSPEC_FMINNMV, UNSPEC_FMINV.
2939 * config/aarch64/aarch64-sve.md
2940 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2941 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2942 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2943 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
2944 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
2945 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
2946 new patterns.
2947 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
2948 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
2949 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
2950 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
2951 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
2952 new patterns.
2953
2954 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2955
2956 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
2957 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
2958 (fms<mode>4, *fms<mode>4): Replace with...
2959 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2960 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
2961 Use unspecs instead of rtx codes.
2962 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
2963 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
2964
2965 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2966
2967 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
2968 int iterator.
2969 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
2970 * config/aarch64/aarch64-sve.md
2971 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
2972 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
2973 use a single unspec for the rhs.
2974 (*<su><maxmin><mode>3): Delete.
2975 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
2976
2977 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2978
2979 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
2980 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
2981 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
2982 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
2983 (optab, sve_fp_op): Handle them.
2984 (SVE_FP_UNARY): Delete.
2985 (optab): Remove sqrt entry.
2986 (sve_fp_op): Remove neg, abs and sqrt entries.
2987 (SVE_COND_FP_UNARY): New int iterator.
2988 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
2989 (*<frint_pattern><mode>2): Delete.
2990 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2991 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2992 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
2993 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
2994
2995 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2996
2997 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
2998
2999 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3000
3001 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3002 (UNSPEC_COND_FADD): ...this.
3003 (UNSPEC_COND_SUB): Rename to...
3004 (UNSPEC_COND_FSUB): ...this.
3005 (UNSPEC_COND_MUL): Rename to...
3006 (UNSPEC_COND_FMUL): ...this.
3007 (UNSPEC_COND_DIV): Rename to...
3008 (UNSPEC_COND_FDIV): ...this.
3009 (UNSPEC_COND_MAX): Rename to...
3010 (UNSPEC_COND_FMAXNM): ...this.
3011 (UNSPEC_COND_MIN): Rename to...
3012 (UNSPEC_COND_FMINNM): ...this.
3013 (UNSPEC_COND_LT): Rename to...
3014 (UNSPEC_COND_FCMLT): ...this.
3015 (UNSPEC_COND_LE): Rename to...
3016 (UNSPEC_COND_FCMLE): ...this.
3017 (UNSPEC_COND_EQ): Rename to...
3018 (UNSPEC_COND_FCMEQ): ...this.
3019 (UNSPEC_COND_NE): Rename to...
3020 (UNSPEC_COND_FCMNE): ...this.
3021 (UNSPEC_COND_GE): Rename to...
3022 (UNSPEC_COND_FCMGE): ...this.
3023 (UNSPEC_COND_GT): Rename to...
3024 (UNSPEC_COND_FCMGT): ...this.
3025 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
3026 (sve_fp_op_rev): Update accordingly.
3027 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
3028
3029 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3030
3031 * config/aarch64/aarch64-sve.md: Reorganize contents and add
3032 banner comments.
3033 * config/aarch64/check-sve-md.awk: New file.
3034 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
3035 (insn-conditions.md): Depend on it.
3036
3037 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
3038
3039 PR target/91385
3040 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
3041 (*negsi2_cmpz_zext): Ditto.
3042
3043 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3044
3045 * config/aarch64/iterators.md (commutative): Remove.
3046
3047 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
3048
3049 PR driver/91130
3050 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
3051 processing COLLECT_GCC_OPTIONS.
3052 (run_gcc): Likewise.
3053
3054 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3055
3056 PR tree-optimization/91109
3057 * lra-remat.c (update_scratch_ops): Remove assignment of the
3058 hard register.
3059
3060 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3061
3062 * data-streamer.h (streamer_write_poly_uint64): Declare.
3063 (streamer_read_poly_uint64): Likewise.
3064 * data-streamer-in.c (streamer_read_poly_uint64): New function.
3065 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
3066 * ipa-predicate.h (condition::size): Turn into a poly_int64.
3067 (add_condition): Take a poly_int64 size.
3068 * ipa-predicate.c (add_condition): Likewise.
3069 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
3070 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
3071 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
3072 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
3073 condition::size as a poly_int64.
3074 (unmodified_parm_1): Take a poly_int64 size pointer.
3075 (unmodified_parm): Likewise.
3076 (unmodified_parm_or_parm_agg_item): Likewise.
3077 (set_cond_stmt_execution_predicate): Update accordingly.
3078 (set_switch_stmt_execution_predicate): Likewise.
3079 (will_be_nonconstant_expr_predicate): Likewise.
3080 (will_be_nonconstant_predicate): Likewise.
3081 (inline_read_section): Stream condition::size as a poly_int.
3082 (ipa_fn_summary_write): Likewise.
3083
3084 2019-08-07 Martin Liska <mliska@suse.cz>
3085
3086 * fold-const.c (twoval_comparison_p): Replace int
3087 with bool as a return type.
3088 (simple_operand_p): Likewise.
3089 (operand_equal_p): Replace int with bool as a return type.
3090 * fold-const.h (operand_equal_p): Likewise.
3091
3092 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3093
3094 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3095 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3096 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3097 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3098 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3099 * tree-pretty-print.c (dump_omp_clause): Likewise.
3100 * tree-nested.c (convert_nonlocal_omp_clauses,
3101 convert_local_omp_clauses): Likewise.
3102 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3103 Likewise.
3104 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3105 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3106 clause with array or reference to array types, no matter what type
3107 except for reference it has.
3108
3109 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3110
3111 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3112
3113 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3114
3115 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3116 (arch_canonicalize): Support rv32g and rv64g and fix error
3117 handling.
3118
3119 2019-08-06 Martin Liska <mliska@suse.cz>
3120
3121 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3122 and DECL_IS_OPERATOR_DELETE_P.
3123
3124 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3125
3126 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3127 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3128 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3129 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3130 (gimplify_omp_for): Don't do C++ random access iterator clause
3131 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3132 don't predetermine the artificial iterator in case of C++ random
3133 access iterators as lastprivate, but private. For OMP_LOOP, force
3134 bind expr around simd body and force for_pre_body before the
3135 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3136 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3137 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3138 diff var of C++ random access iterators. Handle
3139 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3140 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3141 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3142 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3143 * omp-low.c (lower_rec_input_clauses): For
3144 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3145 variables instead of default constructing them.
3146 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3147 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3148 is_taskloop_ctx check from the assert to the guarding condition.
3149
3150 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3151
3152 * config/riscv/multilib-generator: (canonical_order): New.
3153 (arch_canonicalize): Dito.
3154 Apply arch_canonicalize for alts.
3155
3156 2019-08-05 Martin Sebor <msebor@redhat.com>
3157
3158 * doc/extend.texi (Common Variable Attributes): Document alias
3159 attribute.
3160
3161 2019-08-05 Marek Polacek <polacek@redhat.com>
3162
3163 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3164 * doc/invoke.texi: Document -Wcomma-subscript.
3165
3166 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3167
3168 * tree-core.h (tree_function_decl): Make function_code an
3169 independent field. Group the remaining bitfields into bytes
3170 and move decl_type so that it contines to be at a byte boundary.
3171 Leave 12 bits for future expansion.
3172
3173 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3174
3175 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3176 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3177 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3178 IFN_MASK_STORE.
3179
3180 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3181
3182 * gimple.h (gimple_move_vops): Declare.
3183 * gimple.c (gimple_move_vops): New function
3184 * gimple-fold.c (replace_call_with_call_and_fold)
3185 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3186 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3187 (gimple_fold_call): Use it.
3188 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3189 * tree-call-cdce.c (use_internal_fn): Likewise.
3190 * tree-if-conv.c (predicate_load_or_store): Likewise.
3191 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3192 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3193 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3194 (update_call_from_tree): Likewise.
3195 * tree-vect-stmts.c (vectorizable_load): Likewise.
3196 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3197
3198 2019-08-05 Martin Liska <mliska@suse.cz>
3199
3200 PR c++/91334
3201 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3202 with not arguments.
3203 (eliminate_unnecessary_stmts): Likewise.
3204
3205 2019-08-05 Richard Biener <rguenther@suse.de>
3206
3207 PR middle-end/91169
3208 * fold-const.c (get_array_ctor_element_at_index): Create
3209 offset_ints according to the sign of the index type and treat
3210 that as signed if it is obviously so.
3211
3212 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3213
3214 PR target/91341
3215 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3216 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3217 _mm256_storeu2_m128i): New function.
3218
3219 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3220
3221 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3222 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3223
3224 2019-08-05 Alan Modra <amodra@gmail.com>
3225
3226 PR target/91349
3227 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3228 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3229
3230 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3231
3232 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3233 bug that was fixed in Tcl 8.6.1.
3234
3235 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3236
3237 * config/rs6000/future.md: New file.
3238 * config/rs6000/rs6000.md: Include future.md.
3239 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3240
3241 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3242
3243 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3244 check to use targetm.slow_unaligned_access instead.
3245
3246 * function.c (assign_param_data_one): Remove unused data members.
3247
3248 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3249
3250 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3251 build_distinct_type_copy.
3252 (simd_clone_adjust_argument_types): Ditto.
3253 (simd_clone_adjust): Call build_distinct_type_copy here.
3254 (expand_simd_clones): Ditto.
3255
3256 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3257
3258 PR target/91201
3259 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3260
3261 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3262
3263 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3264 from 'const void *'.
3265 (sort_locs_in_loop_postorder_cmp): Likewise.
3266
3267 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3268
3269 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3270 (hot-bb-count-ws-permille): Likewise.
3271 (hot-bb-frequency-fraction): Likewise.
3272 (unlikely-bb-count-fraction): Likewise.
3273 * params.def (hot-bb-count-fraction): Rework description.
3274 (hot-bb-count-ws-permille): Likewise.
3275 (hot-bb-frequency-fraction): Likewise.
3276 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3277 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3278
3279 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3280
3281 PR target/91323
3282 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3283 Return false.
3284
3285 2019-08-02 Richard Biener <rguenther@suse.de>
3286
3287 * vec.h (vec::sort): Add gcc_qsort_r support.
3288 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3289 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3290 to gcc_qsort_r style callback.
3291 (sort_locs_in_loop_postorder_cmp): Likewise.
3292 (analyze_memory_references): Use gcc_sort_r interfaces.
3293 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3294
3295 2019-08-02 Martin Liska <mliska@suse.cz>
3296
3297 PR lto/91313
3298 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3299 to detect working job server.
3300 (driver::detect_jobserver): Test whether jobserver
3301 is active from GCC driver. That will prevent situation where
3302 GCC is invoked from a LD plugin and the linker already uses
3303 file descriptors suggested by make. That leads to a wrong
3304 detection.
3305 * gcc.h (driver): Add detect_jobserver.
3306 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3307 not scanning for --jobserver-auth prefix.
3308
3309 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3310
3311 PR tree-optimization/91201
3312 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3313 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3314 extraction.
3315
3316 2019-08-01 Martin Sebor <msebor@redhat.com>
3317
3318 PR c++/90947
3319 * tree.c (type_initializer_zero_p): Define.
3320 * tree.h (type_initializer_zero_p): New function.
3321
3322 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3323
3324 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3325
3326 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3327
3328 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3329 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3330 * predict.c (maybe_hot_count_p): Likewise.
3331 (maybe_hot_bb_p): Tweak comment.
3332 (maybe_hot_edge_p): Likewise.
3333 (probably_never_executed): Likewise. Minor tweak.
3334 (probably_never_executed_bb_p): Likewise.
3335 (unlikely_executed_edge_p): Likewise.
3336 (probably_never_executed_edge_p): Likewise.
3337 (optimize_function_for_size_p): Likewise.
3338 (optimize_function_for_speed_p): Likewise.
3339 (function_optimization_type): Likewise.
3340 (optimize_bb_for_size_p): Likewise.
3341 (optimize_bb_for_speed_p): Likewise.
3342 (bb_optimization_type): Likewise.
3343 (optimize_edge_for_size_p): Likewise.
3344 (optimize_edge_for_speed_p): Likewise.
3345 (optimize_insn_for_size_p): Likewise.
3346 (optimize_insn_for_speed_p): Likewise.
3347 (optimize_loop_for_size_p): Likewise.
3348 (optimize_loop_for_speed_p): Likewise.
3349 (optimize_loop_nest_for_speed_p): Likewise.
3350 (optimize_loop_nest_for_size_p): Likewise.
3351 (predictable_edge_p): Likewise.
3352 (handle_missing_profiles): Minor tweak.
3353
3354 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3355
3356 * config/rs6000/predicates.md (pcrel_external_address): Update
3357 comment.
3358
3359 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3360
3361 PR target/85693
3362 * config/i386/mmx.md (usadv8qi): New expander.
3363
3364 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3365
3366 PR c++/90590
3367 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3368 with reserved names that are in a system header.
3369
3370 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3371
3372 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3373 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3374 (*vec_extractv2si_0_zext): Ditto.
3375 (*vec_extractv2si_1): Add (rm,x) alternative.
3376 (*vec_extractv2si_1_zext): New insn pattern.
3377 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3378 insn constraint.
3379
3380 2019-08-01 Richard Biener <rguenther@suse.de>
3381
3382 * domwalk.c (bb_postorder): Remove static variable.
3383 (cmp_bb_postorder): Adjust.
3384 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3385 (dom_walker::walk): Adjust.
3386
3387 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3388
3389 * sort.cc (sort_r_ctx): New struct.
3390 (reorder23): Make templated on context type.
3391 (reorder45): Ditto.
3392 (cmp1): Ditto. Adjust signature.
3393 (netsort): Ditto.
3394 (mergesort): Ditto.
3395 [CHECKING_P] (cmp2to3): New static function. Use it...
3396 (gcc_qsort) [CHECKING_P]: ...here.
3397 (gcc_sort_r): New function.
3398 * system.h (sort_r_cmp_fn): New function typedef.
3399 (qsort_chk): Adjust signature.
3400 (gcc_sort_r): Declare.
3401 * vec.c (qsort_chk_error): Adjust.
3402 (qsort_chk): Adjust.
3403
3404 2019-08-01 Richard Biener <rguenther@suse.de>
3405
3406 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3407 (compute_antic): Localize it here.
3408
3409 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3410
3411 * common/config/riscv/riscv-common.c: Check -march string ends
3412 with null.
3413
3414 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3415
3416 * ipa-devirt.c (type_warning_cmp): Make static.
3417 (decl_warning_cmp): Ditto.
3418
3419 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3420
3421 PR target/91050
3422 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3423 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3424 use of deleted rs6000_dejagnu_cpu_index variable.
3425 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3426 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3427 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3428 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3429 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3430 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3431
3432 2019-07-31 Richard Biener <rguenther@suse.de>
3433
3434 PR tree-optimization/91280
3435 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3436 Decompose MEM_REF manually for offset handling.
3437
3438 2019-07-31 Richard Biener <rguenther@suse.de>
3439
3440 PR tree-optimization/91293
3441 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3442 of reduction stmts.
3443
3444 2019-07-31 Matt Thomas <matt@3am-software.com>
3445 Nick Hudson <nick@nthcliff.demon.co.uk>
3446 Matthew Green <mrg@eterna.com.au>
3447 Maya Rashish <coypu@sdf.org>
3448
3449 * config.gcc (hppa*-*-netbsd*): New target.
3450 * config/pa/pa-netbsd.h: New file.
3451 * config/pa/pa32-netbsd.h: New file.
3452
3453 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3454
3455 PR tree-optimization/91201
3456 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3457
3458 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3459
3460 * config/gcn/gcn-valu.md
3461 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3462 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3463 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3464 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3465 struct ilist. Add nops for delayeduse insns.
3466 * config/gcn/gcn.md (delayeduse): New attribute.
3467 (*movbi): Remove s_waitcnt from stores.
3468 (*mov<mode>_insn): Likewise.
3469 (*movti_insn): Likewise. Add delayeduse attribute.
3470 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3471 (atomic_store<mode>): Remove or adjust s_waitcnt.
3472
3473 2019-07-31 Richard Biener <rguenther@suse.de>
3474
3475 * vr-values.h (vr_values::swap_vr_value): New.
3476 (vr_values::free_value_range): likewise.
3477 * vr-values.c (vr_values::swap_vr_value): Implement.
3478 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3479 Do not return a range or take a var.
3480 (evrp_range_analyzer::stack): Change back to recording a non-const
3481 value_range *.
3482 * gimple-ssa-evrp-analyze.c
3483 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3484 value-range.
3485 (evrp_range_analyzer::pop_to_marker): Adjust.
3486 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3487 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3488 no longer needed value-range.
3489
3490 2019-07-31 Martin Liska <mliska@suse.cz>
3491
3492 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3493 have size and (or) alignment as 2nd and later arguments.
3494 Mark all of them as necessary.
3495
3496 2019-07-31 Richard Biener <rguenther@suse.de>
3497
3498 PR tree-optimization/91178
3499 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3500 Use tail-recursion.
3501
3502 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3503
3504 PR tree-optimization/91201
3505 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3506 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3507 TARGET_AVX512F.
3508 (reduc_plus_scal_<mode>): Improve formatting by introducing
3509 a temporary.
3510
3511 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3512
3513 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3514 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3515 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3516 (aarch64_init_tme_builtins): New.
3517 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3518 (aarch64_expand_builtin_tme): New.
3519 (aarch64_expand_builtin): Handle TME builtins.
3520 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3521 __ARM_FEATURE_TME when enabled.
3522 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3523 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3524 (TARGET_TME): New.
3525 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3526 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3527 UNSPECV_TCANCEL.
3528 (tstart, ttest, tcommit, tcancel): New instructions.
3529 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3530 (__tcancel, __ttest): New.
3531 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3532 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3533 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3534 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3535 * config/arm/types.md: Add new tme type attr.
3536 * doc/invoke.texi: Document "tme".
3537
3538 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3539
3540 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3541 warn_unused_result attribute.
3542 (cmse_check_address_range): Add warn_unused_result attribute.
3543
3544 2019-07-31 Richard Biener <rguenther@suse.de>
3545
3546 PR tree-optimization/91257
3547 * tree-vrp.c (union_ranges): Unify equality and less tests
3548 by using compare_values. Re-order cheap tests first.
3549
3550 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3551
3552 PR middle-end/91301
3553 * gimplify.c (gimplify_omp_for): If for class iterator on
3554 distribute parallel for there is no data sharing clause
3555 on inner_for_stmt, look for private clause on combined
3556 parallel too and if found, move it to inner_for_stmt.
3557
3558 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3559
3560 * lra-int.h (lra_operand_data): Remove early_clobber field.
3561 (lra_insn_reg): Likewise.
3562 * lra.c (debug_operand_data): Update accordingly.
3563 (setup_operand_alternative): Likewise.
3564 (new_insn_reg): Likewise. Remove early_clobber parameter.
3565 (collect_non_operand_hard_regs): Update call accordingly.
3566 Don't assign to lra_insn_reg::early_clobber.
3567 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3568 and update calls to new_insn_reg.
3569 (lra_update_insn_regno_info): Update calls accordingly.
3570 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3571 alternative number as a parameter and test whether the operand
3572 is earlyclobbered in that particular alternative.
3573 (process_alt_operands): Update call accordingly. Use per-alternative
3574 checks for earyclobber here too.
3575 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3576 against zero for IRA_UNKNOWN_ALT.
3577
3578 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3579
3580 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3581
3582 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3583
3584 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3585 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3586
3587 2019-07-30 Martin Liska <mliska@suse.cz>
3588
3589 PR ipa/89330
3590 * cgraph.c (cgraph_edge::make_direct): Use
3591 edge->indirect_unknown_callee as edge->resolve_speculation can
3592 deallocate edge which is this pointer.
3593
3594 2019-07-30 Richard Biener <rguenther@suse.de>
3595
3596 PR tree-optimization/91257
3597 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3598
3599 2019-07-30 Martin Liska <mliska@suse.cz>
3600
3601 * doc/invoke.texi: Document new behavior.
3602 * lto-wrapper.c (cpuset_popcount): New function
3603 is a copy of libgomp/config/linux/proc.c.
3604 (init_num_threads): Likewise.
3605 (run_gcc): Automatically detect core count for -flto.
3606 (jobserver_active_p): New function.
3607
3608 2019-07-30 Richard Biener <rguenther@suse.de>
3609
3610 PR tree-optimization/91257
3611 * bitmap.h (bitmap_ior_into_and_free): Declare.
3612 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3613 whether to add the unliked element to the freelist.
3614 (bitmap_list_insert_element_after): Add defaulted param for
3615 an already allocated element.
3616 (bitmap_ior_into_and_free): New function.
3617 * tree-ssa-structalias.c (condense_visit): Reduce the
3618 ponts-to and edge bitmaps of the SCC members in a
3619 logarithmic fashion rather than all to one.
3620
3621 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3622
3623 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3624 parameter. When nonnull, make sure that the addition or subtraction
3625 has the same condition.
3626 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3627 for CFN_COND_MUL too.
3628
3629 2019-07-30 Richard Biener <rguenther@suse.de>
3630
3631 PR tree-optimization/91291
3632 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3633 constant values.
3634
3635 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3636
3637 PR middle-end/91216
3638 * omp-low.c (global_nonaddressable_vars): New variable.
3639 (use_pointer_for_field): For global decls, if they are non-addressable,
3640 remember it in the global_nonaddressable_vars bitmap, if they are
3641 addressable and in the global_nonaddressable_vars bitmap, ignore their
3642 TREE_ADDRESSABLE bit.
3643 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3644 vars in global_nonaddressable_vars bitmap.
3645 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3646
3647 PR target/91150
3648 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3649 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3650 comparison to unsigned HOST_WIDE_INT before shifting it left.
3651
3652 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3653
3654 * config/i386/i386.md (movstrict<mode>): Use register_operand
3655 predicate for operand 0. Add expander condition. Assert that
3656 operand 0 is a SUBREG RTX.
3657 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3658 Update operand constraints and insn condition.
3659 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3660 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3661 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3662 Update operand 0 constraints.
3663 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3664
3665 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3666
3667 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3668 when -m{code,data}-region are used without -mlarge.
3669 * config/msp430/msp430.c (msp430_option_override): Error when a
3670 non-default code or data region is used without -mlarge.
3671 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3672 attributes when they are used without -mlarge.
3673
3674 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3675
3676 PR target/70320
3677 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3678
3679 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3680
3681 PR middle-end/91242
3682 * wide-int.h (generic_wide_int::sext_elt): New function.
3683 * inchash.h (hash::add_wide_int): Use it instead of elt.
3684
3685 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3686
3687 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3688 CODE_FOR_arm_##.
3689 * config/arm/arm.md (<crc_variant>): Rename to...
3690 (arm_<crc_variant>): ... This.
3691 (<cdp>): Rename to...
3692 (arm_<cdp>): ... This.
3693 (<ldc>): Rename to...
3694 (arm_<ldc>): ... This.
3695 (<stc>): Rename to...
3696 (arm_<stc>): ... This.
3697 (<mcr>): Rename to...
3698 (arm_<mcr>): ... This.
3699 (<mrc>): Rename to...
3700 (arm_<mrc>): ... This.
3701 (<mcrr>): Rename to...
3702 (arm_<mcrr>): ... This.
3703 (<mrrc>): Rename to...
3704 (arm_<mrrc>): ... This.
3705
3706 2019-07-29 Richard Biener <rguenther@suse.de>
3707
3708 PR tree-optimization/91257
3709 * tree-ssa-sccvn.h (struct vn_avail): New.
3710 (struct vn_ssa_aux): Add avail member.
3711 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3712 member, add m_avail_freelist one.
3713 (rpo_elim::~rpo_elim): Remove.
3714 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3715 data structure.
3716 (rpo_elim::eliminate_push_avail): Likewise.
3717 (do_unwind): Likewise.
3718 (do_rpo_vn): Likewise.
3719
3720 2019-07-29 Richard Biener <rguenther@suse.de>
3721
3722 PR tree-optimization/91257
3723 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3724 most cases, instead call compare_values which handles the
3725 symbolic ranges we handle specially.
3726 (compare_values_warnv): Do not call operand_less_p but open-code
3727 the effective fold calls. Avoid converting so much.
3728
3729 2019-07-29 Martin Liska <mliska@suse.cz>
3730
3731 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3732 remove LHS of operator new call. It's handled latter.
3733
3734 2019-07-29 Richard Biener <rguenther@suse.de>
3735
3736 PR tree-optimization/91267
3737 * vr-values.c (vr_values::update_value_range): Add early return
3738 for effectively VARYING lattice entry.
3739
3740 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3741
3742 PR debug/86638
3743 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3744 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3745 necessary if keep_all_vdefs_p is true.
3746 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3747 that keep_all_vdefs_p is false.
3748 (mark_all_reaching_defs_necessary): Likewise.
3749 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3750
3751 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3752
3753 * common.opt (Og): Change the initial value of flag_dse to 0.
3754 * opts.c (default_options_table): Move OPT_ftree_dse from
3755 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3756 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3757 entry before the OPT_ftree_sra entry.
3758 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3759 of flags disabled by Og.
3760
3761 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3762
3763 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3764 variables for -Og.
3765
3766 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3767
3768 * doc/sourcebuild.texi (check-function-bodies): Document.
3769
3770 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3771
3772 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3773 VEC_DUPLICATE of a fixed-length vector even if the result
3774 is variable-length. Likewise fold a duplicate of a
3775 variable-length vector if the variable-length vector is
3776 itself a duplicate of a fixed-length sequence.
3777 (test_vector_ops_duplicate): Test more cases.
3778
3779 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3780
3781 * vector-builder.h (vector_builder): Add a shape template parameter.
3782 (vector_builder::new_unary_operation): New function, generalizing
3783 the old tree_vector_builder function.
3784 (vector_builder::new_binary_operation): Likewise.
3785 (vector_builder::binary_encoded_nelts): Likewise.
3786 * int-vector-builder.h (int_vector_builder): Update template
3787 parameters to vector_builder.
3788 (int_vector_builder::shape_nelts): New function.
3789 * rtx-vector-builder.h (rtx_vector_builder): Update template
3790 parameters to vector_builder.
3791 (rtx_vector_builder::shape_nelts): New function.
3792 (rtx_vector_builder::nelts_of): Likewise.
3793 (rtx_vector_builder::npatterns_of): Likewise.
3794 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3795 * tree-vector-builder.h (tree_vector_builder): Update template
3796 parameters to vector_builder.
3797 (tree_vector_builder::shape_nelts): New function.
3798 (tree_vector_builder::nelts_of): Likewise.
3799 (tree_vector_builder::npatterns_of): Likewise.
3800 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3801 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3802 (tree_vector_builder::new_binary_operation): Delete.
3803 (tree_vector_builder::binary_encoded_nelts): Likewise.
3804 * simplify-rtx.c: Include rtx-vector-builder.h.
3805 (distributes_over_addition_p): New function.
3806 (simplify_const_unary_operation)
3807 (simplify_const_binary_operation): Generalize handling of vector
3808 constants to include variable-length vectors.
3809 (test_vector_ops_series): Add more tests.
3810
3811 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3812
3813 PR lto/91222
3814 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3815 than INDENTIFIER_POINTER.
3816
3817 2019-07-28 Martin Liska <mliska@suse.cz>
3818
3819 PR ipa/89330
3820 * cgraph.c (symbol_table::create_edge): Always allocate
3821 a cgraph_edge.
3822 (symbol_table::free_edge): Store summary_id to
3823 edge_released_summary_ids if != -1;
3824 * cgraph.h (NEXT_FREE_NODE): Remove.
3825 (SET_NEXT_FREE_NODE): Likewise.
3826 (NEXT_FREE_EDGE): Likewise.
3827 (symbol_table::release_symbol): Store summary_id to
3828 cgraph_released_summary_ids if != -1;
3829 (symbol_table::allocate_cgraph_symbol): Always allocate
3830 a cgraph_node.
3831
3832 2019-07-28 Alan Modra <amodra@gmail.com>
3833
3834 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3835 gen_sibcall.
3836
3837 2019-07-28 Alan Modra <amodra@gmail.com>
3838
3839 PR target/91135
3840 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3841 define.
3842 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3843 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3844 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3845
3846 2019-07-28 Alan Modra <amodra@gmail.com>
3847
3848 PR target/91050
3849 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3850 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3851 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3852 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3853 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3854 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3855 in asm_default spec.
3856 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3857 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3858
3859 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3860
3861 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3862
3863 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3864
3865 PR target/89517
3866 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3867 * config/aarch64/aarch64-option-extensions.def: Add new comments
3868 and restore easier to read options.
3869
3870 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3871
3872 * convert.c (convert_to_real_1): Move part of conversion code...
3873 * match.pd: ...To here.
3874
3875 2019-07-26 Martin Jambor <mjambor@suse.cz>
3876
3877 PR ipa/89330
3878 * ipa-inline-transform.c (check_speculations_1): New function.
3879 (push_all_edges_in_set_to_vec): Likewise.
3880 (check_speculations): Use check_speculations_1, new parameter
3881 new_edges.
3882 (inline_call): Pass new_edges to check_speculations.
3883 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3884 NULL.
3885 (speculation_useful_p): Early return true if edge is inlined, remove
3886 later checks for inline_failed.
3887
3888 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3889
3890 PR rtl-optimization/91223
3891 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3892 matching with INOUT operand.
3893
3894 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3895
3896 * stmt.c (expand_case): Try to narrow the index type if it's larger
3897 than a word. Tidy up.
3898
3899 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3900
3901 * cif-code.def (NEVER_CALL): New code.
3902 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3903 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3904
3905 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3906
3907 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3908 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3909
3910 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3911
3912 * ipa-devirt.c (add_type_duplicate): Fix return value.
3913
3914 2019-07-25 Richard Biener <rguenther@suse.de>
3915
3916 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3917 type parameter and use it instead of guessing expression
3918 type from the first operand.
3919 (extract_range_from_binary_expr): Pass expr_type down.
3920
3921 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3922
3923 * config/arm/arm.md (SATrev): Change to code attribute.
3924 (*satsi_<SAT:code>): Adjust for the above.
3925 (*satsi_<SAT:code>_shift): Likewise.
3926
3927 2019-07-25 Richard Biener <rguenther@suse.de>
3928
3929 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3930 Make value_range * temporary const.
3931 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3932 Likewise.
3933 (evrp_range_analyzer::record_ranges_from_): Likewise.
3934 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3935 deal with having recorded a const one.
3936 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3937 Return a const value_range *.
3938 (evrp_range_analyzer::pop_value_range): Likewise.
3939 (evrp_range_analyzer::stack): Record const value_range *s.
3940 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3941 Adjust.
3942 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3943 (format_integer): Likewise.
3944 (sprintf_dom_walker::handle_gimple_call): Likewise.
3945 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
3946 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
3947 (vrp_prop::get_value_range): Adjust.
3948 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
3949 modifying the lattice in-place.
3950 (vrp_prop::visit_stmt): Likewise.
3951 * vr-values.c (vr_values::get_lattice_entry): New private method.
3952 (vr_values::get_value_range): Wrap it and return a const
3953 value_range *.
3954 (vr_values::set_def_to_varying): New.
3955 (vr_values::set_defs_to_varying): Use it.
3956 (vr_values::update_value_range): Likewise.
3957 (vr_values::vrp_stmt_computes_nonzero): Adjust.
3958 (values::op_with_constant_singleton_va): Likewise.
3959 (vr_values::extract_range_for_var_from_co): Likewise.
3960 (vr_values::extract_range_from_ssa_name): Likewise.
3961 (vr_values::extract_range_from_cond_expr): Likewise.
3962 (vr_values::extract_range_basic): Likewise.
3963 (compare_ranges): Take const value_range *, adjust.
3964 (compare_range_with_value): Likewise.
3965 (vrp_valueize): Adjust.
3966 (vrp_valueize_1): Likewise.
3967 (vr_values::get_vr_for_comparison): Return a const value_range *.
3968 (vr_values::compare_name_with_value): Adjust.
3969 (vr_values::compare_names): Likewise.
3970 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
3971 Likewise.
3972 (vr_values::vrp_evaluate_conditional): Likewise.
3973 (find_case_label_ranges): Take a const value_range *.
3974 (vr_values::vrp_visit_switch_stmt): Adjust.
3975 (vr_values::extract_range_from_phi_node): Likewise.
3976 (vr_values::simplify_div_or_mod_using_ran): Likewise.
3977 (vr_values::simplify_abs_using_ranges): Likewise.
3978 (test_for_singularity): Take a const value_range *.
3979 (range_fits_type_p): Likewise.
3980 (vr_values::simplify_cond_using_ranges_1): Adjust.
3981 (vr_values::simplify_cond_using_ranges_2): Likewise.
3982 (vr_values::simplify_switch_using_ranges): Likewise.
3983 (vr_values::simplify_float_conversion_usi): Likewise.
3984 (vr_values::two_valued_val_range_p): Likewise.
3985 * vr-values.h (vr_values::get_value_range): Return a const
3986 value_range *.
3987 (vr_values::set_def_to_varying): New.
3988 (vr_values::get_lattice_entry): New private method.
3989 (vr_values::get_vr_for_comparison): Return a const value_range *.
3990
3991 2019-07-25 Martin Liska <mliska@suse.cz>
3992 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
3993
3994 PR c++/23383
3995 * common.opt: Add -fallocation-dce
3996 * gimple.c (gimple_call_operator_delete_p): New.
3997 * gimple.h (gimple_call_operator_delete_p): Likewise.
3998 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
3999 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4000 DECL_IS_OPERATOR_DELETE_P.
4001 (mark_all_reaching_defs_necessary_1): Likewise.
4002 (propagate_necessity): Likewise.
4003 (eliminate_unnecessary_stmts): Handle
4004 gimple_call_operator_delete_p.
4005 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4006 Add packing of OPERATOR_DELETE.
4007 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4008 Similarly here.
4009 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
4010 (DECL_SET_IS_OPERATOR_DELETE): New.
4011 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
4012
4013 2019-07-25 Martin Liska <mliska@suse.cz>
4014
4015 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
4016 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
4017 * coverage.c (coverage_begin_function): Likewise.
4018 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
4019 * gimple.c (gimple_call_nonnull_result_p): Likewise.
4020 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
4021 (sem_item::hash_referenced_symbol_properties): Likewise.
4022 * lto-streamer-out.c (hash_tree): Likewise.
4023 * predict.c (expr_expected_value_1): Likewise.
4024 * tree-inline.c (expand_call_inline): Likewise.
4025 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
4026 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
4027 * tree-core.h (enum function_decl_type): New enum.
4028 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
4029 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
4030 (set_function_decl_type): Likewise.
4031 (DECL_IS_OPERATOR_NEW_P): New.
4032 (DECL_SET_IS_OPERATOR_NEW): Likewise.
4033 (DECL_LAMBDA_FUNCTION): Likewise.
4034 (DECL_LAMBDA_FUNCTION_P): Likewise.
4035 (DECL_IS_OPERATOR_NEW): Remove.
4036 (DECL_SET_LAMBDA_FUNCTION): Likewise.
4037
4038 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
4039
4040 * ipa-profile.c (get_most_common_single_value): Use
4041 get_nth_most_common_value.
4042 * profile.c (sort_hist_value): New function.
4043 (compute_value_histograms): Call sort_hist_value to sort the
4044 values after loading from disk.
4045 * value-prof.c (get_most_common_single_value): Rename to ...
4046 get_nth_most_common_value. Add input params n, return
4047 the n_th value and count.
4048 (gimple_divmod_fixed_value_transform): Use
4049 get_nth_most_common_value.
4050 (gimple_ic_transform): Likewise.
4051 (gimple_stringops_transform): Likewise.
4052 * value-prof.h (get_most_common_single_value): Add input params
4053 n, default to 0.
4054
4055 2019-07-25 Richard Biener <rguenther@suse.de>
4056
4057 PR tree-optimization/91236
4058 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4059 size of CONSTRUCTOR write. Fix buffer size we pass to
4060 native_encode_expr.
4061
4062 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4063
4064 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
4065 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
4066 r273773.
4067
4068 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4069
4070 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
4071 explicitly disabled with --disable-initfini-array.
4072
4073 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4074
4075 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
4076 if-exists.
4077
4078 2019-07-24 Martin Sebor <msebor@redhat.com>
4079
4080 PR tree-optimization/91183
4081 PR tree-optimization/86688
4082 * builtins.c (compute_objsize): Handle MEM_REF.
4083 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4084 (get_min_string_length): Remove.
4085 (count_nonzero_bytes): New function.
4086 (handle_char_store): Rename...
4087 (handle_store): to this. Handle multibyte stores via integer types.
4088 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4089 function name.
4090
4091 2019-07-24 Martin Sebor <msebor@redhat.com>
4092
4093 PR driver/80545
4094 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4095 (diagnostic_report_diagnostic): Same.
4096 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4097 (diagnostic_context::lang_mask): New data member.
4098 * ipa-pure-const.c (suggest_attribute): Use
4099 lang_hooks.option_lang_mask ().
4100 * opts-common.c (option_enabled): Handle new argument.
4101 (get_option_state): Pass an additional argument.
4102 * opts.c (print_filtered_help): Print supported languages for
4103 unsupported options. Adjust printing of current state.
4104 * opts.h (option_enabled): Add argument.
4105 * toplev.c (print_switch_values): Use lang_mask.
4106 (general_init): Set global_dc->lang_mask.
4107
4108 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4109
4110 PR bootstrap/87030
4111 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4112
4113 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4114
4115 * cgraphunit.c (symbol_table::compile): Start and stop
4116 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4117 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4118
4119 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4120
4121 * gimplify.c (flag_instrument_functions_exclude_p): Include
4122 namespace/class information in the printable name.
4123 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4124 to tokens entered into the vector.
4125
4126 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4127
4128 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4129 (get_static_chain): Call it instead of build_simple_mem_ref.
4130 (get_frame_field): Likewise.
4131 (get_nonlocal_debug_decl): Likewise.
4132 (convert_nonlocal_reference_op): Likewise.
4133
4134 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4135
4136 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4137 declaration.
4138 (arc_compute_frame_size): Millicode is disabled when compiling
4139 ISR.
4140 (arc_return_address_register): Likewise.
4141 (arc_compute_function_type): Likewise.
4142 (arc_compute_frame_size): Likewise.
4143 (secondary_reload_info): Likewise.
4144 (arc_get_unalign): Likewise.
4145 (arc_can_use_return_insn): Declare.
4146 * config/arc/arc.c (AUX_LP_START): Define
4147 (AUX_LP_END): Likewise.
4148 (arc_frame_info): Update gmask member to 64-bit datum.
4149 (GMASK_LEN): Update.
4150 (arc_compute_function_type): Make it static, move it forward.
4151 (arc_must_save_register): Update, consider the extra regs.
4152 (arc_compute_millicode_save_restore_regs): Update to use the 64
4153 bit gmask.
4154 (arc_compute_frame_size): Likewise.
4155 (arc_enter_leave_p): Likewise.
4156 (arc_save_callee_saves): Likewise.
4157 (arc_restore_callee_saves): Likewise.
4158 (arc_save_callee_enter): Likewise.
4159 (arc_restore_callee_leave): Likewise.
4160 (arc_save_callee_milli): Likewise.
4161 (arc_restore_callee_milli): Likewise.
4162 (arc_expand_prologue): Add new interrupt handling.
4163 (arc_return_address_register): Make it static, move it forward.
4164 (arc_expand_epilogue): Add new interrupt handling.
4165 (arc_get_unalign): Delete.
4166 (arc_epilogue_uses): Make sure we do not remove the extra
4167 saved/restored registers when interrupt.
4168 (arc_can_use_return_insn): New function.
4169 (push_reg): Likewise.
4170 (pop_reg): Likewise.
4171 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4172 procedures.
4173 (arc_restore_callee_saves): Likewise, but restoring.
4174 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4175 (R33_REG): Likewise.
4176 (R34_REG): Likewise.
4177 (R35_REG): Likewise.
4178 (R36_REG): Likewise.
4179 (R37_REG): Likewise.
4180 (R38_REG): Likewise.
4181 (R39_REG): Likewise.
4182 (R45_REG): Likewise.
4183 (R46_REG): Likewise.
4184 (R47_REG): Likewise.
4185 (R48_REG): Likewise.
4186 (R49_REG): Likewise.
4187 (R50_REG): Likewise.
4188 (R51_REG): Likewise.
4189 (R52_REG): Likewise.
4190 (R53_REG): Likewise.
4191 (R54_REG): Likewise.
4192 (R55_REG): Likewise.
4193 (R56_REG): Likewise.
4194 (R58_REG): Likewise.
4195 (type): Add rtie attribute.
4196 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4197 (movsi_insn): Accept moves to lp_count.
4198 (rtie): Update pattern.
4199 (simple_return): Simplify it, don't use this pattern as a return
4200 from an interrupt.
4201 (arc600_rtie): New pattern.
4202 (p_return_i): Clean up.
4203 (return): Likewise.
4204 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4205 family CPUs.
4206 * config/arc/predicates.md (move_src_operand): Consider lp_count
4207 as a register.
4208
4209 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4210
4211 * config/s390/predicates.md (addv_const_operand): New predicate.
4212 * config/s390/s390-modes.def (CCO): New condition code mode.
4213 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4214 (s390_branch_condition_mask): Likewise.
4215 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4216 ("mulv<mode>4"): New expanders.
4217 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4218 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4219 pattern definitions.
4220
4221 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4222
4223 PR middle-end/91166
4224 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4225 (define_predicates): Add entry for uniform_vector_p.
4226 (vec_same_elem_p): New match pattern.
4227
4228 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4229
4230 PR bootstrap/87030
4231 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4232 * config/i386/darwin32-biarch.h .. to here.
4233 * config/i386/darwin64-biarch.h: Adjust comments.
4234 * config/rs6000/darwin32-biarch.h: Likewise.
4235 * config/rs6000/darwin64-biarch.h: Likewise.
4236 * config.gcc: Missed commit from r273746
4237 (*-*-darwin*): Don't include CPU t-darwin here.
4238 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4239 an error message if i686-darwin configuration is attempted for
4240 Darwin >= 18.
4241
4242 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4243
4244 PR bootstrap/87030
4245 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4246 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4247 an error message if i686-darwin configuration is attempted for
4248 Darwin >= 18.
4249 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4250 (powerpc-*-darwin*): Use biarch files where needed.
4251 (powerpc64-*-darwin*): Likewise.
4252 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4253 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4254 arch case.
4255 * config/i386/darwin32-biarch.h: New.
4256 * config/i386/darwin64.h: Rename.
4257 * config/i386/darwin64-biarch.h: To this.
4258 * config/i386/t-darwin: Rename.
4259 * config/i386/t-darwin32-biarch: To this.
4260 * config/i386/t-darwin64: Rename.
4261 * config/i386/t-darwin64-biarch: To this.
4262 * config/rs6000/darwin32-biarch.h: New.
4263 * config/rs6000/darwin64.h: Rename.
4264 * config/rs6000/darwin64-biarch.h: To this.
4265 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4266 arch case.
4267 * config/rs6000/t-darwin8: Rename.
4268 * config/rs6000/t-darwin32-biarch: To this.
4269 * config/rs6000/t-darwin64 Rename.
4270 * config/rs6000/t-darwin64-biarch: To this.
4271
4272 2019-07-23 Martin Sebor <msebor@redhat.com>
4273
4274 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4275
4276 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4277
4278 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4279 (rh): New alias for it.
4280
4281 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4282
4283 * gdbhooks.py: Pass replace=True to
4284 gdb.printing.register_pretty_printer.
4285
4286 2019-07-23 Richard Biener <rguenther@suse.de>
4287
4288 PR debug/91231
4289 * lto-streamer-in.c (input_function): Drop inline-entry markers
4290 that ended up with an unknown location block.
4291
4292 2019-07-23 Richard Biener <rguenther@suse.de>
4293
4294 PR tree-optimization/83518
4295 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4296 init from a constant even when partial defs are already recorded.
4297
4298 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4299
4300 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4301 * config/i386/znver1.md: Enable patterns for znver2 and add store
4302 variants which use extra AGU unit.
4303
4304 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4305
4306 * config/i386/i386-options.c (ix86_option_override_internal): Default
4307 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4308 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4309 for ZNVER2.
4310
4311 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4312
4313 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4314 (znver2_costs): Update 256 bit SSE costs and multiplication.
4315
4316 2019-07-23 Jan Beulich <jbeulich@suse.com>
4317
4318 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4319 Require only AVX512F.
4320 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4321 alternative expanding to vpternlog.
4322
4323 2019-07-23 Martin Liska <mliska@suse.cz>
4324
4325 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4326 to -flto in dwarf producer string.
4327
4328 2019-07-23 Richard Biener <rguenther@suse.de>
4329
4330 * tree-cfg.c (label_for_bb): Remove global var.
4331 (main_block_label): Take label_for_bb as argument.
4332 (cleanup_dead_labels_eh): Likewise, adjust.
4333 (cleanup_dead_labels): Adjust.
4334
4335 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4336
4337 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4338 Configurations): Add documentation for __builtin_mtfsf.
4339
4340 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4341
4342 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4343 * config/riscv/riscv.c (riscv_constant_alignment): Use
4344 riscv_align_data_type.
4345 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4346 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4347 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4348 * config/riscv/riscv.opt (malign-data): New.
4349 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4350
4351 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4352
4353 * cgraph.c (dump_graphviz): New function.
4354 * cgraph.h (dump_graphviz): New function.
4355 * symtab.c (dump_graphviz): New function.
4356
4357 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4358
4359 * config/aarch64/aarch64-simd.md
4360 (*aarch64_simd_sra<mode>): New.
4361 * config/aarch64/iterators.md
4362 (SHIFTRT): New iterator.
4363 (sra_op): New attribute.
4364
4365 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4366
4367 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4368 callee-saved regs R4->R10 in an interrupt function that calls another
4369 function.
4370
4371 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4372
4373 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4374 (_mm_blendv_epi8): New.
4375
4376 2019-07-22 Richard Biener <rguenther@suse.de>
4377
4378 PR tree-optimization/91221
4379 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4380 restrict partial-def handling of empty constructors and
4381 memset to refs with known offset.
4382
4383 2019-07-22 Jan Beulich <jbeulich@suse.com>
4384
4385 * config/i386/sse.md (ternlogsuffix): New.
4386 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4387 AVX512F is in use.
4388 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4389
4390 2019-07-22 Martin Liska <mliska@suse.cz>
4391
4392 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4393 comment.
4394 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4395
4396 2019-07-22 Martin Liska <mliska@suse.cz>
4397
4398 * lto-section-in.c (lto_get_section_data):
4399 Use new function get_compression.
4400 * lto-streamer-out.c (produce_lto_section): Use
4401 set_compression to encode compression algorithm.
4402 * lto-streamer.h (struct lto_section): Do not
4403 use bitfields in the format.
4404
4405 2019-07-22 Martin Liska <mliska@suse.cz>
4406
4407 PR driver/91172
4408 * opts-common.c (decode_cmdline_option): Decode
4409 argument of -Werror and check it for a wrong language.
4410 * opts-global.c (complain_wrong_lang): Remove such case.
4411
4412 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4413
4414 * config/arc/arc.c (prepare_move_operands): Always use an
4415 intermediate register when storing a TLS symbols.
4416
4417 2019-07-22 Stafford Horne <shorne@gmail.com>
4418
4419 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4420 force_reg.
4421
4422 2019-07-22 Stafford Horne <shorne@gmail.com>
4423
4424 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4425 and munordered-float validations.
4426 * config/or1k/constraints.md (d): New register constraint.
4427 * config/or1k/predicates.md (fp_comparison_operator): New.
4428 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4429 operands.
4430 (or1k_expand_compare): Normalize unordered comparisons.
4431 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4432 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4433 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4434 * config/or1k/or1k.md (type): Add fpu.
4435 (fpu): New instruction reservation.
4436 (F, f, fr, fi, FI, FOP, fop): New.
4437 (<fop><F:mode>3): New ALU instruction definition.
4438 (float<fi><F:mode>2): New conversion instruction definition.
4439 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4440 (fpcmpcc): New code iterator.
4441 (*sf_fp_insn): New instruction definition.
4442 (cstore<F:mode>4): New expand definition.
4443 (cbranch<F:mode>4): New expand definition.
4444 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4445 munordered-float): New options.
4446 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4447 munordered-float.
4448
4449 2019-07-22 Stafford Horne <shorne@gmail.com>
4450
4451 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4452 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4453 documenation to be more clear.
4454 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4455 more clear.
4456 * config/or1k/or1k.opt (mrori): New option.
4457 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4458 msfimm, mshftimm): Rewrite documentation to be more clear.
4459 * config/or1k/or1k.md (insn_support): Add ror and rori.
4460 (enabled): Add conditions for ror and rori.
4461 (rotrsi3): Replace condition for shftimm with ror and rori.
4462
4463 2019-07-22 Stafford Horne <shorne@gmail.com>
4464
4465 PR target/90363
4466 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4467 (extend<mode>si2): Update predicate.
4468 * config/or1k/predicates.md (volatile_mem_operand): New.
4469 (reg_or_mem_operand): New.
4470
4471 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4472
4473 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4474 * config/rs6000/rs6000-call.c: ... to here.
4475
4476 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4477
4478 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4479 memory.
4480
4481 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4482
4483 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4484
4485 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4486
4487 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4488
4489 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4490
4491 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4492 (any_memory_operand): New predicate.
4493 (reg_or_mem_operand): Use it.
4494
4495 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4496
4497 PR target/91204
4498 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4499
4500 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4501
4502 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4503 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4504
4505 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4506
4507 * tree.def (OMP_LOOP): New tree code.
4508 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4509 (enum omp_clause_bind_kind): New enum.
4510 (struct tree_omp_clause): Add subcode.bind_kind.
4511 * tree.h (OMP_LOOP_CHECK): Rename to ...
4512 (OMP_LOOPING_CHECK): ... this.
4513 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4514 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4515 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4516 (OMP_CLAUSE_BIND_KIND): Define.
4517 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4518 bind clause entries.
4519 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4520 * tree-pretty-print.c (dump_omp_clause): Likewise.
4521 (dump_generic_node): Handle OMP_LOOP.
4522 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4523 (in_omp_construct): New variable.
4524 (is_gimple_stmt): Handle OMP_LOOP.
4525 (gimplify_scan_omp_clauses): For lastprivate don't set
4526 check_non_private if code == OMP_LOOP. For reduction clause
4527 on OMP_LOOP combined with parallel or teams propagate as shared
4528 on the combined construct. Handle OMP_CLAUSE_BIND.
4529 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4530 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4531 for constructs from a loop construct to gimplify_scan_omp_clauses.
4532 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4533 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4534 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4535 to match the implicit ORT_TARGET construct around whole body.
4536 Temporarily clear in_omp_construct when processing body.
4537 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4538 etc. temporarily set in_omp_construct when processing body.
4539 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4540 * omp-low.c (struct omp_context): Add loop_p.
4541 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4542 in that the original var might be private.
4543 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4544 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4545 addition of loop construct.
4546 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4547
4548 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4549 lastprivate non-addressable iterator of a collapse(1) simd.
4550
4551 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4552
4553 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4554 as in rs6000.c.
4555
4556 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4557
4558 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4559 refer to default conditions. Warn for the 'y' spec which is ignored
4560 by current linkers.
4561
4562 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4563
4564 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4565 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4566 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4567 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4568 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4569 init_cumulative_args, rs6000_promote_function_mode,
4570 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4571 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4572 rs6000_function_arg_boundary, rs6000_parm_offset,
4573 rs6000_parm_start, rs6000_arg_size,
4574 rs6000_darwin64_record_arg_advance_flush,
4575 rs6000_darwin64_record_arg_advance_recurse,
4576 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4577 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4578 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4579 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4580 rs6000_finish_function_arg, rs6000_function_arg,
4581 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4582 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4583 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4584 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4585 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4586 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4587 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4588 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4589 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4590 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4591 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4592 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4593 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4594 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4595 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4596 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4597 get_element_number, altivec_expand_vec_set_builtin,
4598 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4599 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4600 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4601 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4602 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4603 rs6000_expand_builtin, rs6000_vector_type,
4604 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4605 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4606 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4607 to rs6000-call.c.
4608 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4609 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4610 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4611 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4612 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4613 init_cumulative_args, rs6000_promote_function_mode,
4614 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4615 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4616 rs6000_function_arg_boundary, rs6000_parm_offset,
4617 rs6000_parm_start, rs6000_arg_size,
4618 rs6000_darwin64_record_arg_advance_flush,
4619 rs6000_darwin64_record_arg_advance_recurse,
4620 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4621 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4622 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4623 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4624 rs6000_finish_function_arg, rs6000_function_arg,
4625 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4626 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4627 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4628 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4629 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4630 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4631 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4632 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4633 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4634 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4635 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4636 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4637 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4638 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4639 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4640 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4641 get_element_number, altivec_expand_vec_set_builtin,
4642 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4643 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4644 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4645 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4646 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4647 rs6000_expand_builtin, rs6000_vector_type,
4648 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4649 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4650 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4651 to here from rs6000.c.
4652 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4653 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4654 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4655 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4656 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4657 rs6000_return_in_memory, rs6000_return_in_msb,
4658 rs6000_pass_by_reference, setup_incoming_varargs,
4659 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4660 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4661 rs6000_function_arg_padding, rs6000_function_arg,
4662 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4663 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4664 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4665 rs6000_passes_long_double, rs6000_passes_vector,
4666 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4667 altivec_builtin_mask_for_load) Add declarations.
4668 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4669 * config/config.gcc: Add new source file rs6000-call.c to garbage
4670 collector and extra_objs.
4671
4672 2019-07-19 Jeff Law <law@redhat.com>
4673
4674 PR tree-optimization/86061
4675 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4676 strncpy. Drop some trivial dead code.
4677 (maybe_trim_memstar_call): Handle strncpy.
4678
4679 2019-07-19 Richard Biener <rguenther@suse.de>
4680
4681 PR tree-optimization/91211
4682 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4683 memset encoding size.
4684
4685 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4686
4687 PR target/91204
4688 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4689
4690 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4691
4692 PR ipa/91194
4693 * ipa-inline.c (recursive_inlining): Fix limits check.
4694
4695 2019-07-19 Richard Biener <rguenther@suse.de>
4696
4697 PR tree-optimization/91200
4698 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4699 no PHI nodes in middle-bb.
4700
4701 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4702
4703 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4704 to +sve-bitperm.
4705 * config/aarch64/aarch64-option-extensions.def: Likewise.
4706
4707 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4708
4709 PR middle-end/91190
4710 * function.c (insert_temp_slot_address): Store into the hash table
4711 a copy of address to avoid RTL sharing issues.
4712
4713 2019-07-19 Richard Biener <rguenther@suse.de>
4714
4715 PR tree-optimization/91207
4716 Revert
4717 2019-07-17 Richard Biener <rguenther@suse.de>
4718
4719 PR tree-optimization/91178
4720 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4721 loads with a gap larger than the vector size always use
4722 VMAT_STRIDED_SLP.
4723 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4724 avoid loading vectors that are only contained in the gap
4725 and thus are not needed.
4726
4727 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4728
4729 * config/i386/i386.md (*addqi_2_slp): Remove.
4730 (*<code>qi_2_slp): Ditto.
4731
4732 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4733
4734 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4735 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4736 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4737 Rename function from rs6000_prefixed_address.
4738 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4739 TARGET_HAS_TOC.
4740 (TARGET_TOC): Likewise.
4741 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4742 rs6000.h.
4743 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4744 TARGET_HAS_TOC.
4745 (TARGET_TOC): Likewise.
4746 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4747 rs6000.h.
4748 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4749 TARGET_HAS_TOC.
4750 (TARGET_TOC): Likewise.
4751 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4752 check to require -mcmodel=medium for pc-relative addressing.
4753 (create_TOC_reference): Add assertion for TARGET_TOC.
4754 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4755 TARGET_NO_TOC.
4756 (rs6000_emit_move): Likewise.
4757 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4758 to 'TOC_alias_set'.
4759 (get_TOC_alias_set): Likewise.
4760 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4761 TARGET_NO_TOC.
4762 (rs6000_can_eliminate): Likewise.
4763 (rs6000_prefixed_address_mode_p): Rename function from
4764 rs6000_prefixed_address.
4765 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4766 TARGET_HAS_TOC and not pc-relative.
4767 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4768 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4769 TARGET_HAS_TOC.
4770 (TARGET_TOC): Likewise.
4771 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4772 rs6000.h.
4773
4774 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4775
4776 PR target/91188
4777 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4778 for operand 0. Do not use (match_dup) to match operand 1 with
4779 operand 0. Add check in insn constraint that either input operand
4780 matches operand 0. Use SWI12 mode iterator to also handle
4781 HImode operands.
4782 (*and<mode>_1_slp): Ditto.
4783 (*<code>qi_1_slp): Ditto.
4784 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4785 Do not use (match_dup) to match operand 1 with operand 0. Add
4786 check in insn constraint that operand 1 matches operand 0.
4787 Use SWI12 mode iterator to also handle HImode operands.
4788 (*ashl<mode>3_1_slp): Ditto.
4789 (*<shift_insn><mode>3_1_slp): Ditto.
4790 (*<rotate_insn><mode>3_1_slp): Ditto.
4791
4792 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4793
4794 * config/arm/arm-builtins.c
4795 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4796 (arm_expand_unop_builtin): Likewise.
4797 * config/arm/crypto.md
4798 (crypto_sha1h): Convert from define_insn to define_expand.
4799 (crypto_<crypto_pattern>): Likewise.
4800 (crypto_sha1h_lb): New define_insn.
4801 (crypto_<crypto_pattern>_lb): Likewise.
4802
4803 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4804
4805 PR target/90317
4806 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4807 (vsha1cq_u32): Likewise.
4808 (vsha1pq_u32): Likewise.
4809 (vsha1mq_u32): Likewise.
4810 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4811 vec select.
4812 (crypto_sha1c): Correct vec select.
4813 (crypto_sha1m): Likewise.
4814 (crypto_sha1p): Likewise.
4815
4816 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4817
4818 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4819 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4820 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4821 (subdi_zesidi_zesidi): Likewise.
4822 (negdi2_compare, negdi2_insn): Likewise.
4823 (negdi_extensidi): Likewise.
4824 (negdi_zero_extendsidi): Likewise.
4825 (arm_cmpdi_insn): Likewise.
4826 (subsi3_carryin): Use arm_borrow_operation.
4827 (subsi3_carryin_const): Likewise.
4828 (subsi3_carryin_const0): Likewise.
4829 (subsi3_carryin_compare): Likewise.
4830 (subsi3_carryin_compare_const): Likewise.
4831 (subsi3_carryin_compare_const0): Likewise.
4832 (subsi3_carryin_shift): Likewise.
4833 (rsbsi3_carryin_shift): Likewise.
4834 (negsi2_carryin_compare): Likewise.
4835
4836 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4837
4838 PR tree-optimization/91137
4839 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4840 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4841 Init, use and fini the above new field.
4842 (determine_base_object_1): New function.
4843 (determine_base_object): Reimplement using walk_tree.
4844
4845 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4846
4847 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4848 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4849 CLEANUP_FORCE_FAST_DCE is set.
4850 * ifcvt.c (rest_of_handle_if_conversion): Pass
4851 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4852 if-conversion succeeded.
4853
4854 2019-07-18 Richard Biener <rguenther@suse.de>
4855
4856 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4857 branches to make code less indented.
4858
4859 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4860
4861 PR middle-end/81824
4862 * attribs.c (decls_mismatched_attributes): Simplify the logic
4863 that avoids duplicates and false positives.
4864
4865 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4866
4867 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4868 data into data section when generating PIC code.
4869 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4870 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4871 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4872 return 2 for SOM and 0 for other targets.
4873
4874 2019-07-17 Jeff Law <law@redhat.com>
4875
4876 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4877 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4878 avoid unexpected switch statement fallthru.
4879
4880 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4881
4882 * config/i386/i386.md (*add<dwi>3_doubleword):
4883 Remove redundant constraints.
4884 (*add<mode>_1): Ditto.
4885 (*addhi_1): Ditto.
4886 (*addqi_1): Ditto.
4887 (*addqi_1_slp): Ditto.
4888 (*add<mode>_2): Ditto.
4889 (*addv<mode>4): Ditto.
4890 (*sub<dwi>3_doubleword): Ditto.
4891 (*sub<mode>_1): Ditto.
4892 (*subqi_1_slp): Ditto.
4893 (*sub<mode>_2): Ditto.
4894 (*subv<mode>4): Ditto.
4895 (*sub<mode>_3): Ditto.
4896 (@add<mode>3_carry): Ditto.
4897 (@sub<mode>3_carry): Ditto.
4898 (*add<mode>3_cc_overflow_1): Ditto.
4899 (*add<mode>3_zext_cc_overflow_2): Ditto.
4900 (*anddi_1): Ditto.
4901 (*and<mode>_1): Ditto.
4902 (*andqi_1): Ditto.
4903 (*andqi_1_slp): Ditto.
4904 (*anddi_2): Ditto.
4905 (*andqi_2_maybe_si): Ditto.
4906 (*and<mode>_2): Ditto.
4907 (*andqi_2_slp): Ditto.
4908 (*<code><mode>_1): Ditto.
4909 (*<code>qi_1): Ditto.
4910 (*<code>qi_1_slp): Ditto.
4911 (*<code><mode>_2): Ditto.
4912 (*<code>qi_2_slp): Ditto.
4913
4914 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4915
4916 * alias.c (record_component_aliases): Do not simplify pointed-to
4917 types of ODR types.
4918
4919 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4920
4921 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4922 partial reg stall on alternative 2.
4923
4924 2019-07-17 Richard Biener <rguenther@suse.de>
4925
4926 PR tree-optimization/91178
4927 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4928 lower SSA names to avoid quadratic behavior in the common case.
4929 * tree-data-ref.c (split_constant_offset): Add limit argument
4930 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4931 (split_constant_offset_1): Add limit argument and use it to
4932 limit SSA def walking. Optimize the common plus/minus case.
4933
4934 2019-07-17 Richard Biener <rguenther@suse.de>
4935
4936 PR tree-optimization/91178
4937 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4938 loads with a gap larger than the vector size always use
4939 VMAT_STRIDED_SLP.
4940 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4941 avoid loading vectors that are only contained in the gap
4942 and thus are not needed.
4943
4944 2019-07-17 Richard Biener <rguenther@suse.de>
4945
4946 PR tree-optimization/91180
4947 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
4948 computation for memset partial defs.
4949
4950 2019-07-17 Jakub Jelinek <jakub@redhat.com>
4951
4952 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
4953 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
4954 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
4955 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
4956 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
4957 * omp-grid.c (grid_process_grid_body,
4958 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
4959 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
4960 == GF_OMP_FOR_KIND_SIMD.
4961 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
4962 check_omp_nesting_restrictions, scan_omp_1_stmt,
4963 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
4964 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
4965 omp_find_scan): Likewise.
4966 * omp-expand.c (expand_omp_for): Likewise.
4967 * omp-general.c (omp_extract_for_data): Likewise.
4968
4969 PR tree-optimization/91157
4970 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
4971 a vector boolean with scalar mode.
4972 (expand_vector_condition): Handle first operand being a vector boolean
4973 with scalar mode.
4974 (expand_vector_operations_1): For comparisons, don't bail out early
4975 if the return type is vector boolean with scalar mode, but comparison
4976 operand type is not.
4977
4978 2019-07-17 Richard Biener <rguenther@suse.de>
4979
4980 PR tree-optimization/91181
4981 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
4982 IFN_LOADs as calls.
4983
4984 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
4985
4986 * config/i386/i386.md (*testdi_1): Match CCZmode for
4987 constants that might have the SImode sign bit set.
4988 (*testqi_1_maybe_si): Remove "!" constraint modifier.
4989 Use correct constraints for pentium pairing.
4990 (*test<mode>_1): Ditto.
4991
4992 2019-07-16 Jeff Law <law@redhat.com>
4993
4994 PR rtl-optimization/91173
4995 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
4996 SSA_NAME with a constant value, fold its value into the offset
4997 and clear the base before calling gen_addr_rtx.
4998
4999 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5000
5001 PR rtl-optimization/91164
5002 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5003 invalidate dominance info.
5004
5005 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5006
5007 * read-md.h (md_reader::record_potential_iterator_use): Add a
5008 file_location parameter.
5009 * read-rtl.c (attribute_use::loc): New field.
5010 (map_attr_string): Take a file_location parameter. Report cases
5011 in which attributes map to multiple distinct values.
5012 (apply_attribute_uses): Update call accordingly.
5013 (md_reader::handle_overloaded_name): Likewise.
5014 (md_reader::apply_iterator_to_string): Likewise. Skip empty
5015 nonnull strings.
5016 (record_attribute_use): Take a file_location parameter.
5017 Initialize attribute_use::loc.
5018 (md_reader::record_potential_iterator_use): Take a file_location
5019 parameter. Update call to record_attribute_use.
5020 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
5021 (rtx_reader::read_rtx_code): Likewise.
5022 (rtx_reader::read_rtx_operand): Likewise. Record a location
5023 for implicitly-expanded empty strings.
5024
5025 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5026
5027 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
5028 Use file_location instead of separate fields.
5029 (md_reader::set_md_ptr_loc): Take a file_location instead of a
5030 separate filename and line number.
5031 * read-md.c (ptr_loc): As above.
5032 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
5033 (md_reader::fprint_md_ptr_loc): Likewise.
5034 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
5035 instead of a separate filename and line number.
5036 (md_reader::read_string): Update call accordingly.
5037
5038 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5039
5040 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
5041 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5042 leaving the choice between SFDF and P implicit.
5043 (*mov<mode>_update2): Likewise.
5044 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
5045 rather than leaving the choice betweem IBM128 and GPR implicit.
5046 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
5047 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
5048 QHSI implicit.
5049 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
5050 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
5051 * config/rs6000/vsx.md
5052 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
5053 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
5054 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
5055 and VSX_EXTRACT_I implicit.
5056
5057 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5058
5059 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
5060 Explicitly use <MOVEP1:MODE> for the mode attribute.
5061
5062 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
5063
5064 PR bootstrap/91176
5065 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
5066
5067 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
5068
5069 PR target/91050
5070 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
5071 .machine directive.
5072
5073 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
5074
5075 * config/i386/i386.md (@test<mode>_ccno_1):
5076 Rename from test<mode>_ccno_1.
5077 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
5078 (*testqi_1_maybe_si): Remove modrm attribute.
5079 (*test<mode>_1): Ditto.
5080 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5081 gen_test_ccno_1 and gen_extend_insn.
5082
5083 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5084
5085 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5086 to 0.
5087
5088 2019-07-15 Richard Biener <rguenther@suse.de>
5089
5090 PR middle-end/91162
5091 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5092 node make sure to replace all uses with something valid.
5093
5094 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5095
5096 PR tree-optimization/88497
5097 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5098 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5099 function undistribute_bitref_for_vector.
5100 (undistribute_bitref_for_vector): New function.
5101 (cleanup_vinfo_map): Likewise.
5102 (sort_by_mach_mode): Likewise.
5103
5104 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5105
5106 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5107 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5108 and testdi_ccno_1 using SWI48 mode attribute.
5109 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5110 x86_64_szext_general_operand.
5111 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5112 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5113 instead of genera_operand mode attribute.
5114
5115 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5116
5117 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5118 fopen and fclose to their respective types.
5119 (DotFn.invoke): Ditto.
5120
5121 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5122
5123 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5124 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5125 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5126 (array_index_predicate): Remove.
5127 (analyze_function_body): Account cost for variable ofsetted array
5128 indexing.
5129 (estimate_node_size_and_time): Do not compute array index hint.
5130 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5131 (inline_read_section): Do not read array index hint.
5132 (ipa_fn_summary_write): Do not write array index hint.
5133 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5134 * ipa-cp.c (hint_time_bonus): Remove.
5135 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5136 (ipa_fnsummary): Remove array_index.
5137 * ipa-inline.c (want_inline_small_function_p): Do not use
5138 array_index.
5139 (edge_badness): Likewise.
5140 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5141
5142 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5143
5144 PR target/91148
5145 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5146 superfluous "builtin function" phrasing.
5147
5148 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5149
5150 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5151 Break out from ...
5152 (aliasing_component_refs_walk): Break out from ...
5153 (aliasing_component_refs_p): ... here.
5154
5155 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5156
5157 PR target/91148
5158 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5159 "builtin function" phrasing.
5160
5161 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5162
5163 PR target/90723
5164 * recog.h (temporary_volatile_ok): New class.
5165 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5166 volatile_ok temporarily to true using temporary_volatile_ok.
5167 * expr.c (emit_block_move_via_cpymem): Likewise.
5168 * optabs.c (maybe_legitimize_operand): Likewise.
5169
5170 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5171
5172 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5173 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5174 uses inside of order(concurrent) constructs.
5175 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5176 OMP_CLAUSE_ORDER is seen.
5177 * omp-low.c (struct omp_context): Add order_concurrent member.
5178 (scan_sharing_clauses): Set ctx->order_concurrent if
5179 OMP_CLAUSE_ORDER is seen.
5180 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5181 of simd order(concurrent). Diagnose constructs not allowed inside of
5182 for order(concurrent).
5183 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5184 complaining about static double setjmp (double); or class static
5185 methods or non-global namespace setjmps.
5186 (omp_runtime_api_call): New function.
5187 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5188 order(concurrent) loops.
5189
5190 2019-07-12 Martin Sebor <msebor@redhat.com>
5191
5192 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5193 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5194 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5195 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5196
5197 2019-07-12 Jan Hubicka <jh@suse.cz>
5198
5199 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5200 (indirect_refs_may_alias_p): ... here.
5201 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5202 mem refs in the access paths.
5203
5204 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5205
5206 PR tree-optimization/89430
5207 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5208 store elimination for local variable without address escape.
5209
5210 2019-07-12 Jeff Law <law@redhat.com>
5211
5212 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5213 for the ".far" section.
5214
5215 2019-07-12 Richard Biener <rguenther@suse.de>
5216
5217 PR tree-optimization/91145
5218 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5219 chain check.
5220
5221 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5222
5223 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5224 rather than this_state as the lowering context for the ELSE
5225 seq in a GIMPLE_EH_ELSE.
5226
5227 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5228
5229 * vector-builder.h (vector_builder::elt): Allow already-supplied
5230 elements to be read back before building is complete.
5231
5232 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5233
5234 PR rtl-optimization/91136
5235 * df-core.c (ACCESSING REFS): Fix typos in comment.
5236 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5237 the beginning of the block to the initial set of live registers.
5238
5239 2019-07-12 Richard Biener <rguenther@suse.de>
5240
5241 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5242 * fold-const.c (get_array_ctor_element_at_index): Add
5243 ctor_idx output parameter informing the caller where in
5244 the constructor the element was (not) found. Add early exit
5245 for when the ctor is sorted.
5246 * gimple-fold.c (fold_array_ctor_reference): Support constant
5247 folding across multiple array elements.
5248
5249 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5250
5251 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5252 doesn't have location, set the current location to the function's end.
5253
5254 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5255
5256 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5257 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5258 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5259 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5260 * config/aarch64/aarch64-simd.md
5261 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5262 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5263 * config/aarch64/aarch64-sve.md
5264 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5265 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5266
5267 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5268
5269 * doc/md.texi: Document that @ patterns can have different
5270 numbers of operands.
5271 * genemit.c (handle_overloaded_gen): Handle this case.
5272 * genopinit.c (handle_overloaded_gen): Likewise.
5273 * gensupport.c (replace_operands_with_dups): Iterate over
5274 the new rtx's format rather than the old one's.
5275
5276 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5277
5278 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5279 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5280 order clause entries.
5281 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5282 * tree-pretty-print.c (dump_omp_clause): Likewise.
5283 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5284 Likewise.
5285 * omp-low.c (scan_sharing_clauses): Likewise.
5286 * tree-nested.c (convert_nonlocal_omp_clauses,
5287 convert_local_omp_clauses): Likewise.
5288
5289 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5290
5291 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5292 fallthrough target of current basic block isn't the placed
5293 right next.
5294
5295 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5296
5297 PR target/90980
5298 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5299 (_mm512_storeu_epi64): Likewise.
5300 (_mm512_loadu_epi32): Likewise.
5301 (_mm512_storeu_epi32): Likewise.
5302 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5303 (_mm_storeu_epi64): Likewise.
5304 (_mm256_storeu_epi32): Likewise.
5305 (_mm_storeu_epi32): Likewise.
5306
5307 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5308
5309 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5310
5311 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5312
5313 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5314 Handle Modula-2.
5315
5316 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5317
5318 PR target/91124
5319 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5320 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5321 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5322 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5323 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5324 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5325 define_insns.
5326 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5327 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5328 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5329 define_insns.
5330 (sse2_cvttpd2dq<mask_name>): Change into ...
5331 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5332 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5333 (*sse2_cvtpd2dq<mask_name>): Change into ...
5334 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5335 Add "C" constraint to const0_operand.
5336 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5337 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5338 changes.
5339
5340 PR target/91124
5341 * config/i386/i386-builtin-types.def
5342 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5343 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5344 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5345 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5346 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5347 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5348 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5349 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5350 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5351 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5352 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5353 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5354 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5355 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5356 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5357 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5358 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5359 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5360 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5361 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5362 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5363 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5364 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5365 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5366 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5367 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5368 __builtin_ia32_vpdpbusd_v4si_maskz,
5369 __builtin_ia32_vpdpbusds_v16si_mask,
5370 __builtin_ia32_vpdpbusds_v16si_maskz,
5371 __builtin_ia32_vpdpbusds_v8si_mask,
5372 __builtin_ia32_vpdpbusds_v8si_maskz,
5373 __builtin_ia32_vpdpbusds_v4si_mask,
5374 __builtin_ia32_vpdpbusds_v4si_maskz,
5375 __builtin_ia32_vpdpwssd_v16si_mask,
5376 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5377 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5378 __builtin_ia32_vpdpwssd_v4si_maskz,
5379 __builtin_ia32_vpdpwssds_v16si_mask,
5380 __builtin_ia32_vpdpwssds_v16si_maskz,
5381 __builtin_ia32_vpdpwssds_v8si_mask,
5382 __builtin_ia32_vpdpwssds_v8si_maskz,
5383 __builtin_ia32_vpdpwssds_v4si_mask,
5384 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5385 suffixed types rather than *_INT.
5386 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5387 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5388 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5389 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5390 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5391 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5392
5393 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5394
5395 * tree-vrp.c (intersect_ranges): If we know the intersection is
5396 empty, there is no need to conservatively add anything else to
5397 the set.
5398
5399 2019-07-11 Richard Biener <rguenther@suse.de>
5400
5401 PR middle-end/91131
5402 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5403 when the object is volatile and we have not cleared it even though
5404 there are no nonzero elements.
5405
5406 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5407
5408 * config/rs6000/predicates.md (cint34_operand): Update
5409 SIGNED_34BIT_OFFSET_P call.
5410 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5411 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5412 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5413 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5414 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5415 argument.
5416 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5417 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5418 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5419 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5420 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5421
5422 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5423
5424 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5425 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5426 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5427 (DEF_MIN_OSX_VERSION): New.
5428
5429 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5430
5431 * fold-const.c (fold_relational_const): Fix folding of
5432 vector-to-scalar NE_EXPRs.
5433 (test_vector_folding): Add more tests.
5434
5435 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5436
5437 PR target/91060
5438 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5439 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5440 (vec_setv2di_internal): Reexpress as...
5441 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5442 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5443 rather than gen_neon_vset_lane<mode>.
5444
5445 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5446
5447 PR target/91102
5448 * lra-constraints.c (process_alt_operands): Don't match user
5449 defined regs only if they are early clobbers.
5450
5451 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5452
5453 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5454
5455 2019-07-10 Richard Biener <rguenther@suse.de>
5456
5457 PR tree-optimization/91126
5458 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5459 native encoding offset for BYTES_BIG_ENDIAN.
5460 (vn_reference_lookup_3): Likewise.
5461
5462 2019-07-10 Richard Biener <rguenther@suse.de>
5463
5464 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5465 LHS whenever possible.
5466
5467 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5468
5469 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5470 from ...; work also on duplicated types.
5471 (nonoverlapping_component_refs_since_match): ... here
5472 (ncr_type_uid): Break out from ...
5473 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5474 available.
5475 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5476 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5477
5478 2019-07-09 Martin Sebor <msebor@redhat.com>
5479
5480 PR tree-optimization/90989
5481 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5482 optimization to just single character stores.
5483
5484 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5485
5486 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5487 Swap operands only once.
5488
5489 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5490
5491 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5492 for both call instructions.
5493
5494 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5495
5496 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5497 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5498
5499 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5500
5501 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5502 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5503 function from rs6000-logue.c back to rs6000.c.
5504 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5505
5506 2019-07-09 Martin Sebor <msebor@redhat.com>
5507
5508 PR c++/61339
5509 * auto-profile.c: Change class-key of PODs to struct and others
5510 to class.
5511 * basic-block.h: Same.
5512 * bitmap.c (bitmap_alloc): Same.
5513 * bitmap.h: Same.
5514 * builtins.c (expand_builtin_prefetch): Same.
5515 (expand_builtin_interclass_mathfn): Same.
5516 (expand_builtin_strlen): Same.
5517 (expand_builtin_mempcpy_args): Same.
5518 (expand_cmpstr): Same.
5519 (expand_builtin___clear_cache): Same.
5520 (expand_ifn_atomic_bit_test_and): Same.
5521 (expand_builtin_thread_pointer): Same.
5522 (expand_builtin_set_thread_pointer): Same.
5523 * caller-save.c (setup_save_areas): Same.
5524 (replace_reg_with_saved_mem): Same.
5525 (insert_restore): Same.
5526 (insert_save): Same.
5527 (add_used_regs): Same.
5528 * cfg.c (get_bb_copy): Same.
5529 (set_loop_copy): Same.
5530 * cfg.h: Same.
5531 * cfganal.h: Same.
5532 * cfgexpand.c (alloc_stack_frame_space): Same.
5533 (add_stack_var): Same.
5534 (add_stack_var_conflict): Same.
5535 (add_scope_conflicts_1): Same.
5536 (update_alias_info_with_stack_vars): Same.
5537 (expand_used_vars): Same.
5538 * cfghooks.c (redirect_edge_and_branch_force): Same.
5539 (delete_basic_block): Same.
5540 (split_edge): Same.
5541 (make_forwarder_block): Same.
5542 (force_nonfallthru): Same.
5543 (duplicate_block): Same.
5544 (lv_flush_pending_stmts): Same.
5545 * cfghooks.h: Same.
5546 * cfgloop.c (flow_loops_cfg_dump): Same.
5547 (flow_loop_nested_p): Same.
5548 (superloop_at_depth): Same.
5549 (get_loop_latch_edges): Same.
5550 (flow_loop_dump): Same.
5551 (flow_loops_dump): Same.
5552 (flow_loops_free): Same.
5553 (flow_loop_nodes_find): Same.
5554 (establish_preds): Same.
5555 (flow_loop_tree_node_add): Same.
5556 (flow_loop_tree_node_remove): Same.
5557 (flow_loops_find): Same.
5558 (find_subloop_latch_edge_by_profile): Same.
5559 (find_subloop_latch_edge_by_ivs): Same.
5560 (mfb_redirect_edges_in_set): Same.
5561 (form_subloop): Same.
5562 (merge_latch_edges): Same.
5563 (disambiguate_multiple_latches): Same.
5564 (disambiguate_loops_with_multiple_latches): Same.
5565 (flow_bb_inside_loop_p): Same.
5566 (glb_enum_p): Same.
5567 (get_loop_body_with_size): Same.
5568 (get_loop_body): Same.
5569 (fill_sons_in_loop): Same.
5570 (get_loop_body_in_dom_order): Same.
5571 (get_loop_body_in_custom_order): Same.
5572 (release_recorded_exits): Same.
5573 (get_loop_exit_edges): Same.
5574 (num_loop_branches): Same.
5575 (remove_bb_from_loops): Same.
5576 (find_common_loop): Same.
5577 (delete_loop): Same.
5578 (cancel_loop): Same.
5579 (verify_loop_structure): Same.
5580 (loop_preheader_edge): Same.
5581 (loop_exit_edge_p): Same.
5582 (single_exit): Same.
5583 (loop_exits_to_bb_p): Same.
5584 (loop_exits_from_bb_p): Same.
5585 (get_loop_location): Same.
5586 (record_niter_bound): Same.
5587 (get_estimated_loop_iterations_int): Same.
5588 (max_stmt_executions_int): Same.
5589 (likely_max_stmt_executions_int): Same.
5590 (get_estimated_loop_iterations): Same.
5591 (get_max_loop_iterations): Same.
5592 (get_max_loop_iterations_int): Same.
5593 (get_likely_max_loop_iterations): Same.
5594 * cfgloop.h (simple_loop_desc): Same.
5595 (get_loop): Same.
5596 (loop_depth): Same.
5597 (loop_outer): Same.
5598 (loop_iterator::next): Same.
5599 (loop_outermost): Same.
5600 * cfgloopanal.c (mark_irreducible_loops): Same.
5601 (num_loop_insns): Same.
5602 (average_num_loop_insns): Same.
5603 (expected_loop_iterations_unbounded): Same.
5604 (expected_loop_iterations): Same.
5605 (mark_loop_exit_edges): Same.
5606 (single_likely_exit): Same.
5607 * cfgloopmanip.c (fix_bb_placement): Same.
5608 (fix_bb_placements): Same.
5609 (remove_path): Same.
5610 (place_new_loop): Same.
5611 (add_loop): Same.
5612 (scale_loop_frequencies): Same.
5613 (scale_loop_profile): Same.
5614 (create_empty_if_region_on_edge): Same.
5615 (create_empty_loop_on_edge): Same.
5616 (loopify): Same.
5617 (unloop): Same.
5618 (fix_loop_placements): Same.
5619 (copy_loop_info): Same.
5620 (duplicate_loop): Same.
5621 (duplicate_subloops): Same.
5622 (loop_redirect_edge): Same.
5623 (can_duplicate_loop_p): Same.
5624 (duplicate_loop_to_header_edge): Same.
5625 (mfb_keep_just): Same.
5626 (has_preds_from_loop): Same.
5627 (create_preheader): Same.
5628 (create_preheaders): Same.
5629 (lv_adjust_loop_entry_edge): Same.
5630 (loop_version): Same.
5631 * cfgloopmanip.h: Same.
5632 * cgraph.h: Same.
5633 * cgraphbuild.c: Same.
5634 * combine.c (make_extraction): Same.
5635 * config/i386/i386-features.c: Same.
5636 * config/i386/i386-features.h: Same.
5637 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5638 (ix86_emit_outlined_ms2sysv_restore): Same.
5639 (ix86_noce_conversion_profitable_p): Same.
5640 (ix86_init_cost): Same.
5641 (ix86_simd_clone_usable): Same.
5642 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5643 Wstruct-not-pod.
5644 * coretypes.h: Same.
5645 * data-streamer-in.c (string_for_index): Change class-key of PODs
5646 to struct and others to class.
5647 (streamer_read_indexed_string): Same.
5648 (streamer_read_string): Same.
5649 (bp_unpack_indexed_string): Same.
5650 (bp_unpack_string): Same.
5651 (streamer_read_uhwi): Same.
5652 (streamer_read_hwi): Same.
5653 (streamer_read_gcov_count): Same.
5654 (streamer_read_wide_int): Same.
5655 * data-streamer.h (streamer_write_bitpack): Same.
5656 (bp_unpack_value): Same.
5657 (streamer_write_char_stream): Same.
5658 (streamer_write_hwi_in_range): Same.
5659 (streamer_write_record_start): Same.
5660 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5661 (add_cross_iteration_register_deps): Same.
5662 (build_intra_loop_deps): Same.
5663 * df-core.c (df_analyze): Same.
5664 (loop_post_order_compute): Same.
5665 (loop_inverted_post_order_compute): Same.
5666 * df-problems.c (df_rd_alloc): Same.
5667 (df_rd_simulate_one_insn): Same.
5668 (df_rd_local_compute): Same.
5669 (df_rd_init_solution): Same.
5670 (df_rd_confluence_n): Same.
5671 (df_rd_transfer_function): Same.
5672 (df_rd_free): Same.
5673 (df_rd_dump_defs_set): Same.
5674 (df_rd_top_dump): Same.
5675 (df_lr_alloc): Same.
5676 (df_lr_reset): Same.
5677 (df_lr_local_compute): Same.
5678 (df_lr_init): Same.
5679 (df_lr_confluence_n): Same.
5680 (df_lr_free): Same.
5681 (df_lr_top_dump): Same.
5682 (df_lr_verify_transfer_functions): Same.
5683 (df_live_alloc): Same.
5684 (df_live_reset): Same.
5685 (df_live_init): Same.
5686 (df_live_confluence_n): Same.
5687 (df_live_finalize): Same.
5688 (df_live_free): Same.
5689 (df_live_top_dump): Same.
5690 (df_live_verify_transfer_functions): Same.
5691 (df_mir_alloc): Same.
5692 (df_mir_reset): Same.
5693 (df_mir_init): Same.
5694 (df_mir_confluence_n): Same.
5695 (df_mir_free): Same.
5696 (df_mir_top_dump): Same.
5697 (df_word_lr_alloc): Same.
5698 (df_word_lr_reset): Same.
5699 (df_word_lr_init): Same.
5700 (df_word_lr_confluence_n): Same.
5701 (df_word_lr_free): Same.
5702 (df_word_lr_top_dump): Same.
5703 (df_md_alloc): Same.
5704 (df_md_simulate_one_insn): Same.
5705 (df_md_reset): Same.
5706 (df_md_init): Same.
5707 (df_md_free): Same.
5708 (df_md_top_dump): Same.
5709 * df-scan.c (df_insn_delete): Same.
5710 (df_insn_rescan): Same.
5711 (df_notes_rescan): Same.
5712 (df_sort_and_compress_mws): Same.
5713 (df_install_mws): Same.
5714 (df_refs_add_to_chains): Same.
5715 (df_ref_create_structure): Same.
5716 (df_ref_record): Same.
5717 (df_def_record_1): Same.
5718 (df_find_hard_reg_defs): Same.
5719 (df_uses_record): Same.
5720 (df_get_conditional_uses): Same.
5721 (df_get_call_refs): Same.
5722 (df_recompute_luids): Same.
5723 (df_get_entry_block_def_set): Same.
5724 (df_entry_block_defs_collect): Same.
5725 (df_get_exit_block_use_set): Same.
5726 (df_exit_block_uses_collect): Same.
5727 (df_mws_verify): Same.
5728 (df_bb_verify): Same.
5729 * df.h (df_scan_get_bb_info): Same.
5730 * doc/tm.texi: Same.
5731 * dse.c (record_store): Same.
5732 * dumpfile.h: Same.
5733 * emit-rtl.c (const_fixed_hasher::equal): Same.
5734 (set_mem_attributes_minus_bitpos): Same.
5735 (change_address): Same.
5736 (adjust_address_1): Same.
5737 (offset_address): Same.
5738 * emit-rtl.h: Same.
5739 * except.c (dw2_build_landing_pads): Same.
5740 (sjlj_emit_dispatch_table): Same.
5741 * explow.c (allocate_dynamic_stack_space): Same.
5742 (emit_stack_probe): Same.
5743 (probe_stack_range): Same.
5744 * expmed.c (store_bit_field_using_insv): Same.
5745 (store_bit_field_1): Same.
5746 (store_integral_bit_field): Same.
5747 (extract_bit_field_using_extv): Same.
5748 (extract_bit_field_1): Same.
5749 (emit_cstore): Same.
5750 * expr.c (emit_block_move_via_cpymem): Same.
5751 (expand_cmpstrn_or_cmpmem): Same.
5752 (set_storage_via_setmem): Same.
5753 (emit_single_push_insn_1): Same.
5754 (expand_assignment): Same.
5755 (store_constructor): Same.
5756 (expand_expr_real_2): Same.
5757 (expand_expr_real_1): Same.
5758 (try_casesi): Same.
5759 * flags.h: Same.
5760 * function.c (try_fit_stack_local): Same.
5761 (assign_stack_local_1): Same.
5762 (assign_stack_local): Same.
5763 (cut_slot_from_list): Same.
5764 (insert_slot_to_list): Same.
5765 (max_slot_level): Same.
5766 (move_slot_to_level): Same.
5767 (temp_address_hasher::equal): Same.
5768 (remove_unused_temp_slot_addresses): Same.
5769 (assign_temp): Same.
5770 (combine_temp_slots): Same.
5771 (update_temp_slot_address): Same.
5772 (preserve_temp_slots): Same.
5773 * function.h: Same.
5774 * fwprop.c: Same.
5775 * gcc-rich-location.h: Same.
5776 * gcov.c: Same.
5777 * genattrtab.c (check_attr_test): Same.
5778 (check_attr_value): Same.
5779 (convert_set_attr_alternative): Same.
5780 (convert_set_attr): Same.
5781 (check_defs): Same.
5782 (copy_boolean): Same.
5783 (get_attr_value): Same.
5784 (expand_delays): Same.
5785 (make_length_attrs): Same.
5786 (min_fn): Same.
5787 (make_alternative_compare): Same.
5788 (simplify_test_exp): Same.
5789 (tests_attr_p): Same.
5790 (get_attr_order): Same.
5791 (clear_struct_flag): Same.
5792 (gen_attr): Same.
5793 (compares_alternatives_p): Same.
5794 (gen_insn): Same.
5795 (gen_delay): Same.
5796 (find_attrs_to_cache): Same.
5797 (write_test_expr): Same.
5798 (walk_attr_value): Same.
5799 (write_attr_get): Same.
5800 (eliminate_known_true): Same.
5801 (write_insn_cases): Same.
5802 (write_attr_case): Same.
5803 (write_attr_valueq): Same.
5804 (write_attr_value): Same.
5805 (write_dummy_eligible_delay): Same.
5806 (next_comma_elt): Same.
5807 (find_attr): Same.
5808 (make_internal_attr): Same.
5809 (copy_rtx_unchanging): Same.
5810 (gen_insn_reserv): Same.
5811 (check_tune_attr): Same.
5812 (make_automaton_attrs): Same.
5813 (handle_arg): Same.
5814 * genextract.c (gen_insn): Same.
5815 (VEC_char_to_string): Same.
5816 * genmatch.c (print_operand): Same.
5817 (lower): Same.
5818 (parser::parse_operation): Same.
5819 (parser::parse_capture): Same.
5820 (parser::parse_c_expr): Same.
5821 (parser::parse_simplify): Same.
5822 (main): Same.
5823 * genoutput.c (output_operand_data): Same.
5824 (output_get_insn_name): Same.
5825 (compare_operands): Same.
5826 (place_operands): Same.
5827 (process_template): Same.
5828 (validate_insn_alternatives): Same.
5829 (validate_insn_operands): Same.
5830 (gen_expand): Same.
5831 (note_constraint): Same.
5832 * genpreds.c (write_one_predicate_function): Same.
5833 (add_constraint): Same.
5834 (process_define_register_constraint): Same.
5835 (write_lookup_constraint_1): Same.
5836 (write_lookup_constraint_array): Same.
5837 (write_insn_constraint_len): Same.
5838 (write_reg_class_for_constraint_1): Same.
5839 (write_constraint_satisfied_p_array): Same.
5840 * genrecog.c (optimize_subroutine_group): Same.
5841 * gensupport.c (process_define_predicate): Same.
5842 (queue_pattern): Same.
5843 (remove_from_queue): Same.
5844 (process_rtx): Same.
5845 (is_predicable): Same.
5846 (change_subst_attribute): Same.
5847 (subst_pattern_match): Same.
5848 (alter_constraints): Same.
5849 (alter_attrs_for_insn): Same.
5850 (shift_output_template): Same.
5851 (alter_output_for_subst_insn): Same.
5852 (process_one_cond_exec): Same.
5853 (subst_dup): Same.
5854 (process_define_cond_exec): Same.
5855 (mnemonic_htab_callback): Same.
5856 (gen_mnemonic_attr): Same.
5857 (read_md_rtx): Same.
5858 * ggc-page.c: Same.
5859 * gimple-loop-interchange.cc (dump_reduction): Same.
5860 (dump_induction): Same.
5861 (loop_cand::~loop_cand): Same.
5862 (free_data_refs_with_aux): Same.
5863 (tree_loop_interchange::interchange_loops): Same.
5864 (tree_loop_interchange::map_inductions_to_loop): Same.
5865 (tree_loop_interchange::move_code_to_inner_loop): Same.
5866 (compute_access_stride): Same.
5867 (compute_access_strides): Same.
5868 (proper_loop_form_for_interchange): Same.
5869 (tree_loop_interchange_compute_ddrs): Same.
5870 (prune_datarefs_not_in_loop): Same.
5871 (prepare_data_references): Same.
5872 (pass_linterchange::execute): Same.
5873 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5874 (unroll_jam_possible_p): Same.
5875 (fuse_loops): Same.
5876 (adjust_unroll_factor): Same.
5877 (tree_loop_unroll_and_jam): Same.
5878 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5879 (loop_versioning::expensive_stmt_p): Same.
5880 (loop_versioning::version_for_unity): Same.
5881 (loop_versioning::dump_inner_likelihood): Same.
5882 (loop_versioning::find_per_loop_multiplication): Same.
5883 (loop_versioning::analyze_term_using_scevs): Same.
5884 (loop_versioning::record_address_fragment): Same.
5885 (loop_versioning::analyze_expr): Same.
5886 (loop_versioning::analyze_blocks): Same.
5887 (loop_versioning::prune_conditions): Same.
5888 (loop_versioning::merge_loop_info): Same.
5889 (loop_versioning::add_loop_to_queue): Same.
5890 (loop_versioning::decide_whether_loop_is_versionable): Same.
5891 (loop_versioning::make_versioning_decisions): Same.
5892 (loop_versioning::implement_versioning_decisions): Same.
5893 * gimple-ssa-evrp-analyze.c
5894 (evrp_range_analyzer::record_ranges_from_phis): Same.
5895 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5896 (count_multiple_uses): Same.
5897 (split_group): Same.
5898 (imm_store_chain_info::output_merged_store): Same.
5899 (pass_store_merging::process_store): Same.
5900 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5901 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5902 (is_max): Same.
5903 (alloca_call_type): Same.
5904 (pass_walloca::execute): Same.
5905 * gimple-streamer-in.c (input_phi): Same.
5906 (input_gimple_stmt): Same.
5907 * gimple-streamer.h: Same.
5908 * godump.c (go_force_record_alignment): Same.
5909 (go_format_type): Same.
5910 (go_output_type): Same.
5911 (go_output_fndecl): Same.
5912 (go_output_typedef): Same.
5913 (keyword_hash_init): Same.
5914 (find_dummy_types): Same.
5915 * graph.c (draw_cfg_nodes_no_loops): Same.
5916 (draw_cfg_nodes_for_loop): Same.
5917 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5918 * hsa-brig.c: Same.
5919 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5920 * hsa-dump.c (dump_hsa_cfun): Same.
5921 * hsa-gen.c (gen_function_def_parameters): Same.
5922 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5923 * input.c (dump_line_table_statistics): Same.
5924 (test_lexer): Same.
5925 * input.h: Same.
5926 * internal-fn.c (get_multi_vector_move): Same.
5927 (expand_load_lanes_optab_fn): Same.
5928 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5929 (expand_GOMP_SIMT_EXIT): Same.
5930 (expand_GOMP_SIMT_LAST_LANE): Same.
5931 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5932 (expand_GOMP_SIMT_VOTE_ANY): Same.
5933 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5934 (expand_GOMP_SIMT_XCHG_IDX): Same.
5935 (expand_addsub_overflow): Same.
5936 (expand_neg_overflow): Same.
5937 (expand_mul_overflow): Same.
5938 (expand_call_mem_ref): Same.
5939 (expand_mask_load_optab_fn): Same.
5940 (expand_scatter_store_optab_fn): Same.
5941 (expand_gather_load_optab_fn): Same.
5942 * ipa-cp.c (ipa_get_parm_lattices): Same.
5943 (print_all_lattices): Same.
5944 (ignore_edge_p): Same.
5945 (build_toporder_info): Same.
5946 (free_toporder_info): Same.
5947 (push_node_to_stack): Same.
5948 (ipcp_lattice<valtype>::set_contains_variable): Same.
5949 (set_agg_lats_to_bottom): Same.
5950 (ipcp_bits_lattice::meet_with): Same.
5951 (set_single_call_flag): Same.
5952 (initialize_node_lattices): Same.
5953 (ipa_get_jf_ancestor_result): Same.
5954 (ipcp_verify_propagated_values): Same.
5955 (propagate_scalar_across_jump_function): Same.
5956 (propagate_context_across_jump_function): Same.
5957 (propagate_bits_across_jump_function): Same.
5958 (ipa_vr_operation_and_type_effects): Same.
5959 (propagate_vr_across_jump_function): Same.
5960 (set_check_aggs_by_ref): Same.
5961 (set_chain_of_aglats_contains_variable): Same.
5962 (merge_aggregate_lattices): Same.
5963 (agg_pass_through_permissible_p): Same.
5964 (propagate_aggs_across_jump_function): Same.
5965 (call_passes_through_thunk_p): Same.
5966 (propagate_constants_across_call): Same.
5967 (devirtualization_time_bonus): Same.
5968 (good_cloning_opportunity_p): Same.
5969 (context_independent_aggregate_values): Same.
5970 (gather_context_independent_values): Same.
5971 (perform_estimation_of_a_value): Same.
5972 (estimate_local_effects): Same.
5973 (value_topo_info<valtype>::add_val): Same.
5974 (add_all_node_vals_to_toposort): Same.
5975 (value_topo_info<valtype>::propagate_effects): Same.
5976 (ipcp_propagate_stage): Same.
5977 (ipcp_discover_new_direct_edges): Same.
5978 (same_node_or_its_all_contexts_clone_p): Same.
5979 (cgraph_edge_brings_value_p): Same.
5980 (gather_edges_for_value): Same.
5981 (create_specialized_node): Same.
5982 (find_more_scalar_values_for_callers_subset): Same.
5983 (find_more_contexts_for_caller_subset): Same.
5984 (copy_plats_to_inter): Same.
5985 (intersect_aggregates_with_edge): Same.
5986 (find_aggregate_values_for_callers_subset): Same.
5987 (cgraph_edge_brings_all_agg_vals_for_node): Same.
5988 (decide_about_value): Same.
5989 (decide_whether_version_node): Same.
5990 (spread_undeadness): Same.
5991 (identify_dead_nodes): Same.
5992 (ipcp_store_vr_results): Same.
5993 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
5994 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
5995 (redirect_to_unreachable): Same.
5996 (edge_set_predicate): Same.
5997 (evaluate_conditions_for_known_args): Same.
5998 (evaluate_properties_for_edge): Same.
5999 (ipa_fn_summary_t::duplicate): Same.
6000 (ipa_call_summary_t::duplicate): Same.
6001 (dump_ipa_call_summary): Same.
6002 (ipa_dump_fn_summary): Same.
6003 (eliminated_by_inlining_prob): Same.
6004 (set_cond_stmt_execution_predicate): Same.
6005 (set_switch_stmt_execution_predicate): Same.
6006 (compute_bb_predicates): Same.
6007 (will_be_nonconstant_expr_predicate): Same.
6008 (phi_result_unknown_predicate): Same.
6009 (analyze_function_body): Same.
6010 (compute_fn_summary): Same.
6011 (estimate_edge_devirt_benefit): Same.
6012 (estimate_edge_size_and_time): Same.
6013 (estimate_calls_size_and_time): Same.
6014 (estimate_node_size_and_time): Same.
6015 (remap_edge_change_prob): Same.
6016 (remap_edge_summaries): Same.
6017 (ipa_merge_fn_summary_after_inlining): Same.
6018 (ipa_fn_summary_generate): Same.
6019 (inline_read_section): Same.
6020 (ipa_fn_summary_read): Same.
6021 (ipa_fn_summary_write): Same.
6022 * ipa-fnsummary.h: Same.
6023 * ipa-hsa.c (ipa_hsa_read_section): Same.
6024 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
6025 * ipa-icf.c (sem_function::param_used_p): Same.
6026 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
6027 * ipa-inline.c (edge_badness): Same.
6028 (inline_small_functions): Same.
6029 * ipa-polymorphic-call.c
6030 (ipa_polymorphic_call_context::stream_out): Same.
6031 * ipa-predicate.c (predicate::remap_after_duplication): Same.
6032 (predicate::remap_after_inlining): Same.
6033 (predicate::stream_out): Same.
6034 * ipa-predicate.h: Same.
6035 * ipa-profile.c (ipa_profile_read_summary): Same.
6036 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
6037 (count_formal_params): Same.
6038 (ipa_dump_param): Same.
6039 (ipa_alloc_node_params): Same.
6040 (ipa_print_node_jump_functions_for_edge): Same.
6041 (ipa_print_node_jump_functions): Same.
6042 (ipa_load_from_parm_agg): Same.
6043 (get_ancestor_addr_info): Same.
6044 (ipa_compute_jump_functions_for_edge): Same.
6045 (ipa_analyze_virtual_call_uses): Same.
6046 (ipa_analyze_stmt_uses): Same.
6047 (ipa_analyze_params_uses_in_bb): Same.
6048 (update_jump_functions_after_inlining): Same.
6049 (try_decrement_rdesc_refcount): Same.
6050 (ipa_impossible_devirt_target): Same.
6051 (update_indirect_edges_after_inlining): Same.
6052 (combine_controlled_uses_counters): Same.
6053 (ipa_edge_args_sum_t::duplicate): Same.
6054 (ipa_write_jump_function): Same.
6055 (ipa_write_indirect_edge_info): Same.
6056 (ipa_write_node_info): Same.
6057 (ipa_read_edge_info): Same.
6058 (ipa_prop_read_section): Same.
6059 (read_replacements_section): Same.
6060 * ipa-prop.h (ipa_get_param_count): Same.
6061 (ipa_get_param): Same.
6062 (ipa_get_type): Same.
6063 (ipa_get_param_move_cost): Same.
6064 (ipa_set_param_used): Same.
6065 (ipa_get_controlled_uses): Same.
6066 (ipa_set_controlled_uses): Same.
6067 (ipa_get_cs_argument_count): Same.
6068 * ipa-pure-const.c (analyze_function): Same.
6069 (pure_const_read_summary): Same.
6070 * ipa-ref.h: Same.
6071 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
6072 * ipa-split.c (test_nonssa_use): Same.
6073 (dump_split_point): Same.
6074 (dominated_by_forbidden): Same.
6075 (split_part_set_ssa_name_p): Same.
6076 (find_split_points): Same.
6077 * ira-build.c (finish_loop_tree_nodes): Same.
6078 (low_pressure_loop_node_p): Same.
6079 * ira-color.c (ira_reuse_stack_slot): Same.
6080 * ira-int.h: Same.
6081 * ira.c (setup_reg_equiv): Same.
6082 (print_insn_chain): Same.
6083 (ira): Same.
6084 * loop-doloop.c (doloop_condition_get): Same.
6085 (add_test): Same.
6086 (record_reg_sets): Same.
6087 (doloop_optimize): Same.
6088 * loop-init.c (loop_optimizer_init): Same.
6089 (fix_loop_structure): Same.
6090 * loop-invariant.c (merge_identical_invariants): Same.
6091 (compute_always_reached): Same.
6092 (find_exits): Same.
6093 (may_assign_reg_p): Same.
6094 (find_invariants_bb): Same.
6095 (find_invariants_body): Same.
6096 (replace_uses): Same.
6097 (can_move_invariant_reg): Same.
6098 (free_inv_motion_data): Same.
6099 (move_single_loop_invariants): Same.
6100 (change_pressure): Same.
6101 (mark_ref_regs): Same.
6102 (calculate_loop_reg_pressure): Same.
6103 * loop-iv.c (biv_entry_hasher::equal): Same.
6104 (iv_extend_to_rtx_code): Same.
6105 (check_iv_ref_table_size): Same.
6106 (clear_iv_info): Same.
6107 (latch_dominating_def): Same.
6108 (iv_get_reaching_def): Same.
6109 (iv_constant): Same.
6110 (iv_subreg): Same.
6111 (iv_extend): Same.
6112 (iv_neg): Same.
6113 (iv_add): Same.
6114 (iv_mult): Same.
6115 (get_biv_step): Same.
6116 (record_iv): Same.
6117 (analyzed_for_bivness_p): Same.
6118 (record_biv): Same.
6119 (iv_analyze_biv): Same.
6120 (iv_analyze_expr): Same.
6121 (iv_analyze_def): Same.
6122 (iv_analyze_op): Same.
6123 (iv_analyze): Same.
6124 (iv_analyze_result): Same.
6125 (biv_p): Same.
6126 (eliminate_implied_conditions): Same.
6127 (simplify_using_initial_values): Same.
6128 (shorten_into_mode): Same.
6129 (canonicalize_iv_subregs): Same.
6130 (determine_max_iter): Same.
6131 (check_simple_exit): Same.
6132 (find_simple_exit): Same.
6133 (get_simple_loop_desc): Same.
6134 * loop-unroll.c (report_unroll): Same.
6135 (decide_unrolling): Same.
6136 (unroll_loops): Same.
6137 (loop_exit_at_end_p): Same.
6138 (decide_unroll_constant_iterations): Same.
6139 (unroll_loop_constant_iterations): Same.
6140 (compare_and_jump_seq): Same.
6141 (unroll_loop_runtime_iterations): Same.
6142 (decide_unroll_stupid): Same.
6143 (unroll_loop_stupid): Same.
6144 (referenced_in_one_insn_in_loop_p): Same.
6145 (reset_debug_uses_in_loop): Same.
6146 (analyze_iv_to_split_insn): Same.
6147 * lra-eliminations.c (lra_debug_elim_table): Same.
6148 (setup_can_eliminate): Same.
6149 (form_sum): Same.
6150 (lra_get_elimination_hard_regno): Same.
6151 (lra_eliminate_regs_1): Same.
6152 (eliminate_regs_in_insn): Same.
6153 (update_reg_eliminate): Same.
6154 (init_elimination): Same.
6155 (lra_eliminate): Same.
6156 * lra-int.h: Same.
6157 * lra-lives.c (initiate_live_solver): Same.
6158 * lra-remat.c (create_remat_bb_data): Same.
6159 * lra-spills.c (lra_spill): Same.
6160 * lra.c (lra_set_insn_recog_data): Same.
6161 (lra_set_used_insn_alternative_by_uid): Same.
6162 (init_reg_info): Same.
6163 (expand_reg_info): Same.
6164 * lto-cgraph.c (output_symtab): Same.
6165 (read_identifier): Same.
6166 (get_alias_symbol): Same.
6167 (input_node): Same.
6168 (input_varpool_node): Same.
6169 (input_ref): Same.
6170 (input_edge): Same.
6171 (input_cgraph_1): Same.
6172 (input_refs): Same.
6173 (input_symtab): Same.
6174 (input_offload_tables): Same.
6175 (output_cgraph_opt_summary): Same.
6176 (input_edge_opt_summary): Same.
6177 (input_cgraph_opt_section): Same.
6178 * lto-section-in.c (lto_free_raw_section_data): Same.
6179 (lto_create_simple_input_block): Same.
6180 (lto_free_function_in_decl_state_for_node): Same.
6181 * lto-streamer-in.c (lto_tag_check_set): Same.
6182 (lto_location_cache::revert_location_cache): Same.
6183 (lto_location_cache::input_location): Same.
6184 (lto_input_location): Same.
6185 (stream_input_location_now): Same.
6186 (lto_input_tree_ref): Same.
6187 (lto_input_eh_catch_list): Same.
6188 (input_eh_region): Same.
6189 (lto_init_eh): Same.
6190 (make_new_block): Same.
6191 (input_cfg): Same.
6192 (fixup_call_stmt_edges): Same.
6193 (input_struct_function_base): Same.
6194 (input_function): Same.
6195 (lto_read_body_or_constructor): Same.
6196 (lto_read_tree_1): Same.
6197 (lto_read_tree): Same.
6198 (lto_input_scc): Same.
6199 (lto_input_tree_1): Same.
6200 (lto_input_toplevel_asms): Same.
6201 (lto_input_mode_table): Same.
6202 (lto_reader_init): Same.
6203 (lto_data_in_create): Same.
6204 * lto-streamer-out.c (output_cfg): Same.
6205 * lto-streamer.h: Same.
6206 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6207 (generate_prolog_epilog): Same.
6208 (mark_loop_unsched): Same.
6209 (dump_insn_location): Same.
6210 (loop_canon_p): Same.
6211 (sms_schedule): Same.
6212 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6213 (expand_omp_for_generic): Same.
6214 (expand_omp_for_static_nochunk): Same.
6215 (expand_omp_for_static_chunk): Same.
6216 (expand_omp_simd): Same.
6217 (expand_omp_taskloop_for_inner): Same.
6218 (expand_oacc_for): Same.
6219 (expand_omp_atomic_pipeline): Same.
6220 (mark_loops_in_oacc_kernels_region): Same.
6221 * omp-offload.c (oacc_xform_loop): Same.
6222 * omp-simd-clone.c (simd_clone_adjust): Same.
6223 * optabs-query.c (get_traditional_extraction_insn): Same.
6224 * optabs.c (expand_vector_broadcast): Same.
6225 (expand_binop_directly): Same.
6226 (expand_twoval_unop): Same.
6227 (expand_twoval_binop): Same.
6228 (expand_unop_direct): Same.
6229 (emit_indirect_jump): Same.
6230 (emit_conditional_move): Same.
6231 (emit_conditional_neg_or_complement): Same.
6232 (emit_conditional_add): Same.
6233 (vector_compare_rtx): Same.
6234 (expand_vec_perm_1): Same.
6235 (expand_vec_perm_const): Same.
6236 (expand_vec_cond_expr): Same.
6237 (expand_vec_series_expr): Same.
6238 (maybe_emit_atomic_exchange): Same.
6239 (maybe_emit_sync_lock_test_and_set): Same.
6240 (expand_atomic_compare_and_swap): Same.
6241 (expand_atomic_load): Same.
6242 (expand_atomic_store): Same.
6243 (maybe_emit_op): Same.
6244 (valid_multiword_target_p): Same.
6245 (create_integer_operand): Same.
6246 (maybe_legitimize_operand_same_code): Same.
6247 (maybe_legitimize_operand): Same.
6248 (create_convert_operand_from_type): Same.
6249 (can_reuse_operands_p): Same.
6250 (maybe_legitimize_operands): Same.
6251 (maybe_gen_insn): Same.
6252 (maybe_expand_insn): Same.
6253 (maybe_expand_jump_insn): Same.
6254 (expand_insn): Same.
6255 * optabs.h (create_expand_operand): Same.
6256 (create_fixed_operand): Same.
6257 (create_output_operand): Same.
6258 (create_input_operand): Same.
6259 (create_convert_operand_to): Same.
6260 (create_convert_operand_from): Same.
6261 * optinfo.h: Same.
6262 * poly-int.h: Same.
6263 * predict.c (optimize_insn_for_speed_p): Same.
6264 (optimize_loop_for_size_p): Same.
6265 (optimize_loop_for_speed_p): Same.
6266 (optimize_loop_nest_for_speed_p): Same.
6267 (get_base_value): Same.
6268 (predicted_by_loop_heuristics_p): Same.
6269 (predict_extra_loop_exits): Same.
6270 (predict_loops): Same.
6271 (predict_paths_for_bb): Same.
6272 (predict_paths_leading_to): Same.
6273 (propagate_freq): Same.
6274 (pass_profile::execute): Same.
6275 * predict.h: Same.
6276 * profile-count.c (profile_count::differs_from_p): Same.
6277 (profile_probability::differs_lot_from_p): Same.
6278 * profile-count.h: Same.
6279 * profile.c (branch_prob): Same.
6280 * regrename.c (free_chain_data): Same.
6281 (mark_conflict): Same.
6282 (create_new_chain): Same.
6283 (merge_overlapping_regs): Same.
6284 (init_rename_info): Same.
6285 (merge_chains): Same.
6286 (regrename_analyze): Same.
6287 (regrename_do_replace): Same.
6288 (scan_rtx_reg): Same.
6289 (record_out_operands): Same.
6290 (build_def_use): Same.
6291 * regrename.h: Same.
6292 * reload.h: Same.
6293 * reload1.c (init_reload): Same.
6294 (maybe_fix_stack_asms): Same.
6295 (copy_reloads): Same.
6296 (count_pseudo): Same.
6297 (count_spilled_pseudo): Same.
6298 (find_reg): Same.
6299 (find_reload_regs): Same.
6300 (select_reload_regs): Same.
6301 (spill_hard_reg): Same.
6302 (fixup_eh_region_note): Same.
6303 (set_reload_reg): Same.
6304 (allocate_reload_reg): Same.
6305 (compute_reload_subreg_offset): Same.
6306 (reload_adjust_reg_for_icode): Same.
6307 (emit_input_reload_insns): Same.
6308 (emit_output_reload_insns): Same.
6309 (do_input_reload): Same.
6310 (inherit_piecemeal_p): Same.
6311 * rtl.h: Same.
6312 * sanopt.c (maybe_get_dominating_check): Same.
6313 (maybe_optimize_ubsan_ptr_ifn): Same.
6314 (can_remove_asan_check): Same.
6315 (maybe_optimize_asan_check_ifn): Same.
6316 (sanopt_optimize_walker): Same.
6317 * sched-deps.c (add_dependence_list): Same.
6318 (chain_to_prev_insn): Same.
6319 (add_insn_mem_dependence): Same.
6320 (create_insn_reg_set): Same.
6321 (maybe_extend_reg_info_p): Same.
6322 (sched_analyze_reg): Same.
6323 (sched_analyze_1): Same.
6324 (get_implicit_reg_pending_clobbers): Same.
6325 (chain_to_prev_insn_p): Same.
6326 (deps_analyze_insn): Same.
6327 (deps_start_bb): Same.
6328 (sched_free_deps): Same.
6329 (init_deps): Same.
6330 (init_deps_reg_last): Same.
6331 (free_deps): Same.
6332 * sched-ebb.c: Same.
6333 * sched-int.h: Same.
6334 * sched-rgn.c (add_branch_dependences): Same.
6335 (concat_insn_mem_list): Same.
6336 (deps_join): Same.
6337 (sched_rgn_compute_dependencies): Same.
6338 * sel-sched-ir.c (reset_target_context): Same.
6339 (copy_deps_context): Same.
6340 (init_id_from_df): Same.
6341 (has_dependence_p): Same.
6342 (change_loops_latches): Same.
6343 (bb_top_order_comparator): Same.
6344 (make_region_from_loop_preheader): Same.
6345 (sel_init_pipelining): Same.
6346 (get_loop_nest_for_rgn): Same.
6347 (make_regions_from_the_rest): Same.
6348 (sel_is_loop_preheader_p): Same.
6349 * sel-sched-ir.h (inner_loop_header_p): Same.
6350 (get_all_loop_exits): Same.
6351 * selftest.h: Same.
6352 * sese.c (sese_build_liveouts): Same.
6353 (sese_insert_phis_for_liveouts): Same.
6354 * sese.h (defined_in_sese_p): Same.
6355 * sreal.c (sreal::stream_out): Same.
6356 * sreal.h: Same.
6357 * streamer-hooks.h: Same.
6358 * target-globals.c (save_target_globals): Same.
6359 * target-globals.h: Same.
6360 * target.def: Same.
6361 * target.h: Same.
6362 * targhooks.c (default_has_ifunc_p): Same.
6363 (default_empty_mask_is_expensive): Same.
6364 (default_init_cost): Same.
6365 * targhooks.h: Same.
6366 * toplev.c: Same.
6367 * tree-affine.c (aff_combination_mult): Same.
6368 (aff_combination_expand): Same.
6369 (aff_combination_constant_multiple_p): Same.
6370 * tree-affine.h: Same.
6371 * tree-cfg.c (build_gimple_cfg): Same.
6372 (replace_loop_annotate_in_block): Same.
6373 (replace_uses_by): Same.
6374 (remove_bb): Same.
6375 (dump_cfg_stats): Same.
6376 (gimple_duplicate_sese_region): Same.
6377 (gimple_duplicate_sese_tail): Same.
6378 (move_block_to_fn): Same.
6379 (replace_block_vars_by_duplicates): Same.
6380 (move_sese_region_to_fn): Same.
6381 (print_loops_bb): Same.
6382 (print_loop): Same.
6383 (print_loops): Same.
6384 (debug): Same.
6385 (debug_loops): Same.
6386 * tree-cfg.h: Same.
6387 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6388 (chrec_fold_multiply_poly_poly): Same.
6389 (chrec_evaluate): Same.
6390 (chrec_component_in_loop_num): Same.
6391 (reset_evolution_in_loop): Same.
6392 (is_multivariate_chrec): Same.
6393 (chrec_contains_symbols): Same.
6394 (nb_vars_in_chrec): Same.
6395 (chrec_convert_1): Same.
6396 (chrec_convert_aggressive): Same.
6397 * tree-chrec.h: Same.
6398 * tree-core.h: Same.
6399 * tree-data-ref.c (dump_data_dependence_relation): Same.
6400 (canonicalize_base_object_address): Same.
6401 (data_ref_compare_tree): Same.
6402 (prune_runtime_alias_test_list): Same.
6403 (get_segment_min_max): Same.
6404 (create_intersect_range_checks): Same.
6405 (conflict_fn_no_dependence): Same.
6406 (object_address_invariant_in_loop_p): Same.
6407 (analyze_ziv_subscript): Same.
6408 (analyze_siv_subscript_cst_affine): Same.
6409 (analyze_miv_subscript): Same.
6410 (analyze_overlapping_iterations): Same.
6411 (build_classic_dist_vector_1): Same.
6412 (add_other_self_distances): Same.
6413 (same_access_functions): Same.
6414 (build_classic_dir_vector): Same.
6415 (subscript_dependence_tester_1): Same.
6416 (subscript_dependence_tester): Same.
6417 (access_functions_are_affine_or_constant_p): Same.
6418 (get_references_in_stmt): Same.
6419 (loop_nest_has_data_refs): Same.
6420 (graphite_find_data_references_in_stmt): Same.
6421 (find_data_references_in_bb): Same.
6422 (get_base_for_alignment): Same.
6423 (find_loop_nest_1): Same.
6424 (find_loop_nest): Same.
6425 * tree-data-ref.h (dr_alignment): Same.
6426 (ddr_dependence_level): Same.
6427 * tree-if-conv.c (fold_build_cond_expr): Same.
6428 (add_to_predicate_list): Same.
6429 (add_to_dst_predicate_list): Same.
6430 (phi_convertible_by_degenerating_args): Same.
6431 (idx_within_array_bound): Same.
6432 (all_preds_critical_p): Same.
6433 (pred_blocks_visited_p): Same.
6434 (predicate_bbs): Same.
6435 (build_region): Same.
6436 (if_convertible_loop_p_1): Same.
6437 (is_cond_scalar_reduction): Same.
6438 (predicate_scalar_phi): Same.
6439 (remove_conditions_and_labels): Same.
6440 (combine_blocks): Same.
6441 (version_loop_for_if_conversion): Same.
6442 (versionable_outer_loop_p): Same.
6443 (ifcvt_local_dce): Same.
6444 (tree_if_conversion): Same.
6445 (pass_if_conversion::gate): Same.
6446 * tree-if-conv.h: Same.
6447 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6448 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6449 (free_rdg): Same.
6450 (stmt_has_scalar_dependences_outside_loop): Same.
6451 (copy_loop_before): Same.
6452 (create_bb_after_loop): Same.
6453 (const_with_all_bytes_same): Same.
6454 (generate_memset_builtin): Same.
6455 (generate_memcpy_builtin): Same.
6456 (destroy_loop): Same.
6457 (build_rdg_partition_for_vertex): Same.
6458 (compute_access_range): Same.
6459 (data_ref_segment_size): Same.
6460 (latch_dominated_by_data_ref): Same.
6461 (compute_alias_check_pairs): Same.
6462 (fuse_memset_builtins): Same.
6463 (finalize_partitions): Same.
6464 (find_seed_stmts_for_distribution): Same.
6465 (prepare_perfect_loop_nest): Same.
6466 * tree-parloops.c (lambda_transform_legal_p): Same.
6467 (loop_parallel_p): Same.
6468 (reduc_stmt_res): Same.
6469 (add_field_for_name): Same.
6470 (create_call_for_reduction_1): Same.
6471 (replace_uses_in_bb_by): Same.
6472 (transform_to_exit_first_loop_alt): Same.
6473 (try_transform_to_exit_first_loop_alt): Same.
6474 (transform_to_exit_first_loop): Same.
6475 (num_phis): Same.
6476 (gen_parallel_loop): Same.
6477 (gather_scalar_reductions): Same.
6478 (get_omp_data_i_param): Same.
6479 (try_create_reduction_list): Same.
6480 (oacc_entry_exit_single_gang): Same.
6481 (parallelize_loops): Same.
6482 * tree-pass.h: Same.
6483 * tree-predcom.c (determine_offset): Same.
6484 (last_always_executed_block): Same.
6485 (split_data_refs_to_components): Same.
6486 (suitable_component_p): Same.
6487 (valid_initializer_p): Same.
6488 (find_looparound_phi): Same.
6489 (insert_looparound_copy): Same.
6490 (add_looparound_copies): Same.
6491 (determine_roots_comp): Same.
6492 (predcom_tmp_var): Same.
6493 (initialize_root_vars): Same.
6494 (initialize_root_vars_store_elim_1): Same.
6495 (initialize_root_vars_store_elim_2): Same.
6496 (finalize_eliminated_stores): Same.
6497 (initialize_root_vars_lm): Same.
6498 (remove_stmt): Same.
6499 (determine_unroll_factor): Same.
6500 (execute_pred_commoning_cbck): Same.
6501 (base_names_in_chain_on): Same.
6502 (combine_chains): Same.
6503 (pcom_stmt_dominates_stmt_p): Same.
6504 (try_combine_chains): Same.
6505 (prepare_initializers_chain_store_elim): Same.
6506 (prepare_initializers_chain): Same.
6507 (prepare_initializers): Same.
6508 (prepare_finalizers_chain): Same.
6509 (prepare_finalizers): Same.
6510 (insert_init_seqs): Same.
6511 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6512 (compute_overall_effect_of_inner_loop): Same.
6513 (add_to_evolution_1): Same.
6514 (add_to_evolution): Same.
6515 (follow_ssa_edge_binary): Same.
6516 (follow_ssa_edge_expr): Same.
6517 (backedge_phi_arg_p): Same.
6518 (follow_ssa_edge_in_condition_phi_branch): Same.
6519 (follow_ssa_edge_in_condition_phi): Same.
6520 (follow_ssa_edge_inner_loop_phi): Same.
6521 (follow_ssa_edge): Same.
6522 (analyze_evolution_in_loop): Same.
6523 (analyze_initial_condition): Same.
6524 (interpret_loop_phi): Same.
6525 (interpret_condition_phi): Same.
6526 (interpret_rhs_expr): Same.
6527 (interpret_expr): Same.
6528 (interpret_gimple_assign): Same.
6529 (analyze_scalar_evolution_1): Same.
6530 (analyze_scalar_evolution): Same.
6531 (analyze_scalar_evolution_for_address_of): Same.
6532 (get_instantiated_value_entry): Same.
6533 (loop_closed_phi_def): Same.
6534 (instantiate_scev_name): Same.
6535 (instantiate_scev_poly): Same.
6536 (instantiate_scev_binary): Same.
6537 (instantiate_scev_convert): Same.
6538 (instantiate_scev_not): Same.
6539 (instantiate_scev_r): Same.
6540 (instantiate_scev): Same.
6541 (resolve_mixers): Same.
6542 (initialize_scalar_evolutions_analyzer): Same.
6543 (scev_reset_htab): Same.
6544 (scev_reset): Same.
6545 (derive_simple_iv_with_niters): Same.
6546 (simple_iv_with_niters): Same.
6547 (expression_expensive_p): Same.
6548 (final_value_replacement_loop): Same.
6549 * tree-scalar-evolution.h (block_before_loop): Same.
6550 * tree-ssa-address.h: Same.
6551 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6552 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6553 (record_edge_info): Same.
6554 * tree-ssa-live.c (var_map_base_fini): Same.
6555 (remove_unused_locals): Same.
6556 * tree-ssa-live.h: Same.
6557 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6558 (pass_ch_vect::execute): Same.
6559 (pass_ch::process_loop_p): Same.
6560 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6561 (movement_possibility): Same.
6562 (outermost_invariant_loop): Same.
6563 (stmt_cost): Same.
6564 (determine_max_movement): Same.
6565 (invariantness_dom_walker::before_dom_children): Same.
6566 (move_computations): Same.
6567 (may_move_till): Same.
6568 (force_move_till_op): Same.
6569 (force_move_till): Same.
6570 (memref_free): Same.
6571 (record_mem_ref_loc): Same.
6572 (set_ref_stored_in_loop): Same.
6573 (mark_ref_stored): Same.
6574 (sort_bbs_in_loop_postorder_cmp): Same.
6575 (sort_locs_in_loop_postorder_cmp): Same.
6576 (analyze_memory_references): Same.
6577 (mem_refs_may_alias_p): Same.
6578 (find_ref_loc_in_loop_cmp): Same.
6579 (rewrite_mem_ref_loc::operator): Same.
6580 (first_mem_ref_loc_1::operator): Same.
6581 (sm_set_flag_if_changed::operator): Same.
6582 (execute_sm_if_changed_flag_set): Same.
6583 (execute_sm): Same.
6584 (hoist_memory_references): Same.
6585 (ref_always_accessed::operator): Same.
6586 (refs_independent_p): Same.
6587 (record_dep_loop): Same.
6588 (ref_indep_loop_p_1): Same.
6589 (ref_indep_loop_p): Same.
6590 (can_sm_ref_p): Same.
6591 (find_refs_for_sm): Same.
6592 (loop_suitable_for_sm): Same.
6593 (store_motion_loop): Same.
6594 (store_motion): Same.
6595 (fill_always_executed_in): Same.
6596 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6597 (estimated_unrolled_size): Same.
6598 (loop_edge_to_cancel): Same.
6599 (remove_exits_and_undefined_stmts): Same.
6600 (remove_redundant_iv_tests): Same.
6601 (unloop_loops): Same.
6602 (estimated_peeled_sequence_size): Same.
6603 (try_peel_loop): Same.
6604 (canonicalize_loop_induction_variables): Same.
6605 (canonicalize_induction_variables): Same.
6606 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6607 (name_info): Same.
6608 (stmt_after_inc_pos): Same.
6609 (contains_abnormal_ssa_name_p): Same.
6610 (niter_for_exit): Same.
6611 (find_bivs): Same.
6612 (mark_bivs): Same.
6613 (find_givs_in_bb): Same.
6614 (find_induction_variables): Same.
6615 (find_interesting_uses_cond): Same.
6616 (outermost_invariant_loop_for_expr): Same.
6617 (idx_find_step): Same.
6618 (add_candidate_1): Same.
6619 (add_iv_candidate_derived_from_uses): Same.
6620 (alloc_use_cost_map): Same.
6621 (prepare_decl_rtl): Same.
6622 (generic_predict_doloop_p): Same.
6623 (computation_cost): Same.
6624 (determine_common_wider_type): Same.
6625 (get_computation_aff_1): Same.
6626 (get_use_type): Same.
6627 (determine_group_iv_cost_address): Same.
6628 (iv_period): Same.
6629 (difference_cannot_overflow_p): Same.
6630 (may_eliminate_iv): Same.
6631 (determine_set_costs): Same.
6632 (cheaper_cost_pair): Same.
6633 (compare_cost_pair): Same.
6634 (iv_ca_cand_for_group): Same.
6635 (iv_ca_recount_cost): Same.
6636 (iv_ca_set_remove_invs): Same.
6637 (iv_ca_set_no_cp): Same.
6638 (iv_ca_set_add_invs): Same.
6639 (iv_ca_set_cp): Same.
6640 (iv_ca_add_group): Same.
6641 (iv_ca_cost): Same.
6642 (iv_ca_compare_deps): Same.
6643 (iv_ca_delta_reverse): Same.
6644 (iv_ca_delta_commit): Same.
6645 (iv_ca_cand_used_p): Same.
6646 (iv_ca_delta_free): Same.
6647 (iv_ca_new): Same.
6648 (iv_ca_free): Same.
6649 (iv_ca_dump): Same.
6650 (iv_ca_extend): Same.
6651 (iv_ca_narrow): Same.
6652 (iv_ca_prune): Same.
6653 (cheaper_cost_with_cand): Same.
6654 (iv_ca_replace): Same.
6655 (try_add_cand_for): Same.
6656 (get_initial_solution): Same.
6657 (try_improve_iv_set): Same.
6658 (find_optimal_iv_set_1): Same.
6659 (create_new_iv): Same.
6660 (rewrite_use_compare): Same.
6661 (remove_unused_ivs): Same.
6662 (determine_scaling_factor): Same.
6663 * tree-ssa-loop-ivopts.h: Same.
6664 * tree-ssa-loop-manip.c (create_iv): Same.
6665 (compute_live_loop_exits): Same.
6666 (add_exit_phi): Same.
6667 (add_exit_phis): Same.
6668 (find_uses_to_rename_use): Same.
6669 (find_uses_to_rename_def): Same.
6670 (find_uses_to_rename_in_loop): Same.
6671 (rewrite_into_loop_closed_ssa): Same.
6672 (check_loop_closed_ssa_bb): Same.
6673 (split_loop_exit_edge): Same.
6674 (ip_end_pos): Same.
6675 (ip_normal_pos): Same.
6676 (copy_phi_node_args): Same.
6677 (gimple_duplicate_loop_to_header_edge): Same.
6678 (can_unroll_loop_p): Same.
6679 (determine_exit_conditions): Same.
6680 (scale_dominated_blocks_in_loop): Same.
6681 (niter_for_unrolled_loop): Same.
6682 (tree_transform_and_unroll_loop): Same.
6683 (rewrite_all_phi_nodes_with_iv): Same.
6684 * tree-ssa-loop-manip.h: Same.
6685 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6686 (number_of_iterations_ne): Same.
6687 (assert_no_overflow_lt): Same.
6688 (assert_loop_rolls_lt): Same.
6689 (number_of_iterations_lt): Same.
6690 (adjust_cond_for_loop_until_wrap): Same.
6691 (tree_simplify_using_condition): Same.
6692 (simplify_using_initial_conditions): Same.
6693 (simplify_using_outer_evolutions): Same.
6694 (loop_only_exit_p): Same.
6695 (ssa_defined_by_minus_one_stmt_p): Same.
6696 (number_of_iterations_popcount): Same.
6697 (number_of_iterations_exit): Same.
6698 (find_loop_niter): Same.
6699 (finite_loop_p): Same.
6700 (chain_of_csts_start): Same.
6701 (get_val_for): Same.
6702 (loop_niter_by_eval): Same.
6703 (derive_constant_upper_bound_ops): Same.
6704 (do_warn_aggressive_loop_optimizations): Same.
6705 (record_estimate): Same.
6706 (get_cst_init_from_scev): Same.
6707 (record_nonwrapping_iv): Same.
6708 (idx_infer_loop_bounds): Same.
6709 (infer_loop_bounds_from_ref): Same.
6710 (infer_loop_bounds_from_array): Same.
6711 (infer_loop_bounds_from_pointer_arith): Same.
6712 (infer_loop_bounds_from_signedness): Same.
6713 (bound_index): Same.
6714 (discover_iteration_bound_by_body_walk): Same.
6715 (maybe_lower_iteration_bound): Same.
6716 (estimate_numbers_of_iterations): Same.
6717 (estimated_loop_iterations): Same.
6718 (estimated_loop_iterations_int): Same.
6719 (max_loop_iterations): Same.
6720 (max_loop_iterations_int): Same.
6721 (likely_max_loop_iterations): Same.
6722 (likely_max_loop_iterations_int): Same.
6723 (estimated_stmt_executions_int): Same.
6724 (max_stmt_executions): Same.
6725 (likely_max_stmt_executions): Same.
6726 (estimated_stmt_executions): Same.
6727 (stmt_dominates_stmt_p): Same.
6728 (nowrap_type_p): Same.
6729 (loop_exits_before_overflow): Same.
6730 (scev_var_range_cant_overflow): Same.
6731 (scev_probably_wraps_p): Same.
6732 (free_numbers_of_iterations_estimates): Same.
6733 * tree-ssa-loop-niter.h: Same.
6734 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6735 (idx_analyze_ref): Same.
6736 (analyze_ref): Same.
6737 (gather_memory_references_ref): Same.
6738 (mark_nontemporal_store): Same.
6739 (emit_mfence_after_loop): Same.
6740 (may_use_storent_in_loop_p): Same.
6741 (mark_nontemporal_stores): Same.
6742 (should_unroll_loop_p): Same.
6743 (volume_of_dist_vector): Same.
6744 (add_subscript_strides): Same.
6745 (self_reuse_distance): Same.
6746 (insn_to_prefetch_ratio_too_small_p): Same.
6747 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6748 (patch_loop_exit): Same.
6749 (find_or_create_guard_phi): Same.
6750 (easy_exit_values): Same.
6751 (connect_loop_phis): Same.
6752 (connect_loops): Same.
6753 (compute_new_first_bound): Same.
6754 (split_loop): Same.
6755 (tree_ssa_split_loops): Same.
6756 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6757 (is_maybe_undefined): Same.
6758 (tree_may_unswitch_on): Same.
6759 (simplify_using_entry_checks): Same.
6760 (tree_unswitch_single_loop): Same.
6761 (tree_unswitch_loop): Same.
6762 (tree_unswitch_outer_loop): Same.
6763 (empty_bb_without_guard_p): Same.
6764 (used_outside_loop_p): Same.
6765 (get_vop_from_header): Same.
6766 (hoist_guard): Same.
6767 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6768 (get_lsm_tmp_name): Same.
6769 * tree-ssa-loop.h: Same.
6770 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6771 (build_and_add_sum): Same.
6772 (no_side_effect_bb): Same.
6773 (get_ops): Same.
6774 (linearize_expr): Same.
6775 (should_break_up_subtract): Same.
6776 (linearize_expr_tree): Same.
6777 * tree-ssa-scopedtables.c: Same.
6778 * tree-ssa-scopedtables.h: Same.
6779 * tree-ssa-structalias.c (condense_visit): Same.
6780 (label_visit): Same.
6781 (dump_pred_graph): Same.
6782 (perform_var_substitution): Same.
6783 (move_complex_constraints): Same.
6784 (remove_preds_and_fake_succs): Same.
6785 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6786 (determine_bb_domination_status): Same.
6787 (duplicate_thread_path): Same.
6788 (thread_through_all_blocks): Same.
6789 * tree-ssa-threadupdate.h: Same.
6790 * tree-streamer-in.c (streamer_read_string_cst): Same.
6791 (input_identifier): Same.
6792 (unpack_ts_type_common_value_fields): Same.
6793 (unpack_ts_block_value_fields): Same.
6794 (unpack_ts_translation_unit_decl_value_fields): Same.
6795 (unpack_ts_omp_clause_value_fields): Same.
6796 (streamer_read_tree_bitfields): Same.
6797 (streamer_alloc_tree): Same.
6798 (lto_input_ts_common_tree_pointers): Same.
6799 (lto_input_ts_vector_tree_pointers): Same.
6800 (lto_input_ts_poly_tree_pointers): Same.
6801 (lto_input_ts_complex_tree_pointers): Same.
6802 (lto_input_ts_decl_minimal_tree_pointers): Same.
6803 (lto_input_ts_decl_common_tree_pointers): Same.
6804 (lto_input_ts_decl_non_common_tree_pointers): Same.
6805 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6806 (lto_input_ts_field_decl_tree_pointers): Same.
6807 (lto_input_ts_function_decl_tree_pointers): Same.
6808 (lto_input_ts_type_common_tree_pointers): Same.
6809 (lto_input_ts_type_non_common_tree_pointers): Same.
6810 (lto_input_ts_list_tree_pointers): Same.
6811 (lto_input_ts_vec_tree_pointers): Same.
6812 (lto_input_ts_exp_tree_pointers): Same.
6813 (lto_input_ts_block_tree_pointers): Same.
6814 (lto_input_ts_binfo_tree_pointers): Same.
6815 (lto_input_ts_constructor_tree_pointers): Same.
6816 (lto_input_ts_omp_clause_tree_pointers): Same.
6817 (streamer_read_tree_body): Same.
6818 * tree-streamer.h: Same.
6819 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6820 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6821 (vect_analyze_possibly_independent_ddr): Same.
6822 (vect_analyze_data_ref_dependence): Same.
6823 (vect_compute_data_ref_alignment): Same.
6824 (vect_enhance_data_refs_alignment): Same.
6825 (vect_analyze_data_ref_access): Same.
6826 (vect_check_gather_scatter): Same.
6827 (vect_find_stmt_data_reference): Same.
6828 (vect_create_addr_base_for_vector_ref): Same.
6829 (vect_setup_realignment): Same.
6830 (vect_supportable_dr_alignment): Same.
6831 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6832 (adjust_phi_and_debug_stmts): Same.
6833 (vect_set_loop_mask): Same.
6834 (add_preheader_seq): Same.
6835 (vect_maybe_permute_loop_masks): Same.
6836 (vect_set_loop_masks_directly): Same.
6837 (vect_set_loop_condition_masked): Same.
6838 (vect_set_loop_condition_unmasked): Same.
6839 (slpeel_duplicate_current_defs_from_edges): Same.
6840 (slpeel_add_loop_guard): Same.
6841 (slpeel_can_duplicate_loop_p): Same.
6842 (create_lcssa_for_virtual_phi): Same.
6843 (iv_phi_p): Same.
6844 (vect_update_ivs_after_vectorizer): Same.
6845 (vect_gen_vector_loop_niters_mult_vf): Same.
6846 (slpeel_update_phi_nodes_for_loops): Same.
6847 (slpeel_update_phi_nodes_for_guard1): Same.
6848 (find_guard_arg): Same.
6849 (slpeel_update_phi_nodes_for_guard2): Same.
6850 (slpeel_update_phi_nodes_for_lcssa): Same.
6851 (vect_do_peeling): Same.
6852 (vect_create_cond_for_alias_checks): Same.
6853 (vect_loop_versioning): Same.
6854 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6855 (vect_inner_phi_in_double_reduction_p): Same.
6856 (vect_analyze_scalar_cycles_1): Same.
6857 (vect_fixup_scalar_cycles_with_patterns): Same.
6858 (vect_get_loop_niters): Same.
6859 (bb_in_loop_p): Same.
6860 (vect_get_max_nscalars_per_iter): Same.
6861 (vect_verify_full_masking): Same.
6862 (vect_compute_single_scalar_iteration_cost): Same.
6863 (vect_analyze_loop_form_1): Same.
6864 (vect_analyze_loop_form): Same.
6865 (vect_active_double_reduction_p): Same.
6866 (vect_analyze_loop_operations): Same.
6867 (neutral_op_for_slp_reduction): Same.
6868 (vect_is_simple_reduction): Same.
6869 (vect_model_reduction_cost): Same.
6870 (get_initial_def_for_reduction): Same.
6871 (get_initial_defs_for_reduction): Same.
6872 (vect_create_epilog_for_reduction): Same.
6873 (vectorize_fold_left_reduction): Same.
6874 (vectorizable_reduction): Same.
6875 (vectorizable_induction): Same.
6876 (vectorizable_live_operation): Same.
6877 (loop_niters_no_overflow): Same.
6878 (vect_get_loop_mask): Same.
6879 (vect_transform_loop_stmt): Same.
6880 (vect_transform_loop): Same.
6881 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6882 (vect_determine_precisions): Same.
6883 (vect_pattern_recog_1): Same.
6884 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6885 * tree-vect-stmts.c (stmt_vectype): Same.
6886 (process_use): Same.
6887 (vect_init_vector_1): Same.
6888 (vect_truncate_gather_scatter_offset): Same.
6889 (get_group_load_store_type): Same.
6890 (vect_build_gather_load_calls): Same.
6891 (vect_get_strided_load_store_ops): Same.
6892 (vectorizable_simd_clone_call): Same.
6893 (vectorizable_store): Same.
6894 (permute_vec_elements): Same.
6895 (vectorizable_load): Same.
6896 (vect_transform_stmt): Same.
6897 (supportable_widening_operation): Same.
6898 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6899 (vec_info::free_stmt_vec_info): Same.
6900 (vect_free_loop_info_assumptions): Same.
6901 (vect_loop_vectorized_call): Same.
6902 (set_uid_loop_bbs): Same.
6903 (vectorize_loops): Same.
6904 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6905 * tree.c (add_tree_to_fld_list): Same.
6906 (fld_type_variant_equal_p): Same.
6907 (fld_decl_context): Same.
6908 (fld_incomplete_type_of): Same.
6909 (free_lang_data_in_binfo): Same.
6910 (need_assembler_name_p): Same.
6911 (find_decls_types_r): Same.
6912 (get_eh_types_for_runtime): Same.
6913 (find_decls_types_in_eh_region): Same.
6914 (find_decls_types_in_node): Same.
6915 (assign_assembler_name_if_needed): Same.
6916 * value-prof.c (stream_out_histogram_value): Same.
6917 * value-prof.h: Same.
6918 * var-tracking.c (use_narrower_mode): Same.
6919 (prepare_call_arguments): Same.
6920 (vt_expand_loc_callback): Same.
6921 (resolve_expansions_pending_recursion): Same.
6922 (vt_expand_loc): Same.
6923 * varasm.c (const_hash_1): Same.
6924 (compare_constant): Same.
6925 (tree_output_constant_def): Same.
6926 (simplify_subtraction): Same.
6927 (get_pool_constant): Same.
6928 (output_constant_pool_2): Same.
6929 (output_constant_pool_1): Same.
6930 (mark_constants_in_pattern): Same.
6931 (mark_constant_pool): Same.
6932 (get_section_anchor): Same.
6933 * vr-values.c (compare_range_with_value): Same.
6934 (vr_values::extract_range_from_phi_node): Same.
6935 * vr-values.h: Same.
6936 * web.c (unionfind_union): Same.
6937 * wide-int.h: Same.
6938
6939 2019-07-09 Martin Sebor <msebor@redhat.com>
6940
6941 PR c++/61339
6942 * align.h: Change class-key from class to struct and vice versa
6943 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
6944 * alloc-pool.h: Same.
6945 * asan.c (shadow_mem_size): Same.
6946 * auto-profile.c: Same.
6947 * basic-block.h: Same.
6948 * bitmap.h: Same.
6949 * cfgexpand.c (set_rtl): Same.
6950 (expand_one_stack_var_at): Same.
6951 * cfghooks.h: Same.
6952 * cfgloop.h: Same.
6953 * cgraph.h: Same.
6954 * config/i386/i386.h: Same.
6955 * df-problems.c (df_print_bb_index): Same.
6956 * df-scan.c: Same.
6957 * df.h (df_single_use): Same.
6958 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
6959 (layout::annotation_line_showed_range_p): Same.
6960 (get_printed_columns): Same.
6961 (correction::ensure_terminated): Same.
6962 (line_corrections::~line_corrections): Same.
6963 * dojump.h: Same.
6964 * dse.c: Same.
6965 * dump-context.h: Same.
6966 * dumpfile.h: Same.
6967 * dwarf2out.c: Same.
6968 * edit-context.c: Same.
6969 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
6970 * flags.h: Same.
6971 * function.c (assign_stack_local): Same.
6972 * function.h: Same.
6973 * gcc.c: Same.
6974 * gcov.c (block_info::block_info): Same.
6975 * genattrtab.c: Same.
6976 * genextract.c: Same.
6977 * genmatch.c (comparison_code_p): Same.
6978 (id_base::id_base): Same.
6979 (decision_tree::print): Same.
6980 * genoutput.c: Same.
6981 * genpreds.c (write_one_predicate_function): Same.
6982 * genrecog.c (validate_pattern): Same.
6983 (find_operand_positions): Same.
6984 (optimize_subroutine_group): Same.
6985 (merge_pattern_transition::merge_pattern_transition): Same.
6986 (merge_pattern_info::merge_pattern_info): Same.
6987 (merge_state_result::merge_state_result): Same.
6988 (merge_into_state): Same.
6989 * gensupport.c: Same.
6990 * gensupport.h: Same.
6991 * ggc-common.c (init_ggc_heuristics): Same.
6992 * ggc-tests.c (test_union): Same.
6993 * gimple-loop-interchange.cc (dump_induction): Same.
6994 * gimple-loop-versioning.cc: Same.
6995 * gimple-match.h (gimple_match_cond::any_else): Same.
6996 * gimple-ssa-backprop.c: Same.
6997 * gimple-ssa-sprintf.c: Same.
6998 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
6999 Same.
7000 (store_immediate_info::store_immediate_info): Same.
7001 (merged_store_group::apply_stores): Same.
7002 (get_location_for_stmts): Same.
7003 * gimple-ssa-strength-reduction.c: Same.
7004 * gimple-ssa-warn-alloca.c: Same.
7005 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7006 * godump.c (go_type_decl): Same.
7007 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7008 * hash-map.h: Same.
7009 * hash-set-tests.c (test_set_of_strings): Same.
7010 * hsa-brig.c: Same.
7011 * hsa-common.h: Same.
7012 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
7013 * input.c (assert_loceq): Same.
7014 * input.h: Same.
7015 * ipa-cp.c: Same.
7016 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
7017 * ipa-fnsummary.h: Same.
7018 * ipa-inline.h: Same.
7019 * ipa-prop.h: Same.
7020 * ipa-split.c (visit_bb): Same.
7021 * ira-int.h (minmax_set_iter_next): Same.
7022 * loop-invariant.c: Same.
7023 * loop-iv.c: Same.
7024 * lra-eliminations.c: Same.
7025 * lra-int.h: Same.
7026 * lra-lives.c (mark_regno_dead): Same.
7027 * lra-remat.c: Same.
7028 * lra-spills.c: Same.
7029 * lto-streamer.h: Same.
7030 * mem-stats.h: Same.
7031 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
7032 * omp-low.c (omp_clause_aligned_alignment): Same.
7033 * optabs-query.h (get_vcond_eq_icode): Same.
7034 * optabs.h: Same.
7035 * opts.c (wrap_help): Same.
7036 * poly-int.h: Same.
7037 * predict.c (predict_paths_leading_to_edge): Same.
7038 * pretty-print.h: Same.
7039 * profile-count.h: Same.
7040 * read-md.h: Same.
7041 * read-rtl-function.c: Same.
7042 * ree.c: Same.
7043 * reginfo.c: Same.
7044 * regrename.c: Same.
7045 * regrename.h: Same.
7046 * reload.h: Same.
7047 * rtl-iter.h: Same.
7048 * rtl.h (costs_add_n_insns): Same.
7049 * sanopt.c: Same.
7050 * sched-int.h: Same.
7051 * sel-sched-ir.h: Same.
7052 * selftest.h: Same.
7053 * sese.h (vec_find): Same.
7054 * stmt.c: Same.
7055 * target-globals.h: Same.
7056 * tree-affine.c (aff_combination_find_elt): Same.
7057 * tree-affine.h: Same.
7058 * tree-data-ref.h: Same.
7059 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
7060 * tree-predcom.c: Same.
7061 * tree-scalar-evolution.c (find_var_scev_info): Same.
7062 * tree-ssa-alias.h: Same.
7063 * tree-ssa-ccp.c: Same.
7064 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
7065 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
7066 (rewrite_mem_refs): Same.
7067 (execute_sm_if_changed): Same.
7068 (hoist_memory_references): Same.
7069 * tree-ssa-loop-ivopts.c (operator<=): Same.
7070 * tree-ssa-loop.h: Same.
7071 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
7072 * tree-ssa-structalias.c: Same.
7073 * tree-switch-conversion.h (cluster::cluster): Same.
7074 (simple_cluster::simple_cluster): Same.
7075 * tree-vect-patterns.c (type_conversion_p): Same.
7076 * tree-vectorizer.c (dump_stmt_cost): Same.
7077 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
7078 * tree.c (protected_set_expr_location): Same.
7079 * tree.h (desired_pro_or_demotion_p): Same.
7080 (fndecl_built_in_p): Same.
7081 * unique-ptr-tests.cc: Same.
7082 * var-tracking.c (delete_variable_part): Same.
7083 * varasm.c (assemble_real): Same.
7084 (tree_output_constant_def): Same.
7085 * vec.c: Same.
7086 * wide-int-bitmask.h: Same.
7087 * wide-int.h (decompose): Same.
7088
7089 2019-07-09 Richard Biener <rguenther@suse.de>
7090
7091 PR tree-optimization/91114
7092 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7093 find a vector type isn't fatal.
7094
7095 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7096
7097 * config/aarch64/aarch64-simd.md
7098 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7099 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7100 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7101 (*aarch64_crypto_aese_fused,
7102 *aarch64_crypto_aesd_fused): Update to new definition.
7103 * config/aarch64/aarch64.c
7104 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7105
7106 2019-07-09 Richard Biener <rguenther@suse.de>
7107
7108 * gimple-match.h (gimple_match_op::resimplify): New.
7109 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7110 gimple_resimplify4, gimple_resimplify5): Remove.
7111 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7112 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7113 Make static.
7114 (gimple_match_op::resimplify): New.
7115 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7116 according to availability. Use gimple_match_op::resimplify.
7117
7118 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7119
7120 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7121
7122 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7123
7124 * config/arm/crypto.md:
7125 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7126 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7127 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7128 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7129 * config/arm/arm.c
7130 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7131 * config/arm/aarch-common-protos.h
7132 (aarch_crypto_can_dual_issue): Remove.
7133 * config/arm/aarch-common.c
7134 (aarch_crypto_can_dual_issue): Likewise.
7135 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7136 * config/arm/cortex-a53.md: Likewise.
7137 * config/arm/cortex-a57.md: Likewise.
7138 * config/arm/iterators.md:
7139 (CRYPTO_BINARY): Redefine.
7140 (CRYPTO_UNARY): Removed.
7141 (CRYPTO_AES, CRYPTO_AESMC): New.
7142
7143 2019-07-09 Richard Biener <rguenther@suse.de>
7144
7145 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7146 (vn_reference_lookup_3): If the main ref has no access path recorded
7147 but orig_ref has use it to do access-path based disambiguation.
7148 (vn_reference_lookup_pieces): Adjust.
7149 (vn_reference_lookup): Pass down original ref if we valueized.
7150
7151 2019-07-09 Martin Liska <mliska@suse.cz>
7152
7153 * doc/extend.texi: Document influence on loop
7154 optimizers.
7155
7156 2019-07-09 Martin Liska <mliska@suse.cz>
7157
7158 * lto-compress.c (lto_normalized_zstd_level): Do not use
7159 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7160 of libzstd. One can use 0 as a default compression level.
7161
7162 2019-07-09 Martin Liska <mliska@suse.cz>
7163
7164 * doc/invoke.texi: Add link from -fprofile-dir option.
7165 Use better wording for 'gcno filename'.
7166
7167 2019-07-08 Martin Sebor <msebor@redhat.com>
7168
7169 PR middle-end/71924
7170 PR middle-end/90549
7171 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7172 comment.
7173 (args_loc_t): New type.
7174 (args_loc_t, locmap_t): same.
7175 (diag_returned_locals): New function.
7176 (is_addr_local): Same.
7177 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7178 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7179 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7180
7181 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7182
7183 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7184 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7185 and casts in offset when different, both through gimple stmts
7186 and through trees. Rewritten using loops to minimize code duplication
7187 for each operand.
7188
7189 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7190
7191 * emit-rtl.c (set_insn_locations): New function moved from...
7192 * function.c (set_insn_locations): ...here.
7193 * ira-emit.c (emit_moves): Propagate location of the first instruction
7194 to the inserted move instructions.
7195 * reg-stack.c (compensate_edge): Set the location if the sequence is
7196 inserted on the edge.
7197 * rtl.h (set_insn_locations): Declare.
7198
7199 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7200
7201 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7202 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7203 .machine string.
7204
7205 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7206
7207 PR rtl-optimization/88233
7208 * common.opt (fsplit-wide-types-early): New option.
7209 * common/config/rs6000/rs6000-common.c
7210 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7211 OPT_LEVELS_ALL.
7212 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7213 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7214 flag_split_wide_types_early.
7215 (pass_data_lower_subreg3): New.
7216 (pass_lower_subreg3): New.
7217 (make_pass_lower_subreg3): New.
7218 * passes.def (pass_lower_subreg2): Move after the loop passes.
7219 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7220 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7221 the pass pipeline; its previous place is taken by ...
7222 (make_pass_lower_subreg3): ... this.
7223
7224 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7225
7226 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7227 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7228
7229 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7230
7231 * config/s390/constraints.md: Add new jsc constraint.
7232 * config/s390/predicates.md: New predicates.
7233 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7234 * config/s390/s390.c (s390_valid_shift_count): New function.
7235 (print_shift_count_operand): Use s390_valid_shift_count.
7236 (print_operand): Likewise.
7237 * config/s390/s390.md: Use new predicate.
7238 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7239 * config/s390/vector.md: Use new predicate.
7240
7241 2019-07-08 Andrew Waterman <andrew@sifive.com>
7242 Jim Wilson <jimw@sifive.com>
7243
7244 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7245 bitsize instead of BITS_PER_WORD.
7246
7247 2019-07-08 Martin Liska <mliska@suse.cz>
7248
7249 * collect2.c (defined): Revert to before r254460.
7250 (scan_prog_file): Revert to before r254460.
7251
7252 2019-07-08 Richard Biener <rguenther@suse.de>
7253
7254 PR tree-optimization/83518
7255 * tree-ssa-sccvn.c: Include splay-tree.h.
7256 (struct pd_range, struct pd_data): New.
7257 (struct vn_walk_cb_data): Add data to track partial definitions.
7258 (vn_walk_cb_data::~vn_walk_cb_data): New.
7259 (vn_walk_cb_data::push_partial_def): New.
7260 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7261 (vn_reference_lookup_2): When partial defs are registered give up.
7262 (vn_reference_lookup_3): Track partial defs for memset and
7263 constructor zeroing and for defs from constants.
7264
7265 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7266
7267 * doc/install.texi (bootstrap-Og): Document.
7268
7269 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7270
7271 * config/riscv/pic.md (*local_pic_load_s<mode>)
7272 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7273 referenced by <mode>, giving...
7274 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7275 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7276 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7277 use <X:MODE> for the mode attribute.
7278
7279 2019-07-07 Jeff Law <law@redhat.com>
7280
7281 PR tree-optimization/91090
7282 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7283 in handling of ranges to simplify switch statements.
7284
7285 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7286
7287 * config/darwin.c (darwin_override_options): Make a final check on PIC
7288 options.
7289
7290 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7291
7292 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7293 on for kernel code.
7294
7295 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7296
7297 PR target/91068
7298 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7299 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7300 instead of matching them to "l" output operands.
7301
7302 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7303
7304 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7305 and check whether addr.reg is nonnull before using it.
7306
7307 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7308
7309 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7310 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7311 variable(s). For conditional lastprivate look through outer
7312 GIMPLE_OMP_SCAN context.
7313 (lower_omp_1): For conditional lastprivate look through outer
7314 GIMPLE_OMP_SCAN context.
7315
7316 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7317 member to combined_into_simd_safelen1.
7318 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7319 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7320 clauses if ctx->combined_into_simd_safelen1 put statements after the
7321 predicate conditionalized block rather than into it.
7322
7323 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7324
7325 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7326 operand 1.
7327 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7328 Make the choice of <mode> explicit, giving...
7329 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7330
7331 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7332
7333 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7334 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7335 of .md attributes.
7336 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7337 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7338 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7339 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7340 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7341 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7342 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7343 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7344 (*avx512f_scatterdi<mode>): Likewise.
7345 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7346
7347 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7348
7349 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7350 specify the mode iterator referenced by <mode>, giving...
7351 (*push1_h8300hs_<QHI:mode>): ...this.
7352
7353 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7354
7355 * config/gcn/gcn-valu.md
7356 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7357 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7358 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7359 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7360 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7361 but using the _exec comparison patterns.
7362 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7363 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7364 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7365 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7366 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7367 but using the _exec comparison patterns.
7368
7369 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7370
7371 * config/arm/sync.md
7372 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7373 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7374 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7375 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7376 <SIDI:cas_cmp_str>.
7377
7378 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7379
7380 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7381 (maybe_lookup_ctx): Add forward declaration.
7382 (omp_find_scan): Likewise. Walk into body of simd if composited
7383 with worksharing loop.
7384 (scan_omp_simd_scan): New function.
7385 (scan_omp_1_stmt): Call it.
7386 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7387 ctx->for_simd_scan_phase.
7388 (lower_rec_input_clauses): Do much less work for inscan reductions
7389 in ctx->for_simd_scan_phase is_simd regions.
7390 (lower_omp_scan): Set is_simd also on simd constructs composited
7391 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7392 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7393 emit their body after in simd constructs composited with worksharing
7394 loop.
7395 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7396
7397 * omp-low.c (omp_find_scan): Make static.
7398 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7399 the second loop, var2 represents the first partial sum and so needs
7400 to go before rprivb[ivar].
7401
7402 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7403
7404 * config/rs6000/rs6000-logue.c: Remove unused code.
7405
7406 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7407
7408 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7409
7410 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7411
7412 PR target/90712
7413 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7414 check with a frame laid out check.
7415
7416 2019-07-05 Richard Biener <rguenther@suse.de>
7417
7418 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7419 when comparing against a store with possibly the same value.
7420
7421 2019-07-05 Richard Biener <rguenther@suse.de>
7422
7423 PR tree-optimization/91091
7424 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7425 (walk_non_aliased_vuses): Likewise.
7426 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7427 (get_continuation_for_phi): New tbaa_p parameter and pass
7428 it down.
7429 (walk_non_aliased_vuses): Likewise.
7430 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7431 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7432 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7433 Likewise.
7434 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7435 (adjust_offsets_for_equal_base_address): New function.
7436 (vn_reference_lookup_3): Use it to catch more base equivalences.
7437 Handle and pass down tbaa_p flag.
7438 (vn_reference_lookup_pieces): Adjust.
7439 (vn_reference_lookup): Remove alias-set altering, instead pass
7440 down false as tbaa_p.
7441
7442 2019-07-05 Richard Biener <rguenther@suse.de>
7443
7444 PR tree-optimization/91091
7445 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7446 accesses can happen with -fno-strict-aliasing.
7447
7448 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7449
7450 * tree-ssa-alias.c (alias_stats): Add
7451 nonoverlapping_component_refs_since_match_p_must_overlap.
7452 (dump_alias_stats): Print it.
7453 (nonoverlapping_component_refs_since_match_p): Add early exit.
7454 (nonoverlapping_component_refs_p): Do not account early exit.
7455
7456 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7457
7458 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7459 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7460 (emit_eh_dispatch): Delete.
7461 (lower_catch): Emit the eh_dispatch manually and set the location of
7462 the first catch statement onto it.
7463 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7464 (lower_eh_dispatch): Propagate location.
7465 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7466 (eliminate_build): Likewise.
7467
7468 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7469
7470 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7471 phi nodes if possible.
7472 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7473 location info on the newly created statement.
7474 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7475 newly created increment if needed.
7476
7477 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7478
7479 PR middle-end/78884
7480 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7481 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7482 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7483 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7484 ctx->add_safelen1 is set.
7485
7486 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7487 GOMP_loop_start at the start of second worksharing loop in a scan.
7488 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7489 worksharing loop in a scan even if there are conditional lastprivates,
7490 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7491
7492 2019-07-04 Jan Hubicka <jh@suse.cz>
7493
7494 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7495 Fix check for match in the ref walk.
7496
7497 2019-07-04 Martin Liska <mliska@suse.cz>
7498
7499 * tree-ssa-loop-niter.c
7500 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7501 (estimate_numbers_of_iterations):
7502 Support __builtin_expect_with_probability for analysis
7503 of # of loop iterations.
7504
7505 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7506
7507 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7508 * except.c: Likewise.
7509 * expr.c (expand_expr_real_1): Reject it.
7510 * gimplify.c (gimplify_expr): Gimplify it, within
7511 TRY_FINALLY_EXPR.
7512 * tree-dump.c (dequeue_and_dump): Dump it.
7513 * tree-pretty-print.c (dump_generic_node): Likewise.
7514 * tree.c (block_may_fallthru): Handle it.
7515 * tree.def (EH_ELSE_EXPR): Introduce it.
7516 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7517 with GIMPLE_EH_ELSE as try/finally/else.
7518
7519 2019-07-04 Richard Biener <rguenther@suse.de>
7520
7521 PR ipa/91062
7522 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7523 parameter whether to disable GC collection.
7524 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7525 honor it.
7526 (execute_all_ipa_transforms): Likewise and pass it down.
7527 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7528 collection from applying IPA transforms.
7529 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7530 from applying IPA transforms.
7531
7532 2019-07-04 Richard Biener <rguenther@suse.de>
7533
7534 PR tree-optimization/90911
7535 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7536 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7537 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7538 scalar_loop_scaling.
7539 (vect_transform_loop): Scale scalar loop profile if needed.
7540 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7541 the loop copy from if-conversion adjust edge probabilities
7542 and scale the vectorized loop body profile, queue the scalar
7543 profile for updating after peeling.
7544
7545 2019-07-04 Jan Hubicka <jh@suse.cz>
7546
7547 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7548 parameters; return early for must-alias.
7549 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7550 outer types match, try nonoverlapping_component_refs
7551 if must-alias is not obvious.
7552 (indirect_refs_may_alias_p): Likewise.
7553 (refs_may_alias_p_2): Likewise.
7554
7555 2019-07-04 Richard Biener <rguenther@suse.de>
7556
7557 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7558 argument.
7559 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7560 globals into...
7561 (struct vn_walk_cb_data): New callback data struct.
7562 (vn_reference_lookup_2): Adjust.
7563 (vn_reference_lookup_3): Likewise.
7564 (vn_reference_lookup_pieces): Likewise.
7565 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7566 (visit_reference_op_load): Adjust.
7567
7568 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7569
7570 PR tree-optimization/91063
7571 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7572 stmt from stmts sequence before calling vect_init_vector_1.
7573 Formatting fix.
7574
7575 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7576
7577 PR target/88833
7578 * fwprop.c (reg_single_def_p): New function.
7579 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7580 (forward_propagate_into): New parameter reg_prop_only
7581 with default value false.
7582 Propagate def's src into loop only if SET_SRC and SET_DEST
7583 of def_set have single definitions.
7584 Likewise if reg_prop_only is set to true.
7585 (fwprop): New param fwprop_addr_p.
7586 Integrate fwprop_addr into fwprop.
7587 (fwprop_addr): Remove.
7588 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7589 to true.
7590 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7591 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7592 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7593
7594 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7595
7596 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7597 in worksharing loop scans.
7598
7599 PR tree-optimization/91074
7600 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7601 temporary.
7602
7603 PR rtl-optimization/90756
7604 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7605 for VECTOR_TYPE_P.
7606
7607 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7608
7609 * config/aarch64/aarch64.md: Remove redundant constraints from
7610 define_expand but keep some patterns untouched if they are
7611 specially selected by TARGET_SECONDARY_RELOAD hook.
7612 * config/aarch64/aarch64-sve.md: Likewise.
7613 * config/aarch64/atomics.md: Remove redundant constraints from
7614 define_expand.
7615 * config/aarch64/aarch64-simd.md: Likewise.
7616
7617 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7618
7619 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7620 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7621 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7622 clauses.
7623 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7624 DARWIN_NOPIE_SPEC.
7625
7626 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7627
7628 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7629 (STARTFILE_SPEC): Split crt3 into a separate spec.
7630 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7631 (DARWIN_CRT2_SPEC): New.
7632 (DARWIN_CRT3_SPEC): New.
7633 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7634 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7635 (DARWIN_CRT3_SPEC): New.
7636
7637 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7638
7639 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7640 Change the RTL attribute "length" from "4" to "*" to allow the
7641 length attribute to be adjusted automatically for prefixed load,
7642 store, and add immediate instructions.
7643 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7644 Likewise.
7645 (extendsi<mode>2, EXTSI iterator): Likewise.
7646 (movsi_internal1): Likewise.
7647 (movsi_from_sf): Likewise.
7648 (movdi_from_sf_zero_ext): Likewise.
7649 (mov<mode>_internal): Likewise.
7650 (movcc_internal1, QHI iterator): Likewise.
7651 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7652 (movsf_from_si): Likewise.
7653 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7654 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7655 (mov<mode>, FMOVE128 iterator): Likewise.
7656 (movdi_internal64): Likewise.
7657 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7658 Likewise.
7659 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7660 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7661 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7662 (vsx_splat_v4sf): Likewise.
7663
7664 2019-07-03 Mark Wielaard <mark@klomp.org>
7665
7666 PR debug/90981
7667 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7668 DW_AT_addr_base if there is actually a .debug_addr section with
7669 addresses.
7670 (output_addr_table): Add DWARF5 table header generation here after
7671 checking there are actually any addresses from...
7672 (dwarf2out_finish): ...here.
7673
7674 2019-07-03 Richard Biener <rguenther@suse.de>
7675
7676 PR middle-end/91069
7677 * match.pd (vec_perm -> bit_insert): Fix element read from
7678 first vector.
7679
7680 2019-07-03 Martin Liska <mliska@suse.cz>
7681
7682 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7683 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7684 condition.
7685 * generic-match-head.c: Include dbgcnt.h.
7686 * gimple-match-head.c: Likewise.
7687
7688 2019-07-03 Martin Liska <mliska@suse.cz>
7689
7690 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7691 (GCOV_COUNTER_V_TOPN): New.
7692 (GCOV_COUNTER_V_INDIR): Use _topn.
7693 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7694 (GCOV_TOPN_VALUES): New.
7695 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7696 (GCOV_TOPN_VALUES_COUNTERS): New.
7697 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7698 * tree-profile.c:
7699 (gimple_init_gcov_profiler): Rename variables from one_value
7700 to topn_values.
7701 (gimple_gen_one_value_profiler): Remove.
7702 (gimple_gen_topn_values_profiler): New function.
7703 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7704 names instead of SINGLE_VALUE.
7705 (stream_out_histogram_value): Likewise.
7706 (stream_in_histogram_value): Likewise.
7707 (get_most_common_single_value): Likewise.
7708 (gimple_divmod_fixed_value_transform): Likewise.
7709 (gimple_stringops_transform): Likewise.
7710 (gimple_divmod_values_to_profile): Likewise.
7711 (gimple_stringops_values_to_profile): Likewise.
7712 (gimple_find_values_to_profile): Likewise.
7713 * value-prof.h (enum hist_type): Rename to TOPN.
7714 (gimple_gen_one_value_profiler): Remove.
7715 (gimple_gen_topn_values_profiler): New.
7716
7717 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7718
7719 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7720 if it has the DW_AT_data_member_location attribute.
7721
7722 2019-07-03 Richard Biener <rguenther@suse.de>
7723
7724 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7725 dumping.
7726
7727 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7728
7729 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7730 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7731 (tlsdesc_small_sve_<mode>): Likewise.
7732
7733 2019-07-03 Martin Liska <mliska@suse.cz>
7734
7735 * Makefile.in: Define ZSTD_LIB.
7736 * common.opt: Adjust compression level
7737 to support also zstd levels.
7738 * config.in: Regenerate.
7739 * configure: Likewise.
7740 * configure.ac: Add --with-zstd and --with-zstd-include options
7741 and detect ZSTD.
7742 * doc/install.texi: Mention zstd dependency.
7743 * gcc.c: Print supported LTO compression algorithms.
7744 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7745 (lto_compression_zstd): Likewise.
7746 (lto_uncompression_zstd): Likewise.
7747 (lto_end_compression): Dispatch in between zlib and zstd.
7748 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7749 (lto_uncompression_zlib): Make it static.
7750 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7751 * lto-section-in.c (lto_get_section_data): Pass info
7752 about used compression.
7753 * lto-streamer-out.c: By default use zstd when possible.
7754 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7755 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7756
7757 2019-07-03 Martin Liska <mliska@suse.cz>
7758
7759 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7760 * lto-section-out.c (lto_destroy_simple_output_block): Never
7761 compress LTO_section_lto section.
7762 * lto-streamer-out.c (produce_asm): Do not set major_version
7763 and minor_version.
7764 (lto_output_toplevel_asms): Likewise.
7765 (produce_lto_section): New function.
7766 (lto_output): Call produce_lto_section.
7767 (lto_write_mode_table): Do not set major_version and
7768 minor_version.
7769 (produce_asm_for_decls): Likewise.
7770 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7771 type.
7772 (struct lto_header): Remove.
7773 (struct lto_section): New struct.
7774 (struct lto_simple_header): Do not inherit from lto_header.
7775 (struct lto_file_decl_data): Add lto_section_header field.
7776
7777 2019-07-03 Martin Liska <mliska@suse.cz>
7778
7779 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7780 dead assignemts.
7781 * reg-stack.c (check_asm_stack_operands): Likewise.
7782 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7783 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7784 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7785 force_expand_binop.
7786
7787 2019-07-03 Martin Liska <mliska@suse.cz>
7788
7789 PR tree-optimization/90892
7790 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7791 in string constants.
7792
7793 2019-07-03 Martin Liska <mliska@suse.cz>
7794
7795 PR middle-end/90899
7796 * multiple_target.c (create_dispatcher_calls): Add to comdat
7797 group only if set for ifunc.
7798
7799 2019-07-03 Martin Liska <mliska@suse.cz>
7800
7801 PR target/88056
7802 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7803 Define local_object_name in outer scope in order to handle
7804 use-after-scope issue.
7805
7806 2019-07-03 Martin Liska <mliska@suse.cz>
7807
7808 * common.opt: Add fprofile-note.
7809 * coverage.c (coverage_init): Append the option
7810 to bbg_file_name.
7811 * doc/invoke.texi: Document -fprofile-note.
7812
7813 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7814
7815 PR tree-optimization/91033
7816 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7817 vect_analyze_data_refs): Add bool * arguments.
7818 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7819 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7820 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7821 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7822 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7823 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7824 vect_analyze_data_refs caller.
7825
7826 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7827 clause.
7828 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7829 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7830 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7831 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7832 OMP_CLAUSE__SCANTEMP_ entry.
7833 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7834 * tree-pretty-print.c (dump_omp_clause): Likewise.
7835 * tree-nested.c (convert_nonlocal_omp_clauses,
7836 convert_local_omp_clauses): Likewise.
7837 * omp-general.h (struct omp_for_data): Add have_scantemp and
7838 have_nonctrl_scantemp members.
7839 * omp-general.c (omp_extract_for_data): Initialize them.
7840 * omp-low.c (struct omp_context): Add scan_exclusive member.
7841 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7842 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7843 ctx->scan_exclusive.
7844 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7845 of !ctx->scan_inclusive.
7846 (lower_rec_input_clauses): Simplify gimplification of dtors using
7847 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7848 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7849 loops. Don't add barrier for reduction_omp_orig_ref if
7850 ctx->scan_??xclusive.
7851 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7852 (lower_omp_scan): Use ctx->scan_exclusive instead
7853 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7854 reductions. Use new_vard != new_var instead of repeated
7855 omp_is_reference calls.
7856 (omp_find_scan, lower_omp_for_scan): New functions.
7857 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7858 inscan reductions.
7859 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7860 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7861 and fd->have_scantemp.
7862
7863 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7864 on worksharing loop propagate it as shared clause to containing
7865 combined parallel.
7866
7867 * omp-expand.c (expand_omp_for_static_nochunk,
7868 expand_omp_for_static_chunk): For nowait worksharing loop with
7869 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7870 at the end.
7871
7872 2019-07-02 qing zhao <qing.zhao@oracle.com>
7873
7874 PR preprocessor/90581
7875 * doc/cppopts.texi: Add document for -fmax-include-depth.
7876 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7877
7878 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7879
7880 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7881 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7882 (mmx_packssdw): Ditto.
7883 (mmx_punpckhbw): Ditto.
7884 (mmx_punpcklbw): Ditto.
7885 (mmx_punpckhwd): Ditto.
7886 (mmx_punpcklwd): Ditto.
7887 (mmx_punpckhdq): Ditto.
7888 (mmx_punpckldq): Ditto.
7889 (*vec_dupv4hi): Ditto.
7890 (*vec_dupv2si): Ditto.
7891 (mmx_pmovmskb): Ditto.
7892 * config/i386/sse.md (sse_cvtpi2ps): Use
7893 TARGET_SSE2 && SSE_REG_P in split condition.
7894 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7895 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7896 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7897 (ssse3_pshufbv8qi3): Ditto.
7898 (ssse3_palignrdi): Ditto.
7899
7900 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7901
7902 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7903 with inlined save and restore.
7904
7905 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7906
7907 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7908 to be inserted on single successor edge of the entry block. Then call
7909 commit_edge_insertions instead of inserting the instructions manually.
7910 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7911 RTL expansion and rebuild jump labels chain.
7912
7913 2019-07-02 Richard Biener <rguenther@suse.de>
7914
7915 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7916 TI_CHREC_KNOWN.
7917 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7918 Define here.
7919 * tree.c (build_common_tree_nodes): Initialize them.
7920 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7921 Make declarations comments.
7922 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7923 chrec_known): Remove definitions.
7924 (initialize_scalar_evolutions_analyzer): Remove.
7925 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7926 * tree-streamer.c (preload_common_nodes): Do not preload
7927 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7928
7929 2019-07-02 Jan Hubicka <jh@suse.cz>
7930
7931 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7932 sanity check.
7933
7934 2019-07-02 Jan Hubicka <jh@suse.cz>
7935
7936 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7937 to ..
7938 (nonoverlapping_component_refs_since_match_p): ... this one;
7939 handle also non-decl bases; return -1 if search gave up.
7940 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7941 nonoverlapping_component_refs_of_decl_p_no_alias to
7942 nonoverlapping_component_refs_since_match_p_may_alias,
7943 nonoverlapping_component_refs_since_match_p_no_alias.
7944 (dump_alias_stats): Update dumping.
7945 (aliasing_matching_component_refs_p): Break out from ...;
7946 dispatch to nonoverlapping_component_refs_for_decl_p
7947 and nonoverlapping_component_refs_since_match_p.
7948 (aliasing_component_refs_p): ... here; call
7949 nonoverlapping_component_refs_p in scenarios where we can not
7950 precisely determine base match.
7951 (decl_refs_may_alias_p): Use
7952 nonoverlapping_component_refs_since_match_p.
7953 (indirect_ref_may_alias_decl_p): Do not call
7954 nonoverlapping_component_refs_p.
7955 (indirect_refs_may_alias_p): Likewise.
7956
7957 2019-07-02 Jan Hubicka <jh@suse.cz>
7958
7959 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
7960 to clobber of return value.
7961
7962 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7963
7964 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
7965 for is_neon_type instructions that have not already been categorized.
7966
7967 2019-07-02 Richard Biener <rguenther@suse.de>
7968
7969 PR tree-optimization/58483
7970 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
7971 for MEM_REF base hashing.
7972 (equal_mem_array_ref_p): Likewise for base comparison.
7973
7974 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7975
7976 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
7977 parameterized name.
7978 (signbit<mode>2): Use that name. Simplify.
7979
7980 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
7981
7982 PR middle-end/66726
7983 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
7984 Tune heuristic from PR71016 to allow MIN / MAX.
7985
7986 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7987
7988 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
7989 parameterized name.
7990 (abs<mode>2): Use that name. Simplify.
7991
7992 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7993
7994 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
7995 parameterized name.
7996 (neg<mode>2): Use that name. Simplify.
7997
7998 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
7999
8000 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8001 name.
8002 (abs<mode>2): Use that name. Simplify.
8003
8004 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8005
8006 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8007 name.
8008 (neg<mode>2): Use that name. Simplify.
8009
8010 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
8011
8012 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
8013 ("enabled" attribute): Handle sse_noavx isa attribute.
8014 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
8015 Use TARGET_SSE && SSE_REGNO_P in split condition.
8016 (*vec_dupv2sf): Ditto.
8017
8018 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8019
8020 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
8021 name.
8022 (floatsi<mode>2): Use that name. Simplify.
8023
8024 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8025
8026 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
8027 parameterized name.
8028 (extenddf<mode>2_vsx): Make this a parameterized name.
8029 (extenddf<mode>2): Use those names. Simplify.
8030
8031 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8032
8033 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
8034 name.
8035 (eh_return): Use that name. Simplify.
8036
8037 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8038
8039 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
8040 (doloop_end): Use that name. Simplify.
8041
8042 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8043
8044 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
8045 parameterized name.
8046 (indirect_jump): Use that name. Simplify.
8047
8048 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8049
8050 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
8051 parameterized name.
8052 (abs<mode>2): Use that name. Simplify.
8053
8054 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8055
8056 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
8057 parameterized name.
8058 (fix_trunc<mode>si2): Use that name. Simplify.
8059
8060 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8061
8062 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
8063 (allocate_stack): Use that name. Simplify.
8064
8065 2019-07-01 Martin Sebor <msebor@redhat.com>
8066
8067 PR middle-end/90923
8068 * hash-map.h (hash_map::put): On insertion invoke element ctor.
8069 (hash_map::get_or_insert): Same. Reformat comment.
8070 * hash-set.h (hash_set::add): On insertion invoke element ctor.
8071 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8072 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8073 * hash-table.h (hash_table::operator=): Prevent copy assignment.
8074 (hash_table::hash_table (const hash_table&)): Use copy ctor
8075 instead of assignment to copy elements.
8076
8077 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
8078 John David Anglin <danglin@gcc.gnu.org>
8079
8080 PR target/90963
8081 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8082 using saved frame pointer.
8083
8084 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8085
8086 PR middle-end/64242
8087 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8088 Add frame clobber and schedule blockage.
8089
8090 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8091
8092 * doc/invoke.texi (Link Options): Further editorial changes to
8093 -flinker-output docs.
8094
8095 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8096
8097 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8098 Load both operands of a PLUS into registers separately.
8099
8100 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8101
8102 * config/s390/vector.md: Fix shift count operand printing.
8103
8104 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8105
8106 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8107
8108 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8109
8110 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8111 Use recog_data to test for an output operand.
8112
8113 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8114
8115 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8116 exclude any others that are disparaged or that are bound to need
8117 a reload or spill.
8118 (ira_get_dup_out_num): Expand comment.
8119
8120 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8121
8122 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8123 constraint string for each operand/alternative combo. Only handle
8124 '%' at the start of constraint strings, and look for it outside
8125 the main loop.
8126
8127 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8128
8129 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8130 alternative_mask instead of HARD_REG_SET to represent a
8131 bitmask of alternatives.
8132 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8133 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8134
8135 2019-07-01 Martin Liska <mliska@suse.cz>
8136
8137 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8138 use () for a constructor call.
8139 (test_applying_fixits_line_out_of_range): Likewise.
8140 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8141 argument.
8142 (free_page): Likewise.
8143
8144 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8145
8146 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8147 parameter names to match usage (no functional change).
8148 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8149
8150 2019-07-01 Richard Biener <rguenther@suse.de>
8151
8152 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8153 pass parameter.
8154 (pass_fre::execute): Honor it.
8155 * passes.def: Adjust pass_fre invocations to allow iterating,
8156 add non-iterating pass_fre before late threading/dom.
8157
8158 2019-07-01 Richard Biener <rguenther@suse.de>
8159
8160 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8161 TARGET_MEM_REF handling to also handle address-taken ones.
8162
8163 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8164
8165 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8166 hardware attributes): Document avx512vp2intersect.
8167
8168 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8169
8170 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8171 (abs<mode>2): New expander.
8172 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8173 Use CODE_FOR_ssse3_absv8qi2.
8174 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8175 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8176
8177 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8178
8179 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8180 to sse, sse_noavx and avx. Update all uses.
8181
8182 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8183
8184 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8185 (*mmx_<plusminus_insn><mode>3): Ditto.
8186 (*mmx_mulv4hi3"): Ditto.
8187 (*mmx_smulv4hi3_highpart): Ditto.
8188 (*mmx_umulv4hi3_highpart): Ditto.
8189 (*mmx_pmaddwd): Ditto.
8190 (*sse2_umulv1siv1di3): Ditto.
8191 (*mmx_<code>v4hi3): Ditto.
8192 (*mmx_<code>v8qi3): Ditto.
8193 (mmx_ashr<mode>3): Ditto.
8194 ("mmx_<shift_insn><mode>3): Ditto.
8195 (*mmx_eq<mode>3): Ditto.
8196 (mmx_gt<mode>3): Ditto.
8197 (mmx_andnot<mode>3): Ditto.
8198 (*mmx_<code><mode>3): Ditto.
8199 (*mmx_pinsrw): Ditto.
8200 (*mmx_pextrw): Ditto.
8201 (mmx_pshufw_1): Ditto.
8202 (*mmx_uavgv8qi3): Ditto.
8203 (*mmx_uavgv4hi3): Ditto.
8204 ("mmx_psadbw): Ditto.
8205 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8206 (sse_cvttps2pi): Ditto.
8207 (ssse3_pmaddubsw): Ditto.
8208 (*ssse3_pmulhrswv4hi3): Ditto.
8209 (ssse3_psign<mode>3): Ditto.
8210
8211 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8212
8213 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8214 adjustment for bit-fields to all aggregate types.
8215
8216 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8217
8218 * config/rs6000/predicates.md (pcrel_address): Use
8219 SYMBOL_REF_LOCAL_P to determine if a label is local.
8220 (pcrel_external_address): New predicate.
8221 (non_prefixed_mem_operand): Delete, predicate not used.
8222 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8223 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8224 addressing.
8225 (SYMBOL_REF_PCREL_P): Likewise.
8226
8227 PR target/91009
8228 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8229 alternative.
8230 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8231 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8232 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8233
8234 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8235
8236 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8237 override on extra_headers.
8238
8239 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8240
8241 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8242 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8243 from warning.
8244 (darwin_driver_init): Likewise.
8245
8246 2019-06-28 Jan Beulich <jbeulich@suse.com>
8247
8248 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8249 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8250 Eliminate redundant alternative.
8251
8252 2019-06-28 Jan Beulich <jbeulich@suse.com>
8253
8254 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8255 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8256 Use vector_operand.
8257
8258 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8259
8260 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8261 having a lower cost regardless of the speed option.
8262
8263 2019-06-28 Jan Beulich <jbeulich@suse.com>
8264
8265 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8266 vector_operand plus, on both alternatives, "Bm" constraint.
8267
8268 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8269
8270 * config/arm/arm.md: Remove redundant constraints from
8271 define_expand but leave reload_inm and reload_outm patterns
8272 untouched since they need special constraints to work.
8273 * config/arm/arm-fixed.md: Remove redundant constraints from
8274 define_expand.
8275 * config/arm/iwmmxt.md: Likewise.
8276 * config/arm/neon.md: Likewise.
8277 * config/arm/sync.md: Likewise.
8278 * config/arm/thumb1.md: Likewise.
8279 * config/arm/vec-common.md: Likewise.
8280
8281 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8282
8283 * doc/install.texi: Document --disable-tm-clone-registry.
8284
8285 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8286
8287 PR c++/91024
8288 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8289 statements.
8290
8291 PR tree-optimization/91010
8292 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8293 return true. Otherwise, don't call operand_equal_p if offset1 or
8294 offset2 is NULL and just return false.
8295
8296 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8297
8298 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8299 user-specified float mode choice for kernel mode code.
8300
8301 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8302
8303 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8304 spec.
8305
8306 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8307
8308 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8309 use longcall for 64b code.
8310
8311 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8312
8313 * builtins.c (get_memory_rtx): Fix comment.
8314 * optabs.def (movmem_optab): Change to cpymem_optab.
8315 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8316 (emit_block_move_hints): Change movmem to cpymem.
8317 * defaults.h: Change movmem to cpymem.
8318 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8319 (default_use_by_pieces_infrastructure_p): Ditto.
8320 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8321 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8322 to cpymem.
8323 * config/aarch64/aarch64.h: Change movmem to cpymem.
8324 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8325 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8326 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8327 movmem to cpymem.
8328 * config/arc/arc-protos.h: Change movmem to cpymem.
8329 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8330 * config/arc/arc.h: Change movmem to cpymem in comment.
8331 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8332 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8333 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8334 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8335 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8336 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8337 * config/avr/avr-protos.h: Change movmem to cpymem.
8338 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8339 avr_out_movmem): Change movmem to cpymem.
8340 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8341 Change movmem to cpymem.
8342 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8343 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8344 Change movmem to cpymem.
8345 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8346 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8347 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8348 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8349 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8350 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8351 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8352 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8353 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8354 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8355 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8356 expand_small_cpymem_or_setmem,
8357 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8358 expand_set_or_cpymem_constant_prologue,
8359 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8360 * config/i386/i386-protos.h: Change movmem to cpymem.
8361 * config/i386/i386.h: Change movmem to cpymem in comment.
8362 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8363 (setmem<mode>): Change expansion function name.
8364 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8365 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8366 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8367 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8368 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8369 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8370 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8371 to cpymem.
8372 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8373 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8374 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8375 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8376 Change movmem to cpymem.
8377 * config/mips/mips.h: Change movmem to cpymem.
8378 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8379 * config/nds32/nds32-memory-manipulation.c
8380 (nds32_expand_movmemsi_loop_unknown_size,
8381 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8382 nds32_expand_movmemsi_unroll,
8383 nds32_expand_movmemsi): Change movmem to cpymem.
8384 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8385 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8386 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8387 (pa_adjust_insn_length): Change call to compute_movmem_length.
8388 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8389 movmemdi, movmemdi_prereload,
8390 movmemdi_postreload): Change movmem to cpymem.
8391 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8392 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8393 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8394 * config/riscv/riscv.h: Change movmem to cpymem.
8395 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8396 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8397 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8398 movmem to cpymem.
8399 * config/s390/s390-protos.h: Change movmem to cpymem.
8400 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8401 s390_expand_insv): Change movmem to cpymem.
8402 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8403 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8404 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8405 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8406 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8407 for nonexistent function.
8408 * config/vax/vax.h: Change movmem to cpymem in comment.
8409 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8410 * config/visium/visium.h: Change movmem to cpymem in comment.
8411 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8412 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8413 * doc/md.texi: Change movmem to cpymem and update description to match.
8414 * doc/rtl.texi: Change movmem to cpymem.
8415 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8416 * doc/tm.texi: Regenerate.
8417
8418 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8419
8420 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8421 -fvariable-expansion-in-unroller by default.
8422 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8423 default for Power.
8424
8425 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8426
8427 Revert
8428 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8429 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8430
8431 * config.gcc(rs6000-*-*): Define target_gtfiles.
8432
8433 2019-06-27 Jan Hubicka <jh@suse.cz>
8434
8435 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8436 (add_type_duplicate): When odr hash is not allocated, to nothing.
8437 (odr_based_tbaa_p): New function.
8438 (set_type_canonical_for_odr_type): New function.
8439 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8440 set_type_canonical_for_odr_type): New.
8441 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8442 ODR based TBAA are not equivalent to non-ODR types.
8443
8444 2019-06-27 Martin Liska <mliska@suse.cz>
8445
8446 PR tree-optimization/90974
8447 PR rtl-optimization/90975
8448 PR rtl-optimization/90976
8449 PR target/91016
8450 PR tree-optimization/91017
8451 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8452 unused tmp.
8453 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8454 initial commit of IRA.
8455 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8456 of op0 and op1.
8457 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8458 Remove unused mode1.
8459 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8460 to new_stmt_info.
8461
8462 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8463
8464 PR target/90991
8465 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8466 instead of register_operand for operands[1], add m to its constraints
8467 if operands[2] uses "C" constraint. Ensure in condition that if
8468 operands[2] is not 0, then operands[1] is not a MEM. For last two
8469 alternatives, use unaligned loads instead of aligned if operands[1] is
8470 misaligned_operand.
8471
8472 2019-06-27 Martin Liska <mliska@suse.cz>
8473
8474 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8475 dead assignments.
8476 * bt-load.c (move_btr_def): Likewise.
8477 * builtins.c (expand_builtin_apply_args_1): Likewise.
8478 (expand_builtin_apply): Likewise.
8479 * cfgexpand.c (expand_asm_stmt): Likewise.
8480 (construct_init_block): Likewise.
8481 * cfghooks.c (verify_flow_info): Likewise.
8482 * cfgloopmanip.c (remove_path): Likewise.
8483 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8484 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8485 * combine.c (simplify_if_then_else): Likewise.
8486 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8487 (choose_basereg): Likewise.
8488 (ix86_expand_prologue): Likewise.
8489 (ix86_preferred_output_reload_class): Likewise.
8490 * cselib.c (cselib_record_sets): Likewise.
8491 * df-scan.c (df_scan_alloc): Likewise.
8492 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8493 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8494 * emit-rtl.c (try_split): Likewise.
8495 * graphite-scop-detection.c (assign_parameter_index_in_region):
8496 Likewise.
8497 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8498 * ira-color.c (setup_profitable_hard_regs): Likewise.
8499 * ira.c (rtx_moveable_p): Likewise.
8500 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8501 * read-rtl.c (read_subst_mapping): Likewise.
8502 * regrename.c (scan_rtx): Likewise.
8503 * reorg.c (fill_slots_from_thread): Likewise.
8504 * tree-inline.c (tree_function_versioning): Likewise.
8505 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8506 * tree-ssa-sink.c (statement_sink_location): Likewise.
8507 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8508 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8509 (vect_create_epilog_for_reduction): Likewise.
8510 * tree.c (build_nonstandard_integer_type): Likewise.
8511
8512 2019-06-27 Richard Biener <rguenther@suse.de>
8513
8514 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8515
8516 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8517
8518 PR tree-optimization/89772
8519 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8520 out-of-bound accesses checking.
8521
8522 2019-06-27 Martin Liska <mliska@suse.cz>
8523
8524 PR tree-optimization/91014
8525 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8526 when LHS is NULL_TREE.
8527
8528 2019-06-27 Martin Liska <mliska@suse.cz>
8529
8530 * symbol-summary.h (traverse): Pass
8531 argument a to the call of callback.
8532 (gt_ggc_mx): Mark arguments as unused.
8533 (gt_pch_nx): Likewise.
8534
8535 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8536
8537 PR target/62147
8538 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8539 finiteness.
8540
8541 2019-06-26 Jeff Law <law@redhat.com>
8542
8543 PR tree-optimization/90883
8544 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8545 (delete_dead_or_redundant_assignment): Likewise.
8546
8547 PR tree-optimization/90883
8548 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8549 * tree-ssa-dse.c: Update various comments to distinguish between
8550 dead and redundant stores.
8551 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8552 (dse_optimize_redundant_stores): New function.
8553 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8554 Distinguish between dead and redundant calls in dump output. All
8555 callers updated.
8556 (delete_dead_or_redundant_assignment): Similarly for assignments.
8557 (dse_optimize_stmt): Handle _CHK variants. For statements which
8558 store 0 into multiple memory locations, try to prove a subsequent
8559 store is redundant.
8560
8561 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8562
8563 PR target/89021
8564 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8565 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8566
8567 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8568
8569 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8570 (branch_islands): New extern.
8571 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8572 * config/rs6000/rs6000.c: .. here.
8573
8574 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8575
8576 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8577 (powerpc*-*-*) ... to here.
8578
8579 2019-06-26 Jeff Law <law@redhat.com>
8580
8581 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8582 memcpy, memmove and memset builtins.
8583 (maybe_trim_memstar_call): Likewise.
8584
8585 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8586
8587 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8588
8589 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8590
8591 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8592
8593 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8594
8595 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8596 declaration.
8597 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8598 "static".
8599 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8600 declaration.
8601
8602 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8603
8604 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8605
8606 2019-06-26 Richard Biener <rguenther@suse.de>
8607
8608 PR ipa/90982
8609 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8610
8611 2019-06-26 Richard Biener <rguenther@suse.de>
8612
8613 * lto-streamer.h (lto_bitmap_alloc): Remove.
8614 (lto_bitmap_free): Likewise.
8615 * lto-streamer.c (lto_bitmap_alloc): Remove.
8616 (lto_bitmap_free): Likewise.
8617 (lto_obstack): Likewise.
8618 (lto_obstack_initialized): Likewise.
8619 * lto-streamer-out.c (lto_output): Use own obstack for local
8620 bitmap, free it consistently.
8621
8622 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8623
8624 PR target/90991
8625 * config/i386/sse.md
8626 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8627 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8628 insns if operands[2] is misaligned_operand.
8629
8630 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8631
8632 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8633 TARGET_POWERPC64.
8634 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8635 to GPR.
8636
8637 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8638
8639 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8640
8641 2019-06-26 Martin Liska <mliska@suse.cz>
8642
8643 PR tree-optimization/90973
8644 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8645 epilogue_cost_vec instead of prologue_cost_vec for
8646 a epilogue cost.
8647
8648 2019-06-26 Martin Liska <mliska@suse.cz>
8649
8650 * bb-reorder.c (connect_better_edge_p): Add missing else
8651 statement in the middle of if-else statements.
8652
8653 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8654 H.J. Lu <hongjiu.lu@intel.com>
8655 Olga Makhotina <olga.makhotina@intel.com>
8656
8657 * common/config/i386/i386-common.c
8658 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8659 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8660 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8661 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8662 (ix86_handle_option): Handle -mavx512vp2intersect.
8663 * config/i386/avx512vp2intersectintrin.h: New.
8664 * config/i386/avx512vp2intersectvlintrin.h: New.
8665 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8666 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8667 AVX512VP2INTERSECT.
8668 * config/i386/i386-builtin-types.def: Add new types.
8669 * config/i386/i386-builtin.def: Add new builtins.
8670 * config/i386/i386-builtins.c: (enum processor_features): Add
8671 F_AVX512VP2INTERSECT.
8672 (static const _isa_names_table isa_names_table): Ditto.
8673 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8674 __AVX512VP2INTERSECT__.
8675 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8676 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8677 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8678 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8679 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8680 * config/i386/i386-options.c (ix86_target_string): Add
8681 -mavx512vp2intersect.
8682 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8683 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8684 P2HImode and P2QImode.
8685 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8686 number for P2QImode and P2HImode.
8687 (ix86_regmode_natural_size): New function.
8688 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8689 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8690 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8691 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8692 * config/i386/i386.opt: Add -mavx512vp2intersect.
8693 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8694 avx512vp2intersectvlintrin.h.
8695 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8696 (define_mode_iterator VI48_AVX512VP2VL): New.
8697 (avx512vp2intersect_2intersect<mode>,
8698 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8699 * config.gcc: Add avx512vp2intersectvlintrin.h and
8700 avx512vp2intersectintrin.h to extra_headers.
8701 * doc/invoke.texi: Document -mavx512vp2intersect.
8702
8703 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8704
8705 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8706
8707 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8708
8709 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8710 savres_routine_syms, savres_routine_name, morestack_ref,
8711 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8712 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8713 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8714 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8715 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8716 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8717 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8718 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8719 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8720 get_stack_clash_protection_probe_interval,
8721 get_stack_clash_protection_guard_size,
8722 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8723 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8724 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8725 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8726 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8727 gen_frame_mem_offset, rs6000_savres_routine_name,
8728 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8729 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8730 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8731 rs6000_global_entry_point_prologue_needed_p,
8732 rs6000_get_separate_components, rs6000_components_for_bb,
8733 rs6000_disqualify_components, rs6000_emit_prologue_components,
8734 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8735 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8736 rs6000_output_savres_externs, rs6000_output_function_prologue,
8737 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8738 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8739 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8740 rs6000_output_function_epilogue, gen_add3_const,
8741 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8742 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8743 to rs6000-logue.c.
8744 (machine_function): Moved to rs6000.h.
8745 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8746 rs6000-internal.h.
8747 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8748 savres_routine_syms, savres_routine_name, morestack_ref,
8749 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8750 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8751 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8752 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8753 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8754 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8755 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8756 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8757 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8758 get_stack_clash_protection_probe_interval,
8759 get_stack_clash_protection_guard_size,
8760 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8761 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8762 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8763 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8764 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8765 gen_frame_mem_offset, rs6000_savres_routine_name,
8766 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8767 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8768 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8769 rs6000_global_entry_point_prologue_needed_p,
8770 rs6000_get_separate_components, rs6000_components_for_bb,
8771 rs6000_disqualify_components, rs6000_emit_prologue_components,
8772 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8773 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8774 rs6000_output_savres_externs, rs6000_output_function_prologue,
8775 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8776 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8777 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8778 rs6000_output_function_epilogue, gen_add3_const,
8779 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8780 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8781 to here from rs6000.c.
8782 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8783 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8784 quad_address_offset_p) Moved to here from rs6000.c.
8785 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8786 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8787 collector.
8788
8789 2019-06-25 Martin Liska <mliska@suse.cz>
8790
8791 * hash-table.c (hashtab_chk_error): Move here from ...
8792 * hash-table.h (hashtab_chk_error): ... here.
8793
8794 2019-06-25 Martin Liska <mliska@suse.cz>
8795
8796 PR tree-optimization/90978
8797 * df-scan.c (df_update_entry_block_defs): Remove dead else
8798 branch.
8799 (df_update_exit_block_uses): Likewise.
8800
8801 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8802 Andrew Stubbs <ams@codesourcery.com>
8803
8804 * config.gcc (thread_file): Set to gcn for AMD GCN.
8805 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8806 (TARGET_EMUTLS_VAR_INIT): New hook.
8807
8808 2019-06-25 Martin Jambor <mjambor@suse.cz>
8809
8810 PR ipa/90939
8811 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8812
8813 2019-06-25 Richard Biener <rguenther@suse.de>
8814
8815 PR tree-optimization/90930
8816 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8817 into parallel form in the last pass instance.
8818
8819 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8820
8821 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8822 (arc_legitimize_pic_address): Simplify and cleanup the function.
8823 (SYMBOLIC_CONST): Remove.
8824 (prepare_pic_move): Likewise.
8825 (prepare_move_operands): Handle complex mov cases here.
8826 (arc_legitimize_address_0): Remove call to
8827 arc_legitimize_pic_address.
8828 (arc_legitimize_address): Remove call to
8829 arc_legitimize_tls_address.
8830 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8831 (movhi_insn): Likewise.
8832
8833 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8834
8835 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8836 PTRDIFF_TYPE.
8837 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8838 format of "__intN" types for UINTMAX_TYPE.
8839 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8840 format of "__intN" types for SIZETYPE.
8841 * tree.c (build_common_tree_nodes): Accept "__intN__"
8842 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8843 * doc/invoke.texi: Document that __intN__ disables pedantic
8844 warnings.
8845
8846 2019-06-25 Jan Hubicka <jh@suse.cz>
8847
8848 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8849 base2_alias_set is non-zero before doing TBAA based disambiguation.
8850
8851 2019-06-25 Martin Liska <mliska@suse.cz>
8852
8853 PR tree-optimization/90973
8854 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8855 of prologue and epilogue.
8856
8857 2019-06-24 Jan Hubicka <jh@suse.cz>
8858
8859 * ipa-utils.h (type_with_linkage_p): Verify that type is
8860 CXX_ODR_P.
8861 (odr_type_p): Remove extra return.
8862 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8863 hash STRING_FLAG only for arrays and integers.
8864 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8865 Update analogously.
8866 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8867 Likewise.
8868 * print-tree.c (print_node): Print cxx-odr-p
8869 and string-flag.
8870 * tree.c (need_assembler_name_p): Also check that type
8871 is CXX_ODR_TYPE_P
8872 (verify_type_variant): Update verification of SRING_FLAG;
8873 also check CXX_ODR_P.
8874 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8875 (TYPE_STRING_FLAG): Use it.
8876 (TYPE_CXX_ODR_P): New macro.
8877 * dwarf2out.c (gen_array_type_die): First check that type
8878 is an array and then test string flag.
8879
8880 2019-06-24 Richard Biener <rguenther@suse.de>
8881
8882 PR tree-optimization/90972
8883 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8884 in common code, dealing with STRING_CST properly.
8885
8886 2019-06-24 Richard Biener <rguenther@suse.de>
8887
8888 PR tree-optimization/90930
8889 PR tree-optimization/90316
8890 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8891 decrement of limit.
8892
8893 2019-06-24 Martin Sebor <msebor@redhat.com>
8894
8895 * tree-pretty-print.h: Remove unnecessary punctuation characters
8896 from a diagnostic.
8897 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8898
8899 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8900
8901 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8902 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8903 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8904
8905 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8906
8907 * config/rs6000/darwin.h: Handle GCC target pragma.
8908
8909 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8910
8911 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8912
8913 2019-06-22 Jeff Law <law@redhat.com>
8914
8915 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8916
8917 2019-06-22 Jan Hubicka <jh@suse.cz>
8918
8919 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8920 give up on bitfields; continue searching for different refs
8921 appearing later.
8922
8923 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8924
8925 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8926 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8927 containing the offset as possible simd lane access. Look through
8928 widening conversion. Move the
8929 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8930
8931 2019-06-21 Richard Biener <rguenther@suse.de>
8932
8933 PR tree-optimization/90930
8934 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8935 flag on new stmts to avoid re-processing them.
8936
8937 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8938
8939 PR c++/90875 - added -Wswitch-outside-range option
8940 * doc/invoke.texi (Wswitch-outside-range): Document.
8941
8942 2019-06-21 Jeff Law <law@redhat.com>
8943
8944 PR tree-optimization/90949
8945 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
8946 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
8947
8948 2019-06-21 Richard Biener <rguenther@suse.de>
8949
8950 PR debug/90914
8951 * dwarf2out.c (prune_unused_types_walk): Always consider
8952 function-local extern declarations as used.
8953
8954 2019-06-21 Richard Biener <rguenther@suse.de>
8955
8956 PR tree-optimization/90913
8957 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
8958 the scalar variant of if-conversion versioning.
8959
8960 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8961
8962 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
8963 create another "omp scan inscan exclusive" array if
8964 !ctx->scan_inclusive.
8965 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
8966 (lower_omp_scan): Likewise.
8967 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
8968 2-bit bitfield for simd_lane_access_p member.
8969 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
8970 aux == (void *)-4 as simd lane access.
8971 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
8972 comment with permutations to show the canonical permutation order.
8973 (vectorizable_scan_store): Handle exclusive scan.
8974 (vectorizable_store): Call vectorizable_scan_store even for
8975 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
8976
8977 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8978 "omp simd array" arrays with one byte elements.
8979
8980 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
8981
8982 * config/alpha/alpha.md (@unaligned_store<mode>):
8983 Rename from unaligned_store<mode>.
8984 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
8985 * config/alpha/sync.md (@load_locked_<mode>): Rename
8986 from load_locked_<mode>.
8987 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
8988 (@atomic_compare_and_swap<mode>_1): Rename
8989 from atomic_compare_and_swap<mode>_1.
8990 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
8991 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
8992 Use gen_reload_in_aligned and gen_unaligned_store.
8993 (emit_load_locked): Remove.
8994 (emit_store_conditional): Ditto.
8995 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
8996 (alpha_split_compare_and_swap): Ditto.
8997 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
8998 (alpha_split_compare_and_swap_12): Use gen_load_locked
8999 and gen_store_conditional.
9000 (alpha_split_atomic_exchange): Ditto.
9001 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9002 (alpha_split_atomic_exchange_12): Use gen_load_locked
9003 and gen_store_conditional.
9004
9005 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9006
9007 * config/aarch64/aarch64-errata.h: New file.
9008 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9009 (CA53_ERR_843419_SPEC): Delete.
9010 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
9011 * config/aarch64/aarch64-linux.h: Likewise.
9012 * config/aarch64/aarch64-netbsd.h: Likewise.
9013 * config/aarch64/aarch64-freebsd.h: Likewise.
9014
9015 2019-06-20 Marek Polacek <polacek@redhat.com>
9016
9017 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
9018
9019 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
9020
9021 * config/rs6000/rs6000.md (isa attribute): Add support for
9022 for a future processor.
9023
9024 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
9025
9026 PR target/54855
9027 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
9028 standard scalar operation pattern for V2DF.
9029 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
9030 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9031 (*ieee_<ieee_maxmin><mode>3): Likewise.
9032 (vec_setv2df_0): Likewise.
9033
9034 2019-06-20 Jan Hubicka <jh@suse.cz>
9035
9036 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
9037 parameter; it has no use in gimple memory model.
9038 (indirect_ref_may_alias_decl_p): Update.
9039
9040 2019-06-20 Martin Liska <mliska@suse.cz>
9041
9042 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
9043 to 10.
9044
9045 2019-06-20 Jakub Jelinek <jakub@redhat.com>
9046
9047 * tree-vect-stmts.c (enum scan_store_kind): New type.
9048 (scan_store_can_perm_p): Change last argument from int * to
9049 vec<enum scan_store_kind> *, record precisely which permutations
9050 need whole vector left shift or that plus VEC_COND_EXPR.
9051 (vectorizable_scan_store): Adjust caller, use whole vector left shift
9052 and additional VEC_COND_EXPR only for those iterations that need it.
9053
9054 2019-06-20 Alexandre Oliva <oliva@adacore.com>
9055
9056 * config.gcc: Fix ARM --with-fpu checking and error message.
9057
9058 2019-06-19 Marek Polacek <polacek@redhat.com>
9059
9060 PR c++/60364 - noreturn after first decl not diagnosed.
9061 * attribs.c (get_attribute_namespace): No longer static.
9062 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
9063 attributes.
9064 (attr_noreturn_exclusions): Make it extern.
9065 * attribs.h (get_attribute_namespace): Declare.
9066 * tree-inline.c (function_attribute_inlinable_p): Use
9067 get_attribute_name.
9068
9069 2019-06-19 Martin Sebor <msebor@redhat.com>
9070
9071 PR tree-optimization/90626
9072 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
9073
9074 PR tree-optimization/90626
9075 * tree-ssa-strlen.c (strxcmp_unequal): New function.
9076 (handle_builtin_string_cmp): Call it.
9077
9078 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9079
9080 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9081 and DARWIN_NOPIE_SPEC.
9082 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9083 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9084 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9085 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9086 (DARWIN_EXPORT_DYNAMIC): Delete.
9087 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9088 and pie options processing to darwin.h.
9089 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9090
9091 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9092
9093 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9094 in computing the number of options to be moved.
9095
9096 2019-06-19 Maya Rashish <coypu@sdf.org>
9097
9098 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9099 (CLEAR_INSN_CACHE) Use it.
9100
9101 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9102
9103 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9104
9105 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9106
9107 PR middle-end/84521
9108 * builtins.c (expand_builtin_setjmp_setup): Save
9109 hard_frame_pointer_rtx.
9110 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9111 restore fp.
9112 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9113 non-local goto.
9114 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9115 elimination code.
9116 (remove_reg_equal_offset_note): Remove unused function.
9117 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9118 code.
9119 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9120 (arc_builtin_setjmp_frame_value): Remove function.
9121 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9122 (avr_builtin_setjmp_frame_value): Remove function.
9123 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9124 (ix86_builtin_setjmp_frame_value): Remove function.
9125 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9126 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9127 (sparc_builtin_setjmp_frame_value): Remove function.
9128 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9129 (vax_builtin_setjmp_frame_value): Remove function.
9130 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9131 pointer if has_nonlocal_label.
9132
9133 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9134
9135 * doc/md.texi: Document vec_shl_<mode> pattern.
9136 * optabs.def (vec_shl_optab): New optab.
9137 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9138 argument, if == vec_shl_optab, check for left whole vector shift
9139 pattern rather than right shift.
9140 (expand_vec_perm_const): Add vec_shl_optab support.
9141 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9142 in the comment.
9143 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9144 can be handled by vec_shl_optab.
9145 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9146 (check_scan_store): Use it.
9147 (vectorizable_scan_store): If target can't do normal permutations,
9148 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9149 after it.
9150 * config/i386/sse.md (vec_shl_<mode>): New expander.
9151
9152 * omp-low.c (lower_rec_input_clauses): Handle references properly
9153 in inscan clauses.
9154 (lower_omp_scan): Likewise.
9155
9156 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9157
9158 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9159 mem_mode is BLKmode.
9160
9161 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9162
9163 PR target/90922
9164 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9165 pointer adjustment for the case of no callee-saved registers and
9166 stack frame bigger than 128 bytes.
9167
9168 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9169
9170 PR middle-end/90862
9171 * omp-low.c (check_omp_nesting_restrictions): Handle
9172 GF_OMP_TARGET_KIND_OACC_DECLARE.
9173
9174 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9175
9176 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9177 (@add<mode>3_carry): Rename from add<mode>3_carry.
9178 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9179 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9180 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9181 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9182 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9183 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9184 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9185 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9186 (cmpstrnsi): Use gen_cmp_1.
9187 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9188 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9189 (@umonitor_<mode>): Rename from umonitor_<mode>.
9190 * config/i386/i386-expand.c (ix86_expand_copysign):
9191 Use gen_copysign3_const and gen_copysign3_var.
9192 (ix86_expand_xorsign): Use gen_xorsign3_1.
9193 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9194 gen_sub3_carry_ccgz and gen_cmp1.
9195 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9196 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9197 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9198 (ix86_split_lshr): Ditto.
9199 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9200
9201 2019-06-18 Jason Merrill <jason@redhat.com>
9202
9203 * tree.c (build_constructor): Add MEM_STAT_DECL.
9204
9205 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9206
9207 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9208 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9209 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9210 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9211 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9212 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9213 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9214 Use CC_NZC instead of CC.
9215 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9216 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9217 (aarch64_print_operand): Handle E_CC_NZCmode.
9218 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9219 of gen_set_clobber_cc.
9220
9221 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9222
9223 * config/aarch64/aarch64-sve.md: Tabify file.
9224
9225 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9226
9227 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9228 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9229 * config/aarch64/aarch64-sve.md: Use it.
9230
9231 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9232
9233 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9234 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9235 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9236 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9237 (aarch64_expand_sve_vec_cmp_int): Use it.
9238 (aarch64_expand_sve_vec_cmp_float): Likewise.
9239 * config/aarch64/aarch64-sve.md: Likewise throughout.
9240
9241 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9242 Kugan Vivekanandarajah <kuganv@linaro.org>
9243
9244 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9245 (*cond_<optab><mode>_z): Fold into...
9246 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9247 operand 4 can be tied to operand 0 (either inherently or via RA).
9248
9249 2019-06-18 Richard Biener <rguenther@suse.de>
9250
9251 PR debug/90900
9252 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9253 as if optimized away.
9254
9255 2019-06-18 Tom de Vries <tdevries@suse.de>
9256
9257 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9258 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9259 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9260 Rename to ...
9261 (define_insn "@set_softstack_<mode>"): ... this.
9262 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9263 (define_insn "@omp_simt_enter_<mode>"): ... this.
9264 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9265 (define_insn "@omp_simt_exit_<mode>"): ... this.
9266
9267 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9268
9269 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9270 vf parameter. Restore the previous iv step of nscalars_step,
9271 but give it iv_type rather than compare_type. Tweak code order
9272 to match the comments.
9273 (vect_set_loop_condition_masked): Update accordingly.
9274 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9275 for iv_precision. Tweak comment formatting.
9276
9277 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9278
9279 * config/darwin.c: Strip trailing whitespace.
9280
9281 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9282
9283 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9284 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9285
9286 2019-06-18 Martin Jambor <mjambor@suse.cz>
9287
9288 PR ipa/90889
9289 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9290 caller does not have flag_ipa_cp set.
9291
9292 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9293
9294 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9295 from "*fold_left_plus_<mode>", updated operands order.
9296 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9297 * internal-fn.c (mask_fold_left_direct): New define.
9298 (expand_mask_fold_left_optab_fn): Likewise.
9299 (direct_mask_fold_left_optab_supported_p): Likewise.
9300 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9301 * optabs.def (mask_fold_left_plus_optab): New optab.
9302 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9303 masked internal_fn for a reduction ifn.
9304 (vectorize_fold_left_reduction): Add support for masking reductions.
9305
9306 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9307
9308 PR middle-end/80791
9309 * target.def (predict_doloop_p): New hook.
9310 * targhooks.h (default_predict_doloop_p): New declaration.
9311 * targhooks.c (default_predict_doloop_p): New function.
9312 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9313 * doc/tm.texi: Regenerate.
9314 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9315 (TARGET_PREDICT_DOLOOP_P): New macro.
9316 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9317
9318 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9319
9320 * omp-low.c (struct omp_context): Add scan_inclusive field.
9321 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9322 if inclusive scan.
9323 (struct omplow_simd_context): Add lastlane member.
9324 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9325 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9326 1 or 2 argument.
9327 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9328 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9329 (lower_omp_scan): New function.
9330 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9331 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9332 check 3rd argument if present rather than 2nd.
9333 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9334 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9335 2-bit bitfield.
9336 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9337 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9338 than 2nd.
9339 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9340 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9341 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9342 init.
9343 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9344 IFN_GOMP_SIMD_LANE argument.
9345 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9346 encoded ->aux value.
9347 * tree-vect-stmts.c: Include attribs.h.
9348 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9349 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9350 functions.
9351 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9352 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9353
9354 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9355
9356 PR target/62055
9357 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9358 (*nabs<mode>2_1): Ditto.
9359 (nabs sse-reg splitter): New splitter.
9360 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9361
9362 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9363
9364 PR bootstrap/90873.
9365 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9366 TMR index check.
9367
9368 2019-06-17 Tom de Vries <tdevries@suse.de>
9369
9370 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9371 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9372 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9373 ...
9374 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9375 match_operand 0.
9376 (define_insn "omp_simt_enter_insn"): Rename to ...
9377 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9378 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9379 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9380 gen_omp_simt_enter_si.
9381 (define_expand "omp_simt_exit"): New.
9382 (define_insn "omp_simt_exit"): Rename to ...
9383 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9384 match_operand 0.
9385
9386 2019-06-17 Matthew Green <mrg@eterna.com.au>
9387 Maya Rashish <coypu@sdf.org>
9388
9389 * config.gcc (aarch64*-*-netbsd*): New target.
9390 * config/aarch64/aarch64-netbsd.h: New file.
9391 * config/aarch64/t-aarch64-netbsd: Likewise.
9392
9393 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9394
9395 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9396 the access path from base to first VIEW_CONVERT_EXPR or
9397 BIT_FIELD_REF.
9398
9399 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9400
9401 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9402 access path on BIT_FIELD_REFs.
9403
9404 2019-06-17 Martin Liska <mliska@suse.cz>
9405
9406 PR ipa/90874
9407 * ipa-utils.h (odr_type_p): Remove dead code.
9408
9409 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9410
9411 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9412 alternative Solaris 11.4 format.
9413 * configure: Regenerate.
9414
9415 2019-06-17 Tom de Vries <tdevries@suse.de>
9416
9417 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9418 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9419 match_operand 0.
9420 (define_insn "call_value_insn"): Rename to ...
9421 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9422 match_operand 0.
9423 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9424 DI.
9425
9426 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9427
9428 PR middle-end/64242
9429 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9430 frame clobbers and schedule block.
9431 (builtin_longjmp): Likewise.
9432
9433 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9434
9435 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9436 describe how to perform MSPABI compliant 64-bit shift.
9437 * config/msp430/msp430.md (ashldi3): New define_expand.
9438 (ashrdi3): New define_expand.
9439 (lshrdi3): New define_expand.
9440
9441 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9442
9443 * doc/sourcebuild.texi: Document new effective target keyword
9444 longlong64.
9445
9446 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9447
9448 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9449 indirect_refs_may_alias_p): Revert accidental commits.
9450
9451 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9452 at the end of structures.
9453
9454 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9455
9456 * config/darwin.c (machopic_indirect_call_target): Use renamed
9457 darwin_picsymbol_stubs to decide on output.
9458 (darwin_override_options): Handle darwin_picsymbol_stubs.
9459 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9460 (LD64_VERSION): Revise default.
9461 * config/darwin.opt: (mpic-symbol-stubs): New option.
9462 (darwin_picsymbol_stubs): New variable.
9463 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9464 rename to TARGET_MACHO_PICSYM_STUBS.
9465 * config/i386/i386.c (output_pic_addr_const): Likewise.
9466 * config/i386/i386.h Likewise.
9467 * config/rs6000/darwin.h: Likewise.
9468 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9469 darwin_picsymbol_stubs.
9470
9471 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9472
9473 * config/darwin.opt (prebind, noprebind, seglinkedit,
9474 noseglinkedit): Add RejectNegative.
9475
9476 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9477
9478 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9479 in my previous patch.
9480
9481 2019-06-16 Tom de Vries <tdevries@suse.de>
9482
9483 PR tree-optimization/89376
9484 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9485
9486 2019-06-15 Maya Rashish <coypu@sdf.org>
9487
9488 * doc/invoke.texi (Spec Files): Update location of the
9489 Fortran spec file.
9490
9491 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9492
9493 * doc/extend.texi (Common Function Attributes): Clarify
9494 no_sanitize. Fix grammar.
9495
9496 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9497
9498 * tree-ssa-alias.c (alias_stats): Add
9499 nonoverlapping_component_refs_p_may_alias,
9500 nonoverlapping_component_refs_p_no_alias,
9501 nonoverlapping_component_refs_of_decl_p_may_alias,
9502 nonoverlapping_component_refs_of_decl_p_no_alias.
9503 (dump_alias_stats): Dump them.
9504 (nonoverlapping_component_refs_of_decl_p): Add stats.
9505 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9506 ARRAY_REF.
9507
9508 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9509
9510 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9511 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9512 only.
9513 (*anddi3_doubleword): Split before reload. Merge with
9514 anddi->zext pre-reload splitter.
9515 (*andndi3_doubleword): Split before reload.
9516 (*<code>di3_doubleword): Ditto.
9517 (*one_cmpldi2_doubleword): Ditto.
9518
9519 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9520
9521 PR middle-end/90779
9522 * gimplify.c: Include omp-offload.h and context.h.
9523 (gimplify_bind_expr): Add "omp declare target" attributes
9524 to static block scope variables inside of target region or target
9525 functions.
9526
9527 2019-06-15 Tom de Vries <tdevries@suse.de>
9528
9529 PR tree-optimization/90009
9530 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9531 Return NULL if bb contains IFN_UNIQUE.
9532
9533 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9534
9535 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9536 (un): New define_mode_attr.
9537 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9538 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9539 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9540 merge into ...
9541 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9542
9543 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9544
9545 * config/darwin.opt: Add RejectNegative where needed, reorder
9546 and add minimal functional descriptions.
9547
9548 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9549
9550 PR rtl-optimization/90765
9551 * calls.c (update_stack_alignment_for_call): New function.
9552 (expand_call): Call update_stack_alignment_for_call when
9553 outgoing parameter is passed in the stack.
9554 (emit_library_call_value_1): Likewise.
9555 * function.c (locate_and_pad_parm): Don't update
9556 stack_alignment_needed and preferred_stack_boundary.
9557
9558 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9559
9560 PR target/90877
9561 * config/i386/i386-features.c
9562 (dimode_scalar_chain::compute_convert_gain): Replace
9563 mmxsse_to_integer with sse_to_integer.
9564 * config/i386/i386.c (ix86_register_move_cost): Verify that
9565 moves between MMX and non-MMX units require secondary memory.
9566 Correct costs of moves between SSE and integer units.
9567 * config/i386/i386.h (processor_costs): Rename cost of moving
9568 SSE register to integer to sse_to_integer. Rename cost of
9569
9570 2019-06-14 Matt Thomas <matt@3am-software.com>
9571 Matthew Green <mrg@eterna.com.au>
9572 Nick Hudson <skrll@netbsd.org>
9573 Maya Rashish <coypu@sdf.org>
9574 Richard Earnshaw <rearnsha@arm.com>
9575
9576 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9577 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9578 * config/arm/netbsd-eabi.h: New file.
9579 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9580 redefining.
9581 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9582 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9583 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9584 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9585
9586 2019-06-14 Richard Biener <rguenther@suse.de>
9587
9588 * tree-loop-distribution.c (classify_partition): Return
9589 whether a reduction appeared in all partitions and do not
9590 stop builtin detection because of this.
9591 (distribute_loop): Sort a non-builtin partition last if
9592 there's a reduction in all partitions and make sure the
9593 partition prevailing as last is not a builtin.
9594
9595 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9596
9597 PR ipa/90401
9598 * ipa-prop.c (add_to_agg_contents_list): New function.
9599 (clobber_by_agg_contents_list_p): Likewise.
9600 (extract_mem_content): Likewise.
9601 (get_place_in_agg_contents_list): Delete.
9602 (determine_known_aggregate_parts): Renamed from
9603 determine_locally_known_aggregate_parts. New parameter
9604 aa_walk_budget_p.
9605
9606 2019-06-13 Martin Sebor <msebor@redhat.com>
9607
9608 PR tree-optimization/90662
9609 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9610 to the same type.
9611
9612 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9613
9614 PR bootstrap/90873
9615 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9616 dbase is not TARGET_MEM_REF.
9617
9618 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9619
9620 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9621 Update all uses.
9622 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9623 Do not generate DImode extends for 32bit targets.
9624 (and->zext post-reload splitter): Use gen_extend_insn
9625 instead of indirect functions.
9626 (anddi->zext pre-reload splitter): New.
9627 (*zext<mode>_doubleword_and): Remove.
9628 (*zext<mode>_doubleword): Ditto.
9629 (*zextsi_doubleword): Dittto.
9630
9631 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9632
9633 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9634 Use gen_sub3_insn instead of indirect function.
9635 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9636 indirect function.
9637 (ix86_adjust_counter): Ditto.
9638
9639 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9640 Lijia He <helijia@linux.ibm.com>
9641
9642 PR tree-optimization/77820
9643 * tree-ssa-threadedge.c
9644 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9645 function.
9646 (thread_across_edge): Add call to
9647 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9648
9649 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9650
9651 * config/darwin-driver.c (validate_macosx_version_min): New.
9652 (darwin_default_min_version): Cleanup and validate supplied version.
9653 (darwin_driver_init): Likewise and push cleaned version into opts.
9654
9655 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9656
9657 PR tree-optimization/90869
9658 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9659 converts in MEM_REF referencing decl rather than view converts
9660 from decl type to MEM_REF type.
9661
9662 2019-06-13 Richard Biener <rguenther@suse.de>
9663
9664 PR tree-optimization/90856
9665 * tree-sra.c (build_ref_for_model): Only use
9666 build_reconstructed_reference when address-spaces are the same.
9667
9668 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9669
9670 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9671 wrap ei variable name in the declaration in ()s.
9672 (nvptx_single): Actually use mode_label variable. Formatting fix.
9673
9674 2019-06-13 Richard Biener <rguenther@suse.de>
9675
9676 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9677 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9678 also return the condition stmt.
9679 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9680 loop we can version and version that, reusing the loop version
9681 created by if-conversion instead of versioning again.
9682
9683 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9684
9685 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9686 may_contain_p.
9687 * tree-vrp (value_range_base::may_contain_p): Call into
9688 value_inside_range.
9689 (value_inside_range): Make private inside value_range_base class.
9690 Take min/max from *this.
9691 (range_includes_p): Remove.
9692 * tree-vrp.h (value_range_base): Add value_inside_range.
9693 (range_includes_p): Remove.
9694 (range_includes_zero_p): Call may_contain_p.
9695 * vr-values.c (compare_range_with_value): Same.
9696
9697 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9698
9699 * doc/extend.texi (ARC Function Attributes): Update info.
9700
9701 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9702
9703 PR tree-optimization/89713
9704 * doc/invoke.texi (-ffinite-loops): Document new option.
9705 * common.opt (-ffinite-loops): New option.
9706 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9707 IFN_GOACC_LOOP calls as necessary.
9708 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9709 is finite.
9710 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9711 IFN_GOACC_LOOP call is not used.
9712 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9713
9714 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9715
9716 PR target/88838
9717 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9718 compare_type is not with Pmode size, we will create an IV with
9719 Pmode size with truncated use (i.e. converted to the correct type).
9720 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9721 (vect_iv_limit_for_full_masking): New. Factored out of
9722 vect_set_loop_condition_masked.
9723 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9724 (vect_iv_limit_for_full_masking): Declare.
9725
9726 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9727
9728 PR target/88834
9729 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9730 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9731 (get_alias_ptr_type_for_ptr_address): Likewise.
9732 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9733 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9734 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9735 allow_reg_index_p.
9736
9737 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9738
9739 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9740
9741 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9742
9743 * common/config/pru/pru-common.c: New file.
9744 * config.gcc: Add PRU target.
9745 * config/pru/alu-zext.md: New file.
9746 * config/pru/constraints.md: New file.
9747 * config/pru/predicates.md: New file.
9748 * config/pru/pru-opts.h: New file.
9749 * config/pru/pru-passes.c: New file.
9750 * config/pru/pru-pragma.c: New file.
9751 * config/pru/pru-protos.h: New file.
9752 * config/pru/pru.c: New file.
9753 * config/pru/pru.h: New file.
9754 * config/pru/pru.md: New file.
9755 * config/pru/pru.opt: New file.
9756 * config/pru/t-pru: New file.
9757 * doc/extend.texi: Document PRU pragmas.
9758 * doc/invoke.texi: Document PRU-specific options.
9759 * doc/md.texi: Document PRU asm constraints.
9760
9761 2019-06-12 Martin Sebor <msebor@redhat.com>
9762
9763 PR middle-end/90676
9764 * tree-pretty-print.c (dump_mem_ref): New function. Include
9765 MEM_REF type in output when different size than operand.
9766 (dump_generic_node): Move code to dump_mem_ref and call it.
9767
9768 2019-06-12 Martin Sebor <msebor@redhat.com>
9769
9770 PR tree-optimization/90662
9771 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9772 to arrays.
9773
9774 2019-06-12 Tom de Vries <tdevries@suse.de>
9775
9776 PR tree-optimization/90009
9777 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9778
9779 2019-06-12 Martin Liska <mliska@suse.cz>
9780
9781 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9782 the created map.
9783 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9784 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9785 Do not sanitize created maps.
9786
9787 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9788
9789 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9790 value_range::singleton_p.
9791 * tree-vrp.c (value_range_constant_singleton): Remove.
9792 * tree-vrp.h (value_range_constant_singleton): Remove.
9793 * vr-values.c (vr_values::singleton): Use
9794 value_range::singleton_p.
9795
9796 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9797
9798 PR target/90811
9799 * cfgexpand.c (align_local_variable): Add really_expand argument,
9800 don't SET_DECL_ALIGN if it is false.
9801 (add_stack_var): Add really_expand argument, pass it through to
9802 align_local_variable.
9803 (expand_one_stack_var_1): Pass true as really_expand to
9804 align_local_variable.
9805 (expand_one_ssa_partition): Pass true as really_expand to
9806 add_stack_var.
9807 (expand_one_var): Pass really_expand through to add_stack_var.
9808
9809 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9810
9811 * config/arm/iterators.md (VABAL): New int iterator.
9812 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9813 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9814 UNSPEC_VABAL_U values.
9815
9816 2019-06-12 Martin Liska <mliska@suse.cz>
9817
9818 * value-prof.c (stream_out_histogram_value): Only first value
9819 can't be negative.
9820
9821 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9822
9823 PR c/90760
9824 * symtab.c (symtab_node::set_section): Allow being called on aliases
9825 as long as they aren't analyzed yet.
9826
9827 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9828
9829 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9830 to `mips_set_text_contents_type' to indicate whether a
9831 non-debug insn follows.
9832
9833 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9834
9835 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9836 enabling -mpcrel by default.
9837 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9838 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9839 that the test against -mcpu=future is done first. Then test if
9840 -mprefixed-addr is on for -mpcrel.
9841 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9842
9843 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9844
9845 PR target/90811
9846 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9847 instead of and.u%d.
9848
9849 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9850
9851 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9852
9853 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9854
9855 PR c++/90449 - add -Winaccessible-base option.
9856 * doc/invoke.texi (Winaccessible-base): Document.
9857
9858 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9859
9860 PR tree-optimization/62041
9861 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9862
9863 2019-06-11 Jason Merrill <jason@redhat.com>
9864
9865 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9866 * tree.c (get_tree_code_name): Likewise.
9867 * print-tree.c (print_node): Only briefly print a node with an
9868 invalid code.
9869
9870 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9871
9872 PR bootstrap/90819
9873 * trans-mem.c (tm_memopt_compute_available): Add assertion
9874 that blocks is not empty. Formatting fix.
9875
9876 2019-06-11 Martin Liska <mliska@suse.cz>
9877
9878 PR c++/87847
9879 * hash-table.h: Extend create_gcc, add one parameter
9880 that is passed into hash_table::hash_table.
9881
9882 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9883
9884 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9885 New prototype.
9886 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9887 Emit clobber also for non-sse operations.
9888 (ix86_split_fp_absneg_operator): New function.
9889 * config/i386/i386.md (SSEMODEF): New mode iterator.
9890 (ssevecmodef): New mode attribute.
9891 (<code>tf2): Use absneg code iterator.
9892 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9893 Add three-operand AVX alternatives.
9894 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9895 Use absneg code iterator and X87MODEF mode iterator.
9896 (absneg fp_reg non-sse splitter): Call absneg code iterator
9897 and X87MODEF mode iterator.
9898 (absneg general_reg non-sse splitter): Use absneg code iterator
9899 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9900 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9901 code iterator. Add three-operand AVX alternative.
9902 (absneg sse_reg splitter): Use absneg code iterator
9903 and SSEMODEF mode iterator. Handle AVX operands.
9904 (absneg fp_reg splitter): Use absneg code iterator
9905 and MODEF mode iterator.
9906 (absneg general_reg splitter): Merge splitters using MODEF mode
9907 iterator. Use absneg code iterator. Call
9908 ix86_split_fp_absneg_operator.
9909 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9910 Do not enable for non-sse modes before reload.
9911 (CSGNMODE): Remove.
9912 (CSGNVMODE): Ditto.
9913 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9914 ssevecmodef mode attribute instaed of CSGNVMODE.
9915 (copysign<mode>3_const): Ditto.
9916 (copysign<mode>3_var): Ditto.
9917 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9918 Use absneg code iterator. Simplify code using std::swap.
9919 * config/i386/predicates.md (absneg_operator): Remove.
9920
9921 2019-06-10 Martin Sebor <msebor@redhat.com>
9922
9923 * gimple-fold.c (get_range_strlen): Update comment that didn't
9924 make it into r267503 or related commits.
9925
9926 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9927
9928 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9929 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9930
9931 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9932
9933 * tree.def (OMP_SCAN): New tree code.
9934 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9935 OMP_CLAUSE_EXCLUSIVE.
9936 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9937 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9938 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9939 OMP_CLAUSE_{IN,EX}CLUSIVE.
9940 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9941 * tree-nested.c (convert_nonlocal_reference_stmt,
9942 convert_local_reference_stmt, convert_gimple_call): Handle
9943 GIMPLE_OMP_SCAN.
9944 * tree-pretty-print.c (dump_omp_clause): Handle
9945 OMP_CLAUSE_{IN,EX}CLUSIVE.
9946 (dump_generic_node): Handle OMP_SCAN.
9947 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
9948 * gimple.h (gomp_scan): New type.
9949 (is_a_helper <gomp_scan *>::test,
9950 is_a_helper <const gomp_scan *>::test): New templates.
9951 (gimple_build_omp_scan): Declare.
9952 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
9953 gimple_omp_scan_set_clauses): New inline functions.
9954 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
9955 * gimple.c (gimple_build_omp_scan): New function.
9956 (gimple_copy): Handle GIMPLE_OMP_SCAN.
9957 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
9958 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
9959 GIMPLE_OMP_TASKGROUP.
9960 (dump_gimple_omp_scan): New function.
9961 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
9962 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
9963 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
9964 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
9965 (is_gimple_stmt): Handle OMP_SCAN.
9966 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
9967 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9968 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
9969 mentioned in nested #pragma omp scan. Handle
9970 OMP_CLAUSE_{IN,EX}CLUSIVE.
9971 (gimplify_expr): Handle OMP_SCAN.
9972 * omp-low.c (check_omp_nesting_restrictions): For parent context,
9973 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
9974 simd constructs.
9975 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
9976 GIMPLE_OMP_SCAN.
9977
9978 2019-06-10 Martin Liska <mliska@suse.cz>
9979
9980 * ipa-cp.c (ignore_edge_p): New function.
9981 (build_toporder_info): Use it.
9982 * ipa-inline.c (ignore_edge_p): New function.
9983 (inline_small_functions): Use it.
9984 * ipa-pure-const.c (ignore_edge_for_nothrow):
9985 Verify opt_for_fn for caller and callee.
9986 (ignore_edge_for_pure_const): Likewise.
9987 * ipa-reference.c (ignore_edge_p): Extend to check
9988 for opt_for_fn.
9989 * ipa-utils.c (searchc): Refactor.
9990 * ipa-utils.h: Fix coding style.
9991
9992 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9993
9994 * config/arc/arc.c (arc_rtx_costs): Update costs.
9995
9996 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
9997
9998 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
9999 (arc_split_ior): Likewise.
10000 (arc_check_mov_const): Likewise.
10001 (arc_split_mov_const): Likewise.
10002 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10003 (arc_rtx_costs): Replace check Crr with Cax constraint.
10004 (prepare_move_operands): Cleanup, remove unused code.
10005 (arc_split_ior): New function.
10006 (arc_check_ior_const): Likewise.
10007 (arc_split_mov_const): Likewise.
10008 (arc_check_mov_const): Likewise.
10009 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
10010 in define_insn_and_split pattern.
10011 (iorsi3): Likewise.
10012 (mulsi3_v2): Add new matching variant.
10013 (andsi3_i): Cleanup pattern.
10014 (rotrsi3_cnt1): Update pattern.
10015 (rotrsi3_cnt8): New pattern.
10016 (ashlsi2_cnt8): Likewise.
10017 (ashlsi2_cnt16): Likewise.
10018 * config/arc/constraints.md (C0p): Update constraint.
10019 (Crr): Remove it.
10020 (C0x): New pattern.
10021 (Cax): New pattern.
10022
10023 2019-06-10 Martin Liska <mliska@suse.cz>
10024
10025 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
10026 Update coding style.
10027 (sem_item_optimizer::dump_cong_classes):
10028 Print how many items are in a non-singular class. Improve
10029 coding style.
10030
10031 2019-06-10 Martin Liska <mliska@suse.cz>
10032
10033 * value-prof.c (dump_histogram_value): Change dump format.
10034 (gimple_mod_subtract_transform): Remove legacy comment.
10035
10036 2019-06-10 Martin Liska <mliska@suse.cz>
10037
10038 * value-prof.c (dump_histogram_value): Print histogram values
10039 only if present.
10040
10041 2019-06-10 Martin Liska <mliska@suse.cz>
10042
10043 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
10044 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
10045 * ipa-profile.c (ipa_profile_generate_summary):
10046 Use get_most_common_single_value.
10047 * tree-profile.c (gimple_init_gcov_profiler):
10048 Instrument with __gcov_one_value_profiler_v2
10049 and __gcov_indirect_call_profiler_v4.
10050 * value-prof.c (dump_histogram_value):
10051 Print all values for HIST_TYPE_SINGLE_VALUE.
10052 (stream_out_histogram_value): Update assert for
10053 N values.
10054 (stream_in_histogram_value): Set number of
10055 counters for HIST_TYPE_SINGLE_VALUE.
10056 (get_most_common_single_value): New.
10057 (gimple_divmod_fixed_value_transform):
10058 Use get_most_common_single_value.
10059 (gimple_ic_transform): Likewise.
10060 (gimple_stringops_transform): Likewise.
10061 (gimple_find_values_to_profile): Set number
10062 of counters for HIST_TYPE_SINGLE_VALUE.
10063 * value-prof.h (get_most_common_single_value): New.
10064
10065 2019-06-10 Martin Liska <mliska@suse.cz>
10066
10067 * hash-map.h: Pass default value to hash_table ctor.
10068 * hash-table.h: Add default value to call of a ctor.
10069
10070 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
10071
10072 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
10073 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
10074
10075 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
10076
10077 PR target/90751
10078 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10079 Call pa_output_function_label.
10080 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10081 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10082 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10083 to declaration.
10084 (pa_linux_output_function_prologue): Declare.
10085 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10086 (pa_output_function_label): New.
10087 (pa_output_function_prologue): Revise to use pa_output_function_label.
10088 (pa_linux_output_function_prologue): New.
10089 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10090
10091 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10092
10093 * tree-vrp.h (value_range_base::intersect): New.
10094 (value_range::intersect_helper): Move from here...
10095 (value_range_base::intersect_helper): ...to here.
10096 * tree-vrp.c (value_range::intersect_helper): Rename to...
10097 (value_range_base::intersect_helper): ...this, and rewrite to
10098 return a value instead of modifying THIS in place.
10099 Also, move equivalence handling...
10100 (value_range::intersect): ...here, while calling intersect_helper.
10101 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10102 calling intersect.
10103 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10104 Same.
10105 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10106
10107 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10108
10109 * Makefile.in (genprogerr): Add condmd.
10110 (genprog): Remove it here.
10111
10112 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10113
10114 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10115
10116 2019-06-07 Richard Biener <rguenther@suse.de>
10117
10118 PR debug/90574
10119 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10120 that appear after user labels.
10121
10122 2019-06-07 Martin Liska <mliska@suse.cz>
10123
10124 * cselib.c (cselib_init): Disable hash table
10125 sanitization.
10126 * hash-set.h: Pass new default argument to m_table.
10127 * hash-table.c: Add global variable with hash table
10128 sanitization limit.
10129 * hash-table.h (Allocator>::hash_table): Add new argument
10130 to ctor.
10131 (hashtab_chk_error): New.
10132 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10133 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10134 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10135
10136 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10137
10138 * common.opt (flto-odr-type-merging): Ignore.
10139 * invoke.texi (-flto-odr-type-merging): Remove.
10140 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10141 (can_be_vtable_hashed_p): Remove.
10142 (hash_odr_vtable): Remove.
10143 (odr_vtable_hasher::hash): Remove.
10144 (types_same_for_odr): Remove.
10145 (types_odr_comparable): Remove.
10146 (odr_vtable_hasher::equal): Remove.
10147 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10148 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10149 (get_odr_type): Do not use vtable hash.
10150 (dump_odr_type): Remove commented out code.
10151 (build_type_inheritance_graph): Do not allocate vtable hash.
10152 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10153 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10154 (odr_type_p): Likewise.
10155 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10156 test.
10157
10158 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10159
10160 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10161 immediately after same_types_for_tbaa_p returns -1 and continue
10162 looking for possible exact match; if matching types are arrays
10163 watch for partial overlaps.
10164 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10165 (indirect_refs_may_alias_p): Do type based disambiguation first;
10166 update comment.
10167
10168 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10169
10170 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10171
10172 2019-06-07 Martin Liska <mliska@suse.cz>
10173
10174 * doc/invoke.texi: Remove param.
10175 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10176 Remove.
10177 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10178 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10179 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10180 * profile.c (instrument_values): Remove
10181 HIST_TYPE_INDIR_CALL_TOPN.
10182 * tree-profile.c (init_ic_make_global_vars):
10183 Always build __gcov_indirect_call only.
10184 (gimple_init_gcov_profiler): Remove usage
10185 of PARAM_INDIR_CALL_TOPN_PROFILE.
10186 (gimple_gen_ic_profiler): Likewise.
10187 * value-prof.c (dump_histogram_value): Likewise.
10188 (stream_in_histogram_value): Likewise.
10189 (gimple_indirect_call_to_profile): Likewise.
10190 (gimple_find_values_to_profile): Likewise.
10191 * value-prof.h (enum hist_type): Likewise.
10192
10193 2019-06-07 Martin Liska <mliska@suse.cz>
10194
10195 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10196 function.
10197
10198 2019-06-07 Martin Liska <mliska@suse.cz>
10199
10200 PR tree-optimization/78902
10201 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10202 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10203 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10204 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10205 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10206 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10207 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10208 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10209 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10210 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10211 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10212 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10213 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10214 New.
10215 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10216 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10217 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10218 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10219 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10220 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10221 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10222 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10223 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10224 warn_unused_result attribute.
10225 (BUILT_IN_STRDUP): Likewise.
10226 (BUILT_IN_STRNDUP): Likewise.
10227 (BUILT_IN_ALLOCA): Likewise.
10228 (BUILT_IN_CALLOC): Likewise.
10229 (BUILT_IN_MALLOC): Likewise.
10230 (BUILT_IN_REALLOC): Likewise.
10231
10232 2019-06-06 Jim Wilson <jimw@sifive.com>
10233
10234 PR target/89955
10235 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10236 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10237 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10238
10239 2019-06-06 Martin Sebor <msebor@redhat.com>
10240
10241 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10242 (handle_builtin_malloc): Remove trailing spaces.
10243 (handle_builtin_memset): Same.
10244 (handle_builtin_memcmp): Same.
10245 (compute_string_length): Same.
10246 (determine_min_objsize): Same.
10247 (handle_builtin_string_cmp): Same.
10248 (handle_char_store): Same. Break up excessively long line.
10249
10250 2019-06-06 Martin Jambor <mjambor@suse.cz>
10251
10252 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10253 check.
10254
10255 2019-06-06 Martin Jambor <mjambor@suse.cz>
10256
10257 * tree-sra.c (struct access): New field grp_same_access_path.
10258 (dump_access): Dump it.
10259 (build_reconstructed_reference): New function.
10260 (build_ref_for_model): Use it if possible.
10261 (path_comparable_for_same_access): New function.
10262 (same_access_path_p): Likewise.
10263 (sort_and_splice_var_accesses): Set the new flag.
10264 (analyze_access_subtree): Likewise.
10265 (propagate_subaccesses_across_link): Propagate zero value of the new
10266 flag down the access tree.
10267
10268 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10269
10270 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10271 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10272 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10273 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10274 Add gfx906.
10275
10276 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10277
10278 PR tree-optimization/90332
10279 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10280 Handle VALS containing two vectors.
10281 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10282 to...
10283 (@aarch64_combinez<mode>): ... This.
10284 (*aarch64_combinez_be<mode>): Rename to...
10285 (@aarch64_combinez_be<mode>): ... This.
10286 (vec_init<mode><Vhalf>): New define_expand.
10287 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10288
10289 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10290
10291 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10292 library functions only when not optimizing for size.
10293 (ashlsi3): Likewise.
10294 (ashrhi3): Likewise.
10295 (ashrsi3): Likewise.
10296 (lshrhi3): Likewise.
10297 (lshrsi3): Likewise.
10298
10299 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10300
10301 PR rtl-optimization/88751
10302 * ira.c (ira): Use the number of the actually referenced registers
10303 when calculating the threshold.
10304
10305 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10306
10307 * configure: Regenerate.
10308
10309 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10310
10311 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10312 register if it is in memory, so the shift can be emulated with a rotate
10313 instruction.
10314 (ashrhi3): Likewise.
10315 (lshrhi3): Likewise.
10316
10317 2019-06-06 Martin Liska <mliska@suse.cz>
10318
10319 PR tree-optimization/87954
10320 * match.pd: Simplify mult where both arguments are 0 or 1.
10321
10322 2019-06-06 Richard Biener <rguenther@suse.de>
10323
10324 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10325 put equivalences on UNDEFINED ranges.
10326 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10327 Make sure to drop defs of stmts added during simplification
10328 to VARYING.
10329
10330 2019-06-06 Richard Biener <rguenther@suse.de>
10331
10332 * tree-ssa-structalias.c: Include tree-cfg.h.
10333 (make_heapvar): Do not make heap vars artificial.
10334 (find_func_aliases_for_builtin_call): Handle stack allocation
10335 functions.
10336 (find_func_aliases): Delay processing of simple enough returns
10337 in non-IPA mode.
10338 (set_uids_in_ptset): Adjust.
10339 (find_what_var_points_to): Likewise.
10340 (solve_constraints): Do not dump points-to sets here.
10341 (compute_points_to_sets): Post-process return statements,
10342 amending the escaped solution. Dump points-to sets afterwards.
10343 (ipa_pta_execute): Dump points-to sets.
10344
10345 2019-06-06 Martin Liska <mliska@suse.cz>
10346
10347 PR web/87933
10348 * doc/install.texi: Fix HTML headers and
10349 titles for 'Installing GCC' pages.
10350
10351 2019-06-06 Martin Liska <mliska@suse.cz>
10352
10353 * ipa-icf-gimple.h (dump_message_1): Remove.
10354 (dump_message): Likewise.
10355 (return_false_with_message_1): Print also file.
10356 (return_false_with_msg): Likewise.
10357 (return_with_result): Likewise.
10358 (return_with_debug): Likewise.
10359 * ipa-icf.c (sem_function::equals_private): Remove call
10360 to dump_message.
10361
10362 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10363
10364 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10365 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10366 memory operand for it.
10367 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10368
10369 2019-06-05 Martin Sebor <msebor@redhat.com>
10370
10371 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10372 Adjust quoting and hyphenation.
10373 * convert.c (convert_to_real_1): Same.
10374 * gcc.c (driver_wrong_lang_callback): Same.
10375 (driver::handle_unrecognized_options): Same.
10376 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10377 * opts-common.c (cmdline_handle_error): Same.
10378 (read_cmdline_option): Same.
10379 * opts-global.c (complain_wrong_lang): Same.
10380 (print_ignored_options): Same.
10381 (handle_common_deferred_options): Same.
10382 * pretty-print.h: Same.
10383 * print-rtl.c (debug_bb_n_slim): Same.
10384 * sched-rgn.c (make_pass_sched_fusion): Same.
10385 * tree-cfg.c (verify_gimple_assign_unary): Same.
10386 (verify_gimple_label): Same.
10387 * tree-ssa-operands.c (verify_ssa_operands): Same.
10388 * varasm.c (do_assemble_alias): Same.
10389 (assemble_alias): Same.
10390
10391 2019-06-05 Richard Henderson <rth@twiddle.net>
10392
10393 * config/alpha/alpha.c (direct_return): Move down after
10394 struct machine_function definition; use saved frame_size;
10395 return bool.
10396 (struct machine_function): Add sa_mask, sa_size, frame_size.
10397 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10398 (alpha_compute_frame_layout): ... new function.
10399 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10400 (alpha_initial_elimination_offset): Use saved sa_size.
10401 (alpha_vms_initial_elimination_offset): Likewise.
10402 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10403 (alpha_expand_prologue): Use saved frame data. Merge integer
10404 and fp register save loops.
10405 (alpha_expand_epilogue): Likewise.
10406 (alpha_start_function): Use saved frame data.
10407 * config/alpha/alpha-protos.h (direct_return): Update.
10408 (alpha_sa_size): Remove.
10409
10410 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10411
10412 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10413 multiplication by a power-of-two value.
10414 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10415 and turn the modulo operation into a masking operation.
10416
10417 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10418
10419 PR debug/90733
10420 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10421 with VOIDmode inner operands.
10422
10423 2019-06-05 Richard Biener <rguenther@suse.de>
10424
10425 PR middle-end/90726
10426 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10427 turn an expression graph into a tree.
10428
10429 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10430
10431 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10432 member.
10433 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10434 treat it like explicit monotonic schedule modifier.
10435 (expand_omp_for): Initialize has_lastprivate_conditional.
10436 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10437 schedule modifier.
10438
10439 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10440 references, lookup in in hash map MEM_REF operand instead of the
10441 MEM_REF itself.
10442 (lower_omp_1): When looking for lastprivate conditional assignments,
10443 handle MEM_REFs with REFERENCE_TYPE operands.
10444
10445 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10446 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10447 and references a VLA. Handle references to non-VLAs if is_simd
10448 all privatization clauses like reductions.
10449 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10450 If omp_is_reference, use always omp simd arrays and set
10451 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10452 fails, emit reference initialization.
10453
10454 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10455
10456 PR target/89803
10457 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10458 _mm_mask_fpclass_sd_mask): New intrinsics.
10459 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10460 * config/i386/i386-builtin.def
10461 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10462 New builtins.
10463 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10464 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10465 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10466 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10467 case QI_FTYPE_V2SF_INT): Ditto.
10468 * config/i386/sse.md
10469 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10470 Extended to insnstructions with mask operands.
10471
10472 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10473
10474 * config/rs6000/constraints.md (define_register_constraint "wp"):
10475 Delete.
10476 (define_register_constraint "wq"): Delete.
10477 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10478 (rs6000_init_hard_regno_mode_ok): Adjust.
10479 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10480 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10481 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10482 (define_mode_attr VSa): Delete.
10483 (define_mode_attr VSisa): New.
10484 (rest of file): Adjust.
10485 * doc/md.texi (Machine Constraints): Adjust.
10486
10487 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10488
10489 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10490 (define_attr "enabled"): Handle those new isa values.
10491
10492 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10493
10494 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10495 (define_mode_attr VSr5): Delete.
10496 (define_mode_attr VStype_sqrt): Delete.
10497 (define_mode_iterator VSX_SPDP): Delete.
10498 (define_mode_attr VS_spdp_res): Delete.
10499 (define_mode_attr VS_spdp_insn): Delete.
10500 (define_mode_attr VS_spdp_type): Delete.
10501 (*vsx_sqrt<mode>2): Adjust.
10502 (vsx_<VS_spdp_insn>): Delete, split to...
10503 (vsx_xscvdpsp): ... this. New. And...
10504 (vsx_xvcvspdp): ... this. New. And...
10505 (vsx_xvcvdpsp): ... this. New.
10506
10507 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10508
10509 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10510 and V2DF.
10511 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10512 (rest of file): Adjust.
10513
10514 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10515
10516 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10517 (vsx_extract_<mode>_var): Ditto.
10518
10519 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10520
10521 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10522 with just "wa".
10523
10524 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10525
10526 * config/rs6000/constraints.md (define_register_constraint "ww"):
10527 Delete.
10528 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10529 (rs6000_init_hard_regno_mode_ok): Adjust.
10530 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10531 RS6000_CONSTRAINT_ww.
10532 * config/rs6000/rs6000.md: Adjust.
10533 * config/rs6000/vsx.md: Adjust.
10534 * doc/md.texi (Machine Constraints): Adjust.
10535
10536 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10537
10538 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10539 (define_mode_attr sd): New.
10540 (define_mode_attr s): New.
10541 (define_mode_attr Ftrad): Delete.
10542 (define_mode_attr Fvsx): Delete.
10543 (define_mode_attr Fs): Delete.
10544 (rest of file): Use the new mode attributes.
10545 * config.rs6000/vsx.md: Use the new mode attributes.
10546
10547 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10548
10549 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10550 with just "wa".
10551
10552 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10553
10554 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10555 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10556 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10557
10558 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10559
10560 PR target/78263
10561 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10562 C++ with strict ANSI requirements.
10563
10564 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10565
10566 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10567 computations when step is 1.
10568
10569 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10570
10571 * config/rs6000/constraints.md (define_register_constraint "wf"):
10572 Delete.
10573 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10574 (rs6000_init_hard_regno_mode_ok): Adjust.
10575 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10576 RS6000_CONSTRAINT_wf.
10577 * config/rs6000/rs6000.md: Adjust.
10578 * config/rs6000/vsx.md: Adjust.
10579 * doc/md.texi (Machine Constraints): Adjust.
10580
10581 2019-06-04 Andrew Pinski <apinski@marvell.com>
10582
10583 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10584 Fix ILP32 value.
10585
10586 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10587
10588 * config/rs6000/constraints.md (define_register_constraint "wd"):
10589 Delete.
10590 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10591 (rs6000_init_hard_regno_mode_ok): Adjust.
10592 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10593 RS6000_CONSTRAINT_wd.
10594 * config/rs6000/rs6000.md: Adjust.
10595 * config/rs6000/vsx.md: Adjust.
10596 * doc/md.texi (Machine Constraints): Adjust.
10597
10598 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10599
10600 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10601 (rest of file): Adjust.
10602
10603 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10604
10605 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10606 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10607 (vsx_splat_<mode>_reg): Adjust.
10608
10609 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10610
10611 * config/rs6000/constraints.md (define_register_constraint "ws"):
10612 Delete.
10613 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10614 (rs6000_init_hard_regno_mode_ok): Adjust.
10615 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10616 RS6000_CONSTRAINT_ws.
10617 * config/rs6000/rs6000.md: Adjust.
10618 * config/rs6000/vsx.md: Adjust.
10619 * doc/md.texi (Machine Constraints): Adjust.
10620
10621 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10622
10623 * config/rs6000/constraints.md (define_register_constraint "wv"):
10624 Delete.
10625 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10626 (rs6000_init_hard_regno_mode_ok): Adjust.
10627 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10628 RS6000_CONSTRAINT_wv.
10629 * config/rs6000/rs6000.md: Adjust.
10630 * config/rs6000/vsx.md: Adjust.
10631 * doc/md.texi (Machine Constraints): Adjust.
10632
10633 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10634
10635 * config/rs6000/constraints.md (define_register_constraint "wi"):
10636 Delete.
10637 (define_register_constraint "wt"): Delete.
10638 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10639 (rs6000_init_hard_regno_mode_ok): Adjust.
10640 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10641 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10642 * config/rs6000/rs6000.md: Adjust.
10643 * config/rs6000/vsx.md: Adjust.
10644 * doc/md.texi (Machine Constraints): Adjust.
10645
10646 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10647
10648 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10649 const.
10650 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10651 default_elf_asm_output_external.
10652
10653 2019-06-04 Martin Liska <mliska@suse.cz>
10654
10655 * ipa-icf.c (INCLUDE_LIST): Remove.
10656 (sem_item_optimizer::execute): Remove call to init_wpa.
10657 * ipa-icf.h (init_wpa): Remove.
10658
10659 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10660
10661 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10662 conditional on combined for simd.
10663 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10664 member.
10665 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10666 constructs, don't remove lastprivate_conditional_map, but instead set
10667 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10668 to parent construct temporaries.
10669 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10670 like !ctx->lastprivate_conditional_map.
10671 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10672 use up->outer context instead of up.
10673 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10674 gimple_omp_for_combined_p.
10675 (expand_omp_for_static_nochunk): Likewise.
10676 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10677 probably moved over into expand_omp_for_generic rather than being copied
10678 there.
10679
10680 2019-06-04 Martin Liska <mliska@suse.cz>
10681
10682 * value-prof.c (dump_histogram_value): Fix typo.
10683 (gimple_mod_subtract_transform): Likewise.
10684
10685 2019-06-04 Richard Biener <rguenther@suse.de>
10686
10687 PR middle-end/90726
10688 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10689 (tree_contains_chrecs): Likewise.
10690 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10691 exponential behaivor from ...
10692 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10693 ... here.
10694 (expression_expensive_p): Avoid exponential behavior and compute
10695 expanded size, rejecting any expansion.
10696 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10697 (idx_contains_abnormal_ssa_name_p): Likewise.
10698 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10699 (contains_abnormal_ssa_name_p): Simplify and use
10700 walk_tree_without_duplicates.
10701
10702 2019-06-04 Richard Biener <rguenther@suse.de>
10703
10704 PR tree-optimization/90738
10705 Revert
10706 2019-06-03 Richard Biener <rguenther@suse.de>
10707
10708 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10709 full reference tree and record in ref->ref.
10710 (vn_reference_lookup_3): Pass in original ref to
10711 ao_ref_init_from_vn_reference.
10712 (vn_reference_lookup): Likewise.
10713 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10714 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10715 Handle non-decl bases in the original reference.
10716
10717 2019-06-04 Martin Liska <mliska@suse.cz>
10718
10719 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10720 number of references.
10721 (sem_item_optimizer::do_congruence_step):
10722 (sem_item_optimizer::worklist_push): Dump how references
10723 a class has.
10724 (sem_item_optimizer::worklist_pop): Use heap.
10725 (sem_item_optimizer::process_cong_reduction): Likewise.
10726 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10727
10728 2019-06-04 Martin Liska <mliska@suse.cz>
10729
10730 * ipa-icf.h (struct sem_usage_pair_hash): New.
10731 (sem_usage_pair_hash::hash): Likewise.
10732 (sem_usage_pair_hash::equal): Likewise.
10733 (struct sem_usage_hash): Likewise.
10734 * ipa-icf.c (sem_item::sem_item): Initialize
10735 referenced_by_count.
10736 (sem_item::add_reference): Register a reference
10737 in ref_map and not in target->usages.
10738 (sem_item::setup): Remove initialization of
10739 dead vectors.
10740 (sem_item::~sem_item): Remove usage of dead vectors.
10741 (sem_item::dump): Remove dump of references.
10742 (sem_item_optimizer::sem_item_optimizer): Initialize
10743 m_references.
10744 (sem_item_optimizer::read_section): Remove useless
10745 dump.
10746 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10747 (sem_item_optimizer::build_graph): Pass m_references
10748 to ::add_reference.
10749 (sem_item_optimizer::verify_classes): Remove usage of dead
10750 vectors.
10751 (sem_item_optimizer::traverse_congruence_split): Return true
10752 when a class is split.
10753 (sem_item_optimizer::do_congruence_step_for_index): Use
10754 hash_map for look up of (sem_item *, index). That brings
10755 significant speed up.
10756 (sem_item_optimizer::do_congruence_step): Return true
10757 when a split is done.
10758 (congruence_class::is_class_used): Use referenced_by_count.
10759
10760 2019-06-04 Alan Modra <amodra@gmail.com>
10761
10762 PR target/90689
10763 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10764 error.
10765
10766 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10767
10768 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10769 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10770 (rs6000_secondary_reload_simple_move): Adjust.
10771 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10772 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10773 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10774 comment.
10775 (power6x): Adjust.
10776 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10777 (floatunssi<mode>2_lfiwzx): Adjust.
10778 (fix_trunc<mode>si2_stfiwx): Adjust.
10779 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10780 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10781 (mfpgpr): Mark as deprecated.
10782 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10783 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10784 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10785
10786 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10787
10788 * config/rs6000/constraints.md (define_register_constraint "wg"):
10789 Delete.
10790 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10791 RS6000_CONSTRAINT_wg.
10792 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10793 (rs6000_init_hard_regno_mode_ok): Adjust.
10794 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10795 Delete "wg" alternatives.
10796 * doc/md.texi (Machine Constraints): Adjust.
10797
10798 2019-06-03 Alan Modra <amodra@gmail.com>
10799
10800 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10801 (get_uncond_jump_length): Assert length less than INT_MAX and
10802 non-negative.
10803
10804 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10805
10806 PR middle-end/64242
10807 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10808 block.
10809 (expand_builtin_nonlocal_goto): Likewise.
10810
10811 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10812
10813 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10814 (aarch64_asm_output_external): Declare.
10815 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10816 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10817 (aarch64_asm_output_alias): New.
10818 (aarch64_asm_output_external): New.
10819 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10820 (ASM_OUTPUT_EXTERNAL): Define.
10821
10822 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10823 * tree-vrp.h (value_range_base::nonzero_p): New.
10824 (value_range_base::set_nonnull): Rename to...
10825 (value_range_base::set_nonzero): ...this.
10826 (value_range_base::set_null): Rename to...
10827 (value_range_base::set_zero): ...this.
10828 (value_range::set_nonnull): Remove.
10829 (value_range::set_null): Remove.
10830 * tree-vrp.c (range_is_null): Remove.
10831 (range_is_nonnull): Remove.
10832 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10833 instead of range_is_*null.
10834 (extract_range_from_unary_expr): Same.
10835 (value_range_base::set_nonnull): Rename to...
10836 (value_range_base::set_nonzero): ...this.
10837 (value_range::set_nonnull): Remove.
10838 (value_range_base::set_null): Rename to...
10839 (value_range_base::set_zero): ...this.
10840 (value_range::set_null): Remove.
10841 (extract_range_from_binary_expr): Rename set_*null uses to
10842 set_*zero.
10843 (extract_range_from_unary_expr): Same.
10844 (union_helper): Same.
10845 * vr-values.c (get_value_range): Use set_*zero instead of
10846 set_*null.
10847 (vr_values::extract_range_from_binary_expr): Same.
10848 (vr_values::extract_range_basic): Same.
10849
10850 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10851
10852 PR driver/90684
10853 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10854
10855 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10856
10857 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10858 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10859 Rename to...
10860 (aarch64_<su>abd<mode>_3): ... This.
10861 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10862
10863 2019-06-03 Richard Biener <rguenther@suse.de>
10864
10865 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10866 full reference tree and record in ref->ref.
10867 (vn_reference_lookup_3): Pass in original ref to
10868 ao_ref_init_from_vn_reference.
10869 (vn_reference_lookup): Likewise.
10870 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10871 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10872 Handle non-decl bases in the original reference.
10873
10874 2019-06-03 Martin Liska <mliska@suse.cz>
10875
10876 * doc/generic.texi: Remove Java Trees.
10877
10878 2019-06-03 Martin Liska <mliska@suse.cz>
10879
10880 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10881 returns 0 when operands are equal.
10882
10883 2019-06-03 Richard Biener <rguenther@suse.de>
10884
10885 PR tree-optimization/90716
10886 * tree-loop-distribution.c (destroy_loop): Process blocks in
10887 correct order.
10888
10889 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10890
10891 PR target/88837
10892 * vector-builder.h (vector_builder::count_dups): New method.
10893 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10894 Declare prototype.
10895 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10896 (vec_init<mode><Vel>): New pattern.
10897 * config/aarch64/aarch64.c (emit_insr): New function.
10898 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10899 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10900 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10901 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10902
10903 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10904
10905 PR tree-optimization/90681
10906 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10907 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10908 special case for SLP, but fail on non-groupped loads.
10909
10910 2019-06-03 Martin Liska <mliska@suse.cz>
10911
10912 * cfg.c (debug): Use TDF_DETAILS for debug and
10913 print edge info only once.
10914
10915 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10916
10917 PR fortran/90539
10918 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10919
10920 2019-06-01 Martin Sebor <msebor@redhat.com>
10921
10922 PR middle-end/90694
10923 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10924
10925 2019-05-31 Jan Hubicka <jh@suse.cz>
10926
10927 * alias.c: Include ipa-utils.h.
10928 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10929 * ipa-devirt.c (prevailing_odr_type): New.
10930 * ipa-utils.h (previaling_odr_type): Declare.
10931
10932 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10933 Hongtao Liu <hongtao.liu@intel.com>
10934
10935 PR target/89355
10936 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10937 NOTE_INSN_DELETED_LABEL check.
10938
10939 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10940 Robert Suchanek <robert.suchanek@mips.com>
10941
10942 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10943 and 3rd operands of the fmadd/fmsub/maddv builtin.
10944
10945 2019-05-31 Jakub Jelinek <jakub@redhat.com>
10946
10947 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
10948 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
10949 on OMP_SIMD if not nested inside of worksharing loop that also has
10950 lastprivate conditional clause for the same decl.
10951 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
10952 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
10953 on simd.
10954 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
10955 on simd construct.
10956 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
10957 on simd construct.
10958 (lower_lastprivate_clauses): Likewise.
10959 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
10960 calling lower_rec_input_clauses.
10961 (lower_omp_for): Likewise.
10962 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
10963 clause on simd construct.
10964 * omp-expand.c (expand_omp_simd): Initialize cond_var if
10965 OMP_CLAUSE__CONDTEMP_ clause is present.
10966
10967 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
10968 ivar and lvar.
10969
10970 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
10971
10972 PR c/43673
10973 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
10974 TEX_D32, TEX_D64 or TEX_D128.
10975
10976 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10977
10978 * match.pd (~(vec?cst1:cst2)): New transformation.
10979
10980 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
10981
10982 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
10983 ((size_t)(A /[ex] B) CMP C): New transformation.
10984
10985 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
10986
10987 * doc/md.texi: Document define_insn_and_rewrite.
10988 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
10989 * gensupport.c (queue_elem): Update comment.
10990 (replace_operands_with_dups): New function.
10991 (gen_rewrite_sequence): Likewise.
10992 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
10993 * read-rtl.c (apply_subst_iterator): Likewise.
10994 (add_condition_to_rtx, named_rtx_p): Likewise.
10995 (rtx_reader::read_rtx_operand): Likewise.
10996 * config/aarch64/aarch64-sve.md
10997 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
10998 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
10999 define_insn_and_rewrite.
11000 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11001 Remove separate define_split.
11002
11003 2019-05-31 Jan Hubicka <jh@suse.cz>
11004
11005 * tree-ssa-alias.c (type_has_components_p): New function.
11006 (aliasing_component_refs_p): Use it.
11007
11008 2019-05-31 Martin Liska <mliska@suse.cz>
11009
11010 * gdbhooks.py: Add const_tree to TreePrinter.
11011
11012 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
11013
11014 PR debug/86964
11015 * common.opt (feliminate-unused-debug-symbols): Enable by default.
11016 * doc/invoke.texi (Debugging Options): Document new default of
11017 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
11018
11019 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11020
11021 PR tree-optimization/90671
11022 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
11023 template_block used to be empty on the first call, don't use
11024 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
11025 seq with bb_seq and set it with set_bb_seq.
11026
11027 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
11028
11029 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
11030
11031 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11032 Michael Meissner <meissner@linux.ibm.com>
11033
11034 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
11035 (prefixed_mem_operand): Likewise.
11036 (non_prefixed_mem_operand): Likewise.
11037 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
11038 prototype.
11039 * config/rs6000/rs6000.c (print_operand_address): Handle
11040 PC-relative addresses.
11041 (mode_supports_prefixed_address_p): New function.
11042 (rs6000_prefixed_address): New function.
11043 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
11044 (SYMBOL_REF_PCREL_P): Likewise.
11045
11046 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11047
11048 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
11049 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
11050 (gimplify_omp_for): If worksharing loop with lastprivate conditional
11051 is nested inside of parallel region, add _condtemp_ clause to both.
11052 * tree-nested.c (convert_nonlocal_omp_clauses,
11053 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
11054 assertion failure.
11055 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
11056 member.
11057 * omp-general.c (omp_extract_for_data): Compute it.
11058 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
11059 (lower_rec_input_clauses): Likewise.
11060 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
11061 clause is already present, just add one further one after it.
11062 (lower_lastprivate_clauses): Handle cond_ptr with array type.
11063 (lower_send_shared_vars): Clear _condtemp_ vars.
11064 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
11065 or section or taskgroup.
11066 * omp-expand.c (determine_parallel_type): Disallow combining only if
11067 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
11068 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
11069 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11070 expand_omp_for_static_chunk, expand_omp_for): Use
11071 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
11072 determine if a special set of API routines are needed and if condtemp
11073 needs to be initialized, while always initialize cond_var if
11074 fd->lastprivate_conditional is non-zero.
11075
11076 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11077 Michael Meissner <meissner@linux.ibm.com>
11078
11079 * config/rs6000/constraints.md (eI): New constraint.
11080 * config/rs6000/predicates.md (cint34_operand): New predicate.
11081 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11082 (SIGNED_34BIT_OFFSET_P): Likewise.
11083 * doc/md.texi (eI): Document constraint.
11084
11085 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11086
11087 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11088
11089 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11090 Michael Meissner <meissner@linux.ibm.com>
11091
11092 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11093 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11094 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11095 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11096 (OTHER_FUTURE_MASKS): Likewise.
11097 (POWERPC_MASKS): Likewise.
11098 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11099 specified without -mprefixed-addr or -mcpu=future. Error if
11100 -mprefixed-addr is specified without -mcpu=future.
11101 (rs6000_opt_masks): Add entry for prefixed-addr.
11102 * rs6000.opt (mprefixed-addr): New option.
11103
11104 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11105
11106 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11107 cfun->is_thunk check.
11108
11109 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11110
11111 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11112 to length.
11113
11114 2019-05-30 Martin Liska <mliska@suse.cz>
11115
11116 * gdbinit.in: Fix 'ptc' command. Add trt
11117 that prints TREE_TYPE($).
11118
11119 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11120 Alan Modra <amodra@gmail.com>
11121
11122 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11123 calls here...
11124 (rs6000_indirect_call_template_1): ...and here.
11125 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11126 plt16_ha, plt16_lo, mtctr indirect calls. Use
11127 rs6000_pltseq_enum.
11128 (rs6000_decl_ok_for_sibcall): New function.
11129 (rs6000_function_ok_for_sibcall): Refactor.
11130 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11131 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11132 when pcrel. Reorganize.
11133 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11134 * rs6000.h (rs6000_pltseq_enum): New enum.
11135 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11136 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11137 (*pltseq_plt16_ha): Likewise.
11138 (*pltseq_plt16_lo): Likewise.
11139 (*pltseq_mtctr): Likewise.
11140 (*pltseq_plt_pcrel): New insn.
11141 (*call_local_aix): Handle @notoc calls.
11142 (*call_value_local_aix): Likewise.
11143 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11144 (*call_value_nonlocal_aix): Likewise.
11145 (*call_indirect_pcrel): New insn.
11146 (*call_value_indirect_pcrel): Likewise.
11147
11148 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11149
11150 * config/i386/sse.md (*save_multiple<mode>): Rename from
11151 save_multiple<mode>.
11152 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11153 (*restore_multiple_and_return<mode>): Rename from
11154 restore_multiple_and_return<mode>.
11155 (*restore_multiple_leave_return<mode>): Rename from
11156 restore_multiple_leave_return<mode>.
11157
11158 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11159
11160 * config.gcc (rx-*-linux*): New target.
11161 * config/rx/elf.opt: New file.
11162 * config/rx/linux.h: Likewise.
11163 * config/rx/t-linux: Likewise.
11164 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11165 make it zero.
11166 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11167 (ASM_APP_OFF): Likewise.
11168 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11169 moved elsewhere.
11170
11171 2019-05-29 Jan Hubicka <jh@suse.cz>
11172
11173 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11174 variants are pointer equivalent.
11175
11176 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11177
11178 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11179 * config/aarch64/aarch64-sve2.md: New file.
11180 (<u>avg<mode>3_floor): New pattern.
11181 (<u>avg<mode>3_ceil): Likewise.
11182 (*<sur>h<addsub><mode>): Likewise.
11183 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11184 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11185
11186 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11187
11188 PR bootstrap/90543
11189 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11190 for var_opt_string printing. In cl_optimization_print_diff, print
11191 (null) instead of invoking undefined behavior if one of the
11192 var_opt_string pointers is NULL and use && instead of first || in the
11193 guarding condition. For var_target_other options, handle const char *
11194 target variables similarly to const char * optimize node variables.
11195
11196 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11197
11198 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11199 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11200 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11201 Add autib1716 and pacib1716 initialisation.
11202 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11203 for autib1716 and pacib1716.
11204 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11205 aarch64_post_cfi_startproc): Define.
11206 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11207 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11208 aarch64_handle_pac_ret_protection): Set default sign key to A.
11209 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11210 aarch64_expand_prologue): Add check for b-key.
11211 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11212 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11213 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11214 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11215 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11216 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11217 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11218 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11219 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11220 pauth_hint_num_a with pauth_hint_num.
11221 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11222 pauth_hint_num_a with pauth_hint_num.
11223 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11224 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11225 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11226 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11227 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11228 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11229 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11230 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11231 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11232 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11233 UNSPEC_AUTIA1716 respectively.
11234 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11235 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11236 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11237 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11238 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11239 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11240
11241 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11242
11243 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11244 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11245 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11246 explicit clause on combined parallel into implicit shared clause.
11247 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11248 and firstprivate if the decl has one too from combined parallel to
11249 the worksharing construct.
11250
11251 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11252 Michael Meissner <meissner@linux.ibm.com>
11253
11254 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11255
11256 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11257
11258 * rtl.h (LABEL_REF_P): New #define.
11259
11260 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11261
11262 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11263
11264 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11265
11266 * internal-fn.c: Marked mask_load_direct as vectorizable.
11267 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11268 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11269 combined even if masks different with allow_slp_p param.
11270 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11271 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11272 dissolve SLP-only vectorizable groups when SLP has been discarded.
11273 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11274 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11275 masks.
11276 (vect_build_slp_tree_1): Fixed comment typo.
11277 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11278 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11279 loads for SLP only.
11280 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11281 vectorizable.
11282 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11283
11284 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11285
11286 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11287 Remove obsolete use_thunk reference.
11288 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11289 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11290 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11291 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11292 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11293 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11294 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11295 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11296 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11297
11298 2019-05-28 Nathan Sidwell <nathan@acm.org>
11299
11300 * tree.h (IDENTIFIER_ANON_P): New.
11301 (anon_aggrname_format, anon_aggname_p): Don't declare.
11302 (make_anon_name): Declare.
11303 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11304 (hash_tree): Likewise.
11305 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11306 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11307 (anon_cnt, make_anon_name): New.
11308
11309 2019-05-28 Martin Liska <mliska@suse.cz>
11310
11311 PR other/90315
11312 * opts-global.c (decode_options): Print help for all
11313 help_option_arguments.
11314 * opts.c (print_help): Add new argument.
11315 (common_handle_option): Remember all values into
11316 help_option_arguments.
11317 * opts.h (print_help): Add new argument.
11318
11319 2019-05-28 Martin Liska <mliska@suse.cz>
11320
11321 PR ipa/90555
11322 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11323 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11324 (func_checker::compare_bb): Call compare_loops.
11325
11326 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11327
11328 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11329 on sections construct.
11330 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11331 construct.
11332 (lower_omp_sections): Handle lastprivate conditional.
11333 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11334 lastprivate_conditional_map.
11335 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11336
11337 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11338 critical, taskgroup and section regions when looking for a region
11339 with non-NULL lastprivate_conditional_map.
11340
11341 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11342
11343 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11344 (*ix86_gen_sub3): Ditto.
11345 (*ix86_gen_sub3_carry): Ditto.
11346 (*ix86_gen_one_cmpl2): Ditto.
11347 (*ix86_gen_andsp): Ditto.
11348 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11349 (gen_and2_insn): New static function.
11350 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11351 Use gen_add3_insn instead of ix86_gen_add3.
11352 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11353 instead of ix86_gen_add3.
11354 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11355 Use gen_sub3_insn instead of ix86_gen_sub3.
11356 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11357 instead of ix86_gen_add3.
11358 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11359 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11360 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11361 * config/i386/i386-options.c (ix86_option_override_internal):
11362 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11363 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11364
11365 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11366
11367 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11368 and DW_OP_GNU_const_index opcodes.
11369
11370 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11371
11372 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11373
11374 2019-05-27 Richard Biener <rguenther@suse.de>
11375
11376 PR tree-optimization/90637
11377 * tree-ssa-sink.c (statement_sink_location): Honor the
11378 computed sink location for single-uses.
11379
11380 2019-05-27 Richard Biener <rguenther@suse.de>
11381
11382 PR middle-end/90610
11383 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11384 a bit-insert.
11385
11386 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11387
11388 * config/i386/i386.md (@sub<mode>3_carry): Rename
11389 from sub<mode>3_carry.
11390 (@leave_<mode>): New expander.
11391 (*leave): Rename from leave.
11392 (*leave_rex64): Rename from leave_rex64.
11393 (@monitorx_<mode>): Rename from monitorx_<mode>.
11394 (@clzero_<mode>): Rename from clzero_<mode>.
11395 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11396 from sse3_monitor_<mode>.
11397 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11398 (*ix86_gen_leave): Ditto.
11399 (*ix86_gen_monitor): Ditto.
11400 (*ix86_gen_monitorx): Ditto.
11401 (*ix86_gen_clzero): Ditto.
11402 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11403 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11404 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11405 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11406 Use gen_sse3_monitor instead of ix86_gen_monitor.
11407 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11408 instead of ix86_gen_monitorx.
11409 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11410 instead of ix86_gen_clzero.
11411 * config/i386/i386-options.c (ix86_option_override_internal):
11412 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11413 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11414
11415 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11416
11417 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11418 Rename from tls_global_dynamic_64_<mode>.
11419 (@tls_local_dynamic_base_64_<mode>): Rename from
11420 tls_local_dynamic_base_64_<mode>.
11421 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11422 Remove indirect function.
11423 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11424 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11425 instead of ix86_gen_tls_global_dynamic_64.
11426 Use gen_tls_local_dynamic_base_64 instead of
11427 ix86_gen_tls_local_dynamic_base_64.
11428 * config/i386/i386-options.c (ix86_option_override_internal):
11429 Do not initialize ix86_gen_tls_global_dynamic_64 and
11430 ix86_gen_tls_local_dynamic_base_64.
11431
11432 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11433
11434 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11435 Rename from pro_epilogue_adjust_stack_<mode>_add.
11436 (@pro_epilogue_adjust_stack_sub_<mode>)
11437 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11438 (@allocate_stack_worker_probe_<mode>):
11439 Rename from allocate_stack_worker_probe_<mode>.
11440 (allocate_stack): Use gen_allocate_stack_worker_probe.
11441 (probe_stack): Use gen_probe_stack_1.
11442 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11443 (@adjust_stack_and_probe_<mode>): Rename from
11444 adjust_stack_and_probe<mode>.
11445 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11446 (stack_protect_set): Use gen_stack_protect_set_1.
11447 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11448 (stack_protect_test): Use gen_stack_protect_test_1.
11449 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11450 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11451 Remove indirect function.
11452 (*ix86_gen_adjust_stack_and_probe): Ditto.
11453 (*ix86_gen_probe_stack_range): Ditto.
11454 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11455 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11456 (ix86_adjust_stack_and_probe_stack_clash): Use
11457 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11458 (ix86_adjust_stack_and_probe): Ditto.
11459 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11460 of ix86_gen_probe_stack_range.
11461 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11462 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11463 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11464 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11465 CODE_FOR_stack_protect_test_{si,di}.
11466 * config/i386/i386-options.c (ix86_option_override_internal):
11467 Do not initialize ix86_gen_allocate_stack_worker,
11468 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11469
11470 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11471
11472 * doc/invoke.texi (Link Options): Many editorial changes around
11473 -flinker-output.
11474
11475 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11476
11477 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11478 pre-Solaris 11 referene and most Studio compiler details.
11479
11480 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11481
11482 PR target/90530
11483 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11484 DImode to SImode in floating-point registers on 64-bit target.
11485 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11486 register_operand in xmpyu patterns.
11487
11488 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11489
11490 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11491 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11492 OMP_CLAUSE__REDUCTEMP_.
11493 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11494 OMP_CLAUSE__CONDTEMP_.
11495 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11496 * tree-pretty-print.c (dump_omp_clause): Likewise.
11497 * tree-nested.c (convert_nonlocal_omp_clauses,
11498 convert_local_omp_clauses): Likewise.
11499 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11500 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11501 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11502 on OMP_FOR.
11503 (gimplify_omp_for): Warn and disable conditional modifier from
11504 lastprivate on loop iterators.
11505 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11506 member.
11507 * omp-general.c (omp_extract_for_data): Initialize it.
11508 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11509 member.
11510 (delete_omp_context): Delete it.
11511 (lower_lastprivate_conditional_clauses): New function.
11512 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11513 handle lastprivate conditional clauses.
11514 (lower_reduction_clauses): Add CLIST argument, emit it into
11515 the critical section if any.
11516 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11517 lower_reduction_clauses callers.
11518 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11519 to lower_lastprivate_clauses.
11520 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11521 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11522 clist into a critical section if not emitted there already by
11523 lower_reduction_clauses.
11524 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11525 callers.
11526 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11527 conditional variables.
11528 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11529 clause is present.
11530 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11531 expand_omp_for_static_chunk): Handle lastprivate conditional.
11532 (expand_omp_for): Handle fd.lastprivate_conditional like
11533 fd.have_reductemp.
11534
11535 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11536
11537 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11538 kernel does not exit cleanly.
11539 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11540
11541 2019-05-24 Jason Merrill <jason@redhat.com>
11542
11543 Revert:
11544 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11545
11546 2019-05-24 Richard Biener <rguenther@suse.de>
11547
11548 PR testsuite/90607
11549 * tree-loop-distribution.c (struct partition): Add location
11550 member.
11551 (partition_alloc): Initialize all fields.
11552 (generate_memset_builtin): Use the location recorded in the
11553 partition for the generated call.
11554 (generate_memcpy_builtin): Likewise.
11555 (classify_partition): Record the location of a single store
11556 as location for the partition.
11557
11558 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11559
11560 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11561 for lo-part.
11562
11563 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11564
11565 PR target/90588
11566 * common/config/aarch64/aarch64-common.c
11567 (aarch64_rewrite_selected_cpu): Change local temporary variable
11568 type from unsigned long to uint64_t.
11569 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11570 aarch64_get_extension_string_for_isa_flags): Change declaration to
11571 match new definition by replacing unsigned long with uint64_t.
11572
11573 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11574
11575 PR target/90568
11576 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11577 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11578 Handle stack_protect_test_<mode> codegen similarly to corresponding
11579 sub instruction.
11580
11581 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11582
11583 * config/i386/darwin.h: Reject -mfentry*.
11584 * doc/sourcebuild.texi: Document mfentry target support.
11585
11586 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11587
11588 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11589 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11590 false for PC-relative functions.
11591 (rs6000_output_function_prologue): Change called function name to
11592 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11593 name,1" for PC-relative functions.
11594 (rs6000_elf_declare_function_name): Change called function name to
11595 rs6000_global_entry_point_prologue_needed_p.
11596
11597 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11598
11599 PR target/90552
11600 * config/i386/i386.c (gen_rtx_cost):
11601 Use ix86_tune_cost instead of ix86_cost.
11602
11603 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11604 Michael Meissner <meissner@linux.ibm.com>
11605 Segher Boessenkool <segher@kernel.crashing.org>
11606
11607 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11608 OPTION_MASK_PCREL.
11609 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11610 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11611 (rs6000_fndecl_pcrel_p): Likewise.
11612 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11613 error if -mpcrel is requested without -mcpu=future.
11614 (rs6000_opt_masks): Add entry for pcrel.
11615 (rs6000_fndecl_pcrel_p): New function.
11616 (rs6000_pcrel_p): Likewise.
11617 * config/rs6000/rs6000.opt (mpcrel): New option.
11618 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11619
11620 2019-05-23 Jan Hubicka <jh@suse.cz>
11621 Martin Liska <mliska@suse.cz>
11622
11623 PR tree-optimization/90576
11624 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11625 poly_int_tree_p.
11626 (aliasing_component_refs_p): Fix three way size compare conditional;
11627 give up earlier in case we can not decide on equivalence.
11628
11629 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11630 Michael Meissner <meissner@linux.ibm.com>
11631 Segher Boessenkool <segher@kernel.crashing.org>
11632
11633 * config.gcc: Add future cpu.
11634 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11635 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11636 #define.
11637 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11638 (RS6000_CPU): New instantiation for future cpu.
11639 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11640 PROCESSOR_FUTURE.
11641 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11642 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11643 * config/rs6000/rs6000-tables.opt: Regenerate.
11644 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11645 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11646 (rs6000_machine_from_flags): Handle future cpu.
11647 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11648 PROCESSOR_POWER9 for now.
11649 (rs6000_adjust_cost): Likewise.
11650 (rs6000_issue_rate): Likewise.
11651 (rs6000_register_move_cost): Likewise.
11652 (rs6000_opt_masks): Add entry for future.
11653 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11654 (MASK_FUTURE): New #define.
11655 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11656 * config/rs6000/rs6000.opt (mfuture): New target option.
11657 * doc/invoke.texi (mcpu): Add future cpu.
11658
11659 2019-05-23 Martin Liska <mliska@suse.cz>
11660
11661 PR c++/90587
11662 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11663 operation points to a temporary (pointed via tree_to_wide_ref)
11664 that is out of scope after the &.
11665
11666 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11667
11668 PR c++/90592
11669 * doc/extend.texi (Function Names): Add missing word.
11670
11671 2019-05-23 Richard Biener <rguenther@suse.de>
11672
11673 PR tree-optimization/88440
11674 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11675 at -O[2s]+.
11676 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11677 generated call.
11678 (generate_memcpy_builtin): Likewise.
11679 (distribute_loop): Pass in whether to only distribute patterns.
11680 (prepare_perfect_loop_nest): Also allow size optimization.
11681 (pass_loop_distribution::execute): When optimizing a loop
11682 nest for size allow pattern replacement.
11683
11684 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11685
11686 PR target/90568
11687 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11688 of xor.
11689
11690 2019-05-23 Martin Liska <mliska@suse.cz>
11691
11692 PR sanitizer/90570
11693 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11694 expression similarly to gimplify_decl_expr.
11695
11696 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11697
11698 * cse.c (cse_dump_path): s/dump_file/f.
11699
11700 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11701
11702 PR c++/90462
11703 * diagnostic-format-json.cc: Include "selftest.h".
11704 (json_from_expanded_location): Only add "file" key for non-NULL
11705 file strings.
11706 (json_from_location_range): Don't add "start" and "finish"
11707 children if they are UNKNOWN_LOCATION.
11708 (selftest::test_unknown_location): New selftest.
11709 (selftest::test_bad_endpoints): New selftest.
11710 (selftest::diagnostic_format_json_cc_tests): New function.
11711 * json.cc (json::object::get): New function.
11712 (selftest::test_object_get): New selftest.
11713 (selftest::json_cc_tests): Call it.
11714 * json.h (json::object::get): New decl.
11715 * selftest-run-tests.c (selftest::run_tests): Call
11716 selftest::diagnostic_format_json_cc_tests.
11717 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11718 decl.
11719
11720 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11721 Andrew Stubbs <amd@codesourcery.com>
11722
11723 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11724 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11725 (kernel): Rename to...
11726 (main_kernel): ... this.
11727 (load_image): Load _init_array and _fini_array kernels.
11728 (run): Add argument for kernel to run.
11729 (main): Run init_array_kernel before main_kernel, and
11730 fini_array_kernel after.
11731 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11732 amdgpu_hsa_kernel attribute on functions.
11733 (gcn_disable_constructors): Delete.
11734 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11735 * config/gcn/crt0.c (size_t): Define.
11736 (_init_array, _fini_array): New.
11737 (__preinit_array_start, __preinit_array_end,
11738 __init_array_start, __init_array_end,
11739 __fini_array_start, __fini_array_end): Declare weak references.
11740
11741 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11742
11743 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11744
11745 2019-05-22 Jason Merrill <jason@redhat.com>
11746
11747 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11748
11749 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11750
11751 PR target/88483
11752 * config/i386/i386-options.c (ix86_init_machine_status): Set
11753 stack_frame_required to true.
11754 * config/i386/i386.c (ix86_get_frame_size): New function.
11755 (ix86_frame_pointer_required): Replace get_frame_size with
11756 ix86_get_frame_size.
11757 (ix86_compute_frame_layout): Likewise.
11758 (ix86_find_max_used_stack_alignment): Changed to void. Set
11759 stack_frame_required.
11760 (ix86_finalize_stack_frame_flags): Always call
11761 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11762 ix86_get_frame_size.
11763 * config/i386/i386.h (machine_function): Add stack_frame_required.
11764
11765 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11766
11767 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11768
11769 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11770
11771 * common/config/aarch64/aarch64-common.c
11772 (struct aarch64_option_extension, struct processor_name_to_arch,
11773 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11774 aarch64_contains_opt,
11775 aarch64_get_extension_string_for_isa_flags): Change type of
11776 variables storing flags to uint64_t.
11777 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11778 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11779 * config/aarch64/aarch64.c (struct processor,
11780 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11781 aarch64_validate_march, aarch64_override_options,
11782 aarch64_option_print, aarch64_handle_attr_isa_flags,
11783 aarch64_declare_function_name, aarch64_start_file): Make flag
11784 variables uint64_t.
11785 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11786 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11787 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11788 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11789 * config/aarch64/driver-aarch64.c
11790 (struct aarch64_arch_extension, struct aarch64_core_data,
11791 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11792 flag variables uint64_t.
11793 * doc/invoke.texi: Add documentation for new arguments.
11794
11795 2019-05-22 Richard Biener <rguenther@suse.de>
11796
11797 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11798 rewrite ...
11799 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11800
11801 2019-05-22 Martin Liska <mliska@suse.cz>
11802
11803 PR lto/90500
11804 * doc/extend.texi: Document the change.
11805
11806 2019-05-22 Richard Biener <rguenther@suse.de>
11807
11808 PR tree-optimization/90450
11809 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11810 (mem_ref_hasher::equal): Check it.
11811 (mem_ref_alloc): Initialize it.
11812 (gather_mem_refs_stmt): Set it.
11813
11814 2019-05-22 Richard Biener <rguenther@suse.de>
11815
11816 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11817 Add ABS_EXPR.
11818 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11819 as ABSU_EXPR.
11820
11821 2019-05-22 Alan Modra <amodra@gmail.com>
11822
11823 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11824 (ASM_CPU_SPEC): Conditionally add -many.
11825 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11826 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11827 (rs6000_file_start): ..extracted from here, and modified to
11828 test all ISA bits.
11829 (rs6000_output_function_prologue): Emit .machine as necessary.
11830
11831 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11832
11833 PR middle-end/90553
11834 * ira-lives.c (process_bb_node_lives): Consider defs
11835 for a call insn to be die before the call, not after.
11836
11837 * function.c (assign_parm_setup_block): Raise alignment of
11838 stacked parameter only for STRICT_ALIGNMENT targets.
11839
11840 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11841
11842 * config/rs6000/constraints.md (define_register_constraint "wz"):
11843 Delete.
11844 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11845 RS6000_CONSTRAINT_wz.
11846 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11847 (rs6000_init_hard_regno_mode_ok): Adjust.
11848 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11849 * doc/md.texi (Machine Constraints): Adjust.
11850
11851 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11852
11853 * config/rs6000/constraints.md (define_register_constraint "wl"):
11854 Delete.
11855 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11856 RS6000_CONSTRAINT_wl.
11857 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11858 (rs6000_init_hard_regno_mode_ok): Adjust.
11859 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11860 * doc/md.texi (Machine Constraints): Adjust.
11861
11862 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11863
11864 * config/rs6000/constraints.md (define_register_constraint "wm"):
11865 Delete.
11866 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11867 RS6000_CONSTRAINT_wm.
11868 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11869 (rs6000_init_hard_regno_mode_ok): Adjust.
11870 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11871 * doc/md.texi (Machine Constraints): Adjust.
11872
11873 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11874
11875 * config/rs6000/constraints.md (define_register_constraint "wk"):
11876 Delete.
11877 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11878 RS6000_CONSTRAINT_wk.
11879 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11880 (rs6000_init_hard_regno_mode_ok): Adjust.
11881 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11882 * doc/md.texi (Machine Constraints): Adjust.
11883
11884 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11885
11886 * config/rs6000/constraints.md (define_register_constraint "wj"):
11887 Delete.
11888 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11889 RS6000_CONSTRAINT_wj.
11890 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11891 (rs6000_init_hard_regno_mode_ok): Adjust.
11892 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11893 (VS_64dm): Delete.
11894 * config/rs6000/vsx.md: Ditto.
11895 * doc/md.texi (Machine Constraints): Adjust.
11896
11897 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11898
11899 * config/rs6000/constraints.md (define_register_constraint "wh"):
11900 Delete.
11901 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11902 RS6000_CONSTRAINT_wh.
11903 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11904 (rs6000_init_hard_regno_mode_ok): Adjust.
11905 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11906 * doc/md.texi (Machine Constraints): Adjust.
11907
11908 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11909
11910 PR target/90547
11911 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11912 Avoid calling gen_lowpart with CONST operand.
11913
11914 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11915
11916 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11917 field template_last_to_copy.
11918 (ssa_create_duplicates): Set it, and use it. Attempt to
11919 preserve more debug stmts.
11920
11921 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11922
11923 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11924 (signbit<mode>2): New expander
11925
11926 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11927
11928 PR bootstrap/87338
11929 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11930 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11931
11932 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11933
11934 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11935 %ebx and %ecx bafore calling cpuid with leaf 1 or
11936 non-constant leaf argument.
11937
11938 2019-05-21 Alan Modra <amodra@gmail.com>
11939
11940 PR target/90545
11941 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11942 power9 direct move cost.
11943
11944 2019-05-21 Richard Biener <rguenther@suse.de>
11945
11946 PR middle-end/90510
11947 * fold-const.c (fold_read_from_vector): New function.
11948 * fold-const.h (fold_read_from_vector): Declare.
11949 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
11950 single-element insert permutations. Canonicalize selector
11951 further and fix issue with last commit.
11952
11953 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11954
11955 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
11956 parameter with default value false to declaration.
11957 (split_edges_for_insertion): New inline function. Wrapper for
11958 split_critical_edges with for_edge_insertion_p = true.
11959 * tree-cfg.c (split_critical_edges): Don't split non-critical
11960 edges if for_edge_insertion_p is false. Fix whitespace.
11961 * tree-ssa-pre.c (pass_pre::execute): Call
11962 split_edges_for_insertion instead of split_critical_edges.
11963 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
11964 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
11965 (pass_data_sink_code): Update function name in the comment.
11966
11967 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
11968
11969 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
11970 around is_value_included_in that knows how to handle BIT_AND_EXPR.
11971 (is_pred_expr_subset_of): Use the new function. Handle more cases where
11972 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
11973 positives.
11974
11975 2019-05-21 Martin Liska <mliska@suse.cz>
11976
11977 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
11978 an extra newline.
11979 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
11980 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
11981 vec_lvsr.
11982 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11983 Quote a C type.
11984 (rs6000_function_arg): Likewise.
11985 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
11986 (rs6000_expand_ternop_builtin): Use interval syntax.
11987 (get_element_number): Likewise.
11988 (altivec_expand_builtin): Likewise.
11989 (rs6000_get_function_versions_dispatcher): Quote target_clones.
11990
11991 2019-05-20 Jakub Jelinek <jakub@redhat.com>
11992
11993 PR c++/59813
11994 PR target/90418
11995 * function.h (struct function): Add calls_eh_return member.
11996 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
11997 gimplifying __builtin_eh_return call.
11998 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
11999 to cfun.
12000 (expand_call_inline): Or in src_cfun->calls_eh_return into
12001 dst_cfun->calls_eh_return.
12002 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12003 cfun->calls_eh_return.
12004 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12005 * lto-streamer-out.c (output_struct_function_base): Write
12006 calls_eh_return.
12007
12008 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
12009
12010 PR rtl-optimization/43147
12011 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
12012 IX86_BUILTIN_SHUFPD.
12013
12014 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12015
12016 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
12017 (refs_may_alias_p_1): ... here; update stats.
12018 (refs_may_alias_p): Do not update stats here.
12019
12020 2019-05-20 Richard Biener <rguenther@suse.de>
12021
12022 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
12023 doesn't produce pointers.
12024 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
12025 the first operand points to.
12026
12027 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12028
12029 * tree-ssa-alias.c (compare_sizes): New function.
12030 (sompare_type_sizes): New function
12031 (aliasing_component_refs_p): Use it.
12032 (indirect_ref_may_alias_decl_p): Likewise.
12033
12034 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12035
12036 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
12037
12038 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12039
12040 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
12041 (LIBLSAN_EARLY_SPEC): Likewise.
12042 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
12043
12044 2019-05-20 Martin Liska <mliska@suse.cz>
12045
12046 * config/i386/i386.c (ix86_libc_has_fast_function):
12047 Add ATTRIBUTE_UNUSED for the argument.
12048
12049 2019-05-20 Richard Biener <rguenther@suse.de>
12050
12051 * gimple-match-head.c: Include vec-perm-indices.h.
12052 * generic-match-head.c: Likewise.
12053 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
12054 is included.
12055 * fold-const.c (fold_vec_perm): Export.
12056 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
12057 (match.pd): ...here.
12058
12059 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12060
12061 * cfgloop.h (struct loop): Add simdlen member.
12062 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
12063 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
12064 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
12065 as new argument to autovectorize_vector_sizes target hook. If
12066 loop->simdlen, pick up vector size where the vectorization factor
12067 is equal to loop->simd, and if there is none, fall back to the first
12068 successful one.
12069 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
12070 caller.
12071 * omp-low.c (omp_clause_aligned_alignment): Likewise.
12072 * omp-general.c (omp_max_vf): Likewise.
12073 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
12074 * tree-vect-slp.c (vect_slp_bb): Likewise.
12075 * target.def (autovectorize_vector_sizes): Add ALL argument and
12076 document it.
12077 * doc/tm.texi: Adjust documentation.
12078 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12079 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12080 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12081 bool argument.
12082 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12083 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12084 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12085 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12086 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12087 preferred vector size is not 512-bit or 256-bit, just put those
12088 unpreferred ones last.
12089
12090 2019-05-20 Martin Liska <mliska@suse.cz>
12091
12092 * targhooks.c (default_libc_has_fast_function): New function.
12093 * targhooks.h (default_libc_has_fast_function): Likewise.
12094
12095 2019-05-20 Martin Liska <mliska@suse.cz>
12096
12097 PR middle-end/90263
12098 * builtins.c (expand_builtin_memory_copy_args): When having a
12099 target with fast mempcpy implementation do now use memcpy.
12100 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12101 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12102 * doc/tm.texi: Likewise.
12103 * doc/tm.texi.in: Likewise.
12104 * target.def:
12105 * expr.c (emit_block_move_hints): Add 2 new arguments.
12106 * expr.h (emit_block_move_hints): Bail out when libcall
12107 to memcpy would be used.
12108
12109 2019-05-20 Martin Liska <mliska@suse.cz>
12110
12111 * profile-count.c: Add vertical spacing in order
12112 to separate functions.
12113 * profile-count.h: Likewise.
12114
12115 2019-05-20 Martin Liska <mliska@suse.cz>
12116
12117 * profile-count.h: Do not use full qualified
12118 names if possible.
12119 * profile-count.c (profile_count::to_frequency): Likewise.
12120
12121 2019-05-20 Martin Liska <mliska@suse.cz>
12122
12123 * profile-count.h (enum profile_quality): Use capital letters
12124 for enum value names. Use the adjusted names.
12125 * profile-count.c: Use the adjusted names.
12126
12127 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12128
12129 * config/rs6000/constraints.md (define_register_constraint "wH"):
12130 Delete.
12131 (define_register_constraint "wI"): Delete.
12132 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12133 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12134 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12135 (rs6000_init_hard_regno_mode_ok): Adjust.
12136 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12137 resp. "d", or with "wa" as appropriate, all with "p8v".
12138 * config/rs6000/vsx.md: Ditto.
12139 * doc/md.texi (Machine Constraints): Adjust.
12140
12141 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12142
12143 * config/rs6000/constraints.md (define_register_constraint "wy"):
12144 Delete.
12145 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12146 RS6000_CONSTRAINT_wy.
12147 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12148 (rs6000_init_hard_regno_mode_ok): Adjust.
12149 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12150 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12151 (define_mode_attr Fisa): New.
12152 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12153 * doc/md.texi (Machine Constraints): Adjust.
12154
12155 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12156
12157 * config/rs6000/constraints.md (define_register_constraint "wu"):
12158 Delete.
12159 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12160 RS6000_CONSTRAINT_wu.
12161 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12162 (rs6000_init_hard_regno_mode_ok): Adjust.
12163 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12164 both with "p8v".
12165 (define_mode_attr Fa): Delete.
12166 * config/rs6000/vsx.md: Ditto.
12167 * doc/md.texi (Machine Constraints): Adjust.
12168
12169 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12170
12171 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12172 Delete.
12173 (define_register_constraint "wK"): Delete.
12174 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12175 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12176 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12177 (rs6000_init_hard_regno_mode_ok): Adjust.
12178 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12179 Replace "wK" constraint by "wH" with "p9v".
12180 * config/rs6000/vsx.md: Ditto.
12181 * doc/md.texi (Machine Constraints): Adjust.
12182
12183 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12184
12185 * config/rs6000/constraints.md (define_register_constraint "wb"):
12186 Delete.
12187 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12188 RS6000_CONSTRAINT_wb.
12189 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12190 (rs6000_init_hard_regno_mode_ok): Adjust.
12191 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12192 * config/rs6000/vsx.md: Ditto.
12193 * doc/md.texi (Machine Constraints): Adjust.
12194
12195 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12196
12197 * config/rs6000/constraints.md (define_register_constraint "wo"):
12198 Delete.
12199 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12200 RS6000_CONSTRAINT_wo.
12201 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12202 (rs6000_init_hard_regno_mode_ok): Adjust.
12203 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12204 * config/rs6000/altivec.md: Ditto.
12205 * doc/md.texi (Machine Constraints): Adjust.
12206
12207 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12208
12209 * config/darwin-c.c (darwin_register_objc_includes): Do not
12210 prepend the sysroot when building gnu-runtime header search
12211 paths.
12212
12213 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12214
12215 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12216 instead of direct output of the asm.
12217
12218 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12219
12220 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12221 argument to be type bool (was int before).
12222 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12223 at first use. Use type bool for some variables. Fix a theoretical
12224 eh_return bug for svr4.
12225
12226 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12227
12228 * config/rs6000/rs6000.md (isa): New attribute.
12229 (enabled): New attribute.
12230
12231 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12232
12233 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12234 assemble_start_function and assemble_end_function.
12235
12236 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12237
12238 PR middle-end/89433
12239 * omp-general.c (oacc_verify_routine_clauses): Change formal
12240 parameters. Add checking if already marked with an OpenACC
12241 'routine' directive. Adjust all users.
12242
12243 PR middle-end/89433
12244 * omp-general.c (oacc_build_routine_dims): Move some of its
12245 processing into...
12246 (oacc_verify_routine_clauses): ... this new function.
12247 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12248
12249 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12250
12251 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12252 formating of picbase labels to match other ports.
12253
12254 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12255
12256 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12257 in the generated code.
12258
12259 2019-05-16 Martin Sebor <msebor@redhat.com>
12260
12261 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12262 identifiers, keywords, operators, and types in diagnostics. Correct
12263 quoting, spelling, and sentence capitalization issues.
12264 (expand_builtin_atomic_is_lock_free): Same.
12265 (fold_builtin_next_arg): Same.
12266 * cfgexpand.c (expand_one_var): Same.
12267 (tree_conflicts_with_clobbers_p): Same.
12268 (expand_asm_stmt): Same.
12269 (verify_loop_structure): Same.
12270 * cgraphunit.c (process_function_and_variable_attributes): Same.
12271 * collect-utils.c (collect_execute): Same.
12272 * collect2.c (maybe_run_lto_and_relink): Same.
12273 (is_lto_object_file): Same.
12274 (scan_prog_file): Same.
12275 * convert.c (convert_to_real_1): Same.
12276 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12277 * except.c (verify_eh_tree): Same.
12278 * gcc.c (execute): Same.
12279 (eval_spec_function): Same.
12280 (run_attempt): Same.
12281 (driver::set_up_specs): Same.
12282 (compare_debug_auxbase_opt_spec_function): Same.
12283 * gcov-tool.c (unlink_gcda_file): Same.
12284 (do_merge): Same.
12285 (do_rewrite): Same.
12286 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12287 * gimplify.c (gimplify_asm_expr): Same.
12288 (gimplify_adjust_omp_clauses): Same.
12289 * hsa-gen.c (gen_hsa_addr_insns): Same.
12290 (gen_hsa_insns_for_load): Same.
12291 (gen_hsa_cmp_insn_from_gimple): Same.
12292 (gen_hsa_insns_for_operation_assignment): Same.
12293 (gen_get_level): Same.
12294 (gen_hsa_alloca): Same.
12295 (omp_simple_builtin::generate): Same.
12296 (gen_hsa_atomic_for_builtin): Same.
12297 (gen_hsa_insns_for_call): Same.
12298 * input.c (dump_location_info): Same.
12299 * ipa-devirt.c (compare_virtual_tables): Same.
12300 * ira.c (ira_setup_eliminable_regset): Same.
12301 * lra-assigns.c (lra_assign): Same.
12302 * lra-constraints.c (lra_constraints): Same.
12303 * lto-streamer-in.c (lto_input_mode_table): Same.
12304 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12305 (merge_and_complain): Same.
12306 (compile_offload_image): Same.
12307 (compile_images_for_offload_targets): Same.
12308 (debug_objcopy): Same.
12309 (run_gcc): Same.
12310 (main): Same.
12311 * opts.c (print_specific_help): Same.
12312 (parse_no_sanitize_attribute): Same.
12313 (print_help): Same.
12314 (handle_param): Same.
12315 * plugin.c (add_new_plugin): Same.
12316 (parse_plugin_arg_opt): Same.
12317 (try_init_one_plugin): Same.
12318 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12319 operators, and types in diagnostics. Correct quoting and spelling
12320 issues.
12321 * read-rtl-function.c (parse_edge_flag_token): Same.
12322 (function_reader::parse_enum_value): Same.
12323 * reg-stack.c (check_asm_stack_operands): Same.
12324 * regcprop.c (validate_value_data): Same.
12325 * sched-rgn.c (make_pass_sched_fusion): Same.
12326 * stmt.c (check_unique_operand_names): Same.
12327 * targhooks.c (default_target_option_pragma_parse): Same.
12328 * tlink.c (recompile_files): Same.
12329 * toplev.c (process_options): Same.
12330 (do_compile): Same.
12331 * trans-mem.c (diagnose_tm_1): Same.
12332 (ipa_tm_scan_irr_block): Same.
12333 (ipa_tm_diagnose_transaction): Same.
12334 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12335 format a tree code name in a diagnostic.
12336 (verify_types_in_gimple_min_lval): Same.
12337 (verify_types_in_gimple_reference): Same.
12338 (verify_gimple_call): Same.
12339 (verify_gimple_assign_unary): Same.
12340 (verify_gimple_assign_binary): Same.
12341 (verify_gimple_assign_ternary): Same.
12342 (verify_gimple_assign_single): Same.
12343 (verify_gimple_switch): Same.
12344 (verify_gimple_label): Same.
12345 (verify_gimple_phi): Same.
12346 (verify_gimple_in_seq): Same.
12347 (verify_eh_throw_stmt_node): Same.
12348 (collect_subblocks): Same.
12349 (gimple_verify_flow_info): Same.
12350 (do_warn_unused_result): Same.
12351 * tree-inline.c (expand_call_inline): Same.
12352 * tree-into-ssa.c (update_ssa): Same.
12353 * tree.c (tree_int_cst_elt_check_failed): Same.
12354 (tree_vec_elt_check_failed): Same.
12355 (omp_clause_operand_check_failed): Same.
12356 (verify_type_variant): Same.
12357 (verify_type): Same.
12358 * value-prof.c (verify_histograms): Same.
12359 * varasm.c (assemble_start_function): Same.
12360
12361 2019-05-16 Martin Sebor <msebor@redhat.com>
12362
12363 * config/i386/i386-expand.c (get_element_number): Quote keywords
12364 and other internal names in diagnostics. Adjust other diagnostic
12365 formatting issues noted by -Wformat-diag.
12366 * config/i386/i386-features.c
12367 (ix86_mangle_function_version_assembler_name): Same.
12368 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12369 * config/i386/i386.c (ix86_function_type_abi): Same.
12370 (ix86_function_ms_hook_prologue): Same.
12371 (classify_argument): Same.
12372 (ix86_expand_prologue): Same.
12373 (ix86_md_asm_adjust): Same.
12374 (ix86_memmodel_check): Same.
12375
12376 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12377
12378 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12379 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12380 and fpxx modes.
12381
12382 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12383
12384 PR target/90497
12385 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12386 intrinsics without SSE/SSE2/SSSE3.
12387 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12388 check.
12389 (*mmx_uavgv8qi3): Likewise.
12390
12391 2019-05-17 Richard Biener <rguenther@suse.de>
12392
12393 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12394 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12395
12396 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12397
12398 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12399 vec_sldw insn pattern.
12400
12401 2019-05-17 Richard Biener <rguenther@suse.de>
12402
12403 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12404
12405 2019-05-17 Martin Liska <mliska@suse.cz>
12406
12407 PR driver/90496
12408 * toplev.c (output_stack_usage): With LTO and sanitizer it
12409 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12410 has no file location.
12411
12412 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12413
12414 PR c++/90484
12415 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12416 sz0 is equal to sz1, instead return false in that case.
12417
12418 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12419 has non-constant expression, force sctx.lane and use two
12420 argument IFN_GOMP_SIMD_LANE instead of single argument.
12421 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12422 two argument IFN_GOMP_SIMD_LANE without lhs.
12423 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12424 member.
12425 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12426 Define.
12427 (LOOP_REQUIRES_VERSIONING): Or in
12428 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12429 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12430 simd_if_cond.
12431 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12432 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12433 from simd if clause if needed.
12434
12435 2019-05-16 Richard Biener <rguenther@suse.de>
12436
12437 * tree-affine.c (expr_to_aff_combination): New function split
12438 out from...
12439 (tree_to_aff_combination): ... here.
12440 (aff_combination_expand): Avoid building a GENERIC tree.
12441
12442 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12443
12444 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12445 assemble_start_function and assemble_end_function calls.
12446 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12447 assemble_start_function and assemble_end_function.
12448 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12449 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12450 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12451 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12452 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12453 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12454 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12455 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12456 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12457 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12458 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12459 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12460 Likewise.
12461 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12462 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12463 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12464 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12465 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12466 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12467 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12468 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12469 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12470 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12471 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12472 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12473 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12474 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12475 Likewise.
12476 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12477 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12478 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12479
12480 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12481
12482 * tree-ssa-alias.c (alias_stats): Add
12483 aliasing_component_refs_p_may_alias and
12484 aliasing_component_refs_p_no_alias.
12485 (dump_alias_stats): Print aliasing_component_refs_p stats.
12486 (aliasing_component_refs_p): Update stats.
12487
12488 2019-05-16 Martin Liska <mliska@suse.cz>
12489
12490 PR lto/90500
12491 * multiple_target.c (expand_target_clones): Do not allow
12492 target_clones being used with a symbol that is an alias.
12493
12494 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12495
12496 PR tree-optimization/90394
12497 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12498 positives rather than ICE for cases where (code2 == NE_EXPR
12499 && code1 == BIT_AND_EXPR).
12500
12501 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12502
12503 PR fortran/90329
12504 * tree-core.h (struct tree_decl_common): Document
12505 decl_nonshareable_flag for PARM_DECLs.
12506 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12507 * calls.c (expand_call): Don't try tail call if caller
12508 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12509 passed on the stack and callee needs to pass any arguments on the
12510 stack.
12511 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12512 else if instead of series of mutually exclusive ifs. Handle
12513 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12514 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12515
12516 * lto-streamer.h (LTO_major_version): Bump to 9.
12517
12518 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12519
12520 PR tree-optimization/90106
12521 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12522 new parameter as new internal function call, also move it to new
12523 basic block.
12524 (use_internal_fn): Pass internal function call to
12525 shrink_wrap_one_built_in_call_with_conds.
12526
12527 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12528
12529 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12530 max_vf to 1.
12531 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12532 safelen_int and set loop->dont_vectorize.
12533
12534 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12535
12536 PR target/89021
12537 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12538 SSE/SSE2/SSSE3.
12539 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12540 Likewise.
12541 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12542 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12543 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12544 is defined.
12545
12546 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12547
12548 PR target/89021
12549 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12550 define_insn_and_split to support SSE emulation.
12551 (*vec_extractv2sf_0): Likewise.
12552 (*vec_extractv2sf_1): Likewise.
12553 (*vec_extractv2si_0): Likewise.
12554 (*vec_extractv2si_1): Likewise.
12555 (*vec_extractv2si_zext_mem): Likewise.
12556 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12557 (vec_extractv2sf_1 splitter): Likewise.
12558 (vec_extractv2sfsf): Likewise.
12559 (vec_setv2si): Likewise.
12560 (vec_extractv2si_1 splitter): Likewise.
12561 (vec_extractv2sisi): Likewise.
12562 (vec_setv4hi): Likewise.
12563 (vec_extractv4hihi): Likewise.
12564 (vec_setv8qi): Likewise.
12565 (vec_extractv8qiqi): Likewise.
12566 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12567 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12568 (vec_extractv2sisi): Likewise.
12569 (vec_extractv4hihi): Likewise.
12570 (vec_extractv8qiqi): Likewise.
12571 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12572 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12573 (vec_initv2sisi): Likewise.
12574 (vec_initv4hihi): Likewise.
12575 (vec_initv8qiqi): Likewise.
12576 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12577 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12578 (vec_setv4hi): Likewise.
12579 (vec_setv8qi): Likewise.
12580
12581 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12582
12583 PR target/89021
12584 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12585 TARGET_MMX_WITH_SSE.
12586 (MMXMODE:*mov<mode>_internal): Likewise.
12587 (MMXMODE:movmisalign<mode>): Likewise.
12588
12589 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12590
12591 PR target/89021
12592 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12593 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12594 (sse2_cvtpd2pi): Ditto.
12595 (sse2_cvttpd2pi): Ditto.
12596 (*vec_concatv2sf_sse4_1): Ditto.
12597 (*vec_concatv2sf_sse): Ditto.
12598 (*vec_concatv2si_sse4_1): Ditto.
12599 (*vec_concatv2si): Ditto.
12600 (*vec_concatv4si_0): Ditto.
12601 (*vec_concatv2di_0): Ditto.
12602
12603 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12604
12605 PR target/89021
12606 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12607
12608 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12609
12610 PR target/89021
12611 * config/i386/sse.md (ssse3_palignrdi): Changed to
12612 define_insn_and_split to support SSE emulation.
12613
12614 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12615
12616 PR target/89021
12617 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12618
12619 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12620
12621 PR target/89021
12622 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12623 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12624 SSE emulation.
12625
12626 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12627
12628 PR target/89021
12629 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12630 or TARGET_MMX_WITH_SSE.
12631 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12632
12633 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12634
12635 PR target/89021
12636 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12637
12638 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12639
12640 PR target/89021
12641 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12642 Changed to define_insn_and_split to support SSE emulation.
12643
12644 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12645
12646 PR target/89021
12647 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12648 Changed to define_insn_and_split to support SSE emulation.
12649
12650 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12651
12652 PR target/89021
12653 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12654 (*mmx_<emms>): This.
12655 (mmx_<emms>): New expander.
12656
12657 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12658
12659 PR target/89021
12660 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12661 support.
12662 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12663
12664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12665
12666 PR target/89021
12667 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12668
12669 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12670
12671 PR target/89021
12672 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12673
12674 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12675
12676 PR target/89021
12677 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12678 TARGET_MMX_WITH_SSE.
12679 (*mmx_uavgv4hi3): Add SSE emulation.
12680
12681 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12682
12683 PR target/89021
12684 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12685 and TARGET_MMX_WITH_SSE.
12686 (*mmx_uavgv8qi3): Add SSE emulation.
12687
12688 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12689
12690 PR target/89021
12691 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12692 maskmovdqu for __MMX_WITH_SSE__.
12693
12694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12695
12696 PR target/89021
12697 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12698 TARGET_MMX and TARGET_MMX_WITH_SSE.
12699 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12700
12701 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12702
12703 PR target/89021
12704 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12705 define_insn_and_split to support SSE emulation.
12706
12707 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12708
12709 PR target/89021
12710 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12711 and TARGET_MMX_WITH_SSE.
12712 (mmx_<code>v8qi3): Likewise.
12713 (smaxmin:<code>v4hi3): New.
12714 (umaxmin:<code>v8qi3): Likewise.
12715 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12716 (umaxmin:*mmx_<code>v8qi3): Likewise.
12717
12718 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12719
12720 PR target/89021
12721 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12722 TARGET_MMX_WITH_SSE.
12723 (*mmx_pinsrw): Add SSE emulation.
12724
12725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12726
12727 PR target/89021
12728 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12729
12730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12731
12732 PR target/89021
12733 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12734 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12735 SSE emulation.
12736
12737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12738
12739 PR target/89021
12740 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12741 (sse_cvttps2pi): Likewise.
12742
12743 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12744
12745 PR target/89021
12746 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12747 TARGET_MMX_WITH_SSE.
12748 (mmx_pshufw_1): Add SSE emulation.
12749 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12750 TARGET_MMX_WITH_SSE to support SSE emulation.
12751
12752 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12753
12754 PR target/89021
12755 * config/i386/constraints.md (Yw): New constraint.
12756 * config/i386/mmx.md (*vec_dupv2si): Changed to
12757 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12758 support SSE emulation.
12759
12760 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12761
12762 PR target/89021
12763 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12764 TARGET_MMX_WITH_SSE.
12765 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12766 support.
12767 (mmx_gt<mode>3): Likewise.
12768
12769 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12770
12771 PR target/89021
12772 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12773 TARGET_MMX_WITH_SSE. Add SSE support.
12774
12775 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12776
12777 PR target/89021
12778 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12779 TARGET_MMX_WITH_SSE.
12780 (any_logic:<code><mode>3): New.
12781 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12782 Add SSE support.
12783
12784 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12785
12786 PR target/89021
12787 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12788 TARGET_MMX_WITH_SSE. Add SSE emulation.
12789 (mmx_<shift_insn><mode>3): Likewise.
12790 (ashr<mode>3): New.
12791 (<shift_insn><mode>3): Likewise.
12792
12793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12794
12795 PR target/89021
12796 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12797 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12798
12799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12800
12801 PR target/89021
12802 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12803 TARGET_MMX_WITH_SSE.
12804 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12805 SSE support.
12806
12807 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12808
12809 PR target/89021
12810 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12811 TARGET_MMX_WITH_SSE.
12812 (mulv4hi3): New.
12813 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12814 support.
12815
12816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12817
12818 PR target/89021
12819 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12820 (plusminus:mmx_<plusminus_insn><mode>3): Check
12821 TARGET_MMX_WITH_SSE.
12822 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12823 (<plusminus_insn><mode>3): New.
12824 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12825 (*mmx_<plusminus_insn><mode>3): Likewise.
12826
12827 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12828
12829 PR target/89021
12830 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12831 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12832 prototype.
12833 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12834 define_insn_and_split to support SSE emulation.
12835 (mmx_punpcklbw): Likewise.
12836 (mmx_punpckhwd): Likewise.
12837 (mmx_punpcklwd): Likewise.
12838 (mmx_punpckhdq): Likewise.
12839 (mmx_punpckldq): Likewise.
12840
12841 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12842 Uros Bizjak <ubizjak@gmail.com>
12843
12844 PR target/89021
12845 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12846 New function.
12847 (ix86_split_mmx_pack): Likewise.
12848 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12849 New prototype.
12850 (ix86_split_mmx_pack): Likewise.
12851 * config/i386/i386.md (mmx_isa): New.
12852 (enabled): Also check mmx_isa.
12853 * config/i386/mmx.md (any_s_truncate): New code iterator.
12854 (s_trunsuffix): New code attr.
12855 (mmx_packsswb): Removed.
12856 (mmx_packssdw): Likewise.
12857 (mmx_packuswb): Likewise.
12858 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12859 MMX packsswb/packuswb with SSE2.
12860 (mmx_packssdw): Likewise.
12861 * config/i386/predicates.md (register_mmxmem_operand): New.
12862
12863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12864
12865 PR target/89021
12866 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12867 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12868 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12869 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12870 (ix86_vector_mode_supported_p): Likewise.
12871 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12872
12873 2019-05-15 Martin Liska <mliska@suse.cz>
12874
12875 PR middle-end/90478
12876 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12877 Check for overflow.
12878
12879 2019-05-15 Richard Biener <rguenther@suse.de>
12880
12881 * tree-into-ssa.c (pass_build_ssa::execute): Run
12882 update_address_taken before going into SSA.
12883
12884 2019-05-15 Richard Biener <rguenther@suse.de>
12885
12886 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12887 as __BIT_FIELD_REF with type with -gimple.
12888
12889 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12890
12891 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12892 semantically equivalent branches (left over after prior refactorings).
12893
12894 2019-05-15 Richard Biener <rguenther@suse.de>
12895
12896 PR tree-optimization/88828
12897 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12898 bogus check.
12899
12900 2019-05-14 Richard Biener <rguenther@suse.de>
12901
12902 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12903 as __VIEW_CONVERT with -gimple.
12904
12905 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12906
12907 PR target/82920
12908 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12909 Darwin.
12910
12911 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12912
12913 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12914 define_split to become a define_insn_and_split.
12915
12916 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12917
12918 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12919 arguments.
12920 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12921 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12922 (sibcall_epilogue): Adjust.
12923 (epilogue): Adjust.
12924
12925 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12926
12927 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12928 to unsupported ones.
12929 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12930 * config.host: Likewise.
12931 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12932 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12933 __svr4__]: Remove "brand" fallback.
12934 [!KSTAT_DATA_STRING]: Remove.
12935 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12936 to *-*-solaris2*.
12937 (comdat_group): Likewise.
12938 (set_have_as_tls): Likewise.
12939 (gcc_cv_target_dl_iterate_phdr): Likewise.
12940 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12941 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12942 * configure: Regenerate.
12943 * doc/install.texi: Simplify Solaris target triplets.
12944 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
12945 (Specific, *-*-solaris2*): Document Solaris 10 removal.
12946 Remove Solaris 10 references.
12947 Remove obsolete Solaris bug reference.
12948 (Specific, sparc-sun-solaris2.10): Remove.
12949
12950 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
12951
12952 * config/i386/i386.md (any_div): New code iterator.
12953 (paired_mod): New code attribute.
12954 (sgnprefix): Handle DIV and UDIV RTXes.
12955 (u): Ditto.
12956 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
12957 and udivmod<mode>4 patterns using any_div code iterator.
12958 (divmod splitters): Macroize splitters using any_div code iterator.
12959 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
12960 (*udivmodsi4_pow2_zext_2): Ditto.
12961 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
12962 and *udivmod<mode>4_noext patterns using any_div code iterator.
12963 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
12964 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
12965 patterns using any_div code iterator.
12966 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
12967 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
12968 patterns using any_div code iterator.
12969 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
12970 udivmodhiqi3 patterns using any_extend code iterator.
12971
12972 2019-05-14 Richard Biener <rguenther@suse.de>
12973 H.J. Lu <hongjiu.lu@intel.com>
12974
12975 PR tree-optimization/88828
12976 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
12977 permuting in a single non-constant element not extracted
12978 from a vector.
12979
12980 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
12981
12982 * internal-fn.def (SIGNBIT): New.
12983 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
12984 defined.
12985 (signbitv4sf2): Likewise.
12986
12987 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
12988
12989 PR target/90357
12990 * config/mips/mips.c (mips_split_move): Skip forward SRC into
12991 next insn when the SRC reg is dead.
12992
12993 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
12994
12995 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
12996 (alloc_cand_and_find_basis): Ditto.
12997 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
12998 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
12999 (create_add_imm_cand, slsr_process_cast): Ditto.
13000 (slsr_process_copy, replace_mult_candidate): Ditto.
13001 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13002 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13003 (pass_strength_reduction::execute): Init the first NULL element.
13004
13005 2019-05-13 Nathan Sidwell <nathan@acm.org>
13006
13007 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13008 (run_attempt): Reformat line break.
13009
13010 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
13011
13012 PR target/90418
13013 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
13014 data registers in sibcall epilogues.
13015 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13016
13017 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
13018
13019 PR target/89221
13020 * configure.ac (--enable-frame-pointer):
13021 Disable by default for cygwin and mingw.
13022 * configure: Regenerate.
13023
13024 2019-05-13 Nathan Sidwell <nathan@acm.org>
13025
13026 * dwarf2out.c (breakout_comdat_types): Move comment to correct
13027 piece of code.
13028 (const_ok_for_output_1): Balance parens around #if/#else/#endif
13029 (gen_member_die): Move abstract origin check earlier. Only VARs
13030 can be static_inline_p. Simplify splicing control flow.
13031
13032 2019-05-13 Richard Biener <rguenther@suse.de>
13033
13034 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
13035 VIEW_CONVERT_EXPR.
13036 (vect_build_slp_tree_1): Likewise.
13037
13038 2019-05-13 Richard Biener <rguenther@suse.de>
13039
13040 PR tree-optimization/90402
13041 * tree-if-conv.c (tree_if_conversion): Value number only
13042 the loop body by making the latch an exit of the region
13043 as well.
13044 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
13045 processing PHIs.
13046 (do_rpo_vn): Deal with multiple edges into the entry block
13047 that are not backedges inside the region by skipping PHIs
13048 of the entry block.
13049
13050 2019-05-13 Richard Biener <rguenther@suse.de>
13051
13052 PR tree-optimization/90316
13053 * tree-ssa-pre.c (insert_aux): Fold into ...
13054 (insert): ... this function. Use a RPO walk to reduce the
13055 number of required iterations.
13056
13057 2019-05-13 Martin Liska <mliska@suse.cz>
13058
13059 PR tree-optimization/90416
13060 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
13061 string instead of passing the second part as va_arg argument.
13062
13063 2019-05-13 Martin Liska <mliska@suse.cz>
13064
13065 PR gcov-profile/90380
13066 * gcov.c (handle_cycle): Do not support zero cycle count,
13067 it should not be possible.
13068 (path_contains_zero_cycle_arc): New function.
13069 (circuit): Ignore zero cycle arc counts.
13070
13071 2019-05-13 Martin Liska <mliska@suse.cz>
13072
13073 PR gcov-profile/90380
13074 * gcov.c (enum loop_type): Remove the enum and
13075 the operator.
13076 (handle_cycle): Assert that we should not reach
13077 a negative count.
13078 (circuit): Use loop_found instead of a tri-state loop_type.
13079 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13080 happen.
13081
13082 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13083
13084 PR target/82920
13085 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13086 (ix86_output_indirect_branch_via_reg): Use output mechanism
13087 accounting for __USER_LABEL_PREFIX__.
13088 (ix86_output_indirect_branch_via_push): Likewise.
13089 (ix86_output_function_return): Likewise.
13090 (ix86_output_indirect_function_return): Likewise.
13091
13092 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13093
13094 * doc/md.texi: Document use of code attributes in rtx patterns.
13095 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13096 * read-rtl.c (find_code): Split out search loops into...
13097 (maybe_find_code): ...this new function.
13098 (check_code_iterator): Make the error message more informative.
13099 (check_code_attribute): New function.
13100 (rtx_reader::rtx_alloc_for_name): Likewise.
13101 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13102 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13103 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13104 <max_opp> directly as an rtx code instead of via a match_operator.
13105 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13106 (<su>abd<mode>_3): Update accordingly.
13107
13108 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13109
13110 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13111 is given, print the state of the EH "save world" computation for
13112 Darwin.
13113
13114 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13115
13116 PR c++/59813
13117 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13118 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13119
13120 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13121
13122 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13123 Use pinsrd for TARGET_SSE4_1.
13124 * config/i386/sse.md (movdi_to_sse): Ditto.
13125
13126 2019-05-10 Richard Biener <rguenther@suse.de>
13127
13128 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13129 (do_rpo_vn): Initialize next_value_id.
13130
13131 2019-05-10 Martin Liska <mliska@suse.cz>
13132
13133 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13134 Fix plural form.
13135
13136 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13137
13138 PR tree-optimization/90385
13139 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13140 arguments of the exit phis.
13141
13142 PR c++/90383
13143 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13144 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13145 id->do_not_fold.
13146 (copy_tree_body_r): Likewise.
13147 (copy_fn): Set id.do_not_fold to true.
13148
13149 2019-05-10 Martin Liska <mliska@suse.cz>
13150
13151 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13152 Reapply changes from r269790.
13153
13154 2019-05-10 Martin Liska <mliska@suse.cz>
13155
13156 PR middle-end/90340
13157 * doc/invoke.texi: New params.
13158 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13159 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13160 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13161 Use it.
13162 * tree-switch-conversion.h (struct jump_table_cluster):
13163 Likewise.
13164
13165 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13166
13167 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13168
13169 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13170
13171 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13172
13173 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13174
13175 PR rtl-optimization/88879
13176 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13177
13178 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13179
13180 PR target/90405
13181 * config/arm/arm.c (callee_saved_reg_p): Move before
13182 thumb_find_work_register.
13183 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13184 thumb_find_work_register. Only call df_get_live_out once.
13185 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13186 (thumb_find_work_register): Use
13187 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13188 algorithms to locate a spare call clobbered reg.
13189
13190 2019-05-09 Martin Liska <mliska@suse.cz>
13191
13192 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13193 and MAX_EXPR in GIMPLE FE format.
13194
13195 2019-05-09 Martin Liska <mliska@suse.cz>
13196
13197 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13198 * gimple-pretty-print.c (dump_gimple_bb_header):
13199 Dump BB count.
13200 (pp_cfg_jump): Dump edge probability.
13201 * profile-count.c (profile_quality_as_string): Simplify
13202 with a static array.
13203 (parse_profile_quality): New function.
13204 (profile_count::dump): Simplify with a static array.
13205 (profile_count::from_gcov_type): Add new argument.
13206 * profile-count.h (parse_profile_quality): Likewise.
13207 * predict.h (set_hot_bb_threshold): New.
13208 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13209 New param.
13210 * predict.c (get_hot_bb_threshold): Set from the new param.
13211 (set_hot_bb_threshold): New.
13212
13213 2019-05-09 Richard Biener <rguenther@suse.de>
13214
13215 PR tree-optimization/90395
13216 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13217 rewrite vector stores that throw internally.
13218
13219 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13220
13221 * cif-code.def (CHKP): Remove.
13222
13223 PR target/89221
13224 * configure.ac (--enable-frame-pointer): Disable by default for
13225 GNU systems.
13226 * configure: Regenerate.
13227
13228 2019-05-09 Alan Modra <amodra@gmail.com>
13229
13230 PR target/89271
13231 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13232 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13233 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13234 cost for general <-> vsx when direct moves are available.
13235 Cost union classes at minimal cost for any reg in the class.
13236 Correct calculation for moves between vsx, float, and altivec.
13237 Don't return a low cost for moves between special regs. Don't
13238 use hard coded register numbers.
13239 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13240 (rs6000_ira_change_pseudo_allocno_class): New function.
13241 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13242 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13243 alternatives.
13244 (movsi_internal1): Don't disparage vector alternatives.
13245 (mov<mode>_internal): Likewise, excepting alternative that
13246 will be split.
13247 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13248 we <- b alternative.
13249
13250 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13251
13252 PR c++/59813
13253 PR tree-optimization/89060
13254 * tree-ssa-live.h (live_vars_map): New typedef.
13255 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13256 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13257 (struct compute_live_vars_data): New type.
13258 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13259 live_vars_at_stmt, destroy_live_vars): New functions.
13260 * tree-tailcall.c: Include tree-ssa-live.h.
13261 (live_vars, live_vars_vec): New global variables.
13262 (find_tail_calls): Perform variable life analysis before punting.
13263 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13264 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13265 member.
13266 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13267 Perform variable life analysis to select variables that really need
13268 clobbers added.
13269 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13270 instead set id->eh_landing_pad_dest and assert it is the same.
13271 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13272
13273 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13274 Richard Earnshaw <rearnsha@arm.com>
13275
13276 PR target/88167
13277 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13278 function.
13279 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13280 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13281 register if both the epilogue and prologue can use call-clobbered
13282 regs.
13283 (thumb1_unexpanded_epilogue): Use
13284 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13285 picking temporaries for restoring high regs to match that of the
13286 prologue where possible.
13287 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13288 the list of work registers. Detect if the return address is still live
13289 at the end of the prologue and avoid using it for a work register if so.
13290 If the return address is not live, add LR to the list of pushable regs
13291 after the first pass.
13292
13293 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13294
13295 PR tree-optimization/90078
13296 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13297 (INFTY): Increase the value for infinite cost.
13298 (struct comp_cost): Promote type of members to int64_t.
13299 (infinite_cost): Don't set complexity in initialization.
13300 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13301 overflows to infinite_cost.
13302 (adjust_setup_cost): Promote type of parameter and cost computation
13303 to int64_t.
13304 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13305 int64_t.
13306 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13307 cost computation to int64_t.
13308 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13309 int64_t's format specifier in dump.
13310
13311 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13312
13313 PR tree-optimization/90240
13314 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13315 with respect to scaling factor pre-computed for each basic block.
13316 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13317 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13318 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13319 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13320 live range for array of loop's basic blocks. Cleanup aux field of
13321 loop's basic blocks.
13322
13323 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13324
13325 PR tree-optimization/90356
13326 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13327
13328 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13329
13330 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13331 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13332 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13333 (ix86_handle_option): Handle -mavx512bf16.
13334 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13335 to extra_headers.
13336 * config/i386/avx512bf16vlintrin.h: New.
13337 * config/i386/avx512bf16intrin.h: New.
13338 * config/i386/cpuid.h (bit_AVX512BF16): New.
13339 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13340 * config/i386/i386-builtin-types.def: Add new types.
13341 * config/i386/i386-builtin.def: Add new builtins.
13342 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13343 __AVX512BF16__.
13344 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13345 (ix86_option_override_internal): Handle BF16.
13346 (ix86_valid_target_attribute_inner_p): Ditto.
13347 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13348 * config/i386/i386-builtin.c (enum processor_features): Add
13349 F_AVX512BF16.
13350 (static const _isa_names_table isa_names_table): Ditto.
13351 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13352 (PTA_AVX512BF16): Ditto.
13353 * config/i386/i386.opt: Add -mavx512bf16.
13354 * config/i386/immintrin.h: Include avx512bf16intrin.h
13355 and avx512bf16vlintrin.h.
13356 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13357 avx512f_cvtneps2bf16_<mode><mask_name>,
13358 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13359 * config/i386/subst.md (mask_half): Add new subst.
13360 * doc/invoke.texi: Document -mavx512bf16.
13361
13362 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13363
13364 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13365 Delete declaration.
13366 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13367 (rs6000_debug_legitimize_reload_address): Delete.
13368 (rs6000_legitimize_reload_address_ptr): Delete.
13369 (rs6000_option_override_internal): Adjust.
13370 (mem_operand_gpr): Adjust comment.
13371 (legitimate_lo_sum_address_p): Ditto.
13372 (rs6000_legitimize_reload_address): Delete.
13373 (rs6000_debug_legitimize_reload_address): Delete.
13374 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13375
13376 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13377
13378 PR target/89765
13379 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13380 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13381 to compute vector element selector for both constant and variable
13382 operands.
13383
13384 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13385
13386 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13387 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13388 ashrdi3_cvt using SWI48 mode iterator.
13389
13390 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13391
13392 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13393 (aarch64_<su>abd<mode>_3): Likewise.
13394 (*aarch64_<su>abd<mode>_3): New define_insn.
13395 (<sur>sad<vsi2qi>): New define_expand.
13396 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13397 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13398 (build_vect_cond_expr): Likewise.
13399
13400 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13401
13402 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13403 clobbers outside of accessible_reg_set.
13404 * config/i386/i386.c (ix86_conditional_register_usage):
13405 Disable register sets by clearing corresponding bits in
13406 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13407 call_used_regs and don't clear corresponding reg_names array members.
13408
13409 2019-05-07 Richard Biener <rguenther@suse.de>
13410
13411 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13412 not specified still compute a comp_vectype for invariant
13413 compares.
13414
13415 2019-05-07 Richard Biener <rguenther@suse.de>
13416
13417 PR tree-optimization/90316
13418 * tree-ssa-pre.c (translate_vuse_through_block): When
13419 same_valid is NULL do not bother to search for a virtual
13420 PHI continuation.
13421 (phi_translate_1): When operands changed we cannot keep
13422 the same value-number so do not bother to ask whether
13423 that's possible from translate_vuse_through_block.
13424
13425 2019-05-07 Martin Liska <mliska@suse.cz>
13426
13427 * bitmap.c (bitmap_register): Come up with
13428 alloc_descriptor_max_uid and assign it for
13429 a new bitmap.
13430 (register_overhead): Use get_descriptor as
13431 a descriptor.
13432 (release_overhead): New.
13433 (bitmap_elem_to_freelist): Call it.
13434 (bitmap_elt_clear_from): Likewise.
13435 (bitmap_obstack_free): Likewise.
13436 (bitmap_move): Sensitively release memory.
13437 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13438 (bitmap_initialize): Initialize alloc_descriptor to zero.
13439 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13440
13441 2019-05-07 Richard Biener <rguenther@suse.de>
13442
13443 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13444 we build a SLP node. Remove max_size and limiting.
13445 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13446
13447 2019-05-07 Richard Biener <rguenther@suse.de>
13448
13449 PR tree-optimization/90316
13450 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13451 limit by reference.
13452 (walk_non_aliased_vuses): Take walking limit argument.
13453 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13454 walking if it is reached instead of just counting.
13455 (get_continuation_for_phi): Likewise.
13456 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13457 limiting to the callback.
13458 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13459 (vn_reference_lookup_3): Likewise.
13460 (vn_reference_lookup_pieces): Likewise.
13461 (vn_reference_lookup): Likewise.
13462 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13463 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13464 (avail_exprs_stack::lookup_avail_expr): Likewise.
13465
13466 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13467
13468 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13469 for comparaible types in the second direction even if first one
13470 hits incomparable type.
13471
13472 2019-05-07 Richard Biener <rguenther@suse.de>
13473
13474 PR lto/90369
13475 * lto-wrapper.c (debug_objcopy): Use the original filename
13476 including archive offset for the filename used for -save-temps.
13477
13478 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13479
13480 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13481 detection.
13482
13483 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13484 Hongtao Liu <hongtao.liu@intel.com>
13485
13486 PR target/89750
13487 PR target/86444
13488 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13489 Modified, original implementation isn't correct.
13490
13491 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13492
13493 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13494 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13495 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13496 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13497 (FRAME_POINTER_REGNUM): Change numbering.
13498 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13499 (alt_reg_names): Adjust.
13500 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13501 fixed.
13502 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13503 (DWARF_FRAME_REGISTERS): Delete.
13504 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13505 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13506 Adjust.
13507 (REG_ALLOC_ORDER): Adjust.
13508 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13509 (REG_CLASS_CONTENTS): Adjust.
13510 (RETURN_ADDR_RTX): Change comment.
13511 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13512 instead of 67.
13513 (REGISTER_NAMES): Adjust.
13514 (ADDITIONAL_REGISTER_NAMES): Adjust.
13515 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13516
13517 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13518
13519 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13520 Delete.
13521 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13522 (DWARF_FRAME_REGISTERS): Adjust.
13523 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13524 Adjust.
13525 (REG_ALLOC_ORDER): Adjust.
13526 (enum reg_class): Delete SPR_REGS.
13527 (REG_CLASS_NAMES): Delete SPR_REGS.
13528 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13529 (REGISTER_NAMES): Adjust.
13530 (ADDITIONAL_REGISTER_NAMES): Adjust.
13531 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13532 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13533 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13534 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13535 (htm_spr_regno): Delete.
13536 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13537 argument.
13538 (rs6000_dbx_register_number): Adjust.
13539
13540 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13541
13542 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13543
13544 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13545
13546 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13547 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13548
13549 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13550
13551 PR tree-optimization/88709
13552 PR tree-optimization/90271
13553 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13554 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13555 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13556 variable.
13557 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13558 of the store merging group is larger than
13559 PARAM_STORE_MERGING_MAX_SIZE parameter.
13560 (split_group): Add bzero_first argument. If set, always emit first
13561 the first store which must be = {} of the whole area and then for the
13562 rest of the stores consider all zero bytes as paddings.
13563 (imm_store_chain_info::output_merged_store): Check if first store
13564 is = {} of the whole area and if yes, determine which setting of
13565 bzero_first for split_group gives smaller number of stores. Adjust
13566 split_group callers.
13567 (lhs_valid_for_store_merging_p): Allow decls.
13568 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13569 no elts.
13570 (pass_store_merging::process_store): Likewise.
13571
13572 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13573
13574 PR target/89424
13575 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13576 handling of V1TImode.
13577
13578 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13579
13580 PR target/89221
13581 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13582 and enable_frame_pointer ...
13583 * configure.ac: ... here. Update help strings for
13584 --enable-frame-pointer.
13585 * configure: Regenerate.
13586 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13587 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13588 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13589 (USE_X86_64_FRAME_POINTER): Ditto.
13590
13591 2019-05-06 Martin Liska <mliska@suse.cz>
13592
13593 * config.gcc: Append to target_gtfiles and fix indentation.
13594
13595 2019-05-06 Richard Biener <rguenther@suse.de>
13596
13597 PR tree-optimization/90358
13598 * tree-vect-stmts.c (get_group_load_store_type): Properly
13599 detect unused upper half of load.
13600 (vectorizable_load): Likewise.
13601
13602 2019-05-06 Richard Biener <rguenther@suse.de>
13603
13604 PR tree-optimization/88828
13605 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13606 (simplify_vector_constructor): ...here. Handle constants in
13607 the constructor.
13608
13609 2019-05-06 Richard Biener <rguenther@suse.de>
13610
13611 PR tree-optimization/90328
13612 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13613 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13614 is valid in the loop nest before using it.
13615 (initialize_data_dependence_relation): Adjust.
13616 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13617 loop as loop-nest to dr_may_alias_p.
13618
13619 2019-05-06 Richard Biener <rguenther@suse.de>
13620
13621 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13622
13623 2019-05-06 Richard Biener <rguenther@suse.de>
13624
13625 PR tree-optimization/90316
13626 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13627 compute target on demand.
13628 (get_continuation_for_phi): Remove code walking stmts to
13629 get to a target virtual operand which could end up being
13630 quadratic.
13631
13632 2019-05-06 Martin Liska <mliska@suse.cz>
13633
13634 PR sanitizer/90312
13635 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13636 when -mabi is selected to a non-default version.
13637
13638 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13639 Martin Liska <mliska@suse.cz>
13640
13641 * Makefile.in: Add lto-dump.texi.
13642 * cgraph.h: Add new functions get_visibility_string and
13643 get_symtab_type_string.
13644 * doc/gcc.texi: Include lto-dump section.
13645 * doc/lto-dump.texi: New file.
13646 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13647 (parse_dump_option): Factor out this function.
13648 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13649 (parse_dump_option): Export the function.
13650 * symtab.c (symtab_node::get_visibility_string): New function.
13651 (symtab_node::get_symtab_type_string): Likewise.
13652
13653 2019-05-06 Martin Liska <mliska@suse.cz>
13654
13655 * config/i386/i386-builtins.c: New file.
13656 * config/i386/i386-builtins.h: New file.
13657 * config/i386/i386-expand.c: New file.
13658 * config/i386/i386-expand.h: New file.
13659 * config/i386/i386-features.c: New file.
13660 * config/i386/i386-features.h: New file.
13661 * config/i386/i386-options.c: New file.
13662 * config/i386/i386-options.h: New file.
13663 * config.gcc: Add new files into extra_objs and
13664 target_gtfiles.
13665 * config/i386/i386.c: Split content of the file
13666 into newly introduced files.
13667 * config/i386/i386.h: Declare common variables
13668 and macros.
13669 * config/i386/t-i386: Define dependencies for new files.
13670
13671 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13672
13673 PR target/89400
13674 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13675 Restrict 'all' variant to 32-bit configurations.
13676 (unaligned_loadhiu): Likewise.
13677 (unaligned_storehi): Likewise.
13678 (unaligned_storesi): Likewise.
13679 (unaligned_loadhis): Disable when compiling for thumb1.
13680
13681 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13682
13683 PR tree-optimization/90269
13684 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13685 Ignore clobbers.
13686
13687 2019-05-03 Martin Liska <mliska@suse.cz>
13688
13689 * hash-map.h: Add is_empty function.
13690 * hash-set.h: Likewise.
13691 * hash-table.h: Likewise.
13692 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13693 elements () == 0 (and similar usages).
13694 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13695 * gimplify.c (gimplify_bind_expr): Likewise.
13696 (gimplify_switch_expr): Likewise.
13697 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13698 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13699 * postreload-gcse.c (dump_hash_table): Likewise.
13700 (gcse_after_reload_main): Likewise.
13701 * predict.c (combine_predictions_for_bb): Likewise.
13702 * tree-parloops.c (reduction_phi): Likewise.
13703 (separate_decls_in_region): Likewise.
13704 (transform_to_exit_first_loop): Likewise.
13705 (gen_parallel_loop): Likewise.
13706 (gather_scalar_reductions): Likewise.
13707 (try_create_reduction_list): Likewise.
13708 * var-tracking.c (dump_vars): Likewise.
13709 (emit_notes_for_changes): Likewise.
13710 (vt_emit_notes): Likewise.
13711
13712 2019-05-03 Richard Biener <rguenther@suse.de>
13713
13714 PR tree-optimization/90316
13715 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13716 before running VN.
13717
13718 2019-05-03 Richard Biener <rguenther@suse.de>
13719
13720 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13721 peeling for gaps by loading only lower halves of vectors
13722 if possible.
13723 (vectorizable_load): Likewise.
13724
13725 2019-05-03 Richard Biener <rguenther@suse.de>
13726
13727 PR middle-end/89518
13728 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13729
13730 2019-05-03 Richard Biener <rguenther@suse.de>
13731
13732 PR middle-end/87314
13733 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13734 Handle STRING_CST vs DECL or STRING_CST.
13735
13736 2019-05-03 Richard Biener <rguenther@suse.de>
13737
13738 PR tree-optimization/88963
13739 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13740 vector loads feeding only BIT_FIELD_REFs to component
13741 loads. Rewrite stores fed by CONSTRUCTORs to component
13742 stores.
13743
13744 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13745
13746 * opts.h (finish_options): Remove lang_mask argument.
13747 (print_help, help_option_argument): Declare.
13748 * opts.c (print_help): Remove forward declaration, no longer static.
13749 (finish_options): Remove lang_mask argument, don't call print_help
13750 here.
13751 * opts-global.c (decode_options): Adjust finish_option caller, call
13752 print_help here.
13753
13754 PR tree-optimization/90303
13755 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13756 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13757
13758 2019-05-03 Richard Biener <rguenther@suse.de>
13759
13760 PR tree-optimization/89698
13761 * gimple-fold.c (canonicalize_constructor_val): Early out
13762 for constants, handle unfolded INTEGER_CSTs as they appear in
13763 C++ virtual table ctors.
13764
13765 2019-05-03 Richard Biener <rguenther@suse.de>
13766
13767 * passes.c (execute_function_todo): Remove dead code.
13768
13769 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13770
13771 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13772 the internal register number, for any "real" register.
13773
13774 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13775
13776 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13777 correct numbers for TFHAR, TFIAR, TEXASR.
13778
13779 2019-05-02 Richard Biener <rguenther@suse.de>
13780
13781 PR tree-optimization/89653
13782 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13783 update-address-taken before the pass.
13784 * passes.def (pass_tree_loop_init): Put comment before it.
13785
13786 2019-05-02 Richard Biener <rguenther@suse.de>
13787
13788 PR tree-optimization/89509
13789 * tree-ssa-structalias.c (compute_dependence_clique): Look
13790 at the first subvar when determining whether it is restrict.
13791
13792 2019-05-02 Richard Biener <rguenther@suse.de>
13793
13794 PR tree-optimization/90273
13795 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13796 useless debug stmts.
13797
13798 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13799
13800 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13801 ACLE branch.
13802 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13803 SVE ACLE branch.
13804 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13805 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13806 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13807 (vectorizable_reduction): Use the functions above to vectorize in a
13808 fully masked loop codes that don't have a conditional internal
13809 function.
13810
13811 2019-05-02 Martin Liska <mliska@suse.cz>
13812
13813 * cgraphclones.c: Call valid_attribute_p with 1 for
13814 target_clone.
13815 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13816 it's for target attribute.
13817 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13818 Add new boolean argument.
13819 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13820 Likewise.
13821 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13822 to ix86_valid_target_attribute_inner_p.
13823 (ix86_valid_target_attribute_p): Pass flags argument to
13824 ix86_valid_target_attribute_inner_p.
13825 (get_builtin_code_for_version): Use 0 as it's target attribute.
13826
13827 2019-05-02 Martin Liska <mliska@suse.cz>
13828
13829 * gcc.c (process_command): Add dummy file only
13830 if n_infiles == 0.
13831 * opts-global.c (decode_options): Pass lang_mask.
13832 * opts.c (print_help): New function.
13833 (finish_options): Print --help if help_option_argument
13834 is set.
13835 (common_handle_option): Factor out content of OPT__help_
13836 into print_help.
13837 * opts.h (finish_options): Add new argument.
13838
13839 2019-05-02 Martin Liska <mliska@suse.cz>
13840
13841 PR target/88809
13842 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13843 With -minline-all-stringops use inline expansion using 4B loop.
13844 * doc/invoke.texi: Document the change of
13845 -minline-all-stringops.
13846
13847 2019-05-01 Jeff Law <law@redhat.com>
13848
13849 PR tree-optimization/88797
13850 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13851 PHI feeds a conditional on the RHS of an assignment.
13852
13853 2019-04-30 Andrew Waterman <andrew@sifive.com>
13854 Jim Wilson <jimw@sifive.com>
13855
13856 * config/riscv/constraints.md (L): New.
13857 * config/riscv/predicates.md (lui_operand): New.
13858 (sfb_alu_operand): New.
13859 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13860 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13861 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13862 * config/riscv/risc.md (type): Add sfb_alu.
13863 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13864 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13865 (branch_zero<mode>): Delete.
13866 (mov<mode>cc): New.
13867 (mov<GPR:mode><X:mode>cc): Likewise.
13868 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13869
13870 2019-04-30 Nathan Sidwell <nathan@acm.org>
13871
13872 * tree.h (MARK_TS_EXP): New.
13873
13874 2019-04-30 Martin Liska <mliska@suse.cz>
13875
13876 * opts.c (enable_warning_as_error): Provide hints
13877 for unknown options.
13878
13879 2019-04-30 Martin Liska <mliska@suse.cz>
13880
13881 PR debug/90288
13882 * doc/invoke.texi: Add missing dash for gas-locview-support
13883 and gno-as-locview-support.
13884
13885 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13886
13887 PR target/89093
13888 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13889 whitespace at the start of target attribute string.
13890
13891 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13892
13893 PR target/86538
13894 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13895 Define __ARM_FEATURE_ATOMICS.
13896
13897 2019-04-30 Martin Liska <mliska@suse.cz>
13898
13899 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13900 into built_in_function enum. Remove code for endp == 2 and
13901 use BUILT_IN_* constants.
13902 (gimple_fold_builtin): Call the function with fcode.
13903
13904 2019-04-30 Martin Liska <mliska@suse.cz>
13905
13906 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13907 DECL_FUNCTION_CODE into ix86_builtins enum before
13908 the switch statement.
13909
13910 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13911
13912 PR tree-optimization/89475
13913 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13914 calls.
13915
13916 2019-04-30 Martin Liska <mliska@suse.cz>
13917
13918 PR translation/90274
13919 * opts.c (print_filtered_help): Wrap string in _(...).
13920
13921 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13922
13923 PR tree-optimization/90240
13924 Revert:
13925 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13926
13927 PR tree-optimization/90078
13928 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13929 checks for infinite_cost overflow.
13930
13931 2019-04-29 Jeff Law <law@redhat.com>
13932
13933 * passes.def: Move -Wrestrict pass after copy propagation.
13934
13935 2019-04-29 Maya Rashish <coypu@sdf.org>
13936
13937 * config.gcc (default_gnu_indirect_function): Default to yes
13938 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13939 sparc*-*-netbsd*, x86_64-*-netbsd*.
13940
13941 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13942
13943 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
13944 where cond2 is NE_EXPR.
13945 (is_value_included_in): Update comment.
13946
13947 2019-04-29 Richard Biener <rguenther@suse.de>
13948
13949 PR tree-optimization/90278
13950 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
13951 EH on comparison simplification.
13952
13953 2019-04-29 Jason Merrill <jason@redhat.com>
13954
13955 PR c++/82081 - tail call optimization breaks noexcept
13956 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
13957 nothrow function to a might-throw function into a tail call.
13958
13959 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
13960
13961 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
13962 (DDR_INNER_LOOP): Likewise.
13963 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
13964 (initialize_data_dependence_relation): Likewise.
13965 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
13966
13967 2019-04-29 Jakub Jelinek <jakub@redhat.com>
13968
13969 PR rtl-optimization/90257
13970 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
13971 return value.
13972
13973 Revert the revert:
13974 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
13975
13976 PR target/90178
13977 Revert:
13978 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
13979
13980 Revert the revert:
13981 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
13982
13983 Revert:
13984 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
13985
13986 * lra-spills.c (lra_final_code_change): Remove useless move insns.
13987
13988 2019-04-29 Richard Biener <rguenther@suse.de>
13989
13990 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
13991 rhs issue a reset.
13992
13993 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
13994
13995 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
13996 varasm.h, and netbsd-protos.h.
13997
13998 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
13999
14000 PR target/89261
14001 * config/i386/i386-protos.h (ix86_data_alignment): Change
14002 the second argument type to unsigned int.
14003 * config/i386/i386.c (ix86_data_alignment): Change "align"
14004 argument type to unsigned int.
14005
14006 2019-04-27 Martin Liska <mliska@suse.cz>
14007
14008 PR middle-end/90258
14009 * opt-suggestions.c (option_proposer::build_option_suggestions):
14010 When get_valid_option_values returns empty values, add the
14011 misspelling candidate.
14012
14013 2019-04-26 Jim Wilson <jimw@sifive.com>
14014
14015 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
14016 parameter.
14017 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
14018 Pass orig_mode to riscv_build_integer.
14019 (riscv_split_integer): Pass mode to riscv_move_integer.
14020 (riscv_legitimize_const_move): Likewise.
14021 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
14022 promoted_mode. Replace force_reg call with code to load constant into
14023 promoted reg and then subreg it for the store.
14024 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
14025 riscv_move_integer.
14026
14027 2018-04-26 Eugene Sharygin <eush@ispras.ru>
14028
14029 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
14030 corrupt codes.
14031
14032 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
14033
14034 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
14035 commentary about the encoding of precision.
14036
14037 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
14038
14039 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
14040 * config/i386/t-freebsd64: New file.
14041 * config.gcc: Add the t-freebsd64 for multilib support.
14042
14043 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
14044
14045 * doc/extend.texi (vector_size): Add missing comma after @xref.
14046
14047 2019-04-25 Jakub Jelinek <jakub@redhat.com>
14048
14049 * BASE-VER: Set to 10.0.0.
14050
14051 2019-04-25 Richard Biener <rguenther@suse.de>
14052
14053 PR middle-end/89765
14054 * gimplify.c (gimplify_expr): Avoid turning a lvalue
14055 VIEW_CONVERT_EXPR into one operating on an rvalue.
14056
14057 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
14058
14059 PR target/89929
14060 * config/i386/i386.c (feature_priority): Moved to file scope.
14061 (processor_features): Likewise.
14062 (processor_model): Likewise.
14063 (_arch_names_table): Likewise.
14064 (arch_names_table): Likewise.
14065 (_feature_list): Removed.
14066 (feature_list): Likewise.
14067 (_isa_names_table): Moved to file scope. Add priority.
14068 (isa_names_table): Likewise.
14069 (get_builtin_code_for_version): Replace feature_list with
14070 isa_names_table. Update error message for P_ZERO priority.
14071
14072 2019-04-25 Richard Biener <rguenther@suse.de>
14073
14074 * tree-pass.h (make_pass_phi_only_cprop): Remove.
14075 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
14076
14077 2019-04-24 Jeff Law <law@redhat.com>
14078
14079 PR tree-optimization/90037
14080 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14081 * passes.def: Replace all instance of phi-only cprop with the
14082 lattice propagator. Move propagation pass from after erroneous
14083 path isolation to before erroneous path isolation.
14084 * tree-ssa-phionlycprop.c: Remove.
14085
14086 2019-04-24 Richard Biener <rguenther@suse.de>
14087
14088 PR middle-end/90213
14089 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14090 by size and BITS_PER_UNIT on poly-wide-ints.
14091
14092 2019-04-25 Richard Biener <rguenther@suse.de>
14093
14094 PR middle-end/90194
14095 * match.pd: Add pattern to simplify view-conversion of an
14096 empty constructor.
14097
14098 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14099
14100 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14101 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14102 for Go on 32 bit AIX.
14103 * config/rs6000/aix72.h: Likewise.
14104
14105 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14106
14107 PR target/90193
14108 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14109 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14110
14111 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14112
14113 PR target/89952
14114 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14115 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14116 for restored hard frame pointer.
14117 (s390_sched_dependencies_evaluation): Implement new target hook.
14118 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14119
14120 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14121
14122 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14123 * config/arc/arc.c (arc_init): Cleanup warning message.
14124 (arc_override_options): Likewise.
14125
14126 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14127
14128 PR target/90187
14129 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14130 a register if both if_true and if_false are MEMs.
14131
14132 PR tree-optimization/90208
14133 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14134 after labels of new_bb, not before them.
14135
14136 PR tree-optimization/90211
14137 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14138 which are not SSA_NAMEs.
14139
14140 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14141
14142 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14143 AArch64.
14144 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14145
14146 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14147
14148 PR rtl-optimization/87979
14149 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14150 not equal zero.
14151
14152 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14153
14154 PR rtl-optimization/84032
14155 * modulo-sched.c (ps_insn_find_column): Change condition so that
14156 branch will always be the last insn in a row inside partial
14157 schedule.
14158
14159 2019-04-23 Richard Biener <rguenther@suse.de>
14160
14161 PR debug/90131
14162 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14163 dest_single_pred_p argument.
14164 (remove_forwarder_block): Adjust.
14165 (remove_forwarder_block_with_phi): Likewise.
14166
14167 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14168 Bernd Edlinger <bernd.edlinger@hotmail.de>
14169 Jakub Jelinek <jakub@redhat.com>
14170
14171 PR target/89093
14172 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14173 if used with general-regs-only.
14174 (arm_conditional_register_usage): Don't add non-general regs if
14175 general-regs-only.
14176 (arm_valid_target_attribute_rec): Handle general-regs-only.
14177 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14178 general-regs-only.
14179 (TARGET_HARD_FLOAT_SUB): Define.
14180 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14181 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14182 (TARGET_REALLY_IWMMXT2): Likewise.
14183 * config/arm/arm.opt: Add -mgeneral-regs-only.
14184 * doc/extend.texi: Document ARM general-regs-only target.
14185 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14186
14187 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14188
14189 PR tree-optimization/90078
14190 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14191 checks for infinite_cost overflow.
14192
14193 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14194
14195 PR tree-optimization/90021
14196 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14197 and check univariate against it.
14198 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14199 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14200
14201 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14202
14203 PR target/90178
14204 Revert:
14205 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14206
14207 Revert the revert:
14208 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14209
14210 Revert:
14211 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14212
14213 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14214
14215 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14216
14217 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14218 names using operand format, rather than hard-wired.
14219 (speculation_barrier): Likewise.
14220
14221 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14222
14223 PR tree-optimization/88055
14224 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14225 (gen_one_condition): Use it if !HONOR_NANS.
14226
14227 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14228
14229 PR middle-end/90139
14230 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14231 assign_temp instead of gen_reg_rtx.
14232
14233 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14234
14235 PR translation/90118
14236 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14237 Add missing space before %<.
14238
14239 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14240
14241 PR rtl-optimization/87871
14242 * ira-lives.c (make_object_dead): Don't add conflicts to
14243 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14244
14245 2019-04-18 Martin Sebor <msebor@redhat.com>
14246
14247 PR middle-end/89797
14248 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14249 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14250 assuming type size fits in SHWI.
14251
14252 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14253
14254 PR ipa/85051
14255 * ipa-inline.c (flatten_function): New parameter UPDATE.
14256 (ipa_inline, early_inliner): Use it.
14257
14258 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14259
14260 * fold-const.c (int_const_binop): Return early on failure.
14261
14262 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14263
14264 PR middle-end/85164
14265 * combine.c (force_int_to_mode): Cast the argument rather than
14266 the result of known_alignment.
14267 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14268
14269 2019-04-18 Richard Biener <rguenther@suse.de>
14270
14271 PR debug/90131
14272 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14273 out from ...
14274 (remove_forwarder_block): ... here.
14275 (remove_forwarder_block_with_phi): Also move debug stmts here.
14276
14277 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14278
14279 PR translation/79183
14280 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14281 inform where appropriate.
14282
14283 2019-04-18 Richard Biener <rguenther@suse.de>
14284
14285 * tree.c (get_qualified_type): Put found type variants at the
14286 head of the variant list.
14287
14288 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14289
14290 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14291
14292 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14293
14294 PR target/90125
14295 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14296 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14297 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14298 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14299 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14300
14301 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14302
14303 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14304 even for allocno's with no conflicts.
14305 (print_conflicts): Print an extra newline.
14306
14307 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14308
14309 * auto-inc-dec.c (attempt_change): Set the alignment of the
14310 temporary memory to that of the original.
14311
14312 2019-04-17 Joao Moreira <jmoreira@suse.de>
14313
14314 * targhooks.c (default_print_patchable_function_entry): Emit
14315 __patchable_function_entries section with writable flags to allow
14316 relocation resolution.
14317
14318 2019-04-17 Jonny Grant <jg@jguk.org>
14319
14320 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14321
14322 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14323
14324 PR middle-end/90095
14325 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14326 on lowpart SUBREGs.
14327
14328 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14329
14330 * config/arc/arc.c (arc_init): Format diagnostic string.
14331 (arc_override_options): Likewise.
14332 (check_if_valid_regno_const): Likewise.
14333 (arc_reorg): Likewise.
14334
14335 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14336
14337 PR target/17108
14338 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14339 name.
14340 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14341 name.
14342 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14343 (*movdi_update1): Use Pmode.
14344 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14345 (movdi_<mode>_update_stack): Rename to ...
14346 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14347 use Pmode.
14348 (*movsi_update1): Use Pmode.
14349 (*movsi_update2): Use Pmode.
14350 (movsi_update): Rename to ...
14351 (movsi_<mode>_update): ... this. Use Pmode.
14352 (movsi_update_stack): Fix condition.
14353 (*movhi_update1): Use Pmode. Fix argument to
14354 avoiding_indexed_address_p.
14355 (*movhi_update2): Ditto.
14356 (*movhi_update3): Ditto.
14357 (*movhi_update4): Ditto.
14358 (*movqi_update1): Ditto.
14359 (*movqi_update2): Ditto.
14360 (*movqi_update3): Ditto.
14361 (*movsf_update1, *movdf_update1): Merge, rename to...
14362 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14363 avoiding_indexed_address_p. Add "size" attribute.
14364 (*movsf_update2, *movdf_update2): Merge, rename to...
14365 (*mov<mode>_update2): This. Ditto.
14366 (*movsf_update3): Use Pmode. Fix argument to
14367 avoiding_indexed_address_p.
14368 (*movsf_update4): Ditto.
14369 (allocate_stack): Simplify condition. Adjust pattern names.
14370
14371 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14372
14373 PR target/89093
14374 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14375 whitespace at the start of target attribute string.
14376
14377 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14378
14379 PR target/84369
14380 * config/rs6000/power9.md: Add store forwarding bypass.
14381
14382 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14383
14384 PR debug/89528
14385 * valtrack.c (dead_debug_insert_temp): Reset debug references
14386 to the return value of a call being removed.
14387
14388 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14389
14390 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14391 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14392 implement target hook.
14393 (arc_memory_move_cost): New function.
14394 (TARGET_REGISTER_MOVE_COST): Define.
14395 (TARGET_MEMORY_MOVE_COST): Likewise.
14396 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14397 (MEMORY_MOVE_COST): Likewise.
14398
14399 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14400
14401 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14402 (sibcall_value_insn): Likewise.
14403 * config/arc/constraints.md (Rs5): Remove.
14404
14405 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14406
14407 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14408 for last two fake registers.
14409 (arc_conditional_register_usage): Make sure fake frame and arg
14410 pointer regs are in general regs class.
14411 (FRAME_POINTER_MASK): Remove.
14412 (RETURN_ADDR_MASK): Remove.
14413 (arc_must_save_register): Use hard frame regnum.
14414 (frame_restore_reg): Use hard_frame_pointer_rtx.
14415 (arc_save_callee_saves): Likewise.
14416 (arc_restore_callee_saves): Likewise.
14417 (arc_save_callee_enter): Likewise.
14418 (arc_restore_callee_leave): Likewise.
14419 (arc_save_callee_milli): Likewise.
14420 (arc_eh_return_address_location): Likewise.
14421 (arc_check_multi): Use hard frame regnum.
14422 (arc_can_eliminate): Likewise.
14423 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14424 for register allocator.
14425 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14426 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14427 (FRAME_POINTER_REGNUM): Change it to a fake register.
14428 (HARD_FRAME_POINTER_REGNUM): Defined.
14429 (ARG_POINTER_REGNUM): Change it to a new fake register.
14430 (ELIMINABLE_REGS): Update.
14431 (REGISTER_NAMES): Update names.
14432 * config/arc/arc.md (LP_START): Remove.
14433 (LP_END): Likewise.
14434 (shift_si3_loop): Update pattern.
14435
14436 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14437
14438 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14439 to avoid delay slot scheduling.
14440 (arc_must_save_register): Don't save SP.
14441 * config/arc/arc.md (stack_tie): Remove.
14442 (UNSPEC_ARC_STKTIE): Likewise.
14443
14444 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14445 Shiva Chen <shiva0217@gmail.com>
14446
14447 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14448 code gen with large shift amount.
14449
14450 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14451
14452 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14453 subreg.
14454
14455 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14456
14457 PR target/90096
14458 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14459 print -m64/-mx32/-m32 if it is true.
14460 (ix86_debug_options, ix86_function_specific_print): Pass true as
14461 ADD_ABI_P to ix86_target_string.
14462 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14463 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14464 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14465
14466 PR rtl-optimization/90082
14467 * dce.c (can_delete_call): New function.
14468 (deletable_insn_p, mark_insn): Use it.
14469
14470 PR tree-optimization/90090
14471 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14472 throw internally.
14473 (is_division_by_square): Likewise. Formatting fix.
14474
14475 2019-04-16 Richard Biener <rguenther@suse.de>
14476
14477 PR tree-optimization/56049
14478 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14479 equality check if alias-set zero will prevail.
14480
14481 2019-04-15 Jeff Law <law@redhat.com>
14482
14483 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14484 size and alignment as unsigned.
14485
14486 2019-04-15 Richard Biener <rguenther@suse.de>
14487
14488 PR debug/90074
14489 * tree-loop-distribution.c (destroy_loop): Preserve correct
14490 debug info.
14491
14492 2019-04-15 Richard Biener <rguenther@suse.de>
14493
14494 PR tree-optimization/90071
14495 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14496 abnormal operands from def stmts.
14497
14498 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14499
14500 PR rtl-optimization/89794
14501 * combine.c (count_auto_inc): New function.
14502 (try_combine): Count how many auto_inc expressions there were in the
14503 original instructions. Ensure we have the same number in the new
14504 instructions. Remove the code that tried to ensure auto_inc side
14505 effects on i1 and i0 are not lost.
14506
14507 2019-04-15 Richard Biener <rguenther@suse.de>
14508
14509 PR ipa/88936
14510 * tree.h (auto_var_p): Declare.
14511 * tree.c (auto_var_p): New function, split out from ...
14512 (auto_var_in_fn_p): ... here.
14513 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14514 member.
14515 (new_var_info): Initialize it.
14516 (set_uids_in_ptset): Also set the shadow variable uid if required.
14517 (ipa_pta_execute): Postprocess points-to solutions assigning
14518 shadow variable uids for locals that may reach their containing
14519 function recursively.
14520 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14521 assert but instead check whether the points-to solution is
14522 a singleton.
14523
14524 2019-04-15 Martin Jambor <mjambor@suse.cz>
14525
14526 PR ipa/pr89693
14527 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14528 the thunk chain.
14529
14530 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14531
14532 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14533
14534 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14535 Kito Cheng <kito.cheng@gmail.com>
14536 Shiva Chen <shiva0217@gmail.com>
14537
14538 * config/nds32/nds32-md-auxiliary.c
14539 (nds32_legitimize_pic_address): Use new PIC pattern.
14540 (nds32_legitimize_tls_address): Use new TLS pattern.
14541 (nds32_output_symrel): New.
14542 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14543 (nds32_alloc_relax_group_id): Ditto.
14544 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14545 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14546 relax_group_id.
14547 (nds32_group_tls_insn): Ditto.
14548 (nds32_group_float_insns): Ditto.
14549 * config/nds32/nds32.md (tls_le): New.
14550 (sym_got): Ditto.
14551
14552 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14553
14554 * configure: Add nds32 target for dwarf2 debug_line checking.
14555 * configure.ac: Regenerated.
14556
14557 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14558
14559 PR lto/89358
14560 * ipa-devirt.c (skip_in_fields_list_p): New.
14561 (odr_types_equivalent_p): Use it.
14562
14563 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14564
14565 PR target/89093
14566 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14567 instead of strncmp when checking for thumb and arm. Formatting fixes.
14568
14569 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14570
14571 * doc/install.texi: Document --with-target-system-zlib.
14572
14573 2019-04-12 Martin Sebor <msebor@redhat.com>
14574
14575 PR c/88383
14576 PR c/89288
14577 PR c/89798
14578 PR c/89797
14579 * targhooks.c (default_vector_alignment): Avoid assuming
14580 argument fits in SHWI.
14581 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14582 a shift expression.
14583 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14584
14585 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14586
14587 PR rtl-optimization/89965
14588 * dce.c: Include rtl-iter.h.
14589 (struct check_argument_load_data): New type.
14590 (check_argument_load): New function.
14591 (find_call_stack_args): Check for loads from stack slots still tracked
14592 in sp_bytes and punt if any is found.
14593
14594 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14595
14596 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14597
14598 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14599 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14600
14601 2019-04-12 Martin Liska <mliska@suse.cz>
14602
14603 PR middle-end/89970
14604 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14605 in error message.
14606 (separate_attrs): Handle multiple 'default's.
14607 (expand_target_clones): Rework error handling code.
14608
14609 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14610
14611 PR target/87532
14612 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14613 mode of vector rather than mode of destination for move instruction.
14614 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14615 Use QI inner mode with V16QI vector mode.
14616
14617 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14618
14619 PR target/52726
14620 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14621 "invalid %%t operand" in output_operand_lossage message.
14622
14623 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14624
14625 * config/s390/predicates.md (permute_pattern_operand): New
14626 predicate.
14627 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14628 operand for the permute pattern.
14629 ("*vec_perm<mode>"): New insn definition.
14630 ("bswap<mode>"): Generate the permute pattern operand in the
14631 expander and perform the operand reloads for pre arch13 level
14632 already.
14633 ("*bswap<mode>_emu"): Rename to ...
14634 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14635 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14636 Add the USE operand for the permute pattern.
14637 ("*vec_set_bswap_vec<mode>"): Likewise.
14638
14639 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14640
14641 PR c/89946
14642 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14643 and gcc_unreachable if it fails, just call tree_to_uhwi which
14644 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14645 Start warning message with a lower-case letter. Formatting fixes.
14646
14647 PR rtl-optimization/90026
14648 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14649 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14650 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14651 in cfglayout mode, use emit_barrier_after_bb.
14652
14653 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14654
14655 PR rtl-optimization/87763
14656 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14657 New Instruction.
14658
14659 2019-04-11 Tom de Vries <tdevries@suse.de>
14660
14661 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14662 max macro using statement expression.
14663
14664 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14665
14666 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14667 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14668 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14669 read_only_private_data_section using xcoff_private_rodata_section_name.
14670 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14671
14672 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14673
14674 PR target/90016
14675 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14676
14677 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14678
14679 PR rtl-optimization/89965
14680 * dce.c (sp_based_mem_offset): New function.
14681 (find_call_stack_args): Use sp_based_mem_offset.
14682
14683 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14684
14685 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14686
14687 2019-04-11 Richard Biener <rguenther@suse.de>
14688
14689 PR tree-optimization/90020
14690 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14691 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14692 * tree-ssa-pre.c (compute_avail): Use it to not put
14693 possibly trapping references after a call that might not
14694 return into EXP_GEN.
14695 * gcse.c (compute_hash_table_work): Do not elide
14696 marking a block containing a call if the call might not
14697 return.
14698
14699 2019-04-11 Richard Biener <rguenther@suse.de>
14700
14701 PR tree-optimization/90018
14702 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14703 Test both SLP and interleaving variants.
14704
14705 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14706
14707 * config/s390/8561.md: New file.
14708 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14709 Add arch13 cpu model.
14710 * config/s390/s390-opts.h (enum processor_type): Likewise.
14711 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14712 (s390_get_unit_mask): Likewise.
14713 (s390_is_fpd): Likewise.
14714 (s390_is_fxd): Likewise.
14715 * config/s390/s390.h (s390_tune_attr): Likewise.
14716 * config/s390/s390.md: Include arch13 pipeline description.
14717 * config/s390/s390.opt: Add arch13.
14718
14719 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14720
14721 PR rtl-optimization/87763
14722 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14723 New prototype.
14724 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14725 New function.
14726 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14727 New instruction.
14728 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14729 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14730 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14731 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14732
14733 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14734
14735 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14736 "Although" in -fipa-icf documentation.
14737
14738 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14739 of using multiple -g options.
14740
14741 2019-04-10 Martin Liska <mliska@suse.cz>
14742
14743 PR gcov-profile/89959
14744 * doc/gcov.texi: Make documentation of -x option
14745 more precise.
14746
14747 2019-04-10 Richard Biener <rguenther@suse.de>
14748
14749 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14750 member.
14751 (DR_GROUP_SAME_DR_STMT): Remove.
14752 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14753 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14754 replace with assert.
14755 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14756 (vect_record_grouped_load_vectors): Remove unreachable code.
14757
14758 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14759
14760 PR target/90016
14761 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14762 obsolete reference to N.
14763
14764 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14765
14766 PR middle-end/90025
14767 * expr.c (store_expr): Set properly size on the MEM passed to
14768 clear_storage.
14769
14770 PR c++/90010
14771 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14772 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14773 translation is needed, and when translation is needed, only append
14774 ... if the string length is hostsz or more bytes long. Avoid using
14775 strncpy or strcat.
14776
14777 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14778
14779 PR target/90024
14780 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14781 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14782 into three.
14783 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14784 differences directly.
14785 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14786
14787 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14788
14789 PR translation/90011
14790 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14791 from diagnostics.
14792 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14793 diagnostics.
14794 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14795 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14796 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14797 trailing space from -gsplit-dwarf diagnostics.
14798
14799 PR tree-optimization/89998
14800 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14801 instead of integer_type_node if possible, don't add ranges if return
14802 type is not compatible with int.
14803 * gimple-fold.c (gimple_fold_builtin_sprintf,
14804 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14805 integer_type_node.
14806
14807 2019-04-09 Martin Liska <mliska@suse.cz>
14808
14809 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14810 * doc/install.texi: Document the new config.
14811
14812 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14813
14814 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14815 use gimple_expr_type for load and store calls. Skip over the
14816 condition argument in a conditional internal function.
14817 Protect use of TREE_INT_CST_LOW.
14818
14819 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14820
14821 PR target/90015
14822 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14823 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14824 trailing period from it too.
14825
14826 2019-04-08 wu yuan <wuyuan5@huawei.com>
14827
14828 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14829 * config/aarch64/aarch64.md : Add "tsv110.md"
14830 * config/aarch64/tsv110.md: New file.
14831
14832 2019-04-08 Richard Biener <rguenther@suse.de>
14833
14834 PR tree-optimization/90006
14835 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14836 calls like lrint.
14837
14838 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14839
14840 PR target/83033
14841 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14842 construction.
14843 (fma_root_node): Likewise.
14844 (func_fma_steering): Likewise.
14845
14846 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14847
14848 PR rtl-optimization/89865
14849 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14850
14851 PR rtl-optimization/89865
14852 * config/i386/i386.md
14853 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14854 numbers not to clash with the additional operands[4].
14855 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14856 with extra register copy in the middle.
14857
14858 2019-04-08 Martin Liska <mliska@suse.cz>
14859
14860 PR gcov-profile/89961
14861 * doc/gcov.texi: Document data_file.
14862 * gcov.c (generate_results): Add data_info into JSON output.
14863
14864 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14865
14866 PR tree-optimization/89725
14867 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14868 loop's chrec as invariant symbol.
14869 * tree-chrec.h (chrec_contains_symbols): New parameter.
14870 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14871 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14872 function of loops not in DDR's loop_nest.
14873 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14874
14875 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14876
14877 PR target/89623
14878 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14879 Mask.
14880
14881 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14882
14883 PR target/89945
14884 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14885 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14886
14887 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14888
14889 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14890 targetm.fixed_condition_code_regs.
14891
14892 2019-04-05 Richard Biener <rguenther@suse.de>
14893
14894 PR debug/89892
14895 PR debug/89905
14896 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14897 debug bind stmts but reset them if they are not valid at the
14898 destination.
14899
14900 2019-04-05 Martin Liska <mliska@suse.cz>
14901
14902 PR translation/89936
14903 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14904 order to wrap keywords or arguments.
14905 * collect2.c (main): Likewise.
14906 (scan_prog_file): Likewise.
14907 (scan_libraries): Likewise.
14908 * common/config/riscv/riscv-common.c
14909 (riscv_subset_list::parsing_subset_version): Likewise.
14910 (riscv_subset_list::parse_std_ext): Likewise.
14911 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14912 Likewise.
14913 * config/arm/arm.c (arm_option_override): Likewise.
14914 * config/cris/cris.c (cris_print_operand): Likewise.
14915 * config/darwin-c.c (darwin_pragma_options): Likewise.
14916 (darwin_pragma_unused): Likewise.
14917 (darwin_pragma_ms_struct): Likewise.
14918 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14919 * config/i386/i386.c (print_reg): Likewise.
14920 (ix86_print_operand): Likewise.
14921 * config/i386/xm-djgpp.h: Likewise.
14922 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14923 * config/m32c/m32c.c (m32c_option_override): Likewise.
14924 * config/msp430/msp430.c (msp430_option_override): Likewise.
14925 * config/nds32/nds32.c (nds32_option_override): Likewise.
14926 * config/nvptx/mkoffload.c (main): Likewise.
14927 * config/rx/rx.c (rx_print_operand): Likewise.
14928 (valid_psw_flag): Likewise.
14929 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14930 (vms_pragma_nomember_alignment): Likewise.
14931 (vms_pragma_extern_model): Likewise.
14932 * lto-wrapper.c (compile_offload_image): Likewise.
14933 * omp-offload.c (oacc_parse_default_dims): Likewise.
14934 * symtab.c (symtab_node::verify_base): Likewise.
14935 * tlink.c (recompile_files): Likewise.
14936 (start_tweaking): Likewise.
14937 * tree-profile.c (parse_profile_filter): Likewise.
14938
14939 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14940
14941 PR tree-optimization/89956
14942 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14943 multiple negates of the same value.
14944
14945 2019-04-04 Martin Sebor <msebor@redhat.com>
14946
14947 PR middle-end/89957
14948 PR middle-end/89911
14949 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
14950 have the same precision since the function crashes otherwise.
14951 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
14952 has non-zero arguments.
14953
14954 2019-04-04 Martin Sebor <msebor@redhat.com>
14955
14956 PR middle-end/89934
14957 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
14958 out if the number of arguments is less than expected.
14959
14960 2019-04-04 Jeff Law <law@redhat.com>
14961
14962 PR rtl-optimization/89399
14963 * ree.c (combine_set_extension): Use single_set rather than
14964 digging into PATTERN for items on the candidate list.
14965 (combine_reaching_defs): Likewise.
14966
14967 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
14968
14969 PR rtl-optimization/46590
14970 * loop-invariant.c (find_defs): Move df_remove_problem and
14971 df_process_deferred_rescans to move_invariants.
14972 Move df_live_add_problem and df_live_set_all_dirty calls
14973 to move_invariants.
14974 (move_invariants): Likewise.
14975 (move_loop_invariants): Likewise, making the df_live calls
14976 conditional on -O. Remove the problem again if we added it
14977 locally.
14978
14979 2019-04-03 qing zhao <qing.zhao@oracle.com>
14980
14981 PR tree-optimization/89730
14982 * ipa-inline.c (can_inline_edge_p): Delete the checking for
14983 -flive-patching=inline-only-static.
14984 (can_inline_edge_by_limits_p): Add the checking for
14985 -flive-patching=inline-only-static and grant always_inline
14986 even when -flive-patching=inline-only-static is specified.
14987
14988 2019-04-03 Jeff Law <law@redhat.com>
14989
14990 PR rtl-optimization/81025
14991 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
14992
14993 2019-04-03 Richard Biener <rguenther@suse.de>
14994
14995 PR tree-optimization/84101
14996 * tree-vect-stmts.c: Include explow.h for hard_function_value,
14997 regs.h for hard_regno_nregs.
14998 (cfun_returns): New helper.
14999 (vect_model_store_cost): When vectorizing a store to a decl
15000 we return and the function ABI returns in a multi-reg location
15001 account for the possible spilling that will happen.
15002
15003 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15004
15005 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15006 displacement addresses for vector mode operands.
15007
15008 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
15009
15010 * config/arc/arc.c (GMASK_LEN): Define.
15011 (arc_restore_callee_saves): Restore first blink when
15012 !optimize_size.
15013
15014 2019-04-03 Sudakshina Das <sudi.das@arm.com>
15015
15016 * doc/extend.texi: Add deprecated comment on sign-return-address
15017 function attribute and add mbranch-protection.
15018 * doc/invoke.texi: Add bti to the options for mbranch-protection.
15019
15020 2019-04-03 Richard Biener <rguenther@suse.de>
15021
15022 PR lto/89896
15023 * lto-wrapper.c (run_gcc): Avoid implicit rules making
15024 the all target phony.
15025
15026 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
15027
15028 PR target/89902
15029 PR target/89903
15030 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
15031 Return false for variable DImode shifts.
15032 (dimode_scalar_chain::compute_convert_gain): Do not handle
15033 register count operand in variable DImode shifts.
15034 (dimode_scalar_chain::make_vector_copies): Remove support to copy
15035 count argument of a variable shift instruction to a vector register.
15036 (dimode_scalar_chain::convert_reg): Remove support to convert
15037 count argument of a variable shift instruction.
15038
15039 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15040
15041 PR rtl-optimization/84206
15042 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
15043 iterating over loop headers.
15044
15045 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15046
15047 PR rtl-optimization/85876
15048 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
15049 beyond the original fence.
15050
15051 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
15052
15053 * config.gcc: Mark spu* targets as deprecated/obsolete.
15054
15055 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15056
15057 * config/s390/s390-builtin-types.def: New builtin function type
15058 definitions. Remove unused types.
15059 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
15060 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
15061 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
15062 overloaded builtins.
15063 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
15064 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
15065 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
15066 (vec_double, vec_signed, vec_unsigned): Define to use the new
15067 overloaded builtins.
15068 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
15069 Remove expanders.
15070
15071 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15072
15073 * config/s390/s390-builtin-types.def: New builtin function type
15074 definitions.
15075 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
15076 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
15077 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
15078 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15079 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15080 constant definitions.
15081 * config/s390/vecintrin.h (vec_search_string_cc)
15082 (vec_search_string_until_zero_cc): New builtin name definitions.
15083 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15084 expanders.
15085 ("vec_vstrs<mode>"): New insn definition.
15086
15087 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15088
15089 * config/s390/s390-builtin-types.def: Add new builtin function
15090 types.
15091 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15092 New overloaded builtins.
15093 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15094 s390_vsrd.
15095 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15096 (UNSPEC_VEC_SLDBYTE): ... this.
15097 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15098 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15099 definitions.
15100 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15101 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15102 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15103
15104 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15105
15106 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15107 New insn definition.
15108 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15109 * config/s390/vector.md (V_HW_HSD): ... here.
15110
15111 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15112
15113 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15114 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15115 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15116 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15117 New insn definitions.
15118
15119 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15120
15121 * config/s390/s390-builtin-types.def: Add new builtin function type.
15122 * config/s390/s390-builtins.def: Add overloaded builtin
15123 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15124 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15125 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15126 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15127 ("eltswap<mode>"): New expander.
15128 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15129 insn definitions.
15130
15131 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15132
15133 * config/s390/s390-builtin-types.def: Add new builtin function types.
15134 * config/s390/s390-builtins.def: Add overloaded builtin
15135 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15136 instructions.
15137 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15138 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15139 ("bswap<mode>"): New expander.
15140 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15141
15142 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15143
15144 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15145 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15146 vector builtin version number in __VEC__.
15147
15148 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15149
15150 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15151 iterators.
15152 (SFSI): New mode attribute.
15153 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15154 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15155 rename to ...
15156 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15157 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15158 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15159 ("floatsi<mode>2"): Add wcefb instruction.
15160
15161 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15162
15163 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15164 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15165 mode iterators.
15166 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15167 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15168 support 32 bit fp-int conversions. Rename to ...
15169 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15170 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15171 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15172 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15173 ... to these.
15174
15175 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15176
15177 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15178 if-then-else constructs if we can use the select instruction.
15179 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15180
15181 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15182
15183 * config/s390/s390.md ("*popcountdi_arch13_cc")
15184 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15185 definition.
15186 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15187 Append _z196 to make it ...
15188 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15189 ("popcounthi2_z196"): ... this.
15190 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15191 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15192
15193 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15194
15195 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15196 certain compares for arch13 in order to make use of the condition
15197 code result produced by the new instructions.
15198 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15199 nxrk, and nxgrk instruction patterns.
15200 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15201 (inv_no): Add new code iterator together with some attributes.
15202 ("*andc_split_<mode>"): Disable splitter for arch13.
15203 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15204 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15205 ("*<ANDOR:bitops_name>c<GPR:mode>")
15206 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15207 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15208 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15209 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15210
15211 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15212
15213 * common/config/s390/s390-common.c (processor_flags_table): New
15214 entry for arch13.
15215 * config.gcc: Support arch13 with the --with-arch= configure flag.
15216 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15217 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15218 * config/s390/s390.c (s390_get_sched_attrmask)
15219 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15220 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15221 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15222 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15223 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15224 definitions.
15225 * config/s390/s390.opt: Support arch13 as processor type in
15226 command line options.
15227
15228 2019-04-02 Martin Liska <mliska@suse.cz>
15229
15230 PR translation/89912
15231 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15232 Fix param description of graphite-max-arrays-per-scop.
15233
15234 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15235
15236 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15237 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15238 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15239
15240 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15241
15242 PR rtl-optimization/85412
15243 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15244 sel_sched_region_1, not after.
15245
15246 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15247
15248 PR rtl-optimization/86928
15249 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15250 compute_live if necessary.
15251 (sel_redirect_edge_and_branch): Likewise.
15252
15253 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15254
15255 PR rtl-optimization/89865
15256 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15257 register if it is a part of small class.
15258
15259 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15260
15261 PR rtl-optimization/87273
15262 * sel-sched-ir.c (merge_fences): Remove assert.
15263
15264 2019-04-01 Richard Biener <rguenther@suse.de>
15265
15266 PR tree-optimization/46590
15267 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15268 (dom_walker::m_reachability): Add in place of...
15269 (dom_walker::m_skip_unreachable_blocks): ...this.
15270 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15271 Move complex initialization ...
15272 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15273 lazily and initialize edge flags on each invocation.
15274 (dom_walker::bb_reachable): Use m_reachability.
15275
15276 2019-04-01 Martin Liska <mliska@suse.cz>
15277
15278 PR driver/89861
15279 * opt-suggestions.c (option_proposer::build_option_suggestions):
15280 Add variant without any argument in order to provide better
15281 hints.
15282
15283 2019-04-01 Richard Biener <rguenther@suse.de>
15284
15285 PR c/71598
15286 * gimple.c: Include langhooks.h.
15287 (gimple_get_alias_set): Treat enumeral types as the underlying
15288 integer type.
15289
15290 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15291 Eric Botcazou <ebotcazou@adacore.com>
15292
15293 PR rtl-optimization/89862
15294 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15295 that operates on the full registers for WORD_REGISTER_OPERATIONS
15296 architectures.
15297
15298 2019-03-29 Jim Wilson <jimw@sifive.com>
15299
15300 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15301 Clear MASK_RVC and then set if C subset supported.
15302
15303 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15304
15305 PR c/89872
15306 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15307 non-addressable complit into its initializer if it is volatile.
15308
15309 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15310
15311 * opts-common.c (integral_argument): Set errno properly in one case.
15312
15313 2019-03-29 Martin Liska <mliska@suse.cz>
15314
15315 * doc/invoke.texi: Remove -Wchkp from documentation.
15316
15317 2019-03-29 Martin Liska <mliska@suse.cz>
15318
15319 * dbgcnt.c (print_limit_reach): New function.
15320 (dbg_cnt): Use it.
15321
15322 2019-03-29 Martin Liska <mliska@suse.cz>
15323
15324 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15325 (dbg_cnt_process_opt): Parse first tokens aas
15326 dbg_cnt_process_single_pair is also using strtok.
15327
15328 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15329
15330 PR rtl-optimization/87485
15331 * function.c (expand_function_end): Move stack_protect_epilogue
15332 before loading of return value into hard register(s).
15333
15334 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15335
15336 PR middle-end/89621
15337 * tree-inline.h (struct copy_body_data): Add
15338 dont_remap_vla_if_no_change flag.
15339 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15340 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15341 and remap_type_2 returns false.
15342 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15343 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15344 only from where it is copied to nested contexts.
15345
15346 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15347
15348 PR target/89865
15349 * config/i386/i386.md (RMW operation with LEA peephole):
15350 Use LEAMODE mode attribute instead of SWI mode iterator for
15351 LEA pattern.
15352
15353 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15354
15355 PR target/89848
15356 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15357 Also process XEXP (src, 0) of a shift insn.
15358
15359 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15360
15361 PR middle-end/89725
15362 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15363 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15364
15365 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15366
15367 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15368 test.
15369 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15370 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15371 immediately after first one with df_analyze in between, but rather
15372 process all bbs, queueing ones that need second pass in a worklist,
15373 df_analyze, process queued debug insn changes and if second pass is
15374 needed, process bbs from worklist, df_analyze, process queued debug
15375 insns again.
15376
15377 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15378 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15379 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15380
15381 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15382
15383 PR c/79022
15384 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15385 definition.
15386
15387 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15388
15389 PR target/85667
15390 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15391 function for 32-bit MS_ABI.
15392 (function_value_ms_32): New function.
15393
15394 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15395
15396 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15397 (movdi): Call gen_movdi_symbol_save_scc.
15398 (gen_movdi_symbol_save_scc): New insn and split.
15399
15400 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15401
15402 PR rtl-optimization/89313
15403 * function.c (matching_constraint_num): New static function.
15404 (match_asm_constraints_1): Use it. Fixup white space and comment.
15405 Don't replace inputs with non-matching constraints which conflict
15406 with early clobber outputs.
15407
15408 2019-03-27 Jeff Law <law@redhat.com>
15409
15410 PR rtl-optimization/87761
15411 PR rtl-optimization/89826
15412 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15413 slightly later.
15414 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15415 note problem to get REG_DEAD/REG_UNUSED notes updated.
15416
15417 2019-03-27 Richard Biener <rguenther@suse.de>
15418
15419 PR tree-optimization/89463
15420 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15421 queue edges to remove.
15422 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15423 dead stmts. Delay edge removal until PHIs are removed to
15424 make debug-stmt creation not confused by seemingly degenerate
15425 PHIs.
15426
15427 2019-03-27 Alan Modra <amodra@gmail.com>
15428
15429 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15430 throughout file.
15431 * config/rs6000/darwin.h: Likewise.
15432 * config/rs6000/rs6000.c: Likewise.
15433
15434 2019-03-27 Alan Modra <amodra@gmail.com>
15435
15436 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15437 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15438
15439 2019-03-26 Andrew Waterman <andrew@sifive.com>
15440 Jim Wilson <jimw@sifive.com>
15441
15442 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15443 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15444 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15445 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15446 (generic_alu): Add auipc to type list.
15447 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15448 (riscv_microarchitecture): Declare.
15449 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15450 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15451 field.
15452 (riscv_microarchitecture): New.
15453 (sifive_7_tune_info): New.
15454 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15455 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15456 entries.
15457 (riscv_store_data_bypass_p): New.
15458 (riscv_option_override): Set riscv_microarchitecture from
15459 cpu->microarchitecture.
15460 * config/riscv/riscv.md: Include sifive-7.md.
15461 (type): Add auipc.
15462 (tune): New.
15463 (auipc<mode>): Change type to auipc.
15464 (restore_stack_nonlocal): New.
15465 * config/riscv/sifive-7.md: New.
15466 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15467
15468 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15469
15470 PR target/89827
15471 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15472 Also process XEXP (src, 0) of a shift insn.
15473
15474 2019-03-26 Richard Biener <rguenther@suse.de>
15475
15476 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15477 (copy_debug_stmt): Likewise.
15478 (expand_call_inline): Likewise.
15479 (copy_bb): Avoid redundant lookup & set of gimple_block.
15480 * gimple-low.c (lower_gimple_return): Likewise.
15481 (lower_builtin_setjmp): Likewise.
15482
15483 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15484
15485 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15486 is constant 0, turn into static const data member initialized to false.
15487 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15488 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15489
15490 2019-03-26 Jason Merrill <jason@redhat.com>
15491 Jakub Jelinek <jakub@redhat.com>
15492
15493 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15494 method.
15495 (mem_alloc_description::release_object_overhead): Fix comment typos.
15496 * hash-table.h (hash_table::~hash_table): Call
15497 release_instance_overhead only if m_entries is non-NULL, otherwise
15498 call unregister_descriptor.
15499
15500 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15501
15502 PR tree-optimization/81740
15503 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15504 In case of outer loop vectorization, check for backward dependence
15505 at the inner loop if outer loop dependence is reversed.
15506
15507 2019-03-26 Alan Modra <amodra@gmail.com>
15508
15509 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15510 rs6000_vector_mem init. Correct wI and wJ comment.
15511
15512 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15513
15514 PR rtl-optimization/88347
15515 PR rtl-optimization/88423
15516 * sched-deps.c (sched_analyze_insn): Take into account that for
15517 tablejumps the barrier appears after a label and a jump_table_data.
15518
15519 2019-03-25 Martin Sebor <msebor@redhat.com>
15520
15521 PR c/89812
15522 * c-common.c (check_user_alignment): Rename local. Correct maximum
15523 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15524 convert it to UHWI when it fits.
15525
15526 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15527
15528 PR debug/86964
15529 * dwarf2out.c (premark_used_variables): New function.
15530 (prune_unused_types_walk): Do not mark not premarked external
15531 variables.
15532 (prune_unused_types): Call premark_used_variables.
15533
15534 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15535
15536 PR rtl-optimization/89676
15537 * lra-constraints.c (curr_insn_transform): Do match reload for
15538 early clobbers when the match was successful only for different
15539 registers.
15540
15541 2019-03-25 Martin Sebor <msebor@redhat.com>
15542
15543 * doc/extend.texi (Common Type Attributes): Document vector_size.
15544 (Common Variable Attributes): Mention size constraint. Correct
15545 quoting and typos.
15546 (Vector Extensions): Use @dfn when defining bas type. Clarify
15547 base type and size constraints.
15548
15549 2019-03-25 Richard Biener <rguenther@suse.de>
15550
15551 PR tree-optimization/89789
15552 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15553 changes from non-undefined back to undefined.
15554
15555 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15556
15557 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15558 heap string and a gc string, but since this variable is unknown to
15559 ggc the gc string might get reused and corrupted. Fixed by always
15560 using a heap string.
15561
15562 2019-03-25 Richard Biener <rguenther@suse.de>
15563
15564 PR tree-optimization/89779
15565 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15566 to remove IV defs, delay actual removal.
15567 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15568 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15569 very end, properly also reset loop control IV information.
15570
15571 2019-03-25 Richard Biener <rguenther@suse.de>
15572
15573 PR tree-optimization/89802
15574 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15575 move EH data to folded stmt.
15576
15577 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15578
15579 * config/s390/s390-builtin-types.def: Remove few unused types and
15580 fix sort order for others.
15581
15582 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15583
15584 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15585 expected and found types with -mdebug during builtin matching.
15586
15587 2019-03-25 Richard Biener <rguenther@suse.de>
15588
15589 PR middle-end/89790
15590 * fold-const.c (operand_equal_p): Revert last change with
15591 updated comment.
15592
15593 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15594
15595 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15596 notes for the result of the __tls_get_addr calls.
15597 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15598
15599 2019-03-24 Jeff Law <law@redhat.com>
15600
15601 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15602
15603 PR rtl-optimization/87761
15604 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15605 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15606 as needed.
15607 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15608 rescans. Reprocess blocks as needed, calling df_analyze before
15609 reprocessing. Always call df_analyze before fixing up debug bind
15610 insns.
15611
15612 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15613
15614 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15615 big endian.
15616
15617 2019-03-22 Andrew Pinski <apinski@marvell.com>
15618
15619 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15620 attrribute for uxtw.
15621
15622 2019-03-26 Jeff Law <law@redhat.com>
15623
15624 PR rtl-optimization/87761
15625 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15626 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15627 (mips_split_move): Accept new INSN argument. Try to forward SRC
15628 into the next instruction.
15629 (mips_split_move_insn): Pass INSN through to mips_split_move.
15630
15631 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15632
15633 PR rtl-optimization/89676
15634 * lra-constraints.c (curr_insn_transform): Do match reload for
15635 early clobbers even if the match was successful.
15636
15637 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15638
15639 PR c++/87481
15640 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15641
15642 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15643
15644 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15645
15646 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15647
15648 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15649 <avx512>_fmsub_<mode>_mask3<round_name>,
15650 <avx512>_fnmadd_<mode>_mask3<round_name>,
15651 <avx512>_fnmsub_<mode>_mask3<round_name>,
15652 avx512f_vmfmadd_<mode>_mask3<round_name>,
15653 avx512f_vmfmsub_<mode>_mask3<round_name>,
15654 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15655 instead of register_operand and %v instead of v for match_operand 1.
15656 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15657 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15658 <round_nimm_predicate> instead of register_operand and %v instead of v
15659 for match_operand 1.
15660
15661 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15662 <avx512>_fmadd_<mode>_mask3<round_name>,
15663 <avx512>_fmsub_<mode>_mask<round_name>,
15664 <avx512>_fmsub_<mode>_mask3<round_name>,
15665 <avx512>_fnmadd_<mode>_mask<round_name>,
15666 <avx512>_fnmadd_<mode>_mask3<round_name>,
15667 <avx512>_fnmsub_<mode>_mask<round_name>,
15668 <avx512>_fnmsub_<mode>_mask3<round_name>,
15669 <avx512>_fmaddsub_<mode>_mask<round_name>,
15670 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15671 <avx512>_fmsubadd_<mode>_mask<round_name>,
15672 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15673 <round_nimm_predicate> instead of nonimmediate_operand.
15674 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15675 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15676 Use register_operand instead of <round_nimm_predicate> for the
15677 operand that needs to match output.
15678 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15679 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15680 Likewise. Formatting fixes.
15681
15682 PR target/89784
15683 * config/i386/i386.c (enum ix86_builtins): Remove
15684 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15685 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15686 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15687 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15688 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15689 __builtin_ia32_vfmsubss3_mask3): New builtins.
15690 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15691 avx512f_vmfmadd_<mode>_mask3<round_name>,
15692 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15693 *avx512f_vmfmsub_<mode>_mask<round_name>,
15694 avx512f_vmfmsub_<mode>_mask3<round_name>,
15695 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15696 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15697 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15698 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15699 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15700 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15701 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15702 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15703 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15704 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15705 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15706 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15707 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15708 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15709 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15710 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15711 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15712 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15713 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15714 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15715 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15716 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15717 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15718 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15719 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15720 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15721 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15722 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15723
15724 2019-03-21 Martin Sebor <msebor@redhat.com>
15725
15726 PR tree-optimization/89350
15727 * builtins.c (compute_objsize): Also ignore offsets whose upper
15728 bound is negative.
15729 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15730 (builtin_memref::builtin_memref): Initialize new member.
15731 Allow EXPR to be null.
15732 (builtin_memref::extend_offset_range): Replace local with a member.
15733 Avoid assuming pointer offsets are unsigned.
15734 (builtin_memref::set_base_and_offset): Determine base object
15735 before computing offset range.
15736 (builtin_access::builtin_access): Handle memset.
15737 (builtin_access::generic_overlap): Replace local with a member.
15738 (builtin_access::strcat_overlap): Same.
15739 (builtin_access::overlap): Same.
15740 (maybe_diag_overlap): Same.
15741 (maybe_diag_access_bounds): Same.
15742 (wrestrict_dom_walker::check_call): Handle memset.
15743 (check_bounds_or_overlap): Same.
15744
15745 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15746 Jakub Jelinek <jakub@redhat.com>
15747
15748 PR lto/89692
15749 * tree.c (fld_type_variant, fld_incomplete_type_of,
15750 fld_process_array_type): Call fld->pset.add and don't call
15751 add_tree_to_fld_list if it returns true.
15752 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15753 non-marked types from TYPE_NEXT_VARIANT list.
15754 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15755
15756 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15757
15758 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15759 to false, if true, don't alloc_entries during construction, but defer
15760 it to the first method that needs m_entries allocated.
15761 (hash_table::hash_table, hash_table::~hash_table,
15762 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15763 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15764 hash_table::clear_slot, hash_table::traverse_noresize,
15765 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15766 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15767 false.
15768 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15769 NO_INSERT instead of find_with_hash.
15770 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15771 hash_set::m_table): Add Lazy to template params of hash_table.
15772 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15773 * attribs.c (test_attribute_exclusions): Likewise.
15774 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15775 hash_set. Add tests for hash_set with Lazy = true.
15776
15777 2019-03-21 Richard Biener <rguenther@suse.de>
15778
15779 PR tree-optimization/89779
15780 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15781 checks with respect to released SSA names now having error_mark_node
15782 type.
15783 * fold-const.c (operand_equal_p): Likewise.
15784
15785 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15786
15787 PR target/89775
15788 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15789 available to ...
15790 (s390_optimize_register_info): Use global_not_special_regno_p to
15791 check for global regs.
15792
15793 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15794
15795 PR target/89752
15796 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15797 update this_alternative nor this_alternative_set.
15798
15799 2019-03-19 Jim Wilson <jimw@sifive.com>
15800
15801 PR target/89411
15802 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15803 align, size, offset. Use them to handle a BLKmode reference. Update
15804 comment.
15805 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15806
15807 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15808
15809 PR rtl-optimization/89768
15810 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15811 instead of GEN_INT.
15812 (unroll_loop_runtime_iterations): Likewise.
15813
15814 2019-03-19 Martin Sebor <msebor@redhat.com>
15815
15816 PR tree-optimization/89644
15817 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15818 rather than endptr as an indicator of nul-termination.
15819
15820 PR tree-optimization/89644
15821 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15822 arrays in determining sequence sizes in strncpy and stpncpy.
15823
15824 2019-03-19 Martin Liska <mliska@suse.cz>
15825
15826 PR middle-end/89737
15827 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15828 unlikely_edges if there's an edge that belongs to both these sets.
15829
15830 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15831
15832 PR target/89746
15833 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15834 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15835 go via a stack temporary.
15836
15837 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15838
15839 PR target/89378
15840 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15841 instead of gen_rtx_SUBREG.
15842 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15843
15844 2019-03-19 Richard Biener <rguenther@suse.de>
15845
15846 PR debug/88389
15847 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15848
15849 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15850
15851 PR lto/87809
15852 PR lto/89335
15853 * tree.c (free_lang_data_in_decl): Do not free context of C++
15854 destrutors.
15855
15856 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15857
15858 PR target/89506
15859 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15860 subs for the first alternative except when operands[3] is 1.
15861
15862 PR target/89752
15863 * gimplify.c (gimplify_asm_expr): For output argument with
15864 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15865 diagnose error.
15866
15867 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15868
15869 PR rtl-optimization/89753
15870 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15871 explicit unrolling factor even more robust.
15872
15873 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15874
15875 PR target/89726
15876 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15877 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15878 signed zeros, do another copysign after the compensation.
15879
15880 2019-03-18 Martin Sebor <msebor@redhat.com>
15881
15882 PR tree-optimization/89720
15883 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15884 more conservatively, the same as anti-range.
15885
15886 2019-03-18 Richard Biener <rguenther@suse.de>
15887
15888 PR middle-end/88945
15889 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15890 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15891 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15892 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15893
15894 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15895
15896 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15897 Extend queue to 1024 entries.
15898 Add "consumed" field.
15899 (gomp_print_output): Remove print_index parameter.
15900 Add final parameter.
15901 Change limit to unsigned.
15902 Use consumed field to implement circular buffer.
15903 Detect interrupted print in final pass.
15904 Flush output at the end.
15905 (run): Update gomp_print_output usage.
15906 (main): Initialize kernargs->output_data.consumed.
15907
15908 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15909
15910 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15911 calculation of the minimum number of scalar iterations for
15912 fully-predicated loops.
15913
15914 2019-03-18 Martin Jambor <mjambor@suse.cz>
15915
15916 PR tree-optimization/89546
15917 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15918 any propagation to its children took place.
15919
15920 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15921
15922 PR target/89627
15923 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15924 parameter, and make use of it.
15925 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15926
15927 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15928
15929 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15930 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15931 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15932 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15933 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15934 match what the ops is doing.
15935 (push_multi_fp_blink): Likewise.
15936 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15937 compiling for size and elf target.
15938 (arc_save_callee_enter): Adjust note to match what enter/leave
15939 operation does.
15940
15941 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15942
15943 * config/arc/arc.md (tst_movb): Fix constraint.
15944
15945 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15946
15947 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
15948
15949 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15950
15951 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
15952 * config/arc/arc.c (arc_conditional_register_usage): Remove all
15953 reg_alloc_order references.
15954 (size_alloc_order): Define.
15955 (arc_adjust_reg_alloc_order): New function.
15956 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
15957 order.
15958 (ADJUST_REG_ALLOC_ORDER): Define.
15959 (HONOR_REG_ALLOC_ORDER): Likewise.
15960
15961 2019-03-18 Richard Biener <rguenther@suse.de>
15962
15963 PR target/87561
15964 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
15965 loads and stores a bit more.
15966
15967 2019-03-18 Richard Biener <rguenther@suse.de>
15968
15969 PR target/87561
15970 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
15971 load pessimization to stores as well.
15972
15973 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
15974
15975 PR middle-end/86979
15976 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
15977 successor, use NULL as its av set.
15978
15979 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
15980
15981 PR rtl-optimization/89721
15982 * lra-constraints (invariant_p): Return false if side_effects_p holds.
15983
15984 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
15985
15986 PR target/87532
15987 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15988 When handling vec_extract, use modular arithmetic to allow
15989 constant selectors greater than vector length.
15990 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
15991 V1TImode vectors to have constant selector values greater than 0.
15992 Use modular arithmetic to compute vector index.
15993 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
15994 index for in-memory vectors. Correct code generation for
15995 in-register vectors.
15996 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
15997 compute index.
15998
15999 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16000
16001 PR c++/88534
16002 PR c++/88537
16003 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16004 VAR_DECL args.
16005
16006 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16007
16008 PR c++/89709
16009 * tree.c (inchash::add_expr): Strip any location wrappers.
16010 * fold-const.c (operand_equal_p): Move stripping of location wrapper
16011 after hash verification.
16012
16013 PR debug/89704
16014 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
16015 SIGN_EXTEND and ZERO_EXTEND.
16016
16017 2019-03-14 Jason Merrill <jason@redhat.com>
16018 Jakub Jelinek <jakub@redhat.com>
16019
16020 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
16021 than if is_empty (*slot).
16022 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
16023 existing elt and for elt removal.
16024 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
16025 of already removed elt.
16026
16027 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
16028
16029 PR target/89650
16030 * config/i386/i386.c (remove_partial_avx_dependency): Handle
16031 REG_EH_REGION note.
16032
16033 2019-03-14 Martin Liska <mliska@suse.cz>
16034
16035 PR other/89712
16036 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
16037
16038 2019-03-14 Richard Biener <rguenther@suse.de>
16039
16040 PR target/89711
16041 * config/i386/i386.c (make_resolver_func): Properly set
16042 DECL_CONTEXT on the RESULT_DECL.
16043 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
16044
16045 2019-03-14 Richard Biener <rguenther@suse.de>
16046
16047 * gimple-pretty-print.c: Include cfgloop.h.
16048 (dump_gimple_phi): Adjust.
16049 (dump_gimple_bb_header): Dump loop header for GIMPLE.
16050 (pp_cfg_jump): Adjust.
16051 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
16052 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
16053 (lower_phi_internal_fn): Remove.
16054 (verify_gimple_call): Remove IFN_PHI special-casing.
16055 (dump_function_to_file): Dump IL state.
16056 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
16057 done to deal with PHI nodes being present in non-SSA state.
16058
16059 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16060
16061 PR ipa/89684
16062 * multiple_target.c (create_dispatcher_calls): Change
16063 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
16064 In the node->iterate_referring loop, push *ref rather than ref, call
16065 ref->remove_reference () and always pass 0 to iterate_referring.
16066
16067 PR rtl-optimization/89679
16068 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
16069 would contain a paradoxical SUBREG.
16070
16071 2019-03-14 Richard Biener <rguenther@suse.de>
16072
16073 PR tree-optimization/89710
16074 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
16075 safe_dyn_cast.
16076
16077 2019-03-14 Martin Liska <mliska@suse.cz>
16078
16079 * coverage.c (coverage_begin_function): Stream also
16080 end_column.
16081 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16082 documentation about function declaration location.
16083 * gcov-dump.c (tag_function): Print whole range
16084 of function declaration.
16085 * gcov.c (struct function_info): Add end_column field.
16086 (function_info::function_info): Initialize it.
16087 (output_json_intermediate_file): Output {start,end}_column
16088 fields.
16089 (read_graph_file): Read end_column.
16090
16091 2019-03-14 Richard Biener <rguenther@suse.de>
16092
16093 PR middle-end/89698
16094 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16095 that the access types are similar.
16096
16097 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16098
16099 PR tree-optimization/89703
16100 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16101 aren't compatible also with builtin_decl_explicit. Check pure
16102 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16103 and BUILT_IN_STPNCPY{,_CHK}.
16104
16105 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16106
16107 PR target/89523
16108 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16109 addr32 prefix to VSIB address for X32.
16110 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16111 "%M2" to opcode.
16112 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16113 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16114 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16115 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16116 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16117 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16118 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16119 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16120 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16121 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16122 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16123 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16124 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16125 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16126 (*avx512f_scatterdi<mode>): Likewise.
16127
16128 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16129
16130 PR target/85860
16131 * lra-constraints.c (inherit_in_ebb): Update
16132 potential_reload_hard_regs along with live_hard_regs.
16133
16134 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16135
16136 PR debug/89498
16137 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16138 DWARF_OFFSET_SIZE.
16139 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16140
16141 2019-03-13 Martin Sebor <msebor@redhat.com>
16142
16143 PR tree-optimization/89662
16144 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16145 has a size.
16146
16147 2019-03-13 Richard Biener <rguenther@suse.de>
16148
16149 PR middle-end/89677
16150 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16151 throw FP expressions at tree-affine.
16152
16153 2019-03-14 Richard Biener <rguenther@suse.de>
16154
16155 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16156 dump negative integer constants using _Literal (type) -num.
16157
16158 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16159
16160 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16161 nonlocal_value member.
16162
16163 PR middle-end/88588
16164 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16165 (ipa_simd_modify_function_body): Handle PHIs.
16166
16167 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16168
16169 * config/s390/s390.c (s390_option_override_internal): Use more
16170 aggressive inlining parameters.
16171
16172 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16173
16174 * config/s390/3906.md: New file.
16175 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16176 (LONGRUNNING_THRESHOLD): Remove.
16177 (MAX_SCHED_MIX_SCORE): Decrease.
16178 (MAX_SCHED_MIX_DISTANCE): Decrease.
16179 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16180 (struct s390_sched_state): New struct to hold scheduling state.
16181 (S390_SCHED_STATE_NORMAL): Remove.
16182 (S390_SCHED_STATE_CRACKED): Remove.
16183 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16184 (s390_get_sched_attrmask): Use new attribute.
16185 (s390_get_unit_mask): Use new units.
16186 (s390_is_fpd): New function.
16187 (s390_is_fxd): New function.
16188 (s390_is_longrunning): New function.
16189 (s390_sched_score): Use new functions.
16190 (s390_sched_reorder): Likewise.
16191 (s390_sched_variable_issue): Rework and use new functions.
16192 (s390_sched_init): Use new functions.
16193 * config/s390/s390.h (s390_tune_attr): Add z14.
16194 * config/s390/s390.md: Add z14.
16195
16196 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16197
16198 * config/s390/2964.md: Update pipeline description.
16199 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16200 (LONGRUNNING_THRESHOLD): Remove.
16201 (LATENCY_FACTOR): Remove.
16202 (s390_get_unit_mask): Add unit.
16203 (s390_sched_score): Use fxd/fpd.
16204 (s390_sched_variable_issue): Use fxd/fpd.
16205
16206 2019-03-12 Martin Liska <mliska@suse.cz>
16207
16208 * config/i386/i386.c: Reword an error message.
16209
16210 2019-03-12 Martin Jambor <mjambor@suse.cz>
16211
16212 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16213 terminate with newline.
16214
16215 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16216
16217 PR target/52726
16218 * config/s390/s390.md (tabort): Use %wd instead of
16219 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16220 letters and periods.
16221 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16222 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16223 's with %< and %>.
16224
16225 PR middle-end/89663
16226 * builtins.c (expand_builtin_int_roundingfn,
16227 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16228 gcc_unreachable if validate_arglist fails.
16229
16230 2019-03-12 Richard Biener <rguenther@suse.de>
16231
16232 PR tree-optimization/89664
16233 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16234 free the occurance tree after the early out.
16235
16236 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16237
16238 PR middle-end/89655
16239 PR bootstrap/89656
16240 * vr-values.c (vr_values::update_value_range): If
16241 old_vr->varying_p (), don't update it, make new_vr also VARYING
16242 and return false.
16243
16244 2019-03-11 Martin Liska <mliska@suse.cz>
16245
16246 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16247 Fix double string quoting.
16248
16249 2019-03-11 Martin Liska <mliska@suse.cz>
16250
16251 * collect-utils.c (collect_wait): Wrap apostrophes
16252 in gcc internal format with %'.
16253 * collect2.c (main): Likewise.
16254 (scan_prog_file): Likewise.
16255 (scan_libraries): Likewise.
16256 * config/i386/i386.c (ix86_expand_call): Likewise.
16257 (ix86_handle_interrupt_attribute): Likewise.
16258 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16259 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16260 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16261 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16262 * symtab.c (symtab_node::verify_base): Likewise.
16263 * tree-cfg.c (verify_gimple_label): Likewise.
16264 * tree.c (verify_type_variant): Likewise.
16265
16266 2019-03-11 Martin Liska <mliska@suse.cz>
16267
16268 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16269 in a string format message and fix GNU coding style.
16270 (expand_builtin_set_thread_pointer): Likewise.
16271 * common/config/aarch64/aarch64-common.c
16272 (aarch64_rewrite_selected_cpu): Likewise.
16273 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16274 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16275 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16276 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16277 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16278 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16279 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16280 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16281 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16282 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16283 Likewise.
16284 * common/config/riscv/riscv-common.c
16285 (riscv_subset_list::parsing_subset_version): Likewise.
16286 (riscv_subset_list::parse_std_ext): Likewise.
16287 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16288 (riscv_subset_list::parse): Likewise.
16289 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16290 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16291 (aarch64_override_options_internal): Likewise.
16292 (aarch64_validate_mcpu): Likewise.
16293 (aarch64_validate_march): Likewise.
16294 (aarch64_validate_mtune): Likewise.
16295 (aarch64_override_options): Likewise.
16296 * config/alpha/alpha.c (alpha_option_override): Likewise.
16297 * config/arc/arc.c (arc_init): Likewise.
16298 (parse_mrgf_banked_regs_option): Likewise.
16299 (arc_override_options): Likewise.
16300 (arc_expand_builtin_aligned): Likewise.
16301 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16302 (arm_expand_builtin): Likewise.
16303 * config/arm/arm.c (arm_option_check_internal): Likewise.
16304 (arm_configure_build_target): Likewise.
16305 (arm_option_override): Likewise.
16306 (arm_options_perform_arch_sanity_checks): Likewise.
16307 (arm_handle_cmse_nonsecure_entry): Likewise.
16308 (arm_handle_cmse_nonsecure_call): Likewise.
16309 (arm_tls_referenced_p): Likewise.
16310 (thumb1_expand_prologue): Likewise.
16311 * config/avr/avr.c (avr_option_override): Likewise.
16312 * config/bfin/bfin.c (bfin_option_override): Likewise.
16313 * config/c6x/c6x.c (c6x_option_override): Likewise.
16314 * config/cr16/cr16.c (cr16_override_options): Likewise.
16315 * config/cris/cris.c (cris_option_override): Likewise.
16316 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16317 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16318 * config/darwin.c (darwin_override_options): Likewise.
16319 * config/frv/frv.c (frv_expand_builtin): Likewise.
16320 * config/h8300/h8300.c (h8300_option_override): Likewise.
16321 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16322 (ix86_option_override_internal): Likewise.
16323 (warn_once_call_ms2sysv_xlogues): Likewise.
16324 (ix86_expand_prologue): Likewise.
16325 (split_stack_prologue_scratch_regno): Likewise.
16326 (ix86_warn_parameter_passing_abi): Likewise.
16327 * config/ia64/ia64.c (fix_range): Likewise.
16328 * config/m68k/m68k.c (m68k_option_override): Likewise.
16329 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16330 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16331 (mips_set_compression_mode): Likewise.
16332 * config/mmix/mmix.c (mmix_option_override): Likewise.
16333 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16334 * config/msp430/msp430.c (msp430_option_override): Likewise.
16335 * config/nds32/nds32.c (nds32_option_override): Likewise.
16336 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16337 (nios2_option_override): Likewise.
16338 (nios2_expand_custom_builtin): Likewise.
16339 * config/nvptx/mkoffload.c (main): Likewise.
16340 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16341 * config/pa/pa.c (fix_range): Likewise.
16342 (pa_option_override): Likewise.
16343 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16344 (riscv_option_override): Likewise.
16345 * config/rl78/rl78.c (rl78_option_override): Likewise.
16346 * config/rs6000/aix61.h: Likewise.
16347 * config/rs6000/aix71.h: Likewise.
16348 * config/rs6000/aix72.h: Likewise.
16349 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16350 * config/rs6000/freebsd64.h: Likewise.
16351 * config/rs6000/linux64.h: Likewise.
16352 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16353 (rs6000_expand_zeroop_builtin): Likewise.
16354 (rs6000_expand_mtfsb_builtin): Likewise.
16355 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16356 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16357 (rs6000_invalid_builtin): Likewise.
16358 (rs6000_expand_split_stack_prologue): Likewise.
16359 * config/rs6000/rtems.h: Likewise.
16360 * config/rx/rx.c (valid_psw_flag): Likewise.
16361 (rx_expand_builtin): Likewise.
16362 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16363 * config/s390/s390.c (s390_expand_builtin): Likewise.
16364 (s390_function_profiler): Likewise.
16365 (s390_option_override_internal): Likewise.
16366 (s390_option_override): Likewise.
16367 * config/sh/sh.c (sh_option_override): Likewise.
16368 (sh_builtin_saveregs): Likewise.
16369 (sh_fix_range): Likewise.
16370 * config/sh/vxworks.h: Likewise.
16371 * config/sparc/sparc.c (sparc_option_override): Likewise.
16372 * config/spu/spu.c (spu_option_override): Likewise.
16373 (fix_range): Likewise.
16374 * config/visium/visium.c (visium_option_override): Likewise.
16375 (visium_handle_interrupt_attr): Likewise.
16376 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16377 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16378 (dbg_cnt_process_opt): Likewise.
16379 * dwarf2out.c (output_dwarf_version): Likewise.
16380 * except.c (expand_eh_return): Likewise.
16381 * gcc.c (defined): Likewise.
16382 (driver_handle_option): Likewise.
16383 (process_command): Likewise.
16384 (compare_files): Likewise.
16385 (driver::prepare_infiles): Likewise.
16386 (driver::do_spec_on_infiles): Likewise.
16387 (driver::maybe_run_linker): Likewise.
16388 * omp-offload.c (oacc_parse_default_dims): Likewise.
16389 * opts-global.c (handle_common_deferred_options): Likewise.
16390 * opts.c (parse_sanitizer_options): Likewise.
16391 (common_handle_option): Likewise.
16392 (enable_warning_as_error): Likewise.
16393 * passes.c (enable_disable_pass): Likewise.
16394 * plugin.c (parse_plugin_arg_opt): Likewise.
16395 (default_plugin_dir_name): Likewise.
16396 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16397 (default_pch_valid_p): Likewise.
16398 * toplev.c (init_asm_output): Likewise.
16399 (process_options): Likewise.
16400 (toplev::run_self_tests): Likewise.
16401 * tree-cfg.c (verify_gimple_call): Likewise.
16402 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16403 (tree_inlinable_function_p): Likewise.
16404 * var-tracking.c (vt_find_locations): Likewise.
16405
16406 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16407
16408 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16409 only on the else branch.
16410
16411 2019-03-11 Martin Liska <mliska@suse.cz>
16412
16413 * gcov.c (output_intermediate_json_line): Print function
16414 name of each line.
16415 (output_json_intermediate_file): Add new argument.
16416 * doc/gcov.texi: Document the change.
16417
16418 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16419
16420 PR rtl-optimization/89588
16421 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16422 explicit unrolling factor more robust.
16423
16424 2019-03-11 Richard Biener <rguenther@suse.de>
16425
16426 PR tree-optimization/89649
16427 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16428 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16429 on the prolog and epilog loops.
16430 (vect_loop_versioning): Return copy of loop.
16431 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16432 on the non-vectorized version of the loop.
16433
16434 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16435
16436 PR target/68924
16437 * config/i386/sse.md (*vec_extractv2di_0_sse):
16438 Add (=r,x) alternative and corresponding splitter.
16439
16440 2019-03-10 Martin Jambor <mjambor@suse.cz>
16441
16442 PR tree-optimization/85762
16443 PR tree-optimization/87008
16444 PR tree-optimization/85459
16445 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16446 it points to if there is a type changing MEM_REF. Adjust all callers.
16447 (build_accesses_from_assign): Disable total scalarization if
16448 contains_vce_or_bfcref_p returns true through the new parameter, for
16449 both rhs and lhs.
16450
16451 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16452
16453 PR c/88568
16454 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16455 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16456
16457 PR target/79645
16458 * common.opt (fdiagnostics-show-labels,
16459 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16460 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16461 gas-locview-support, ginline-points, ginternal-reset-location-views):
16462 Terminate description text with a dot.
16463 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16464 * config/mcore/mcore.opt (m210, m340): Likewise.
16465 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16466 mnops=): Start description text with a capital letter.
16467 * config/arc/arc.opt (msize-level=): Likewise.
16468 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16469 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16470 mnewlib): Likewise.
16471 * config/ft32/ft32.opt (msim): Likewise.
16472 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16473 (mnodiv, mnopm): Terminate description text with a dot.
16474 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16475 a colon.
16476 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16477 Likewise.
16478 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16479 text.
16480
16481 PR rtl-optimization/89634
16482 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16483 are modified in BB_END (e->src) instruction.
16484
16485 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16486
16487 PR target/79926
16488 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16489 messages more amenable to translation, and improve wording.
16490
16491 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16492
16493 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16494 ud- and du-chains between phases.
16495
16496 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16497
16498 PR debug/89631
16499 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16500 instead of POLY_INT_CST.
16501
16502 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16503
16504 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16505 requirement.
16506
16507 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16508
16509 PR target/68924
16510 PR target/78782
16511 PR target/87558
16512 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16513 (_mm_storeu_si64): Ditto.
16514
16515 2019-03-08 Martin Liska <mliska@suse.cz>
16516
16517 PR target/86952
16518 * config/i386/i386.c (ix86_option_override_internal): Disable
16519 jump tables when retpolines are used.
16520
16521 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16522
16523 PR go/63560
16524 * ipa-split.c (execute_split_functions): Do not split
16525 'noinline' or 'section' function.
16526
16527 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16528
16529 PR target/79846
16530 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16531 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16532 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16533
16534 PR ipa/80000
16535 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16536 from diagnostics. Formatting fixes.
16537
16538 PR target/85665
16539 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16540 warn_odr diagnostics.
16541
16542 PR other/80058
16543 * lra-constraints.c (process_alt_operands): Avoid one space before
16544 " at the end of line and another after " on another line in a string
16545 literal.
16546 * attribs.c (handle_dll_attribute): Likewise.
16547 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16548
16549 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16550 warning_at or inform messages in G_() if there is no ?:.
16551
16552 PR tree-optimization/89550
16553 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16554 returned true. Formatting fixes.
16555 (expand_builtin_strnlen): Formatting fixes.
16556 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16557 if warning_at returned true.
16558 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16559
16560 2019-03-08 Richard Biener <rguenther@suse.de>
16561
16562 PR middle-end/89578
16563 * cfgloop.h (struct loop): Add owned_clique field.
16564 * cfgloopmanip.c (copy_loop_info): Copy it.
16565 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16566 cliques.
16567 * tree-inline.c (copy_loops): Remap owned_clique.
16568 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16569 * lto-streamer-out.c (output_cfg): Likewise.
16570
16571 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16572
16573 PR target/80190
16574 * config/darwin.c: Include intl.h.
16575 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16576 composing the message out of two separate parts.
16577
16578 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16579
16580 PR target/80003
16581 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16582 doesn't start with a capital letter and doesn't end with a dot.
16583 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16584 with a capital letter.
16585 (ix86_mangle_function_version_assembler_name): Likewise.
16586 (ix86_generate_version_dispatcher_body): Likewise.
16587 (fold_builtin_cpu): Likewise.
16588 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16589 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16590 translators, wrap full type name in %qs.
16591
16592 PR translation/79999
16593 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16594 depend clause with source (or sink) modifier.
16595 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16596
16597 PR target/89602
16598 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16599 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16600 (avx512f_load<mode>_mask): New define_expand.
16601 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16602 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16603 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16604 __builtin_ia32_movess_mask): New builtins.
16605 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16606 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16607 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16608 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16609
16610 2019-03-07 Martin Jambor <mjambor@suse.cz>
16611
16612 PR lto/87525
16613 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16614 for extern inline functions.
16615
16616 2019-03-07 Martin Jambor <mjambor@suse.cz>
16617
16618 PR ipa/88235
16619 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16620 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16621 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16622 have multiple callees. At the end check if declarations match as
16623 opposed to cgraph_nodes.
16624
16625 2019-03-07 Martin Liska <mliska@suse.cz>
16626
16627 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16628 which is equivalent to searching for this in clones chain.
16629 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16630 names with a neighbour and special case first node in a chain.
16631
16632 2019-01-25 Jason Merrill <jason@redhat.com>
16633
16634 PR c++/80916 - spurious "static but not defined" warning.
16635 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16636 for an internal symbol with DECL_EXTERNAL.
16637
16638 2019-04-07 Richard Biener <rguenther@suse.de>
16639
16640 PR middle-end/89618
16641 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16642 * tree-inline.c (copy_loops): Simplify.
16643
16644 2019-03-07 Martin Liska <mliska@suse.cz>
16645
16646 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16647
16648 2019-03-07 Richard Biener <rguenther@suse.de>
16649
16650 PR tree-optimization/89595
16651 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16652 stmt iterator as reference, take boolean output parameter to
16653 indicate whether the stmt was removed and thus the iterator
16654 already advanced.
16655 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16656 stmts created by folding.
16657
16658 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16659
16660 PR c++/89585
16661 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16662 at toplevel.
16663
16664 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16665
16666 PR rtl-optimization/88845
16667 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16668 LRA.
16669 * lra.c (remove_scratches_1): New function.
16670 (remove_scratches): Use it.
16671 (lra_emit_move): Likewise.
16672
16673 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16674
16675 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16676 unaligned_access variable.
16677 * config/arc/arc.c (arc_override_options): Set unaligned access
16678 default on for HS CPUs.
16679 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16680
16681 2019-03-06 Martin Liska <mliska@suse.cz>
16682
16683 PR gcov-profile/89577
16684 * doc/gcov.texi: Prefer to use --coverage.
16685 * doc/sourcebuild.texi: Likewise.
16686
16687 2019-03-02 Jason Merrill <jason@redhat.com>
16688
16689 PR c++/86485 - -Wmaybe-unused with empty class ?:
16690 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16691
16692 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16693
16694 PR target/89587
16695 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16696 if_multiarch.
16697
16698 PR middle-end/89590
16699 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16700 exactly one argument.
16701
16702 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16703 Richard Sandiford <richard.sandiford@arm.com>
16704
16705 PR tree-optimization/89570
16706 * match.pd (vec_cond into cond_op simplification): Don't use
16707 get_conditional_internal_fn, use as_internal_fn (cond_op).
16708
16709 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16710
16711 PR target/89222
16712 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16713 to decide when to split off a non-zero offset from a symbol.
16714 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16715 in function symbols.
16716
16717 2019-03-05 Richard Biener <rguenther@suse.de>
16718
16719 PR tree-optimization/89594
16720 * tree-if-conv.c (pass_if_conversion::execute): Handle
16721 case where .LOOP_VECTORIZED_FUNCTION was removed.
16722
16723 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16724
16725 PR bootstrap/89560
16726 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16727 instead alloca it only when needed with the needed size.
16728
16729 PR tree-optimization/89570
16730 * match.pd (vec_cond into cond_op simplification): Guard with
16731 vectorized_internal_fn_supported_p test and #if GIMPLE.
16732
16733 PR tree-optimization/89566
16734 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16735 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16736 Punt if get_user_idx_format succeeds, but idx_format argument is
16737 not provided or doesn't have pointer type, or if idx_args is above
16738 number of provided arguments.
16739
16740 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16741
16742 PR tree-optimization/89437
16743 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16744
16745 2019-03-04 Richard Biener <rguenther@suse.de>
16746
16747 PR middle-end/89572
16748 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16749 safe_dyn_cast.
16750
16751 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16752
16753 PR tree-optimization/89487
16754 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16755 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16756 (distribute_loop): Don't do runtime alias check if there is non-
16757 addressable data reference.
16758 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16759 is a register variable.
16760
16761 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16762
16763 PR target/89506
16764 * config/arm/arm.md (cmpsi2_addneg): Use
16765 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16766 If operands[2] is 0 or INT_MIN, force use of subs.
16767 (*compare_scc splitter): Use gen_int_mode.
16768 (*negscc): Likewise.
16769 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16770
16771 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16772 Monk Chiang <sh.chiang04@gmail.com>
16773
16774 * common/config/riscv/riscv-common.c: Include sstream.
16775 (riscv_subset_list::to_string): New.
16776 (riscv_arch_str): Likewise.
16777 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16778 * config.in: Regen.
16779 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16780 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16781 (riscv_emit_attribute): New.
16782 (riscv_file_start): Emit attribute if needed.
16783 (riscv_option_override): Init riscv_emit_attribute_p.
16784 * config/riscv/riscv.opt (mriscv-attribute): New option.
16785 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16786 * configure: Regen.
16787 * doc/install.texi: Document --with-riscv-attribute.
16788 * doc/invoke.texi: Document -mriscv-attribute.
16789
16790 * common/config/riscv/riscv-common.c:
16791 Include config/riscv/riscv-protos.h.
16792 (INCLUDE_STRING): Defined.
16793 (RISCV_DONT_CARE_VERSION): Defined.
16794 (riscv_subset_t): Declare.
16795 (riscv_subset_t::riscv_subset_t): New.
16796 (riscv_subset_list): Declare.
16797 (riscv_subset_list::riscv_subset_list): New.
16798 (riscv_subset_list::~riscv_subset_list): Likewise.
16799 (riscv_subset_list::parsing_subset_version): Likewise.
16800 (riscv_subset_list::parse_std_ext): Likewise.
16801 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16802 (riscv_subset_list::add): Likewise.
16803 (riscv_subset_list::lookup): Likewise.
16804 (riscv_subset_list::xlen): Likewise.
16805 (riscv_subset_list::parse): Likewise.
16806 (riscv_supported_std_ext): Likewise.
16807 (current_subset_list): Likewise.
16808 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16809 parse.
16810
16811 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16812
16813 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16814 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16815 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16816
16817 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16818
16819 PR rtl-optimization/85899
16820 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16821 fallthru edges leading to the exit block.
16822
16823 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16824
16825 PR target/89517
16826 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16827 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16828
16829 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16830
16831 PR tree-optimization/89535
16832 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16833 for each operand. Calculate the fallback choice for mask operands
16834 and pass it to vect_get_vec_def_for_operand.
16835
16836 2019-03-01 Richard Biener <rguenther@suse.de>
16837
16838 PR middle-end/89541
16839 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16840 get virtual operands.
16841 (get_expr_operands): Handle CONST_DECL like other decls.
16842
16843 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16844
16845 PR middle-end/89503
16846 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16847 on DECL_P and EXPR_P.
16848
16849 2019-03-01 Richard Biener <rguenther@suse.de>
16850
16851 PR middle-end/89497
16852 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16853 argument, defaulted to zero.
16854 * passes.c (execute_function_todo): Pass down SSA update flags
16855 to cleanup_tree_cfg.
16856 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16857 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16858 form if requested.
16859 (cleanup_tree_cfg): Get and pass down SSA update flags.
16860
16861 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16862
16863 PR bootstrap/89539
16864 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16865 early_lto_debug argument.
16866
16867 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16868
16869 PR tree-optimization/89536
16870 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16871 only whether bit #0 of the value is 0 instead of the entire value.
16872
16873 2019-02-28 Marek Polacek <polacek@redhat.com>
16874
16875 PR c++/87068 - missing diagnostic with fallthrough statement.
16876 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16877 at the end of a seq, save its location to walk_stmt_info.
16878 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16879 a switch.
16880
16881 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16882
16883 PR lto/88585
16884 * tree.c (find_atomic_core_type): Move ahead in file.
16885 (check_base_type): Correctly compare alignments of atomic types.
16886
16887 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16888
16889 PR target/89455
16890 * config/i386/i386.c (get_builtin_code_for_version): Identify
16891 Westmere from PCLMUL, instead of AES.
16892
16893 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16894
16895 PR target/89434
16896 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16897 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16898 -UINTVAL (...).
16899
16900 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16901
16902 PR target/88530
16903 * config/aarch64/aarch64-option-extensions.def: Document it.
16904 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16905 if empty hwcaps.
16906
16907 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16908
16909 PR c/89520
16910 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16911 builtins if they don't have a single scalar floating point argument.
16912 Formatting fixes.
16913
16914 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16915
16916 PR rtl-optimization/89490
16917 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16918 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16919 block section is not mergeable.
16920
16921 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16922
16923 PR target/70341
16924 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16925 old define_insn to ...
16926 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16927 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16928 Rename old define_insn to ...
16929 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16930 (thumb2_casesi_internal_pic): New define_expand. Rename old
16931 define_insn to ...
16932 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16933 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16934 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16935
16936 2019-02-27 Richard Biener <rguenther@suse.de>
16937
16938 PR debug/88878
16939 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16940
16941 2019-02-27 Richard Biener <rguenther@suse.de>
16942
16943 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
16944 building.
16945
16946 2019-02-27 Richard Biener <rguenther@suse.de>
16947
16948 PR debug/88878
16949 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
16950 parameter, prefix section name with .gnu.debuglto_ if true.
16951 (dwarf2out_finish): Pass false to output_comdat_type_unit.
16952 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
16953
16954 2019-02-27 Richard Biener <rguenther@suse.de>
16955
16956 PR debug/89514
16957 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
16958 rather than on use_debug_types, doing what output_die does.
16959 (value_format): Likewise.
16960
16961 2019-02-27 Martin Jambor <mjambor@suse.cz>
16962 Martin Sebor <msebor@redhat.com>
16963
16964 * doc/invoke.texi (Warning Options): Reword description of
16965 -Wno-absolute-value.
16966
16967 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16968
16969 PR tree-optimization/89280
16970 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
16971 builtin_setjmp_setup_bb): New functions.
16972 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
16973 When visiting __builtin_setjmp_setup block, queue in special
16974 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
16975 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
16976 from visited after the loop if they don't have any visited successor
16977 blocks.
16978
16979 2018-02-26 Steve Ellcey <sellcey@marvell.com>
16980
16981 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
16982 New function.
16983 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
16984
16985 2019-02-26 Jakub Jelinek <jakub@redhat.com>
16986
16987 PR c++/89507
16988 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
16989 with types other than sizetype/ssizetype.
16990
16991 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
16992
16993 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
16994 (enum sparc_processor_type): ...this.
16995 (enum sparc_code_model_type): New enumeration type.
16996 (enum sparc_memory_model_type): Tweak comments.
16997 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
16998 (mtune): Likewise.
16999 (mcmodel): Use sparc_code_model enumeration and variable.
17000 (sparc_code_model): New enumeration.
17001 (mdebug): Add Undocumented marker.
17002 * config/sparc/sparc.h (enum cmodel): Delete.
17003 (sparc_cmodel): Likewise.
17004 (TARGET_CM_MEDLOW): Adjust to above renaming.
17005 (TARGET_CM_MEDMID): Likewise.
17006 (TARGET_CM_MEDANY): Likewise.
17007 (TARGET_CM_EMBMEDANY): Likewise.
17008 * config/sparc/sparc.c (sparc_cmodel): Delete.
17009 (sparc_option_override): Remove string/value mapping support for the
17010 code model. Move code and memory model support to after the handling
17011 of target flags. Do private machine setup last.
17012 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
17013 (sparc_legitimize_reload_address): Likewise.
17014 (sparc_output_mi_thunk): Likewise.
17015 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
17016
17017 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17018
17019 PR tree-optimization/89500
17020 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
17021 (handle_builtin_strlen): Remove noncst_bound variable. Always
17022 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
17023 cst if the first cst bytes starting at x are known to be non-zero,
17024 even if the string is not zero terminated. Don't try to modify
17025 *si for strnlen. Update strlen_to_stridx only for strlen or if
17026 we can prove strnlen returns the same value as strlen would.
17027
17028 2019-02-26 Martin Liska <mliska@suse.cz>
17029
17030 * alloc-pool.h (struct pool_usage): Remove extra
17031 print_dash_line.
17032 * bitmap.h (struct bitmap_usage): Likewise.
17033 * ggc-common.c (struct ggc_usage): Likewise.
17034 * mem-stats.h (struct mem_usage): Likewise.
17035 (mem_alloc_description::dump): Print dash lines
17036 here and repeat header at the end of a table report.
17037 It's then more readable.
17038 * tree-phinodes.c (phinodes_print_statistics): Make
17039 horizontal alignment.
17040 * tree-ssanames.c (ssanames_print_statistics): Likewise.
17041 * vec.c (struct vec_usage): Remove extra print_dash_line.
17042 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
17043
17044 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
17045
17046 * doc/extend.texi (__builtin_object_size):
17047 Use @pxref instead of @xref inside parenthesis.
17048 (__builtin_has_attribute): Add missing comma after @xref.
17049 (__builtin_object_size): Ditto.
17050 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
17051
17052 2019-02-26 Jeff Law <law@redhat.com>
17053
17054 PR rtl-optimization/87761
17055 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
17056 detect obviously dead insns and delete them.
17057
17058 2019-02-26 Richard Biener <rguenther@suse.de>
17059
17060 PR tree-optimization/89505
17061 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
17062 to handle restrict pointed-to vars with multiple subvars
17063 correctly.
17064
17065 2019-02-26 Richard Biener <rguenther@suse.de>
17066
17067 PR tree-optimization/89489
17068 * tree-parloops.c (create_loop_fn): Copy over last_clique.
17069
17070 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17071
17072 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
17073 and move around comment.
17074 <BIT_AND_EXPR>: Likewise.
17075 <BIT_NOT_EXPR>: Add specific handling for boolean types.
17076
17077 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17078
17079 PR target/89474
17080 * config/i386/i386.c (remove_partial_avx_dependency): Call
17081 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17082 after changing possibly many instructions to use that pseudo. Fix up
17083 insertion of v4sf_const0 setter at the start of bb.
17084
17085 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17086
17087 PR c/80409
17088 * doc/extend.texi (Variadic Pointer Args): New section.
17089
17090 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17091 Martin Sebor <msebor@gmail.com>
17092
17093 * common.opt (Wattribute-alias): Likewise.
17094 * doc/invoke.texi (Option Summary): List general form of
17095 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17096 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17097 Add cross-references.
17098 (-Wattribute-alias): Rewrite and correct default. Mention
17099 considered attributes (same as for -Wmissing-attributes).
17100
17101 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17102
17103 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17104 (_mm_cvtpd_ps): Likewise.
17105 (_mm_cvttpd_epi32): Likewise.
17106
17107 PR target/89338
17108 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17109 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17110
17111 PR target/89339
17112 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17113
17114 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17115
17116 PR target/88530
17117 * common/config/aarch64/aarch64-common.c
17118 (struct aarch64_option_extension): Add is_synthetic.
17119 (all_extensions): Use it.
17120 (TARGET_OPTION_INIT_STRUCT): Define hook.
17121 (struct gcc_targetm_common): Moved to end.
17122 (all_extensions_by_on): New.
17123 (opt_ext_cmp, typedef opt_ext): New.
17124 (aarch64_option_init_struct): New.
17125 (aarch64_contains_opt): New.
17126 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17127 * config/aarch64/aarch64-option-extensions.def
17128 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17129 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17130 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17131 Set is_synthetic to false.
17132 (crypto): Set is_synthetic to true.
17133 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17134 SYNTHETIC.
17135
17136 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17137
17138 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17139 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17140 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17141 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17142 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17143 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17144 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17145 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17146 Rename ...
17147 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17148 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17149 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17150 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17151 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17152 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17153 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17154 vfmlsl_laneq_high_f16): ... To this.
17155 * config/arm/neon.md: Update comments.
17156
17157 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17158
17159 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17160 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17161 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17162 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17163 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17164 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17165 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17166 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17167 Rename ...
17168 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17169 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17170 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17171 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17172 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17173 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17174 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17175 vfmlslq_laneq_high_f16): ... To this.
17176
17177 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17178
17179 PR rtl-optimization/86096
17180 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17181 comparing mw_order values.
17182
17183 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17184
17185 PR target/89434
17186 * config/arm/arm.md (*subsi3_carryin_const): Use
17187 arm_neg_immediate_operand predicate instead of
17188 arm_not_immediate_operand, "L" constraint instead of "K" and
17189 print it using %n2 instead of %B2.
17190 (*subsi3_carryin_const0): New define_insn.
17191 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17192 instead of arm_not_operand and "I" constraint instead of "K" and
17193 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17194 another match_operand and in the condition check that it is negation
17195 of operands[2].
17196 (*subsi3_carryin_compare_const0): New define_ins.
17197 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17198 *subsi3_carryin_const.
17199 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17200 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17201
17202 PR target/89438
17203 * config/arm.vfp.md (*negdf2_vfp): Use
17204 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17205 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17206
17207 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17208
17209 PR rtl-optimization/89445
17210 * simplify-rtx.c (simplify_ternary_operation): Don't use
17211 simplify_merge_mask on operands that may trap.
17212 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17213 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17214 second operand is CONST_VECTOR, check if any element could be zero.
17215 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17216 their operands can trap.
17217
17218 2019-02-23 Martin Sebor <msebor@redhat.com>
17219
17220 * gimple-ssa-sprintf.c (target_strtol): Rename...
17221 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17222 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17223 check for range error.
17224
17225 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17226
17227 PR driver/69471
17228 * opts-common.c (prune_options): Also prune joined switches
17229 with Negative and RejectNegative.
17230 * config/i386/i386.opt (march=): Add Negative(march=).
17231 (mtune=): Add Negative(mtune=).
17232 * doc/options.texi: Document Negative used together with Joined
17233 and RejectNegative.
17234
17235 2019-02-22 Martin Sebor <msebor@redhat.com>
17236
17237 * doc/extend.texi (Other Builtins): Add
17238 __builtin_is_constant_evaluated.
17239
17240 2019-02-22 Richard Biener <rguenther@suse.de>
17241
17242 PR tree-optimization/87609
17243 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17244
17245 2019-02-22 Jeff Law <law@redhat.com>
17246
17247 PR rtl-optimization/87761
17248 * config/mips/mips.md: Add new combiner pattern to recognize
17249 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17250
17251 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17252
17253 PR target/89324
17254 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17255 destination register in peepholes generating patterns for ADDS/SUBS.
17256 (add<mode>3_compare0,
17257 *addsi3_compare0_uxtw, add<mode>3_compareC,
17258 add<mode>3_compareV_imm, add<mode>3_compareV,
17259 *adds_<optab><ALLX:mode>_<GPI:mode>,
17260 *subs_<optab><ALLX:mode>_<GPI:mode>,
17261 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17262 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17263 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17264 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17265 sub<mode>3_compare1): Allow stack pointer for source register.
17266 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17267
17268 2019-02-22 Martin Sebor <msebor@redhat.com>
17269
17270 PR tree-optimization/88993
17271 PR tree-optimization/88853
17272 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17273 New helper.
17274 (sprintf_dom_walker::call_info::is_string_func): New helper.
17275 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17276 for formatted string functions.
17277 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17278
17279 2019-02-22 Martin Sebor <msebor@redhat.com>
17280
17281 PR c/89425
17282 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17283 unreachable subexpressions.
17284
17285 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17286 Hongtao Liu <hongtao.liu@intel.com>
17287 Sunil K Pandey <sunil.k.pandey@intel.com>
17288
17289 PR target/87007
17290 * config/i386/i386-passes.def: Add
17291 pass_remove_partial_avx_dependency.
17292 * config/i386/i386-protos.h
17293 (make_pass_remove_partial_avx_dependency): New.
17294 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17295 New function.
17296 (pass_data_remove_partial_avx_dependency): New.
17297 (pass_remove_partial_avx_dependency): Likewise.
17298 (make_pass_remove_partial_avx_dependency): Likewise.
17299 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17300 (*extendsfdf2): Add avx_partial_xmm_update.
17301 (truncdfsf2): Likewise.
17302 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17303 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17304
17305 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17306
17307 PR middle-end/85598
17308 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17309 analysis for pass.
17310
17311 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17312
17313 PR target/89444
17314 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17315 (PTA_SKYLAKE): Add PTA_AES.
17316 (PTA_GOLDMONT): Likewise.
17317
17318 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17319
17320 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17321 instruction if enabled.
17322 (aarch64_override_options): Remove reference to return address key.
17323
17324 2019-02-22 Richard Biener <rguenther@suse.de>
17325
17326 PR tree-optimization/89440
17327 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17328 not necessary assert.
17329
17330 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17331
17332 PR fortran/72741
17333 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17334 (oacc_replace_fn_attrib_attr): ... this new function.
17335 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17336 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17337
17338 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17339
17340 * config/arm/arm-cpus.in (ares): Rename to...
17341 (neoverse-n1): ... This. Add ares as alias.
17342 * config/arm/arm-tables.opt: Regenerate.
17343 * config/arm/arm-tune.md: Likewise.
17344 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17345
17346 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17347
17348 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17349 * config/aarch64/aarch64-tune.md: Regenerate.
17350 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17351
17352 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17353
17354 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17355 (neoversen1_tunings): ... This.
17356 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17357 (neoverse-n1): New CPU.
17358 * config/aarch64/aarch64-tune.md: Regenerate.
17359 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17360
17361 2019-02-22 Richard Biener <rguenther@suse.de>
17362
17363 PR middle-end/87609
17364 * cfghooks.h (dependence_hash): New typedef.
17365 (struct copy_bb_data): New type.
17366 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17367 (duplicate_block): Likewise.
17368 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17369 (copy_bbs): Create and pass down copy_bb_data.
17370 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17371 (rtl_duplicate_bb): Likewise.
17372 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17373 remap dependence info.
17374
17375 2019-02-22 Richard Biener <rguenther@suse.de>
17376
17377 PR tree-optimization/87609
17378 * tree-core.h (tree_base): Document special clique values.
17379 * tree-inline.c (remap_dependence_clique): Do not use the
17380 special clique value of one.
17381 (maybe_set_dependence_info): Use clique one.
17382 (clear_dependence_clique): New callback.
17383 (compute_dependence_clique): Clear clique one from all refs
17384 before assigning it (again).
17385
17386 2019-02-21 Martin Sebor <msebor@redhat.com>
17387
17388 * doc/extend.texi (__clear_cache): Correct signature.
17389
17390 2019-02-21 Ian Lance Taylor <iant@golang.org>
17391
17392 PR go/89170
17393 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17394 than output_constant_def.
17395 (add_constant_to_table): New static function.
17396 (output_constant_def): Call add_constant_to_table.
17397 (tree_output_constant_def): Likewise.
17398
17399 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17400
17401 PR c++/89285
17402 * builtins.c (fold_builtin_arith_overflow): If first two args are
17403 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17404 to ifn.
17405
17406 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17407
17408 PR target/87412
17409 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17410 error for -mindirect-branch/-mfunction-return with incompatible
17411 -fcf-protection.
17412
17413 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17414
17415 PR bootstrap/88714
17416 * constraints.md (q): Remove.
17417 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17418 instead of q.
17419
17420 2019-02-21 Martin Jambor <mjambor@suse.cz>
17421
17422 PR hsa/89302
17423 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17424 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17425 (omp_adjust_for_condition): ...here. Added necessary parameters.
17426 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17427 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17428 proper values to new parameters of omp_adjust_for_condition.
17429
17430 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17431
17432 PR middle-end/89412
17433 * expr.c (expand_assignment): If result is a MEM, use change_address
17434 instead of simplify_gen_subreg.
17435
17436 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17437 David Malcolm <dmalcolm@redhat.com>
17438
17439 PR middle-end/89091
17440 * fold-const.c (decode_field_reference): Return NULL_TREE if
17441 lang_hooks.types.type_for_size returns NULL. Check it before
17442 overwriting *exp_. Use return NULL_TREE instead of return 0.
17443
17444 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17445
17446 PR middle-end/88074
17447 PR middle-end/89415
17448 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17449 buggy mpc_norm.
17450
17451 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17452
17453 PR target/89397
17454 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17455 TARGET_SSE in addition to TARGET_SSE_MATH.
17456
17457 (ix86_excess_precision): Ditto.
17458 (ix86_float_exceptions_rounding_supported_p): Ditto.
17459 (use_rsqrt_p): Ditto.
17460 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17461
17462 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17463
17464 PR c/89410
17465 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17466 linenum_arith_t when determining if two adjacent line spans are
17467 close enough to merge.
17468 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17469 lines within each line_span.
17470
17471 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17472
17473 PR target/86487
17474 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17475 paradoxical SUBREGS.
17476
17477 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17478
17479 PR target/88100
17480 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17481 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17482 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17483 range checking it.
17484
17485 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17486
17487 * config/gcn/gcn.c (print_operand): Fix typo.
17488
17489 2019-02-19 Richard Biener <rguenther@suse.de>
17490
17491 PR middle-end/88074
17492 * toplev.c (do_compile): Initialize mpfr's exponent range
17493 based on available float modes.
17494
17495 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17496
17497 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17498 as long as the epilogue isn't completed.
17499
17500 2019-02-18 Martin Sebor <msebor@redhat.com>
17501
17502 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17503 __has_cpp_attribute, and __has_include.
17504
17505 2019-02-18 Martin Sebor <msebor@redhat.com>
17506
17507 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17508
17509 2019-02-18 Martin Sebor <msebor@redhat.com>
17510
17511 PR middle-end/89294
17512 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17513 expression.
17514 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17515
17516 2019-02-18 Richard Biener <rguenther@suse.de>
17517
17518 PR tree-optimization/89296
17519 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17520 of no-warning flag to cases that might emit the bogus warning.
17521
17522 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17523
17524 PR bootstrap/88714
17525 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17526 "q" constraint.
17527 * config/arm/vfp.md (*movdi_vfp): Likewise.
17528 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17529 "q" constraint for operands[0].
17530
17531 PR target/89369
17532 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17533 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17534 pattern in a temporary buffer.
17535 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17536 than 64-operands[2].
17537
17538 PR target/89361
17539 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17540 s390_indirect_branch_settings): Define unconditionally.
17541 (s390_set_current_function): Likewise, but guard the whole body except
17542 the s390_indirect_branch_settings call with
17543 #if S390_USE_TARGET_ATTRIBUTE.
17544 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17545
17546 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17547 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17548 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17549 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17550 HOST_WIDE_INT_1U instead of 1ULL.
17551 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17552 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17553 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17554 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17555 instead of 1UL.
17556 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17557 instead of 1ul.
17558
17559 2019-02-18 Martin Jambor <mjambor@suse.cz>
17560
17561 PR tree-optimization/89209
17562 * tree-sra.c (create_access_replacement): New optional parameter
17563 reg_tree. Use it as a type if non-NULL and access type is not of
17564 a register type.
17565 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17566 to create_access_replacement.
17567 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17568 Check lacc is non-NULL before attempting to re-create it on the RHS.
17569
17570 2019-02-18 Martin Liska <mliska@suse.cz>
17571
17572 PR ipa/89306
17573 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17574 by default.
17575 (symbol_table::free_edge): Recycle m_summary_id.
17576 * cgraph.h (get_summary_id): New.
17577 (symbol_table::release_symbol): Set m_summary_id to -1
17578 by default.
17579 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17580 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17581 function_summary to fast_function_summary.
17582 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17583 * ipa-pure-const.c (class funct_state_summary_t):
17584 Switch from function_summary to fast_function_summary.
17585 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17586 (class ipa_ref_opt_summary_t): Switch from function_summary
17587 to fast_function_summary.
17588 * symbol-summary.h (class function_summary_base): New class
17589 that is created from base of former function_summary.
17590 (function_summary_base::unregister_hooks): New.
17591 (class function_summary): Inherit from function_summary_base.
17592 (class call_summary_base): New class
17593 that is created from base of former call_summary.
17594 (class call_summary): Inherit from call_summary_base.
17595 (struct is_same): New.
17596 (class fast_function_summary): New summary class.
17597 (class fast_call_summary): New summary class.
17598 * vec.h (vec_safe_grow_cleared): New function.
17599
17600 2019-02-18 Martin Liska <mliska@suse.cz>
17601
17602 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17603 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17604 * doc/tm.texi: Document new target hook.
17605 * doc/tm.texi.in: Likewise.
17606 * target.def: Add new target macro.
17607 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17608 suffixes.
17609
17610 2019-02-17 Alan Modra <amodra@gmail.com>
17611
17612 PR target/89271
17613 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17614 output reg on add insn.
17615 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17616
17617 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17618
17619 PR target/89372
17620 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17621 (PMULHRSW): Likewise.
17622 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17623 TARGET_AVX2.
17624 (ssse3_pmulhrswv4hi3): New expander.
17625
17626 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17627
17628 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17629 MMX. Add isa attribute.
17630
17631 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17632
17633 PR rtl-optimization/66152
17634 * builtins.h (c_readstr): Declare.
17635 * builtins.c (c_readstr): Remove forward declaration. Add
17636 null_terminated_p argument, if false, read all bytes from the
17637 string instead of stopping after '\0'.
17638 * expr.c (string_cst_read_str): New function.
17639 (store_expr): Use string_cst_read_str instead of
17640 builtin_strncpy_read_str. Try to store by pieces the whole
17641 exp_len first, and only if that fails, split it up into
17642 store by pieces followed by clear_storage. Formatting fix.
17643
17644 * config/i386/i386.md (*movqi_internal): Remove static from
17645 buf variable. Use output_asm_insn (buf, operands); return "";
17646 instead of return buf;.
17647 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17648 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17649 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17650
17651 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17652
17653 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17654 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17655 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17656 (CC1_SPEC): Likewise.
17657 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17658
17659 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17660
17661 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17662 the base address on 64-bit strict-alignment platforms.
17663
17664 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17665
17666 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17667
17668 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17669
17670 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17671
17672 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17673
17674 PR rtl-optimization/88308
17675 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17676 on copied instruction.
17677
17678 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17679
17680 * final.c (insn_current_reference_address): Replace test on JUMP_P
17681 with test on jump_to_label_p.
17682 * config/visium/visium-passes.def: New file.
17683 * config/visium/t-visium (PASSES_EXTRA): Define.
17684 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17685 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17686 (TRAMPOLINE_ALIGNMENT): Define.
17687 * config/visium/visium.c (visium_option_override): Do not register
17688 the machine-specific reorg pass here.
17689 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17690 for the GR6.
17691 (output_branch): Adjust threshold for long branch instruction.
17692 * config/visium/visium.md (cpu): Move around.
17693 (length): Adjust for the GR6.
17694
17695 2019-02-15 Richard Biener <rguenther@suse.de>
17696 Jakub Jelinek <jakub@redhat.com>
17697
17698 PR tree-optimization/89278
17699 * tree-loop-distribution.c: Include tree-eh.h.
17700 (generate_memset_builtin, generate_memcpy_builtin): Call
17701 rewrite_to_non_trapping_overflow on builtin->size before passing it
17702 to force_gimple_operand_gsi.
17703
17704 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17705
17706 PR other/89342
17707 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17708 optimize_debug.
17709 * opth-gen.awk: Likewise.
17710
17711 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17712
17713 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17714 Enable MMX, SSE and SSE2 by default.
17715 * config/i386/i386.c (ix86_option_override_internal): Do not
17716 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17717
17718 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17719
17720 PR rtl-optimization/89354
17721 * combine.c (make_extraction): Punt if extraction_mode is narrower
17722 than len bits.
17723
17724 2019-02-14 Maya Rashish <coypu@sdf.org>
17725
17726 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17727 * config/netbsd-d.c: New file.
17728 * config/t-netbsd: Add netbsd-d.o
17729
17730 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17731
17732 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17733 affects_type_identity to true for aarch64_vector_pcs.
17734 (aarch64_comp_type_attributes): New function.
17735 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17736
17737 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17738
17739 PR target/88850
17740 * config/arm/iterators.md (ANY64): Add V4HF.
17741
17742 2019-02-14 Martin Liska <mliska@suse.cz>
17743
17744 PR rtl-optimization/89242
17745 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17746 process a transformation.
17747
17748 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17749
17750 PR tree-optimization/89314
17751 * fold-const.c (fold_binary_loc): Cast strlen argument to
17752 const char * before dereferencing it. Formatting fixes.
17753
17754 PR middle-end/89284
17755 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17756
17757 2019-02-13 Ian Lance Taylor <iant@golang.org>
17758
17759 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17760 and set current index for other optimizations.
17761
17762 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17763
17764 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17765 nonimmediate_operand as operand 2 predicate.
17766 (vec_set<VF2_512_256:mode>_0): Ditto.
17767 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17768 (*vec_concatv2si): Remove alternative 2.
17769 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17770 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17771 (vec_concatv2di): Split alternatives 4,5,6 to ...
17772 (*vec_concatv2di_0) ... new pattern.
17773
17774 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17775
17776 PR target/89190
17777 * config/arm/arm.c (ldm_stm_operation_p) Set
17778 addr_reg_in_reglist correctly for first register.
17779 (load_multiple_sequence): Remove dead base check.
17780 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17781
17782 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17783
17784 PR target/88847
17785 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17786 Expose as @aarch64_pred_mov.
17787 * config/aarch64/aarch64.c (aarch64_classify_address):
17788 Use expand_insn which legitimizes operands.
17789
17790 2019-02-13 Martin Liska <mliska@suse.cz>
17791
17792 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17793 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17794 and pointer_offset fields.
17795 (initialize_argument_information): Remove usage of dead
17796 fields.
17797 * cgraph.h (struct cgraph_thunk_info): Remove
17798 add_pointer_bounds_args.
17799 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17800 fields.
17801 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17802 fields.
17803 * config/i386/i386.c (ix86_function_arg_advance): Remove
17804 unrelated comment.
17805 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17806 (def_builtin): Remove usage of dead fields.
17807 (ix86_add_new_builtins): Likewise.
17808 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17809 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17810 (sem_function::init): Likewise.
17811 (sem_variable::merge): Likewise.
17812 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17813 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17814 * lto-cgraph.c (lto_output_node): Likewise.
17815 (lto_output_varpool_node): Likewise.
17816 (input_node): Likewise.
17817 (input_varpool_node): Likewise.
17818 * lto-streamer-out.c (lto_output): Likewise.
17819 * tree-inline.c (expand_call_inline): Remove usage of
17820 assign_stmts.
17821 * tree-inline.h (struct copy_body_data): Likewise.
17822 * varpool.c (varpool_node::dump): Likewise.
17823
17824 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17825
17826 PR middle-end/89303
17827 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17828 into pt->vars_contains_escaped_heap instead of setting
17829 pt->vars_contains_escaped_heap to it.
17830
17831 PR middle-end/89281
17832 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17833 INTVAL (size), compare it to GET_MODE_MASK instead of
17834 1 << GET_MODE_BITSIZE.
17835
17836 PR target/89290
17837 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17838 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17839 -mcmodel=large.
17840
17841 2019-02-13 Martin Liska <mliska@suse.cz>
17842
17843 PR lto/88858
17844 * cfgrtl.c (remove_barriers_from_footer): New function.
17845 (try_redirect_by_replacing_jump): Use it.
17846 (cfg_layout_redirect_edge_and_branch): Likewise.
17847
17848 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17849
17850 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17851 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17852 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17853 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17854 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17855 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17856 New BU_CRYPTO_2.
17857 * config/rs6000/rs6000.c (builtin_function_type)
17858 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17859 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17860 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17861 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17862 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17863
17864 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17865
17866 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17867 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17868
17869 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17870
17871 PR target/89229
17872 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17873 268678 and revision 268657.
17874 (*movti_internal): Likewise.
17875
17876 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17877
17878 PR target/89233
17879 * config/s390/s390.c (s390_decompose_address): Update comment.
17880 (s390_check_qrst_address): Reject invalid address forms after
17881 LRA.
17882
17883 2019-02-12 Martin Liska <mliska@suse.cz>
17884
17885 PR lto/88876
17886 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17887 we need default values of funct_state for a function that
17888 is not optimized.
17889
17890 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17891
17892 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17893 the object to pick the size of stores on strict-alignment platforms.
17894
17895 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17896 (*movdi_insn_sp32): Likewise.
17897 (*movdi_insn_sp64): Likewise.
17898
17899 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17900
17901 PR lto/88677
17902 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17903 types that needs constructiong.
17904 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17905
17906 2019-02-12 Richard Biener <rguenther@suse.de>
17907
17908 PR tree-optimization/89253
17909 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17910 duplicate the loop.
17911
17912 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17913
17914 PR lto/88147
17915 * input.c (selftest::test_line_offset_overflow): New selftest.
17916 (selftest::input_c_tests): Call it.
17917
17918 2019-02-11 Martin Sebor <msebor@redhat.com>
17919
17920 PR tree-optimization/88771
17921 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17922 when -Wstringop-overflow is set.
17923 (builtin_memref::builtin_memref): Adjust excessive upper bound
17924 only when lower bound is not excessive.
17925 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17926 -Wstringop-ovefflow.
17927 (maybe_diag_offset_bounds): Rename...
17928 (maybe_diag_access_bounds): ...to this.
17929 (check_bounds_or_overlap): Adjust for name change above.
17930
17931 2019-02-11 Martin Sebor <msebor@redhat.com>
17932
17933 PR c++/87996
17934 * builtins.c (max_object_size): Move from here...
17935 * builtins.h (max_object_size): ...and here...
17936 * tree.c (max_object_size): ...to here...
17937 * tree.h (max_object_size): ...and here.
17938
17939 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17940
17941 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17942 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17943 for correct semantics.
17944
17945 2019-02-11 Alan Modra <amodra@gmail.com>
17946
17947 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
17948 -mlongcall and -mpltseq.
17949 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
17950 (RS/6000 and PowerPC Options <-mpltseq>): Document.
17951 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
17952 * config/rs6000/sysv4.opt (mpltseq): New option.
17953 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
17954 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
17955 support is lacking. Don't allow -mpltseq with -mbss-plt.
17956 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
17957 -mpltseq given for ELFv1.
17958 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
17959 Only use UNSPEC_PLTSEQ for inline PLT calls.
17960 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
17961 use UNSPEC_PLTSEQ for inline PLT calls.
17962 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
17963 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
17964 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
17965 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
17966 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
17967 (pltseq_mtctr_<mode>): Likewise.
17968
17969 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17970
17971 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
17972 Solaris ld.
17973 * configure: Regenerate.
17974
17975 2019-02-11 Jakub Jelinek <jakub@redhat.com>
17976
17977 PR bootstrap/88714
17978 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
17979 instead of r.
17980
17981 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
17982
17983 * function.c (assign_parm_setup_block): Use the stored
17984 size, not the passed size, when allocating stack-space,
17985 also for a parameter with alignment larger than
17986 MAX_SUPPORTED_STACK_ALIGNMENT.
17987
17988 2019-02-11 Martin Liska <mliska@suse.cz>
17989
17990 PR ipa/89009
17991 * ipa-cp.c (build_toporder_info): Remove usage of a param.
17992 * ipa-inline.c (inline_small_functions): Likewise.
17993 * ipa-pure-const.c (propagate_pure_const): Likewise.
17994 (propagate_nothrow): Likewise.
17995 * ipa-reference.c (propagate): Likewise.
17996 * ipa-utils.c (struct searchc_env): Remove unused field.
17997 (searchc): Always search across AVAIL_INTERPOSABLE.
17998 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
17999 the only called IPA pure const can properly not propagate
18000 across interposable boundary.
18001 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18002
18003 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18004
18005 * config/nds32/nds32.md (call_internal, call_value_internal,
18006 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18007
18008 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18009
18010 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
18011 typo.
18012
18013 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
18014
18015 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
18016 in comments
18017
18018 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18019
18020 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
18021
18022 2019-02-10 Jakub Jelinek <jakub@redhat.com>
18023
18024 PR tree-optimization/89268
18025 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
18026 if preds is non-NULL.
18027
18028 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18029
18030 PR lto/89272
18031 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
18032 polymorphic types.
18033
18034 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18035
18036 * config/nds32/nds32.md (trap): New pattern.
18037
18038 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18039
18040 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
18041 dwarf span.
18042
18043 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18044
18045 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
18046 to split POST_INC.
18047
18048 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18049
18050 * ipa-visibility.c (localize_node): Also do not localize
18051 LDPR_PREVAILING_DEF_IRONLY_EXP.
18052
18053 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18054
18055 PR lto/87957
18056 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
18057 instead of type_with_linkage.
18058
18059 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18060
18061 PR ipa/88755
18062 * params.def (uninlined-function-insns, uninlined-function-time,
18063 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
18064 bound so we don't get overflows.
18065
18066 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18067
18068 * config/rs6000/rs6000-string.c (expand_compare_loop,
18069 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
18070 memcmp/strncmp.
18071
18072 2019-02-09 Jakub Jelinek <jakub@redhat.com>
18073
18074 PR middle-end/89246
18075 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18076 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
18077 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18078
18079 2019-02-09 Alan Modra <amodra@gmail.com>
18080
18081 PR target/88343
18082 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18083 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18084 setup.
18085
18086 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18087
18088 PR middle-end/88560
18089 * lra-constraints.c (process_alt_operands): Don't increase reject
18090 for memory when offset memory is required.
18091
18092 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18093
18094 * config/s390/vector.md: Implement vector copysign.
18095
18096 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18097
18098 * expr.c (expand_constructor): Correct indentations.
18099
18100 2019-02-08 Richard Biener <rguenther@suse.de>
18101
18102 PR tree-optimization/89247
18103 * tree-if-conv.c: Include tree-cfgcleanup.h.
18104 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18105 (tree_if_conversion): Pass through predicate vector.
18106 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18107 inline, see if any if-converted loops we refrece in
18108 LOOP_VECTORIZED calls vanished and fixup.
18109 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18110
18111 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18112
18113 * config/s390/constraints.md (jdd): New constraint.
18114
18115 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18116
18117 PR target/89229
18118 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18119 upper 16 vector registers without TARGET_AVX512VL.
18120 (*movti_internal): Likewise.
18121
18122 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18123
18124 PR rtl-optimization/89234
18125 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18126 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18127 (copy_reg_eh_region_note_backward): Likewise.
18128
18129 2019-02-08 Richard Biener <rguenther@suse.de>
18130
18131 PR middle-end/89223
18132 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18133 doesn't fit in HWI.
18134 (analyze_subscript_affine_affine): Handle failure from
18135 initialize_matrix_A.
18136
18137 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18138
18139 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18140 cfun everywhere.
18141
18142 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18143
18144 PR tree-optimization/86637
18145 PR tree-optimization/89235
18146 * tree-vect-loop.c (optimize_mask_stores): Add an
18147 auto_purge_vect_location sentinel to ensure that vect_location is
18148 purged on exit.
18149 * tree-vectorizer.c
18150 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18151 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18152 to ensure that vect_location is purged on exit.
18153 (pass_slp_vectorize::execute): Likewise, replacing the manual
18154 reset.
18155 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18156
18157 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18158
18159 * config/aarch64/iterators.md (max_opp): New code_attr.
18160 (USMAX): New code iterator.
18161 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18162 (aarch64_smax): Likewise.
18163 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18164 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18165 MINUS (MAX MIN).
18166
18167 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18168
18169 PR target/89229
18170 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18171 for TARGET_AVX512VL.
18172 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18173
18174 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18175
18176 * config/s390/s390-builtin-types.def: Add new types.
18177 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18178 (s390_vec_xlw4): Make the memory operand into a const pointer.
18179 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18180 float.
18181 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18182 a new vector type with the alignment of the scalar memory operand.
18183
18184 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18185 Jakub Jelinek <jakub@redhat.com>
18186
18187 PR bootstrap/88714
18188 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18189 arm_count_ldrdstrd_insns): New declarations.
18190 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18191 MINUS.
18192 (valid_operands_ldrd_strd): New function.
18193 (arm_count_ldrdstrd_insns): New function.
18194 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18195 sets instead of single DImode set and define new insns to match this.
18196
18197 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18198
18199 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18200 Make it a C initializer.
18201
18202 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18203
18204 PR/target 88850
18205 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18206
18207 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18208
18209 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18210 Use neon_dot<q> for type.
18211 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18212
18213 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18214
18215 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18216 Use neon_dot<q> for type.
18217 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18218 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18219
18220 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18221
18222 PR rtl-optimization/89225
18223 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18224 sizes check.
18225
18226 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18227
18228 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18229 after restoring registers saved to allocate the frame on Windows.
18230
18231 2019-02-06 Richard Biener <rguenther@suse.de>
18232
18233 PR tree-optimization/89182
18234 * graphite.h (cached_scalar_evolution_in_region): Declare.
18235 * graphite.c (struct seir_cache_key): New.
18236 (struct sese_scev_hash): Likewise.
18237 (seir_cache): New global.
18238 (cached_scalar_evolution_in_region): New function.
18239 (graphite_transform_loops): Allocate and release seir_cache.
18240 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18241 cached_scalar_evolution_in_region.
18242 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18243 Simplify.
18244 (scop_detection::graphite_can_represent_expr: Use
18245 cached_scalar_evolution_in_region.
18246 (scop_detection::stmt_simple_for_scop_p): Likewise.
18247 (find_params_in_bb): Likewise.
18248 (gather_bbs::before_dom_children): Likewise.
18249 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18250 (add_loop_constraints): Likewise.
18251
18252 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18253
18254 PR middle-end/89210
18255 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18256 operand to new_unary_operation only if both element types are integral
18257 and it isn't a widening conversion. Return NULL_TREE if
18258 new_unary_operation failed.
18259
18260 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18261
18262 PR target/88856
18263 * config/s390/s390.md: Remove load and test FP splitter.
18264
18265 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18266
18267 PR target/89112
18268 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18269 expand_compare_loop, expand_block_compare_gpr,
18270 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18271 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18272 #include "profile-count.h" and "predict.h" for types and functions
18273 needed to work with REG_BR_PROB notes.
18274
18275 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18276
18277 PR target/89112
18278 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18279 for the long branch case.
18280
18281 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18282
18283 PR target/89188
18284 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18285 can throw, non-call exceptions are enabled and we can't delete
18286 dead exceptions or alter cfg. Set must_clean if
18287 delete_insn_and_edges returns true, don't set it blindly for calls.
18288 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18289
18290 PR rtl-optimization/89195
18291 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18292 of the original MEM.
18293
18294 2019-02-05 Martin Liska <mliska@suse.cz>
18295
18296 PR gcov-profile/89000
18297 * gcov.c (function_summary): Remove argument.
18298 (file_summary): New function.
18299 (print_usage): Replace tabs with spaces.
18300 (generate_results): Use new function file_summary.
18301
18302 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18303
18304 PR target/89186
18305 * optabs.c (prepare_cmp_insn): Pass x and y to
18306 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18307
18308 2019-02-05 Richard Biener <rguenther@suse.de>
18309
18310 PR middle-end/89150
18311 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18312 (struct bitmap_element): Drop chain_prev so we properly recurse on
18313 the prev member, supporting tree views.
18314 (struct bitmap_head): GTY skip the obstack member.
18315
18316 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18317
18318 PR c/88698
18319 * doc/extend.texi (Vector Extensions): Add an example of using vector
18320 types together with x86 intrinsics.
18321
18322 2019-02-04 Alan Modra <amodra@gmail.com>
18323
18324 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18325 str[] size to 160, and comment.
18326
18327 2019-02-04 Alan Modra <amodra@gmail.com>
18328
18329 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18330 (rs6000_pltseq_template): Guard output of TLS markers with
18331 TARGET_TLS_MARKERS.
18332 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18333 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18334 to use inline PLT sequences.
18335 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18336 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18337 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18338
18339 2019-02-04 Martin Liska <mliska@suse.cz>
18340
18341 PR ipa/88985
18342 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18343 out when ipa_fn_summaries does not contain entry for callee.
18344
18345 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18346
18347 * config/sparc/sparc.h: Remove superfluous blank lines.
18348 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18349 (got_register_rtx): ...this.
18350 (sparc_got): Adjust to above renaming.
18351 (sparc_tls_got): Likewise.
18352 (sparc_delegitimize_address): Likewise.
18353 (sparc_output_mi_thunk): Likewise.
18354 (sparc_init_pic_reg): Likewise.
18355 (save_local_or_in_reg_p): Fix test on the GOT register.
18356 (USE_HIDDEN_LINKONCE): Move around.
18357 (get_pc_thunk_name): Likewise.
18358 (gen_load_pcrel_sym): Likewise.
18359 (load_got_register): Likewise.
18360
18361 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18362
18363 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18364 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18365
18366 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18367
18368 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18369 into consideration.
18370
18371 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18372
18373 * config.gcc (with_nds32_lib, glibc):
18374 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18375 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18376 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18377
18378 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18379
18380 PR target/89071
18381 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18382 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18383 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18384 (*rcpsf2_sse): Ditto.
18385 (*rsqrtsf2_sse): Ditto.
18386 (sse4_1_round<mode<2): Ditto.
18387
18388 2019-02-03 Richard Biener <rguenther@suse.de>
18389
18390 PR debug/87295
18391 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18392 orig.
18393
18394 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18395
18396 PR middle-end/87887
18397 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18398 Punt with warning on aggregate return or argument types. Ignore
18399 type/mode checking for uniform arguments.
18400
18401 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18402
18403 * combine.c (try_combine): Do not print "Can't combine" messages unless
18404 printing failed combination attempts.
18405
18406 2019-02-01 Martin Jambor <mjambor@suse.cz>
18407
18408 PR hsa/87863
18409 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18410 segment and global segment variables before making them static.
18411
18412 2019-02-01 Martin Jambor <mjambor@suse.cz>
18413
18414 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18415 missed optimization dump with dump_enabled_p.
18416
18417 2019-02-01 Richard Biener <rguenther@suse.de>
18418
18419 PR middle-end/88597
18420 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18421 the instantiate cache.
18422 (instantiate_scev_binary): Elide second operand procesing
18423 if equal to the first.
18424 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18425 (chrec_contains_undetermined): Likewise.
18426 (tree_contains_chrecs): Likewise.
18427
18428 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18429
18430 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18431
18432 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18433
18434 PR tree-optimization/89143
18435 * wide-int-range.h (wide_int_range_absu): Declare.
18436 * wide-int-range.cc (wide_int_range_absu): New function.
18437 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18438
18439 PR tree-optimization/88107
18440 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18441 instead of assertion that eh_region_outermost is non-NULL, if it
18442 is NULL, set *ALL to true and return NULL.
18443 (move_sese_region_to_fn): Adjust caller, if all is set, call
18444 duplicate_eh_regions with NULL region.
18445
18446 2019-02-01 Richard Biener <rguenth@suse.de>
18447
18448 PR rtl-optimization/88593
18449 * mode-switching.c (optimize_mode_switching): Free dominators before
18450 calling cleanup_cfg.
18451
18452 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18453
18454 PR tree-optimization/88932
18455 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18456
18457 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18458
18459 PR middle-end/89137
18460 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18461 bogus clang warning.
18462
18463 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18464
18465 PR target/89071
18466 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18467 alternative to avoid partial SSE register stall for TARGET_AVX.
18468 (truncdfsf2): Ditto.
18469 (sse4_1_round<mode>2): Ditto.
18470
18471 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18472
18473 PR tree-optimization/89008
18474 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18475 process anything of the form X * 0.
18476
18477 2019-01-31 Richard Biener <rguenther@suse.de>
18478
18479 PR tree-optimization/89135
18480 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18481 with abnormal preds.
18482
18483 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18484
18485 PR sanitizer/89124
18486 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18487 always_inline callees into no_sanitize_address callers.
18488
18489 2019-01-31 Richard Biener <rguenther@suse.de>
18490
18491 PR rtl-optimization/89115
18492 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18493
18494 2019-01-30 Martin Sebor <msebor@redhat.com>
18495
18496 PR other/89106
18497 * doc/extend.texi (cast to a union): Correct and expand.
18498
18499 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18500
18501 PR rtl-optimization/87246
18502 * lra-constraints.c (simplify_operand_subreg): Reload memory
18503 in subreg if the address became invalid.
18504
18505 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18506
18507 PR target/87064
18508 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18509 Disable for little-endian.
18510
18511 2019-01-30 Richard Biener <rguenther@suse.de>
18512
18513 PR rtl-optimization/89115
18514 * opts.c (default_options_optimization): Reduce
18515 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18516 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18517 to the default.
18518
18519 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18520
18521 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18522 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18523 type of vector element when vec_extract is implemented by direct
18524 move.
18525
18526 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18527
18528 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18529
18530 2019-01-30 Richard Biener <rguenther@suse.de>
18531
18532 PR tree-optimization/89111
18533 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18534 canonicalization to appropriately sized access types.
18535
18536 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18537
18538 PR c++/89105
18539 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18540 for arguments to functions that are TU-local and shouldn't be
18541 referenced by assembly.
18542
18543 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18544
18545 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18546 after '='.
18547
18548 2019-01-29 Martin Sebor <msebor@redhat.com>
18549
18550 PR c/88956
18551 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18552
18553 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18554
18555 PR c++/66676
18556 PR ipa/89104
18557 * omp-simd-clone.c (simd_clone_clauses_extract)
18558 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18559 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18560
18561 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18562
18563 * config.gcc: Force .init_array for ARC.
18564
18565 2019-01-29 Richard Biener <rguenther@suse.de>
18566
18567 PR debug/87295
18568 * dwarf2out.c (collect_skeleton_dies): New helper.
18569 (copy_decls_for_unworthy_types): Call it.
18570 (build_abbrev_table): Assert we do not try to replace
18571 DW_AT_signature refs with local refs.
18572
18573 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18574
18575 PR middle-end/89002
18576 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18577 for lastprivate/linear IV, push gimplify context around gimplify_assign
18578 and, if it needed any temporaries, pop it into a gimple bind around the
18579 sequence.
18580
18581 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18582
18583 * common.opt (-Wattribute-alias): Remove "no-" from name.
18584 Make -Wattribute-alias command line option and
18585 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18586
18587 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18588
18589 PR target/89073
18590 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18591 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18592 x86 ISA options.
18593 (bmi2): Add missing @opindex.
18594 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18595 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18596 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18597 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18598 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18599 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18600 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18601 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18602 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18603 xsavec, xsaveopt and xsaves options.
18604
18605 2019-01-28 Richard Biener <rguenther@suse.de>
18606
18607 PR debug/89076
18608 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18609 support removal.
18610
18611 2019-01-28 Richard Biener <rguenther@suse.de>
18612
18613 PR tree-optimization/88739
18614 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18615 BIT_FIELD_REFs only are applied to mode-precision operands
18616 when they are integral.
18617 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18618 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18619 BIT_FIELD_REFs of non-mode-precision integral operands.
18620
18621 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18622
18623 PR target/87214
18624 * config/i386/sse.md
18625 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18626 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18627 first constants in pairs are multiples of 2. Formatting fixes.
18628 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18629 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18630 first constants in each quadruple are multiples of 4. Formatting fixes.
18631
18632 2019-01-26 Martin Jambor <mjambor@suse.cz>
18633
18634 PR ipa/88933
18635 * tree-inline.c: Include tree-cfgcleanup.h.
18636 (delete_unreachable_blocks_update_callgraph): Move...
18637 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18638 ...here, make externally visible, make second argument bool, adjust
18639 all callers.
18640 * tree-cfgcleanup.c: Include cgraph.h.
18641 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18642 Declare.
18643 * ipa-prop.c: Include tree-cfgcleanup.h.
18644 (ipcp_transform_function): Call
18645 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18646
18647 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18648
18649 PR rtl-optimization/88846
18650 * ira.c (process_set_for_memref_referenced_p): New.
18651 (memref_referenced_p): Add new param. Use
18652 process_set_for_memref_referenced_p. Add new switch cases.
18653 (memref_used_between_p): Pass new arg to memref_referenced_p.
18654
18655 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18656
18657 PR target/88469
18658 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18659 argument ABI_BREAK. Set to true if the calculated alignment has
18660 changed in gcc-9. Check bit-fields for their base type alignment.
18661 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18662 (aarch64_function_arg_boundary): Likewise.
18663 (aarch64_gimplify_va_arg_expr): Likewise.
18664
18665 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18666
18667 PR middle-end/89037
18668 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18669 instead of accessing TREE_INT_CST_ELT directly.
18670
18671 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18672
18673 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18674 fenv_exceptions description.
18675
18676 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18677
18678 PR rtl-optimization/87763
18679 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18680 Allow SUBREG when matching CC_NZmode compare.
18681
18682 2019-01-25 Richard Biener <rguenther@suse.de>
18683
18684 PR tree-optimization/89049
18685 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18686 Look at the pattern stmt to determine if the stmt is vectorized.
18687
18688 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18689
18690 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18691 (pred_mov<mode>): Handle all-register forms using both a new
18692 alternative and a split.
18693
18694 2019-01-25 Richard Biener <rguenther@suse.de>
18695
18696 PR tree-optimization/86865
18697 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18698 Reject non-do-while loops.
18699
18700 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18701
18702 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18703 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18704 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18705 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18706 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18707 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18708 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18709 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18710 vlogical_operand, gpc_reg_operand, int_reg_operand,
18711 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18712 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18713 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18714 (save_world_operation, restore_world_operation, lmw_operation,
18715 stmw_operation): Use MEM_P and REG_P.
18716 (tie_operand): Use MEM_P.
18717 (vrsave_operation, crsave_operation): Use REG_P.
18718 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18719 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18720 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18721 (call_operand): Use HARD_REGISTER_P.
18722 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18723 Use CONST_INT_P.
18724 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18725 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18726 quad_aligned_load_p, replace_swapped_aligned_store,
18727 recombine_lvx_pattern, replace_swapped_aligned_load,
18728 recombine_stvx_pattern): Use MEM_P.
18729 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18730 Use MEM_P and SYMBOL_REF_P.
18731 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18732 (insn_is_swappable_p): Use REG_P and MEM_P.
18733 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18734 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18735 Use CONST_INT_P.
18736 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18737 Use CONST_DOUBLE_P.
18738 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18739 CONST_WIDE_INT_P.
18740 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18741 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18742 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18743 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18744 reg_or_subregno:
18745 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18746 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18747 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18748 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18749 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18750 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18751 rs6000_split_logical_di): Use CONST_INT_P.
18752 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18753 REG_P and SYMBOL_REF_P.
18754 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18755 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18756 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18757 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18758 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18759 (small_data_operand, print_operand_address): Use CONST_INT_P and
18760 SYMBOL_REF_P.
18761 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18762 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18763 Use HARD_REGISTER_NUM_P.
18764 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18765 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18766 SUBREG_P and SYMBOL_REF_P.
18767 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18768 and HARD_REGISTER_NUM_P.
18769 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18770 reg_or_subregno.
18771 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18772 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18773 MEM_P and REG_P.
18774 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18775 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18776 find_addr_reg): Use REG_P.
18777 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18778 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18779 (offsettable_ok_by_alignment, constant_pool_expr_p,
18780 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18781 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18782 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18783 rs6000_assemble_integer, create_TOC_reference,
18784 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18785 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18786 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18787 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18788 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18789 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18790 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18791 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18792 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18793 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18794 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18795 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18796 and cbranch<mode>4): Use CONST_INT_P.
18797 (multiple define_splits): Use REG_P and SUBREG_P.
18798 (define_expands call, call_value): Use MEM_P.
18799 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18800 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18801 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18802 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18803 and HARD_REGISTER_NUM_P.
18804 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18805
18806 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18807
18808 PR rtl-optimization/88948
18809 * rtl.h (prepare_copy_insn): New prototype.
18810 * gcse.c (prepare_copy_insn): New function, split out from
18811 process_insert_insn.
18812 (process_insert_insn): Use prepare_copy_insn.
18813 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18814 instead of gen_move_insn.
18815
18816 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18817
18818 PR debug/89006
18819 * config/i386/i386.c (ix86_pic_register_p): Return true for
18820 UNSPEC_SET_GOT too.
18821
18822 PR tree-optimization/88964
18823 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18824 punt if HONOR_SNANS (chrec).
18825
18826 PR middle-end/89015
18827 * tree-nested.c (convert_nonlocal_reference_stmt,
18828 convert_local_reference_stmt, convert_tramp_reference_stmt,
18829 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18830 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18831 or GIMPLE_OMP_TASK.
18832
18833 PR tree-optimization/89027
18834 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18835 for "omp simd array" variables.
18836
18837 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18838
18839 PR target/88469
18840 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18841 force the alignment of m_val.
18842
18843 2019-01-24 Richard Biener <rguenther@suse.de>
18844
18845 PR lto/87187
18846 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18847 When in "legacy" debug mode make sure to reset self-origins.
18848
18849 2019-01-24 Martin Liska <mliska@suse.cz>
18850
18851 PR gcov-profile/88994
18852 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18853 result will be always smaller or equal to the original.
18854 * gcov.c (mangle_name): Fix else branch where we should
18855 also copy to PTR and shift the pointer.
18856
18857 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18858
18859 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18860 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18861
18862 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18863
18864 * common/config/i386/i386-common.c
18865 (OPTION_MASK_ISA_ENQCMD_SET,
18866 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18867 (ix86_handle_option): Handle -menqcmd.
18868 * config.gcc (enqcmdintrin.h): New header file.
18869 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18870 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18871 -menqcmd.
18872 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18873 function type.
18874 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18875 __builtin_ia32_enqcmds): New builtins.
18876 * config/i386/i386-c.c (__ENQCMD__): New macro.
18877 * config/i386/i386-option.c (ix86_target_string): Add
18878 -menqcmd.
18879 (ix86_valid_target_attribute_inner_p): Likewise.
18880 * config/i386/i386-expand.c
18881 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18882 IX86_BUILTIN_ENQCMDS.
18883 * config/i386/i386.h (TARGET_ENQCMD): New.
18884 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18885 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18886 (movdir64b_<mode>): Parameterize to enable share expansion code
18887 with ENQCMD in function ix86_expand_builtin.
18888 * config/i386/i386.opt: Add -menqcmd.
18889 * config/i386/immintrin.h: Include enqcmdintrin.h.
18890 * config/i386/enqcmdintrin.h: New intrinsic file.
18891 * doc/invoke.texi: Add -menqcmd.
18892
18893 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18894 Steve Ellcey <sellcey@marvell.com>
18895
18896 PR target/85711
18897 * recog.c (address_operand): Return false on wrong mode for address.
18898 (constrain_operands): Check for mode with 'p' constraint.
18899
18900 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18901
18902 PR target/88998
18903 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18904 Disparage MMX alternative.
18905 (sse2_cvtpd2pi): Ditto.
18906 (sse2_cvttpd2pi): Ditto.
18907
18908 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18909
18910 PR driver/89014
18911 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18912 use-after-free of the result of
18913 aarch64_get_extension_string_for_isa_flags.
18914
18915 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18916
18917 PR c/44715
18918 * doc/extend.texi: Document break and continue behavior in
18919 statement expressions.
18920
18921 2019-01-23 Richard Biener <rguenther@suse.de>
18922
18923 PR tree-optimization/89008
18924 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18925 not leave another stray operand.
18926
18927 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18928
18929 * BASE-VER: Bump to 9.0.1.
18930
18931 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18932
18933 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18934 thunk that returns by reference, use the type of the return object
18935 of the thunk instead of that of the alias to build the dereference.
18936
18937 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18938
18939 * config/arc/atomic.md: Add operand to DMB instruction.
18940
18941 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18942
18943 PR tree-optimization/88964
18944 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
18945 build_zero_cst instead of build_int_cst. Return false for loop
18946 invariants which honor signed zeros.
18947
18948 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
18949
18950 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
18951
18952 2019-01-22 Jakub Jelinek <jakub@redhat.com>
18953
18954 PR target/88965
18955 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
18956 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
18957 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
18958
18959 PR middle-end/88968
18960 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
18961 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
18962
18963 PR target/87064
18964 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
18965 Disable for little endian.
18966
18967 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
18968
18969 PR target/88469
18970 * config/arm/arm.c (arm_needs_double_word_align): Check
18971 DECL_BIT_FIELD_TYPE.
18972
18973 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
18974 H.J. Lu <hongjiu.lu@intel.com>
18975
18976 PR target/88909
18977 * config/i386/i386-builtin.def: Add mask2 to all builtin
18978 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
18979 SPECIAL_ARGS.
18980 * config/i386/i386.c (BDESC): Add mask2 to the definition.
18981 (BDESC_FIRST): Likewise.
18982 (define_builtin): Add an argument for mask2. Updated to handle
18983 both ix86_isa_flags and ix86_isa_flags2.
18984 (define_builtin_const): Likewise.
18985 (define_builtin_pure): Likewise.
18986 (define_builtin2): Deleted.
18987 (define_builtin_const2): Likewise.
18988 (builtin_description): Add a member, mask2.
18989 (bdesc_*): Add mask2 to builtin initializations.
18990 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
18991 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
18992 support.
18993 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
18994
18995 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
18996
18997 PR target/88954
18998 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
18999 noplt attribute.
19000
19001 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19002
19003 PR target/88469
19004 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19005 alignment is dominated by a bitfield with 64-bit aligned base type.
19006 (arm_function_arg): Emit a warning if the alignment has changed since
19007 earlier GCC releases.
19008 (arm_function_arg_boundary): Likewise.
19009 (arm_setup_incoming_varargs): Likewise.
19010
19011 2019-01-22 Richard Biener <rguenther@suse.de>
19012
19013 PR tree-optimization/88862
19014 * graphite-scop-detection.c
19015 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
19016
19017 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
19018
19019 * doc/extend.tex (AMD GCN Function Attributes): New section.
19020 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
19021 * doc/invoke.texi (AMD GCN Options): New section.
19022 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
19023
19024 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
19025
19026 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
19027 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
19028
19029 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19030
19031 PR tree-optimization/88044
19032 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
19033 is false in the first iteration, but !every_iteration, return false
19034 instead of true with niter->niter zero.
19035
19036 PR rtl-optimization/88904
19037 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
19038 any nonequal registers before processing BB_END (b).
19039
19040 PR target/88905
19041 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
19042 GET_MODE (op0).
19043 (expand_binop_directly, expand_doubleword_clz,
19044 expand_doubleword_popcount, expand_ctz, expand_ffs,
19045 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
19046
19047 PR rtl-optimization/49429
19048 PR target/49454
19049 PR rtl-optimization/86334
19050 PR target/88906
19051 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
19052 addressable from here...
19053 (emit_block_op_via_libcall): ... to here.
19054
19055 2019-01-22 Richard Biener <rguenther@suse.de>
19056
19057 * tree-vect-loop.c (vect_analyze_loop_operations): Use
19058 auto_vec for cost vector to fix memleak.
19059 (vectorize_fold_left_reduction): Properly gather SLP defs.
19060 (vectorizable_comparison): Do not swap operands to properly
19061 gather SLP defs.
19062
19063 2019-01-22 Alan Modra <amodra@gmail.com>
19064
19065 PR target/88614
19066 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
19067 stays a reg. Allow a const_int.
19068 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
19069 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
19070 (IS_NOMARK_TLSGETADDR): Define.
19071 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
19072 (rs6000_output_tlsargs): New function.
19073 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
19074 __tls_get_addr call takes an arg.
19075 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
19076 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
19077 delete split..
19078 (call_value_nonlocal_sysv): ..or here, delete split.
19079 (tls_gdld_nomark): Delete.
19080 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19081 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19082 (call_value_nonlocal_sysv): Likewise.
19083 (call_value_nonlocal_sysv_secure): Likewise.
19084 (call_value_nonlocal_aix): Likewise.
19085 (call_value_indirect_aix): Likewise.
19086 (call_value_indirect_elfv2): Likewise.
19087 (call_value_local32, call_value_local64): Disable for no-mark tls.
19088 (call_value_local_aix): Likewise.
19089
19090 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19091
19092 PR target/88938
19093 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19094 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19095
19096 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19097
19098 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19099 string contents as hash_map keys.
19100
19101 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19102
19103 PR c/88928
19104 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19105 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19106 instead of TYPE_ALIGN.
19107 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19108 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19109 pointer from TYPE_STUB_DECL.
19110
19111 2019-01-21 Richard Biener <rguenther@suse.de>
19112
19113 PR tree-optimization/88934
19114 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19115 at the possibly non-constant operand.
19116 (vect_get_constant_vectors): Adjust.
19117
19118 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19119
19120 PR target/71659
19121 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19122 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19123 instead of _X86INTRIN_H_INCLUDED.
19124 * onfig/i386/clwbintrin.h: Likewise.
19125 * config/i386/pkuintrin.h: Likewise.
19126 * config/i386/prfchwintrin.h: Likewise.
19127 * config/i386/rdseedintrin.h: Likewise.
19128 * config/i386/wbnoinvdintrin.h: Likewise.
19129 * config/i386/xsavecintrin.h: Likewise.
19130 * config/i386/xsavesintrin.h: Likewise.
19131 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19132 * config/i386/xsaveintrin.h: Likewise.
19133 * config/i386/xsaveoptintrin.h: Likewise.
19134 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19135 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19136 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19137 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19138 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19139 * config/i386/immintrin.h: Here.
19140
19141 2019-01-20 Martin Jambor <mjambor@suse.cz>
19142
19143 PR ipa/87615
19144 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19145 with aa_walk_budget.
19146 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19147 aa_walk_budget_p parameter.
19148 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19149 walk. Updated all callers.
19150 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19151 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19152 unmodified_parm.
19153 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19154 parameter info. Extract info from fbi. Pass fbi to recursive calls
19155 and to unmodified_parm.
19156 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19157 info, updated call to will_be_nonconstant_expr_predicate.
19158 (param_change_prob): New parameter fbi, limit AA walking.
19159 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19160 calls to various above functions.
19161 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19162 parameter. Use it to limit AA walking.
19163 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19164 fbi, limit AA walk.
19165 (detect_type_change): New parameter fbi, pass it on to
19166 detect_type_change_from_memory_writes.
19167 (detect_type_change_ssa): Likewise.
19168 (aa_overwalked): Removed.
19169 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19170 accordingly, adjust to the neew AA limiting scheme.
19171 (parm_ref_data_preserved_p): Likewise.
19172 (ipa_compute_jump_functions_for_edge): Adjust call to
19173 get_dynamic_type.
19174 (ipa_analyze_call_uses): Likewise.
19175 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19176 (ipa_analyze_node): Initialize aa_walk_budget.
19177 (ipcp_transform_function): Likewise.
19178 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19179 to get_dynamic_type.
19180
19181 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19182
19183 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19184 outside of #if CHECKING_P code.
19185
19186 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19187
19188 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19189 New function, split out from...
19190 (loop_versioning::analyze_stride): ...here.
19191 (loop_versioning::find_per_loop_multiplication): Use gassign.
19192 (loop_versioning::analyze_term_using_scevs): Return a success code.
19193 (loop_versioning::analyze_arbitrary_term): New function.
19194 (loop_versioning::analyze_address_fragment): Use
19195 analyze_arbitrary_term if all else fails.
19196
19197 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19198
19199 PR target/88892
19200 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19201 operands.
19202
19203 2019-01-18 Richard Biener <rguenther@suse.de>
19204
19205 PR tree-optimization/88903
19206 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19207 scalar stmts a SLP shift amount is composed of when detecting
19208 shifts by scalars.
19209
19210 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19211
19212 PR target/88799
19213 * config/arm/arm-cpus.in (mp): New feature.
19214 (sec): New feature.
19215 (fgroup ARMv7ve): Add mp and sec features.
19216 (arch armv7-a): Add options to allow mp and sec extensions.
19217 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19218 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19219 extenstions to the base architecture.
19220 (cpu cortex-a8): Add sec extension to the base architecture.
19221 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19222 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19223 variants down to the base v7-a varaint.
19224 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19225 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19226 of permitted extensions for -march=armv7-a and for
19227 -mcpu=generic-armv7-a.
19228
19229 2019-01-18 Martin Liska <mliska@suse.cz>
19230
19231 * params.def: Fix comment.
19232 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19233 name.
19234 (gimple_gen_ic_func_profiler): Likewise.
19235
19236 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19237
19238 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19239 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19240 and put in error checks for stack protector guard options.
19241 (aarch64_stack_protect_guard): New.
19242 (TARGET_STACK_PROTECT_GUARD): Define.
19243 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19244 (reg_stack_protect_address<mode>): New.
19245 (stack_protect_set): Adjust for SSP_GLOBAL.
19246 (stack_protect_test): Likewise.
19247 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19248 (-mstack-protector-guard): Likewise.
19249 (-mstack-protector-guard-offset): Likewise.
19250
19251 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19252
19253 PR tree-optimization/86214
19254 * tree-inline.h (struct copy_body_data): Add
19255 add_clobbers_to_eh_landing_pads member.
19256 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19257 (copy_edges_for_bb): Call it if EH edge destination is <
19258 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19259 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19260 if flag_stack_reuse != SR_NONE and clear it afterwards.
19261
19262 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19263
19264 PR target/85596
19265 * doc/install.texi (with-multilib-list): Document for aarch64.
19266
19267 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19268
19269 PR target/88734
19270 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19271 (("..."))) with ("...").
19272
19273 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19274
19275 * doc/extend.texi (Built-in Functions for Memory Model Aware
19276 Atomic Operations): Document atomic fetch and nand.
19277
19278 2019-01-18 Martin Liska <mliska@suse.cz>
19279 Richard Biener <rguenther@suse.de>
19280
19281 PR middle-end/88587
19282 * cgraph.h (create_version_clone_with_body): Add new argument
19283 with attributes.
19284 * cgraphclones.c (cgraph_node::create_version_clone): Add
19285 DECL_ATTRIBUTES to a newly created decl. And call
19286 valid_attribute_p so that proper cl_target_optimization_node
19287 is set for the newly created declaration.
19288 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19289 for declaration.
19290 (expand_target_clones): Do not call valid_attribute_p, it must
19291 be already done.
19292 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19293 vector types.
19294
19295 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19296
19297 PR target/88734
19298 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19299 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19300 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19301
19302 2019-01-17 Martin Sebor <msebor@redhat.com>
19303
19304 PR middle-end/88273
19305 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19306 Handle anti-ranges the same as no range at all.
19307
19308 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19309
19310 * config/aarch64/aarch64.c (cgraph.h): New include.
19311 (intl.h): New include.
19312 (supported_simd_type): New function.
19313 (currently_supported_simd_type): Ditto.
19314 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19315 (aarch64_simd_clone_adjust): Ditto.
19316 (aarch64_simd_clone_usable): Ditto.
19317 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19318 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19319 (TARGET_SIMD_CLONE_USABLE): Ditto.
19320 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19321 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19322 call.
19323
19324 2019-01-17 Martin Sebor <msebor@redhat.com>
19325
19326 PR tree-optimization/88800
19327 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19328 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19329 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19330 redundant argument. Add new argument and issue diagnostics under
19331 its control. Detect out-of-bounds access even with warnings
19332 disabled.
19333 (check_bounds_or_overlap): Change return type. Add argument.
19334 (wrestrict_dom_walker::check_call): Adjust.
19335 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19336 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19337 check_bounds_or_overlap's return value.
19338 (handle_builtin_stxncpy): Same.
19339 (handle_builtin_strcat): Same.
19340
19341 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19342 Kwok Cheung Yeung <kcy@codesourcery.com>
19343 Julian Brown <julian@codesourcery.com>
19344 Tom de Vries <tom@codesourcery.com>
19345
19346 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19347
19348 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19349
19350 * doc/sourcebuild.texi: Document dg-require-effective-target
19351 llvm_binutils and offload_gcn.
19352
19353 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19354 Kwok Cheung Yeung <kcy@codesourcery.com>
19355 Julian Brown <julian@codesourcery.com>
19356 Tom de Vries <tom@codesourcery.com>
19357
19358 * doc/sourcebuild.texi: Document dg-required-effective-target
19359 exceptions.
19360
19361 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19362 Kwok Cheung Yeung <kcy@codesourcery.com>
19363 Julian Brown <julian@codesourcery.com>
19364 Tom de Vries <tom@codesourcery.com>
19365 Jan Hubicka <hubicka@ucw.cz>
19366 Martin Jambor <mjambor@suse.cz>
19367
19368 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19369 * configure.ac: Check for dlopen.
19370 * configure: Regenerate.
19371
19372 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19373 Kwok Cheung Yeung <kcy@codesourcery.com>
19374 Julian Brown <julian@codesourcery.com>
19375 Tom de Vries <tom@codesourcery.com>
19376 Jan Hubicka <hubicka@ucw.cz>
19377 Martin Jambor <mjambor@suse.cz>
19378
19379 * common/config/gcn/gcn-common.c: New file.
19380 * config/gcn/driver-gcn.c: New file.
19381 * config/gcn/gcn-builtins.def: New file.
19382 * config/gcn/gcn-hsa.h: New file.
19383 * config/gcn/gcn-modes.def: New file.
19384 * config/gcn/gcn-opts.h: New file.
19385 * config/gcn/gcn-passes.def: New file.
19386 * config/gcn/gcn-protos.h: New file.
19387 * config/gcn/gcn-run.c: New file.
19388 * config/gcn/gcn-tree.c: New file.
19389 * config/gcn/gcn.c: New file.
19390 * config/gcn/gcn.h: New file.
19391 * config/gcn/gcn.opt: New file.
19392 * config/gcn/t-gcn-hsa: New file.
19393
19394 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19395 Kwok Cheung Yeung <kcy@codesourcery.com>
19396 Julian Brown <julian@codesourcery.com>
19397 Tom de Vries <tom@codesourcery.com>
19398 Jan Hubicka <hubicka@ucw.cz>
19399 Martin Jambor <mjambor@suse.cz>
19400
19401 * config/gcn/constraints.md: New file.
19402 * config/gcn/gcn-valu.md: New file.
19403 * config/gcn/gcn.md: New file.
19404 * config/gcn/predicates.md: New file.
19405
19406 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19407
19408 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19409 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19410 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19411 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19412
19413 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19414
19415 PR target/88851
19416 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19417 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19418 it and document registers.
19419
19420 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19421
19422 * config/aarch64/aarch64.c (ares_tunings): Define.
19423 * config/aarch64/aarch64-cores.def (ares): Use the above.
19424
19425 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19426
19427 PR target/88794
19428 Revert:
19429 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19430
19431 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19432 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19433 (_mm512_maskz_fixupimm_round_pd): Ditto.
19434 (_mm512_fixupimm_round_ps): Ditto.
19435 (_mm512_maskz_fixupimm_round_ps): Ditto.
19436 (_mm_fixupimm_round_sd): Ditto.
19437 (_mm_maskz_fixupimm_round_sd): Ditto.
19438 (_mm_fixupimm_round_ss): Ditto.
19439 (_mm_maskz_fixupimm_round_ss): Ditto.
19440 (_mm512_fixupimm_pd): Ditto.
19441 (_mm512_maskz_fixupimm_pd): Ditto.
19442 (_mm512_fixupimm_ps): Ditto.
19443 (_mm512_maskz_fixupimm_ps): Ditto.
19444 (_mm_fixupimm_sd): Ditto.
19445 (_mm_maskz_fixupimm_sd): Ditto.
19446 (_mm_fixupimm_ss): Ditto.
19447 (_mm_maskz_fixupimm_ss): Ditto.
19448 (_mm512_mask_fixupimm_round_pd): Update builtin.
19449 (_mm512_mask_fixupimm_round_ps): Ditto.
19450 (_mm_mask_fixupimm_round_sd): Ditto.
19451 (_mm_mask_fixupimm_round_ss): Ditto.
19452 (_mm512_mask_fixupimm_pd): Ditto.
19453 (_mm512_mask_fixupimm_ps): Ditto.
19454 (_mm_mask_fixupimm_sd): Ditto.
19455 (_mm_mask_fixupimm_ss): Ditto.
19456 * config/i386/avx512vlintrin.h:
19457 (_mm256_fixupimm_pd): Update parameters and builtin.
19458 (_mm256_maskz_fixupimm_pd): Ditto.
19459 (_mm256_fixupimm_ps): Ditto.
19460 (_mm256_maskz_fixupimm_ps): Ditto.
19461 (_mm_fixupimm_pd): Ditto.
19462 (_mm_maskz_fixupimm_pd): Ditto.
19463 (_mm_fixupimm_ps): Ditto.
19464 (_mm_maskz_fixupimm_ps): Ditto.
19465 (_mm256_mask_fixupimm_pd): Update builtin.
19466 (_mm256_mask_fixupimm_ps): Ditto.
19467 (_mm_mask_fixupimm_pd): Ditto.
19468 (_mm_mask_fixupimm_ps): Ditto.
19469 * config/i386/i386-builtin-types.def: Add new types and remove
19470 useless ones.
19471 * config/i386/i386-builtin.def: Update builtin definitions.
19472 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19473 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19474 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19475 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19476 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19477 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19478 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19479 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19480 * config/i386/subst.md:
19481 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19482 (round_saeonly_sd_mask_op4): Ditto.
19483 (round_saeonly_expand_operand5): Ditto.
19484 (round_saeonly_expand): Update.
19485
19486 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19487
19488 PR target/88794
19489 Revert:
19490 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19491
19492 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19493 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19494 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19495 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19496 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19497 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19498 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19499
19500 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19501
19502 PR target/88794
19503 Revert:
19504 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19505
19506 PR target/88489
19507 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19508 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19509 instead of UNSPEC_FIXUPIMM.
19510
19511 2019-01-17 Richard Biener <rguenther@suse.de>
19512
19513 PR lto/86736
19514 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19515 and friends for the LTO part of debug info.
19516
19517 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19518
19519 PR tree-optimization/86214
19520 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19521 if x == y.
19522
19523 PR rtl-optimization/88870
19524 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19525 throw if we can't alter the cfg or delete dead exceptions.
19526 (mark_insn): Don't call find_call_stack_args for such calls.
19527
19528 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19529
19530 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19531 prototypes for vec_st.
19532 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19533 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19534 mainly on signed/unsigned long long and double.
19535
19536 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19537
19538 PR target/88861
19539 * combine.c (delete_noop_moves): Convert to "bool" return,
19540 returning true if any edges are eliminated.
19541 (combine_instructions): Also return true if delete_noop_moves
19542 returns true.
19543
19544 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19545
19546 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19547 correct max nunits for endian swap.
19548 (aarch64_expand_fcmla_builtin): Correct subreg code.
19549 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19550 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19551 lane endianness.
19552
19553 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19554
19555 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19556 Handle split indirect COMPLEX_TYPE arguments.
19557
19558 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19559
19560 PR target/86891
19561 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19562 bit is set by add and compare.
19563 (CC_ADC): New CC_MODE.
19564 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19565 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19566 comparison. Add detection for CC_ADCmode.
19567 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19568 CC_ADCmode.
19569 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19570 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19571 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19572 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19573 to eliminate the need for zero-extending the operands.
19574 (add<mode>3_compareC_imm): Delete. Merge into ...
19575 (add<mode>3_compareC): ... this. Restructure the comparison to
19576 eliminate the need for zero-extending the operands.
19577 (add<mode>3_carryin): Use LTU for the overflow detection.
19578 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19579 Reexpress comparison for overflow.
19580 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19581 (add<mode>3_carryinC): Likewise.
19582 (add<mode>3_carryinV): Use LTU for carry between partials.
19583 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19584 handling of CC_Cmode and add CC_ADCmode.
19585 (aarch64_borrow_operation): Likewise.
19586
19587 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19588
19589 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19590 Remove patternmode.
19591 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19592 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19593 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19594 Remove endianness conversion.
19595
19596 2019-01-16 Martin Liska <mliska@suse.cz>
19597
19598 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19599 for GCC driver.
19600 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19601 a new argument.
19602 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19603 (path_prefix_reset): Move up in the source file.
19604 (find_fortran_preinclude_file): Make complex search for the
19605 fortran header files.
19606
19607 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19608
19609 * godump.c (go_output_typedef): When outputting a typedef, refer
19610 to the underlying type by its name and not its structure.
19611
19612 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19613
19614 PR c++/88795
19615 * tree.c (build_function_type): Assert that arg_types is not
19616 error_mark_node.
19617
19618 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19619
19620 PR inline-asm/52813
19621 * doc/extend.texi: Document that listing the stack pointer in the
19622 clobber list of an asm is a deprecated feature.
19623 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19624 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19625 warning instead of an error for clobbers of the stack pointer.
19626 Add a note explaining why.
19627
19628 2019-01-15 Richard Biener <rguenther@suse.de>
19629
19630 PR debug/88046
19631 * dwarf2out.c (gen_member_die): Do not generate inheritance
19632 DIEs late.
19633
19634 2019-01-15 Richard Biener <rguenther@suse.de>
19635
19636 PR tree-optimization/88855
19637 * tree-if-conv.c (combine_blocks): Collect
19638 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19639
19640 2019-01-15 Tom de Vries <tdevries@suse.de>
19641
19642 PR target/80547
19643 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19644 lhs == NULL_TREE for gang-level reduction.
19645
19646 2019-01-15 Richard Biener <rguenther@suse.de>
19647 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19648
19649 PR ipa/88788
19650 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19651 return true if SSA_NAME is already marked in visited bitmap.
19652 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19653
19654 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19655
19656 PR tree-optimization/88775
19657 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19658 equal == 0 equality pointer comparisons some more if compared in
19659 integral types and either one points to an automatic var and the
19660 other to a global, or we can prove at least one points to the middle
19661 or both point to start or both point to end.
19662
19663 2019-01-14 Andi Kleen <ak@linux.intel.com>
19664
19665 * Makefile.in: Lower autofdo sampling rate by 10x.
19666 * Makefile.tpl: Dito.
19667
19668 2019-01-14 Tom Honermann <tom@honermann.net>
19669
19670 * defaults.h: Define CHAR8_TYPE.
19671
19672 2019-01-14 Martin Sebor <msebor@redhat.com>
19673
19674 PR target/88638
19675 * doc/extend.texi (Darwin Format Checks): Clarify.
19676
19677 2019-01-14 Richard Biener <rguenther@suse.de>
19678
19679 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19680 whether we are in (simplify ...) or (match ...) context.
19681
19682 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19683
19684 PR rtl-optimization/88796
19685 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19686 * cfgexpand.c (stack_protect_prologue): Initialize
19687 crtl->stack_protect_guard_decl.
19688 * function.c (stack_protect_epilogue): Use it instead of calling
19689 targetm.stack_protect_guard again.
19690 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19691 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19692 crtl->stack_protect_guard_decl.
19693 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19694 on the returned MEM_EXPR.
19695
19696 2019-01-12 Tom de Vries <tdevries@suse.de>
19697
19698 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19699 vector length using -fopenacc-dim.
19700
19701 2019-01-12 Tom de Vries <tdevries@suse.de>
19702
19703 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19704 lengths into account.
19705
19706 2019-01-12 Svante Signell <svante.signell@gmail.com>
19707
19708 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19709 (TARGET_CAN_SPLIT_STACK): Define.
19710 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19711
19712 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19713
19714 * params.def (inline-unit-growth): Set to 40.
19715
19716 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19717
19718 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19719
19720 2019-01-12 Tom de Vries <tdevries@suse.de>
19721
19722 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19723 region calling vector-partitionable routine, set default_vector_length
19724 to WARP_SIZE.
19725
19726 2019-01-12 Tom de Vries <tdevries@suse.de>
19727
19728 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19729 variable default_vector_length.
19730
19731 2019-01-12 Tom de Vries <tdevries@suse.de>
19732
19733 PR middle-end/88703
19734 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19735 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19736 dimensions limits.
19737
19738 2019-01-12 Tom de Vries <tdevries@suse.de>
19739
19740 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19741 (nvptx_goacc_validate_dims): Add used parameter.
19742 * doc/tm.texi: Regenerate.
19743 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19744 argument to call to targetm.goacc.validate_dims.
19745 (default_goacc_validate_dims): Add used
19746 parameter.
19747 * target.def (validate_dims): Add used parameter in DEFHOOK.
19748 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19749
19750 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19751
19752 PR middle-end/85956
19753 PR lto/88733
19754 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19755 field.
19756 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19757 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19758 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19759 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19760
19761 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19762
19763 PR rtl-optimization/87305
19764 * lra-assigns.c
19765 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19766 for little endian pseudos used as paradoxical subreg.
19767
19768 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19769
19770 PR tree-optimization/88693
19771 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19772 for STRING_CSTs that don't contain any NUL characters in the first
19773 TREE_STRING_LENGTH bytes.
19774
19775 2019-01-11 Alan Modra <amodra@gmail.com>
19776
19777 PR 88777
19778 PR 88614
19779 * genattrtab.c (min_fn): Don't translate values.
19780 (min_attr_value): Return INT_MAX when the value can't be calculated.
19781 Return minimum among any values that can be calculated.
19782 (max_attr_value): Adjust.
19783
19784 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19785
19786 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19787
19788 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19789
19790 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19791 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19792 (aarch64_return_call_with_max_clobbers): New function.
19793 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19794 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19795 argument.
19796 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19797 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19798 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19799 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19800 * cselib.c (cselib_process_insn): Add argument to
19801 targetm.hard_regno_call_part_clobbered call.
19802 * ira-conflicts.c (ira_build_conflicts): Ditto.
19803 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19804 * lra-constraints.c (inherit_reload_reg): Ditto.
19805 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19806 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19807 argument. Call targetm.return_call_with_max_clobbers.
19808 Add argument to targetm.hard_regno_call_part_clobbered call.
19809 (calls_have_same_clobbers_p): New function.
19810 (process_bb_lives): Add call_insn and last_call_insn variables.
19811 Pass call_insn to check_pseudos_live_through_calls.
19812 Modify if stmt to check targetm.return_call_with_max_clobbers.
19813 Update setting of flush variable.
19814 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19815 to false.
19816 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19817 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19818 targetm.hard_regno_call_part_clobbered call.
19819 * reginfo.c (choose_hard_reg_mode): Ditto.
19820 * regrename.c (check_new_reg_p): Ditto.
19821 * reload.c (find_equiv_reg): Ditto.
19822 * reload1.c (emit_reload_insns): Ditto.
19823 * sched-deps.c (deps_analyze_insn): Ditto.
19824 * sel-sched.c (init_regs_for_mode): Ditto.
19825 (mark_unavailable_hard_regs): Ditto.
19826 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19827 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19828 (return_call_with_max_clobbers): New target function.
19829 * doc/tm.texi: Regenerate.
19830 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19831 * hooks.c (hook_bool_uint_mode_false): Change to
19832 hook_bool_insn_uint_mode_false.
19833 * hooks.h (hook_bool_uint_mode_false): Ditto.
19834
19835 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19836
19837 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19838 (aarch64_remove_extra_call_preserved_regs): New function.
19839 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19840 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19841 * doc/tm.texi: Regenerate.
19842 * final.c (get_call_reg_set_usage): Call new hook.
19843 * target.def (remove_extra_call_preserved_regs): New hook.
19844 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19845 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19846
19847 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19848
19849 PR bootstrap/88714
19850 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19851 inside of pass_combine_1 dump rather than pass_profile_1.
19852
19853 2019-01-11 Tom de Vries <tdevries@suse.de>
19854
19855 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19856 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19857 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19858 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19859 num_workers 16.
19860
19861 2019-01-11 Tom de Vries <tdevries@suse.de>
19862
19863 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19864
19865 2019-01-11 Jan Beulich <jbeulich@suse.com>
19866
19867 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19868 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19869 sse2_cvtsi2sd): Add {l}.
19870 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19871 syntax.
19872
19873 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19874
19875 PR target/88785
19876 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19877 define_expand.
19878 (*float<floatunssuffix>v2div2sf2): New define_insn.
19879 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19880 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19881 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19882 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19883 match_operands with "const0_operand" "C".
19884
19885 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19886
19887 * config/aarch64/aarch64-builtins.c
19888 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19889 (aarch64_init_simd_builtins): ...Here
19890
19891 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19892
19893 PR rtl-optimization/87305
19894 * lra-assigns.c
19895 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19896 allocation for big endian pseudos used as paradoxical subregs and
19897 spill them if it is wrong.
19898 * lra-constraints.c (lra_constraints): Add a comment.
19899
19900 2019-01-10 Richard Biener <rguenther@suse.de>
19901
19902 PR tree-optimization/88792
19903 * tree-ssa-pre.c (get_representative_for): Do not return a
19904 value-number here.
19905
19906 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19907
19908 PR middle-end/84877
19909 PR bootstrap/88450
19910 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19911 (assign_parm_setup_block): Do the argument slot realignment here
19912 instead.
19913
19914 2019-01-10 Stefan Agner <stefan@agner.ch>
19915
19916 PR target/88648
19917 * config/arm/arm.c (arm_option_override_internal): Force
19918 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19919
19920 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19921
19922 PR c/88568
19923 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19924 DECL_EXTERNAL.
19925
19926 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19927
19928 * config/arm/arm-builtins.c
19929 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19930 (MAC_LANE_PAIR_QUALIFIERS): New.
19931 (arm_expand_builtin_args): Use it.
19932 (arm_expand_builtin_1): Likewise.
19933 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19934 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19935 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19936 * config/arm/arm_neon.h:
19937 (vcadd_rot90_f16): New.
19938 (vcaddq_rot90_f16): New.
19939 (vcadd_rot270_f16): New.
19940 (vcaddq_rot270_f16): New.
19941 (vcmla_f16): New.
19942 (vcmlaq_f16): New.
19943 (vcmla_lane_f16): New.
19944 (vcmla_laneq_f16): New.
19945 (vcmlaq_lane_f16): New.
19946 (vcmlaq_laneq_f16): New.
19947 (vcmla_rot90_f16): New.
19948 (vcmlaq_rot90_f16): New.
19949 (vcmla_rot90_lane_f16): New.
19950 (vcmla_rot90_laneq_f16): New.
19951 (vcmlaq_rot90_lane_f16): New.
19952 (vcmlaq_rot90_laneq_f16): New.
19953 (vcmla_rot180_f16): New.
19954 (vcmlaq_rot180_f16): New.
19955 (vcmla_rot180_lane_f16): New.
19956 (vcmla_rot180_laneq_f16): New.
19957 (vcmlaq_rot180_lane_f16): New.
19958 (vcmlaq_rot180_laneq_f16): New.
19959 (vcmla_rot270_f16): New.
19960 (vcmlaq_rot270_f16): New.
19961 (vcmla_rot270_lane_f16): New.
19962 (vcmla_rot270_laneq_f16): New.
19963 (vcmlaq_rot270_lane_f16): New.
19964 (vcmlaq_rot270_laneq_f16): New.
19965 (vcadd_rot90_f32): New.
19966 (vcaddq_rot90_f32): New.
19967 (vcadd_rot270_f32): New.
19968 (vcaddq_rot270_f32): New.
19969 (vcmla_f32): New.
19970 (vcmlaq_f32): New.
19971 (vcmla_lane_f32): New.
19972 (vcmla_laneq_f32): New.
19973 (vcmlaq_lane_f32): New.
19974 (vcmlaq_laneq_f32): New.
19975 (vcmla_rot90_f32): New.
19976 (vcmlaq_rot90_f32): New.
19977 (vcmla_rot90_lane_f32): New.
19978 (vcmla_rot90_laneq_f32): New.
19979 (vcmlaq_rot90_lane_f32): New.
19980 (vcmlaq_rot90_laneq_f32): New.
19981 (vcmla_rot180_f32): New.
19982 (vcmlaq_rot180_f32): New.
19983 (vcmla_rot180_lane_f32): New.
19984 (vcmla_rot180_laneq_f32): New.
19985 (vcmlaq_rot180_lane_f32): New.
19986 (vcmlaq_rot180_laneq_f32): New.
19987 (vcmla_rot270_f32): New.
19988 (vcmlaq_rot270_f32): New.
19989 (vcmla_rot270_lane_f32): New.
19990 (vcmla_rot270_laneq_f32): New.
19991 (vcmlaq_rot270_lane_f32): New.
19992 (vcmlaq_rot270_laneq_f32): New.
19993 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
19994 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
19995 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
19996 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
19997 vcmlaq_lane270): New.
19998 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19999 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20000 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20001 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20002 (arm_option_reconfigure_globals): Use them.
20003 * config/arm/iterators.md (VDF, VQ_HSF): New.
20004 (VCADD, VCMLA): New.
20005 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20006 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20007 New.
20008 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20009 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
20010
20011 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20012
20013 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20014 Add qualifier_lane_pair_index.
20015 (emit-rtl.h): Include.
20016 (TYPES_QUADOP_LANE_PAIR): New.
20017 (aarch64_simd_expand_args): Use it.
20018 (aarch64_simd_expand_builtin): Likewise.
20019 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
20020 New.
20021 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
20022 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
20023 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
20024 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
20025 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
20026 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
20027 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
20028 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
20029 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
20030 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
20031 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
20032 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
20033 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
20034 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20035 Add __ARM_FEATURE_COMPLEX.
20036 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
20037 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
20038 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
20039 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20040 fcmlaq_lane270): New.
20041 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20042 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
20043 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
20044 * config/aarch64/arm_neon.h:
20045 (vcadd_rot90_f16): New.
20046 (vcaddq_rot90_f16): New.
20047 (vcadd_rot270_f16): New.
20048 (vcaddq_rot270_f16): New.
20049 (vcmla_f16): New.
20050 (vcmlaq_f16): New.
20051 (vcmla_lane_f16): New.
20052 (vcmla_laneq_f16): New.
20053 (vcmlaq_lane_f16): New.
20054 (vcmlaq_rot90_lane_f16): New.
20055 (vcmla_rot90_laneq_f16): New.
20056 (vcmla_rot90_lane_f16): New.
20057 (vcmlaq_rot90_f16): New.
20058 (vcmla_rot90_f16): New.
20059 (vcmlaq_laneq_f16): New.
20060 (vcmla_rot180_laneq_f16): New.
20061 (vcmla_rot180_lane_f16): New.
20062 (vcmlaq_rot180_f16): New.
20063 (vcmla_rot180_f16): New.
20064 (vcmlaq_rot90_laneq_f16): New.
20065 (vcmlaq_rot270_laneq_f16): New.
20066 (vcmlaq_rot270_lane_f16): New.
20067 (vcmla_rot270_laneq_f16): New.
20068 (vcmlaq_rot270_f16): New.
20069 (vcmla_rot270_f16): New.
20070 (vcmlaq_rot180_laneq_f16): New.
20071 (vcmlaq_rot180_lane_f16): New.
20072 (vcmla_rot270_lane_f16): New.
20073 (vcadd_rot90_f32): New.
20074 (vcaddq_rot90_f32): New.
20075 (vcaddq_rot90_f64): New.
20076 (vcadd_rot270_f32): New.
20077 (vcaddq_rot270_f32): New.
20078 (vcaddq_rot270_f64): New.
20079 (vcmla_f32): New.
20080 (vcmlaq_f32): New.
20081 (vcmlaq_f64): New.
20082 (vcmla_lane_f32): New.
20083 (vcmla_laneq_f32): New.
20084 (vcmlaq_lane_f32): New.
20085 (vcmlaq_laneq_f32): New.
20086 (vcmla_rot90_f32): New.
20087 (vcmlaq_rot90_f32): New.
20088 (vcmlaq_rot90_f64): New.
20089 (vcmla_rot90_lane_f32): New.
20090 (vcmla_rot90_laneq_f32): New.
20091 (vcmlaq_rot90_lane_f32): New.
20092 (vcmlaq_rot90_laneq_f32): New.
20093 (vcmla_rot180_f32): New.
20094 (vcmlaq_rot180_f32): New.
20095 (vcmlaq_rot180_f64): New.
20096 (vcmla_rot180_lane_f32): New.
20097 (vcmla_rot180_laneq_f32): New.
20098 (vcmlaq_rot180_lane_f32): New.
20099 (vcmlaq_rot180_laneq_f32): New.
20100 (vcmla_rot270_f32): New.
20101 (vcmlaq_rot270_f32): New.
20102 (vcmlaq_rot270_f64): New.
20103 (vcmla_rot270_lane_f32): New.
20104 (vcmla_rot270_laneq_f32): New.
20105 (vcmlaq_rot270_lane_f32): New.
20106 (vcmlaq_rot270_laneq_f32): New.
20107 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20108 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20109 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20110 (FCADD, FCMLA): New.
20111 (rot): New.
20112 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20113
20114 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20115
20116 PR other/16615
20117
20118 * config/pa/pa.c: Change "can not" to "cannot".
20119 * gimple-ssa-evrp-analyze.c: Likewise.
20120 * ipa-icf.c: Likewise.
20121 * ipa-polymorphic-call.c: Likewise.
20122 * ipa-pure-const.c: Likewise.
20123 * lra-constraints.c: Likewise.
20124 * lra-remat.c: Likewise.
20125 * reload1.c: Likewise.
20126 * reorg.c: Likewise.
20127 * tree-ssa-uninit.c: Likewise.
20128
20129 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20130
20131 PR other/16615
20132
20133 * Makefile.in: Mechanically replace "can not" with "cannot".
20134 * alias.c: Likewise.
20135 * builtins.c: Likewise.
20136 * calls.c: Likewise.
20137 * cgraph.c: Likewise.
20138 * cgraph.h: Likewise.
20139 * cgraphclones.c: Likewise.
20140 * cgraphunit.c: Likewise.
20141 * combine-stack-adj.c: Likewise.
20142 * combine.c: Likewise.
20143 * common/config/i386/i386-common.c: Likewise.
20144 * config/aarch64/aarch64.c: Likewise.
20145 * config/alpha/sync.md: Likewise.
20146 * config/arc/arc.c: Likewise.
20147 * config/arc/predicates.md: Likewise.
20148 * config/arm/arm-c.c: Likewise.
20149 * config/arm/arm.c: Likewise.
20150 * config/arm/arm.h: Likewise.
20151 * config/arm/arm.md: Likewise.
20152 * config/arm/cortex-r4f.md: Likewise.
20153 * config/csky/csky.c: Likewise.
20154 * config/csky/csky.h: Likewise.
20155 * config/darwin-f.c: Likewise.
20156 * config/epiphany/epiphany.md: Likewise.
20157 * config/i386/i386.c: Likewise.
20158 * config/i386/sol2.h: Likewise.
20159 * config/m68k/m68k.c: Likewise.
20160 * config/mcore/mcore.h: Likewise.
20161 * config/microblaze/microblaze.md: Likewise.
20162 * config/mips/20kc.md: Likewise.
20163 * config/mips/sb1.md: Likewise.
20164 * config/nds32/nds32.c: Likewise.
20165 * config/nds32/predicates.md: Likewise.
20166 * config/pa/pa.c: Likewise.
20167 * config/rs6000/e300c2c3.md: Likewise.
20168 * config/rs6000/rs6000.c: Likewise.
20169 * config/s390/s390.h: Likewise.
20170 * config/sh/sh.c: Likewise.
20171 * config/sh/sh.md: Likewise.
20172 * config/spu/vmx2spu.h: Likewise.
20173 * cprop.c: Likewise.
20174 * dbxout.c: Likewise.
20175 * df-scan.c: Likewise.
20176 * doc/cfg.texi: Likewise.
20177 * doc/extend.texi: Likewise.
20178 * doc/fragments.texi: Likewise.
20179 * doc/gty.texi: Likewise.
20180 * doc/invoke.texi: Likewise.
20181 * doc/lto.texi: Likewise.
20182 * doc/md.texi: Likewise.
20183 * doc/objc.texi: Likewise.
20184 * doc/rtl.texi: Likewise.
20185 * doc/tm.texi: Likewise.
20186 * dse.c: Likewise.
20187 * emit-rtl.c: Likewise.
20188 * emit-rtl.h: Likewise.
20189 * except.c: Likewise.
20190 * expmed.c: Likewise.
20191 * expr.c: Likewise.
20192 * fold-const.c: Likewise.
20193 * genautomata.c: Likewise.
20194 * gimple-fold.c: Likewise.
20195 * hard-reg-set.h: Likewise.
20196 * ifcvt.c: Likewise.
20197 * ipa-comdats.c: Likewise.
20198 * ipa-cp.c: Likewise.
20199 * ipa-devirt.c: Likewise.
20200 * ipa-fnsummary.c: Likewise.
20201 * ipa-icf.c: Likewise.
20202 * ipa-inline-transform.c: Likewise.
20203 * ipa-inline.c: Likewise.
20204 * ipa-polymorphic-call.c: Likewise.
20205 * ipa-profile.c: Likewise.
20206 * ipa-prop.c: Likewise.
20207 * ipa-pure-const.c: Likewise.
20208 * ipa-reference.c: Likewise.
20209 * ipa-split.c: Likewise.
20210 * ipa-visibility.c: Likewise.
20211 * ipa.c: Likewise.
20212 * ira-build.c: Likewise.
20213 * ira-color.c: Likewise.
20214 * ira-conflicts.c: Likewise.
20215 * ira-costs.c: Likewise.
20216 * ira-int.h: Likewise.
20217 * ira-lives.c: Likewise.
20218 * ira.c: Likewise.
20219 * ira.h: Likewise.
20220 * loop-invariant.c: Likewise.
20221 * loop-unroll.c: Likewise.
20222 * lower-subreg.c: Likewise.
20223 * lra-assigns.c: Likewise.
20224 * lra-constraints.c: Likewise.
20225 * lra-eliminations.c: Likewise.
20226 * lra-lives.c: Likewise.
20227 * lra-remat.c: Likewise.
20228 * lra-spills.c: Likewise.
20229 * lra.c: Likewise.
20230 * lto-cgraph.c: Likewise.
20231 * lto-streamer-out.c: Likewise.
20232 * postreload-gcse.c: Likewise.
20233 * predict.c: Likewise.
20234 * profile-count.h: Likewise.
20235 * profile.c: Likewise.
20236 * recog.c: Likewise.
20237 * ree.c: Likewise.
20238 * reload.c: Likewise.
20239 * reload1.c: Likewise.
20240 * reorg.c: Likewise.
20241 * resource.c: Likewise.
20242 * rtl.def: Likewise.
20243 * rtl.h: Likewise.
20244 * rtlanal.c: Likewise.
20245 * sched-deps.c: Likewise.
20246 * sched-ebb.c: Likewise.
20247 * sched-rgn.c: Likewise.
20248 * sel-sched-ir.c: Likewise.
20249 * sel-sched.c: Likewise.
20250 * shrink-wrap.c: Likewise.
20251 * simplify-rtx.c: Likewise.
20252 * symtab.c: Likewise.
20253 * target.def: Likewise.
20254 * toplev.c: Likewise.
20255 * tree-call-cdce.c: Likewise.
20256 * tree-cfg.c: Likewise.
20257 * tree-complex.c: Likewise.
20258 * tree-core.h: Likewise.
20259 * tree-eh.c: Likewise.
20260 * tree-inline.c: Likewise.
20261 * tree-loop-distribution.c: Likewise.
20262 * tree-nrv.c: Likewise.
20263 * tree-profile.c: Likewise.
20264 * tree-sra.c: Likewise.
20265 * tree-ssa-alias.c: Likewise.
20266 * tree-ssa-dce.c: Likewise.
20267 * tree-ssa-dom.c: Likewise.
20268 * tree-ssa-forwprop.c: Likewise.
20269 * tree-ssa-loop-im.c: Likewise.
20270 * tree-ssa-loop-ivcanon.c: Likewise.
20271 * tree-ssa-loop-ivopts.c: Likewise.
20272 * tree-ssa-loop-niter.c: Likewise.
20273 * tree-ssa-phionlycprop.c: Likewise.
20274 * tree-ssa-phiopt.c: Likewise.
20275 * tree-ssa-propagate.c: Likewise.
20276 * tree-ssa-threadedge.c: Likewise.
20277 * tree-ssa-threadupdate.c: Likewise.
20278 * tree-ssa-uninit.c: Likewise.
20279 * tree-ssanames.c: Likewise.
20280 * tree-streamer-out.c: Likewise.
20281 * tree.c: Likewise.
20282 * tree.h: Likewise.
20283 * vr-values.c: Likewise.
20284
20285 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20286
20287 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20288 (ix86_split_xorsign): Ditto.
20289 * config/i386/i386.c (ix86_expand_xorsign): New function.
20290 (ix86_split_xorsign): Ditto.
20291 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20292 (xorsign<mode>3): New expander.
20293 (xorsign<mode>3_1): New insn_and_split pattern.
20294 * config/i386/sse.md (xorsign<mode>3): New expander.
20295
20296 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20297
20298 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20299 (*tablejump_sp64): Likewise.
20300 (*tablejump<P:mode>): ...this.
20301 (*call_address_sp32): Merge into...
20302 (*call_address_sp64): Likewise.
20303 (*call_address<P:mode>): ...this.
20304 (*call_symbolic_sp32): Merge into...
20305 (*call_symbolic_sp64): Likewise.
20306 (*call_symbolic<P:mode>): ...this.
20307 (call_value): Remove constraint and add predicate.
20308 (*call_value_address_sp32): Merge into...
20309 (*call_value_address_sp64): Likewise.
20310 (*call_value_address<P:mode>): ...this.
20311 (*call_value_symbolic_sp32): Merge into...
20312 (*call_value_symbolic_sp64): Likewise.
20313 (*call_value_symbolic<P:mode>): ...this.
20314 (*sibcall_symbolic_sp32): Merge into...
20315 (*sibcall_symbolic_sp64): Likewise.
20316 (*sibcall_symbolic<P:mode>): ...this.
20317 (sibcall_value): Remove constraint and add predicate.
20318 (*sibcall_value_symbolic_sp32): Merge into...
20319 (*sibcall_value_symbolic_sp64): Likewise.
20320 (*sibcall_value_symbolic<P:mode>): ...this.
20321 (window_save): Minor tweak.
20322 (*branch_sp32): Merge into...
20323 (*branch_sp64): Likewise.
20324 (*branch<P:mode>): ...this.
20325
20326 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20327 James Clarke <jrtc27@jrtc27.com>
20328
20329 PR target/84010
20330 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20331 consistently in TLS address generation and adjust code to the renaming
20332 of patterns. Mark calls to __tls_get_addr as const.
20333 * config/sparc/sparc.md (tgd_hi22): Turn into...
20334 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20335 (tgd_lo10): Turn into...
20336 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20337 (tgd_add32): Merge into...
20338 (tgd_add64): Likewise.
20339 (tgd_add<P:mode>): ...this and use Pmode throughout.
20340 (tldm_hi22): Turn into...
20341 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20342 (tldm_lo10): Turn into...
20343 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20344 (tldm_add32): Merge into...
20345 (tldm_add64): Likewise.
20346 (tldm_add<P:mode>): ...this and use Pmode throughout.
20347 (tldm_call32): Merge into...
20348 (tldm_call64): Likewise.
20349 (tldm_call<P:mode>): ...this and use Pmode throughout.
20350 (tldo_hix22): Turn into...
20351 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20352 (tldo_lox10): Turn into...
20353 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20354 (tldo_add32): Merge into...
20355 (tldo_add64): Likewise.
20356 (tldo_add<P:mode>): ...this and use Pmode throughout.
20357 (tie_hi22): Turn into...
20358 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20359 (tie_lo10): Turn into...
20360 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20361 (tie_ld64): Use DImode throughout.
20362 (tie_add32): Merge into...
20363 (tie_add64): Likewise.
20364 (tie_add<P:mode>): ...this and use Pmode throughout.
20365 (tle_hix22_sp32): Merge into...
20366 (tle_hix22_sp64): Likewise.
20367 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20368 (tle_lox22_sp32): Merge into...
20369 (tle_lox22_sp64): Likewise.
20370 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20371 (*tldo_ldub_sp32): Merge into...
20372 (*tldo_ldub_sp64): Likewise.
20373 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20374 (*tldo_ldub1_sp32): Merge into...
20375 (*tldo_ldub1_sp64): Likewise.
20376 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20377 (*tldo_ldub2_sp32): Merge into...
20378 (*tldo_ldub2_sp64): Likewise.
20379 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20380 (*tldo_ldsb1_sp32): Merge into...
20381 (*tldo_ldsb1_sp64): Likewise.
20382 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20383 (*tldo_ldsb2_sp32): Merge into...
20384 (*tldo_ldsb2_sp64): Likewise.
20385 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20386 (*tldo_ldub3_sp64): Use DImode throughout.
20387 (*tldo_ldsb3_sp64): Likewise.
20388 (*tldo_lduh_sp32): Merge into...
20389 (*tldo_lduh_sp64): Likewise.
20390 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20391 (*tldo_lduh1_sp32): Merge into...
20392 (*tldo_lduh1_sp64): Likewise.
20393 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20394 (*tldo_ldsh1_sp32): Merge into...
20395 (*tldo_ldsh1_sp64): Likewise.
20396 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20397 (*tldo_lduh2_sp64): Use DImode throughout.
20398 (*tldo_ldsh2_sp64): Likewise.
20399 (*tldo_lduw_sp32): Merge into...
20400 (*tldo_lduw_sp64): Likewise.
20401 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20402 (*tldo_lduw1_sp64): Use DImode throughout.
20403 (*tldo_ldsw1_sp64): Likewise.
20404 (*tldo_ldx_sp64): Likewise.
20405 (*tldo_stb_sp32): Merge into...
20406 (*tldo_stb_sp64): Likewise.
20407 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20408 (*tldo_sth_sp32): Merge into...
20409 (*tldo_sth_sp64): Likewise.
20410 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20411 (*tldo_stw_sp32): Merge into...
20412 (*tldo_stw_sp64): Likewise.
20413 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20414 (*tldo_stx_sp64): Use DImode throughout.
20415
20416 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20417
20418 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20419 check configure option to set BTI and Return Address Signing.
20420 * configure.ac: Add --enable-standard-branch-protection and
20421 --disable-standard-branch-protection.
20422 * configure: Regenerated.
20423 * doc/install.texi: Document the same.
20424
20425 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20426 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20427
20428 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20429 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20430 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20431 if bti is enabled.
20432 * config/aarch64/aarch64-bti-insert.c: New file.
20433 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20434 pass.
20435 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20436 new bti pass.
20437 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20438 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20439 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20440 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20441
20442 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20443
20444 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20445 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20446 Disable bti for -mbranch-protection=none.
20447 (aarch64_handle_standard_branch_protection): Enable bti for
20448 -mbranch-protection=standard.
20449 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20450 -mbranch-protection.
20451 (aarch64_bti_enabled): Check if bti is enabled.
20452 * config/aarch64/aarch64.opt: Declare target variable.
20453 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20454
20455 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20456
20457 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20458 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20459 (aarch64_expand_epilogue): Likewise.
20460 (aarch64_output_mi_thunk): Likewise.
20461 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20462 TAILCALL_ADDR_REGS to x16 and x17.
20463 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20464
20465 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20466
20467 * config/aarch64/aarch64-option-extensions.def: Define
20468 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20469 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20470 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20471 (AARCH64_FL_PREDRES): New.
20472 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20473 AARCH64_FL_PREDRES by default.
20474 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20475
20476 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20477
20478 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20479 ARMv8.5-A.
20480 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20481 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20482 * doc/invoke.texi: Document ARMv8.5-A.
20483
20484 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20485
20486 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20487 (xorsign<mode>3): Likewise.
20488
20489 2019-01-09 Jelinek <jakub@redhat.com>
20490
20491 PR middle-end/88758
20492 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20493 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20494
20495 PR rtl-optimization/88331
20496 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20497 not currently_expanding_to_rtl.
20498
20499 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20500
20501 * doc/invoke.texi (-Os): Remove trailing spaces.
20502 (-finline-functions): Remove reference to -O2.
20503
20504 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20505
20506 PR rtl-optimization/79593
20507 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20508
20509 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20510 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20511
20512 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20513
20514 PR bootstrap/88721
20515 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20516 to -1 on entry.
20517
20518 PR debug/88723
20519 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20520 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20521
20522 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20523
20524 PR target/88717
20525 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20526 ix86_avx_u128_mode_entry.
20527
20528 2019-01-08 Martin Liska <mliska@suse.cz>
20529
20530 PR tree-optimization/88753
20531 * tree-switch-conversion.c (switch_conversion::build_one_array):
20532 Come up with local variable constructor. Convert first to
20533 type of constructor values.
20534
20535 2019-01-08 Richard Biener <rguenther@suse.de>
20536
20537 PR tree-optimization/86554
20538 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20539 rpo_avail): Move earlier.
20540 (visit_nary_op): When value-numbering to expressions
20541 with different overflow behavior make sure there's an
20542 available expression on the path.
20543
20544 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20545
20546 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20547 aarch64_parse_branch_protection,
20548 struct aarch64_branch_protect_type,
20549 aarch64_handle_no_branch_protection,
20550 aarch64_handle_standard_branch_protection,
20551 aarch64_validate_mbranch_protection,
20552 aarch64_handle_pac_ret_protection,
20553 aarch64_handle_attr_branch_protection,
20554 accepted_branch_protection_string,
20555 aarch64_pac_ret_subtypes,
20556 aarch64_branch_protect_types,
20557 aarch64_handle_pac_ret_leaf): Define.
20558 (aarch64_override_options_after_change_1, aarch64_override_options):
20559 Add check for accepted_branch_protection_string.
20560 (aarch64_option_save): Save accepted_branch_protection_string.
20561 (aarch64_option_restore): Save accepted_branch_protection_string.
20562 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20563 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20564 msign-return-address.
20565 * doc/invoke.texi: Add mbranch-protection.
20566
20567 2019-01-08 Alan Modra <amodra@gmail.com>
20568
20569 PR target/88614
20570 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20571 Delete "unknownp" parameter. Adjust callers. Handle
20572 CONST_INT, PLUS, MINUS, and MULT.
20573 (attr_value_aligned): Renamed from or_attr_value.
20574 (min_attr_value): Return INT_MIN for unhandled rtl case..
20575 (min_fn): ..and translate to INT_MAX here.
20576 (write_length_unit_log): Modify to cope without "unknown".
20577 (write_attr_value): Handle IF_THEN_ELSE.
20578
20579 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20580
20581 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20582 optimization for masked stores.
20583
20584 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20585
20586 PR middle-end/88567
20587 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20588 output vector directly to duplicate_and_interleave instead of
20589 going through a temporary. Postpone insertion of ctor_seq to
20590 the end of the loop.
20591
20592 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20593
20594 PR target/86891
20595 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20596 unsigned_p. Handle signed and unsigned overflow correction as
20597 required.
20598 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20599 prototype.
20600 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20601 for operand 2.
20602 (add<mode>3_compareV_imm): Make this callable for expanding.
20603 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20604 aarch64_plus_operand for operand 2.
20605 (subv<GPI:mode>_insn): New insn pattern.
20606 (subv<GPI:mode>_imm): Likewise.
20607 (negv<GPI:mode>3): New expand pattern.
20608 (negv<GPI:mode>_insn): New insn pattern.
20609 (negv<GPI:mode>_cmp_only): Likewise.
20610 (cmpv<GPI:mode>_insn): Likewise.
20611 (subvti4): Use register_operand for operand 1. Update call to
20612 aarch64_expand_subvti.
20613 (usubvti4): Likewise.
20614 (negvti3): New expand pattern.
20615 (negdi_carryout): New insn pattern.
20616 (negvdi_carryinV): New insn pattern.
20617 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20618 version the named version.
20619 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20620 operands.
20621 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20622 patterns.
20623 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20624 patterns.
20625 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20626 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20627 (sub<mode>3_carryinCV): Delete.
20628 (sub<GPI:mode>3_carryinV): New expand pattern.
20629 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20630
20631 2019-01-07 Richard Biener <rguenther@suse.de>
20632
20633 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20634 of tree_operand_hash.
20635
20636 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20637
20638 PR tree-optimization/88598
20639 * tree.h (single_nonzero_element): Declare.
20640 * tree.c (single_nonzero_element): New function.
20641 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20642 if I is the only nonzero element of CST.
20643
20644 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20645
20646 PR tree-optimization/88598
20647 * tree.h (initializer_each_zero_or_onep): Declare.
20648 * tree.c (initializer_each_zero_or_onep): New function.
20649 (signed_or_unsigned_type_for): Handle float types too.
20650 (unsigned_type_for, signed_type_for): Update comments accordingly.
20651 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20652 x & { 0 or -1, 0 or -1, ... }.
20653
20654 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20655
20656 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20657 with x86_64-pc-linux-gnu.
20658
20659 2019-01-07 Tom de Vries <tdevries@suse.de>
20660
20661 PR target/85486
20662 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20663 function.
20664 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20665 routines.
20666
20667 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20668
20669 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20670 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20671 TARGET_AVX512F as condition.
20672
20673 PR debug/88723
20674 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20675 const_not_ok_for_debug_p target hook.
20676 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20677 on UNSPEC and subexpressions thereof if all subexpressions of the
20678 UNSPEC are CONSTANT_P.
20679
20680 PR tree-optimization/88676
20681 * tree-ssa-phiopt.c (two_value_replacement): New function.
20682 (tree_ssa_phiopt_worker): Call it.
20683
20684 PR sanitizer/88619
20685 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20686 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20687
20688 PR c++/85052
20689 * tree-vect-generic.c: Include insn-config.h and recog.h.
20690 (expand_vector_piecewise): Add defaulted ret_type argument,
20691 if non-NULL, use that in preference to type for the result type.
20692 (expand_vector_parallel): Formatting fix.
20693 (do_vec_conversion, do_vec_narrowing_conversion,
20694 expand_vector_conversion): New functions.
20695 (expand_vector_operations_1): Call expand_vector_conversion
20696 for VEC_CONVERT ifn calls.
20697 * internal-fn.def (VEC_CONVERT): New internal function.
20698 * internal-fn.c (expand_VEC_CONVERT): New function.
20699 * fold-const-call.c (fold_const_vec_convert): New function.
20700 (fold_const_call): Use it for CFN_VEC_CONVERT.
20701 * doc/extend.texi (__builtin_convertvector): Document.
20702
20703 2019-01-07 Tom de Vries <tdevries@suse.de>
20704
20705 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20706 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20707 vector_red_partition, vector_red_sym): New global variables.
20708 (nvptx_option_override): Initialize vector_red_sym.
20709 (nvptx_declare_function_name): Restore red_partition register.
20710 (nvptx_file_end): Emit code to declare the vector reduction variables.
20711 (nvptx_output_red_partition): New function.
20712 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20713 large vector reductions.
20714 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20715 (nvptx_init_builtins): Add VECTOR_ADDR.
20716 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20717 Handle nvptx_expand_shared_addr.
20718 (nvptx_get_shared_red_addr): Add vector argument and handle large
20719 vectors.
20720 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20721 large vectors.
20722 (nvptx_goacc_reduction_init): Likewise.
20723 (nvptx_goacc_reduction_fini): Likewise.
20724 (nvptx_goacc_reduction_teardown): Likewise.
20725 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20726 init,fini,teardown}.
20727 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20728 (nvptx_set_current_function): Init vector_red_partition.
20729 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20730 (nvptx_red_partition): New insn.
20731 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20732
20733 2019-01-07 Tom de Vries <tdevries@suse.de>
20734
20735 PR target/85381
20736 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20737 empty loops.
20738
20739 2019-01-07 Tom de Vries <tdevries@suse.de>
20740
20741 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20742 (nvptx_option_override): Init oacc_bcast_partition.
20743 (nvptx_init_oacc_workers): New function.
20744 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20745 (nvptx_needs_shared_bcast): New function.
20746 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20747 to propagate state.
20748 (nvptx_shared_propagate): Initialize vector bcast partition and
20749 synchronization state.
20750 (nvptx_single): Generalize to enable vectors to use shared-memory
20751 to propagate state.
20752 (nvptx_process_pars): Likewise.
20753 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20754 * config/nvptx/nvptx.h (struct machine_function): Add
20755 bcast_partition and sync_bar members.
20756
20757 2019-01-07 Tom de Vries <tdevries@suse.de>
20758
20759 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20760 (nvptx_apply_dim_limits): New function.
20761 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20762 PTX_WARP_SIZE.
20763
20764 2019-01-07 Tom de Vries <tdevries@suse.de>
20765
20766 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20767 as late as possible.
20768
20769 2019-01-07 Tom de Vries <tdevries@suse.de>
20770
20771 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20772 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20773 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20774 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20775 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20776
20777 2019-01-07 Tom de Vries <tdevries@suse.de>
20778
20779 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20780
20781 2019-01-07 Tom de Vries <tdevries@suse.de>
20782
20783 * omp-offload.c (oacc_get_min_dim): New function.
20784 * omp-offload.h (oacc_get_min_dim): Declare.
20785
20786 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20787
20788 PR target/88521
20789 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20790 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20791
20792 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20793
20794 PR tree-opt/86020
20795 Revert:
20796 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20797
20798 * ipa-inline.c (edge_badness): Use inlined_time instead of
20799 inline_summaries->get.
20800
20801 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20802
20803 * opts.c (enable_fdo_optimizations): Enable
20804 version-loops-for-strides, loop-interchange, unrol-and-jam
20805 and tree-loop-distribution.
20806 * invoke.texi: Document newly enabled options.
20807
20808 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20809
20810 * doc/invoke.texi (max-inline-insns-small): New parameters.
20811 * ipa-inline.c (want_early_inline_function_p): simplify.
20812 (want_inline_small_function_p): Fix pasto from previous patch;
20813 use max-inline-insns-small bound.
20814 * params.def (max-inline-insns-small): New param.
20815 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20816 variables correctly.
20817
20818 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20819
20820 * doc/invoke.texi: Document max-inline-insns-size,
20821 uninlined-function-insns, uninlined-function-time,
20822 uninlined-thunk-insns and uninlined-thunk-time.
20823 * params.def: Add max-inline-insns-size,
20824 uninlined-function-insns, uninlined-function-time,
20825 uninlined-thunk-insns and uninlined-thunk-time.
20826 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20827 new parameters.
20828 * ipa-inline.c (can_inline_edge_by_limits_p,
20829 want_inline_small_function_p): Use new parameters.
20830
20831 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20832
20833 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20834
20835 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20836
20837 PR middle-end/82564
20838 PR target/88620
20839 * expr.c (expand_assignment): For calls returning VLA structures
20840 if to_rtx is not a MEM, force it into a stack temporary.
20841
20842 PR debug/88635
20843 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20844 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20845 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20846 subexpressions of both operands.
20847 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20848 subrtxes are CONSTANT_P.
20849 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20850 2018-11-09 changes.
20851
20852 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20853
20854 * params.def (hot-bb-count-ws-permille): Set to 990.
20855
20856 2019-01-04 Martin Sebor <msebor@redhat.com>
20857
20858 PR c/88546
20859 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20860 leaf.
20861
20862 2019-01-04 Martin Sebor <msebor@redhat.com>
20863
20864 PR c/88363
20865 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20866
20867 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20868
20869 * gdbinit.in: Turn off pagination for the skip commands, restore
20870 it to previous state afterwards.
20871
20872 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20873
20874 PR target/88594
20875 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20876 of GET_MODE (opN) as modes of the libcall arguments.
20877
20878 2019-01-04 Jan Beulich <jbeulich@suse.com>
20879
20880 * config/i386/sse.md
20881 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20882 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20883 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20884 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20885 avx512f_vmcmp<mode>3<round_saeonly_name>,
20886 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20887 avx512f_maskcmp<mode>3,
20888 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20889 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20890 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20891 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20892 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20893 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20894 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20895 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20896 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20897 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20898 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20899 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20900 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20901 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20902 avx512cd_maskb_vec_dup<mode>,
20903 avx512cd_maskw_vec_dup<mode>,
20904 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20905 avx512dq_vmfpclass<mode>,
20906 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20907 instead of =Yk.
20908
20909 2019-01-03 Martin Sebor <msebor@redhat.com>
20910
20911 PR tree-optimization/88659
20912 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20913
20914 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20915
20916 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20917 unaligned vsx and avoid lxvd2x/stxvd2x.
20918 (gen_lvx_v4si_move): New function.
20919
20920 2019-01-03 Tom de Vries <tdevries@suse.de>
20921
20922 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20923 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20924 function.
20925 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20926
20927 2019-01-03 Tom de Vries <tdevries@suse.de>
20928
20929 * config/nvptx/nvptx.c (struct offload_attrs): New.
20930 (populate_offload_attrs): New function. Factor mask extraction out of
20931 nvptx_reorg. Add extraction of dimensions.
20932 (nvptx_reorg): Use populate_offload_attrs.
20933
20934 2019-01-03 Tom de Vries <tdevries@suse.de>
20935
20936 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20937 cases for oacc_min_dims_p and routine_p. Add asserts for
20938 oacc_default_dims_p and offload_region_p.
20939
20940 2019-01-03 Tom de Vries <tdevries@suse.de>
20941
20942 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20943 factored out of ...
20944 (nvptx_goacc_validate_dims): ... here.
20945
20946 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20947
20948 PR tree-optimization/85574
20949 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
20950 structure.
20951 (struct ssa_equip_hash_traits): Declare.
20952 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
20953
20954 2019-01-03 Jakub Jelinek <jakub@redhat.com>
20955
20956 PR debug/88644
20957 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
20958 change it to qualified_type.
20959
20960 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
20961
20962 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
20963 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
20964
20965 2019-01-02 Martin Sebor <msebor@redhat.com>
20966 Jeff Law <law@redhat.com>
20967
20968 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
20969 (get_range_strlen_tree): Update appropriately.
20970 (get_range_strlen)
20971 * gimple-fold.h (get_range_strlen): Drop unused last argument.
20972
20973 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
20974 rather than set_range_info.
20975 * tree-ssa-strlen.c (set_strlen_range): Extracted from
20976 maybe_set_strlen_range. Handle potentially boundary crossing
20977 cases more conservatively.
20978 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
20979 Call set_strlen_range.
20980 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
20981
20982 PR middle-end/88663
20983 * gimple-fold.c (get_range_strlen): Update prototype to no longer
20984 need the flexp argument.
20985 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
20986 from calls to get_range_strlen. Update comments. Just update
20987 VAL for an unterminated const char array and let the reset of the
20988 code handle it normally. No longer try to set *flexp. Adjust
20989 return value.
20990 (get_range_strlen): Update for the new get_range_strlen API.
20991 (get_maxval_strlen): Similarly.
20992 (gimple_fold_builtin_strlen): Handle update meaning of return value
20993 from get_range_strlen.
20994 * gimple-ssa-sprintf.c (get_string_length): Update for the new
20995 get_range_strlen API.
20996
20997 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
20998
20999 PR lto/88130
21000 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21001 false at WPA time when body was removed.
21002
21003 2019-01-02 Martin Liska <mliska@suse.cz>
21004
21005 PR tree-optimization/88650
21006 * predict.c (set_even_probabilities): Calculate probability
21007 remainer only when really used.
21008
21009 2019-01-02 Richard Biener <rguenther@suse.de>
21010
21011 PR middle-end/88651
21012 * tree-data-ref.c (analyze_subscript_affine_affine): Use
21013 widest_ints when mangling max_stmt_execution results.
21014
21015 2019-01-02 Richard Biener <rguenther@suse.de>
21016
21017 PR tree-optimization/88621
21018 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
21019 bitfields when canoncalizing.
21020
21021 2019-01-02 Richard Biener <rguenther@suse.de>
21022
21023 PR target/87545
21024 * config/i386/x86-tune-costs.h (intel_cost): Adjust
21025 cost of cheap SSE instruction.
21026
21027 2019-01-02 Richard Biener <rguenther@suse.de>
21028
21029 PR ipa/85574
21030 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
21031 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
21032 function.
21033 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
21034 set after UIDs before splitting them.
21035
21036 2019-01-01 Martin Sebor <msebor@redhat.com>
21037 Jeff Law <law@redhat.com>
21038
21039 * gimple-fold.c (get_range_strlen_tree): Record if the computed
21040 length is optimistic. If it is, then arrange to compute the
21041 conservative length as well.
21042
21043 * gimple-fold.h (get_range_strlen): Update prototype.
21044 * builtins.c (check_access): Update call to get_range_strlen to use
21045 c_strlen_data pointer. Change various variable accesses to instead
21046 pull data from the c_strlen_data structure.
21047 (check_strncat_sizes, expand_builtin_strncat): Likewise.
21048 * calls.c (maybe_warn_nonstring_arg): Likewise.
21049 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
21050 minimum length if maximum lengh is unknown.
21051 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
21052 that used c_strlen, it's no longer needed. Restructure slightly.
21053 (format_string): Set unlikely range appropriately.
21054 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
21055 formatting issues.
21056 (get_range_strlen): Accept c_strlen_data pointer for external
21057 call sites as well. Pass through to call to internal get_range_strlen.
21058 Adjust minlen, maxlen and maxbound as needed.
21059 (get_maxval_strlen): Update comments.
21060 (gimple_fold_builtin_strlen): Update call to get_range_strlen
21061 to use c_strlen_data pointer. Change variable accesses to instead
21062 use c_strlen_data data members.
21063
21064 * gimple-fold.c (get_range_strlen): Update prototype.
21065 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
21066 local variables. Use pdata to return information to caller.
21067 Update calls to get_range_strlen. Update pdata->maxbound.
21068 (get_range_strlen -- static version): Similarly.
21069 (get_range_strlen -- extern version): Update for internal
21070 get_range_strlen API change. Convert to external data format.
21071 (get_maxval_strlen): Similarly.
21072
21073 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
21074
21075 * coverage.c (get_coverage_counts): Use current_function_decl.
21076 * profile.c (read_thunk_profile): New function.
21077 (branch_prob): Add THUNK parameter.
21078 * tree-profile.c (tree_profiling): Handle thunks.
21079 * value-prof.c (init_node_map): Handle thunks.
21080 * value-prof.h (branch_prob): Upate prototype.
21081 (read_thunk_profile): Declare.
21082
21083 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21084
21085 Update copyright years.
21086
21087 * gcc.c (process_command): Update copyright notice dates.
21088 * gcov-dump.c (print_version): Ditto.
21089 * gcov.c (print_version): Ditto.
21090 * gcov-tool.c (print_version): Ditto.
21091 * gengtype.c (create_file): Ditto.
21092 * doc/cpp.texi: Bump @copying's copyright year.
21093 * doc/cppinternals.texi: Ditto.
21094 * doc/gcc.texi: Ditto.
21095 * doc/gccint.texi: Ditto.
21096 * doc/gcov.texi: Ditto.
21097 * doc/install.texi: Ditto.
21098 * doc/invoke.texi: Ditto.
21099 \f
21100 Copyright (C) 2019 Free Software Foundation, Inc.
21101
21102 Copying and distribution of this file, with or without modification,
21103 are permitted in any medium without royalty provided the copyright
21104 notice and this notice are preserved.