PR middle-end/91584 - Bogus warning from -Warray-bounds during string assignment
[gcc.git] / gcc / ChangeLog
1 2019-08-30 Martin Sebor <msebor@redhat.com>
2
3 PR middle-end/91584
4 * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5 before using them to validate MEM_REF offset.
6
7 2019-08-30 Marek Polacek <polacek@redhat.com>
8
9 * doc/invoke.texi (-Wvolatile): Use @code for volatile.
10
11 2019-08-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12
13 * config/arm/arm.md (unaligned_loaddi,
14 unaligned_storedi): New unspec insn patterns.
15 * config/arm/neon.md (unaligned_storev8qi): Likewise.
16 * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
17 and unaligned_storedi for 4-byte aligned memory.
18 (arm_block_set_aligned_vect): Use unaligned_storev8qi for
19 4-byte aligned memory.
20
21 2019-08-30 Martin Jambor <mjambor@suse.cz>
22
23 tree-optimization/91579
24 * tree-tailcall.c (tailr_arg_needs_copy): New variable.
25 (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
26 appropriate.
27 (arg_needs_copy_p): Removed.
28 (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
29 arg_needs_copy_p.
30 (tree_optimize_tail_calls_1): Likewise. Free tailr_arg_needs_copy.
31
32 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
33
34 * config/i386/i386-features.c
35 (general_scalar_chain::compute_convert_gain):
36 Correct cost for double-word shifts.
37 (general_scalar_to_vector_candidate_p): Reject count operands
38 greater or equal to mode bitsize.
39
40 2019-08-29 Uroš Bizjak <ubizjak@gmail.com>
41
42 * config/i386/i386.c (inline_secondary_memory_needed): Return true
43 for moves between SSE and non-general registers and between
44 mask and non-general registers.
45 (ix86_register_move_cost): Remove stalled comment.
46
47 2019-08-29 Richard Biener <rguenther@suse.de>
48
49 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
50 Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
51
52 2019-08-29 Richard Biener <rguenther@suse.de>
53
54 PR bootstrap/91580
55 * config/i386/i386-features.c (general_scalar_chain::convert_insn):
56 Do not emit scalar copies for debug-insns, instead replace
57 their uses with the reg copy used in the chain or reset them
58 if there is a reaching definition outside of the chain as well.
59
60 2019-08-29 Jakub Jelinek <jakub@redhat.com>
61
62 PR target/91560
63 * config/i386/i386-expand.c (expand_vec_perm_movs,
64 expand_vec_perm_blend, expand_vec_perm_vpermil,
65 expand_vec_perm_pshufb, expand_vec_perm_1,
66 expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
67 expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
68 expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
69 expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
70 expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
71 comments - replace ix86_expand_vec_perm_builtin_1 with
72 ix86_expand_vec_perm_const_1.
73 (expand_vec_perm2_vperm2f128_vblend): New function.
74 (ix86_expand_vec_perm_const_1): New forward declaration. Call
75 expand_vec_perm2_vperm2f128_vblend as last resort.
76 (canonicalize_perm): Formatting fix.
77
78 PR tree-optimization/91351
79 * tree-cfg.c (generate_range_test): Use range_check_type instead of
80 unsigned_type_for.
81 * tree-cfgcleanup.c (convert_single_case_switch): Punt if
82 range_check_type returns NULL.
83 * tree-switch-conversion.c (switch_conversion::build_one_array):
84 Use range_check_type instead of unsigned_type_for, don't perform
85 linear opt if it returns NULL.
86 (bit_test_cluster::find_bit_tests): Formatting fix.
87 (bit_test_cluster::emit): Use range_check_type instead of
88 unsigned_type_for.
89 (switch_decision_tree::try_switch_expansion): Punt if range_check_type
90 returns NULL.
91
92 2019-08-29 Richard Biener <rguenther@suse.de>
93
94 PR tree-optimization/91568
95 * tree-vectorizer.h (_slp_tree::max_nunits): Add.
96 (vect_update_max_nunits): Add overload for poly_uint64.
97 * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
98 (vect_build_slp_tree): Record max_nunits into the subtree
99 and merge it upwards.
100 (vect_print_slp_tree): Print max_nunits.
101
102 2019-08-28 Marek Polacek <polacek@redhat.com>
103
104 Implement P1152R4: Deprecating some uses of volatile.
105 PR c++/91361
106 * doc/invoke.texi: Document -Wvolatile.
107
108 2019-08-28 Marek Polacek <polacek@redhat.com>
109
110 PR c++/91360 - Implement C++20 P1143R2: constinit.
111 * doc/invoke.texi: Document -Wc++20-compat.
112
113 2019-08-28 Martin Sebor <msebor@redhat.com>
114
115 PR tree-optimization/91457
116 * builtins.c (component_size): New function.
117 (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
118 * builtins.h (compute_objsize): Add argument.
119 * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
120 * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
121 (vrp_prop::check_mem_ref): Same.
122 (vrp_prop::search_for_addr_array): Set no-warning bit.
123 (check_array_bounds): Same.
124
125 2019-08-28 Martin Sebor <msebor@redhat.com>
126
127 PR driver/80545
128 * opts-common.c (option_enabled): Correct checking for language
129 options.
130
131 2019-08-28 Uroš Bizjak <ubizjak@gmail.com>
132
133 * config/i386/i386.c (ix86_register_move_cost): Do not
134 limit the cost of moves to/from XMM register to minimum 8.
135
136 2019-08-28 Martin Jambor <mjambor@suse.cz>
137
138 PR ipa/91468
139 * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
140 checking assert a normal assert to test it really is redundant.
141 * ipa-prop.c (compute_complex_assign_jump_func): Removed
142 redundant test.
143 (update_jump_functions_after_inlining): Removed combining unary
144 arithmetic operations with an ancestor jump function.
145 (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
146 instead of t.
147
148 2019-08-28 Richard Biener <rguenther@suse.de>
149
150 * config/i386/i386-features.c (convert_scalars_to_vector): Do not
151 add the MD problem.
152
153 2019-09-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
154 Richard Biener <rguenther@suse.de>
155
156 * expr.c (expand_assignment): Handle misaligned DECLs.
157 (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
158 * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
159 too.
160 (assign_parm_setup_stack): Allocate properly aligned stack slots.
161 * varasm.c (build_constant_desc): Align constants of misaligned types.
162 * config/arm/predicates.md (aligned_operand): New predicate.
163 * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
164 aligned_operand to check restrictions on memory addresses.
165 * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
166 * config/arm/vec-common.md (mov<VALL>): Likewise.
167
168 2019-08-28 Jakub Jelinek <jakub@redhat.com>
169
170 PR libgomp/91530
171 * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
172 V_128 iterator instead of VI_128.
173
174 2019-08-28 Martin Liska <mliska@suse.cz>
175
176 PR tree-optimization/90970
177 * builtins.c (check_access): Remove assignment to maxread
178 as it hasn't been used since when it was introduced in r255755.
179
180 2019-08-27 Martin Sebor <msebor@redhat.com>
181
182 PR tree-optimization/91567
183 * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
184 of unknown strings.
185 * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
186 to PTRDIFF_MAX - 2.
187
188 2019-08-27 Jeff Law <law@redhat.com>
189
190 * tree-ssa-strlen.c (printf_strlen_execute): Initialize
191 the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
192
193 2019-08-27 Uroš Bizjak <ubizjak@gmail.com>
194
195 PR target/91528
196 * config/i386/i386-features.c (convert_scalars_to_vector):
197 Update crtl->stack_realign_needed, crtl->stack_realign_tried and
198 crtl->stack_realign_processed. Update crtl->drap_reg by calling
199 targetm.calls.get_drap_rtx. If drap_rtx is non-null then
200 Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
201
202 2019-08-27 Richard Biener <rguenther@suse.de>
203
204 * config/i386/i386-features.h
205 (general_scalar_chain::~general_scalar_chain): Add.
206 (general_scalar_chain::insns_conv): New bitmap.
207 (general_scalar_chain::n_sse_to_integer): New.
208 (general_scalar_chain::n_integer_to_sse): Likewise.
209 (general_scalar_chain::make_vector_copies): Adjust signature.
210 * config/i386/i386-features.c
211 (general_scalar_chain::general_scalar_chain): Outline,
212 initialize new members.
213 (general_scalar_chain::~general_scalar_chain): New.
214 (general_scalar_chain::mark_dual_mode_def): Record insns
215 we need to insert conversions at and count them.
216 (general_scalar_chain::compute_convert_gain): Account
217 for conversion instructions at chain boundary.
218 (general_scalar_chain::make_vector_copies): Generate a single
219 copy for a def by a specific insn.
220 (general_scalar_chain::convert_registers): First populate
221 defs_map, then make copies at out-of chain insns.
222
223 2019-08-27 Richard Earnshaw <rearnsha@arm.com>
224
225 * config/arm/arm.md (stack_protect_set_insn): Add security-related
226 comment.
227 * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
228
229 2019-08-27 Martin Liska <mliska@suse.cz>
230
231 * cgraph.c (cgraph_node::remove): Remove dead assignment before
232 loop.
233 * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
234 Enclose in anonymous namespace.
235 * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
236 hard_register initialization in braces.
237 * tree-vrp.h (value_range_base::supports_type_p): Return false
238 for function with boolean return type.
239
240 2019-08-26 Uroš Bizjak <ubizjak@gmail.com>
241
242 * config/i386/i386.c (emit_i387_cw_initialization)
243 <case I387_CW_ROUNDEVEN>: Fix masking operand value.
244
245 2019-08-26 Martin Sebor <msebor@redhat.com>
246
247 PR c++/83431
248 * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
249 (sprintf_dom_walker): Remove class.
250 (get_int_range): Make argument const.
251 (directive::fmtfunc, directive::set_precision): Same.
252 (format_none): Same.
253 (build_intmax_type_nodes): Same.
254 (adjust_range_for_overflow): Same.
255 (format_floating): Same.
256 (format_character): Same.
257 (format_string): Same.
258 (format_plain): Same.
259 (get_int_range): Cast away constness.
260 (format_integer): Same.
261 (get_string_length): Call get_range_strlen_dynamic. Handle
262 null lendata.maxbound.
263 (should_warn_p): Adjust argument scope qualifier.
264 (maybe_warn): Same.
265 (format_directive): Same.
266 (parse_directive): Same.
267 (is_call_safe): Same.
268 (try_substitute_return_value): Same.
269 (sprintf_dom_walker::handle_printf_call): Rename...
270 (handle_printf_call): ...to this. Initialize target to host charmap
271 here instead of in pass_sprintf_length::execute.
272 (struct call_info): Make global.
273 (sprintf_dom_walker::compute_format_length): Make global.
274 (sprintf_dom_walker::handle_gimple_call): Same.
275 * passes.def (pass_sprintf_length): Replace with pass_strlen.
276 * print-rtl.c (print_pattern): Reduce the number of spaces to
277 avoid -Wformat-truncation.
278 * tree-pass.h (make_pass_warn_printf): New function.
279 * tree-ssa-strlen.c (strlen_optimize): New variable.
280 (get_string_length): Add comments.
281 (get_range_strlen_dynamic): New function.
282 (check_and_optimize_call): New function.
283 (handle_integral_assign): New function.
284 (strlen_check_and_optimize_stmt): Factor code out into
285 strlen_check_and_optimize_call and handle_integral_assign.
286 (strlen_dom_walker::evrp): New member.
287 (strlen_dom_walker::before_dom_children): Use evrp member.
288 (strlen_dom_walker::after_dom_children): Use evrp member.
289 (printf_strlen_execute): New function.
290 (pass_strlen::gate): Update to handle printf calls.
291 (dump_strlen_info): New function.
292 (pass_data_warn_printf): New variable.
293 (pass_warn_printf): New class.
294 * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
295 (handle_printf_call): Same.
296 * tree-vrp.c (value_range_base::type): Adjust assertion.
297 * vr-values.c (vr_values::update_value_range): Use type of the first
298 argument rather than the second.
299
300 2019-08-26 Richard Biener <rguenther@suse.de>
301
302 * config/i386/i386-features.c (general_remove_non_convertible_regs):
303 Remove.
304 (convert_scalars_to_vector): Do not call it.
305
306 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
307 Uros Bizjak <ubizjak@gmail.com>
308
309 * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
310 CASE_MATHFN_FLOATN for roundeven.
311 * config/i386/i386.c (ix86_i387_mode_needed): Add case
312 I387_ROUNDEVEN.
313 (ix86_mode_needed): Likewise.
314 (ix86_mode_after): Likewise.
315 (ix86_mode_entry): Likewise.
316 (ix86_mode_exit): Likewise.
317 (ix86_emit_mode_set): Likewise.
318 (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
319 * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
320 (ix86_entity): Add I387_ROUNDEVEN.
321 (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
322 * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
323 (define_int_iterator): Likewise.
324 (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
325 (define_constant): Define ROUND_ROUNDEVEN mode.
326 (define_attr): Add roundeven mode for i387_cw.
327 (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
328 * internal-fn.def (ROUNDEVEN): New builtin function.
329 * optabs.def (roundeven_optab): New optab.
330
331 2019-08-26 Tejas Joshi <tejasjoshi9673@gmail.com>
332
333 * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
334 for ROUNDEVEN.
335 * builtins.def: Added function definitions for roundeven function
336 variants.
337 * fold-const-call.c (fold_const_call_ss): Added case for roundeven
338 function call. Adjust condition for floor, ceil, trunc and round.
339 * fold-const.c (negate_mathfn_p): Added case for roundeven function.
340 (tree_call_nonnegative_warnv_p): Added case for roundeven function.
341 (integer_valued_real_call_p): Added case for roundeven function.
342 * real.c (is_even): New function. Returns true if real number is even,
343 otherwise returns false.
344 (is_halfway_below): New function. Returns true if real number is
345 halfway between two integers, else return false.
346 (real_roundeven): New function. Round real number to nearest integer,
347 rounding halfway cases towards even.
348 * real.h (real_value): Added descriptive comments. Added function
349 declaration for roundeven function.
350 * doc/extend.texi (Other Builtins): List roundeven variants among
351 functions which can be handled as builtins.
352
353 2019-08-26 Richard Biener <rguenther@suse.de>
354
355 PR target/91522
356 PR target/91527
357 * config/i386/i386-features.h (general_scalar_chain::defs_map):
358 New member.
359 (general_scalar_chain::replace_with_subreg): Remove.
360 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
361 (general_scalar_chain::convert_reg): Adjust signature.
362 * config/i386/i386-features.c (scalar_chain::add_insn): Do not
363 iterate over all defs of a reg.
364 (general_scalar_chain::replace_with_subreg): Remove.
365 (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
366 (general_scalar_chain::make_vector_copies): Populate defs_map,
367 place copy only after defs that are used as vectors in the chain.
368 (general_scalar_chain::convert_reg): Emit a copy for a specific
369 def in a specific instruction.
370 (general_scalar_chain::convert_op): All reg uses are converted here.
371 (general_scalar_chain::convert_insn): Emit copies for scalar
372 uses of defs here. Replace uses with the copies we created.
373 Replace and convert the def. Adjust REG_DEAD notes, remove
374 REG_EQUIV/EQUAL notes.
375 (general_scalar_chain::convert_registers): Only handle copies
376 into the chain here.
377
378 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
379
380 * match.pd: Add (T)(A) + CST -> (T)(A + CST).
381
382 2019-08-26 Robin Dapp <rdapp@linux.ibm.com>
383
384 * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
385 Add nop_convert case.
386 * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
387 Fold all statements if requested.
388 * tree-ssa-propagate.h (class substitute_and_fold_engine):
389 Allow to fold all statements.
390 * tree-vrp.c (class vrp_folder):
391 Let substitute_and_fold_engine fold all statements.
392
393 2019-08-26 Richard Biener <rguenther@suse.de>
394
395 PR tree-optimization/91526
396 * passes.def: Note that after late FRE we do TODO_update_address_taken.
397 * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
398 TODO_update_address_taken.
399
400 2019-08-26 Gerald Pfeifer <gerald@pfeifer.com>
401
402 * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
403 __STDC_HOSTED__.
404
405 2019-08-23 Mihailo Stojanovic <mistojanovic@wavecomp.com>
406
407 * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
408 machine mode for unspec_volatile operand.
409
410 2019-08-23 Wilco Dijkstra <wdijkstr@arm.com>
411
412 * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
413 * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
414 * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
415 (prefer_neon_for_64bits): Remove.
416 * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
417 (tune_params): Remove PREF_NEON_64_FALSE uses.
418 (arm_option_override): Remove prefer_neon selection code.
419 (arm_print_tune_info): Remove prefer_neon_for_64bits.
420 * gcc/config/arm/arm-protos.h (tune_params): Remove
421 prefer_neon_for_64bits.
422 (prefer_neon_for_64bits): Remove.
423
424 2019-08-23 Iain Sandoe <iain@sandoe.co.uk>
425
426 PR pch/61250
427 * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
428 and issue any diagnostics needed before collecting the pre-PCH
429 state.
430
431 2019-08-23 Jakub Jelinek <jakub@redhat.com>
432
433 PR middle-end/91283
434 * common.opt (fexcess-precision=): Add Optimization flag. Use
435 flag_excess_precision variable instead of
436 flag_excess_precision_cmdline.
437 * flags.h (class target_flag_state): Remove x_flag_excess_precision
438 member.
439 (flag_excess_precision): Don't define.
440 * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
441 flag_excess_precision_cmdline. Remove comment.
442 * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
443 and x_flag_excess_precision instead of
444 frontend_set_flag_excess_precision_cmdline and
445 x_flag_excess_precision_cmdline.
446 (fast_math_flags_set_p): Use x_flag_excess_precision instead of
447 x_flag_excess_precision_cmdline.
448 * toplev.c (init_excess_precision): Remove.
449 (lang_dependent_init_target): Don't call it.
450
451 2019-08-23 Martin Liska <mliska@suse.cz>
452
453 * lto-wrapper.c (run_gcc): When setting jobserver
454 set also parallel to 1. This was done so before r273908.
455
456 2019-08-23 Dennis Zhang <dennis.zhang@arm.com>
457
458 * config/arm/arm-cpus.in (cortex-m35p): New entry.
459 (cortex-a76ae): Likewise.
460 (cortex-a77): Likewise
461 * config/arm/arm-tables.opt: Regenerate.
462 * config/arm/arm-tune.md: Likewise.
463 * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
464 cortex-a77 CPU options.
465
466 2019-08-23 Martin Liska <mliska@suse.cz>
467
468 * profile.c (instrument_values): Do not set
469 0 as last argument.
470 * tree-profile.c (gimple_gen_interval_profiler): Remove
471 last argument.
472 (gimple_gen_pow2_profiler): Likewise.
473 (gimple_gen_topn_values_profiler): Likewise.
474 (gimple_gen_ic_profiler): Likewise.
475 (gimple_gen_time_profiler): Likewise.
476 (gimple_gen_average_profiler): Likewise.
477 (gimple_gen_ior_profiler): Likewise.
478 * value-prof.c (dump_histogram_value): Use default
479 in switch statement instead of HIST_TYPE_MAX.
480 (stream_in_histogram_value): Likewise.
481 (gimple_duplicate_stmt_histograms): Do not
482 use NULL for implicitly set arguments.
483 (gimple_divmod_values_to_profile): Do not use
484 reserve+quick_push.
485 (gimple_indirect_call_to_profile): Likewise.
486 (gimple_find_values_to_profile): Use implicit
487 function call arguments.
488 * value-prof.h (gimple_alloc_histogram_value):
489 Set default values.
490 (gimple_gen_interval_profiler): Remove last argument.
491 (gimple_gen_pow2_profiler): Likewise.
492 (gimple_gen_topn_values_profiler): Likewise.
493 (gimple_gen_ic_profiler): Likewise.
494 (gimple_gen_time_profiler): Likewise.
495 (gimple_gen_average_profiler): Likewise.
496 (gimple_gen_ior_profiler): Likewise.
497
498 2019-08-22 Martin Sebor <msebor@redhat.com>
499
500 PR middle-end/91490
501 * builtins.c (c_strlen): Rename argument and introduce new local.
502 Set no-warning bit on original argument.
503 * expr.c (string_constant): Pass argument type to fold_ctor_reference.
504 Fold empty and zero constructors into empty strings.
505 * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
506 for missing initializers.
507 * tree.c (build_string_literal): Handle optional argument.
508 * tree.h (build_string_literal): Add defaulted argument.
509 * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
510 no-warning bit on original expression.
511
512 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
513
514 PR target/91481
515 * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
516 and UNSPEC_DARN_RAW.
517 (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
518 UNSPECV_DARN_RAW.
519 (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
520 (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
521 (darn): Use an unspec_volatile, and UNSPECV_DARN.
522
523 2019-08-22 Segher Boessenkool <segher@kernel.crashing.org>
524
525 * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
526 UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
527 * config/rs6000/rs6000.md (unspec): ... here.
528 * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
529 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
530 cmpeqb, *cmpeqb_internal): Delete, move to...
531 * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
532 *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
533 cmpeqb, *cmpeqb_internal): ... here.
534
535 2019-08-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
536
537 * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
538 intrinsics if __ARM_FP.
539 Use __ARM_FEATURE_CRC32 ifdef guard.
540
541 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
542
543 * config/arm/arm.md (neon_for_64bits): Remove.
544 (avoid_neon_for_64bits): Remove.
545 (arm_adddi3): Always split early.
546 (arm_subdi3): Always split early.
547 (negdi2): Remove Neon expansion.
548 (split zero_extend): Split before reload.
549 (split sign_extend): Split before reload.
550
551 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
552
553 * config/arm/iterators.md (qhs_extenddi_cstr): Update.
554 (qhs_extenddi_cstr): Likewise.
555 * config/arm/arm.md (ashldi3): Always expand early.
556 (ashlsi3): Likewise.
557 (ashrsi3): Likewise.
558 (zero_extend<mode>di2): Remove Neon variants.
559 (extend<mode>di2): Likewise.
560 * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
561 (signed_shift_di3_neon): Likewise.
562 (unsigned_shift_di3_neon): Likewise.
563 (ashrdi3_neon_imm_noclobber): Likewise.
564 (lshrdi3_neon_imm_noclobber): Likewise.
565 (<shift>di3_neon): Likewise.
566 (split extend): Remove DI extend split patterns.
567
568 2019-08-22 Wilco Dijkstra <wdijkstr@arm.com>
569
570 * config/arm/arm.md (split and/eor/ior): Remove Neon check.
571 (split not): Add DImode not splitter.
572 (anddi3): Remove pattern.
573 (anddi3_insn): Likewise.
574 (anddi_zesidi_di): Likewise.
575 (anddi_sesdi_di): Likewise.
576 (anddi_notdi_di): Likewise.
577 (anddi_notzesidi_di): Likewise.
578 (anddi_notsesidi_di): Likewise.
579 (iordi3): Likewise.
580 (iordi3_insn): Likewise.
581 (iordi_zesidi_di): Likewise.
582 (iordi_sesidi_di): Likewise.
583 (xordi3): Likewise.
584 (xordi3_insn): Likewise.
585 (xordi_sesidi_di): Likewise.
586 (xordi_zesidi_di): Likewise.
587 (one_cmpldi2): Likewise.
588 (one_cmpldi2_insn): Likewise.
589 * config/arm/constraints.md: Remove De, Df, Dg constraints.
590 * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
591 alternative.
592 (iwmmxt_xordi3): Likewise.
593 (iwmmxt_anddi3): Likewise.
594 * config/arm/neon.md (orndi3_neon): Remove pattern.
595 (anddi_notdi_di): Likewise.
596 * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
597 (arm_iordi_operand_neon): Likewise.
598 (arm_xordi_operand_neon): Likewise.
599 * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
600 (iordi_notzesidi_di): Likewise.
601 (iordi_notdi_zesidi): Likewise.
602 (iordi_notsesidi_di): Likewise.
603
604 2019-08-22 Richard Earnshaw <rearnsha@arm.com>
605
606 * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
607 insn.
608 (iorsi3_compare0_scratch): Likewise.
609
610 2019-08-22 Sylvia Taylor <sylvia.taylor@arm.com>
611
612 * config/aarch64/aarch64-simd-builtins.def:
613 (ld1x4): New.
614 (st1x4): Likewise.
615 * config/aarch64/aarch64-simd.md:
616 (aarch64_ld1x4<VALLDIF:mode>): New pattern.
617 (aarch64_st1x4<VALLDIF:mode>): Likewise.
618 (aarch64_ld1_x4_<mode>): Likewise.
619 (aarch64_st1_x4_<mode>): Likewise.
620 * config/aarch64/arm_neon.h:
621 (vld1_s8_x4): New function.
622 (vld1q_s8_x4): Likewise.
623 (vld1_s16_x4): Likewise.
624 (vld1q_s16_x4): Likewise.
625 (vld1_s32_x4): Likewise.
626 (vld1q_s32_x4): Likewise.
627 (vld1_u8_x4): Likewise.
628 (vld1q_u8_x4): Likewise.
629 (vld1_u16_x4): Likewise.
630 (vld1q_u16_x4): Likewise.
631 (vld1_u32_x4): Likewise.
632 (vld1q_u32_x4): Likewise.
633 (vld1_f16_x4): Likewise.
634 (vld1q_f16_x4): Likewise.
635 (vld1_f32_x4): Likewise.
636 (vld1q_f32_x4): Likewise.
637 (vld1_p8_x4): Likewise.
638 (vld1q_p8_x4): Likewise.
639 (vld1_p16_x4): Likewise.
640 (vld1q_p16_x4): Likewise.
641 (vld1_s64_x4): Likewise.
642 (vld1_u64_x4): Likewise.
643 (vld1_p64_x4): Likewise.
644 (vld1q_s64_x4): Likewise.
645 (vld1q_u64_x4): Likewise.
646 (vld1q_p64_x4): Likewise.
647 (vld1_f64_x4): Likewise.
648 (vld1q_f64_x4): Likewise.
649 (vst1_s8_x4): Likewise.
650 (vst1q_s8_x4): Likewise.
651 (vst1_s16_x4): Likewise.
652 (vst1q_s16_x4): Likewise.
653 (vst1_s32_x4): Likewise.
654 (vst1q_s32_x4): Likewise.
655 (vst1_u8_x4): Likewise.
656 (vst1q_u8_x4): Likewise.
657 (vst1_u16_x4): Likewise.
658 (vst1q_u16_x4): Likewise.
659 (vst1_u32_x4): Likewise.
660 (vst1q_u32_x4): Likewise.
661 (vst1_f16_x4): Likewise.
662 (vst1q_f16_x4): Likewise.
663 (vst1_f32_x4): Likewise.
664 (vst1q_f32_x4): Likewise.
665 (vst1_p8_x4): Likewise.
666 (vst1q_p8_x4): Likewise.
667 (vst1_p16_x4): Likewise.
668 (vst1q_p16_x4): Likewise.
669 (vst1_s64_x4): Likewise.
670 (vst1_u64_x4): Likewise.
671 (vst1_p64_x4): Likewise.
672 (vst1q_s64_x4): Likewise.
673 (vst1q_u64_x4): Likewise.
674 (vst1q_p64_x4): Likewise.
675 (vst1_f64_x4): Likewise.
676 (vst1q_f64_x4): Likewise.
677
678 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
679
680 * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
681
682 2019-08-22 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
683 Richard Sandiford <richard.sandiford@arm.com>
684
685 PR target/88839
686 * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
687 (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
688
689 2019-08-21 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
690
691 PR target/90724
692 * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
693 in reg if it fails aarch64_plus_operand predicate.
694
695 2019-08-21 Richard Biener <rguenther@suse.de>
696
697 PR tree-optimization/91482
698 * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
699 BUILT_IN_ASSUME_ALIGNED calls.
700
701 2019-08-21 Richard Biener <rguenther@suse.de>
702
703 PR target/91498
704 PR target/91503
705 * config/i386/i386-features.c
706 (general_scalar_chain::make_vector_copies): Copy stack temporary
707 rtx when using it multiple times.
708 (general_scalar_chain::convert_reg): Likewise.
709
710 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
711
712 * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
713
714 2019-08-20 Matthew Beliveau <mbelivea@redhat.com>
715
716 * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
717 catch more redundant zero initialization cases.
718 (dse_dom_walker::dse_optimize_stmt): Likewise.
719
720 2019-08-20 Richard Biener <rguenther@suse.de>
721
722 PR lto/91307
723 * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
724 by collect2 when targetm.have_ctors_dtors which avoids dragging
725 in temporary filenames from LTO input objects.
726
727 2019-08-20 Richard Biener <rguenther@suse.de>
728
729 PR tree-optimization/37242
730 * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
731 to (T)a + (T)b if we know that a + b does not overflow.
732
733 2019-08-20 Eric Botcazou <ebotcazou@adacore.com>
734
735 PR rtl-optimization/91347
736 * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
737 before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
738
739 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
740
741 * calls.h (function_arg_info): Add a pass_by_reference field,
742 defaulting to false.
743 * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
744 when applying pass-by-reference semantics.
745 (initialize_argument_information): Likewise.
746 (emit_library_call_value_1): Likewise.
747 * function.c (assign_parm_data_one): Remove passed_pointer field.
748 (assign_parm_find_data_types): Don't set it.
749 (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
750 (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
751 arg.pass_by_reference instead of passed_pointer.
752
753 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
754
755 * calls.c (emit_library_call_value_1): Merge arg and orig_arg
756 into a single function_arg_info, updating its fields when we
757 apply pass-by-reference and promotion semantics. Use the
758 function_arg_info to track the mode rather than keeping it in
759 a separate local variable.
760 (initialize_argument_information): Likewise. Base the final
761 arg_to_skip on this new function_arg_info rather than creating
762 a new one from scratch.
763
764 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
765
766 * function.c (assign_parm_data_one): Replace passed_type,
767 promoted_mode and named_arg with a function_arg_info field.
768 (assign_parm_find_data_types): Remove local variables and
769 assign directly to "data". Make data->passed_mode shadow
770 data->arg.mode until promotion, then assign the promoted
771 mode to data->arg.mode.
772 (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
773 (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
774 (assign_parm_remove_parallels, assign_parm_setup_block_p)
775 (assign_parm_setup_block, assign_parm_setup_reg)
776 (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
777 arg.mode instead of promoted_mode, arg.type instead of passed_type
778 and arg.named instead of named_arg. Use data->arg for
779 function_arg_info structures that had the field values passed_type,
780 promoted_mode and named_arg. Base other function_arg_infos on
781 data->arg, changing the necessary properties.
782
783 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
784
785 * calls.h (apply_pass_by_reference_rules): Declare.
786 * calls.c (apply_pass_by_reference_rules): New function.
787 * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
788 * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
789 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
790 * function.c (assign_parm_find_data_types): Likewise.
791 * var-tracking.c (prepare_call_arguments): Likewise.
792
793 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
794
795 * target.def (must_pass_in_stack): Take a function_arg_info instead
796 of a mode and a type.
797 * doc/tm.texi: Regenerate.
798 * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
799 instead of a mode and a type.
800 (must_pass_in_stack_var_size_or_pad): Likewise.
801 * calls.c (must_pass_in_stack_var_size): Likewise.
802 (must_pass_in_stack_var_size_or_pad): Likewise.
803 (initialize_argument_information): Update call to
804 targetm.calls.must_pass_in_stack.
805 (must_pass_va_arg_on_stack): Likewise.
806 * function.c (assign_parm_find_entry_rtl): Likewise.
807 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
808 * config/alpha/alpha.c (alpha_function_arg): Likewise.
809 (alpha_function_arg_advance): Likewise.
810 * config/cr16/cr16.c (cr16_function_arg): Likewise.
811 (cr16_function_arg_advance): Likewise.
812 * config/cris/cris.c (cris_pass_by_reference): Likewise.
813 (cris_arg_partial_bytes): Likewise.
814 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
815 * config/lm32/lm32.c (lm32_function_arg): Likewise.
816 * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
817 (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
818 * config/mips/mips.c (mips_pass_by_reference): Likewise.
819 * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
820 (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
821 * config/sh/sh.c (sh_pass_by_reference): Likewise.
822 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
823 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
824 * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
825 instead of a mode and a type.
826 * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
827 (fr30_num_arg_regs): Likewise.
828 (fr30_setup_incoming_varargs): Update calls accordingly.
829 (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
830 (fr30_function_arg_advance): Likewise.
831 * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
832 instead of a mode and a type.
833 * config/gcn/gcn.c (num_arg_regs): Likewise.
834 (gcn_function_arg, gcn_function_arg_advance): Update calls to
835 num_arg_regs and targetm.calls.must_pass_in_stack.
836 (gcn_arg_partial_bytes): Likewise.
837 * config/i386/i386.c (ix86_must_pass_in_stack): Take a
838 function_arg_info instead of a mode and a type.
839 (classify_argument): Update call accordingly.
840 * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
841 function_arg_info instead of a mode and a type.
842 * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
843 Likewise.
844 * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
845 (rs6000_parm_needs_stack): Update call accordingly.
846 (setup_incoming_varargs): Likewise.
847
848 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
849
850 * target.def (callee_copies): Take a function_arg_info instead
851 of a mode, type and named flag.
852 * doc/tm.texi: Regenerate.
853 * targhooks.h (hook_callee_copies_named): Take a function_arg_info
854 instead of a mode, type and named flag.
855 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
856 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
857 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
858 * targhooks.c (hook_callee_copies_named): Take a function_arg_info
859 instead of a mode, type and named flag.
860 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
861 (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
862 (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
863 * calls.h (reference_callee_copied): Take a function_arg_info
864 instead of a mode, type and named flag.
865 * calls.c (reference_callee_copied): Likewise.
866 (initialize_argument_information): Update call accordingly.
867 (emit_library_call_value_1): Likewise.
868 * function.c (gimplify_parameters): Likewise.
869 * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
870 hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
871 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
872 * config/c6x/c6x.c (c6x_callee_copies): Delete.
873 (TARGET_CALLEE_COPIES): Define to
874 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
875 * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
876 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
877 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
878 * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
879 instead of a mode, type and named flag.
880 * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
881 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
882 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
883 * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
884 * config/msp430/msp430.c (msp430_callee_copies): Delete.
885 (TARGET_CALLEE_COPIES): Define to
886 hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
887 * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
888 instead of a mode, type and named flag.
889 * config/sh/sh.c (sh_callee_copies): Likewise.
890 * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
891 hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
892 hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
893
894 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
895
896 * target.def (function_arg_advance): Take a function_arg_info instead
897 of a mode, type and named flag.
898 * doc/tm.texi: Regenerate.
899 * targhooks.h (default_function_arg_advance): Take a function_arg_info
900 instead of a mode, type and named flag.
901 * targhooks.c (default_function_arg_advance): Likewise.
902 * calls.c (initialize_argument_information): Update call to
903 targetm.calls.function_arg_advance.
904 (emit_library_call_value_1): Likewise.
905 * dse.c (get_call_args): Likewise.
906 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
907 * function.c (assign_parms, gimplify_parameters): Likewise.
908 * var-tracking.c (prepare_call_arguments): Likewise.
909 * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
910 function_arg_info instead of a mode, type and named flag.
911 (aarch64_setup_incoming_varargs): Update call accordingly.
912 * config/alpha/alpha.c (alpha_function_arg_advance): Take a
913 function_arg_info instead of a mode, type and named flag.
914 (alpha_setup_incoming_varargs): Update call accordingly.
915 * config/arc/arc.c (arc_function_arg_advance): Take a
916 function_arg_info instead of a mode, type and named flag.
917 (arc_setup_incoming_varargs): Update call accordingly.
918 * config/arm/arm.c (arm_function_arg_advance): Take a
919 function_arg_info instead of a mode, type and named flag.
920 (cmse_func_args_or_return_in_stack): Update call accordingly.
921 (arm_function_ok_for_sibcall): Likewise.
922 (cmse_nonsecure_call_clear_caller_saved): Likewise.
923 * config/avr/avr.c (avr_function_arg_advance): Take a
924 function_arg_info instead of a mode, type and named flag.
925 * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
926 * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
927 (c6x_call_saved_register_used): Update call accordingly.
928 * config/cr16/cr16.c (cr16_function_arg_advance): Take a
929 function_arg_info instead of a mode, type and named flag.
930 * config/cris/cris.c (cris_function_arg_advance): Likewise.
931 * config/csky/csky.c (csky_function_arg_advance): Likewise.
932 (csky_setup_incoming_varargs): Update call accordingly.
933 * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
934 function_arg_info instead of a mode, type and named flag.
935 * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
936 * config/frv/frv.c (frv_function_arg_advance): Likewise.
937 * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
938 * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
939 * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
940 * config/i386/i386.c (ix86_function_arg_advance): Likewise.
941 (ix86_setup_incoming_varargs): Update call accordingly.
942 * config/ia64/ia64.c (ia64_function_arg_advance): Take a
943 function_arg_info instead of a mode, type and named flag.
944 (ia64_setup_incoming_varargs): Update call accordingly.
945 * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
946 function_arg_info instead of a mode, type and named flag.
947 (iq2000_expand_prologue): Update call accordingly.
948 * config/lm32/lm32.c (lm32_function_arg_advance): Take a
949 function_arg_info instead of a mode, type and named flag.
950 * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
951 * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
952 * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
953 * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
954 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
955 Likewise.
956 (microblaze_expand_prologue): Update call accordingly.
957 * config/mips/mips.c (mips_function_arg_advance): Take a
958 function_arg_info instead of a mode, type and named flag.
959 (mips_setup_incoming_varargs): Update call accordingly.
960 (mips_output_args_xfer): Likewise.
961 * config/mmix/mmix.c (mmix_function_arg_advance): Take a
962 function_arg_info instead of a mode, type and named flag.
963 * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
964 * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
965 * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
966 * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
967 * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
968 (nios2_setup_incoming_varargs): Update call accordingly.
969 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
970 function_arg_info instead of a mode, type and named flag.
971 * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
972 * config/pa/pa.c (pa_function_arg_advance): Likewise.
973 * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
974 * config/pru/pru.c (pru_function_arg_advance): Likewise.
975 * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
976 (riscv_setup_incoming_varargs): Update call accordingly.
977 * config/rl78/rl78.c (rl78_function_arg_advance): Take a
978 function_arg_info instead of a mode, type and named flag.
979 * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
980 Likewise.
981 * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
982 (rs6000_parm_needs_stack): Update call accordingly.
983 * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
984 instead of a mode, type and named flag.
985 * config/s390/s390.c (s390_function_arg_advance): Likewise.
986 (s390_call_saved_register_used): Update call accordingly.
987 * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
988 instead of a mode, type and named flag.
989 (sh_output_mi_thunk): Update call accordingly.
990 * config/sparc/sparc.c (sparc_function_arg_advance): Take a
991 function_arg_info instead of a mode, type and named flag.
992 * config/spu/spu.c (spu_function_arg_advance): Likewise.
993 (spu_setup_incoming_varargs): Update call accordingly.
994 * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
995 function_arg_info instead of a mode, type and named flag.
996 * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
997 (tilegx_setup_incoming_varargs): Update call accordingly.
998 * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
999 function_arg_info instead of a mode, type and named flag.
1000 (tilegx_setup_incoming_varargs): Update call accordingly.
1001 * config/v850/v850.c (v850_function_arg_advance): Take a
1002 function_arg_info instead of a mode, type and named flag.
1003 * config/vax/vax.c (vax_function_arg_advance): Likewise.
1004 * config/visium/visium.c (visium_function_arg_advance): Likewise.
1005 (visium_setup_incoming_varargs): Update call accordingly.
1006 * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
1007 function_arg_info instead of a mode, type and named flag.
1008
1009 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1010
1011 * target.def (function_arg, function_incoming_arg): Take a
1012 function_arg_info instead of a mode, tree and named flag.
1013 * doc/tm.texi: Regenerate.
1014 * targhooks.h (default_function_arg): Take a function_arg_info
1015 instead of a mode, tree and named flag.
1016 (default_function_incoming_arg): Likewise.
1017 * targhooks.c (default_function_arg): Likewise.
1018 (default_function_incoming_arg): Likewise.
1019 * calls.h (function_arg_info::end_marker_p): New function.
1020 (function_arg_info::end_marker): Likewise.
1021 * calls.c (prepare_call_address, initialize_argument_information)
1022 (expand_call, emit_library_call_value_1): Update calls to
1023 targetm.calls.function_arg and targetm.calls.function_incoming_arg.
1024 * dse.c: Include calls.h.
1025 (get_call_args): Update call to targetm.calls.function_arg.
1026 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1027 * var-tracking.c (prepare_call_arguments): Likewise.
1028 * function.c (assign_parm_find_entry_rtl): Update call to
1029 targetm.calls.function_incoming_arg.
1030 * config/aarch64/aarch64.c (aarch64_function_arg): Take a
1031 function_arg_info instead of a mode, tree and named flag.
1032 * config/alpha/alpha.c (alpha_function_arg): Likewise.
1033 * config/arc/arc.c (arc_function_arg): Likewise.
1034 * config/arm/arm.c (arm_function_arg): Likewise.
1035 (cmse_func_args_or_return_in_stack): Update call accordingly.
1036 (arm_function_ok_for_sibcall): Likewise.
1037 (cmse_nonsecure_call_clear_caller_saved): Likewise.
1038 * config/avr/avr.c (avr_function_arg): Take a function_arg_info
1039 instead of a mode, tree and named flag.
1040 * config/bfin/bfin.c (bfin_function_arg): Likewise.
1041 * config/c6x/c6x.c (c6x_function_arg): Likewise.
1042 (c6x_call_saved_register_used): Update call accordingly.
1043 * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
1044 instead of a mode, tree and named flag.
1045 * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
1046 (cris_function_arg_1): Likewise.
1047 * config/csky/csky.c (csky_function_arg): Likewise.
1048 * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
1049 * config/fr30/fr30.c (fr30_function_arg): Likewise.
1050 * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
1051 (frv_function_arg_1): Likewise.
1052 * config/ft32/ft32.c (ft32_function_arg): Likewise.
1053 * config/gcn/gcn.c (gcn_function_arg): Likewise.
1054 * config/h8300/h8300.c (h8300_function_arg): Likewise.
1055 * config/i386/i386.c (ix86_function_arg): Likewise.
1056 * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
1057 (ia64_function_arg_1): Likewise.
1058 * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
1059 (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
1060 accordingly.
1061 * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
1062 instead of a mode, tree and named flag.
1063 * config/m32c/m32c.c (m32c_function_arg): Likewise.
1064 * config/m32r/m32r.c (m32r_function_arg): Likewise.
1065 * config/m68k/m68k.c (m68k_function_arg): Likewise.
1066 * config/mcore/mcore.c (mcore_function_arg): Likewise.
1067 * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
1068 (microblaze_expand_prologue): Update call accordingly.
1069 * config/mips/mips.c (mips_function_arg): Take a function_arg_info
1070 instead of a mode, tree and named flag.
1071 * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
1072 (mmix_function_arg_1): Likewise.
1073 * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
1074 * config/moxie/moxie.c (moxie_function_arg): Likewise.
1075 * config/msp430/msp430.c (msp430_function_arg): Likewise.
1076 * config/nds32/nds32.c (nds32_function_arg): Likewise.
1077 * config/nios2/nios2.c (nios2_function_arg): Likewise.
1078 * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
1079 (nvptx_function_incoming_arg): Likewise.
1080 * config/or1k/or1k.c (or1k_function_arg): Likewise.
1081 * config/pa/pa.c (pa_function_arg): Likewise.
1082 * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
1083 * config/pru/pru.c (pru_function_arg): Likewise.
1084 * config/riscv/riscv.c (riscv_function_arg): Likewise.
1085 * config/rl78/rl78.c (rl78_function_arg): Likewise.
1086 * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
1087 * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
1088 (rs6000_parm_needs_stack): Update call accordingly.
1089 * config/rx/rx.c (rx_function_arg): Take a function_arg_info
1090 instead of a mode, tree and named flag.
1091 * config/s390/s390.c (s390_function_arg): Likewise.
1092 (s390_call_saved_register_used): Update call accordingly.
1093 * config/sh/sh.c (sh_function_arg): Take a function_arg_info
1094 instead of a mode, tree and named flag.
1095 (sh_output_mi_thunk): Update call accordingly.
1096 * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
1097 (sparc_function_incoming_arg): Take a function_arg_info instead of
1098 a mode, tree and named flag.
1099 * config/spu/spu.c (spu_function_arg): Likewise.
1100 * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
1101 * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
1102 * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
1103 * config/v850/v850.c (v850_function_arg): Likewise.
1104 * config/vax/vax.c (vax_function_arg): Likewise.
1105 * config/visium/visium.c (visium_function_arg): Likewise.
1106 * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
1107 (xtensa_function_incoming_arg): Likewise.
1108
1109 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1110
1111 * target.def (setup_incoming_varargs): Take a function_arg_info
1112 instead of a mode and tree.
1113 * doc/tm.texi: Regenerate.
1114 * targhooks.h (default_setup_incoming_varargs): Take a
1115 function_arg_info instead of a mode and tree.
1116 * targhooks.c (default_setup_incoming_varargs): Likewise.
1117 * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
1118 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
1119 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
1120 * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
1121 * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
1122 * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
1123 * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
1124 * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
1125 Likewise.
1126 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
1127 * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
1128 * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
1129 * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
1130 * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
1131 * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
1132 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
1133 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
1134 * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
1135 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
1136 * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
1137 * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
1138 * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
1139 * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
1140 * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
1141 * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
1142 * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
1143 * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
1144 * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
1145 * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
1146 * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
1147 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
1148 * function.c (assign_parms_setup_varargs): Update call to
1149 targetm.calls.setup_incoming_varargs.
1150
1151 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1152
1153 * target.def (pass_by_reference): Take a function_arg_info instead
1154 of a mode, type and named flag.
1155 * doc/tm.texi: Regenerate.
1156 * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
1157 accordingly.
1158 (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
1159 * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
1160 function_arg_info instead of a mode, type and named flag.
1161 (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
1162 * calls.h (pass_by_reference): Take a function_arg_info instead of a
1163 mode, type and named flag.
1164 * calls.c (pass_by_reference): Likewise.
1165 (pass_va_arg_by_reference): Update call accordingly.
1166 (initialize_argument_information): Likewise.
1167 (emit_library_call_value_1): Likewise.
1168 * function.c (assign_parm_find_data_types): Likewise.
1169 * var-tracking.c (prepare_call_arguments): Likewise.
1170 * stor-layout.c: Include calls.h.
1171 (compute_record_mode): Update call to targetm.calls.pass_by_reference.
1172 * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
1173 function_arg_info instead of a mode, type and named flag.
1174 * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
1175 * config/arc/arc.c (arc_pass_by_reference): Likewise.
1176 * config/arm/arm.c (arm_pass_by_reference): Likewise.
1177 * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
1178 * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
1179 (c6x_call_saved_register_used): Update call to pass_by_reference.
1180 * config/cris/cris.c (cris_pass_by_reference): Take a
1181 function_arg_info instead of a mode, type and named flag.
1182 * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
1183 function_arg_info instead of a mode, type and named flag.
1184 (epiphany_arg_partial_bytes): Update call accordingly.
1185 * config/ft32/ft32.c (ft32_pass_by_reference): Take a
1186 function_arg_info instead of a mode, type and named flag.
1187 (ft32_arg_partial_bytes): Update call accordingly.
1188 * config/i386/i386.c (ix86_pass_by_reference): Take a
1189 function_arg_info instead of a mode, type and named flag.
1190 * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
1191 * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
1192 * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
1193 (m32r_return_in_memory): Update call accordingly.
1194 * config/mips/mips.c (mips_pass_by_reference): Take a
1195 function_arg_info instead of a mode, type and named flag.
1196 * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
1197 * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
1198 * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
1199 (moxie_arg_partial_bytes): Update call accordingly.
1200 * config/msp430/msp430.c (msp430_pass_by_reference): Take a
1201 function_arg_info instead of a mode, type and named flag.
1202 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
1203 * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
1204 * config/pa/pa.c (pa_pass_by_reference): Likewise.
1205 * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
1206 (riscv_return_in_memory): Update call accordingly.
1207 * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
1208 function_arg_info instead of a mode, type and named flag.
1209 * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
1210 (rs6000_parm_needs_stack): Update call to pass_by_reference.
1211 * config/s390/s390.c (s390_pass_by_reference): Take a
1212 function_arg_info instead of a mode, type and named flag.
1213 (s390_call_saved_register_used): Update call accordingly.
1214 * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
1215 instead of a mode, type and named flag.
1216 * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
1217 * config/spu/spu.c (spu_pass_by_reference): Likewise.
1218 * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
1219 * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
1220 * config/v850/v850.c (v850_pass_by_reference): Likewise.
1221 * config/visium/visium.c (visium_pass_by_reference): Likewise.
1222
1223 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1224
1225 * target.def (arg_partial_bytes): Take a function_arg_info instead
1226 of a mode, type and named flag.
1227 * doc/tm.texi: Regenerate.
1228 * target.h (function_arg_info): Declare.
1229 * calls.h (function_arg_info): New class.
1230 * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1231 (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
1232 * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
1233 (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
1234 * calls.c (initialize_argument_information): Update call to
1235 targetm.calls.partial_bytes.
1236 (emit_library_call_value_1): Likewise.
1237 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1238 * function.c (assign_parm_find_entry_rtl): Likewise.
1239 * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
1240 function_arg_info instead of a mode, type and named flag.
1241 * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
1242 * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
1243 (cmse_func_args_or_return_in_stack): Update accordingly.
1244 * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
1245 function_arg_info instead of a mode, type and named flag.
1246 * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
1247 * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
1248 * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
1249 * config/fr30/fr30.c: Include calls.h.
1250 (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
1251 type and named flag.
1252 * config/frv/frv.c: Include calls.h.
1253 (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
1254 type and named flag.
1255 * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
1256 * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
1257 * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
1258 * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
1259 * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
1260 * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
1261 * config/microblaze/microblaze.c (function_arg_partial_bytes):
1262 Likewise.
1263 * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
1264 * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
1265 * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
1266 * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
1267 * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
1268 * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
1269 * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
1270 * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
1271 * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
1272 * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
1273 * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
1274 (rs6000_parm_needs_stack): Update call accordingly.
1275 * config/sh/sh.c (sh_arg_partial_bytes): Take a
1276 function_arg_info instead of a mode, type and named flag.
1277 * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
1278 * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
1279
1280 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1281
1282 * calls.h (must_pass_va_arg_in_stack): Declare.
1283 * calls.c (must_pass_va_arg_in_stack): New function.
1284 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
1285 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1286 * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
1287 Likewise.
1288 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1289
1290 2019-08-20 Richard Sandiford <richard.sandiford@arm.com>
1291
1292 * calls.h (pass_va_arg_by_reference): Declare.
1293 * calls.c (pass_va_arg_by_reference): New function.
1294 * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
1295 * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
1296 * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
1297 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
1298 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1299 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
1300 (mips_gimplify_va_arg_expr): Likewise.
1301 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
1302 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1303 * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
1304 * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
1305 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
1306 * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
1307 * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
1308 * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
1309 * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
1310 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1311 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
1312
1313 2019-08-20 Richard Biener <rguenther@suse.de>
1314
1315 PR target/91498
1316 * config/i386/i386-features.c (general_scalar_chain::convert_op):
1317 Use (vec_merge (vec_duplicate..)) style vector from scalar move.
1318 (convert_scalars_to_vector): Add timode_p parameter and use it
1319 to guard TImode-only operation.
1320 (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
1321 (pass_stv::execute): Pass down timode_p.
1322
1323 2019-08-20 Lili Cui <lili.cui@intel.com>
1324
1325 * common/config/i386/i386-common.c
1326 (processor_names): Add tigerlake and cooperlake.
1327 (processor_alias_table): Add tigerlake and cooperlake.
1328 * config.gcc: Add -march=tigerlake and cooperlake.
1329 * config/i386/driver-i386.c
1330 (host_detect_local_cpu): Detect tigerlake and cooperlake.
1331 Add "has_avx" to classify processor.
1332 * config/i386/i386-builtins.c (processor_model) :
1333 Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
1334 (arch_names_table): Add tigerlake and cooperlake.
1335 (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
1336 and PROCESSOR_COOPERLAKE.
1337 * config/i386/i386-c.c
1338 (ix86_target_macros_internal): Handle tigerlake and cooperlake.
1339 * config/i386/i386-options.c
1340 (m_TIGERLAKE) : Define.
1341 (m_COOPERLAKE) : Ditto.
1342 (m_CORE_AVX512): Ditto.
1343 (processor_cost_table): Add cascadelake.
1344 (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
1345 * config/i386/i386.h
1346 (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
1347 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1348 (PTA_MOVDIRI): Ditto.
1349 (PTA_MOVDIR64B): Ditto.
1350 (PTA_COOPERLAKE) : Ditto.
1351 (PTA_TIGERLAKE) : Ditto.
1352 (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
1353 * doc/extend.texi: Add tigerlake and cooperlake.
1354 * doc/invoke.texi: Add tigerlake and cooperlake.
1355
1356 2019-08-20 Gerald Pfeifer <gerald@pfeifer.com>
1357
1358 * doc/install.texi (Specific, alpha): Remove note to use
1359 binutils 2.11.2 or later.
1360
1361 2019-08-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
1362
1363 PR middle-end/89544
1364 * function.c (assign_parm_find_stack_rtl): Use larger alignment
1365 when possible.
1366
1367 2019-08-19 Joel Hutton <Joel.Hutton@arm.com>
1368
1369 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
1370 * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
1371 * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
1372 (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
1373 * config/aarch64/constraints.md (Dt): New constraint
1374 * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
1375
1376 2019-08-19 Richard Biener <rguenther@suse.de>
1377
1378 PR tree-optimization/91403
1379 * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
1380 cases we can handle with tail-recursion...
1381 (follow_ssa_edge_expr): ... here. Do so.
1382
1383 2019-08-19 Kito Cheng <kito.cheng@sifive.com>
1384
1385 PR target/91441
1386 * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
1387 implemented for -fsanitize=kernel-address, and merge check logic
1388 with -fsanitize=address.
1389
1390 2019-08-18 Iain Sandoe <iain@sandoe.co.uk>
1391
1392 * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
1393 for cpu and machine. Factor 64/32b builtins.
1394
1395 2019-08-18 Gerald Pfeifer <gerald@pfeifer.com>
1396
1397 * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
1398 gone, point to sourceforge.net.
1399
1400 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1401
1402 * doc/ux.texi (User Experience Guidelines): Update reference.
1403
1404 2019-08-17 Gerald Pfeifer <gerald@pfeifer.com>
1405
1406 * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
1407 not LGPL".
1408
1409 2019-08-16 Eric Botcazou <ebotcazou@adacore.com>
1410
1411 * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
1412 of NULL. Add guard for broken VIEW_CONVERT_EXPRs.
1413
1414 2019-08-16 Martin Sebor <msebor@redhat.com>
1415
1416 * tree.def (TYPE_SIZE): Clarify.
1417 * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
1418
1419 2019-08-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
1420
1421 PR tree-optimization/91109
1422 * lra-int.h (lra_need_for_scratch_reg_p): Declare.
1423 * lra.c (lra): Use lra_need_for_scratch_reg_p.
1424 * lra-spills.c (lra_need_for_scratch_reg_p): New function.
1425
1426 2019-08-16 Uroš Bizjak <ubizjak@gmail.com>
1427
1428 * config/i386/mmx.md (mmxdoublemode): New mode attribute.
1429 (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
1430 mmx_uavgv4hi3 using MMXMODE12 mode iterator.
1431 (uavg<mode>3_ceil): New expander.
1432 * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
1433 mode iterator when creating CONST1_RTX.
1434 (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
1435 (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
1436 mode iterator for const1_operand predicate.
1437
1438 2019-08-16 Richard Biener <rguenther@suse.de>
1439
1440 * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
1441 (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
1442 follow_ssa_edge.
1443 (follow_ssa_edge_in_condition_phi_branch): Likewise.
1444 (analyze_evolution_in_loop): Likewise.
1445 (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
1446 (follow_ssa_edge_expr): ... here. Refactor code.
1447
1448 2019-08-16 Richard Biener <rguenther@suse.de>
1449
1450 PR target/91469
1451 * config/i386/i386-features.c
1452 (general_scalar_chain::replace_with_subreg): Stop at memory operands.
1453
1454 2019-08-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1455
1456 PR other/91255
1457 * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
1458 only if subst_name matches curr_attr string.
1459
1460 2019-08-16 Richard Biener <rguenther@suse.de>
1461
1462 * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
1463 stmt at gsi_p, instead replace it with a NOP removed later.
1464 (pass_forwprop::execute): Fully propagate lattice, DCE stmts
1465 that became dead because of that.
1466
1467 2019-08-16 Aldy Hernandez <aldyh@redhat.com>
1468
1469 * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
1470 for which we can't represent a range.
1471 * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
1472 set_varying.
1473 * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
1474 Set VR_UNDEFINED if type is not supported.
1475 * tree-ssanames.c (get_range_info): Pass type to set_varying.
1476 * tree-vrp.c (value_range_base::check): Assert that a varying has
1477 min/max set.
1478 (value_range_base::equal_p): Early bail for undefines.
1479 (value_range_base::set_varying): Accept a type.
1480 (value_range::set_varying): Same.
1481 (value_range_base::type): VARYING can have a type, while UNDEFINE
1482 is typeless.
1483 (value_range_base::dump): Print type for VARYING nodes.
1484 (value_range_base::set): Add type to VARYING.
1485 (extract_range_from_multiplicative_op): Pass type to set_varying.
1486 (extract_range_from_binary_expr): Same.
1487 (value_range_base::intersect_helper): Same.
1488 (value_range_base::union_helper): Same.
1489 (value_range_base::normalize_symbolics): Same.
1490 (determine_value_range_1): Same.
1491 * tree-vrp.h (class value_range_base): Add type to set_varying.
1492 Add prototype for dump(void).
1493 Add prototype for supports_type_p.
1494 (class value_range): Add type to set_varying.
1495 Add prototype for dump(void).
1496 * vr-values.c (set_value_range_to_truthvalue): Pass type to
1497 set_varying.
1498 (vr_values::get_lattice_entry): Set varying even if propagation
1499 finished.
1500 Pass type to set_varying.
1501 (vr_values::get_value_range): Remove vr_const_varying.
1502 Reallocate the lattice if needed.
1503 (vr_values::update_value_range): Pass type to set_varying.
1504 (vr_values::extract_range_for_var_from_comparison_expr): Same.
1505 (vr_values::extract_range_from_binary_expr): Same.
1506 (vr_values::extract_range_from_unary_expr): Same.
1507 (vr_values::extract_range_from_cond_expr): Same.
1508 (vr_values::check_for_binary_op_overflow): Same.
1509 (vr_values::extract_range_basic): Same.
1510 (vr_values::extract_range_from_assignment): Same.
1511 (vr_values::vr_values): Increase size of num_vr_values.
1512 (vr_values::extract_range_from_phi_node): Pass type to
1513 set_varying.
1514
1515 2019-08-15 H.J. Lu <hongjiu.lu@intel.com>
1516
1517 PR target/90878
1518 * config/i386/i386.c (inline_memory_move_cost): Use hard_register
1519 for costs of hard register moves.
1520 (ix86_register_move_cost): Likewise.
1521 * config/i386/i386.h (processor_costs): Move costs of hard
1522 register moves to hard_register. Add int_load, int_store,
1523 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1524 sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
1525 for costs of RTL expressions.
1526 * config/i386/x86-tune-costs.h: Move costs of hard register
1527 moves to hard_register. Duplicate int_load, int_store,
1528 xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
1529 sse_load, sse_store for costs of RTL expressions.
1530
1531 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1532
1533 * target.def (setup_incoming_vararg_bounds): Remove.
1534 * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
1535 * doc/tm.texi: Regenerate.
1536 * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
1537 * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
1538 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
1539 (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
1540
1541 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1542
1543 MSP430: Fix lines over 80 characters long in
1544 config/msp430/*.{c,h} files
1545
1546 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
1547 specifier in string.
1548 (msp430_select_hwmult_lib): Split line more than 80 characters long.
1549 * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
1550 redundant old comment.
1551 * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
1552 Split line more than 80 characters long.
1553 * config/msp430/msp430.c (msp430_option_override): Likewise.
1554 (msp430_return_in_memory): Likewise.
1555 (msp430_gimplify_va_arg_expr): Likewise.
1556 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
1557 (msp430_legitimate_constant): Likewise.
1558 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
1559 (msp430_attr): Likewise.
1560 (msp430_data_attr): Likewise.
1561 (msp430_start_function): Likewise.
1562 (gen_prefix): Likewise.
1563 (msp430_init_sections): Likewise.
1564 (msp430_select_section): Likewise.
1565 (msp430_function_section): Likewise.
1566 (msp430_unique_section): Likewise.
1567 (msp430_output_aligned_decl_common): Likewise.
1568 (msp430_do_not_relax_short_jumps): Likewise.
1569 (msp430_init_builtins): Likewise.
1570 (msp430_expand_delay_cycles): Likewise.
1571 (msp430_expand_prologue): Likewise.
1572 (msp430_expand_epilogue): Likewise.
1573 (msp430_expand_helper): Likewise.
1574 (msp430_split_movsi): Likewise.
1575 (msp430_print_operand): Likewise.
1576 (msp430_return_addr_rtx): Likewise.
1577 (msp430x_extendhisi): Likewise.
1578 * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
1579 (ASM_SPEC): Likewise.
1580 Remove very obvious comments.
1581 (LIB_SPEC): Split line more than 80 characters long.
1582 (EH_RETURN_HANDLER_RTX): Likewise.
1583 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1584
1585 2019-08-15 Jozef Lawrynowicz <jozef.l@mittosystems.com>
1586
1587 MSP430: Fix whitespace errors and incorrect indentation in
1588 config/msp430/*.{c,h} files
1589
1590 * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
1591 (msp430_select_hwmult_lib): Likewise.
1592 * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
1593 (msp430_extract_mcu_data): Likewise.
1594 (struct t_msp430_mcu_data): Likewise.
1595 * config/msp430/msp430.c (struct machine_function): Remove whitespace
1596 before left square bracket.
1597 (msp430_option_override): Fix indentation.
1598 (msp430_hard_regno_nregs_with_padding): Likewise.
1599 (msp430_initial_elimination_offset): Likewise.
1600 (msp430_special_register_convention_p): Remove whitespace before left
1601 square bracket and after exclamation mark.
1602 (msp430_evaluate_arg): Likewise.
1603 (msp430_callee_copies): Fix indentation.
1604 (msp430_gimplify_va_arg_expr): Likewise.
1605 (msp430_function_arg_advance): Remove whitespace before left square
1606 bracket.
1607 (reg_ok_for_addr): Likewise.
1608 (msp430_preserve_reg_p): Likewise.
1609 (msp430_compute_frame_info): Likewise.
1610 (msp430_asm_output_addr_const_extra): Add space between function name
1611 and open parenthesis.
1612 (has_section_name): Fix indentation.
1613 (msp430_attr): Remove trailing whitespace.
1614 (msp430_section_attr): Likewise.
1615 (msp430_data_attr): Likewise.
1616 (struct msp430_attribute_table): Fix comment and whitespace.
1617 (msp430_start_function): Remove whitespace before left square bracket.
1618 Add space between function name and open parenthesis.
1619 (msp430_select_section): Remove trailing whitespace.
1620 (msp430_section_type_flags): Remove trailing whitespace.
1621 (msp430_unique_section): Remove space before closing parenthesis.
1622 (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
1623 (msp430_builtins): Remove whitespace before left square bracket.
1624 (msp430_init_builtins): Fix indentation.
1625 (msp430_expand_prologue): Remove whitespace before left square bracket.
1626 Remove space before closing parenthesis.
1627 (msp430_expand_epilogue): Remove whitespace before left square bracket.
1628 (msp430_split_movsi): Remove space before closing parenthesis.
1629 (helper_function_name_mappings): Fix indentation.
1630 (msp430_use_f5_series_hwmult): Fix whitespace.
1631 (use_32bit_hwmult): Likewise.
1632 (msp430_no_hwmult): Likewise.
1633 (msp430_output_labelref): Remove whitespace before left square bracket.
1634 (msp430_print_operand_raw): Likewise.
1635 (msp430_print_operand_addr): Likewise.
1636 (msp430_print_operand): Add two spaces after '.' in comment.
1637 Fix trailing whitespace.
1638 (msp430x_extendhisi): Fix indentation.
1639 * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
1640 tab.
1641 (PC_REGNUM): Likewise.
1642 (STACK_POINTER_REGNUM): Likewise.
1643 (CC_REGNUM): Likewise.
1644
1645 2019-08-15 Richard Biener <rguenther@suse.de>
1646
1647 PR target/91454
1648 * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
1649 helper.
1650 (general_scalar_chain::make_vector_copies): Use it.
1651
1652 2019-08-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
1653
1654 * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
1655
1656 2019-08-15 Martin Liska <mliska@suse.cz>
1657
1658 * tree-ssa-dce.c (propagate_necessity): We can't reach now
1659 operators with no arguments.
1660 (eliminate_unnecessary_stmts): Likewise here.
1661
1662 2019-08-15 Uroš Bizjak <ubizjak@gmail.com>
1663
1664 * config/i386/i386-features.c (general_scalar_chain::convert_insn)
1665 <case COMPARE>: Revert 2019-08-14 change.
1666 (convertible_comparison_p): Revert 2019-08-14 change. Return false
1667 for (TARGET_64BIT || mode != DImode).
1668
1669 2019-08-15 Aldy Hernandez <aldyh@redhat.com>
1670
1671 * tree-vrp.c (value_range_base::set): Merge in code from
1672 value_range_base::set_and_canonicalize.
1673 Enforce canonicalization at set time.
1674 Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
1675 (value_range_base::set_undefined): Inline call to set().
1676 (value_range_base::set_varying): Same.
1677 (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
1678 (vrp_val_max): New argument handle_pointers.
1679 (vrp_val_min): Same.
1680 (ranges_from_anti_range): Same.
1681 (extract_range_into_wide_ints): Use tree argument instead of sign
1682 and precision.
1683 (extract_range_from_multiplicative_op): Take in tree type instead
1684 of precision and sign. Adapt function for canonicalized ranges.
1685 (extract_range_from_binary_expr): Pass type to
1686 extract_range_from_multiplicative_op.
1687 Adapt for canonicalized ranges.
1688 (extract_range_from_unary_expr): Same.
1689 (value_range_base::intersect_helper): Adjust for canonicalized
1690 ranges.
1691 (value_range_base::union_helper): Same.
1692 (value_range_base::normalize_symbolics): New.
1693 * tree-vrp.h (class value_range_base): Remove
1694 set_and_canonicalize.
1695 New prototype for normalize_symbolics.
1696 (class value_range): Remove set_and_canonicalize.
1697 (vrp_val_min): Adjust prototype.
1698 (vrp_val_max): Same.
1699 * vr-values.c
1700 (vr_values::extract_range_for_var_from_comparison_expr): Call set
1701 instead of set_and_canonicalize.
1702
1703 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1704
1705 PR middle-end/91444
1706 * tree-vect-stmts.c (vectorizable_call): Check that the function
1707 is a BUILT_IN_MD function before passing it to
1708 targetm.vectorize.builtin_md_vectorized_function.
1709
1710 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1711
1712 * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
1713 * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
1714 (aarch64_select_early_remat_modes): Use it.
1715
1716 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1717
1718 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
1719 16 for SVE predicates even if they are fixed-length.
1720
1721 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1722
1723 * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
1724 operand order match the MOV /Z alias.
1725
1726 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1727
1728 * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
1729 the vector pattern as an aarch64_svpattern argument. Update the
1730 overloaded caller accordingly.
1731 (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
1732 (aarch64_output_sve_vector_inc_dec): Likewise.
1733
1734 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1735
1736 * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
1737 multiplication case, try to compute VG * (lowest set bit) directly
1738 rather than always basing the multiplication on VG. Use
1739 expand_mult for the multiplication if we can.
1740
1741 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1742
1743 * config/aarch64/aarch64-protos.h
1744 (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
1745 (aarch64_sve_inc_dec_immediate_p): Rename to...
1746 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1747 (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
1748 (aarch64_output_sve_scalar_inc_dec): Declare.
1749 (aarch64_output_sve_inc_dec_immediate): Rename to...
1750 (aarch64_output_sve_vector_inc_dec): ...this.
1751 * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
1752 (aarch64_output_sve_scalar_inc_dec): New functions.
1753 (aarch64_output_sve_addvl_addpl): Remove the base and offset
1754 arguments. Only handle true ADDVL and ADDPL instructions;
1755 don't emit an INC or DEC.
1756 (aarch64_sve_inc_dec_immediate_p): Rename to...
1757 (aarch64_sve_vector_inc_dec_immediate_p): ...this.
1758 (aarch64_output_sve_inc_dec_immediate): Rename to...
1759 (aarch64_output_sve_vector_inc_dec): ...this. Update call to
1760 aarch64_sve_vector_inc_dec_immediate_p.
1761 * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
1762 (aarch64_sve_plus_immediate): New predicates.
1763 (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
1764 rather than aarch64_sve_addvl_addpl_immediate.
1765 (aarch64_sve_inc_dec_immediate): Rename to...
1766 (aarch64_sve_vector_inc_dec_immediate): ...this. Update call to
1767 aarch64_sve_vector_inc_dec_immediate_p.
1768 (aarch64_sve_add_operand): Update accordingly.
1769 * config/aarch64/constraints.md (Uai): New constraint.
1770 (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
1771 * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
1772 operand into a register if it satisfies aarch64_sve_plus_immediate.
1773 (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
1774 for Uai. Update calls to aarch64_output_sve_addvl_addpl.
1775 * config/aarch64/aarch64-sve.md (add<mode>3): Call
1776 aarch64_output_sve_vector_inc_dec instead of
1777 aarch64_output_sve_inc_dec_immediate.
1778
1779 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1780
1781 * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
1782 (UNSPEC_REVW): New constants.
1783 (elem_bits): New mode attribute.
1784 (SVE_INT_UNARY): New int iterator.
1785 (optab): Handle UNSPEC_REV[BHW].
1786 (sve_int_op): New int attribute.
1787 (min_elem_bits): Handle VNx16QI and the predicate modes.
1788 * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
1789 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
1790 (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
1791 * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
1792 (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
1793 (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
1794 unspecs based on the total width of the reversed data.
1795 (aarch64_evpc_rev_local): Likewise (for SVE only). Use a
1796 reinterpret followed by a subreg on big-endian targets.
1797
1798 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1799 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1800
1801 * config/aarch64/aarch64-sve.md
1802 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
1803 alternatives in which one of the inputs is in the same register
1804 as the output.
1805
1806 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1807
1808 * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
1809 (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
1810
1811 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1812
1813 * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
1814 FADD and FSUB alternatives. Add a MOVPRFX alternative for FSUBR.
1815
1816 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1817 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1818
1819 * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
1820 (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
1821 (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
1822
1823 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1824 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1825
1826 * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
1827 Add an alternative that uses reversed shifts.
1828
1829 2019-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1830
1831 * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
1832 struct.
1833
1834 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1835
1836 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
1837 a commutativity marker.
1838
1839 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1840 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1841
1842 * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
1843 (aarch64_prepare_sve_cond_int_fma): Declare.
1844 * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
1845 (aarch64_prepare_sve_int_fma): New functions.
1846 (aarch64_prepare_sve_cond_int_fma): Likewise.
1847 * config/aarch64/aarch64-sve.md
1848 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
1849 (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
1850 (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
1851 (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
1852 (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
1853 (*madd<mode>): Rename to...
1854 (*fma<mode>4): ...this.
1855 (*msub<mode>): Rename to...
1856 (*fnma<mode>4): ...this.
1857
1858 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1859 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1860
1861 * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
1862 Print 2.0 naturally.
1863 (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
1864 * config/aarch64/predicates.md
1865 (aarch64_sve_float_negated_arith_immediate): New predicate,
1866 renamed from aarch64_sve_float_arith_with_sub_immediate.
1867 (aarch64_sve_float_arith_with_sub_immediate): Test for both
1868 positive and negative constants.
1869 (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
1870 or an aarch64_sve_float_arith_with_sub_immediate.
1871 * config/aarch64/constraints.md (vsN): Use
1872 aarch64_sve_float_negated_arith_immediate.
1873 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
1874 iterator.
1875 (sve_pred_fp_rhs2_immediate): New int attribute.
1876 * config/aarch64/aarch64-sve.md
1877 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
1878 sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
1879 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
1880 (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
1881 (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
1882 (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
1883
1884 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1885 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1886
1887 * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
1888 (*aarch64_cond_abd<SVE_F:mode>_3)
1889 (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
1890
1891 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1892 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
1893
1894 * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
1895 (*aarch64_cond_<su>abd<mode>_any): New patterns.
1896
1897 2019-08-15 Richard Sandiford <richard.sandiford@arm.com>
1898 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1899
1900 * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
1901 * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
1902 * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
1903 * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
1904 optabs.
1905 * optabs.h (create_convert_operand_from): Expand comment.
1906 * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
1907 when mapping scalar rtxes to vector operands.
1908 * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
1909 ashiftrt and lshiftrt.
1910 (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
1911 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
1912 (*cond_<optab><mode>_any_const): New patterns.
1913
1914 2019-08-15 Martin Liska <mliska@suse.cz>
1915
1916 PR ipa/91438
1917 * cgraph.c (cgraph_node::remove): When setting
1918 n->origin = NULL for all nested functions, reset
1919 also next_nested.
1920
1921 2019-08-15 Martin Liska <mliska@suse.cz>
1922
1923 * cgraph.c (cgraph_node::verify_node): Verify origin, nested
1924 and next_nested.
1925
1926 2019-08-15 Martin Liska <mliska@suse.cz>
1927
1928 PR ipa/91404
1929 * passes.c (order): Remove.
1930 (uid_hash_t): Likewise).
1931 (remove_cgraph_node_from_order): Remove from set
1932 of pointers (cgraph_node *).
1933 (insert_cgraph_node_to_order): New.
1934 (duplicate_cgraph_node_to_order): New.
1935 (do_per_function_toporder): Register all 3 cgraph hooks.
1936 Skip removed_nodes now as we know about all of them.
1937
1938 2019-08-14 Uroš Bizjak <ubizjak@gmail.com>
1939
1940 * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
1941 <case E_V8QImode>: Use vector_set path for
1942 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1943 (ix86_expand_vector_init_one_var) <case E_V8QImode>:
1944 Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
1945
1946 2019-08-14 Bernd Edlinger <bernd.edlinger@hotmail.de>
1947
1948 * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
1949
1950 2019-08-14 Martin Sebor <msebor@redhat.com>
1951
1952 PR tree-optimization/91294
1953 * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
1954 source length as exact.
1955
1956 2019-08-14 Christophe Lyon <christophe.lyon@linaro.org>
1957
1958 * doc/extend.texi: Add "noinit" attribute documentation.
1959 * doc/sourcebuild.texi: Add noinit effective target documentation.
1960 * varasm.c (default_section_type_flags): Add support for "noinit"
1961 section.
1962 (default_elf_select_section): Add support for "noinit" attribute.
1963 * config/msp430/msp430.c (msp430_attribute_table): Remove
1964 "noinit" entry.
1965
1966 2019-08-14 Richard Biener <rguenther@suse.de>
1967 Uroš Bizjak <ubizjak@gmail.com>
1968
1969 PR target/91154
1970 * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
1971 mode arguments.
1972 (scalar_chain::smode): New member.
1973 (scalar_chain::vmode): Likewise.
1974 (dimode_scalar_chain): Rename to...
1975 (general_scalar_chain): ... this.
1976 (general_scalar_chain::general_scalar_chain): Take mode arguments.
1977 (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
1978 base with TImode and V1TImode.
1979 * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
1980 (general_scalar_chain::vector_const_cost): Adjust for SImode
1981 chains.
1982 (general_scalar_chain::compute_convert_gain): Likewise. Add
1983 {S,U}{MIN,MAX} support.
1984 (general_scalar_chain::replace_with_subreg): Use vmode/smode.
1985 (general_scalar_chain::make_vector_copies): Likewise. Handle
1986 non-DImode chains appropriately.
1987 (general_scalar_chain::convert_reg): Likewise.
1988 (general_scalar_chain::convert_op): Likewise.
1989 (general_scalar_chain::convert_insn): Likewise. Add
1990 fatal_insn_not_found if the result is not recognized.
1991 (convertible_comparison_p): Pass in the scalar mode and use that.
1992 (general_scalar_to_vector_candidate_p): Likewise. Rename from
1993 dimode_scalar_to_vector_candidate_p. Add {S,U}{MIN,MAX} support.
1994 (scalar_to_vector_candidate_p): Remove by inlining into single
1995 caller.
1996 (general_remove_non_convertible_regs): Rename from
1997 dimode_remove_non_convertible_regs.
1998 (remove_non_convertible_regs): Remove by inlining into single caller.
1999 (convert_scalars_to_vector): Handle SImode and DImode chains
2000 in addition to TImode chains.
2001 * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
2002 (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
2003 (*<maxmin>di3_doubleword): Likewise.
2004
2005 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2006 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2007
2008 * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
2009 (*cond_bic<mode>_any): New patterns.
2010
2011 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2012
2013 * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
2014 take the equivalent mask, as well as a bit count.
2015 * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
2016 (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
2017 (aarch64_sve_pred_and_operand): New predicates.
2018 * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
2019 code attribute.
2020 * config/aarch64/aarch64-sve.md
2021 (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
2022 (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
2023
2024 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2025
2026 * config/aarch64/aarch64-sve.md
2027 (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2028 (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
2029 New patterns.
2030
2031 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2032 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2033
2034 * config/aarch64/aarch64-sve.md
2035 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
2036 (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
2037
2038 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2039 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2040
2041 * config/aarch64/aarch64-sve.md
2042 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
2043 (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
2044
2045 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2046
2047 * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
2048 * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
2049 New pattern.
2050
2051 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2052 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2053
2054 * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
2055
2056 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2057 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2058
2059 * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
2060 (aarch64_print_vector_float_operand): Also handle 8-bit floats.
2061 (aarch64_print_operand): Add support for %I.
2062 (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
2063 Bitcast floating-point constants to the corresponding integer constant.
2064 (aarch64_float_const_representable_p): Handle vectors as well
2065 as scalars.
2066 (aarch64_expand_sve_vcond): Make sure that the operands are valid
2067 for the new vcond_mask_<mode><vpred> expander.
2068 * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
2069 test aarch64_float_const_representable_p.
2070 (aarch64_sve_reg_or_dup_imm): New predicate.
2071 * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
2072 gen_vcond_mask_<mode><vpred> instead of
2073 gen_aarch64_sve_dup<mode>_const.
2074 (vcond_mask_<mode><vpred>): Turn into a define_expand that
2075 accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
2076 for operands 1 and 2 respectively. Force operand 2 into a
2077 register if operand 1 is a register. Fold old define_insn...
2078 (aarch64_sve_dup<mode>_const): ...and this define_insn...
2079 (*vcond_mask_<mode><vpred>): ...into this new pattern. Handle
2080 floating-point constants that can be moved as integers. Add
2081 alternatives for MOV /M and FMOV /M.
2082 (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
2083 (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
2084 1 and 2 respectively.
2085 * config/aarch64/constraints.md (Ufc): Handle vectors as well
2086 as scalars.
2087 (vss): New constraint.
2088
2089 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2090
2091 * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
2092 (aarch64_sve_float_maxmin_operand): New predicates.
2093 * config/aarch64/constraints.md (vsB): New constraint.
2094 (vsM): Fix typo.
2095 * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
2096 aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
2097 UNSPEC_COND_FMINNM.
2098 * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
2099 Use aarch64_sve_float_maxmin_operand for operand 2.
2100 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
2101 Add alternatives for the constant forms.
2102
2103 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2104
2105 * config/aarch64/constraints.md (vsb): New constraint.
2106 (vsm): Generalize description.
2107 * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
2108 iterator.
2109 (sve_imm_con): Handle smax, smin, umax and umin.
2110 (sve_imm_prefix): New code attribute.
2111 * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
2112 (aarch64_sve_vsb_operand): New predicates.
2113 (aarch64_sve_mul_immediate): Rename to...
2114 (aarch64_sve_vsm_immediate): ...this.
2115 (aarch64_sve_mul_operand): Rename to...
2116 (aarch64_sve_vsm_operand): ...this.
2117 * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
2118 (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
2119 (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
2120 (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
2121 (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
2122 add movprfx support for the immediate alternatives.
2123 (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
2124 of the above.
2125 (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
2126 for operand 3.
2127
2128 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2129
2130 * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
2131 * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
2132 (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
2133
2134 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2135
2136 * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
2137 (optab, sve_int_op): Handle them.
2138 * config/aarch64/aarch64-sve.md: Expand comment.
2139
2140 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2141
2142 * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
2143 * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
2144 (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
2145
2146 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2147
2148 * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
2149 (aarch64_expand_sve_const_pred_trn): New functions.
2150 (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
2151 use the above functions when the parameter is true.
2152 (aarch64_expand_sve_const_pred): Update call accordingly.
2153 * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
2154 Rename to...
2155 (@aarch64_sve_<perm_insn><mode>): ...this.
2156
2157 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2158
2159 * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
2160 Declare.
2161 * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
2162 (aarch64_sve_emit_int_cmp): New functions.
2163 (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
2164 (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
2165 (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
2166 * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
2167 (UNSPEC_PRED_Z): New unspec.
2168 (set_clobber_cc_nzc): Delete.
2169 * config/aarch64/aarch64-sve.md: Add a block comment about
2170 UNSPEC_PRED_Z.
2171 (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
2172 (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
2173 the old pattern with that name. Use UNSPEC_PRED_Z instead of
2174 UNSPEC_MERGE_PTRUE.
2175 (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
2176 UNSPEC_MERGE_PTRUE. Use aarch64_sve_same_pred_for_ptest_p to
2177 check for compatible predicates.
2178 (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
2179 (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
2180 of UNSPEC_MERGE_PTRUE. Split into the new form of predicated
2181 comparisons above.
2182
2183 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2184
2185 * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
2186 * config/aarch64/aarch64-sve.md: Add a section describing it.
2187 (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
2188 (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
2189 (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
2190 (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
2191 (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
2192 (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
2193 (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
2194 (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
2195 (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
2196 UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
2197 * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
2198 (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
2199 * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
2200 (aarch64_evpc_rev_local): Update accordingly.
2201
2202 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2203
2204 * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
2205 iterators.
2206 (SVE_BHSI, SVE_SDI): Tweak comment.
2207 (SVE_HSDI): Likewise. Fix definition.
2208 (SVE_SDF): New mode iterator.
2209 (elem_bits): New mode attribute.
2210 (SVE_COND_FCVT): New int iterator.
2211 * config/aarch64/aarch64-sve.md
2212 (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
2213 (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
2214 (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
2215 (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
2216 (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
2217 ...these new patterns.
2218 (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
2219 (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
2220 (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
2221 Merge into...
2222 (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
2223 (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
2224 ...these new patterns.
2225 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
2226 (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
2227 (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
2228 ...this new pattern.
2229 (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
2230 (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
2231 ...this new pattern.
2232 (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
2233
2234 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2235
2236 * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
2237 * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
2238 (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
2239 unspecs.
2240 (optab, su): Handle them.
2241 (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
2242 * config/aarch64/aarch64-sve.md
2243 (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
2244 (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
2245 (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
2246 (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
2247 (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
2248 (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
2249 (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
2250 (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
2251 (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
2252 FIXUORS.
2253 (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
2254 (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
2255 (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
2256 (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
2257 (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
2258 (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
2259 (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
2260 (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
2261 (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
2262 operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
2263 (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
2264 (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
2265 of UNSPEC_FLOAT_CONVERT.
2266 (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
2267 aarch64_sve_extend<mode><Vwide>2.
2268
2269 2019-08-14 Richard Biener <rguenther@suse.de>
2270
2271 PR target/91154
2272 * config/i386/i386-features.c
2273 (dimode_scalar_chain::compute_convert_gain): Compute and dump
2274 individual instruction gain. Fix reg-reg copy GRP cost. Use
2275 ix86_cost->sse_op for vector instruction costs.
2276
2277 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2278
2279 * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
2280 (cmp_op): Handle it.
2281 (SVE_COND_FP_CMP): Rename to...
2282 (SVE_COND_FP_CMP_I0): ...this.
2283 (SVE_FP_CMP): Remove.
2284 * config/aarch64/aarch64-sve.md
2285 (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
2286 (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
2287 using unspecs to represent the comparison.
2288 (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
2289 (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
2290 accordingly.
2291 * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
2292 (aarch64_unspec_cond_code): Move after integer code. Handle
2293 UNORDERED.
2294 (aarch64_emit_sve_predicated_cond): Replace with...
2295 (aarch64_emit_sve_fp_cond): ...this new function.
2296 (aarch64_emit_sve_or_conds): Replace with...
2297 (aarch64_emit_sve_or_fp_conds): ...this new function.
2298 (aarch64_emit_sve_inverted_cond): Replace with...
2299 (aarch64_emit_sve_invert_fp_cond): ...this new function.
2300 (aarch64_expand_sve_vec_cmp_float): Update accordingly.
2301
2302 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2303
2304 * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
2305 (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
2306 * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
2307 SVE_HSD instead of SVE_SD.
2308
2309 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2310 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2311
2312 * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
2313 iterator.
2314 (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
2315 attributes.
2316 * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
2317 (mul<SVE_F:mode>3, div<SVE_F:mode>3)
2318 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
2319 (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
2320 (*div<SVE_F:mode>3): Generalize to...
2321 (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
2322
2323 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2324 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2325
2326 * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
2327 constants.
2328 * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
2329 predicate.
2330 * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
2331 Declare.
2332 * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
2333 function.
2334 * config/aarch64/aarch64-sve.md: Add a block comment about the
2335 handling of predicated FP operations.
2336 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
2337 (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
2338 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2339 (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
2340 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
2341 operand.
2342 (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
2343 (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
2344 operand.
2345 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
2346 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
2347 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
2348 (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
2349 (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
2350 (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
2351 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
2352 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
2353 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
2354 (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
2355 strictness operands. Use aarch64_sve_pred_dominates_p to check
2356 whether the predicate on the conditional operation is suitable
2357 for merging. Split patterns into the canonical equal-predicate form.
2358 (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
2359 Restrict the unpredicated alternatives to SVE_RELAXED_GP.
2360
2361 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2362 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2363
2364 * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
2365 (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
2366 (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
2367 rtx codes.
2368 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
2369 (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
2370 unspecs.
2371
2372 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2373 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
2374
2375 * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
2376 (*bic<SVE_I:mode>3): ...this. Match the form that an SVE inverse
2377 actually has, rather than relying on REG_EQUAL notes.
2378 Make the insn operand order match the SVE operand order.
2379 (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
2380 the SVE operand order.
2381
2382 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2383
2384 * config/aarch64/aarch64.c (aarch64_target_reg): New function.
2385 (aarch64_emit_set_immediate): Likewise.
2386 (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
2387 (aarch64_pfalse_reg): Likewise.
2388 (aarch64_convert_sve_data_to_pred): New function.
2389 (aarch64_sve_move_pred_via_while): Take an optional target register
2390 and the required register mode.
2391 (aarch64_expand_sve_const_pred_1): New function.
2392 (aarch64_expand_sve_const_pred): Likewise.
2393 (aarch64_expand_mov_immediate): Build an all-true predicate
2394 if the significant bits of the immediate are all true. Use
2395 aarch64_expand_sve_const_pred for all compile-time predicate constants.
2396 (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
2397 before register allocation.
2398 * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
2399 a VNx16BI PTRUE when splitting the memory alternative.
2400 (vec_duplicate<mode>): Update accordingly.
2401 (*pred_cmp<cmp_op><mode>): Rename to...
2402 (@aarch64_pred_cmp<cmp_op><mode>): ...this.
2403
2404 2019-08-14 Richard Sandiford <richard.sandiford@arm.com>
2405
2406 * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
2407 * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
2408 * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
2409 (UNSPEC_PTEST): New unspec.
2410 (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
2411 * config/aarch64/iterators.md (data_bytes): New mode attribute.
2412 * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
2413 * config/aarch64/aarch64-sve.md: Add a new section describing the
2414 handling of UNSPEC_PTEST.
2415 (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
2416 (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
2417 (ptest_ptrue<mode>): Replace with...
2418 (aarch64_ptest<mode>): ...this new pattern.
2419 (cbranch<mode>4): Update after above changes.
2420 (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
2421 UNSPEC_PTEST_PTRUE.
2422 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
2423 (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
2424 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
2425
2426 2019-08-14 Xiong Hu Luo <luoxhu@linux.ibm.com>
2427
2428 PR lto/91287
2429 * builtins.c (builtin_with_linkage_p): New function.
2430 * builtins.h (builtin_with_linkage_p): New function.
2431 * symtab.c (write_symbol): Remove redundant assert.
2432 * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
2433 Remove FIXME and use builtin_with_linkage_p.
2434
2435 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2436
2437 PR middle-end/91421
2438 * tree-core.h (function_decl::function_code): Change type to
2439 unsigned int.
2440 * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
2441 (DECL_UNCHECKED_FUNCTION_CODE): ...this.
2442 (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
2443 (DECL_FUNCTION_CODE): New function. Assert that the built-in class
2444 is BUILT_IN_NORMAL.
2445 (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
2446 (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
2447 (fndecl_built_in_p): Change the type of the "name" argument to
2448 unsigned int.
2449 * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
2450 after check for DECL_BUILT_IN_CLASS.
2451 * cgraphclones.c (build_function_decl_skip_args): Use
2452 set_decl_built_in_function.
2453 * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
2454 * ipa-split.c (split_function): Likewise.
2455 * langhooks.c (add_builtin_function_common): Likewise.
2456 * omp-simd-clone.c (simd_clone_create): Likewise.
2457 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
2458 * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
2459 (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
2460 DECL_FUNCTION_CODE.
2461 * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
2462 instead of DECL_FUNCTION_CODE.
2463 * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
2464 instead of DECL_FUNCTION_CODE.
2465 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
2466 * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
2467 printing DECL_BUILT_IN_MD. Handle DECL_BUILT_IN_FRONTEND.
2468 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
2469 (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
2470 DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
2471 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
2472 * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
2473 (alpha_gimple_fold_builtin): Likewise.
2474 * config/arc/arc.c (arc_expand_builtin): Likewise.
2475 * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
2476 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
2477 * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
2478 * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
2479 * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
2480 * config/frv/frv.c (frv_expand_builtin): Likewise.
2481 * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
2482 (gcn_expand_builtin): Likewise.
2483 * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
2484 (fold_builtin_cpu): Likewise.
2485 * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
2486 * config/i386/i386.c (ix86_fold_builtin): Likewise.
2487 (ix86_gimple_fold_builtin): Likewise.
2488 * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
2489 (ia64_expand_builtin): Likewise.
2490 * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
2491 * config/mips/mips.c (mips_expand_builtin): Likewise.
2492 * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
2493 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
2494 * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
2495 * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
2496 * config/pa/pa.c (pa_expand_builtin): Likewise.
2497 * config/pru/pru.c (pru_expand_builtin): Likewise.
2498 * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
2499 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
2500 Likewise.
2501 * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
2502 (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
2503 (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
2504 * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
2505 (rs6000_builtin_reciprocal): Likewise.
2506 * config/rx/rx.c (rx_expand_builtin): Likewise.
2507 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
2508 * config/s390/s390.c (s390_expand_builtin): Likewise.
2509 * config/sh/sh.c (sh_expand_builtin): Likewise.
2510 * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
2511 (sparc_fold_builtin): Likewise.
2512 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
2513 * config/spu/spu.c (spu_expand_builtin): Likewise.
2514 * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
2515 * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
2516 * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
2517 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
2518 (xtensa_expand_builtin): Likewise.
2519
2520 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2521
2522 PR middle-end/91421
2523 * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
2524 before the DECL_FUNCTION_CODE.
2525 * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
2526 to check for a BUILT_IN_ALLOCA call.
2527 * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
2528 BUILT_IN_UNREACHABLE. Don't check for a FUNCTION_TYPE.
2529 * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
2530 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
2531 * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
2532 for BUILT_IN_NORMAL functions.
2533 * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
2534 test for BUILT_IN_TM_ABORT.
2535 * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
2536 to check for a BUILT_IN_STACK_RESTORE call.
2537 (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
2538 * tree-ssa-threadedge.c
2539 (record_temporary_equivalences_from_stmts_at_dest): Check for a
2540 BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
2541 * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
2542 test for a BUILT_IN_NORMAL call instead of a negative test for
2543 an internal function call.
2544
2545 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2546
2547 * tree.h (build_vector_a_then_b): Declare.
2548 * tree.c (build_vector_a_then_b): New function.
2549 * fold-const-call.c (fold_while_ult): Likewise.
2550 (fold_const_call): Use it to handle IFN_WHILE_ULT.
2551 * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
2552 (aarch64_svpattern): New enum.
2553 * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
2554 constants through aarch64_expand_mov_immediate.
2555 (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
2556 than general_operand as the predicate for operand 1.
2557 (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
2558 * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
2559 insn_type.
2560 (simd_immediate_info::simd_immediate_info): New overload that
2561 takes a scalar_int_mode and an svpattern.
2562 (simd_immediate_info::u): Add a "pattern" field.
2563 (svpattern_token): New function.
2564 (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
2565 (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
2566 (aarch64_sve_move_pred_via_while): New functions.
2567 (aarch64_expand_mov_immediate): Try using
2568 aarch64_sve_move_pred_via_while for predicates that contain N ones
2569 followed by M zeros but that do not correspond to a VLnnn pattern.
2570 (aarch64_sve_pred_valid_immediate): New function.
2571 (aarch64_simd_valid_immediate): Use it instead of dealing directly
2572 with PTRUE and PFALSE.
2573 (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
2574 forms.
2575
2576 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
2577
2578 * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
2579 flag.
2580 (darwin_override_options): Likewise.
2581 * config/darwin.h: Likewise.
2582 * config/darwin.opt: Likewise.
2583 * config/i386/i386.c (output_pic_addr_const): Likewise.
2584 * config/rs6000/darwin.h: Likewise.
2585 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
2586 * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
2587 ... this TARGET_MACHO_SYMBOL_STUBS.
2588 (FUNCTION_PROFILER):Likewise.
2589 * config/i386/i386.h: Likewise.
2590
2591 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2592
2593 * config/i386/i386-expand.c (ix86_expand_vector_extract)
2594 <case E_V2SImode>: Use vec_extr path for
2595 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2596 <case E_V8QImode>: Ditto.
2597 * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
2598 Use SWI48 mode iterator. Use %k to output operand 0.
2599 (*mmx_pextrw): New insn pattern.
2600 (*mmx_pextrb): Ditto.
2601 (*mmx_pextrb_zext): Ditto.
2602
2603 2019-08-13 Jonathan Wakely <jwakely@redhat.com>
2604
2605 * target.def (libc_has_function, libc_has_fast_function): Improve
2606 documentation strings.
2607 * doc/tm.texi: Regenerate.
2608
2609 2019-08-13 Caroline Tice <cmtice@google.com>
2610
2611 PR other/91396
2612 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
2613 vtv_end.o or vtv_end_preinit.o files if !static.
2614
2615 2019-08-13 Olivier Hainque <hainque@adacore.com>
2616
2617 * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
2618
2619 2019-08-13 Olivier Hainque <hainque@adacore.com>
2620
2621 * rtlanal.c (tablejump_casesi_pattern): New function, to
2622 determine if a tablejump insn is a casesi dispatcher. Extracted
2623 from patch_jump_insn.
2624 * rtl.h (tablejump_casesi_pattern): Declare.
2625 * cfgrtl.c (patch_jump_insn): Use it.
2626 * dwarf2cfi.c (create_trace_edges): Use it.
2627
2628 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2629
2630 PR target/81800
2631 * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
2632 operand is larger than a long int.
2633
2634 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2635
2636 * machmode.h (opt_mode::else_mode): New function.
2637 (opt_mode::else_blk): Use it.
2638 * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
2639 (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
2640 (aarch64_gen_stepped_int_parallel): Likewise.
2641 (aarch64_stepped_int_parallel_p): Likewise.
2642 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2643 argument.
2644 * config/aarch64/aarch64.c
2645 (aarch64_expand_sve_widened_duplicate): Delete.
2646 (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
2647 (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
2648 (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
2649 argument. Use early returns in the !CONST_INT_P handling.
2650 Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
2651 than handling some inline.
2652 (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
2653 from...
2654 (aarch64_simd_container_mode): ...here.
2655 (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
2656 (aarch64_sve_ld1rq_operand_p): New functions.
2657 * config/aarch64/predicates.md (descending_int_parallel)
2658 (aarch64_sve_ld1rq_operand): New predicates.
2659 * config/aarch64/constraints.md (UtQ): New constraint.
2660 * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
2661 * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
2662 gen_vec_duplicate from call to aarch64_expand_mov_immediate.
2663 (@aarch64_sve_reinterpret<mode>): New expander.
2664 (*aarch64_sve_reinterpret<mode>): New pattern.
2665 (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
2666 (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
2667 (*sve_ld1rq<Vesize>): Replace with...
2668 (@aarch64_sve_ld1rq<mode>): ...this new pattern.
2669
2670 2019-08-13 Wilco Dijkstra <wdijkstr@arm.com>
2671
2672 * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
2673 16:12.
2674
2675 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2676
2677 * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
2678 * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
2679 (msp430_check_path_for_devices): New.
2680 (parse_devices_csv_1): New.
2681 (parse_devices_csv): New.
2682 (msp430_extract_mcu_data): Try to find devices.csv and search for the
2683 MCU data in devices.csv before using the hard-coded data.
2684 Warn if devices.csv isn't found and the MCU wasn't found in the
2685 hard-coded data either.
2686 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
2687 msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
2688 Search for devices.csv on -I and -L paths.
2689 (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
2690 msp430_set_driver_var.
2691 * config/msp430/msp430.opt: Add -mwarn-devices-csv and
2692 -mdevices-csv-loc=.
2693 * doc/invoke.texi (-mmcu): Document that -I and -L paths are
2694 searched for devices.csv.
2695 (mwarn-devices-csv): Document option.
2696
2697 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2698
2699 * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
2700 * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
2701 Use a single Dn alternative instead of separate Dz and Dm
2702 alternatives. Use aarch64_output_sve_move_immediate.
2703 * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
2704 function.
2705 (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
2706 for predicates too.
2707 (aarch64_output_sve_mov_immediate): Handle predicate modes.
2708 (aarch64_output_ptrue): Delete.
2709
2710 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2711
2712 * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
2713 INDEX.
2714 (simd_immediate_info::value, simd_immediate_info::step)
2715 (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
2716 with...
2717 (simd_immediate_info::u): ...this new union.
2718 (simd_immediate_info::simd_immediate_info): Update accordingly.
2719 (aarch64_output_simd_mov_immediate): Likewise.
2720 (aarch64_output_sve_mov_immediate): Likewise.
2721
2722 2019-08-13 Jozef Lawrynowicz <jozef.l@mittosystems.com>
2723
2724 * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
2725 extra_gcc_objs.
2726 * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
2727 (msp430_select_cpu): New spec function.
2728 (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
2729 MCU data.
2730 * config/msp430/msp430-devices.c: New file.
2731 * config/msp430/msp430-devices.h: New file.
2732 * config/msp430/msp430.c: Remove msp430_mcu_data.
2733 (msp430_option_override): Use msp430_extract_mcu_data to extract
2734 MCU data.
2735 (msp430_use_f5_series_hwmult): Likewise.
2736 (use_32bit_hwmult): Likewise.
2737 (msp430_no_hwmult): Likewise.
2738 * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
2739 assembler.
2740 (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
2741 and -mcpu option.
2742 (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
2743 * config/msp430/t-msp430: Add rule to build msp430-devices.o.
2744 Remove hard-coded MCU multilib data.
2745
2746 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2747
2748 * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
2749 based on the mode instead of testing properties of it.
2750
2751 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2752
2753 * doc/md.texi: Document the x and y constraints for AArch64.
2754 * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
2755 (FP_LO8_REGS): New reg_class.
2756 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
2757 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
2758 (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
2759 * config/aarch64/predicates.md (aarch64_simd_register): Use
2760 FP_REGNUM_P instead of checking the classes manually.
2761 * config/aarch64/constraints.md (y): New constraint.
2762
2763 2019-08-13 Richard Sandiford <richard.sandiford@arm.com>
2764
2765 * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
2766 (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
2767 * config/aarch64/aarch64-simd.md
2768 (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
2769 (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
2770 from the asm template.
2771 * config/aarch64/aarch64-sve.md
2772 (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
2773 (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
2774 from the asm template.
2775 (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
2776 (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
2777 from the asm template.
2778 * config/aarch64/aarch64-simd-builtins.def: Update comment.
2779
2780 2019-08-13 Martin Liska <mliska@suse.cz>
2781
2782 * value-prof.c (gimple_ic_transform): Add new line.
2783 Print details with MSG_NOTE.
2784
2785 2019-08-13 Martin Liska <mliska@suse.cz>
2786
2787 * doc/invoke.texi: Document automatic detection of jobserver.
2788 * lto-wrapper.c (run_gcc): Detect jobserver always.
2789
2790 2019-08-13 Uroš Bizjak <ubizjak@gmail.com>
2791
2792 * config/i386/i386-expand.c (ix86_expand_vector_set)
2793 <case E_V2SImode>: Use vec_merge path for
2794 TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
2795 <case E_V8QImode>: Ditto.
2796 * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
2797 (*mmx_pinsrb): Ditto.
2798
2799 2019-08-12 Jakub Jelinek <jakub@redhat.com>
2800
2801 PR target/83250
2802 PR target/91340
2803 * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
2804 _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
2805 * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
2806 _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
2807 _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
2808
2809 2019-08-12 Richard Biener <rguenther@suse.de>
2810
2811 PR lto/91375
2812 * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
2813 flag_devirtualize.
2814
2815 2019-08-12 Richard Biener <rguenther@suse.de>
2816
2817 PR driver/91130
2818 * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
2819 lang_mask option, always use CL_DRIVER.
2820 (get_options_from_collect_gcc_options): Adjust.
2821 (find_and_merge_options): Likewise.
2822 (run_gcc): Likewise.
2823
2824 2019-08-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2825
2826 * ipa-predicate.c (add_condition): Restore inverted test.
2827
2828 2019-08-10 Jakub Jelinek <jakub@redhat.com>
2829
2830 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
2831 (enum omp_clause_device_type_kind): New enum.
2832 (struct tree_omp_clause): Add subcode.device_type_kind.
2833 * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
2834 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
2835 for device_type clause.
2836 (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
2837 * tree-pretty-print.c (dump_omp_clause): Likewise.
2838
2839 PR target/91408
2840 * config/i386/mmx.md (usadv8qi): Use register_operand instead of
2841 vector_operand.
2842
2843 2019-09-09 Vladimir Makarov <vmakarov@redhat.com>
2844
2845 * reload1.c (finish_spills): Do not check ira_conflicts_p when
2846 handling spilled pseudos.
2847
2848 2019-09-09 Richard Earnshaw <rearnsha@arm.com>
2849
2850 PR target/91386
2851 * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
2852 to preserve the contents of the original insns.
2853
2854 2019-08-09 Richard Earnshaw <rearnsha@arm.com>
2855
2856 * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
2857 (addsi3_compare_op2): Likewise.
2858
2859 2019-08-09 Martin Liska <mliska@suse.cz>
2860
2861 * alias.c (alias_ptr_types_compatible_p): Strengten
2862 type comparison in LTO mode.
2863
2864 2019-08-09 Richard Sandiford <richard.sandiford@arm.com>
2865
2866 PR middle-end/90313
2867 * tree-tailcall.c (find_tail_calls): Reject calls that might
2868 read from an escaped RESULT_DECL.
2869
2870 2019-08-09 Martin Liska <mliska@suse.cz>
2871
2872 * doc/invoke.texi: Document the option value.
2873 * lto-wrapper.c (run_gcc): Set auto_parallel
2874 only with -flto=auto.
2875
2876 2019-08-09 Martin Liska <mliska@suse.cz>
2877
2878 * opts.c (common_handle_option): Error for an invalid argument
2879 to -flto=.
2880
2881 2019-08-09 Martin Liska <mliska@suse.cz>
2882
2883 * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
2884 use dump_printf to report optimization.
2885 (sem_variable::merge): Likwise.
2886 (sem_item_optimizer::merge_classes): Use dump_printf to report
2887 ICF hits.
2888
2889 2019-08-09 Martin Liska <mliska@suse.cz>
2890
2891 * value-prof.c (gimple_divmod_fixed_value_transform):
2892 Use dump_printf_loc.
2893 (gimple_mod_pow2_value_transform): Likewise.
2894 (gimple_mod_subtract_transform): Likewise.
2895 (init_node_map): Likewise.
2896 (gimple_ic_transform): Likewise.
2897 (gimple_stringops_transform): Likewise.
2898
2899 2019-08-08 Mihailo Stojanovic <mistojanovic@wavecomp.com>
2900
2901 * doc/extend.texi: Add const qualifier to ld intrinsics.
2902
2903 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2904
2905 * config/rs6000/dfp.md (D64_D128): Rename to ...
2906 (DDTD): ... this, throughout.
2907 (dfp_suffix): Rename to ...
2908 (q): ... this, throughout.
2909
2910 2019-08-08 Segher Boessenkool <segher@kernel.crashing.org>
2911
2912 * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
2913 (dfp_suffix): Ditto.
2914 (adddd3, addtd3): Merge to ...
2915 (add<mode>3 for D64_D128): ... this.
2916 (subdd3, subtd3): Merge to ...
2917 (sub<mode>3 for D64_D128): ... this.
2918 (muldd3, multd3): Merge to ...
2919 (mul<mode>3 for D64_D128): ... this.
2920 (divdd3, divtd3): Merge to ...
2921 (div<mode>3 for D64_D128): ... this.
2922 (*cmpdd_internal1, *cmptd_internal1): Merge to ...
2923 (*cmp<mode>_internal1 for D64_D128): ... this.
2924 (ftruncdd2, ftrunctd2): Merge to ...
2925 (ftrunc<mode>2 for D64_D128): ... this.
2926 (fixdddi2, fixtddi2): Merge to ...
2927 (fix<mode>di2 for D64_D128): ... this.
2928
2929 2019-08-08 Jim Wilson <jimw@sifive.com>
2930
2931 PR target/91229
2932 * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
2933 ignore_zero_width_bit_field_p. Skip zero size bitfields when true.
2934 Pass into recursive call.
2935 (riscv_flatten_aggregate_argument): New arg. Pass to
2936 riscv_flatten_aggregate_field.
2937 (riscv_pass_aggregate_in_fpr_pair_p): New local warned. Call
2938 riscv_flatten_aggregate_argument twice, with false and true as last
2939 arg. Process result twice. Compare results and warn if different.
2940 (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
2941
2942 2019-08-08 Martin Liska <mliska@suse.cz>
2943
2944 PR bootstrap/91352
2945 * gcc.c (driver::detect_jobserver): Use is_valid_fd.
2946 * lto-wrapper.c (jobserver_active_p): Likewise.
2947
2948 2019-08-08 Martin Liska <mliska@suse.cz>
2949
2950 * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
2951 IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
2952 (create_version_clone_with_body): Likewise.
2953
2954 2019-08-08 Jakub Jelinek <jakub@redhat.com>
2955
2956 * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
2957 for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
2958 (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
2959 GOVD_EXPLICIT flags.
2960 (gimplify_omp_workshare): For OMP_TARGET_DATA move all
2961 OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
2962 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
2963 call install_var_field with mask 11 instead of 3.
2964 (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
2965 (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
2966
2967 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2968
2969 * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
2970 * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
2971
2972 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2973
2974 * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
2975 MOVPRFX alternatives. Make the GPR alternatives more expensive
2976 than the FPR ones.
2977
2978 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2979
2980 * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
2981 Disparage the GPR alternative relative to the FPR one.
2982 Fix handling of 8-bit and 16-bit FPR values.
2983
2984 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
2985
2986 * config/aarch64/iterators.md (BITWISEV): Delete.
2987 (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
2988 (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
2989 UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2990 UNSPEC_FMINNMV, UNSPEC_FMINV.
2991 (bit_reduc_op): Delete.
2992 (sve_int_op): New int attribute.
2993 (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
2994 UNSPEC_FMINNMV, UNSPEC_FMINV.
2995 * config/aarch64/aarch64-sve.md
2996 (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2997 (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
2998 (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
2999 (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
3000 (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
3001 (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
3002 new patterns.
3003 (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
3004 (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
3005 (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
3006 (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
3007 (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
3008 new patterns.
3009
3010 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3011
3012 * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
3013 (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
3014 (fms<mode>4, *fms<mode>4): Replace with...
3015 (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
3016 (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
3017 Use unspecs instead of rtx codes.
3018 (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
3019 (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
3020
3021 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3022
3023 * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
3024 int iterator.
3025 (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
3026 * config/aarch64/aarch64-sve.md
3027 (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
3028 (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
3029 use a single unspec for the rhs.
3030 (*<su><maxmin><mode>3): Delete.
3031 (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
3032
3033 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3034
3035 * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
3036 (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
3037 (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
3038 (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
3039 (optab, sve_fp_op): Handle them.
3040 (SVE_FP_UNARY): Delete.
3041 (optab): Remove sqrt entry.
3042 (sve_fp_op): Remove neg, abs and sqrt entries.
3043 (SVE_COND_FP_UNARY): New int iterator.
3044 * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
3045 (*<frint_pattern><mode>2): Delete.
3046 (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3047 (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3048 (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
3049 (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
3050
3051 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3052
3053 * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
3054
3055 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3056
3057 * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
3058 (UNSPEC_COND_FADD): ...this.
3059 (UNSPEC_COND_SUB): Rename to...
3060 (UNSPEC_COND_FSUB): ...this.
3061 (UNSPEC_COND_MUL): Rename to...
3062 (UNSPEC_COND_FMUL): ...this.
3063 (UNSPEC_COND_DIV): Rename to...
3064 (UNSPEC_COND_FDIV): ...this.
3065 (UNSPEC_COND_MAX): Rename to...
3066 (UNSPEC_COND_FMAXNM): ...this.
3067 (UNSPEC_COND_MIN): Rename to...
3068 (UNSPEC_COND_FMINNM): ...this.
3069 (UNSPEC_COND_LT): Rename to...
3070 (UNSPEC_COND_FCMLT): ...this.
3071 (UNSPEC_COND_LE): Rename to...
3072 (UNSPEC_COND_FCMLE): ...this.
3073 (UNSPEC_COND_EQ): Rename to...
3074 (UNSPEC_COND_FCMEQ): ...this.
3075 (UNSPEC_COND_NE): Rename to...
3076 (UNSPEC_COND_FCMNE): ...this.
3077 (UNSPEC_COND_GE): Rename to...
3078 (UNSPEC_COND_FCMGE): ...this.
3079 (UNSPEC_COND_GT): Rename to...
3080 (UNSPEC_COND_FCMGT): ...this.
3081 (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
3082 (sve_fp_op_rev): Update accordingly.
3083 * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
3084
3085 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3086
3087 * config/aarch64/aarch64-sve.md: Reorganize contents and add
3088 banner comments.
3089 * config/aarch64/check-sve-md.awk: New file.
3090 * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
3091 (insn-conditions.md): Depend on it.
3092
3093 2019-08-07 Uroš Bizjak <ubizjak@gmail.com>
3094
3095 PR target/91385
3096 * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
3097 (*negsi2_cmpz_zext): Ditto.
3098
3099 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3100
3101 * config/aarch64/iterators.md (commutative): Remove.
3102
3103 2019-08-07 Richard Earnshaw <rearnsha@arm.com>
3104
3105 PR driver/91130
3106 * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
3107 processing COLLECT_GCC_OPTIONS.
3108 (run_gcc): Likewise.
3109
3110 2019-08-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
3111
3112 PR tree-optimization/91109
3113 * lra-remat.c (update_scratch_ops): Remove assignment of the
3114 hard register.
3115
3116 2019-08-07 Richard Sandiford <richard.sandiford@arm.com>
3117
3118 * data-streamer.h (streamer_write_poly_uint64): Declare.
3119 (streamer_read_poly_uint64): Likewise.
3120 * data-streamer-in.c (streamer_read_poly_uint64): New function.
3121 * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
3122 * ipa-predicate.h (condition::size): Turn into a poly_int64.
3123 (add_condition): Take a poly_int64 size.
3124 * ipa-predicate.c (add_condition): Likewise.
3125 * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
3126 * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
3127 (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
3128 * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
3129 condition::size as a poly_int64.
3130 (unmodified_parm_1): Take a poly_int64 size pointer.
3131 (unmodified_parm): Likewise.
3132 (unmodified_parm_or_parm_agg_item): Likewise.
3133 (set_cond_stmt_execution_predicate): Update accordingly.
3134 (set_switch_stmt_execution_predicate): Likewise.
3135 (will_be_nonconstant_expr_predicate): Likewise.
3136 (will_be_nonconstant_predicate): Likewise.
3137 (inline_read_section): Stream condition::size as a poly_int.
3138 (ipa_fn_summary_write): Likewise.
3139
3140 2019-08-07 Martin Liska <mliska@suse.cz>
3141
3142 * fold-const.c (twoval_comparison_p): Replace int
3143 with bool as a return type.
3144 (simple_operand_p): Likewise.
3145 (operand_equal_p): Replace int with bool as a return type.
3146 * fold-const.h (operand_equal_p): Likewise.
3147
3148 2019-08-07 Jakub Jelinek <jakub@redhat.com>
3149
3150 * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
3151 OpenMP description. Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
3152 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
3153 for OMP_CLAUSE_USE_DEVICE_ADDR clause.
3154 (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
3155 * tree-pretty-print.c (dump_omp_clause): Likewise.
3156 * tree-nested.c (convert_nonlocal_omp_clauses,
3157 convert_local_omp_clauses): Likewise.
3158 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
3159 Likewise.
3160 * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
3161 Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
3162 clause with array or reference to array types, no matter what type
3163 except for reference it has.
3164
3165 2019-08-07 Kewen Lin <linkw@gcc.gnu.org>
3166
3167 * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
3168
3169 2019-08-07 Kito Cheng <kito.cheng@sifive.com>
3170
3171 * config/riscv/multilib-generator: (canonical_order): Add 'g'.
3172 (arch_canonicalize): Support rv32g and rv64g and fix error
3173 handling.
3174
3175 2019-08-06 Martin Liska <mliska@suse.cz>
3176
3177 * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
3178 and DECL_IS_OPERATOR_DELETE_P.
3179
3180 2019-08-06 Jakub Jelinek <jakub@redhat.com>
3181
3182 * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
3183 (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this. Adjust comment.
3184 * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
3185 new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
3186 (gimplify_omp_for): Don't do C++ random access iterator clause
3187 adjustments on combined constructs from OMP_LOOP. For OMP_LOOP,
3188 don't predetermine the artificial iterator in case of C++ random
3189 access iterators as lastprivate, but private. For OMP_LOOP, force
3190 bind expr around simd body and force for_pre_body before the
3191 construct. Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
3192 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
3193 (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
3194 diff var of C++ random access iterators. Handle
3195 OMP_CLAUSE_FIRSTPRIVATE. For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
3196 not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
3197 clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
3198 on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
3199 * omp-low.c (lower_rec_input_clauses): For
3200 OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
3201 variables instead of default constructing them.
3202 (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
3203 instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
3204 is_taskloop_ctx check from the assert to the guarding condition.
3205
3206 2019-08-06 Kito Cheng <kito.cheng@sifive.com>
3207
3208 * config/riscv/multilib-generator: (canonical_order): New.
3209 (arch_canonicalize): Dito.
3210 Apply arch_canonicalize for alts.
3211
3212 2019-08-05 Martin Sebor <msebor@redhat.com>
3213
3214 * doc/extend.texi (Common Variable Attributes): Document alias
3215 attribute.
3216
3217 2019-08-05 Marek Polacek <polacek@redhat.com>
3218
3219 PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
3220 * doc/invoke.texi: Document -Wcomma-subscript.
3221
3222 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3223
3224 * tree-core.h (tree_function_decl): Make function_code an
3225 independent field. Group the remaining bitfields into bytes
3226 and move decl_type so that it contines to be at a byte boundary.
3227 Leave 12 bits for future expansion.
3228
3229 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3230
3231 * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
3232 (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
3233 (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
3234 IFN_MASK_STORE.
3235
3236 2019-08-05 Richard Sandiford <richard.sandiford@arm.com>
3237
3238 * gimple.h (gimple_move_vops): Declare.
3239 * gimple.c (gimple_move_vops): New function
3240 * gimple-fold.c (replace_call_with_call_and_fold)
3241 (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
3242 (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
3243 (gimple_fold_call): Use it.
3244 * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
3245 * tree-call-cdce.c (use_internal_fn): Likewise.
3246 * tree-if-conv.c (predicate_load_or_store): Likewise.
3247 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
3248 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3249 * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
3250 (update_call_from_tree): Likewise.
3251 * tree-vect-stmts.c (vectorizable_load): Likewise.
3252 * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
3253
3254 2019-08-05 Martin Liska <mliska@suse.cz>
3255
3256 PR c++/91334
3257 * tree-ssa-dce.c (propagate_necessity): Handle new operators
3258 with not arguments.
3259 (eliminate_unnecessary_stmts): Likewise.
3260
3261 2019-08-05 Richard Biener <rguenther@suse.de>
3262
3263 PR middle-end/91169
3264 * fold-const.c (get_array_ctor_element_at_index): Create
3265 offset_ints according to the sign of the index type and treat
3266 that as signed if it is obviously so.
3267
3268 2019-08-05 Jakub Jelinek <jakub@redhat.com>
3269
3270 PR target/91341
3271 * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
3272 _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
3273 _mm256_storeu2_m128i): New function.
3274
3275 2019-08-05 Kito Cheng <kito.cheng@sifive.com>
3276
3277 * config/riscv/riscv.c (riscv_promote_function_mode): New.
3278 (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
3279
3280 2019-08-05 Alan Modra <amodra@gmail.com>
3281
3282 PR target/91349
3283 * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
3284 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
3285
3286 2019-08-04 Gerald Pfeifer <gerald@pfeifer.com>
3287
3288 * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
3289 bug that was fixed in Tcl 8.6.1.
3290
3291 2019-08-02 Michael Meissner <meissner@linux.ibm.com>
3292
3293 * config/rs6000/future.md: New file.
3294 * config/rs6000/rs6000.md: Include future.md.
3295 * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
3296
3297 2019-08-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
3298
3299 * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
3300 check to use targetm.slow_unaligned_access instead.
3301
3302 * function.c (assign_param_data_one): Remove unused data members.
3303
3304 2019-08-02 Steve Ellcey <sellcey@marvell.com>
3305
3306 * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
3307 build_distinct_type_copy.
3308 (simd_clone_adjust_argument_types): Ditto.
3309 (simd_clone_adjust): Call build_distinct_type_copy here.
3310 (expand_simd_clones): Ditto.
3311
3312 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3313
3314 PR target/91201
3315 * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
3316
3317 2019-08-02 Alexander Monakov <amonakov@ispras.ru>
3318
3319 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
3320 from 'const void *'.
3321 (sort_locs_in_loop_postorder_cmp): Likewise.
3322
3323 2019-08-02 Eric Botcazou <ebotcazou@adacore.com>
3324
3325 * doc/invoke.texi (hot-bb-count-fraction): Rework description.
3326 (hot-bb-count-ws-permille): Likewise.
3327 (hot-bb-frequency-fraction): Likewise.
3328 (unlikely-bb-count-fraction): Likewise.
3329 * params.def (hot-bb-count-fraction): Rework description.
3330 (hot-bb-count-ws-permille): Likewise.
3331 (hot-bb-frequency-fraction): Likewise.
3332 (unlikely-bb-count-fraction): Likewise. Remove min and max values.
3333 * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
3334
3335 2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
3336
3337 PR target/91323
3338 * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
3339 Return false.
3340
3341 2019-08-02 Richard Biener <rguenther@suse.de>
3342
3343 * vec.h (vec::sort): Add gcc_qsort_r support.
3344 (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
3345 * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
3346 to gcc_qsort_r style callback.
3347 (sort_locs_in_loop_postorder_cmp): Likewise.
3348 (analyze_memory_references): Use gcc_sort_r interfaces.
3349 (find_ref_loc_in_loop_cmp): Use new bsearch overload.
3350
3351 2019-08-02 Martin Liska <mliska@suse.cz>
3352
3353 PR lto/91313
3354 * gcc.c (driver::maybe_run_linker): Call detect_jobserver
3355 to detect working job server.
3356 (driver::detect_jobserver): Test whether jobserver
3357 is active from GCC driver. That will prevent situation where
3358 GCC is invoked from a LD plugin and the linker already uses
3359 file descriptors suggested by make. That leads to a wrong
3360 detection.
3361 * gcc.h (driver): Add detect_jobserver.
3362 * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
3363 not scanning for --jobserver-auth prefix.
3364
3365 2019-08-02 Jakub Jelinek <jakub@redhat.com>
3366
3367 PR tree-optimization/91201
3368 * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
3369 V16QImode extraction without sse4.1 try to use V4SImode lowpart
3370 extraction.
3371
3372 2019-08-01 Martin Sebor <msebor@redhat.com>
3373
3374 PR c++/90947
3375 * tree.c (type_initializer_zero_p): Define.
3376 * tree.h (type_initializer_zero_p): New function.
3377
3378 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3379
3380 * cfgrtl.c (relink_block_chain): Add line returns in dump file.
3381
3382 2019-08-01 Eric Botcazou <ebotcazou@adacore.com>
3383
3384 * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
3385 * cgraph.c (cgraph_edge::maybe_hot_p): Likewise. Remove useless test.
3386 * predict.c (maybe_hot_count_p): Likewise.
3387 (maybe_hot_bb_p): Tweak comment.
3388 (maybe_hot_edge_p): Likewise.
3389 (probably_never_executed): Likewise. Minor tweak.
3390 (probably_never_executed_bb_p): Likewise.
3391 (unlikely_executed_edge_p): Likewise.
3392 (probably_never_executed_edge_p): Likewise.
3393 (optimize_function_for_size_p): Likewise.
3394 (optimize_function_for_speed_p): Likewise.
3395 (function_optimization_type): Likewise.
3396 (optimize_bb_for_size_p): Likewise.
3397 (optimize_bb_for_speed_p): Likewise.
3398 (bb_optimization_type): Likewise.
3399 (optimize_edge_for_size_p): Likewise.
3400 (optimize_edge_for_speed_p): Likewise.
3401 (optimize_insn_for_size_p): Likewise.
3402 (optimize_insn_for_speed_p): Likewise.
3403 (optimize_loop_for_size_p): Likewise.
3404 (optimize_loop_for_speed_p): Likewise.
3405 (optimize_loop_nest_for_speed_p): Likewise.
3406 (optimize_loop_nest_for_size_p): Likewise.
3407 (predictable_edge_p): Likewise.
3408 (handle_missing_profiles): Minor tweak.
3409
3410 2019-08-01 Michael Meissner <meissner@linux.ibm.com>
3411
3412 * config/rs6000/predicates.md (pcrel_external_address): Update
3413 comment.
3414
3415 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3416
3417 PR target/85693
3418 * config/i386/mmx.md (usadv8qi): New expander.
3419
3420 2019-08-01 Matthew Beliveau <mbelivea@redhat.com>
3421
3422 PR c++/90590
3423 * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
3424 with reserved names that are in a system header.
3425
3426 2019-08-01 Uroš Bizjak <ubizjak@gmail.com>
3427
3428 * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
3429 (*vec_extractv2si_0_zext_sse4): New insn pattern.
3430 (*vec_extractv2si_0_zext): Ditto.
3431 (*vec_extractv2si_1): Add (rm,x) alternative.
3432 (*vec_extractv2si_1_zext): New insn pattern.
3433 (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
3434 insn constraint.
3435
3436 2019-08-01 Richard Biener <rguenther@suse.de>
3437
3438 * domwalk.c (bb_postorder): Remove static variable.
3439 (cmp_bb_postorder): Adjust.
3440 (sort_bbs_postorder): Adjust and use gcc_sort_r.
3441 (dom_walker::walk): Adjust.
3442
3443 2019-08-01 Alexander Monakov <amonakov@ispras.ru>
3444
3445 * sort.cc (sort_r_ctx): New struct.
3446 (reorder23): Make templated on context type.
3447 (reorder45): Ditto.
3448 (cmp1): Ditto. Adjust signature.
3449 (netsort): Ditto.
3450 (mergesort): Ditto.
3451 [CHECKING_P] (cmp2to3): New static function. Use it...
3452 (gcc_qsort) [CHECKING_P]: ...here.
3453 (gcc_sort_r): New function.
3454 * system.h (sort_r_cmp_fn): New function typedef.
3455 (qsort_chk): Adjust signature.
3456 (gcc_sort_r): Declare.
3457 * vec.c (qsort_chk_error): Adjust.
3458 (qsort_chk): Adjust.
3459
3460 2019-08-01 Richard Biener <rguenther@suse.de>
3461
3462 * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
3463 (compute_antic): Localize it here.
3464
3465 2019-07-31 Maxim Blinov <maxim.blinov@embecosm.com>
3466
3467 * common/config/riscv/riscv-common.c: Check -march string ends
3468 with null.
3469
3470 2019-07-31 Alexander Monakov <amonakov@ispras.ru>
3471
3472 * ipa-devirt.c (type_warning_cmp): Make static.
3473 (decl_warning_cmp): Ditto.
3474
3475 2019-07-31 Peter Bergner <bergner@linux.ibm.com>
3476
3477 PR target/91050
3478 * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
3479 * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
3480 use of deleted rs6000_dejagnu_cpu_index variable.
3481 * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
3482 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3483 * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
3484 (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
3485 * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
3486 (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
3487
3488 2019-07-31 Richard Biener <rguenther@suse.de>
3489
3490 PR tree-optimization/91280
3491 * tree-ssa-structalias.c (get_constraint_for_component_ref):
3492 Decompose MEM_REF manually for offset handling.
3493
3494 2019-07-31 Richard Biener <rguenther@suse.de>
3495
3496 PR tree-optimization/91293
3497 * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
3498 of reduction stmts.
3499
3500 2019-07-31 Matt Thomas <matt@3am-software.com>
3501 Nick Hudson <nick@nthcliff.demon.co.uk>
3502 Matthew Green <mrg@eterna.com.au>
3503 Maya Rashish <coypu@sdf.org>
3504
3505 * config.gcc (hppa*-*-netbsd*): New target.
3506 * config/pa/pa-netbsd.h: New file.
3507 * config/pa/pa32-netbsd.h: New file.
3508
3509 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3510
3511 PR tree-optimization/91201
3512 * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
3513
3514 2019-07-31 Andrew Stubbs <ams@codesourcery.com>
3515
3516 * config/gcn/gcn-valu.md
3517 (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
3518 (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
3519 (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
3520 * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
3521 struct ilist. Add nops for delayeduse insns.
3522 * config/gcn/gcn.md (delayeduse): New attribute.
3523 (*movbi): Remove s_waitcnt from stores.
3524 (*mov<mode>_insn): Likewise.
3525 (*movti_insn): Likewise. Add delayeduse attribute.
3526 (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
3527 (atomic_store<mode>): Remove or adjust s_waitcnt.
3528
3529 2019-07-31 Richard Biener <rguenther@suse.de>
3530
3531 * vr-values.h (vr_values::swap_vr_value): New.
3532 (vr_values::free_value_range): likewise.
3533 * vr-values.c (vr_values::swap_vr_value): Implement.
3534 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
3535 Do not return a range or take a var.
3536 (evrp_range_analyzer::stack): Change back to recording a non-const
3537 value_range *.
3538 * gimple-ssa-evrp-analyze.c
3539 (evrp_range_analyzer::record_ranges_from_stmt): Free unused
3540 value-range.
3541 (evrp_range_analyzer::pop_to_marker): Adjust.
3542 (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
3543 (evrp_range_analyzer::pop_value_range): Likewise. Free the
3544 no longer needed value-range.
3545
3546 2019-07-31 Martin Liska <mliska@suse.cz>
3547
3548 * tree-ssa-dce.c (propagate_necessity): Delete operator can
3549 have size and (or) alignment as 2nd and later arguments.
3550 Mark all of them as necessary.
3551
3552 2019-07-31 Richard Biener <rguenther@suse.de>
3553
3554 PR tree-optimization/91178
3555 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
3556 Use tail-recursion.
3557
3558 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3559
3560 PR tree-optimization/91201
3561 * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
3562 (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
3563 TARGET_AVX512F.
3564 (reduc_plus_scal_<mode>): Improve formatting by introducing
3565 a temporary.
3566
3567 2019-07-31 Sudakshina Das <sudi.das@arm.com>
3568
3569 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
3570 AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
3571 AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
3572 (aarch64_init_tme_builtins): New.
3573 (aarch64_init_builtins): Call aarch64_init_tme_builtins.
3574 (aarch64_expand_builtin_tme): New.
3575 (aarch64_expand_builtin): Handle TME builtins.
3576 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
3577 __ARM_FEATURE_TME when enabled.
3578 * config/aarch64/aarch64-option-extensions.def: Add "tme".
3579 * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
3580 (TARGET_TME): New.
3581 * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
3582 (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
3583 UNSPECV_TCANCEL.
3584 (tstart, ttest, tcommit, tcancel): New instructions.
3585 * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
3586 (__tcancel, __ttest): New.
3587 (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
3588 (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
3589 (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
3590 (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
3591 * config/arm/types.md: Add new tme type attr.
3592 * doc/invoke.texi: Document "tme".
3593
3594 2019-07-31 Joel Hutton <Joel.Hutton@arm.com>
3595
3596 * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
3597 warn_unused_result attribute.
3598 (cmse_check_address_range): Add warn_unused_result attribute.
3599
3600 2019-07-31 Richard Biener <rguenther@suse.de>
3601
3602 PR tree-optimization/91257
3603 * tree-vrp.c (union_ranges): Unify equality and less tests
3604 by using compare_values. Re-order cheap tests first.
3605
3606 2019-07-31 Jakub Jelinek <jakub@redhat.com>
3607
3608 PR middle-end/91301
3609 * gimplify.c (gimplify_omp_for): If for class iterator on
3610 distribute parallel for there is no data sharing clause
3611 on inner_for_stmt, look for private clause on combined
3612 parallel too and if found, move it to inner_for_stmt.
3613
3614 2019-07-31 Richard Sandiford <richard.sandiford@arm.com>
3615
3616 * lra-int.h (lra_operand_data): Remove early_clobber field.
3617 (lra_insn_reg): Likewise.
3618 * lra.c (debug_operand_data): Update accordingly.
3619 (setup_operand_alternative): Likewise.
3620 (new_insn_reg): Likewise. Remove early_clobber parameter.
3621 (collect_non_operand_hard_regs): Update call accordingly.
3622 Don't assign to lra_insn_reg::early_clobber.
3623 (add_regs_to_insn_regno_info): Remove early_clobber parameter
3624 and update calls to new_insn_reg.
3625 (lra_update_insn_regno_info): Update calls accordingly.
3626 * lra-constraints.c (update_and_check_small_class_inputs): Take the
3627 alternative number as a parameter and test whether the operand
3628 is earlyclobbered in that particular alternative.
3629 (process_alt_operands): Update call accordingly. Use per-alternative
3630 checks for earyclobber here too.
3631 * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
3632 against zero for IRA_UNKNOWN_ALT.
3633
3634 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3635
3636 * config/alpha/alpha.c (alpha_option_override): Quote a C type.
3637
3638 2019-07-30 Wilco Dijkstra <wdijkstr@arm.com>
3639
3640 * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
3641 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3642
3643 2019-07-30 Martin Liska <mliska@suse.cz>
3644
3645 PR ipa/89330
3646 * cgraph.c (cgraph_edge::make_direct): Use
3647 edge->indirect_unknown_callee as edge->resolve_speculation can
3648 deallocate edge which is this pointer.
3649
3650 2019-07-30 Richard Biener <rguenther@suse.de>
3651
3652 PR tree-optimization/91257
3653 * bitmap.c (bitmap_ior_and_compl_into): Open-code.
3654
3655 2019-07-30 Martin Liska <mliska@suse.cz>
3656
3657 * doc/invoke.texi: Document new behavior.
3658 * lto-wrapper.c (cpuset_popcount): New function
3659 is a copy of libgomp/config/linux/proc.c.
3660 (init_num_threads): Likewise.
3661 (run_gcc): Automatically detect core count for -flto.
3662 (jobserver_active_p): New function.
3663
3664 2019-07-30 Richard Biener <rguenther@suse.de>
3665
3666 PR tree-optimization/91257
3667 * bitmap.h (bitmap_ior_into_and_free): Declare.
3668 * bitmap.c (bitmap_list_unlink_element): Add defaulted param
3669 whether to add the unliked element to the freelist.
3670 (bitmap_list_insert_element_after): Add defaulted param for
3671 an already allocated element.
3672 (bitmap_ior_into_and_free): New function.
3673 * tree-ssa-structalias.c (condense_visit): Reduce the
3674 ponts-to and edge bitmaps of the SCC members in a
3675 logarithmic fashion rather than all to one.
3676
3677 2019-07-30 Richard Sandiford <richard.sandiford@arm.com>
3678
3679 * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
3680 parameter. When nonnull, make sure that the addition or subtraction
3681 has the same condition.
3682 (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
3683 for CFN_COND_MUL too.
3684
3685 2019-07-30 Richard Biener <rguenther@suse.de>
3686
3687 PR tree-optimization/91291
3688 * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
3689 constant values.
3690
3691 2019-07-30 Jakub Jelinek <jakub@redhat.com>
3692
3693 PR middle-end/91216
3694 * omp-low.c (global_nonaddressable_vars): New variable.
3695 (use_pointer_for_field): For global decls, if they are non-addressable,
3696 remember it in the global_nonaddressable_vars bitmap, if they are
3697 addressable and in the global_nonaddressable_vars bitmap, ignore their
3698 TREE_ADDRESSABLE bit.
3699 (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
3700 vars in global_nonaddressable_vars bitmap.
3701 (execute_lower_omp): Free global_nonaddressable_vars bitmap.
3702
3703 PR target/91150
3704 * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
3705 from unsigned to unsigned HOST_WIDE_INT. For E_V64QImode cast
3706 comparison to unsigned HOST_WIDE_INT before shifting it left.
3707
3708 2019-07-30 Uroš Bizjak <ubizjak@gmail.com>
3709
3710 * config/i386/i386.md (movstrict<mode>): Use register_operand
3711 predicate for operand 0. Add expander condition. Assert that
3712 operand 0 is a SUBREG RTX.
3713 (*movstrict<mode>_1): Use register_operand predicate for operand 0.
3714 Update operand constraints and insn condition.
3715 (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
3716 (zero_extendqihi2_and): Do not call gen_movstrictqi.
3717 (*setcc_qi_slp): Use register_operand predicate for operand 0.
3718 Update operand 0 constraints.
3719 (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
3720
3721 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3722
3723 * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
3724 when -m{code,data}-region are used without -mlarge.
3725 * config/msp430/msp430.c (msp430_option_override): Error when a
3726 non-default code or data region is used without -mlarge.
3727 (msp430_section_attr): Emit a warning and do not add upper/lower/either
3728 attributes when they are used without -mlarge.
3729
3730 2019-07-29 Jozef Lawrynowicz <jozef.l@mittosystems.com>
3731
3732 PR target/70320
3733 * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
3734
3735 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3736
3737 PR middle-end/91242
3738 * wide-int.h (generic_wide_int::sext_elt): New function.
3739 * inchash.h (hash::add_wide_int): Use it instead of elt.
3740
3741 2019-07-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3742
3743 * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
3744 CODE_FOR_arm_##.
3745 * config/arm/arm.md (<crc_variant>): Rename to...
3746 (arm_<crc_variant>): ... This.
3747 (<cdp>): Rename to...
3748 (arm_<cdp>): ... This.
3749 (<ldc>): Rename to...
3750 (arm_<ldc>): ... This.
3751 (<stc>): Rename to...
3752 (arm_<stc>): ... This.
3753 (<mcr>): Rename to...
3754 (arm_<mcr>): ... This.
3755 (<mrc>): Rename to...
3756 (arm_<mrc>): ... This.
3757 (<mcrr>): Rename to...
3758 (arm_<mcrr>): ... This.
3759 (<mrrc>): Rename to...
3760 (arm_<mrrc>): ... This.
3761
3762 2019-07-29 Richard Biener <rguenther@suse.de>
3763
3764 PR tree-optimization/91257
3765 * tree-ssa-sccvn.h (struct vn_avail): New.
3766 (struct vn_ssa_aux): Add avail member.
3767 * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
3768 member, add m_avail_freelist one.
3769 (rpo_elim::~rpo_elim): Remove.
3770 (rpo_elim::eliminate_avail): Adjust to new avail tracking
3771 data structure.
3772 (rpo_elim::eliminate_push_avail): Likewise.
3773 (do_unwind): Likewise.
3774 (do_rpo_vn): Likewise.
3775
3776 2019-07-29 Richard Biener <rguenther@suse.de>
3777
3778 PR tree-optimization/91257
3779 * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
3780 most cases, instead call compare_values which handles the
3781 symbolic ranges we handle specially.
3782 (compare_values_warnv): Do not call operand_less_p but open-code
3783 the effective fold calls. Avoid converting so much.
3784
3785 2019-07-29 Martin Liska <mliska@suse.cz>
3786
3787 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
3788 remove LHS of operator new call. It's handled latter.
3789
3790 2019-07-29 Richard Biener <rguenther@suse.de>
3791
3792 PR tree-optimization/91267
3793 * vr-values.c (vr_values::update_value_range): Add early return
3794 for effectively VARYING lattice entry.
3795
3796 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3797
3798 PR debug/86638
3799 * tree-ssa-dce.c (keep_all_vdefs_p): New function.
3800 (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
3801 necessary if keep_all_vdefs_p is true.
3802 (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
3803 that keep_all_vdefs_p is false.
3804 (mark_all_reaching_defs_necessary): Likewise.
3805 (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
3806
3807 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3808
3809 * common.opt (Og): Change the initial value of flag_dse to 0.
3810 * opts.c (default_options_table): Move OPT_ftree_dse from
3811 OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG. Also add
3812 OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG. Put the OPT_ftree_pta
3813 entry before the OPT_ftree_sra entry.
3814 * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
3815 of flags disabled by Og.
3816
3817 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3818
3819 * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
3820 variables for -Og.
3821
3822 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3823
3824 * doc/sourcebuild.texi (check-function-bodies): Document.
3825
3826 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3827
3828 * simplify-rtx.c (simplify_const_unary_operation): Fold a
3829 VEC_DUPLICATE of a fixed-length vector even if the result
3830 is variable-length. Likewise fold a duplicate of a
3831 variable-length vector if the variable-length vector is
3832 itself a duplicate of a fixed-length sequence.
3833 (test_vector_ops_duplicate): Test more cases.
3834
3835 2019-07-29 Richard Sandiford <richard.sandiford@arm.com>
3836
3837 * vector-builder.h (vector_builder): Add a shape template parameter.
3838 (vector_builder::new_unary_operation): New function, generalizing
3839 the old tree_vector_builder function.
3840 (vector_builder::new_binary_operation): Likewise.
3841 (vector_builder::binary_encoded_nelts): Likewise.
3842 * int-vector-builder.h (int_vector_builder): Update template
3843 parameters to vector_builder.
3844 (int_vector_builder::shape_nelts): New function.
3845 * rtx-vector-builder.h (rtx_vector_builder): Update template
3846 parameters to vector_builder.
3847 (rtx_vector_builder::shape_nelts): New function.
3848 (rtx_vector_builder::nelts_of): Likewise.
3849 (rtx_vector_builder::npatterns_of): Likewise.
3850 (rtx_vector_builder::nelts_per_pattern_of): Likewise.
3851 * tree-vector-builder.h (tree_vector_builder): Update template
3852 parameters to vector_builder.
3853 (tree_vector_builder::shape_nelts): New function.
3854 (tree_vector_builder::nelts_of): Likewise.
3855 (tree_vector_builder::npatterns_of): Likewise.
3856 (tree_vector_builder::nelts_per_pattern_of): Likewise.
3857 * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
3858 (tree_vector_builder::new_binary_operation): Delete.
3859 (tree_vector_builder::binary_encoded_nelts): Likewise.
3860 * simplify-rtx.c: Include rtx-vector-builder.h.
3861 (distributes_over_addition_p): New function.
3862 (simplify_const_unary_operation)
3863 (simplify_const_binary_operation): Generalize handling of vector
3864 constants to include variable-length vectors.
3865 (test_vector_ops_series): Add more tests.
3866
3867 2019-07-28 Jan Hubicka <hubicka@ucw.cz>
3868
3869 PR lto/91222
3870 * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
3871 than INDENTIFIER_POINTER.
3872
3873 2019-07-28 Martin Liska <mliska@suse.cz>
3874
3875 PR ipa/89330
3876 * cgraph.c (symbol_table::create_edge): Always allocate
3877 a cgraph_edge.
3878 (symbol_table::free_edge): Store summary_id to
3879 edge_released_summary_ids if != -1;
3880 * cgraph.h (NEXT_FREE_NODE): Remove.
3881 (SET_NEXT_FREE_NODE): Likewise.
3882 (NEXT_FREE_EDGE): Likewise.
3883 (symbol_table::release_symbol): Store summary_id to
3884 cgraph_released_summary_ids if != -1;
3885 (symbol_table::allocate_cgraph_symbol): Always allocate
3886 a cgraph_node.
3887
3888 2019-07-28 Alan Modra <amodra@gmail.com>
3889
3890 * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
3891 gen_sibcall.
3892
3893 2019-07-28 Alan Modra <amodra@gmail.com>
3894
3895 PR target/91135
3896 * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
3897 define.
3898 * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
3899 GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
3900 (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
3901
3902 2019-07-28 Alan Modra <amodra@gmail.com>
3903
3904 PR target/91050
3905 * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
3906 * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
3907 * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
3908 * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
3909 * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
3910 * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
3911 in asm_default spec.
3912 * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
3913 * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
3914
3915 2019-07-28 Gerald Pfeifer <gerald@pfeifer.com>
3916
3917 * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
3918
3919 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3920
3921 PR target/89517
3922 * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
3923 * config/aarch64/aarch64-option-extensions.def: Add new comments
3924 and restore easier to read options.
3925
3926 2019-07-26 Tamar Christina <tamar.christina@arm.com>
3927
3928 * convert.c (convert_to_real_1): Move part of conversion code...
3929 * match.pd: ...To here.
3930
3931 2019-07-26 Martin Jambor <mjambor@suse.cz>
3932
3933 PR ipa/89330
3934 * ipa-inline-transform.c (check_speculations_1): New function.
3935 (push_all_edges_in_set_to_vec): Likewise.
3936 (check_speculations): Use check_speculations_1, new parameter
3937 new_edges.
3938 (inline_call): Pass new_edges to check_speculations.
3939 * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
3940 NULL.
3941 (speculation_useful_p): Early return true if edge is inlined, remove
3942 later checks for inline_failed.
3943
3944 2019-07-25 Vladimir Makarov <vmakarov@redhat.com>
3945
3946 PR rtl-optimization/91223
3947 * lra-constraints.c (process_alt_operands): Fail for unsuccessful
3948 matching with INOUT operand.
3949
3950 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3951
3952 * stmt.c (expand_case): Try to narrow the index type if it's larger
3953 than a word. Tidy up.
3954
3955 2019-07-25 Eric Botcazou <ebotcazou@adacore.com>
3956
3957 * cif-code.def (NEVER_CALL): New code.
3958 * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
3959 Set the failure to CIF_NEVER_CALL if the IPA count is zero.
3960
3961 2019-07-25 Wilco Dijkstra <wdijkstr@arm.com>
3962
3963 * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
3964 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
3965
3966 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
3967
3968 * ipa-devirt.c (add_type_duplicate): Fix return value.
3969
3970 2019-07-25 Richard Biener <rguenther@suse.de>
3971
3972 * tree-vrp.c (extract_range_from_multiplicative_op): Add
3973 type parameter and use it instead of guessing expression
3974 type from the first operand.
3975 (extract_range_from_binary_expr): Pass expr_type down.
3976
3977 2019-07-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3978
3979 * config/arm/arm.md (SATrev): Change to code attribute.
3980 (*satsi_<SAT:code>): Adjust for the above.
3981 (*satsi_<SAT:code>_shift): Likewise.
3982
3983 2019-07-25 Richard Biener <rguenther@suse.de>
3984
3985 * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
3986 Make value_range * temporary const.
3987 * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
3988 Likewise.
3989 (evrp_range_analyzer::record_ranges_from_): Likewise.
3990 (evrp_range_analyzer::pop_value_range): Return a const value_range *,
3991 deal with having recorded a const one.
3992 * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
3993 Return a const value_range *.
3994 (evrp_range_analyzer::pop_value_range): Likewise.
3995 (evrp_range_analyzer::stack): Record const value_range *s.
3996 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
3997 Adjust.
3998 * gimple-ssa-sprintf.c (get_int_range): Likewise.
3999 (format_integer): Likewise.
4000 (sprintf_dom_walker::handle_gimple_call): Likewise.
4001 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
4002 * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
4003 (vrp_prop::get_value_range): Adjust.
4004 (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
4005 modifying the lattice in-place.
4006 (vrp_prop::visit_stmt): Likewise.
4007 * vr-values.c (vr_values::get_lattice_entry): New private method.
4008 (vr_values::get_value_range): Wrap it and return a const
4009 value_range *.
4010 (vr_values::set_def_to_varying): New.
4011 (vr_values::set_defs_to_varying): Use it.
4012 (vr_values::update_value_range): Likewise.
4013 (vr_values::vrp_stmt_computes_nonzero): Adjust.
4014 (values::op_with_constant_singleton_va): Likewise.
4015 (vr_values::extract_range_for_var_from_co): Likewise.
4016 (vr_values::extract_range_from_ssa_name): Likewise.
4017 (vr_values::extract_range_from_cond_expr): Likewise.
4018 (vr_values::extract_range_basic): Likewise.
4019 (compare_ranges): Take const value_range *, adjust.
4020 (compare_range_with_value): Likewise.
4021 (vrp_valueize): Adjust.
4022 (vrp_valueize_1): Likewise.
4023 (vr_values::get_vr_for_comparison): Return a const value_range *.
4024 (vr_values::compare_name_with_value): Adjust.
4025 (vr_values::compare_names): Likewise.
4026 (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
4027 Likewise.
4028 (vr_values::vrp_evaluate_conditional): Likewise.
4029 (find_case_label_ranges): Take a const value_range *.
4030 (vr_values::vrp_visit_switch_stmt): Adjust.
4031 (vr_values::extract_range_from_phi_node): Likewise.
4032 (vr_values::simplify_div_or_mod_using_ran): Likewise.
4033 (vr_values::simplify_abs_using_ranges): Likewise.
4034 (test_for_singularity): Take a const value_range *.
4035 (range_fits_type_p): Likewise.
4036 (vr_values::simplify_cond_using_ranges_1): Adjust.
4037 (vr_values::simplify_cond_using_ranges_2): Likewise.
4038 (vr_values::simplify_switch_using_ranges): Likewise.
4039 (vr_values::simplify_float_conversion_usi): Likewise.
4040 (vr_values::two_valued_val_range_p): Likewise.
4041 * vr-values.h (vr_values::get_value_range): Return a const
4042 value_range *.
4043 (vr_values::set_def_to_varying): New.
4044 (vr_values::get_lattice_entry): New private method.
4045 (vr_values::get_vr_for_comparison): Return a const value_range *.
4046
4047 2019-07-25 Martin Liska <mliska@suse.cz>
4048 Dominik Infuhr <dominik.infuehr@theobroma-systems.com>
4049
4050 PR c++/23383
4051 * common.opt: Add -fallocation-dce
4052 * gimple.c (gimple_call_operator_delete_p): New.
4053 * gimple.h (gimple_call_operator_delete_p): Likewise.
4054 * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
4055 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
4056 DECL_IS_OPERATOR_DELETE_P.
4057 (mark_all_reaching_defs_necessary_1): Likewise.
4058 (propagate_necessity): Likewise.
4059 (eliminate_unnecessary_stmts): Handle
4060 gimple_call_operator_delete_p.
4061 * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
4062 Add packing of OPERATOR_DELETE.
4063 * tree-streamer-out.c (pack_ts_function_decl_value_fields):
4064 Similarly here.
4065 * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
4066 (DECL_SET_IS_OPERATOR_DELETE): New.
4067 (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
4068
4069 2019-07-25 Martin Liska <mliska@suse.cz>
4070
4071 * calls.c (maybe_warn_alloc_args_overflow): Use new macros
4072 (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
4073 * coverage.c (coverage_begin_function): Likewise.
4074 * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
4075 * gimple.c (gimple_call_nonnull_result_p): Likewise.
4076 * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
4077 (sem_item::hash_referenced_symbol_properties): Likewise.
4078 * lto-streamer-out.c (hash_tree): Likewise.
4079 * predict.c (expr_expected_value_1): Likewise.
4080 * tree-inline.c (expand_call_inline): Likewise.
4081 * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
4082 * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
4083 * tree-core.h (enum function_decl_type): New enum.
4084 (struct tree_function_decl): Remove operator_new_flag and lambda_function.
4085 * tree.h (FUNCTION_DECL_DECL_TYPE): New.
4086 (set_function_decl_type): Likewise.
4087 (DECL_IS_OPERATOR_NEW_P): New.
4088 (DECL_SET_IS_OPERATOR_NEW): Likewise.
4089 (DECL_LAMBDA_FUNCTION): Likewise.
4090 (DECL_LAMBDA_FUNCTION_P): Likewise.
4091 (DECL_IS_OPERATOR_NEW): Remove.
4092 (DECL_SET_LAMBDA_FUNCTION): Likewise.
4093
4094 2019-07-25 Xiong Hu Luo <luoxhu@linux.ibm.com>
4095
4096 * ipa-profile.c (get_most_common_single_value): Use
4097 get_nth_most_common_value.
4098 * profile.c (sort_hist_value): New function.
4099 (compute_value_histograms): Call sort_hist_value to sort the
4100 values after loading from disk.
4101 * value-prof.c (get_most_common_single_value): Rename to ...
4102 get_nth_most_common_value. Add input params n, return
4103 the n_th value and count.
4104 (gimple_divmod_fixed_value_transform): Use
4105 get_nth_most_common_value.
4106 (gimple_ic_transform): Likewise.
4107 (gimple_stringops_transform): Likewise.
4108 * value-prof.h (get_most_common_single_value): Add input params
4109 n, default to 0.
4110
4111 2019-07-25 Richard Biener <rguenther@suse.de>
4112
4113 PR tree-optimization/91236
4114 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4115 size of CONSTRUCTOR write. Fix buffer size we pass to
4116 native_encode_expr.
4117
4118 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4119
4120 * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
4121 * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
4122 r273773.
4123
4124 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4125
4126 * config.gcc (msp430*-*-*): Enable initfini_array by default unless
4127 explicitly disabled with --disable-initfini-array.
4128
4129 2019-07-24 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4130
4131 * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
4132 if-exists.
4133
4134 2019-07-24 Martin Sebor <msebor@redhat.com>
4135
4136 PR tree-optimization/91183
4137 PR tree-optimization/86688
4138 * builtins.c (compute_objsize): Handle MEM_REF.
4139 * tree-ssa-strlen.c (class ssa_name_limit_t): New.
4140 (get_min_string_length): Remove.
4141 (count_nonzero_bytes): New function.
4142 (handle_char_store): Rename...
4143 (handle_store): to this. Handle multibyte stores via integer types.
4144 (strlen_check_and_optimize_stmt): Adjust conditional and the called
4145 function name.
4146
4147 2019-07-24 Martin Sebor <msebor@redhat.com>
4148
4149 PR driver/80545
4150 * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
4151 (diagnostic_report_diagnostic): Same.
4152 * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
4153 (diagnostic_context::lang_mask): New data member.
4154 * ipa-pure-const.c (suggest_attribute): Use
4155 lang_hooks.option_lang_mask ().
4156 * opts-common.c (option_enabled): Handle new argument.
4157 (get_option_state): Pass an additional argument.
4158 * opts.c (print_filtered_help): Print supported languages for
4159 unsupported options. Adjust printing of current state.
4160 * opts.h (option_enabled): Add argument.
4161 * toplev.c (print_switch_values): Use lang_mask.
4162 (general_init): Set global_dc->lang_mask.
4163
4164 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4165
4166 PR bootstrap/87030
4167 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
4168
4169 2019-07-24 Giuliano Belinassi <giuliano.belinassi@usp.br>
4170
4171 * cgraphunit.c (symbol_table::compile): Start and stop
4172 TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
4173 * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
4174
4175 2019-07-24 Oliver Browne <oliverbrowne62@gmail.com>
4176
4177 * gimplify.c (flag_instrument_functions_exclude_p): Include
4178 namespace/class information in the printable name.
4179 * opts.c (add_comma_separated_to_vector): Add NUL terminator
4180 to tokens entered into the vector.
4181
4182 2019-07-24 Eric Botcazou <ebotcazou@adacore.com>
4183
4184 * tree-nested.c (build_simple_mem_ref_notrap): New function.
4185 (get_static_chain): Call it instead of build_simple_mem_ref.
4186 (get_frame_field): Likewise.
4187 (get_nonlocal_debug_decl): Likewise.
4188 (convert_nonlocal_reference_op): Likewise.
4189
4190 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com>
4191
4192 * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
4193 declaration.
4194 (arc_compute_frame_size): Millicode is disabled when compiling
4195 ISR.
4196 (arc_return_address_register): Likewise.
4197 (arc_compute_function_type): Likewise.
4198 (arc_compute_frame_size): Likewise.
4199 (secondary_reload_info): Likewise.
4200 (arc_get_unalign): Likewise.
4201 (arc_can_use_return_insn): Declare.
4202 * config/arc/arc.c (AUX_LP_START): Define
4203 (AUX_LP_END): Likewise.
4204 (arc_frame_info): Update gmask member to 64-bit datum.
4205 (GMASK_LEN): Update.
4206 (arc_compute_function_type): Make it static, move it forward.
4207 (arc_must_save_register): Update, consider the extra regs.
4208 (arc_compute_millicode_save_restore_regs): Update to use the 64
4209 bit gmask.
4210 (arc_compute_frame_size): Likewise.
4211 (arc_enter_leave_p): Likewise.
4212 (arc_save_callee_saves): Likewise.
4213 (arc_restore_callee_saves): Likewise.
4214 (arc_save_callee_enter): Likewise.
4215 (arc_restore_callee_leave): Likewise.
4216 (arc_save_callee_milli): Likewise.
4217 (arc_restore_callee_milli): Likewise.
4218 (arc_expand_prologue): Add new interrupt handling.
4219 (arc_return_address_register): Make it static, move it forward.
4220 (arc_expand_epilogue): Add new interrupt handling.
4221 (arc_get_unalign): Delete.
4222 (arc_epilogue_uses): Make sure we do not remove the extra
4223 saved/restored registers when interrupt.
4224 (arc_can_use_return_insn): New function.
4225 (push_reg): Likewise.
4226 (pop_reg): Likewise.
4227 (arc_save_callee_saves): Add ZOL and FPX aux registers saving
4228 procedures.
4229 (arc_restore_callee_saves): Likewise, but restoring.
4230 * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
4231 (R33_REG): Likewise.
4232 (R34_REG): Likewise.
4233 (R35_REG): Likewise.
4234 (R36_REG): Likewise.
4235 (R37_REG): Likewise.
4236 (R38_REG): Likewise.
4237 (R39_REG): Likewise.
4238 (R45_REG): Likewise.
4239 (R46_REG): Likewise.
4240 (R47_REG): Likewise.
4241 (R48_REG): Likewise.
4242 (R49_REG): Likewise.
4243 (R50_REG): Likewise.
4244 (R51_REG): Likewise.
4245 (R52_REG): Likewise.
4246 (R53_REG): Likewise.
4247 (R54_REG): Likewise.
4248 (R55_REG): Likewise.
4249 (R56_REG): Likewise.
4250 (R58_REG): Likewise.
4251 (type): Add rtie attribute.
4252 (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
4253 (movsi_insn): Accept moves to lp_count.
4254 (rtie): Update pattern.
4255 (simple_return): Simplify it, don't use this pattern as a return
4256 from an interrupt.
4257 (arc600_rtie): New pattern.
4258 (p_return_i): Clean up.
4259 (return): Likewise.
4260 * config/arc/builtins.def (rtie): Only available for non ARC6xx
4261 family CPUs.
4262 * config/arc/predicates.md (move_src_operand): Consider lp_count
4263 as a register.
4264
4265 2019-07-24 Andreas Krebbel <krebbel@linux.ibm.com>
4266
4267 * config/s390/predicates.md (addv_const_operand): New predicate.
4268 * config/s390/s390-modes.def (CCO): New condition code mode.
4269 * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
4270 (s390_branch_condition_mask): Likewise.
4271 * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
4272 ("mulv<mode>4"): New expanders.
4273 ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
4274 ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
4275 pattern definitions.
4276
4277 2019-07-24 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
4278
4279 PR middle-end/91166
4280 * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
4281 (define_predicates): Add entry for uniform_vector_p.
4282 (vec_same_elem_p): New match pattern.
4283
4284 2019-07-24 Iain Sandoe <iain@sandoe.co.uk>
4285
4286 PR bootstrap/87030
4287 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
4288 * config/i386/darwin32-biarch.h .. to here.
4289 * config/i386/darwin64-biarch.h: Adjust comments.
4290 * config/rs6000/darwin32-biarch.h: Likewise.
4291 * config/rs6000/darwin64-biarch.h: Likewise.
4292 * config.gcc: Missed commit from r273746
4293 (*-*-darwin*): Don't include CPU t-darwin here.
4294 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4295 an error message if i686-darwin configuration is attempted for
4296 Darwin >= 18.
4297
4298 2019-07-23 Iain Sandoe <iain@sandoe.co.uk>
4299
4300 PR bootstrap/87030
4301 * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
4302 (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
4303 an error message if i686-darwin configuration is attempted for
4304 Darwin >= 18.
4305 (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
4306 (powerpc-*-darwin*): Use biarch files where needed.
4307 (powerpc64-*-darwin*): Likewise.
4308 * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
4309 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4310 arch case.
4311 * config/i386/darwin32-biarch.h: New.
4312 * config/i386/darwin64.h: Rename.
4313 * config/i386/darwin64-biarch.h: To this.
4314 * config/i386/t-darwin: Rename.
4315 * config/i386/t-darwin32-biarch: To this.
4316 * config/i386/t-darwin64: Rename.
4317 * config/i386/t-darwin64-biarch: To this.
4318 * config/rs6000/darwin32-biarch.h: New.
4319 * config/rs6000/darwin64.h: Rename.
4320 * config/rs6000/darwin64-biarch.h: To this.
4321 (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
4322 arch case.
4323 * config/rs6000/t-darwin8: Rename.
4324 * config/rs6000/t-darwin32-biarch: To this.
4325 * config/rs6000/t-darwin64 Rename.
4326 * config/rs6000/t-darwin64-biarch: To this.
4327
4328 2019-07-23 Martin Sebor <msebor@redhat.com>
4329
4330 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
4331
4332 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4333
4334 * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
4335 (rh): New alias for it.
4336
4337 2019-07-23 Vladislav Ivanishin <vlad@ispras.ru>
4338
4339 * gdbhooks.py: Pass replace=True to
4340 gdb.printing.register_pretty_printer.
4341
4342 2019-07-23 Richard Biener <rguenther@suse.de>
4343
4344 PR debug/91231
4345 * lto-streamer-in.c (input_function): Drop inline-entry markers
4346 that ended up with an unknown location block.
4347
4348 2019-07-23 Richard Biener <rguenther@suse.de>
4349
4350 PR tree-optimization/83518
4351 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
4352 init from a constant even when partial defs are already recorded.
4353
4354 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4355
4356 * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
4357 * config/i386/znver1.md: Enable patterns for znver2 and add store
4358 variants which use extra AGU unit.
4359
4360 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4361
4362 * config/i386/i386-options.c (ix86_option_override_internal): Default
4363 PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
4364 * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
4365 for ZNVER2.
4366
4367 2019-07-23 Jan Hubicka <hubicka@ucw.cz>
4368
4369 * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
4370 (znver2_costs): Update 256 bit SSE costs and multiplication.
4371
4372 2019-07-23 Jan Beulich <jbeulich@suse.com>
4373
4374 * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
4375 Require only AVX512F.
4376 (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise. Add
4377 alternative expanding to vpternlog.
4378
4379 2019-07-23 Martin Liska <mliska@suse.cz>
4380
4381 * dwarf2out.c (gen_producer_string): Canonize -flto=N
4382 to -flto in dwarf producer string.
4383
4384 2019-07-23 Richard Biener <rguenther@suse.de>
4385
4386 * tree-cfg.c (label_for_bb): Remove global var.
4387 (main_block_label): Take label_for_bb as argument.
4388 (cleanup_dead_labels_eh): Likewise, adjust.
4389 (cleanup_dead_labels): Adjust.
4390
4391 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4392
4393 * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
4394 Configurations): Add documentation for __builtin_mtfsf.
4395
4396 2019-07-22 Ilia Diachkov <ilia.diachkov@optimitech.com>
4397
4398 * config/riscv/riscv-opts.h (struct riscv_align_data): New.
4399 * config/riscv/riscv.c (riscv_constant_alignment): Use
4400 riscv_align_data_type.
4401 * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
4402 (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4403 (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
4404 * config/riscv/riscv.opt (malign-data): New.
4405 * doc/invoke.texi (RISC-V Options): Document -malign-data=.
4406
4407 2019-07-02 Giuliano Belinassi <giuliano.belinassi@usp.br>
4408
4409 * cgraph.c (dump_graphviz): New function.
4410 * cgraph.h (dump_graphviz): New function.
4411 * symtab.c (dump_graphviz): New function.
4412
4413 2019-07-22 Sylvia Taylor <sylvia.taylor@arm.com>
4414
4415 * config/aarch64/aarch64-simd.md
4416 (*aarch64_simd_sra<mode>): New.
4417 * config/aarch64/iterators.md
4418 (SHIFTRT): New iterator.
4419 (sra_op): New attribute.
4420
4421 2019-07-22 Jozef Lawrynowicz <jozef.l@mittosystems.com>
4422
4423 * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
4424 callee-saved regs R4->R10 in an interrupt function that calls another
4425 function.
4426
4427 2019-07-22 Paul A. Clarke <pc@us.ibm.com>
4428
4429 * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
4430 (_mm_blendv_epi8): New.
4431
4432 2019-07-22 Richard Biener <rguenther@suse.de>
4433
4434 PR tree-optimization/91221
4435 * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
4436 restrict partial-def handling of empty constructors and
4437 memset to refs with known offset.
4438
4439 2019-07-22 Jan Beulich <jbeulich@suse.com>
4440
4441 * config/i386/sse.md (ternlogsuffix): New.
4442 (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
4443 AVX512F is in use.
4444 (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
4445
4446 2019-07-22 Martin Liska <mliska@suse.cz>
4447
4448 * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
4449 comment.
4450 * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
4451
4452 2019-07-22 Martin Liska <mliska@suse.cz>
4453
4454 * lto-section-in.c (lto_get_section_data):
4455 Use new function get_compression.
4456 * lto-streamer-out.c (produce_lto_section): Use
4457 set_compression to encode compression algorithm.
4458 * lto-streamer.h (struct lto_section): Do not
4459 use bitfields in the format.
4460
4461 2019-07-22 Martin Liska <mliska@suse.cz>
4462
4463 PR driver/91172
4464 * opts-common.c (decode_cmdline_option): Decode
4465 argument of -Werror and check it for a wrong language.
4466 * opts-global.c (complain_wrong_lang): Remove such case.
4467
4468 2019-07-22 Claudiu Zissulescu <claziss@synopsys.com>
4469
4470 * config/arc/arc.c (prepare_move_operands): Always use an
4471 intermediate register when storing a TLS symbols.
4472
4473 2019-07-22 Stafford Horne <shorne@gmail.com>
4474
4475 * config/or1k/or1k.c (or1k_expand_compare): Check for int before
4476 force_reg.
4477
4478 2019-07-22 Stafford Horne <shorne@gmail.com>
4479
4480 * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
4481 and munordered-float validations.
4482 * config/or1k/constraints.md (d): New register constraint.
4483 * config/or1k/predicates.md (fp_comparison_operator): New.
4484 * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
4485 operands.
4486 (or1k_expand_compare): Normalize unordered comparisons.
4487 * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
4488 (REG_CLASS_NAMES): Add "DOUBLE_REGS".
4489 (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
4490 * config/or1k/or1k.md (type): Add fpu.
4491 (fpu): New instruction reservation.
4492 (F, f, fr, fi, FI, FOP, fop): New.
4493 (<fop><F:mode>3): New ALU instruction definition.
4494 (float<fi><F:mode>2): New conversion instruction definition.
4495 (fix_trunc<F:mode><fi>2): New conversion instruction definition.
4496 (fpcmpcc): New code iterator.
4497 (*sf_fp_insn): New instruction definition.
4498 (cstore<F:mode>4): New expand definition.
4499 (cbranch<F:mode>4): New expand definition.
4500 * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
4501 munordered-float): New options.
4502 * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
4503 munordered-float.
4504
4505 2019-07-22 Stafford Horne <shorne@gmail.com>
4506
4507 * config.gcc (or1k*-*-*): Add mrori and mror to validation.
4508 * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
4509 documenation to be more clear.
4510 * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
4511 more clear.
4512 * config/or1k/or1k.opt (mrori): New option.
4513 (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
4514 msfimm, mshftimm): Rewrite documentation to be more clear.
4515 * config/or1k/or1k.md (insn_support): Add ror and rori.
4516 (enabled): Add conditions for ror and rori.
4517 (rotrsi3): Replace condition for shftimm with ror and rori.
4518
4519 2019-07-22 Stafford Horne <shorne@gmail.com>
4520
4521 PR target/90363
4522 * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
4523 (extend<mode>si2): Update predicate.
4524 * config/or1k/predicates.md (volatile_mem_operand): New.
4525 (reg_or_mem_operand): New.
4526
4527 2019-07-21 Iain Sandoe <iain@sandoe.co.uk>
4528
4529 * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
4530 * config/rs6000/rs6000-call.c: ... to here.
4531
4532 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4533
4534 * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
4535 memory.
4536
4537 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4538
4539 * config/rs6000/predicates.md (input_operand): Allow volatile memory.
4540
4541 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4542
4543 * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
4544
4545 2019-07-20 Segher Boessenkool <segher@kernel.crashing.org>
4546
4547 * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
4548 (any_memory_operand): New predicate.
4549 (reg_or_mem_operand): Use it.
4550
4551 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4552
4553 PR target/91204
4554 * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
4555
4556 2019-07-20 John David Anglin <danglin@gcc.gnu.org>
4557
4558 * config/pa/pa.h (hppa_profile_hook): Delete declaration.
4559 * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
4560
4561 2019-07-20 Jakub Jelinek <jakub@redhat.com>
4562
4563 * tree.def (OMP_LOOP): New tree code.
4564 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
4565 (enum omp_clause_bind_kind): New enum.
4566 (struct tree_omp_clause): Add subcode.bind_kind.
4567 * tree.h (OMP_LOOP_CHECK): Rename to ...
4568 (OMP_LOOPING_CHECK): ... this.
4569 (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
4570 OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
4571 OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
4572 (OMP_CLAUSE_BIND_KIND): Define.
4573 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
4574 bind clause entries.
4575 (walk_tree_1): Handle OMP_CLAUSE_BIND.
4576 * tree-pretty-print.c (dump_omp_clause): Likewise.
4577 (dump_generic_node): Handle OMP_LOOP.
4578 * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
4579 (in_omp_construct): New variable.
4580 (is_gimple_stmt): Handle OMP_LOOP.
4581 (gimplify_scan_omp_clauses): For lastprivate don't set
4582 check_non_private if code == OMP_LOOP. For reduction clause
4583 on OMP_LOOP combined with parallel or teams propagate as shared
4584 on the combined construct. Handle OMP_CLAUSE_BIND.
4585 (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
4586 (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
4587 for constructs from a loop construct to gimplify_scan_omp_clauses.
4588 Don't predetermine iterator linear on OMP_SIMD from loop construct.
4589 (replace_reduction_placeholders, gimplify_omp_loop): New functions.
4590 (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
4591 to match the implicit ORT_TARGET construct around whole body.
4592 Temporarily clear in_omp_construct when processing body.
4593 (gimplify_expr): Handle OMP_LOOP. For OMP_MASTER, OMP_TASKGROUP
4594 etc. temporarily set in_omp_construct when processing body.
4595 (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
4596 * omp-low.c (struct omp_context): Add loop_p.
4597 (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
4598 in that the original var might be private.
4599 (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
4600 (check_omp_nesting_restrictions): Adjust nesting restrictions for
4601 addition of loop construct.
4602 (scan_omp_1_stmt): Allow setjmp inside of loop construct.
4603
4604 * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
4605 lastprivate non-addressable iterator of a collapse(1) simd.
4606
4607 2019-07-17 Bill Seurer <seurer@linux.vnet.ibm.com>
4608
4609 * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
4610 as in rs6000.c.
4611
4612 2019-07-19 Iain Sandoe <iain@sandoe.co.uk>
4613
4614 * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
4615 refer to default conditions. Warn for the 'y' spec which is ignored
4616 by current linkers.
4617
4618 2019-07-19 Bill Seurer <seurer@linux.vnet.ibm.com>
4619
4620 * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
4621 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4622 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4623 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4624 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4625 init_cumulative_args, rs6000_promote_function_mode,
4626 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4627 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4628 rs6000_function_arg_boundary, rs6000_parm_offset,
4629 rs6000_parm_start, rs6000_arg_size,
4630 rs6000_darwin64_record_arg_advance_flush,
4631 rs6000_darwin64_record_arg_advance_recurse,
4632 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4633 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4634 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4635 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4636 rs6000_finish_function_arg, rs6000_function_arg,
4637 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4638 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4639 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4640 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4641 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4642 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4643 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4644 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4645 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4646 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4647 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4648 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4649 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4650 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4651 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4652 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4653 get_element_number, altivec_expand_vec_set_builtin,
4654 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4655 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4656 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4657 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4658 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4659 rs6000_expand_builtin, rs6000_vector_type,
4660 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4661 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4662 rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
4663 to rs6000-call.c.
4664 * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
4665 cpu_supports_info, builtin_hash_struct, builtin_hasher,
4666 builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
4667 rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
4668 rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
4669 init_cumulative_args, rs6000_promote_function_mode,
4670 rs6000_must_pass_in_stack, is_complex_IBM_long_double,
4671 abi_v4_pass_in_fpr, rs6000_function_arg_padding,
4672 rs6000_function_arg_boundary, rs6000_parm_offset,
4673 rs6000_parm_start, rs6000_arg_size,
4674 rs6000_darwin64_record_arg_advance_flush,
4675 rs6000_darwin64_record_arg_advance_recurse,
4676 rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
4677 rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
4678 rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
4679 rs6000_mixed_function_arg, rs6000_psave_function_arg,
4680 rs6000_finish_function_arg, rs6000_function_arg,
4681 rs6000_arg_partial_bytes, rs6000_pass_by_reference,
4682 rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
4683 rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
4684 setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
4685 rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
4686 bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
4687 bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
4688 rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
4689 rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
4690 rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
4691 altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
4692 altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
4693 altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
4694 altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
4695 htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
4696 altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
4697 get_element_number, altivec_expand_vec_set_builtin,
4698 altivec_expand_vec_ext_builtin, altivec_expand_builtin,
4699 rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
4700 rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
4701 fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
4702 fold_mergeeo_helper, rs6000_gimple_fold_builtin,
4703 rs6000_expand_builtin, rs6000_vector_type,
4704 rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
4705 htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
4706 rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
4707 to here from rs6000.c.
4708 * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
4709 rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
4710 rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
4711 rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
4712 rs6000_gimplify_va_arg, rs6000_promote_function_mode,
4713 rs6000_return_in_memory, rs6000_return_in_msb,
4714 rs6000_pass_by_reference, setup_incoming_varargs,
4715 rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
4716 rs6000_arg_partial_bytes, rs6000_function_arg_advance,
4717 rs6000_function_arg_padding, rs6000_function_arg,
4718 rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
4719 rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
4720 rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
4721 rs6000_passes_long_double, rs6000_passes_vector,
4722 rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
4723 altivec_builtin_mask_for_load) Add declarations.
4724 * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
4725 * config/config.gcc: Add new source file rs6000-call.c to garbage
4726 collector and extra_objs.
4727
4728 2019-07-19 Jeff Law <law@redhat.com>
4729
4730 PR tree-optimization/86061
4731 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
4732 strncpy. Drop some trivial dead code.
4733 (maybe_trim_memstar_call): Handle strncpy.
4734
4735 2019-07-19 Richard Biener <rguenther@suse.de>
4736
4737 PR tree-optimization/91211
4738 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
4739 memset encoding size.
4740
4741 2019-07-19 Uroš Bizjak <ubizjak@gmail.com>
4742
4743 PR target/91204
4744 * config/i386/mmx.md (one_cmpl<mode>2): New expander.
4745
4746 2019-07-19 Jan Hubicka <hubicka@ucw.cz>
4747
4748 PR ipa/91194
4749 * ipa-inline.c (recursive_inlining): Fix limits check.
4750
4751 2019-07-19 Richard Biener <rguenther@suse.de>
4752
4753 PR tree-optimization/91200
4754 * tree-ssa-phiopt.c (cond_store_replacement): Check we have
4755 no PHI nodes in middle-bb.
4756
4757 2019-07-19 Richard Sandiford <richard.sandiford@arm.com>
4758
4759 * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
4760 to +sve-bitperm.
4761 * config/aarch64/aarch64-option-extensions.def: Likewise.
4762
4763 2019-07-19 Jakub Jelinek <jakub@redhat.com>
4764
4765 PR middle-end/91190
4766 * function.c (insert_temp_slot_address): Store into the hash table
4767 a copy of address to avoid RTL sharing issues.
4768
4769 2019-07-19 Richard Biener <rguenther@suse.de>
4770
4771 PR tree-optimization/91207
4772 Revert
4773 2019-07-17 Richard Biener <rguenther@suse.de>
4774
4775 PR tree-optimization/91178
4776 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4777 loads with a gap larger than the vector size always use
4778 VMAT_STRIDED_SLP.
4779 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4780 avoid loading vectors that are only contained in the gap
4781 and thus are not needed.
4782
4783 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4784
4785 * config/i386/i386.md (*addqi_2_slp): Remove.
4786 (*<code>qi_2_slp): Ditto.
4787
4788 2019-07-18 Michael Meissner <meissner@linux.ibm.com>
4789
4790 * config/rs6000/predicates.md (prefixed_mem_operand): Call
4791 rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
4792 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
4793 Rename function from rs6000_prefixed_address.
4794 * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4795 TARGET_HAS_TOC.
4796 (TARGET_TOC): Likewise.
4797 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4798 rs6000.h.
4799 * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4800 TARGET_HAS_TOC.
4801 (TARGET_TOC): Likewise.
4802 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4803 rs6000.h.
4804 * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4805 TARGET_HAS_TOC.
4806 (TARGET_TOC): Likewise.
4807 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
4808 check to require -mcmodel=medium for pc-relative addressing.
4809 (create_TOC_reference): Add assertion for TARGET_TOC.
4810 (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
4811 TARGET_NO_TOC.
4812 (rs6000_emit_move): Likewise.
4813 (TOC_alias_set): Rename TOC alias set static variable from 'set'
4814 to 'TOC_alias_set'.
4815 (get_TOC_alias_set): Likewise.
4816 (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
4817 TARGET_NO_TOC.
4818 (rs6000_can_eliminate): Likewise.
4819 (rs6000_prefixed_address_mode_p): Rename function from
4820 rs6000_prefixed_address.
4821 * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
4822 TARGET_HAS_TOC and not pc-relative.
4823 (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
4824 * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
4825 TARGET_HAS_TOC.
4826 (TARGET_TOC): Likewise.
4827 (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
4828 rs6000.h.
4829
4830 2019-07-18 Uroš Bizjak <ubizjak@gmail.com>
4831
4832 PR target/91188
4833 * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
4834 for operand 0. Do not use (match_dup) to match operand 1 with
4835 operand 0. Add check in insn constraint that either input operand
4836 matches operand 0. Use SWI12 mode iterator to also handle
4837 HImode operands.
4838 (*and<mode>_1_slp): Ditto.
4839 (*<code>qi_1_slp): Ditto.
4840 (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
4841 Do not use (match_dup) to match operand 1 with operand 0. Add
4842 check in insn constraint that operand 1 matches operand 0.
4843 Use SWI12 mode iterator to also handle HImode operands.
4844 (*ashl<mode>3_1_slp): Ditto.
4845 (*<shift_insn><mode>3_1_slp): Ditto.
4846 (*<rotate_insn><mode>3_1_slp): Ditto.
4847
4848 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4849
4850 * config/arm/arm-builtins.c
4851 (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
4852 (arm_expand_unop_builtin): Likewise.
4853 * config/arm/crypto.md
4854 (crypto_sha1h): Convert from define_insn to define_expand.
4855 (crypto_<crypto_pattern>): Likewise.
4856 (crypto_sha1h_lb): New define_insn.
4857 (crypto_<crypto_pattern>_lb): Likewise.
4858
4859 2019-07-18 Sylvia Taylor <sylvia.taylor@arm.com>
4860
4861 PR target/90317
4862 * config/arm/arm_neon.h (vsha1h_u32): Refactor.
4863 (vsha1cq_u32): Likewise.
4864 (vsha1pq_u32): Likewise.
4865 (vsha1mq_u32): Likewise.
4866 * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
4867 vec select.
4868 (crypto_sha1c): Correct vec select.
4869 (crypto_sha1m): Likewise.
4870 (crypto_sha1p): Likewise.
4871
4872 2019-07-18 Richard Earnshaw <rearnsha@arm.com>
4873
4874 * config/arm/predicates.md (arm_borrow_operation): New predicate.
4875 * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
4876 (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
4877 (subdi_zesidi_zesidi): Likewise.
4878 (negdi2_compare, negdi2_insn): Likewise.
4879 (negdi_extensidi): Likewise.
4880 (negdi_zero_extendsidi): Likewise.
4881 (arm_cmpdi_insn): Likewise.
4882 (subsi3_carryin): Use arm_borrow_operation.
4883 (subsi3_carryin_const): Likewise.
4884 (subsi3_carryin_const0): Likewise.
4885 (subsi3_carryin_compare): Likewise.
4886 (subsi3_carryin_compare_const): Likewise.
4887 (subsi3_carryin_compare_const0): Likewise.
4888 (subsi3_carryin_shift): Likewise.
4889 (rsbsi3_carryin_shift): Likewise.
4890 (negsi2_carryin_compare): Likewise.
4891
4892 2019-07-18 Bin Cheng <bin.cheng@linux.alibaba.com>
4893
4894 PR tree-optimization/91137
4895 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
4896 (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
4897 Init, use and fini the above new field.
4898 (determine_base_object_1): New function.
4899 (determine_base_object): Reimplement using walk_tree.
4900
4901 2019-07-18 Richard Sandiford <richard.sandiford@arm.com>
4902
4903 * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
4904 * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
4905 CLEANUP_FORCE_FAST_DCE is set.
4906 * ifcvt.c (rest_of_handle_if_conversion): Pass
4907 CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
4908 if-conversion succeeded.
4909
4910 2019-07-18 Richard Biener <rguenther@suse.de>
4911
4912 * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
4913 branches to make code less indented.
4914
4915 2019-07-17 Alexandre Oliva <oliva@adacore.com>
4916
4917 PR middle-end/81824
4918 * attribs.c (decls_mismatched_attributes): Simplify the logic
4919 that avoids duplicates and false positives.
4920
4921 2019-07-17 John David Anglin <danglin@gcc.gnu.org>
4922
4923 * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
4924 data into data section when generating PIC code.
4925 (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
4926 (pa_reloc_rw_mask): Return 3 when generating PIC code and when
4927 generating code for SOM targets earlier than HP-UX 11. Otherwise,
4928 return 2 for SOM and 0 for other targets.
4929
4930 2019-07-17 Jeff Law <law@redhat.com>
4931
4932 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
4933 (dse_walker::dse_optimize_stmt): Likewise. Add missing return to
4934 avoid unexpected switch statement fallthru.
4935
4936 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4937
4938 * config/i386/i386.md (*add<dwi>3_doubleword):
4939 Remove redundant constraints.
4940 (*add<mode>_1): Ditto.
4941 (*addhi_1): Ditto.
4942 (*addqi_1): Ditto.
4943 (*addqi_1_slp): Ditto.
4944 (*add<mode>_2): Ditto.
4945 (*addv<mode>4): Ditto.
4946 (*sub<dwi>3_doubleword): Ditto.
4947 (*sub<mode>_1): Ditto.
4948 (*subqi_1_slp): Ditto.
4949 (*sub<mode>_2): Ditto.
4950 (*subv<mode>4): Ditto.
4951 (*sub<mode>_3): Ditto.
4952 (@add<mode>3_carry): Ditto.
4953 (@sub<mode>3_carry): Ditto.
4954 (*add<mode>3_cc_overflow_1): Ditto.
4955 (*add<mode>3_zext_cc_overflow_2): Ditto.
4956 (*anddi_1): Ditto.
4957 (*and<mode>_1): Ditto.
4958 (*andqi_1): Ditto.
4959 (*andqi_1_slp): Ditto.
4960 (*anddi_2): Ditto.
4961 (*andqi_2_maybe_si): Ditto.
4962 (*and<mode>_2): Ditto.
4963 (*andqi_2_slp): Ditto.
4964 (*<code><mode>_1): Ditto.
4965 (*<code>qi_1): Ditto.
4966 (*<code>qi_1_slp): Ditto.
4967 (*<code><mode>_2): Ditto.
4968 (*<code>qi_2_slp): Ditto.
4969
4970 2019-07-17 Jan Hubicka <hubicka@ucw.cz>
4971
4972 * alias.c (record_component_aliases): Do not simplify pointed-to
4973 types of ODR types.
4974
4975 2019-07-17 Uroš Bizjak <ubizjak@gmail.com>
4976
4977 * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
4978 partial reg stall on alternative 2.
4979
4980 2019-07-17 Richard Biener <rguenther@suse.de>
4981
4982 PR tree-optimization/91178
4983 * tree-ssa.c (release_defs_bitset): Iterate from higher to
4984 lower SSA names to avoid quadratic behavior in the common case.
4985 * tree-data-ref.c (split_constant_offset): Add limit argument
4986 and pass it down. Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
4987 (split_constant_offset_1): Add limit argument and use it to
4988 limit SSA def walking. Optimize the common plus/minus case.
4989
4990 2019-07-17 Richard Biener <rguenther@suse.de>
4991
4992 PR tree-optimization/91178
4993 * tree-vect-stmts.c (get_group_load_store_type): For SLP
4994 loads with a gap larger than the vector size always use
4995 VMAT_STRIDED_SLP.
4996 (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
4997 avoid loading vectors that are only contained in the gap
4998 and thus are not needed.
4999
5000 2019-07-17 Richard Biener <rguenther@suse.de>
5001
5002 PR tree-optimization/91180
5003 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
5004 computation for memset partial defs.
5005
5006 2019-07-17 Jakub Jelinek <jakub@redhat.com>
5007
5008 * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
5009 GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
5010 divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
5011 GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
5012 GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
5013 * omp-grid.c (grid_process_grid_body,
5014 grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
5015 of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
5016 == GF_OMP_FOR_KIND_SIMD.
5017 * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
5018 check_omp_nesting_restrictions, scan_omp_1_stmt,
5019 lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
5020 lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
5021 omp_find_scan): Likewise.
5022 * omp-expand.c (expand_omp_for): Likewise.
5023 * omp-general.c (omp_extract_for_data): Likewise.
5024
5025 PR tree-optimization/91157
5026 * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
5027 a vector boolean with scalar mode.
5028 (expand_vector_condition): Handle first operand being a vector boolean
5029 with scalar mode.
5030 (expand_vector_operations_1): For comparisons, don't bail out early
5031 if the return type is vector boolean with scalar mode, but comparison
5032 operand type is not.
5033
5034 2019-07-17 Richard Biener <rguenther@suse.de>
5035
5036 PR tree-optimization/91181
5037 * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
5038 IFN_LOADs as calls.
5039
5040 2019-07-16 Uroš Bizjak <ubizjak@gmail.com>
5041
5042 * config/i386/i386.md (*testdi_1): Match CCZmode for
5043 constants that might have the SImode sign bit set.
5044 (*testqi_1_maybe_si): Remove "!" constraint modifier.
5045 Use correct constraints for pentium pairing.
5046 (*test<mode>_1): Ditto.
5047
5048 2019-07-16 Jeff Law <law@redhat.com>
5049
5050 PR rtl-optimization/91173
5051 * tree-ssa-address.c (addr_for_mem_ref): If the base is an
5052 SSA_NAME with a constant value, fold its value into the offset
5053 and clear the base before calling gen_addr_rtx.
5054
5055 2019-07-16 Jakub Jelinek <jakub@redhat.com>
5056
5057 PR rtl-optimization/91164
5058 * dse.c (rest_of_handle_dse): If dead edges have been purged,
5059 invalidate dominance info.
5060
5061 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5062
5063 * read-md.h (md_reader::record_potential_iterator_use): Add a
5064 file_location parameter.
5065 * read-rtl.c (attribute_use::loc): New field.
5066 (map_attr_string): Take a file_location parameter. Report cases
5067 in which attributes map to multiple distinct values.
5068 (apply_attribute_uses): Update call accordingly.
5069 (md_reader::handle_overloaded_name): Likewise.
5070 (md_reader::apply_iterator_to_string): Likewise. Skip empty
5071 nonnull strings.
5072 (record_attribute_use): Take a file_location parameter.
5073 Initialize attribute_use::loc.
5074 (md_reader::record_potential_iterator_use): Take a file_location
5075 parameter. Update call to record_attribute_use.
5076 (rtx_reader::rtx_alloc_for_name): Update call accordingly.
5077 (rtx_reader::read_rtx_code): Likewise.
5078 (rtx_reader::read_rtx_operand): Likewise. Record a location
5079 for implicitly-expanded empty strings.
5080
5081 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5082
5083 * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
5084 Use file_location instead of separate fields.
5085 (md_reader::set_md_ptr_loc): Take a file_location instead of a
5086 separate filename and line number.
5087 * read-md.c (ptr_loc): As above.
5088 (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
5089 (md_reader::fprint_md_ptr_loc): Likewise.
5090 (md_reader::set_md_ptr_loc): Likewise. Take a file_location
5091 instead of a separate filename and line number.
5092 (md_reader::read_string): Update call accordingly.
5093
5094 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5095
5096 * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
5097 use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
5098 leaving the choice between SFDF and P implicit.
5099 (*mov<mode>_update2): Likewise.
5100 (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
5101 rather than leaving the choice betweem IBM128 and GPR implicit.
5102 (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
5103 <IEEE128:MODE> rather than leaving the choice between IEEE128 and
5104 QHSI implicit.
5105 (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
5106 rather than leaving the choice between ALTIVEC_DFORM and P implicit.
5107 * config/rs6000/vsx.md
5108 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
5109 (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
5110 use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
5111 and VSX_EXTRACT_I implicit.
5112
5113 2019-07-16 Richard Sandiford <richard.sandiford@arm.com>
5114
5115 * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
5116 Explicitly use <MOVEP1:MODE> for the mode attribute.
5117
5118 2019-07-16 Jan Hubicka <hubicka@ucw.cz>
5119
5120 PR bootstrap/91176
5121 * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
5122
5123 2019-07-15 Segher Boessenkool <segher@kernel.crashing.org>
5124
5125 PR target/91050
5126 * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
5127 .machine directive.
5128
5129 2019-07-15 Uroš Bizjak <ubizjak@gmail.com>
5130
5131 * config/i386/i386.md (@test<mode>_ccno_1):
5132 Rename from test<mode>_ccno_1.
5133 (*testdi_1): Remove redundant alternatives. Remove modrm attribute.
5134 (*testqi_1_maybe_si): Remove modrm attribute.
5135 (*test<mode>_1): Ditto.
5136 * config/i386/i386-expand.c (ix86_split_idivmod): Use
5137 gen_test_ccno_1 and gen_extend_insn.
5138
5139 2019-07-15 Jan Hubicka <hubicka@ucw.cz>
5140
5141 * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
5142 to 0.
5143
5144 2019-07-15 Richard Biener <rguenther@suse.de>
5145
5146 PR middle-end/91162
5147 * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
5148 node make sure to replace all uses with something valid.
5149
5150 2019-07-15 Kewen Lin <linkw@gcc.gnu.org>
5151
5152 PR tree-optimization/88497
5153 * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
5154 GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
5155 function undistribute_bitref_for_vector.
5156 (undistribute_bitref_for_vector): New function.
5157 (cleanup_vinfo_map): Likewise.
5158 (sort_by_mach_mode): Likewise.
5159
5160 2019-07-14 Uroš Bizjak <ubizjak@gmail.com>
5161
5162 * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
5163 (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
5164 and testdi_ccno_1 using SWI48 mode attribute.
5165 (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
5166 x86_64_szext_general_operand.
5167 (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
5168 (*test<mode>_1): Use nonmemory_szext_operand mode attribute
5169 instead of genera_operand mode attribute.
5170
5171 2019-07-14 Vladislav Ivanishin <vlad@ispras.ru>
5172
5173 * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
5174 fopen and fclose to their respective types.
5175 (DotFn.invoke): Ditto.
5176
5177 2019-07-14 Jan Hubicka <hubicka@ucw.cz>
5178
5179 * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
5180 (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
5181 (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
5182 (array_index_predicate): Remove.
5183 (analyze_function_body): Account cost for variable ofsetted array
5184 indexing.
5185 (estimate_node_size_and_time): Do not compute array index hint.
5186 (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
5187 (inline_read_section): Do not read array index hint.
5188 (ipa_fn_summary_write): Do not write array index hint.
5189 * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
5190 * ipa-cp.c (hint_time_bonus): Remove.
5191 * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
5192 (ipa_fnsummary): Remove array_index.
5193 * ipa-inline.c (want_inline_small_function_p): Do not use
5194 array_index.
5195 (edge_badness): Likewise.
5196 * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
5197
5198 2019-07-14 Segher Boessenkool <segher@kernel.crashing.org>
5199
5200 PR target/91148
5201 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
5202 superfluous "builtin function" phrasing.
5203
5204 2019-07-13 Jan Hubicka <hubicka@ucw.cz>
5205
5206 * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
5207 Break out from ...
5208 (aliasing_component_refs_walk): Break out from ...
5209 (aliasing_component_refs_p): ... here.
5210
5211 2019-07-13 Segher Boessenkool <segher@kernel.crashing.org>
5212
5213 PR target/91148
5214 * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
5215 "builtin function" phrasing.
5216
5217 2019-07-13 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5218
5219 PR target/90723
5220 * recog.h (temporary_volatile_ok): New class.
5221 * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
5222 volatile_ok temporarily to true using temporary_volatile_ok.
5223 * expr.c (emit_block_move_via_cpymem): Likewise.
5224 * optabs.c (maybe_legitimize_operand): Likewise.
5225
5226 2019-07-13 Jakub Jelinek <jakub@redhat.com>
5227
5228 * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
5229 (omp_notice_threadprivate_variable): Diagnose threadprivate variable
5230 uses inside of order(concurrent) constructs.
5231 (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
5232 OMP_CLAUSE_ORDER is seen.
5233 * omp-low.c (struct omp_context): Add order_concurrent member.
5234 (scan_sharing_clauses): Set ctx->order_concurrent if
5235 OMP_CLAUSE_ORDER is seen.
5236 (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
5237 of simd order(concurrent). Diagnose constructs not allowed inside of
5238 for order(concurrent).
5239 (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
5240 complaining about static double setjmp (double); or class static
5241 methods or non-global namespace setjmps.
5242 (omp_runtime_api_call): New function.
5243 (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
5244 order(concurrent) loops.
5245
5246 2019-07-12 Martin Sebor <msebor@redhat.com>
5247
5248 * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
5249 * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
5250 * tree-vrp.c (vrp_prop::check_mem_ref): Use
5251 PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
5252
5253 2019-07-12 Jan Hubicka <jh@suse.cz>
5254
5255 * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
5256 (indirect_refs_may_alias_p): ... here.
5257 (nonoverlapping_component_refs_since_match_p): Support also non-trivial
5258 mem refs in the access paths.
5259
5260 2019-07-12 Jiangning Liu <jiangning.liu@amperecomputing.com>
5261
5262 PR tree-optimization/89430
5263 * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
5264 store elimination for local variable without address escape.
5265
5266 2019-07-12 Jeff Law <law@redhat.com>
5267
5268 * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
5269 for the ".far" section.
5270
5271 2019-07-12 Richard Biener <rguenther@suse.de>
5272
5273 PR tree-optimization/91145
5274 * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
5275 chain check.
5276
5277 2019-07-12 Alexandre Oliva <oliva@adacore.com>
5278
5279 * tree-eh.c (honor_protect_cleanup_actions): Use outer_
5280 rather than this_state as the lowering context for the ELSE
5281 seq in a GIMPLE_EH_ELSE.
5282
5283 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5284
5285 * vector-builder.h (vector_builder::elt): Allow already-supplied
5286 elements to be read back before building is complete.
5287
5288 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5289
5290 PR rtl-optimization/91136
5291 * df-core.c (ACCESSING REFS): Fix typos in comment.
5292 * resource.c (mark_target_live_reg): Add artificial defs that occur at
5293 the beginning of the block to the initial set of live registers.
5294
5295 2019-07-12 Richard Biener <rguenther@suse.de>
5296
5297 * fold-const.h (get_array_ctor_element_at_index): Adjust.
5298 * fold-const.c (get_array_ctor_element_at_index): Add
5299 ctor_idx output parameter informing the caller where in
5300 the constructor the element was (not) found. Add early exit
5301 for when the ctor is sorted.
5302 * gimple-fold.c (fold_array_ctor_reference): Support constant
5303 folding across multiple array elements.
5304
5305 2019-07-12 Eric Botcazou <ebotcazou@adacore.com>
5306
5307 * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
5308 doesn't have location, set the current location to the function's end.
5309
5310 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5311
5312 * config/aarch64/aarch64.md (*compare_condjump<mode>)
5313 (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
5314 (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
5315 (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
5316 * config/aarch64/aarch64-simd.md
5317 (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
5318 (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
5319 * config/aarch64/aarch64-sve.md
5320 (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
5321 (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
5322
5323 2019-07-12 Richard Sandiford <richard.sandiford@arm.com>
5324
5325 * doc/md.texi: Document that @ patterns can have different
5326 numbers of operands.
5327 * genemit.c (handle_overloaded_gen): Handle this case.
5328 * genopinit.c (handle_overloaded_gen): Likewise.
5329 * gensupport.c (replace_operands_with_dups): Iterate over
5330 the new rtx's format rather than the old one's.
5331
5332 2019-07-12 Jakub Jelinek <jakub@redhat.com>
5333
5334 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
5335 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
5336 order clause entries.
5337 (walk_tree_1): Handle OMP_CLAUSE_ORDER.
5338 * tree-pretty-print.c (dump_omp_clause): Likewise.
5339 * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
5340 Likewise.
5341 * omp-low.c (scan_sharing_clauses): Likewise.
5342 * tree-nested.c (convert_nonlocal_omp_clauses,
5343 convert_local_omp_clauses): Likewise.
5344
5345 2019-07-12 Kewen Lin <linkw@gcc.gnu.org>
5346
5347 * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
5348 fallthrough target of current basic block isn't the placed
5349 right next.
5350
5351 2019-07-11 Sunil K Pandey <sunil.k.pandey@intel.com>
5352
5353 PR target/90980
5354 * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
5355 (_mm512_storeu_epi64): Likewise.
5356 (_mm512_loadu_epi32): Likewise.
5357 (_mm512_storeu_epi32): Likewise.
5358 * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
5359 (_mm_storeu_epi64): Likewise.
5360 (_mm256_storeu_epi32): Likewise.
5361 (_mm_storeu_epi32): Likewise.
5362
5363 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5364
5365 * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
5366
5367 2019-07-11 Segher Boessenkool <segher@kernel.crashing.org>
5368
5369 * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
5370 Handle Modula-2.
5371
5372 2019-07-11 Jakub Jelinek <jakub@redhat.com>
5373
5374 PR target/91124
5375 * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
5376 (sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5377 (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
5378 (ufix_notruncv2dfv2si2<mask_name>): Change into ...
5379 (ufix_notruncv2dfv2si2): ... this. Remove mask substitution macros.
5380 (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
5381 define_insns.
5382 (ufix_truncv2dfv2si2<mask_name>): Change into ...
5383 (ufix_truncv2dfv2si2): ... this. Remove mask substitution macros.
5384 (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
5385 define_insns.
5386 (sse2_cvttpd2dq<mask_name>): Change into ...
5387 (sse2_cvttpd2dq): ... this. Remove mask substitution macros.
5388 (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
5389 (*sse2_cvtpd2dq<mask_name>): Change into ...
5390 (*sse2_cvtpd2dq): ... this. Remove mask substitution macros.
5391 Add "C" constraint to const0_operand.
5392 (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
5393 (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
5394 changes.
5395
5396 PR target/91124
5397 * config/i386/i386-builtin-types.def
5398 (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
5399 V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
5400 V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
5401 V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
5402 V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
5403 * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
5404 __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
5405 __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
5406 __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
5407 __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
5408 __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
5409 __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
5410 __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
5411 __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
5412 __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
5413 __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
5414 __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
5415 __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
5416 __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
5417 __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
5418 __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
5419 __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
5420 __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
5421 __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
5422 __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
5423 __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
5424 __builtin_ia32_vpdpbusd_v4si_maskz,
5425 __builtin_ia32_vpdpbusds_v16si_mask,
5426 __builtin_ia32_vpdpbusds_v16si_maskz,
5427 __builtin_ia32_vpdpbusds_v8si_mask,
5428 __builtin_ia32_vpdpbusds_v8si_maskz,
5429 __builtin_ia32_vpdpbusds_v4si_mask,
5430 __builtin_ia32_vpdpbusds_v4si_maskz,
5431 __builtin_ia32_vpdpwssd_v16si_mask,
5432 __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
5433 __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
5434 __builtin_ia32_vpdpwssd_v4si_maskz,
5435 __builtin_ia32_vpdpwssds_v16si_mask,
5436 __builtin_ia32_vpdpwssds_v16si_maskz,
5437 __builtin_ia32_vpdpwssds_v8si_mask,
5438 __builtin_ia32_vpdpwssds_v8si_maskz,
5439 __builtin_ia32_vpdpwssds_v4si_mask,
5440 __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
5441 suffixed types rather than *_INT.
5442 * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
5443 V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
5444 V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
5445 V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
5446 V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
5447 and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
5448
5449 2019-07-11 Aldy Hernandez <aldyh@redhat.com>
5450
5451 * tree-vrp.c (intersect_ranges): If we know the intersection is
5452 empty, there is no need to conservatively add anything else to
5453 the set.
5454
5455 2019-07-11 Richard Biener <rguenther@suse.de>
5456
5457 PR middle-end/91131
5458 * gimplify.c (gimplify_compound_literal_expr): Force a temporary
5459 when the object is volatile and we have not cleared it even though
5460 there are no nonzero elements.
5461
5462 2019-07-10 Michael Meissner <meissner@linux.ibm.com>
5463
5464 * config/rs6000/predicates.md (cint34_operand): Update
5465 SIGNED_34BIT_OFFSET_P call.
5466 (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
5467 (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
5468 * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
5469 SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
5470 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
5471 argument.
5472 (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
5473 (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
5474 SIGNED_16BIT_OFFSET_P with an EXTRA argument.
5475 (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
5476 SIGNED_34BIT_OFFSET_P with an EXTRA argument.
5477
5478 2019-07-10 Iain Sandoe <iain@sandoe.co.uk>
5479
5480 * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
5481 * config/rs6000/darwin7.h (LIB_SPEC): Remove.
5482 * config/rs6000/darwin8.h (LIB_SPEC): Remove.
5483 (DEF_MIN_OSX_VERSION): New.
5484
5485 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5486
5487 * fold-const.c (fold_relational_const): Fix folding of
5488 vector-to-scalar NE_EXPRs.
5489 (test_vector_folding): Add more tests.
5490
5491 2019-07-10 Richard Sandiford <richard.sandiford@arm.com>
5492
5493 PR target/91060
5494 * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
5495 * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
5496 (vec_setv2di_internal): Reexpress as...
5497 (@vec_set<V2DI_ONLY:mode>_internal): ...this.
5498 * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
5499 rather than gen_neon_vset_lane<mode>.
5500
5501 2019-07-10 Vladimir Makarov <vmakarov@redhat.com>
5502
5503 PR target/91102
5504 * lra-constraints.c (process_alt_operands): Don't match user
5505 defined regs only if they are early clobbers.
5506
5507 2019-07-10 Marc Glisse <marc.glisse@inria.fr>
5508
5509 * wide-int.h (wi::lshift): Reject negative values for the fast path.
5510
5511 2019-07-10 Richard Biener <rguenther@suse.de>
5512
5513 PR tree-optimization/91126
5514 * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
5515 native encoding offset for BYTES_BIG_ENDIAN.
5516 (vn_reference_lookup_3): Likewise.
5517
5518 2019-07-10 Richard Biener <rguenther@suse.de>
5519
5520 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
5521 LHS whenever possible.
5522
5523 2019-07-09 Jan Hubicka <hubicka@ucw.cz>
5524
5525 * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
5526 from ...; work also on duplicated types.
5527 (nonoverlapping_component_refs_since_match): ... here
5528 (ncr_type_uid): Break out from ...
5529 (ncr_compar): ... here; look for TYPE_UID of canonical type if
5530 available.
5531 (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
5532 the types and nonoverlapping_component_refs_p_1 to disambiguate.
5533
5534 2019-07-09 Martin Sebor <msebor@redhat.com>
5535
5536 PR tree-optimization/90989
5537 * tree-ssa-strlen.c (handle_char_store): Constrain a single character
5538 optimization to just single character stores.
5539
5540 2019-07-09 Joern Rennecke <joern.rennecke@riscy-ip.com>
5541
5542 * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
5543 Swap operands only once.
5544
5545 2019-07-09 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
5546
5547 * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
5548 for both call instructions.
5549
5550 2019-07-09 John Darrington <john@darrington.wattle.id.au>
5551
5552 * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
5553 rather than GET_MODE_BITSIZE to better handle partial integer modes.
5554
5555 2019-07-09 Michael Meissner <meissner@linux.ibm.com>
5556
5557 * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
5558 * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
5559 function from rs6000-logue.c back to rs6000.c.
5560 * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
5561
5562 2019-07-09 Martin Sebor <msebor@redhat.com>
5563
5564 PR c++/61339
5565 * auto-profile.c: Change class-key of PODs to struct and others
5566 to class.
5567 * basic-block.h: Same.
5568 * bitmap.c (bitmap_alloc): Same.
5569 * bitmap.h: Same.
5570 * builtins.c (expand_builtin_prefetch): Same.
5571 (expand_builtin_interclass_mathfn): Same.
5572 (expand_builtin_strlen): Same.
5573 (expand_builtin_mempcpy_args): Same.
5574 (expand_cmpstr): Same.
5575 (expand_builtin___clear_cache): Same.
5576 (expand_ifn_atomic_bit_test_and): Same.
5577 (expand_builtin_thread_pointer): Same.
5578 (expand_builtin_set_thread_pointer): Same.
5579 * caller-save.c (setup_save_areas): Same.
5580 (replace_reg_with_saved_mem): Same.
5581 (insert_restore): Same.
5582 (insert_save): Same.
5583 (add_used_regs): Same.
5584 * cfg.c (get_bb_copy): Same.
5585 (set_loop_copy): Same.
5586 * cfg.h: Same.
5587 * cfganal.h: Same.
5588 * cfgexpand.c (alloc_stack_frame_space): Same.
5589 (add_stack_var): Same.
5590 (add_stack_var_conflict): Same.
5591 (add_scope_conflicts_1): Same.
5592 (update_alias_info_with_stack_vars): Same.
5593 (expand_used_vars): Same.
5594 * cfghooks.c (redirect_edge_and_branch_force): Same.
5595 (delete_basic_block): Same.
5596 (split_edge): Same.
5597 (make_forwarder_block): Same.
5598 (force_nonfallthru): Same.
5599 (duplicate_block): Same.
5600 (lv_flush_pending_stmts): Same.
5601 * cfghooks.h: Same.
5602 * cfgloop.c (flow_loops_cfg_dump): Same.
5603 (flow_loop_nested_p): Same.
5604 (superloop_at_depth): Same.
5605 (get_loop_latch_edges): Same.
5606 (flow_loop_dump): Same.
5607 (flow_loops_dump): Same.
5608 (flow_loops_free): Same.
5609 (flow_loop_nodes_find): Same.
5610 (establish_preds): Same.
5611 (flow_loop_tree_node_add): Same.
5612 (flow_loop_tree_node_remove): Same.
5613 (flow_loops_find): Same.
5614 (find_subloop_latch_edge_by_profile): Same.
5615 (find_subloop_latch_edge_by_ivs): Same.
5616 (mfb_redirect_edges_in_set): Same.
5617 (form_subloop): Same.
5618 (merge_latch_edges): Same.
5619 (disambiguate_multiple_latches): Same.
5620 (disambiguate_loops_with_multiple_latches): Same.
5621 (flow_bb_inside_loop_p): Same.
5622 (glb_enum_p): Same.
5623 (get_loop_body_with_size): Same.
5624 (get_loop_body): Same.
5625 (fill_sons_in_loop): Same.
5626 (get_loop_body_in_dom_order): Same.
5627 (get_loop_body_in_custom_order): Same.
5628 (release_recorded_exits): Same.
5629 (get_loop_exit_edges): Same.
5630 (num_loop_branches): Same.
5631 (remove_bb_from_loops): Same.
5632 (find_common_loop): Same.
5633 (delete_loop): Same.
5634 (cancel_loop): Same.
5635 (verify_loop_structure): Same.
5636 (loop_preheader_edge): Same.
5637 (loop_exit_edge_p): Same.
5638 (single_exit): Same.
5639 (loop_exits_to_bb_p): Same.
5640 (loop_exits_from_bb_p): Same.
5641 (get_loop_location): Same.
5642 (record_niter_bound): Same.
5643 (get_estimated_loop_iterations_int): Same.
5644 (max_stmt_executions_int): Same.
5645 (likely_max_stmt_executions_int): Same.
5646 (get_estimated_loop_iterations): Same.
5647 (get_max_loop_iterations): Same.
5648 (get_max_loop_iterations_int): Same.
5649 (get_likely_max_loop_iterations): Same.
5650 * cfgloop.h (simple_loop_desc): Same.
5651 (get_loop): Same.
5652 (loop_depth): Same.
5653 (loop_outer): Same.
5654 (loop_iterator::next): Same.
5655 (loop_outermost): Same.
5656 * cfgloopanal.c (mark_irreducible_loops): Same.
5657 (num_loop_insns): Same.
5658 (average_num_loop_insns): Same.
5659 (expected_loop_iterations_unbounded): Same.
5660 (expected_loop_iterations): Same.
5661 (mark_loop_exit_edges): Same.
5662 (single_likely_exit): Same.
5663 * cfgloopmanip.c (fix_bb_placement): Same.
5664 (fix_bb_placements): Same.
5665 (remove_path): Same.
5666 (place_new_loop): Same.
5667 (add_loop): Same.
5668 (scale_loop_frequencies): Same.
5669 (scale_loop_profile): Same.
5670 (create_empty_if_region_on_edge): Same.
5671 (create_empty_loop_on_edge): Same.
5672 (loopify): Same.
5673 (unloop): Same.
5674 (fix_loop_placements): Same.
5675 (copy_loop_info): Same.
5676 (duplicate_loop): Same.
5677 (duplicate_subloops): Same.
5678 (loop_redirect_edge): Same.
5679 (can_duplicate_loop_p): Same.
5680 (duplicate_loop_to_header_edge): Same.
5681 (mfb_keep_just): Same.
5682 (has_preds_from_loop): Same.
5683 (create_preheader): Same.
5684 (create_preheaders): Same.
5685 (lv_adjust_loop_entry_edge): Same.
5686 (loop_version): Same.
5687 * cfgloopmanip.h: Same.
5688 * cgraph.h: Same.
5689 * cgraphbuild.c: Same.
5690 * combine.c (make_extraction): Same.
5691 * config/i386/i386-features.c: Same.
5692 * config/i386/i386-features.h: Same.
5693 * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
5694 (ix86_emit_outlined_ms2sysv_restore): Same.
5695 (ix86_noce_conversion_profitable_p): Same.
5696 (ix86_init_cost): Same.
5697 (ix86_simd_clone_usable): Same.
5698 * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
5699 Wstruct-not-pod.
5700 * coretypes.h: Same.
5701 * data-streamer-in.c (string_for_index): Change class-key of PODs
5702 to struct and others to class.
5703 (streamer_read_indexed_string): Same.
5704 (streamer_read_string): Same.
5705 (bp_unpack_indexed_string): Same.
5706 (bp_unpack_string): Same.
5707 (streamer_read_uhwi): Same.
5708 (streamer_read_hwi): Same.
5709 (streamer_read_gcov_count): Same.
5710 (streamer_read_wide_int): Same.
5711 * data-streamer.h (streamer_write_bitpack): Same.
5712 (bp_unpack_value): Same.
5713 (streamer_write_char_stream): Same.
5714 (streamer_write_hwi_in_range): Same.
5715 (streamer_write_record_start): Same.
5716 * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
5717 (add_cross_iteration_register_deps): Same.
5718 (build_intra_loop_deps): Same.
5719 * df-core.c (df_analyze): Same.
5720 (loop_post_order_compute): Same.
5721 (loop_inverted_post_order_compute): Same.
5722 * df-problems.c (df_rd_alloc): Same.
5723 (df_rd_simulate_one_insn): Same.
5724 (df_rd_local_compute): Same.
5725 (df_rd_init_solution): Same.
5726 (df_rd_confluence_n): Same.
5727 (df_rd_transfer_function): Same.
5728 (df_rd_free): Same.
5729 (df_rd_dump_defs_set): Same.
5730 (df_rd_top_dump): Same.
5731 (df_lr_alloc): Same.
5732 (df_lr_reset): Same.
5733 (df_lr_local_compute): Same.
5734 (df_lr_init): Same.
5735 (df_lr_confluence_n): Same.
5736 (df_lr_free): Same.
5737 (df_lr_top_dump): Same.
5738 (df_lr_verify_transfer_functions): Same.
5739 (df_live_alloc): Same.
5740 (df_live_reset): Same.
5741 (df_live_init): Same.
5742 (df_live_confluence_n): Same.
5743 (df_live_finalize): Same.
5744 (df_live_free): Same.
5745 (df_live_top_dump): Same.
5746 (df_live_verify_transfer_functions): Same.
5747 (df_mir_alloc): Same.
5748 (df_mir_reset): Same.
5749 (df_mir_init): Same.
5750 (df_mir_confluence_n): Same.
5751 (df_mir_free): Same.
5752 (df_mir_top_dump): Same.
5753 (df_word_lr_alloc): Same.
5754 (df_word_lr_reset): Same.
5755 (df_word_lr_init): Same.
5756 (df_word_lr_confluence_n): Same.
5757 (df_word_lr_free): Same.
5758 (df_word_lr_top_dump): Same.
5759 (df_md_alloc): Same.
5760 (df_md_simulate_one_insn): Same.
5761 (df_md_reset): Same.
5762 (df_md_init): Same.
5763 (df_md_free): Same.
5764 (df_md_top_dump): Same.
5765 * df-scan.c (df_insn_delete): Same.
5766 (df_insn_rescan): Same.
5767 (df_notes_rescan): Same.
5768 (df_sort_and_compress_mws): Same.
5769 (df_install_mws): Same.
5770 (df_refs_add_to_chains): Same.
5771 (df_ref_create_structure): Same.
5772 (df_ref_record): Same.
5773 (df_def_record_1): Same.
5774 (df_find_hard_reg_defs): Same.
5775 (df_uses_record): Same.
5776 (df_get_conditional_uses): Same.
5777 (df_get_call_refs): Same.
5778 (df_recompute_luids): Same.
5779 (df_get_entry_block_def_set): Same.
5780 (df_entry_block_defs_collect): Same.
5781 (df_get_exit_block_use_set): Same.
5782 (df_exit_block_uses_collect): Same.
5783 (df_mws_verify): Same.
5784 (df_bb_verify): Same.
5785 * df.h (df_scan_get_bb_info): Same.
5786 * doc/tm.texi: Same.
5787 * dse.c (record_store): Same.
5788 * dumpfile.h: Same.
5789 * emit-rtl.c (const_fixed_hasher::equal): Same.
5790 (set_mem_attributes_minus_bitpos): Same.
5791 (change_address): Same.
5792 (adjust_address_1): Same.
5793 (offset_address): Same.
5794 * emit-rtl.h: Same.
5795 * except.c (dw2_build_landing_pads): Same.
5796 (sjlj_emit_dispatch_table): Same.
5797 * explow.c (allocate_dynamic_stack_space): Same.
5798 (emit_stack_probe): Same.
5799 (probe_stack_range): Same.
5800 * expmed.c (store_bit_field_using_insv): Same.
5801 (store_bit_field_1): Same.
5802 (store_integral_bit_field): Same.
5803 (extract_bit_field_using_extv): Same.
5804 (extract_bit_field_1): Same.
5805 (emit_cstore): Same.
5806 * expr.c (emit_block_move_via_cpymem): Same.
5807 (expand_cmpstrn_or_cmpmem): Same.
5808 (set_storage_via_setmem): Same.
5809 (emit_single_push_insn_1): Same.
5810 (expand_assignment): Same.
5811 (store_constructor): Same.
5812 (expand_expr_real_2): Same.
5813 (expand_expr_real_1): Same.
5814 (try_casesi): Same.
5815 * flags.h: Same.
5816 * function.c (try_fit_stack_local): Same.
5817 (assign_stack_local_1): Same.
5818 (assign_stack_local): Same.
5819 (cut_slot_from_list): Same.
5820 (insert_slot_to_list): Same.
5821 (max_slot_level): Same.
5822 (move_slot_to_level): Same.
5823 (temp_address_hasher::equal): Same.
5824 (remove_unused_temp_slot_addresses): Same.
5825 (assign_temp): Same.
5826 (combine_temp_slots): Same.
5827 (update_temp_slot_address): Same.
5828 (preserve_temp_slots): Same.
5829 * function.h: Same.
5830 * fwprop.c: Same.
5831 * gcc-rich-location.h: Same.
5832 * gcov.c: Same.
5833 * genattrtab.c (check_attr_test): Same.
5834 (check_attr_value): Same.
5835 (convert_set_attr_alternative): Same.
5836 (convert_set_attr): Same.
5837 (check_defs): Same.
5838 (copy_boolean): Same.
5839 (get_attr_value): Same.
5840 (expand_delays): Same.
5841 (make_length_attrs): Same.
5842 (min_fn): Same.
5843 (make_alternative_compare): Same.
5844 (simplify_test_exp): Same.
5845 (tests_attr_p): Same.
5846 (get_attr_order): Same.
5847 (clear_struct_flag): Same.
5848 (gen_attr): Same.
5849 (compares_alternatives_p): Same.
5850 (gen_insn): Same.
5851 (gen_delay): Same.
5852 (find_attrs_to_cache): Same.
5853 (write_test_expr): Same.
5854 (walk_attr_value): Same.
5855 (write_attr_get): Same.
5856 (eliminate_known_true): Same.
5857 (write_insn_cases): Same.
5858 (write_attr_case): Same.
5859 (write_attr_valueq): Same.
5860 (write_attr_value): Same.
5861 (write_dummy_eligible_delay): Same.
5862 (next_comma_elt): Same.
5863 (find_attr): Same.
5864 (make_internal_attr): Same.
5865 (copy_rtx_unchanging): Same.
5866 (gen_insn_reserv): Same.
5867 (check_tune_attr): Same.
5868 (make_automaton_attrs): Same.
5869 (handle_arg): Same.
5870 * genextract.c (gen_insn): Same.
5871 (VEC_char_to_string): Same.
5872 * genmatch.c (print_operand): Same.
5873 (lower): Same.
5874 (parser::parse_operation): Same.
5875 (parser::parse_capture): Same.
5876 (parser::parse_c_expr): Same.
5877 (parser::parse_simplify): Same.
5878 (main): Same.
5879 * genoutput.c (output_operand_data): Same.
5880 (output_get_insn_name): Same.
5881 (compare_operands): Same.
5882 (place_operands): Same.
5883 (process_template): Same.
5884 (validate_insn_alternatives): Same.
5885 (validate_insn_operands): Same.
5886 (gen_expand): Same.
5887 (note_constraint): Same.
5888 * genpreds.c (write_one_predicate_function): Same.
5889 (add_constraint): Same.
5890 (process_define_register_constraint): Same.
5891 (write_lookup_constraint_1): Same.
5892 (write_lookup_constraint_array): Same.
5893 (write_insn_constraint_len): Same.
5894 (write_reg_class_for_constraint_1): Same.
5895 (write_constraint_satisfied_p_array): Same.
5896 * genrecog.c (optimize_subroutine_group): Same.
5897 * gensupport.c (process_define_predicate): Same.
5898 (queue_pattern): Same.
5899 (remove_from_queue): Same.
5900 (process_rtx): Same.
5901 (is_predicable): Same.
5902 (change_subst_attribute): Same.
5903 (subst_pattern_match): Same.
5904 (alter_constraints): Same.
5905 (alter_attrs_for_insn): Same.
5906 (shift_output_template): Same.
5907 (alter_output_for_subst_insn): Same.
5908 (process_one_cond_exec): Same.
5909 (subst_dup): Same.
5910 (process_define_cond_exec): Same.
5911 (mnemonic_htab_callback): Same.
5912 (gen_mnemonic_attr): Same.
5913 (read_md_rtx): Same.
5914 * ggc-page.c: Same.
5915 * gimple-loop-interchange.cc (dump_reduction): Same.
5916 (dump_induction): Same.
5917 (loop_cand::~loop_cand): Same.
5918 (free_data_refs_with_aux): Same.
5919 (tree_loop_interchange::interchange_loops): Same.
5920 (tree_loop_interchange::map_inductions_to_loop): Same.
5921 (tree_loop_interchange::move_code_to_inner_loop): Same.
5922 (compute_access_stride): Same.
5923 (compute_access_strides): Same.
5924 (proper_loop_form_for_interchange): Same.
5925 (tree_loop_interchange_compute_ddrs): Same.
5926 (prune_datarefs_not_in_loop): Same.
5927 (prepare_data_references): Same.
5928 (pass_linterchange::execute): Same.
5929 * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
5930 (unroll_jam_possible_p): Same.
5931 (fuse_loops): Same.
5932 (adjust_unroll_factor): Same.
5933 (tree_loop_unroll_and_jam): Same.
5934 * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
5935 (loop_versioning::expensive_stmt_p): Same.
5936 (loop_versioning::version_for_unity): Same.
5937 (loop_versioning::dump_inner_likelihood): Same.
5938 (loop_versioning::find_per_loop_multiplication): Same.
5939 (loop_versioning::analyze_term_using_scevs): Same.
5940 (loop_versioning::record_address_fragment): Same.
5941 (loop_versioning::analyze_expr): Same.
5942 (loop_versioning::analyze_blocks): Same.
5943 (loop_versioning::prune_conditions): Same.
5944 (loop_versioning::merge_loop_info): Same.
5945 (loop_versioning::add_loop_to_queue): Same.
5946 (loop_versioning::decide_whether_loop_is_versionable): Same.
5947 (loop_versioning::make_versioning_decisions): Same.
5948 (loop_versioning::implement_versioning_decisions): Same.
5949 * gimple-ssa-evrp-analyze.c
5950 (evrp_range_analyzer::record_ranges_from_phis): Same.
5951 * gimple-ssa-store-merging.c (split_store::split_store): Same.
5952 (count_multiple_uses): Same.
5953 (split_group): Same.
5954 (imm_store_chain_info::output_merged_store): Same.
5955 (pass_store_merging::process_store): Same.
5956 * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
5957 * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
5958 (is_max): Same.
5959 (alloca_call_type): Same.
5960 (pass_walloca::execute): Same.
5961 * gimple-streamer-in.c (input_phi): Same.
5962 (input_gimple_stmt): Same.
5963 * gimple-streamer.h: Same.
5964 * godump.c (go_force_record_alignment): Same.
5965 (go_format_type): Same.
5966 (go_output_type): Same.
5967 (go_output_fndecl): Same.
5968 (go_output_typedef): Same.
5969 (keyword_hash_init): Same.
5970 (find_dummy_types): Same.
5971 * graph.c (draw_cfg_nodes_no_loops): Same.
5972 (draw_cfg_nodes_for_loop): Same.
5973 * hard-reg-set.h (hard_reg_set_iter_next): Same.
5974 * hsa-brig.c: Same.
5975 * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
5976 * hsa-dump.c (dump_hsa_cfun): Same.
5977 * hsa-gen.c (gen_function_def_parameters): Same.
5978 * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
5979 * input.c (dump_line_table_statistics): Same.
5980 (test_lexer): Same.
5981 * input.h: Same.
5982 * internal-fn.c (get_multi_vector_move): Same.
5983 (expand_load_lanes_optab_fn): Same.
5984 (expand_GOMP_SIMT_ENTER_ALLOC): Same.
5985 (expand_GOMP_SIMT_EXIT): Same.
5986 (expand_GOMP_SIMT_LAST_LANE): Same.
5987 (expand_GOMP_SIMT_ORDERED_PRED): Same.
5988 (expand_GOMP_SIMT_VOTE_ANY): Same.
5989 (expand_GOMP_SIMT_XCHG_BFLY): Same.
5990 (expand_GOMP_SIMT_XCHG_IDX): Same.
5991 (expand_addsub_overflow): Same.
5992 (expand_neg_overflow): Same.
5993 (expand_mul_overflow): Same.
5994 (expand_call_mem_ref): Same.
5995 (expand_mask_load_optab_fn): Same.
5996 (expand_scatter_store_optab_fn): Same.
5997 (expand_gather_load_optab_fn): Same.
5998 * ipa-cp.c (ipa_get_parm_lattices): Same.
5999 (print_all_lattices): Same.
6000 (ignore_edge_p): Same.
6001 (build_toporder_info): Same.
6002 (free_toporder_info): Same.
6003 (push_node_to_stack): Same.
6004 (ipcp_lattice<valtype>::set_contains_variable): Same.
6005 (set_agg_lats_to_bottom): Same.
6006 (ipcp_bits_lattice::meet_with): Same.
6007 (set_single_call_flag): Same.
6008 (initialize_node_lattices): Same.
6009 (ipa_get_jf_ancestor_result): Same.
6010 (ipcp_verify_propagated_values): Same.
6011 (propagate_scalar_across_jump_function): Same.
6012 (propagate_context_across_jump_function): Same.
6013 (propagate_bits_across_jump_function): Same.
6014 (ipa_vr_operation_and_type_effects): Same.
6015 (propagate_vr_across_jump_function): Same.
6016 (set_check_aggs_by_ref): Same.
6017 (set_chain_of_aglats_contains_variable): Same.
6018 (merge_aggregate_lattices): Same.
6019 (agg_pass_through_permissible_p): Same.
6020 (propagate_aggs_across_jump_function): Same.
6021 (call_passes_through_thunk_p): Same.
6022 (propagate_constants_across_call): Same.
6023 (devirtualization_time_bonus): Same.
6024 (good_cloning_opportunity_p): Same.
6025 (context_independent_aggregate_values): Same.
6026 (gather_context_independent_values): Same.
6027 (perform_estimation_of_a_value): Same.
6028 (estimate_local_effects): Same.
6029 (value_topo_info<valtype>::add_val): Same.
6030 (add_all_node_vals_to_toposort): Same.
6031 (value_topo_info<valtype>::propagate_effects): Same.
6032 (ipcp_propagate_stage): Same.
6033 (ipcp_discover_new_direct_edges): Same.
6034 (same_node_or_its_all_contexts_clone_p): Same.
6035 (cgraph_edge_brings_value_p): Same.
6036 (gather_edges_for_value): Same.
6037 (create_specialized_node): Same.
6038 (find_more_scalar_values_for_callers_subset): Same.
6039 (find_more_contexts_for_caller_subset): Same.
6040 (copy_plats_to_inter): Same.
6041 (intersect_aggregates_with_edge): Same.
6042 (find_aggregate_values_for_callers_subset): Same.
6043 (cgraph_edge_brings_all_agg_vals_for_node): Same.
6044 (decide_about_value): Same.
6045 (decide_whether_version_node): Same.
6046 (spread_undeadness): Same.
6047 (identify_dead_nodes): Same.
6048 (ipcp_store_vr_results): Same.
6049 * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
6050 * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
6051 (redirect_to_unreachable): Same.
6052 (edge_set_predicate): Same.
6053 (evaluate_conditions_for_known_args): Same.
6054 (evaluate_properties_for_edge): Same.
6055 (ipa_fn_summary_t::duplicate): Same.
6056 (ipa_call_summary_t::duplicate): Same.
6057 (dump_ipa_call_summary): Same.
6058 (ipa_dump_fn_summary): Same.
6059 (eliminated_by_inlining_prob): Same.
6060 (set_cond_stmt_execution_predicate): Same.
6061 (set_switch_stmt_execution_predicate): Same.
6062 (compute_bb_predicates): Same.
6063 (will_be_nonconstant_expr_predicate): Same.
6064 (phi_result_unknown_predicate): Same.
6065 (analyze_function_body): Same.
6066 (compute_fn_summary): Same.
6067 (estimate_edge_devirt_benefit): Same.
6068 (estimate_edge_size_and_time): Same.
6069 (estimate_calls_size_and_time): Same.
6070 (estimate_node_size_and_time): Same.
6071 (remap_edge_change_prob): Same.
6072 (remap_edge_summaries): Same.
6073 (ipa_merge_fn_summary_after_inlining): Same.
6074 (ipa_fn_summary_generate): Same.
6075 (inline_read_section): Same.
6076 (ipa_fn_summary_read): Same.
6077 (ipa_fn_summary_write): Same.
6078 * ipa-fnsummary.h: Same.
6079 * ipa-hsa.c (ipa_hsa_read_section): Same.
6080 * ipa-icf-gimple.c (func_checker::compare_loops): Same.
6081 * ipa-icf.c (sem_function::param_used_p): Same.
6082 * ipa-inline-analysis.c (do_estimate_edge_time): Same.
6083 * ipa-inline.c (edge_badness): Same.
6084 (inline_small_functions): Same.
6085 * ipa-polymorphic-call.c
6086 (ipa_polymorphic_call_context::stream_out): Same.
6087 * ipa-predicate.c (predicate::remap_after_duplication): Same.
6088 (predicate::remap_after_inlining): Same.
6089 (predicate::stream_out): Same.
6090 * ipa-predicate.h: Same.
6091 * ipa-profile.c (ipa_profile_read_summary): Same.
6092 * ipa-prop.c (ipa_get_param_decl_index_1): Same.
6093 (count_formal_params): Same.
6094 (ipa_dump_param): Same.
6095 (ipa_alloc_node_params): Same.
6096 (ipa_print_node_jump_functions_for_edge): Same.
6097 (ipa_print_node_jump_functions): Same.
6098 (ipa_load_from_parm_agg): Same.
6099 (get_ancestor_addr_info): Same.
6100 (ipa_compute_jump_functions_for_edge): Same.
6101 (ipa_analyze_virtual_call_uses): Same.
6102 (ipa_analyze_stmt_uses): Same.
6103 (ipa_analyze_params_uses_in_bb): Same.
6104 (update_jump_functions_after_inlining): Same.
6105 (try_decrement_rdesc_refcount): Same.
6106 (ipa_impossible_devirt_target): Same.
6107 (update_indirect_edges_after_inlining): Same.
6108 (combine_controlled_uses_counters): Same.
6109 (ipa_edge_args_sum_t::duplicate): Same.
6110 (ipa_write_jump_function): Same.
6111 (ipa_write_indirect_edge_info): Same.
6112 (ipa_write_node_info): Same.
6113 (ipa_read_edge_info): Same.
6114 (ipa_prop_read_section): Same.
6115 (read_replacements_section): Same.
6116 * ipa-prop.h (ipa_get_param_count): Same.
6117 (ipa_get_param): Same.
6118 (ipa_get_type): Same.
6119 (ipa_get_param_move_cost): Same.
6120 (ipa_set_param_used): Same.
6121 (ipa_get_controlled_uses): Same.
6122 (ipa_set_controlled_uses): Same.
6123 (ipa_get_cs_argument_count): Same.
6124 * ipa-pure-const.c (analyze_function): Same.
6125 (pure_const_read_summary): Same.
6126 * ipa-ref.h: Same.
6127 * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
6128 * ipa-split.c (test_nonssa_use): Same.
6129 (dump_split_point): Same.
6130 (dominated_by_forbidden): Same.
6131 (split_part_set_ssa_name_p): Same.
6132 (find_split_points): Same.
6133 * ira-build.c (finish_loop_tree_nodes): Same.
6134 (low_pressure_loop_node_p): Same.
6135 * ira-color.c (ira_reuse_stack_slot): Same.
6136 * ira-int.h: Same.
6137 * ira.c (setup_reg_equiv): Same.
6138 (print_insn_chain): Same.
6139 (ira): Same.
6140 * loop-doloop.c (doloop_condition_get): Same.
6141 (add_test): Same.
6142 (record_reg_sets): Same.
6143 (doloop_optimize): Same.
6144 * loop-init.c (loop_optimizer_init): Same.
6145 (fix_loop_structure): Same.
6146 * loop-invariant.c (merge_identical_invariants): Same.
6147 (compute_always_reached): Same.
6148 (find_exits): Same.
6149 (may_assign_reg_p): Same.
6150 (find_invariants_bb): Same.
6151 (find_invariants_body): Same.
6152 (replace_uses): Same.
6153 (can_move_invariant_reg): Same.
6154 (free_inv_motion_data): Same.
6155 (move_single_loop_invariants): Same.
6156 (change_pressure): Same.
6157 (mark_ref_regs): Same.
6158 (calculate_loop_reg_pressure): Same.
6159 * loop-iv.c (biv_entry_hasher::equal): Same.
6160 (iv_extend_to_rtx_code): Same.
6161 (check_iv_ref_table_size): Same.
6162 (clear_iv_info): Same.
6163 (latch_dominating_def): Same.
6164 (iv_get_reaching_def): Same.
6165 (iv_constant): Same.
6166 (iv_subreg): Same.
6167 (iv_extend): Same.
6168 (iv_neg): Same.
6169 (iv_add): Same.
6170 (iv_mult): Same.
6171 (get_biv_step): Same.
6172 (record_iv): Same.
6173 (analyzed_for_bivness_p): Same.
6174 (record_biv): Same.
6175 (iv_analyze_biv): Same.
6176 (iv_analyze_expr): Same.
6177 (iv_analyze_def): Same.
6178 (iv_analyze_op): Same.
6179 (iv_analyze): Same.
6180 (iv_analyze_result): Same.
6181 (biv_p): Same.
6182 (eliminate_implied_conditions): Same.
6183 (simplify_using_initial_values): Same.
6184 (shorten_into_mode): Same.
6185 (canonicalize_iv_subregs): Same.
6186 (determine_max_iter): Same.
6187 (check_simple_exit): Same.
6188 (find_simple_exit): Same.
6189 (get_simple_loop_desc): Same.
6190 * loop-unroll.c (report_unroll): Same.
6191 (decide_unrolling): Same.
6192 (unroll_loops): Same.
6193 (loop_exit_at_end_p): Same.
6194 (decide_unroll_constant_iterations): Same.
6195 (unroll_loop_constant_iterations): Same.
6196 (compare_and_jump_seq): Same.
6197 (unroll_loop_runtime_iterations): Same.
6198 (decide_unroll_stupid): Same.
6199 (unroll_loop_stupid): Same.
6200 (referenced_in_one_insn_in_loop_p): Same.
6201 (reset_debug_uses_in_loop): Same.
6202 (analyze_iv_to_split_insn): Same.
6203 * lra-eliminations.c (lra_debug_elim_table): Same.
6204 (setup_can_eliminate): Same.
6205 (form_sum): Same.
6206 (lra_get_elimination_hard_regno): Same.
6207 (lra_eliminate_regs_1): Same.
6208 (eliminate_regs_in_insn): Same.
6209 (update_reg_eliminate): Same.
6210 (init_elimination): Same.
6211 (lra_eliminate): Same.
6212 * lra-int.h: Same.
6213 * lra-lives.c (initiate_live_solver): Same.
6214 * lra-remat.c (create_remat_bb_data): Same.
6215 * lra-spills.c (lra_spill): Same.
6216 * lra.c (lra_set_insn_recog_data): Same.
6217 (lra_set_used_insn_alternative_by_uid): Same.
6218 (init_reg_info): Same.
6219 (expand_reg_info): Same.
6220 * lto-cgraph.c (output_symtab): Same.
6221 (read_identifier): Same.
6222 (get_alias_symbol): Same.
6223 (input_node): Same.
6224 (input_varpool_node): Same.
6225 (input_ref): Same.
6226 (input_edge): Same.
6227 (input_cgraph_1): Same.
6228 (input_refs): Same.
6229 (input_symtab): Same.
6230 (input_offload_tables): Same.
6231 (output_cgraph_opt_summary): Same.
6232 (input_edge_opt_summary): Same.
6233 (input_cgraph_opt_section): Same.
6234 * lto-section-in.c (lto_free_raw_section_data): Same.
6235 (lto_create_simple_input_block): Same.
6236 (lto_free_function_in_decl_state_for_node): Same.
6237 * lto-streamer-in.c (lto_tag_check_set): Same.
6238 (lto_location_cache::revert_location_cache): Same.
6239 (lto_location_cache::input_location): Same.
6240 (lto_input_location): Same.
6241 (stream_input_location_now): Same.
6242 (lto_input_tree_ref): Same.
6243 (lto_input_eh_catch_list): Same.
6244 (input_eh_region): Same.
6245 (lto_init_eh): Same.
6246 (make_new_block): Same.
6247 (input_cfg): Same.
6248 (fixup_call_stmt_edges): Same.
6249 (input_struct_function_base): Same.
6250 (input_function): Same.
6251 (lto_read_body_or_constructor): Same.
6252 (lto_read_tree_1): Same.
6253 (lto_read_tree): Same.
6254 (lto_input_scc): Same.
6255 (lto_input_tree_1): Same.
6256 (lto_input_toplevel_asms): Same.
6257 (lto_input_mode_table): Same.
6258 (lto_reader_init): Same.
6259 (lto_data_in_create): Same.
6260 * lto-streamer-out.c (output_cfg): Same.
6261 * lto-streamer.h: Same.
6262 * modulo-sched.c (duplicate_insns_of_cycles): Same.
6263 (generate_prolog_epilog): Same.
6264 (mark_loop_unsched): Same.
6265 (dump_insn_location): Same.
6266 (loop_canon_p): Same.
6267 (sms_schedule): Same.
6268 * omp-expand.c (expand_omp_for_ordered_loops): Same.
6269 (expand_omp_for_generic): Same.
6270 (expand_omp_for_static_nochunk): Same.
6271 (expand_omp_for_static_chunk): Same.
6272 (expand_omp_simd): Same.
6273 (expand_omp_taskloop_for_inner): Same.
6274 (expand_oacc_for): Same.
6275 (expand_omp_atomic_pipeline): Same.
6276 (mark_loops_in_oacc_kernels_region): Same.
6277 * omp-offload.c (oacc_xform_loop): Same.
6278 * omp-simd-clone.c (simd_clone_adjust): Same.
6279 * optabs-query.c (get_traditional_extraction_insn): Same.
6280 * optabs.c (expand_vector_broadcast): Same.
6281 (expand_binop_directly): Same.
6282 (expand_twoval_unop): Same.
6283 (expand_twoval_binop): Same.
6284 (expand_unop_direct): Same.
6285 (emit_indirect_jump): Same.
6286 (emit_conditional_move): Same.
6287 (emit_conditional_neg_or_complement): Same.
6288 (emit_conditional_add): Same.
6289 (vector_compare_rtx): Same.
6290 (expand_vec_perm_1): Same.
6291 (expand_vec_perm_const): Same.
6292 (expand_vec_cond_expr): Same.
6293 (expand_vec_series_expr): Same.
6294 (maybe_emit_atomic_exchange): Same.
6295 (maybe_emit_sync_lock_test_and_set): Same.
6296 (expand_atomic_compare_and_swap): Same.
6297 (expand_atomic_load): Same.
6298 (expand_atomic_store): Same.
6299 (maybe_emit_op): Same.
6300 (valid_multiword_target_p): Same.
6301 (create_integer_operand): Same.
6302 (maybe_legitimize_operand_same_code): Same.
6303 (maybe_legitimize_operand): Same.
6304 (create_convert_operand_from_type): Same.
6305 (can_reuse_operands_p): Same.
6306 (maybe_legitimize_operands): Same.
6307 (maybe_gen_insn): Same.
6308 (maybe_expand_insn): Same.
6309 (maybe_expand_jump_insn): Same.
6310 (expand_insn): Same.
6311 * optabs.h (create_expand_operand): Same.
6312 (create_fixed_operand): Same.
6313 (create_output_operand): Same.
6314 (create_input_operand): Same.
6315 (create_convert_operand_to): Same.
6316 (create_convert_operand_from): Same.
6317 * optinfo.h: Same.
6318 * poly-int.h: Same.
6319 * predict.c (optimize_insn_for_speed_p): Same.
6320 (optimize_loop_for_size_p): Same.
6321 (optimize_loop_for_speed_p): Same.
6322 (optimize_loop_nest_for_speed_p): Same.
6323 (get_base_value): Same.
6324 (predicted_by_loop_heuristics_p): Same.
6325 (predict_extra_loop_exits): Same.
6326 (predict_loops): Same.
6327 (predict_paths_for_bb): Same.
6328 (predict_paths_leading_to): Same.
6329 (propagate_freq): Same.
6330 (pass_profile::execute): Same.
6331 * predict.h: Same.
6332 * profile-count.c (profile_count::differs_from_p): Same.
6333 (profile_probability::differs_lot_from_p): Same.
6334 * profile-count.h: Same.
6335 * profile.c (branch_prob): Same.
6336 * regrename.c (free_chain_data): Same.
6337 (mark_conflict): Same.
6338 (create_new_chain): Same.
6339 (merge_overlapping_regs): Same.
6340 (init_rename_info): Same.
6341 (merge_chains): Same.
6342 (regrename_analyze): Same.
6343 (regrename_do_replace): Same.
6344 (scan_rtx_reg): Same.
6345 (record_out_operands): Same.
6346 (build_def_use): Same.
6347 * regrename.h: Same.
6348 * reload.h: Same.
6349 * reload1.c (init_reload): Same.
6350 (maybe_fix_stack_asms): Same.
6351 (copy_reloads): Same.
6352 (count_pseudo): Same.
6353 (count_spilled_pseudo): Same.
6354 (find_reg): Same.
6355 (find_reload_regs): Same.
6356 (select_reload_regs): Same.
6357 (spill_hard_reg): Same.
6358 (fixup_eh_region_note): Same.
6359 (set_reload_reg): Same.
6360 (allocate_reload_reg): Same.
6361 (compute_reload_subreg_offset): Same.
6362 (reload_adjust_reg_for_icode): Same.
6363 (emit_input_reload_insns): Same.
6364 (emit_output_reload_insns): Same.
6365 (do_input_reload): Same.
6366 (inherit_piecemeal_p): Same.
6367 * rtl.h: Same.
6368 * sanopt.c (maybe_get_dominating_check): Same.
6369 (maybe_optimize_ubsan_ptr_ifn): Same.
6370 (can_remove_asan_check): Same.
6371 (maybe_optimize_asan_check_ifn): Same.
6372 (sanopt_optimize_walker): Same.
6373 * sched-deps.c (add_dependence_list): Same.
6374 (chain_to_prev_insn): Same.
6375 (add_insn_mem_dependence): Same.
6376 (create_insn_reg_set): Same.
6377 (maybe_extend_reg_info_p): Same.
6378 (sched_analyze_reg): Same.
6379 (sched_analyze_1): Same.
6380 (get_implicit_reg_pending_clobbers): Same.
6381 (chain_to_prev_insn_p): Same.
6382 (deps_analyze_insn): Same.
6383 (deps_start_bb): Same.
6384 (sched_free_deps): Same.
6385 (init_deps): Same.
6386 (init_deps_reg_last): Same.
6387 (free_deps): Same.
6388 * sched-ebb.c: Same.
6389 * sched-int.h: Same.
6390 * sched-rgn.c (add_branch_dependences): Same.
6391 (concat_insn_mem_list): Same.
6392 (deps_join): Same.
6393 (sched_rgn_compute_dependencies): Same.
6394 * sel-sched-ir.c (reset_target_context): Same.
6395 (copy_deps_context): Same.
6396 (init_id_from_df): Same.
6397 (has_dependence_p): Same.
6398 (change_loops_latches): Same.
6399 (bb_top_order_comparator): Same.
6400 (make_region_from_loop_preheader): Same.
6401 (sel_init_pipelining): Same.
6402 (get_loop_nest_for_rgn): Same.
6403 (make_regions_from_the_rest): Same.
6404 (sel_is_loop_preheader_p): Same.
6405 * sel-sched-ir.h (inner_loop_header_p): Same.
6406 (get_all_loop_exits): Same.
6407 * selftest.h: Same.
6408 * sese.c (sese_build_liveouts): Same.
6409 (sese_insert_phis_for_liveouts): Same.
6410 * sese.h (defined_in_sese_p): Same.
6411 * sreal.c (sreal::stream_out): Same.
6412 * sreal.h: Same.
6413 * streamer-hooks.h: Same.
6414 * target-globals.c (save_target_globals): Same.
6415 * target-globals.h: Same.
6416 * target.def: Same.
6417 * target.h: Same.
6418 * targhooks.c (default_has_ifunc_p): Same.
6419 (default_empty_mask_is_expensive): Same.
6420 (default_init_cost): Same.
6421 * targhooks.h: Same.
6422 * toplev.c: Same.
6423 * tree-affine.c (aff_combination_mult): Same.
6424 (aff_combination_expand): Same.
6425 (aff_combination_constant_multiple_p): Same.
6426 * tree-affine.h: Same.
6427 * tree-cfg.c (build_gimple_cfg): Same.
6428 (replace_loop_annotate_in_block): Same.
6429 (replace_uses_by): Same.
6430 (remove_bb): Same.
6431 (dump_cfg_stats): Same.
6432 (gimple_duplicate_sese_region): Same.
6433 (gimple_duplicate_sese_tail): Same.
6434 (move_block_to_fn): Same.
6435 (replace_block_vars_by_duplicates): Same.
6436 (move_sese_region_to_fn): Same.
6437 (print_loops_bb): Same.
6438 (print_loop): Same.
6439 (print_loops): Same.
6440 (debug): Same.
6441 (debug_loops): Same.
6442 * tree-cfg.h: Same.
6443 * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
6444 (chrec_fold_multiply_poly_poly): Same.
6445 (chrec_evaluate): Same.
6446 (chrec_component_in_loop_num): Same.
6447 (reset_evolution_in_loop): Same.
6448 (is_multivariate_chrec): Same.
6449 (chrec_contains_symbols): Same.
6450 (nb_vars_in_chrec): Same.
6451 (chrec_convert_1): Same.
6452 (chrec_convert_aggressive): Same.
6453 * tree-chrec.h: Same.
6454 * tree-core.h: Same.
6455 * tree-data-ref.c (dump_data_dependence_relation): Same.
6456 (canonicalize_base_object_address): Same.
6457 (data_ref_compare_tree): Same.
6458 (prune_runtime_alias_test_list): Same.
6459 (get_segment_min_max): Same.
6460 (create_intersect_range_checks): Same.
6461 (conflict_fn_no_dependence): Same.
6462 (object_address_invariant_in_loop_p): Same.
6463 (analyze_ziv_subscript): Same.
6464 (analyze_siv_subscript_cst_affine): Same.
6465 (analyze_miv_subscript): Same.
6466 (analyze_overlapping_iterations): Same.
6467 (build_classic_dist_vector_1): Same.
6468 (add_other_self_distances): Same.
6469 (same_access_functions): Same.
6470 (build_classic_dir_vector): Same.
6471 (subscript_dependence_tester_1): Same.
6472 (subscript_dependence_tester): Same.
6473 (access_functions_are_affine_or_constant_p): Same.
6474 (get_references_in_stmt): Same.
6475 (loop_nest_has_data_refs): Same.
6476 (graphite_find_data_references_in_stmt): Same.
6477 (find_data_references_in_bb): Same.
6478 (get_base_for_alignment): Same.
6479 (find_loop_nest_1): Same.
6480 (find_loop_nest): Same.
6481 * tree-data-ref.h (dr_alignment): Same.
6482 (ddr_dependence_level): Same.
6483 * tree-if-conv.c (fold_build_cond_expr): Same.
6484 (add_to_predicate_list): Same.
6485 (add_to_dst_predicate_list): Same.
6486 (phi_convertible_by_degenerating_args): Same.
6487 (idx_within_array_bound): Same.
6488 (all_preds_critical_p): Same.
6489 (pred_blocks_visited_p): Same.
6490 (predicate_bbs): Same.
6491 (build_region): Same.
6492 (if_convertible_loop_p_1): Same.
6493 (is_cond_scalar_reduction): Same.
6494 (predicate_scalar_phi): Same.
6495 (remove_conditions_and_labels): Same.
6496 (combine_blocks): Same.
6497 (version_loop_for_if_conversion): Same.
6498 (versionable_outer_loop_p): Same.
6499 (ifcvt_local_dce): Same.
6500 (tree_if_conversion): Same.
6501 (pass_if_conversion::gate): Same.
6502 * tree-if-conv.h: Same.
6503 * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
6504 * tree-loop-distribution.c (bb_top_order_cmp): Same.
6505 (free_rdg): Same.
6506 (stmt_has_scalar_dependences_outside_loop): Same.
6507 (copy_loop_before): Same.
6508 (create_bb_after_loop): Same.
6509 (const_with_all_bytes_same): Same.
6510 (generate_memset_builtin): Same.
6511 (generate_memcpy_builtin): Same.
6512 (destroy_loop): Same.
6513 (build_rdg_partition_for_vertex): Same.
6514 (compute_access_range): Same.
6515 (data_ref_segment_size): Same.
6516 (latch_dominated_by_data_ref): Same.
6517 (compute_alias_check_pairs): Same.
6518 (fuse_memset_builtins): Same.
6519 (finalize_partitions): Same.
6520 (find_seed_stmts_for_distribution): Same.
6521 (prepare_perfect_loop_nest): Same.
6522 * tree-parloops.c (lambda_transform_legal_p): Same.
6523 (loop_parallel_p): Same.
6524 (reduc_stmt_res): Same.
6525 (add_field_for_name): Same.
6526 (create_call_for_reduction_1): Same.
6527 (replace_uses_in_bb_by): Same.
6528 (transform_to_exit_first_loop_alt): Same.
6529 (try_transform_to_exit_first_loop_alt): Same.
6530 (transform_to_exit_first_loop): Same.
6531 (num_phis): Same.
6532 (gen_parallel_loop): Same.
6533 (gather_scalar_reductions): Same.
6534 (get_omp_data_i_param): Same.
6535 (try_create_reduction_list): Same.
6536 (oacc_entry_exit_single_gang): Same.
6537 (parallelize_loops): Same.
6538 * tree-pass.h: Same.
6539 * tree-predcom.c (determine_offset): Same.
6540 (last_always_executed_block): Same.
6541 (split_data_refs_to_components): Same.
6542 (suitable_component_p): Same.
6543 (valid_initializer_p): Same.
6544 (find_looparound_phi): Same.
6545 (insert_looparound_copy): Same.
6546 (add_looparound_copies): Same.
6547 (determine_roots_comp): Same.
6548 (predcom_tmp_var): Same.
6549 (initialize_root_vars): Same.
6550 (initialize_root_vars_store_elim_1): Same.
6551 (initialize_root_vars_store_elim_2): Same.
6552 (finalize_eliminated_stores): Same.
6553 (initialize_root_vars_lm): Same.
6554 (remove_stmt): Same.
6555 (determine_unroll_factor): Same.
6556 (execute_pred_commoning_cbck): Same.
6557 (base_names_in_chain_on): Same.
6558 (combine_chains): Same.
6559 (pcom_stmt_dominates_stmt_p): Same.
6560 (try_combine_chains): Same.
6561 (prepare_initializers_chain_store_elim): Same.
6562 (prepare_initializers_chain): Same.
6563 (prepare_initializers): Same.
6564 (prepare_finalizers_chain): Same.
6565 (prepare_finalizers): Same.
6566 (insert_init_seqs): Same.
6567 * tree-scalar-evolution.c (loop_phi_node_p): Same.
6568 (compute_overall_effect_of_inner_loop): Same.
6569 (add_to_evolution_1): Same.
6570 (add_to_evolution): Same.
6571 (follow_ssa_edge_binary): Same.
6572 (follow_ssa_edge_expr): Same.
6573 (backedge_phi_arg_p): Same.
6574 (follow_ssa_edge_in_condition_phi_branch): Same.
6575 (follow_ssa_edge_in_condition_phi): Same.
6576 (follow_ssa_edge_inner_loop_phi): Same.
6577 (follow_ssa_edge): Same.
6578 (analyze_evolution_in_loop): Same.
6579 (analyze_initial_condition): Same.
6580 (interpret_loop_phi): Same.
6581 (interpret_condition_phi): Same.
6582 (interpret_rhs_expr): Same.
6583 (interpret_expr): Same.
6584 (interpret_gimple_assign): Same.
6585 (analyze_scalar_evolution_1): Same.
6586 (analyze_scalar_evolution): Same.
6587 (analyze_scalar_evolution_for_address_of): Same.
6588 (get_instantiated_value_entry): Same.
6589 (loop_closed_phi_def): Same.
6590 (instantiate_scev_name): Same.
6591 (instantiate_scev_poly): Same.
6592 (instantiate_scev_binary): Same.
6593 (instantiate_scev_convert): Same.
6594 (instantiate_scev_not): Same.
6595 (instantiate_scev_r): Same.
6596 (instantiate_scev): Same.
6597 (resolve_mixers): Same.
6598 (initialize_scalar_evolutions_analyzer): Same.
6599 (scev_reset_htab): Same.
6600 (scev_reset): Same.
6601 (derive_simple_iv_with_niters): Same.
6602 (simple_iv_with_niters): Same.
6603 (expression_expensive_p): Same.
6604 (final_value_replacement_loop): Same.
6605 * tree-scalar-evolution.h (block_before_loop): Same.
6606 * tree-ssa-address.h: Same.
6607 * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
6608 * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
6609 (record_edge_info): Same.
6610 * tree-ssa-live.c (var_map_base_fini): Same.
6611 (remove_unused_locals): Same.
6612 * tree-ssa-live.h: Same.
6613 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
6614 (pass_ch_vect::execute): Same.
6615 (pass_ch::process_loop_p): Same.
6616 * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
6617 (movement_possibility): Same.
6618 (outermost_invariant_loop): Same.
6619 (stmt_cost): Same.
6620 (determine_max_movement): Same.
6621 (invariantness_dom_walker::before_dom_children): Same.
6622 (move_computations): Same.
6623 (may_move_till): Same.
6624 (force_move_till_op): Same.
6625 (force_move_till): Same.
6626 (memref_free): Same.
6627 (record_mem_ref_loc): Same.
6628 (set_ref_stored_in_loop): Same.
6629 (mark_ref_stored): Same.
6630 (sort_bbs_in_loop_postorder_cmp): Same.
6631 (sort_locs_in_loop_postorder_cmp): Same.
6632 (analyze_memory_references): Same.
6633 (mem_refs_may_alias_p): Same.
6634 (find_ref_loc_in_loop_cmp): Same.
6635 (rewrite_mem_ref_loc::operator): Same.
6636 (first_mem_ref_loc_1::operator): Same.
6637 (sm_set_flag_if_changed::operator): Same.
6638 (execute_sm_if_changed_flag_set): Same.
6639 (execute_sm): Same.
6640 (hoist_memory_references): Same.
6641 (ref_always_accessed::operator): Same.
6642 (refs_independent_p): Same.
6643 (record_dep_loop): Same.
6644 (ref_indep_loop_p_1): Same.
6645 (ref_indep_loop_p): Same.
6646 (can_sm_ref_p): Same.
6647 (find_refs_for_sm): Same.
6648 (loop_suitable_for_sm): Same.
6649 (store_motion_loop): Same.
6650 (store_motion): Same.
6651 (fill_always_executed_in): Same.
6652 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
6653 (estimated_unrolled_size): Same.
6654 (loop_edge_to_cancel): Same.
6655 (remove_exits_and_undefined_stmts): Same.
6656 (remove_redundant_iv_tests): Same.
6657 (unloop_loops): Same.
6658 (estimated_peeled_sequence_size): Same.
6659 (try_peel_loop): Same.
6660 (canonicalize_loop_induction_variables): Same.
6661 (canonicalize_induction_variables): Same.
6662 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
6663 (name_info): Same.
6664 (stmt_after_inc_pos): Same.
6665 (contains_abnormal_ssa_name_p): Same.
6666 (niter_for_exit): Same.
6667 (find_bivs): Same.
6668 (mark_bivs): Same.
6669 (find_givs_in_bb): Same.
6670 (find_induction_variables): Same.
6671 (find_interesting_uses_cond): Same.
6672 (outermost_invariant_loop_for_expr): Same.
6673 (idx_find_step): Same.
6674 (add_candidate_1): Same.
6675 (add_iv_candidate_derived_from_uses): Same.
6676 (alloc_use_cost_map): Same.
6677 (prepare_decl_rtl): Same.
6678 (generic_predict_doloop_p): Same.
6679 (computation_cost): Same.
6680 (determine_common_wider_type): Same.
6681 (get_computation_aff_1): Same.
6682 (get_use_type): Same.
6683 (determine_group_iv_cost_address): Same.
6684 (iv_period): Same.
6685 (difference_cannot_overflow_p): Same.
6686 (may_eliminate_iv): Same.
6687 (determine_set_costs): Same.
6688 (cheaper_cost_pair): Same.
6689 (compare_cost_pair): Same.
6690 (iv_ca_cand_for_group): Same.
6691 (iv_ca_recount_cost): Same.
6692 (iv_ca_set_remove_invs): Same.
6693 (iv_ca_set_no_cp): Same.
6694 (iv_ca_set_add_invs): Same.
6695 (iv_ca_set_cp): Same.
6696 (iv_ca_add_group): Same.
6697 (iv_ca_cost): Same.
6698 (iv_ca_compare_deps): Same.
6699 (iv_ca_delta_reverse): Same.
6700 (iv_ca_delta_commit): Same.
6701 (iv_ca_cand_used_p): Same.
6702 (iv_ca_delta_free): Same.
6703 (iv_ca_new): Same.
6704 (iv_ca_free): Same.
6705 (iv_ca_dump): Same.
6706 (iv_ca_extend): Same.
6707 (iv_ca_narrow): Same.
6708 (iv_ca_prune): Same.
6709 (cheaper_cost_with_cand): Same.
6710 (iv_ca_replace): Same.
6711 (try_add_cand_for): Same.
6712 (get_initial_solution): Same.
6713 (try_improve_iv_set): Same.
6714 (find_optimal_iv_set_1): Same.
6715 (create_new_iv): Same.
6716 (rewrite_use_compare): Same.
6717 (remove_unused_ivs): Same.
6718 (determine_scaling_factor): Same.
6719 * tree-ssa-loop-ivopts.h: Same.
6720 * tree-ssa-loop-manip.c (create_iv): Same.
6721 (compute_live_loop_exits): Same.
6722 (add_exit_phi): Same.
6723 (add_exit_phis): Same.
6724 (find_uses_to_rename_use): Same.
6725 (find_uses_to_rename_def): Same.
6726 (find_uses_to_rename_in_loop): Same.
6727 (rewrite_into_loop_closed_ssa): Same.
6728 (check_loop_closed_ssa_bb): Same.
6729 (split_loop_exit_edge): Same.
6730 (ip_end_pos): Same.
6731 (ip_normal_pos): Same.
6732 (copy_phi_node_args): Same.
6733 (gimple_duplicate_loop_to_header_edge): Same.
6734 (can_unroll_loop_p): Same.
6735 (determine_exit_conditions): Same.
6736 (scale_dominated_blocks_in_loop): Same.
6737 (niter_for_unrolled_loop): Same.
6738 (tree_transform_and_unroll_loop): Same.
6739 (rewrite_all_phi_nodes_with_iv): Same.
6740 * tree-ssa-loop-manip.h: Same.
6741 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
6742 (number_of_iterations_ne): Same.
6743 (assert_no_overflow_lt): Same.
6744 (assert_loop_rolls_lt): Same.
6745 (number_of_iterations_lt): Same.
6746 (adjust_cond_for_loop_until_wrap): Same.
6747 (tree_simplify_using_condition): Same.
6748 (simplify_using_initial_conditions): Same.
6749 (simplify_using_outer_evolutions): Same.
6750 (loop_only_exit_p): Same.
6751 (ssa_defined_by_minus_one_stmt_p): Same.
6752 (number_of_iterations_popcount): Same.
6753 (number_of_iterations_exit): Same.
6754 (find_loop_niter): Same.
6755 (finite_loop_p): Same.
6756 (chain_of_csts_start): Same.
6757 (get_val_for): Same.
6758 (loop_niter_by_eval): Same.
6759 (derive_constant_upper_bound_ops): Same.
6760 (do_warn_aggressive_loop_optimizations): Same.
6761 (record_estimate): Same.
6762 (get_cst_init_from_scev): Same.
6763 (record_nonwrapping_iv): Same.
6764 (idx_infer_loop_bounds): Same.
6765 (infer_loop_bounds_from_ref): Same.
6766 (infer_loop_bounds_from_array): Same.
6767 (infer_loop_bounds_from_pointer_arith): Same.
6768 (infer_loop_bounds_from_signedness): Same.
6769 (bound_index): Same.
6770 (discover_iteration_bound_by_body_walk): Same.
6771 (maybe_lower_iteration_bound): Same.
6772 (estimate_numbers_of_iterations): Same.
6773 (estimated_loop_iterations): Same.
6774 (estimated_loop_iterations_int): Same.
6775 (max_loop_iterations): Same.
6776 (max_loop_iterations_int): Same.
6777 (likely_max_loop_iterations): Same.
6778 (likely_max_loop_iterations_int): Same.
6779 (estimated_stmt_executions_int): Same.
6780 (max_stmt_executions): Same.
6781 (likely_max_stmt_executions): Same.
6782 (estimated_stmt_executions): Same.
6783 (stmt_dominates_stmt_p): Same.
6784 (nowrap_type_p): Same.
6785 (loop_exits_before_overflow): Same.
6786 (scev_var_range_cant_overflow): Same.
6787 (scev_probably_wraps_p): Same.
6788 (free_numbers_of_iterations_estimates): Same.
6789 * tree-ssa-loop-niter.h: Same.
6790 * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
6791 (idx_analyze_ref): Same.
6792 (analyze_ref): Same.
6793 (gather_memory_references_ref): Same.
6794 (mark_nontemporal_store): Same.
6795 (emit_mfence_after_loop): Same.
6796 (may_use_storent_in_loop_p): Same.
6797 (mark_nontemporal_stores): Same.
6798 (should_unroll_loop_p): Same.
6799 (volume_of_dist_vector): Same.
6800 (add_subscript_strides): Same.
6801 (self_reuse_distance): Same.
6802 (insn_to_prefetch_ratio_too_small_p): Same.
6803 * tree-ssa-loop-split.c (split_at_bb_p): Same.
6804 (patch_loop_exit): Same.
6805 (find_or_create_guard_phi): Same.
6806 (easy_exit_values): Same.
6807 (connect_loop_phis): Same.
6808 (connect_loops): Same.
6809 (compute_new_first_bound): Same.
6810 (split_loop): Same.
6811 (tree_ssa_split_loops): Same.
6812 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
6813 (is_maybe_undefined): Same.
6814 (tree_may_unswitch_on): Same.
6815 (simplify_using_entry_checks): Same.
6816 (tree_unswitch_single_loop): Same.
6817 (tree_unswitch_loop): Same.
6818 (tree_unswitch_outer_loop): Same.
6819 (empty_bb_without_guard_p): Same.
6820 (used_outside_loop_p): Same.
6821 (get_vop_from_header): Same.
6822 (hoist_guard): Same.
6823 * tree-ssa-loop.c (gate_oacc_kernels): Same.
6824 (get_lsm_tmp_name): Same.
6825 * tree-ssa-loop.h: Same.
6826 * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
6827 (build_and_add_sum): Same.
6828 (no_side_effect_bb): Same.
6829 (get_ops): Same.
6830 (linearize_expr): Same.
6831 (should_break_up_subtract): Same.
6832 (linearize_expr_tree): Same.
6833 * tree-ssa-scopedtables.c: Same.
6834 * tree-ssa-scopedtables.h: Same.
6835 * tree-ssa-structalias.c (condense_visit): Same.
6836 (label_visit): Same.
6837 (dump_pred_graph): Same.
6838 (perform_var_substitution): Same.
6839 (move_complex_constraints): Same.
6840 (remove_preds_and_fake_succs): Same.
6841 * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
6842 (determine_bb_domination_status): Same.
6843 (duplicate_thread_path): Same.
6844 (thread_through_all_blocks): Same.
6845 * tree-ssa-threadupdate.h: Same.
6846 * tree-streamer-in.c (streamer_read_string_cst): Same.
6847 (input_identifier): Same.
6848 (unpack_ts_type_common_value_fields): Same.
6849 (unpack_ts_block_value_fields): Same.
6850 (unpack_ts_translation_unit_decl_value_fields): Same.
6851 (unpack_ts_omp_clause_value_fields): Same.
6852 (streamer_read_tree_bitfields): Same.
6853 (streamer_alloc_tree): Same.
6854 (lto_input_ts_common_tree_pointers): Same.
6855 (lto_input_ts_vector_tree_pointers): Same.
6856 (lto_input_ts_poly_tree_pointers): Same.
6857 (lto_input_ts_complex_tree_pointers): Same.
6858 (lto_input_ts_decl_minimal_tree_pointers): Same.
6859 (lto_input_ts_decl_common_tree_pointers): Same.
6860 (lto_input_ts_decl_non_common_tree_pointers): Same.
6861 (lto_input_ts_decl_with_vis_tree_pointers): Same.
6862 (lto_input_ts_field_decl_tree_pointers): Same.
6863 (lto_input_ts_function_decl_tree_pointers): Same.
6864 (lto_input_ts_type_common_tree_pointers): Same.
6865 (lto_input_ts_type_non_common_tree_pointers): Same.
6866 (lto_input_ts_list_tree_pointers): Same.
6867 (lto_input_ts_vec_tree_pointers): Same.
6868 (lto_input_ts_exp_tree_pointers): Same.
6869 (lto_input_ts_block_tree_pointers): Same.
6870 (lto_input_ts_binfo_tree_pointers): Same.
6871 (lto_input_ts_constructor_tree_pointers): Same.
6872 (lto_input_ts_omp_clause_tree_pointers): Same.
6873 (streamer_read_tree_body): Same.
6874 * tree-streamer.h: Same.
6875 * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
6876 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
6877 (vect_analyze_possibly_independent_ddr): Same.
6878 (vect_analyze_data_ref_dependence): Same.
6879 (vect_compute_data_ref_alignment): Same.
6880 (vect_enhance_data_refs_alignment): Same.
6881 (vect_analyze_data_ref_access): Same.
6882 (vect_check_gather_scatter): Same.
6883 (vect_find_stmt_data_reference): Same.
6884 (vect_create_addr_base_for_vector_ref): Same.
6885 (vect_setup_realignment): Same.
6886 (vect_supportable_dr_alignment): Same.
6887 * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
6888 (adjust_phi_and_debug_stmts): Same.
6889 (vect_set_loop_mask): Same.
6890 (add_preheader_seq): Same.
6891 (vect_maybe_permute_loop_masks): Same.
6892 (vect_set_loop_masks_directly): Same.
6893 (vect_set_loop_condition_masked): Same.
6894 (vect_set_loop_condition_unmasked): Same.
6895 (slpeel_duplicate_current_defs_from_edges): Same.
6896 (slpeel_add_loop_guard): Same.
6897 (slpeel_can_duplicate_loop_p): Same.
6898 (create_lcssa_for_virtual_phi): Same.
6899 (iv_phi_p): Same.
6900 (vect_update_ivs_after_vectorizer): Same.
6901 (vect_gen_vector_loop_niters_mult_vf): Same.
6902 (slpeel_update_phi_nodes_for_loops): Same.
6903 (slpeel_update_phi_nodes_for_guard1): Same.
6904 (find_guard_arg): Same.
6905 (slpeel_update_phi_nodes_for_guard2): Same.
6906 (slpeel_update_phi_nodes_for_lcssa): Same.
6907 (vect_do_peeling): Same.
6908 (vect_create_cond_for_alias_checks): Same.
6909 (vect_loop_versioning): Same.
6910 * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
6911 (vect_inner_phi_in_double_reduction_p): Same.
6912 (vect_analyze_scalar_cycles_1): Same.
6913 (vect_fixup_scalar_cycles_with_patterns): Same.
6914 (vect_get_loop_niters): Same.
6915 (bb_in_loop_p): Same.
6916 (vect_get_max_nscalars_per_iter): Same.
6917 (vect_verify_full_masking): Same.
6918 (vect_compute_single_scalar_iteration_cost): Same.
6919 (vect_analyze_loop_form_1): Same.
6920 (vect_analyze_loop_form): Same.
6921 (vect_active_double_reduction_p): Same.
6922 (vect_analyze_loop_operations): Same.
6923 (neutral_op_for_slp_reduction): Same.
6924 (vect_is_simple_reduction): Same.
6925 (vect_model_reduction_cost): Same.
6926 (get_initial_def_for_reduction): Same.
6927 (get_initial_defs_for_reduction): Same.
6928 (vect_create_epilog_for_reduction): Same.
6929 (vectorize_fold_left_reduction): Same.
6930 (vectorizable_reduction): Same.
6931 (vectorizable_induction): Same.
6932 (vectorizable_live_operation): Same.
6933 (loop_niters_no_overflow): Same.
6934 (vect_get_loop_mask): Same.
6935 (vect_transform_loop_stmt): Same.
6936 (vect_transform_loop): Same.
6937 * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
6938 (vect_determine_precisions): Same.
6939 (vect_pattern_recog_1): Same.
6940 * tree-vect-slp.c (vect_analyze_slp_instance): Same.
6941 * tree-vect-stmts.c (stmt_vectype): Same.
6942 (process_use): Same.
6943 (vect_init_vector_1): Same.
6944 (vect_truncate_gather_scatter_offset): Same.
6945 (get_group_load_store_type): Same.
6946 (vect_build_gather_load_calls): Same.
6947 (vect_get_strided_load_store_ops): Same.
6948 (vectorizable_simd_clone_call): Same.
6949 (vectorizable_store): Same.
6950 (permute_vec_elements): Same.
6951 (vectorizable_load): Same.
6952 (vect_transform_stmt): Same.
6953 (supportable_widening_operation): Same.
6954 * tree-vectorizer.c (vec_info::replace_stmt): Same.
6955 (vec_info::free_stmt_vec_info): Same.
6956 (vect_free_loop_info_assumptions): Same.
6957 (vect_loop_vectorized_call): Same.
6958 (set_uid_loop_bbs): Same.
6959 (vectorize_loops): Same.
6960 * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
6961 * tree.c (add_tree_to_fld_list): Same.
6962 (fld_type_variant_equal_p): Same.
6963 (fld_decl_context): Same.
6964 (fld_incomplete_type_of): Same.
6965 (free_lang_data_in_binfo): Same.
6966 (need_assembler_name_p): Same.
6967 (find_decls_types_r): Same.
6968 (get_eh_types_for_runtime): Same.
6969 (find_decls_types_in_eh_region): Same.
6970 (find_decls_types_in_node): Same.
6971 (assign_assembler_name_if_needed): Same.
6972 * value-prof.c (stream_out_histogram_value): Same.
6973 * value-prof.h: Same.
6974 * var-tracking.c (use_narrower_mode): Same.
6975 (prepare_call_arguments): Same.
6976 (vt_expand_loc_callback): Same.
6977 (resolve_expansions_pending_recursion): Same.
6978 (vt_expand_loc): Same.
6979 * varasm.c (const_hash_1): Same.
6980 (compare_constant): Same.
6981 (tree_output_constant_def): Same.
6982 (simplify_subtraction): Same.
6983 (get_pool_constant): Same.
6984 (output_constant_pool_2): Same.
6985 (output_constant_pool_1): Same.
6986 (mark_constants_in_pattern): Same.
6987 (mark_constant_pool): Same.
6988 (get_section_anchor): Same.
6989 * vr-values.c (compare_range_with_value): Same.
6990 (vr_values::extract_range_from_phi_node): Same.
6991 * vr-values.h: Same.
6992 * web.c (unionfind_union): Same.
6993 * wide-int.h: Same.
6994
6995 2019-07-09 Martin Sebor <msebor@redhat.com>
6996
6997 PR c++/61339
6998 * align.h: Change class-key from class to struct and vice versa
6999 to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
7000 * alloc-pool.h: Same.
7001 * asan.c (shadow_mem_size): Same.
7002 * auto-profile.c: Same.
7003 * basic-block.h: Same.
7004 * bitmap.h: Same.
7005 * cfgexpand.c (set_rtl): Same.
7006 (expand_one_stack_var_at): Same.
7007 * cfghooks.h: Same.
7008 * cfgloop.h: Same.
7009 * cgraph.h: Same.
7010 * config/i386/i386.h: Same.
7011 * df-problems.c (df_print_bb_index): Same.
7012 * df-scan.c: Same.
7013 * df.h (df_single_use): Same.
7014 * diagnostic-show-locus.c (layout::print_annotation_line): Same.
7015 (layout::annotation_line_showed_range_p): Same.
7016 (get_printed_columns): Same.
7017 (correction::ensure_terminated): Same.
7018 (line_corrections::~line_corrections): Same.
7019 * dojump.h: Same.
7020 * dse.c: Same.
7021 * dump-context.h: Same.
7022 * dumpfile.h: Same.
7023 * dwarf2out.c: Same.
7024 * edit-context.c: Same.
7025 * fibonacci_heap.c (test_union_of_equal_heaps): Same.
7026 * flags.h: Same.
7027 * function.c (assign_stack_local): Same.
7028 * function.h: Same.
7029 * gcc.c: Same.
7030 * gcov.c (block_info::block_info): Same.
7031 * genattrtab.c: Same.
7032 * genextract.c: Same.
7033 * genmatch.c (comparison_code_p): Same.
7034 (id_base::id_base): Same.
7035 (decision_tree::print): Same.
7036 * genoutput.c: Same.
7037 * genpreds.c (write_one_predicate_function): Same.
7038 * genrecog.c (validate_pattern): Same.
7039 (find_operand_positions): Same.
7040 (optimize_subroutine_group): Same.
7041 (merge_pattern_transition::merge_pattern_transition): Same.
7042 (merge_pattern_info::merge_pattern_info): Same.
7043 (merge_state_result::merge_state_result): Same.
7044 (merge_into_state): Same.
7045 * gensupport.c: Same.
7046 * gensupport.h: Same.
7047 * ggc-common.c (init_ggc_heuristics): Same.
7048 * ggc-tests.c (test_union): Same.
7049 * gimple-loop-interchange.cc (dump_induction): Same.
7050 * gimple-loop-versioning.cc: Same.
7051 * gimple-match.h (gimple_match_cond::any_else): Same.
7052 * gimple-ssa-backprop.c: Same.
7053 * gimple-ssa-sprintf.c: Same.
7054 * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
7055 Same.
7056 (store_immediate_info::store_immediate_info): Same.
7057 (merged_store_group::apply_stores): Same.
7058 (get_location_for_stmts): Same.
7059 * gimple-ssa-strength-reduction.c: Same.
7060 * gimple-ssa-warn-alloca.c: Same.
7061 * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
7062 * godump.c (go_type_decl): Same.
7063 * hash-map-tests.c (test_map_of_strings_to_int): Same.
7064 * hash-map.h: Same.
7065 * hash-set-tests.c (test_set_of_strings): Same.
7066 * hsa-brig.c: Same.
7067 * hsa-common.h: Same.
7068 * hsa-gen.c (transformable_switch_to_sbr_p): Same.
7069 * input.c (assert_loceq): Same.
7070 * input.h: Same.
7071 * ipa-cp.c: Same.
7072 * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
7073 * ipa-fnsummary.h: Same.
7074 * ipa-inline.h: Same.
7075 * ipa-prop.h: Same.
7076 * ipa-split.c (visit_bb): Same.
7077 * ira-int.h (minmax_set_iter_next): Same.
7078 * loop-invariant.c: Same.
7079 * loop-iv.c: Same.
7080 * lra-eliminations.c: Same.
7081 * lra-int.h: Same.
7082 * lra-lives.c (mark_regno_dead): Same.
7083 * lra-remat.c: Same.
7084 * lra-spills.c: Same.
7085 * lto-streamer.h: Same.
7086 * mem-stats.h: Same.
7087 * omp-grid.c (omp_grid_lastprivate_predicate): Same.
7088 * omp-low.c (omp_clause_aligned_alignment): Same.
7089 * optabs-query.h (get_vcond_eq_icode): Same.
7090 * optabs.h: Same.
7091 * opts.c (wrap_help): Same.
7092 * poly-int.h: Same.
7093 * predict.c (predict_paths_leading_to_edge): Same.
7094 * pretty-print.h: Same.
7095 * profile-count.h: Same.
7096 * read-md.h: Same.
7097 * read-rtl-function.c: Same.
7098 * ree.c: Same.
7099 * reginfo.c: Same.
7100 * regrename.c: Same.
7101 * regrename.h: Same.
7102 * reload.h: Same.
7103 * rtl-iter.h: Same.
7104 * rtl.h (costs_add_n_insns): Same.
7105 * sanopt.c: Same.
7106 * sched-int.h: Same.
7107 * sel-sched-ir.h: Same.
7108 * selftest.h: Same.
7109 * sese.h (vec_find): Same.
7110 * stmt.c: Same.
7111 * target-globals.h: Same.
7112 * tree-affine.c (aff_combination_find_elt): Same.
7113 * tree-affine.h: Same.
7114 * tree-data-ref.h: Same.
7115 * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
7116 * tree-predcom.c: Same.
7117 * tree-scalar-evolution.c (find_var_scev_info): Same.
7118 * tree-ssa-alias.h: Same.
7119 * tree-ssa-ccp.c: Same.
7120 * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
7121 * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
7122 (rewrite_mem_refs): Same.
7123 (execute_sm_if_changed): Same.
7124 (hoist_memory_references): Same.
7125 * tree-ssa-loop-ivopts.c (operator<=): Same.
7126 * tree-ssa-loop.h: Same.
7127 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
7128 * tree-ssa-structalias.c: Same.
7129 * tree-switch-conversion.h (cluster::cluster): Same.
7130 (simple_cluster::simple_cluster): Same.
7131 * tree-vect-patterns.c (type_conversion_p): Same.
7132 * tree-vectorizer.c (dump_stmt_cost): Same.
7133 * tree-vectorizer.h (loop_vec_info_for_loop): Same.
7134 * tree.c (protected_set_expr_location): Same.
7135 * tree.h (desired_pro_or_demotion_p): Same.
7136 (fndecl_built_in_p): Same.
7137 * unique-ptr-tests.cc: Same.
7138 * var-tracking.c (delete_variable_part): Same.
7139 * varasm.c (assemble_real): Same.
7140 (tree_output_constant_def): Same.
7141 * vec.c: Same.
7142 * wide-int-bitmask.h: Same.
7143 * wide-int.h (decompose): Same.
7144
7145 2019-07-09 Richard Biener <rguenther@suse.de>
7146
7147 PR tree-optimization/91114
7148 * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
7149 find a vector type isn't fatal.
7150
7151 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7152
7153 * config/aarch64/aarch64-simd.md
7154 (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
7155 (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
7156 (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
7157 (*aarch64_crypto_aese_fused,
7158 *aarch64_crypto_aesd_fused): Update to new definition.
7159 * config/aarch64/aarch64.c
7160 (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
7161
7162 2019-07-09 Richard Biener <rguenther@suse.de>
7163
7164 * gimple-match.h (gimple_match_op::resimplify): New.
7165 (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
7166 gimple_resimplify4, gimple_resimplify5): Remove.
7167 * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
7168 gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
7169 Make static.
7170 (gimple_match_op::resimplify): New.
7171 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
7172 according to availability. Use gimple_match_op::resimplify.
7173
7174 2019-07-09 Eric Botcazou <ebotcazou@adacore.com>
7175
7176 * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
7177
7178 2019-07-09 Sylvia Taylor <sylvia.taylor@arm.com>
7179
7180 * config/arm/crypto.md:
7181 (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
7182 (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
7183 (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
7184 (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
7185 * config/arm/arm.c
7186 (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
7187 * config/arm/aarch-common-protos.h
7188 (aarch_crypto_can_dual_issue): Remove.
7189 * config/arm/aarch-common.c
7190 (aarch_crypto_can_dual_issue): Likewise.
7191 * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
7192 * config/arm/cortex-a53.md: Likewise.
7193 * config/arm/cortex-a57.md: Likewise.
7194 * config/arm/iterators.md:
7195 (CRYPTO_BINARY): Redefine.
7196 (CRYPTO_UNARY): Removed.
7197 (CRYPTO_AES, CRYPTO_AESMC): New.
7198
7199 2019-07-09 Richard Biener <rguenther@suse.de>
7200
7201 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
7202 (vn_reference_lookup_3): If the main ref has no access path recorded
7203 but orig_ref has use it to do access-path based disambiguation.
7204 (vn_reference_lookup_pieces): Adjust.
7205 (vn_reference_lookup): Pass down original ref if we valueized.
7206
7207 2019-07-09 Martin Liska <mliska@suse.cz>
7208
7209 * doc/extend.texi: Document influence on loop
7210 optimizers.
7211
7212 2019-07-09 Martin Liska <mliska@suse.cz>
7213
7214 * lto-compress.c (lto_normalized_zstd_level): Do not use
7215 ZSTD_CLEVEL_DEFAULT as it is not default in old releases
7216 of libzstd. One can use 0 as a default compression level.
7217
7218 2019-07-09 Martin Liska <mliska@suse.cz>
7219
7220 * doc/invoke.texi: Add link from -fprofile-dir option.
7221 Use better wording for 'gcno filename'.
7222
7223 2019-07-08 Martin Sebor <msebor@redhat.com>
7224
7225 PR middle-end/71924
7226 PR middle-end/90549
7227 * gimple-ssa-isolate-paths.c (isolate_path): Add attribute. Update
7228 comment.
7229 (args_loc_t): New type.
7230 (args_loc_t, locmap_t): same.
7231 (diag_returned_locals): New function.
7232 (is_addr_local): Same.
7233 (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
7234 (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
7235 (find_explicit_erroneous_behavior): Call warn_return_addr_local.
7236
7237 2019-07-08 Jakub Jelinek <jakub@redhat.com>
7238
7239 * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
7240 with SSA_NAME address of POINTER_PLUS_EXPR. Handle MULT_EXPR
7241 and casts in offset when different, both through gimple stmts
7242 and through trees. Rewritten using loops to minimize code duplication
7243 for each operand.
7244
7245 2019-07-08 Eric Botcazou <ebotcazou@adacore.com>
7246
7247 * emit-rtl.c (set_insn_locations): New function moved from...
7248 * function.c (set_insn_locations): ...here.
7249 * ira-emit.c (emit_moves): Propagate location of the first instruction
7250 to the inserted move instructions.
7251 * reg-stack.c (compensate_edge): Set the location if the sequence is
7252 inserted on the edge.
7253 * rtl.h (set_insn_locations): Declare.
7254
7255 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7256
7257 * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
7258 OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
7259 .machine string.
7260
7261 2019-07-08 Segher Boessenkool <segher@kernel.crashing.org>
7262
7263 PR rtl-optimization/88233
7264 * common.opt (fsplit-wide-types-early): New option.
7265 * common/config/rs6000/rs6000-common.c
7266 (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
7267 OPT_LEVELS_ALL.
7268 * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
7269 * lower-subreg.c (pass_lower_subreg2::gate): Add test for
7270 flag_split_wide_types_early.
7271 (pass_data_lower_subreg3): New.
7272 (pass_lower_subreg3): New.
7273 (make_pass_lower_subreg3): New.
7274 * passes.def (pass_lower_subreg2): Move after the loop passes.
7275 (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
7276 * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
7277 the pass pipeline; its previous place is taken by ...
7278 (make_pass_lower_subreg3): ... this.
7279
7280 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7281
7282 * config/s390/s390.c (s390_shift_truncation_mask): Define.
7283 (TARGET_SHIFT_TRUNCATION_MASK): Define.
7284
7285 2019-07-08 Robin Dapp <rdapp@linux.ibm.com>
7286
7287 * config/s390/constraints.md: Add new jsc constraint.
7288 * config/s390/predicates.md: New predicates.
7289 * config/s390/s390-protos.h (s390_valid_shift_count): New function.
7290 * config/s390/s390.c (s390_valid_shift_count): New function.
7291 (print_shift_count_operand): Use s390_valid_shift_count.
7292 (print_operand): Likewise.
7293 * config/s390/s390.md: Use new predicate.
7294 * config/s390/subst.md: Remove addr_style_op and masked_op substs.
7295 * config/s390/vector.md: Use new predicate.
7296
7297 2019-07-08 Andrew Waterman <andrew@sifive.com>
7298 Jim Wilson <jimw@sifive.com>
7299
7300 * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
7301 bitsize instead of BITS_PER_WORD.
7302
7303 2019-07-08 Martin Liska <mliska@suse.cz>
7304
7305 * collect2.c (defined): Revert to before r254460.
7306 (scan_prog_file): Revert to before r254460.
7307
7308 2019-07-08 Richard Biener <rguenther@suse.de>
7309
7310 PR tree-optimization/83518
7311 * tree-ssa-sccvn.c: Include splay-tree.h.
7312 (struct pd_range, struct pd_data): New.
7313 (struct vn_walk_cb_data): Add data to track partial definitions.
7314 (vn_walk_cb_data::~vn_walk_cb_data): New.
7315 (vn_walk_cb_data::push_partial_def): New.
7316 (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
7317 (vn_reference_lookup_2): When partial defs are registered give up.
7318 (vn_reference_lookup_3): Track partial defs for memset and
7319 constructor zeroing and for defs from constants.
7320
7321 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7322
7323 * doc/install.texi (bootstrap-Og): Document.
7324
7325 2019-07-08 Richard Sandiford <richard.sandiford@arm.com>
7326
7327 * config/riscv/pic.md (*local_pic_load_s<mode>)
7328 (*local_pic_load_u<mode>): Explicitly specify the mode iterator
7329 referenced by <mode>, giving...
7330 (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
7331 * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
7332 (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
7333 use <X:MODE> for the mode attribute.
7334
7335 2019-07-07 Jeff Law <law@redhat.com>
7336
7337 PR tree-optimization/91090
7338 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
7339 in handling of ranges to simplify switch statements.
7340
7341 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7342
7343 * config/darwin.c (darwin_override_options): Make a final check on PIC
7344 options.
7345
7346 2019-07-07 Iain Sandoe <iain@sandoe.co.uk>
7347
7348 * config/darwin.c (darwin_override_options): Don't jam symbol stubs
7349 on for kernel code.
7350
7351 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7352
7353 PR target/91068
7354 * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
7355 (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
7356 instead of matching them to "l" output operands.
7357
7358 2019-07-07 Richard Sandiford <richard.sandiford@arm.com>
7359
7360 * config/mips/mips.c (mips_split_move): Zero-initialize addr
7361 and check whether addr.reg is nonnull before using it.
7362
7363 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7364
7365 * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
7366 ctx->for_simd_scan_phase simd copy the outer var to the privatized
7367 variable(s). For conditional lastprivate look through outer
7368 GIMPLE_OMP_SCAN context.
7369 (lower_omp_1): For conditional lastprivate look through outer
7370 GIMPLE_OMP_SCAN context.
7371
7372 * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
7373 member to combined_into_simd_safelen1.
7374 (lower_rec_input_clauses, lower_omp_1): Adjust uses.
7375 (lower_lastprivate_clauses): Likewise. For conditional lastprivate
7376 clauses if ctx->combined_into_simd_safelen1 put statements after the
7377 predicate conditionalized block rather than into it.
7378
7379 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7380
7381 * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
7382 operand 1.
7383 * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
7384 Make the choice of <mode> explicit, giving...
7385 (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
7386
7387 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7388
7389 * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
7390 (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
7391 of .md attributes.
7392 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
7393 (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
7394 (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
7395 (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
7396 (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
7397 (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
7398 (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
7399 (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
7400 (*avx512f_scatterdi<mode>): Likewise.
7401 (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
7402
7403 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7404
7405 * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
7406 specify the mode iterator referenced by <mode>, giving...
7407 (*push1_h8300hs_<QHI:mode>): ...this.
7408
7409 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7410
7411 * config/gcn/gcn-valu.md
7412 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
7413 gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
7414 gen_vec_cmp<VEC_1REG_MODE:mode>di. Explicitly use
7415 gen_vcond_mask_<VEC_1REG_MODE:mode>di.
7416 (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
7417 but using the _exec comparison patterns.
7418 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
7419 gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
7420 gen_vec_cmp<VEC_1REG_INT_MODE:mode>di. Explicitly use
7421 gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
7422 (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
7423 but using the _exec comparison patterns.
7424
7425 2019-07-06 Richard Sandiford <richard.sandiford@arm.com>
7426
7427 * config/arm/sync.md
7428 (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
7429 <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
7430 (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
7431 <SIDI:sync_predtab>. Use <SIDI:cas_cmp_operand> and
7432 <SIDI:cas_cmp_str>.
7433
7434 2019-07-06 Jakub Jelinek <jakub@redhat.com>
7435
7436 * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
7437 (maybe_lookup_ctx): Add forward declaration.
7438 (omp_find_scan): Likewise. Walk into body of simd if composited
7439 with worksharing loop.
7440 (scan_omp_simd_scan): New function.
7441 (scan_omp_1_stmt): Call it.
7442 (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
7443 ctx->for_simd_scan_phase.
7444 (lower_rec_input_clauses): Do much less work for inscan reductions
7445 in ctx->for_simd_scan_phase is_simd regions.
7446 (lower_omp_scan): Set is_simd also on simd constructs composited
7447 with worksharing loop, unless ctx->for_simd_scan_phase. Never emit
7448 a sorry message. Don't change GIMPLE_OMP_SCAN stmts into nops and
7449 emit their body after in simd constructs composited with worksharing
7450 loop.
7451 (lower_omp_for_scan): Handle worksharing loop composited with simd.
7452
7453 * omp-low.c (omp_find_scan): Make static.
7454 (lower_omp_for_scan): Fix order of merge arguments in input phase of
7455 the second loop, var2 represents the first partial sum and so needs
7456 to go before rprivb[ivar].
7457
7458 2019-07-05 Iain Sandoe <iain@sandoe.co.uk>
7459
7460 * config/rs6000/rs6000-logue.c: Remove unused code.
7461
7462 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7463
7464 * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
7465
7466 2019-07-05 Sam Tebbs <sam.tebbs@arm.com>
7467
7468 PR target/90712
7469 * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
7470 check with a frame laid out check.
7471
7472 2019-07-05 Richard Biener <rguenther@suse.de>
7473
7474 * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
7475 when comparing against a store with possibly the same value.
7476
7477 2019-07-05 Richard Biener <rguenther@suse.de>
7478
7479 PR tree-optimization/91091
7480 * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
7481 (walk_non_aliased_vuses): Likewise.
7482 * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
7483 (get_continuation_for_phi): New tbaa_p parameter and pass
7484 it down.
7485 (walk_non_aliased_vuses): Likewise.
7486 * ipa-prop.c (determine_known_aggregate_parts): Adjust.
7487 * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
7488 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7489 Likewise.
7490 * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
7491 (adjust_offsets_for_equal_base_address): New function.
7492 (vn_reference_lookup_3): Use it to catch more base equivalences.
7493 Handle and pass down tbaa_p flag.
7494 (vn_reference_lookup_pieces): Adjust.
7495 (vn_reference_lookup): Remove alias-set altering, instead pass
7496 down false as tbaa_p.
7497
7498 2019-07-05 Richard Biener <rguenther@suse.de>
7499
7500 PR tree-optimization/91091
7501 * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
7502 accesses can happen with -fno-strict-aliasing.
7503
7504 2019-07-05 Jan Hubicka <hubicka@ucw.cz>
7505
7506 * tree-ssa-alias.c (alias_stats): Add
7507 nonoverlapping_component_refs_since_match_p_must_overlap.
7508 (dump_alias_stats): Print it.
7509 (nonoverlapping_component_refs_since_match_p): Add early exit.
7510 (nonoverlapping_component_refs_p): Do not account early exit.
7511
7512 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7513
7514 * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
7515 * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
7516 (emit_eh_dispatch): Delete.
7517 (lower_catch): Emit the eh_dispatch manually and set the location of
7518 the first catch statement onto it.
7519 (lower_eh_filter): Emit the eh_dispatch manually and set location.
7520 (lower_eh_dispatch): Propagate location.
7521 * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
7522 (eliminate_build): Likewise.
7523
7524 2019-07-05 Eric Botcazou <ebotcazou@adacore.com>
7525
7526 * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
7527 phi nodes if possible.
7528 * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
7529 location info on the newly created statement.
7530 * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
7531 newly created increment if needed.
7532
7533 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7534
7535 PR middle-end/78884
7536 * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
7537 (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
7538 loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
7539 (gimplify_adjust_omp_clauses): Add safelen (1) clause if
7540 ctx->add_safelen1 is set.
7541
7542 * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
7543 GOMP_loop_start at the start of second worksharing loop in a scan.
7544 For nowait, don't emit GOMP_loop_end_nowait at the end of first
7545 worksharing loop in a scan even if there are conditional lastprivates,
7546 and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
7547
7548 2019-07-04 Jan Hubicka <jh@suse.cz>
7549
7550 * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
7551 Fix check for match in the ref walk.
7552
7553 2019-07-04 Martin Liska <mliska@suse.cz>
7554
7555 * tree-ssa-loop-niter.c
7556 (get_upper_bound_based_on_builtin_expr_with_prob): New function.
7557 (estimate_numbers_of_iterations):
7558 Support __builtin_expect_with_probability for analysis
7559 of # of loop iterations.
7560
7561 2019-07-04 Alexandre Oliva <oliva@adacore.com>
7562
7563 * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
7564 * except.c: Likewise.
7565 * expr.c (expand_expr_real_1): Reject it.
7566 * gimplify.c (gimplify_expr): Gimplify it, within
7567 TRY_FINALLY_EXPR.
7568 * tree-dump.c (dequeue_and_dump): Dump it.
7569 * tree-pretty-print.c (dump_generic_node): Likewise.
7570 * tree.c (block_may_fallthru): Handle it.
7571 * tree.def (EH_ELSE_EXPR): Introduce it.
7572 * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
7573 with GIMPLE_EH_ELSE as try/finally/else.
7574
7575 2019-07-04 Richard Biener <rguenther@suse.de>
7576
7577 PR ipa/91062
7578 * tree-pass.h (execute_all_ipa_transforms): Add a flag
7579 parameter whether to disable GC collection.
7580 * passes.c (execute_one_ipa_transform_pass): Likewise, and
7581 honor it.
7582 (execute_all_ipa_transforms): Likewise and pass it down.
7583 * cgraph.c (cgraph_node::get_body): Do not invoke garbage
7584 collection from applying IPA transforms.
7585 * cgraphunit.c (cgraph_node::expand): Allow garbage collection
7586 from applying IPA transforms.
7587
7588 2019-07-04 Richard Biener <rguenther@suse.de>
7589
7590 PR tree-optimization/90911
7591 * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
7592 (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
7593 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
7594 scalar_loop_scaling.
7595 (vect_transform_loop): Scale scalar loop profile if needed.
7596 * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
7597 the loop copy from if-conversion adjust edge probabilities
7598 and scale the vectorized loop body profile, queue the scalar
7599 profile for updating after peeling.
7600
7601 2019-07-04 Jan Hubicka <jh@suse.cz>
7602
7603 * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
7604 parameters; return early for must-alias.
7605 (indirect_ref_may_alias_decl_p): Likewise; when establishing
7606 outer types match, try nonoverlapping_component_refs
7607 if must-alias is not obvious.
7608 (indirect_refs_may_alias_p): Likewise.
7609 (refs_may_alias_p_2): Likewise.
7610
7611 2019-07-04 Richard Biener <rguenther@suse.de>
7612
7613 * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
7614 argument.
7615 * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
7616 globals into...
7617 (struct vn_walk_cb_data): New callback data struct.
7618 (vn_reference_lookup_2): Adjust.
7619 (vn_reference_lookup_3): Likewise.
7620 (vn_reference_lookup_pieces): Likewise.
7621 (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
7622 (visit_reference_op_load): Adjust.
7623
7624 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7625
7626 PR tree-optimization/91063
7627 * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
7628 stmt from stmts sequence before calling vect_init_vector_1.
7629 Formatting fix.
7630
7631 2019-07-04 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
7632
7633 PR target/88833
7634 * fwprop.c (reg_single_def_p): New function.
7635 (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
7636 (forward_propagate_into): New parameter reg_prop_only
7637 with default value false.
7638 Propagate def's src into loop only if SET_SRC and SET_DEST
7639 of def_set have single definitions.
7640 Likewise if reg_prop_only is set to true.
7641 (fwprop): New param fwprop_addr_p.
7642 Integrate fwprop_addr into fwprop.
7643 (fwprop_addr): Remove.
7644 (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
7645 to true.
7646 (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
7647 * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
7648 * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
7649
7650 2019-07-04 Jakub Jelinek <jakub@redhat.com>
7651
7652 * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
7653 in worksharing loop scans.
7654
7655 PR tree-optimization/91074
7656 * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
7657 temporary.
7658
7659 PR rtl-optimization/90756
7660 * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
7661 for VECTOR_TYPE_P.
7662
7663 2019-07-03 Dennis Zhang <dennis.zhang@arm.com>
7664
7665 * config/aarch64/aarch64.md: Remove redundant constraints from
7666 define_expand but keep some patterns untouched if they are
7667 specially selected by TARGET_SECONDARY_RELOAD hook.
7668 * config/aarch64/aarch64-sve.md: Likewise.
7669 * config/aarch64/atomics.md: Remove redundant constraints from
7670 define_expand.
7671 * config/aarch64/aarch64-simd.md: Likewise.
7672
7673 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7674
7675 * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
7676 (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
7677 (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
7678 clauses.
7679 (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
7680 DARWIN_NOPIE_SPEC.
7681
7682 2019-07-03 Iain Sandoe <iain@sandoe.co.uk>
7683
7684 * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
7685 (STARTFILE_SPEC): Split crt3 into a separate spec.
7686 (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
7687 (DARWIN_CRT2_SPEC): New.
7688 (DARWIN_CRT3_SPEC): New.
7689 (MIN_LD64_OMIT_STUBS): Revise to 62.1.
7690 * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
7691 (DARWIN_CRT3_SPEC): New.
7692
7693 2019-07-03 Michael Meissner <meissner@linux.ibm.com>
7694
7695 * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
7696 Change the RTL attribute "length" from "4" to "*" to allow the
7697 length attribute to be adjusted automatically for prefixed load,
7698 store, and add immediate instructions.
7699 * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
7700 Likewise.
7701 (extendsi<mode>2, EXTSI iterator): Likewise.
7702 (movsi_internal1): Likewise.
7703 (movsi_from_sf): Likewise.
7704 (movdi_from_sf_zero_ext): Likewise.
7705 (mov<mode>_internal): Likewise.
7706 (movcc_internal1, QHI iterator): Likewise.
7707 (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
7708 (movsf_from_si): Likewise.
7709 (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
7710 (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
7711 (mov<mode>, FMOVE128 iterator): Likewise.
7712 (movdi_internal64): Likewise.
7713 * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
7714 Likewise.
7715 (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
7716 (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
7717 (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
7718 (vsx_splat_v4sf): Likewise.
7719
7720 2019-07-03 Mark Wielaard <mark@klomp.org>
7721
7722 PR debug/90981
7723 * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
7724 DW_AT_addr_base if there is actually a .debug_addr section with
7725 addresses.
7726 (output_addr_table): Add DWARF5 table header generation here after
7727 checking there are actually any addresses from...
7728 (dwarf2out_finish): ...here.
7729
7730 2019-07-03 Richard Biener <rguenther@suse.de>
7731
7732 PR middle-end/91069
7733 * match.pd (vec_perm -> bit_insert): Fix element read from
7734 first vector.
7735
7736 2019-07-03 Martin Liska <mliska@suse.cz>
7737
7738 * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
7739 * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
7740 condition.
7741 * generic-match-head.c: Include dbgcnt.h.
7742 * gimple-match-head.c: Likewise.
7743
7744 2019-07-03 Martin Liska <mliska@suse.cz>
7745
7746 * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
7747 (GCOV_COUNTER_V_TOPN): New.
7748 (GCOV_COUNTER_V_INDIR): Use _topn.
7749 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
7750 (GCOV_TOPN_VALUES): New.
7751 (GCOV_SINGLE_VALUE_COUNTERS): Remove.
7752 (GCOV_TOPN_VALUES_COUNTERS): New.
7753 * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
7754 * tree-profile.c:
7755 (gimple_init_gcov_profiler): Rename variables from one_value
7756 to topn_values.
7757 (gimple_gen_one_value_profiler): Remove.
7758 (gimple_gen_topn_values_profiler): New function.
7759 * value-prof.c (dump_histogram_value): Use TOPN_VALUES
7760 names instead of SINGLE_VALUE.
7761 (stream_out_histogram_value): Likewise.
7762 (stream_in_histogram_value): Likewise.
7763 (get_most_common_single_value): Likewise.
7764 (gimple_divmod_fixed_value_transform): Likewise.
7765 (gimple_stringops_transform): Likewise.
7766 (gimple_divmod_values_to_profile): Likewise.
7767 (gimple_stringops_values_to_profile): Likewise.
7768 (gimple_find_values_to_profile): Likewise.
7769 * value-prof.h (enum hist_type): Rename to TOPN.
7770 (gimple_gen_one_value_profiler): Remove.
7771 (gimple_gen_topn_values_profiler): New.
7772
7773 2019-07-03 Eric Botcazou <ebotcazou@adacore.com>
7774
7775 * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
7776 if it has the DW_AT_data_member_location attribute.
7777
7778 2019-07-03 Richard Biener <rguenther@suse.de>
7779
7780 * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
7781 dumping.
7782
7783 2019-07-03 Sylvia Taylor <sylvia.taylor@arm.com>
7784
7785 * config/aarch64/aarch64.md (FP_REGNUM): New constant.
7786 (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
7787 (tlsdesc_small_sve_<mode>): Likewise.
7788
7789 2019-07-03 Martin Liska <mliska@suse.cz>
7790
7791 * Makefile.in: Define ZSTD_LIB.
7792 * common.opt: Adjust compression level
7793 to support also zstd levels.
7794 * config.in: Regenerate.
7795 * configure: Likewise.
7796 * configure.ac: Add --with-zstd and --with-zstd-include options
7797 and detect ZSTD.
7798 * doc/install.texi: Mention zstd dependency.
7799 * gcc.c: Print supported LTO compression algorithms.
7800 * lto-compress.c (lto_normalized_zstd_level): Likewise.
7801 (lto_compression_zstd): Likewise.
7802 (lto_uncompression_zstd): Likewise.
7803 (lto_end_compression): Dispatch in between zlib and zstd.
7804 (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
7805 (lto_uncompression_zlib): Make it static.
7806 * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
7807 * lto-section-in.c (lto_get_section_data): Pass info
7808 about used compression.
7809 * lto-streamer-out.c: By default use zstd when possible.
7810 * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
7811 (TV_IPA_LTO_COMPRESS): Likewise for compression.
7812
7813 2019-07-03 Martin Liska <mliska@suse.cz>
7814
7815 * lto-section-in.c (lto_get_section_data): Add "lto" section.
7816 * lto-section-out.c (lto_destroy_simple_output_block): Never
7817 compress LTO_section_lto section.
7818 * lto-streamer-out.c (produce_asm): Do not set major_version
7819 and minor_version.
7820 (lto_output_toplevel_asms): Likewise.
7821 (produce_lto_section): New function.
7822 (lto_output): Call produce_lto_section.
7823 (lto_write_mode_table): Do not set major_version and
7824 minor_version.
7825 (produce_asm_for_decls): Likewise.
7826 * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
7827 type.
7828 (struct lto_header): Remove.
7829 (struct lto_section): New struct.
7830 (struct lto_simple_header): Do not inherit from lto_header.
7831 (struct lto_file_decl_data): Add lto_section_header field.
7832
7833 2019-07-03 Martin Liska <mliska@suse.cz>
7834
7835 * lra-eliminations.c (eliminate_regs_in_insn): Remove
7836 dead assignemts.
7837 * reg-stack.c (check_asm_stack_operands): Likewise.
7838 * tree-ssa-structalias.c (create_function_info_for): Likewise.
7839 * tree-vect-generic.c (expand_vector_operations_1): Likewise.
7840 * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
7841 force_expand_binop.
7842
7843 2019-07-03 Martin Liska <mliska@suse.cz>
7844
7845 PR tree-optimization/90892
7846 * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
7847 in string constants.
7848
7849 2019-07-03 Martin Liska <mliska@suse.cz>
7850
7851 PR middle-end/90899
7852 * multiple_target.c (create_dispatcher_calls): Add to comdat
7853 group only if set for ifunc.
7854
7855 2019-07-03 Martin Liska <mliska@suse.cz>
7856
7857 PR target/88056
7858 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
7859 Define local_object_name in outer scope in order to handle
7860 use-after-scope issue.
7861
7862 2019-07-03 Martin Liska <mliska@suse.cz>
7863
7864 * common.opt: Add fprofile-note.
7865 * coverage.c (coverage_init): Append the option
7866 to bbg_file_name.
7867 * doc/invoke.texi: Document -fprofile-note.
7868
7869 2019-07-03 Jakub Jelinek <jakub@redhat.com>
7870
7871 PR tree-optimization/91033
7872 * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
7873 vect_analyze_data_refs): Add bool * arguments.
7874 * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
7875 if failure is due to scatter/gather, set *fatal to false if non-NULL.
7876 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
7877 * tree-vect-loop.c (vect_analyze_loop_2): Adjust
7878 vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
7879 * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
7880 vect_analyze_data_refs caller.
7881
7882 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
7883 clause.
7884 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
7885 OMP_CLAUSE__CONDTEMP_ as range's upper bound.
7886 (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
7887 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
7888 OMP_CLAUSE__SCANTEMP_ entry.
7889 (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
7890 * tree-pretty-print.c (dump_omp_clause): Likewise.
7891 * tree-nested.c (convert_nonlocal_omp_clauses,
7892 convert_local_omp_clauses): Likewise.
7893 * omp-general.h (struct omp_for_data): Add have_scantemp and
7894 have_nonctrl_scantemp members.
7895 * omp-general.c (omp_extract_for_data): Initialize them.
7896 * omp-low.c (struct omp_context): Add scan_exclusive member.
7897 (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
7898 result again with GF_OMP_FOR_KIND_MASK. Initialize also
7899 ctx->scan_exclusive.
7900 (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
7901 of !ctx->scan_inclusive.
7902 (lower_rec_input_clauses): Simplify gimplification of dtors using
7903 gimplify_and_add. For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
7904 rather than rvarp. Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
7905 loops. Don't add barrier for reduction_omp_orig_ref if
7906 ctx->scan_??xclusive.
7907 (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
7908 (lower_omp_scan): Use ctx->scan_exclusive instead
7909 of !ctx->scan_inclusive. Handle worksharing loops with inscan
7910 reductions. Use new_vard != new_var instead of repeated
7911 omp_is_reference calls.
7912 (omp_find_scan, lower_omp_for_scan): New functions.
7913 (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
7914 inscan reductions.
7915 * omp-expand.c (expand_omp_scantemp_alloc): New function.
7916 (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
7917 and fd->have_scantemp.
7918
7919 * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
7920 on worksharing loop propagate it as shared clause to containing
7921 combined parallel.
7922
7923 * omp-expand.c (expand_omp_for_static_nochunk,
7924 expand_omp_for_static_chunk): For nowait worksharing loop with
7925 conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
7926 at the end.
7927
7928 2019-07-02 qing zhao <qing.zhao@oracle.com>
7929
7930 PR preprocessor/90581
7931 * doc/cppopts.texi: Add document for -fmax-include-depth.
7932 * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
7933
7934 2019-07-02 Uroš Bizjak <ubizjak@gmail.com>
7935
7936 * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
7937 Use TARGET_SSE2 && SSE_REGNO_P in split condition.
7938 (mmx_packssdw): Ditto.
7939 (mmx_punpckhbw): Ditto.
7940 (mmx_punpcklbw): Ditto.
7941 (mmx_punpckhwd): Ditto.
7942 (mmx_punpcklwd): Ditto.
7943 (mmx_punpckhdq): Ditto.
7944 (mmx_punpckldq): Ditto.
7945 (*vec_dupv4hi): Ditto.
7946 (*vec_dupv2si): Ditto.
7947 (mmx_pmovmskb): Ditto.
7948 * config/i386/sse.md (sse_cvtpi2ps): Use
7949 TARGET_SSE2 && SSE_REG_P in split condition.
7950 (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
7951 TARGET_SSSE3 && SSE_REGNO_P in split condition.
7952 (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
7953 (ssse3_pshufbv8qi3): Ditto.
7954 (ssse3_palignrdi): Ditto.
7955
7956 2019-07-02 Andrew Stubbs <ams@codesourcery.com>
7957
7958 * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
7959 with inlined save and restore.
7960
7961 2019-07-02 Eric Botcazou <ebotcazou@adacore.com>
7962
7963 * cfgexpand.c (pass_expand::execute): Deal specially with instructions
7964 to be inserted on single successor edge of the entry block. Then call
7965 commit_edge_insertions instead of inserting the instructions manually.
7966 * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
7967 RTL expansion and rebuild jump labels chain.
7968
7969 2019-07-02 Richard Biener <rguenther@suse.de>
7970
7971 * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
7972 TI_CHREC_KNOWN.
7973 * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7974 Define here.
7975 * tree.c (build_common_tree_nodes): Initialize them.
7976 * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
7977 Make declarations comments.
7978 * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
7979 chrec_known): Remove definitions.
7980 (initialize_scalar_evolutions_analyzer): Remove.
7981 (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
7982 * tree-streamer.c (preload_common_nodes): Do not preload
7983 TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
7984
7985 2019-07-02 Jan Hubicka <jh@suse.cz>
7986
7987 * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
7988 sanity check.
7989
7990 2019-07-02 Jan Hubicka <jh@suse.cz>
7991
7992 * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
7993 to ..
7994 (nonoverlapping_component_refs_since_match_p): ... this one;
7995 handle also non-decl bases; return -1 if search gave up.
7996 (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
7997 nonoverlapping_component_refs_of_decl_p_no_alias to
7998 nonoverlapping_component_refs_since_match_p_may_alias,
7999 nonoverlapping_component_refs_since_match_p_no_alias.
8000 (dump_alias_stats): Update dumping.
8001 (aliasing_matching_component_refs_p): Break out from ...;
8002 dispatch to nonoverlapping_component_refs_for_decl_p
8003 and nonoverlapping_component_refs_since_match_p.
8004 (aliasing_component_refs_p): ... here; call
8005 nonoverlapping_component_refs_p in scenarios where we can not
8006 precisely determine base match.
8007 (decl_refs_may_alias_p): Use
8008 nonoverlapping_component_refs_since_match_p.
8009 (indirect_ref_may_alias_decl_p): Do not call
8010 nonoverlapping_component_refs_p.
8011 (indirect_refs_may_alias_p): Likewise.
8012
8013 2019-07-02 Jan Hubicka <jh@suse.cz>
8014
8015 * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
8016 to clobber of return value.
8017
8018 2019-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8019
8020 * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
8021 for is_neon_type instructions that have not already been categorized.
8022
8023 2019-07-02 Richard Biener <rguenther@suse.de>
8024
8025 PR tree-optimization/58483
8026 * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
8027 for MEM_REF base hashing.
8028 (equal_mem_array_ref_p): Likewise for base comparison.
8029
8030 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8031
8032 * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
8033 parameterized name.
8034 (signbit<mode>2): Use that name. Simplify.
8035
8036 2019-07-01 Joern Rennecke <joern.rennecke@riscy-ip.com>
8037
8038 PR middle-end/66726
8039 * tree-ssa-phiopt.c (factor_out_conditional_conversion):
8040 Tune heuristic from PR71016 to allow MIN / MAX.
8041
8042 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8043
8044 * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
8045 parameterized name.
8046 (abs<mode>2): Use that name. Simplify.
8047
8048 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8049
8050 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
8051 parameterized name.
8052 (neg<mode>2): Use that name. Simplify.
8053
8054 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8055
8056 * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
8057 name.
8058 (abs<mode>2): Use that name. Simplify.
8059
8060 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8061
8062 * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
8063 name.
8064 (neg<mode>2): Use that name. Simplify.
8065
8066 2019-07-01 Uroš Bizjak <ubizjak@gmail.com>
8067
8068 * config/i386/i386.md ("isa" attribute): Add sse_noavx.
8069 ("enabled" attribute): Handle sse_noavx isa attribute.
8070 * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
8071 Use TARGET_SSE && SSE_REGNO_P in split condition.
8072 (*vec_dupv2sf): Ditto.
8073
8074 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8075
8076 * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
8077 name.
8078 (floatsi<mode>2): Use that name. Simplify.
8079
8080 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8081
8082 * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
8083 parameterized name.
8084 (extenddf<mode>2_vsx): Make this a parameterized name.
8085 (extenddf<mode>2): Use those names. Simplify.
8086
8087 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8088
8089 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
8090 name.
8091 (eh_return): Use that name. Simplify.
8092
8093 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8094
8095 * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
8096 (doloop_end): Use that name. Simplify.
8097
8098 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8099
8100 * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
8101 parameterized name.
8102 (indirect_jump): Use that name. Simplify.
8103
8104 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8105
8106 * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
8107 parameterized name.
8108 (abs<mode>2): Use that name. Simplify.
8109
8110 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8111
8112 * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
8113 parameterized name.
8114 (fix_trunc<mode>si2): Use that name. Simplify.
8115
8116 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8117
8118 * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
8119 (allocate_stack): Use that name. Simplify.
8120
8121 2019-07-01 Martin Sebor <msebor@redhat.com>
8122
8123 PR middle-end/90923
8124 * hash-map.h (hash_map::put): On insertion invoke element ctor.
8125 (hash_map::get_or_insert): Same. Reformat comment.
8126 * hash-set.h (hash_set::add): On insertion invoke element ctor.
8127 * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8128 * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
8129 * hash-table.h (hash_table::operator=): Prevent copy assignment.
8130 (hash_table::hash_table (const hash_table&)): Use copy ctor
8131 instead of assignment to copy elements.
8132
8133 2019-07-01 Wilco Dijkstra <wdijkstr@arm.com>
8134 John David Anglin <danglin@gcc.gnu.org>
8135
8136 PR target/90963
8137 * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
8138 using saved frame pointer.
8139
8140 2019-07-01 Eric Botcazou <ebotcazou@adacore.com>
8141
8142 PR middle-end/64242
8143 * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
8144 Add frame clobber and schedule blockage.
8145
8146 2019-07-01 Sandra Loosemore <sandra@codesourcery.com>
8147
8148 * doc/invoke.texi (Link Options): Further editorial changes to
8149 -flinker-output docs.
8150
8151 2019-07-01 Segher Boessenkool <segher@kernel.crashing.org>
8152
8153 * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
8154 Load both operands of a PLUS into registers separately.
8155
8156 2019-07-01 Andreas Krebbel <krebbel@linux.ibm.com>
8157
8158 * config/s390/vector.md: Fix shift count operand printing.
8159
8160 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8161
8162 * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
8163
8164 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8165
8166 * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
8167 Use recog_data to test for an output operand.
8168
8169 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8170
8171 * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
8172 exclude any others that are disparaged or that are bound to need
8173 a reload or spill.
8174 (ira_get_dup_out_num): Expand comment.
8175
8176 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8177
8178 * ira.c (ira_setup_alts): Use preprocess_constraints to get the
8179 constraint string for each operand/alternative combo. Only handle
8180 '%' at the start of constraint strings, and look for it outside
8181 the main loop.
8182
8183 2019-07-01 Richard Sandiford <richard.sandiford@arm.com>
8184
8185 * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
8186 alternative_mask instead of HARD_REG_SET to represent a
8187 bitmask of alternatives.
8188 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
8189 * ira-conflicts.c (add_insn_allocno_copies): Likewise.
8190
8191 2019-07-01 Martin Liska <mliska@suse.cz>
8192
8193 * edit-context.c (test_applying_fixits_unreadable_file): Do not
8194 use () for a constructor call.
8195 (test_applying_fixits_line_out_of_range): Likewise.
8196 * ggc-page.c (alloc_page): Use (void *) for %p printf format
8197 argument.
8198 (free_page): Likewise.
8199
8200 2019-07-01 Vladislav Ivanishin <vlad@ispras.ru>
8201
8202 * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
8203 parameter names to match usage (no functional change).
8204 (GdbPrettyPrinters.add_printer_for_regex): Ditto.
8205
8206 2019-07-01 Richard Biener <rguenther@suse.de>
8207
8208 * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
8209 pass parameter.
8210 (pass_fre::execute): Honor it.
8211 * passes.def: Adjust pass_fre invocations to allow iterating,
8212 add non-iterating pass_fre before late threading/dom.
8213
8214 2019-07-01 Richard Biener <rguenther@suse.de>
8215
8216 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
8217 TARGET_MEM_REF handling to also handle address-taken ones.
8218
8219 2019-07-01 Hongtao Liu <hongtao.liu@intel.com>
8220
8221 * doc/sourcebuild.texi (Effective-Target Keywords, Other
8222 hardware attributes): Document avx512vp2intersect.
8223
8224 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8225
8226 * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
8227 (abs<mode>2): New expander.
8228 * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
8229 Use CODE_FOR_ssse3_absv8qi2.
8230 (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
8231 (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
8232
8233 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8234
8235 * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
8236 to sse, sse_noavx and avx. Update all uses.
8237
8238 2019-06-30 Uroš Bizjak <ubizjak@gmail.com>
8239
8240 * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
8241 (*mmx_<plusminus_insn><mode>3): Ditto.
8242 (*mmx_mulv4hi3"): Ditto.
8243 (*mmx_smulv4hi3_highpart): Ditto.
8244 (*mmx_umulv4hi3_highpart): Ditto.
8245 (*mmx_pmaddwd): Ditto.
8246 (*sse2_umulv1siv1di3): Ditto.
8247 (*mmx_<code>v4hi3): Ditto.
8248 (*mmx_<code>v8qi3): Ditto.
8249 (mmx_ashr<mode>3): Ditto.
8250 ("mmx_<shift_insn><mode>3): Ditto.
8251 (*mmx_eq<mode>3): Ditto.
8252 (mmx_gt<mode>3): Ditto.
8253 (mmx_andnot<mode>3): Ditto.
8254 (*mmx_<code><mode>3): Ditto.
8255 (*mmx_pinsrw): Ditto.
8256 (*mmx_pextrw): Ditto.
8257 (mmx_pshufw_1): Ditto.
8258 (*mmx_uavgv8qi3): Ditto.
8259 (*mmx_uavgv4hi3): Ditto.
8260 ("mmx_psadbw): Ditto.
8261 * config/i386/sse.md (sse_cvtps2pi): Ditto.
8262 (sse_cvttps2pi): Ditto.
8263 (ssse3_pmaddubsw): Ditto.
8264 (*ssse3_pmulhrswv4hi3): Ditto.
8265 (ssse3_psign<mode>3): Ditto.
8266
8267 2019-06-29 Eric Botcazou <ebotcazou@adacore.com>
8268
8269 * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
8270 adjustment for bit-fields to all aggregate types.
8271
8272 2019-06-28 Michael Meissner <meissner@linux.ibm.com>
8273
8274 * config/rs6000/predicates.md (pcrel_address): Use
8275 SYMBOL_REF_LOCAL_P to determine if a label is local.
8276 (pcrel_external_address): New predicate.
8277 (non_prefixed_mem_operand): Delete, predicate not used.
8278 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
8279 SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
8280 addressing.
8281 (SYMBOL_REF_PCREL_P): Likewise.
8282
8283 PR target/91009
8284 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
8285 alternative.
8286 (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
8287 (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
8288 (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
8289
8290 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8291
8292 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
8293 override on extra_headers.
8294
8295 2019-06-28 Iain Sandoe <iain@sandoe.co.uk>
8296
8297 * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
8298 * config/darwin-driver.c (darwin_default_min_version): Remove newline
8299 from warning.
8300 (darwin_driver_init): Likewise.
8301
8302 2019-06-28 Jan Beulich <jbeulich@suse.com>
8303
8304 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8305 vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
8306 Eliminate redundant alternative.
8307
8308 2019-06-28 Jan Beulich <jbeulich@suse.com>
8309
8310 * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
8311 vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
8312 Use vector_operand.
8313
8314 2019-06-28 Claudiu Zissulescu <claziss@synopsys.com>
8315
8316 * config/arc/arc.c (arc_rtx_costs): All short instructions are
8317 having a lower cost regardless of the speed option.
8318
8319 2019-06-28 Jan Beulich <jbeulich@suse.com>
8320
8321 * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
8322 vector_operand plus, on both alternatives, "Bm" constraint.
8323
8324 2019-06-28 Dennis Zhang <dennis.zhang@arm.com>
8325
8326 * config/arm/arm.md: Remove redundant constraints from
8327 define_expand but leave reload_inm and reload_outm patterns
8328 untouched since they need special constraints to work.
8329 * config/arm/arm-fixed.md: Remove redundant constraints from
8330 define_expand.
8331 * config/arm/iwmmxt.md: Likewise.
8332 * config/arm/neon.md: Likewise.
8333 * config/arm/sync.md: Likewise.
8334 * config/arm/thumb1.md: Likewise.
8335 * config/arm/vec-common.md: Likewise.
8336
8337 2019-06-27 Ilia Diachkov <ilia.diachkov@optimitech.com>
8338
8339 * doc/install.texi: Document --disable-tm-clone-registry.
8340
8341 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8342
8343 PR c++/91024
8344 * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
8345 statements.
8346
8347 PR tree-optimization/91010
8348 * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
8349 return true. Otherwise, don't call operand_equal_p if offset1 or
8350 offset2 is NULL and just return false.
8351
8352 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8353
8354 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
8355 user-specified float mode choice for kernel mode code.
8356
8357 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8358
8359 * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
8360 spec.
8361
8362 2019-06-27 Iain Sandoe <iain@sandoe.co.uk>
8363
8364 * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
8365 use longcall for 64b code.
8366
8367 2019-06-27 Aaron Sawdey <acsawdey@linux.ibm.com>
8368
8369 * builtins.c (get_memory_rtx): Fix comment.
8370 * optabs.def (movmem_optab): Change to cpymem_optab.
8371 * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
8372 (emit_block_move_hints): Change movmem to cpymem.
8373 * defaults.h: Change movmem to cpymem.
8374 * targhooks.c (get_move_ratio): Change movmem to cpymem.
8375 (default_use_by_pieces_infrastructure_p): Ditto.
8376 * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
8377 * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
8378 to cpymem.
8379 * config/aarch64/aarch64.h: Change movmem to cpymem.
8380 * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
8381 * config/alpha/alpha.h: Change movmem to cpymem in comment.
8382 * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
8383 movmem to cpymem.
8384 * config/arc/arc-protos.h: Change movmem to cpymem.
8385 * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
8386 * config/arc/arc.h: Change movmem to cpymem in comment.
8387 * config/arc/arc.md (movmemsi): Change movmem to cpymem.
8388 * config/arm/arm-protos.h: Change movmem to cpymem in names.
8389 * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
8390 gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
8391 * config/arm/arm.md (movmemqi): Change movmem to cpymem.
8392 * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
8393 * config/avr/avr-protos.h: Change movmem to cpymem.
8394 * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
8395 avr_out_movmem): Change movmem to cpymem.
8396 * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
8397 Change movmem to cpymem.
8398 * config/bfin/bfin-protos.h: Change movmem to cpymem.
8399 * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
8400 Change movmem to cpymem.
8401 * config/bfin/bfin.h: Change movmem to cpymem in comment.
8402 * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
8403 * config/c6x/c6x-protos.h: Change movmem to cpymem.
8404 * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
8405 * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
8406 * config/frv/frv.md (movmemsi): Change name to cpymemsi.
8407 * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
8408 * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
8409 * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
8410 expand_set_or_movmem_via_rep, expand_movmem_epilogue,
8411 expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
8412 expand_small_cpymem_or_setmem,
8413 expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
8414 expand_set_or_cpymem_constant_prologue,
8415 ix86_expand_set_or_cpymem): Change movmem to cpymem.
8416 * config/i386/i386-protos.h: Change movmem to cpymem.
8417 * config/i386/i386.h: Change movmem to cpymem in comment.
8418 * config/i386/i386.md (movmem<mode>): Change name to cpymem.
8419 (setmem<mode>): Change expansion function name.
8420 * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
8421 * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
8422 movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
8423 * config/m32c/m32c-protos.h: Change movmem to cpymem.
8424 * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
8425 * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
8426 * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
8427 to cpymem.
8428 * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
8429 * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
8430 * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
8431 * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
8432 Change movmem to cpymem.
8433 * config/mips/mips.h: Change movmem to cpymem.
8434 * config/mips/mips.md (movmemsi): Change name to cpymemsi.
8435 * config/nds32/nds32-memory-manipulation.c
8436 (nds32_expand_movmemsi_loop_unknown_size,
8437 nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
8438 nds32_expand_movmemsi_unroll,
8439 nds32_expand_movmemsi): Change movmem to cpymem.
8440 * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
8441 * config/nds32/nds32-protos.h: Change movmem to cpymem.
8442 * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
8443 (pa_adjust_insn_length): Change call to compute_movmem_length.
8444 * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
8445 movmemdi, movmemdi_prereload,
8446 movmemdi_postreload): Change movmem to cpymem.
8447 * config/pdp11/pdp11.md (movmemhi, movmemhi1,
8448 movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
8449 * config/riscv/riscv.c: Change movmem to cpymem in comment.
8450 * config/riscv/riscv.h: Change movmem to cpymem.
8451 * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
8452 * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
8453 * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
8454 movmem to cpymem.
8455 * config/s390/s390-protos.h: Change movmem to cpymem.
8456 * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
8457 s390_expand_insv): Change movmem to cpymem.
8458 * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
8459 movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
8460 * config/sh/sh.md (movmemsi): Change name to cpymemsi.
8461 * config/sparc/sparc.h: Change movmem to cpymem in comment.
8462 * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
8463 for nonexistent function.
8464 * config/vax/vax.h: Change movmem to cpymem in comment.
8465 * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
8466 * config/visium/visium.h: Change movmem to cpymem in comment.
8467 * config/visium/visium.md (movmemsi): Change name to cpymemsi.
8468 * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
8469 * doc/md.texi: Change movmem to cpymem and update description to match.
8470 * doc/rtl.texi: Change movmem to cpymem.
8471 * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
8472 * doc/tm.texi: Regenerate.
8473
8474 2019-06-27 Bill Schmidt <wschmidt@linux.ibm.com>
8475
8476 * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
8477 -fvariable-expansion-in-unroller by default.
8478 * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
8479 default for Power.
8480
8481 2019-06-27 David Edelsohn <dje.gcc@gmail.com>
8482
8483 Revert
8484 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8485 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8486
8487 * config.gcc(rs6000-*-*): Define target_gtfiles.
8488
8489 2019-06-27 Jan Hubicka <jh@suse.cz>
8490
8491 * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
8492 (add_type_duplicate): When odr hash is not allocated, to nothing.
8493 (odr_based_tbaa_p): New function.
8494 (set_type_canonical_for_odr_type): New function.
8495 * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
8496 set_type_canonical_for_odr_type): New.
8497 * tree.c (gimple_canonical_types_compatible_p): ODR types with
8498 ODR based TBAA are not equivalent to non-ODR types.
8499
8500 2019-06-27 Martin Liska <mliska@suse.cz>
8501
8502 PR tree-optimization/90974
8503 PR rtl-optimization/90975
8504 PR rtl-optimization/90976
8505 PR target/91016
8506 PR tree-optimization/91017
8507 * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
8508 unused tmp.
8509 * lra.c (lra_set_insn_recog_data): Remove a leftover from
8510 initial commit of IRA.
8511 * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
8512 of op0 and op1.
8513 * tree-vect-loop.c (vect_create_epilog_for_reduction):
8514 Remove unused mode1.
8515 * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
8516 to new_stmt_info.
8517
8518 2019-06-27 Jakub Jelinek <jakub@redhat.com>
8519
8520 PR target/90991
8521 * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
8522 instead of register_operand for operands[1], add m to its constraints
8523 if operands[2] uses "C" constraint. Ensure in condition that if
8524 operands[2] is not 0, then operands[1] is not a MEM. For last two
8525 alternatives, use unaligned loads instead of aligned if operands[1] is
8526 misaligned_operand.
8527
8528 2019-06-27 Martin Liska <mliska@suse.cz>
8529
8530 * asan.c (asan_emit_allocas_unpoison): Remove obviously
8531 dead assignments.
8532 * bt-load.c (move_btr_def): Likewise.
8533 * builtins.c (expand_builtin_apply_args_1): Likewise.
8534 (expand_builtin_apply): Likewise.
8535 * cfgexpand.c (expand_asm_stmt): Likewise.
8536 (construct_init_block): Likewise.
8537 * cfghooks.c (verify_flow_info): Likewise.
8538 * cfgloopmanip.c (remove_path): Likewise.
8539 * cfgrtl.c (rtl_verify_bb_layout): Likewise.
8540 * cgraph.c (cgraph_node::set_pure_flag): Likewise.
8541 * combine.c (simplify_if_then_else): Likewise.
8542 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
8543 (choose_basereg): Likewise.
8544 (ix86_expand_prologue): Likewise.
8545 (ix86_preferred_output_reload_class): Likewise.
8546 * cselib.c (cselib_record_sets): Likewise.
8547 * df-scan.c (df_scan_alloc): Likewise.
8548 * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
8549 * early-remat.c (early_remat::record_equiv_candidates): Likewise.
8550 * emit-rtl.c (try_split): Likewise.
8551 * graphite-scop-detection.c (assign_parameter_index_in_region):
8552 Likewise.
8553 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
8554 * ira-color.c (setup_profitable_hard_regs): Likewise.
8555 * ira.c (rtx_moveable_p): Likewise.
8556 * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
8557 * read-rtl.c (read_subst_mapping): Likewise.
8558 * regrename.c (scan_rtx): Likewise.
8559 * reorg.c (fill_slots_from_thread): Likewise.
8560 * tree-inline.c (tree_function_versioning): Likewise.
8561 * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
8562 * tree-ssa-sink.c (statement_sink_location): Likewise.
8563 * tree-ssa-threadedge.c (thread_across_edge): Likewise.
8564 * tree-vect-loop.c (vect_get_loop_niters): Likewise.
8565 (vect_create_epilog_for_reduction): Likewise.
8566 * tree.c (build_nonstandard_integer_type): Likewise.
8567
8568 2019-06-27 Richard Biener <rguenther@suse.de>
8569
8570 * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
8571
8572 2019-06-27 Jun Ma <JunMa@linux.alibaba.com>
8573
8574 PR tree-optimization/89772
8575 * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
8576 out-of-bound accesses checking.
8577
8578 2019-06-27 Martin Liska <mliska@suse.cz>
8579
8580 PR tree-optimization/91014
8581 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
8582 when LHS is NULL_TREE.
8583
8584 2019-06-27 Martin Liska <mliska@suse.cz>
8585
8586 * symbol-summary.h (traverse): Pass
8587 argument a to the call of callback.
8588 (gt_ggc_mx): Mark arguments as unused.
8589 (gt_pch_nx): Likewise.
8590
8591 2019-06-27 Kewen Lin <linkw@gcc.gnu.org>
8592
8593 PR target/62147
8594 * loop-iv.c (find_simple_exit): Call finite_loop_p to update
8595 finiteness.
8596
8597 2019-06-26 Jeff Law <law@redhat.com>
8598
8599 PR tree-optimization/90883
8600 * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
8601 (delete_dead_or_redundant_assignment): Likewise.
8602
8603 PR tree-optimization/90883
8604 * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
8605 * tree-ssa-dse.c: Update various comments to distinguish between
8606 dead and redundant stores.
8607 (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
8608 (dse_optimize_redundant_stores): New function.
8609 (delete_dead_or_redundant_call): Renamed from delete_dead_call.
8610 Distinguish between dead and redundant calls in dump output. All
8611 callers updated.
8612 (delete_dead_or_redundant_assignment): Similarly for assignments.
8613 (dse_optimize_stmt): Handle _CHK variants. For statements which
8614 store 0 into multiple memory locations, try to prove a subsequent
8615 store is redundant.
8616
8617 2019-06-26 Uroš Bizjak <ubizjak@gmail.com>
8618
8619 PR target/89021
8620 * config/i386/i386.c (ix86_autovectorize_vector_sizes):
8621 Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
8622
8623 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8624
8625 * config/rs6000/rs6000-internal.h (branch_island): New typedef.
8626 (branch_islands): New extern.
8627 * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
8628 * config/rs6000/rs6000.c: .. here.
8629
8630 2019-06-26 Iain Sandoe <iain@sandoe.co.uk>
8631
8632 * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
8633 (powerpc*-*-*) ... to here.
8634
8635 2019-06-26 Jeff Law <law@redhat.com>
8636
8637 * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
8638 memcpy, memmove and memset builtins.
8639 (maybe_trim_memstar_call): Likewise.
8640
8641 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8642
8643 * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
8644
8645 2019-06-26 David Edelsohn <dje.gcc@gmail.com>
8646
8647 * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
8648
8649 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8650
8651 * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
8652 declaration.
8653 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
8654 "static".
8655 * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
8656 declaration.
8657
8658 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8659
8660 * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
8661
8662 2019-06-26 Richard Biener <rguenther@suse.de>
8663
8664 PR ipa/90982
8665 * tree-inline.c (remap_ssa_name): Copy SSA range info.
8666
8667 2019-06-26 Richard Biener <rguenther@suse.de>
8668
8669 * lto-streamer.h (lto_bitmap_alloc): Remove.
8670 (lto_bitmap_free): Likewise.
8671 * lto-streamer.c (lto_bitmap_alloc): Remove.
8672 (lto_bitmap_free): Likewise.
8673 (lto_obstack): Likewise.
8674 (lto_obstack_initialized): Likewise.
8675 * lto-streamer-out.c (lto_output): Use own obstack for local
8676 bitmap, free it consistently.
8677
8678 2019-06-26 Jakub Jelinek <jakub@redhat.com>
8679
8680 PR target/90991
8681 * config/i386/sse.md
8682 (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
8683 vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
8684 insns if operands[2] is misaligned_operand.
8685
8686 2019-06-26 Li Jia He <helijia@linux.ibm.com>
8687
8688 * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
8689 TARGET_POWERPC64.
8690 * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
8691 to GPR.
8692
8693 2019-06-26 Segher Boessenkool <segher@kernel.crashing.org>
8694
8695 * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
8696
8697 2019-06-26 Martin Liska <mliska@suse.cz>
8698
8699 PR tree-optimization/90973
8700 * tree-vect-loop.c (vect_get_known_peeling_cost): Use
8701 epilogue_cost_vec instead of prologue_cost_vec for
8702 a epilogue cost.
8703
8704 2019-06-26 Martin Liska <mliska@suse.cz>
8705
8706 * bb-reorder.c (connect_better_edge_p): Add missing else
8707 statement in the middle of if-else statements.
8708
8709 2019-06-25 Hongtao Liu <hongtao.liu@intel.com>
8710 H.J. Lu <hongjiu.lu@intel.com>
8711 Olga Makhotina <olga.makhotina@intel.com>
8712
8713 * common/config/i386/i386-common.c
8714 (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
8715 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
8716 (OPTION_MASK_ISA2_AVX512F_UNSET): Add
8717 OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
8718 (ix86_handle_option): Handle -mavx512vp2intersect.
8719 * config/i386/avx512vp2intersectintrin.h: New.
8720 * config/i386/avx512vp2intersectvlintrin.h: New.
8721 * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
8722 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8723 AVX512VP2INTERSECT.
8724 * config/i386/i386-builtin-types.def: Add new types.
8725 * config/i386/i386-builtin.def: Add new builtins.
8726 * config/i386/i386-builtins.c: (enum processor_features): Add
8727 F_AVX512VP2INTERSECT.
8728 (static const _isa_names_table isa_names_table): Ditto.
8729 * config/i386/i386-c.c (ix86_target_macros_internal): Define
8730 __AVX512VP2INTERSECT__.
8731 * config/i386/i386-expand.c (ix86_expand_builtin): Expand
8732 IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
8733 IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
8734 IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
8735 * config/i386/i386-modes.def (P2QI, P2HI): New modes.
8736 * config/i386/i386-options.c (ix86_target_string): Add
8737 -mavx512vp2intersect.
8738 (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
8739 * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
8740 P2HImode and P2QImode.
8741 (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
8742 number for P2QImode and P2HImode.
8743 (ix86_regmode_natural_size): New function.
8744 * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
8745 TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
8746 REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
8747 * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
8748 * config/i386/i386.opt: Add -mavx512vp2intersect.
8749 * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
8750 avx512vp2intersectvlintrin.h.
8751 * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
8752 (define_mode_iterator VI48_AVX512VP2VL): New.
8753 (avx512vp2intersect_2intersect<mode>,
8754 avx512vp2intersect_2intersectv16si): New define_insn patterns.
8755 * config.gcc: Add avx512vp2intersectvlintrin.h and
8756 avx512vp2intersectintrin.h to extra_headers.
8757 * doc/invoke.texi: Document -mavx512vp2intersect.
8758
8759 2019-06-25 Iain Sandoe <iain@sandoe.co.uk>
8760
8761 * config/rs6000/darwin.h (ENDFILE_SPEC): New.
8762
8763 2019-06-25 Bill Seurer <seurer@linux.vnet.ibm.com>
8764
8765 * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
8766 savres_routine_syms, savres_routine_name, morestack_ref,
8767 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8768 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8769 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8770 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8771 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8772 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8773 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8774 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8775 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8776 get_stack_clash_protection_probe_interval,
8777 get_stack_clash_protection_guard_size,
8778 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8779 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8780 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8781 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8782 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8783 gen_frame_mem_offset, rs6000_savres_routine_name,
8784 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8785 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8786 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8787 rs6000_global_entry_point_prologue_needed_p,
8788 rs6000_get_separate_components, rs6000_components_for_bb,
8789 rs6000_disqualify_components, rs6000_emit_prologue_components,
8790 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8791 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8792 rs6000_output_savres_externs, rs6000_output_function_prologue,
8793 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8794 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8795 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8796 rs6000_output_function_epilogue, gen_add3_const,
8797 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8798 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8799 to rs6000-logue.c.
8800 (machine_function): Moved to rs6000.h.
8801 (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
8802 rs6000-internal.h.
8803 * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
8804 savres_routine_syms, savres_routine_name, morestack_ref,
8805 rs6000_init_machine_status, save_reg_p, first_reg_to_save,
8806 first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
8807 compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
8808 rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
8809 rs6000_return_addr, rs6000_decl_ok_for_sibcall,
8810 rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
8811 rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
8812 create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
8813 rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
8814 get_stack_clash_protection_probe_interval,
8815 get_stack_clash_protection_guard_size,
8816 rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
8817 rs6000_emit_probe_stack_range, output_probe_stack_range_1,
8818 interesting_frame_related_regno, output_probe_stack_range_stack_clash,
8819 output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
8820 gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
8821 gen_frame_mem_offset, rs6000_savres_routine_name,
8822 rs6000_savres_routine_sym, rs6000_emit_stack_reset,
8823 ptr_regno_for_savres, rs6000_emit_savres_rtx,
8824 rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
8825 rs6000_global_entry_point_prologue_needed_p,
8826 rs6000_get_separate_components, rs6000_components_for_bb,
8827 rs6000_disqualify_components, rs6000_emit_prologue_components,
8828 rs6000_emit_epilogue_components, rs6000_set_handled_components,
8829 emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
8830 rs6000_output_savres_externs, rs6000_output_function_prologue,
8831 rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
8832 load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
8833 offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
8834 rs6000_output_function_epilogue, gen_add3_const,
8835 rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
8836 rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
8837 to here from rs6000.c.
8838 * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
8839 * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
8840 quad_address_offset_p) Moved to here from rs6000.c.
8841 * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
8842 * config/config.gcc: Add new source file rs6000-logue.c to garbage
8843 collector.
8844
8845 2019-06-25 Martin Liska <mliska@suse.cz>
8846
8847 * hash-table.c (hashtab_chk_error): Move here from ...
8848 * hash-table.h (hashtab_chk_error): ... here.
8849
8850 2019-06-25 Martin Liska <mliska@suse.cz>
8851
8852 PR tree-optimization/90978
8853 * df-scan.c (df_update_entry_block_defs): Remove dead else
8854 branch.
8855 (df_update_exit_block_uses): Likewise.
8856
8857 2019-06-25 Kwok Cheung Yeung <kcy@codesourcery.com>
8858 Andrew Stubbs <ams@codesourcery.com>
8859
8860 * config.gcc (thread_file): Set to gcn for AMD GCN.
8861 * config/gcn/gcn.c (gcn_emutls_var_init): New function.
8862 (TARGET_EMUTLS_VAR_INIT): New hook.
8863
8864 2019-06-25 Martin Jambor <mjambor@suse.cz>
8865
8866 PR ipa/90939
8867 * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
8868
8869 2019-06-25 Richard Biener <rguenther@suse.de>
8870
8871 PR tree-optimization/90930
8872 * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
8873 into parallel form in the last pass instance.
8874
8875 2019-06-25 Claudiu Zissulescu <claziss@synopsys.com>
8876
8877 * config/arc/arc.c (arc_symbol_binds_local_p): New function.
8878 (arc_legitimize_pic_address): Simplify and cleanup the function.
8879 (SYMBOLIC_CONST): Remove.
8880 (prepare_pic_move): Likewise.
8881 (prepare_move_operands): Handle complex mov cases here.
8882 (arc_legitimize_address_0): Remove call to
8883 arc_legitimize_pic_address.
8884 (arc_legitimize_address): Remove call to
8885 arc_legitimize_tls_address.
8886 * config/arc/arc.md (movqi_insn): Allow Cm3 match.
8887 (movhi_insn): Likewise.
8888
8889 2019-06-25 Jozef Lawrynowicz <jozef.l@mittosystems.com>
8890
8891 * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
8892 PTRDIFF_TYPE.
8893 * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
8894 format of "__intN" types for UINTMAX_TYPE.
8895 * stor-layout.c (initialize_sizetypes): Accept "__intN__"
8896 format of "__intN" types for SIZETYPE.
8897 * tree.c (build_common_tree_nodes): Accept "__intN__"
8898 format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
8899 * doc/invoke.texi: Document that __intN__ disables pedantic
8900 warnings.
8901
8902 2019-06-25 Jan Hubicka <jh@suse.cz>
8903
8904 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
8905 base2_alias_set is non-zero before doing TBAA based disambiguation.
8906
8907 2019-06-25 Martin Liska <mliska@suse.cz>
8908
8909 PR tree-optimization/90973
8910 * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
8911 of prologue and epilogue.
8912
8913 2019-06-24 Jan Hubicka <jh@suse.cz>
8914
8915 * ipa-utils.h (type_with_linkage_p): Verify that type is
8916 CXX_ODR_P.
8917 (odr_type_p): Remove extra return.
8918 * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
8919 hash STRING_FLAG only for arrays and integers.
8920 * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
8921 Update analogously.
8922 * tree-streamer-out.c (pack_ts_type_common_value_fields):
8923 Likewise.
8924 * print-tree.c (print_node): Print cxx-odr-p
8925 and string-flag.
8926 * tree.c (need_assembler_name_p): Also check that type
8927 is CXX_ODR_TYPE_P
8928 (verify_type_variant): Update verification of SRING_FLAG;
8929 also check CXX_ODR_P.
8930 * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
8931 (TYPE_STRING_FLAG): Use it.
8932 (TYPE_CXX_ODR_P): New macro.
8933 * dwarf2out.c (gen_array_type_die): First check that type
8934 is an array and then test string flag.
8935
8936 2019-06-24 Richard Biener <rguenther@suse.de>
8937
8938 PR tree-optimization/90972
8939 * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
8940 in common code, dealing with STRING_CST properly.
8941
8942 2019-06-24 Richard Biener <rguenther@suse.de>
8943
8944 PR tree-optimization/90930
8945 PR tree-optimization/90316
8946 * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
8947 decrement of limit.
8948
8949 2019-06-24 Martin Sebor <msebor@redhat.com>
8950
8951 * tree-pretty-print.h: Remove unnecessary punctuation characters
8952 from a diagnostic.
8953 * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
8954
8955 2019-06-24 Jonathan Wakely <jwakely@redhat.com>
8956
8957 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
8958 (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
8959 (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
8960
8961 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8962
8963 * config/rs6000/darwin.h: Handle GCC target pragma.
8964
8965 2019-06-23 Iain Sandoe <iain@sandoe.co.uk>
8966
8967 * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
8968
8969 2019-06-22 Jeff Law <law@redhat.com>
8970
8971 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
8972
8973 2019-06-22 Jan Hubicka <jh@suse.cz>
8974
8975 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
8976 give up on bitfields; continue searching for different refs
8977 appearing later.
8978
8979 2019-06-21 Jakub Jelinek <jakub@redhat.com>
8980
8981 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
8982 even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
8983 containing the offset as possible simd lane access. Look through
8984 widening conversion. Move the
8985 TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
8986
8987 2019-06-21 Richard Biener <rguenther@suse.de>
8988
8989 PR tree-optimization/90930
8990 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
8991 flag on new stmts to avoid re-processing them.
8992
8993 2019-06-21 Matthew Beliveau <mbelivea@redhat.com>
8994
8995 PR c++/90875 - added -Wswitch-outside-range option
8996 * doc/invoke.texi (Wswitch-outside-range): Document.
8997
8998 2019-06-21 Jeff Law <law@redhat.com>
8999
9000 PR tree-optimization/90949
9001 * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
9002 * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
9003
9004 2019-06-21 Richard Biener <rguenther@suse.de>
9005
9006 PR debug/90914
9007 * dwarf2out.c (prune_unused_types_walk): Always consider
9008 function-local extern declarations as used.
9009
9010 2019-06-21 Richard Biener <rguenther@suse.de>
9011
9012 PR tree-optimization/90913
9013 * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
9014 the scalar variant of if-conversion versioning.
9015
9016 2019-06-21 Jakub Jelinek <jakub@redhat.com>
9017
9018 * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
9019 create another "omp scan inscan exclusive" array if
9020 !ctx->scan_inclusive.
9021 (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
9022 (lower_omp_scan): Likewise.
9023 * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
9024 2-bit bitfield for simd_lane_access_p member.
9025 * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
9026 aux == (void *)-4 as simd lane access.
9027 * tree-vect-stmts.c (check_scan_store): Handle exclusive scan. Update
9028 comment with permutations to show the canonical permutation order.
9029 (vectorizable_scan_store): Handle exclusive scan.
9030 (vectorizable_store): Call vectorizable_scan_store even for
9031 STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
9032
9033 * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
9034 "omp simd array" arrays with one byte elements.
9035
9036 2019-06-20 Uroš Bizjak <ubizjak@gmail.com>
9037
9038 * config/alpha/alpha.md (@unaligned_store<mode>):
9039 Rename from unaligned_store<mode>.
9040 (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
9041 * config/alpha/sync.md (@load_locked_<mode>): Rename
9042 from load_locked_<mode>.
9043 (@store_conditional_<mode>): Rename from store_conditional_<mode>.
9044 (@atomic_compare_and_swap<mode>_1): Rename
9045 from atomic_compare_and_swap<mode>_1.
9046 (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
9047 * config/alpha/alpha.c (alpha_expand_mov_nobwx):
9048 Use gen_reload_in_aligned and gen_unaligned_store.
9049 (emit_load_locked): Remove.
9050 (emit_store_conditional): Ditto.
9051 (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
9052 (alpha_split_compare_and_swap): Ditto.
9053 (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
9054 (alpha_split_compare_and_swap_12): Use gen_load_locked
9055 and gen_store_conditional.
9056 (alpha_split_atomic_exchange): Ditto.
9057 (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
9058 (alpha_split_atomic_exchange_12): Use gen_load_locked
9059 and gen_store_conditional.
9060
9061 2019-06-20 Richard Earnshaw <rearnsha@arm.com>
9062
9063 * config/aarch64/aarch64-errata.h: New file.
9064 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
9065 (CA53_ERR_843419_SPEC): Delete.
9066 (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
9067 * config/aarch64/aarch64-linux.h: Likewise.
9068 * config/aarch64/aarch64-netbsd.h: Likewise.
9069 * config/aarch64/aarch64-freebsd.h: Likewise.
9070
9071 2019-06-20 Marek Polacek <polacek@redhat.com>
9072
9073 * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
9074
9075 2019-06-20 Michael Meissner <meissner@linux.ibm.com>
9076
9077 * config/rs6000/rs6000.md (isa attribute): Add support for
9078 for a future processor.
9079
9080 2019-06-20 H.J. Lu <hongjiu.lu@intel.com>
9081
9082 PR target/54855
9083 * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
9084 standard scalar operation pattern for V2DF.
9085 * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
9086 (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
9087 (*ieee_<ieee_maxmin><mode>3): Likewise.
9088 (vec_setv2df_0): Likewise.
9089
9090 2019-06-20 Jan Hubicka <jh@suse.cz>
9091
9092 * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
9093 parameter; it has no use in gimple memory model.
9094 (indirect_ref_may_alias_decl_p): Update.
9095
9096 2019-06-20 Martin Liska <mliska@suse.cz>
9097
9098 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
9099 to 10.
9100
9101 2019-06-20 Jakub Jelinek <jakub@redhat.com>
9102
9103 * tree-vect-stmts.c (enum scan_store_kind): New type.
9104 (scan_store_can_perm_p): Change last argument from int * to
9105 vec<enum scan_store_kind> *, record precisely which permutations
9106 need whole vector left shift or that plus VEC_COND_EXPR.
9107 (vectorizable_scan_store): Adjust caller, use whole vector left shift
9108 and additional VEC_COND_EXPR only for those iterations that need it.
9109
9110 2019-06-20 Alexandre Oliva <oliva@adacore.com>
9111
9112 * config.gcc: Fix ARM --with-fpu checking and error message.
9113
9114 2019-06-19 Marek Polacek <polacek@redhat.com>
9115
9116 PR c++/60364 - noreturn after first decl not diagnosed.
9117 * attribs.c (get_attribute_namespace): No longer static.
9118 (decl_attributes): Avoid shadowing. Preserve the C++11 form for C++11
9119 attributes.
9120 (attr_noreturn_exclusions): Make it extern.
9121 * attribs.h (get_attribute_namespace): Declare.
9122 * tree-inline.c (function_attribute_inlinable_p): Use
9123 get_attribute_name.
9124
9125 2019-06-19 Martin Sebor <msebor@redhat.com>
9126
9127 PR tree-optimization/90626
9128 * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
9129
9130 PR tree-optimization/90626
9131 * tree-ssa-strlen.c (strxcmp_unequal): New function.
9132 (handle_builtin_string_cmp): Call it.
9133
9134 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9135
9136 * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
9137 and DARWIN_NOPIE_SPEC.
9138 (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
9139 (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
9140 (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
9141 (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
9142 (DARWIN_EXPORT_DYNAMIC): Delete.
9143 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
9144 and pie options processing to darwin.h.
9145 * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
9146
9147 2019-06-19 Iain Sandoe <iain@sandoe.co.uk>
9148
9149 * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
9150 in computing the number of options to be moved.
9151
9152 2019-06-19 Maya Rashish <coypu@sdf.org>
9153
9154 * config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
9155 (CLEAR_INSN_CACHE) Use it.
9156
9157 2019-06-19 Uroš Bizjak <ubizjak@gmail.com>
9158
9159 * config/i386/i386.md (cmpstrnsi): Remove dead code.
9160
9161 2019-06-19 Wilco Dijkstra <wdijkstr@arm.com>
9162
9163 PR middle-end/84521
9164 * builtins.c (expand_builtin_setjmp_setup): Save
9165 hard_frame_pointer_rtx.
9166 (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
9167 restore fp.
9168 * function.c (expand_function_start): Save hard_frame_pointer_rtx for
9169 non-local goto.
9170 * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
9171 elimination code.
9172 (remove_reg_equal_offset_note): Remove unused function.
9173 * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
9174 code.
9175 * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9176 (arc_builtin_setjmp_frame_value): Remove function.
9177 * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9178 (avr_builtin_setjmp_frame_value): Remove function.
9179 * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9180 (ix86_builtin_setjmp_frame_value): Remove function.
9181 * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
9182 * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9183 (sparc_builtin_setjmp_frame_value): Remove function.
9184 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
9185 (vax_builtin_setjmp_frame_value): Remove function.
9186 * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
9187 pointer if has_nonlocal_label.
9188
9189 2019-06-19 Jakub Jelinek <jakub@redhat.com>
9190
9191 * doc/md.texi: Document vec_shl_<mode> pattern.
9192 * optabs.def (vec_shl_optab): New optab.
9193 * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
9194 argument, if == vec_shl_optab, check for left whole vector shift
9195 pattern rather than right shift.
9196 (expand_vec_perm_const): Add vec_shl_optab support.
9197 * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
9198 in the comment.
9199 * tree-vect-generic.c (lower_vec_perm): Support permutations which
9200 can be handled by vec_shl_optab.
9201 * tree-vect-stmts.c (scan_store_can_perm_p): New function.
9202 (check_scan_store): Use it.
9203 (vectorizable_scan_store): If target can't do normal permutations,
9204 try to use whole vector left shifts and if needed a VEC_COND_EXPR
9205 after it.
9206 * config/i386/sse.md (vec_shl_<mode>): New expander.
9207
9208 * omp-low.c (lower_rec_input_clauses): Handle references properly
9209 in inscan clauses.
9210 (lower_omp_scan): Likewise.
9211
9212 2019-06-19 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9213
9214 * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
9215 mem_mode is BLKmode.
9216
9217 2019-06-18 Max Filippov <jcmvbkbc@gmail.com>
9218
9219 PR target/90922
9220 * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
9221 pointer adjustment for the case of no callee-saved registers and
9222 stack frame bigger than 128 bytes.
9223
9224 2019-06-18 Thomas Schwinge <thomas@codesourcery.com>
9225
9226 PR middle-end/90862
9227 * omp-low.c (check_omp_nesting_restrictions): Handle
9228 GF_OMP_TARGET_KIND_OACC_DECLARE.
9229
9230 2019-06-18 Uroš Bizjak <ubizjak@gmail.com>
9231
9232 * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
9233 (@add<mode>3_carry): Rename from add<mode>3_carry.
9234 (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
9235 (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
9236 (@copysign<mode>3_const): Rename from copysign<mode>3_const.
9237 (@copysign<mode>3_var): Rename from copysign<mode>3_var.
9238 (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
9239 (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
9240 (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
9241 (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
9242 (cmpstrnsi): Use gen_cmp_1.
9243 (lwp_slwpcb): Use gen_lwp_slwpcb_1.
9244 (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
9245 (@umonitor_<mode>): Rename from umonitor_<mode>.
9246 * config/i386/i386-expand.c (ix86_expand_copysign):
9247 Use gen_copysign3_const and gen_copysign3_var.
9248 (ix86_expand_xorsign): Use gen_xorsign3_1.
9249 (ix86_expand_branch): Use gen_sub3_carry_ccc,
9250 gen_sub3_carry_ccgz and gen_cmp1.
9251 (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
9252 (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
9253 (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
9254 (ix86_split_lshr): Ditto.
9255 (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
9256
9257 2019-06-18 Jason Merrill <jason@redhat.com>
9258
9259 * tree.c (build_constructor): Add MEM_STAT_DECL.
9260
9261 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9262
9263 * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
9264 * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
9265 (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
9266 (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
9267 (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
9268 (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
9269 (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
9270 Use CC_NZC instead of CC.
9271 * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
9272 * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
9273 (aarch64_print_operand): Handle E_CC_NZCmode.
9274 (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
9275 of gen_set_clobber_cc.
9276
9277 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9278
9279 * config/aarch64/aarch64-sve.md: Tabify file.
9280
9281 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9282
9283 * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
9284 * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
9285 * config/aarch64/aarch64-sve.md: Use it.
9286
9287 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9288
9289 * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
9290 * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
9291 (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
9292 (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
9293 (aarch64_expand_sve_vec_cmp_int): Use it.
9294 (aarch64_expand_sve_vec_cmp_float): Likewise.
9295 * config/aarch64/aarch64-sve.md: Likewise throughout.
9296
9297 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9298 Kugan Vivekanandarajah <kuganv@linaro.org>
9299
9300 * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
9301 (*cond_<optab><mode>_z): Fold into...
9302 (*cond_<optab><mode>_any): ...here. Also handle cases in which
9303 operand 4 can be tied to operand 0 (either inherently or via RA).
9304
9305 2019-06-18 Richard Biener <rguenther@suse.de>
9306
9307 PR debug/90900
9308 * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
9309 as if optimized away.
9310
9311 2019-06-18 Tom de Vries <tdevries@suse.de>
9312
9313 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
9314 * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
9315 * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
9316 Rename to ...
9317 (define_insn "@set_softstack_<mode>"): ... this.
9318 (define_insn "omp_simt_enter_<mode>"): Rename to ...
9319 (define_insn "@omp_simt_enter_<mode>"): ... this.
9320 (define_insn "omp_simt_exit_<mode>"): Rename to ...
9321 (define_insn "@omp_simt_exit_<mode>"): ... this.
9322
9323 2019-06-18 Richard Sandiford <richard.sandiford@arm.com>
9324
9325 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
9326 vf parameter. Restore the previous iv step of nscalars_step,
9327 but give it iv_type rather than compare_type. Tweak code order
9328 to match the comments.
9329 (vect_set_loop_condition_masked): Update accordingly.
9330 * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
9331 for iv_precision. Tweak comment formatting.
9332
9333 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9334
9335 * config/darwin.c: Strip trailing whitespace.
9336
9337 2019-06-18 Iain Sandoe <iain@sandoe.co.uk>
9338
9339 * config/darwin.c (darwin_emit_unwind_label): New default to false.
9340 (darwin_override_options): Set darwin_emit_unwind_label as needed.
9341
9342 2019-06-18 Martin Jambor <mjambor@suse.cz>
9343
9344 PR ipa/90889
9345 * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
9346 caller does not have flag_ipa_cp set.
9347
9348 2019-06-18 Alejandro Martinez <alejandro.martinezvicente@arm.com>
9349
9350 * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
9351 from "*fold_left_plus_<mode>", updated operands order.
9352 * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
9353 * internal-fn.c (mask_fold_left_direct): New define.
9354 (expand_mask_fold_left_optab_fn): Likewise.
9355 (direct_mask_fold_left_optab_supported_p): Likewise.
9356 * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
9357 * optabs.def (mask_fold_left_plus_optab): New optab.
9358 * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
9359 masked internal_fn for a reduction ifn.
9360 (vectorize_fold_left_reduction): Add support for masking reductions.
9361
9362 2019-06-18 Kewen Lin <linkw@gcc.gnu.org>
9363
9364 PR middle-end/80791
9365 * target.def (predict_doloop_p): New hook.
9366 * targhooks.h (default_predict_doloop_p): New declaration.
9367 * targhooks.c (default_predict_doloop_p): New function.
9368 * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
9369 * doc/tm.texi: Regenerate.
9370 * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
9371 (TARGET_PREDICT_DOLOOP_P): New macro.
9372 * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
9373
9374 2019-06-17 Jakub Jelinek <jakub@redhat.com>
9375
9376 * omp-low.c (struct omp_context): Add scan_inclusive field.
9377 (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
9378 if inclusive scan.
9379 (struct omplow_simd_context): Add lastlane member.
9380 (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
9381 reductions. Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
9382 1 or 2 argument.
9383 (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
9384 (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
9385 (lower_omp_scan): New function.
9386 (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
9387 * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
9388 check 3rd argument if present rather than 2nd.
9389 * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
9390 (struct _stmt_vec_info): Change simd_lane_access_p from bool into
9391 2-bit bitfield.
9392 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
9393 scan_map. For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
9394 than 2nd.
9395 (_loop_vec_info::~_loop_vec_info): Delete scan_map.
9396 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
9397 different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
9398 init.
9399 (vect_find_stmt_data_reference): Encode in ->aux the 2nd
9400 IFN_GOMP_SIMD_LANE argument.
9401 (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
9402 encoded ->aux value.
9403 * tree-vect-stmts.c: Include attribs.h.
9404 (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
9405 (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
9406 functions.
9407 (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
9408 (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
9409
9410 2019-06-17 Uroš Bizjak <ubizjak@gmail.com>
9411
9412 PR target/62055
9413 * config/i386/i386.md (*nabstf2_1): New insn pattern.
9414 (*nabs<mode>2_1): Ditto.
9415 (nabs sse-reg splitter): New splitter.
9416 * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
9417
9418 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9419
9420 PR bootstrap/90873.
9421 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
9422 TMR index check.
9423
9424 2019-06-17 Tom de Vries <tdevries@suse.de>
9425
9426 * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
9427 * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
9428 * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
9429 ...
9430 (define_insn "set_softstack_<mode>"): ... this. Use P iterator on
9431 match_operand 0.
9432 (define_insn "omp_simt_enter_insn"): Rename to ...
9433 (define_insn "omp_simt_enter_<mode>"): ... this. Use P iterator on
9434 match_operand 0, 1 and 2, as well as the unspec_volatile result.
9435 (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
9436 gen_omp_simt_enter_si.
9437 (define_expand "omp_simt_exit"): New.
9438 (define_insn "omp_simt_exit"): Rename to ...
9439 (define_insn "omp_simt_exit_<mode>"): ... this. Use P iterator on
9440 match_operand 0.
9441
9442 2019-06-17 Matthew Green <mrg@eterna.com.au>
9443 Maya Rashish <coypu@sdf.org>
9444
9445 * config.gcc (aarch64*-*-netbsd*): New target.
9446 * config/aarch64/aarch64-netbsd.h: New file.
9447 * config/aarch64/t-aarch64-netbsd: Likewise.
9448
9449 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9450
9451 * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
9452 the access path from base to first VIEW_CONVERT_EXPR or
9453 BIT_FIELD_REF.
9454
9455 2019-06-17 Jan Hubicka <hubicka@ucw.cz>
9456
9457 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
9458 access path on BIT_FIELD_REFs.
9459
9460 2019-06-17 Martin Liska <mliska@suse.cz>
9461
9462 PR ipa/90874
9463 * ipa-utils.h (odr_type_p): Remove dead code.
9464
9465 2019-06-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9466
9467 * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
9468 alternative Solaris 11.4 format.
9469 * configure: Regenerate.
9470
9471 2019-06-17 Tom de Vries <tdevries@suse.de>
9472
9473 * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
9474 (define_insn "call_insn_<mode>"): ... this. Use P iterator on
9475 match_operand 0.
9476 (define_insn "call_value_insn"): Rename to ...
9477 (define_insn "call_value_insn_<mode>"): this. Use P iterator on
9478 match_operand 0.
9479 (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
9480 DI.
9481
9482 2019-06-16 John David Anglin <danglin@gcc.gnu.org>
9483
9484 PR middle-end/64242
9485 * config/pa/pa.md (nonlocal_goto): Restore frame pointer last. Add
9486 frame clobbers and schedule block.
9487 (builtin_longjmp): Likewise.
9488
9489 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9490
9491 * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
9492 describe how to perform MSPABI compliant 64-bit shift.
9493 * config/msp430/msp430.md (ashldi3): New define_expand.
9494 (ashrdi3): New define_expand.
9495 (lshrdi3): New define_expand.
9496
9497 2019-06-16 Jozef Lawrynowicz <jozef.l@mittosystems.com>
9498
9499 * doc/sourcebuild.texi: Document new effective target keyword
9500 longlong64.
9501
9502 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9503
9504 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
9505 indirect_refs_may_alias_p): Revert accidental commits.
9506
9507 * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
9508 at the end of structures.
9509
9510 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9511
9512 * config/darwin.c (machopic_indirect_call_target): Use renamed
9513 darwin_picsymbol_stubs to decide on output.
9514 (darwin_override_options): Handle darwin_picsymbol_stubs.
9515 * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
9516 (LD64_VERSION): Revise default.
9517 * config/darwin.opt: (mpic-symbol-stubs): New option.
9518 (darwin_picsymbol_stubs): New variable.
9519 * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
9520 rename to TARGET_MACHO_PICSYM_STUBS.
9521 * config/i386/i386.c (output_pic_addr_const): Likewise.
9522 * config/i386/i386.h Likewise.
9523 * config/rs6000/darwin.h: Likewise.
9524 * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
9525 darwin_picsymbol_stubs.
9526
9527 2019-06-16 Iain Sandoe <iain@sandoe.co.uk>
9528
9529 * config/darwin.opt (prebind, noprebind, seglinkedit,
9530 noseglinkedit): Add RejectNegative.
9531
9532 2019-06-16 Jan Hubicka <hubicka@ucw.cz>
9533
9534 * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
9535 in my previous patch.
9536
9537 2019-06-16 Tom de Vries <tdevries@suse.de>
9538
9539 PR tree-optimization/89376
9540 * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
9541
9542 2019-06-15 Maya Rashish <coypu@sdf.org>
9543
9544 * doc/invoke.texi (Spec Files): Update location of the
9545 Fortran spec file.
9546
9547 2019-06-15 Gerald Pfeifer <gerald@pfeifer.com>
9548
9549 * doc/extend.texi (Common Function Attributes): Clarify
9550 no_sanitize. Fix grammar.
9551
9552 2019-06-15 Jan Hubicka <hubicka@ucw.cz>
9553
9554 * tree-ssa-alias.c (alias_stats): Add
9555 nonoverlapping_component_refs_p_may_alias,
9556 nonoverlapping_component_refs_p_no_alias,
9557 nonoverlapping_component_refs_of_decl_p_may_alias,
9558 nonoverlapping_component_refs_of_decl_p_no_alias.
9559 (dump_alias_stats): Dump them.
9560 (nonoverlapping_component_refs_of_decl_p): Add stats.
9561 (nonoverlapping_component_refs_p): Add stats; do not stop on first
9562 ARRAY_REF.
9563
9564 2019-06-15 Uroš Bizjak <ubizjak@gmail.com>
9565
9566 * config/i386/i386.md (and<mode>3): Generate zero-extends for
9567 TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
9568 only.
9569 (*anddi3_doubleword): Split before reload. Merge with
9570 anddi->zext pre-reload splitter.
9571 (*andndi3_doubleword): Split before reload.
9572 (*<code>di3_doubleword): Ditto.
9573 (*one_cmpldi2_doubleword): Ditto.
9574
9575 2019-06-15 Jakub Jelinek <jakub@redhat.com>
9576
9577 PR middle-end/90779
9578 * gimplify.c: Include omp-offload.h and context.h.
9579 (gimplify_bind_expr): Add "omp declare target" attributes
9580 to static block scope variables inside of target region or target
9581 functions.
9582
9583 2019-06-15 Tom de Vries <tdevries@suse.de>
9584
9585 PR tree-optimization/90009
9586 * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
9587 Return NULL if bb contains IFN_UNIQUE.
9588
9589 2019-06-14 Segher Boessenkool <segher@kernel.crashing.org>
9590
9591 * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
9592 (un): New define_mode_attr.
9593 (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
9594 (isel_<un>signed_<GPR:mode>): ... this. New define_insn.
9595 (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
9596 merge into ...
9597 (isel_reversed_<un>signed_<GPR:mode>): ... this. New define_insn.
9598
9599 2019-06-14 Iain Sandoe <iain@sandoe.co.uk>
9600
9601 * config/darwin.opt: Add RejectNegative where needed, reorder
9602 and add minimal functional descriptions.
9603
9604 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9605
9606 PR rtl-optimization/90765
9607 * calls.c (update_stack_alignment_for_call): New function.
9608 (expand_call): Call update_stack_alignment_for_call when
9609 outgoing parameter is passed in the stack.
9610 (emit_library_call_value_1): Likewise.
9611 * function.c (locate_and_pad_parm): Don't update
9612 stack_alignment_needed and preferred_stack_boundary.
9613
9614 2019-06-14 H.J. Lu <hongjiu.lu@intel.com>
9615
9616 PR target/90877
9617 * config/i386/i386-features.c
9618 (dimode_scalar_chain::compute_convert_gain): Replace
9619 mmxsse_to_integer with sse_to_integer.
9620 * config/i386/i386.c (ix86_register_move_cost): Verify that
9621 moves between MMX and non-MMX units require secondary memory.
9622 Correct costs of moves between SSE and integer units.
9623 * config/i386/i386.h (processor_costs): Rename cost of moving
9624 SSE register to integer to sse_to_integer. Rename cost of
9625
9626 2019-06-14 Matt Thomas <matt@3am-software.com>
9627 Matthew Green <mrg@eterna.com.au>
9628 Nick Hudson <skrll@netbsd.org>
9629 Maya Rashish <coypu@sdf.org>
9630 Richard Earnshaw <rearnsha@arm.com>
9631
9632 * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
9633 * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
9634 * config/arm/netbsd-eabi.h: New file.
9635 * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
9636 redefining.
9637 (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
9638 * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
9639 (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
9640 (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
9641
9642 2019-06-14 Richard Biener <rguenther@suse.de>
9643
9644 * tree-loop-distribution.c (classify_partition): Return
9645 whether a reduction appeared in all partitions and do not
9646 stop builtin detection because of this.
9647 (distribute_loop): Sort a non-builtin partition last if
9648 there's a reduction in all partitions and make sure the
9649 partition prevailing as last is not a builtin.
9650
9651 2019-06-14 Feng Xue <fxue@os.amperecomputing.com>
9652
9653 PR ipa/90401
9654 * ipa-prop.c (add_to_agg_contents_list): New function.
9655 (clobber_by_agg_contents_list_p): Likewise.
9656 (extract_mem_content): Likewise.
9657 (get_place_in_agg_contents_list): Delete.
9658 (determine_known_aggregate_parts): Renamed from
9659 determine_locally_known_aggregate_parts. New parameter
9660 aa_walk_budget_p.
9661
9662 2019-06-13 Martin Sebor <msebor@redhat.com>
9663
9664 PR tree-optimization/90662
9665 * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
9666 to the same type.
9667
9668 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9669
9670 PR bootstrap/90873
9671 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
9672 dbase is not TARGET_MEM_REF.
9673
9674 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9675
9676 * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
9677 Update all uses.
9678 (and<mode>3): Use gen_extend_insn instead of indirect functions.
9679 Do not generate DImode extends for 32bit targets.
9680 (and->zext post-reload splitter): Use gen_extend_insn
9681 instead of indirect functions.
9682 (anddi->zext pre-reload splitter): New.
9683 (*zext<mode>_doubleword_and): Remove.
9684 (*zext<mode>_doubleword): Ditto.
9685 (*zextsi_doubleword): Dittto.
9686
9687 2019-06-13 Uroš Bizjak <ubizjak@gmail.com>
9688
9689 * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
9690 Use gen_sub3_insn instead of indirect function.
9691 (ix86_expand_ashl_const): Use gen_add2_insn instead of
9692 indirect function.
9693 (ix86_adjust_counter): Ditto.
9694
9695 2019-06-13 Jiufu Guo <guojiufu@linux.ibm.com>
9696 Lijia He <helijia@linux.ibm.com>
9697
9698 PR tree-optimization/77820
9699 * tree-ssa-threadedge.c
9700 (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
9701 function.
9702 (thread_across_edge): Add call to
9703 edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
9704
9705 2019-06-13 Iain Sandoe <iain@sandoe.co.uk>
9706
9707 * config/darwin-driver.c (validate_macosx_version_min): New.
9708 (darwin_default_min_version): Cleanup and validate supplied version.
9709 (darwin_driver_init): Likewise and push cleaned version into opts.
9710
9711 2019-06-13 Jan Hubicka <hubicka@ucw.cz>
9712
9713 PR tree-optimization/90869
9714 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
9715 converts in MEM_REF referencing decl rather than view converts
9716 from decl type to MEM_REF type.
9717
9718 2019-06-13 Richard Biener <rguenther@suse.de>
9719
9720 PR tree-optimization/90856
9721 * tree-sra.c (build_ref_for_model): Only use
9722 build_reconstructed_reference when address-spaces are the same.
9723
9724 2019-06-13 Jakub Jelinek <jakub@redhat.com>
9725
9726 * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
9727 wrap ei variable name in the declaration in ()s.
9728 (nvptx_single): Actually use mode_label variable. Formatting fix.
9729
9730 2019-06-13 Richard Biener <rguenther@suse.de>
9731
9732 * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
9733 * tree-vectorizer.c (vect_loop_vectorized_call): Export and
9734 also return the condition stmt.
9735 * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
9736 loop we can version and version that, reusing the loop version
9737 created by if-conversion instead of versioning again.
9738
9739 2019-06-13 Aldy Hernandez <aldyh@redhat.com>
9740
9741 * gimple-loop-versioning.cc (prune_loop_conditions): Use
9742 may_contain_p.
9743 * tree-vrp (value_range_base::may_contain_p): Call into
9744 value_inside_range.
9745 (value_inside_range): Make private inside value_range_base class.
9746 Take min/max from *this.
9747 (range_includes_p): Remove.
9748 * tree-vrp.h (value_range_base): Add value_inside_range.
9749 (range_includes_p): Remove.
9750 (range_includes_zero_p): Call may_contain_p.
9751 * vr-values.c (compare_range_with_value): Same.
9752
9753 2019-06-13 Claudiu Zissulescu <claziss@synopsys.com>
9754
9755 * doc/extend.texi (ARC Function Attributes): Update info.
9756
9757 2019-06-13 Feng Xue <fxue@os.amperecomputing.com>
9758
9759 PR tree-optimization/89713
9760 * doc/invoke.texi (-ffinite-loops): Document new option.
9761 * common.opt (-ffinite-loops): New option.
9762 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
9763 IFN_GOACC_LOOP calls as necessary.
9764 * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
9765 is finite.
9766 * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
9767 IFN_GOACC_LOOP call is not used.
9768 * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
9769
9770 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9771
9772 PR target/88838
9773 * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
9774 compare_type is not with Pmode size, we will create an IV with
9775 Pmode size with truncated use (i.e. converted to the correct type).
9776 * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
9777 (vect_iv_limit_for_full_masking): New. Factored out of
9778 vect_set_loop_condition_masked.
9779 * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
9780 (vect_iv_limit_for_full_masking): Declare.
9781
9782 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9783
9784 PR target/88834
9785 * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
9786 IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
9787 (get_alias_ptr_type_for_ptr_address): Likewise.
9788 (add_iv_candidate_for_use): Add scaled index candidate if useful.
9789 * tree-ssa-address.c (preferred_mem_scale_factor): New.
9790 * config/aarch64/aarch64.c (aarch64_classify_address): Relax
9791 allow_reg_index_p.
9792
9793 2019-06-13 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
9794
9795 * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
9796
9797 2019-06-12 Dimitar Dimitrov <dimitar@dinux.eu>
9798
9799 * common/config/pru/pru-common.c: New file.
9800 * config.gcc: Add PRU target.
9801 * config/pru/alu-zext.md: New file.
9802 * config/pru/constraints.md: New file.
9803 * config/pru/predicates.md: New file.
9804 * config/pru/pru-opts.h: New file.
9805 * config/pru/pru-passes.c: New file.
9806 * config/pru/pru-pragma.c: New file.
9807 * config/pru/pru-protos.h: New file.
9808 * config/pru/pru.c: New file.
9809 * config/pru/pru.h: New file.
9810 * config/pru/pru.md: New file.
9811 * config/pru/pru.opt: New file.
9812 * config/pru/t-pru: New file.
9813 * doc/extend.texi: Document PRU pragmas.
9814 * doc/invoke.texi: Document PRU-specific options.
9815 * doc/md.texi: Document PRU asm constraints.
9816
9817 2019-06-12 Martin Sebor <msebor@redhat.com>
9818
9819 PR middle-end/90676
9820 * tree-pretty-print.c (dump_mem_ref): New function. Include
9821 MEM_REF type in output when different size than operand.
9822 (dump_generic_node): Move code to dump_mem_ref and call it.
9823
9824 2019-06-12 Martin Sebor <msebor@redhat.com>
9825
9826 PR tree-optimization/90662
9827 * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
9828 to arrays.
9829
9830 2019-06-12 Tom de Vries <tdevries@suse.de>
9831
9832 PR tree-optimization/90009
9833 * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
9834
9835 2019-06-12 Martin Liska <mliska@suse.cz>
9836
9837 * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
9838 the created map.
9839 * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
9840 * mem-stats.h (mem_alloc_description::mem_alloc_description):
9841 Do not sanitize created maps.
9842
9843 2019-06-12 Aldy Hernandez <aldyh@redhat.com>
9844
9845 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
9846 value_range::singleton_p.
9847 * tree-vrp.c (value_range_constant_singleton): Remove.
9848 * tree-vrp.h (value_range_constant_singleton): Remove.
9849 * vr-values.c (vr_values::singleton): Use
9850 value_range::singleton_p.
9851
9852 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9853
9854 PR target/90811
9855 * cfgexpand.c (align_local_variable): Add really_expand argument,
9856 don't SET_DECL_ALIGN if it is false.
9857 (add_stack_var): Add really_expand argument, pass it through to
9858 align_local_variable.
9859 (expand_one_stack_var_1): Pass true as really_expand to
9860 align_local_variable.
9861 (expand_one_ssa_partition): Pass true as really_expand to
9862 add_stack_var.
9863 (expand_one_var): Pass really_expand through to add_stack_var.
9864
9865 2019-06-12 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
9866
9867 * config/arm/iterators.md (VABAL): New int iterator.
9868 * config/arm/neon.md (<sup>sadv16qi): New define_expand.
9869 * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
9870 UNSPEC_VABAL_U values.
9871
9872 2019-06-12 Martin Liska <mliska@suse.cz>
9873
9874 * value-prof.c (stream_out_histogram_value): Only first value
9875 can't be negative.
9876
9877 2019-06-12 Jakub Jelinek <jakub@redhat.com>
9878
9879 PR c/90760
9880 * symtab.c (symtab_node::set_section): Allow being called on aliases
9881 as long as they aren't analyzed yet.
9882
9883 2019-06-11 Faraz Shahbazker <fshahbazker@wavecomp.com>
9884
9885 * config/mips/mips.c (mips_final_postscan_insn): Modify call
9886 to `mips_set_text_contents_type' to indicate whether a
9887 non-debug insn follows.
9888
9889 2019-06-11 Michael Meissner <meissner@linux.ibm.com>
9890
9891 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
9892 enabling -mpcrel by default.
9893 * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
9894 test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
9895 that the test against -mcpu=future is done first. Then test if
9896 -mprefixed-addr is on for -mpcrel.
9897 (rs6000_disable_incompatible_switches): Add -mcpu=future support.
9898
9899 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9900
9901 PR target/90811
9902 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
9903 instead of and.u%d.
9904
9905 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9906
9907 * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
9908
9909 2019-06-11 Matthew Beliveau <mbelivea@redhat.com>
9910
9911 PR c++/90449 - add -Winaccessible-base option.
9912 * doc/invoke.texi (Winaccessible-base): Document.
9913
9914 2019-06-11 Marc Glisse <marc.glisse@inria.fr>
9915
9916 PR tree-optimization/62041
9917 * fold-const.c (fold_real_zero_addition_p): Handle vectors.
9918
9919 2019-06-11 Jason Merrill <jason@redhat.com>
9920
9921 * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
9922 * tree.c (get_tree_code_name): Likewise.
9923 * print-tree.c (print_node): Only briefly print a node with an
9924 invalid code.
9925
9926 2019-06-11 Jakub Jelinek <jakub@redhat.com>
9927
9928 PR bootstrap/90819
9929 * trans-mem.c (tm_memopt_compute_available): Add assertion
9930 that blocks is not empty. Formatting fix.
9931
9932 2019-06-11 Martin Liska <mliska@suse.cz>
9933
9934 PR c++/87847
9935 * hash-table.h: Extend create_gcc, add one parameter
9936 that is passed into hash_table::hash_table.
9937
9938 2019-06-10 Uroš Bizjak <ubizjak@gmail.com>
9939
9940 * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
9941 New prototype.
9942 * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
9943 Emit clobber also for non-sse operations.
9944 (ix86_split_fp_absneg_operator): New function.
9945 * config/i386/i386.md (SSEMODEF): New mode iterator.
9946 (ssevecmodef): New mode attribute.
9947 (<code>tf2): Use absneg code iterator.
9948 (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
9949 Add three-operand AVX alternatives.
9950 (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
9951 Use absneg code iterator and X87MODEF mode iterator.
9952 (absneg fp_reg non-sse splitter): Call absneg code iterator
9953 and X87MODEF mode iterator.
9954 (absneg general_reg non-sse splitter): Use absneg code iterator
9955 and X87MODEF mode iterator. Use ix86_split_fp_absneg_operator.
9956 (*<code><mode>2_1): Rename from *absneg<mode>2. Use absneg
9957 code iterator. Add three-operand AVX alternative.
9958 (absneg sse_reg splitter): Use absneg code iterator
9959 and SSEMODEF mode iterator. Handle AVX operands.
9960 (absneg fp_reg splitter): Use absneg code iterator
9961 and MODEF mode iterator.
9962 (absneg general_reg splitter): Merge splitters using MODEF mode
9963 iterator. Use absneg code iterator. Call
9964 ix86_split_fp_absneg_operator.
9965 (*<code><mode>2_i387): Rename from *<code><mode>2_1.
9966 Do not enable for non-sse modes before reload.
9967 (CSGNMODE): Remove.
9968 (CSGNVMODE): Ditto.
9969 (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
9970 ssevecmodef mode attribute instaed of CSGNVMODE.
9971 (copysign<mode>3_const): Ditto.
9972 (copysign<mode>3_var): Ditto.
9973 * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
9974 Use absneg code iterator. Simplify code using std::swap.
9975 * config/i386/predicates.md (absneg_operator): Remove.
9976
9977 2019-06-10 Martin Sebor <msebor@redhat.com>
9978
9979 * gimple-fold.c (get_range_strlen): Update comment that didn't
9980 make it into r267503 or related commits.
9981
9982 2019-06-10 Vladislav Ivanishin <vlad@ispras.ru>
9983
9984 * gcov-tool.c (merge_usage, rewrite_usage): Mark with
9985 ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
9986
9987 2019-06-10 Jakub Jelinek <jakub@redhat.com>
9988
9989 * tree.def (OMP_SCAN): New tree code.
9990 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
9991 OMP_CLAUSE_EXCLUSIVE.
9992 * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
9993 (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
9994 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
9995 OMP_CLAUSE_{IN,EX}CLUSIVE.
9996 (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
9997 * tree-nested.c (convert_nonlocal_reference_stmt,
9998 convert_local_reference_stmt, convert_gimple_call): Handle
9999 GIMPLE_OMP_SCAN.
10000 * tree-pretty-print.c (dump_omp_clause): Handle
10001 OMP_CLAUSE_{IN,EX}CLUSIVE.
10002 (dump_generic_node): Handle OMP_SCAN.
10003 * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
10004 * gimple.h (gomp_scan): New type.
10005 (is_a_helper <gomp_scan *>::test,
10006 is_a_helper <const gomp_scan *>::test): New templates.
10007 (gimple_build_omp_scan): Declare.
10008 (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
10009 gimple_omp_scan_set_clauses): New inline functions.
10010 (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
10011 * gimple.c (gimple_build_omp_scan): New function.
10012 (gimple_copy): Handle GIMPLE_OMP_SCAN.
10013 * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
10014 * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
10015 GIMPLE_OMP_TASKGROUP.
10016 (dump_gimple_omp_scan): New function.
10017 (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
10018 * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
10019 * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
10020 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
10021 (is_gimple_stmt): Handle OMP_SCAN.
10022 (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
10023 other than OMP_FOR or OMP_SIMD. Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
10024 (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
10025 mentioned in nested #pragma omp scan. Handle
10026 OMP_CLAUSE_{IN,EX}CLUSIVE.
10027 (gimplify_expr): Handle OMP_SCAN.
10028 * omp-low.c (check_omp_nesting_restrictions): For parent context,
10029 look through GIMPLE_OMP_SCAN context. Allow #pragma omp scan in
10030 simd constructs.
10031 (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
10032 GIMPLE_OMP_SCAN.
10033
10034 2019-06-10 Martin Liska <mliska@suse.cz>
10035
10036 * ipa-cp.c (ignore_edge_p): New function.
10037 (build_toporder_info): Use it.
10038 * ipa-inline.c (ignore_edge_p): New function.
10039 (inline_small_functions): Use it.
10040 * ipa-pure-const.c (ignore_edge_for_nothrow):
10041 Verify opt_for_fn for caller and callee.
10042 (ignore_edge_for_pure_const): Likewise.
10043 * ipa-reference.c (ignore_edge_p): Extend to check
10044 for opt_for_fn.
10045 * ipa-utils.c (searchc): Refactor.
10046 * ipa-utils.h: Fix coding style.
10047
10048 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10049
10050 * config/arc/arc.c (arc_rtx_costs): Update costs.
10051
10052 2019-06-10 Claudiu Zissulescu <claziss@synopsys.com>
10053
10054 * config/arc/arc-protos.h (arc_check_ior_const): Declare.
10055 (arc_split_ior): Likewise.
10056 (arc_check_mov_const): Likewise.
10057 (arc_split_mov_const): Likewise.
10058 * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
10059 (arc_rtx_costs): Replace check Crr with Cax constraint.
10060 (prepare_move_operands): Cleanup, remove unused code.
10061 (arc_split_ior): New function.
10062 (arc_check_ior_const): Likewise.
10063 (arc_split_mov_const): Likewise.
10064 (arc_check_mov_const): Likewise.
10065 * config/arc/arc.md (movsi_insn): Restructure it, and convert it
10066 in define_insn_and_split pattern.
10067 (iorsi3): Likewise.
10068 (mulsi3_v2): Add new matching variant.
10069 (andsi3_i): Cleanup pattern.
10070 (rotrsi3_cnt1): Update pattern.
10071 (rotrsi3_cnt8): New pattern.
10072 (ashlsi2_cnt8): Likewise.
10073 (ashlsi2_cnt16): Likewise.
10074 * config/arc/constraints.md (C0p): Update constraint.
10075 (Crr): Remove it.
10076 (C0x): New pattern.
10077 (Cax): New pattern.
10078
10079 2019-06-10 Martin Liska <mliska@suse.cz>
10080
10081 * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
10082 Update coding style.
10083 (sem_item_optimizer::dump_cong_classes):
10084 Print how many items are in a non-singular class. Improve
10085 coding style.
10086
10087 2019-06-10 Martin Liska <mliska@suse.cz>
10088
10089 * value-prof.c (dump_histogram_value): Change dump format.
10090 (gimple_mod_subtract_transform): Remove legacy comment.
10091
10092 2019-06-10 Martin Liska <mliska@suse.cz>
10093
10094 * value-prof.c (dump_histogram_value): Print histogram values
10095 only if present.
10096
10097 2019-06-10 Martin Liska <mliska@suse.cz>
10098
10099 * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
10100 (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
10101 * ipa-profile.c (ipa_profile_generate_summary):
10102 Use get_most_common_single_value.
10103 * tree-profile.c (gimple_init_gcov_profiler):
10104 Instrument with __gcov_one_value_profiler_v2
10105 and __gcov_indirect_call_profiler_v4.
10106 * value-prof.c (dump_histogram_value):
10107 Print all values for HIST_TYPE_SINGLE_VALUE.
10108 (stream_out_histogram_value): Update assert for
10109 N values.
10110 (stream_in_histogram_value): Set number of
10111 counters for HIST_TYPE_SINGLE_VALUE.
10112 (get_most_common_single_value): New.
10113 (gimple_divmod_fixed_value_transform):
10114 Use get_most_common_single_value.
10115 (gimple_ic_transform): Likewise.
10116 (gimple_stringops_transform): Likewise.
10117 (gimple_find_values_to_profile): Set number
10118 of counters for HIST_TYPE_SINGLE_VALUE.
10119 * value-prof.h (get_most_common_single_value): New.
10120
10121 2019-06-10 Martin Liska <mliska@suse.cz>
10122
10123 * hash-map.h: Pass default value to hash_table ctor.
10124 * hash-table.h: Add default value to call of a ctor.
10125
10126 2019-06-08 Jonathan Wakely <jwakely@redhat.com>
10127
10128 * doc/invoke.texi (C Dialect Options): Minor grammatical change.
10129 (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
10130
10131 2019-06-07 John David Anglin <danglin@gcc.gnu.orig>
10132
10133 PR target/90751
10134 * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
10135 Call pa_output_function_label.
10136 (TARGET_ASM_FUNCTION_PROLOGUE): define.
10137 * config/pa/pa-protos.h (pa_output_function_label): Declare.
10138 * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
10139 to declaration.
10140 (pa_linux_output_function_prologue): Declare.
10141 (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
10142 (pa_output_function_label): New.
10143 (pa_output_function_prologue): Revise to use pa_output_function_label.
10144 (pa_linux_output_function_prologue): New.
10145 * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
10146
10147 2019-06-07 Aldy Hernandez <aldyh@redhat.com>
10148
10149 * tree-vrp.h (value_range_base::intersect): New.
10150 (value_range::intersect_helper): Move from here...
10151 (value_range_base::intersect_helper): ...to here.
10152 * tree-vrp.c (value_range::intersect_helper): Rename to...
10153 (value_range_base::intersect_helper): ...this, and rewrite to
10154 return a value instead of modifying THIS in place.
10155 Also, move equivalence handling...
10156 (value_range::intersect): ...here, while calling intersect_helper.
10157 * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
10158 calling intersect.
10159 * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
10160 Same.
10161 * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
10162
10163 2019-06-07 Jakub Jelinek <jakub@redhat.com>
10164
10165 * Makefile.in (genprogerr): Add condmd.
10166 (genprog): Remove it here.
10167
10168 2019-06-07 Andrew Stubbs <ams@codesourcery.com>
10169
10170 * doc/invoke.texi (AMD GCN Options): Add gfx906.
10171
10172 2019-06-07 Richard Biener <rguenther@suse.de>
10173
10174 PR debug/90574
10175 * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
10176 that appear after user labels.
10177
10178 2019-06-07 Martin Liska <mliska@suse.cz>
10179
10180 * cselib.c (cselib_init): Disable hash table
10181 sanitization.
10182 * hash-set.h: Pass new default argument to m_table.
10183 * hash-table.c: Add global variable with hash table
10184 sanitization limit.
10185 * hash-table.h (Allocator>::hash_table): Add new argument
10186 to ctor.
10187 (hashtab_chk_error): New.
10188 * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
10189 * toplev.c (process_options): Set hash_table_sanitize_eq_limit
10190 from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
10191
10192 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10193
10194 * common.opt (flto-odr-type-merging): Ignore.
10195 * invoke.texi (-flto-odr-type-merging): Remove.
10196 * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
10197 (can_be_vtable_hashed_p): Remove.
10198 (hash_odr_vtable): Remove.
10199 (odr_vtable_hasher::hash): Remove.
10200 (types_same_for_odr): Remove.
10201 (types_odr_comparable): Remove.
10202 (odr_vtable_hasher::equal): Remove.
10203 (odr_vtable_hash_type, odr_vtable_hash): Remove.
10204 (add_type_duplicate): Do not synchronize vtable and name hashtables.
10205 (get_odr_type): Do not use vtable hash.
10206 (dump_odr_type): Remove commented out code.
10207 (build_type_inheritance_graph): Do not allocate vtable hash.
10208 (rebuild_type_inheritance_graph): Do not delete vtable hash.
10209 * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
10210 (odr_type_p): Likewise.
10211 * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
10212 test.
10213
10214 2019-06-07 Jan Hubicka <hubicka@ucw.cz>
10215
10216 * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
10217 immediately after same_types_for_tbaa_p returns -1 and continue
10218 looking for possible exact match; if matching types are arrays
10219 watch for partial overlaps.
10220 (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
10221 (indirect_refs_may_alias_p): Do type based disambiguation first;
10222 update comment.
10223
10224 2019-06-07 Richard Sandiford <richard.sandiford@arm.com>
10225
10226 * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
10227
10228 2019-06-07 Martin Liska <mliska@suse.cz>
10229
10230 * doc/invoke.texi: Remove param.
10231 * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
10232 Remove.
10233 * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
10234 (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
10235 * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
10236 * profile.c (instrument_values): Remove
10237 HIST_TYPE_INDIR_CALL_TOPN.
10238 * tree-profile.c (init_ic_make_global_vars):
10239 Always build __gcov_indirect_call only.
10240 (gimple_init_gcov_profiler): Remove usage
10241 of PARAM_INDIR_CALL_TOPN_PROFILE.
10242 (gimple_gen_ic_profiler): Likewise.
10243 * value-prof.c (dump_histogram_value): Likewise.
10244 (stream_in_histogram_value): Likewise.
10245 (gimple_indirect_call_to_profile): Likewise.
10246 (gimple_find_values_to_profile): Likewise.
10247 * value-prof.h (enum hist_type): Likewise.
10248
10249 2019-06-07 Martin Liska <mliska@suse.cz>
10250
10251 * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
10252 function.
10253
10254 2019-06-07 Martin Liska <mliska@suse.cz>
10255
10256 PR tree-optimization/78902
10257 * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
10258 (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
10259 (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10260 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
10261 (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
10262 (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10263 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
10264 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
10265 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10266 (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
10267 (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
10268 (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
10269 (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
10270 New.
10271 (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
10272 (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
10273 (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
10274 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10275 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
10276 (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
10277 (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10278 (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
10279 * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
10280 warn_unused_result attribute.
10281 (BUILT_IN_STRDUP): Likewise.
10282 (BUILT_IN_STRNDUP): Likewise.
10283 (BUILT_IN_ALLOCA): Likewise.
10284 (BUILT_IN_CALLOC): Likewise.
10285 (BUILT_IN_MALLOC): Likewise.
10286 (BUILT_IN_REALLOC): Likewise.
10287
10288 2019-06-06 Jim Wilson <jimw@sifive.com>
10289
10290 PR target/89955
10291 * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
10292 * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
10293 * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
10294
10295 2019-06-06 Martin Sebor <msebor@redhat.com>
10296
10297 * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
10298 (handle_builtin_malloc): Remove trailing spaces.
10299 (handle_builtin_memset): Same.
10300 (handle_builtin_memcmp): Same.
10301 (compute_string_length): Same.
10302 (determine_min_objsize): Same.
10303 (handle_builtin_string_cmp): Same.
10304 (handle_char_store): Same. Break up excessively long line.
10305
10306 2019-06-06 Martin Jambor <mjambor@suse.cz>
10307
10308 * tree-sra.c (build_reconstructed_reference): Drop the alignment
10309 check.
10310
10311 2019-06-06 Martin Jambor <mjambor@suse.cz>
10312
10313 * tree-sra.c (struct access): New field grp_same_access_path.
10314 (dump_access): Dump it.
10315 (build_reconstructed_reference): New function.
10316 (build_ref_for_model): Use it if possible.
10317 (path_comparable_for_same_access): New function.
10318 (same_access_path_p): Likewise.
10319 (sort_and_splice_var_accesses): Set the new flag.
10320 (analyze_access_subtree): Likewise.
10321 (propagate_subaccesses_across_link): Propagate zero value of the new
10322 flag down the access tree.
10323
10324 2019-06-06 Andrew Stubbs <ams@codesourcery.com>
10325
10326 * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
10327 * config/gcn/gcn.opt (gpu_type): Add gfx906.
10328 * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
10329 (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
10330 Add gfx906.
10331
10332 2019-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10333
10334 PR tree-optimization/90332
10335 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
10336 Handle VALS containing two vectors.
10337 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
10338 to...
10339 (@aarch64_combinez<mode>): ... This.
10340 (*aarch64_combinez_be<mode>): Rename to...
10341 (@aarch64_combinez_be<mode>): ... This.
10342 (vec_init<mode><Vhalf>): New define_expand.
10343 * config/aarch64/iterators.md (Vhalf): Handle V8HF.
10344
10345 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10346
10347 * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
10348 library functions only when not optimizing for size.
10349 (ashlsi3): Likewise.
10350 (ashrhi3): Likewise.
10351 (ashrsi3): Likewise.
10352 (lshrhi3): Likewise.
10353 (lshrsi3): Likewise.
10354
10355 2019-06-06 Andreas Krebbel <krebbel@linux.ibm.com>
10356
10357 PR rtl-optimization/88751
10358 * ira.c (ira): Use the number of the actually referenced registers
10359 when calculating the threshold.
10360
10361 2019-06-06 Jakub Jelinek <jakub@redhat.com>
10362
10363 * configure: Regenerate.
10364
10365 2019-06-06 Jozef Lawrynowicz <jozef.l@mittosystems.com>
10366
10367 * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
10368 register if it is in memory, so the shift can be emulated with a rotate
10369 instruction.
10370 (ashrhi3): Likewise.
10371 (lshrhi3): Likewise.
10372
10373 2019-06-06 Martin Liska <mliska@suse.cz>
10374
10375 PR tree-optimization/87954
10376 * match.pd: Simplify mult where both arguments are 0 or 1.
10377
10378 2019-06-06 Richard Biener <rguenther@suse.de>
10379
10380 * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
10381 put equivalences on UNDEFINED ranges.
10382 * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
10383 Make sure to drop defs of stmts added during simplification
10384 to VARYING.
10385
10386 2019-06-06 Richard Biener <rguenther@suse.de>
10387
10388 * tree-ssa-structalias.c: Include tree-cfg.h.
10389 (make_heapvar): Do not make heap vars artificial.
10390 (find_func_aliases_for_builtin_call): Handle stack allocation
10391 functions.
10392 (find_func_aliases): Delay processing of simple enough returns
10393 in non-IPA mode.
10394 (set_uids_in_ptset): Adjust.
10395 (find_what_var_points_to): Likewise.
10396 (solve_constraints): Do not dump points-to sets here.
10397 (compute_points_to_sets): Post-process return statements,
10398 amending the escaped solution. Dump points-to sets afterwards.
10399 (ipa_pta_execute): Dump points-to sets.
10400
10401 2019-06-06 Martin Liska <mliska@suse.cz>
10402
10403 PR web/87933
10404 * doc/install.texi: Fix HTML headers and
10405 titles for 'Installing GCC' pages.
10406
10407 2019-06-06 Martin Liska <mliska@suse.cz>
10408
10409 * ipa-icf-gimple.h (dump_message_1): Remove.
10410 (dump_message): Likewise.
10411 (return_false_with_message_1): Print also file.
10412 (return_false_with_msg): Likewise.
10413 (return_with_result): Likewise.
10414 (return_with_debug): Likewise.
10415 * ipa-icf.c (sem_function::equals_private): Remove call
10416 to dump_message.
10417
10418 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10419
10420 * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
10421 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
10422 memory operand for it.
10423 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
10424
10425 2019-06-05 Martin Sebor <msebor@redhat.com>
10426
10427 * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
10428 Adjust quoting and hyphenation.
10429 * convert.c (convert_to_real_1): Same.
10430 * gcc.c (driver_wrong_lang_callback): Same.
10431 (driver::handle_unrecognized_options): Same.
10432 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
10433 * opts-common.c (cmdline_handle_error): Same.
10434 (read_cmdline_option): Same.
10435 * opts-global.c (complain_wrong_lang): Same.
10436 (print_ignored_options): Same.
10437 (handle_common_deferred_options): Same.
10438 * pretty-print.h: Same.
10439 * print-rtl.c (debug_bb_n_slim): Same.
10440 * sched-rgn.c (make_pass_sched_fusion): Same.
10441 * tree-cfg.c (verify_gimple_assign_unary): Same.
10442 (verify_gimple_label): Same.
10443 * tree-ssa-operands.c (verify_ssa_operands): Same.
10444 * varasm.c (do_assemble_alias): Same.
10445 (assemble_alias): Same.
10446
10447 2019-06-05 Richard Henderson <rth@twiddle.net>
10448
10449 * config/alpha/alpha.c (direct_return): Move down after
10450 struct machine_function definition; use saved frame_size;
10451 return bool.
10452 (struct machine_function): Add sa_mask, sa_size, frame_size.
10453 (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
10454 (alpha_compute_frame_layout): ... new function.
10455 (TARGET_COMPUTE_FRAME_LAYOUT): New.
10456 (alpha_initial_elimination_offset): Use saved sa_size.
10457 (alpha_vms_initial_elimination_offset): Likewise.
10458 (alpha_vms_can_eliminate): Remove alpha_sa_size call.
10459 (alpha_expand_prologue): Use saved frame data. Merge integer
10460 and fp register save loops.
10461 (alpha_expand_epilogue): Likewise.
10462 (alpha_start_function): Use saved frame data.
10463 * config/alpha/alpha-protos.h (direct_return): Update.
10464 (alpha_sa_size): Remove.
10465
10466 2019-06-05 Eric Botcazou <ebotcazou@adacore.com>
10467
10468 * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
10469 multiplication by a power-of-two value.
10470 (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
10471 and turn the modulo operation into a masking operation.
10472
10473 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10474
10475 PR debug/90733
10476 * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
10477 with VOIDmode inner operands.
10478
10479 2019-06-05 Richard Biener <rguenther@suse.de>
10480
10481 PR middle-end/90726
10482 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
10483 turn an expression graph into a tree.
10484
10485 2019-06-05 Jakub Jelinek <jakub@redhat.com>
10486
10487 * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
10488 member.
10489 (expand_parallel_call): If region->inner->has_lastprivate_conditional,
10490 treat it like explicit monotonic schedule modifier.
10491 (expand_omp_for): Initialize has_lastprivate_conditional.
10492 If fd.lastprivate_conditional != 0, treat it like explicit monotonic
10493 schedule modifier.
10494
10495 * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
10496 references, lookup in in hash map MEM_REF operand instead of the
10497 MEM_REF itself.
10498 (lower_omp_1): When looking for lastprivate conditional assignments,
10499 handle MEM_REFs with REFERENCE_TYPE operands.
10500
10501 * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
10502 on privatization clauses OMP_CLAUSE_DECL is privatized by reference
10503 and references a VLA. Handle references to non-VLAs if is_simd
10504 all privatization clauses like reductions.
10505 (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
10506 If omp_is_reference, use always omp simd arrays and set
10507 DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
10508 fails, emit reference initialization.
10509
10510 2019-06-05 Hongtao Liu <hongtao.liu@intel.com>
10511
10512 PR target/89803
10513 * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
10514 _mm_mask_fpclass_sd_mask): New intrinsics.
10515 (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
10516 * config/i386/i386-builtin.def
10517 (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
10518 New builtins.
10519 (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
10520 * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
10521 DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
10522 * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
10523 case QI_FTYPE_V2SF_INT): Ditto.
10524 * config/i386/sse.md
10525 (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
10526 Extended to insnstructions with mask operands.
10527
10528 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10529
10530 * config/rs6000/constraints.md (define_register_constraint "wp"):
10531 Delete.
10532 (define_register_constraint "wq"): Delete.
10533 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10534 (rs6000_init_hard_regno_mode_ok): Adjust.
10535 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10536 RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
10537 * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
10538 (define_mode_attr VSa): Delete.
10539 (define_mode_attr VSisa): New.
10540 (rest of file): Adjust.
10541 * doc/md.texi (Machine Constraints): Adjust.
10542
10543 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10544
10545 * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
10546 (define_attr "enabled"): Handle those new isa values.
10547
10548 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10549
10550 * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
10551 (define_mode_attr VSr5): Delete.
10552 (define_mode_attr VStype_sqrt): Delete.
10553 (define_mode_iterator VSX_SPDP): Delete.
10554 (define_mode_attr VS_spdp_res): Delete.
10555 (define_mode_attr VS_spdp_insn): Delete.
10556 (define_mode_attr VS_spdp_type): Delete.
10557 (*vsx_sqrt<mode>2): Adjust.
10558 (vsx_<VS_spdp_insn>): Delete, split to...
10559 (vsx_xscvdpsp): ... this. New. And...
10560 (vsx_xvcvspdp): ... this. New. And...
10561 (vsx_xvcvdpsp): ... this. New.
10562
10563 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10564
10565 * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
10566 and V2DF.
10567 * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
10568 (rest of file): Adjust.
10569
10570 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10571
10572 * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
10573 (vsx_extract_<mode>_var): Ditto.
10574
10575 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10576
10577 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
10578 with just "wa".
10579
10580 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10581
10582 * config/rs6000/constraints.md (define_register_constraint "ww"):
10583 Delete.
10584 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10585 (rs6000_init_hard_regno_mode_ok): Adjust.
10586 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10587 RS6000_CONSTRAINT_ww.
10588 * config/rs6000/rs6000.md: Adjust.
10589 * config/rs6000/vsx.md: Adjust.
10590 * doc/md.texi (Machine Constraints): Adjust.
10591
10592 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10593
10594 * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
10595 (define_mode_attr sd): New.
10596 (define_mode_attr s): New.
10597 (define_mode_attr Ftrad): Delete.
10598 (define_mode_attr Fvsx): Delete.
10599 (define_mode_attr Fs): Delete.
10600 (rest of file): Use the new mode attributes.
10601 * config.rs6000/vsx.md: Use the new mode attributes.
10602
10603 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10604
10605 * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
10606 with just "wa".
10607
10608 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10609
10610 * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
10611 (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
10612 used with VSX_B, VSX_D, or VSX_F, with just "wa".
10613
10614 2019-06-04 Bill Schmidt <wschmidt@linux.ibm.com>
10615
10616 PR target/78263
10617 * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
10618 C++ with strict ANSI requirements.
10619
10620 2019-06-04 Marc Glisse <marc.glisse@inria.fr>
10621
10622 * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
10623 computations when step is 1.
10624
10625 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10626
10627 * config/rs6000/constraints.md (define_register_constraint "wf"):
10628 Delete.
10629 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10630 (rs6000_init_hard_regno_mode_ok): Adjust.
10631 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10632 RS6000_CONSTRAINT_wf.
10633 * config/rs6000/rs6000.md: Adjust.
10634 * config/rs6000/vsx.md: Adjust.
10635 * doc/md.texi (Machine Constraints): Adjust.
10636
10637 2019-06-04 Andrew Pinski <apinski@marvell.com>
10638
10639 * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
10640 Fix ILP32 value.
10641
10642 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10643
10644 * config/rs6000/constraints.md (define_register_constraint "wd"):
10645 Delete.
10646 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10647 (rs6000_init_hard_regno_mode_ok): Adjust.
10648 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10649 RS6000_CONSTRAINT_wd.
10650 * config/rs6000/rs6000.md: Adjust.
10651 * config/rs6000/vsx.md: Adjust.
10652 * doc/md.texi (Machine Constraints): Adjust.
10653
10654 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10655
10656 * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
10657 (rest of file): Adjust.
10658
10659 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10660
10661 * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
10662 (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
10663 (vsx_splat_<mode>_reg): Adjust.
10664
10665 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10666
10667 * config/rs6000/constraints.md (define_register_constraint "ws"):
10668 Delete.
10669 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10670 (rs6000_init_hard_regno_mode_ok): Adjust.
10671 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10672 RS6000_CONSTRAINT_ws.
10673 * config/rs6000/rs6000.md: Adjust.
10674 * config/rs6000/vsx.md: Adjust.
10675 * doc/md.texi (Machine Constraints): Adjust.
10676
10677 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10678
10679 * config/rs6000/constraints.md (define_register_constraint "wv"):
10680 Delete.
10681 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10682 (rs6000_init_hard_regno_mode_ok): Adjust.
10683 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10684 RS6000_CONSTRAINT_wv.
10685 * config/rs6000/rs6000.md: Adjust.
10686 * config/rs6000/vsx.md: Adjust.
10687 * doc/md.texi (Machine Constraints): Adjust.
10688
10689 2019-06-04 Segher Boessenkool <segher@kernel.crashing.org>
10690
10691 * config/rs6000/constraints.md (define_register_constraint "wi"):
10692 Delete.
10693 (define_register_constraint "wt"): Delete.
10694 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10695 (rs6000_init_hard_regno_mode_ok): Adjust.
10696 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10697 RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
10698 * config/rs6000/rs6000.md: Adjust.
10699 * config/rs6000/vsx.md: Adjust.
10700 * doc/md.texi (Machine Constraints): Adjust.
10701
10702 2019-06-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
10703
10704 * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
10705 const.
10706 * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
10707 default_elf_asm_output_external.
10708
10709 2019-06-04 Martin Liska <mliska@suse.cz>
10710
10711 * ipa-icf.c (INCLUDE_LIST): Remove.
10712 (sem_item_optimizer::execute): Remove call to init_wpa.
10713 * ipa-icf.h (init_wpa): Remove.
10714
10715 2019-06-04 Jakub Jelinek <jakub@redhat.com>
10716
10717 * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
10718 conditional on combined for simd.
10719 * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
10720 member.
10721 (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
10722 constructs, don't remove lastprivate_conditional_map, but instead set
10723 ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
10724 to parent construct temporaries.
10725 (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
10726 like !ctx->lastprivate_conditional_map.
10727 (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
10728 use up->outer context instead of up.
10729 * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
10730 gimple_omp_for_combined_p.
10731 (expand_omp_for_static_nochunk): Likewise.
10732 (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
10733 probably moved over into expand_omp_for_generic rather than being copied
10734 there.
10735
10736 2019-06-04 Martin Liska <mliska@suse.cz>
10737
10738 * value-prof.c (dump_histogram_value): Fix typo.
10739 (gimple_mod_subtract_transform): Likewise.
10740
10741 2019-06-04 Richard Biener <rguenther@suse.de>
10742
10743 PR middle-end/90726
10744 * tree-chrec.c (chrec_contains_symbols): Add to visited.
10745 (tree_contains_chrecs): Likewise.
10746 (chrec_contains_symbols_defined_in_loop): Move here and avoid
10747 exponential behaivor from ...
10748 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
10749 ... here.
10750 (expression_expensive_p): Avoid exponential behavior and compute
10751 expanded size, rejecting any expansion.
10752 * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
10753 (idx_contains_abnormal_ssa_name_p): Likewise.
10754 (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
10755 (contains_abnormal_ssa_name_p): Simplify and use
10756 walk_tree_without_duplicates.
10757
10758 2019-06-04 Richard Biener <rguenther@suse.de>
10759
10760 PR tree-optimization/90738
10761 Revert
10762 2019-06-03 Richard Biener <rguenther@suse.de>
10763
10764 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10765 full reference tree and record in ref->ref.
10766 (vn_reference_lookup_3): Pass in original ref to
10767 ao_ref_init_from_vn_reference.
10768 (vn_reference_lookup): Likewise.
10769 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10770 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10771 Handle non-decl bases in the original reference.
10772
10773 2019-06-04 Martin Liska <mliska@suse.cz>
10774
10775 * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
10776 number of references.
10777 (sem_item_optimizer::do_congruence_step):
10778 (sem_item_optimizer::worklist_push): Dump how references
10779 a class has.
10780 (sem_item_optimizer::worklist_pop): Use heap.
10781 (sem_item_optimizer::process_cong_reduction): Likewise.
10782 * ipa-icf.h: Use fibonacci_heap insteam of std::list.
10783
10784 2019-06-04 Martin Liska <mliska@suse.cz>
10785
10786 * ipa-icf.h (struct sem_usage_pair_hash): New.
10787 (sem_usage_pair_hash::hash): Likewise.
10788 (sem_usage_pair_hash::equal): Likewise.
10789 (struct sem_usage_hash): Likewise.
10790 * ipa-icf.c (sem_item::sem_item): Initialize
10791 referenced_by_count.
10792 (sem_item::add_reference): Register a reference
10793 in ref_map and not in target->usages.
10794 (sem_item::setup): Remove initialization of
10795 dead vectors.
10796 (sem_item::~sem_item): Remove usage of dead vectors.
10797 (sem_item::dump): Remove dump of references.
10798 (sem_item_optimizer::sem_item_optimizer): Initialize
10799 m_references.
10800 (sem_item_optimizer::read_section): Remove useless
10801 dump.
10802 (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
10803 (sem_item_optimizer::build_graph): Pass m_references
10804 to ::add_reference.
10805 (sem_item_optimizer::verify_classes): Remove usage of dead
10806 vectors.
10807 (sem_item_optimizer::traverse_congruence_split): Return true
10808 when a class is split.
10809 (sem_item_optimizer::do_congruence_step_for_index): Use
10810 hash_map for look up of (sem_item *, index). That brings
10811 significant speed up.
10812 (sem_item_optimizer::do_congruence_step): Return true
10813 when a split is done.
10814 (congruence_class::is_class_used): Use referenced_by_count.
10815
10816 2019-06-04 Alan Modra <amodra@gmail.com>
10817
10818 PR target/90689
10819 * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
10820 error.
10821
10822 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10823
10824 * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
10825 * config/rs6000/rs6000.c (direct_move_p): Adjust.
10826 (rs6000_secondary_reload_simple_move): Adjust.
10827 (rs6000_opt_masks): Neuter the "mfpgpr" option.
10828 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
10829 * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
10830 comment.
10831 (power6x): Adjust.
10832 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
10833 (floatunssi<mode>2_lfiwzx): Adjust.
10834 (fix_trunc<mode>si2_stfiwx): Adjust.
10835 (fixuns_trunc<mode>si2_stfiwx): Adjust.
10836 * config/rs6000/rs6000.opt (mno-mfpgpr): New.
10837 (mfpgpr): Mark as deprecated.
10838 * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
10839 (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
10840 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
10841
10842 2019-06-03 Segher Boessenkool <segher@kernel.crashing.org>
10843
10844 * config/rs6000/constraints.md (define_register_constraint "wg"):
10845 Delete.
10846 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
10847 RS6000_CONSTRAINT_wg.
10848 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
10849 (rs6000_init_hard_regno_mode_ok): Adjust.
10850 * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
10851 Delete "wg" alternatives.
10852 * doc/md.texi (Machine Constraints): Adjust.
10853
10854 2019-06-03 Alan Modra <amodra@gmail.com>
10855
10856 * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
10857 (get_uncond_jump_length): Assert length less than INT_MAX and
10858 non-negative.
10859
10860 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10861
10862 PR middle-end/64242
10863 * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
10864 block.
10865 (expand_builtin_nonlocal_goto): Likewise.
10866
10867 2019-06-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
10868
10869 * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
10870 (aarch64_asm_output_external): Declare.
10871 * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
10872 (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
10873 (aarch64_asm_output_alias): New.
10874 (aarch64_asm_output_external): New.
10875 * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
10876 (ASM_OUTPUT_EXTERNAL): Define.
10877
10878 2019-06-03 Aldy Hernandez <aldyh@redhat.com>
10879 * tree-vrp.h (value_range_base::nonzero_p): New.
10880 (value_range_base::set_nonnull): Rename to...
10881 (value_range_base::set_nonzero): ...this.
10882 (value_range_base::set_null): Rename to...
10883 (value_range_base::set_zero): ...this.
10884 (value_range::set_nonnull): Remove.
10885 (value_range::set_null): Remove.
10886 * tree-vrp.c (range_is_null): Remove.
10887 (range_is_nonnull): Remove.
10888 (extract_range_from_binary_expr): Use value_range_base::*zero_p
10889 instead of range_is_*null.
10890 (extract_range_from_unary_expr): Same.
10891 (value_range_base::set_nonnull): Rename to...
10892 (value_range_base::set_nonzero): ...this.
10893 (value_range::set_nonnull): Remove.
10894 (value_range_base::set_null): Rename to...
10895 (value_range_base::set_zero): ...this.
10896 (value_range::set_null): Remove.
10897 (extract_range_from_binary_expr): Rename set_*null uses to
10898 set_*zero.
10899 (extract_range_from_unary_expr): Same.
10900 (union_helper): Same.
10901 * vr-values.c (get_value_range): Use set_*zero instead of
10902 set_*null.
10903 (vr_values::extract_range_from_binary_expr): Same.
10904 (vr_values::extract_range_basic): Same.
10905
10906 2019-06-03 Wilco Dijkstra <wdijkstr@arm.com>
10907
10908 PR driver/90684
10909 * opts.c (parse_and_check_align_values): Allow 4 alignment values.
10910
10911 2019-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10912
10913 * config/aarch64/iterators.md (MAX_OPP): New code attr.
10914 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
10915 Rename to...
10916 (aarch64_<su>abd<mode>_3): ... This.
10917 (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
10918
10919 2019-06-03 Richard Biener <rguenther@suse.de>
10920
10921 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
10922 full reference tree and record in ref->ref.
10923 (vn_reference_lookup_3): Pass in original ref to
10924 ao_ref_init_from_vn_reference.
10925 (vn_reference_lookup): Likewise.
10926 * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
10927 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
10928 Handle non-decl bases in the original reference.
10929
10930 2019-06-03 Martin Liska <mliska@suse.cz>
10931
10932 * doc/generic.texi: Remove Java Trees.
10933
10934 2019-06-03 Martin Liska <mliska@suse.cz>
10935
10936 * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
10937 returns 0 when operands are equal.
10938
10939 2019-06-03 Richard Biener <rguenther@suse.de>
10940
10941 PR tree-optimization/90716
10942 * tree-loop-distribution.c (destroy_loop): Process blocks in
10943 correct order.
10944
10945 2019-06-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
10946
10947 PR target/88837
10948 * vector-builder.h (vector_builder::count_dups): New method.
10949 * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
10950 Declare prototype.
10951 * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
10952 (vec_init<mode><Vel>): New pattern.
10953 * config/aarch64/aarch64.c (emit_insr): New function.
10954 (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
10955 (aarch64_sve_expand_vector_init_insert_elems): Likewise.
10956 (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
10957 (aarch64_sve_expand_vector_init): Define two overloaded functions.
10958
10959 2019-06-03 Alejandro Martinez <alejandro.martinezvicente@arm.com>
10960
10961 PR tree-optimization/90681
10962 * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
10963 * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
10964 special case for SLP, but fail on non-groupped loads.
10965
10966 2019-06-03 Martin Liska <mliska@suse.cz>
10967
10968 * cfg.c (debug): Use TDF_DETAILS for debug and
10969 print edge info only once.
10970
10971 2019-06-02 Thomas Koenig <tkoenig@gcc.gnu.org>
10972
10973 PR fortran/90539
10974 * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
10975
10976 2019-06-01 Martin Sebor <msebor@redhat.com>
10977
10978 PR middle-end/90694
10979 * tree-pretty-print.c (dump_generic_node): Add parentheses.
10980
10981 2019-05-31 Jan Hubicka <jh@suse.cz>
10982
10983 * alias.c: Include ipa-utils.h.
10984 (get_alias_set): Try to complete ODR type via ODR type hash lookup.
10985 * ipa-devirt.c (prevailing_odr_type): New.
10986 * ipa-utils.h (previaling_odr_type): Declare.
10987
10988 2019-05-31 H.J. Lu <hongjiu.lu@intel.com>
10989 Hongtao Liu <hongtao.liu@intel.com>
10990
10991 PR target/89355
10992 * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
10993 NOTE_INSN_DELETED_LABEL check.
10994
10995 2019-05-31 Prachi Godbole <prachi.godbole@imgtec.com>
10996 Robert Suchanek <robert.suchanek@mips.com>
10997
10998 * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
10999 and 3rd operands of the fmadd/fmsub/maddv builtin.
11000
11001 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11002
11003 * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
11004 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11005 on OMP_SIMD if not nested inside of worksharing loop that also has
11006 lastprivate conditional clause for the same decl.
11007 (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
11008 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
11009 on simd.
11010 (lower_rec_input_clauses): Likewise. Handle lastprivate conditional
11011 on simd construct.
11012 (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
11013 on simd construct.
11014 (lower_lastprivate_clauses): Likewise.
11015 (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
11016 calling lower_rec_input_clauses.
11017 (lower_omp_for): Likewise.
11018 (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
11019 clause on simd construct.
11020 * omp-expand.c (expand_omp_simd): Initialize cond_var if
11021 OMP_CLAUSE__CONDTEMP_ clause is present.
11022
11023 * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
11024 ivar and lvar.
11025
11026 2019-05-31 Xiong Hu Luo <luoxhu@linux.ibm.com>
11027
11028 PR c/43673
11029 * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
11030 TEX_D32, TEX_D64 or TEX_D128.
11031
11032 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11033
11034 * match.pd (~(vec?cst1:cst2)): New transformation.
11035
11036 2019-05-31 Marc Glisse <marc.glisse@inria.fr>
11037
11038 * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
11039 ((size_t)(A /[ex] B) CMP C): New transformation.
11040
11041 2019-05-31 Richard Sandiford <richard.sandiford@arm.com>
11042
11043 * doc/md.texi: Document define_insn_and_rewrite.
11044 * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
11045 * gensupport.c (queue_elem): Update comment.
11046 (replace_operands_with_dups): New function.
11047 (gen_rewrite_sequence): Likewise.
11048 (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
11049 * read-rtl.c (apply_subst_iterator): Likewise.
11050 (add_condition_to_rtx, named_rtx_p): Likewise.
11051 (rtx_reader::read_rtx_operand): Likewise.
11052 * config/aarch64/aarch64-sve.md
11053 (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
11054 (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
11055 define_insn_and_rewrite.
11056 (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
11057 Remove separate define_split.
11058
11059 2019-05-31 Jan Hubicka <jh@suse.cz>
11060
11061 * tree-ssa-alias.c (type_has_components_p): New function.
11062 (aliasing_component_refs_p): Use it.
11063
11064 2019-05-31 Martin Liska <mliska@suse.cz>
11065
11066 * gdbhooks.py: Add const_tree to TreePrinter.
11067
11068 2019-05-31 Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
11069
11070 PR debug/86964
11071 * common.opt (feliminate-unused-debug-symbols): Enable by default.
11072 * doc/invoke.texi (Debugging Options): Document new default of
11073 -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
11074
11075 2019-05-31 Jakub Jelinek <jakub@redhat.com>
11076
11077 PR tree-optimization/90671
11078 * tree-ssa-threadupdate.c (ssa_create_duplicates): If
11079 template_block used to be empty on the first call, don't use
11080 gsi_split_seq_after and gsi_insert_seq_after, but remember whole
11081 seq with bb_seq and set it with set_bb_seq.
11082
11083 2019-05-31 Iain Sandoe <iain@sandoe.co.uk>
11084
11085 * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
11086
11087 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11088 Michael Meissner <meissner@linux.ibm.com>
11089
11090 * config/rs6000/predicates.md (pcrel_address): New define_predicate.
11091 (prefixed_mem_operand): Likewise.
11092 (non_prefixed_mem_operand): Likewise.
11093 * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
11094 prototype.
11095 * config/rs6000/rs6000.c (print_operand_address): Handle
11096 PC-relative addresses.
11097 (mode_supports_prefixed_address_p): New function.
11098 (rs6000_prefixed_address): New function.
11099 * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
11100 (SYMBOL_REF_PCREL_P): Likewise.
11101
11102 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11103
11104 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
11105 (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
11106 (gimplify_omp_for): If worksharing loop with lastprivate conditional
11107 is nested inside of parallel region, add _condtemp_ clause to both.
11108 * tree-nested.c (convert_nonlocal_omp_clauses,
11109 convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
11110 assertion failure.
11111 * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
11112 member.
11113 * omp-general.c (omp_extract_for_data): Compute it.
11114 * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
11115 (lower_rec_input_clauses): Likewise.
11116 (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
11117 clause is already present, just add one further one after it.
11118 (lower_lastprivate_clauses): Handle cond_ptr with array type.
11119 (lower_send_shared_vars): Clear _condtemp_ vars.
11120 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
11121 or section or taskgroup.
11122 * omp-expand.c (determine_parallel_type): Disallow combining only if
11123 first OMP_CLAUSE__CONDTEMP_ has pointer type. Disallow combining
11124 of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
11125 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11126 expand_omp_for_static_chunk, expand_omp_for): Use
11127 fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
11128 determine if a special set of API routines are needed and if condtemp
11129 needs to be initialized, while always initialize cond_var if
11130 fd->lastprivate_conditional is non-zero.
11131
11132 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11133 Michael Meissner <meissner@linux.ibm.com>
11134
11135 * config/rs6000/constraints.md (eI): New constraint.
11136 * config/rs6000/predicates.md (cint34_operand): New predicate.
11137 * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
11138 (SIGNED_34BIT_OFFSET_P): Likewise.
11139 * doc/md.texi (eI): Document constraint.
11140
11141 2019-05-30 Sylvia Taylor <sylvia.taylor@arm.com>
11142
11143 * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
11144
11145 2019-05-30 Bill Schmidt <wschmidt@linux.ibm.com>
11146 Michael Meissner <meissner@linux.ibm.com>
11147
11148 * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
11149 (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
11150 (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
11151 (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
11152 (OTHER_FUTURE_MASKS): Likewise.
11153 (POWERPC_MASKS): Likewise.
11154 * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
11155 specified without -mprefixed-addr or -mcpu=future. Error if
11156 -mprefixed-addr is specified without -mcpu=future.
11157 (rs6000_opt_masks): Add entry for prefixed-addr.
11158 * rs6000.opt (mprefixed-addr): New option.
11159
11160 2019-05-30 Sam Tebbs <sam.tebbs@arm.com>
11161
11162 * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
11163 cfun->is_thunk check.
11164
11165 2019-05-30 Jakub Jelinek <jakub@redhat.com>
11166
11167 * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
11168 to length.
11169
11170 2019-05-30 Martin Liska <mliska@suse.cz>
11171
11172 * gdbinit.in: Fix 'ptc' command. Add trt
11173 that prints TREE_TYPE($).
11174
11175 2019-05-29 Bill Schmidt <wschmidt@linux.ibm.com>
11176 Alan Modra <amodra@gmail.com>
11177
11178 * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
11179 calls here...
11180 (rs6000_indirect_call_template_1): ...and here.
11181 (rs6000_pltseq_template): Handle plt_pcrel34. Rework tocsave,
11182 plt16_ha, plt16_lo, mtctr indirect calls. Use
11183 rs6000_pltseq_enum.
11184 (rs6000_decl_ok_for_sibcall): New function.
11185 (rs6000_function_ok_for_sibcall): Refactor.
11186 (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
11187 (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
11188 when pcrel. Reorganize.
11189 (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
11190 * rs6000.h (rs6000_pltseq_enum): New enum.
11191 * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
11192 (*pltseq_tocsave): Use rs6000_pltseq_enum.
11193 (*pltseq_plt16_ha): Likewise.
11194 (*pltseq_plt16_lo): Likewise.
11195 (*pltseq_mtctr): Likewise.
11196 (*pltseq_plt_pcrel): New insn.
11197 (*call_local_aix): Handle @notoc calls.
11198 (*call_value_local_aix): Likewise.
11199 (*call_nonlocal_aix): Adjust lengths for pcrel calls.
11200 (*call_value_nonlocal_aix): Likewise.
11201 (*call_indirect_pcrel): New insn.
11202 (*call_value_indirect_pcrel): Likewise.
11203
11204 2019-05-29 Uroš Bizjak <ubizjak@gmail.com>
11205
11206 * config/i386/sse.md (*save_multiple<mode>): Rename from
11207 save_multiple<mode>.
11208 (*restore_multiple<mode>): Rename from restore_multiple<mode>.
11209 (*restore_multiple_and_return<mode>): Rename from
11210 restore_multiple_and_return<mode>.
11211 (*restore_multiple_leave_return<mode>): Rename from
11212 restore_multiple_leave_return<mode>.
11213
11214 2019-05-29 Yoshinori Sato <ysato@users.sourceforge.jp>
11215
11216 * config.gcc (rx-*-linux*): New target.
11217 * config/rx/elf.opt: New file.
11218 * config/rx/linux.h: Likewise.
11219 * config/rx/t-linux: Likewise.
11220 * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
11221 make it zero.
11222 * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
11223 (ASM_APP_OFF): Likewise.
11224 * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
11225 moved elsewhere.
11226
11227 2019-05-29 Jan Hubicka <jh@suse.cz>
11228
11229 * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
11230 variants are pointer equivalent.
11231
11232 2019-05-29 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11233
11234 * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
11235 * config/aarch64/aarch64-sve2.md: New file.
11236 (<u>avg<mode>3_floor): New pattern.
11237 (<u>avg<mode>3_ceil): Likewise.
11238 (*<sur>h<addsub><mode>): Likewise.
11239 * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
11240 * config/aarch64/aarch64.md: Include aarch64-sve2.md.
11241
11242 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11243
11244 PR bootstrap/90543
11245 * optc-save-gen.awk: In cl_optimization_print, use correct condition
11246 for var_opt_string printing. In cl_optimization_print_diff, print
11247 (null) instead of invoking undefined behavior if one of the
11248 var_opt_string pointers is NULL and use && instead of first || in the
11249 guarding condition. For var_target_other options, handle const char *
11250 target variables similarly to const char * optimize node variables.
11251
11252 2019-05-29 Sam Tebbs <sam.tebbs@arm.com>
11253
11254 * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
11255 AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
11256 * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
11257 Add autib1716 and pacib1716 initialisation.
11258 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
11259 for autib1716 and pacib1716.
11260 * config/aarch64/aarch64-protos.h (aarch64_key_type,
11261 aarch64_post_cfi_startproc): Define.
11262 * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
11263 * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
11264 aarch64_handle_pac_ret_protection): Set default sign key to A.
11265 * config/aarch64/aarch64.c (aarch64_expand_epilogue,
11266 aarch64_expand_prologue): Add check for b-key.
11267 * config/aarch64/aarch64.c (aarch64_ra_sign_key,
11268 aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
11269 * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
11270 * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
11271 * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
11272 UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
11273 UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11274 * config/aarch64/aarch64.md (do_return): Add check for b-key.
11275 * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
11276 pauth_hint_num_a with pauth_hint_num.
11277 * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
11278 pauth_hint_num_a with pauth_hint_num.
11279 * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
11280 * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
11281 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11282 * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
11283 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
11284 * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
11285 UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
11286 UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
11287 * config/aarch64/iterators.md (pauth_hint_num_a): Replace
11288 UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
11289 UNSPEC_AUTIA1716 respectively.
11290 * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
11291 pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
11292 UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
11293 * doc/invoke.texi (-mbranch-protection): Add b-key type.
11294 * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
11295 UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
11296
11297 2019-05-29 Jakub Jelinek <jakub@redhat.com>
11298
11299 * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
11300 (gimplify_scan_omp_clauses): Initialize ctx->clauses.
11301 (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
11302 explicit clause on combined parallel into implicit shared clause.
11303 (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
11304 and firstprivate if the decl has one too from combined parallel to
11305 the worksharing construct.
11306
11307 2019-05-28 Bill Schmidt <wschmidt@linux.ibm.com>
11308 Michael Meissner <meissner@linux.ibm.com>
11309
11310 * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
11311
11312 2019-05-28 Michael Meissner <meissner@linux.ibm.com>
11313
11314 * rtl.h (LABEL_REF_P): New #define.
11315
11316 2019-05-28 John David Anglin <danglin@gcc.gnu.org>
11317
11318 * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
11319
11320 2019-05-28 Alejandro Martinez <alejandro.martinezvicente@arm.com>
11321
11322 * internal-fn.c: Marked mask_load_direct as vectorizable.
11323 * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
11324 * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
11325 combined even if masks different with allow_slp_p param.
11326 (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
11327 * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
11328 dissolve SLP-only vectorizable groups when SLP has been discarded.
11329 (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
11330 * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
11331 masks.
11332 (vect_build_slp_tree_1): Fixed comment typo.
11333 (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
11334 * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
11335 loads for SLP only.
11336 * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
11337 vectorizable.
11338 * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
11339
11340 2019-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11341
11342 * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
11343 Remove obsolete use_thunk reference.
11344 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
11345 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
11346 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
11347 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
11348 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
11349 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
11350 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
11351 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
11352 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
11353
11354 2019-05-28 Nathan Sidwell <nathan@acm.org>
11355
11356 * tree.h (IDENTIFIER_ANON_P): New.
11357 (anon_aggrname_format, anon_aggname_p): Don't declare.
11358 (make_anon_name): Declare.
11359 * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
11360 (hash_tree): Likewise.
11361 * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
11362 * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
11363 (anon_cnt, make_anon_name): New.
11364
11365 2019-05-28 Martin Liska <mliska@suse.cz>
11366
11367 PR other/90315
11368 * opts-global.c (decode_options): Print help for all
11369 help_option_arguments.
11370 * opts.c (print_help): Add new argument.
11371 (common_handle_option): Remember all values into
11372 help_option_arguments.
11373 * opts.h (print_help): Add new argument.
11374
11375 2019-05-28 Martin Liska <mliska@suse.cz>
11376
11377 PR ipa/90555
11378 * ipa-icf-gimple.c (func_checker::compare_loops): New function.
11379 * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
11380 (func_checker::compare_bb): Call compare_loops.
11381
11382 2019-05-27 Jakub Jelinek <jakub@redhat.com>
11383
11384 * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
11385 on sections construct.
11386 * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
11387 construct.
11388 (lower_omp_sections): Handle lastprivate conditional.
11389 (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
11390 lastprivate_conditional_map.
11391 * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
11392
11393 * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
11394 critical, taskgroup and section regions when looking for a region
11395 with non-NULL lastprivate_conditional_map.
11396
11397 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11398
11399 * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
11400 (*ix86_gen_sub3): Ditto.
11401 (*ix86_gen_sub3_carry): Ditto.
11402 (*ix86_gen_one_cmpl2): Ditto.
11403 (*ix86_gen_andsp): Ditto.
11404 (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
11405 (gen_and2_insn): New static function.
11406 (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
11407 Use gen_add3_insn instead of ix86_gen_add3.
11408 (ix86_expand_split_stack_prologue): Use gen_add2_insn
11409 instead of ix86_gen_add3.
11410 (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
11411 Use gen_sub3_insn instead of ix86_gen_sub3.
11412 * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
11413 instead of ix86_gen_add3.
11414 (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
11415 ix86_gen_add3. Use gen_sub3_insn instead of ix86_gen_sub3.
11416 (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
11417 * config/i386/i386-options.c (ix86_option_override_internal):
11418 Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
11419 ix86_gen_one_cmpl2 and ix86_gen_andsp.
11420
11421 2019-05-27 Eric Botcazou <ebotcazou@adacore.com>
11422
11423 * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
11424 and DW_OP_GNU_const_index opcodes.
11425
11426 2019-05-27 Uroš Bizjak <ubizjak@gmail.com>
11427
11428 * config/i386/i386.h (STACK_SIZE_MODE): Define.
11429
11430 2019-05-27 Richard Biener <rguenther@suse.de>
11431
11432 PR tree-optimization/90637
11433 * tree-ssa-sink.c (statement_sink_location): Honor the
11434 computed sink location for single-uses.
11435
11436 2019-05-27 Richard Biener <rguenther@suse.de>
11437
11438 PR middle-end/90610
11439 * match.pd (vec_perm): Avoid clobbering op0 when not generating
11440 a bit-insert.
11441
11442 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11443
11444 * config/i386/i386.md (@sub<mode>3_carry): Rename
11445 from sub<mode>3_carry.
11446 (@leave_<mode>): New expander.
11447 (*leave): Rename from leave.
11448 (*leave_rex64): Rename from leave_rex64.
11449 (@monitorx_<mode>): Rename from monitorx_<mode>.
11450 (@clzero_<mode>): Rename from clzero_<mode>.
11451 * config/i386/sse.md (@sse3_monitor_<mode>): Rename
11452 from sse3_monitor_<mode>.
11453 * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
11454 (*ix86_gen_leave): Ditto.
11455 (*ix86_gen_monitor): Ditto.
11456 (*ix86_gen_monitorx): Ditto.
11457 (*ix86_gen_clzero): Ditto.
11458 (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
11459 * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
11460 Use gen_sub3_carry instead of ix86_gen_sub3_carry.
11461 (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
11462 Use gen_sse3_monitor instead of ix86_gen_monitor.
11463 <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
11464 instead of ix86_gen_monitorx.
11465 <case IX86_BUILTIN_CLZERO>: Use gen_clzero
11466 instead of ix86_gen_clzero.
11467 * config/i386/i386-options.c (ix86_option_override_internal):
11468 Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
11469 ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
11470
11471 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11472
11473 * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
11474 Rename from tls_global_dynamic_64_<mode>.
11475 (@tls_local_dynamic_base_64_<mode>): Rename from
11476 tls_local_dynamic_base_64_<mode>.
11477 * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
11478 Remove indirect function.
11479 (*ix86_gen_tls_local_dynamic_base_64): Ditto.
11480 (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
11481 instead of ix86_gen_tls_global_dynamic_64.
11482 Use gen_tls_local_dynamic_base_64 instead of
11483 ix86_gen_tls_local_dynamic_base_64.
11484 * config/i386/i386-options.c (ix86_option_override_internal):
11485 Do not initialize ix86_gen_tls_global_dynamic_64 and
11486 ix86_gen_tls_local_dynamic_base_64.
11487
11488 2019-05-26 Uroš Bizjak <ubizjak@gmail.com>
11489
11490 * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
11491 Rename from pro_epilogue_adjust_stack_<mode>_add.
11492 (@pro_epilogue_adjust_stack_sub_<mode>)
11493 Rename from pro_epilogue_adjust_stack_<mode>_sub.
11494 (@allocate_stack_worker_probe_<mode>):
11495 Rename from allocate_stack_worker_probe_<mode>.
11496 (allocate_stack): Use gen_allocate_stack_worker_probe.
11497 (probe_stack): Use gen_probe_stack_1.
11498 (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
11499 (@adjust_stack_and_probe_<mode>): Rename from
11500 adjust_stack_and_probe<mode>.
11501 (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
11502 (stack_protect_set): Use gen_stack_protect_set_1.
11503 (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
11504 (stack_protect_test): Use gen_stack_protect_test_1.
11505 (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
11506 * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
11507 Remove indirect function.
11508 (*ix86_gen_adjust_stack_and_probe): Ditto.
11509 (*ix86_gen_probe_stack_range): Ditto.
11510 (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
11511 instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
11512 (ix86_adjust_stack_and_probe_stack_clash): Use
11513 gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
11514 (ix86_adjust_stack_and_probe): Ditto.
11515 (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
11516 of ix86_gen_probe_stack_range.
11517 (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
11518 instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
11519 * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
11520 Include insn-opinit.h. Use code_for_stack_protect_test_1 instead of
11521 CODE_FOR_stack_protect_test_{si,di}.
11522 * config/i386/i386-options.c (ix86_option_override_internal):
11523 Do not initialize ix86_gen_allocate_stack_worker,
11524 ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
11525
11526 2019-05-26 Gerald Pfeifer <gerald@pfeifer.com>
11527
11528 * doc/invoke.texi (Link Options): Many editorial changes around
11529 -flinker-output.
11530
11531 2019-05-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11532
11533 * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
11534 pre-Solaris 11 referene and most Studio compiler details.
11535
11536 2019-05-24 John David Anglin <danglin@gcc.gnu.org>
11537
11538 PR target/90530
11539 * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
11540 DImode to SImode in floating-point registers on 64-bit target.
11541 * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
11542 register_operand in xmpyu patterns.
11543
11544 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11545
11546 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
11547 * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
11548 OMP_CLAUSE__REDUCTEMP_.
11549 * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
11550 OMP_CLAUSE__CONDTEMP_.
11551 (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
11552 * tree-pretty-print.c (dump_omp_clause): Likewise.
11553 * tree-nested.c (convert_nonlocal_omp_clauses,
11554 convert_local_omp_clauses): Likewise.
11555 * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
11556 instead of decimal. Add GOVD_LASTPRIVATE_CONDITIONAL.
11557 (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
11558 on OMP_FOR.
11559 (gimplify_omp_for): Warn and disable conditional modifier from
11560 lastprivate on loop iterators.
11561 * omp-general.h (struct omp_for_data): Add lastprivate_conditional
11562 member.
11563 * omp-general.c (omp_extract_for_data): Initialize it.
11564 * omp-low.c (struct omp_context): Add lastprivate_conditional_map
11565 member.
11566 (delete_omp_context): Delete it.
11567 (lower_lastprivate_conditional_clauses): New function.
11568 (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
11569 handle lastprivate conditional clauses.
11570 (lower_reduction_clauses): Add CLIST argument, emit it into
11571 the critical section if any.
11572 (lower_omp_sections): Adjust lower_lastprivate_clauses and
11573 lower_reduction_clauses callers.
11574 (lower_omp_for_lastprivate): Add CLIST argument, pass it through
11575 to lower_lastprivate_clauses.
11576 (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
11577 lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
11578 clist into a critical section if not emitted there already by
11579 lower_reduction_clauses.
11580 (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
11581 callers.
11582 (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
11583 conditional variables.
11584 * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
11585 clause is present.
11586 (expand_omp_for_generic, expand_omp_for_static_nochunk,
11587 expand_omp_for_static_chunk): Handle lastprivate conditional.
11588 (expand_omp_for): Handle fd.lastprivate_conditional like
11589 fd.have_reductemp.
11590
11591 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11592
11593 * config/gcn/gcn-run.c (main): Set a non-zero return value if the
11594 kernel does not exit cleanly.
11595 * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
11596
11597 2019-05-24 Jason Merrill <jason@redhat.com>
11598
11599 Revert:
11600 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11601
11602 2019-05-24 Richard Biener <rguenther@suse.de>
11603
11604 PR testsuite/90607
11605 * tree-loop-distribution.c (struct partition): Add location
11606 member.
11607 (partition_alloc): Initialize all fields.
11608 (generate_memset_builtin): Use the location recorded in the
11609 partition for the generated call.
11610 (generate_memcpy_builtin): Likewise.
11611 (classify_partition): Record the location of a single store
11612 as location for the partition.
11613
11614 2019-05-24 Andrew Stubbs <ams@codesourcery.com>
11615
11616 * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
11617 for lo-part.
11618
11619 2019-05-24 Matthew Malcomson <matthew.malcomson@arm.com>
11620
11621 PR target/90588
11622 * common/config/aarch64/aarch64-common.c
11623 (aarch64_rewrite_selected_cpu): Change local temporary variable
11624 type from unsigned long to uint64_t.
11625 * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
11626 aarch64_get_extension_string_for_isa_flags): Change declaration to
11627 match new definition by replacing unsigned long with uint64_t.
11628
11629 2019-05-24 Jakub Jelinek <jakub@redhat.com>
11630
11631 PR target/90568
11632 * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
11633 gen_attr_type just once instead of 4-7 times. Formatting fixes.
11634 Handle stack_protect_test_<mode> codegen similarly to corresponding
11635 sub instruction.
11636
11637 2019-05-23 Iain Sandoe <iain@sandoe.co.uk>
11638
11639 * config/i386/darwin.h: Reject -mfentry*.
11640 * doc/sourcebuild.texi: Document mfentry target support.
11641
11642 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11643
11644 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
11645 Rename to rs6000_global_entry_point_prologue_needed_p. Return
11646 false for PC-relative functions.
11647 (rs6000_output_function_prologue): Change called function name to
11648 rs6000_global_entry_point_prologue_needed_p. Emit ".localentry
11649 name,1" for PC-relative functions.
11650 (rs6000_elf_declare_function_name): Change called function name to
11651 rs6000_global_entry_point_prologue_needed_p.
11652
11653 2019-05-23 Uroš Bizjak <ubizjak@gmail.com>
11654
11655 PR target/90552
11656 * config/i386/i386.c (gen_rtx_cost):
11657 Use ix86_tune_cost instead of ix86_cost.
11658
11659 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11660 Michael Meissner <meissner@linux.ibm.com>
11661 Segher Boessenkool <segher@kernel.crashing.org>
11662
11663 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
11664 OPTION_MASK_PCREL.
11665 (POWERPC_MASKS): Add OPTION_MASK_PCREL.
11666 * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
11667 (rs6000_fndecl_pcrel_p): Likewise.
11668 * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
11669 error if -mpcrel is requested without -mcpu=future.
11670 (rs6000_opt_masks): Add entry for pcrel.
11671 (rs6000_fndecl_pcrel_p): New function.
11672 (rs6000_pcrel_p): Likewise.
11673 * config/rs6000/rs6000.opt (mpcrel): New option.
11674 * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
11675
11676 2019-05-23 Jan Hubicka <jh@suse.cz>
11677 Martin Liska <mliska@suse.cz>
11678
11679 PR tree-optimization/90576
11680 * tree-ssa-alias.c (compare_sizes): Remove dead calls to
11681 poly_int_tree_p.
11682 (aliasing_component_refs_p): Fix three way size compare conditional;
11683 give up earlier in case we can not decide on equivalence.
11684
11685 2019-05-23 Bill Schmidt <wschmidt@linux.ibm.com>
11686 Michael Meissner <meissner@linux.ibm.com>
11687 Segher Boessenkool <segher@kernel.crashing.org>
11688
11689 * config.gcc: Add future cpu.
11690 * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
11691 * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
11692 #define.
11693 (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
11694 (RS6000_CPU): New instantiation for future cpu.
11695 * config/rs6000/rs6000-opts.h (enum processor_type): Add
11696 PROCESSOR_FUTURE.
11697 * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
11698 PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
11699 * config/rs6000/rs6000-tables.opt: Regenerate.
11700 * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
11701 PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
11702 (rs6000_machine_from_flags): Handle future cpu.
11703 (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
11704 PROCESSOR_POWER9 for now.
11705 (rs6000_adjust_cost): Likewise.
11706 (rs6000_issue_rate): Likewise.
11707 (rs6000_register_move_cost): Likewise.
11708 (rs6000_opt_masks): Add entry for future.
11709 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
11710 (MASK_FUTURE): New #define.
11711 * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
11712 * config/rs6000/rs6000.opt (mfuture): New target option.
11713 * doc/invoke.texi (mcpu): Add future cpu.
11714
11715 2019-05-23 Martin Liska <mliska@suse.cz>
11716
11717 PR c++/90587
11718 * tree-ssa-uninit.c (value_sat_pred_p): The result of &
11719 operation points to a temporary (pointed via tree_to_wide_ref)
11720 that is out of scope after the &.
11721
11722 2019-05-23 Jonathan Wakely <jwakely@redhat.com>
11723
11724 PR c++/90592
11725 * doc/extend.texi (Function Names): Add missing word.
11726
11727 2019-05-23 Richard Biener <rguenther@suse.de>
11728
11729 PR tree-optimization/88440
11730 * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
11731 at -O[2s]+.
11732 * tree-loop-distribution.c (generate_memset_builtin): Fold the
11733 generated call.
11734 (generate_memcpy_builtin): Likewise.
11735 (distribute_loop): Pass in whether to only distribute patterns.
11736 (prepare_perfect_loop_nest): Also allow size optimization.
11737 (pass_loop_distribution::execute): When optimizing a loop
11738 nest for size allow pattern replacement.
11739
11740 2019-05-23 Jakub Jelinek <jakub@redhat.com>
11741
11742 PR target/90568
11743 * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
11744 of xor.
11745
11746 2019-05-23 Martin Liska <mliska@suse.cz>
11747
11748 PR sanitizer/90570
11749 * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
11750 expression similarly to gimplify_decl_expr.
11751
11752 2019-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11753
11754 * cse.c (cse_dump_path): s/dump_file/f.
11755
11756 2019-05-22 David Malcolm <dmalcolm@redhat.com>
11757
11758 PR c++/90462
11759 * diagnostic-format-json.cc: Include "selftest.h".
11760 (json_from_expanded_location): Only add "file" key for non-NULL
11761 file strings.
11762 (json_from_location_range): Don't add "start" and "finish"
11763 children if they are UNKNOWN_LOCATION.
11764 (selftest::test_unknown_location): New selftest.
11765 (selftest::test_bad_endpoints): New selftest.
11766 (selftest::diagnostic_format_json_cc_tests): New function.
11767 * json.cc (json::object::get): New function.
11768 (selftest::test_object_get): New selftest.
11769 (selftest::json_cc_tests): Call it.
11770 * json.h (json::object::get): New decl.
11771 * selftest-run-tests.c (selftest::run_tests): Call
11772 selftest::diagnostic_format_json_cc_tests.
11773 * selftest.h (selftest::diagnostic_format_json_cc_tests): New
11774 decl.
11775
11776 2019-05-22 Kwok Cheung Yeung <kcy@codesourcery.com>
11777 Andrew Stubbs <amd@codesourcery.com>
11778
11779 * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
11780 * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
11781 (kernel): Rename to...
11782 (main_kernel): ... this.
11783 (load_image): Load _init_array and _fini_array kernels.
11784 (run): Add argument for kernel to run.
11785 (main): Run init_array_kernel before main_kernel, and
11786 fini_array_kernel after.
11787 * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
11788 amdgpu_hsa_kernel attribute on functions.
11789 (gcn_disable_constructors): Delete.
11790 (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
11791 * config/gcn/crt0.c (size_t): Define.
11792 (_init_array, _fini_array): New.
11793 (__preinit_array_start, __preinit_array_end,
11794 __init_array_start, __init_array_end,
11795 __fini_array_start, __fini_array_end): Declare weak references.
11796
11797 2019-05-22 Andrew Stubbs <ams@codesourcery.com>
11798
11799 * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
11800
11801 2019-05-22 Jason Merrill <jason@redhat.com>
11802
11803 * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
11804
11805 2019-05-22 H.J. Lu <hongjiu.lu@intel.com>
11806
11807 PR target/88483
11808 * config/i386/i386-options.c (ix86_init_machine_status): Set
11809 stack_frame_required to true.
11810 * config/i386/i386.c (ix86_get_frame_size): New function.
11811 (ix86_frame_pointer_required): Replace get_frame_size with
11812 ix86_get_frame_size.
11813 (ix86_compute_frame_layout): Likewise.
11814 (ix86_find_max_used_stack_alignment): Changed to void. Set
11815 stack_frame_required.
11816 (ix86_finalize_stack_frame_flags): Always call
11817 ix86_find_max_used_stack_alignment. Replace get_frame_size with
11818 ix86_get_frame_size.
11819 * config/i386/i386.h (machine_function): Add stack_frame_required.
11820
11821 2019-05-22 Uroš Bizjak <ubizjak@gmail.com>
11822
11823 * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
11824
11825 2019-05-22 Matthew Malcomson <matthew.malcomson@arm.com>
11826
11827 * common/config/aarch64/aarch64-common.c
11828 (struct aarch64_option_extension, struct processor_name_to_arch,
11829 struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
11830 aarch64_contains_opt,
11831 aarch64_get_extension_string_for_isa_flags): Change type of
11832 variables storing flags to uint64_t.
11833 * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
11834 sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
11835 * config/aarch64/aarch64.c (struct processor,
11836 aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
11837 aarch64_validate_march, aarch64_override_options,
11838 aarch64_option_print, aarch64_handle_attr_isa_flags,
11839 aarch64_declare_function_name, aarch64_start_file): Make flag
11840 variables uint64_t.
11841 * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
11842 AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
11843 AARCH64_FL_SVE2_BITPERM): New macro feature flags.
11844 * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
11845 * config/aarch64/driver-aarch64.c
11846 (struct aarch64_arch_extension, struct aarch64_core_data,
11847 struct aarch64_arch_driver_info, host_detect_local_cpu): Make
11848 flag variables uint64_t.
11849 * doc/invoke.texi: Add documentation for new arguments.
11850
11851 2019-05-22 Richard Biener <rguenther@suse.de>
11852
11853 * alias.c (ao_ref_from_mem): Move stack-slot sharing
11854 rewrite ...
11855 * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
11856
11857 2019-05-22 Martin Liska <mliska@suse.cz>
11858
11859 PR lto/90500
11860 * doc/extend.texi: Document the change.
11861
11862 2019-05-22 Richard Biener <rguenther@suse.de>
11863
11864 PR tree-optimization/90450
11865 * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
11866 (mem_ref_hasher::equal): Check it.
11867 (mem_ref_alloc): Initialize it.
11868 (gather_mem_refs_stmt): Set it.
11869
11870 2019-05-22 Richard Biener <rguenther@suse.de>
11871
11872 * gimple-fold.c (arith_code_with_undefined_signed_overflow):
11873 Add ABS_EXPR.
11874 (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
11875 as ABSU_EXPR.
11876
11877 2019-05-22 Alan Modra <amodra@gmail.com>
11878
11879 * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
11880 (ASM_CPU_SPEC): Conditionally add -many.
11881 * config/rs6000/rs6000.c (rs6000_machine): New static var.
11882 (rs6000_machine_from_flags, emit_asm_machine): New functions..
11883 (rs6000_file_start): ..extracted from here, and modified to
11884 test all ISA bits.
11885 (rs6000_output_function_prologue): Emit .machine as necessary.
11886
11887 2019-05-22 Hans-Peter Nilsson <hp@axis.com>
11888
11889 PR middle-end/90553
11890 * ira-lives.c (process_bb_node_lives): Consider defs
11891 for a call insn to be die before the call, not after.
11892
11893 * function.c (assign_parm_setup_block): Raise alignment of
11894 stacked parameter only for STRICT_ALIGNMENT targets.
11895
11896 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11897
11898 * config/rs6000/constraints.md (define_register_constraint "wz"):
11899 Delete.
11900 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11901 RS6000_CONSTRAINT_wz.
11902 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11903 (rs6000_init_hard_regno_mode_ok): Adjust.
11904 * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
11905 * doc/md.texi (Machine Constraints): Adjust.
11906
11907 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11908
11909 * config/rs6000/constraints.md (define_register_constraint "wl"):
11910 Delete.
11911 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11912 RS6000_CONSTRAINT_wl.
11913 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11914 (rs6000_init_hard_regno_mode_ok): Adjust.
11915 * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
11916 * doc/md.texi (Machine Constraints): Adjust.
11917
11918 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11919
11920 * config/rs6000/constraints.md (define_register_constraint "wm"):
11921 Delete.
11922 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11923 RS6000_CONSTRAINT_wm.
11924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11925 (rs6000_init_hard_regno_mode_ok): Adjust.
11926 * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
11927 * doc/md.texi (Machine Constraints): Adjust.
11928
11929 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11930
11931 * config/rs6000/constraints.md (define_register_constraint "wk"):
11932 Delete.
11933 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11934 RS6000_CONSTRAINT_wk.
11935 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11936 (rs6000_init_hard_regno_mode_ok): Adjust.
11937 * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
11938 * doc/md.texi (Machine Constraints): Adjust.
11939
11940 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11941
11942 * config/rs6000/constraints.md (define_register_constraint "wj"):
11943 Delete.
11944 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11945 RS6000_CONSTRAINT_wj.
11946 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11947 (rs6000_init_hard_regno_mode_ok): Adjust.
11948 * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
11949 (VS_64dm): Delete.
11950 * config/rs6000/vsx.md: Ditto.
11951 * doc/md.texi (Machine Constraints): Adjust.
11952
11953 2019-05-21 Segher Boessenkool <segher@kernel.crashing.org>
11954
11955 * config/rs6000/constraints.md (define_register_constraint "wh"):
11956 Delete.
11957 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
11958 RS6000_CONSTRAINT_wh.
11959 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
11960 (rs6000_init_hard_regno_mode_ok): Adjust.
11961 * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
11962 * doc/md.texi (Machine Constraints): Adjust.
11963
11964 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11965
11966 PR target/90547
11967 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
11968 Avoid calling gen_lowpart with CONST operand.
11969
11970 2019-05-21 Alexandre Oliva <aoliva@redhat.com>
11971
11972 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
11973 field template_last_to_copy.
11974 (ssa_create_duplicates): Set it, and use it. Attempt to
11975 preserve more debug stmts.
11976
11977 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11978
11979 * config/i386/sse.md (VF1_AVX2): New mode iterator.
11980 (signbit<mode>2): New expander
11981
11982 2019-05-21 James Clarke <jrtc27@jrtc27.com>
11983
11984 PR bootstrap/87338
11985 * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
11986 instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
11987
11988 2019-05-21 Uroš Bizjak <ubizjak@gmail.com>
11989
11990 * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
11991 %ebx and %ecx bafore calling cpuid with leaf 1 or
11992 non-constant leaf argument.
11993
11994 2019-05-21 Alan Modra <amodra@gmail.com>
11995
11996 PR target/90545
11997 * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
11998 power9 direct move cost.
11999
12000 2019-05-21 Richard Biener <rguenther@suse.de>
12001
12002 PR middle-end/90510
12003 * fold-const.c (fold_read_from_vector): New function.
12004 * fold-const.h (fold_read_from_vector): Declare.
12005 * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
12006 single-element insert permutations. Canonicalize selector
12007 further and fix issue with last commit.
12008
12009 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12010
12011 * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
12012 parameter with default value false to declaration.
12013 (split_edges_for_insertion): New inline function. Wrapper for
12014 split_critical_edges with for_edge_insertion_p = true.
12015 * tree-cfg.c (split_critical_edges): Don't split non-critical
12016 edges if for_edge_insertion_p is false. Fix whitespace.
12017 * tree-ssa-pre.c (pass_pre::execute): Call
12018 split_edges_for_insertion instead of split_critical_edges.
12019 * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
12020 * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
12021 (pass_data_sink_code): Update function name in the comment.
12022
12023 2019-05-21 Vladislav Ivanishin <vlad@ispras.ru>
12024
12025 * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
12026 around is_value_included_in that knows how to handle BIT_AND_EXPR.
12027 (is_pred_expr_subset_of): Use the new function. Handle more cases where
12028 code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
12029 positives.
12030
12031 2019-05-21 Martin Liska <mliska@suse.cz>
12032
12033 * config/rs6000/driver-rs6000.c (elf_platform): Do not use
12034 an extra newline.
12035 * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
12036 (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
12037 vec_lvsr.
12038 * config/rs6000/rs6000.c (rs6000_option_override_internal):
12039 Quote a C type.
12040 (rs6000_function_arg): Likewise.
12041 (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
12042 (rs6000_expand_ternop_builtin): Use interval syntax.
12043 (get_element_number): Likewise.
12044 (altivec_expand_builtin): Likewise.
12045 (rs6000_get_function_versions_dispatcher): Quote target_clones.
12046
12047 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12048
12049 PR c++/59813
12050 PR target/90418
12051 * function.h (struct function): Add calls_eh_return member.
12052 * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
12053 gimplifying __builtin_eh_return call.
12054 * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
12055 to cfun.
12056 (expand_call_inline): Or in src_cfun->calls_eh_return into
12057 dst_cfun->calls_eh_return.
12058 * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
12059 cfun->calls_eh_return.
12060 * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
12061 * lto-streamer-out.c (output_struct_function_base): Write
12062 calls_eh_return.
12063
12064 2019-05-20 Marc Glisse <marc.glisse@inria.fr>
12065
12066 PR rtl-optimization/43147
12067 * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
12068 IX86_BUILTIN_SHUFPD.
12069
12070 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12071
12072 * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
12073 (refs_may_alias_p_1): ... here; update stats.
12074 (refs_may_alias_p): Do not update stats here.
12075
12076 2019-05-20 Richard Biener <rguenther@suse.de>
12077
12078 * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
12079 doesn't produce pointers.
12080 {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
12081 the first operand points to.
12082
12083 2019-05-20 Jan Hubicka <hubicka@ucw.cz>
12084
12085 * tree-ssa-alias.c (compare_sizes): New function.
12086 (sompare_type_sizes): New function
12087 (aliasing_component_refs_p): Use it.
12088 (indirect_ref_may_alias_decl_p): Likewise.
12089
12090 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12091
12092 * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
12093
12094 2019-05-20 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12095
12096 * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
12097 (LIBLSAN_EARLY_SPEC): Likewise.
12098 * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
12099
12100 2019-05-20 Martin Liska <mliska@suse.cz>
12101
12102 * config/i386/i386.c (ix86_libc_has_fast_function):
12103 Add ATTRIBUTE_UNUSED for the argument.
12104
12105 2019-05-20 Richard Biener <rguenther@suse.de>
12106
12107 * gimple-match-head.c: Include vec-perm-indices.h.
12108 * generic-match-head.c: Likewise.
12109 * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
12110 is included.
12111 * fold-const.c (fold_vec_perm): Export.
12112 (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
12113 (match.pd): ...here.
12114
12115 2019-05-20 Jakub Jelinek <jakub@redhat.com>
12116
12117 * cfgloop.h (struct loop): Add simdlen member.
12118 * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
12119 * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
12120 * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
12121 as new argument to autovectorize_vector_sizes target hook. If
12122 loop->simdlen, pick up vector size where the vectorization factor
12123 is equal to loop->simd, and if there is none, fall back to the first
12124 successful one.
12125 (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
12126 caller.
12127 * omp-low.c (omp_clause_aligned_alignment): Likewise.
12128 * omp-general.c (omp_max_vf): Likewise.
12129 * optabs-query.c (can_vec_mask_load_store_p): Likewise.
12130 * tree-vect-slp.c (vect_slp_bb): Likewise.
12131 * target.def (autovectorize_vector_sizes): Add ALL argument and
12132 document it.
12133 * doc/tm.texi: Adjust documentation.
12134 * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
12135 * targhooks.h (default_autovectorize_vector_sizes): Likewise.
12136 * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
12137 bool argument.
12138 * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
12139 * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
12140 * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
12141 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise. If
12142 true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
12143 preferred vector size is not 512-bit or 256-bit, just put those
12144 unpreferred ones last.
12145
12146 2019-05-20 Martin Liska <mliska@suse.cz>
12147
12148 * targhooks.c (default_libc_has_fast_function): New function.
12149 * targhooks.h (default_libc_has_fast_function): Likewise.
12150
12151 2019-05-20 Martin Liska <mliska@suse.cz>
12152
12153 PR middle-end/90263
12154 * builtins.c (expand_builtin_memory_copy_args): When having a
12155 target with fast mempcpy implementation do now use memcpy.
12156 * config/i386/i386.c (ix86_libc_has_fast_function): New.
12157 (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
12158 * doc/tm.texi: Likewise.
12159 * doc/tm.texi.in: Likewise.
12160 * target.def:
12161 * expr.c (emit_block_move_hints): Add 2 new arguments.
12162 * expr.h (emit_block_move_hints): Bail out when libcall
12163 to memcpy would be used.
12164
12165 2019-05-20 Martin Liska <mliska@suse.cz>
12166
12167 * profile-count.c: Add vertical spacing in order
12168 to separate functions.
12169 * profile-count.h: Likewise.
12170
12171 2019-05-20 Martin Liska <mliska@suse.cz>
12172
12173 * profile-count.h: Do not use full qualified
12174 names if possible.
12175 * profile-count.c (profile_count::to_frequency): Likewise.
12176
12177 2019-05-20 Martin Liska <mliska@suse.cz>
12178
12179 * profile-count.h (enum profile_quality): Use capital letters
12180 for enum value names. Use the adjusted names.
12181 * profile-count.c: Use the adjusted names.
12182
12183 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12184
12185 * config/rs6000/constraints.md (define_register_constraint "wH"):
12186 Delete.
12187 (define_register_constraint "wI"): Delete.
12188 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12189 RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
12190 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12191 (rs6000_init_hard_regno_mode_ok): Adjust.
12192 * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
12193 resp. "d", or with "wa" as appropriate, all with "p8v".
12194 * config/rs6000/vsx.md: Ditto.
12195 * doc/md.texi (Machine Constraints): Adjust.
12196
12197 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12198
12199 * config/rs6000/constraints.md (define_register_constraint "wy"):
12200 Delete.
12201 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12202 RS6000_CONSTRAINT_wy.
12203 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12204 (rs6000_init_hard_regno_mode_ok): Adjust.
12205 * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
12206 Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
12207 (define_mode_attr Fisa): New.
12208 * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
12209 * doc/md.texi (Machine Constraints): Adjust.
12210
12211 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12212
12213 * config/rs6000/constraints.md (define_register_constraint "wu"):
12214 Delete.
12215 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12216 RS6000_CONSTRAINT_wu.
12217 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12218 (rs6000_init_hard_regno_mode_ok): Adjust.
12219 * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
12220 both with "p8v".
12221 (define_mode_attr Fa): Delete.
12222 * config/rs6000/vsx.md: Ditto.
12223 * doc/md.texi (Machine Constraints): Adjust.
12224
12225 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12226
12227 * config/rs6000/constraints.md (define_register_constraint "wJ"):
12228 Delete.
12229 (define_register_constraint "wK"): Delete.
12230 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12231 RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
12232 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12233 (rs6000_init_hard_regno_mode_ok): Adjust.
12234 * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
12235 Replace "wK" constraint by "wH" with "p9v".
12236 * config/rs6000/vsx.md: Ditto.
12237 * doc/md.texi (Machine Constraints): Adjust.
12238
12239 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12240
12241 * config/rs6000/constraints.md (define_register_constraint "wb"):
12242 Delete.
12243 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12244 RS6000_CONSTRAINT_wb.
12245 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12246 (rs6000_init_hard_regno_mode_ok): Adjust.
12247 * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
12248 * config/rs6000/vsx.md: Ditto.
12249 * doc/md.texi (Machine Constraints): Adjust.
12250
12251 2019-05-19 Segher Boessenkool <segher@kernel.crashing.org>
12252
12253 * config/rs6000/constraints.md (define_register_constraint "wo"):
12254 Delete.
12255 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
12256 RS6000_CONSTRAINT_wo.
12257 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
12258 (rs6000_init_hard_regno_mode_ok): Adjust.
12259 * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
12260 * config/rs6000/altivec.md: Ditto.
12261 * doc/md.texi (Machine Constraints): Adjust.
12262
12263 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12264
12265 * config/darwin-c.c (darwin_register_objc_includes): Do not
12266 prepend the sysroot when building gnu-runtime header search
12267 paths.
12268
12269 2019-05-18 Iain Sandoe <iain@sandoe.co.uk>
12270
12271 * config/darwin.c (darwin_file_end): Use switch_to_section ()
12272 instead of direct output of the asm.
12273
12274 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12275
12276 * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
12277 argument to be type bool (was int before).
12278 (rs6000_emit_epilogue): Simplify some code. Declare some variables
12279 at first use. Use type bool for some variables. Fix a theoretical
12280 eh_return bug for svr4.
12281
12282 2019-05-17 Segher Boessenkool <segher@kernel.crashing.org>
12283
12284 * config/rs6000/rs6000.md (isa): New attribute.
12285 (enabled): New attribute.
12286
12287 2019-05-17 Max Filippov <jcmvbkbc@gmail.com>
12288
12289 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
12290 assemble_start_function and assemble_end_function.
12291
12292 2019-05-17 Thomas Schwinge <thomas@codesourcery.com>
12293
12294 PR middle-end/89433
12295 * omp-general.c (oacc_verify_routine_clauses): Change formal
12296 parameters. Add checking if already marked with an OpenACC
12297 'routine' directive. Adjust all users.
12298
12299 PR middle-end/89433
12300 * omp-general.c (oacc_build_routine_dims): Move some of its
12301 processing into...
12302 (oacc_verify_routine_clauses): ... this new function.
12303 * omp-general.h (oacc_verify_routine_clauses): New prototype.
12304
12305 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12306
12307 * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
12308 formating of picbase labels to match other ports.
12309
12310 2019-05-17 Iain Sandoe <iain@sandoe.co.uk>
12311
12312 * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
12313 in the generated code.
12314
12315 2019-05-16 Martin Sebor <msebor@redhat.com>
12316
12317 * builtins.c (expand_builtin_atomic_always_lock_free): Quote
12318 identifiers, keywords, operators, and types in diagnostics. Correct
12319 quoting, spelling, and sentence capitalization issues.
12320 (expand_builtin_atomic_is_lock_free): Same.
12321 (fold_builtin_next_arg): Same.
12322 * cfgexpand.c (expand_one_var): Same.
12323 (tree_conflicts_with_clobbers_p): Same.
12324 (expand_asm_stmt): Same.
12325 (verify_loop_structure): Same.
12326 * cgraphunit.c (process_function_and_variable_attributes): Same.
12327 * collect-utils.c (collect_execute): Same.
12328 * collect2.c (maybe_run_lto_and_relink): Same.
12329 (is_lto_object_file): Same.
12330 (scan_prog_file): Same.
12331 * convert.c (convert_to_real_1): Same.
12332 * dwarf2out.c (dwarf2out_begin_prologue): Same.
12333 * except.c (verify_eh_tree): Same.
12334 * gcc.c (execute): Same.
12335 (eval_spec_function): Same.
12336 (run_attempt): Same.
12337 (driver::set_up_specs): Same.
12338 (compare_debug_auxbase_opt_spec_function): Same.
12339 * gcov-tool.c (unlink_gcda_file): Same.
12340 (do_merge): Same.
12341 (do_rewrite): Same.
12342 * gcse.c (gcse_or_cprop_is_too_expensive): Same.
12343 * gimplify.c (gimplify_asm_expr): Same.
12344 (gimplify_adjust_omp_clauses): Same.
12345 * hsa-gen.c (gen_hsa_addr_insns): Same.
12346 (gen_hsa_insns_for_load): Same.
12347 (gen_hsa_cmp_insn_from_gimple): Same.
12348 (gen_hsa_insns_for_operation_assignment): Same.
12349 (gen_get_level): Same.
12350 (gen_hsa_alloca): Same.
12351 (omp_simple_builtin::generate): Same.
12352 (gen_hsa_atomic_for_builtin): Same.
12353 (gen_hsa_insns_for_call): Same.
12354 * input.c (dump_location_info): Same.
12355 * ipa-devirt.c (compare_virtual_tables): Same.
12356 * ira.c (ira_setup_eliminable_regset): Same.
12357 * lra-assigns.c (lra_assign): Same.
12358 * lra-constraints.c (lra_constraints): Same.
12359 * lto-streamer-in.c (lto_input_mode_table): Same.
12360 * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
12361 (merge_and_complain): Same.
12362 (compile_offload_image): Same.
12363 (compile_images_for_offload_targets): Same.
12364 (debug_objcopy): Same.
12365 (run_gcc): Same.
12366 (main): Same.
12367 * opts.c (print_specific_help): Same.
12368 (parse_no_sanitize_attribute): Same.
12369 (print_help): Same.
12370 (handle_param): Same.
12371 * plugin.c (add_new_plugin): Same.
12372 (parse_plugin_arg_opt): Same.
12373 (try_init_one_plugin): Same.
12374 * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
12375 operators, and types in diagnostics. Correct quoting and spelling
12376 issues.
12377 * read-rtl-function.c (parse_edge_flag_token): Same.
12378 (function_reader::parse_enum_value): Same.
12379 * reg-stack.c (check_asm_stack_operands): Same.
12380 * regcprop.c (validate_value_data): Same.
12381 * sched-rgn.c (make_pass_sched_fusion): Same.
12382 * stmt.c (check_unique_operand_names): Same.
12383 * targhooks.c (default_target_option_pragma_parse): Same.
12384 * tlink.c (recompile_files): Same.
12385 * toplev.c (process_options): Same.
12386 (do_compile): Same.
12387 * trans-mem.c (diagnose_tm_1): Same.
12388 (ipa_tm_scan_irr_block): Same.
12389 (ipa_tm_diagnose_transaction): Same.
12390 * tree-cfg.c (verify_address): Same. Use get_tree_code_name to
12391 format a tree code name in a diagnostic.
12392 (verify_types_in_gimple_min_lval): Same.
12393 (verify_types_in_gimple_reference): Same.
12394 (verify_gimple_call): Same.
12395 (verify_gimple_assign_unary): Same.
12396 (verify_gimple_assign_binary): Same.
12397 (verify_gimple_assign_ternary): Same.
12398 (verify_gimple_assign_single): Same.
12399 (verify_gimple_switch): Same.
12400 (verify_gimple_label): Same.
12401 (verify_gimple_phi): Same.
12402 (verify_gimple_in_seq): Same.
12403 (verify_eh_throw_stmt_node): Same.
12404 (collect_subblocks): Same.
12405 (gimple_verify_flow_info): Same.
12406 (do_warn_unused_result): Same.
12407 * tree-inline.c (expand_call_inline): Same.
12408 * tree-into-ssa.c (update_ssa): Same.
12409 * tree.c (tree_int_cst_elt_check_failed): Same.
12410 (tree_vec_elt_check_failed): Same.
12411 (omp_clause_operand_check_failed): Same.
12412 (verify_type_variant): Same.
12413 (verify_type): Same.
12414 * value-prof.c (verify_histograms): Same.
12415 * varasm.c (assemble_start_function): Same.
12416
12417 2019-05-16 Martin Sebor <msebor@redhat.com>
12418
12419 * config/i386/i386-expand.c (get_element_number): Quote keywords
12420 and other internal names in diagnostics. Adjust other diagnostic
12421 formatting issues noted by -Wformat-diag.
12422 * config/i386/i386-features.c
12423 (ix86_mangle_function_version_assembler_name): Same.
12424 * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
12425 * config/i386/i386.c (ix86_function_type_abi): Same.
12426 (ix86_function_ms_hook_prologue): Same.
12427 (classify_argument): Same.
12428 (ix86_expand_prologue): Same.
12429 (ix86_md_asm_adjust): Same.
12430 (ix86_memmodel_check): Same.
12431
12432 2019-05-17 Dragan Mladjenovic <dmladjenovic@wavecomp.com>
12433
12434 * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
12435 TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
12436 and fpxx modes.
12437
12438 2019-05-17 H.J. Lu <hongjiu.lu@intel.com>
12439
12440 PR target/90497
12441 * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
12442 intrinsics without SSE/SSE2/SSSE3.
12443 * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
12444 check.
12445 (*mmx_uavgv8qi3): Likewise.
12446
12447 2019-05-17 Richard Biener <rguenther@suse.de>
12448
12449 * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
12450 VEC_PERM_EXPR as __VEC_PERM with -gimple.
12451
12452 2019-05-17 Andreas Krebbel <krebbel@linux.ibm.com>
12453
12454 * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
12455 vec_sldw insn pattern.
12456
12457 2019-05-17 Richard Biener <rguenther@suse.de>
12458
12459 * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
12460
12461 2019-05-17 Martin Liska <mliska@suse.cz>
12462
12463 PR driver/90496
12464 * toplev.c (output_stack_usage): With LTO and sanitizer it
12465 happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
12466 has no file location.
12467
12468 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12469
12470 PR c++/90484
12471 * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
12472 sz0 is equal to sz1, instead return false in that case.
12473
12474 * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
12475 has non-constant expression, force sctx.lane and use two
12476 argument IFN_GOMP_SIMD_LANE instead of single argument.
12477 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
12478 two argument IFN_GOMP_SIMD_LANE without lhs.
12479 * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
12480 member.
12481 (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
12482 Define.
12483 (LOOP_REQUIRES_VERSIONING): Or in
12484 LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
12485 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
12486 simd_if_cond.
12487 (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
12488 * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
12489 from simd if clause if needed.
12490
12491 2019-05-16 Richard Biener <rguenther@suse.de>
12492
12493 * tree-affine.c (expr_to_aff_combination): New function split
12494 out from...
12495 (tree_to_aff_combination): ... here.
12496 (aff_combination_expand): Avoid building a GENERIC tree.
12497
12498 2019-05-16 Max Filippov <jcmvbkbc@gmail.com>
12499
12500 * cgraphunit.c (cgraph_node::expand_thunk): Remove
12501 assemble_start_function and assemble_end_function calls.
12502 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
12503 assemble_start_function and assemble_end_function.
12504 * config/arc/arc.c (arc_output_mi_thunk): Likewise.
12505 * config/arm/arm.c (arm_output_mi_thunk): Likewise.
12506 * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
12507 * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
12508 * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
12509 * config/csky/csky.c (csky_output_mi_thunk): Likewise.
12510 * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
12511 * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
12512 * config/i386/i386.c (x86_output_mi_thunk): Likewise.
12513 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
12514 * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
12515 * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
12516 Likewise.
12517 * config/mips/mips.c (mips_output_mi_thunk): Likewise.
12518 * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
12519 * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
12520 * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
12521 * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
12522 * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
12523 * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
12524 * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
12525 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
12526 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
12527 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
12528 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
12529 * config/spu/spu.c (spu_output_mi_thunk): Likewise.
12530 * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
12531 Likewise.
12532 * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
12533 * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
12534 * config/vax/vax.c (vax_output_mi_thunk): Likewise.
12535
12536 2019-05-16 Jan Hubicka <hubicka@ucw.cz>
12537
12538 * tree-ssa-alias.c (alias_stats): Add
12539 aliasing_component_refs_p_may_alias and
12540 aliasing_component_refs_p_no_alias.
12541 (dump_alias_stats): Print aliasing_component_refs_p stats.
12542 (aliasing_component_refs_p): Update stats.
12543
12544 2019-05-16 Martin Liska <mliska@suse.cz>
12545
12546 PR lto/90500
12547 * multiple_target.c (expand_target_clones): Do not allow
12548 target_clones being used with a symbol that is an alias.
12549
12550 2019-05-16 Vladislav Ivanishin <vlad@ispras.ru>
12551
12552 PR tree-optimization/90394
12553 * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
12554 positives rather than ICE for cases where (code2 == NE_EXPR
12555 && code1 == BIT_AND_EXPR).
12556
12557 2019-05-16 Jakub Jelinek <jakub@redhat.com>
12558
12559 PR fortran/90329
12560 * tree-core.h (struct tree_decl_common): Document
12561 decl_nonshareable_flag for PARM_DECLs.
12562 * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
12563 * calls.c (expand_call): Don't try tail call if caller
12564 has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
12565 passed on the stack and callee needs to pass any arguments on the
12566 stack.
12567 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
12568 else if instead of series of mutually exclusive ifs. Handle
12569 DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
12570 * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
12571
12572 * lto-streamer.h (LTO_major_version): Bump to 9.
12573
12574 2019-05-16 Jun Ma <JunMa@linux.alibaba.com>
12575
12576 PR tree-optimization/90106
12577 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
12578 new parameter as new internal function call, also move it to new
12579 basic block.
12580 (use_internal_fn): Pass internal function call to
12581 shrink_wrap_one_built_in_call_with_conds.
12582
12583 2019-05-15 Jakub Jelinek <jakub@redhat.com>
12584
12585 * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
12586 max_vf to 1.
12587 * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
12588 safelen_int and set loop->dont_vectorize.
12589
12590 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12591
12592 PR target/89021
12593 * config/i386/i386-builtin.def: Enable MMX intrinsics with
12594 SSE/SSE2/SSSE3.
12595 * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
12596 Likewise.
12597 * config/i386/i386-expand.c (ix86_expand_builtin): Allow
12598 SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
12599 * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
12600 is defined.
12601
12602 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12603
12604 PR target/89021
12605 * config/i386/mmx.md (*vec_dupv2sf): Changed to
12606 define_insn_and_split to support SSE emulation.
12607 (*vec_extractv2sf_0): Likewise.
12608 (*vec_extractv2sf_1): Likewise.
12609 (*vec_extractv2si_0): Likewise.
12610 (*vec_extractv2si_1): Likewise.
12611 (*vec_extractv2si_zext_mem): Likewise.
12612 (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
12613 (vec_extractv2sf_1 splitter): Likewise.
12614 (vec_extractv2sfsf): Likewise.
12615 (vec_setv2si): Likewise.
12616 (vec_extractv2si_1 splitter): Likewise.
12617 (vec_extractv2sisi): Likewise.
12618 (vec_setv4hi): Likewise.
12619 (vec_extractv4hihi): Likewise.
12620 (vec_setv8qi): Likewise.
12621 (vec_extractv8qiqi): Likewise.
12622 (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12623 TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
12624 (vec_extractv2sisi): Likewise.
12625 (vec_extractv4hihi): Likewise.
12626 (vec_extractv8qiqi): Likewise.
12627 (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE. Pass
12628 TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
12629 (vec_initv2sisi): Likewise.
12630 (vec_initv4hihi): Likewise.
12631 (vec_initv8qiqi): Likewise.
12632 (vec_setv2si): Also allow TARGET_MMX_WITH_SSE. Pass
12633 TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
12634 (vec_setv4hi): Likewise.
12635 (vec_setv8qi): Likewise.
12636
12637 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12638
12639 PR target/89021
12640 * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
12641 TARGET_MMX_WITH_SSE.
12642 (MMXMODE:*mov<mode>_internal): Likewise.
12643 (MMXMODE:movmisalign<mode>): Likewise.
12644
12645 2019-05-15 Uroš Bizjak <ubizjak@gmail.com>
12646
12647 PR target/89021
12648 * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
12649 * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
12650 (sse2_cvtpd2pi): Ditto.
12651 (sse2_cvttpd2pi): Ditto.
12652 (*vec_concatv2sf_sse4_1): Ditto.
12653 (*vec_concatv2sf_sse): Ditto.
12654 (*vec_concatv2si_sse4_1): Ditto.
12655 (*vec_concatv2si): Ditto.
12656 (*vec_concatv4si_0): Ditto.
12657 (*vec_concatv2di_0): Ditto.
12658
12659 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12660
12661 PR target/89021
12662 * config/i386/sse.md (abs<mode>2): Add SSE emulation.
12663
12664 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12665
12666 PR target/89021
12667 * config/i386/sse.md (ssse3_palignrdi): Changed to
12668 define_insn_and_split to support SSE emulation.
12669
12670 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12671
12672 PR target/89021
12673 * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
12674
12675 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12676
12677 PR target/89021
12678 * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
12679 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12680 SSE emulation.
12681
12682 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12683
12684 PR target/89021
12685 * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
12686 or TARGET_MMX_WITH_SSE.
12687 (*ssse3_pmulhrswv4hi3): Add SSE emulation.
12688
12689 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12690
12691 PR target/89021
12692 * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
12693
12694 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12695
12696 PR target/89021
12697 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
12698 Changed to define_insn_and_split to support SSE emulation.
12699
12700 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12701
12702 PR target/89021
12703 * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
12704 Changed to define_insn_and_split to support SSE emulation.
12705
12706 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12707
12708 PR target/89021
12709 * config/i386/mmx.md (mmx_<emms>): Renamed to ...
12710 (*mmx_<emms>): This.
12711 (mmx_<emms>): New expander.
12712
12713 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12714
12715 PR target/89021
12716 * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
12717 support.
12718 (*sse2_umulv1siv1di3): Add SSE2 emulation.
12719
12720 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12721
12722 PR target/89021
12723 * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
12724
12725 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12726
12727 PR target/89021
12728 * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
12729
12730 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12731
12732 PR target/89021
12733 * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
12734 TARGET_MMX_WITH_SSE.
12735 (*mmx_uavgv4hi3): Add SSE emulation.
12736
12737 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12738
12739 PR target/89021
12740 * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
12741 and TARGET_MMX_WITH_SSE.
12742 (*mmx_uavgv8qi3): Add SSE emulation.
12743
12744 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12745
12746 PR target/89021
12747 * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
12748 maskmovdqu for __MMX_WITH_SSE__.
12749
12750 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12751
12752 PR target/89021
12753 * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
12754 TARGET_MMX and TARGET_MMX_WITH_SSE.
12755 (*mmx_umulv4hi3_highpart): Add SSE emulation.
12756
12757 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12758
12759 PR target/89021
12760 * config/i386/mmx.md (mmx_pmovmskb): Changed to
12761 define_insn_and_split to support SSE emulation.
12762
12763 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12764
12765 PR target/89021
12766 * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
12767 and TARGET_MMX_WITH_SSE.
12768 (mmx_<code>v8qi3): Likewise.
12769 (smaxmin:<code>v4hi3): New.
12770 (umaxmin:<code>v8qi3): Likewise.
12771 (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
12772 (umaxmin:*mmx_<code>v8qi3): Likewise.
12773
12774 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12775
12776 PR target/89021
12777 * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
12778 TARGET_MMX_WITH_SSE.
12779 (*mmx_pinsrw): Add SSE emulation.
12780
12781 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12782
12783 PR target/89021
12784 * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
12785
12786 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12787
12788 PR target/89021
12789 * config/i386/sse.md (sse_cvtpi2ps): Changed to
12790 define_insn_and_split. Also allow TARGET_MMX_WITH_SSE. Add
12791 SSE emulation.
12792
12793 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12794
12795 PR target/89021
12796 * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
12797 (sse_cvttps2pi): Likewise.
12798
12799 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12800
12801 PR target/89021
12802 * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
12803 TARGET_MMX_WITH_SSE.
12804 (mmx_pshufw_1): Add SSE emulation.
12805 (*vec_dupv4hi): Changed to define_insn_and_split and also allow
12806 TARGET_MMX_WITH_SSE to support SSE emulation.
12807
12808 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12809
12810 PR target/89021
12811 * config/i386/constraints.md (Yw): New constraint.
12812 * config/i386/mmx.md (*vec_dupv2si): Changed to
12813 define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
12814 support SSE emulation.
12815
12816 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12817
12818 PR target/89021
12819 * config/i386/mmx.md (mmx_eq<mode>3): Also allow
12820 TARGET_MMX_WITH_SSE.
12821 (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12822 support.
12823 (mmx_gt<mode>3): Likewise.
12824
12825 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12826
12827 PR target/89021
12828 * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
12829 TARGET_MMX_WITH_SSE. Add SSE support.
12830
12831 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12832
12833 PR target/89021
12834 * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
12835 TARGET_MMX_WITH_SSE.
12836 (any_logic:<code><mode>3): New.
12837 (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
12838 Add SSE support.
12839
12840 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12841
12842 PR target/89021
12843 * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
12844 TARGET_MMX_WITH_SSE. Add SSE emulation.
12845 (mmx_<shift_insn><mode>3): Likewise.
12846 (ashr<mode>3): New.
12847 (<shift_insn><mode>3): Likewise.
12848
12849 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12850
12851 PR target/89021
12852 * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
12853 (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE. Add SSE support.
12854
12855 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12856
12857 PR target/89021
12858 * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
12859 TARGET_MMX_WITH_SSE.
12860 (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
12861 SSE support.
12862
12863 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12864
12865 PR target/89021
12866 * config/i386/mmx.md (mmx_mulv4hi3): Also allow
12867 TARGET_MMX_WITH_SSE.
12868 (mulv4hi3): New.
12869 (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE. Add SSE
12870 support.
12871
12872 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12873
12874 PR target/89021
12875 * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
12876 (plusminus:mmx_<plusminus_insn><mode>3): Check
12877 TARGET_MMX_WITH_SSE.
12878 (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
12879 (<plusminus_insn><mode>3): New.
12880 (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
12881 (*mmx_<plusminus_insn><mode>3): Likewise.
12882
12883 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12884
12885 PR target/89021
12886 * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
12887 * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
12888 prototype.
12889 * config/i386/mmx.m (mmx_punpckhbw): Changed to
12890 define_insn_and_split to support SSE emulation.
12891 (mmx_punpcklbw): Likewise.
12892 (mmx_punpckhwd): Likewise.
12893 (mmx_punpcklwd): Likewise.
12894 (mmx_punpckhdq): Likewise.
12895 (mmx_punpckldq): Likewise.
12896
12897 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12898 Uros Bizjak <ubizjak@gmail.com>
12899
12900 PR target/89021
12901 * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
12902 New function.
12903 (ix86_split_mmx_pack): Likewise.
12904 * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
12905 New prototype.
12906 (ix86_split_mmx_pack): Likewise.
12907 * config/i386/i386.md (mmx_isa): New.
12908 (enabled): Also check mmx_isa.
12909 * config/i386/mmx.md (any_s_truncate): New code iterator.
12910 (s_trunsuffix): New code attr.
12911 (mmx_packsswb): Removed.
12912 (mmx_packssdw): Likewise.
12913 (mmx_packuswb): Likewise.
12914 (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
12915 MMX packsswb/packuswb with SSE2.
12916 (mmx_packssdw): Likewise.
12917 * config/i386/predicates.md (register_mmxmem_operand): New.
12918
12919 2019-05-15 H.J. Lu <hongjiu.lu@intel.com>
12920
12921 PR target/89021
12922 * config/i386/i386-c.c (ix86_target_macros_internal): Define
12923 __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
12924 * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
12925 TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
12926 (ix86_vector_mode_supported_p): Likewise.
12927 * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
12928
12929 2019-05-15 Martin Liska <mliska@suse.cz>
12930
12931 PR middle-end/90478
12932 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
12933 Check for overflow.
12934
12935 2019-05-15 Richard Biener <rguenther@suse.de>
12936
12937 * tree-into-ssa.c (pass_build_ssa::execute): Run
12938 update_address_taken before going into SSA.
12939
12940 2019-05-15 Richard Biener <rguenther@suse.de>
12941
12942 * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
12943 as __BIT_FIELD_REF with type with -gimple.
12944
12945 2019-05-15 Vladislav Ivanishin <vlad@ispras.ru>
12946
12947 * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
12948 semantically equivalent branches (left over after prior refactorings).
12949
12950 2019-05-15 Richard Biener <rguenther@suse.de>
12951
12952 PR tree-optimization/88828
12953 * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
12954 bogus check.
12955
12956 2019-05-14 Richard Biener <rguenther@suse.de>
12957
12958 * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
12959 as __VIEW_CONVERT with -gimple.
12960
12961 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
12962
12963 PR target/82920
12964 * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
12965 Darwin.
12966
12967 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12968
12969 * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
12970 define_split to become a define_insn_and_split.
12971
12972 2019-05-14 Segher Boessenkool <segher@kernel.crashing.org>
12973
12974 * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
12975 arguments.
12976 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
12977 * config/rs6000/rs6000.md (epilogue_type): New define_enum.
12978 (sibcall_epilogue): Adjust.
12979 (epilogue): Adjust.
12980
12981 2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12982
12983 * config.gcc: Move *-*-solaris2.10* from obsolete configurations
12984 to unsupported ones.
12985 Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
12986 * config.host: Likewise.
12987 * config/i386/sol2.h (ASM_COMMENT_START): Remove.
12988 * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
12989 __svr4__]: Remove "brand" fallback.
12990 [!KSTAT_DATA_STRING]: Remove.
12991 * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
12992 to *-*-solaris2*.
12993 (comdat_group): Likewise.
12994 (set_have_as_tls): Likewise.
12995 (gcc_cv_target_dl_iterate_phdr): Likewise.
12996 (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
12997 (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
12998 * configure: Regenerate.
12999 * doc/install.texi: Simplify Solaris target triplets.
13000 (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
13001 (Specific, *-*-solaris2*): Document Solaris 10 removal.
13002 Remove Solaris 10 references.
13003 Remove obsolete Solaris bug reference.
13004 (Specific, sparc-sun-solaris2.10): Remove.
13005
13006 2019-05-14 Uroš Bizjak <ubizjak@gmail.com>
13007
13008 * config/i386/i386.md (any_div): New code iterator.
13009 (paired_mod): New code attribute.
13010 (sgnprefix): Handle DIV and UDIV RTXes.
13011 (u): Ditto.
13012 (<u>divmod<mode>4): Macroize expander from divmod<mode>4
13013 and udivmod<mode>4 patterns using any_div code iterator.
13014 (divmod splitters): Macroize splitters using any_div code iterator.
13015 (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
13016 (*udivmodsi4_pow2_zext_2): Ditto.
13017 (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
13018 and *udivmod<mode>4_noext patterns using any_div code iterator.
13019 (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
13020 *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
13021 patterns using any_div code iterator.
13022 (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
13023 *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
13024 patterns using any_div code iterator.
13025 (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
13026 udivmodhiqi3 patterns using any_extend code iterator.
13027
13028 2019-05-14 Richard Biener <rguenther@suse.de>
13029 H.J. Lu <hongjiu.lu@intel.com>
13030
13031 PR tree-optimization/88828
13032 * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
13033 permuting in a single non-constant element not extracted
13034 from a vector.
13035
13036 2019-05-14 Przemyslaw Wirkus <przemyslaw.wirkus@arm.com>
13037
13038 * internal-fn.def (SIGNBIT): New.
13039 * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
13040 defined.
13041 (signbitv4sf2): Likewise.
13042
13043 2019-05-14 Chenghua Xu <paul.hua.gm@gmail.com>
13044
13045 PR target/90357
13046 * config/mips/mips.c (mips_split_move): Skip forward SRC into
13047 next insn when the SRC reg is dead.
13048
13049 2019-05-14 Bin Cheng <bin.cheng@linux.alibaba.com>
13050
13051 * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
13052 (alloc_cand_and_find_basis): Ditto.
13053 (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
13054 (create_mul_imm_cand, create_add_ssa_cand): Ditto.
13055 (create_add_imm_cand, slsr_process_cast): Ditto.
13056 (slsr_process_copy, replace_mult_candidate): Ditto.
13057 (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
13058 (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
13059 (pass_strength_reduction::execute): Init the first NULL element.
13060
13061 2019-05-13 Nathan Sidwell <nathan@acm.org>
13062
13063 * gcc.c (execute): Simplify cond-expr into if. Reformat comment.
13064 (run_attempt): Reformat line break.
13065
13066 2019-05-13 David Edelsohn <dje.gcc@gmail.com>
13067
13068 PR target/90418
13069 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
13070 data registers in sibcall epilogues.
13071 Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13072
13073 2019-05-13 Uroš Bizjak <ubizjak@gmail.com>
13074
13075 PR target/89221
13076 * configure.ac (--enable-frame-pointer):
13077 Disable by default for cygwin and mingw.
13078 * configure: Regenerate.
13079
13080 2019-05-13 Nathan Sidwell <nathan@acm.org>
13081
13082 * dwarf2out.c (breakout_comdat_types): Move comment to correct
13083 piece of code.
13084 (const_ok_for_output_1): Balance parens around #if/#else/#endif
13085 (gen_member_die): Move abstract origin check earlier. Only VARs
13086 can be static_inline_p. Simplify splicing control flow.
13087
13088 2019-05-13 Richard Biener <rguenther@suse.de>
13089
13090 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
13091 VIEW_CONVERT_EXPR.
13092 (vect_build_slp_tree_1): Likewise.
13093
13094 2019-05-13 Richard Biener <rguenther@suse.de>
13095
13096 PR tree-optimization/90402
13097 * tree-if-conv.c (tree_if_conversion): Value number only
13098 the loop body by making the latch an exit of the region
13099 as well.
13100 * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
13101 processing PHIs.
13102 (do_rpo_vn): Deal with multiple edges into the entry block
13103 that are not backedges inside the region by skipping PHIs
13104 of the entry block.
13105
13106 2019-05-13 Richard Biener <rguenther@suse.de>
13107
13108 PR tree-optimization/90316
13109 * tree-ssa-pre.c (insert_aux): Fold into ...
13110 (insert): ... this function. Use a RPO walk to reduce the
13111 number of required iterations.
13112
13113 2019-05-13 Martin Liska <mliska@suse.cz>
13114
13115 PR tree-optimization/90416
13116 * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
13117 string instead of passing the second part as va_arg argument.
13118
13119 2019-05-13 Martin Liska <mliska@suse.cz>
13120
13121 PR gcov-profile/90380
13122 * gcov.c (handle_cycle): Do not support zero cycle count,
13123 it should not be possible.
13124 (path_contains_zero_cycle_arc): New function.
13125 (circuit): Ignore zero cycle arc counts.
13126
13127 2019-05-13 Martin Liska <mliska@suse.cz>
13128
13129 PR gcov-profile/90380
13130 * gcov.c (enum loop_type): Remove the enum and
13131 the operator.
13132 (handle_cycle): Assert that we should not reach
13133 a negative count.
13134 (circuit): Use loop_found instead of a tri-state loop_type.
13135 (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
13136 happen.
13137
13138 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13139
13140 PR target/82920
13141 * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
13142 (ix86_output_indirect_branch_via_reg): Use output mechanism
13143 accounting for __USER_LABEL_PREFIX__.
13144 (ix86_output_indirect_branch_via_push): Likewise.
13145 (ix86_output_function_return): Likewise.
13146 (ix86_output_indirect_function_return): Likewise.
13147
13148 2019-05-12 Richard Sandiford <richard.sandiford@arm.com>
13149
13150 * doc/md.texi: Document use of code attributes in rtx patterns.
13151 * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
13152 * read-rtl.c (find_code): Split out search loops into...
13153 (maybe_find_code): ...this new function.
13154 (check_code_iterator): Make the error message more informative.
13155 (check_code_attribute): New function.
13156 (rtx_reader::rtx_alloc_for_name): Likewise.
13157 (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
13158 * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
13159 * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
13160 <max_opp> directly as an rtx code instead of via a match_operator.
13161 * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
13162 (<su>abd<mode>_3): Update accordingly.
13163
13164 2019-05-12 Iain Sandoe <iain@sandoe.co.uk>
13165
13166 * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
13167 is given, print the state of the EH "save world" computation for
13168 Darwin.
13169
13170 2019-05-11 Jakub Jelinek <jakub@redhat.com>
13171
13172 PR c++/59813
13173 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
13174 EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
13175
13176 2019-05-11 Uroš Bizjak <ubizjak@gmail.com>
13177
13178 * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
13179 Use pinsrd for TARGET_SSE4_1.
13180 * config/i386/sse.md (movdi_to_sse): Ditto.
13181
13182 2019-05-10 Richard Biener <rguenther@suse.de>
13183
13184 * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
13185 (do_rpo_vn): Initialize next_value_id.
13186
13187 2019-05-10 Martin Liska <mliska@suse.cz>
13188
13189 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13190 Fix plural form.
13191
13192 2019-05-10 Jakub Jelinek <jakub@redhat.com>
13193
13194 PR tree-optimization/90385
13195 * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
13196 arguments of the exit phis.
13197
13198 PR c++/90383
13199 * tree-inline.h (struct copy_body_data): Add do_not_fold member.
13200 * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
13201 id->do_not_fold.
13202 (copy_tree_body_r): Likewise.
13203 (copy_fn): Set id.do_not_fold to true.
13204
13205 2019-05-10 Martin Liska <mliska@suse.cz>
13206
13207 * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
13208 Reapply changes from r269790.
13209
13210 2019-05-10 Martin Liska <mliska@suse.cz>
13211
13212 PR middle-end/90340
13213 * doc/invoke.texi: New params.
13214 * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
13215 (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
13216 * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
13217 Use it.
13218 * tree-switch-conversion.h (struct jump_table_cluster):
13219 Likewise.
13220
13221 2019-05-09 Segher Boessenkool <segher@kernel.crashing.org>
13222
13223 * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
13224
13225 2019-05-09 Bill Schmidt <wschmidt@linux.ibm.com>
13226
13227 * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
13228
13229 2019-05-09 Alexander Monakov <amonakov@ispras.ru>
13230
13231 PR rtl-optimization/88879
13232 * sel-sched.c (sel_target_adjust_priority): Remove assert.
13233
13234 2019-05-09 Richard Earnshaw <rearnsha@arm.com>
13235
13236 PR target/90405
13237 * config/arm/arm.c (callee_saved_reg_p): Move before
13238 thumb_find_work_register.
13239 (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
13240 thumb_find_work_register. Only call df_get_live_out once.
13241 (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
13242 (thumb_find_work_register): Use
13243 thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
13244 algorithms to locate a spare call clobbered reg.
13245
13246 2019-05-09 Martin Liska <mliska@suse.cz>
13247
13248 * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
13249 and MAX_EXPR in GIMPLE FE format.
13250
13251 2019-05-09 Martin Liska <mliska@suse.cz>
13252
13253 * tree-cfg.c (dump_function_to_file): Dump entry BB count.
13254 * gimple-pretty-print.c (dump_gimple_bb_header):
13255 Dump BB count.
13256 (pp_cfg_jump): Dump edge probability.
13257 * profile-count.c (profile_quality_as_string): Simplify
13258 with a static array.
13259 (parse_profile_quality): New function.
13260 (profile_count::dump): Simplify with a static array.
13261 (profile_count::from_gcov_type): Add new argument.
13262 * profile-count.h (parse_profile_quality): Likewise.
13263 * predict.h (set_hot_bb_threshold): New.
13264 * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
13265 New param.
13266 * predict.c (get_hot_bb_threshold): Set from the new param.
13267 (set_hot_bb_threshold): New.
13268
13269 2019-05-09 Richard Biener <rguenther@suse.de>
13270
13271 PR tree-optimization/90395
13272 * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
13273 rewrite vector stores that throw internally.
13274
13275 2019-05-09 Thomas Schwinge <thomas@codesourcery.com>
13276
13277 * cif-code.def (CHKP): Remove.
13278
13279 PR target/89221
13280 * configure.ac (--enable-frame-pointer): Disable by default for
13281 GNU systems.
13282 * configure: Regenerate.
13283
13284 2019-05-09 Alan Modra <amodra@gmail.com>
13285
13286 PR target/89271
13287 * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
13288 (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
13289 * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
13290 cost for general <-> vsx when direct moves are available.
13291 Cost union classes at minimal cost for any reg in the class.
13292 Correct calculation for moves between vsx, float, and altivec.
13293 Don't return a low cost for moves between special regs. Don't
13294 use hard coded register numbers.
13295 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
13296 (rs6000_ira_change_pseudo_allocno_class): New function.
13297 * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
13298 (movdi_internal32, movdi_internal64): Remove '*' from vsx register
13299 alternatives.
13300 (movsi_internal1): Don't disparage vector alternatives.
13301 (mov<mode>_internal): Likewise, excepting alternative that
13302 will be split.
13303 * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
13304 we <- b alternative.
13305
13306 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13307
13308 PR c++/59813
13309 PR tree-optimization/89060
13310 * tree-ssa-live.h (live_vars_map): New typedef.
13311 (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
13312 * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
13313 (struct compute_live_vars_data): New type.
13314 (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
13315 live_vars_at_stmt, destroy_live_vars): New functions.
13316 * tree-tailcall.c: Include tree-ssa-live.h.
13317 (live_vars, live_vars_vec): New global variables.
13318 (find_tail_calls): Perform variable life analysis before punting.
13319 (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
13320 * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
13321 member.
13322 * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
13323 Perform variable life analysis to select variables that really need
13324 clobbers added.
13325 (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
13326 instead set id->eh_landing_pad_dest and assert it is the same.
13327 (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
13328
13329 2019-05-08 Mihail Ionescu <mihail.ionescu@arm.com>
13330 Richard Earnshaw <rearnsha@arm.com>
13331
13332 PR target/88167
13333 * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
13334 function.
13335 (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
13336 (thumb1_compute_save_core_reg_mask): Don't force a spare work
13337 register if both the epilogue and prologue can use call-clobbered
13338 regs.
13339 (thumb1_unexpanded_epilogue): Use
13340 thumb1_epilogue_unused_call_clobbered_lo_regs. Reverse the logic for
13341 picking temporaries for restoring high regs to match that of the
13342 prologue where possible.
13343 (thumb1_expand_prologue): Add any usable call-clobbered low registers to
13344 the list of work registers. Detect if the return address is still live
13345 at the end of the prologue and avoid using it for a work register if so.
13346 If the return address is not live, add LR to the list of pushable regs
13347 after the first pass.
13348
13349 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13350
13351 PR tree-optimization/90078
13352 * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
13353 (INFTY): Increase the value for infinite cost.
13354 (struct comp_cost): Promote type of members to int64_t.
13355 (infinite_cost): Don't set complexity in initialization.
13356 (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
13357 overflows to infinite_cost.
13358 (adjust_setup_cost): Promote type of parameter and cost computation
13359 to int64_t.
13360 (struct ainc_cost_data, struct iv_ca): Promote type of member to
13361 int64_t.
13362 (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
13363 cost computation to int64_t.
13364 (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
13365 int64_t's format specifier in dump.
13366
13367 2019-05-08 Bin Cheng <bin.cheng@linux.alibaba.com>
13368
13369 PR tree-optimization/90240
13370 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
13371 with respect to scaling factor pre-computed for each basic block.
13372 (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
13373 (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
13374 (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
13375 (tree_ssa_iv_optimize_loop): Call determine_scaling_factor. Extend
13376 live range for array of loop's basic blocks. Cleanup aux field of
13377 loop's basic blocks.
13378
13379 2019-05-08 Jakub Jelinek <jakub@redhat.com>
13380
13381 PR tree-optimization/90356
13382 * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
13383
13384 2019-05-07 Wei Xiao <wei3.xiao@intel.com>
13385
13386 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
13387 OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
13388 (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
13389 (ix86_handle_option): Handle -mavx512bf16.
13390 * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
13391 to extra_headers.
13392 * config/i386/avx512bf16vlintrin.h: New.
13393 * config/i386/avx512bf16intrin.h: New.
13394 * config/i386/cpuid.h (bit_AVX512BF16): New.
13395 * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
13396 * config/i386/i386-builtin-types.def: Add new types.
13397 * config/i386/i386-builtin.def: Add new builtins.
13398 * config/i386/i386-c.c (ix86_target_macros_internal): Define
13399 __AVX512BF16__.
13400 * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
13401 (ix86_option_override_internal): Handle BF16.
13402 (ix86_valid_target_attribute_inner_p): Ditto.
13403 * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
13404 * config/i386/i386-builtin.c (enum processor_features): Add
13405 F_AVX512BF16.
13406 (static const _isa_names_table isa_names_table): Ditto.
13407 * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
13408 (PTA_AVX512BF16): Ditto.
13409 * config/i386/i386.opt: Add -mavx512bf16.
13410 * config/i386/immintrin.h: Include avx512bf16intrin.h
13411 and avx512bf16vlintrin.h.
13412 * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
13413 avx512f_cvtneps2bf16_<mode><mask_name>,
13414 avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
13415 * config/i386/subst.md (mask_half): Add new subst.
13416 * doc/invoke.texi: Document -mavx512bf16.
13417
13418 2019-05-07 Segher Boessenkool <segher@kernel.crashing.org>
13419
13420 * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
13421 Delete declaration.
13422 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
13423 (rs6000_debug_legitimize_reload_address): Delete.
13424 (rs6000_legitimize_reload_address_ptr): Delete.
13425 (rs6000_option_override_internal): Adjust.
13426 (mem_operand_gpr): Adjust comment.
13427 (legitimate_lo_sum_address_p): Ditto.
13428 (rs6000_legitimize_reload_address): Delete.
13429 (rs6000_debug_legitimize_reload_address): Delete.
13430 * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
13431
13432 2019-05-07 Kelvin Nilsen <kelvin@gcc.gnu.org>
13433
13434 PR target/89765
13435 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
13436 In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
13437 to compute vector element selector for both constant and variable
13438 operands.
13439
13440 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13441
13442 * config/i386/i386.md (cvt_mnemonic): New mode attribute.
13443 (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
13444 ashrdi3_cvt using SWI48 mode iterator.
13445
13446 2019-05-07 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13447
13448 * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
13449 (aarch64_<su>abd<mode>_3): Likewise.
13450 (*aarch64_<su>abd<mode>_3): New define_insn.
13451 (<sur>sad<vsi2qi>): New define_expand.
13452 * config/aarch64/iterators.md: Added MAX_OPP attribute.
13453 * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
13454 (build_vect_cond_expr): Likewise.
13455
13456 2019-05-07 Uroš Bizjak <ubizjak@gmail.com>
13457
13458 * cfgexpand.c (asm_clobber_reg_is_valid): Reject
13459 clobbers outside of accessible_reg_set.
13460 * config/i386/i386.c (ix86_conditional_register_usage):
13461 Disable register sets by clearing corresponding bits in
13462 accessible_reg_set. Do not set corresponding bits in fixed_regs,
13463 call_used_regs and don't clear corresponding reg_names array members.
13464
13465 2019-05-07 Richard Biener <rguenther@suse.de>
13466
13467 * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
13468 not specified still compute a comp_vectype for invariant
13469 compares.
13470
13471 2019-05-07 Richard Biener <rguenther@suse.de>
13472
13473 PR tree-optimization/90316
13474 * tree-ssa-pre.c (translate_vuse_through_block): When
13475 same_valid is NULL do not bother to search for a virtual
13476 PHI continuation.
13477 (phi_translate_1): When operands changed we cannot keep
13478 the same value-number so do not bother to ask whether
13479 that's possible from translate_vuse_through_block.
13480
13481 2019-05-07 Martin Liska <mliska@suse.cz>
13482
13483 * bitmap.c (bitmap_register): Come up with
13484 alloc_descriptor_max_uid and assign it for
13485 a new bitmap.
13486 (register_overhead): Use get_descriptor as
13487 a descriptor.
13488 (release_overhead): New.
13489 (bitmap_elem_to_freelist): Call it.
13490 (bitmap_elt_clear_from): Likewise.
13491 (bitmap_obstack_free): Likewise.
13492 (bitmap_move): Sensitively release memory.
13493 * bitmap.h (struct GTY): Add alloc_descriptor and padding.
13494 (bitmap_initialize): Initialize alloc_descriptor to zero.
13495 * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
13496
13497 2019-05-07 Richard Biener <rguenther@suse.de>
13498
13499 * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
13500 we build a SLP node. Remove max_size and limiting.
13501 (vect_analyze_slp_instance): Record and dump size of the SLP graph.
13502
13503 2019-05-07 Richard Biener <rguenther@suse.de>
13504
13505 PR tree-optimization/90316
13506 * tree-ssa-alias.h (get_continuation_for_phi): Take walking
13507 limit by reference.
13508 (walk_non_aliased_vuses): Take walking limit argument.
13509 * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
13510 walking if it is reached instead of just counting.
13511 (get_continuation_for_phi): Likewise.
13512 (walk_non_aliased_vuses): Likewise, instead of leaving counter
13513 limiting to the callback.
13514 * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
13515 (vn_reference_lookup_3): Likewise.
13516 (vn_reference_lookup_pieces): Likewise.
13517 (vn_reference_lookup): Likewise.
13518 * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
13519 * tree-ssa-scopedtables.c (vuse_eq): Adjust.
13520 (avail_exprs_stack::lookup_avail_expr): Likewise.
13521
13522 2019-05-07 Jan Hubicka <hubicka@ucw.cz>
13523
13524 * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
13525 for comparaible types in the second direction even if first one
13526 hits incomparable type.
13527
13528 2019-05-07 Richard Biener <rguenther@suse.de>
13529
13530 PR lto/90369
13531 * lto-wrapper.c (debug_objcopy): Use the original filename
13532 including archive offset for the filename used for -save-temps.
13533
13534 2019-05-07 Li Jia He <helijia@linux.ibm.com>
13535
13536 * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
13537 detection.
13538
13539 2019-05-06 H.J. Lu <hongjiu.lu@intel.com>
13540 Hongtao Liu <hongtao.liu@intel.com>
13541
13542 PR target/89750
13543 PR target/86444
13544 * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
13545 Modified, original implementation isn't correct.
13546
13547 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13548
13549 * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
13550 (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
13551 (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
13552 (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
13553 (FRAME_POINTER_REGNUM): Change numbering.
13554 * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
13555 (alt_reg_names): Adjust.
13556 (rs6000_conditional_register_usage): Don't mark hard register 64 as
13557 fixed.
13558 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13559 (DWARF_FRAME_REGISTERS): Delete.
13560 (DWARF2_FRAME_REG_OUT): Fix whitespace.
13561 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13562 Adjust.
13563 (REG_ALLOC_ORDER): Adjust.
13564 (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
13565 (REG_CLASS_CONTENTS): Adjust.
13566 (RETURN_ADDR_RTX): Change comment.
13567 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
13568 instead of 67.
13569 (REGISTER_NAMES): Adjust.
13570 (ADDITIONAL_REGISTER_NAMES): Adjust.
13571 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13572
13573 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13574
13575 * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
13576 Delete.
13577 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
13578 (DWARF_FRAME_REGISTERS): Adjust.
13579 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
13580 Adjust.
13581 (REG_ALLOC_ORDER): Adjust.
13582 (enum reg_class): Delete SPR_REGS.
13583 (REG_CLASS_NAMES): Delete SPR_REGS.
13584 (REG_CLASS_CONTENTS): Delete SPR_REGS. Adjust for deleted TM regs.
13585 (REGISTER_NAMES): Adjust.
13586 (ADDITIONAL_REGISTER_NAMES): Adjust.
13587 * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
13588 * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
13589 * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
13590 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
13591 (htm_spr_regno): Delete.
13592 (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
13593 argument.
13594 (rs6000_dbx_register_number): Adjust.
13595
13596 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13597
13598 * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
13599
13600 2019-05-06 Segher Boessenkool <segher@kernel.crashing.org>
13601
13602 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
13603 FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
13604
13605 2019-05-06 Jakub Jelinek <jakub@redhat.com>
13606
13607 PR tree-optimization/88709
13608 PR tree-optimization/90271
13609 * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
13610 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
13611 non-clobber CONSTRUCTORs with no elts. Remove useless tmp_int
13612 variable.
13613 (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
13614 of the store merging group is larger than
13615 PARAM_STORE_MERGING_MAX_SIZE parameter.
13616 (split_group): Add bzero_first argument. If set, always emit first
13617 the first store which must be = {} of the whole area and then for the
13618 rest of the stores consider all zero bytes as paddings.
13619 (imm_store_chain_info::output_merged_store): Check if first store
13620 is = {} of the whole area and if yes, determine which setting of
13621 bzero_first for split_group gives smaller number of stores. Adjust
13622 split_group callers.
13623 (lhs_valid_for_store_merging_p): Allow decls.
13624 (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
13625 no elts.
13626 (pass_store_merging::process_store): Likewise.
13627
13628 2019-05-06 Kelvin Nilsen <kelvin@gcc.gnu.org>
13629
13630 PR target/89424
13631 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
13632 handling of V1TImode.
13633
13634 2019-05-06 Uroš Bizjak <ubizjak@gmail.com>
13635
13636 PR target/89221
13637 * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
13638 and enable_frame_pointer ...
13639 * configure.ac: ... here. Update help strings for
13640 --enable-frame-pointer.
13641 * configure: Regenerate.
13642 * config/i386/i386-options.c (ix86_option_override_internal): Remove
13643 USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
13644 * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
13645 (USE_X86_64_FRAME_POINTER): Ditto.
13646
13647 2019-05-06 Martin Liska <mliska@suse.cz>
13648
13649 * config.gcc: Append to target_gtfiles and fix indentation.
13650
13651 2019-05-06 Richard Biener <rguenther@suse.de>
13652
13653 PR tree-optimization/90358
13654 * tree-vect-stmts.c (get_group_load_store_type): Properly
13655 detect unused upper half of load.
13656 (vectorizable_load): Likewise.
13657
13658 2019-05-06 Richard Biener <rguenther@suse.de>
13659
13660 PR tree-optimization/88828
13661 * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
13662 (simplify_vector_constructor): ...here. Handle constants in
13663 the constructor.
13664
13665 2019-05-06 Richard Biener <rguenther@suse.de>
13666
13667 PR tree-optimization/90328
13668 * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
13669 * tree-data-ref.c (dr_may_alias_p): Check whether the clique
13670 is valid in the loop nest before using it.
13671 (initialize_data_dependence_relation): Adjust.
13672 * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
13673 loop as loop-nest to dr_may_alias_p.
13674
13675 2019-05-06 Richard Biener <rguenther@suse.de>
13676
13677 * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
13678
13679 2019-05-06 Richard Biener <rguenther@suse.de>
13680
13681 PR tree-optimization/90316
13682 * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
13683 compute target on demand.
13684 (get_continuation_for_phi): Remove code walking stmts to
13685 get to a target virtual operand which could end up being
13686 quadratic.
13687
13688 2019-05-06 Martin Liska <mliska@suse.cz>
13689
13690 PR sanitizer/90312
13691 * config/i386/i386-options.c (ix86_option_override_internal): Error only
13692 when -mabi is selected to a non-default version.
13693
13694 2019-05-06 Hrishikesh Kulkarni <hrishikeshparag@gmail.com>
13695 Martin Liska <mliska@suse.cz>
13696
13697 * Makefile.in: Add lto-dump.texi.
13698 * cgraph.h: Add new functions get_visibility_string and
13699 get_symtab_type_string.
13700 * doc/gcc.texi: Include lto-dump section.
13701 * doc/lto-dump.texi: New file.
13702 * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
13703 (parse_dump_option): Factor out this function.
13704 * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
13705 (parse_dump_option): Export the function.
13706 * symtab.c (symtab_node::get_visibility_string): New function.
13707 (symtab_node::get_symtab_type_string): Likewise.
13708
13709 2019-05-06 Martin Liska <mliska@suse.cz>
13710
13711 * config/i386/i386-builtins.c: New file.
13712 * config/i386/i386-builtins.h: New file.
13713 * config/i386/i386-expand.c: New file.
13714 * config/i386/i386-expand.h: New file.
13715 * config/i386/i386-features.c: New file.
13716 * config/i386/i386-features.h: New file.
13717 * config/i386/i386-options.c: New file.
13718 * config/i386/i386-options.h: New file.
13719 * config.gcc: Add new files into extra_objs and
13720 target_gtfiles.
13721 * config/i386/i386.c: Split content of the file
13722 into newly introduced files.
13723 * config/i386/i386.h: Declare common variables
13724 and macros.
13725 * config/i386/t-i386: Define dependencies for new files.
13726
13727 2019-05-03 Richard Earnshaw <rearnsha@arm.com>
13728
13729 PR target/89400
13730 * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
13731 Restrict 'all' variant to 32-bit configurations.
13732 (unaligned_loadhiu): Likewise.
13733 (unaligned_storehi): Likewise.
13734 (unaligned_storesi): Likewise.
13735 (unaligned_loadhis): Disable when compiling for thumb1.
13736
13737 2019-05-03 Marc Glisse <marc.glisse@inria.fr>
13738
13739 PR tree-optimization/90269
13740 * tree-loop-distribution.c (find_seed_stmts_for_distribution):
13741 Ignore clobbers.
13742
13743 2019-05-03 Martin Liska <mliska@suse.cz>
13744
13745 * hash-map.h: Add is_empty function.
13746 * hash-set.h: Likewise.
13747 * hash-table.h: Likewise.
13748 * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
13749 elements () == 0 (and similar usages).
13750 * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
13751 * gimplify.c (gimplify_bind_expr): Likewise.
13752 (gimplify_switch_expr): Likewise.
13753 * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
13754 * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
13755 * postreload-gcse.c (dump_hash_table): Likewise.
13756 (gcse_after_reload_main): Likewise.
13757 * predict.c (combine_predictions_for_bb): Likewise.
13758 * tree-parloops.c (reduction_phi): Likewise.
13759 (separate_decls_in_region): Likewise.
13760 (transform_to_exit_first_loop): Likewise.
13761 (gen_parallel_loop): Likewise.
13762 (gather_scalar_reductions): Likewise.
13763 (try_create_reduction_list): Likewise.
13764 * var-tracking.c (dump_vars): Likewise.
13765 (emit_notes_for_changes): Likewise.
13766 (vt_emit_notes): Likewise.
13767
13768 2019-05-03 Richard Biener <rguenther@suse.de>
13769
13770 PR tree-optimization/90316
13771 * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
13772 before running VN.
13773
13774 2019-05-03 Richard Biener <rguenther@suse.de>
13775
13776 * tree-vect-stmts.c (get_group_load_store_type): Avoid
13777 peeling for gaps by loading only lower halves of vectors
13778 if possible.
13779 (vectorizable_load): Likewise.
13780
13781 2019-05-03 Richard Biener <rguenther@suse.de>
13782
13783 PR middle-end/89518
13784 * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
13785
13786 2019-05-03 Richard Biener <rguenther@suse.de>
13787
13788 PR middle-end/87314
13789 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
13790 Handle STRING_CST vs DECL or STRING_CST.
13791
13792 2019-05-03 Richard Biener <rguenther@suse.de>
13793
13794 PR tree-optimization/88963
13795 * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
13796 vector loads feeding only BIT_FIELD_REFs to component
13797 loads. Rewrite stores fed by CONSTRUCTORs to component
13798 stores.
13799
13800 2019-05-03 Jakub Jelinek <jakub@redhat.com>
13801
13802 * opts.h (finish_options): Remove lang_mask argument.
13803 (print_help, help_option_argument): Declare.
13804 * opts.c (print_help): Remove forward declaration, no longer static.
13805 (finish_options): Remove lang_mask argument, don't call print_help
13806 here.
13807 * opts-global.c (decode_options): Adjust finish_option caller, call
13808 print_help here.
13809
13810 PR tree-optimization/90303
13811 * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
13812 TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
13813
13814 2019-05-03 Richard Biener <rguenther@suse.de>
13815
13816 PR tree-optimization/89698
13817 * gimple-fold.c (canonicalize_constructor_val): Early out
13818 for constants, handle unfolded INTEGER_CSTs as they appear in
13819 C++ virtual table ctors.
13820
13821 2019-05-03 Richard Biener <rguenther@suse.de>
13822
13823 * passes.c (execute_function_todo): Remove dead code.
13824
13825 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13826
13827 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
13828 the internal register number, for any "real" register.
13829
13830 2019-05-02 Segher Boessenkool <segher@kernel.crashing.org>
13831
13832 * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
13833 correct numbers for TFHAR, TFIAR, TEXASR.
13834
13835 2019-05-02 Richard Biener <rguenther@suse.de>
13836
13837 PR tree-optimization/89653
13838 * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
13839 update-address-taken before the pass.
13840 * passes.def (pass_tree_loop_init): Put comment before it.
13841
13842 2019-05-02 Richard Biener <rguenther@suse.de>
13843
13844 PR tree-optimization/89509
13845 * tree-ssa-structalias.c (compute_dependence_clique): Look
13846 at the first subvar when determining whether it is restrict.
13847
13848 2019-05-02 Richard Biener <rguenther@suse.de>
13849
13850 PR tree-optimization/90273
13851 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
13852 useless debug stmts.
13853
13854 2019-05-02 Alejandro Martinez <alejandro.martinezvicente@arm.com>
13855
13856 * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
13857 ACLE branch.
13858 * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
13859 SVE ACLE branch.
13860 * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
13861 VEC_COND_EXPR be inserted to emulate a conditional internal function.
13862 (build_vect_cond_expr): Emit the VEC_COND_EXPR.
13863 (vectorizable_reduction): Use the functions above to vectorize in a
13864 fully masked loop codes that don't have a conditional internal
13865 function.
13866
13867 2019-05-02 Martin Liska <mliska@suse.cz>
13868
13869 * cgraphclones.c: Call valid_attribute_p with 1 for
13870 target_clone.
13871 * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
13872 it's for target attribute.
13873 * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
13874 Add new boolean argument.
13875 * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
13876 Likewise.
13877 (ix86_valid_target_attribute_tree): Pass target_clone_attr
13878 to ix86_valid_target_attribute_inner_p.
13879 (ix86_valid_target_attribute_p): Pass flags argument to
13880 ix86_valid_target_attribute_inner_p.
13881 (get_builtin_code_for_version): Use 0 as it's target attribute.
13882
13883 2019-05-02 Martin Liska <mliska@suse.cz>
13884
13885 * gcc.c (process_command): Add dummy file only
13886 if n_infiles == 0.
13887 * opts-global.c (decode_options): Pass lang_mask.
13888 * opts.c (print_help): New function.
13889 (finish_options): Print --help if help_option_argument
13890 is set.
13891 (common_handle_option): Factor out content of OPT__help_
13892 into print_help.
13893 * opts.h (finish_options): Add new argument.
13894
13895 2019-05-02 Martin Liska <mliska@suse.cz>
13896
13897 PR target/88809
13898 * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
13899 With -minline-all-stringops use inline expansion using 4B loop.
13900 * doc/invoke.texi: Document the change of
13901 -minline-all-stringops.
13902
13903 2019-05-01 Jeff Law <law@redhat.com>
13904
13905 PR tree-optimization/88797
13906 * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
13907 PHI feeds a conditional on the RHS of an assignment.
13908
13909 2019-04-30 Andrew Waterman <andrew@sifive.com>
13910 Jim Wilson <jimw@sifive.com>
13911
13912 * config/riscv/constraints.md (L): New.
13913 * config/riscv/predicates.md (lui_operand): New.
13914 (sfb_alu_operand): New.
13915 * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
13916 * config/riscv/riscv.c (riscv_expand_conditional_move): New.
13917 * config/riscv/riscv.h (TARGET_SFB_ALU): New.
13918 * config/riscv/risc.md (type): Add sfb_alu.
13919 (branch<mode>): Renamed from branch_order<mode>. Change predicate for
13920 operand 3 to reg_or_0_operand. In output string, change %3 to %z3.
13921 (branch_zero<mode>): Delete.
13922 (mov<mode>cc): New.
13923 (mov<GPR:mode><X:mode>cc): Likewise.
13924 * config/riscv/sifive-7.md (sifive_7_sfb_alu): New. Use in bypasses.
13925
13926 2019-04-30 Nathan Sidwell <nathan@acm.org>
13927
13928 * tree.h (MARK_TS_EXP): New.
13929
13930 2019-04-30 Martin Liska <mliska@suse.cz>
13931
13932 * opts.c (enable_warning_as_error): Provide hints
13933 for unknown options.
13934
13935 2019-04-30 Martin Liska <mliska@suse.cz>
13936
13937 PR debug/90288
13938 * doc/invoke.texi: Add missing dash for gas-locview-support
13939 and gno-as-locview-support.
13940
13941 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13942
13943 PR target/89093
13944 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
13945 whitespace at the start of target attribute string.
13946
13947 2019-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13948
13949 PR target/86538
13950 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
13951 Define __ARM_FEATURE_ATOMICS.
13952
13953 2019-04-30 Martin Liska <mliska@suse.cz>
13954
13955 * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
13956 into built_in_function enum. Remove code for endp == 2 and
13957 use BUILT_IN_* constants.
13958 (gimple_fold_builtin): Call the function with fcode.
13959
13960 2019-04-30 Martin Liska <mliska@suse.cz>
13961
13962 * config/i386/i386.c (ix86_builtin_reciprocal): Cast
13963 DECL_FUNCTION_CODE into ix86_builtins enum before
13964 the switch statement.
13965
13966 2019-04-30 Jakub Jelinek <jakub@redhat.com>
13967
13968 PR tree-optimization/89475
13969 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
13970 calls.
13971
13972 2019-04-30 Martin Liska <mliska@suse.cz>
13973
13974 PR translation/90274
13975 * opts.c (print_filtered_help): Wrap string in _(...).
13976
13977 2019-04-30 Bin Cheng <bin.cheng@linux.alibaba.com>
13978
13979 PR tree-optimization/90240
13980 Revert:
13981 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
13982
13983 PR tree-optimization/90078
13984 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
13985 checks for infinite_cost overflow.
13986
13987 2019-04-29 Jeff Law <law@redhat.com>
13988
13989 * passes.def: Move -Wrestrict pass after copy propagation.
13990
13991 2019-04-29 Maya Rashish <coypu@sdf.org>
13992
13993 * config.gcc (default_gnu_indirect_function): Default to yes
13994 for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
13995 sparc*-*-netbsd*, x86_64-*-netbsd*.
13996
13997 2019-04-29 Vladislav Ivanishin <vlad@ispras.ru>
13998
13999 * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
14000 where cond2 is NE_EXPR.
14001 (is_value_included_in): Update comment.
14002
14003 2019-04-29 Richard Biener <rguenther@suse.de>
14004
14005 PR tree-optimization/90278
14006 * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
14007 EH on comparison simplification.
14008
14009 2019-04-29 Jason Merrill <jason@redhat.com>
14010
14011 PR c++/82081 - tail call optimization breaks noexcept
14012 * tree-tailcall.c (find_tail_calls): Don't turn a call from a
14013 nothrow function to a might-throw function into a tail call.
14014
14015 2019-04-29 Richard Sandiford <richard.sandiford@arm.com>
14016
14017 * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
14018 (DDR_INNER_LOOP): Likewise.
14019 * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
14020 (initialize_data_dependence_relation): Likewise.
14021 (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
14022
14023 2019-04-29 Jakub Jelinek <jakub@redhat.com>
14024
14025 PR rtl-optimization/90257
14026 * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
14027 return value.
14028
14029 Revert the revert:
14030 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14031
14032 PR target/90178
14033 Revert:
14034 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14035
14036 Revert the revert:
14037 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14038
14039 Revert:
14040 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14041
14042 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14043
14044 2019-04-29 Richard Biener <rguenther@suse.de>
14045
14046 * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
14047 rhs issue a reset.
14048
14049 2019-04-27 Iain Buclaw <ibuclaw@gdcproject.org>
14050
14051 * config/netbsd-d.c: Include memmodel.h. Remove unused tree.h,
14052 varasm.h, and netbsd-protos.h.
14053
14054 2019-04-27 Uroš Bizjak <ubizjak@gmail.com>
14055
14056 PR target/89261
14057 * config/i386/i386-protos.h (ix86_data_alignment): Change
14058 the second argument type to unsigned int.
14059 * config/i386/i386.c (ix86_data_alignment): Change "align"
14060 argument type to unsigned int.
14061
14062 2019-04-27 Martin Liska <mliska@suse.cz>
14063
14064 PR middle-end/90258
14065 * opt-suggestions.c (option_proposer::build_option_suggestions):
14066 When get_valid_option_values returns empty values, add the
14067 misspelling candidate.
14068
14069 2019-04-26 Jim Wilson <jimw@sifive.com>
14070
14071 * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
14072 parameter.
14073 * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
14074 Pass orig_mode to riscv_build_integer.
14075 (riscv_split_integer): Pass mode to riscv_move_integer.
14076 (riscv_legitimize_const_move): Likewise.
14077 (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
14078 promoted_mode. Replace force_reg call with code to load constant into
14079 promoted reg and then subreg it for the store.
14080 * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
14081 riscv_move_integer.
14082
14083 2018-04-26 Eugene Sharygin <eush@ispras.ru>
14084
14085 * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
14086 corrupt codes.
14087
14088 2019-04-26 Richard Sandiford <richard.sandiford@arm.com>
14089
14090 * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
14091 commentary about the encoding of precision.
14092
14093 2019-04-25 Andreas Tobler <andreast@gcc.gnu.org>
14094
14095 * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
14096 * config/i386/t-freebsd64: New file.
14097 * config.gcc: Add the t-freebsd64 for multilib support.
14098
14099 2019-04-25 Uroš Bizjak <ubizjak@gmail.com>
14100
14101 * doc/extend.texi (vector_size): Add missing comma after @xref.
14102
14103 2019-04-25 Jakub Jelinek <jakub@redhat.com>
14104
14105 * BASE-VER: Set to 10.0.0.
14106
14107 2019-04-25 Richard Biener <rguenther@suse.de>
14108
14109 PR middle-end/89765
14110 * gimplify.c (gimplify_expr): Avoid turning a lvalue
14111 VIEW_CONVERT_EXPR into one operating on an rvalue.
14112
14113 2019-04-25 H.J. Lu <hongjiu.lu@intel.com>
14114
14115 PR target/89929
14116 * config/i386/i386.c (feature_priority): Moved to file scope.
14117 (processor_features): Likewise.
14118 (processor_model): Likewise.
14119 (_arch_names_table): Likewise.
14120 (arch_names_table): Likewise.
14121 (_feature_list): Removed.
14122 (feature_list): Likewise.
14123 (_isa_names_table): Moved to file scope. Add priority.
14124 (isa_names_table): Likewise.
14125 (get_builtin_code_for_version): Replace feature_list with
14126 isa_names_table. Update error message for P_ZERO priority.
14127
14128 2019-04-25 Richard Biener <rguenther@suse.de>
14129
14130 * tree-pass.h (make_pass_phi_only_cprop): Remove.
14131 * timevar.def (TV_TREE_PHI_CPROP): Likewise.
14132
14133 2019-04-24 Jeff Law <law@redhat.com>
14134
14135 PR tree-optimization/90037
14136 * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
14137 * passes.def: Replace all instance of phi-only cprop with the
14138 lattice propagator. Move propagation pass from after erroneous
14139 path isolation to before erroneous path isolation.
14140 * tree-ssa-phionlycprop.c: Remove.
14141
14142 2019-04-24 Richard Biener <rguenther@suse.de>
14143
14144 PR middle-end/90213
14145 * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
14146 by size and BITS_PER_UNIT on poly-wide-ints.
14147
14148 2019-04-25 Richard Biener <rguenther@suse.de>
14149
14150 PR middle-end/90194
14151 * match.pd: Add pattern to simplify view-conversion of an
14152 empty constructor.
14153
14154 2019-04-24 Clement Chigot <clement.chigot@atos.net>
14155
14156 * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
14157 OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
14158 for Go on 32 bit AIX.
14159 * config/rs6000/aix72.h: Likewise.
14160
14161 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14162
14163 PR target/90193
14164 * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
14165 * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
14166
14167 2019-04-24 Andreas Krebbel <krebbel@linux.ibm.com>
14168
14169 PR target/89952
14170 * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
14171 from FPRs in reverse order. Generate REG_CFA_DEF_CFA note also
14172 for restored hard frame pointer.
14173 (s390_sched_dependencies_evaluation): Implement new target hook.
14174 (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
14175
14176 2019-04-24 Claudiu Zissulescu <claziss@sysnopsys.com>
14177
14178 * config/arc/arc-options.def: Fix typos and spelling mistakes.
14179 * config/arc/arc.c (arc_init): Cleanup warning message.
14180 (arc_override_options): Likewise.
14181
14182 2019-04-24 Jakub Jelinek <jakub@redhat.com>
14183
14184 PR target/90187
14185 * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
14186 a register if both if_true and if_false are MEMs.
14187
14188 PR tree-optimization/90208
14189 * tree-cfg.c (remove_bb): Move forced labels from removed bbs
14190 after labels of new_bb, not before them.
14191
14192 PR tree-optimization/90211
14193 * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
14194 which are not SSA_NAMEs.
14195
14196 2018-04-23 Sudakshina Das <sudi.das@arm.com>
14197
14198 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
14199 AArch64.
14200 (aarch64_file_end_indicate_exec_stack): Add gnu note section.
14201
14202 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14203
14204 PR rtl-optimization/87979
14205 * modulo-sched.c (sms_schedule): Start ii value "mii" should
14206 not equal zero.
14207
14208 2019-04-23 Roman Zhuykov <zhroma@ispras.ru>
14209
14210 PR rtl-optimization/84032
14211 * modulo-sched.c (ps_insn_find_column): Change condition so that
14212 branch will always be the last insn in a row inside partial
14213 schedule.
14214
14215 2019-04-23 Richard Biener <rguenther@suse.de>
14216
14217 PR debug/90131
14218 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
14219 dest_single_pred_p argument.
14220 (remove_forwarder_block): Adjust.
14221 (remove_forwarder_block_with_phi): Likewise.
14222
14223 2019-04-23 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14224 Bernd Edlinger <bernd.edlinger@hotmail.de>
14225 Jakub Jelinek <jakub@redhat.com>
14226
14227 PR target/89093
14228 * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
14229 if used with general-regs-only.
14230 (arm_conditional_register_usage): Don't add non-general regs if
14231 general-regs-only.
14232 (arm_valid_target_attribute_rec): Handle general-regs-only.
14233 * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
14234 general-regs-only.
14235 (TARGET_HARD_FLOAT_SUB): Define.
14236 (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
14237 (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
14238 (TARGET_REALLY_IWMMXT2): Likewise.
14239 * config/arm/arm.opt: Add -mgeneral-regs-only.
14240 * doc/extend.texi: Document ARM general-regs-only target.
14241 * doc/invoke.texi: Document ARM -mgeneral-regs-only.
14242
14243 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14244
14245 PR tree-optimization/90078
14246 * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
14247 checks for infinite_cost overflow.
14248
14249 2019-04-23 Bin Cheng <bin.cheng@linux.alibaba.com>
14250
14251 PR tree-optimization/90021
14252 * tree-chrec.c (evolution_function_is_univariate_p): New parameter
14253 and check univariate against it.
14254 * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
14255 * tree-data-ref.c (add_other_self_distances): Pass new argument.
14256
14257 2019-04-21 H.J. Lu <hongjiu.lu@intel.com>
14258
14259 PR target/90178
14260 Revert:
14261 2018-11-21 Uros Bizjak <ubizjak@gmail.com>
14262
14263 Revert the revert:
14264 2013-10-26 Vladimir Makarov <vmakarov@redhat.com>
14265
14266 Revert:
14267 2013-10-25 Vladimir Makarov <vmakarov@redhat.com>
14268
14269 * lra-spills.c (lra_final_code_change): Remove useless move insns.
14270
14271 2019-04-21 Iain Sandoe <iain@sandoe.co.uk>
14272
14273 * config/rs6000/rs6000.md (group_end_nop): Emit insn register
14274 names using operand format, rather than hard-wired.
14275 (speculation_barrier): Likewise.
14276
14277 2019-04-19 Segher Boessenkool <segher@kernel.crashing.org>
14278
14279 PR tree-optimization/88055
14280 * tree-call-cdce.c (comparison_code_if_no_nans): New function.
14281 (gen_one_condition): Use it if !HONOR_NANS.
14282
14283 2019-04-19 Jakub Jelinek <jakub@redhat.com>
14284
14285 PR middle-end/90139
14286 * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
14287 assign_temp instead of gen_reg_rtx.
14288
14289 2019-04-19 Christophe Lyon <christophe.lyon@linaro.org>
14290
14291 PR translation/90118
14292 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14293 Add missing space before %<.
14294
14295 2019-04-18 Peter Bergner <bergner@linux.ibm.com>
14296
14297 PR rtl-optimization/87871
14298 * ira-lives.c (make_object_dead): Don't add conflicts to
14299 TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
14300
14301 2019-04-18 Martin Sebor <msebor@redhat.com>
14302
14303 PR middle-end/89797
14304 * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
14305 * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
14306 assuming type size fits in SHWI.
14307
14308 2019-04-18 Jan Hubicka <hubicka@ucw.cz>
14309
14310 PR ipa/85051
14311 * ipa-inline.c (flatten_function): New parameter UPDATE.
14312 (ipa_inline, early_inliner): Use it.
14313
14314 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14315
14316 * fold-const.c (int_const_binop): Return early on failure.
14317
14318 2019-04-18 Richard Sandiford <richard.sandiford@arm.com>
14319
14320 PR middle-end/85164
14321 * combine.c (force_int_to_mode): Cast the argument rather than
14322 the result of known_alignment.
14323 * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
14324
14325 2019-04-18 Richard Biener <rguenther@suse.de>
14326
14327 PR debug/90131
14328 * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
14329 out from ...
14330 (remove_forwarder_block): ... here.
14331 (remove_forwarder_block_with_phi): Also move debug stmts here.
14332
14333 2019-04-18 Jakub Jelinek <jakub@redhat.com>
14334
14335 PR translation/79183
14336 * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
14337 inform where appropriate.
14338
14339 2019-04-18 Richard Biener <rguenther@suse.de>
14340
14341 * tree.c (get_qualified_type): Put found type variants at the
14342 head of the variant list.
14343
14344 2018-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14345
14346 * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
14347
14348 2019-04-17 Hongtao Liu <hongtao.liu@intel.com>
14349
14350 PR target/90125
14351 * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
14352 _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
14353 _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
14354 _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
14355 _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
14356
14357 2019-04-17 Peter Bergner <bergner@linux.ibm.com>
14358
14359 * ira-conflicts.c (print_allocno_conflicts): Always print something,
14360 even for allocno's with no conflicts.
14361 (print_conflicts): Print an extra newline.
14362
14363 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14364
14365 * auto-inc-dec.c (attempt_change): Set the alignment of the
14366 temporary memory to that of the original.
14367
14368 2019-04-17 Joao Moreira <jmoreira@suse.de>
14369
14370 * targhooks.c (default_print_patchable_function_entry): Emit
14371 __patchable_function_entries section with writable flags to allow
14372 relocation resolution.
14373
14374 2019-04-17 Jonny Grant <jg@jguk.org>
14375
14376 * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
14377
14378 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14379
14380 PR middle-end/90095
14381 * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
14382 on lowpart SUBREGs.
14383
14384 2019-04-17 Claudiu Zissulescu <claziss@synopsys.com>
14385
14386 * config/arc/arc.c (arc_init): Format diagnostic string.
14387 (arc_override_options): Likewise.
14388 (check_if_valid_regno_const): Likewise.
14389 (arc_reorg): Likewise.
14390
14391 2019-04-17 Segher Boessenkool <segher@kernel.crashing.org>
14392
14393 PR target/17108
14394 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
14395 name.
14396 (rs6000_emit_allocate_stack_1): Simplify condition. Adjust pattern
14397 name.
14398 * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
14399 (*movdi_update1): Use Pmode.
14400 (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
14401 (movdi_<mode>_update_stack): Rename to ...
14402 (movdi_update_stack): ... this. Fix comment. Change condition. Don't
14403 use Pmode.
14404 (*movsi_update1): Use Pmode.
14405 (*movsi_update2): Use Pmode.
14406 (movsi_update): Rename to ...
14407 (movsi_<mode>_update): ... this. Use Pmode.
14408 (movsi_update_stack): Fix condition.
14409 (*movhi_update1): Use Pmode. Fix argument to
14410 avoiding_indexed_address_p.
14411 (*movhi_update2): Ditto.
14412 (*movhi_update3): Ditto.
14413 (*movhi_update4): Ditto.
14414 (*movqi_update1): Ditto.
14415 (*movqi_update2): Ditto.
14416 (*movqi_update3): Ditto.
14417 (*movsf_update1, *movdf_update1): Merge, rename to...
14418 (*mov<mode>_update1): This. Use Pmode. Fix argument to
14419 avoiding_indexed_address_p. Add "size" attribute.
14420 (*movsf_update2, *movdf_update2): Merge, rename to...
14421 (*mov<mode>_update2): This. Ditto.
14422 (*movsf_update3): Use Pmode. Fix argument to
14423 avoiding_indexed_address_p.
14424 (*movsf_update4): Ditto.
14425 (allocate_stack): Simplify condition. Adjust pattern names.
14426
14427 2019-04-17 Jakub Jelinek <jakub@redhat.com>
14428
14429 PR target/89093
14430 * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
14431 whitespace at the start of target attribute string.
14432
14433 2019-04-16 Pat Haugen <pthaugen@us.ibm.com>
14434
14435 PR target/84369
14436 * config/rs6000/power9.md: Add store forwarding bypass.
14437
14438 2019-04-16 Alexandre Oliva <aoliva@redhat.com>
14439
14440 PR debug/89528
14441 * valtrack.c (dead_debug_insert_temp): Reset debug references
14442 to the return value of a call being removed.
14443
14444 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14445
14446 * config/arc/arc-protos.h (arc_register_move_cost): Remove.
14447 * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
14448 implement target hook.
14449 (arc_memory_move_cost): New function.
14450 (TARGET_REGISTER_MOVE_COST): Define.
14451 (TARGET_MEMORY_MOVE_COST): Likewise.
14452 * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
14453 (MEMORY_MOVE_COST): Likewise.
14454
14455 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14456
14457 * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
14458 (sibcall_value_insn): Likewise.
14459 * config/arc/constraints.md (Rs5): Remove.
14460
14461 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14462
14463 * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
14464 for last two fake registers.
14465 (arc_conditional_register_usage): Make sure fake frame and arg
14466 pointer regs are in general regs class.
14467 (FRAME_POINTER_MASK): Remove.
14468 (RETURN_ADDR_MASK): Remove.
14469 (arc_must_save_register): Use hard frame regnum.
14470 (frame_restore_reg): Use hard_frame_pointer_rtx.
14471 (arc_save_callee_saves): Likewise.
14472 (arc_restore_callee_saves): Likewise.
14473 (arc_save_callee_enter): Likewise.
14474 (arc_restore_callee_leave): Likewise.
14475 (arc_save_callee_milli): Likewise.
14476 (arc_eh_return_address_location): Likewise.
14477 (arc_check_multi): Use hard frame regnum.
14478 (arc_can_eliminate): Likewise.
14479 * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
14480 for register allocator.
14481 (REG_CLASS_CONTENTS): Update GENERAL_REGS.
14482 (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
14483 (FRAME_POINTER_REGNUM): Change it to a fake register.
14484 (HARD_FRAME_POINTER_REGNUM): Defined.
14485 (ARG_POINTER_REGNUM): Change it to a new fake register.
14486 (ELIMINABLE_REGS): Update.
14487 (REGISTER_NAMES): Update names.
14488 * config/arc/arc.md (LP_START): Remove.
14489 (LP_END): Likewise.
14490 (shift_si3_loop): Update pattern.
14491
14492 2019-04-16 Claudiu Zissulescu <claziss@synopsys.com>
14493
14494 * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
14495 to avoid delay slot scheduling.
14496 (arc_must_save_register): Don't save SP.
14497 * config/arc/arc.md (stack_tie): Remove.
14498 (UNSPEC_ARC_STKTIE): Likewise.
14499
14500 2019-04-16 Kito Cheng <kito.cheng@gmail.com>
14501 Shiva Chen <shiva0217@gmail.com>
14502
14503 * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
14504 code gen with large shift amount.
14505
14506 2019-04-16 Chung-Ju Wu <jasonwucj@gmail.com>
14507
14508 * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
14509 subreg.
14510
14511 2019-04-16 Jakub Jelinek <jakub@redhat.com>
14512
14513 PR target/90096
14514 * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
14515 print -m64/-mx32/-m32 if it is true.
14516 (ix86_debug_options, ix86_function_specific_print): Pass true as
14517 ADD_ABI_P to ix86_target_string.
14518 (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
14519 ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
14520 or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
14521
14522 PR rtl-optimization/90082
14523 * dce.c (can_delete_call): New function.
14524 (deletable_insn_p, mark_insn): Use it.
14525
14526 PR tree-optimization/90090
14527 * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
14528 throw internally.
14529 (is_division_by_square): Likewise. Formatting fix.
14530
14531 2019-04-16 Richard Biener <rguenther@suse.de>
14532
14533 PR tree-optimization/56049
14534 * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
14535 equality check if alias-set zero will prevail.
14536
14537 2019-04-15 Jeff Law <law@redhat.com>
14538
14539 * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
14540 size and alignment as unsigned.
14541
14542 2019-04-15 Richard Biener <rguenther@suse.de>
14543
14544 PR debug/90074
14545 * tree-loop-distribution.c (destroy_loop): Preserve correct
14546 debug info.
14547
14548 2019-04-15 Richard Biener <rguenther@suse.de>
14549
14550 PR tree-optimization/90071
14551 * tree-ssa-reassoc.c (init_range_entry): Do not pick up
14552 abnormal operands from def stmts.
14553
14554 2019-04-15 Segher Boessenkool <segher@kernel.crashing.org>
14555
14556 PR rtl-optimization/89794
14557 * combine.c (count_auto_inc): New function.
14558 (try_combine): Count how many auto_inc expressions there were in the
14559 original instructions. Ensure we have the same number in the new
14560 instructions. Remove the code that tried to ensure auto_inc side
14561 effects on i1 and i0 are not lost.
14562
14563 2019-04-15 Richard Biener <rguenther@suse.de>
14564
14565 PR ipa/88936
14566 * tree.h (auto_var_p): Declare.
14567 * tree.c (auto_var_p): New function, split out from ...
14568 (auto_var_in_fn_p): ... here.
14569 * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
14570 member.
14571 (new_var_info): Initialize it.
14572 (set_uids_in_ptset): Also set the shadow variable uid if required.
14573 (ipa_pta_execute): Postprocess points-to solutions assigning
14574 shadow variable uids for locals that may reach their containing
14575 function recursively.
14576 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
14577 assert but instead check whether the points-to solution is
14578 a singleton.
14579
14580 2019-04-15 Martin Jambor <mjambor@suse.cz>
14581
14582 PR ipa/pr89693
14583 * cgraph.c (clone_of_p): Loop over clone chain for each step in
14584 the thunk chain.
14585
14586 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14587
14588 * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
14589
14590 2019-04-15 Monk Chiang <sh.chiang04@gmail.com>
14591 Kito Cheng <kito.cheng@gmail.com>
14592 Shiva Chen <shiva0217@gmail.com>
14593
14594 * config/nds32/nds32-md-auxiliary.c
14595 (nds32_legitimize_pic_address): Use new PIC pattern.
14596 (nds32_legitimize_tls_address): Use new TLS pattern.
14597 (nds32_output_symrel): New.
14598 * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
14599 (nds32_alloc_relax_group_id): Ditto.
14600 * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
14601 (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
14602 relax_group_id.
14603 (nds32_group_tls_insn): Ditto.
14604 (nds32_group_float_insns): Ditto.
14605 * config/nds32/nds32.md (tls_le): New.
14606 (sym_got): Ditto.
14607
14608 2019-04-15 Chung-Ju Wu <jasonwucj@gmail.com>
14609
14610 * configure: Add nds32 target for dwarf2 debug_line checking.
14611 * configure.ac: Regenerated.
14612
14613 2019-04-14 Jan Hubicka <hubicka@ucw.cz>
14614
14615 PR lto/89358
14616 * ipa-devirt.c (skip_in_fields_list_p): New.
14617 (odr_types_equivalent_p): Use it.
14618
14619 2019-04-13 Jakub Jelinek <jakub@redhat.com>
14620
14621 PR target/89093
14622 * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
14623 instead of strncmp when checking for thumb and arm. Formatting fixes.
14624
14625 2019-04-12 Iain Buclaw <ibuclaw@gdcproject.org>
14626
14627 * doc/install.texi: Document --with-target-system-zlib.
14628
14629 2019-04-12 Martin Sebor <msebor@redhat.com>
14630
14631 PR c/88383
14632 PR c/89288
14633 PR c/89798
14634 PR c/89797
14635 * targhooks.c (default_vector_alignment): Avoid assuming
14636 argument fits in SHWI.
14637 * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
14638 a shift expression.
14639 * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
14640
14641 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14642
14643 PR rtl-optimization/89965
14644 * dce.c: Include rtl-iter.h.
14645 (struct check_argument_load_data): New type.
14646 (check_argument_load): New function.
14647 (find_call_stack_args): Check for loads from stack slots still tracked
14648 in sp_bytes and punt if any is found.
14649
14650 * config/mips/loongson-mmiintrin.h: Fix up #error message.
14651
14652 2019-04-12 Jan Hubicka <hubicka@ucw.cz>
14653
14654 * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
14655 * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
14656
14657 2019-04-12 Martin Liska <mliska@suse.cz>
14658
14659 PR middle-end/89970
14660 * multiple_target.c (create_dispatcher_calls): Wrap ifunc
14661 in error message.
14662 (separate_attrs): Handle multiple 'default's.
14663 (expand_target_clones): Rework error handling code.
14664
14665 2019-04-12 Kelvin Nilsen <kelvin@gcc.gnu.org>
14666
14667 PR target/87532
14668 * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
14669 mode of vector rather than mode of destination for move instruction.
14670 * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
14671 Use QI inner mode with V16QI vector mode.
14672
14673 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14674
14675 PR target/52726
14676 * config/tilepro/tilepro.c (tilepro_print_operand): Use just
14677 "invalid %%t operand" in output_operand_lossage message.
14678
14679 2019-04-12 Andreas Krebbel <krebbel@linux.ibm.com>
14680
14681 * config/s390/predicates.md (permute_pattern_operand): New
14682 predicate.
14683 * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
14684 operand for the permute pattern.
14685 ("*vec_perm<mode>"): New insn definition.
14686 ("bswap<mode>"): Generate the permute pattern operand in the
14687 expander and perform the operand reloads for pre arch13 level
14688 already.
14689 ("*bswap<mode>_emu"): Rename to ...
14690 ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
14691 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
14692 Add the USE operand for the permute pattern.
14693 ("*vec_set_bswap_vec<mode>"): Likewise.
14694
14695 2019-04-12 Jakub Jelinek <jakub@redhat.com>
14696
14697 PR c/89946
14698 * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
14699 and gcc_unreachable if it fails, just call tree_to_uhwi which
14700 verifies that too. Test TREE_CHAIN instead of list_length > 1.
14701 Start warning message with a lower-case letter. Formatting fixes.
14702
14703 PR rtl-optimization/90026
14704 * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
14705 successors, look for BARRIERs inside of the whole BB_FOOTER chain
14706 rather than just at the start of it. If e->src BB_FOOTER is not NULL
14707 in cfglayout mode, use emit_barrier_after_bb.
14708
14709 2018-04-11 Steve Ellcey <sellcey@marvell.com>
14710
14711 PR rtl-optimization/87763
14712 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
14713 New Instruction.
14714
14715 2019-04-11 Tom de Vries <tdevries@suse.de>
14716
14717 * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
14718 max macro using statement expression.
14719
14720 2019-04-11 David Edelsohn <dje.gcc@gmail.com>
14721
14722 * xcoffout.h (xcoff_private_rodata_section_name): Declare.
14723 * xcoffout.c (xcoff_private_rodata_section_name): Define.
14724 * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
14725 read_only_private_data_section using xcoff_private_rodata_section_name.
14726 (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
14727
14728 2019-04-11 Christophe Lyon <christophe.lyon@linaro.org>
14729
14730 PR target/90016
14731 * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
14732
14733 2019-04-11 Jakub Jelinek <jakub@redhat.com>
14734
14735 PR rtl-optimization/89965
14736 * dce.c (sp_based_mem_offset): New function.
14737 (find_call_stack_args): Use sp_based_mem_offset.
14738
14739 2019-04-11 Jonathan Wakely <jwakely@redhat.com>
14740
14741 * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
14742
14743 2019-04-11 Richard Biener <rguenther@suse.de>
14744
14745 PR tree-optimization/90020
14746 * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
14747 * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
14748 * tree-ssa-pre.c (compute_avail): Use it to not put
14749 possibly trapping references after a call that might not
14750 return into EXP_GEN.
14751 * gcse.c (compute_hash_table_work): Do not elide
14752 marking a block containing a call if the call might not
14753 return.
14754
14755 2019-04-11 Richard Biener <rguenther@suse.de>
14756
14757 PR tree-optimization/90018
14758 * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
14759 Test both SLP and interleaving variants.
14760
14761 2019-04-11 Robin Dapp <rdapp@linux.ibm.com>
14762
14763 * config/s390/8561.md: New file.
14764 * config/s390/driver-native.c (s390_host_detect_local_cpu):
14765 Add arch13 cpu model.
14766 * config/s390/s390-opts.h (enum processor_type): Likewise.
14767 * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
14768 (s390_get_unit_mask): Likewise.
14769 (s390_is_fpd): Likewise.
14770 (s390_is_fxd): Likewise.
14771 * config/s390/s390.h (s390_tune_attr): Likewise.
14772 * config/s390/s390.md: Include arch13 pipeline description.
14773 * config/s390/s390.opt: Add arch13.
14774
14775 2018-04-10 Steve Ellcey <sellcey@marvell.com>
14776
14777 PR rtl-optimization/87763
14778 * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
14779 New prototype.
14780 * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
14781 New function.
14782 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
14783 New instruction.
14784 (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
14785 (*aarch64_bfi<GPI:mode>4_noand): Ditto.
14786 (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
14787 (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
14788
14789 2019-04-10 Jonathan Wakely <jwakely@redhat.com>
14790
14791 * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
14792 "Although" in -fipa-icf documentation.
14793
14794 * doc/invoke.texi (Debugging Options): Explicitly state the semantics
14795 of using multiple -g options.
14796
14797 2019-04-10 Martin Liska <mliska@suse.cz>
14798
14799 PR gcov-profile/89959
14800 * doc/gcov.texi: Make documentation of -x option
14801 more precise.
14802
14803 2019-04-10 Richard Biener <rguenther@suse.de>
14804
14805 * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
14806 member.
14807 (DR_GROUP_SAME_DR_STMT): Remove.
14808 * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
14809 * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
14810 replace with assert.
14811 (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
14812 (vect_record_grouped_load_vectors): Remove unreachable code.
14813
14814 2019-04-10 Richard Earnshaw <rearnsha@arm.com>
14815
14816 PR target/90016
14817 * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
14818 obsolete reference to N.
14819
14820 2019-04-10 Jakub Jelinek <jakub@redhat.com>
14821
14822 PR middle-end/90025
14823 * expr.c (store_expr): Set properly size on the MEM passed to
14824 clear_storage.
14825
14826 PR c++/90010
14827 * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
14828 with strlen in between hostsz-3 and hostsz-1 inclusive when no
14829 translation is needed, and when translation is needed, only append
14830 ... if the string length is hostsz or more bytes long. Avoid using
14831 strncpy or strcat.
14832
14833 2019-04-09 Matthew Malcomson <matthew.malcomson@arm.com>
14834
14835 PR target/90024
14836 * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
14837 * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
14838 into three.
14839 * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
14840 differences directly.
14841 (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
14842
14843 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14844
14845 PR translation/90011
14846 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
14847 from diagnostics.
14848 * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
14849 diagnostics.
14850 * config/riscv/freebsd.h (LINK_SPEC): Likewise.
14851 * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
14852 * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
14853 trailing space from -gsplit-dwarf diagnostics.
14854
14855 PR tree-optimization/89998
14856 * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
14857 instead of integer_type_node if possible, don't add ranges if return
14858 type is not compatible with int.
14859 * gimple-fold.c (gimple_fold_builtin_sprintf,
14860 gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
14861 integer_type_node.
14862
14863 2019-04-09 Martin Liska <mliska@suse.cz>
14864
14865 * Makefile.in: Use GENERATOR_CFLAGS for all generators.
14866 * doc/install.texi: Document the new config.
14867
14868 2019-04-09 Richard Sandiford <richard.sandiford@arm.com>
14869
14870 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
14871 use gimple_expr_type for load and store calls. Skip over the
14872 condition argument in a conditional internal function.
14873 Protect use of TREE_INT_CST_LOW.
14874
14875 2019-04-09 Jakub Jelinek <jakub@redhat.com>
14876
14877 PR target/90015
14878 * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
14879 (riscv_merge_decl_attributes): Fix typo in diagnostics. Remove
14880 trailing period from it too.
14881
14882 2019-04-08 wu yuan <wuyuan5@huawei.com>
14883
14884 * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
14885 * config/aarch64/aarch64.md : Add "tsv110.md"
14886 * config/aarch64/tsv110.md: New file.
14887
14888 2019-04-08 Richard Biener <rguenther@suse.de>
14889
14890 PR tree-optimization/90006
14891 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
14892 calls like lrint.
14893
14894 2019-04-08 Andrea Corallo <andrea.corallo@arm.com>
14895
14896 PR target/83033
14897 * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
14898 construction.
14899 (fma_root_node): Likewise.
14900 (func_fma_steering): Likewise.
14901
14902 2019-04-08 Jakub Jelinek <jakub@redhat.com>
14903
14904 PR rtl-optimization/89865
14905 * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
14906
14907 PR rtl-optimization/89865
14908 * config/i386/i386.md
14909 (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
14910 numbers not to clash with the additional operands[4].
14911 (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
14912 with extra register copy in the middle.
14913
14914 2019-04-08 Martin Liska <mliska@suse.cz>
14915
14916 PR gcov-profile/89961
14917 * doc/gcov.texi: Document data_file.
14918 * gcov.c (generate_results): Add data_info into JSON output.
14919
14920 2019-04-01 Bin Cheng <bin.cheng@linux.alibaba.com>
14921
14922 PR tree-optimization/89725
14923 * tree-chrec.c (chrec_contains_symbols): New parameter. Handle outer
14924 loop's chrec as invariant symbol.
14925 * tree-chrec.h (chrec_contains_symbols): New parameter.
14926 * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
14927 (build_classic_dist_vector_1, add_other_self_distances): Bypass access
14928 function of loops not in DDR's loop_nest.
14929 * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
14930
14931 2019-04-08 Chenghua Xu <paul.hua.gm@gmail.com>
14932
14933 PR target/89623
14934 * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
14935 Mask.
14936
14937 2019-04-07 Uroš Bizjak <ubizjak@gmail.com>
14938
14939 PR target/89945
14940 * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
14941 Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
14942
14943 2019-04-05 Joern Rennecke <joern.rennecke@embecosm.com>
14944
14945 * sched-deps.c (sched_macro_fuse_insns): Check return value of
14946 targetm.fixed_condition_code_regs.
14947
14948 2019-04-05 Richard Biener <rguenther@suse.de>
14949
14950 PR debug/89892
14951 PR debug/89905
14952 * tree-cfgcleanup.c (remove_forwarder_block): Always move
14953 debug bind stmts but reset them if they are not valid at the
14954 destination.
14955
14956 2019-04-05 Martin Liska <mliska@suse.cz>
14957
14958 PR translation/89936
14959 * collect-utils.c (collect_execute): Use %< and %>, or %qs in
14960 order to wrap keywords or arguments.
14961 * collect2.c (main): Likewise.
14962 (scan_prog_file): Likewise.
14963 (scan_libraries): Likewise.
14964 * common/config/riscv/riscv-common.c
14965 (riscv_subset_list::parsing_subset_version): Likewise.
14966 (riscv_subset_list::parse_std_ext): Likewise.
14967 * config/aarch64/aarch64.c (aarch64_override_options_internal):
14968 Likewise.
14969 * config/arm/arm.c (arm_option_override): Likewise.
14970 * config/cris/cris.c (cris_print_operand): Likewise.
14971 * config/darwin-c.c (darwin_pragma_options): Likewise.
14972 (darwin_pragma_unused): Likewise.
14973 (darwin_pragma_ms_struct): Likewise.
14974 * config/ft32/ft32.c (ft32_print_operand): Likewise.
14975 * config/i386/i386.c (print_reg): Likewise.
14976 (ix86_print_operand): Likewise.
14977 * config/i386/xm-djgpp.h: Likewise.
14978 * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
14979 * config/m32c/m32c.c (m32c_option_override): Likewise.
14980 * config/msp430/msp430.c (msp430_option_override): Likewise.
14981 * config/nds32/nds32.c (nds32_option_override): Likewise.
14982 * config/nvptx/mkoffload.c (main): Likewise.
14983 * config/rx/rx.c (rx_print_operand): Likewise.
14984 (valid_psw_flag): Likewise.
14985 * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
14986 (vms_pragma_nomember_alignment): Likewise.
14987 (vms_pragma_extern_model): Likewise.
14988 * lto-wrapper.c (compile_offload_image): Likewise.
14989 * omp-offload.c (oacc_parse_default_dims): Likewise.
14990 * symtab.c (symtab_node::verify_base): Likewise.
14991 * tlink.c (recompile_files): Likewise.
14992 (start_tweaking): Likewise.
14993 * tree-profile.c (parse_profile_filter): Likewise.
14994
14995 2019-04-05 Richard Sandiford <richard.sandiford@arm.com>
14996
14997 PR tree-optimization/89956
14998 * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
14999 multiple negates of the same value.
15000
15001 2019-04-04 Martin Sebor <msebor@redhat.com>
15002
15003 PR middle-end/89957
15004 PR middle-end/89911
15005 * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
15006 have the same precision since the function crashes otherwise.
15007 * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
15008 has non-zero arguments.
15009
15010 2019-04-04 Martin Sebor <msebor@redhat.com>
15011
15012 PR middle-end/89934
15013 * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
15014 out if the number of arguments is less than expected.
15015
15016 2019-04-04 Jeff Law <law@redhat.com>
15017
15018 PR rtl-optimization/89399
15019 * ree.c (combine_set_extension): Use single_set rather than
15020 digging into PATTERN for items on the candidate list.
15021 (combine_reaching_defs): Likewise.
15022
15023 2019-04-04 Richard Sandiford <richard.sandiford@arm.com>
15024
15025 PR rtl-optimization/46590
15026 * loop-invariant.c (find_defs): Move df_remove_problem and
15027 df_process_deferred_rescans to move_invariants.
15028 Move df_live_add_problem and df_live_set_all_dirty calls
15029 to move_invariants.
15030 (move_invariants): Likewise.
15031 (move_loop_invariants): Likewise, making the df_live calls
15032 conditional on -O. Remove the problem again if we added it
15033 locally.
15034
15035 2019-04-03 qing zhao <qing.zhao@oracle.com>
15036
15037 PR tree-optimization/89730
15038 * ipa-inline.c (can_inline_edge_p): Delete the checking for
15039 -flive-patching=inline-only-static.
15040 (can_inline_edge_by_limits_p): Add the checking for
15041 -flive-patching=inline-only-static and grant always_inline
15042 even when -flive-patching=inline-only-static is specified.
15043
15044 2019-04-03 Jeff Law <law@redhat.com>
15045
15046 PR rtl-optimization/81025
15047 * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
15048
15049 2019-04-03 Richard Biener <rguenther@suse.de>
15050
15051 PR tree-optimization/84101
15052 * tree-vect-stmts.c: Include explow.h for hard_function_value,
15053 regs.h for hard_regno_nregs.
15054 (cfun_returns): New helper.
15055 (vect_model_store_cost): When vectorizing a store to a decl
15056 we return and the function ABI returns in a multi-reg location
15057 account for the possible spilling that will happen.
15058
15059 2019-04-03 Andreas Krebbel <krebbel@linux.ibm.com>
15060
15061 * config/s390/s390.c (s390_legitimate_address_p): Reject long
15062 displacement addresses for vector mode operands.
15063
15064 2019-04-03 Claudiu Zissulescu <claziss@synopsys.com>
15065
15066 * config/arc/arc.c (GMASK_LEN): Define.
15067 (arc_restore_callee_saves): Restore first blink when
15068 !optimize_size.
15069
15070 2019-04-03 Sudakshina Das <sudi.das@arm.com>
15071
15072 * doc/extend.texi: Add deprecated comment on sign-return-address
15073 function attribute and add mbranch-protection.
15074 * doc/invoke.texi: Add bti to the options for mbranch-protection.
15075
15076 2019-04-03 Richard Biener <rguenther@suse.de>
15077
15078 PR lto/89896
15079 * lto-wrapper.c (run_gcc): Avoid implicit rules making
15080 the all target phony.
15081
15082 2019-04-02 Uroš Bizjak <ubizjak@gmail.com>
15083
15084 PR target/89902
15085 PR target/89903
15086 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
15087 Return false for variable DImode shifts.
15088 (dimode_scalar_chain::compute_convert_gain): Do not handle
15089 register count operand in variable DImode shifts.
15090 (dimode_scalar_chain::make_vector_copies): Remove support to copy
15091 count argument of a variable shift instruction to a vector register.
15092 (dimode_scalar_chain::convert_reg): Remove support to convert
15093 count argument of a variable shift instruction.
15094
15095 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15096
15097 PR rtl-optimization/84206
15098 * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
15099 iterating over loop headers.
15100
15101 2019-04-02 Andrey Belevantsev <abel@ispras.ru>
15102
15103 PR rtl-optimization/85876
15104 * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
15105 beyond the original fence.
15106
15107 2019-04-02 Ulrich Weigand <uweigand@de.ibm.com>
15108
15109 * config.gcc: Mark spu* targets as deprecated/obsolete.
15110
15111 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15112
15113 * config/s390/s390-builtin-types.def: New builtin function type
15114 definitions. Remove unused types.
15115 * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
15116 (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
15117 (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
15118 overloaded builtins.
15119 (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
15120 (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
15121 * config/s390/vecintrin.h (vec_float): New builtin macro definition.
15122 (vec_double, vec_signed, vec_unsigned): Define to use the new
15123 overloaded builtins.
15124 * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
15125 Remove expanders.
15126
15127 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15128
15129 * config/s390/s390-builtin-types.def: New builtin function type
15130 definitions.
15131 * config/s390/s390-builtins.def (s390_vec_search_string_cc)
15132 (s390_vec_search_string_until_zero_cc): New overloaded builtins.
15133 (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
15134 (s390_vstrszh, s390_vstrszf): New low-level builtins.
15135 * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
15136 constant definitions.
15137 * config/s390/vecintrin.h (vec_search_string_cc)
15138 (vec_search_string_until_zero_cc): New builtin name definitions.
15139 * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
15140 expanders.
15141 ("vec_vstrs<mode>"): New insn definition.
15142
15143 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15144
15145 * config/s390/s390-builtin-types.def: Add new builtin function
15146 types.
15147 * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
15148 New overloaded builtins.
15149 (s390_vec_sldb, s390_vec_srdb): New low-level builtins. and
15150 s390_vsrd.
15151 * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
15152 (UNSPEC_VEC_SLDBYTE): ... this.
15153 (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
15154 * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
15155 definitions.
15156 * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
15157 Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
15158 ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
15159
15160 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15161
15162 ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
15163 New insn definition.
15164 * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
15165 * config/s390/vector.md (V_HW_HSD): ... here.
15166
15167 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15168
15169 * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
15170 * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
15171 ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
15172 ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
15173 New insn definitions.
15174
15175 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15176
15177 * config/s390/s390-builtin-types.def: Add new builtin function type.
15178 * config/s390/s390-builtins.def: Add overloaded builtin
15179 s390_vec_reve and low-level builtins for s390_vler and s390_vster.
15180 * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
15181 * config/s390/vecintrin.h (vec_reve): New builtin name definition.
15182 * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
15183 ("eltswap<mode>"): New expander.
15184 ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
15185 insn definitions.
15186
15187 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15188
15189 * config/s390/s390-builtin-types.def: Add new builtin function types.
15190 * config/s390/s390-builtins.def: Add overloaded builtin
15191 s390_vec_revb. Add low-level builtins for vlbr and vstbr
15192 instructions.
15193 * config/s390/vecintrin.h (vec_revb): New builtin name definition.
15194 * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
15195 ("bswap<mode>"): New expander.
15196 ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
15197
15198 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15199
15200 * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
15201 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
15202 vector builtin version number in __VEC__.
15203
15204 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15205
15206 * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
15207 iterators.
15208 (SFSI): New mode attribute.
15209 ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
15210 ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
15211 rename to ...
15212 ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
15213 ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
15214 ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
15215 ("floatsi<mode>2"): Add wcefb instruction.
15216
15217 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15218
15219 * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
15220 * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
15221 mode iterators.
15222 ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
15223 ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
15224 support 32 bit fp-int conversions. Rename to ...
15225 ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15226 ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
15227 ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
15228 ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
15229 ... to these.
15230
15231 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15232
15233 * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
15234 if-then-else constructs if we can use the select instruction.
15235 * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
15236
15237 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15238
15239 * config/s390/s390.md ("*popcountdi_arch13_cc")
15240 ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
15241 definition.
15242 ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
15243 Append _z196 to make it ...
15244 ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
15245 ("popcounthi2_z196"): ... this.
15246 ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
15247 ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
15248
15249 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15250
15251 * config/s390/s390.c (s390_canonicalize_comparison): Convert
15252 certain compares for arch13 in order to make use of the condition
15253 code result produced by the new instructions.
15254 (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
15255 nxrk, and nxgrk instruction patterns.
15256 * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
15257 (inv_no): Add new code iterator together with some attributes.
15258 ("*andc_split_<mode>"): Disable splitter for arch13.
15259 ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
15260 ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
15261 ("*<ANDOR:bitops_name>c<GPR:mode>")
15262 ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
15263 ("*n<ANDOR:inv_bitops_name><mode>_cconly")
15264 ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
15265 ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
15266
15267 2019-04-02 Andreas Krebbel <krebbel@linux.ibm.com>
15268
15269 * common/config/s390/s390-common.c (processor_flags_table): New
15270 entry for arch13.
15271 * config.gcc: Support arch13 with the --with-arch= configure flag.
15272 * config/s390/driver-native.c (s390_host_detect_local_cpu):
15273 * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
15274 * config/s390/s390.c (s390_get_sched_attrmask)
15275 (s390_get_unit_mask): Add PROCESSOR_ARCH13.
15276 * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
15277 * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
15278 (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
15279 (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
15280 definitions.
15281 * config/s390/s390.opt: Support arch13 as processor type in
15282 command line options.
15283
15284 2019-04-02 Martin Liska <mliska@suse.cz>
15285
15286 PR translation/89912
15287 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
15288 Fix param description of graphite-max-arrays-per-scop.
15289
15290 2019-04-02 Eric Botcazou <ebotcazou@adacore.com>
15291
15292 * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
15293 (ASAN_CC1_SPEC): Use it in 64-bit mode.
15294 * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
15295
15296 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15297
15298 PR rtl-optimization/85412
15299 * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
15300 sel_sched_region_1, not after.
15301
15302 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15303
15304 PR rtl-optimization/86928
15305 * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
15306 compute_live if necessary.
15307 (sel_redirect_edge_and_branch): Likewise.
15308
15309 2019-04-01 Vladimir Makarov <vmakarov@redhat.com>
15310
15311 PR rtl-optimization/89865
15312 * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
15313 register if it is a part of small class.
15314
15315 2019-04-01 Andrey Belevantsev <abel@ispras.ru>
15316
15317 PR rtl-optimization/87273
15318 * sel-sched-ir.c (merge_fences): Remove assert.
15319
15320 2019-04-01 Richard Biener <rguenther@suse.de>
15321
15322 PR tree-optimization/46590
15323 * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
15324 (dom_walker::m_reachability): Add in place of...
15325 (dom_walker::m_skip_unreachable_blocks): ...this.
15326 * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
15327 Move complex initialization ...
15328 (dom_walker::walk): Here. Especially compute m_bb_to_rpo
15329 lazily and initialize edge flags on each invocation.
15330 (dom_walker::bb_reachable): Use m_reachability.
15331
15332 2019-04-01 Martin Liska <mliska@suse.cz>
15333
15334 PR driver/89861
15335 * opt-suggestions.c (option_proposer::build_option_suggestions):
15336 Add variant without any argument in order to provide better
15337 hints.
15338
15339 2019-04-01 Richard Biener <rguenther@suse.de>
15340
15341 PR c/71598
15342 * gimple.c: Include langhooks.h.
15343 (gimple_get_alias_set): Treat enumeral types as the underlying
15344 integer type.
15345
15346 2019-03-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15347 Eric Botcazou <ebotcazou@adacore.com>
15348
15349 PR rtl-optimization/89862
15350 * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
15351 that operates on the full registers for WORD_REGISTER_OPERATIONS
15352 architectures.
15353
15354 2019-03-29 Jim Wilson <jimw@sifive.com>
15355
15356 * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
15357 Clear MASK_RVC and then set if C subset supported.
15358
15359 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15360
15361 PR c/89872
15362 * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
15363 non-addressable complit into its initializer if it is volatile.
15364
15365 2019-03-29 Roman Zhuykov <zhroma@ispras.ru>
15366
15367 * opts-common.c (integral_argument): Set errno properly in one case.
15368
15369 2019-03-29 Martin Liska <mliska@suse.cz>
15370
15371 * doc/invoke.texi: Remove -Wchkp from documentation.
15372
15373 2019-03-29 Martin Liska <mliska@suse.cz>
15374
15375 * dbgcnt.c (print_limit_reach): New function.
15376 (dbg_cnt): Use it.
15377
15378 2019-03-29 Martin Liska <mliska@suse.cz>
15379
15380 * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
15381 (dbg_cnt_process_opt): Parse first tokens aas
15382 dbg_cnt_process_single_pair is also using strtok.
15383
15384 2019-03-29 Jakub Jelinek <jakub@redhat.com>
15385
15386 PR rtl-optimization/87485
15387 * function.c (expand_function_end): Move stack_protect_epilogue
15388 before loading of return value into hard register(s).
15389
15390 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15391
15392 PR middle-end/89621
15393 * tree-inline.h (struct copy_body_data): Add
15394 dont_remap_vla_if_no_change flag.
15395 * tree-inline.c (remap_type_3, remap_type_2): New functions.
15396 (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
15397 and remap_type_2 returns false.
15398 * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
15399 Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
15400 only from where it is copied to nested contexts.
15401
15402 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15403
15404 PR target/89865
15405 * config/i386/i386.md (RMW operation with LEA peephole):
15406 Use LEAMODE mode attribute instead of SWI mode iterator for
15407 LEA pattern.
15408
15409 2019-03-28 Uroš Bizjak <ubizjak@gmail.com>
15410
15411 PR target/89848
15412 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
15413 Also process XEXP (src, 0) of a shift insn.
15414
15415 2019-03-28 David Malcolm <dmalcolm@redhat.com>
15416
15417 PR middle-end/89725
15418 * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
15419 Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
15420
15421 2019-03-28 Jakub Jelinek <jakub@redhat.com>
15422
15423 * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
15424 test.
15425 (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
15426 (pass_cprop_hardreg::execute): Use those. Don't repeat bb processing
15427 immediately after first one with df_analyze in between, but rather
15428 process all bbs, queueing ones that need second pass in a worklist,
15429 df_analyze, process queued debug insn changes and if second pass is
15430 needed, process bbs from worklist, df_analyze, process queued debug
15431 insns again.
15432
15433 * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
15434 or CALL_P instead of INSN_P && !DEBUG_INSN_P.
15435 (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
15436
15437 2019-03-28 Jonathan Wakely <jwakely@redhat.com>
15438
15439 PR c/79022
15440 * gengtype.h (create_nested_ptr_option): Fix parameter names to match
15441 definition.
15442
15443 2019-03-27 Mateusz B <mateuszb@poczta.onet.pl>
15444
15445 PR target/85667
15446 * config/i386/i386.c (ix86_function_value_1): Call the newly added
15447 function for 32-bit MS_ABI.
15448 (function_value_ms_32): New function.
15449
15450 2019-03-27 Andrew Stubbs <ams@codesourcery.com>
15451
15452 * config/gcn/gcn.md (CC_SAVE_REG): New constant.
15453 (movdi): Call gen_movdi_symbol_save_scc.
15454 (gen_movdi_symbol_save_scc): New insn and split.
15455
15456 2019-03-27 Peter Bergner <bergner@linux.ibm.com>
15457
15458 PR rtl-optimization/89313
15459 * function.c (matching_constraint_num): New static function.
15460 (match_asm_constraints_1): Use it. Fixup white space and comment.
15461 Don't replace inputs with non-matching constraints which conflict
15462 with early clobber outputs.
15463
15464 2019-03-27 Jeff Law <law@redhat.com>
15465
15466 PR rtl-optimization/87761
15467 PR rtl-optimization/89826
15468 * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
15469 slightly later.
15470 (pass_cprop_hardreg::execute): Call df_analyze after adding the
15471 note problem to get REG_DEAD/REG_UNUSED notes updated.
15472
15473 2019-03-27 Richard Biener <rguenther@suse.de>
15474
15475 PR tree-optimization/89463
15476 * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
15477 queue edges to remove.
15478 (eliminate_unnecessary_stmts): Remove dead PHIs alongside
15479 dead stmts. Delay edge removal until PHIs are removed to
15480 make debug-stmt creation not confused by seemingly degenerate
15481 PHIs.
15482
15483 2019-03-27 Alan Modra <amodra@gmail.com>
15484
15485 * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
15486 throughout file.
15487 * config/rs6000/darwin.h: Likewise.
15488 * config/rs6000/rs6000.c: Likewise.
15489
15490 2019-03-27 Alan Modra <amodra@gmail.com>
15491
15492 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
15493 assign rs6000_hard_regno_mode_ok_p[m][r]. Formatting.
15494
15495 2019-03-26 Andrew Waterman <andrew@sifive.com>
15496 Jim Wilson <jimw@sifive.com>
15497
15498 * config/riscv/generic.md (generic_alu, generic_load, generic_store)
15499 (generic_xfer, generic_branch, generic_imul, generic_idivsi)
15500 (generic_idivdi, generic_fmul_single, generic_fmul_double)
15501 (generic_fdiv, generic_fsqrt): Add check for generic tune.
15502 (generic_alu): Add auipc to type list.
15503 * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
15504 (riscv_microarchitecture): Declare.
15505 * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
15506 * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
15507 field.
15508 (riscv_microarchitecture): New.
15509 (sifive_7_tune_info): New.
15510 (riscv_cpu_info_table): Add microarchitecture value for rocket and
15511 size. Add sifive-3-series, sifive-5-series, and sifive-7-series
15512 entries.
15513 (riscv_store_data_bypass_p): New.
15514 (riscv_option_override): Set riscv_microarchitecture from
15515 cpu->microarchitecture.
15516 * config/riscv/riscv.md: Include sifive-7.md.
15517 (type): Add auipc.
15518 (tune): New.
15519 (auipc<mode>): Change type to auipc.
15520 (restore_stack_nonlocal): New.
15521 * config/riscv/sifive-7.md: New.
15522 * doc/invoke.texi (RISC-V Options): Update mtune docs.
15523
15524 2019-03-26 Uroš Bizjak <ubizjak@gmail.com>
15525
15526 PR target/89827
15527 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
15528 Also process XEXP (src, 0) of a shift insn.
15529
15530 2019-03-26 Richard Biener <rguenther@suse.de>
15531
15532 * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
15533 (copy_debug_stmt): Likewise.
15534 (expand_call_inline): Likewise.
15535 (copy_bb): Avoid redundant lookup & set of gimple_block.
15536 * gimple-low.c (lower_gimple_return): Likewise.
15537 (lower_builtin_setjmp): Likewise.
15538
15539 2019-03-26 Jakub Jelinek <jakub@redhat.com>
15540
15541 * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
15542 is constant 0, turn into static const data member initialized to false.
15543 (hash_table::hash_table): Only initialize m_gather_mem_stats #if
15544 GATHER_STATISTICS. Add ATTRIBUTE_UNUSED to gather_mem_stats param.
15545
15546 2019-03-26 Jason Merrill <jason@redhat.com>
15547 Jakub Jelinek <jakub@redhat.com>
15548
15549 * mem-stats.h (mem_alloc_description::unregister_descriptor): New
15550 method.
15551 (mem_alloc_description::release_object_overhead): Fix comment typos.
15552 * hash-table.h (hash_table::~hash_table): Call
15553 release_instance_overhead only if m_entries is non-NULL, otherwise
15554 call unregister_descriptor.
15555
15556 2019-03-26 Bin Cheng <bin.cheng@linux.alibaba.com>
15557
15558 PR tree-optimization/81740
15559 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
15560 In case of outer loop vectorization, check for backward dependence
15561 at the inner loop if outer loop dependence is reversed.
15562
15563 2019-03-26 Alan Modra <amodra@gmail.com>
15564
15565 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
15566 rs6000_vector_mem init. Correct wI and wJ comment.
15567
15568 2019-03-25 Alexander Monakov <amonakov@ispras.ru>
15569
15570 PR rtl-optimization/88347
15571 PR rtl-optimization/88423
15572 * sched-deps.c (sched_analyze_insn): Take into account that for
15573 tablejumps the barrier appears after a label and a jump_table_data.
15574
15575 2019-03-25 Martin Sebor <msebor@redhat.com>
15576
15577 PR c/89812
15578 * c-common.c (check_user_alignment): Rename local. Correct maximum
15579 alignment in diagnostic. Avoid assuming argument fits in SHWI,
15580 convert it to UHWI when it fits.
15581
15582 2019-03-25 Johan Karlsson <johan.karlsson@enea.com>
15583
15584 PR debug/86964
15585 * dwarf2out.c (premark_used_variables): New function.
15586 (prune_unused_types_walk): Do not mark not premarked external
15587 variables.
15588 (prune_unused_types): Call premark_used_variables.
15589
15590 2019-03-25 Vladimir Makarov <vmakarov@redhat.com>
15591
15592 PR rtl-optimization/89676
15593 * lra-constraints.c (curr_insn_transform): Do match reload for
15594 early clobbers when the match was successful only for different
15595 registers.
15596
15597 2019-03-25 Martin Sebor <msebor@redhat.com>
15598
15599 * doc/extend.texi (Common Type Attributes): Document vector_size.
15600 (Common Variable Attributes): Mention size constraint. Correct
15601 quoting and typos.
15602 (Vector Extensions): Use @dfn when defining bas type. Clarify
15603 base type and size constraints.
15604
15605 2019-03-25 Richard Biener <rguenther@suse.de>
15606
15607 PR tree-optimization/89789
15608 * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
15609 changes from non-undefined back to undefined.
15610
15611 2019-03-25 Thomas Otto <thomas.otto@pdv-fs.de>
15612
15613 * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
15614 heap string and a gc string, but since this variable is unknown to
15615 ggc the gc string might get reused and corrupted. Fixed by always
15616 using a heap string.
15617
15618 2019-03-25 Richard Biener <rguenther@suse.de>
15619
15620 PR tree-optimization/89779
15621 * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
15622 to remove IV defs, delay actual removal.
15623 (tree_ssa_iv_optimize_loop): Likewise. Avoid SCEV reset.
15624 (tree_ssa_iv_optimize): Remove eliminated IV defs at the
15625 very end, properly also reset loop control IV information.
15626
15627 2019-03-25 Richard Biener <rguenther@suse.de>
15628
15629 PR tree-optimization/89802
15630 * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
15631 move EH data to folded stmt.
15632
15633 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15634
15635 * config/s390/s390-builtin-types.def: Remove few unused types and
15636 fix sort order for others.
15637
15638 2019-03-25 Andreas Krebbel <krebbel@linux.ibm.com>
15639
15640 * config/s390/s390-c.c (s390_fn_types_compatible): Print the
15641 expected and found types with -mdebug during builtin matching.
15642
15643 2019-03-25 Richard Biener <rguenther@suse.de>
15644
15645 PR middle-end/89790
15646 * fold-const.c (operand_equal_p): Revert last change with
15647 updated comment.
15648
15649 2019-03-24 Segher Boessenkool <segher@kernel.crashing.org>
15650
15651 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
15652 notes for the result of the __tls_get_addr calls.
15653 * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
15654
15655 2019-03-24 Jeff Law <law@redhat.com>
15656
15657 * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
15658
15659 PR rtl-optimization/87761
15660 * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
15661 not INSN. Also check RTX_FRAME_RELATED_P. Queue insns for DF rescan
15662 as needed.
15663 (pass_cprop_hardreg::execute): Add df note problem and defer insn
15664 rescans. Reprocess blocks as needed, calling df_analyze before
15665 reprocessing. Always call df_analyze before fixing up debug bind
15666 insns.
15667
15668 2019-03-23 Segher Boessenkool <segher@kernel.crashing.org>
15669
15670 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
15671 big endian.
15672
15673 2019-03-22 Andrew Pinski <apinski@marvell.com>
15674
15675 * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
15676 attrribute for uxtw.
15677
15678 2019-03-26 Jeff Law <law@redhat.com>
15679
15680 PR rtl-optimization/87761
15681 * config/mips/mips-protos.h (mips_split_move): Add new argument.
15682 (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
15683 (mips_split_move): Accept new INSN argument. Try to forward SRC
15684 into the next instruction.
15685 (mips_split_move_insn): Pass INSN through to mips_split_move.
15686
15687 2019-03-22 Vladimir Makarov <vmakarov@redhat.com>
15688
15689 PR rtl-optimization/89676
15690 * lra-constraints.c (curr_insn_transform): Do match reload for
15691 early clobbers even if the match was successful.
15692
15693 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15694
15695 PR c++/87481
15696 * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
15697
15698 2019-03-22 Bill Schmidt <wschmidt@linux.ibm.com>
15699
15700 * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
15701
15702 2019-03-22 Jakub Jelinek <jakub@redhat.com>
15703
15704 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
15705 <avx512>_fmsub_<mode>_mask3<round_name>,
15706 <avx512>_fnmadd_<mode>_mask3<round_name>,
15707 <avx512>_fnmsub_<mode>_mask3<round_name>,
15708 avx512f_vmfmadd_<mode>_mask3<round_name>,
15709 avx512f_vmfmsub_<mode>_mask3<round_name>,
15710 *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
15711 instead of register_operand and %v instead of v for match_operand 1.
15712 (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
15713 (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this. Use
15714 <round_nimm_predicate> instead of register_operand and %v instead of v
15715 for match_operand 1.
15716
15717 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
15718 <avx512>_fmadd_<mode>_mask3<round_name>,
15719 <avx512>_fmsub_<mode>_mask<round_name>,
15720 <avx512>_fmsub_<mode>_mask3<round_name>,
15721 <avx512>_fnmadd_<mode>_mask<round_name>,
15722 <avx512>_fnmadd_<mode>_mask3<round_name>,
15723 <avx512>_fnmsub_<mode>_mask<round_name>,
15724 <avx512>_fnmsub_<mode>_mask3<round_name>,
15725 <avx512>_fmaddsub_<mode>_mask<round_name>,
15726 <avx512>_fmaddsub_<mode>_mask3<round_name>,
15727 <avx512>_fmsubadd_<mode>_mask<round_name>,
15728 <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
15729 <round_nimm_predicate> instead of nonimmediate_operand.
15730 (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
15731 fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
15732 Use register_operand instead of <round_nimm_predicate> for the
15733 operand that needs to match output.
15734 (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
15735 *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
15736 Likewise. Formatting fixes.
15737
15738 PR target/89784
15739 * config/i386/i386.c (enum ix86_builtins): Remove
15740 IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
15741 * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
15742 __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
15743 __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
15744 __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
15745 __builtin_ia32_vfmsubss3_mask3): New builtins.
15746 * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
15747 avx512f_vmfmadd_<mode>_mask3<round_name>,
15748 avx512f_vmfmadd_<mode>_maskz_1<round_name>,
15749 *avx512f_vmfmsub_<mode>_mask<round_name>,
15750 avx512f_vmfmsub_<mode>_mask3<round_name>,
15751 *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
15752 *avx512f_vmfnmadd_<mode>_mask<round_name>,
15753 *avx512f_vmfnmadd_<mode>_mask3<round_name>,
15754 *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
15755 *avx512f_vmfnmsub_<mode>_mask<round_name>,
15756 avx512f_vmfnmsub_<mode>_mask3<round_name>,
15757 *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
15758 (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
15759 * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
15760 _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
15761 _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
15762 _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
15763 _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
15764 _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
15765 _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
15766 _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
15767 _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
15768 _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
15769 _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
15770 _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
15771 _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
15772 _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
15773 _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
15774 _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
15775 _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
15776 _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
15777 _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
15778 _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
15779
15780 2019-03-21 Martin Sebor <msebor@redhat.com>
15781
15782 PR tree-optimization/89350
15783 * builtins.c (compute_objsize): Also ignore offsets whose upper
15784 bound is negative.
15785 * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
15786 (builtin_memref::builtin_memref): Initialize new member.
15787 Allow EXPR to be null.
15788 (builtin_memref::extend_offset_range): Replace local with a member.
15789 Avoid assuming pointer offsets are unsigned.
15790 (builtin_memref::set_base_and_offset): Determine base object
15791 before computing offset range.
15792 (builtin_access::builtin_access): Handle memset.
15793 (builtin_access::generic_overlap): Replace local with a member.
15794 (builtin_access::strcat_overlap): Same.
15795 (builtin_access::overlap): Same.
15796 (maybe_diag_overlap): Same.
15797 (maybe_diag_access_bounds): Same.
15798 (wrestrict_dom_walker::check_call): Handle memset.
15799 (check_bounds_or_overlap): Same.
15800
15801 2019-03-21 Jan Hubicka <hubicka@ucw.cz>
15802 Jakub Jelinek <jakub@redhat.com>
15803
15804 PR lto/89692
15805 * tree.c (fld_type_variant, fld_incomplete_type_of,
15806 fld_process_array_type): Call fld->pset.add and don't call
15807 add_tree_to_fld_list if it returns true.
15808 (free_lang_data_in_type): Similarly with self-recursive call. Purge
15809 non-marked types from TYPE_NEXT_VARIANT list.
15810 (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
15811
15812 2019-03-21 Jakub Jelinek <jakub@redhat.com>
15813
15814 * hash-table.h (hash_table): Add Lazy template parameter defaulted
15815 to false, if true, don't alloc_entries during construction, but defer
15816 it to the first method that needs m_entries allocated.
15817 (hash_table::hash_table, hash_table::~hash_table,
15818 hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
15819 hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
15820 hash_table::clear_slot, hash_table::traverse_noresize,
15821 hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
15822 * hash-set.h (hash_set): Add Lazy template parameter defaulted to
15823 false.
15824 (hash_set::contains): If Lazy is true, use find_slot_with_hash with
15825 NO_INSERT instead of find_with_hash.
15826 (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
15827 hash_set::m_table): Add Lazy to template params of hash_table.
15828 (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
15829 * attribs.c (test_attribute_exclusions): Likewise.
15830 * hash-set-tests.c (test_set_of_strings): Add iterator tests for
15831 hash_set. Add tests for hash_set with Lazy = true.
15832
15833 2019-03-21 Richard Biener <rguenther@suse.de>
15834
15835 PR tree-optimization/89779
15836 * tree.c (tree_nop_conversion): Consolidate and fix defensive
15837 checks with respect to released SSA names now having error_mark_node
15838 type.
15839 * fold-const.c (operand_equal_p): Likewise.
15840
15841 2019-03-20 Andreas Krebbel <krebbel@linux.ibm.com>
15842
15843 PR target/89775
15844 * config/s390/s390.c (global_not_special_regno_p): Move to make it
15845 available to ...
15846 (s390_optimize_register_info): Use global_not_special_regno_p to
15847 check for global regs.
15848
15849 2019-03-20 Jakub Jelinek <jakub@redhat.com>
15850
15851 PR target/89752
15852 * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
15853 update this_alternative nor this_alternative_set.
15854
15855 2019-03-19 Jim Wilson <jimw@sifive.com>
15856
15857 PR target/89411
15858 * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x. New locals
15859 align, size, offset. Use them to handle a BLKmode reference. Update
15860 comment.
15861 (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
15862
15863 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15864
15865 PR rtl-optimization/89768
15866 * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
15867 instead of GEN_INT.
15868 (unroll_loop_runtime_iterations): Likewise.
15869
15870 2019-03-19 Martin Sebor <msebor@redhat.com>
15871
15872 PR tree-optimization/89644
15873 * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
15874 rather than endptr as an indicator of nul-termination.
15875
15876 PR tree-optimization/89644
15877 * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
15878 arrays in determining sequence sizes in strncpy and stpncpy.
15879
15880 2019-03-19 Martin Liska <mliska@suse.cz>
15881
15882 PR middle-end/89737
15883 * predict.c (combine_predictions_for_bb): Empty likely_edges and
15884 unlikely_edges if there's an edge that belongs to both these sets.
15885
15886 2018-03-19 Segher Boessenkool <segher@kernel.crashing.org>
15887
15888 PR target/89746
15889 * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
15890 non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
15891 go via a stack temporary.
15892
15893 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15894
15895 PR target/89378
15896 * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
15897 instead of gen_rtx_SUBREG.
15898 * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
15899
15900 2019-03-19 Richard Biener <rguenther@suse.de>
15901
15902 PR debug/88389
15903 * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
15904
15905 2019-03-19 Jan Hubicka <hubicka@ucw.cz>
15906
15907 PR lto/87809
15908 PR lto/89335
15909 * tree.c (free_lang_data_in_decl): Do not free context of C++
15910 destrutors.
15911
15912 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15913
15914 PR target/89506
15915 * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
15916 subs for the first alternative except when operands[3] is 1.
15917
15918 PR target/89752
15919 * gimplify.c (gimplify_asm_expr): For output argument with
15920 TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
15921 diagnose error.
15922
15923 2019-03-19 Eric Botcazou <ebotcazou@adacore.com>
15924
15925 PR rtl-optimization/89753
15926 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
15927 explicit unrolling factor even more robust.
15928
15929 2019-03-19 Jakub Jelinek <jakub@redhat.com>
15930
15931 PR target/89726
15932 * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
15933 compensation use x2 += 1 instead of x2 -= -1 and when honoring
15934 signed zeros, do another copysign after the compensation.
15935
15936 2019-03-18 Martin Sebor <msebor@redhat.com>
15937
15938 PR tree-optimization/89720
15939 * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
15940 more conservatively, the same as anti-range.
15941
15942 2019-03-18 Richard Biener <rguenther@suse.de>
15943
15944 PR middle-end/88945
15945 * tree-ssanames.c (release_ssa_name_fn): For released SSA names
15946 use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
15947 basic-blocks that are removed. Remove restoring SSA_NAME_VAR.
15948 * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
15949
15950 2019-03-18 Andrew Stubbs <ams@codesourcery.com>
15951
15952 * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
15953 Extend queue to 1024 entries.
15954 Add "consumed" field.
15955 (gomp_print_output): Remove print_index parameter.
15956 Add final parameter.
15957 Change limit to unsigned.
15958 Use consumed field to implement circular buffer.
15959 Detect interrupted print in final pass.
15960 Flush output at the end.
15961 (run): Update gomp_print_output usage.
15962 (main): Initialize kernargs->output_data.consumed.
15963
15964 2019-03-18 Richard Sandiford <richard.sandiford@arm.com>
15965
15966 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
15967 calculation of the minimum number of scalar iterations for
15968 fully-predicated loops.
15969
15970 2019-03-18 Martin Jambor <mjambor@suse.cz>
15971
15972 PR tree-optimization/89546
15973 * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
15974 any propagation to its children took place.
15975
15976 2019-03-18 Andrew Burgess <andrew.burgess@embecosm.com>
15977
15978 PR target/89627
15979 * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
15980 parameter, and make use of it.
15981 (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
15982
15983 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15984
15985 * config/arc/arc.opt (mcode-density-frame): Get the inital value
15986 from TARGET_CODE_DENSITY_FRAME_DEFAULT.
15987 * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15988 * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
15989 * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
15990 match what the ops is doing.
15991 (push_multi_fp_blink): Likewise.
15992 * config/arc/arc.c (arc_override_options): Enable enter/leave when
15993 compiling for size and elf target.
15994 (arc_save_callee_enter): Adjust note to match what enter/leave
15995 operation does.
15996
15997 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
15998
15999 * config/arc/arc.md (tst_movb): Fix constraint.
16000
16001 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16002
16003 * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
16004
16005 2019-03-18 Claudiu Zissulescu <claziss@synopsys.com>
16006
16007 * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
16008 * config/arc/arc.c (arc_conditional_register_usage): Remove all
16009 reg_alloc_order references.
16010 (size_alloc_order): Define.
16011 (arc_adjust_reg_alloc_order): New function.
16012 * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
16013 order.
16014 (ADJUST_REG_ALLOC_ORDER): Define.
16015 (HONOR_REG_ALLOC_ORDER): Likewise.
16016
16017 2019-03-18 Richard Biener <rguenther@suse.de>
16018
16019 PR target/87561
16020 * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
16021 loads and stores a bit more.
16022
16023 2019-03-18 Richard Biener <rguenther@suse.de>
16024
16025 PR target/87561
16026 * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
16027 load pessimization to stores as well.
16028
16029 2019-03-18 Andrey Belevantsev <abel@ispras.ru>
16030
16031 PR middle-end/86979
16032 * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
16033 successor, use NULL as its av set.
16034
16035 2019-03-15 Segher Boessenkool <segher@kernel.crashing.org>
16036
16037 PR rtl-optimization/89721
16038 * lra-constraints (invariant_p): Return false if side_effects_p holds.
16039
16040 2019-03-15 Kelvin Nilsen <kelvin@gcc.gnu.org>
16041
16042 PR target/87532
16043 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
16044 When handling vec_extract, use modular arithmetic to allow
16045 constant selectors greater than vector length.
16046 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
16047 V1TImode vectors to have constant selector values greater than 0.
16048 Use modular arithmetic to compute vector index.
16049 (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16050 index for in-memory vectors. Correct code generation for
16051 in-register vectors.
16052 (altivec_expand_vec_ext_builtin): Use modular arithmetic to
16053 compute index.
16054
16055 2019-03-15 Alexandre Oliva <aoliva@redhat.com>
16056
16057 PR c++/88534
16058 PR c++/88537
16059 * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
16060 VAR_DECL args.
16061
16062 2019-03-15 Jakub Jelinek <jakub@redhat.com>
16063
16064 PR c++/89709
16065 * tree.c (inchash::add_expr): Strip any location wrappers.
16066 * fold-const.c (operand_equal_p): Move stripping of location wrapper
16067 after hash verification.
16068
16069 PR debug/89704
16070 * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
16071 SIGN_EXTEND and ZERO_EXTEND.
16072
16073 2019-03-14 Jason Merrill <jason@redhat.com>
16074 Jakub Jelinek <jakub@redhat.com>
16075
16076 * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
16077 than if is_empty (*slot).
16078 * hash-set-tests.c (test_set_of_strings): Add tests for addition of
16079 existing elt and for elt removal.
16080 * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
16081 of already removed elt.
16082
16083 2019-03-15 H.J. Lu <hongjiu.lu@intel.com>
16084
16085 PR target/89650
16086 * config/i386/i386.c (remove_partial_avx_dependency): Handle
16087 REG_EH_REGION note.
16088
16089 2019-03-14 Martin Liska <mliska@suse.cz>
16090
16091 PR other/89712
16092 * doc/invoke.texi: Remove -fdump-class-hierarchy option.
16093
16094 2019-03-14 Richard Biener <rguenther@suse.de>
16095
16096 PR target/89711
16097 * config/i386/i386.c (make_resolver_func): Properly set
16098 DECL_CONTEXT on the RESULT_DECL.
16099 * config/rs6000/rs6000.c (make_resolver_func): Likewise.
16100
16101 2019-03-14 Richard Biener <rguenther@suse.de>
16102
16103 * gimple-pretty-print.c: Include cfgloop.h.
16104 (dump_gimple_phi): Adjust.
16105 (dump_gimple_bb_header): Dump loop header for GIMPLE.
16106 (pp_cfg_jump): Adjust.
16107 (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
16108 * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
16109 (lower_phi_internal_fn): Remove.
16110 (verify_gimple_call): Remove IFN_PHI special-casing.
16111 (dump_function_to_file): Dump IL state.
16112 * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
16113 done to deal with PHI nodes being present in non-SSA state.
16114
16115 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16116
16117 PR ipa/89684
16118 * multiple_target.c (create_dispatcher_calls): Change
16119 references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
16120 In the node->iterate_referring loop, push *ref rather than ref, call
16121 ref->remove_reference () and always pass 0 to iterate_referring.
16122
16123 PR rtl-optimization/89679
16124 * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
16125 would contain a paradoxical SUBREG.
16126
16127 2019-03-14 Richard Biener <rguenther@suse.de>
16128
16129 PR tree-optimization/89710
16130 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
16131 safe_dyn_cast.
16132
16133 2019-03-14 Martin Liska <mliska@suse.cz>
16134
16135 * coverage.c (coverage_begin_function): Stream also
16136 end_column.
16137 * doc/gcov.texi: Document 2 new fields in JSON file. Improve
16138 documentation about function declaration location.
16139 * gcov-dump.c (tag_function): Print whole range
16140 of function declaration.
16141 * gcov.c (struct function_info): Add end_column field.
16142 (function_info::function_info): Initialize it.
16143 (output_json_intermediate_file): Output {start,end}_column
16144 fields.
16145 (read_graph_file): Read end_column.
16146
16147 2019-03-14 Richard Biener <rguenther@suse.de>
16148
16149 PR middle-end/89698
16150 * fold-const.c (operand_equal_p): For INDIRECT_REF check
16151 that the access types are similar.
16152
16153 2019-03-14 Jakub Jelinek <jakub@redhat.com>
16154
16155 PR tree-optimization/89703
16156 * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
16157 aren't compatible also with builtin_decl_explicit. Check pure
16158 or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
16159 and BUILT_IN_STPNCPY{,_CHK}.
16160
16161 2019-03-14 H.J. Lu <hongjiu.lu@intel.com>
16162
16163 PR target/89523
16164 * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
16165 addr32 prefix to VSIB address for X32.
16166 * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
16167 "%M2" to opcode.
16168 (*avx512pf_gatherpf<mode>df_mask): Likewise.
16169 (*avx512pf_scatterpf<mode>sf_mask): Likewise.
16170 (*avx512pf_scatterpf<mode>df_mask): Likewise.
16171 (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
16172 (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
16173 (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
16174 (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
16175 (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
16176 (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
16177 (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
16178 (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
16179 (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
16180 (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
16181 (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
16182 (*avx512f_scatterdi<mode>): Likewise.
16183
16184 2019-03-13 Vladimir Makarov <vmakarov@redhat.com>
16185
16186 PR target/85860
16187 * lra-constraints.c (inherit_in_ebb): Update
16188 potential_reload_hard_regs along with live_hard_regs.
16189
16190 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16191
16192 PR debug/89498
16193 * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
16194 DWARF_OFFSET_SIZE.
16195 (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
16196
16197 2019-03-13 Martin Sebor <msebor@redhat.com>
16198
16199 PR tree-optimization/89662
16200 * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
16201 has a size.
16202
16203 2019-03-13 Richard Biener <rguenther@suse.de>
16204
16205 PR middle-end/89677
16206 * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
16207 throw FP expressions at tree-affine.
16208
16209 2019-03-14 Richard Biener <rguenther@suse.de>
16210
16211 * tree-pretty-print.c (dump_generic_node): For -gimple properly
16212 dump negative integer constants using _Literal (type) -num.
16213
16214 2019-03-13 Jakub Jelinek <jakub@redhat.com>
16215
16216 * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
16217 nonlocal_value member.
16218
16219 PR middle-end/88588
16220 * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
16221 (ipa_simd_modify_function_body): Handle PHIs.
16222
16223 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16224
16225 * config/s390/s390.c (s390_option_override_internal): Use more
16226 aggressive inlining parameters.
16227
16228 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16229
16230 * config/s390/3906.md: New file.
16231 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16232 (LONGRUNNING_THRESHOLD): Remove.
16233 (MAX_SCHED_MIX_SCORE): Decrease.
16234 (MAX_SCHED_MIX_DISTANCE): Decrease.
16235 (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
16236 (struct s390_sched_state): New struct to hold scheduling state.
16237 (S390_SCHED_STATE_NORMAL): Remove.
16238 (S390_SCHED_STATE_CRACKED): Remove.
16239 (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
16240 (s390_get_sched_attrmask): Use new attribute.
16241 (s390_get_unit_mask): Use new units.
16242 (s390_is_fpd): New function.
16243 (s390_is_fxd): New function.
16244 (s390_is_longrunning): New function.
16245 (s390_sched_score): Use new functions.
16246 (s390_sched_reorder): Likewise.
16247 (s390_sched_variable_issue): Rework and use new functions.
16248 (s390_sched_init): Use new functions.
16249 * config/s390/s390.h (s390_tune_attr): Add z14.
16250 * config/s390/s390.md: Add z14.
16251
16252 2019-03-12 Robin Dapp <rdapp@linux.ibm.com>
16253
16254 * config/s390/2964.md: Update pipeline description.
16255 * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
16256 (LONGRUNNING_THRESHOLD): Remove.
16257 (LATENCY_FACTOR): Remove.
16258 (s390_get_unit_mask): Add unit.
16259 (s390_sched_score): Use fxd/fpd.
16260 (s390_sched_variable_issue): Use fxd/fpd.
16261
16262 2019-03-12 Martin Liska <mliska@suse.cz>
16263
16264 * config/i386/i386.c: Reword an error message.
16265
16266 2019-03-12 Martin Jambor <mjambor@suse.cz>
16267
16268 * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
16269 terminate with newline.
16270
16271 2019-03-12 Jakub Jelinek <jakub@redhat.com>
16272
16273 PR target/52726
16274 * config/s390/s390.md (tabort): Use %wd instead of
16275 HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
16276 letters and periods.
16277 * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
16278 output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
16279 's with %< and %>.
16280
16281 PR middle-end/89663
16282 * builtins.c (expand_builtin_int_roundingfn,
16283 expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
16284 gcc_unreachable if validate_arglist fails.
16285
16286 2019-03-12 Richard Biener <rguenther@suse.de>
16287
16288 PR tree-optimization/89664
16289 * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
16290 free the occurance tree after the early out.
16291
16292 2019-03-11 Jakub Jelinek <jakub@redhat.com>
16293
16294 PR middle-end/89655
16295 PR bootstrap/89656
16296 * vr-values.c (vr_values::update_value_range): If
16297 old_vr->varying_p (), don't update it, make new_vr also VARYING
16298 and return false.
16299
16300 2019-03-11 Martin Liska <mliska@suse.cz>
16301
16302 * config/aarch64/aarch64.c (aarch64_override_options_internal):
16303 Fix double string quoting.
16304
16305 2019-03-11 Martin Liska <mliska@suse.cz>
16306
16307 * collect-utils.c (collect_wait): Wrap apostrophes
16308 in gcc internal format with %'.
16309 * collect2.c (main): Likewise.
16310 (scan_prog_file): Likewise.
16311 (scan_libraries): Likewise.
16312 * config/i386/i386.c (ix86_expand_call): Likewise.
16313 (ix86_handle_interrupt_attribute): Likewise.
16314 * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
16315 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
16316 * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
16317 * lto-wrapper.c (find_crtoffloadtable): Likewise.
16318 * symtab.c (symtab_node::verify_base): Likewise.
16319 * tree-cfg.c (verify_gimple_label): Likewise.
16320 * tree.c (verify_type_variant): Likewise.
16321
16322 2019-03-11 Martin Liska <mliska@suse.cz>
16323
16324 * builtins.c (expand_builtin_thread_pointer): Wrap an option name
16325 in a string format message and fix GNU coding style.
16326 (expand_builtin_set_thread_pointer): Likewise.
16327 * common/config/aarch64/aarch64-common.c
16328 (aarch64_rewrite_selected_cpu): Likewise.
16329 * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
16330 * common/config/arc/arc-common.c (arc_handle_option): Likewise.
16331 * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
16332 * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
16333 * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
16334 * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
16335 * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
16336 * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
16337 * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
16338 * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
16339 Likewise.
16340 * common/config/riscv/riscv-common.c
16341 (riscv_subset_list::parsing_subset_version): Likewise.
16342 (riscv_subset_list::parse_std_ext): Likewise.
16343 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16344 (riscv_subset_list::parse): Likewise.
16345 * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
16346 * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
16347 (aarch64_override_options_internal): Likewise.
16348 (aarch64_validate_mcpu): Likewise.
16349 (aarch64_validate_march): Likewise.
16350 (aarch64_validate_mtune): Likewise.
16351 (aarch64_override_options): Likewise.
16352 * config/alpha/alpha.c (alpha_option_override): Likewise.
16353 * config/arc/arc.c (arc_init): Likewise.
16354 (parse_mrgf_banked_regs_option): Likewise.
16355 (arc_override_options): Likewise.
16356 (arc_expand_builtin_aligned): Likewise.
16357 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
16358 (arm_expand_builtin): Likewise.
16359 * config/arm/arm.c (arm_option_check_internal): Likewise.
16360 (arm_configure_build_target): Likewise.
16361 (arm_option_override): Likewise.
16362 (arm_options_perform_arch_sanity_checks): Likewise.
16363 (arm_handle_cmse_nonsecure_entry): Likewise.
16364 (arm_handle_cmse_nonsecure_call): Likewise.
16365 (arm_tls_referenced_p): Likewise.
16366 (thumb1_expand_prologue): Likewise.
16367 * config/avr/avr.c (avr_option_override): Likewise.
16368 * config/bfin/bfin.c (bfin_option_override): Likewise.
16369 * config/c6x/c6x.c (c6x_option_override): Likewise.
16370 * config/cr16/cr16.c (cr16_override_options): Likewise.
16371 * config/cris/cris.c (cris_option_override): Likewise.
16372 * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
16373 * config/darwin-c.c (macosx_version_as_macro): Likewise.
16374 * config/darwin.c (darwin_override_options): Likewise.
16375 * config/frv/frv.c (frv_expand_builtin): Likewise.
16376 * config/h8300/h8300.c (h8300_option_override): Likewise.
16377 * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
16378 (ix86_option_override_internal): Likewise.
16379 (warn_once_call_ms2sysv_xlogues): Likewise.
16380 (ix86_expand_prologue): Likewise.
16381 (split_stack_prologue_scratch_regno): Likewise.
16382 (ix86_warn_parameter_passing_abi): Likewise.
16383 * config/ia64/ia64.c (fix_range): Likewise.
16384 * config/m68k/m68k.c (m68k_option_override): Likewise.
16385 * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
16386 * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
16387 (mips_set_compression_mode): Likewise.
16388 * config/mmix/mmix.c (mmix_option_override): Likewise.
16389 * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
16390 * config/msp430/msp430.c (msp430_option_override): Likewise.
16391 * config/nds32/nds32.c (nds32_option_override): Likewise.
16392 * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
16393 (nios2_option_override): Likewise.
16394 (nios2_expand_custom_builtin): Likewise.
16395 * config/nvptx/mkoffload.c (main): Likewise.
16396 * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
16397 * config/pa/pa.c (fix_range): Likewise.
16398 (pa_option_override): Likewise.
16399 * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
16400 (riscv_option_override): Likewise.
16401 * config/rl78/rl78.c (rl78_option_override): Likewise.
16402 * config/rs6000/aix61.h: Likewise.
16403 * config/rs6000/aix71.h: Likewise.
16404 * config/rs6000/aix72.h: Likewise.
16405 * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
16406 * config/rs6000/freebsd64.h: Likewise.
16407 * config/rs6000/linux64.h: Likewise.
16408 * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
16409 (rs6000_expand_zeroop_builtin): Likewise.
16410 (rs6000_expand_mtfsb_builtin): Likewise.
16411 (rs6000_expand_set_fpscr_rn_builtin): Likewise.
16412 (rs6000_expand_set_fpscr_drn_builtin): Likewise.
16413 (rs6000_invalid_builtin): Likewise.
16414 (rs6000_expand_split_stack_prologue): Likewise.
16415 * config/rs6000/rtems.h: Likewise.
16416 * config/rx/rx.c (valid_psw_flag): Likewise.
16417 (rx_expand_builtin): Likewise.
16418 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
16419 * config/s390/s390.c (s390_expand_builtin): Likewise.
16420 (s390_function_profiler): Likewise.
16421 (s390_option_override_internal): Likewise.
16422 (s390_option_override): Likewise.
16423 * config/sh/sh.c (sh_option_override): Likewise.
16424 (sh_builtin_saveregs): Likewise.
16425 (sh_fix_range): Likewise.
16426 * config/sh/vxworks.h: Likewise.
16427 * config/sparc/sparc.c (sparc_option_override): Likewise.
16428 * config/spu/spu.c (spu_option_override): Likewise.
16429 (fix_range): Likewise.
16430 * config/visium/visium.c (visium_option_override): Likewise.
16431 (visium_handle_interrupt_attr): Likewise.
16432 * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
16433 * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
16434 (dbg_cnt_process_opt): Likewise.
16435 * dwarf2out.c (output_dwarf_version): Likewise.
16436 * except.c (expand_eh_return): Likewise.
16437 * gcc.c (defined): Likewise.
16438 (driver_handle_option): Likewise.
16439 (process_command): Likewise.
16440 (compare_files): Likewise.
16441 (driver::prepare_infiles): Likewise.
16442 (driver::do_spec_on_infiles): Likewise.
16443 (driver::maybe_run_linker): Likewise.
16444 * omp-offload.c (oacc_parse_default_dims): Likewise.
16445 * opts-global.c (handle_common_deferred_options): Likewise.
16446 * opts.c (parse_sanitizer_options): Likewise.
16447 (common_handle_option): Likewise.
16448 (enable_warning_as_error): Likewise.
16449 * passes.c (enable_disable_pass): Likewise.
16450 * plugin.c (parse_plugin_arg_opt): Likewise.
16451 (default_plugin_dir_name): Likewise.
16452 * targhooks.c (default_expand_builtin_saveregs): Likewise.
16453 (default_pch_valid_p): Likewise.
16454 * toplev.c (init_asm_output): Likewise.
16455 (process_options): Likewise.
16456 (toplev::run_self_tests): Likewise.
16457 * tree-cfg.c (verify_gimple_call): Likewise.
16458 * tree-inline.c (inline_forbidden_p_stmt): Likewise.
16459 (tree_inlinable_function_p): Likewise.
16460 * var-tracking.c (vt_find_locations): Likewise.
16461
16462 2019-03-11 Andreas Krebbel <krebbel@linux.ibm.com>
16463
16464 * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
16465 only on the else branch.
16466
16467 2019-03-11 Martin Liska <mliska@suse.cz>
16468
16469 * gcov.c (output_intermediate_json_line): Print function
16470 name of each line.
16471 (output_json_intermediate_file): Add new argument.
16472 * doc/gcov.texi: Document the change.
16473
16474 2019-03-11 Eric Botcazou <ebotcazou@adacore.com>
16475
16476 PR rtl-optimization/89588
16477 * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
16478 explicit unrolling factor more robust.
16479
16480 2019-03-11 Richard Biener <rguenther@suse.de>
16481
16482 PR tree-optimization/89649
16483 * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
16484 * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
16485 on the prolog and epilog loops.
16486 (vect_loop_versioning): Return copy of loop.
16487 * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
16488 on the non-vectorized version of the loop.
16489
16490 2019-03-10 Uroš Bizjak <ubizjak@gmail.com>
16491
16492 PR target/68924
16493 * config/i386/sse.md (*vec_extractv2di_0_sse):
16494 Add (=r,x) alternative and corresponding splitter.
16495
16496 2019-03-10 Martin Jambor <mjambor@suse.cz>
16497
16498 PR tree-optimization/85762
16499 PR tree-optimization/87008
16500 PR tree-optimization/85459
16501 * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
16502 it points to if there is a type changing MEM_REF. Adjust all callers.
16503 (build_accesses_from_assign): Disable total scalarization if
16504 contains_vce_or_bfcref_p returns true through the new parameter, for
16505 both rhs and lhs.
16506
16507 2019-03-09 Jakub Jelinek <jakub@redhat.com>
16508
16509 PR c/88568
16510 * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
16511 dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
16512
16513 PR target/79645
16514 * common.opt (fdiagnostics-show-labels,
16515 fdiagnostics-show-line-numbers, fdiagnostics-format=,
16516 fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
16517 gas-locview-support, ginline-points, ginternal-reset-location-views):
16518 Terminate description text with a dot.
16519 * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
16520 * config/mcore/mcore.opt (m210, m340): Likewise.
16521 * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
16522 mnops=): Start description text with a capital letter.
16523 * config/arc/arc.opt (msize-level=): Likewise.
16524 * config/sh/sh.opt (minline-ic_invalidate): Likewise.
16525 * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
16526 mnewlib): Likewise.
16527 * config/ft32/ft32.opt (msim): Likewise.
16528 (mft32b, mcompress): Likewise. Terminate description text with a dot.
16529 (mnodiv, mnopm): Terminate description text with a dot.
16530 * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
16531 a colon.
16532 * config/i386/i386.opt (prefer_vector_width, instrument_return):
16533 Likewise.
16534 * config/rx/rx.opt (nofpu): Remove trailing spaces from description
16535 text.
16536
16537 PR rtl-optimization/89634
16538 * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
16539 are modified in BB_END (e->src) instruction.
16540
16541 2019-03-08 David Malcolm <dmalcolm@redhat.com>
16542
16543 PR target/79926
16544 * config/i386/i386.c (ix86_set_current_function): Make "sorry"
16545 messages more amenable to translation, and improve wording.
16546
16547 2019-03-08 Bill Schmidt <wschmidt@linux.ibm.com>
16548
16549 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
16550 ud- and du-chains between phases.
16551
16552 2019-03-08 Richard Sandiford <richard.sandiford@arm.com>
16553
16554 PR debug/89631
16555 * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
16556 instead of POLY_INT_CST.
16557
16558 2019-03-08 Andre Vieira <andre.simoesdiasvieira@arm.com>
16559
16560 * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
16561 requirement.
16562
16563 2019-03-08 Uroš Bizjak <ubizjak@gmail.com>
16564
16565 PR target/68924
16566 PR target/78782
16567 PR target/87558
16568 * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
16569 (_mm_storeu_si64): Ditto.
16570
16571 2019-03-08 Martin Liska <mliska@suse.cz>
16572
16573 PR target/86952
16574 * config/i386/i386.c (ix86_option_override_internal): Disable
16575 jump tables when retpolines are used.
16576
16577 2019-03-08 Jan Hubicka <hubicka@ucw.cz>
16578
16579 PR go/63560
16580 * ipa-split.c (execute_split_functions): Do not split
16581 'noinline' or 'section' function.
16582
16583 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16584
16585 PR target/79846
16586 * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
16587 HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
16588 HOST_WIDE_INT_PRINT_DEC. Formatting fixes.
16589
16590 PR ipa/80000
16591 * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
16592 from diagnostics. Formatting fixes.
16593
16594 PR target/85665
16595 * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
16596 warn_odr diagnostics.
16597
16598 PR other/80058
16599 * lra-constraints.c (process_alt_operands): Avoid one space before
16600 " at the end of line and another after " on another line in a string
16601 literal.
16602 * attribs.c (handle_dll_attribute): Likewise.
16603 * config/avr/avr-devices.c (avr_texinfo): Likewise.
16604
16605 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
16606 warning_at or inform messages in G_() if there is no ?:.
16607
16608 PR tree-optimization/89550
16609 * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
16610 returned true. Formatting fixes.
16611 (expand_builtin_strnlen): Formatting fixes.
16612 * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
16613 if warning_at returned true.
16614 * tree-cfg.c (pass_warn_function_return::execute): Likewise.
16615
16616 2019-03-08 Richard Biener <rguenther@suse.de>
16617
16618 PR middle-end/89578
16619 * cfgloop.h (struct loop): Add owned_clique field.
16620 * cfgloopmanip.c (copy_loop_info): Copy it.
16621 * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
16622 cliques.
16623 * tree-inline.c (copy_loops): Remap owned_clique.
16624 * lto-streamer-in.c (input_cfg): Stream owned_clique.
16625 * lto-streamer-out.c (output_cfg): Likewise.
16626
16627 2019-03-08 Jakub Jelinek <jakub@redhat.com>
16628
16629 PR target/80190
16630 * config/darwin.c: Include intl.h.
16631 (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
16632 composing the message out of two separate parts.
16633
16634 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16635
16636 PR target/80003
16637 * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
16638 doesn't start with a capital letter and doesn't end with a dot.
16639 (ix86_function_arg_boundary): Make sure diagnostics doesn't start
16640 with a capital letter.
16641 (ix86_mangle_function_version_assembler_name): Likewise.
16642 (ix86_generate_version_dispatcher_body): Likewise.
16643 (fold_builtin_cpu): Likewise.
16644 (get_builtin_code_for_version): Likewise. Remove extraneous space.
16645 (ix86_handle_interrupt_attribute): Make the diagnostics easier for
16646 translators, wrap full type name in %qs.
16647
16648 PR translation/79999
16649 * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
16650 depend clause with source (or sink) modifier.
16651 * omp-expand.c (expand_omp_ordered_sink): Likewise.
16652
16653 PR target/89602
16654 * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
16655 *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
16656 (avx512f_load<mode>_mask): New define_expand.
16657 * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
16658 __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
16659 __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
16660 __builtin_ia32_movess_mask): New builtins.
16661 * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
16662 _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
16663 _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
16664 _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
16665
16666 2019-03-07 Martin Jambor <mjambor@suse.cz>
16667
16668 PR lto/87525
16669 * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
16670 for extern inline functions.
16671
16672 2019-03-07 Martin Jambor <mjambor@suse.cz>
16673
16674 PR ipa/88235
16675 * cgraph.h (cgraph_node): New inline method former_thunk_p.
16676 * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
16677 (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
16678 have multiple callees. At the end check if declarations match as
16679 opposed to cgraph_nodes.
16680
16681 2019-03-07 Martin Liska <mliska@suse.cz>
16682
16683 * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
16684 which is equivalent to searching for this in clones chain.
16685 * symtab.c (symtab_node::verify_base): Similarly compare ASM
16686 names with a neighbour and special case first node in a chain.
16687
16688 2019-01-25 Jason Merrill <jason@redhat.com>
16689
16690 PR c++/80916 - spurious "static but not defined" warning.
16691 * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
16692 for an internal symbol with DECL_EXTERNAL.
16693
16694 2019-04-07 Richard Biener <rguenther@suse.de>
16695
16696 PR middle-end/89618
16697 * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
16698 * tree-inline.c (copy_loops): Simplify.
16699
16700 2019-03-07 Martin Liska <mliska@suse.cz>
16701
16702 * dwarf2out.c (add_AT_vms_delta): Revert function removal.
16703
16704 2019-03-07 Richard Biener <rguenther@suse.de>
16705
16706 PR tree-optimization/89595
16707 * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
16708 stmt iterator as reference, take boolean output parameter to
16709 indicate whether the stmt was removed and thus the iterator
16710 already advanced.
16711 (dom_opt_dom_walker::before_dom_children): Re-iterate over
16712 stmts created by folding.
16713
16714 2019-03-07 Jakub Jelinek <jakub@redhat.com>
16715
16716 PR c++/89585
16717 * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
16718 at toplevel.
16719
16720 2019-03-06 Peter Bergner <bergner@linux.ibm.com>
16721
16722 PR rtl-optimization/88845
16723 * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
16724 LRA.
16725 * lra.c (remove_scratches_1): New function.
16726 (remove_scratches): Use it.
16727 (lra_emit_move): Likewise.
16728
16729 2019-03-06 Claudiu Zissulescu <claziss@synopsys.com>
16730
16731 * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
16732 unaligned_access variable.
16733 * config/arc/arc.c (arc_override_options): Set unaligned access
16734 default on for HS CPUs.
16735 * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
16736
16737 2019-03-06 Martin Liska <mliska@suse.cz>
16738
16739 PR gcov-profile/89577
16740 * doc/gcov.texi: Prefer to use --coverage.
16741 * doc/sourcebuild.texi: Likewise.
16742
16743 2019-03-02 Jason Merrill <jason@redhat.com>
16744
16745 PR c++/86485 - -Wmaybe-unused with empty class ?:
16746 * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
16747
16748 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16749
16750 PR target/89587
16751 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
16752 if_multiarch.
16753
16754 PR middle-end/89590
16755 * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
16756 exactly one argument.
16757
16758 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16759 Richard Sandiford <richard.sandiford@arm.com>
16760
16761 PR tree-optimization/89570
16762 * match.pd (vec_cond into cond_op simplification): Don't use
16763 get_conditional_internal_fn, use as_internal_fn (cond_op).
16764
16765 2019-03-05 Wilco Dijkstra <wdijkstr@arm.com>
16766
16767 PR target/89222
16768 * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
16769 to decide when to split off a non-zero offset from a symbol.
16770 * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
16771 in function symbols.
16772
16773 2019-03-05 Richard Biener <rguenther@suse.de>
16774
16775 PR tree-optimization/89594
16776 * tree-if-conv.c (pass_if_conversion::execute): Handle
16777 case where .LOOP_VECTORIZED_FUNCTION was removed.
16778
16779 2019-03-05 Jakub Jelinek <jakub@redhat.com>
16780
16781 PR bootstrap/89560
16782 * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
16783 instead alloca it only when needed with the needed size.
16784
16785 PR tree-optimization/89570
16786 * match.pd (vec_cond into cond_op simplification): Guard with
16787 vectorized_internal_fn_supported_p test and #if GIMPLE.
16788
16789 PR tree-optimization/89566
16790 * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
16791 Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
16792 Punt if get_user_idx_format succeeds, but idx_format argument is
16793 not provided or doesn't have pointer type, or if idx_args is above
16794 number of provided arguments.
16795
16796 2019-03-04 Wilco Dijkstra <wdijkstr@arm.com>
16797
16798 PR tree-optimization/89437
16799 * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
16800
16801 2019-03-04 Richard Biener <rguenther@suse.de>
16802
16803 PR middle-end/89572
16804 * tree-scalar-evolution.c: (get_loop_exit_condition): Use
16805 safe_dyn_cast.
16806
16807 2019-03-04 Bin Cheng <bin.cheng@linux.alibaba.com>
16808
16809 PR tree-optimization/89487
16810 * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
16811 (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
16812 (distribute_loop): Don't do runtime alias check if there is non-
16813 addressable data reference.
16814 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
16815 is a register variable.
16816
16817 2019-03-02 Jakub Jelinek <jakub@redhat.com>
16818
16819 PR target/89506
16820 * config/arm/arm.md (cmpsi2_addneg): Use
16821 trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
16822 If operands[2] is 0 or INT_MIN, force use of subs.
16823 (*compare_scc splitter): Use gen_int_mode.
16824 (*negscc): Likewise.
16825 * config/arm/thumb2.md (*thumb2_negscc): Likewise.
16826
16827 2019-03-01 Kito Cheng <kito.cheng@gmail.com>
16828 Monk Chiang <sh.chiang04@gmail.com>
16829
16830 * common/config/riscv/riscv-common.c: Include sstream.
16831 (riscv_subset_list::to_string): New.
16832 (riscv_arch_str): Likewise.
16833 * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
16834 * config.in: Regen.
16835 * config/riscv/riscv-protos.h (riscv_arch_str): New.
16836 * config/riscv/riscv.c (INCLUDE_STRING): Defined.
16837 (riscv_emit_attribute): New.
16838 (riscv_file_start): Emit attribute if needed.
16839 (riscv_option_override): Init riscv_emit_attribute_p.
16840 * config/riscv/riscv.opt (mriscv-attribute): New option.
16841 * configure.ac (riscv*-*-*): Check binutils is supporting ELF
16842 * configure: Regen.
16843 * doc/install.texi: Document --with-riscv-attribute.
16844 * doc/invoke.texi: Document -mriscv-attribute.
16845
16846 * common/config/riscv/riscv-common.c:
16847 Include config/riscv/riscv-protos.h.
16848 (INCLUDE_STRING): Defined.
16849 (RISCV_DONT_CARE_VERSION): Defined.
16850 (riscv_subset_t): Declare.
16851 (riscv_subset_t::riscv_subset_t): New.
16852 (riscv_subset_list): Declare.
16853 (riscv_subset_list::riscv_subset_list): New.
16854 (riscv_subset_list::~riscv_subset_list): Likewise.
16855 (riscv_subset_list::parsing_subset_version): Likewise.
16856 (riscv_subset_list::parse_std_ext): Likewise.
16857 (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
16858 (riscv_subset_list::add): Likewise.
16859 (riscv_subset_list::lookup): Likewise.
16860 (riscv_subset_list::xlen): Likewise.
16861 (riscv_subset_list::parse): Likewise.
16862 (riscv_supported_std_ext): Likewise.
16863 (current_subset_list): Likewise.
16864 (riscv_parse_arch_string): Using riscv_subset_list::parse to
16865 parse.
16866
16867 2019-03-01 Segher Boessenkool <segher@kernel.crashing.org>
16868
16869 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
16870 rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
16871 * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
16872
16873 2019-03-01 Alexander Monakov <amonakov@ispras.ru>
16874
16875 PR rtl-optimization/85899
16876 * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
16877 fallthru edges leading to the exit block.
16878
16879 2019-03-01 Tamar Christina <tamar.christina@arm.com>
16880
16881 PR target/89517
16882 * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
16883 rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
16884
16885 2019-03-01 Richard Sandiford <richard.sandiford@arm.com>
16886
16887 PR tree-optimization/89535
16888 * tree-vect-stmts.c (vectorizable_call): Record the vector types
16889 for each operand. Calculate the fallback choice for mask operands
16890 and pass it to vect_get_vec_def_for_operand.
16891
16892 2019-03-01 Richard Biener <rguenther@suse.de>
16893
16894 PR middle-end/89541
16895 * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
16896 get virtual operands.
16897 (get_expr_operands): Handle CONST_DECL like other decls.
16898
16899 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16900
16901 PR middle-end/89503
16902 * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
16903 on DECL_P and EXPR_P.
16904
16905 2019-03-01 Richard Biener <rguenther@suse.de>
16906
16907 PR middle-end/89497
16908 * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
16909 argument, defaulted to zero.
16910 * passes.c (execute_function_todo): Pass down SSA update flags
16911 to cleanup_tree_cfg.
16912 * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
16913 (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
16914 form if requested.
16915 (cleanup_tree_cfg): Get and pass down SSA update flags.
16916
16917 2019-03-01 Jakub Jelinek <jakub@redhat.com>
16918
16919 PR bootstrap/89539
16920 * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
16921 early_lto_debug argument.
16922
16923 2019-02-28 Eric Botcazou <ebotcazou@adacore.com>
16924
16925 PR tree-optimization/89536
16926 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
16927 only whether bit #0 of the value is 0 instead of the entire value.
16928
16929 2019-02-28 Marek Polacek <polacek@redhat.com>
16930
16931 PR c++/87068 - missing diagnostic with fallthrough statement.
16932 * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
16933 at the end of a seq, save its location to walk_stmt_info.
16934 (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
16935 a switch.
16936
16937 2019-02-28 Jan Hubicka <hubicka@ucw.cz>
16938
16939 PR lto/88585
16940 * tree.c (find_atomic_core_type): Move ahead in file.
16941 (check_base_type): Correctly compare alignments of atomic types.
16942
16943 2019-02-28 H.J. Lu <hongjiu.lu@intel.com>
16944
16945 PR target/89455
16946 * config/i386/i386.c (get_builtin_code_for_version): Identify
16947 Westmere from PCLMUL, instead of AES.
16948
16949 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16950
16951 PR target/89434
16952 * config/arm/arm.md (*subsi3_carryin_compare_const): Use
16953 trunc_int_for_mode (-INTVAL (...), SImode), just instead of
16954 -UINTVAL (...).
16955
16956 2019-02-28 Tamar Christina <tamar.christina@arm.com>
16957
16958 PR target/88530
16959 * config/aarch64/aarch64-option-extensions.def: Document it.
16960 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
16961 if empty hwcaps.
16962
16963 2019-02-28 Jakub Jelinek <jakub@redhat.com>
16964
16965 PR c/89520
16966 * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
16967 builtins if they don't have a single scalar floating point argument.
16968 Formatting fixes.
16969
16970 2019-02-27 Bernd Edlinger <bernd.edlinger@hotmail.de>
16971
16972 PR rtl-optimization/89490
16973 * varasm.c (get_block_for_section): Bail out for mergeable sections.
16974 (default_use_anchors_for_symbol_p, output_object_block): Assert the
16975 block section is not mergeable.
16976
16977 2019-02-27 Jakub Jelinek <jakub@redhat.com>
16978
16979 PR target/70341
16980 * config/arm/arm.md (arm_casesi_internal): New define_expand. Rename
16981 old define_insn to ...
16982 (*arm_casesi_internal): ... this. Add mode to LABEL_REFs.
16983 * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
16984 Rename old define_insn to ...
16985 (*thumb2_casesi_internal): ... this. Add mode to LABEL_REFs.
16986 (thumb2_casesi_internal_pic): New define_expand. Rename old
16987 define_insn to ...
16988 (*thumb2_casesi_internal_pic): ... this. Add mode to LABEL_REFs.
16989 * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
16990 MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
16991
16992 2019-02-27 Richard Biener <rguenther@suse.de>
16993
16994 PR debug/88878
16995 * dwarf2out.c (use_debug_types): Disable when in_lto_p.
16996
16997 2019-02-27 Richard Biener <rguenther@suse.de>
16998
16999 * passes.c (should_skip_pass_p): Do not skip cgraph-edge
17000 building.
17001
17002 2019-02-27 Richard Biener <rguenther@suse.de>
17003
17004 PR debug/88878
17005 * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
17006 parameter, prefix section name with .gnu.debuglto_ if true.
17007 (dwarf2out_finish): Pass false to output_comdat_type_unit.
17008 (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
17009
17010 2019-02-27 Richard Biener <rguenther@suse.de>
17011
17012 PR debug/89514
17013 * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
17014 rather than on use_debug_types, doing what output_die does.
17015 (value_format): Likewise.
17016
17017 2019-02-27 Martin Jambor <mjambor@suse.cz>
17018 Martin Sebor <msebor@redhat.com>
17019
17020 * doc/invoke.texi (Warning Options): Reword description of
17021 -Wno-absolute-value.
17022
17023 2019-02-27 Jakub Jelinek <jakub@redhat.com>
17024
17025 PR tree-optimization/89280
17026 * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
17027 builtin_setjmp_setup_bb): New functions.
17028 (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
17029 When visiting __builtin_setjmp_setup block, queue in special
17030 setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
17031 __builtin_setjmp_receiver. Remove .ABNORMAL_DISPATCHER basic blocks
17032 from visited after the loop if they don't have any visited successor
17033 blocks.
17034
17035 2018-02-26 Steve Ellcey <sellcey@marvell.com>
17036
17037 * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
17038 New function.
17039 (TARGET_GET_MULTILIB_ABI_NAME): New macro.
17040
17041 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17042
17043 PR c++/89507
17044 * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
17045 with types other than sizetype/ssizetype.
17046
17047 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17048
17049 * config/sparc/sparc-opts.h (enum processor_type): Rename to...
17050 (enum sparc_processor_type): ...this.
17051 (enum sparc_code_model_type): New enumeration type.
17052 (enum sparc_memory_model_type): Tweak comments.
17053 * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
17054 (mtune): Likewise.
17055 (mcmodel): Use sparc_code_model enumeration and variable.
17056 (sparc_code_model): New enumeration.
17057 (mdebug): Add Undocumented marker.
17058 * config/sparc/sparc.h (enum cmodel): Delete.
17059 (sparc_cmodel): Likewise.
17060 (TARGET_CM_MEDLOW): Adjust to above renaming.
17061 (TARGET_CM_MEDMID): Likewise.
17062 (TARGET_CM_MEDANY): Likewise.
17063 (TARGET_CM_EMBMEDANY): Likewise.
17064 * config/sparc/sparc.c (sparc_cmodel): Delete.
17065 (sparc_option_override): Remove string/value mapping support for the
17066 code model. Move code and memory model support to after the handling
17067 of target flags. Do private machine setup last.
17068 (sparc_emit_set_symbolic_const64): Use sparc_code_model.
17069 (sparc_legitimize_reload_address): Likewise.
17070 (sparc_output_mi_thunk): Likewise.
17071 * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
17072
17073 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17074
17075 PR tree-optimization/89500
17076 * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
17077 (handle_builtin_strlen): Remove noncst_bound variable. Always
17078 optimize strnlen (x, 0) to 0. Optimize strnlen (x, cst) to
17079 cst if the first cst bytes starting at x are known to be non-zero,
17080 even if the string is not zero terminated. Don't try to modify
17081 *si for strnlen. Update strlen_to_stridx only for strlen or if
17082 we can prove strnlen returns the same value as strlen would.
17083
17084 2019-02-26 Martin Liska <mliska@suse.cz>
17085
17086 * alloc-pool.h (struct pool_usage): Remove extra
17087 print_dash_line.
17088 * bitmap.h (struct bitmap_usage): Likewise.
17089 * ggc-common.c (struct ggc_usage): Likewise.
17090 * mem-stats.h (struct mem_usage): Likewise.
17091 (mem_alloc_description::dump): Print dash lines
17092 here and repeat header at the end of a table report.
17093 It's then more readable.
17094 * tree-phinodes.c (phinodes_print_statistics): Make
17095 horizontal alignment.
17096 * tree-ssanames.c (ssanames_print_statistics): Likewise.
17097 * vec.c (struct vec_usage): Remove extra print_dash_line.
17098 * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
17099
17100 2019-02-26 Uroš Bizjak <ubizjak@gmail.com>
17101
17102 * doc/extend.texi (__builtin_object_size):
17103 Use @pxref instead of @xref inside parenthesis.
17104 (__builtin_has_attribute): Add missing comma after @xref.
17105 (__builtin_object_size): Ditto.
17106 * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
17107
17108 2019-02-26 Jeff Law <law@redhat.com>
17109
17110 PR rtl-optimization/87761
17111 * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
17112 detect obviously dead insns and delete them.
17113
17114 2019-02-26 Richard Biener <rguenther@suse.de>
17115
17116 PR tree-optimization/89505
17117 * tree-ssa-structalias.c (compute_dependence_clique): Make sure
17118 to handle restrict pointed-to vars with multiple subvars
17119 correctly.
17120
17121 2019-02-26 Richard Biener <rguenther@suse.de>
17122
17123 PR tree-optimization/89489
17124 * tree-parloops.c (create_loop_fn): Copy over last_clique.
17125
17126 2019-02-26 Eric Botcazou <ebotcazou@adacore.com>
17127
17128 * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
17129 and move around comment.
17130 <BIT_AND_EXPR>: Likewise.
17131 <BIT_NOT_EXPR>: Add specific handling for boolean types.
17132
17133 2019-02-26 Jakub Jelinek <jakub@redhat.com>
17134
17135 PR target/89474
17136 * config/i386/i386.c (remove_partial_avx_dependency): Call
17137 df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
17138 after changing possibly many instructions to use that pseudo. Fix up
17139 insertion of v4sf_const0 setter at the start of bb.
17140
17141 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17142
17143 PR c/80409
17144 * doc/extend.texi (Variadic Pointer Args): New section.
17145
17146 2019-02-25 Sandra Loosemore <sandra@codesourcery.com>
17147 Martin Sebor <msebor@gmail.com>
17148
17149 * common.opt (Wattribute-alias): Likewise.
17150 * doc/invoke.texi (Option Summary): List general form of
17151 -Wattribute-alias=. List positive form of -Wmissing-attributes.
17152 (-Wmissing-attributes): Invert entry, rewrite and correct default.
17153 Add cross-references.
17154 (-Wattribute-alias): Rewrite and correct default. Mention
17155 considered attributes (same as for -Wmissing-attributes).
17156
17157 2019-02-25 Paul A. Clarke <pc@us.ibm.com>
17158
17159 * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
17160 (_mm_cvtpd_ps): Likewise.
17161 (_mm_cvttpd_epi32): Likewise.
17162
17163 PR target/89338
17164 * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
17165 (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
17166
17167 PR target/89339
17168 * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
17169
17170 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17171
17172 PR target/88530
17173 * common/config/aarch64/aarch64-common.c
17174 (struct aarch64_option_extension): Add is_synthetic.
17175 (all_extensions): Use it.
17176 (TARGET_OPTION_INIT_STRUCT): Define hook.
17177 (struct gcc_targetm_common): Moved to end.
17178 (all_extensions_by_on): New.
17179 (opt_ext_cmp, typedef opt_ext): New.
17180 (aarch64_option_init_struct): New.
17181 (aarch64_contains_opt): New.
17182 (aarch64_get_extension_string_for_isa_flags): Output smallest set.
17183 * config/aarch64/aarch64-option-extensions.def
17184 (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
17185 (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
17186 sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
17187 Set is_synthetic to false.
17188 (crypto): Set is_synthetic to true.
17189 * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
17190 SYNTHETIC.
17191
17192 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17193
17194 * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17195 vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
17196 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17197 vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
17198 vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
17199 vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
17200 vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
17201 vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
17202 Rename ...
17203 (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
17204 vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17205 vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
17206 vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
17207 vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
17208 vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
17209 vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
17210 vfmlsl_laneq_high_f16): ... To this.
17211 * config/arm/neon.md: Update comments.
17212
17213 2019-02-25 Tamar Christina <tamar.christina@arm.com>
17214
17215 * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
17216 vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
17217 vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
17218 vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
17219 vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
17220 vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
17221 vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
17222 vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
17223 Rename ...
17224 (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
17225 vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
17226 vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
17227 vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
17228 vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
17229 vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
17230 vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
17231 vfmlslq_laneq_high_f16): ... To this.
17232
17233 2019-02-25 Alexander Monakov <amonakov@ispras.ru>
17234
17235 PR rtl-optimization/86096
17236 * df-scan.c (df_mw_compare): Do not check mw_reg fields when
17237 comparing mw_order values.
17238
17239 2019-02-25 Jakub Jelinek <jakub@redhat.com>
17240
17241 PR target/89434
17242 * config/arm/arm.md (*subsi3_carryin_const): Use
17243 arm_neg_immediate_operand predicate instead of
17244 arm_not_immediate_operand, "L" constraint instead of "K" and
17245 print it using %n2 instead of %B2.
17246 (*subsi3_carryin_const0): New define_insn.
17247 (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
17248 instead of arm_not_operand and "I" constraint instead of "K" and
17249 print it using %n3 instead of %B2. Instead of using match_dup 2 add
17250 another match_operand and in the condition check that it is negation
17251 of operands[2].
17252 (*subsi3_carryin_compare_const0): New define_ins.
17253 (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
17254 *subsi3_carryin_const.
17255 (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
17256 split into *subsi3_carryin_compare_const0 if the highpart is zero.
17257
17258 PR target/89438
17259 * config/arm.vfp.md (*negdf2_vfp): Use
17260 gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
17261 * config/arm/neon.md (neon_copysignf<mode>): Likewise.
17262
17263 2019-02-24 Jakub Jelinek <jakub@redhat.com>
17264
17265 PR rtl-optimization/89445
17266 * simplify-rtx.c (simplify_ternary_operation): Don't use
17267 simplify_merge_mask on operands that may trap.
17268 * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
17269 SCALAR_FLOAT_MODE_P checks. For integral division by zero, if
17270 second operand is CONST_VECTOR, check if any element could be zero.
17271 Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
17272 their operands can trap.
17273
17274 2019-02-23 Martin Sebor <msebor@redhat.com>
17275
17276 * gimple-ssa-sprintf.c (target_strtol): Rename...
17277 (target_strtohwi): ...to this. Handle values up to HOST_WIDE_INT_MAX.
17278 (parse_directive): Adjust to name change. Use HOST_WIDE_INT_MAX to
17279 check for range error.
17280
17281 2019-02-23 H.J. Lu <hongjiu.lu@intel.com>
17282
17283 PR driver/69471
17284 * opts-common.c (prune_options): Also prune joined switches
17285 with Negative and RejectNegative.
17286 * config/i386/i386.opt (march=): Add Negative(march=).
17287 (mtune=): Add Negative(mtune=).
17288 * doc/options.texi: Document Negative used together with Joined
17289 and RejectNegative.
17290
17291 2019-02-22 Martin Sebor <msebor@redhat.com>
17292
17293 * doc/extend.texi (Other Builtins): Add
17294 __builtin_is_constant_evaluated.
17295
17296 2019-02-22 Richard Biener <rguenther@suse.de>
17297
17298 PR tree-optimization/87609
17299 * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
17300
17301 2019-02-22 Jeff Law <law@redhat.com>
17302
17303 PR rtl-optimization/87761
17304 * config/mips/mips.md: Add new combiner pattern to recognize
17305 a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
17306
17307 2019-02-22 Matthew Malcomson <matthew.malcomson@arm.com>
17308
17309 PR target/89324
17310 * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
17311 destination register in peepholes generating patterns for ADDS/SUBS.
17312 (add<mode>3_compare0,
17313 *addsi3_compare0_uxtw, add<mode>3_compareC,
17314 add<mode>3_compareV_imm, add<mode>3_compareV,
17315 *adds_<optab><ALLX:mode>_<GPI:mode>,
17316 *subs_<optab><ALLX:mode>_<GPI:mode>,
17317 *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
17318 *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
17319 *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
17320 *sub<mode>3_compare0, *subsi3_compare0_uxtw,
17321 sub<mode>3_compare1): Allow stack pointer for source register.
17322 * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
17323
17324 2019-02-22 Martin Sebor <msebor@redhat.com>
17325
17326 PR tree-optimization/88993
17327 PR tree-optimization/88853
17328 * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
17329 New helper.
17330 (sprintf_dom_walker::call_info::is_string_func): New helper.
17331 (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
17332 for formatted string functions.
17333 (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
17334
17335 2019-02-22 Martin Sebor <msebor@redhat.com>
17336
17337 PR c/89425
17338 * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
17339 unreachable subexpressions.
17340
17341 2019-02-22 H.J. Lu <hongjiu.lu@intel.com>
17342 Hongtao Liu <hongtao.liu@intel.com>
17343 Sunil K Pandey <sunil.k.pandey@intel.com>
17344
17345 PR target/87007
17346 * config/i386/i386-passes.def: Add
17347 pass_remove_partial_avx_dependency.
17348 * config/i386/i386-protos.h
17349 (make_pass_remove_partial_avx_dependency): New.
17350 * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
17351 New function.
17352 (pass_data_remove_partial_avx_dependency): New.
17353 (pass_remove_partial_avx_dependency): Likewise.
17354 (make_pass_remove_partial_avx_dependency): Likewise.
17355 * config/i386/i386.md (avx_partial_xmm_update): New attribute.
17356 (*extendsfdf2): Add avx_partial_xmm_update.
17357 (truncdfsf2): Likewise.
17358 (*float<SWI48:mode><MODEF:mode>2): Likewise.
17359 (SF/DF conversion splitters): Disabled for TARGET_AVX.
17360
17361 2019-02-22 Aldy Hernandez <aldyh@redhat.com>
17362
17363 PR middle-end/85598
17364 * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
17365 analysis for pass.
17366
17367 2019-02-22 Thiago Macieira <thiago.macieira@intel.com>
17368
17369 PR target/89444
17370 * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
17371 (PTA_SKYLAKE): Add PTA_AES.
17372 (PTA_GOLDMONT): Likewise.
17373
17374 2019-02-22 Sudakshina Das <sudi.das@arm.com>
17375
17376 * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
17377 instruction if enabled.
17378 (aarch64_override_options): Remove reference to return address key.
17379
17380 2019-02-22 Richard Biener <rguenther@suse.de>
17381
17382 PR tree-optimization/89440
17383 * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
17384 not necessary assert.
17385
17386 2019-02-22 Thomas Schwinge <thomas@codesourcery.com>
17387
17388 PR fortran/72741
17389 * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
17390 (oacc_replace_fn_attrib_attr): ... this new function.
17391 * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
17392 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
17393
17394 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17395
17396 * config/arm/arm-cpus.in (ares): Rename to...
17397 (neoverse-n1): ... This. Add ares as alias.
17398 * config/arm/arm-tables.opt: Regenerate.
17399 * config/arm/arm-tune.md: Likewise.
17400 * doc/invoke.txt (ARM Options): Document neoverse-n1.
17401
17402 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17403
17404 * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
17405 * config/aarch64/aarch64-tune.md: Regenerate.
17406 * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
17407
17408 2019-02-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17409
17410 * config/aarch64/aarch64.c (ares_tunings): Rename to...
17411 (neoversen1_tunings): ... This.
17412 * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
17413 (neoverse-n1): New CPU.
17414 * config/aarch64/aarch64-tune.md: Regenerate.
17415 * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
17416
17417 2019-02-22 Richard Biener <rguenther@suse.de>
17418
17419 PR middle-end/87609
17420 * cfghooks.h (dependence_hash): New typedef.
17421 (struct copy_bb_data): New type.
17422 (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
17423 (duplicate_block): Likewise.
17424 * cfghooks.c (duplicate_block): Pass down copy_bb_data.
17425 (copy_bbs): Create and pass down copy_bb_data.
17426 * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
17427 (rtl_duplicate_bb): Likewise.
17428 * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
17429 remap dependence info.
17430
17431 2019-02-22 Richard Biener <rguenther@suse.de>
17432
17433 PR tree-optimization/87609
17434 * tree-core.h (tree_base): Document special clique values.
17435 * tree-inline.c (remap_dependence_clique): Do not use the
17436 special clique value of one.
17437 (maybe_set_dependence_info): Use clique one.
17438 (clear_dependence_clique): New callback.
17439 (compute_dependence_clique): Clear clique one from all refs
17440 before assigning it (again).
17441
17442 2019-02-21 Martin Sebor <msebor@redhat.com>
17443
17444 * doc/extend.texi (__clear_cache): Correct signature.
17445
17446 2019-02-21 Ian Lance Taylor <iant@golang.org>
17447
17448 PR go/89170
17449 * varasm.c (decode_addr_const): Call lookup_constant_def rather
17450 than output_constant_def.
17451 (add_constant_to_table): New static function.
17452 (output_constant_def): Call add_constant_to_table.
17453 (tree_output_constant_def): Likewise.
17454
17455 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17456
17457 PR c++/89285
17458 * builtins.c (fold_builtin_arith_overflow): If first two args are
17459 INTEGER_CSTs, set intres and ovfres to constants rather than calls
17460 to ifn.
17461
17462 2019-02-21 H.J. Lu <hongjiu.lu@intel.com>
17463
17464 PR target/87412
17465 * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
17466 error for -mindirect-branch/-mfunction-return with incompatible
17467 -fcf-protection.
17468
17469 2019-02-21 Jakub Jelinek <jakub@redhat.com>
17470
17471 PR bootstrap/88714
17472 * constraints.md (q): Remove.
17473 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
17474 instead of q.
17475
17476 2019-02-21 Martin Jambor <mjambor@suse.cz>
17477
17478 PR hsa/89302
17479 * omp-general.c (omp_extract_for_data): Removed a duplicate call
17480 to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
17481 (omp_adjust_for_condition): ...here. Added necessary parameters.
17482 * omp-general.h (omp_adjust_for_condition): Updated declaration.
17483 * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
17484 proper values to new parameters of omp_adjust_for_condition.
17485
17486 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17487
17488 PR middle-end/89412
17489 * expr.c (expand_assignment): If result is a MEM, use change_address
17490 instead of simplify_gen_subreg.
17491
17492 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17493 David Malcolm <dmalcolm@redhat.com>
17494
17495 PR middle-end/89091
17496 * fold-const.c (decode_field_reference): Return NULL_TREE if
17497 lang_hooks.types.type_for_size returns NULL. Check it before
17498 overwriting *exp_. Use return NULL_TREE instead of return 0.
17499
17500 2019-02-20 Jakub Jelinek <jakub@redhat.com>
17501
17502 PR middle-end/88074
17503 PR middle-end/89415
17504 * toplev.c (do_compile): Double the emin/emax exponents to workaround
17505 buggy mpc_norm.
17506
17507 2019-02-20 Uroš Bizjak <ubizjak@gmail.com>
17508
17509 PR target/89397
17510 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
17511 TARGET_SSE in addition to TARGET_SSE_MATH.
17512
17513 (ix86_excess_precision): Ditto.
17514 (ix86_float_exceptions_rounding_supported_p): Ditto.
17515 (use_rsqrt_p): Ditto.
17516 * config/i386/sse.md (rsqrt<mode>2): Ditto.
17517
17518 2019-02-20 David Malcolm <dmalcolm@redhat.com>
17519
17520 PR c/89410
17521 * diagnostic-show-locus.c (layout::calculate_line_spans): Use
17522 linenum_arith_t when determining if two adjacent line spans are
17523 close enough to merge.
17524 (diagnostic_show_locus): Use linenum_arith_t when iterating over
17525 lines within each line_span.
17526
17527 2019-02-20 Andre Vieira <andre.simoesdiasvieira@arm.com>
17528
17529 PR target/86487
17530 * lra-constraints.c(uses_hard_regs_p): Fix handling of
17531 paradoxical SUBREGS.
17532
17533 2019-02-20 Li Jia He <helijia@linux.ibm.com>
17534
17535 PR target/88100
17536 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
17537 <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
17538 ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
17539 range checking it.
17540
17541 2019-02-19 Jonathan Wakely <jwakely@redhat.com>
17542
17543 * config/gcn/gcn.c (print_operand): Fix typo.
17544
17545 2019-02-19 Richard Biener <rguenther@suse.de>
17546
17547 PR middle-end/88074
17548 * toplev.c (do_compile): Initialize mpfr's exponent range
17549 based on available float modes.
17550
17551 2019-02-19 Eric Botcazou <ebotcazou@adacore.com>
17552
17553 * rtlanal.c (get_initial_register_offset): Fall back to the estimate
17554 as long as the epilogue isn't completed.
17555
17556 2019-02-18 Martin Sebor <msebor@redhat.com>
17557
17558 * doc/cpp.texi (Conditional syntax): Add __has_attribute,
17559 __has_cpp_attribute, and __has_include.
17560
17561 2019-02-18 Martin Sebor <msebor@redhat.com>
17562
17563 * doc/invoke.texi (-Wreturn-type): Correct and expand.
17564
17565 2019-02-18 Martin Sebor <msebor@redhat.com>
17566
17567 PR middle-end/89294
17568 * tree.c (valid_constant_size_p): Avoid assuming size is a constant
17569 expression.
17570 * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
17571
17572 2019-02-18 Richard Biener <rguenther@suse.de>
17573
17574 PR tree-optimization/89296
17575 * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
17576 of no-warning flag to cases that might emit the bogus warning.
17577
17578 2019-02-18 Jakub Jelinek <jakub@redhat.com>
17579
17580 PR bootstrap/88714
17581 * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
17582 "q" constraint.
17583 * config/arm/vfp.md (*movdi_vfp): Likewise.
17584 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
17585 "q" constraint for operands[0].
17586
17587 PR target/89369
17588 * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
17589 *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
17590 pattern in a temporary buffer.
17591 (*r<noxa>sbg_sidi_srl): Likewise. Always use 32 as I3 rather
17592 than 64-operands[2].
17593
17594 PR target/89361
17595 * config/s390/s390.c (s390_indirect_branch_attrvalue,
17596 s390_indirect_branch_settings): Define unconditionally.
17597 (s390_set_current_function): Likewise, but guard the whole body except
17598 the s390_indirect_branch_settings call with
17599 #if S390_USE_TARGET_ATTRIBUTE.
17600 (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
17601
17602 * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
17603 *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
17604 Use HOST_WIDE_INT_M1U instead of ~(0ULL).
17605 (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
17606 HOST_WIDE_INT_1U instead of 1ULL.
17607 (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
17608 to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
17609 (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
17610 z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
17611 instead of 1UL.
17612 (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
17613 instead of 1ul.
17614
17615 2019-02-18 Martin Jambor <mjambor@suse.cz>
17616
17617 PR tree-optimization/89209
17618 * tree-sra.c (create_access_replacement): New optional parameter
17619 reg_tree. Use it as a type if non-NULL and access type is not of
17620 a register type.
17621 (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
17622 to create_access_replacement.
17623 (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
17624 Check lacc is non-NULL before attempting to re-create it on the RHS.
17625
17626 2019-02-18 Martin Liska <mliska@suse.cz>
17627
17628 PR ipa/89306
17629 * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
17630 by default.
17631 (symbol_table::free_edge): Recycle m_summary_id.
17632 * cgraph.h (get_summary_id): New.
17633 (symbol_table::release_symbol): Set m_summary_id to -1
17634 by default.
17635 (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
17636 * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
17637 function_summary to fast_function_summary.
17638 * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
17639 * ipa-pure-const.c (class funct_state_summary_t):
17640 Switch from function_summary to fast_function_summary.
17641 * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
17642 (class ipa_ref_opt_summary_t): Switch from function_summary
17643 to fast_function_summary.
17644 * symbol-summary.h (class function_summary_base): New class
17645 that is created from base of former function_summary.
17646 (function_summary_base::unregister_hooks): New.
17647 (class function_summary): Inherit from function_summary_base.
17648 (class call_summary_base): New class
17649 that is created from base of former call_summary.
17650 (class call_summary): Inherit from call_summary_base.
17651 (struct is_same): New.
17652 (class fast_function_summary): New summary class.
17653 (class fast_call_summary): New summary class.
17654 * vec.h (vec_safe_grow_cleared): New function.
17655
17656 2019-02-18 Martin Liska <mliska@suse.cz>
17657
17658 * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
17659 (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
17660 * doc/tm.texi: Document new target hook.
17661 * doc/tm.texi.in: Likewise.
17662 * target.def: Add new target macro.
17663 * gcc.c (find_fortran_preinclude_file): Do not search multilib
17664 suffixes.
17665
17666 2019-02-17 Alan Modra <amodra@gmail.com>
17667
17668 PR target/89271
17669 * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
17670 output reg on add insn.
17671 (<bd>tf_<mode> split): Likewise. Match predicates with insn.
17672
17673 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17674
17675 PR target/89372
17676 * config/i386/sse.md (ssedoublemode): Remove V4HI.
17677 (PMULHRSW): Likewise.
17678 (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
17679 TARGET_AVX2.
17680 (ssse3_pmulhrswv4hi3): New expander.
17681
17682 2019-02-16 H.J. Lu <hongjiu.lu@intel.com>
17683
17684 * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
17685 MMX. Add isa attribute.
17686
17687 2019-02-16 Jakub Jelinek <jakub@redhat.com>
17688
17689 PR rtl-optimization/66152
17690 * builtins.h (c_readstr): Declare.
17691 * builtins.c (c_readstr): Remove forward declaration. Add
17692 null_terminated_p argument, if false, read all bytes from the
17693 string instead of stopping after '\0'.
17694 * expr.c (string_cst_read_str): New function.
17695 (store_expr): Use string_cst_read_str instead of
17696 builtin_strncpy_read_str. Try to store by pieces the whole
17697 exp_len first, and only if that fails, split it up into
17698 store by pieces followed by clear_storage. Formatting fix.
17699
17700 * config/i386/i386.md (*movqi_internal): Remove static from
17701 buf variable. Use output_asm_insn (buf, operands); return "";
17702 instead of return buf;.
17703 * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
17704 *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
17705 *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
17706
17707 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17708
17709 * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
17710 (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
17711 * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
17712 (CC1_SPEC): Likewise.
17713 * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
17714
17715 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17716
17717 * asan.c (asan_emit_stack_protection): Use full-sized mask to align
17718 the base address on 64-bit strict-alignment platforms.
17719
17720 2019-02-15 H.J. Lu <hongjiu.lu@intel.com>
17721
17722 * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
17723
17724 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17725
17726 * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
17727
17728 2019-02-15 Aaron Sawdey <acsawdey@linux.ibm.com>
17729
17730 PR rtl-optimization/88308
17731 * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
17732 on copied instruction.
17733
17734 2019-02-15 Eric Botcazou <ebotcazou@adacore.com>
17735
17736 * final.c (insn_current_reference_address): Replace test on JUMP_P
17737 with test on jump_to_label_p.
17738 * config/visium/visium-passes.def: New file.
17739 * config/visium/t-visium (PASSES_EXTRA): Define.
17740 * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
17741 * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
17742 (TRAMPOLINE_ALIGNMENT): Define.
17743 * config/visium/visium.c (visium_option_override): Do not register
17744 the machine-specific reorg pass here.
17745 (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
17746 for the GR6.
17747 (output_branch): Adjust threshold for long branch instruction.
17748 * config/visium/visium.md (cpu): Move around.
17749 (length): Adjust for the GR6.
17750
17751 2019-02-15 Richard Biener <rguenther@suse.de>
17752 Jakub Jelinek <jakub@redhat.com>
17753
17754 PR tree-optimization/89278
17755 * tree-loop-distribution.c: Include tree-eh.h.
17756 (generate_memset_builtin, generate_memcpy_builtin): Call
17757 rewrite_to_non_trapping_overflow on builtin->size before passing it
17758 to force_gimple_operand_gsi.
17759
17760 2019-02-15 Jakub Jelinek <jakub@redhat.com>
17761
17762 PR other/89342
17763 * optc-save-gen.awk: Handle optimize_fast like optimize_size or
17764 optimize_debug.
17765 * opth-gen.awk: Likewise.
17766
17767 2019-02-15 Uroš Bizjak <ubizjak@gmail.com>
17768
17769 * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
17770 Enable MMX, SSE and SSE2 by default.
17771 * config/i386/i386.c (ix86_option_override_internal): Do not
17772 explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
17773
17774 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17775
17776 PR rtl-optimization/89354
17777 * combine.c (make_extraction): Punt if extraction_mode is narrower
17778 than len bits.
17779
17780 2019-02-14 Maya Rashish <coypu@sdf.org>
17781
17782 * config.gcc (*-*-netbsd*): Add netbsd-d.o.
17783 * config/netbsd-d.c: New file.
17784 * config/t-netbsd: Add netbsd-d.o
17785
17786 2018-02-14 Steve Ellcey <sellcey@marvell.com>
17787
17788 * config/aarch64/aarch64.c (aarch64_attribute_table): Change
17789 affects_type_identity to true for aarch64_vector_pcs.
17790 (aarch64_comp_type_attributes): New function.
17791 (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
17792
17793 2019-02-14 Tamar Christina <tamar.christina@arm.com>
17794
17795 PR target/88850
17796 * config/arm/iterators.md (ANY64): Add V4HF.
17797
17798 2019-02-14 Martin Liska <mliska@suse.cz>
17799
17800 PR rtl-optimization/89242
17801 * dce.c (delete_unmarked_insns): Call free_dominance_info we
17802 process a transformation.
17803
17804 2019-02-14 Jakub Jelinek <jakub@redhat.com>
17805
17806 PR tree-optimization/89314
17807 * fold-const.c (fold_binary_loc): Cast strlen argument to
17808 const char * before dereferencing it. Formatting fixes.
17809
17810 PR middle-end/89284
17811 * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
17812
17813 2019-02-13 Ian Lance Taylor <iant@golang.org>
17814
17815 * optc-save-gen.awk: Set var_opt_hash for initial optimizations
17816 and set current index for other optimizations.
17817
17818 2019-02-13 Uroš Bizjak <ubizjak@gmail.com>
17819
17820 * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
17821 nonimmediate_operand as operand 2 predicate.
17822 (vec_set<VF2_512_256:mode>_0): Ditto.
17823 (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
17824 (*vec_concatv2si): Remove alternative 2.
17825 (*vec_concatv4si_0): Use vm constraint for alternative 0.
17826 (*vec_concatv4si_0): Remove preferred_for_speed attribute.
17827 (vec_concatv2di): Split alternatives 4,5,6 to ...
17828 (*vec_concatv2di_0) ... new pattern.
17829
17830 2019-02-13 Wilco Dijkstra <wdijkstr@arm.com>
17831
17832 PR target/89190
17833 * config/arm/arm.c (ldm_stm_operation_p) Set
17834 addr_reg_in_reglist correctly for first register.
17835 (load_multiple_sequence): Remove dead base check.
17836 (gen_ldm_seq): Correctly set write_back for Thumb-1.
17837
17838 2019-02-13 Tamar Christina <tamar.christina@arm.com>
17839
17840 PR target/88847
17841 * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
17842 Expose as @aarch64_pred_mov.
17843 * config/aarch64/aarch64.c (aarch64_classify_address):
17844 Use expand_insn which legitimizes operands.
17845
17846 2019-02-13 Martin Liska <mliska@suse.cz>
17847
17848 * builtins.h (expand_builtin_with_bounds): Remove declaration.
17849 * calls.c (struct arg_data): Remove special_slot, pointer_arg
17850 and pointer_offset fields.
17851 (initialize_argument_information): Remove usage of dead
17852 fields.
17853 * cgraph.h (struct cgraph_thunk_info): Remove
17854 add_pointer_bounds_args.
17855 * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
17856 fields.
17857 (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
17858 fields.
17859 * config/i386/i386.c (ix86_function_arg_advance): Remove
17860 unrelated comment.
17861 (struct builtin_isa): Remove leaf_p and nothrow_p fields.
17862 (def_builtin): Remove usage of dead fields.
17863 (ix86_add_new_builtins): Likewise.
17864 * ipa-fnsummary.c (compute_fn_summary): Likewise.
17865 * ipa-icf.c (sem_function::equals_wpa): Likewise.
17866 (sem_function::init): Likewise.
17867 (sem_variable::merge): Likewise.
17868 * ipa-visibility.c (function_and_variable_visibility): Likewise.
17869 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
17870 * lto-cgraph.c (lto_output_node): Likewise.
17871 (lto_output_varpool_node): Likewise.
17872 (input_node): Likewise.
17873 (input_varpool_node): Likewise.
17874 * lto-streamer-out.c (lto_output): Likewise.
17875 * tree-inline.c (expand_call_inline): Remove usage of
17876 assign_stmts.
17877 * tree-inline.h (struct copy_body_data): Likewise.
17878 * varpool.c (varpool_node::dump): Likewise.
17879
17880 2019-02-13 Jakub Jelinek <jakub@redhat.com>
17881
17882 PR middle-end/89303
17883 * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
17884 into pt->vars_contains_escaped_heap instead of setting
17885 pt->vars_contains_escaped_heap to it.
17886
17887 PR middle-end/89281
17888 * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
17889 INTVAL (size), compare it to GET_MODE_MASK instead of
17890 1 << GET_MODE_BITSIZE.
17891
17892 PR target/89290
17893 * config/i386/predicates.md (x86_64_immediate_operand): Allow
17894 TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
17895 -mcmodel=large.
17896
17897 2019-02-13 Martin Liska <mliska@suse.cz>
17898
17899 PR lto/88858
17900 * cfgrtl.c (remove_barriers_from_footer): New function.
17901 (try_redirect_by_replacing_jump): Use it.
17902 (cfg_layout_redirect_edge_and_branch): Likewise.
17903
17904 2019-02-13 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
17905
17906 * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
17907 vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
17908 * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
17909 (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
17910 * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
17911 (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
17912 New BU_CRYPTO_2.
17913 * config/rs6000/rs6000.c (builtin_function_type)
17914 <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
17915 CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
17916 CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
17917 * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
17918 vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
17919
17920 2019-02-12 Pat Haugen <pthaugen@us.ibm.com>
17921
17922 * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
17923 -maltivec. Delete -maltivec=be and -maltivec=le documentation.
17924
17925 2019-02-12 H.J. Lu <hongjiu.lu@intel.com>
17926
17927 PR target/89229
17928 * config/i386/i386.md (*movoi_internal_avx): Revert revision
17929 268678 and revision 268657.
17930 (*movti_internal): Likewise.
17931
17932 2019-02-12 Ilya Leoshkevich <iii@linux.ibm.com>
17933
17934 PR target/89233
17935 * config/s390/s390.c (s390_decompose_address): Update comment.
17936 (s390_check_qrst_address): Reject invalid address forms after
17937 LRA.
17938
17939 2019-02-12 Martin Liska <mliska@suse.cz>
17940
17941 PR lto/88876
17942 * ipa-pure-const.c (propagate_pure_const): Revert hunk as
17943 we need default values of funct_state for a function that
17944 is not optimized.
17945
17946 2019-02-12 Eric Botcazou <ebotcazou@adacore.com>
17947
17948 * asan.c (asan_expand_mark_ifn): Take into account the alignment of
17949 the object to pick the size of stores on strict-alignment platforms.
17950
17951 * config/sparc/sparc.md (*movsi_insn): Minor tweak.
17952 (*movdi_insn_sp32): Likewise.
17953 (*movdi_insn_sp64): Likewise.
17954
17955 2019-02-12 Jan Hubicka <hubicka@ucw.cz>
17956
17957 PR lto/88677
17958 * cgraphunit.c (analyze_functions): Clear READONLY flag for external
17959 types that needs constructiong.
17960 * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
17961
17962 2019-02-12 Richard Biener <rguenther@suse.de>
17963
17964 PR tree-optimization/89253
17965 * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
17966 duplicate the loop.
17967
17968 2019-02-11 David Malcolm <dmalcolm@redhat.com>
17969
17970 PR lto/88147
17971 * input.c (selftest::test_line_offset_overflow): New selftest.
17972 (selftest::input_c_tests): Call it.
17973
17974 2019-02-11 Martin Sebor <msebor@redhat.com>
17975
17976 PR tree-optimization/88771
17977 * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
17978 when -Wstringop-overflow is set.
17979 (builtin_memref::builtin_memref): Adjust excessive upper bound
17980 only when lower bound is not excessive.
17981 (maybe_diag_overlap): Detect and diagnose excessive bounds via
17982 -Wstringop-ovefflow.
17983 (maybe_diag_offset_bounds): Rename...
17984 (maybe_diag_access_bounds): ...to this.
17985 (check_bounds_or_overlap): Adjust for name change above.
17986
17987 2019-02-11 Martin Sebor <msebor@redhat.com>
17988
17989 PR c++/87996
17990 * builtins.c (max_object_size): Move from here...
17991 * builtins.h (max_object_size): ...and here...
17992 * tree.c (max_object_size): ...to here...
17993 * tree.h (max_object_size): ...and here.
17994
17995 2019-02-11 Bill Schmidt <wschmidt@linux.ibm.com>
17996
17997 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
17998 and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
17999 for correct semantics.
18000
18001 2019-02-11 Alan Modra <amodra@gmail.com>
18002
18003 * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
18004 -mlongcall and -mpltseq.
18005 (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
18006 (RS/6000 and PowerPC Options <-mpltseq>): Document.
18007 * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
18008 * config/rs6000/sysv4.opt (mpltseq): New option.
18009 * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
18010 (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
18011 support is lacking. Don't allow -mpltseq with -mbss-plt.
18012 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
18013 -mpltseq given for ELFv1.
18014 * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
18015 Only use UNSPEC_PLTSEQ for inline PLT calls.
18016 (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments. Only
18017 use UNSPEC_PLTSEQ for inline PLT calls.
18018 (rs6000_indirect_call_template_1, rs6000_longcall_ref),
18019 (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
18020 uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
18021 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18022 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18023 (pltseq_mtctr_<mode>): Likewise.
18024
18025 2019-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18026
18027 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
18028 Solaris ld.
18029 * configure: Regenerate.
18030
18031 2019-02-11 Jakub Jelinek <jakub@redhat.com>
18032
18033 PR bootstrap/88714
18034 * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
18035 instead of r.
18036
18037 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18038
18039 * function.c (assign_parm_setup_block): Use the stored
18040 size, not the passed size, when allocating stack-space,
18041 also for a parameter with alignment larger than
18042 MAX_SUPPORTED_STACK_ALIGNMENT.
18043
18044 2019-02-11 Martin Liska <mliska@suse.cz>
18045
18046 PR ipa/89009
18047 * ipa-cp.c (build_toporder_info): Remove usage of a param.
18048 * ipa-inline.c (inline_small_functions): Likewise.
18049 * ipa-pure-const.c (propagate_pure_const): Likewise.
18050 (propagate_nothrow): Likewise.
18051 * ipa-reference.c (propagate): Likewise.
18052 * ipa-utils.c (struct searchc_env): Remove unused field.
18053 (searchc): Always search across AVAIL_INTERPOSABLE.
18054 (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
18055 the only called IPA pure const can properly not propagate
18056 across interposable boundary.
18057 * ipa-utils.h (ipa_reduced_postorder): Remove param.
18058
18059 2019-02-11 Chung-Ju Wu <jasonwucj@gmail.com>
18060
18061 * config/nds32/nds32.md (call_internal, call_value_internal,
18062 sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
18063
18064 2019-02-11 Hans-Peter Nilsson <hp@axis.com>
18065
18066 * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
18067 typo.
18068
18069 2019-02-10 H.J. Lu <hongjiu.lu@intel.com>
18070
18071 * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
18072 in comments
18073
18074 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18075
18076 * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
18077
18078 2019-02-10 Jakub Jelinek <jakub@redhat.com>
18079
18080 PR tree-optimization/89268
18081 * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
18082 if preds is non-NULL.
18083
18084 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18085
18086 PR lto/89272
18087 * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
18088 polymorphic types.
18089
18090 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18091
18092 * config/nds32/nds32.md (trap): New pattern.
18093
18094 2019-02-10 Monk Chiang <sh.chiang04@gmail.com>
18095
18096 * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
18097 dwarf span.
18098
18099 2019-02-10 Chung-Ju Wu <jasonwucj@gmail.com>
18100
18101 * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
18102 to split POST_INC.
18103
18104 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18105
18106 * ipa-visibility.c (localize_node): Also do not localize
18107 LDPR_PREVAILING_DEF_IRONLY_EXP.
18108
18109 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18110
18111 PR lto/87957
18112 * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
18113 instead of type_with_linkage.
18114
18115 2019-02-09 Jan Hubicka <hubicka@ucw.cz>
18116
18117 PR ipa/88755
18118 * params.def (uninlined-function-insns, uninlined-function-time,
18119 uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
18120 bound so we don't get overflows.
18121
18122 2019-02-09 Aaron Sawdey <acsawdey@linux.ibm.com>
18123
18124 * config/rs6000/rs6000-string.c (expand_compare_loop,
18125 expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
18126 memcmp/strncmp.
18127
18128 2019-02-09 Jakub Jelinek <jakub@redhat.com>
18129
18130 PR middle-end/89246
18131 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18132 If !node->definition and TYPE_ARG_TYPES is non-NULL, use
18133 TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
18134
18135 2019-02-09 Alan Modra <amodra@gmail.com>
18136
18137 PR target/88343
18138 * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
18139 case. Match logic in rs6000_emit_prologue emitting pic_offset_table
18140 setup.
18141
18142 2019-02-08 Vladimir Makarov <vmakarov@redhat.com>
18143
18144 PR middle-end/88560
18145 * lra-constraints.c (process_alt_operands): Don't increase reject
18146 for memory when offset memory is required.
18147
18148 2019-02-08 Robin Dapp <rdapp@linux.ibm.com>
18149
18150 * config/s390/vector.md: Implement vector copysign.
18151
18152 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18153
18154 * expr.c (expand_constructor): Correct indentations.
18155
18156 2019-02-08 Richard Biener <rguenther@suse.de>
18157
18158 PR tree-optimization/89247
18159 * tree-if-conv.c: Include tree-cfgcleanup.h.
18160 (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
18161 (tree_if_conversion): Pass through predicate vector.
18162 (pass_if_conversion::execute): Do CFG cleanup and SSA update
18163 inline, see if any if-converted loops we refrece in
18164 LOOP_VECTORIZED calls vanished and fixup.
18165 * tree-if-conv.h (tree_if_conversion): Adjust prototype.
18166
18167 2019-02-08 Ilya Leoshkevich <iii@linux.ibm.com>
18168
18169 * config/s390/constraints.md (jdd): New constraint.
18170
18171 2019-02-08 H.J. Lu <hongjiu.lu@intel.com>
18172
18173 PR target/89229
18174 * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
18175 upper 16 vector registers without TARGET_AVX512VL.
18176 (*movti_internal): Likewise.
18177
18178 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18179
18180 PR rtl-optimization/89234
18181 * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
18182 is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
18183 (copy_reg_eh_region_note_backward): Likewise.
18184
18185 2019-02-08 Richard Biener <rguenther@suse.de>
18186
18187 PR middle-end/89223
18188 * tree-data-ref.c (initialize_matrix_A): Fail if constant
18189 doesn't fit in HWI.
18190 (analyze_subscript_affine_affine): Handle failure from
18191 initialize_matrix_A.
18192
18193 2019-02-08 Jakub Jelinek <jakub@redhat.com>
18194
18195 * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
18196 cfun everywhere.
18197
18198 2019-02-07 David Malcolm <dmalcolm@redhat.com>
18199
18200 PR tree-optimization/86637
18201 PR tree-optimization/89235
18202 * tree-vect-loop.c (optimize_mask_stores): Add an
18203 auto_purge_vect_location sentinel to ensure that vect_location is
18204 purged on exit.
18205 * tree-vectorizer.c
18206 (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
18207 (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
18208 to ensure that vect_location is purged on exit.
18209 (pass_slp_vectorize::execute): Likewise, replacing the manual
18210 reset.
18211 * tree-vectorizer.h (class auto_purge_vect_location): New class.
18212
18213 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18214
18215 * config/aarch64/iterators.md (max_opp): New code_attr.
18216 (USMAX): New code iterator.
18217 * config/aarch64/predicates.md (aarch64_smin): New predicate.
18218 (aarch64_smax): Likewise.
18219 * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
18220 (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
18221 MINUS (MAX MIN).
18222
18223 2019-02-07 H.J. Lu <hongjiu.lu@intel.com>
18224
18225 PR target/89229
18226 * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
18227 for TARGET_AVX512VL.
18228 (*movti_internal): Set mode to TI for TARGET_AVX512VL.
18229
18230 2019-02-07 Andreas Krebbel <krebbel@linux.ibm.com>
18231
18232 * config/s390/s390-builtin-types.def: Add new types.
18233 * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
18234 (s390_vec_xlw4): Make the memory operand into a const pointer.
18235 (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
18236 float.
18237 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
18238 a new vector type with the alignment of the scalar memory operand.
18239
18240 2019-02-07 Matthew Malcomson <matthew.malcomson@arm.com>
18241 Jakub Jelinek <jakub@redhat.com>
18242
18243 PR bootstrap/88714
18244 * config/arm/arm-protos.h (valid_operands_ldrd_strd,
18245 arm_count_ldrdstrd_insns): New declarations.
18246 * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
18247 MINUS.
18248 (valid_operands_ldrd_strd): New function.
18249 (arm_count_ldrdstrd_insns): New function.
18250 * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
18251 sets instead of single DImode set and define new insns to match this.
18252
18253 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18254
18255 * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
18256 Make it a C initializer.
18257
18258 2019-02-07 Tamar Christina <tamar.christina@arm.com>
18259
18260 PR/target 88850
18261 * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
18262
18263 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18264
18265 * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
18266 Use neon_dot<q> for type.
18267 (neon_<sup>dot_lane<vsi2qi>): Likewise.
18268
18269 2019-02-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18270
18271 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
18272 Use neon_dot<q> for type.
18273 (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
18274 (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
18275
18276 2019-02-06 Vladimir Makarov <vmakarov@redhat.com>
18277
18278 PR rtl-optimization/89225
18279 * lra-constaints.c (simplify_operand_subreg): Add subreg mode
18280 sizes check.
18281
18282 2019-02-06 Eric Botcazou <ebotcazou@adacore.com>
18283
18284 * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
18285 after restoring registers saved to allocate the frame on Windows.
18286
18287 2019-02-06 Richard Biener <rguenther@suse.de>
18288
18289 PR tree-optimization/89182
18290 * graphite.h (cached_scalar_evolution_in_region): Declare.
18291 * graphite.c (struct seir_cache_key): New.
18292 (struct sese_scev_hash): Likewise.
18293 (seir_cache): New global.
18294 (cached_scalar_evolution_in_region): New function.
18295 (graphite_transform_loops): Allocate and release seir_cache.
18296 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
18297 cached_scalar_evolution_in_region.
18298 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18299 Simplify.
18300 (scop_detection::graphite_can_represent_expr: Use
18301 cached_scalar_evolution_in_region.
18302 (scop_detection::stmt_simple_for_scop_p): Likewise.
18303 (find_params_in_bb): Likewise.
18304 (gather_bbs::before_dom_children): Likewise.
18305 * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
18306 (add_loop_constraints): Likewise.
18307
18308 2019-02-06 Jakub Jelinek <jakub@redhat.com>
18309
18310 PR middle-end/89210
18311 * fold-const-call.c (fold_const_vec_convert): Pass true as last
18312 operand to new_unary_operation only if both element types are integral
18313 and it isn't a widening conversion. Return NULL_TREE if
18314 new_unary_operation failed.
18315
18316 2019-02-05 Andreas Krebbel <krebbel@linux.ibm.com>
18317
18318 PR target/88856
18319 * config/s390/s390.md: Remove load and test FP splitter.
18320
18321 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18322
18323 PR target/89112
18324 * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
18325 expand_compare_loop, expand_block_compare_gpr,
18326 expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
18327 REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
18328 #include "profile-count.h" and "predict.h" for types and functions
18329 needed to work with REG_BR_PROB notes.
18330
18331 2019-02-05 Aaron Sawdey <acsawdey@linux.ibm.com>
18332
18333 PR target/89112
18334 * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
18335 for the long branch case.
18336
18337 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18338
18339 PR target/89188
18340 * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
18341 can throw, non-call exceptions are enabled and we can't delete
18342 dead exceptions or alter cfg. Set must_clean if
18343 delete_insn_and_edges returns true, don't set it blindly for calls.
18344 Assert that delete_unreachable_blocks is called only if can_alter_cfg.
18345
18346 PR rtl-optimization/89195
18347 * combine.c (make_extraction): For MEMs, don't extract bytes outside
18348 of the original MEM.
18349
18350 2019-02-05 Martin Liska <mliska@suse.cz>
18351
18352 PR gcov-profile/89000
18353 * gcov.c (function_summary): Remove argument.
18354 (file_summary): New function.
18355 (print_usage): Replace tabs with spaces.
18356 (generate_results): Use new function file_summary.
18357
18358 2019-02-05 Jakub Jelinek <jakub@redhat.com>
18359
18360 PR target/89186
18361 * optabs.c (prepare_cmp_insn): Pass x and y to
18362 emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
18363
18364 2019-02-05 Richard Biener <rguenther@suse.de>
18365
18366 PR middle-end/89150
18367 * bitmap.h (struct bitmap_obstack): Do not mark GTY.
18368 (struct bitmap_element): Drop chain_prev so we properly recurse on
18369 the prev member, supporting tree views.
18370 (struct bitmap_head): GTY skip the obstack member.
18371
18372 2019-02-04 Alexander Monakov <amonakov@ispras.ru>
18373
18374 PR c/88698
18375 * doc/extend.texi (Vector Extensions): Add an example of using vector
18376 types together with x86 intrinsics.
18377
18378 2019-02-04 Alan Modra <amodra@gmail.com>
18379
18380 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
18381 str[] size to 160, and comment.
18382
18383 2019-02-04 Alan Modra <amodra@gmail.com>
18384
18385 * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
18386 (rs6000_pltseq_template): Guard output of TLS markers with
18387 TARGET_TLS_MARKERS.
18388 (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
18389 (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
18390 to use inline PLT sequences.
18391 * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
18392 (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
18393 (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
18394
18395 2019-02-04 Martin Liska <mliska@suse.cz>
18396
18397 PR ipa/88985
18398 * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
18399 out when ipa_fn_summaries does not contain entry for callee.
18400
18401 2019-02-04 Eric Botcazou <ebotcazou@adacore.com>
18402
18403 * config/sparc/sparc.h: Remove superfluous blank lines.
18404 * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
18405 (got_register_rtx): ...this.
18406 (sparc_got): Adjust to above renaming.
18407 (sparc_tls_got): Likewise.
18408 (sparc_delegitimize_address): Likewise.
18409 (sparc_output_mi_thunk): Likewise.
18410 (sparc_init_pic_reg): Likewise.
18411 (save_local_or_in_reg_p): Fix test on the GOT register.
18412 (USE_HIDDEN_LINKONCE): Move around.
18413 (get_pc_thunk_name): Likewise.
18414 (gen_load_pcrel_sym): Likewise.
18415 (load_got_register): Likewise.
18416
18417 2019-02-04 Kito Cheng <kito.cheng@gmail.com>
18418
18419 * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
18420 of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
18421
18422 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18423
18424 * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
18425 into consideration.
18426
18427 2019-02-04 Chung-Ju Wu <jasonwucj@gmail.com>
18428
18429 * config.gcc (with_nds32_lib, glibc):
18430 Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
18431 * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
18432 (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
18433
18434 2019-02-03 Uroš Bizjak <ubizjak@gmail.com>
18435
18436 PR target/89071
18437 * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
18438 Do not prefer (v,v) alternative for non-AVX targets and (m,v)
18439 alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
18440 (*rcpsf2_sse): Ditto.
18441 (*rsqrtsf2_sse): Ditto.
18442 (sse4_1_round<mode<2): Ditto.
18443
18444 2019-02-03 Richard Biener <rguenther@suse.de>
18445
18446 PR debug/87295
18447 * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
18448 orig.
18449
18450 2019-02-02 Jakub Jelinek <jakub@redhat.com>
18451
18452 PR middle-end/87887
18453 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18454 Punt with warning on aggregate return or argument types. Ignore
18455 type/mode checking for uniform arguments.
18456
18457 2019-02-01 Segher Boessenkool <segher@kernel.crashing.org>
18458
18459 * combine.c (try_combine): Do not print "Can't combine" messages unless
18460 printing failed combination attempts.
18461
18462 2019-02-01 Martin Jambor <mjambor@suse.cz>
18463
18464 PR hsa/87863
18465 * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
18466 segment and global segment variables before making them static.
18467
18468 2019-02-01 Martin Jambor <mjambor@suse.cz>
18469
18470 * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
18471 missed optimization dump with dump_enabled_p.
18472
18473 2019-02-01 Richard Biener <rguenther@suse.de>
18474
18475 PR middle-end/88597
18476 * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
18477 the instantiate cache.
18478 (instantiate_scev_binary): Elide second operand procesing
18479 if equal to the first.
18480 * tree-chrec.c (chrec_contains_symbols): Add visited set.
18481 (chrec_contains_undetermined): Likewise.
18482 (tree_contains_chrecs): Likewise.
18483
18484 2019-02-01 Jan Hubicka <hubicka@ucw.cz>
18485
18486 * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
18487
18488 2019-02-01 Jakub Jelinek <jakub@redhat.com>
18489
18490 PR tree-optimization/89143
18491 * wide-int-range.h (wide_int_range_absu): Declare.
18492 * wide-int-range.cc (wide_int_range_absu): New function.
18493 * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
18494
18495 PR tree-optimization/88107
18496 * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
18497 instead of assertion that eh_region_outermost is non-NULL, if it
18498 is NULL, set *ALL to true and return NULL.
18499 (move_sese_region_to_fn): Adjust caller, if all is set, call
18500 duplicate_eh_regions with NULL region.
18501
18502 2019-02-01 Richard Biener <rguenth@suse.de>
18503
18504 PR rtl-optimization/88593
18505 * mode-switching.c (optimize_mode_switching): Free dominators before
18506 calling cleanup_cfg.
18507
18508 2019-02-01 Bin Cheng <bin.cheng@linux.alibaba.com>
18509
18510 PR tree-optimization/88932
18511 * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
18512
18513 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18514
18515 PR middle-end/89137
18516 * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
18517 bogus clang warning.
18518
18519 2019-01-31 Uroš Bizjak <ubizjak@gmail.com>
18520
18521 PR target/89071
18522 * config/i386/i386.md (*extendsfdf2): Split out reg->reg
18523 alternative to avoid partial SSE register stall for TARGET_AVX.
18524 (truncdfsf2): Ditto.
18525 (sse4_1_round<mode>2): Ditto.
18526
18527 2018-01-31 Bill Schmidt <wschmidt@linux.ibm.com>
18528
18529 PR tree-optimization/89008
18530 * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
18531 process anything of the form X * 0.
18532
18533 2019-01-31 Richard Biener <rguenther@suse.de>
18534
18535 PR tree-optimization/89135
18536 * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
18537 with abnormal preds.
18538
18539 2019-01-31 Jakub Jelinek <jakub@redhat.com>
18540
18541 PR sanitizer/89124
18542 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
18543 always_inline callees into no_sanitize_address callers.
18544
18545 2019-01-31 Richard Biener <rguenther@suse.de>
18546
18547 PR rtl-optimization/89115
18548 * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
18549
18550 2019-01-30 Martin Sebor <msebor@redhat.com>
18551
18552 PR other/89106
18553 * doc/extend.texi (cast to a union): Correct and expand.
18554
18555 2019-01-30 Vladimir Makarov <vmakarov@redhat.com>
18556
18557 PR rtl-optimization/87246
18558 * lra-constraints.c (simplify_operand_subreg): Reload memory
18559 in subreg if the address became invalid.
18560
18561 2019-01-30 Bill Schmidt <wschmidt@linux.ibm.com>
18562
18563 PR target/87064
18564 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
18565 Disable for little-endian.
18566
18567 2019-01-30 Richard Biener <rguenther@suse.de>
18568
18569 PR rtl-optimization/89115
18570 * opts.c (default_options_optimization): Reduce
18571 PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
18572 Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
18573 to the default.
18574
18575 2019-01-30 Kelvin Nilsen <kelvin@gcc.gnu.org>
18576
18577 * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
18578 Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT. Coerce result to
18579 type of vector element when vec_extract is implemented by direct
18580 move.
18581
18582 2019-01-30 Thomas Schwinge <thomas@codesourcery.com>
18583
18584 * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
18585
18586 2019-01-30 Richard Biener <rguenther@suse.de>
18587
18588 PR tree-optimization/89111
18589 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
18590 canonicalization to appropriately sized access types.
18591
18592 2019-01-30 Jakub Jelinek <jakub@redhat.com>
18593
18594 PR c++/89105
18595 * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
18596 for arguments to functions that are TU-local and shouldn't be
18597 referenced by assembly.
18598
18599 2019-01-30 Ulrich Drepper <drepper@redhat.com>
18600
18601 * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
18602 after '='.
18603
18604 2019-01-29 Martin Sebor <msebor@redhat.com>
18605
18606 PR c/88956
18607 * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
18608
18609 2019-01-29 Jakub Jelinek <jakub@redhat.com>
18610
18611 PR c++/66676
18612 PR ipa/89104
18613 * omp-simd-clone.c (simd_clone_clauses_extract)
18614 <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
18615 OMP_CLAUSE_ALIGNED_ALIGNMENT.
18616
18617 2019-01-29 Vineet Gupta <vgupta@synopsys.com>
18618
18619 * config.gcc: Force .init_array for ARC.
18620
18621 2019-01-29 Richard Biener <rguenther@suse.de>
18622
18623 PR debug/87295
18624 * dwarf2out.c (collect_skeleton_dies): New helper.
18625 (copy_decls_for_unworthy_types): Call it.
18626 (build_abbrev_table): Assert we do not try to replace
18627 DW_AT_signature refs with local refs.
18628
18629 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18630
18631 PR middle-end/89002
18632 * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
18633 for lastprivate/linear IV, push gimplify context around gimplify_assign
18634 and, if it needed any temporaries, pop it into a gimple bind around the
18635 sequence.
18636
18637 2019-01-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18638
18639 * common.opt (-Wattribute-alias): Remove "no-" from name.
18640 Make -Wattribute-alias command line option and
18641 #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
18642
18643 2019-01-28 Jakub Jelinek <jakub@redhat.com>
18644
18645 PR target/89073
18646 * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
18647 -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
18648 x86 ISA options.
18649 (bmi2): Add missing @opindex.
18650 * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
18651 options alphabetically. Add missing 3dnow, 3dnowa, adx, avx, avx2,
18652 avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
18653 avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
18654 avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
18655 cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
18656 fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
18657 pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
18658 sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
18659 xsavec, xsaveopt and xsaves options.
18660
18661 2019-01-28 Richard Biener <rguenther@suse.de>
18662
18663 PR debug/89076
18664 * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
18665 support removal.
18666
18667 2019-01-28 Richard Biener <rguenther@suse.de>
18668
18669 PR tree-optimization/88739
18670 * tree-cfg.c (verify_types_in_gimple_reference): Verify
18671 BIT_FIELD_REFs only are applied to mode-precision operands
18672 when they are integral.
18673 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
18674 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
18675 BIT_FIELD_REFs of non-mode-precision integral operands.
18676
18677 2019-01-27 Jakub Jelinek <jakub@redhat.com>
18678
18679 PR target/87214
18680 * config/i386/sse.md
18681 (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
18682 avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
18683 first constants in pairs are multiples of 2. Formatting fixes.
18684 (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
18685 avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
18686 first constants in each quadruple are multiples of 4. Formatting fixes.
18687
18688 2019-01-26 Martin Jambor <mjambor@suse.cz>
18689
18690 PR ipa/88933
18691 * tree-inline.c: Include tree-cfgcleanup.h.
18692 (delete_unreachable_blocks_update_callgraph): Move...
18693 * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
18694 ...here, make externally visible, make second argument bool, adjust
18695 all callers.
18696 * tree-cfgcleanup.c: Include cgraph.h.
18697 * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
18698 Declare.
18699 * ipa-prop.c: Include tree-cfgcleanup.h.
18700 (ipcp_transform_function): Call
18701 delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
18702
18703 2019-01-25 Vladimir Makarov <vmakarov@redhat.com>
18704
18705 PR rtl-optimization/88846
18706 * ira.c (process_set_for_memref_referenced_p): New.
18707 (memref_referenced_p): Add new param. Use
18708 process_set_for_memref_referenced_p. Add new switch cases.
18709 (memref_used_between_p): Pass new arg to memref_referenced_p.
18710
18711 2019-01-25 Richard Earnshaw <rearnsha@arm.com>
18712
18713 PR target/88469
18714 * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
18715 argument ABI_BREAK. Set to true if the calculated alignment has
18716 changed in gcc-9. Check bit-fields for their base type alignment.
18717 (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
18718 (aarch64_function_arg_boundary): Likewise.
18719 (aarch64_gimplify_va_arg_expr): Likewise.
18720
18721 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18722
18723 PR middle-end/89037
18724 * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
18725 instead of accessing TREE_INT_CST_ELT directly.
18726
18727 2019-01-25 Christophe Lyon <christophe.lyon@linaro.org>
18728
18729 * doc/sourcebuild.texi (Environment attributes): Add fenv and
18730 fenv_exceptions description.
18731
18732 2019-01-25 Wilco Dijkstra <wdijkstr@arm.com>
18733
18734 PR rtl-optimization/87763
18735 * config/aarch64/aarch64.c (aarch64_select_cc_mode):
18736 Allow SUBREG when matching CC_NZmode compare.
18737
18738 2019-01-25 Richard Biener <rguenther@suse.de>
18739
18740 PR tree-optimization/89049
18741 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
18742 Look at the pattern stmt to determine if the stmt is vectorized.
18743
18744 2019-01-25 Richard Sandiford <richard.sandiford@arm.com>
18745
18746 * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
18747 (pred_mov<mode>): Handle all-register forms using both a new
18748 alternative and a split.
18749
18750 2019-01-25 Richard Biener <rguenther@suse.de>
18751
18752 PR tree-optimization/86865
18753 * graphite-scop-detection.c (scop_detection::can_represent_loop):
18754 Reject non-do-while loops.
18755
18756 2019-01-24 Peter Bergner <bergner@linux.ibm.com>
18757
18758 * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
18759 * config/rs6000/constraints.md (Q constraint): Use REG_P.
18760 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
18761 * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18762 SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
18763 * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18764 * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
18765 vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
18766 vlogical_operand, gpc_reg_operand, int_reg_operand,
18767 int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
18768 (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
18769 cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
18770 (save_world_operation, restore_world_operation, lmw_operation,
18771 stmw_operation): Use MEM_P and REG_P.
18772 (tie_operand): Use MEM_P.
18773 (vrsave_operation, crsave_operation): Use REG_P.
18774 (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
18775 (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
18776 (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
18777 (call_operand): Use HARD_REGISTER_P.
18778 (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
18779 Use CONST_INT_P.
18780 (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
18781 * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
18782 quad_aligned_load_p, replace_swapped_aligned_store,
18783 recombine_lvx_pattern, replace_swapped_aligned_load,
18784 recombine_stvx_pattern): Use MEM_P.
18785 (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
18786 Use MEM_P and SYMBOL_REF_P.
18787 (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
18788 (insn_is_swappable_p): Use REG_P and MEM_P.
18789 (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
18790 * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
18791 Use CONST_INT_P.
18792 * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
18793 Use CONST_DOUBLE_P.
18794 (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
18795 CONST_WIDE_INT_P.
18796 (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
18797 CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
18798 (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
18799 HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
18800 reg_or_subregno:
18801 (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18802 (easy_altivec_constant, rs6000_legitimate_offset_address_p,
18803 rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
18804 rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
18805 rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
18806 rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
18807 rs6000_split_logical_di): Use CONST_INT_P.
18808 (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
18809 REG_P and SYMBOL_REF_P.
18810 (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
18811 (print_operand): Use CONST_INT_P, MEM_P and REG_P.
18812 (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
18813 mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
18814 (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
18815 (small_data_operand, print_operand_address): Use CONST_INT_P and
18816 SYMBOL_REF_P.
18817 (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
18818 (rs6000_init_hard_regno_mode_ok, direct_move_p):
18819 Use HARD_REGISTER_NUM_P.
18820 (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
18821 (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
18822 SUBREG_P and SYMBOL_REF_P.
18823 (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
18824 and HARD_REGISTER_NUM_P.
18825 (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
18826 reg_or_subregno.
18827 (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
18828 (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
18829 MEM_P and REG_P.
18830 (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
18831 registers_ok_for_quad_peep, rs6000_output_function_epilogue,
18832 find_addr_reg): Use REG_P.
18833 (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
18834 (rs6000_emit_le_vsx_move): Use SUBREG_P.
18835 (offsettable_ok_by_alignment, constant_pool_expr_p,
18836 legitimate_small_data_p, rs6000_output_dwarf_dtprel,
18837 rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
18838 rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
18839 rs6000_assemble_integer, create_TOC_reference,
18840 rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
18841 rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
18842 (rs6000_split_vec_extract_var): Use reg_or_subregno.
18843 * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
18844 CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
18845 * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18846 * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
18847 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
18848 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
18849 (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
18850 (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
18851 * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
18852 and cbranch<mode>4): Use CONST_INT_P.
18853 (multiple define_splits): Use REG_P and SUBREG_P.
18854 (define_expands call, call_value): Use MEM_P.
18855 (define_expands sibcall, sibcall_value): Use CONST_INT_P and MEM_P.
18856 (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
18857 * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
18858 *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
18859 and HARD_REGISTER_NUM_P.
18860 (multiple define_splits): Use HARD_REGISTER_NUM_P.
18861
18862 2019-01-24 Uroš Bizjak <ubizjak@gmail.com>
18863
18864 PR rtl-optimization/88948
18865 * rtl.h (prepare_copy_insn): New prototype.
18866 * gcse.c (prepare_copy_insn): New function, split out from
18867 process_insert_insn.
18868 (process_insert_insn): Use prepare_copy_insn.
18869 * store-motion.c (replace_store_insn): Use prepare_copy_insn
18870 instead of gen_move_insn.
18871
18872 2019-01-24 Jakub Jelinek <jakub@redhat.com>
18873
18874 PR debug/89006
18875 * config/i386/i386.c (ix86_pic_register_p): Return true for
18876 UNSPEC_SET_GOT too.
18877
18878 PR tree-optimization/88964
18879 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
18880 punt if HONOR_SNANS (chrec).
18881
18882 PR middle-end/89015
18883 * tree-nested.c (convert_nonlocal_reference_stmt,
18884 convert_local_reference_stmt, convert_tramp_reference_stmt,
18885 convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
18886 gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
18887 or GIMPLE_OMP_TASK.
18888
18889 PR tree-optimization/89027
18890 * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
18891 for "omp simd array" variables.
18892
18893 2019-01-24 Richard Earnshaw <rearnsha@arm.com>
18894
18895 PR target/88469
18896 * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
18897 force the alignment of m_val.
18898
18899 2019-01-24 Richard Biener <rguenther@suse.de>
18900
18901 PR lto/87187
18902 * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
18903 When in "legacy" debug mode make sure to reset self-origins.
18904
18905 2019-01-24 Martin Liska <mliska@suse.cz>
18906
18907 PR gcov-profile/88994
18908 * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
18909 result will be always smaller or equal to the original.
18910 * gcov.c (mangle_name): Fix else branch where we should
18911 also copy to PTR and shift the pointer.
18912
18913 2019-01-24 Xiong Hu Luo <luoxhu@linux.vnet.ibm.com>
18914
18915 * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
18916 * vr-values.c (find_case_label_ranges): Fix a comment typo.
18917
18918 2019-01-23 Xuepeng Guo <xuepeng.guo@intel.com>
18919
18920 * common/config/i386/i386-common.c
18921 (OPTION_MASK_ISA_ENQCMD_SET,
18922 OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
18923 (ix86_handle_option): Handle -menqcmd.
18924 * config.gcc (enqcmdintrin.h): New header file.
18925 * config/i386/cpuid.h (bit_ENQCMD): New bit.
18926 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
18927 -menqcmd.
18928 * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
18929 function type.
18930 * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
18931 __builtin_ia32_enqcmds): New builtins.
18932 * config/i386/i386-c.c (__ENQCMD__): New macro.
18933 * config/i386/i386-option.c (ix86_target_string): Add
18934 -menqcmd.
18935 (ix86_valid_target_attribute_inner_p): Likewise.
18936 * config/i386/i386-expand.c
18937 (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
18938 IX86_BUILTIN_ENQCMDS.
18939 * config/i386/i386.h (TARGET_ENQCMD): New.
18940 * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
18941 (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
18942 (movdir64b_<mode>): Parameterize to enable share expansion code
18943 with ENQCMD in function ix86_expand_builtin.
18944 * config/i386/i386.opt: Add -menqcmd.
18945 * config/i386/immintrin.h: Include enqcmdintrin.h.
18946 * config/i386/enqcmdintrin.h: New intrinsic file.
18947 * doc/invoke.texi: Add -menqcmd.
18948
18949 2019-01-23 Bin Cheng <bin.cheng@arm.com>
18950 Steve Ellcey <sellcey@marvell.com>
18951
18952 PR target/85711
18953 * recog.c (address_operand): Return false on wrong mode for address.
18954 (constrain_operands): Check for mode with 'p' constraint.
18955
18956 2019-01-23 Uroš Bizjak <ubizjak@gmail.com>
18957
18958 PR target/88998
18959 * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
18960 Disparage MMX alternative.
18961 (sse2_cvtpd2pi): Ditto.
18962 (sse2_cvttpd2pi): Ditto.
18963
18964 2019-01-23 David Malcolm <dmalcolm@redhat.com>
18965
18966 PR driver/89014
18967 * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
18968 use-after-free of the result of
18969 aarch64_get_extension_string_for_isa_flags.
18970
18971 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18972
18973 PR c/44715
18974 * doc/extend.texi: Document break and continue behavior in
18975 statement expressions.
18976
18977 2019-01-23 Richard Biener <rguenther@suse.de>
18978
18979 PR tree-optimization/89008
18980 * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
18981 not leave another stray operand.
18982
18983 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18984
18985 * BASE-VER: Bump to 9.0.1.
18986
18987 2019-01-23 Eric Botcazou <ebotcazou@adacore.com>
18988
18989 * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
18990 thunk that returns by reference, use the type of the return object
18991 of the thunk instead of that of the alias to build the dereference.
18992
18993 2019-01-23 Vineet Gupta <vgupta@synopsys.com>
18994
18995 * config/arc/atomic.md: Add operand to DMB instruction.
18996
18997 2019-01-23 Jakub Jelinek <jakub@redhat.com>
18998
18999 PR tree-optimization/88964
19000 * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
19001 build_zero_cst instead of build_int_cst. Return false for loop
19002 invariants which honor signed zeros.
19003
19004 2019-01-22 Segher Boessenkool <segher@kernel.crashing.org>
19005
19006 * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
19007
19008 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19009
19010 PR target/88965
19011 * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
19012 (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
19013 is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
19014
19015 PR middle-end/88968
19016 * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
19017 non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
19018
19019 PR target/87064
19020 * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
19021 Disable for little endian.
19022
19023 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19024
19025 PR target/88469
19026 * config/arm/arm.c (arm_needs_double_word_align): Check
19027 DECL_BIT_FIELD_TYPE.
19028
19029 2019-01-22 Hongtao Liu <hongtao.liu@intel.com>
19030 H.J. Lu <hongjiu.lu@intel.com>
19031
19032 PR target/88909
19033 * config/i386/i386-builtin.def: Add mask2 to all builtin
19034 initializations. Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
19035 SPECIAL_ARGS.
19036 * config/i386/i386.c (BDESC): Add mask2 to the definition.
19037 (BDESC_FIRST): Likewise.
19038 (define_builtin): Add an argument for mask2. Updated to handle
19039 both ix86_isa_flags and ix86_isa_flags2.
19040 (define_builtin_const): Likewise.
19041 (define_builtin_pure): Likewise.
19042 (define_builtin2): Deleted.
19043 (define_builtin_const2): Likewise.
19044 (builtin_description): Add a member, mask2.
19045 (bdesc_*): Add mask2 to builtin initializations.
19046 (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
19047 def_builtin_const and def_builtin_pure. Remove SPECIAL_ARGS2
19048 support.
19049 (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
19050
19051 2019-01-22 H.J. Lu <hongjiu.lu@intel.com>
19052
19053 PR target/88954
19054 * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
19055 noplt attribute.
19056
19057 2019-01-22 Richard Earnshaw <rearnsha@arm.com>
19058
19059 PR target/88469
19060 * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
19061 alignment is dominated by a bitfield with 64-bit aligned base type.
19062 (arm_function_arg): Emit a warning if the alignment has changed since
19063 earlier GCC releases.
19064 (arm_function_arg_boundary): Likewise.
19065 (arm_setup_incoming_varargs): Likewise.
19066
19067 2019-01-22 Richard Biener <rguenther@suse.de>
19068
19069 PR tree-optimization/88862
19070 * graphite-scop-detection.c
19071 (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
19072
19073 2019-01-22 Andrew Stubbs <ams@codesourcery.com>
19074
19075 * doc/extend.tex (AMD GCN Function Attributes): New section.
19076 * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
19077 * doc/invoke.texi (AMD GCN Options): New section.
19078 * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
19079
19080 2019-01-22 Eric Botcazou <ebotcazou@adacore.com>
19081
19082 * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
19083 register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
19084
19085 2019-01-22 Jakub Jelinek <jakub@redhat.com>
19086
19087 PR tree-optimization/88044
19088 * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
19089 is false in the first iteration, but !every_iteration, return false
19090 instead of true with niter->niter zero.
19091
19092 PR rtl-optimization/88904
19093 * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
19094 any nonequal registers before processing BB_END (b).
19095
19096 PR target/88905
19097 * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
19098 GET_MODE (op0).
19099 (expand_binop_directly, expand_doubleword_clz,
19100 expand_doubleword_popcount, expand_ctz, expand_ffs,
19101 expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
19102
19103 PR rtl-optimization/49429
19104 PR target/49454
19105 PR rtl-optimization/86334
19106 PR target/88906
19107 * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
19108 addressable from here...
19109 (emit_block_op_via_libcall): ... to here.
19110
19111 2019-01-22 Richard Biener <rguenther@suse.de>
19112
19113 * tree-vect-loop.c (vect_analyze_loop_operations): Use
19114 auto_vec for cost vector to fix memleak.
19115 (vectorize_fold_left_reduction): Properly gather SLP defs.
19116 (vectorizable_comparison): Do not swap operands to properly
19117 gather SLP defs.
19118
19119 2019-01-22 Alan Modra <amodra@gmail.com>
19120
19121 PR target/88614
19122 * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
19123 stays a reg. Allow a const_int.
19124 * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
19125 * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
19126 (IS_NOMARK_TLSGETADDR): Define.
19127 * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
19128 (rs6000_output_tlsargs): New function.
19129 (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
19130 __tls_get_addr call takes an arg.
19131 (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
19132 * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
19133 delete split..
19134 (call_value_nonlocal_sysv): ..or here, delete split.
19135 (tls_gdld_nomark): Delete.
19136 (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
19137 predicate. Call rs6000_output_tlsargs. Adjust length to suit.
19138 (call_value_nonlocal_sysv): Likewise.
19139 (call_value_nonlocal_sysv_secure): Likewise.
19140 (call_value_nonlocal_aix): Likewise.
19141 (call_value_indirect_aix): Likewise.
19142 (call_value_indirect_elfv2): Likewise.
19143 (call_value_local32, call_value_local64): Disable for no-mark tls.
19144 (call_value_local_aix): Likewise.
19145
19146 2019-01-21 Uroš Bizjak <ubizjak@gmail.com>
19147
19148 PR target/88938
19149 * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
19150 case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
19151
19152 2019-01-21 Michael Ploujnikov <michael.ploujnikov@oracle.com>
19153
19154 * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
19155 string contents as hash_map keys.
19156
19157 2019-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
19158
19159 PR c/88928
19160 * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
19161 for rvalue context. Handle rvalues correctly. Use min_align_of_type
19162 instead of TYPE_ALIGN.
19163 (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
19164 Use min_align_of_type instead of TYPE_ALIGN_UNIT. Check for NULL
19165 pointer from TYPE_STUB_DECL.
19166
19167 2019-01-21 Richard Biener <rguenther@suse.de>
19168
19169 PR tree-optimization/88934
19170 * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
19171 at the possibly non-constant operand.
19172 (vect_get_constant_vectors): Adjust.
19173
19174 2019-01-21 H.J. Lu <hongjiu.lu@intel.com>
19175
19176 PR target/71659
19177 * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
19178 * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
19179 instead of _X86INTRIN_H_INCLUDED.
19180 * onfig/i386/clwbintrin.h: Likewise.
19181 * config/i386/pkuintrin.h: Likewise.
19182 * config/i386/prfchwintrin.h: Likewise.
19183 * config/i386/rdseedintrin.h: Likewise.
19184 * config/i386/wbnoinvdintrin.h: Likewise.
19185 * config/i386/xsavecintrin.h: Likewise.
19186 * config/i386/xsavesintrin.h: Likewise.
19187 * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
19188 * config/i386/xsaveintrin.h: Likewise.
19189 * config/i386/xsaveoptintrin.h: Likewise.
19190 * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
19191 <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
19192 <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
19193 <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
19194 <wbnoinvdintrin.h> and <pkuintrin.h> to ...
19195 * config/i386/immintrin.h: Here.
19196
19197 2019-01-20 Martin Jambor <mjambor@suse.cz>
19198
19199 PR ipa/87615
19200 * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
19201 with aa_walk_budget.
19202 * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
19203 aa_walk_budget_p parameter.
19204 * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi. Limit AA
19205 walk. Updated all callers.
19206 (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
19207 (eliminated_by_inlining_prob): New parameter fbi, pass it on to
19208 unmodified_parm.
19209 (will_be_nonconstant_expr_predicate): New parameter fbi, removed
19210 parameter info. Extract info from fbi. Pass fbi to recursive calls
19211 and to unmodified_parm.
19212 (phi_result_unknown_predicate): New parameter fbi, removed parameter
19213 info, updated call to will_be_nonconstant_expr_predicate.
19214 (param_change_prob): New parameter fbi, limit AA walking.
19215 (analyze_function_body): Initialize aa_walk_budget in fbi. Update
19216 calls to various above functions.
19217 * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
19218 parameter. Use it to limit AA walking.
19219 * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
19220 fbi, limit AA walk.
19221 (detect_type_change): New parameter fbi, pass it on to
19222 detect_type_change_from_memory_writes.
19223 (detect_type_change_ssa): Likewise.
19224 (aa_overwalked): Removed.
19225 (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
19226 accordingly, adjust to the neew AA limiting scheme.
19227 (parm_ref_data_preserved_p): Likewise.
19228 (ipa_compute_jump_functions_for_edge): Adjust call to
19229 get_dynamic_type.
19230 (ipa_analyze_call_uses): Likewise.
19231 (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
19232 (ipa_analyze_node): Initialize aa_walk_budget.
19233 (ipcp_transform_function): Likewise.
19234 * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
19235 to get_dynamic_type.
19236
19237 2019-01-19 Jakub Jelinek <jakub@redhat.com>
19238
19239 * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
19240 outside of #if CHECKING_P code.
19241
19242 2019-01-19 Richard Sandiford <richard.sandiford@arm.com>
19243
19244 * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
19245 New function, split out from...
19246 (loop_versioning::analyze_stride): ...here.
19247 (loop_versioning::find_per_loop_multiplication): Use gassign.
19248 (loop_versioning::analyze_term_using_scevs): Return a success code.
19249 (loop_versioning::analyze_arbitrary_term): New function.
19250 (loop_versioning::analyze_address_fragment): Use
19251 analyze_arbitrary_term if all else fails.
19252
19253 2019-01-18 Segher Boessenkool <segher@kernel.crashing.org>
19254
19255 PR target/88892
19256 * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
19257 operands.
19258
19259 2019-01-18 Richard Biener <rguenther@suse.de>
19260
19261 PR tree-optimization/88903
19262 * tree-vect-stmts.c (vectorizable_shift): Verify we see all
19263 scalar stmts a SLP shift amount is composed of when detecting
19264 shifts by scalars.
19265
19266 2019-01-18 Richard Earnshaw <rearnsha@arm.com>
19267
19268 PR target/88799
19269 * config/arm/arm-cpus.in (mp): New feature.
19270 (sec): New feature.
19271 (fgroup ARMv7ve): Add mp and sec features.
19272 (arch armv7-a): Add options to allow mp and sec extensions.
19273 (cpu generic-armv7-a): Add options to allow mp and sec extensions.
19274 (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
19275 extenstions to the base architecture.
19276 (cpu cortex-a8): Add sec extension to the base architecture.
19277 (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
19278 * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
19279 variants down to the base v7-a varaint.
19280 * config/arm/t-multilib (v7_a_arch_variants): New variable.
19281 * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
19282 of permitted extensions for -march=armv7-a and for
19283 -mcpu=generic-armv7-a.
19284
19285 2019-01-18 Martin Liska <mliska@suse.cz>
19286
19287 * params.def: Fix comment.
19288 * tree-profile.c (gimple_init_gcov_profiler): Bump function
19289 name.
19290 (gimple_gen_ic_func_profiler): Likewise.
19291
19292 2019-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19293
19294 * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
19295 * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
19296 and put in error checks for stack protector guard options.
19297 (aarch64_stack_protect_guard): New.
19298 (TARGET_STACK_PROTECT_GUARD): Define.
19299 * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
19300 (reg_stack_protect_address<mode>): New.
19301 (stack_protect_set): Adjust for SSP_GLOBAL.
19302 (stack_protect_test): Likewise.
19303 * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
19304 (-mstack-protector-guard): Likewise.
19305 (-mstack-protector-guard-offset): Likewise.
19306
19307 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19308
19309 PR tree-optimization/86214
19310 * tree-inline.h (struct copy_body_data): Add
19311 add_clobbers_to_eh_landing_pads member.
19312 * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
19313 (copy_edges_for_bb): Call it if EH edge destination is <
19314 id->add_clobbers_to_eh_landing_pads. Fix a comment typo.
19315 (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
19316 if flag_stack_reuse != SR_NONE and clear it afterwards.
19317
19318 2019-01-18 Christophe Lyon <christophe.lyon@linaro.org>
19319
19320 PR target/85596
19321 * doc/install.texi (with-multilib-list): Document for aarch64.
19322
19323 2019-01-18 Jakub Jelinek <jakub@redhat.com>
19324
19325 PR target/88734
19326 * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
19327 (("..."))) with ("...").
19328
19329 2019-01-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
19330
19331 * doc/extend.texi (Built-in Functions for Memory Model Aware
19332 Atomic Operations): Document atomic fetch and nand.
19333
19334 2019-01-18 Martin Liska <mliska@suse.cz>
19335 Richard Biener <rguenther@suse.de>
19336
19337 PR middle-end/88587
19338 * cgraph.h (create_version_clone_with_body): Add new argument
19339 with attributes.
19340 * cgraphclones.c (cgraph_node::create_version_clone): Add
19341 DECL_ATTRIBUTES to a newly created decl. And call
19342 valid_attribute_p so that proper cl_target_optimization_node
19343 is set for the newly created declaration.
19344 * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
19345 for declaration.
19346 (expand_target_clones): Do not call valid_attribute_p, it must
19347 be already done.
19348 * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
19349 vector types.
19350
19351 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19352
19353 PR target/88734
19354 * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
19355 (("..."))) with ("..."). Use arch=armv8.2-a+sha3 instead of
19356 arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
19357
19358 2019-01-17 Martin Sebor <msebor@redhat.com>
19359
19360 PR middle-end/88273
19361 * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
19362 Handle anti-ranges the same as no range at all.
19363
19364 2018-01-17 Steve Ellcey <sellcey@cavium.com>
19365
19366 * config/aarch64/aarch64.c (cgraph.h): New include.
19367 (intl.h): New include.
19368 (supported_simd_type): New function.
19369 (currently_supported_simd_type): Ditto.
19370 (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
19371 (aarch64_simd_clone_adjust): Ditto.
19372 (aarch64_simd_clone_usable): Ditto.
19373 (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
19374 (TARGET_SIMD_CLONE_ADJUST): Ditto.
19375 (TARGET_SIMD_CLONE_USABLE): Ditto.
19376 * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
19377 * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
19378 call.
19379
19380 2019-01-17 Martin Sebor <msebor@redhat.com>
19381
19382 PR tree-optimization/88800
19383 * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
19384 NO_WARNING bit here. Avoid folding out-of-bounds calls.
19385 * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
19386 redundant argument. Add new argument and issue diagnostics under
19387 its control. Detect out-of-bounds access even with warnings
19388 disabled.
19389 (check_bounds_or_overlap): Change return type. Add argument.
19390 (wrestrict_dom_walker::check_call): Adjust.
19391 * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
19392 * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
19393 check_bounds_or_overlap's return value.
19394 (handle_builtin_stxncpy): Same.
19395 (handle_builtin_strcat): Same.
19396
19397 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19398 Kwok Cheung Yeung <kcy@codesourcery.com>
19399 Julian Brown <julian@codesourcery.com>
19400 Tom de Vries <tom@codesourcery.com>
19401
19402 * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
19403
19404 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19405
19406 * doc/sourcebuild.texi: Document dg-require-effective-target
19407 llvm_binutils and offload_gcn.
19408
19409 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19410 Kwok Cheung Yeung <kcy@codesourcery.com>
19411 Julian Brown <julian@codesourcery.com>
19412 Tom de Vries <tom@codesourcery.com>
19413
19414 * doc/sourcebuild.texi: Document dg-required-effective-target
19415 exceptions.
19416
19417 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19418 Kwok Cheung Yeung <kcy@codesourcery.com>
19419 Julian Brown <julian@codesourcery.com>
19420 Tom de Vries <tom@codesourcery.com>
19421 Jan Hubicka <hubicka@ucw.cz>
19422 Martin Jambor <mjambor@suse.cz>
19423
19424 * config.gcc: Add amdgcn*-*-amdhsa configuration.
19425 * configure.ac: Check for dlopen.
19426 * configure: Regenerate.
19427
19428 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19429 Kwok Cheung Yeung <kcy@codesourcery.com>
19430 Julian Brown <julian@codesourcery.com>
19431 Tom de Vries <tom@codesourcery.com>
19432 Jan Hubicka <hubicka@ucw.cz>
19433 Martin Jambor <mjambor@suse.cz>
19434
19435 * common/config/gcn/gcn-common.c: New file.
19436 * config/gcn/driver-gcn.c: New file.
19437 * config/gcn/gcn-builtins.def: New file.
19438 * config/gcn/gcn-hsa.h: New file.
19439 * config/gcn/gcn-modes.def: New file.
19440 * config/gcn/gcn-opts.h: New file.
19441 * config/gcn/gcn-passes.def: New file.
19442 * config/gcn/gcn-protos.h: New file.
19443 * config/gcn/gcn-run.c: New file.
19444 * config/gcn/gcn-tree.c: New file.
19445 * config/gcn/gcn.c: New file.
19446 * config/gcn/gcn.h: New file.
19447 * config/gcn/gcn.opt: New file.
19448 * config/gcn/t-gcn-hsa: New file.
19449
19450 2019-01-17 Andrew Stubbs <ams@codesourcery.com>
19451 Kwok Cheung Yeung <kcy@codesourcery.com>
19452 Julian Brown <julian@codesourcery.com>
19453 Tom de Vries <tom@codesourcery.com>
19454 Jan Hubicka <hubicka@ucw.cz>
19455 Martin Jambor <mjambor@suse.cz>
19456
19457 * config/gcn/constraints.md: New file.
19458 * config/gcn/gcn-valu.md: New file.
19459 * config/gcn/gcn.md: New file.
19460 * config/gcn/predicates.md: New file.
19461
19462 2019-01-17 Eric Botcazou <ebotcazou@adacore.com>
19463
19464 * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
19465 flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
19466 (stmt_uses_0_or_null_in_undefined_way): Likewise.
19467 * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
19468
19469 2019-01-17 Tamar Christina <tamar.christina@arm.com>
19470
19471 PR target/88851
19472 * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
19473 * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
19474 it and document registers.
19475
19476 2019-01-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19477
19478 * config/aarch64/aarch64.c (ares_tunings): Define.
19479 * config/aarch64/aarch64-cores.def (ares): Use the above.
19480
19481 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19482
19483 PR target/88794
19484 Revert:
19485 2018-11-06 Wei Xiao <wei3.xiao@intel.com>
19486
19487 * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
19488 (_mm512_fixupimm_round_pd): Update parameters and builtin.
19489 (_mm512_maskz_fixupimm_round_pd): Ditto.
19490 (_mm512_fixupimm_round_ps): Ditto.
19491 (_mm512_maskz_fixupimm_round_ps): Ditto.
19492 (_mm_fixupimm_round_sd): Ditto.
19493 (_mm_maskz_fixupimm_round_sd): Ditto.
19494 (_mm_fixupimm_round_ss): Ditto.
19495 (_mm_maskz_fixupimm_round_ss): Ditto.
19496 (_mm512_fixupimm_pd): Ditto.
19497 (_mm512_maskz_fixupimm_pd): Ditto.
19498 (_mm512_fixupimm_ps): Ditto.
19499 (_mm512_maskz_fixupimm_ps): Ditto.
19500 (_mm_fixupimm_sd): Ditto.
19501 (_mm_maskz_fixupimm_sd): Ditto.
19502 (_mm_fixupimm_ss): Ditto.
19503 (_mm_maskz_fixupimm_ss): Ditto.
19504 (_mm512_mask_fixupimm_round_pd): Update builtin.
19505 (_mm512_mask_fixupimm_round_ps): Ditto.
19506 (_mm_mask_fixupimm_round_sd): Ditto.
19507 (_mm_mask_fixupimm_round_ss): Ditto.
19508 (_mm512_mask_fixupimm_pd): Ditto.
19509 (_mm512_mask_fixupimm_ps): Ditto.
19510 (_mm_mask_fixupimm_sd): Ditto.
19511 (_mm_mask_fixupimm_ss): Ditto.
19512 * config/i386/avx512vlintrin.h:
19513 (_mm256_fixupimm_pd): Update parameters and builtin.
19514 (_mm256_maskz_fixupimm_pd): Ditto.
19515 (_mm256_fixupimm_ps): Ditto.
19516 (_mm256_maskz_fixupimm_ps): Ditto.
19517 (_mm_fixupimm_pd): Ditto.
19518 (_mm_maskz_fixupimm_pd): Ditto.
19519 (_mm_fixupimm_ps): Ditto.
19520 (_mm_maskz_fixupimm_ps): Ditto.
19521 (_mm256_mask_fixupimm_pd): Update builtin.
19522 (_mm256_mask_fixupimm_ps): Ditto.
19523 (_mm_mask_fixupimm_pd): Ditto.
19524 (_mm_mask_fixupimm_ps): Ditto.
19525 * config/i386/i386-builtin-types.def: Add new types and remove
19526 useless ones.
19527 * config/i386/i386-builtin.def: Update builtin definitions.
19528 * config/i386/i386.c: Handle new builtin types and remove useless ones.
19529 * config/i386/sse.md: Update VFIXUPIMM* patterns.
19530 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19531 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19532 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
19533 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19534 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19535 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
19536 * config/i386/subst.md:
19537 (round_saeonly_sd_mask_operand4): Add new subst_attr.
19538 (round_saeonly_sd_mask_op4): Ditto.
19539 (round_saeonly_expand_operand5): Ditto.
19540 (round_saeonly_expand): Update.
19541
19542 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19543
19544 PR target/88794
19545 Revert:
19546 2018-11-12 Wei Xiao <wei3.xiao@intel.com>
19547
19548 * config/i386/sse.md: Combine VFIXUPIMM* patterns
19549 (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19550 (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19551 (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
19552 (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
19553 (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
19554 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
19555
19556 2019-01-17 Wei Xiao <wei3.xiao@intel.com>
19557
19558 PR target/88794
19559 Revert:
19560 2018-12-15 Jakub Jelinek <jakub@redhat.com>
19561
19562 PR target/88489
19563 * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
19564 (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
19565 instead of UNSPEC_FIXUPIMM.
19566
19567 2019-01-17 Richard Biener <rguenther@suse.de>
19568
19569 PR lto/86736
19570 * dwarf2out.c (want_pubnames): Never generate pubnames sections
19571 and friends for the LTO part of debug info.
19572
19573 2019-01-17 Jakub Jelinek <jakub@redhat.com>
19574
19575 PR tree-optimization/86214
19576 * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
19577 if x == y.
19578
19579 PR rtl-optimization/88870
19580 * dce.c (deletable_insn_p): Never delete const/pure calls that can
19581 throw if we can't alter the cfg or delete dead exceptions.
19582 (mark_insn): Don't call find_call_stack_args for such calls.
19583
19584 2019-01-17 Kewen Lin <linkw@gcc.gnu.org>
19585
19586 * doc/extend.texi: Add four new prototypes for vec_ld and seven new
19587 prototypes for vec_st.
19588 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
19589 for scalar address type variants of altivec_vec_ld/altivec_vec_st,
19590 mainly on signed/unsigned long long and double.
19591
19592 2019-01-16 David Malcolm <dmalcolm@redhat.com>
19593
19594 PR target/88861
19595 * combine.c (delete_noop_moves): Convert to "bool" return,
19596 returning true if any edges are eliminated.
19597 (combine_instructions): Also return true if delete_noop_moves
19598 returns true.
19599
19600 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19601
19602 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
19603 correct max nunits for endian swap.
19604 (aarch64_expand_fcmla_builtin): Correct subreg code.
19605 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
19606 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
19607 lane endianness.
19608
19609 2019-01-16 Uroš Bizjak <ubizjak@gmail.com>
19610
19611 * config/alpha/alpha.c (alpha_gimplify_va_arg):
19612 Handle split indirect COMPLEX_TYPE arguments.
19613
19614 2019-01-16 Richard Earnshaw <rearnsha@arm.com>
19615
19616 PR target/86891
19617 * config/aarch64/aarch64-modes.def: Add comment about how the carry
19618 bit is set by add and compare.
19619 (CC_ADC): New CC_MODE.
19620 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
19621 to cache the code and mode of X. Adjust the shape of a CC_Cmode
19622 comparison. Add detection for CC_ADCmode.
19623 (aarch64_get_condition_code_1): Update code support for CC_Cmode. Add
19624 CC_ADCmode.
19625 * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
19626 (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
19627 (add<mode>3_compareC_cconly_imm): Delete. Merge into...
19628 (add<mode>3_compareC_cconly): ... this. Restructure the comparison
19629 to eliminate the need for zero-extending the operands.
19630 (add<mode>3_compareC_imm): Delete. Merge into ...
19631 (add<mode>3_compareC): ... this. Restructure the comparison to
19632 eliminate the need for zero-extending the operands.
19633 (add<mode>3_carryin): Use LTU for the overflow detection.
19634 (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
19635 Reexpress comparison for overflow.
19636 (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
19637 (add<mode>3_carryinC): Likewise.
19638 (add<mode>3_carryinV): Use LTU for carry between partials.
19639 * config/aarch64/predicates.md (aarch64_carry_operation): Update
19640 handling of CC_Cmode and add CC_ADCmode.
19641 (aarch64_borrow_operation): Likewise.
19642
19643 2019-01-16 Tamar Christina <tamar.christina@arm.com>
19644
19645 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
19646 Remove patternmode.
19647 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
19648 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
19649 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
19650 Remove endianness conversion.
19651
19652 2019-01-16 Martin Liska <mliska@suse.cz>
19653
19654 * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
19655 for GCC driver.
19656 * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
19657 a new argument.
19658 * gcc.c (add_sysrooted_hdrs_prefix): New function.
19659 (path_prefix_reset): Move up in the source file.
19660 (find_fortran_preinclude_file): Make complex search for the
19661 fortran header files.
19662
19663 2019-01-15 Nikhil Benesch <nikhil.benesch@gmail.com>
19664
19665 * godump.c (go_output_typedef): When outputting a typedef, refer
19666 to the underlying type by its name and not its structure.
19667
19668 2019-01-15 David Malcolm <dmalcolm@redhat.com>
19669
19670 PR c++/88795
19671 * tree.c (build_function_type): Assert that arg_types is not
19672 error_mark_node.
19673
19674 2019-01-15 Richard Sandiford <richard.sandiford@arm.com>
19675
19676 PR inline-asm/52813
19677 * doc/extend.texi: Document that listing the stack pointer in the
19678 clobber list of an asm is a deprecated feature.
19679 * common.opt (Wdeprecated): Moved from c-family/c.opt.
19680 * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
19681 warning instead of an error for clobbers of the stack pointer.
19682 Add a note explaining why.
19683
19684 2019-01-15 Richard Biener <rguenther@suse.de>
19685
19686 PR debug/88046
19687 * dwarf2out.c (gen_member_die): Do not generate inheritance
19688 DIEs late.
19689
19690 2019-01-15 Richard Biener <rguenther@suse.de>
19691
19692 PR tree-optimization/88855
19693 * tree-if-conv.c (combine_blocks): Collect
19694 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
19695
19696 2019-01-15 Tom de Vries <tdevries@suse.de>
19697
19698 PR target/80547
19699 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
19700 lhs == NULL_TREE for gang-level reduction.
19701
19702 2019-01-15 Richard Biener <rguenther@suse.de>
19703 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19704
19705 PR ipa/88788
19706 * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
19707 return true if SSA_NAME is already marked in visited bitmap.
19708 (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
19709
19710 2019-01-15 Jakub Jelinek <jakub@redhat.com>
19711
19712 PR tree-optimization/88775
19713 * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
19714 equal == 0 equality pointer comparisons some more if compared in
19715 integral types and either one points to an automatic var and the
19716 other to a global, or we can prove at least one points to the middle
19717 or both point to start or both point to end.
19718
19719 2019-01-14 Andi Kleen <ak@linux.intel.com>
19720
19721 * Makefile.in: Lower autofdo sampling rate by 10x.
19722 * Makefile.tpl: Dito.
19723
19724 2019-01-14 Tom Honermann <tom@honermann.net>
19725
19726 * defaults.h: Define CHAR8_TYPE.
19727
19728 2019-01-14 Martin Sebor <msebor@redhat.com>
19729
19730 PR target/88638
19731 * doc/extend.texi (Darwin Format Checks): Clarify.
19732
19733 2019-01-14 Richard Biener <rguenther@suse.de>
19734
19735 * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
19736 whether we are in (simplify ...) or (match ...) context.
19737
19738 2019-01-14 Jakub Jelinek <jakub@redhat.com>
19739
19740 PR rtl-optimization/88796
19741 * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
19742 * cfgexpand.c (stack_protect_prologue): Initialize
19743 crtl->stack_protect_guard_decl.
19744 * function.c (stack_protect_epilogue): Use it instead of calling
19745 targetm.stack_protect_guard again.
19746 * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
19747 MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
19748 crtl->stack_protect_guard_decl.
19749 * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
19750 on the returned MEM_EXPR.
19751
19752 2019-01-12 Tom de Vries <tdevries@suse.de>
19753
19754 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
19755 vector length using -fopenacc-dim.
19756
19757 2019-01-12 Tom de Vries <tdevries@suse.de>
19758
19759 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
19760 lengths into account.
19761
19762 2019-01-12 Svante Signell <svante.signell@gmail.com>
19763
19764 * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
19765 (TARGET_CAN_SPLIT_STACK): Define.
19766 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
19767
19768 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
19769
19770 * params.def (inline-unit-growth): Set to 40.
19771
19772 2019-01-12 Jakub Jelinek <jakub@redhat.com>
19773
19774 * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
19775
19776 2019-01-12 Tom de Vries <tdevries@suse.de>
19777
19778 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
19779 region calling vector-partitionable routine, set default_vector_length
19780 to WARP_SIZE.
19781
19782 2019-01-12 Tom de Vries <tdevries@suse.de>
19783
19784 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
19785 variable default_vector_length.
19786
19787 2019-01-12 Tom de Vries <tdevries@suse.de>
19788
19789 PR middle-end/88703
19790 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
19791 from oacc_default_dims, as oacc_validate_dims would do it, and apply
19792 dimensions limits.
19793
19794 2019-01-12 Tom de Vries <tdevries@suse.de>
19795
19796 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
19797 (nvptx_goacc_validate_dims): Add used parameter.
19798 * doc/tm.texi: Regenerate.
19799 * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
19800 argument to call to targetm.goacc.validate_dims.
19801 (default_goacc_validate_dims): Add used
19802 parameter.
19803 * target.def (validate_dims): Add used parameter in DEFHOOK.
19804 * targhooks.h (default_goacc_validate_dims): Add used parameter.
19805
19806 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19807
19808 PR middle-end/85956
19809 PR lto/88733
19810 * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
19811 field.
19812 * tree-inline.c (remap_type_1): Formatting fix. If TYPE_MAX_VALUE of
19813 ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
19814 a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
19815 * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
19816
19817 2019-01-11 Vladimir Makarov <vmakarov@redhat.com>
19818
19819 PR rtl-optimization/87305
19820 * lra-assigns.c
19821 (setup_live_pseudos_and_spill_after_risky_transforms): Add code
19822 for little endian pseudos used as paradoxical subreg.
19823
19824 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19825
19826 PR tree-optimization/88693
19827 * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
19828 for STRING_CSTs that don't contain any NUL characters in the first
19829 TREE_STRING_LENGTH bytes.
19830
19831 2019-01-11 Alan Modra <amodra@gmail.com>
19832
19833 PR 88777
19834 PR 88614
19835 * genattrtab.c (min_fn): Don't translate values.
19836 (min_attr_value): Return INT_MAX when the value can't be calculated.
19837 Return minimum among any values that can be calculated.
19838 (max_attr_value): Adjust.
19839
19840 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19841
19842 * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
19843
19844 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19845
19846 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19847 (aarch64_hard_regno_call_part_clobbered): Add insn argument.
19848 (aarch64_return_call_with_max_clobbers): New function.
19849 (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
19850 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
19851 argument.
19852 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
19853 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
19854 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
19855 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
19856 * cselib.c (cselib_process_insn): Add argument to
19857 targetm.hard_regno_call_part_clobbered call.
19858 * ira-conflicts.c (ira_build_conflicts): Ditto.
19859 * ira-costs.c (ira_tune_allocno_costs): Ditto.
19860 * lra-constraints.c (inherit_reload_reg): Ditto.
19861 * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
19862 * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
19863 argument. Call targetm.return_call_with_max_clobbers.
19864 Add argument to targetm.hard_regno_call_part_clobbered call.
19865 (calls_have_same_clobbers_p): New function.
19866 (process_bb_lives): Add call_insn and last_call_insn variables.
19867 Pass call_insn to check_pseudos_live_through_calls.
19868 Modify if stmt to check targetm.return_call_with_max_clobbers.
19869 Update setting of flush variable.
19870 (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
19871 to false.
19872 * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
19873 * regcprop.c (copyprop_hardreg_forward_1): Add argument to
19874 targetm.hard_regno_call_part_clobbered call.
19875 * reginfo.c (choose_hard_reg_mode): Ditto.
19876 * regrename.c (check_new_reg_p): Ditto.
19877 * reload.c (find_equiv_reg): Ditto.
19878 * reload1.c (emit_reload_insns): Ditto.
19879 * sched-deps.c (deps_analyze_insn): Ditto.
19880 * sel-sched.c (init_regs_for_mode): Ditto.
19881 (mark_unavailable_hard_regs): Ditto.
19882 * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
19883 * target.def (hard_regno_call_part_clobbered): Add insn argument.
19884 (return_call_with_max_clobbers): New target function.
19885 * doc/tm.texi: Regenerate.
19886 * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
19887 * hooks.c (hook_bool_uint_mode_false): Change to
19888 hook_bool_insn_uint_mode_false.
19889 * hooks.h (hook_bool_uint_mode_false): Ditto.
19890
19891 2019-01-11 Steve Ellcey <sellcey@marvell.com>
19892
19893 * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
19894 (aarch64_remove_extra_call_preserved_regs): New function.
19895 (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
19896 * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
19897 * doc/tm.texi: Regenerate.
19898 * final.c (get_call_reg_set_usage): Call new hook.
19899 * target.def (remove_extra_call_preserved_regs): New hook.
19900 * targhooks.c (default_remove_extra_call_preserved_regs): New function.
19901 * targhooks.h (default_remove_extra_call_preserved_regs): New function.
19902
19903 2019-01-11 Jakub Jelinek <jakub@redhat.com>
19904
19905 PR bootstrap/88714
19906 * passes.c (finish_optimization_passes): Call print_combine_total_stats
19907 inside of pass_combine_1 dump rather than pass_profile_1.
19908
19909 2019-01-11 Tom de Vries <tdevries@suse.de>
19910
19911 * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
19912 (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
19913 (PTX_NUM_PER_WORKER_BARRIERS): Define.
19914 (nvptx_apply_dim_limits): Prevent vector_length 64 and
19915 num_workers 16.
19916
19917 2019-01-11 Tom de Vries <tdevries@suse.de>
19918
19919 * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
19920
19921 2019-01-11 Jan Beulich <jbeulich@suse.com>
19922
19923 * config/i386/i386.md (rex64suffix): Add L suffix for SI.
19924 * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
19925 sse2_cvtsi2sd): Add {l}.
19926 (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
19927 syntax.
19928
19929 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19930
19931 PR target/88785
19932 * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
19933 define_expand.
19934 (*float<floatunssuffix>v2div2sf2): New define_insn.
19935 (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
19936 (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
19937 (*float<floatunssuffix>v2div2sf2_mask_1): Replace
19938 subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
19939 match_operands with "const0_operand" "C".
19940
19941 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19942
19943 * config/aarch64/aarch64-builtins.c
19944 (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
19945 (aarch64_init_simd_builtins): ...Here
19946
19947 2019-01-10 Vladimir Makarov <vmakarov@redhat.com>
19948
19949 PR rtl-optimization/87305
19950 * lra-assigns.c
19951 (setup_live_pseudos_and_spill_after_risky_transforms): Check
19952 allocation for big endian pseudos used as paradoxical subregs and
19953 spill them if it is wrong.
19954 * lra-constraints.c (lra_constraints): Add a comment.
19955
19956 2019-01-10 Richard Biener <rguenther@suse.de>
19957
19958 PR tree-optimization/88792
19959 * tree-ssa-pre.c (get_representative_for): Do not return a
19960 value-number here.
19961
19962 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19963
19964 PR middle-end/84877
19965 PR bootstrap/88450
19966 * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
19967 (assign_parm_setup_block): Do the argument slot realignment here
19968 instead.
19969
19970 2019-01-10 Stefan Agner <stefan@agner.ch>
19971
19972 PR target/88648
19973 * config/arm/arm.c (arm_option_override_internal): Force
19974 opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
19975
19976 2019-01-10 Jakub Jelinek <jakub@redhat.com>
19977
19978 PR c/88568
19979 * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
19980 DECL_EXTERNAL.
19981
19982 2019-01-10 Tamar Christina <tamar.christina@arm.com>
19983
19984 * config/arm/arm-builtins.c
19985 (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
19986 (MAC_LANE_PAIR_QUALIFIERS): New.
19987 (arm_expand_builtin_args): Use it.
19988 (arm_expand_builtin_1): Likewise.
19989 * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
19990 * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
19991 * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
19992 * config/arm/arm_neon.h:
19993 (vcadd_rot90_f16): New.
19994 (vcaddq_rot90_f16): New.
19995 (vcadd_rot270_f16): New.
19996 (vcaddq_rot270_f16): New.
19997 (vcmla_f16): New.
19998 (vcmlaq_f16): New.
19999 (vcmla_lane_f16): New.
20000 (vcmla_laneq_f16): New.
20001 (vcmlaq_lane_f16): New.
20002 (vcmlaq_laneq_f16): New.
20003 (vcmla_rot90_f16): New.
20004 (vcmlaq_rot90_f16): New.
20005 (vcmla_rot90_lane_f16): New.
20006 (vcmla_rot90_laneq_f16): New.
20007 (vcmlaq_rot90_lane_f16): New.
20008 (vcmlaq_rot90_laneq_f16): New.
20009 (vcmla_rot180_f16): New.
20010 (vcmlaq_rot180_f16): New.
20011 (vcmla_rot180_lane_f16): New.
20012 (vcmla_rot180_laneq_f16): New.
20013 (vcmlaq_rot180_lane_f16): New.
20014 (vcmlaq_rot180_laneq_f16): New.
20015 (vcmla_rot270_f16): New.
20016 (vcmlaq_rot270_f16): New.
20017 (vcmla_rot270_lane_f16): New.
20018 (vcmla_rot270_laneq_f16): New.
20019 (vcmlaq_rot270_lane_f16): New.
20020 (vcmlaq_rot270_laneq_f16): New.
20021 (vcadd_rot90_f32): New.
20022 (vcaddq_rot90_f32): New.
20023 (vcadd_rot270_f32): New.
20024 (vcaddq_rot270_f32): New.
20025 (vcmla_f32): New.
20026 (vcmlaq_f32): New.
20027 (vcmla_lane_f32): New.
20028 (vcmla_laneq_f32): New.
20029 (vcmlaq_lane_f32): New.
20030 (vcmlaq_laneq_f32): New.
20031 (vcmla_rot90_f32): New.
20032 (vcmlaq_rot90_f32): New.
20033 (vcmla_rot90_lane_f32): New.
20034 (vcmla_rot90_laneq_f32): New.
20035 (vcmlaq_rot90_lane_f32): New.
20036 (vcmlaq_rot90_laneq_f32): New.
20037 (vcmla_rot180_f32): New.
20038 (vcmlaq_rot180_f32): New.
20039 (vcmla_rot180_lane_f32): New.
20040 (vcmla_rot180_laneq_f32): New.
20041 (vcmlaq_rot180_lane_f32): New.
20042 (vcmlaq_rot180_laneq_f32): New.
20043 (vcmla_rot270_f32): New.
20044 (vcmlaq_rot270_f32): New.
20045 (vcmla_rot270_lane_f32): New.
20046 (vcmla_rot270_laneq_f32): New.
20047 (vcmlaq_rot270_lane_f32): New.
20048 (vcmlaq_rot270_laneq_f32): New.
20049 * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
20050 vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
20051 vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
20052 vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
20053 vcmlaq_lane270): New.
20054 * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
20055 neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
20056 * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
20057 * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
20058 (arm_option_reconfigure_globals): Use them.
20059 * config/arm/iterators.md (VDF, VQ_HSF): New.
20060 (VCADD, VCMLA): New.
20061 (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
20062 * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
20063 New.
20064 * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
20065 UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
20066
20067 2019-01-10 Tamar Christina <tamar.christina@arm.com>
20068
20069 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
20070 Add qualifier_lane_pair_index.
20071 (emit-rtl.h): Include.
20072 (TYPES_QUADOP_LANE_PAIR): New.
20073 (aarch64_simd_expand_args): Use it.
20074 (aarch64_simd_expand_builtin): Likewise.
20075 (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
20076 New.
20077 (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
20078 AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
20079 aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
20080 (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
20081 (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
20082 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
20083 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
20084 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
20085 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
20086 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
20087 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
20088 AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
20089 * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
20090 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
20091 Add __ARM_FEATURE_COMPLEX.
20092 * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
20093 fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
20094 fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
20095 fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
20096 fcmlaq_lane270): New.
20097 * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
20098 aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
20099 aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
20100 * config/aarch64/arm_neon.h:
20101 (vcadd_rot90_f16): New.
20102 (vcaddq_rot90_f16): New.
20103 (vcadd_rot270_f16): New.
20104 (vcaddq_rot270_f16): New.
20105 (vcmla_f16): New.
20106 (vcmlaq_f16): New.
20107 (vcmla_lane_f16): New.
20108 (vcmla_laneq_f16): New.
20109 (vcmlaq_lane_f16): New.
20110 (vcmlaq_rot90_lane_f16): New.
20111 (vcmla_rot90_laneq_f16): New.
20112 (vcmla_rot90_lane_f16): New.
20113 (vcmlaq_rot90_f16): New.
20114 (vcmla_rot90_f16): New.
20115 (vcmlaq_laneq_f16): New.
20116 (vcmla_rot180_laneq_f16): New.
20117 (vcmla_rot180_lane_f16): New.
20118 (vcmlaq_rot180_f16): New.
20119 (vcmla_rot180_f16): New.
20120 (vcmlaq_rot90_laneq_f16): New.
20121 (vcmlaq_rot270_laneq_f16): New.
20122 (vcmlaq_rot270_lane_f16): New.
20123 (vcmla_rot270_laneq_f16): New.
20124 (vcmlaq_rot270_f16): New.
20125 (vcmla_rot270_f16): New.
20126 (vcmlaq_rot180_laneq_f16): New.
20127 (vcmlaq_rot180_lane_f16): New.
20128 (vcmla_rot270_lane_f16): New.
20129 (vcadd_rot90_f32): New.
20130 (vcaddq_rot90_f32): New.
20131 (vcaddq_rot90_f64): New.
20132 (vcadd_rot270_f32): New.
20133 (vcaddq_rot270_f32): New.
20134 (vcaddq_rot270_f64): New.
20135 (vcmla_f32): New.
20136 (vcmlaq_f32): New.
20137 (vcmlaq_f64): New.
20138 (vcmla_lane_f32): New.
20139 (vcmla_laneq_f32): New.
20140 (vcmlaq_lane_f32): New.
20141 (vcmlaq_laneq_f32): New.
20142 (vcmla_rot90_f32): New.
20143 (vcmlaq_rot90_f32): New.
20144 (vcmlaq_rot90_f64): New.
20145 (vcmla_rot90_lane_f32): New.
20146 (vcmla_rot90_laneq_f32): New.
20147 (vcmlaq_rot90_lane_f32): New.
20148 (vcmlaq_rot90_laneq_f32): New.
20149 (vcmla_rot180_f32): New.
20150 (vcmlaq_rot180_f32): New.
20151 (vcmlaq_rot180_f64): New.
20152 (vcmla_rot180_lane_f32): New.
20153 (vcmla_rot180_laneq_f32): New.
20154 (vcmlaq_rot180_lane_f32): New.
20155 (vcmlaq_rot180_laneq_f32): New.
20156 (vcmla_rot270_f32): New.
20157 (vcmlaq_rot270_f32): New.
20158 (vcmlaq_rot270_f64): New.
20159 (vcmla_rot270_lane_f32): New.
20160 (vcmla_rot270_laneq_f32): New.
20161 (vcmlaq_rot270_lane_f32): New.
20162 (vcmlaq_rot270_laneq_f32): New.
20163 * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
20164 * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
20165 UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
20166 (FCADD, FCMLA): New.
20167 (rot): New.
20168 * config/arm/types.md (neon_fcadd, neon_fcmla): New.
20169
20170 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20171
20172 PR other/16615
20173
20174 * config/pa/pa.c: Change "can not" to "cannot".
20175 * gimple-ssa-evrp-analyze.c: Likewise.
20176 * ipa-icf.c: Likewise.
20177 * ipa-polymorphic-call.c: Likewise.
20178 * ipa-pure-const.c: Likewise.
20179 * lra-constraints.c: Likewise.
20180 * lra-remat.c: Likewise.
20181 * reload1.c: Likewise.
20182 * reorg.c: Likewise.
20183 * tree-ssa-uninit.c: Likewise.
20184
20185 2019-01-09 Sandra Loosemore <sandra@codesourcery.com>
20186
20187 PR other/16615
20188
20189 * Makefile.in: Mechanically replace "can not" with "cannot".
20190 * alias.c: Likewise.
20191 * builtins.c: Likewise.
20192 * calls.c: Likewise.
20193 * cgraph.c: Likewise.
20194 * cgraph.h: Likewise.
20195 * cgraphclones.c: Likewise.
20196 * cgraphunit.c: Likewise.
20197 * combine-stack-adj.c: Likewise.
20198 * combine.c: Likewise.
20199 * common/config/i386/i386-common.c: Likewise.
20200 * config/aarch64/aarch64.c: Likewise.
20201 * config/alpha/sync.md: Likewise.
20202 * config/arc/arc.c: Likewise.
20203 * config/arc/predicates.md: Likewise.
20204 * config/arm/arm-c.c: Likewise.
20205 * config/arm/arm.c: Likewise.
20206 * config/arm/arm.h: Likewise.
20207 * config/arm/arm.md: Likewise.
20208 * config/arm/cortex-r4f.md: Likewise.
20209 * config/csky/csky.c: Likewise.
20210 * config/csky/csky.h: Likewise.
20211 * config/darwin-f.c: Likewise.
20212 * config/epiphany/epiphany.md: Likewise.
20213 * config/i386/i386.c: Likewise.
20214 * config/i386/sol2.h: Likewise.
20215 * config/m68k/m68k.c: Likewise.
20216 * config/mcore/mcore.h: Likewise.
20217 * config/microblaze/microblaze.md: Likewise.
20218 * config/mips/20kc.md: Likewise.
20219 * config/mips/sb1.md: Likewise.
20220 * config/nds32/nds32.c: Likewise.
20221 * config/nds32/predicates.md: Likewise.
20222 * config/pa/pa.c: Likewise.
20223 * config/rs6000/e300c2c3.md: Likewise.
20224 * config/rs6000/rs6000.c: Likewise.
20225 * config/s390/s390.h: Likewise.
20226 * config/sh/sh.c: Likewise.
20227 * config/sh/sh.md: Likewise.
20228 * config/spu/vmx2spu.h: Likewise.
20229 * cprop.c: Likewise.
20230 * dbxout.c: Likewise.
20231 * df-scan.c: Likewise.
20232 * doc/cfg.texi: Likewise.
20233 * doc/extend.texi: Likewise.
20234 * doc/fragments.texi: Likewise.
20235 * doc/gty.texi: Likewise.
20236 * doc/invoke.texi: Likewise.
20237 * doc/lto.texi: Likewise.
20238 * doc/md.texi: Likewise.
20239 * doc/objc.texi: Likewise.
20240 * doc/rtl.texi: Likewise.
20241 * doc/tm.texi: Likewise.
20242 * dse.c: Likewise.
20243 * emit-rtl.c: Likewise.
20244 * emit-rtl.h: Likewise.
20245 * except.c: Likewise.
20246 * expmed.c: Likewise.
20247 * expr.c: Likewise.
20248 * fold-const.c: Likewise.
20249 * genautomata.c: Likewise.
20250 * gimple-fold.c: Likewise.
20251 * hard-reg-set.h: Likewise.
20252 * ifcvt.c: Likewise.
20253 * ipa-comdats.c: Likewise.
20254 * ipa-cp.c: Likewise.
20255 * ipa-devirt.c: Likewise.
20256 * ipa-fnsummary.c: Likewise.
20257 * ipa-icf.c: Likewise.
20258 * ipa-inline-transform.c: Likewise.
20259 * ipa-inline.c: Likewise.
20260 * ipa-polymorphic-call.c: Likewise.
20261 * ipa-profile.c: Likewise.
20262 * ipa-prop.c: Likewise.
20263 * ipa-pure-const.c: Likewise.
20264 * ipa-reference.c: Likewise.
20265 * ipa-split.c: Likewise.
20266 * ipa-visibility.c: Likewise.
20267 * ipa.c: Likewise.
20268 * ira-build.c: Likewise.
20269 * ira-color.c: Likewise.
20270 * ira-conflicts.c: Likewise.
20271 * ira-costs.c: Likewise.
20272 * ira-int.h: Likewise.
20273 * ira-lives.c: Likewise.
20274 * ira.c: Likewise.
20275 * ira.h: Likewise.
20276 * loop-invariant.c: Likewise.
20277 * loop-unroll.c: Likewise.
20278 * lower-subreg.c: Likewise.
20279 * lra-assigns.c: Likewise.
20280 * lra-constraints.c: Likewise.
20281 * lra-eliminations.c: Likewise.
20282 * lra-lives.c: Likewise.
20283 * lra-remat.c: Likewise.
20284 * lra-spills.c: Likewise.
20285 * lra.c: Likewise.
20286 * lto-cgraph.c: Likewise.
20287 * lto-streamer-out.c: Likewise.
20288 * postreload-gcse.c: Likewise.
20289 * predict.c: Likewise.
20290 * profile-count.h: Likewise.
20291 * profile.c: Likewise.
20292 * recog.c: Likewise.
20293 * ree.c: Likewise.
20294 * reload.c: Likewise.
20295 * reload1.c: Likewise.
20296 * reorg.c: Likewise.
20297 * resource.c: Likewise.
20298 * rtl.def: Likewise.
20299 * rtl.h: Likewise.
20300 * rtlanal.c: Likewise.
20301 * sched-deps.c: Likewise.
20302 * sched-ebb.c: Likewise.
20303 * sched-rgn.c: Likewise.
20304 * sel-sched-ir.c: Likewise.
20305 * sel-sched.c: Likewise.
20306 * shrink-wrap.c: Likewise.
20307 * simplify-rtx.c: Likewise.
20308 * symtab.c: Likewise.
20309 * target.def: Likewise.
20310 * toplev.c: Likewise.
20311 * tree-call-cdce.c: Likewise.
20312 * tree-cfg.c: Likewise.
20313 * tree-complex.c: Likewise.
20314 * tree-core.h: Likewise.
20315 * tree-eh.c: Likewise.
20316 * tree-inline.c: Likewise.
20317 * tree-loop-distribution.c: Likewise.
20318 * tree-nrv.c: Likewise.
20319 * tree-profile.c: Likewise.
20320 * tree-sra.c: Likewise.
20321 * tree-ssa-alias.c: Likewise.
20322 * tree-ssa-dce.c: Likewise.
20323 * tree-ssa-dom.c: Likewise.
20324 * tree-ssa-forwprop.c: Likewise.
20325 * tree-ssa-loop-im.c: Likewise.
20326 * tree-ssa-loop-ivcanon.c: Likewise.
20327 * tree-ssa-loop-ivopts.c: Likewise.
20328 * tree-ssa-loop-niter.c: Likewise.
20329 * tree-ssa-phionlycprop.c: Likewise.
20330 * tree-ssa-phiopt.c: Likewise.
20331 * tree-ssa-propagate.c: Likewise.
20332 * tree-ssa-threadedge.c: Likewise.
20333 * tree-ssa-threadupdate.c: Likewise.
20334 * tree-ssa-uninit.c: Likewise.
20335 * tree-ssanames.c: Likewise.
20336 * tree-streamer-out.c: Likewise.
20337 * tree.c: Likewise.
20338 * tree.h: Likewise.
20339 * vr-values.c: Likewise.
20340
20341 2019-01-09 Uroš Bizjak <ubizjak@gmail.com>
20342
20343 * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
20344 (ix86_split_xorsign): Ditto.
20345 * config/i386/i386.c (ix86_expand_xorsign): New function.
20346 (ix86_split_xorsign): Ditto.
20347 * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
20348 (xorsign<mode>3): New expander.
20349 (xorsign<mode>3_1): New insn_and_split pattern.
20350 * config/i386/sse.md (xorsign<mode>3): New expander.
20351
20352 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20353
20354 * config/sparc/sparc.md (*tablejump_sp32): Merge into...
20355 (*tablejump_sp64): Likewise.
20356 (*tablejump<P:mode>): ...this.
20357 (*call_address_sp32): Merge into...
20358 (*call_address_sp64): Likewise.
20359 (*call_address<P:mode>): ...this.
20360 (*call_symbolic_sp32): Merge into...
20361 (*call_symbolic_sp64): Likewise.
20362 (*call_symbolic<P:mode>): ...this.
20363 (call_value): Remove constraint and add predicate.
20364 (*call_value_address_sp32): Merge into...
20365 (*call_value_address_sp64): Likewise.
20366 (*call_value_address<P:mode>): ...this.
20367 (*call_value_symbolic_sp32): Merge into...
20368 (*call_value_symbolic_sp64): Likewise.
20369 (*call_value_symbolic<P:mode>): ...this.
20370 (*sibcall_symbolic_sp32): Merge into...
20371 (*sibcall_symbolic_sp64): Likewise.
20372 (*sibcall_symbolic<P:mode>): ...this.
20373 (sibcall_value): Remove constraint and add predicate.
20374 (*sibcall_value_symbolic_sp32): Merge into...
20375 (*sibcall_value_symbolic_sp64): Likewise.
20376 (*sibcall_value_symbolic<P:mode>): ...this.
20377 (window_save): Minor tweak.
20378 (*branch_sp32): Merge into...
20379 (*branch_sp64): Likewise.
20380 (*branch<P:mode>): ...this.
20381
20382 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20383 James Clarke <jrtc27@jrtc27.com>
20384
20385 PR target/84010
20386 * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
20387 consistently in TLS address generation and adjust code to the renaming
20388 of patterns. Mark calls to __tls_get_addr as const.
20389 * config/sparc/sparc.md (tgd_hi22): Turn into...
20390 (tgd_hi22<P:mode>): ...this and use Pmode throughout.
20391 (tgd_lo10): Turn into...
20392 (tgd_lo10<P:mode>): ...this and use Pmode throughout.
20393 (tgd_add32): Merge into...
20394 (tgd_add64): Likewise.
20395 (tgd_add<P:mode>): ...this and use Pmode throughout.
20396 (tldm_hi22): Turn into...
20397 (tldm_hi22<P:mode>): ...this and use Pmode throughout.
20398 (tldm_lo10): Turn into...
20399 (tldm_lo10<P:mode>): ...this and use Pmode throughout.
20400 (tldm_add32): Merge into...
20401 (tldm_add64): Likewise.
20402 (tldm_add<P:mode>): ...this and use Pmode throughout.
20403 (tldm_call32): Merge into...
20404 (tldm_call64): Likewise.
20405 (tldm_call<P:mode>): ...this and use Pmode throughout.
20406 (tldo_hix22): Turn into...
20407 (tldo_hix22<P:mode>): ...this and use Pmode throughout.
20408 (tldo_lox10): Turn into...
20409 (tldo_lox10<P:mode>): ...this and use Pmode throughout.
20410 (tldo_add32): Merge into...
20411 (tldo_add64): Likewise.
20412 (tldo_add<P:mode>): ...this and use Pmode throughout.
20413 (tie_hi22): Turn into...
20414 (tie_hi22<P:mode>): ...this and use Pmode throughout.
20415 (tie_lo10): Turn into...
20416 (tie_lo10<P:mode>): ...this and use Pmode throughout.
20417 (tie_ld64): Use DImode throughout.
20418 (tie_add32): Merge into...
20419 (tie_add64): Likewise.
20420 (tie_add<P:mode>): ...this and use Pmode throughout.
20421 (tle_hix22_sp32): Merge into...
20422 (tle_hix22_sp64): Likewise.
20423 (tle_hix22<P:mode>): ...this and use Pmode throughout.
20424 (tle_lox22_sp32): Merge into...
20425 (tle_lox22_sp64): Likewise.
20426 (tle_lox22<P:mode>): ...this and use Pmode throughout.
20427 (*tldo_ldub_sp32): Merge into...
20428 (*tldo_ldub_sp64): Likewise.
20429 (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
20430 (*tldo_ldub1_sp32): Merge into...
20431 (*tldo_ldub1_sp64): Likewise.
20432 (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
20433 (*tldo_ldub2_sp32): Merge into...
20434 (*tldo_ldub2_sp64): Likewise.
20435 (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
20436 (*tldo_ldsb1_sp32): Merge into...
20437 (*tldo_ldsb1_sp64): Likewise.
20438 (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
20439 (*tldo_ldsb2_sp32): Merge into...
20440 (*tldo_ldsb2_sp64): Likewise.
20441 (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
20442 (*tldo_ldub3_sp64): Use DImode throughout.
20443 (*tldo_ldsb3_sp64): Likewise.
20444 (*tldo_lduh_sp32): Merge into...
20445 (*tldo_lduh_sp64): Likewise.
20446 (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
20447 (*tldo_lduh1_sp32): Merge into...
20448 (*tldo_lduh1_sp64): Likewise.
20449 (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
20450 (*tldo_ldsh1_sp32): Merge into...
20451 (*tldo_ldsh1_sp64): Likewise.
20452 (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
20453 (*tldo_lduh2_sp64): Use DImode throughout.
20454 (*tldo_ldsh2_sp64): Likewise.
20455 (*tldo_lduw_sp32): Merge into...
20456 (*tldo_lduw_sp64): Likewise.
20457 (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
20458 (*tldo_lduw1_sp64): Use DImode throughout.
20459 (*tldo_ldsw1_sp64): Likewise.
20460 (*tldo_ldx_sp64): Likewise.
20461 (*tldo_stb_sp32): Merge into...
20462 (*tldo_stb_sp64): Likewise.
20463 (*tldo_stb<P:mode>): ...this and use Pmode throughout.
20464 (*tldo_sth_sp32): Merge into...
20465 (*tldo_sth_sp64): Likewise.
20466 (*tldo_sth<P:mode>): ...this and use Pmode throughout.
20467 (*tldo_stw_sp32): Merge into...
20468 (*tldo_stw_sp64): Likewise.
20469 (*tldo_stw<P:mode>): ...this and use Pmode throughout.
20470 (*tldo_stx_sp64): Use DImode throughout.
20471
20472 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20473
20474 * config/aarch64/aarch64.c (aarch64_override_options): Add case to
20475 check configure option to set BTI and Return Address Signing.
20476 * configure.ac: Add --enable-standard-branch-protection and
20477 --disable-standard-branch-protection.
20478 * configure: Regenerated.
20479 * doc/install.texi: Document the same.
20480
20481 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20482 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20483
20484 * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
20485 * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
20486 * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
20487 if bti is enabled.
20488 * config/aarch64/aarch64-bti-insert.c: New file.
20489 * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
20490 pass.
20491 * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
20492 new bti pass.
20493 * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
20494 UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
20495 (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
20496 * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
20497
20498 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20499
20500 * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
20501 * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
20502 Disable bti for -mbranch-protection=none.
20503 (aarch64_handle_standard_branch_protection): Enable bti for
20504 -mbranch-protection=standard.
20505 (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
20506 -mbranch-protection.
20507 (aarch64_bti_enabled): Check if bti is enabled.
20508 * config/aarch64/aarch64.opt: Declare target variable.
20509 * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
20510
20511 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20512
20513 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
20514 epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
20515 (aarch64_expand_epilogue): Likewise.
20516 (aarch64_output_mi_thunk): Likewise.
20517 * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
20518 TAILCALL_ADDR_REGS to x16 and x17.
20519 * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
20520
20521 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20522
20523 * config/aarch64/aarch64-option-extensions.def: Define
20524 AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
20525 * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
20526 (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
20527 (AARCH64_FL_PREDRES): New.
20528 (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
20529 AARCH64_FL_PREDRES by default.
20530 * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
20531
20532 2018-01-09 Sudakshina Das <sudi.das@arm.com>
20533
20534 * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
20535 ARMv8.5-A.
20536 * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
20537 (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
20538 * doc/invoke.texi: Document ARMv8.5-A.
20539
20540 2019-01-09 Alejandro Martinez <alejandro.martinezvicente@arm.com>
20541
20542 * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
20543 (xorsign<mode>3): Likewise.
20544
20545 2019-01-09 Jelinek <jakub@redhat.com>
20546
20547 PR middle-end/88758
20548 * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
20549 vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
20550
20551 PR rtl-optimization/88331
20552 * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
20553 not currently_expanding_to_rtl.
20554
20555 2019-01-09 Eric Botcazou <ebotcazou@adacore.com>
20556
20557 * doc/invoke.texi (-Os): Remove trailing spaces.
20558 (-finline-functions): Remove reference to -O2.
20559
20560 2019-01-08 Jakub Jelinek <jakub@redhat.com>
20561
20562 PR rtl-optimization/79593
20563 * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
20564
20565 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
20566 UNSPEC_FUSION_GPR to its argument. Formatting fixes.
20567
20568 2019-01-08 Eric Botcazou <ebotcazou@adacore.com>
20569
20570 PR bootstrap/88721
20571 * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
20572 to -1 on entry.
20573
20574 PR debug/88723
20575 * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
20576 UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
20577
20578 2019-01-08 H.J. Lu <hongjiu.lu@intel.com>
20579
20580 PR target/88717
20581 * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
20582 ix86_avx_u128_mode_entry.
20583
20584 2019-01-08 Martin Liska <mliska@suse.cz>
20585
20586 PR tree-optimization/88753
20587 * tree-switch-conversion.c (switch_conversion::build_one_array):
20588 Come up with local variable constructor. Convert first to
20589 type of constructor values.
20590
20591 2019-01-08 Richard Biener <rguenther@suse.de>
20592
20593 PR tree-optimization/86554
20594 * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
20595 rpo_avail): Move earlier.
20596 (visit_nary_op): When value-numbering to expressions
20597 with different overflow behavior make sure there's an
20598 available expression on the path.
20599
20600 2019-01-08 Sam Tebbs <sam.tebbs@arm.com>
20601
20602 * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
20603 aarch64_parse_branch_protection,
20604 struct aarch64_branch_protect_type,
20605 aarch64_handle_no_branch_protection,
20606 aarch64_handle_standard_branch_protection,
20607 aarch64_validate_mbranch_protection,
20608 aarch64_handle_pac_ret_protection,
20609 aarch64_handle_attr_branch_protection,
20610 accepted_branch_protection_string,
20611 aarch64_pac_ret_subtypes,
20612 aarch64_branch_protect_types,
20613 aarch64_handle_pac_ret_leaf): Define.
20614 (aarch64_override_options_after_change_1, aarch64_override_options):
20615 Add check for accepted_branch_protection_string.
20616 (aarch64_option_save): Save accepted_branch_protection_string.
20617 (aarch64_option_restore): Save accepted_branch_protection_string.
20618 * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
20619 * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
20620 msign-return-address.
20621 * doc/invoke.texi: Add mbranch-protection.
20622
20623 2019-01-08 Alan Modra <amodra@gmail.com>
20624
20625 PR target/88614
20626 * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
20627 Delete "unknownp" parameter. Adjust callers. Handle
20628 CONST_INT, PLUS, MINUS, and MULT.
20629 (attr_value_aligned): Renamed from or_attr_value.
20630 (min_attr_value): Return INT_MIN for unhandled rtl case..
20631 (min_fn): ..and translate to INT_MAX here.
20632 (write_length_unit_log): Modify to cope without "unknown".
20633 (write_attr_value): Handle IF_THEN_ELSE.
20634
20635 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20636
20637 * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
20638 optimization for masked stores.
20639
20640 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20641
20642 PR middle-end/88567
20643 * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
20644 output vector directly to duplicate_and_interleave instead of
20645 going through a temporary. Postpone insertion of ctor_seq to
20646 the end of the loop.
20647
20648 2019-01-07 Richard Earnshaw <rearnsha@arm.com>
20649
20650 PR target/86891
20651 * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
20652 unsigned_p. Handle signed and unsigned overflow correction as
20653 required.
20654 * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
20655 prototype.
20656 * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
20657 for operand 2.
20658 (add<mode>3_compareV_imm): Make this callable for expanding.
20659 (subv<GPI:mode>4): Use register_operand for operand 1. Use
20660 aarch64_plus_operand for operand 2.
20661 (subv<GPI:mode>_insn): New insn pattern.
20662 (subv<GPI:mode>_imm): Likewise.
20663 (negv<GPI:mode>3): New expand pattern.
20664 (negv<GPI:mode>_insn): New insn pattern.
20665 (negv<GPI:mode>_cmp_only): Likewise.
20666 (cmpv<GPI:mode>_insn): Likewise.
20667 (subvti4): Use register_operand for operand 1. Update call to
20668 aarch64_expand_subvti.
20669 (usubvti4): Likewise.
20670 (negvti3): New expand pattern.
20671 (negdi_carryout): New insn pattern.
20672 (negvdi_carryinV): New insn pattern.
20673 (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
20674 version the named version.
20675 (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
20676 operands.
20677 (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
20678 patterns.
20679 (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
20680 patterns.
20681 (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
20682 (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
20683 (sub<mode>3_carryinCV): Delete.
20684 (sub<GPI:mode>3_carryinV): New expand pattern.
20685 sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
20686
20687 2019-01-07 Richard Biener <rguenther@suse.de>
20688
20689 * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
20690 of tree_operand_hash.
20691
20692 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20693
20694 PR tree-optimization/88598
20695 * tree.h (single_nonzero_element): Declare.
20696 * tree.c (single_nonzero_element): New function.
20697 * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
20698 if I is the only nonzero element of CST.
20699
20700 2019-01-07 Richard Sandiford <richard.sandiford@arm.com>
20701
20702 PR tree-optimization/88598
20703 * tree.h (initializer_each_zero_or_onep): Declare.
20704 * tree.c (initializer_each_zero_or_onep): New function.
20705 (signed_or_unsigned_type_for): Handle float types too.
20706 (unsigned_type_for, signed_type_for): Update comments accordingly.
20707 * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
20708 x & { 0 or -1, 0 or -1, ... }.
20709
20710 2019-01-07 Jonathan Wakely <jwakely@redhat.com>
20711
20712 * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
20713 with x86_64-pc-linux-gnu.
20714
20715 2019-01-07 Tom de Vries <tdevries@suse.de>
20716
20717 PR target/85486
20718 * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
20719 function.
20720 (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
20721 routines.
20722
20723 2019-01-07 Jakub Jelinek <jakub@redhat.com>
20724
20725 * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
20726 V_256_512 iterator instead of V_512 and TARGET_AVX instead of
20727 TARGET_AVX512F as condition.
20728
20729 PR debug/88723
20730 * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
20731 const_not_ok_for_debug_p target hook.
20732 (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
20733 on UNSPEC and subexpressions thereof if all subexpressions of the
20734 UNSPEC are CONSTANT_P.
20735
20736 PR tree-optimization/88676
20737 * tree-ssa-phiopt.c (two_value_replacement): New function.
20738 (tree_ssa_phiopt_worker): Call it.
20739
20740 PR sanitizer/88619
20741 * cfgexpand.c (expand_stack_vars): Only align prev_offset to
20742 ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
20743
20744 PR c++/85052
20745 * tree-vect-generic.c: Include insn-config.h and recog.h.
20746 (expand_vector_piecewise): Add defaulted ret_type argument,
20747 if non-NULL, use that in preference to type for the result type.
20748 (expand_vector_parallel): Formatting fix.
20749 (do_vec_conversion, do_vec_narrowing_conversion,
20750 expand_vector_conversion): New functions.
20751 (expand_vector_operations_1): Call expand_vector_conversion
20752 for VEC_CONVERT ifn calls.
20753 * internal-fn.def (VEC_CONVERT): New internal function.
20754 * internal-fn.c (expand_VEC_CONVERT): New function.
20755 * fold-const-call.c (fold_const_vec_convert): New function.
20756 (fold_const_call): Use it for CFN_VEC_CONVERT.
20757 * doc/extend.texi (__builtin_convertvector): Document.
20758
20759 2019-01-07 Tom de Vries <tdevries@suse.de>
20760
20761 * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
20762 * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
20763 vector_red_partition, vector_red_sym): New global variables.
20764 (nvptx_option_override): Initialize vector_red_sym.
20765 (nvptx_declare_function_name): Restore red_partition register.
20766 (nvptx_file_end): Emit code to declare the vector reduction variables.
20767 (nvptx_output_red_partition): New function.
20768 (nvptx_expand_shared_addr): Add vector argument. Use it to handle
20769 large vector reductions.
20770 (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
20771 (nvptx_init_builtins): Add VECTOR_ADDR.
20772 (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
20773 Handle nvptx_expand_shared_addr.
20774 (nvptx_get_shared_red_addr): Add vector argument and handle large
20775 vectors.
20776 (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
20777 large vectors.
20778 (nvptx_goacc_reduction_init): Likewise.
20779 (nvptx_goacc_reduction_fini): Likewise.
20780 (nvptx_goacc_reduction_teardown): Likewise.
20781 (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
20782 init,fini,teardown}.
20783 (nvptx_init_axis_predicate): Initialize vector_red_partition.
20784 (nvptx_set_current_function): Init vector_red_partition.
20785 * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
20786 (nvptx_red_partition): New insn.
20787 * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
20788
20789 2019-01-07 Tom de Vries <tdevries@suse.de>
20790
20791 PR target/85381
20792 * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
20793 empty loops.
20794
20795 2019-01-07 Tom de Vries <tdevries@suse.de>
20796
20797 * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
20798 (nvptx_option_override): Init oacc_bcast_partition.
20799 (nvptx_init_oacc_workers): New function.
20800 (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
20801 (nvptx_needs_shared_bcast): New function.
20802 (nvptx_find_par): Generalize to enable vectors to use shared-memory
20803 to propagate state.
20804 (nvptx_shared_propagate): Initialize vector bcast partition and
20805 synchronization state.
20806 (nvptx_single): Generalize to enable vectors to use shared-memory
20807 to propagate state.
20808 (nvptx_process_pars): Likewise.
20809 (nvptx_set_current_function): Initialize oacc_broadcast_partition.
20810 * config/nvptx/nvptx.h (struct machine_function): Add
20811 bcast_partition and sync_bar members.
20812
20813 2019-01-07 Tom de Vries <tdevries@suse.de>
20814
20815 * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
20816 (nvptx_apply_dim_limits): New function.
20817 (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
20818 PTX_WARP_SIZE.
20819
20820 2019-01-07 Tom de Vries <tdevries@suse.de>
20821
20822 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
20823 as late as possible.
20824
20825 2019-01-07 Tom de Vries <tdevries@suse.de>
20826
20827 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
20828 (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
20829 (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
20830 (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
20831 PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
20832
20833 2019-01-07 Tom de Vries <tdevries@suse.de>
20834
20835 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
20836
20837 2019-01-07 Tom de Vries <tdevries@suse.de>
20838
20839 * omp-offload.c (oacc_get_min_dim): New function.
20840 * omp-offload.h (oacc_get_min_dim): Declare.
20841
20842 2018-12-26 Mateusz B <mateuszb@poczta.onet.pl>
20843
20844 PR target/88521
20845 * config/i386/i386.c (function_value_ms_64): Return small sturct in
20846 AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
20847
20848 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20849
20850 PR tree-opt/86020
20851 Revert:
20852 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20853
20854 * ipa-inline.c (edge_badness): Use inlined_time instead of
20855 inline_summaries->get.
20856
20857 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20858
20859 * opts.c (enable_fdo_optimizations): Enable
20860 version-loops-for-strides, loop-interchange, unrol-and-jam
20861 and tree-loop-distribution.
20862 * invoke.texi: Document newly enabled options.
20863
20864 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20865
20866 * doc/invoke.texi (max-inline-insns-small): New parameters.
20867 * ipa-inline.c (want_early_inline_function_p): simplify.
20868 (want_inline_small_function_p): Fix pasto from previous patch;
20869 use max-inline-insns-small bound.
20870 * params.def (max-inline-insns-small): New param.
20871 * ipa-fnsummary.c (analyze_function_body): Initialize time/size
20872 variables correctly.
20873
20874 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20875
20876 * doc/invoke.texi: Document max-inline-insns-size,
20877 uninlined-function-insns, uninlined-function-time,
20878 uninlined-thunk-insns and uninlined-thunk-time.
20879 * params.def: Add max-inline-insns-size,
20880 uninlined-function-insns, uninlined-function-time,
20881 uninlined-thunk-insns and uninlined-thunk-time.
20882 * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
20883 new parameters.
20884 * ipa-inline.c (can_inline_edge_by_limits_p,
20885 want_inline_small_function_p): Use new parameters.
20886
20887 2019-01-05 Jan Hubicka <hubicka@ucw.cz>
20888
20889 * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
20890
20891 2019-01-05 Jakub Jelinek <jakub@redhat.com>
20892
20893 PR middle-end/82564
20894 PR target/88620
20895 * expr.c (expand_assignment): For calls returning VLA structures
20896 if to_rtx is not a MEM, force it into a stack temporary.
20897
20898 PR debug/88635
20899 * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
20900 SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
20901 Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
20902 subexpressions of both operands.
20903 (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
20904 subrtxes are CONSTANT_P.
20905 * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
20906 2018-11-09 changes.
20907
20908 2019-01-04 Jan Hubicka <hubicka@ucw.cz>
20909
20910 * params.def (hot-bb-count-ws-permille): Set to 990.
20911
20912 2019-01-04 Martin Sebor <msebor@redhat.com>
20913
20914 PR c/88546
20915 * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
20916 leaf.
20917
20918 2019-01-04 Martin Sebor <msebor@redhat.com>
20919
20920 PR c/88363
20921 * doc/extend.texi (attribute alloc_align, alloc_size): Update.
20922
20923 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20924
20925 * gdbinit.in: Turn off pagination for the skip commands, restore
20926 it to previous state afterwards.
20927
20928 2019-01-04 Jakub Jelinek <jakub@redhat.com>
20929
20930 PR target/88594
20931 * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
20932 of GET_MODE (opN) as modes of the libcall arguments.
20933
20934 2019-01-04 Jan Beulich <jbeulich@suse.com>
20935
20936 * config/i386/sse.md
20937 (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
20938 <avx512>_cmp<mode>3<mask_scalar_merge_name>,
20939 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20940 <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
20941 avx512f_vmcmp<mode>3<round_saeonly_name>,
20942 avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
20943 avx512f_maskcmp<mode>3,
20944 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20945 <avx512>_cvt<ssemodesuffix>2mask<mode>,
20946 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20947 *<avx512>_cvtmask2<ssemodesuffix><mode>,
20948 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20949 <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
20950 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20951 <avx512>_gt<mode>3<mask_scalar_merge_name>,
20952 <avx512>_testm<mode>3<mask_scalar_merge_name>,
20953 <avx512>_testnm<mode>3<mask_scalar_merge_name>,
20954 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
20955 *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
20956 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
20957 *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
20958 avx512cd_maskb_vec_dup<mode>,
20959 avx512cd_maskw_vec_dup<mode>,
20960 avx512dq_fpclass<mode><mask_scalar_merge_name>,
20961 avx512dq_vmfpclass<mode>,
20962 avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
20963 instead of =Yk.
20964
20965 2019-01-03 Martin Sebor <msebor@redhat.com>
20966
20967 PR tree-optimization/88659
20968 * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
20969
20970 2019-01-03 Aaron Sawdey <acsawdey@linux.ibm.com>
20971
20972 * config/rs6000/rs6000-string.c (expand_block_move): Don't use
20973 unaligned vsx and avoid lxvd2x/stxvd2x.
20974 (gen_lvx_v4si_move): New function.
20975
20976 2019-01-03 Tom de Vries <tdevries@suse.de>
20977
20978 * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
20979 (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
20980 function.
20981 * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
20982
20983 2019-01-03 Tom de Vries <tdevries@suse.de>
20984
20985 * config/nvptx/nvptx.c (struct offload_attrs): New.
20986 (populate_offload_attrs): New function. Factor mask extraction out of
20987 nvptx_reorg. Add extraction of dimensions.
20988 (nvptx_reorg): Use populate_offload_attrs.
20989
20990 2019-01-03 Tom de Vries <tdevries@suse.de>
20991
20992 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
20993 cases for oacc_min_dims_p and routine_p. Add asserts for
20994 oacc_default_dims_p and offload_region_p.
20995
20996 2019-01-03 Tom de Vries <tdevries@suse.de>
20997
20998 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
20999 factored out of ...
21000 (nvptx_goacc_validate_dims): ... here.
21001
21002 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21003
21004 PR tree-optimization/85574
21005 * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
21006 structure.
21007 (struct ssa_equip_hash_traits): Declare.
21008 (val_ssa_equiv): Use custom hash traits using operand_equal_p.
21009
21010 2019-01-03 Jakub Jelinek <jakub@redhat.com>
21011
21012 PR debug/88644
21013 * dwarf2out.c (modified_type_die): If type is equal to sizetype,
21014 change it to qualified_type.
21015
21016 2019-01-03 Jan Hubicka <hubicka@ucw.cz>
21017
21018 * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
21019 (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
21020
21021 2019-01-02 Martin Sebor <msebor@redhat.com>
21022 Jeff Law <law@redhat.com>
21023
21024 * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
21025 (get_range_strlen_tree): Update appropriately.
21026 (get_range_strlen)
21027 * gimple-fold.h (get_range_strlen): Drop unused last argument.
21028
21029 * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
21030 rather than set_range_info.
21031 * tree-ssa-strlen.c (set_strlen_range): Extracted from
21032 maybe_set_strlen_range. Handle potentially boundary crossing
21033 cases more conservatively.
21034 (maybe_set_strlen_range): Parts refactored into set_strlen_range.
21035 Call set_strlen_range.
21036 * tree-ssa-strlen.h (set_strlen_range): Add prototype.
21037
21038 PR middle-end/88663
21039 * gimple-fold.c (get_range_strlen): Update prototype to no longer
21040 need the flexp argument.
21041 (get_range_strlen_tree): Drop flexp argument. Drop flexp argument
21042 from calls to get_range_strlen. Update comments. Just update
21043 VAL for an unterminated const char array and let the reset of the
21044 code handle it normally. No longer try to set *flexp. Adjust
21045 return value.
21046 (get_range_strlen): Update for the new get_range_strlen API.
21047 (get_maxval_strlen): Similarly.
21048 (gimple_fold_builtin_strlen): Handle update meaning of return value
21049 from get_range_strlen.
21050 * gimple-ssa-sprintf.c (get_string_length): Update for the new
21051 get_range_strlen API.
21052
21053 2019-01-02 Jan Hubicka <hubicka@ucw.cz>
21054
21055 PR lto/88130
21056 * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
21057 false at WPA time when body was removed.
21058
21059 2019-01-02 Martin Liska <mliska@suse.cz>
21060
21061 PR tree-optimization/88650
21062 * predict.c (set_even_probabilities): Calculate probability
21063 remainer only when really used.
21064
21065 2019-01-02 Richard Biener <rguenther@suse.de>
21066
21067 PR middle-end/88651
21068 * tree-data-ref.c (analyze_subscript_affine_affine): Use
21069 widest_ints when mangling max_stmt_execution results.
21070
21071 2019-01-02 Richard Biener <rguenther@suse.de>
21072
21073 PR tree-optimization/88621
21074 * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
21075 bitfields when canoncalizing.
21076
21077 2019-01-02 Richard Biener <rguenther@suse.de>
21078
21079 PR target/87545
21080 * config/i386/x86-tune-costs.h (intel_cost): Adjust
21081 cost of cheap SSE instruction.
21082
21083 2019-01-02 Richard Biener <rguenther@suse.de>
21084
21085 PR ipa/85574
21086 * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
21087 * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
21088 function.
21089 (sem_item_optimizer::do_congruence_step_f): Sort the congruence
21090 set after UIDs before splitting them.
21091
21092 2019-01-01 Martin Sebor <msebor@redhat.com>
21093 Jeff Law <law@redhat.com>
21094
21095 * gimple-fold.c (get_range_strlen_tree): Record if the computed
21096 length is optimistic. If it is, then arrange to compute the
21097 conservative length as well.
21098
21099 * gimple-fold.h (get_range_strlen): Update prototype.
21100 * builtins.c (check_access): Update call to get_range_strlen to use
21101 c_strlen_data pointer. Change various variable accesses to instead
21102 pull data from the c_strlen_data structure.
21103 (check_strncat_sizes, expand_builtin_strncat): Likewise.
21104 * calls.c (maybe_warn_nonstring_arg): Likewise.
21105 * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise. Reset
21106 minimum length if maximum lengh is unknown.
21107 * gimple-ssa-sprintf.c (get_string_length): Likewise. Drop code
21108 that used c_strlen, it's no longer needed. Restructure slightly.
21109 (format_string): Set unlikely range appropriately.
21110 * gimple-fold.c (get_range_strlen): Update comments. Fix minor
21111 formatting issues.
21112 (get_range_strlen): Accept c_strlen_data pointer for external
21113 call sites as well. Pass through to call to internal get_range_strlen.
21114 Adjust minlen, maxlen and maxbound as needed.
21115 (get_maxval_strlen): Update comments.
21116 (gimple_fold_builtin_strlen): Update call to get_range_strlen
21117 to use c_strlen_data pointer. Change variable accesses to instead
21118 use c_strlen_data data members.
21119
21120 * gimple-fold.c (get_range_strlen): Update prototype.
21121 (get_range_strlen_tree): Update prototype. Drop minlen/maxlen
21122 local variables. Use pdata to return information to caller.
21123 Update calls to get_range_strlen. Update pdata->maxbound.
21124 (get_range_strlen -- static version): Similarly.
21125 (get_range_strlen -- extern version): Update for internal
21126 get_range_strlen API change. Convert to external data format.
21127 (get_maxval_strlen): Similarly.
21128
21129 2019-01-01 Jan Hubicka <hubicka@ucw.cz>
21130
21131 * coverage.c (get_coverage_counts): Use current_function_decl.
21132 * profile.c (read_thunk_profile): New function.
21133 (branch_prob): Add THUNK parameter.
21134 * tree-profile.c (tree_profiling): Handle thunks.
21135 * value-prof.c (init_node_map): Handle thunks.
21136 * value-prof.h (branch_prob): Upate prototype.
21137 (read_thunk_profile): Declare.
21138
21139 2019-01-01 Jakub Jelinek <jakub@redhat.com>
21140
21141 Update copyright years.
21142
21143 * gcc.c (process_command): Update copyright notice dates.
21144 * gcov-dump.c (print_version): Ditto.
21145 * gcov.c (print_version): Ditto.
21146 * gcov-tool.c (print_version): Ditto.
21147 * gengtype.c (create_file): Ditto.
21148 * doc/cpp.texi: Bump @copying's copyright year.
21149 * doc/cppinternals.texi: Ditto.
21150 * doc/gcc.texi: Ditto.
21151 * doc/gccint.texi: Ditto.
21152 * doc/gcov.texi: Ditto.
21153 * doc/install.texi: Ditto.
21154 * doc/invoke.texi: Ditto.
21155 \f
21156 Copyright (C) 2019 Free Software Foundation, Inc.
21157
21158 Copying and distribution of this file, with or without modification,
21159 are permitted in any medium without royalty provided the copyright
21160 notice and this notice are preserved.